/* Filmbuilder Prompt Director – shared styles
   Palette taken from the 90s Movie footage: Manhattan night navy, camel coat, ivory knit. */

@font-face { font-family: 'Big Shoulders Display'; font-weight: 600 900; font-display: swap; src: url('/assets/fonts/BigShouldersDisplay.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-weight: 400 600; font-display: swap; src: url('/assets/fonts/InstrumentSans.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url('/assets/fonts/IBMPlexMono-Regular.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url('/assets/fonts/IBMPlexMono-Medium.woff2') format('woff2'); }

:root {
  --night: #0c0c0b;
  --navy: #151513;
  --navy-2: #1c1c19;
  --navy-3: #272723;
  --ivory: #efeae0;
  --ivory-2: #c9c3b7;
  --muted: #8c877d;
  --camel: #d4a56a;
  --camel-hi: #e6bd87;
  --line: rgba(239, 234, 224, 0.1);
  --line-strong: rgba(239, 234, 224, 0.22);
  --danger: #e2826f;
  --ok: #9fc39a;

  --f-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --f-body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --f-script: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --rec: #ff4b3a;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, video { max-width: 100%; display: block; }
::selection { background: var(--camel); color: var(--night); }
:focus-visible { outline: 2px solid var(--camel); outline-offset: 3px; }
[hidden] { display: none !important; }

/* film grain */
body::after {
  content: ''; position: fixed; inset: -50%; pointer-events: none; z-index: 90; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }

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

/* ---------- custom cursor (fine pointers only, set by cursor.js) ---------- */
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor [data-cursor] { cursor: none; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor select { cursor: text; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 100; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ivory); transition: opacity .2s, background .2s; }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid rgba(239, 231, 218, .55);
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, border-color .3s, opacity .2s;
}
.cursor-ring span { font-family: var(--f-script); font-weight: 500; font-size: .72rem; letter-spacing: .02em; color: var(--night); opacity: 0; transition: opacity .2s; text-transform: uppercase; }
.cursor-ring.is-link { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-color: var(--camel); }
.cursor-ring.is-play { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--ivory); border-color: var(--ivory); }
.cursor-ring.is-play span { opacity: 1; }
.cursor-ring.is-play + .cursor-dot, .cursor-dot.is-hidden { opacity: 0; }
.cursor-ring.is-text, .cursor-ring.is-hidden { opacity: 0; }
.cursor-ring.is-down { transform-origin: center; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  transition: background .4s, backdrop-filter .4s, padding .4s;
}
.bar.solid { background: rgba(12, 12, 11, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.bar.static { position: sticky; background: rgba(12, 12, 11, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand b { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; letter-spacing: .06em; text-transform: uppercase; }
.brand i { font-style: normal; font-family: var(--f-script); font-size: .72rem; color: var(--camel); }
.bar nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 24px); font-size: .82rem; font-family: var(--f-script); }
.bar nav a { text-decoration: none; color: var(--ivory-2); }
.bar nav a:hover { color: var(--ivory); }
.bar nav a.btn-primary, .bar nav a.btn-primary:hover { color: #0c0c0b; font-family: var(--f-body); font-size: .92rem; }
.bar nav a.btn-ghost { color: var(--ivory); }
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 99px; overflow: hidden; }
.lang button { font: inherit; font-size: .82rem; background: none; color: var(--muted); border: 0; padding: 4px 10px; }
.lang button[aria-pressed='true'] { background: var(--ivory); color: var(--night); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-body); font-size: 1rem; font-weight: 500;
  padding: 13px 26px; border-radius: 99px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn-primary { background: var(--ivory); color: #0c0c0b; }
.btn-primary:hover { background: var(--camel); }
.btn-ghost { background: rgba(12, 12, 11, .25); color: var(--ivory); border-color: var(--line-strong); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--ivory); }
.btn-small { padding: 8px 17px; font-size: .95rem; white-space: nowrap; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-danger { background: none; color: var(--danger); border-color: rgba(226, 130, 111, .5); }
.btn-danger:hover { border-color: var(--danger); }
.linkish { background: none; border: 0; color: var(--muted); font: inherit; font-size: 1rem; cursor: pointer; text-decoration: underline; padding: 6px 4px; }
.linkish:hover { color: var(--ivory); }

/* =========================================================
   SHARED (landing + pages)
   ========================================================= */
.kicker { font-family: var(--f-script); font-size: .8rem; color: var(--muted); margin: 0 0 16px; letter-spacing: .02em; }
.kicker::before { content: '[ '; color: var(--camel); } .kicker::after { content: ' ]'; color: var(--camel); }
.ai-label { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-script); font-size: .7rem; color: var(--ivory); background: rgba(12, 12, 11, .55); border: 1px solid var(--line-strong); padding: 3px 8px; border-radius: 99px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ai-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--camel); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-size: 1.15rem; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--f-script); font-size: 1.3rem; line-height: 1; color: var(--camel); }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--muted); margin: 10px 0 0; max-width: 46em; }
footer.foot { margin-top: clamp(100px, 13vw, 180px); border-top: 1px solid var(--line); }
.foot-inner { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; color: var(--muted); font-size: .94rem; }
.foot-inner nav { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: flex-end; align-content: start; }
.foot-inner nav a { color: var(--ivory-2); text-decoration: none; }
.foot-inner nav a:hover { color: var(--ivory); text-decoration: underline; }
.foot-inner .cancel-btn { margin-top: 18px; }
.foot-inner p { margin: 0 0 8px; max-width: 40em; }
dialog.player { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100svh; margin: 0; color: var(--ivory); }
dialog.player::backdrop { background: rgba(6, 6, 5, .94); backdrop-filter: blur(10px); }
.player-inner { height: 100%; display: grid; place-items: center; padding: 64px 16px 24px; }
.player video { max-height: calc(100svh - 130px); max-width: min(100%, 1400px); width: auto; border-radius: 10px; background: #000; box-shadow: 0 60px 120px -40px #000; }
.player .cap { margin-top: 14px; display: flex; gap: 12px; align-items: center; justify-content: center; color: var(--ivory-2); font-size: .92rem; flex-wrap: wrap; font-family: var(--f-script); }
.player .close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(12,12,11,.6); color: var(--ivory); font-size: 1.4rem; cursor: pointer; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
@media (max-width: 900px) { .foot-inner { grid-template-columns: 1fr; } .foot-inner nav { justify-content: flex-start; } .bar nav .hide-sm { display: none; } .brand i { display: none; } }

/* =========================================================
   PAGES (login, checkout, welcome, account, legal)
   ========================================================= */
.page { min-height: 100svh; display: flex; flex-direction: column; }
.page main { flex: 1; }
.page-head { padding: 130px 0 40px; }
.page-head h1 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: .9; margin: 0 0 14px; }
.page-head p { color: var(--muted); max-width: 40em; margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100svh; }
.split-media { position: relative; overflow: hidden; background: var(--navy); }
.split-media video, .split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,13,20,0) 50%, var(--night) 100%), linear-gradient(0deg, rgba(10,13,20,.6), transparent 40%); }
.split-media .ai-label { position: absolute; left: 18px; bottom: 18px; z-index: 2; }
.split-form { display: flex; flex-direction: column; justify-content: center; padding: 110px clamp(20px, 6vw, 90px) 60px; }
.split-form h1 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: .92; margin: 0 0 10px; }
.split-form .sub { color: var(--muted); margin: 0 0 30px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-media { height: 38vh; } .split-form { padding-top: 34px; } }

.tabs { display: flex; gap: 6px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.tabs button { font: inherit; background: none; border: 0; color: var(--muted); padding: 10px 4px; margin-right: 16px; border-bottom: 2px solid transparent; cursor: pointer; }
.tabs button[aria-selected='true'] { color: var(--ivory); border-bottom-color: var(--camel); }

.form { display: grid; gap: 16px; max-width: 460px; }
.form label { display: grid; gap: 6px; font-size: .98rem; color: var(--ivory-2); }
.input, .form input[type=email], .form input[type=password], .form input[type=text], .form textarea, .form select {
  width: 100%; font: inherit; font-size: 1.02rem; color: var(--ivory); background: var(--navy);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 13px 15px;
}
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus, .input:focus { outline: none; border-color: var(--camel); }
.check { display: grid !important; grid-template-columns: 22px 1fr; gap: 12px !important; align-items: start; font-size: .96rem !important; line-height: 1.5; color: var(--ivory-2); }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--camel); }
.note { font-size: .92rem; color: var(--muted); }
.msg { font-size: 1rem; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line-strong); }
.msg.err { color: var(--danger); border-color: rgba(226,130,111,.45); }
.msg.ok { color: var(--ok); border-color: rgba(159,195,154,.45); }

.card { border: 1px solid var(--line); border-radius: 6px; background: var(--navy); padding: clamp(20px, 3vw, 32px); }
.card h2 { font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; text-transform: uppercase; margin: 0 0 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.meter { height: 6px; background: var(--navy-3); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; background: var(--camel); }

/* plan picker on checkout */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 8px; }
.plans label { display: block; border: 1px solid var(--line-strong); border-radius: 6px; padding: 18px; cursor: pointer; transition: border-color .2s, background .2s; }
.plans input { position: absolute; opacity: 0; }
.plans label:has(input:checked) { border-color: var(--camel); background: rgba(196, 154, 106, .08); }
.plans b { font-family: var(--f-display); font-weight: 800; font-size: 2.4rem; color: var(--camel); display: block; line-height: 1; margin: 6px 0; }
.plans span { color: var(--ivory-2); font-size: .95rem; }
.plans small { display: block; color: var(--muted); font-size: .85rem; margin-top: 6px; }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }

/* welcome steps */
.guide { counter-reset: g; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.guide > li { list-style: none; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.guide > li::before { counter-increment: g; content: counter(g); font-family: var(--f-display); font-weight: 800; font-size: 3.4rem; line-height: .9; color: var(--camel); }
.guide h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.8rem; text-transform: uppercase; margin: 0 0 8px; }
.guide p { margin: 0 0 10px; color: var(--ivory-2); max-width: 46em; }
.guide ul { margin: 6px 0 0; padding-left: 20px; color: var(--ivory-2); }
.guide li li { margin-bottom: 6px; }
.guide code, .prose code { font-family: var(--f-script); background: var(--navy-2); padding: 1px 6px; border-radius: 3px; color: var(--camel-hi); font-size: .92em; }
@media (max-width: 600px) { .guide > li { grid-template-columns: 1fr; gap: 6px; } }
.status-banner { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 6px; margin-bottom: 36px; }
.status-banner .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--camel); flex: 0 0 auto; }
.status-banner.ok .dot { background: var(--ok); }
.status-banner.wait .dot { animation: blink 1s steps(2) infinite; }

/* legal prose */
.prose { max-width: 760px; padding-bottom: 40px; }
.prose h2 { font-family: var(--f-display); font-weight: 800; font-size: 1.8rem; text-transform: uppercase; margin: 46px 0 10px; }
.prose h3 { font-size: 1.15rem; margin: 26px 0 6px; font-weight: 600; }
.prose p, .prose li { color: var(--ivory-2); }
.prose a { color: var(--camel-hi); }
.prose .todo { background: rgba(226, 130, 111, .16); color: #f2b3a6; padding: 0 4px; border-radius: 3px; }
.prose .box { border: 1px solid var(--line-strong); border-radius: 6px; padding: 18px 22px; margin: 18px 0; background: var(--navy); }

/* =========================================================
   APP (generator)
   ========================================================= */
.app { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 3vw, 44px); padding-top: 28px; padding-bottom: 80px; }
.app h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: .95; margin: 12px 0 8px; text-transform: uppercase; }
.app .sub { color: var(--muted); margin: 0 0 28px; }
.usage { color: var(--muted); font-size: .9rem; }

.styles { display: grid; border-top: 1px solid var(--line-strong); }
.styles button { text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); color: inherit; cursor: pointer; padding: 18px 4px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; font: inherit; }
.styles button:hover .s-name { color: var(--camel); }
.s-name { font-family: var(--f-display); font-weight: 800; font-size: 1.8rem; line-height: 1.05; text-transform: uppercase; transition: color .2s; }
.s-desc { grid-column: 1 / -1; color: var(--muted); font-size: 1rem; }
.s-meta { font-size: .9rem; color: var(--muted); align-self: center; white-space: nowrap; }

.log { display: flex; flex-direction: column; gap: 22px; margin-bottom: 26px; }
.cue { font-family: var(--f-script); font-size: .82rem; color: var(--muted); margin-bottom: 2px; }
.line-q .text { font-size: 1.22rem; line-height: 1.45; }
.line-a { padding-left: clamp(18px, 6vw, 64px); }
.line-a .text { font-family: var(--f-script); font-size: .98rem; white-space: pre-wrap; color: #e6dccb; }
.line-a .cue { color: var(--camel); }
.edit { background: none; border: 0; color: var(--muted); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; padding: 0; margin-left: 10px; }
.edit:hover { color: var(--ivory); }

.composer { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.composer .q { font-size: 1.35rem; line-height: 1.4; margin: 0 0 6px; }
.composer .hint { color: var(--muted); font-size: 1rem; margin: 0 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { font: inherit; font-size: 1rem; background: var(--navy); color: var(--ivory); border: 1px solid var(--line-strong); padding: 9px 16px; border-radius: 99px; cursor: pointer; }
.chip:hover { border-color: var(--camel); }
.chip[aria-pressed='true'] { background: var(--camel); color: #17110a; border-color: var(--camel); }

.field { position: relative; }
.field textarea, .field input, .refs input {
  width: 100%; font: inherit; font-family: var(--f-script); font-size: 1rem; color: var(--ivory);
  background: var(--navy); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px 16px;
}
.field textarea { min-height: 150px; resize: vertical; padding-right: 58px; line-height: 1.5; }
.field input { padding-right: 58px; }
.field textarea:focus, .field input:focus, .refs input:focus { outline: none; border-color: var(--camel); }
.mic { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 50%; background: var(--navy-3); border: 1px solid var(--line-strong); color: var(--ivory); cursor: pointer; display: grid; place-items: center; }
.mic svg { width: 18px; height: 18px; }
.mic.on { background: var(--danger); border-color: var(--danger); color: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(226, 130, 111, .18); } }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.refs .ref { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-bottom: 8px; }
.refs .tag { font-family: var(--f-script); color: var(--camel); min-width: 72px; }
.refs .rm { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.3rem; padding: 4px 8px; }
.error { color: var(--danger); font-size: 1rem; margin-top: 10px; }

.side { position: sticky; top: 90px; align-self: start; display: flex; flex-direction: column; gap: 22px; }
.dossier { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--navy); }
.dossier h2, .takes h2 { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; margin: 0 0 10px; text-transform: uppercase; }
.dossier dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .95rem; }
.dossier dt { color: var(--muted); }
.dossier dd { margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dossier .empty { color: var(--muted); font-size: .98rem; margin: 0; }

.take { border-top: 1px solid var(--line-strong); padding-top: 18px; margin-top: 8px; }
.take-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.take-title { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; }
.status { color: var(--muted); font-size: .92rem; }
.status.live::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); margin-right: 7px; vertical-align: middle; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.section-out { margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.section-out header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: var(--navy-2); }
.section-out header span { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; }
.copy { font: inherit; font-size: .88rem; background: none; border: 1px solid var(--line-strong); color: var(--ivory); border-radius: 99px; padding: 5px 13px; cursor: pointer; }
.copy:hover { border-color: var(--camel); }
.copy.done { background: var(--camel); color: #17110a; border-color: var(--camel); }
.section-out pre { margin: 0; padding: 16px; max-height: 460px; overflow: auto; white-space: pre-wrap; word-break: break-word; font-family: var(--f-script); font-size: .9rem; line-height: 1.55; background: #f1e9db; color: #1f1a14; }
.section-out.notes pre { background: var(--navy); color: var(--ivory); font-family: var(--f-body); font-size: 1rem; }
.followup { margin-top: 6px; display: grid; gap: 12px; }
.followup textarea { min-height: 80px; }
.followup .row-actions { margin-top: 0; }
.followup select { font: inherit; font-size: .95rem; background: var(--navy); color: var(--ivory); border: 1px solid var(--line-strong); border-radius: 99px; padding: 7px 12px; }

.projects-list { list-style: none; margin: 0; padding: 0; }
.projects-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.projects-list small { color: var(--muted); display: block; }
dialog.sheet-dialog { border: 1px solid var(--line-strong); border-radius: 8px; background: var(--navy); color: var(--ivory); width: min(560px, calc(100vw - 32px)); padding: 26px; }
dialog.sheet-dialog::backdrop { background: rgba(4,6,10,.75); }

@media (max-width: 960px) { .app { grid-template-columns: 1fr; } .side { position: static; } }

/* ---------------------------------------------------------------- Google sign-in */
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  background: var(--ivory); color: #1f1f1f; border: 1px solid var(--ivory); }
.btn-google:hover { background: #fff; color: #1f1f1f; }
.btn-google svg { width: 18px; height: 18px; flex: none; }
.or-sep { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted);
  font-family: var(--f-script); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--navy-3); }

/* ---------------------------------------------------------------- admin test mode */
.admin-badge { position: fixed; left: 16px; bottom: 16px; z-index: 90; display: flex; align-items: center; gap: 2px;
  background: var(--rec); color: #fff; border-radius: 999px; padding: 4px; font-family: var(--f-script); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.admin-badge a { color: #fff; text-decoration: none; padding: 6px 10px; }
.admin-badge button { background: rgba(0,0,0,.25); color: #fff; border: 0; border-radius: 999px; padding: 6px 12px;
  font: inherit; cursor: pointer; }
.admin-badge button:hover { background: rgba(0,0,0,.45); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.check-list li { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-script); font-size: 12px;
  border-bottom: 1px solid var(--navy-3); padding: 6px 0; }
.check-list .yes { color: #9fd19a; } .check-list .no { color: var(--rec); }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.link-grid a { display: block; padding: 12px 14px; border: 1px solid var(--navy-3); border-radius: 6px; color: var(--ivory);
  text-decoration: none; background: var(--navy); }
.link-grid a:hover { border-color: var(--camel); }
.link-grid small { display: block; color: var(--muted); margin-top: 2px; }

/* ---------------------------------------------------------------- guide page */
.tool-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.tool-nav a { padding: 8px 14px; border: 1px solid var(--navy-3); border-radius: 999px; color: var(--ivory); text-decoration: none;
  font-family: var(--f-script); font-size: 12px; }
.tool-nav a:hover { border-color: var(--camel); color: var(--camel-hi); }
.tool { border-top: 1px solid var(--navy-3); padding: 34px 0 10px; scroll-margin-top: 90px; }
.tool > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 8px; }
.tool > header h2 { margin: 0; }
.tool .tag { font-family: var(--f-script); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--camel);
  border: 1px solid currentColor; border-radius: 999px; padding: 4px 10px; }
.tool .tag.warn { color: var(--rec); }
.tool ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 12px; }
.tool ol.steps > li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; background: var(--navy); border: 1px solid var(--navy-3); border-radius: 6px; }
.tool ol.steps > li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 16px; top: 14px;
  font-family: var(--f-script); color: var(--camel); }
.tool ol.steps b { color: var(--ivory); }
.callout { background: var(--navy-2); border-left: 3px solid var(--camel); padding: 12px 16px; border-radius: 0 6px 6px 0; margin: 14px 0; }
.callout.warn { border-left-color: var(--rec); }
.music-prompts { display: grid; gap: 10px; margin: 14px 0; }
.music-prompts .mp { background: var(--navy); border: 1px solid var(--navy-3); border-radius: 6px; padding: 14px 16px; }
.music-prompts .mp header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.music-prompts .mp b { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .02em; font-size: 18px; }
.music-prompts .mp p { margin: 0; font-family: var(--f-script); font-size: 13px; color: var(--ivory-2); }
.benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 14px; }
.benefits > div { background: var(--navy); border: 1px solid var(--navy-3); border-radius: 6px; padding: 16px; }
.benefits b { font-family: var(--f-display); text-transform: uppercase; font-size: 19px; letter-spacing: .02em; color: var(--ivory); }
.benefits p { margin: 6px 0 0; color: var(--ivory-2); font-size: .95rem; }
.table-wrap { overflow-x: auto; margin: 14px 0; }
.price-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.price-table th, .price-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--navy-3); }
.price-table th { font-weight: 500; color: var(--muted); font-size: .85rem; }
.price-table th small { font-weight: 400; }
.price-table td { font-family: var(--f-script); font-size: 13px; }
.price-table td:first-child { color: var(--camel); }
