:root {
  --bg: #f4f7fb;
  --bg-accent: #e7eefc;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --ink: #111827;
  --muted: #667085;
  --line: rgba(17, 24, 39, 0.1);
  --line-strong: rgba(17, 24, 39, 0.18);
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --accent-soft-strong: rgba(37, 99, 235, 0.16);
  --success: #0f766e;
  --error: #b42318;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  --public-brand-footer-ratio: 0.12;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Instrument Sans", "Avenir Next", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(37, 99, 235, 0.1), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

.page-grain {
  display: none;
}

button,
textarea {
  font: inherit;
}

h1,
h2,
.panel-title,
.sheet-prompt {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.page-shell {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-link {
  color: var(--ink);
  font-family: "Syne", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  transform: translateY(-1px);
  color: var(--ink);
}

.nav-link-active {
  background: var(--ink);
  color: #fff;
}

.nav-link-active:hover,
.nav-link-active:focus-visible {
  color: #fff;
}

.header-auth-button {
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.header-auth-button:hover,
.header-auth-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.26);
  background: var(--accent-soft);
  color: var(--accent);
}

.header-auth-button:disabled {
  cursor: default;
  opacity: 0.7;
  transform: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 24px;
  align-items: start;
}

:root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .page-shell {
  width: min(1240px, calc(100% - 32px));
}

:root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .site-header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

:root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .hero-grid {
  grid-template-columns: 1fr;
  gap: 28px;
}

:root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .hero-copy {
  max-width: 54rem;
  margin: 0 auto;
  padding-top: 8px;
  text-align: center;
}

:root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .hero-copy h1 {
  max-width: 13ch;
  margin-inline: auto;
}

:root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .subcopy {
  max-width: 40rem;
  margin-inline: auto;
}

:root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .hero-stats {
  justify-content: center;
  width: min(100%, 1000px);
  margin-inline: auto;
}

:root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .hero-footnote {
  justify-items: center;
}

:root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .hero-footnote-list {
  justify-content: center;
}

:root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .studio-stack {
  width: 100%;
}

:root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .prompt-panel {
  width: 100%;
  max-width: none;
  padding: 30px 32px 28px;
}

:root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .panel-heading {
  justify-items: center;
  text-align: center;
}

:root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .panel-description {
  max-width: 42rem;
}

:root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .prompt-form {
  margin-top: 20px;
}

:root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] textarea {
  min-height: 118px;
  padding: 22px 24px;
  border-radius: 28px;
}

:root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .textarea-meta,
:root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .form-actions,
:root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .status {
  max-width: min(100%, 1040px);
  margin-left: auto;
  margin-right: auto;
}

:root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .form-note {
  max-width: none;
  text-align: left;
}

.hero-copy,
.prompt-panel,
.recipe-card,
.content-panel {
  animation: rise-in 480ms ease both;
}

.prompt-panel {
  animation-delay: 80ms;
}

.recipe-card {
  animation-delay: 120ms;
}

.content-panel {
  animation-delay: 160ms;
}

.hero-copy {
  padding: 16px 0 0;
}

.eyebrow,
.panel-kicker,
.section-kicker,
.stat-label,
.preset-label,
.gallery-count,
.section-note,
.sheet-badge,
.sheet-action,
.prompt-count {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.76rem;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.92;
  text-wrap: balance;
}

.subcopy {
  max-width: 30rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.6;
}

.hero-footnote {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.hero-footnote-label,
.library-aside-label {
  margin: 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-footnote-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-footnote-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  font-weight: 600;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.stat-pill {
  min-width: 146px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}

.stat-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.66rem;
}

.stat-pill strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.prompt-presets {
  margin-top: 24px;
}

.preset-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.72rem;
}

.preset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preset-chip {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.preset-chip:hover,
.preset-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.28);
  background: var(--accent-soft);
  color: var(--accent);
}

.studio-stack {
  display: grid;
  gap: 16px;
}

.prompt-panel,
.recipe-card,
.content-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.prompt-panel {
  padding: 20px 22px;
}

.panel-heading {
  display: grid;
  gap: 6px;
}

.panel-kicker,
.section-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.panel-title {
  margin-top: 4px;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  line-height: 1;
}

.panel-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.prompt-form {
  margin-top: 16px;
}

textarea {
  width: 100%;
  min-height: 128px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 20px;
  outline: 0;
  padding: 15px 18px;
  color: var(--ink);
  background: var(--surface-strong);
  font-size: 1.02rem;
  line-height: 1.5;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

textarea::placeholder {
  color: #8a94a6;
}

textarea:focus {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.textarea-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.prompt-tip,
.form-note,
.gallery-empty,
.status,
.recipe-copy p {
  margin: 0;
  color: var(--muted);
}

.prompt-tip,
.form-note,
.recipe-copy p {
  line-height: 1.5;
}

.prompt-count {
  flex-shrink: 0;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.05);
  font-size: 0.7rem;
}

.prompt-count[data-tone="caution"] {
  background: var(--accent-soft-strong);
  color: var(--accent);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

#submit-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    opacity 160ms ease,
    box-shadow 160ms ease;
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.14);
}

#submit-button:hover,
#submit-button:focus-visible {
  transform: translateY(-1px);
  background: var(--accent);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
}

#submit-button:disabled {
  cursor: wait;
  opacity: 0.76;
  transform: none;
  box-shadow: none;
}

.form-note {
  max-width: 16rem;
  text-align: right;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  margin-top: 12px;
  font-weight: 500;
}

.status:empty {
  min-height: 0;
  margin-top: 0;
}

.status:not(:empty)::before {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: currentColor;
}

.status[data-tone="loading"] {
  color: var(--accent);
}

.status[data-tone="success"] {
  color: var(--success);
}

.status[data-tone="review"] {
  color: #a16207;
}

.status[data-tone="error"] {
  color: var(--error);
}

.recipe-card {
  padding: 18px 22px;
  background:
    linear-gradient(180deg, rgba(231, 238, 252, 0.78), rgba(255, 255, 255, 0.9)),
    var(--surface);
}

.recipe-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-top: 11px;
  margin-top: 11px;
  border-top: 1px solid var(--line);
}

.recipe-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
}

.recipe-copy strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: "Syne", sans-serif;
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.content-panel {
  margin-top: 28px;
  padding: 20px 22px;
}

.home-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 14px;
  margin-top: 20px;
  align-items: start;
}

.home-support-grid-recipe-only {
  grid-template-columns: minmax(0, 1fr);
}

.section-heading-stack {
  display: grid;
  gap: 10px;
  align-items: start;
  justify-content: start;
}

.section-heading-stack .section-note {
  font-size: 0.78rem;
}

.prompt-sparks-card,
.prompt-recipe-card {
  height: 100%;
}

.prompt-sparks-card .preset-list {
  gap: 12px;
}

.prompt-sparks-card .preset-chip {
  min-height: 46px;
}

.library-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 24px;
  margin-top: 0;
}

.library-hero-copy {
  max-width: 44rem;
}

.library-title {
  max-width: 11ch;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 0.95;
}

.library-copy {
  margin-top: 14px;
}

.library-hero-aside {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
}

.library-aside-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.library-panel {
  min-height: 320px;
}

.section-link {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.section-link:hover,
.section-link:focus-visible {
  transform: translateY(-1px);
  color: #1d4ed8;
}

.topic-links-section {
  display: grid;
  gap: 18px;
}

.topic-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.topic-link-chip:hover,
.topic-link-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.24);
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.08);
}

.topic-link-chip-active {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent);
}

.topic-link-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.profile-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.profile-panel-copy {
  max-width: 34rem;
}

.profile-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1;
}

.profile-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
}

.profile-field {
  display: grid;
  gap: 10px;
}

.profile-label {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: 0;
  padding: 14px 16px;
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.profile-input:focus {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.profile-input:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.profile-save-button,
.profile-public-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.profile-save-button {
  appearance: none;
  border: 0;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.14);
}

.profile-save-button:hover,
.profile-save-button:focus-visible {
  transform: translateY(-1px);
  background: var(--accent);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
}

.profile-save-button:disabled {
  cursor: default;
  opacity: 0.76;
  transform: none;
  box-shadow: none;
}

.profile-public-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.profile-public-link:hover,
.profile-public-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.26);
  background: var(--accent-soft);
  color: var(--accent);
}

.profile-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
}

.profile-status[data-tone="loading"] {
  color: var(--accent);
}

.profile-status[data-tone="success"] {
  color: var(--success);
}

.profile-status[data-tone="error"] {
  color: var(--error);
}

.detail-shell {
  margin-top: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: start;
}

.detail-preview {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.7);
}

.detail-image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--bg-accent), #fff 58%);
}

.detail-image {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.detail-image,
.sheet-image {
  will-change: transform, opacity;
}

.detail-image {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0;
  background: transparent;
}

.detail-sidebar {
  display: grid;
  gap: 22px;
}

.detail-title {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
}

.detail-creator-line,
.share-status {
  margin: 0;
  color: var(--muted);
}

.detail-creator-line {
  margin-top: 14px;
  font-size: 0.98rem;
}

.detail-creator-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.detail-creator-link:hover,
.detail-creator-link:focus-visible {
  text-decoration: underline;
}

.detail-actions {
  display: grid;
  gap: 14px;
}

.detail-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.detail-subtitle {
  margin: 10px 0 0;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.02;
}

.detail-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 180px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.14);
}

.detail-download-button:hover,
.detail-download-button:focus-visible {
  transform: translateY(-1px);
  background: var(--accent);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
}

.detail-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 180px;
  padding: 14px 20px;
  border: 1px solid rgba(185, 28, 28, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #b91c1c;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.detail-delete-button:hover,
.detail-delete-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(185, 28, 28, 0.24);
  background: rgba(254, 242, 242, 0.92);
  box-shadow: 0 16px 28px rgba(185, 28, 28, 0.12);
}

.detail-delete-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.share-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.share-label {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.share-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.share-input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font: inherit;
}

.detail-back-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.detail-back-link:hover,
.detail-back-link:focus-visible {
  text-decoration: underline;
}

.detail-story-section {
  display: grid;
  gap: 22px;
  margin-top: 32px;
  padding-top: 6px;
}

.detail-copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.detail-copy-card,
.detail-info-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
}

.detail-copy-card {
  padding: 22px 24px;
}

.detail-story-copy {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.72;
}

.detail-info-stack {
  display: grid;
  gap: 12px;
}

.detail-info-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
}

.detail-info-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.detail-topic-row,
.detail-prompt-ideas {
  display: grid;
  gap: 12px;
}

.detail-prompt-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.detail-prompt-list li {
  color: var(--muted);
  line-height: 1.55;
}

.finished-panel,
.scan-studio {
  margin-top: 28px;
  display: grid;
  gap: 18px;
  padding-top: 2px;
}

.finished-frame,
.scan-status-card,
.scan-preview-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
}

.finished-frame {
  padding: 18px;
}

.finished-image {
  display: block;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--bg-accent), #fff 58%);
}

.scan-picker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scan-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.scan-stage-panel {
  display: grid;
  gap: 14px;
}

.scan-stage {
  position: relative;
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.scan-photo-canvas,
.scan-overlay-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.scan-overlay-canvas {
  pointer-events: none;
}

.scan-corner-handle {
  position: absolute;
  z-index: 2;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  margin-top: -17px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: grab;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
  touch-action: none;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease;
}

.scan-corner-handle:hover,
.scan-corner-handle:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.34);
}

.scan-corner-handle:active {
  cursor: grabbing;
  transform: scale(1.04);
}

.scan-instructions {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.scan-sidecar {
  display: grid;
  gap: 14px;
}

.scan-status-card,
.scan-preview-card {
  padding: 16px;
}

.scan-status {
  min-height: 48px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.scan-status[data-tone="loading"] {
  color: var(--accent);
}

.scan-status[data-tone="success"] {
  color: var(--success);
}

.scan-status[data-tone="error"] {
  color: var(--error);
}

.scan-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.scan-actions .detail-download-button,
.scan-actions .header-auth-button {
  width: 100%;
}

.scan-save-button {
  background: var(--accent);
}

.scan-preview-frame {
  margin-top: 12px;
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.92);
}

.scan-output-image {
  display: block;
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background: #fff;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-note,
.gallery-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

#latest-sheet {
  display: flex;
  justify-content: center;
}

.gallery-empty {
  padding: 28px 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.sheet-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.sheet-card:hover,
.sheet-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.09);
}

.sheet-card-featured {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: minmax(240px, 0.84fr) minmax(0, 1fr);
  align-items: stretch;
}

.sheet-image-link,
.sheet-title-link {
  color: inherit;
  text-decoration: none;
}

.sheet-image-link {
  display: block;
}

.sheet-title-link {
  display: block;
}

.sheet-title-link:hover .sheet-prompt,
.sheet-title-link:focus-visible .sheet-prompt {
  color: var(--accent);
}

.sheet-image-wrap {
  padding: 16px 16px 0;
}

.sheet-card-featured .sheet-image-wrap {
  padding: 18px;
}

.sheet-image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--bg-accent), #fff 58%);
}

.sheet-image {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

body[data-public-image-mode="branded"] .detail-image,
body[data-public-image-mode="branded"] .sheet-image {
  height: calc(100% * (1 + var(--public-brand-footer-ratio)));
  object-position: top center;
}

.sheet-card-hover-art .sheet-image {
  transition:
    opacity 220ms ease,
    transform 260ms ease,
    filter 220ms ease;
}

.sheet-image-secondary {
  opacity: 0;
  pointer-events: none;
}

.sheet-card-hover-art:hover .sheet-image-secondary,
.sheet-card-hover-art:focus-within .sheet-image-secondary {
  opacity: 1;
  transform: scale(1.01);
}

.sheet-card-hover-art:hover .sheet-image-primary,
.sheet-card-hover-art:focus-within .sheet-image-primary {
  opacity: 0;
  transform: scale(0.995);
  filter: brightness(1.02);
}

.sheet-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 16px 18px;
}

.sheet-card-featured .sheet-body {
  justify-content: space-between;
  padding: 20px 22px 22px 0;
}

.sheet-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sheet-badge,
.sheet-action {
  margin: 0;
  font-size: 0.66rem;
}

.sheet-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.sheet-badge-link {
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.sheet-badge-link:hover,
.sheet-badge-link:focus-visible {
  transform: translateY(-1px);
  background: var(--accent);
  color: #fff;
}

.sheet-action {
  color: var(--muted);
}

.sheet-action-link {
  text-decoration: none;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.sheet-action-link:hover,
.sheet-action-link:focus-visible {
  transform: translateY(-1px);
  color: var(--accent);
}

.sheet-prompt {
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.12;
  text-wrap: balance;
  transition: color 160ms ease;
}

.sheet-card-featured .sheet-prompt {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .home-support-grid {
    grid-template-columns: 1fr;
  }

  .library-hero {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 11ch;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(var(--content-width), calc(100% - 20px));
    padding-top: 20px;
  }

  .prompt-panel,
  .recipe-card,
  .content-panel,
  .sheet-card {
    border-radius: 22px;
  }

  .textarea-meta,
  .form-actions,
  .library-hero,
  .detail-grid,
  .detail-section-head,
  .section-heading,
  .sheet-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .home-support-grid,
  .detail-grid,
  .detail-copy-grid,
  .share-row,
  .scan-workbench,
  .scan-actions {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    grid-template-columns: 1fr;
  }

  .sheet-card-featured {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    justify-content: space-between;
  }

  .form-note {
    max-width: none;
    text-align: left;
  }

  .hero-footnote-list {
    gap: 8px;
  }

  .hero-footnote-pill {
    min-height: 38px;
  }

  .detail-download-button {
    width: 100%;
  }

  .topic-link-chip {
    width: 100%;
    justify-content: space-between;
  }

  .scan-stage {
    min-height: 240px;
  }

  #submit-button {
    width: 100%;
  }

  .sheet-card-featured .sheet-body {
    padding: 0 18px 20px;
  }

  .sheet-card-featured .sheet-image-wrap {
    padding: 18px 18px 0;
  }

  :root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .page-shell {
    width: min(1240px, calc(100% - 20px));
  }

  :root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .hero-copy {
    text-align: left;
  }

  :root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .hero-copy h1,
  :root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .subcopy,
  :root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .hero-stats,
  :root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .panel-description,
  :root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .textarea-meta,
  :root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .form-actions,
  :root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .status {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  :root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .hero-copy h1 {
    font-size: clamp(2.3rem, 10.5vw, 3.15rem);
  }

  :root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .hero-footnote {
    justify-items: start;
  }

  :root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .hero-footnote-list {
    justify-content: flex-start;
  }

  :root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .panel-heading {
    justify-items: start;
    text-align: left;
  }

  :root[data-preview="lime-green-coloring-book"] body[data-home-layout="single-column"] .prompt-panel {
    padding: 24px 22px 22px;
  }
}

/* ── Site footer ── */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding: 24px 0;
  border-top: 1px solid var(--preview-rule, var(--line));
}

.footer-tagline,
.footer-credit {
  font-family: "Geist Mono", "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--preview-muted, var(--muted));
}

.footer-brand-block {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.footer-label {
  font-family: "Geist Mono", "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--preview-lime, #b8e600);
}

.footer-credit {
  letter-spacing: 0.06em;
}

/* ── Breadcrumb ── */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--preview-navy, var(--accent));
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--line-strong);
}

/* ── Detail badges ── */

.detail-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: "Geist Mono", "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-badge-lime {
  background: rgba(184, 230, 0, 0.14);
  color: var(--preview-navy, var(--accent));
}

.detail-badge-muted {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--preview-rule, var(--line));
  color: var(--preview-muted, var(--muted));
}

/* ── Related sheets ── */

.related-section {
  margin-top: 42px;
  padding-top: 6px;
}

.related-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.related-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  font-family: "Geist Mono", "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--preview-navy, var(--accent));
}

.related-label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}

.related-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--preview-navy, var(--accent));
  text-decoration: none;
}

.related-link:hover {
  text-decoration: underline;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.related-grid .sheet-card {
  animation: rise-in 480ms ease both;
}

.related-grid .sheet-card:nth-child(1) { animation-delay: 0ms; }
.related-grid .sheet-card:nth-child(2) { animation-delay: 60ms; }
.related-grid .sheet-card:nth-child(3) { animation-delay: 120ms; }
.related-grid .sheet-card:nth-child(4) { animation-delay: 180ms; }

/* ── Ruled section headings ── */

.section-heading {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

/* ── Responsive: new elements ── */

@media (max-width: 760px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-header {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand-block {
    justify-items: center;
  }

  .breadcrumb {
    flex-wrap: wrap;
  }

  .detail-badges {
    flex-wrap: wrap;
  }

  .detail-copy-card,
  .detail-info-card {
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════
   HOMEPAGE LAYOUT
   ═══════════════════════════════════════════════════ */

/* ── Corner labels ── */

.v2-corner-label {
  display: none;
}

/* ── 1. HERO ── */

.v2-hero {
  text-align: center;
  padding: 64px 0 0;
  animation: rise-in 600ms ease both;
}

.v2-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 24px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(184, 230, 0, 0.13);
  color: var(--preview-navy, var(--accent));
  font-family: "Geist Mono", "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.v2-hero-kicker::before,
.v2-hero-kicker::after {
  display: none;
}

.v2-hero-headline {
  max-width: 14ch;
  margin: 0 auto;
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  line-height: 0.88;
  text-wrap: balance;
}

.v2-hero-accent {
  position: relative;
  display: inline-block;
}

.v2-hero-accent::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.02em;
  height: 0.28em;
  background: var(--preview-lime, #b8e600);
  border-radius: 6px;
  z-index: -1;
  opacity: 0.7;
  transform: rotate(-1.2deg);
}

.v2-hero-subtitle {
  max-width: 34rem;
  margin: 28px auto 0;
  color: var(--preview-muted, var(--muted));
  font-size: 1.1rem;
  line-height: 1.65;
}

.v2-stats-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.v2-stat-tile {
  min-width: 140px;
  padding: 18px 24px;
  border: 1.5px solid var(--preview-rule, var(--line));
  border-radius: 22px;
  background: var(--preview-card, rgba(255, 255, 255, 0.6));
  backdrop-filter: blur(12px);
  text-align: center;
  animation: rise-in 500ms ease both;
  transition: transform 200ms, border-color 200ms, box-shadow 200ms;
}

.v2-stat-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 230, 0, 0.4);
  box-shadow: 0 12px 28px rgba(11, 11, 18, 0.06);
}

.v2-stat-tile:nth-child(1) { animation-delay: 200ms; }
.v2-stat-tile:nth-child(2) { animation-delay: 280ms; }
.v2-stat-tile:nth-child(3) { animation-delay: 360ms; }

.v2-stat-tile .stat-label {
  display: block;
  margin-bottom: 6px;
  color: var(--preview-muted, var(--muted));
  font-size: 0.62rem;
}

.v2-stat-tile strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--preview-ink, var(--ink));
}

/* ── 2. GENERATOR CARD ── */

.v2-generator-card {
  margin-top: 56px;
  padding: 36px 40px 40px;
  border: 1.5px solid var(--preview-rule, var(--line));
  border-radius: 28px;
  background: var(--preview-card, var(--surface));
  box-shadow: 0 32px 64px rgba(11, 11, 18, 0.06);
  animation: rise-in 600ms 100ms ease both;
}

.v2-generator-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
  gap: 48px;
  align-items: start;
}

.v2-generator-copy {
  padding-top: 4px;
}

.v2-generator-copy .panel-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1;
}

.v2-generator-copy .panel-description {
  margin: 16px 0 0;
  color: var(--preview-muted, var(--muted));
  line-height: 1.6;
  font-size: 0.95rem;
}

.v2-generator-form-area .prompt-form {
  margin-top: 0;
}

/* ── 3. RECIPE SECTION ── */

.v2-recipe-section {
  margin-top: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  animation: rise-in 500ms 180ms ease both;
}

.v2-recipe-heading {
  display: none;
}

.v2-recipe-note {
  display: none;
}

.v2-recipe-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.v2-recipe-tile {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 20px 22px;
  border: 1.5px solid var(--preview-rule, var(--line));
  border-radius: 22px;
  background: var(--preview-card, rgba(255, 255, 255, 0.6));
  backdrop-filter: blur(8px);
  animation: rise-in 500ms ease both;
  transition: transform 200ms, border-color 200ms, box-shadow 200ms;
}

.v2-recipe-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 230, 0, 0.35);
  box-shadow: 0 14px 32px rgba(11, 11, 18, 0.06);
}

.v2-recipe-tile:nth-child(1) { animation-delay: 220ms; }
.v2-recipe-tile:nth-child(2) { animation-delay: 300ms; }
.v2-recipe-tile:nth-child(3) { animation-delay: 380ms; }

.v2-recipe-tile .recipe-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 48px;
  border-radius: 14px;
  background: var(--preview-lime, #b8e600);
  color: var(--preview-ink, #0b0b12);
  font-family: "Geist Mono", "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(184, 230, 0, 0.2);
}

.v2-recipe-tile .recipe-copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--preview-ink, var(--ink));
}

.v2-recipe-tile .recipe-copy p {
  margin: 0;
  color: var(--preview-muted, var(--muted));
  line-height: 1.45;
  font-size: 0.88rem;
}

/* ── 4. FEATURED SECTION ── */

.v2-featured-section {
  margin-top: 48px;
}

.v2-featured-section .v2-corner-label { display: none; }

.v2-featured-section .section-heading {
  margin-bottom: 20px;
}

/* ── 5. GALLERY SECTION ── */

.v2-gallery-section {
  margin-top: 48px;
}

.v2-gallery-section .v2-corner-label { display: none; }

.v2-gallery-section .section-heading {
  margin-bottom: 20px;
}

/* ── Staggered gallery entrance ── */

.v2-gallery-section .gallery-grid .sheet-card {
  animation: rise-in 500ms ease both;
}

.v2-gallery-section .gallery-grid .sheet-card:nth-child(1) { animation-delay: 0ms; }
.v2-gallery-section .gallery-grid .sheet-card:nth-child(2) { animation-delay: 50ms; }
.v2-gallery-section .gallery-grid .sheet-card:nth-child(3) { animation-delay: 100ms; }
.v2-gallery-section .gallery-grid .sheet-card:nth-child(4) { animation-delay: 150ms; }
.v2-gallery-section .gallery-grid .sheet-card:nth-child(5) { animation-delay: 200ms; }
.v2-gallery-section .gallery-grid .sheet-card:nth-child(6) { animation-delay: 250ms; }
.v2-gallery-section .gallery-grid .sheet-card:nth-child(7) { animation-delay: 300ms; }
.v2-gallery-section .gallery-grid .sheet-card:nth-child(8) { animation-delay: 350ms; }

/* ── Responsive ── */

@media (max-width: 960px) {
  .v2-generator-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .v2-recipe-tiles {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 760px) {
  .v2-hero {
    padding: 36px 0 0;
  }

  .v2-hero-headline {
    max-width: 12ch;
    font-size: clamp(2.6rem, 12vw, 3.6rem);
  }

  .v2-hero-subtitle {
    font-size: 0.96rem;
  }

  .v2-stats-row {
    gap: 8px;
  }

  .v2-stat-tile {
    min-width: 0;
    flex: 1;
    padding: 14px 16px;
    border-radius: 16px;
  }

  .v2-stat-tile strong {
    font-size: 1.3rem;
  }

  .v2-generator-card {
    margin-top: 36px;
    padding: 24px 22px 28px;
    border-radius: 22px;
  }

  .v2-generator-card::before {
    left: 22px;
    right: 22px;
  }

  .v2-generator-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .v2-recipe-section {
    margin-top: 18px;
  }

  .v2-recipe-tiles {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .v2-recipe-tile {
    padding: 16px 18px;
    border-radius: 16px;
  }

  .v2-recipe-tile .recipe-number {
    width: 42px;
    min-height: 42px;
    border-radius: 12px;
  }

  .v2-featured-section,
  .v2-gallery-section {
    margin-top: 36px;
  }
}
