/* YesReel Cinema Studio — shared styles
   Dark theatre: near-black, warm off-white, one accent (cinema gold). */

:root {
  --bg: #0a0a0c;
  --bg-2: #0e0e11;
  --panel: #131317;
  --panel-2: #19191e;
  --panel-3: #202027;
  --line: rgba(255, 240, 220, .08);
  --line-2: rgba(255, 240, 220, .15);
  --text: #f4efe6;
  --muted: #aaa398;
  --dim: #6e6960;
  --gold: #f5c542;
  --gold-2: #ffdc7e;
  --gold-ink: #1b1404;
  --gold-a: rgba(245, 197, 66, .12);
  --gold-b: rgba(245, 197, 66, .28);
  --green: #63d496;
  --amber: #f5a742;
  --red: #ff6a5c;
  --radius: 20px;
  --radius-s: 12px;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --tick: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='11' fill='%23f5c542'/><path d='M6.5 12.5l3.5 3.5 7.5-8' stroke='%231b1404' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--ui);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, video { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--gold-ink); }

/* Film grain — fixed, never scrolls, never catches clicks */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .075;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .96  0 0 0 0 .9  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain .9s steps(5) infinite;
}
@keyframes grain {
  0% { background-position: 0 0; }
  20% { background-position: -60px 40px; }
  40% { background-position: 50px -70px; }
  60% { background-position: -90px -20px; }
  80% { background-position: 30px 90px; }
  100% { background-position: 0 0; }
}

/* Focus */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--gold-ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Top bar ---------- */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
}
.topbar.solid { position: sticky; background: rgba(10, 10, 12, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand {
  display: inline-flex; align-items: baseline; gap: 10px;
  color: var(--text); text-decoration: none;
  font: 800 22px/1 var(--display); letter-spacing: .14em;
}
.brand-mark {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 16px var(--gold), 0 0 40px rgba(245, 197, 66, .5);
  align-self: center;
}
.brand small {
  font: 500 12px/1 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.topnav { display: flex; align-items: center; gap: 22px; }
.topnav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.topnav a:not(.btn):hover { color: var(--text); }
@media (max-width: 560px) {
  .brand small, .topnav a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: .01em; text-decoration: none;
  white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .3s, color .2s, opacity .2s;
}
.btn:active:not(:disabled) { transform: translateY(1px) scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .38; cursor: not-allowed; }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 8px 30px -10px rgba(245, 197, 66, .6); }
.btn-gold:hover:not(:disabled) { background: var(--gold-2); box-shadow: 0 10px 40px -8px rgba(245, 197, 66, .75); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .08); border-color: rgba(255, 240, 220, .3); }
.btn-lg { --h: 56px; padding: 0 30px; font-size: 16px; }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.linkbtn {
  background: none; border: 0; padding: 4px 2px; color: var(--muted);
  font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, .25);
}
.linkbtn:hover { color: var(--gold); text-decoration-color: var(--gold); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--ui); letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
}
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

.section-title {
  font: 800 clamp(40px, 6.4vw, 88px)/.92 var(--display);
  text-transform: uppercase; letter-spacing: -.005em;
}
.gold { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 980px);
  display: flex; align-items: flex-end;
  padding: 120px 0 clamp(56px, 9vh, 110px);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -3; background: radial-gradient(120% 90% at 70% 20%, #2a2112 0%, #0d0c0b 55%, var(--bg) 100%); }
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.6s var(--ease), transform 12s linear;
  filter: saturate(.85) contrast(1.05);
}
.hero.has-media .hero-media video, .hero.has-media .hero-media img { opacity: .42; transform: scale(1); }
.hero-beam {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    conic-gradient(from 180deg at 50% -12%, transparent 0deg 156deg, rgba(255, 236, 190, .10) 170deg, rgba(255, 244, 214, .16) 180deg, rgba(255, 236, 190, .10) 190deg, transparent 204deg 360deg),
    radial-gradient(60% 50% at 50% 0%, rgba(245, 197, 66, .14), transparent 70%);
  mix-blend-mode: screen;
  animation: flicker 7s ease-in-out infinite;
}
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: .9; } 50% { opacity: .78; } 53% { opacity: .95; } }
.hero-vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, .75) 0%, rgba(10, 10, 12, 0) 26%, rgba(10, 10, 12, 0) 45%, rgba(10, 10, 12, .9) 86%, var(--bg) 100%),
    radial-gradient(120% 100% at 50% 40%, transparent 50%, rgba(0, 0, 0, .65) 100%);
}
.hero-inner { position: relative; }
.hero-title {
  margin: 22px 0 26px;
  font: 800 clamp(58px, 12.5vw, 184px)/.84 var(--display);
  text-transform: uppercase; letter-spacing: -.01em;
  text-wrap: balance;
}
.hero-title span { display: block; }
.hero-title .gold { text-shadow: 0 0 60px rgba(245, 197, 66, .35); }
.hero-title span { animation: rise 1.1s var(--ease) both; }
.hero-title span + span { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.hero-sub {
  max-width: 620px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: #d9d2c5;
  animation: rise 1.1s .3s var(--ease) both;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; animation: rise 1.1s .42s var(--ease) both; }
.hero-facts {
  list-style: none; margin: 46px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 34px;
  color: var(--muted); font-size: 14px;
  animation: rise 1.1s .55s var(--ease) both;
}
.hero-facts b { display: block; font: 700 26px/1.1 var(--display); color: var(--text); letter-spacing: .02em; }
@media (max-width: 480px) {
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ---------- Now showing ---------- */
.showing { padding: clamp(40px, 7vw, 90px) 0 clamp(30px, 5vw, 60px); }
.showing-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; margin-bottom: 26px; }
.marquee {
  position: relative; display: inline-block;
  padding: 14px 26px 12px;
  border: 1px solid var(--gold-b); border-radius: 10px;
  background: linear-gradient(180deg, rgba(245, 197, 66, .08), rgba(245, 197, 66, .02));
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 4px;
  background: radial-gradient(circle, var(--gold-2) 0 1.6px, transparent 2.2px) 0 0 / 14px 4px repeat-x;
  filter: drop-shadow(0 0 4px var(--gold));
  animation: bulbs 1.4s steps(2) infinite;
}
.marquee::before { top: 4px; }
.marquee::after { bottom: 4px; animation-delay: -.7s; }
@keyframes bulbs { 50% { opacity: .45; } }
.marquee h2 { font: 800 clamp(28px, 4vw, 44px)/1 var(--display); text-transform: uppercase; letter-spacing: .08em; }
.showing-head p { color: var(--muted); max-width: 420px; flex: 1 1 260px; }
.strip-nav { display: flex; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2);
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.icon-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .09); border-color: var(--gold-b); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn svg { width: 18px; height: 18px; }
.strip {
  display: flex; gap: clamp(12px, 1.6vw, 22px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 8px var(--gutter) 22px;
  scrollbar-width: thin; scrollbar-color: #333 transparent;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
}
@media (min-width: 1432px) { .strip { max-width: 100%; padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); } }
.strip > * { flex: 0 0 auto; scroll-snap-align: start; }
.reel-card {
  display: block; position: relative;
  width: clamp(250px, 30vw, 420px);
  padding: 0; border: 0; background: none; text-align: left;
  border-radius: 16px;
}
.reel-poster {
  display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 16px; background: var(--panel-2);
  box-shadow: 0 0 0 1px var(--line), 0 20px 50px -24px rgba(0, 0, 0, .9);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.reel-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; filter: brightness(.86); }
.reel-poster::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .7));
}
.reel-play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10, 10, 12, .55); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .35s var(--ease), background .3s, border-color .3s;
}
.reel-play svg { width: 22px; height: 22px; margin-left: 3px; fill: var(--text); }
.reel-len {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  font: 700 13px/1 var(--display); letter-spacing: .12em;
  padding: 6px 9px; border-radius: 6px; background: rgba(0, 0, 0, .6); color: var(--gold);
}
.reel-meta { display: block; padding: 14px 4px 0; }
.reel-meta b { display: block; font: 700 24px/1.05 var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--text); }
.reel-meta span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.reel-card:hover .reel-poster, .reel-card:focus-visible .reel-poster { box-shadow: 0 0 0 1px var(--gold-b), 0 26px 60px -20px rgba(245, 197, 66, .35); transform: translateY(-3px); }
.reel-card:hover img, .reel-card:focus-visible img { transform: scale(1.05); filter: brightness(1); }
.reel-card:hover .reel-play, .reel-card:focus-visible .reel-play { transform: scale(1.1); background: var(--gold); border-color: var(--gold); }
.reel-card:hover .reel-play svg, .reel-card:focus-visible .reel-play svg { fill: var(--gold-ink); }
.reel-card:focus-visible { outline-offset: 6px; border-radius: 18px; }

/* ---------- Dialogs (lightbox, picker, review) ---------- */
dialog {
  padding: 0; border: 0; background: transparent; color: var(--text);
  max-width: 100vw; max-height: 100vh;
}
dialog::backdrop { background: rgba(4, 4, 6, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
dialog[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }
.lightbox { width: min(1280px, 100vw - 24px); }
.lightbox-inner { position: relative; }
.lightbox video { width: 100%; max-height: calc(100vh - 110px); background: #000; border-radius: 14px; box-shadow: 0 40px 120px -20px rgba(245, 197, 66, .25), 0 0 0 1px var(--line); }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lightbox-bar h3 { font: 700 26px/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-dialog {
  width: min(760px, 100vw - 24px);
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 40px 120px -30px #000;
}
.panel-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-dialog header h3 { font: 700 24px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.panel-dialog .dialog-body { padding: 20px; max-height: min(70vh, 640px); overflow: auto; }

/* ---------- Creator ---------- */
.creator { position: relative; padding: clamp(60px, 9vw, 120px) 0 clamp(60px, 8vw, 110px); }
.creator::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 520px; pointer-events: none; z-index: -1;
  background: radial-gradient(50% 60% at 50% 0%, rgba(245, 197, 66, .08), transparent 70%);
}
.creator-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 860px; }
.creator-head > p { color: var(--muted); font-size: 18px; max-width: 640px; }
.how { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.how li { display: flex; align-items: center; gap: 8px; }
.how li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.creator-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.steps { display: grid; gap: 22px; min-width: 0; }

/* Progress rail */
.rail { position: sticky; top: 24px; }
.rail ol { list-style: none; margin: 0; padding: 0; position: relative; }
.rail ol::before, .rail-fill {
  content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px;
  background: var(--line-2); border-radius: 2px;
}
.rail-fill { background: linear-gradient(var(--gold), var(--gold-2)); height: calc((100% - 40px) * var(--f, 0)); bottom: auto; transition: height .6s var(--ease), width .6s var(--ease); box-shadow: 0 0 12px var(--gold); list-style: none; }
.rail li.rs + li.rs { margin-top: 8px; }
.rail-btn {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 6px 10px 6px 0; border: 0; background: none; text-align: left;
  color: var(--dim); border-radius: 12px;
  transition: color .25s;
}
.rail-dot {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 17px/1 var(--display); letter-spacing: .04em;
  background: var(--bg); border: 2px solid var(--line-2); color: var(--dim);
  transition: all .35s var(--ease);
}
.rail-txt { display: grid; line-height: 1.2; min-width: 0; }
.rail-txt b { font: 700 19px/1.1 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.rail-txt small { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-btn.open { color: var(--text); }
.rail-btn.open .rail-dot { border-color: var(--gold-b); color: var(--text); }
.rail-btn.current .rail-dot { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 6px var(--gold-a), 0 0 22px rgba(245, 197, 66, .35); }
.rail-btn.done .rail-dot { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.rail-btn.done small { color: var(--muted); }
.rail-btn:disabled { cursor: not-allowed; }
.rail-btn:not(:disabled):hover b { color: var(--gold); }

@media (max-width: 900px) {
  .creator-grid { grid-template-columns: minmax(0, 1fr); }
  .rail {
    top: 0; z-index: 20; margin: 0 calc(var(--gutter) * -1);
    padding: 10px var(--gutter);
    background: rgba(10, 10, 12, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .rail ol { display: flex; justify-content: space-between; }
  .rail ol::before, .rail-fill { left: 20px; right: 20px; top: 19px; bottom: auto; width: auto; height: 2px; }
  .rail-fill { right: auto; width: calc((100% - 40px) * var(--f, 0)); height: 2px; }
  .rail li.rs + li.rs { margin-top: 0; }
  .rail-btn { flex-direction: column; gap: 4px; padding: 0; width: auto; }
  .rail-txt small { display: none; }
  .rail-txt b { font-size: 12px; letter-spacing: .08em; }
  .rail-dot { width: 38px; height: 38px; font-size: 15px; }
}
@media (max-width: 420px) {
  .rail-txt { display: none; }
  .rail-dot { width: 34px; height: 34px; }
  .rail ol::before, .rail-fill { top: 17px; left: 17px; right: 17px; }
}

/* Step cards */
.step {
  position: relative; min-width: 0;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 36px);
  scroll-margin-top: 90px;
  transition: border-color .4s, box-shadow .4s, opacity .4s;
}
.step.current { border-color: rgba(245, 197, 66, .22); box-shadow: 0 30px 80px -50px rgba(245, 197, 66, .35); }
.step.locked { opacity: .45; }
.step.locked .step-body, .step.locked .step-foot { filter: grayscale(1) blur(.4px); pointer-events: none; user-select: none; max-height: 180px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }
.step-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 18px; align-items: start; margin-bottom: 26px; }
.step-num {
  font: 800 clamp(44px, 5vw, 64px)/.8 var(--display);
  color: transparent; -webkit-text-stroke: 1.4px var(--gold-b);
  transition: color .4s, -webkit-text-stroke-color .4s;
}
.step.current .step-num, .step.complete .step-num { -webkit-text-stroke-color: var(--gold); }
.step.complete .step-num { color: var(--gold); }
.step-head h3 { font: 800 clamp(30px, 3.4vw, 42px)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.step-sub { margin-top: 8px; color: var(--muted); max-width: 640px; }
.step-state {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; color: var(--dim); border: 1px solid var(--line-2);
  white-space: nowrap;
}
.step-state svg { width: 12px; height: 12px; }
.step.complete .step-state { color: var(--gold-ink); background: var(--gold); border-color: var(--gold); }
@media (max-width: 560px) {
  .step-head { grid-template-columns: auto minmax(0, 1fr); }
  .step-state { grid-column: 1 / -1; justify-self: start; }
}
.step-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 18px;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line);
}
.step-hint { color: var(--muted); font-size: 14px; margin-right: auto; }

/* Form bits */
.field { display: grid; gap: 7px; min-width: 0; }
.field > span, .label {
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.input, .textarea, .select {
  width: 100%; min-width: 0;
  padding: 13px 15px; border-radius: var(--radius-s);
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line-2);
  color: var(--text); font-size: 16px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:hover, .textarea:hover { border-color: rgba(255, 240, 220, .26); }
.input:focus, .textarea:focus { border-color: var(--gold); background: rgba(245, 197, 66, .04); box-shadow: 0 0 0 4px var(--gold-a); outline: none; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fields .wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.help { font-size: 13px; color: var(--dim); }
.error-msg {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius-s);
  background: rgba(255, 106, 92, .08); border: 1px solid rgba(255, 106, 92, .35); color: #ffc2bb; font-size: 14px;
}
.error-msg[hidden] { display: none; }

/* Scan bar */
.scanbar { display: flex; gap: 10px; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }
.scanbar:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-a); }
.scanbar .input { border: 0; background: transparent; box-shadow: none; padding: 10px 14px; font-size: 17px; }
.scanbar .input:focus { box-shadow: none; background: transparent; }
.scanbar-ico { display: grid; place-items: center; padding-left: 10px; color: var(--dim); }
.scanbar-ico svg { width: 20px; height: 20px; }
@media (max-width: 520px) {
  .scanbar { flex-wrap: wrap; border-radius: 18px; }
  .scanbar .btn { width: 100%; }
  .scanbar-ico { display: none; }
}
.scan-alt { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }

/* Scanning animation */
.scanning { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 24px; padding: 24px; border-radius: var(--radius); background: rgba(245, 197, 66, .035); border: 1px solid var(--gold-a); }
.scanning[hidden] { display: none; }
.fakepage { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line-2); padding: 26px 16px 16px; }
.fakepage::before { content: ""; position: absolute; top: 9px; left: 12px; width: 34px; height: 6px; background: radial-gradient(circle, #444 0 3px, transparent 3.5px) 0 0 / 12px 6px repeat-x; }
.fakepage i { display: block; height: 8px; border-radius: 4px; background: #2a2a31; margin-bottom: 9px; }
.fakepage i:nth-child(1) { width: 55%; height: 14px; background: #34343c; }
.fakepage i:nth-child(2) { width: 100%; height: 44px; border-radius: 6px; background: linear-gradient(110deg, #2b261a, #33302a); }
.fakepage i:nth-child(3) { width: 80%; }
.fakepage i:nth-child(4) { width: 64%; }
.fakepage i:nth-child(5) { width: 72%; }
.fakepage .beam {
  position: absolute; left: 0; right: 0; height: 40%; top: -40%;
  background: linear-gradient(180deg, transparent, rgba(245, 197, 66, .22) 80%, var(--gold) 100%);
  border-bottom: 1px solid var(--gold); box-shadow: 0 8px 24px rgba(245, 197, 66, .45);
  animation: sweep 1.8s cubic-bezier(.5, 0, .5, 1) infinite;
}
@keyframes sweep { to { top: 100%; } }
.scan-msg { font: 700 clamp(26px, 3vw, 36px)/1.05 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.scan-msg .dots::after { content: ""; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.scan-steps { list-style: none; padding: 0 4px 0 0; margin: 14px 0 0; display: grid; gap: 7px; max-height: 196px; overflow: auto; scrollbar-width: thin; color: var(--dim); font-size: 14px; }
.scan-steps li { display: flex; gap: 10px; align-items: center; transition: color .3s; }
.scan-steps li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.scan-steps li.on { color: var(--text); }
.scan-steps li.on { animation: rise .45s var(--ease) both; }
.scan-steps li.on::before { width: 14px; height: 14px; border: 0; background: var(--tick) no-repeat center / contain; }
@media (max-width: 640px) { .scanning { grid-template-columns: minmax(0, 1fr); } .fakepage { max-width: 260px; } }

/* Found panel */
.found { margin-top: 28px; display: grid; gap: 28px; animation: rise .7s var(--ease) both; }
.found[hidden] { display: none; }
.sub-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.sub-head h4 { font: 700 24px/1 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.sub-head .tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.found-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 22px; border-radius: 16px; background: rgba(255, 255, 255, .02); border: 1px solid var(--line); }
@media (max-width: 720px) { .found-grid { grid-template-columns: minmax(0, 1fr); } }
.brand-col { display: grid; gap: 18px; align-content: start; }
.logo-box {
  aspect-ratio: 16 / 10; border-radius: 12px; display: grid; place-items: center; padding: 18px;
  background: repeating-conic-gradient(#1c1c22 0 25%, #16161b 0 50%) 0 0 / 18px 18px; border: 1px solid var(--line);
}
.logo-box img { max-height: 100%; max-width: 100%; object-fit: contain; }
.logo-box .initials { font: 800 54px/1 var(--display); color: var(--gold); letter-spacing: .04em; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatch { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 4px 12px rgba(0, 0, 0, .5); cursor: pointer; transition: transform .2s var(--ease); }
.swatch:hover { transform: scale(1.08); }
.swatch:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.swatch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
.swatch-add { width: 38px; height: 38px; border-radius: 50%; border: 1.5px dashed var(--line-2); background: none; color: var(--muted); font-size: 20px; line-height: 1; }
.swatch-add:hover { border-color: var(--gold); color: var(--gold); }
.rating { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 16px; }
.claims { display: flex; flex-wrap: wrap; gap: 6px; }
.claim { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--gold-a); color: #f3dea3; }

/* Masonry image picker */
.count-badge { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--gold-a); border: 1px solid var(--gold-b); color: #f3dea3; font-size: 13px; }
.count-badge b { font: 700 18px/1 var(--display); color: var(--gold); }
.masonry { columns: 4 170px; column-gap: 10px; }
.pic {
  position: relative; display: block; width: 100%; margin: 0 0 10px; padding: 0;
  break-inside: avoid; border: 0; border-radius: 12px; overflow: hidden; background: var(--panel-2);
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .25s, transform .25s var(--ease);
}
.pic img { width: 100%; height: auto; filter: grayscale(.85) brightness(.5); transition: filter .35s var(--ease), transform .6s var(--ease); }
.pic[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--gold), 0 12px 30px -14px rgba(245, 197, 66, .6); }
.pic[aria-pressed="true"] img { filter: none; }
.pic:hover img { transform: scale(1.03); }
.pic:focus-visible { outline-offset: 2px; border-radius: 12px; }
.pic-check {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; border: 2px solid rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .35);
  transition: all .25s var(--ease);
}
.pic-check svg { width: 14px; height: 14px; opacity: 0; transform: scale(.4); transition: all .25s var(--ease); }
.pic[aria-pressed="true"] .pic-check { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.pic[aria-pressed="true"] .pic-check svg { opacity: 1; transform: none; }
.pic-tag { position: absolute; left: 8px; bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; background: rgba(0, 0, 0, .7); color: var(--muted); }
.empty-note { color: var(--dim); font-size: 14px; padding: 18px; border: 1px dashed var(--line-2); border-radius: 12px; text-align: center; }

/* Drop zone */
.drop {
  position: relative; border-radius: 16px; border: 1.5px dashed var(--line-2);
  background: rgba(255, 255, 255, .015);
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.drop:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-a); }
.drop.over { border-color: var(--gold); background: var(--gold-a); transform: scale(1.01); }
.drop-label { display: flex; align-items: center; gap: 18px; padding: 24px; cursor: pointer; }
.drop-ico { flex: none; width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-a); color: var(--gold); }
.drop-ico svg { width: 26px; height: 26px; }
.drop-label b { display: block; font: 700 22px/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.drop-label span { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; }
.drop-label u { color: var(--gold); text-underline-offset: 3px; }
.uploads { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.uploads:empty { display: none; }
.upl { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--panel-2); box-shadow: 0 0 0 1px var(--gold-b); animation: pop .3s var(--ease); }
.upl img, .upl video { width: 100%; height: 100%; object-fit: cover; }
.upl-kind { position: absolute; left: 6px; bottom: 6px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 6px; border-radius: 4px; background: rgba(0, 0, 0, .7); color: var(--gold); }
.upl-x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .72); color: #fff; transition: background .2s; }
.upl-x:hover, .upl-x:focus-visible { background: var(--red); }
.upl-x svg { width: 14px; height: 14px; }

/* Chips (radio-backed) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font-weight: 500; font-size: 15px; color: #ddd6c9;
  transition: all .25s var(--ease);
}
.chip span svg { width: 17px; height: 17px; opacity: .75; }
.chip:hover span { border-color: rgba(255, 240, 220, .3); background: rgba(255, 255, 255, .06); }
.chip input:checked + span { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); box-shadow: 0 8px 26px -10px rgba(245, 197, 66, .7); font-weight: 600; }
.chip input:checked + span svg { opacity: 1; }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
legend.label { padding: 0; margin-bottom: 12px; }
.stack { display: grid; gap: 22px; }

/* Length cards */
.lengths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; border: 0; padding: 0; margin: 0; min-width: 0; }
@media (max-width: 860px) { .lengths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.len { position: relative; }
.len input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 2; }
.len-card {
  display: grid; gap: 14px; height: 100%;
  padding: 22px 20px 20px; border-radius: 16px;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line-2);
  transition: all .3s var(--ease);
}
.len:hover .len-card { border-color: rgba(255, 240, 220, .3); transform: translateY(-2px); }
.len input:checked + .len-card { border-color: var(--gold); background: linear-gradient(180deg, rgba(245, 197, 66, .12), rgba(245, 197, 66, .02)); box-shadow: 0 20px 50px -26px rgba(245, 197, 66, .7), inset 0 0 0 1px var(--gold); }
.len input:focus-visible + .len-card { outline: 2px solid var(--gold); outline-offset: 3px; }
.len-sec { font: 800 clamp(56px, 6vw, 80px)/.8 var(--display); letter-spacing: -.01em; }
.len-sec small { font-size: .34em; letter-spacing: .1em; color: var(--muted); margin-left: 3px; }
.len input:checked + .len-card .len-sec { color: var(--gold); }
.len-tag { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.beatbar { display: flex; gap: 3px; height: 8px; }
.beatbar i { flex: 1; border-radius: 2px; background: var(--line-2); transition: background .3s; }
.len input:checked + .len-card .beatbar i { background: var(--gold); }
.len-meta { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.len-meta > span { display: flex; justify-content: space-between; gap: 6px; }
.len-meta b { color: var(--text); font-weight: 600; }
.len-ribbon { position: absolute; top: -10px; right: 14px; z-index: 3; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 4px 8px; border-radius: 5px; background: var(--gold); color: var(--gold-ink); pointer-events: none; }

/* Segmented control */
.seg { display: inline-flex; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); position: relative; border-width: 1px; margin: 0; min-width: 0; max-width: 100%; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); transition: all .3s var(--ease); white-space: nowrap; }
.seg input:checked + span { background: var(--text); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 440px) { .seg { display: flex; } .seg label { flex: 1; } .seg span { justify-content: center; padding: 0 10px; font-size: 14px; width: 100%; } }

.script-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.gen-empty { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 40px 20px; border-radius: 16px; border: 1px dashed var(--line-2); background: rgba(255, 255, 255, .015); }
.gen-empty p { color: var(--muted); max-width: 440px; }

/* Storyboard */
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.beat {
  display: grid; grid-template-columns: 30px 128px minmax(0, 1fr); gap: 16px;
  padding: 14px 16px 14px 8px; border-radius: 16px;
  background: var(--panel-2); border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s, transform .2s var(--ease), opacity .2s;
}
.beat.new { animation: rise .5s var(--ease) both; }
.beat:focus-within { border-color: var(--line-2); }
.beat.dragging { border-color: var(--gold); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9), 0 0 0 1px var(--gold); transform: scale(1.01); z-index: 2; position: relative; opacity: .96; }
.beat-handle {
  align-self: stretch; width: 30px; border: 0; border-radius: 8px; background: none; color: var(--dim);
  display: grid; place-items: center; cursor: grab; touch-action: none;
}
.beat-handle:hover { color: var(--gold); background: rgba(255, 255, 255, .04); }
.beat-handle:active { cursor: grabbing; }
.beat-handle svg { width: 16px; height: 16px; }
.beat-left { display: grid; gap: 8px; align-content: start; }
.beat-num { font: 800 34px/.9 var(--display); color: var(--gold); letter-spacing: .02em; }
.beat-thumb {
  position: relative; width: 128px; aspect-ratio: 16 / 10; padding: 0; border-radius: 10px; overflow: hidden;
  border: 1px dashed var(--line-2); background: rgba(255, 255, 255, .025); color: var(--dim);
  display: grid; place-items: center; font-size: 12px; text-align: center;
  transition: border-color .2s;
}
.beat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.beat-thumb.has { border-style: solid; border-color: var(--line); }
.beat-thumb:hover { border-color: var(--gold); }
.beat-thumb .swap { position: absolute; inset: auto 0 0 0; padding: 4px; font-size: 11px; font-weight: 600; background: rgba(0, 0, 0, .7); color: var(--text); opacity: 0; transition: opacity .2s; }
.beat-thumb:hover .swap, .beat-thumb:focus-visible .swap { opacity: 1; }
.beat-main { display: grid; gap: 10px; min-width: 0; }
.beat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kind {
  appearance: none; -webkit-appearance: none;
  padding: 5px 28px 5px 12px; border-radius: 999px; border: 1px solid currentColor;
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' stroke='%23aaa398' stroke-width='1.5' fill='none'/></svg>") no-repeat right 10px center;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
.kind option { background: var(--panel); color: var(--text); }
.kind-real { color: var(--gold); }
.kind-ai { color: #c3a7ff; }
.kind-map { color: #6fd6d0; }
.kind-proof { color: var(--green); }
.kind-lockup { color: #f0e9dd; }
.beat-del { width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: var(--dim); display: grid; place-items: center; }
.beat-del:hover, .beat-del:focus-visible { color: var(--red); background: rgba(255, 106, 92, .1); }
.beat-del svg { width: 16px; height: 16px; }
.mini { display: grid; gap: 4px; }
.mini > span { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.mini .textarea { min-height: 0; padding: 9px 12px; font-size: 15px; resize: none; overflow: hidden; }
.mini .vo { font-size: 16px; color: #fff6e6; }
.meter { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.meter-bar { flex: 1; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; max-width: 260px; }
.meter-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--green); transition: width .3s var(--ease), background .3s; }
.meter[data-level="amber"] .meter-bar i { background: var(--amber); }
.meter[data-level="red"] .meter-bar i { background: var(--red); }
.meter[data-level="red"] .meter-txt { color: var(--red); }
.meter[data-level="amber"] .meter-txt { color: var(--amber); }
.meter-txt { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) {
  .beat { grid-template-columns: 26px minmax(0, 1fr); padding: 12px 12px 12px 4px; gap: 10px; }
  .beat-left { grid-column: 2; display: flex; align-items: center; gap: 14px; }
  .beat-main { grid-column: 2; }
  .beat-handle { grid-row: 1 / span 2; }
  .beat-thumb { width: 104px; }
}
.board-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.total {
  display: grid; gap: 10px; padding: 18px 20px; border-radius: 16px;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line);
}
.total-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.total-num { font: 800 40px/1 var(--display); font-variant-numeric: tabular-nums; }
.total-num small { font-size: .45em; color: var(--muted); letter-spacing: .06em; }
.total-bar { position: relative; height: 8px; border-radius: 4px; background: var(--line); }
.total-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--green); transition: width .4s var(--ease), background .3s; max-width: 100%; }
.total-bar b { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--text); border-radius: 1px; }
.total[data-level="amber"] .total-bar i { background: var(--amber); }
.total[data-level="red"] .total-bar i { background: var(--red); }
.total[data-level="amber"] .total-verdict { color: var(--amber); }
.total[data-level="red"] .total-verdict { color: var(--red); }
.total-verdict { font-size: 14px; color: var(--green); font-weight: 500; }

/* Skeleton / shimmer */
.skel { height: 118px; border-radius: 16px; background: linear-gradient(100deg, var(--panel-2) 30%, #26241f 50%, var(--panel-2) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.writing { display: flex; align-items: center; gap: 12px; color: var(--gold); font: 700 22px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.pen { width: 22px; height: 22px; animation: scribble .6s ease-in-out infinite alternate; }
@keyframes scribble { from { transform: translate(-3px, 1px) rotate(-8deg); } to { transform: translate(3px, -1px) rotate(6deg); } }

/* Spinner */
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot .8s linear infinite; flex: none; }
@keyframes rot { to { transform: rotate(360deg); } }

/* Voices */
.voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.voice { position: relative; }
.voice input { position: absolute; opacity: 0; margin: 0; }
.voice label {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 14px; align-items: center;
  padding: 16px 64px 16px 16px; border-radius: 16px; min-height: 100%;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line-2); cursor: pointer;
  transition: all .25s var(--ease);
}
.voice label:hover { border-color: rgba(255, 240, 220, .3); }
.voice input:checked + label { border-color: var(--gold); background: linear-gradient(180deg, rgba(245, 197, 66, .1), rgba(245, 197, 66, .02)); box-shadow: inset 0 0 0 1px var(--gold); }
.voice input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 3px; }
.voice-av { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 800 20px/1 var(--display); color: var(--gold-ink); background: linear-gradient(135deg, var(--gold-2), #c98a1c); }
.voice-name { font: 700 22px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.voice-meta { font-size: 12px; color: var(--muted); }
.voice-blurb { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin-top: 8px; }
.voice .play {
  position: absolute; top: 16px; right: 14px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05);
  transition: all .25s var(--ease);
}
.voice .play:hover { border-color: var(--gold); color: var(--gold); }
.voice .play svg { width: 16px; height: 16px; }
.voice .play .eq { display: none; }
.voice .play.playing { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.voice .play.playing .ic-play { display: none; }
.voice .play.playing .eq { display: flex; }
.eq { gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: currentColor; border-radius: 1px; animation: eq .7s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.3s; }
.eq i:nth-child(3) { animation-delay: -.55s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }

/* Switches */
.switches { display: grid; gap: 10px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); cursor: pointer; }
.switch.disabled { opacity: .5; cursor: not-allowed; }
.switch-txt b { display: block; font-weight: 600; }
.switch-txt small { color: var(--muted); font-size: 13px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.track { position: relative; flex: none; width: 52px; height: 30px; border-radius: 999px; background: #34343b; transition: background .3s; }
.track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: transform .3s var(--ease); }
.switch input:checked + .track { background: var(--gold); }
.switch input:checked + .track::after { transform: translateX(22px); }
.switch input:focus-visible + .track { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Summary + create */
.summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 0; }
@media (max-width: 640px) { .summary { grid-template-columns: minmax(0, 1fr); } }
.summary > div { background: var(--bg-2); padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; min-width: 0; }
.summary .dt { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.summary .dd { margin: 0; grid-column: 1; font-size: 15px; overflow-wrap: anywhere; }
.summary .dd small { display: block; color: var(--muted); font-size: 13px; }
.summary .linkbtn { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.create-box { display: grid; gap: 18px; margin-top: 26px; }
.code-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.code-row .field { flex: 1 1 240px; max-width: 360px; }
.btn-premiere {
  position: relative; --h: 68px; padding: 0 40px; font-size: 18px; font-weight: 700; letter-spacing: .02em;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink);
  box-shadow: 0 0 0 1px rgba(255, 220, 126, .6), 0 12px 50px -8px rgba(245, 197, 66, .7), 0 0 90px -10px rgba(245, 197, 66, .45);
  overflow: hidden;
}
.btn-premiere::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%) -150% 0 / 200% 100% no-repeat; animation: sheen 3.2s ease-in-out infinite; }
@keyframes sheen { 0%, 55% { background-position: -150% 0; } 100% { background-position: 250% 0; } }
.btn-premiere.is-next { animation: glow 2.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 1px rgba(255, 220, 126, .8), 0 14px 60px -6px rgba(245, 197, 66, .9), 0 0 130px -10px rgba(245, 197, 66, .6); } }
.btn-premiere:disabled::before { display: none; }
.btn-premiere:hover:not(:disabled) { transform: translateY(-2px); }
@media (max-width: 520px) { .btn-premiere { width: 100%; padding: 0 20px; } }
.upload-prog { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.upload-prog[hidden] { display: none; }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .3s; box-shadow: 0 0 12px var(--gold); }

.recent { margin-top: 40px; }
.recent[hidden] { display: none; }
.recent ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.recent a { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-size: 14px; }
.recent a:hover { border-color: var(--gold); }
.recent a small { color: var(--muted); }

/* Picker dialog grid */
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.picker-grid button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--panel-2); box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.picker-grid button img { width: 100%; height: 100%; object-fit: cover; }
.picker-grid button[aria-current="true"] { box-shadow: 0 0 0 2px var(--gold); }
.picker-grid button:hover { box-shadow: 0 0 0 2px var(--gold-b); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 150; transform: translate(-50%, 20px);
  padding: 12px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .8); opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease); max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 26px 0 34px; color: var(--dim); font-size: 12.5px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot b { color: var(--muted); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }

/* ================= Project page ================= */
.proj { padding: clamp(28px, 5vw, 60px) 0 80px; position: relative; }
.proj::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 600px; z-index: -1; pointer-events: none;
  background:
    conic-gradient(from 180deg at 50% -20%, transparent 0deg 160deg, rgba(255, 236, 190, .07) 175deg, rgba(255, 244, 214, .1) 180deg, rgba(255, 236, 190, .07) 185deg, transparent 200deg 360deg),
    radial-gradient(50% 60% at 50% 0%, rgba(245, 197, 66, .09), transparent 70%);
}
.proj-head { display: grid; gap: 14px; margin-bottom: 34px; }
.proj-title { font: 800 clamp(44px, 8vw, 110px)/.88 var(--display); text-transform: uppercase; letter-spacing: -.005em; overflow-wrap: anywhere; }
.proj-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 14px; align-items: center; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--gold-a); color: var(--gold); border: 1px solid var(--gold-b);
}
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: blink 1.4s ease-in-out infinite; }
.status-pill[data-s="done"] { background: rgba(99, 212, 150, .1); color: var(--green); border-color: rgba(99, 212, 150, .35); }
.status-pill[data-s="done"]::before { animation: none; }
.status-pill[data-s="error"] { background: rgba(255, 106, 92, .1); color: var(--red); border-color: rgba(255, 106, 92, .35); }
.status-pill[data-s="error"]::before { animation: none; }
.status-pill[data-s="loading"] { color: var(--muted); background: rgba(255, 255, 255, .04); border-color: var(--line-2); }

.overall { display: grid; gap: 12px; padding: 22px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); margin-bottom: 26px; }
.overall-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.overall-pct { font: 800 54px/.9 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.overall-pct small { font-size: .4em; color: var(--muted); letter-spacing: .1em; margin-left: 8px; text-transform: uppercase; }
.overall-time { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.overall-time b { display: block; color: var(--text); font: 700 24px/1.1 var(--display); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.overall .bar { height: 8px; border-radius: 4px; }
.overall .bar i { transition: width .8s var(--ease); }
.leave { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: 14px; }
.leave svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.leave > span:first-of-type { flex: 1 1 220px; }
.conn { color: var(--amber); font-size: 13px; }
.conn[hidden] { display: none; }

.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; counter-reset: st; }
@media (max-width: 1100px) { .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stages { grid-template-columns: minmax(0, 1fr); } }
.stage {
  position: relative; display: grid; gap: 12px; align-content: start;
  padding: 18px; border-radius: 16px; min-width: 0;
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color .4s, opacity .4s, background .4s;
  counter-increment: st; overflow: hidden;
}
.stage[data-status="waiting"] { opacity: .5; }
.stage[data-status="running"] { border-color: var(--gold-b); background: linear-gradient(180deg, rgba(245, 197, 66, .07), var(--panel) 60%); }
.stage[data-status="running"]::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, rgba(245, 197, 66, .12) 50%, transparent 80%) 0 0 / 250% 100% no-repeat;
  animation: shimmer 2.2s linear infinite;
}
.stage[data-status="running"]::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent) 0 0 / 50% 100% no-repeat; animation: scanline 1.6s linear infinite; }
@keyframes scanline { from { background-position: -100% 0; } to { background-position: 200% 0; } }
.stage[data-status="error"] { border-color: rgba(255, 106, 92, .5); background: linear-gradient(180deg, rgba(255, 106, 92, .08), var(--panel) 60%); }
.stage-top { display: flex; align-items: center; gap: 12px; }
.stage-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: var(--muted); transition: all .4s; }
.stage-ico svg { width: 22px; height: 22px; }
.stage[data-status="running"] .stage-ico { background: var(--gold-a); color: var(--gold); animation: breathe 1.6s ease-in-out infinite; }
.stage[data-status="done"] .stage-ico { background: var(--gold); color: var(--gold-ink); }
.stage[data-status="error"] .stage-ico { background: rgba(255, 106, 92, .15); color: var(--red); }
@keyframes breathe { 50% { box-shadow: 0 0 0 6px rgba(245, 197, 66, .08), 0 0 24px rgba(245, 197, 66, .3); } }
.stage-name { min-width: 0; }
.stage-name small { display: block; font: 600 11px/1 var(--ui); letter-spacing: .16em; color: var(--dim); }
.stage-name small::before { content: "0" counter(st) " · "; }
.stage-name b { display: block; font: 700 24px/1.05 var(--display); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.stage-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.stage-status .t { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.stage[data-status="running"] .stage-status .s { color: var(--gold); }
.stage[data-status="done"] .stage-status .s { color: var(--green); }
.stage[data-status="error"] .stage-status .s { color: var(--red); }
.stage-blurb { font-size: 13px; color: var(--dim); }
.stage-note { font-size: 13px; color: #d7cfc1; overflow-wrap: anywhere; }
.stage[data-status="error"] .stage-note { color: #ffc2bb; }
.stage-note:empty { display: none; }
.thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #333 transparent; padding-bottom: 2px; }
.thumbs:empty { display: none; }
.thumbs > * { flex: 0 0 auto; width: 76px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--panel-2); box-shadow: 0 0 0 1px var(--line); animation: pop .45s var(--ease) both; }

.log { margin-top: 26px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.log summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; border-radius: 16px; }
.log summary::-webkit-details-marker { display: none; }
.log summary b { font: 700 20px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; flex: none; }
.log summary .latest { color: var(--muted); font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.log summary .chev { width: 16px; height: 16px; flex: none; transition: transform .3s; color: var(--muted); }
.log[open] summary .chev { transform: rotate(180deg); }
.log ol { list-style: none; margin: 0; padding: 4px 20px 18px; max-height: 360px; overflow: auto; font: 13px/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #cfc8bb; }
.log li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 3px 0; border-bottom: 1px solid rgba(255, 255, 255, .03); }
.log li time { color: var(--dim); }
.log li span { overflow-wrap: anywhere; }

.premiere { margin-bottom: 34px; display: grid; gap: 20px; }
.premiere[hidden] { display: none; }
.screen {
  position: relative; border-radius: 18px; overflow: hidden; background: #000;
  width: 100%; max-width: calc(76vh * 16 / 9); margin-inline: auto;
  box-shadow: 0 0 0 1px var(--gold-b), 0 50px 140px -40px rgba(245, 197, 66, .45), 0 30px 80px -30px #000;
  animation: reveal 1.4s var(--ease) both;
}
@keyframes reveal { from { clip-path: inset(0 50% 0 50%); opacity: .3; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
.screen video, .screen img { width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
.premiere-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.fail .premiere-actions { justify-content: flex-start; }
.premiere-actions .btn small { font-weight: 500; opacity: .7; font-size: 12px; }
@media (max-width: 520px) { .premiere-actions .btn { flex: 1 1 100%; } }
.review-pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #ddd5c7; }

.fail { display: grid; gap: 14px; padding: 28px; border-radius: var(--radius); border: 1px solid rgba(255, 106, 92, .4); background: linear-gradient(180deg, rgba(255, 106, 92, .08), var(--panel)); margin-bottom: 26px; }
.fail[hidden] { display: none; }
.fail h2 { font: 800 clamp(30px, 4vw, 44px)/1 var(--display); text-transform: uppercase; }
.fail p { color: var(--muted); max-width: 640px; }
.fail pre { margin: 0; padding: 14px; border-radius: 10px; background: rgba(0, 0, 0, .35); color: #ffc2bb; font: 13px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

.demo-flag { position: fixed; right: 12px; bottom: 12px; z-index: 120; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; background: #2a2a31; color: var(--muted); border: 1px solid var(--line-2); }

/* ================= Round 2: "do this next" guidance ================= */
.is-next {
  outline: 2px solid var(--gold) !important;
  outline-offset: 4px !important;
  border-radius: 14px;
  box-shadow: 0 0 0 7px rgba(245, 197, 66, .10), 0 0 30px rgba(245, 197, 66, .35);
  animation: nextPulse 2s ease-in-out infinite !important;
}
.btn.is-next, .scanbar.is-next { border-radius: 999px; }
fieldset.is-next, .voices.is-next { outline-offset: 10px !important; }
@keyframes nextPulse {
  0%, 100% { box-shadow: 0 0 0 7px rgba(245, 197, 66, .10), 0 0 30px rgba(245, 197, 66, .35); }
  50% { box-shadow: 0 0 0 12px rgba(245, 197, 66, .04), 0 0 46px rgba(245, 197, 66, .6); }
}
.next-tag, .now-tag {
  padding: 4px 9px 3px; border-radius: 6px;
  background: var(--gold); color: var(--gold-ink);
  font: 800 12px/1.1 var(--display); letter-spacing: .18em; text-transform: uppercase;
  box-shadow: 0 6px 18px -4px rgba(245, 197, 66, .6);
  pointer-events: none; white-space: nowrap;
}
.next-tag { position: absolute; z-index: 15; top: 0; left: 0; transition: top .35s var(--ease), left .35s var(--ease); }
.next-tag::before { content: ""; display: inline-block; width: 0; height: 0; margin-right: 6px; vertical-align: 1px; border: 4px solid transparent; border-left: 6px solid currentColor; border-right: 0; }

/* satisfied required fields */
.field.ok > span::after, fieldset.ok > legend::after {
  content: ""; display: inline-block; width: 13px; height: 13px; margin-left: 8px; vertical-align: -2px;
  background: var(--tick) no-repeat center / contain;
}

/* rail: done = filled check, current = pulsing ring, locked = grey lock */
.rail-dot .rail-ic { display: none; }
.rail-dot .rail-ic svg { width: 18px; height: 18px; }
.rail-dot .rail-lock svg { width: 14px; height: 14px; }
.rail-btn.done .rail-n, .rail-btn.locked .rail-n { display: none; }
.rail-btn.done .rail-ok, .rail-btn.locked .rail-lock { display: grid; }
.rail-btn.locked .rail-dot { background: var(--bg); border-color: var(--line); color: var(--dim); box-shadow: none; }
.rail-btn.locked b { color: var(--dim); }
.rail-btn.current:not(.done) .rail-dot { animation: ringPulse 2s ease-in-out infinite; }
@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 0 5px var(--gold-a), 0 0 18px rgba(245, 197, 66, .3); }
  50% { box-shadow: 0 0 0 10px rgba(245, 197, 66, .04), 0 0 32px rgba(245, 197, 66, .6); }
}

/* step cards: collapsed "done" row */
.step-tick {
  display: none; width: 46px; height: 46px; border-radius: 50%; place-items: center;
  background: var(--gold); color: var(--gold-ink); box-shadow: 0 0 22px rgba(245, 197, 66, .35);
}
.step-tick svg { width: 22px; height: 22px; }
.step-summary { margin-top: 5px; color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-summary:empty { display: none; }
.step.collapsed { padding: 16px clamp(16px, 2.6vw, 26px); opacity: 1; }
.step.collapsed .step-num, .step.collapsed .step-sub { display: none; }
.step.collapsed .step-tick { display: grid; }
.step.collapsed .step-head { margin-bottom: 0; align-items: center; }
.step.collapsed .step-head h3 { font-size: clamp(22px, 2.4vw, 28px); }
.step.collapsed .step-body, .step.collapsed .step-foot { display: none; }
.step-state:has(.done-edit) { padding: 0; border: 0; background: none !important; }
.done-edit {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--gold-b); background: var(--gold-a); color: var(--gold);
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s, border-color .2s;
}
.done-edit svg { width: 12px; height: 12px; }
.done-edit .sep { opacity: .5; }
.done-edit u { text-decoration: none; color: var(--text); }
.done-edit:hover { background: rgba(245, 197, 66, .22); border-color: var(--gold); }
.step.current:not(.collapsed):not(.complete) .step-state { color: var(--gold); border-color: var(--gold-b); }

/* hero research entry */
.hero-research {
  display: flex; gap: 8px; padding: 8px; margin-top: 34px; max-width: 700px;
  border-radius: 999px; background: rgba(10, 10, 12, .6); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: rise 1.1s .42s var(--ease) both;
  transition: border-color .2s, box-shadow .2s;
}
.hero-research:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-a); }
.hero-research .input { border: 0; background: transparent; font-size: 17px; padding: 10px 18px; }
.hero-research .input:focus { box-shadow: none; background: transparent; }
.hero-research-note { margin-top: 12px; color: var(--muted); font-size: 14px; animation: rise 1.1s .5s var(--ease) both; }
.hero-cta { margin-top: 22px; }
@media (max-width: 640px) {
  .hero-research { flex-direction: column; border-radius: 20px; }
  .hero-research .btn { width: 100%; white-space: normal; text-align: center; }
}

/* research brief */
.brief {
  position: relative; display: grid; gap: 26px; min-width: 0;
  padding: clamp(20px, 3vw, 34px); border-radius: 18px;
  background: radial-gradient(110% 70% at 0% 0%, rgba(245, 197, 66, .11), transparent 60%), var(--bg-2);
  border: 1px solid var(--gold-b);
  scroll-margin-top: 90px;
}
.brief:focus { outline: none; }
.brief-head { display: grid; gap: 10px; }
.brief-head h4 { font: 800 clamp(32px, 4.4vw, 54px)/.92 var(--display); text-transform: uppercase; }
.brief-angle { margin: 0; padding: 2px 0 2px clamp(16px, 3vw, 28px); border-left: 3px solid var(--gold); }
.brief-angle p { font: 600 clamp(24px, 3.2vw, 38px)/1.1 var(--display); color: #fff4dc; text-wrap: balance; }
.brief-angle p::before { content: "\201C"; color: var(--gold); }
.brief-angle p::after { content: "\201D"; color: var(--gold); }
.brief-angle footer { margin-top: 14px; color: #d7cfc1; font-size: 15px; }
.brief-angle footer span { display: inline-block; margin-right: 10px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.brief-block { display: grid; gap: 12px; min-width: 0; align-content: start; }
.brief-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; }
.hooks { list-style: none; counter-reset: hk; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hooks li { counter-increment: hk; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.hooks li::before { content: "0" counter(hk); display: block; margin-bottom: 8px; font: 800 22px/1 var(--display); color: var(--gold); }
.brief-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .hooks, .brief-cols { grid-template-columns: minmax(0, 1fr); } }
.brief-applies { margin-top: -14px; }
.pick-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip {
  min-height: 42px; padding: 8px 16px; border-radius: 999px; text-align: left;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: #ddd6c9;
  font-size: 14px; font-weight: 500; transition: all .2s var(--ease);
}
.pchip:hover { border-color: var(--gold-b); color: var(--text); }
.pchip[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); font-weight: 600; }

.proofs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.proof { position: relative; display: grid; min-width: 0; }
.proof label {
  display: grid; align-content: start; gap: 6px; height: 100%;
  padding: 18px 18px 42px; border-radius: 16px; cursor: pointer;
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line-2);
  transition: border-color .25s, background .25s, box-shadow .25s, transform .25s var(--ease);
}
.proof label:hover { border-color: rgba(255, 240, 220, .3); transform: translateY(-2px); }
.proof.on label { border-color: var(--gold); background: linear-gradient(180deg, rgba(245, 197, 66, .13), rgba(245, 197, 66, .02)); box-shadow: inset 0 0 0 1px var(--gold), 0 18px 44px -24px rgba(245, 197, 66, .7); }
.proof input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 3px; }
.proof-kind { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); padding-right: 30px; }
.proof-big { font: 800 clamp(46px, 5vw, 62px)/.9 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.proof.on .proof-big { color: var(--gold); }
.proof-label { font: 700 16px/1.1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.proof-detail { font-size: 13px; color: var(--muted); }
.proof-quote { font-size: 13px; font-style: italic; color: #e6dcc8; }
.proof-check { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); color: transparent; transition: all .25s var(--ease); }
.proof-check svg { width: 13px; height: 13px; }
.proof.on .proof-check { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.proof-src { position: absolute; left: 18px; bottom: 14px; max-width: calc(100% - 36px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .25); }
.proof-src:hover { color: var(--gold); }

.loc-card { display: grid; align-content: start; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); }
.loc-card img, .loc-ph { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.loc-ph { display: grid; place-items: center; color: var(--gold); background: repeating-linear-gradient(45deg, #17171c 0 12px, #1b1b21 12px 24px); }
.loc-ph svg { width: 40px; height: 40px; }
.loc-txt { display: grid; gap: 3px; padding: 14px 16px 16px; }
.loc-txt b { font: 700 26px/1.05 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.loc-txt small { color: var(--muted); font-size: 12.5px; }
.avoid { display: grid; gap: 12px; align-content: start; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .02); border: 1px dashed var(--line-2); }
.avoid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.avoid li { position: relative; display: grid; gap: 2px; padding-left: 24px; }
.avoid li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--dim); background: linear-gradient(45deg, transparent 45%, var(--dim) 45% 58%, transparent 58%); }
.avoid b { font-weight: 600; color: #cfc8bb; text-decoration: line-through; text-decoration-color: rgba(255, 106, 92, .55); }
.avoid span { font-size: 13px; color: var(--dim); }
.sources summary { list-style: none; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-radius: 6px; }
.sources summary::-webkit-details-marker { display: none; }
.sources summary::before { content: "+"; color: var(--gold); font-size: 16px; }
.sources[open] summary::before { content: "\2013"; }
.sources summary span { color: var(--dim); }
.sources ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.sources li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 14px; min-width: 0; }
.sources a { color: var(--text); overflow-wrap: anywhere; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .25); }
.sources a:hover { color: var(--gold); }
.sources small { color: var(--dim); }

.script-idea { padding: 18px 20px; border-radius: 16px; border-left: 3px solid var(--gold); background: rgba(245, 197, 66, .05); }
.script-idea h5 { margin: 8px 0 4px; font: 800 clamp(26px, 3vw, 34px)/1 var(--display); text-transform: uppercase; }
.script-idea p { color: #ddd5c7; }

/* project page: the running stage is "now" */
.now-tag { display: none; position: absolute; top: 14px; right: 14px; z-index: 2; }
.stage[data-status="running"] { opacity: 1; box-shadow: 0 0 0 2px var(--gold), 0 0 30px rgba(245, 197, 66, .3); animation: nowPulse 2s ease-in-out infinite; }
.stage[data-status="running"] .now-tag { display: block; }
@keyframes nowPulse { 50% { box-shadow: 0 0 0 2px var(--gold), 0 0 52px rgba(245, 197, 66, .55); } }
.stage[data-status="done"] .stage-ico { box-shadow: 0 0 16px rgba(245, 197, 66, .3); }

@media (max-width: 480px) {
  .step { padding: 18px 14px; }
  .brief { padding: 18px 14px; gap: 22px; }
  .found-grid { padding: 14px; }
  .proofs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .proof label { padding: 14px 12px 38px; }
  .proof-src { left: 12px; max-width: calc(100% - 24px); }
  .proof-big { font-size: 40px; }
  .proof-check { top: 10px; right: 10px; width: 20px; height: 20px; }
  .proof-kind { padding-right: 24px; font-size: 9.5px; }
  .rail-fill { width: calc((100% - 34px) * var(--f, 0)) !important; }
}
@media (max-width: 340px) { .proofs { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 560px) {
  .step.collapsed .step-head { grid-template-columns: auto minmax(0, 1fr) auto; }
  .step.collapsed .step-state { grid-column: auto; }
  .step-tick { width: 38px; height: 38px; }
  .done-edit > span { display: none; }
  .done-edit { padding: 0 12px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  body::after { animation: none; }
  .hero-media video { transform: none; }
  .stage[data-status="running"]::before, .stage[data-status="running"]::after { display: none; }
  .is-next, .rail-btn.current .rail-dot, .stage[data-status="running"] { animation: none !important; }
  .next-tag { transition: none; }
}
/* ================= Round 3: voice library + choice pulse ================= */
.voice-sel {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
  background: var(--gold-a); border: 1px solid var(--gold-b); color: #f3dea3; font-size: 15px;
}
.voice-sel b { color: var(--text); font-weight: 600; }
.voice-sel small { color: var(--muted); font-size: 12px; margin-left: 4px; }
.voice-sel-ic { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); }
.voice-sel-ic svg { width: 12px; height: 12px; }
.voice-check {
  position: absolute; top: 10px; left: 48px; width: 22px; height: 22px; border-radius: 50%;
  display: none; place-items: center; background: var(--gold); color: var(--gold-ink);
  box-shadow: 0 0 0 3px var(--panel), 0 0 14px rgba(245, 197, 66, .5);
}
.voice-check svg { width: 12px; height: 12px; }
.voice input:checked + label .voice-check { display: grid; }

.lib { display: grid; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); min-width: 0; }
.lib .sub-head { margin-bottom: 0; }
.lib-filters { display: grid; gap: 14px; min-width: 0; }
.lib-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-width: 0; }
.chips-sm { gap: 8px; }
.chips-sm .chip span { min-height: 38px; padding: 0 14px; font-size: 14px; }
.seg-sm span { min-height: 34px; padding: 0 14px; font-size: 14px; }
.lib-search {
  position: relative; flex: 1 1 220px; min-width: 0; display: flex; align-items: center;
}
.lib-search svg { position: absolute; left: 14px; width: 17px; height: 17px; color: var(--dim); pointer-events: none; }
.lib-search .input { padding: 10px 14px 10px 40px; border-radius: 999px; font-size: 15px; }
.lib-status { min-height: 1.2em; }
.skel-voice { height: 104px; }
.lib-foot { display: flex; justify-content: center; }
.lib-foot .btn { min-width: 220px; }
@media (max-width: 520px) {
  .lib-row .seg { width: 100%; }
  .lib-search { flex-basis: 100%; }
}

/* Choice pulse: every option in an unchosen group breathes gold, rippling left to right */
.pulse-on .opt {
  animation: choicePulse 2s ease-in-out infinite;
  animation-delay: calc(min(var(--i, 0), 14) * 120ms);
}
/* filter glow (not box-shadow) so selected options keep their own rings while pulsing */
@keyframes choicePulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(245, 197, 66, 0)) drop-shadow(0 0 0 rgba(245, 197, 66, 0)); }
  50% { filter: drop-shadow(0 0 1px rgba(245, 197, 66, .95)) drop-shadow(0 0 12px rgba(245, 197, 66, .45)); }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-on .opt { animation: none !important; outline: 1px solid rgba(245, 197, 66, .6); outline-offset: 2px; }
}

/* ================= Round 5: step-1 decisions, pricing ================= */
.logo-pick { display: grid; gap: 10px; }
.logo-q { display: inline-flex; align-items: center; gap: 6px; }
.logo-q svg { width: 14px; height: 14px; padding: 2px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); }
.logo-pick.confirmed .logo-q { color: var(--gold); }
.logo-pick.confirmed .logo-box { box-shadow: inset 0 0 0 1px var(--gold-b); }
.logo-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.logo-btns .btn { flex: 1 1 100%; }
.logo-pick.confirmed .logo-btns .btn { flex: 0 0 auto; }
.logo-choose { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .02); border: 1px solid var(--line); }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; max-height: 220px; overflow: auto; }
.logo-grid button { aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--panel-2); box-shadow: 0 0 0 1px var(--line); }
.logo-grid button:hover, .logo-grid button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--gold); }
.logo-grid img { width: 100%; height: 100%; object-fit: cover; }
.logo-choose-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.logo-up { cursor: pointer; }
.logo-up:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.sw-ok { margin-top: 10px; }

.pricing { position: relative; padding: clamp(50px, 8vw, 110px) 0 clamp(10px, 3vw, 30px); }
.price-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
@media (max-width: 860px) { .price-wrap { grid-template-columns: minmax(0, 1fr); } }
.price-copy { display: grid; gap: 18px; }
.price-copy > p:last-child { color: var(--muted); font-size: 18px; max-width: 520px; }
.price-card {
  position: relative; display: grid; gap: 22px; padding: clamp(24px, 4vw, 40px); border-radius: 24px; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 0%, rgba(245, 197, 66, .16), transparent 65%), var(--panel);
  border: 1px solid var(--gold-b); box-shadow: 0 40px 100px -50px rgba(245, 197, 66, .55);
}
.price-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: 10px; height: 4px; background: radial-gradient(circle, var(--gold-2) 0 1.6px, transparent 2.2px) 0 0 / 14px 4px repeat-x; filter: drop-shadow(0 0 4px var(--gold)); opacity: .8; }
.price-tag { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.price-amt { font: 800 clamp(76px, 10vw, 128px)/.8 var(--display); letter-spacing: -.01em; color: var(--text); text-shadow: 0 0 60px rgba(245, 197, 66, .25); }
.price-amt small { font-size: .32em; vertical-align: .95em; margin-right: 6px; color: var(--gold); letter-spacing: .04em; }
.price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.price-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; color: #e3dccf; }
.price-list svg { width: 18px; height: 18px; margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); }
.price-card .btn { justify-self: start; }
@media (max-width: 480px) { .price-card .btn { justify-self: stretch; } }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; color: var(--muted); font-size: 14px; }
.price-line b { font: 800 34px/1 var(--display); color: var(--gold); letter-spacing: .01em; }

.adj-included { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 6px 12px; border-radius: 999px; background: var(--gold-a); border: 1px solid var(--gold-b); color: #f3dea3; font-size: 13px; font-weight: 600; }
.adj-included span { color: var(--gold); }
#adjHint { margin-top: -6px; }
.plan-read { display: grid; gap: 10px; }
.plan-read ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan-read li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); min-width: 0; }
.plan-read a { color: var(--text); overflow-wrap: anywhere; min-width: 0; text-underline-offset: 3px; }
.read-badge { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--dim); }
.read-badge.used { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.read-found { flex-basis: 100%; font-size: 13px; color: var(--muted); }


/* ================= Round 4: voices by country, versions, adjustments ================= */
.vpick { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 14px; }
.vpick > legend { padding: 0; margin-bottom: 12px; }
.vbar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; min-width: 0; }
.country-tabs { flex: 1 1 420px; min-width: 0; }
.vfilter { flex: none; position: relative; }
.vfilter summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .03);
  transition: border-color .2s, color .2s;
}
.vfilter summary::-webkit-details-marker { display: none; }
.vfilter summary svg { width: 16px; height: 16px; }
.vfilter summary:hover, .vfilter[open] summary { color: var(--text); border-color: var(--gold-b); }
.vf-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--gold); color: var(--gold-ink); font-size: 11px; font-weight: 800; }
.vfilter[open] { flex: 1 1 100%; order: 3; }
.vfilter[open] .lib-row { margin-top: 12px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .02); border: 1px solid var(--line); }
.voice.is-pick .voice-meta { color: #e2cf97; }
@media (max-width: 640px) {
  .country-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 6px 4px 8px; margin: -6px -4px 0; scrollbar-width: none; flex-basis: 100%; }
  .country-tabs::-webkit-scrollbar { display: none; }
  .country-tabs .chip { flex: none; }
}

.screen-wrap { position: relative; }
.making-badge {
  position: absolute; left: 50%; top: 16px; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px;
  background: rgba(10, 10, 12, .82); border: 1px solid var(--gold); color: var(--gold);
  font: 700 15px/1 var(--display); letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 0 30px rgba(245, 197, 66, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}
.making-badge .spin { width: 14px; height: 14px; }

.versions { display: grid; gap: 10px; min-width: 0; }
.versions-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.versions-strip > * { flex: 0 0 auto; }
.vcard {
  display: grid; gap: 8px; width: 220px; padding: 8px; border-radius: 14px; text-align: left;
  background: var(--panel); border: 1px solid var(--line-2); color: var(--text);
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
button.vcard:hover { border-color: var(--gold-b); transform: translateY(-2px); }
.vcard.on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold), 0 14px 34px -18px rgba(245, 197, 66, .7); }
.vcard-poster { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: var(--panel-2); color: var(--gold); }
.vcard-poster img { width: 100%; height: 100%; object-fit: cover; }
.vcard-v { position: absolute; left: 8px; top: 8px; padding: 3px 7px; border-radius: 5px; background: rgba(0, 0, 0, .7); color: var(--gold); font: 800 14px/1 var(--display); letter-spacing: .08em; }
.vcard-latest { position: absolute; right: 8px; top: 8px; padding: 3px 7px; border-radius: 5px; background: var(--gold); color: var(--gold-ink); font: 800 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.vcard-meta { display: grid; gap: 2px; padding: 0 4px 4px; min-width: 0; }
.vcard-meta b { font: 700 18px/1.1 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.vcard-meta small { color: var(--muted); font-size: 12px; }
.vcard-note { font-size: 12px; color: #d7cfc1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard-making { border-style: dashed; border-color: var(--gold-b); }

.adjust {
  margin-top: 34px; display: grid; gap: 22px;
  padding: clamp(20px, 3.4vw, 40px); border-radius: var(--radius);
  background: radial-gradient(110% 80% at 0% 0%, rgba(245, 197, 66, .09), transparent 60%), var(--panel);
  border: 1px solid var(--gold-b); scroll-margin-top: 90px;
}
.adjust:focus { outline: none; }
.adjust-head { display: grid; gap: 10px; }
.adjust-head h2 { font: 800 clamp(34px, 5vw, 60px)/.92 var(--display); text-transform: uppercase; }
.adjust-head .help { font-size: 15px; max-width: 680px; }
.adj-pane { display: grid; gap: 16px; min-width: 0; }
.adj-note { min-height: 150px; font-size: 17px; line-height: 1.5; }
.adj-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.adj-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.adj-go { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 18px; }
.adj-go .field { flex: 1 1 240px; max-width: 340px; }
.adj-go .adj-actions { margin-left: auto; }
.adj-planning .writing { margin: 0; }
.plan-understood { display: grid; gap: 12px; }
.plan-changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.plan-thumb { aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #0f0f13; display: grid; place-items: center; }
.plan-thumb img, .plan-thumb video { width: 100%; height: 100%; object-fit: cover; }
.plan-thumb-ph { font: 800 30px/1 var(--display); color: var(--gold); }
.plan-txt { display: grid; gap: 3px; min-width: 0; }
.plan-beat { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.plan-act { font: 700 20px/1.15 var(--display); letter-spacing: .03em; overflow-wrap: anywhere; }
.plan-why { font-size: 14px; color: var(--muted); }
.plan-cannot { padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 14px; }
.plan-cannot b { color: #cfc8bb; font-weight: 600; }
.plan-cost { font-size: 15px; color: var(--muted); }
.plan-cost b { font: 800 30px/1 var(--display); color: var(--text); margin-left: 6px; }
@media (max-width: 520px) {
  .plan-row { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .adj-actions { width: 100%; }
  .adj-actions .btn { flex: 1 1 100%; }
  .vcard { width: 180px; }
}
#adjPlanBody { display: grid; gap: 20px; min-width: 0; }
@media (max-width: 520px) { .premiere-actions .btn { white-space: normal; flex-wrap: wrap; text-align: center; padding-top: 10px; padding-bottom: 10px; row-gap: 2px; } .premiere-actions .btn small { flex-basis: 100%; } }
.premiere { grid-template-columns: minmax(0, 1fr); } .premiere > * { min-width: 0; }

/* ================= Round 6: retry, self-healing log, no-photos notice ================= */
.fail { border-color: var(--gold-b); background: linear-gradient(180deg, rgba(245, 197, 66, .06), var(--panel)); }
.fail pre { color: var(--muted); background: rgba(0, 0, 0, .3); }
.fail-actions { justify-content: flex-start; }
.log li.heal span { color: #f3dea3; }
.heal-tag { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font: 700 10px/1.6 var(--ui); letter-spacing: .1em; text-transform: uppercase; vertical-align: 1px; }
.nophotos { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--gold); background: var(--gold-a); color: #f6e7bd; font-size: 15px; box-shadow: 0 0 26px rgba(245, 197, 66, .2); }
.nophotos-ic { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); font-weight: 800; }
.log li { grid-template-columns: auto minmax(0, 1fr); } .log li time { white-space: nowrap; }

/* ================= Round 7: draft bar, your ads ================= */
.draft-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 28px;
  padding: 12px 12px 12px 18px; border-radius: 16px; background: var(--gold-a); border: 1px solid var(--gold-b);
  animation: rise .5s var(--ease) both;
}
.draft-ic { color: var(--gold); font-size: 18px; }
.draft-txt { flex: 1 1 220px; color: #f3dea3; }
.draft-txt b { color: var(--text); }
.draft-x { width: 36px; height: 36px; }

.yours { padding: clamp(30px, 5vw, 60px) 0 0; }
.yours-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.yours-title { font: 800 clamp(30px, 4vw, 44px)/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.yours.empty .yours-title, .yours.empty .yours-grid { display: none; }
.yours.empty .yours-head { justify-content: flex-end; margin-bottom: 0; }
.yours.empty #showAll { opacity: .7; }
.yours-code { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0 0 16px auto; max-width: 440px; }
.yours-code .field { flex: 1 1 220px; }
.yours .error-msg { margin-bottom: 14px; }
.yours-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.ycard { display: grid; gap: 10px; color: var(--text); text-decoration: none; border-radius: 16px; }
.ycard-poster { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--panel-2); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.ycard-poster img { width: 100%; height: 100%; object-fit: cover; }
.ycard-ph { color: var(--gold); font-size: 26px; }
.ycard:hover .ycard-poster, .ycard:focus-visible .ycard-poster { box-shadow: 0 0 0 1px var(--gold-b), 0 20px 44px -22px rgba(245, 197, 66, .5); transform: translateY(-2px); }
.ycard:focus-visible { outline-offset: 5px; }
.ycard-meta { display: grid; gap: 2px; padding: 0 2px; }
.ycard-meta b { font: 700 20px/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.ycard-meta small { color: var(--muted); font-size: 13px; }
.ychip, .yv { position: absolute; top: 10px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ychip { left: 10px; background: rgba(0, 0, 0, .72); color: var(--text); border: 1px solid var(--line-2); }
.ychip.s-done { background: rgba(99, 212, 150, .9); color: #06210f; border-color: transparent; }
.ychip.s-error { background: rgba(255, 106, 92, .92); color: #2a0703; border-color: transparent; }
.ychip.s-running, .ychip.s-queued { color: var(--gold-ink); border-color: transparent; background: linear-gradient(100deg, var(--gold) 30%, #fff3c4 50%, var(--gold) 70%) 0 0 / 250% 100%; animation: shimmer 1.6s linear infinite; }
.yv { right: 10px; background: var(--gold); color: var(--gold-ink); }
