/* Fewtakes. Dark editing-suite surface: neutral graphite, one amber accent (the tally light),
   Schibsted Grotesk for everything, IBM Plex Mono only for time and the log.
   Radii: controls 10px, panels and video frames 14px, small chips 8px. */
:root {
  --bg: #0f0f10; --surface: #161618; --surface-2: #1d1d20; --line: #2a2a2e; --line-2: #3a3a40;
  --text: #ededee; --muted: #a3a3ab; --dim: #8a8a93;
  --accent: #f2b33d; --accent-ink: #1a1306; --accent-soft: rgba(242, 179, 61, .12);
  --danger: #ff6b5e; --ok: #63d6a0;
  --r-ctl: 10px; --r-panel: 14px; --r-chip: 8px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; color: var(--text); font: 15px/1.55 "Schibsted Grotesk", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(242, 179, 61, .3); color: var(--text); }
input, textarea { caret-color: var(--accent); }
html { scrollbar-color: var(--line-2) transparent; }
kbd { font: 500 11.5px var(--mono); padding: 1px 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; color: var(--muted); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(16px, 4vw, 40px); background: rgba(15, 15, 16, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; text-decoration: none; }
.mark { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 13px; }
#app { max-width: 1180px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 40px) 120px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-ctl); border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 500; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { border-color: #55555c; background: #232327; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn i { font-size: 17px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { background: #f6c25c; border-color: #f6c25c; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: transparent; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.linkish:hover { color: var(--text); }
.btn-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--r-chip); background: none; color: var(--muted); font-size: 17px; transition: background .15s, color .15s; }
.btn-icon:hover { background: var(--surface-2); color: var(--text); }
.btn.danger:hover, .btn.danger[aria-expanded="true"] { color: var(--danger); }
.btn.danger[aria-expanded="true"] { background: var(--surface-2); }
/* The confirm for a destructive action, in the error box's colors (DESIGN.md, Signal Red). */
.btn-danger { background: transparent; border-color: rgba(255, 107, 94, .45); color: var(--danger); font-weight: 600; }
.btn-danger:hover { background: rgba(255, 107, 94, .12); border-color: var(--danger); }
.stop-ask { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; margin-top: 14px; padding: 10px 10px 10px 14px; border: 1px solid rgba(255, 107, 94, .3); border-radius: var(--r-ctl); background: rgba(255, 107, 94, .08); animation: rise .2s var(--ease); }
.stop-ask[hidden] { display: none; }
.stop-ask > i { flex: none; color: var(--danger); font-size: 18px; }
.stop-ask p { flex: 1; min-width: 200px; margin: 0; color: #ffc2bc; font-size: 14px; }
.stop-ask-actions { display: flex; gap: 8px; margin-left: auto; }

/* start */
.start { max-width: 760px; }
.start h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; margin: 0 0 16px; text-wrap: balance; }
.lede { color: var(--muted); font-size: 18px; max-width: 54ch; margin: 0 0 36px; }
.field-label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 10px; }
.bar { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); transition: border-color .15s, box-shadow .2s; }
.bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.bar input { flex: 1; min-width: 0; height: 52px; background: none; border: 0; outline: 0; padding: 0 16px; font-size: 17px; }
.bar input::placeholder, textarea::placeholder, .input::placeholder { color: var(--dim); }
.bar .btn { height: 52px; padding: 0 24px; font-size: 15px; }
.bar-act { display: flex; align-items: center; gap: 8px; flex: none; }
/* TEMPORARY: the invite-only passcode, a recessed field beside the button it unlocks (2026-10-08) */
.pass { display: flex; align-items: center; gap: 9px; width: 188px; min-width: 0; height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--dim); cursor: text; transition: border-color .15s, color .15s; }
.pass:hover { border-color: var(--line-2); }
.pass:focus-within { border-color: var(--accent); color: var(--muted); }
.pass i { flex: none; font-size: 17px; }
.bar .pass input { flex: 1; width: 0; min-width: 0; height: 100%; padding: 0; font-size: 15px; letter-spacing: .02em; }
.field-err { color: var(--danger); font-size: 14px; margin: 8px 0 0; min-height: 0; }
.terms { color: var(--dim); font-size: 13px; margin: 18px 0 0; max-width: 60ch; }
.human.asking { margin-top: 14px; } /* only while Cloudflare shows its check */
.more { display: flex; gap: 24px; margin: 18px 0 0; flex-wrap: wrap; }
.extra { margin-top: 18px; animation: rise .25s var(--ease); }
.extra-head { display: flex; align-items: center; justify-content: space-between; margin: -6px 0 4px; }
.extra-head .field-label { margin: 0; }
.input, textarea { width: 100%; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-ctl); padding: 11px 13px; outline: 0; font-size: 15px; resize: vertical; transition: border-color .15s; }
.input:focus, textarea:focus { border-color: var(--accent); }
.opts { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.opt { display: flex; align-items: center; gap: 12px; }
.opt > span { font-size: 13px; color: var(--muted); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { cursor: pointer; }
.seg label b { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 7px; font-weight: 500; font-size: 13.5px; color: var(--muted); transition: background .15s, color .15s; }
.seg label:hover b { color: var(--text); }
.seg input:checked + b { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg input:focus-visible + b { outline: 2px solid var(--accent); }
.ar { display: inline-block; border: 1.5px solid currentColor; border-radius: 2px; }
.seg-sm label b { height: 28px; padding: 0 10px; font-size: 13px; }
/* Formats: independent toggles (any number), set apart so they don't read as one-of-three */
.toggles { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.toggles input { position: absolute; opacity: 0; pointer-events: none; }
.toggles label { cursor: pointer; }
.toggles b { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 10px; border: 1px solid var(--line); border-radius: var(--r-ctl); font-weight: 500; font-size: 13.5px; color: var(--muted); transition: background .15s, color .15s, border-color .15s; }
.toggles b .ph-check { font-size: 14px; visibility: hidden; }
.toggles label:hover b { color: var(--text); border-color: var(--line-2); }
.toggles input:checked + b { background: var(--surface-2); border-color: var(--line-2); color: var(--text); }
.toggles input:checked + b .ph-check { visibility: visible; }
.toggles input:focus-visible + b { outline: 2px solid var(--accent); outline-offset: 2px; }

/* library */
.library { margin-top: 72px; }
.library h2, .section-h { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 16px; }
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px 18px; }
.reel { text-decoration: none; display: block; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-panel); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .25s var(--ease); }
.reel:hover .thumb { border-color: var(--line-2); transform: translateY(-2px); }
.thumb img.dim { filter: brightness(.42) saturate(.7); }
.thumb .pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(15, 15, 16, .78); border: 1px solid var(--line-2); border-radius: var(--r-chip); padding: 4px 10px; color: var(--text); }
.thumb img, .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .state { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 13px; padding: 12px; }
.reel h3 { margin: 10px 2px 2px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel p { margin: 0 2px; color: var(--dim); font-size: 13px; }
.empty { border: 1px dashed var(--line-2); border-radius: var(--r-panel); padding: 36px; color: var(--muted); max-width: 520px; }
.working-line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; background: var(--line); }
.working-line::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); animation: sweep 1.6s var(--ease) infinite; }

/* job */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 18px; }
.back:hover { color: var(--text); }
.job-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.job-head h1 { margin: 0; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.03em; font-weight: 600; line-height: 1.1; }
.job-head h1:focus { outline: none; }
.head-side { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.job-head .sub { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.job-head .sub a { color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: var(--r-chip); border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; color: var(--muted); }
.chip.live { color: var(--accent); border-color: rgba(242, 179, 61, .35); background: var(--accent-soft); }
.chip.ok { color: var(--ok); border-color: rgba(99, 214, 160, .3); }
.chip.bad { color: var(--danger); border-color: rgba(255, 107, 94, .35); }

.progress { border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); padding: 22px 24px; margin-bottom: 32px; }
.stepper { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stepper li { font-size: 13px; color: var(--dim); }
.stepper li::before { content: ""; display: block; height: 3px; border-radius: 3px; margin-bottom: 9px; background: var(--line); }
.stepper li.done { color: var(--muted); }
.stepper li.done::before { background: var(--muted); }
.stepper li.cur { color: var(--text); font-weight: 500; }
.stepper li.cur::before { background: linear-gradient(90deg, var(--accent) 0 40%, var(--line) 40%) 0 0 / 250% 100%; animation: fill 1.8s var(--ease) infinite; }
.stepper li.bad { color: var(--danger); }
.stepper li.bad::before { background: var(--danger); }
.now { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.now-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.orb { position: relative; display: inline-block; flex: none; }
.orb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.swap-in { display: inline-block; animation: swap-in .3s var(--ease) both; }
@keyframes swap-in { from { opacity: 0; filter: blur(4px); transform: translateY(3px); } }
.now h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.elapsed { font: 14px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.now-line { margin: 6px 0 0; color: var(--muted); font-size: 14px; min-height: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-line span { animation: rise .3s var(--ease); display: inline-block; }
.now-side { display: flex; align-items: center; gap: 10px; }
.leave { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.leave i { font-size: 15px; }
.failbox { margin-top: 4px; }
.fail-next { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.fail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fail-details { margin-top: 14px; }
.fail-details summary { cursor: pointer; color: var(--dim); font-size: 13px; }
.fail-details pre { margin: 8px 0 0; padding: 10px 12px; border-radius: var(--r-ctl); background: var(--bg); border: 1px solid var(--line); font: 12.5px/1.6 var(--mono); color: var(--muted); white-space: pre-wrap; word-break: break-word; max-height: 200px; overflow: auto; }
/* a change that didn't go through: nothing lost, send it again */
.notice { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-panel); background: var(--surface); }
.notice > i { color: var(--danger); font-size: 20px; margin-top: 1px; }
.notice-body { flex: 1; min-width: 220px; }
.notice-body p { margin: 0; font-size: 14px; }
.notice-quote { color: var(--muted); margin-top: 2px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-actions { display: flex; gap: 8px; }
.firstlook { margin-top: 22px; }
.firstlook h3 { margin: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--muted); }
.strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.strip a { flex: none; scroll-snap-align: start; display: block; height: 132px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); animation: develop .9s var(--ease) both; cursor: zoom-in; }
.strip img { height: 100%; display: block; }

.brief-d { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 18px; }
.brief-d summary, .log summary { cursor: pointer; color: var(--muted); font-size: 14px; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.brief-d summary::-webkit-details-marker { display: none; }
.brief-d summary:hover, .log summary:hover { color: var(--text); }
.brief-d summary i { transition: transform .2s var(--ease); }
.brief-d[open] summary i { transform: rotate(90deg); }
.brief { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; padding: 18px 0 4px; }
.brief .tagline { font-size: 19px; letter-spacing: -.01em; margin: 0 0 12px; }
.brief ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.brief li { margin: 2px 0; }
.swatches { display: flex; gap: 8px; margin: 0 0 12px; }
.swatches span { width: 30px; height: 30px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.kv { color: var(--muted); font-size: 14px; margin: 0 0 4px; }
.kv b { color: var(--text); font-weight: 500; }

.vtools { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.legacy-note { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 32px 28px; }
.videos.one { max-width: 880px; }
.vcard { min-width: 0; }
.vhead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.vhead h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.dur { font: 13px var(--mono); color: var(--dim); font-variant-numeric: tabular-nums; }
.tone { font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 7px; }
.concept { margin: 4px 0 14px; color: var(--muted); font-size: 14px; max-width: 62ch; }
.takes { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.take-state { margin-left: 6px; color: var(--accent); font-weight: 500; }
.take-note { margin: 0; flex: 1; min-width: 160px; color: var(--dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage { display: grid; place-items: center; background: #0b0b0c; border: 1px solid var(--line); border-radius: var(--r-panel); padding: 14px; min-height: 260px; }
.screen { position: relative; width: 100%; max-height: 540px; border-radius: 8px; overflow: hidden; background: #000; }
.screen[data-fmt="vertical"] { width: auto; height: min(540px, 70vh); max-width: 100%; }
.screen[data-fmt="square"] { width: auto; height: min(440px, 60vh); max-width: 100%; }
.screen video, .screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.screen.develop video { animation: develop 1.1s var(--ease) both; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; background: rgba(11, 11, 12, .62); color: var(--text); font-size: 14px; padding: 16px; }
.overlay small { color: var(--muted); font-size: 13px; }
.overlay .tag { position: absolute; top: 10px; left: 10px; font-size: 12px; color: var(--muted); background: rgba(0, 0, 0, .6); padding: 3px 8px; border-radius: 6px; }
.overlay.clear { background: none; }
.meter { width: min(220px, 70%); height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.meter i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.shimmer { position: absolute; inset: 0; background: linear-gradient(100deg, #121214 30%, #1b1b1e 50%, #121214 70%) 0 0 / 300% 100%; animation: shimmer 1.8s linear infinite; }
.vfoot { display: flex; align-items: center; gap: 6px 8px; margin-top: 12px; flex-wrap: wrap; }
.vfoot .note { color: var(--dim); font-size: 13px; }
.vfoot .spacer { flex: 1; }
.caption { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.cap-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.cap-head .field-label { margin: 0; }
.cap-text { margin: 0; font-size: 14px; color: var(--text); white-space: pre-wrap; max-width: 68ch; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.caption.open .cap-text { display: block; }
.cap-more { margin-top: 6px; font-size: 13px; }

.qedit { margin-top: 14px; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--r-panel); background: var(--surface); display: grid; gap: 22px; animation: rise .25s var(--ease); }
.qe-group { display: grid; gap: 12px; max-width: 640px; }
.qe-group h4, .qe-h { margin: 0; font-size: 13px; font-weight: 600; color: var(--text); }
.qe-field { min-width: 0; }
.qe-field .field-label { margin-bottom: 6px; }
.qe-split { display: flex; gap: 8px; flex-wrap: wrap; }
.qe-split > .input, .qe-split > textarea { flex: 2 1 220px; }
.qe-part { flex: 1 1 140px; display: grid; gap: 4px; }
.qe-part span { font-size: 12px; color: var(--dim); }
.qe-music { display: flex; gap: 8px; align-items: center; }
.qe-music select { flex: 1; min-width: 0; }
.qe-colors { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.qe-color { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.qe-color input { width: 34px; height: 34px; padding: 2px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface-2); cursor: pointer; }
.qe-color input::-webkit-color-swatch-wrapper { padding: 0; }
.qe-color input::-webkit-color-swatch { border: 0; border-radius: 5px; }
select.input { appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 256 256'%3E%3Cpath fill='%23a3a3ab' d='M213.7 101.7l-80 80a8 8 0 0 1-11.4 0l-80-80a8 8 0 0 1 11.4-11.4L128 164.7l74.3-74.4a8 8 0 0 1 11.4 11.4z'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 34px; }
.qe-note { margin: 0; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qe-actions { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.ask { position: sticky; bottom: 18px; z-index: 4; margin-top: 48px; display: flex; gap: 8px; align-items: flex-end; padding: 8px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(22, 22, 24, .92); backdrop-filter: blur(10px); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.ask > .seg { flex: none; margin: 5px 0 5px 2px; }
.ask textarea { flex: 1; min-width: 0; border: 0; background: none; min-height: 44px; max-height: 160px; padding: 11px 10px; resize: none; }
.ask textarea:focus { border: 0; }
.ask textarea:focus-visible { outline: none; }
.ask:focus-within { border-color: rgba(242, 179, 61, .55); }
.ask > .btn { height: 44px; }
/* the shortcut, shown above the dock while the maker types */
.ask-keys { position: absolute; right: 14px; bottom: calc(100% + 8px); display: none; align-items: center; gap: 4px; padding: 3px 8px; border-radius: var(--r-chip); background: var(--surface-2); border: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.ask:focus-within .ask-keys { display: inline-flex; }
.ask.busy textarea::placeholder { color: var(--muted); }
.ask-left { position: absolute; left: 14px; bottom: calc(100% + 8px); display: inline-flex; align-items: center; padding: 3px 8px; border-radius: var(--r-chip); background: var(--surface-2); border: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.ask-left[hidden] { display: none; }
.log { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 18px; }
.log summary::-webkit-details-marker { display: none; }
.log summary i { transition: transform .2s var(--ease); }
.log[open] summary i { transform: rotate(90deg); }
.log pre { margin: 14px 0 0; max-height: 340px; overflow: auto; font: 12.5px/1.7 var(--mono); color: var(--muted); white-space: pre-wrap; word-break: break-word; }
.log .say { color: var(--text); }
.log .t { color: #5f5f67; }
.reel-foot { display: flex; justify-content: flex-end; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
/* the director's check frames, opened over the page */
.lightbox { padding: 0; border: 0; background: none; max-width: 94vw; max-height: 90vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 8, 9, .82); backdrop-filter: blur(4px); }
.lightbox img { display: block; max-width: 94vw; max-height: 86vh; border-radius: 8px; border: 1px solid var(--line-2); }
.lightbox-x { position: absolute; top: -40px; right: 0; color: var(--text); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--text); color: #111; font-weight: 500; font-size: 14px; padding: 10px 16px; border-radius: 10px; box-shadow: 0 12px 34px rgba(0, 0, 0, .5); transition: opacity .2s, transform .3s var(--ease); z-index: 20; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes develop { from { filter: blur(14px) saturate(0) brightness(1.5); opacity: .4; } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes fill { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Large screens: a wider page and larger reel cards, so the library fills its row instead of
   sitting as a strip of small thumbnails beside empty space. */
@media (min-width: 1100px) {
  #app { max-width: 1320px; }
  .library { margin-top: 88px; }
  .library h2 { font-size: 20px; margin-bottom: 20px; }
  .reels { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 34px 24px; }
  .reel h3 { font-size: 16px; margin-top: 14px; }
  .reel p { font-size: 13.5px; }
  .thumb .pill { font-size: 14px; }
}
@media (max-width: 760px) {
  .brief { grid-template-columns: 1fr; gap: 18px; }
  .stage { min-height: 0; padding: 10px; }
  .ask { position: static; margin-top: 36px; flex-wrap: wrap; box-shadow: none; backdrop-filter: none; background: var(--surface); }
  .ask > .seg { flex-basis: 100%; width: fit-content; max-width: 100%; }
  .ask:focus-within .ask-keys { display: none; }
  .ask-left { position: static; margin: 4px 0 0 2px; }
  .bar { flex-direction: column; align-items: stretch; gap: 10px; padding: 10px; border-radius: 20px; }
  .bar input { flex: none; height: 56px; padding: 0 12px; }
  .bar .btn { height: 52px; }
  .bar-act > .pass { flex: 1; width: auto; }
  .bar-act > .btn:only-child { flex: 1; }
  .bar .btn { padding: 0 18px; }
  .stepper li { font-size: 12px; }
}
