/* Relign Video. One accent (Relign blue), one card, five type sizes. Dark only: a reel is judged against a dark surround.
   Type: Geist. Sizes 12/16, 14/20, 16/24, 20/28, 28/32. Weights 400 500 600. Numbers are tabular. (The teleprompter's size is set by its own slider.)
   Spacing: 4 8 12 16 24 32 48. Radius: 4 marks, 8 controls and media, 16 cards and floating layers, 12 inside floating layers. Inner = outer - padding.
   Colour: every colour and every see-through fill is a token below. Shadow and blur live on floating layers only (dock, sheets, search, toast).
   Motion: 150ms ease-out in, 100ms out. The only loops are on a running job. All of it stops under reduced motion. */
@font-face { font-family: Geist; src: url(/a/fonts/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #0A0A0B; --surface: #111113; --raised: #18181B; --black: #000; --white: #fff;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.16); --field: #666667;
  --ink: #EDEDEF; --soft: #C8C8CD; --muted: #A1A1A6; --faint: #8E8E93;
  --accent: #4766FF; --accent-lo: #3D5CF5; --accent-ink: #8FA1FF; --accent-wash: rgba(71,102,255,.14);
  --ok: #30D158; --warn: #FF9F0A; --bad: #FF453A; --ok-wash: rgba(48,209,88,.14); --warn-wash: rgba(255,159,10,.14); --bad-wash: rgba(255,69,58,.16); --bad-line: rgba(255,69,58,.5);
  --veil: rgba(10,10,11,.78); --scrim: rgba(0,0,0,.6); --glass: rgba(24,24,27,.78); --rim: rgba(255,255,255,.1);
  --frame: rgba(255,255,255,.22); --frame-dim: rgba(255,255,255,.06); --hole: rgba(255,255,255,.2);
  /* the effect numbers. app/design/scratch has sliders for each one: tune there, then copy the value here */
  --lift: rgba(255,255,255,.22); --press: rgba(0,0,0,.24); --contact: 0 1px 2px rgba(0,0,0,.5);
  --glow: 0 0 12px rgba(71,102,255,.4); --float: 0 1px 2px rgba(0,0,0,.5), 0 12px 32px -8px rgba(0,0,0,.55); --blur: blur(16px) saturate(140%); --sweep: 2.4s;
  --text: Geist, system-ui, -apple-system, "Segoe UI", sans-serif; --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --fast: 150ms; --out: 100ms; --ui: 150ms; --ease: cubic-bezier(.2,.8,.2,1);
  --rail: 224px; --top: 0px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font: 400 14px/20px var(--text); font-variant-numeric: tabular-nums; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 56px); color-scheme: dark; }
body { margin: 0; min-height: 100dvh; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol, dl, dd, figure, pre { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 8px; }
main:focus { outline: none; }
::selection { background: var(--accent); color: var(--white); }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 150ms; }

h1 { font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
h3 { font-size: 16px; line-height: 24px; font-weight: 600; }
.muted { color: var(--muted); }
.meta { font-size: 12px; line-height: 16px; color: var(--faint); }
.meta a, .hint a, .muted a, .callout a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.hint { font-size: 12px; line-height: 16px; color: var(--muted); max-width: 72ch; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 60; background: var(--accent); color: var(--white); padding: 8px 12px; border-radius: 8px; }
.i { flex: none; }
.btn .i, .tag .i, .back .i, .state .i, .ai-note .i, .stats .i, .more .i, .hint .i, .err .i, .flash .i { width: 16px; height: 16px; }
kbd { font: 500 12px/16px var(--text); color: var(--faint); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 4px; }

/* ---- the frame: a rail on a laptop, in the order of the work; a top bar and a five-cell dock on a phone ---- */
.top { position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--rail); display: flex; flex-direction: column; gap: 16px; padding: 16px 12px; background: var(--bg); border-right: 1px solid var(--line); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 8px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; background: var(--accent); color: var(--white); flex: none; }
.mark .i { fill: currentColor; stroke: none; margin-left: 1px; }
.nav { display: grid; gap: 16px; }
.nav-g { display: grid; gap: 4px; }
.nav-l { padding: 0 8px 4px; font-size: 12px; line-height: 16px; color: var(--faint); }
.nav a, .nav-x, .menu a, .menu button { display: flex; align-items: center; gap: 12px; width: 100%; height: 36px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-weight: 500; text-align: left; transition: color var(--fast) var(--ease), background var(--fast) var(--ease); }
.nav a:hover, .nav-x:hover, .menu a:hover, .menu button:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current], .nav-x[aria-current], .menu a[aria-current] { color: var(--ink); background: var(--raised); }
.nav a[aria-current] .i, .nav-x[aria-current] .i, .menu a[aria-current] .i { color: var(--accent-ink); }
.top-right { margin-top: auto; display: grid; gap: 4px; }
.top-right form { display: contents; }
.kbtn { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-weight: 500; transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.kbtn:hover { border-color: var(--line-2); color: var(--ink); }
.kbtn kbd { margin-left: auto; }
.quiet { cursor: pointer; }
#live-chip:empty { display: none; }
.chip { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 12px; line-height: 16px; font-weight: 500; transition: border-color var(--fast) var(--ease); }
.chip:hover { border-color: var(--line-2); }
.chip > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock, .menu { display: none; }

main { margin-left: var(--rail); max-width: 1216px; padding: 32px 40px 96px; }
.lead { margin-bottom: 24px; display: grid; gap: 4px; }
.lead.tight { margin-bottom: 16px; }
.lead > p, .lead > div > p { max-width: 72ch; }
.row-lead { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }
.lead-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; color: var(--muted); font-size: 12px; line-height: 16px; margin-bottom: 8px; transition: color var(--fast) var(--ease); }
.back:hover { color: var(--ink); }
.section { font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0; color: var(--ink); margin: 32px 0 12px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.section:first-child { margin-top: 0; }
main > section + section, main > .reel-page section + section { margin-top: 32px; }
main > section:empty { display: none; }
.section .meta { font-weight: 400; }
.flash, .callout { display: flex; gap: 8px; align-items: flex-start; padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin-bottom: 24px; color: var(--muted); }
.flash { border-color: var(--bad-line); color: var(--ink); }
.flash .i { color: var(--bad); margin-top: 2px; }
.callout { display: block; }
.callout p + p { margin-top: 8px; }
.callout strong, .callout code { color: var(--ink); }

/* ---- controls ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font-weight: 500; font-size: 14px; line-height: 1; white-space: nowrap; transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease); user-select: none; }
.btn:hover { background: var(--raised); }
.btn:active { transform: scale(.98); }
/* the one primary: lifted (a light top edge, a dark bottom edge, a contact shadow), rises on hover, presses in */
.btn.primary { background: var(--accent); border-color: transparent; color: var(--white); font-weight: 600; box-shadow: inset 0 1px 0 var(--lift), inset 0 -1px 0 var(--press), var(--contact); }
.btn.primary:hover { background: var(--accent-lo); transform: translateY(-1px); box-shadow: inset 0 1px 0 var(--lift), inset 0 -1px 0 var(--press), var(--contact), var(--glow); }
.btn.primary:active { transform: translateY(0) scale(.98); box-shadow: inset 0 1px 2px var(--press); }
.btn.small { height: 32px; padding: 0 12px; }
.btn.icon { width: 36px; padding: 0; border-radius: 50%; flex: none; }
.btn.icon .i { fill: currentColor; }
.btn.wide { width: 100%; }
.btn.big { height: 48px; padding: 0 16px; font-size: 16px; }
.btn.ghost { border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); }
.btn.ghost .i { fill: none; }
.btn[disabled] { opacity: .45; cursor: default; pointer-events: none; }
label { display: block; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted); margin: 16px 0 4px; }
input[type=text], input[type=url], input[type=password], input[type=number], input[type=search], select, input:not([type]), textarea { width: 100%; background: var(--bg); border: 1px solid var(--field); border-radius: 8px; padding: 8px 12px; font-size: 14px; line-height: 20px; transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
textarea { resize: vertical; min-height: 88px; display: block; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-wash); }
select { height: 38px; appearance: none; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A1A1A6' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 32px; text-overflow: ellipsis; }
input[type=range] { flex: 1; min-width: 0; height: 24px; background: none; accent-color: var(--accent); cursor: pointer; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--ink); }
.opt input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.kinds { border: 0; padding: 0; margin: 16px 0 0; display: flex; gap: 0 24px; flex-wrap: wrap; }
.kinds legend { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted); padding: 0; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 12px; background: var(--raised); font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; }
.tag.accent { color: var(--accent-ink); background: var(--accent-wash); }
.tag.ok { color: var(--ok); background: var(--ok-wash); }
.tag.warn { color: var(--warn); background: var(--warn-wash); }
.tag a { text-decoration: underline; text-underline-offset: 2px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; display: inline-block; }
.dot.ok { background: var(--ok); } .dot.bad { background: var(--bad); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent-ink); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(1turn); } }
.err { color: var(--bad); margin-top: 8px; }
.err .i { vertical-align: -3px; margin-right: 4px; }
.ai-note { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 16px; color: var(--warn); margin: 12px 0; max-width: 72ch; }

/* ---- the one card ---- */
.card, .review, .job, .board, .filters, .snd, .c-angles li, .c-sec, .c-count, .nextup, .rows, .vlist, .chans, .vault, .c-pipe, .confirm[open] > form, .confirm[open] > div, .table { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.rows, .vlist, .chans, .vault, .c-pipe, .table { overflow: hidden; }
.rows li + li, .vrow + .vrow, .chans li + li, .vault > li + li, .c-pipe li + li { border-top: 1px solid var(--line); }

/* ---- the stage: where a video sits ---- */
.stage { position: relative; display: block; aspect-ratio: 9 / 16; background: var(--black); border-radius: 8px; overflow: hidden; }
.stage video, .stage img { width: 100%; height: 100%; object-fit: contain; }
.vp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; min-width: 0; }
.js .vp .stage { cursor: pointer; }
.vp-big { display: none; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; border: 0; background: var(--veil); color: var(--white); place-items: center; pointer-events: none; transition: opacity var(--ui) var(--ease), transform var(--ui) var(--ease), background var(--ui) var(--ease); }
.vp-big .i { fill: currentColor; margin-left: 2px; }
.js .vp-big { display: grid; }
.js .vp .stage:hover .vp-big { transform: scale(1.06); background: var(--accent); }
.vp.playing .vp-big { opacity: 0; transform: scale(.9); }
.vp .ctl { display: none; }
.js .vp .ctl { display: flex; }
.ctl { display: flex; align-items: center; gap: 12px; }
/* the player's round play button is ink, not accent: the accent stays for the page's one primary */
.ctl .btn.icon.primary, .ctl .btn.icon.primary:hover { background: var(--ink); color: var(--bg); box-shadow: none; transform: none; }
.time { min-width: 36px; }
.stage-note { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border-radius: 4px; background: var(--veil); font-size: 12px; line-height: 16px; color: var(--ink); text-align: center; }
.facts { width: 100%; margin-top: 8px; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--faint); }
.facts dd .meta { margin-left: 4px; }
.facts.hookfacts { margin: 0 0 16px; max-width: 72ch; }
.beside { width: 100%; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.beside details.change { margin-top: 16px; }

/* ---- Home: the reel to judge, then the job, then the line ---- */
.desk { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.desk-main, .desk-side { display: grid; gap: 24px; min-width: 0; }
.desk-side > section:empty { display: none; }
.desk-side .section { margin: 0 0 12px; }
.reviews { display: grid; gap: 24px; }
.review { align-items: start; display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 16px; padding: 8px; transition: border-color var(--fast) var(--ease); }
.review:hover, .review:focus-within { border-color: var(--line-2); }
.review-body { display: flex; flex-direction: column; align-items: flex-start; align-self: stretch; gap: 8px; min-width: 0; padding: 8px 8px 8px 0; }
.review-body h2 a:hover, .vrow-main h2 a:hover, .vault-line a:hover { text-decoration: underline; text-underline-offset: 3px; }
.review-body .sub { color: var(--muted); max-width: 44ch; }
.more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 4px; min-height: 24px; font-size: 12px; line-height: 16px; color: var(--muted); transition: color var(--fast) var(--ease); }
.more:hover { color: var(--ink); }
.verdict { width: 100%; margin-top: 8px; display: grid; gap: 8px; }
.review-body > .verdict { margin-top: auto; padding-top: 16px; }
.review-body > .verdict ~ .more { margin-top: 0; }
.verdict-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.review .verdict .verdict-row { display: grid; }
.review .verdict .verdict-row .btn { width: 100%; }
.review .verdict .btn.primary, .board-verdict .btn.primary { height: 48px; font-size: 16px; }
.state { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.state.ok { color: var(--ok); } .state.warn { color: var(--warn); }
details.change summary { list-style: none; }
details.change summary::-webkit-details-marker { display: none; }
details.change[open] { flex-basis: 100%; }
details.change[open] summary { display: none; }
details.change form { display: grid; gap: 8px; padding-top: 4px; animation: rise var(--ui) var(--ease); }
details.change form label { margin: 0; }
details.change form .btn { justify-self: start; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }
.notes { width: 100%; display: grid; gap: 8px; }
.notes li { padding: 8px 12px; border-left: 2px solid var(--line-2); }
.notes p { white-space: pre-wrap; overflow-wrap: anywhere; }
/* the line: the path a video takes, each step a link */
.c-pipe ol { display: grid; }
.c-pipe > .section { margin: 0; padding: 16px 16px 4px; }
.c-pipe a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l n" "s n"; column-gap: 12px; align-items: center; min-height: 56px; padding: 8px 16px 8px 44px; transition: background var(--fast) var(--ease); }
.c-pipe a:hover { background: var(--raised); }
.c-pipe a::before { content: ""; position: absolute; left: 20px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; border: 1px solid var(--faint); background: var(--surface); z-index: 1; transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.c-pipe a:hover::before { background: var(--accent-ink); border-color: var(--accent-ink); }
.c-pipe a::after { content: ""; position: absolute; left: 23px; top: 0; bottom: 0; width: 2px; background: var(--line-2); }
.c-pipe li:first-child a::after { top: 50%; } .c-pipe li:last-child a::after { bottom: 50%; }
.c-pipe-n { grid-area: n; font-size: 16px; line-height: 24px; font-weight: 600; }
.c-pipe-l { grid-area: l; font-weight: 500; }
.c-pipe-s { grid-area: s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- a job: a strip of film, one frame per step. queued breathes, running has a playhead, stopped is locked ---- */
.jobs { display: grid; gap: 8px; }
#video-job .jobs, #reel-job .jobs { margin: 16px 0 24px; }
.job { padding: 16px; display: grid; gap: 12px; }
.job-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.job-what { display: grid; min-width: 0; }
.job-what strong { font-weight: 600; overflow-wrap: anywhere; }
.job-state { color: var(--muted); text-align: right; display: inline-flex; align-items: center; gap: 4px; }
.job.failed { border-color: var(--bad-line); }
.job.failed .job-state { color: var(--bad); font-weight: 500; }
.job-err { color: var(--ink); overflow-wrap: anywhere; }
.film { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 8px 4px; border-radius: 8px; overflow: hidden; background-color: var(--bg); background-image: radial-gradient(circle, var(--hole) 1px, transparent 1.5px), radial-gradient(circle, var(--hole) 1px, transparent 1.5px); background-size: 8px 4px; background-repeat: repeat-x; background-position: 2px 2px, 2px calc(100% - 2px); }
.film i { position: relative; height: 32px; border-radius: 4px; border: 1px solid var(--line-2); overflow: hidden; }
.film i.done { background: var(--frame); border-color: transparent; }
.film.queued i { border-style: dashed; border-color: var(--frame); animation: breathe 2.4s ease-in-out infinite; }
.film.queued i:nth-child(2) { animation-delay: .3s; } .film.queued i:nth-child(3) { animation-delay: .9s; } .film.queued i:nth-child(4) { animation-delay: .5s; } .film.queued i:nth-child(5) { animation-delay: 1.3s; } .film.queued i:nth-child(6) { animation-delay: .7s; }
@keyframes breathe { 50% { opacity: .35; } }
.film i.now { border-color: var(--accent); background: var(--accent-wash); box-shadow: var(--glow); }
.film i.now::after, .film.unknown::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--accent-ink); animation: sweep var(--sweep) ease-in-out infinite alternate; }
.film.unknown::after { top: 8px; bottom: 8px; animation-duration: calc(var(--sweep) * 2); }
@keyframes sweep { from { left: 0; } to { left: calc(100% - 2px); } }
.film.failed { outline: 1px solid var(--bad-line); outline-offset: -1px; }
.film i.fail { border-color: var(--bad); background: repeating-linear-gradient(135deg, var(--bad-wash) 0 4px, transparent 4px 8px); }
.film.failed i:not(.done):not(.fail) { background: var(--frame-dim); border-color: transparent; }
.mini { display: flex; gap: 2px; flex: none; }
.mini i { width: 4px; height: 12px; border-radius: 1px; background: var(--line-2); }
.mini i.done { background: var(--muted); }
.mini i.now { background: var(--accent-ink); animation: breathe var(--sweep) ease-in-out infinite; }
.mini.unknown i { animation: breathe var(--sweep) ease-in-out infinite; }
.mini.unknown i:nth-child(2n) { animation-delay: .6s; }
.job-steps ol { display: grid; padding-bottom: 4px; }
.job-steps li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: center; min-height: 28px; color: var(--faint); }
.job-steps li::before { content: ""; width: 8px; height: 8px; margin: 0 4px; border-radius: 50%; border: 1px solid var(--line-2); }
.job-steps li.done { color: var(--muted); } .job-steps li.done::before { background: var(--ok); border-color: var(--ok); }
.job-steps li.now { color: var(--ink); } .job-steps li.now::before { background: var(--accent-ink); border-color: var(--accent-ink); }
.job-steps li.fail { color: var(--ink); } .job-steps li.fail::before { background: var(--bad); border-color: var(--bad); }
.bar { height: 8px; background: var(--raised); border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .3s linear; }
.bar.unknown span { width: 30% !important; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.log summary, .caption summary { cursor: pointer; min-height: 24px; font-size: 12px; line-height: 16px; color: var(--muted); }
.log pre, .soundtxt { margin-top: 8px; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font: 400 12px/16px var(--mono); color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto; }
.take-state { display: grid; gap: 8px; width: 100%; }
.take-music { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }

/* ---- rows ---- */
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px; min-height: 64px; padding: 8px 16px 8px 8px; transition: background var(--fast) var(--ease); }
.row:hover, .row:focus-visible { background: var(--raised); }
.thumb { display: grid; place-items: center; width: 27px; height: 48px; border-radius: 4px; overflow: hidden; background: var(--black); color: var(--faint); flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.lg { width: 72px; height: 128px; border-radius: 8px; }
.row-main { display: flex; flex-direction: column; min-width: 0; }
.row-main strong, .row-main .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main strong { font-weight: 500; }
.row-main .muted { font-size: 12px; line-height: 16px; }
.row-when { min-width: 96px; text-align: right; }

/* ---- Library and the tracker's grid ---- */
.add { width: min(100%, 440px); }
.add label { margin-top: 0; }
.add-row { display: flex; gap: 8px; }
.add-row input { flex: 1; min-width: 0; }
.add .hint { margin-top: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 24px 16px; }
.reel { display: grid; gap: 8px; align-content: start; border-radius: 8px; }
.poster { position: relative; aspect-ratio: 9 / 16; background: var(--black); border-radius: 8px; overflow: hidden; outline: 1px solid var(--line); outline-offset: -1px; transition: outline-color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.poster img, .poster video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster video { opacity: 0; transition: opacity var(--ui) var(--ease); }
.poster video.on { opacity: 1; }
.poster.empty { display: grid; place-items: center; color: var(--faint); background: var(--surface); }
a.reel:hover .poster, a.reel:focus-visible .poster { outline-color: var(--muted); transform: translateY(-2px); }
.len, .out, .cmp-tag { position: absolute; z-index: 1; padding: 0 4px; border-radius: 4px; background: var(--veil); font: 500 12px/20px var(--text); color: var(--white); }
.len { right: 8px; bottom: 8px; } .len.left { right: auto; left: 8px; }
.out { left: 8px; top: 8px; font-weight: 600; } .out.hot { color: var(--accent-ink); }
strong.hot { color: var(--accent-ink); }
.reel-info { display: grid; gap: 4px; padding: 0 4px; }
.reel-info strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats { display: flex; gap: 4px 12px; flex-wrap: wrap; }
.stats span, .stats a { display: inline-flex; align-items: center; gap: 4px; }
.stats a { color: var(--accent-ink); }
.stats.big { margin-top: 4px; gap: 4px 16px; align-items: center; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; }
.nw span { white-space: nowrap; }
.clamp, .c-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal !important; overflow-wrap: anywhere; }
h1.clamp { font-size: 20px; line-height: 28px; letter-spacing: -.01em; max-width: 80ch; }
.count { margin: 16px 0 12px; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 32px; }
.pager > :last-child { justify-self: end; }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; align-items: end; padding: 16px; }
.filters label { margin: 0 0 4px; }
.filters-go { display: flex; gap: 8px; }
.filt > summary { list-style: none; width: max-content; } .filt > summary::-webkit-details-marker { display: none; }
.filt[open] > summary { margin-bottom: 12px; }

/* ---- a reel ---- */
.reel-page { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 40px; align-items: start; }
.reel-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100dvh - 32px); }
.reel-side .vp { flex: none; width: min(100%, calc((100dvh - 300px) * 9 / 16)); min-width: 200px; }
.tracked-side { position: static; max-height: none; }
.tracked-side .poster { width: 100%; }
.transcript { flex: 1 1 120px; min-height: 120px; display: flex; flex-direction: column; overflow: hidden; }
.transcript .section { margin: 0 0 8px; }
.words { position: relative; overflow-y: auto; font-size: 14px; line-height: 24px; color: var(--muted); padding-right: 8px; }
.words.open { overflow: visible; max-width: 72ch; }
.words span { cursor: pointer; padding: 2px 1px; border-radius: 4px; transition: color var(--fast) var(--ease), background var(--fast) var(--ease); }
.words span:hover, .words span.said { color: var(--ink); }
.words span.now { color: var(--white); background: var(--accent); }
.caption p { margin-top: 8px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.tabs { position: sticky; top: var(--top); z-index: 10; display: flex; gap: 24px; background: var(--bg); border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 12px 0 10px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-selected=true] { color: var(--ink); border-color: var(--accent); }
.js .panel:not(.on) { display: none; }
.panel { animation: rise var(--ui) var(--ease); }
.lede { color: var(--muted); margin-bottom: 16px; max-width: 64ch; }
.sheets { display: grid; gap: 24px; }
.sheets.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sheet-wrap { display: grid; gap: 8px; justify-items: start; }
.sheet { position: relative; display: block; width: 100%; padding: 0; border: 0; outline: 1px solid var(--line); outline-offset: -1px; border-radius: 8px; overflow: hidden; background: var(--black); cursor: pointer; text-align: left; transition: outline-color var(--fast) var(--ease); }
.sheet:hover { outline-color: var(--muted); }
.sheet:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.sheet img { width: 100%; height: auto; }
.sheets.small .sheet { display: grid; background: var(--surface); }
.sheets.small .sheet img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.sheets.small .sheet .meta { padding: 4px 8px; }
.sheet.wide img { aspect-ratio: auto; }
.cell { position: absolute; width: 12.5%; height: 20%; border: 2px solid var(--accent-ink); border-radius: 4px; box-shadow: 0 0 0 1px var(--scrim); pointer-events: none; transition: left var(--fast) var(--ease), top var(--fast) var(--ease); }
.rebuild { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; align-items: start; }
.gap { border-top: 1px solid var(--line); margin-bottom: 8px; }
.gap > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.gap dt { color: var(--muted); }
.gap dd .meta { display: block; margin-top: 4px; }
.rebuild-side .btn.small { margin-top: 16px; }
.full-report { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 16px; }
.full-report summary { cursor: pointer; min-height: 24px; color: var(--muted); font-weight: 500; }
.full-report .prose { margin-top: 16px; }
.cmp { display: grid; gap: 12px; }
.cmp-stage { position: relative; aspect-ratio: 9 / 16; background: var(--black); border-radius: 8px; overflow: hidden; --split: 50%; touch-action: pan-y; user-select: none; }
.cmp-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cmp-b { clip-path: inset(0 0 0 var(--split)); }
.cmp-split { position: absolute; top: 0; bottom: 0; left: var(--split); width: 44px; margin-left: -22px; cursor: ew-resize; display: grid; place-items: center; }
.cmp-split::before { content: ""; position: absolute; top: 0; bottom: 0; left: 21px; width: 2px; background: var(--white); }
.cmp-split span { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--white); color: var(--bg); }
.cmp-tag { top: 8px; pointer-events: none; }
.cmp-tag.a { left: 8px; } .cmp-tag.b { right: 8px; }
.cmp[data-mode=side] .cmp-stage { aspect-ratio: 18 / 16; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.cmp[data-mode=side] .cmp-stage video { position: static; }
.cmp[data-mode=side] .cmp-b { clip-path: none; }
.cmp[data-mode=side] .cmp-split { display: none; }
.cmp[data-mode=side] .cmp-tag.b { left: calc(50% + 9px); right: auto; }

/* ---- prose (recipes, reports, the checklist) ---- */
.prose, .recipe { line-height: 24px; color: var(--soft); max-width: 86ch; overflow-wrap: anywhere; }
.prose > * + *, .recipe > * + * { margin-top: 12px; }
.prose h2, .recipe h2 { color: var(--ink); }
.prose h3, .recipe h3 { font-size: 14px; line-height: 20px; color: var(--ink); margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }
.prose h4, .prose h5, .recipe h4, .recipe h5 { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); margin-top: 24px; }
.prose ul, .prose ol, .recipe ul, .recipe ol { padding-left: 20px; display: grid; gap: 4px; }
.prose ul, .recipe ul { list-style: disc; } .prose ol, .recipe ol { list-style: decimal; }
.prose li::marker { color: var(--faint); }
.prose strong, .recipe strong { color: var(--ink); font-weight: 600; }
.prose code, .callout code, .recipe code { font: 400 12px/16px var(--mono); background: var(--raised); border-radius: 4px; padding: 0 4px; }
.table { overflow-x: auto; border-radius: 8px; }
.prose table, .recipe table { border-collapse: collapse; width: 100%; line-height: 20px; }
.prose th, .recipe th { text-align: left; font-weight: 500; color: var(--muted); background: var(--raised); white-space: nowrap; }
.prose th, .prose td, .recipe th, .recipe td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { white-space: nowrap; color: var(--muted); }
.script { display: grid; gap: 12px; font-size: 16px; line-height: 24px; color: var(--soft); max-width: 62ch; }

/* ---- Videos ---- */
.vrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px; transition: background var(--fast) var(--ease); cursor: pointer; }
.vrow:hover, .vrow:focus-within { background: var(--raised); }
.vrow-main { display: grid; gap: 4px; min-width: 0; }
.vrow-main .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vrow-next { display: grid; gap: 8px; justify-items: end; text-align: right; max-width: 260px; }
.steps { display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: 12px; }
.steps li { position: relative; display: flex; align-items: center; gap: 8px; padding-right: 36px; font-size: 12px; line-height: 16px; color: var(--faint); white-space: nowrap; }
.steps li:last-child { padding-right: 0; }
.steps li:not(:last-child)::after { content: ""; position: absolute; right: 8px; width: 20px; height: 1px; background: var(--line-2); }
.steps li.done:not(:last-child)::after { background: var(--muted); }
.step-mark { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--bg); flex: none; }
.step-mark .i { width: 12px; height: 12px; }
.steps .done { color: var(--muted); }
.steps .done .step-mark { background: var(--muted); border-color: transparent; }
.steps .now { color: var(--ink); font-weight: 500; }
.steps .now .step-mark { border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-wash); }
.steps .now.busy .step-mark { border-top-color: transparent; animation: spin .9s linear infinite; }
.c-steps a { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.vhead { grid-template-columns: 1fr; gap: 0; }
.vhead .steps { margin-top: 16px; }
.nextup { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding: 12px 12px 12px 16px; }
.nextup strong { font-weight: 600; }
.form-page + section { margin-top: 32px; }
.form-page { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 320px); gap: 48px; align-items: start; }
.form h1 + .muted { margin-top: 4px; }
.form .btn { margin-top: 16px; }
.form .verdict-row .btn, .up .up-run .btn, .up .up-done .btn { margin-top: 0; }
.form .verdict-row { margin-top: 16px; }
.next-steps ol { counter-reset: s; display: grid; gap: 12px; }
.next-steps li { counter-increment: s; position: relative; padding-left: 24px; color: var(--muted); }
.next-steps li::before { content: counter(s); position: absolute; left: 0; color: var(--faint); }
.next-steps li strong { color: var(--ink); font-weight: 500; }
.next-steps .hint { margin-top: 16px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.script-form { display: grid; gap: 8px; justify-items: start; }
.script-form textarea { font-size: 16px; line-height: 24px; }
.voice { width: 100%; height: 40px; }
.nodes { counter-reset: n; border-top: 1px solid var(--line); }
.nodes li { counter-increment: n; display: flex; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.nodes li::before { content: counter(n); color: var(--faint); width: 12px; }
.nodes strong { font-weight: 500; }
.nodes .meta { margin-left: auto; }
.nodes + .hint { margin-top: 8px; }
.board { display: grid; gap: 16px; padding: 8px 8px 16px; }
.board-view { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 32px; align-items: center; }
.board-still { position: relative; aspect-ratio: 9 / 16; background: var(--black); border-radius: 8px; overflow: hidden; }
.board-still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: fade var(--ui) var(--ease); }
@keyframes fade { from { opacity: 0; } }
.board-side { display: grid; gap: 16px; align-content: center; min-width: 0; }
.board-label { display: grid; gap: 4px; }
.board-label strong { font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -.02em; }
.board-caption { min-height: 56px; font-size: 20px; line-height: 28px; color: var(--muted); letter-spacing: -.01em; }
.board-caption b { font-weight: 500; color: var(--white); background: var(--accent); border-radius: 4px; padding: 0 4px; margin: 0 -2px; }
.ruler { position: relative; height: 32px; margin: 0 8px; cursor: pointer; touch-action: none; }
.ruler::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 2px; background: var(--line-2); border-radius: 1px; }
.ruler-fill { position: absolute; left: 0; top: 15px; height: 2px; width: calc(var(--now, 0) * 100%); background: var(--accent); }
.ruler-fill::after { content: ""; position: absolute; right: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); }
.tick { position: absolute; top: 10px; left: calc(var(--t) / var(--dur, 60) * 100%); width: 2px; height: 12px; margin-left: -1px; background: var(--faint); border-radius: 1px; }
.tick.past { background: var(--accent-ink); }
.strip { display: flex; gap: 8px; overflow-x: auto; padding: 0 8px 4px; scroll-snap-type: x proximity; }
.strip li { flex: none; scroll-snap-align: start; }
.strip button { display: grid; gap: 4px; width: 92px; padding: 0; background: none; border: 0; text-align: left; }
.strip img { width: 90px; height: 160px; object-fit: cover; border-radius: 8px; outline: 1px solid var(--line); outline-offset: -1px; transition: outline-color var(--fast) var(--ease); }
.strip button:hover img { outline-color: var(--muted); }
.strip button[aria-current=true] img { outline: 2px solid var(--accent-ink); }
.strip-label { font-size: 12px; line-height: 16px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip button[aria-current=true] .strip-label { color: var(--ink); }
.board-verdict { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.board-verdict details.change[open] { max-width: 560px; }

/* ---- empty states, sign in ---- */
.empty { display: grid; gap: 8px; justify-items: start; padding: 24px 0; }
.empty .btn, .empty form { margin-top: 8px; }
.empty .muted { max-width: 56ch; }
.empty.tall { margin-top: 12vh; justify-items: center; text-align: center; }
.bare { display: grid; place-items: center; }
.login { width: min(100%, 368px); padding: 24px; margin: 0; max-width: none; }
.login-box { display: grid; }
.login-box h1 { margin-top: 16px; }
.login-box .muted { margin: 4px 0 8px; }
.login-box .btn { margin-top: 16px; height: 48px; font-size: 16px; }
.login-box input { height: 48px; font-size: 16px; }
.mark.big { width: 32px; height: 32px; border-radius: 8px; }

/* ---- floating layers: search, the More sheet, the full-size viewer, the toast. The only blur and shadow in the app. ---- */
dialog { color: var(--ink); border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: inset 0 1px 0 var(--rim), var(--float); padding: 0; }
dialog::backdrop { background: var(--scrim); }
.k { width: min(560px, calc(100vw - 32px)); margin-top: 14vh; border-radius: 16px; overflow: hidden; }
.k[open], .menu[open] { animation: rise var(--fast) var(--ease); }
.k input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; height: 56px; padding: 0 16px; font-size: 16px; line-height: 24px; background: transparent; }
.k input:focus { box-shadow: none; }
.k ul { max-height: 46vh; overflow-y: auto; padding: 8px; }
.k li a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 0 12px; border-radius: 8px; }
.k li a span { color: var(--faint); font-size: 12px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k li[aria-selected=true] a { background: var(--accent); color: var(--white); }
.k li[aria-selected=true] a span { color: var(--white); }
.k-none { padding: 16px 12px; color: var(--faint); }
.k-hint { display: flex; gap: 8px; align-items: center; padding: 8px 16px; border-top: 1px solid var(--line); font-size: 12px; line-height: 16px; color: var(--faint); }
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0; background: var(--bg); box-shadow: none; }
.lb-pan { width: 100%; height: 100%; overflow: auto; display: grid; place-items: center; padding: 16px; }
.lb-pan img { max-width: 100%; max-height: calc(100dvh - 32px); cursor: zoom-in; border-radius: 4px; }
.lb-pan.big { place-items: start center; }
.lb-pan.big img { max-width: none; max-height: none; cursor: zoom-out; }
.lb-x { position: fixed; top: 12px; right: 12px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; }
.news { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30; box-shadow: inset 0 1px 0 var(--lift), var(--float) !important; }
.news:hover { transform: translateX(-50%) translateY(-1px) !important; }
[data-item]:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

/* ---- upload a take ---- */
.pick { position: relative; display: grid; justify-items: center; gap: 4px; margin: 0; padding: 32px 16px; border: 1px dashed var(--field); border-radius: 16px; background: var(--surface); color: var(--ink); text-align: center; cursor: pointer; transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease); }
.pick:hover, .pick:focus-within { border-color: var(--accent-ink); background: var(--raised); }
.pick strong { font-size: 16px; line-height: 24px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick .i { width: 20px; height: 20px; color: var(--accent-ink); }
.pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.up-run, .up-done { display: grid; gap: 12px; margin-top: 24px; }
.up-pct { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.up-pct strong { font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -.02em; }
.up-done .state { font-size: 16px; line-height: 24px; }
.up > .err { margin-top: 16px; padding: 12px 16px; border: 1px solid var(--bad-line); border-radius: 8px; background: var(--bad-wash); color: var(--ink); }

/* ---- tracker lists, folds, confirmations ---- */
.chan { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 12px 16px; transition: background var(--fast) var(--ease); }
.chan-main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; }
.chan-main .err, .c-wide { flex-basis: 100%; min-width: 0; }
.chan-acts { display: flex; gap: 8px; align-items: start; flex-wrap: wrap; justify-content: flex-end; }
.confirm > summary { list-style: none; cursor: pointer; }
.confirm > summary::-webkit-details-marker { display: none; }
.confirm[open] { flex-basis: 100%; }
.confirm[open] > form, .confirm[open] > div { display: grid; gap: 8px; justify-items: start; margin-top: 8px; padding: 12px; border-radius: 8px; max-width: 560px; }
.confirm.copy[open] > div { max-width: none; justify-items: stretch; }
.confirm textarea { font: 400 12px/16px var(--mono); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.beats { display: grid; max-width: 72ch; border-top: 1px solid var(--line); }
.beats li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.beats .meta { padding-top: 2px; }
.beats p { color: var(--muted); }
.vault > li { display: grid; gap: 4px; padding: 16px; transition: background var(--fast) var(--ease); }
.vault > li:hover, .chan:hover { background: var(--raised); }
.vault-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vault-line { font-size: 16px; line-height: 24px; max-width: 72ch; }
.vault-line strong { font-weight: 600; }
.vault .muted, .vault li > p { max-width: 80ch; overflow-wrap: anywhere; }
.fold { border-top: 1px solid var(--line); }
.fold > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--muted); list-style: none; transition: color var(--fast) var(--ease); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before { content: ""; width: 8px; height: 8px; margin: 0 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform var(--fast) var(--ease); flex: none; }
.fold[open] > summary::before { transform: rotate(45deg); }
.fold > summary:hover, .fold[open] > summary { color: var(--ink); }
.fold[open] { padding-bottom: 12px; }
.fold .recipe { overflow-x: auto; }
.pics { display: grid; gap: 12px; margin: 8px 0; }
.pics li { display: grid; gap: 4px; overflow-wrap: anywhere; }
.snds { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.snd { display: grid; gap: 8px; padding: 16px; min-width: 0; }
.snd-main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; overflow-wrap: anywhere; }
.snd-main .meta { flex-basis: 100%; }
.snd audio { width: 100%; height: 40px; }
.c-foot { display: none; }

/* ---- phone (and anything narrower than a laptop) ---- */
@media (max-width: 899px) {
  :root { --top: 48px; }
  .top { position: sticky; inset: auto; top: 0; width: auto; height: var(--top); flex-direction: row; align-items: center; gap: 8px; padding: 0 4px 0 16px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .brand { padding: 0; margin-right: auto; min-height: 44px; }
  input[type=range] { height: 44px; }
  .ruler { height: 44px; } .ruler::before, .ruler-fill { top: 21px; } .tick { top: 16px; }
  .chan-main > a { display: inline-flex; align-items: center; min-height: 44px; }
  .c-steps a { min-height: 44px; } .c-steps li { padding-right: 12px; } .c-steps li:not(:last-child)::after { display: none; }
  .nav, .nav-x, .top-right form, .kbtn span, .kbtn kbd { display: none; }
  .top-right { margin: 0; display: flex; align-items: center; gap: 4px; min-width: 0; }
  .kbtn { width: 44px; height: 44px; justify-content: center; padding: 0; background: none; border: 0; }
  .kbtn .i { width: 20px; height: 20px; }
  .chip { min-height: 44px; background: none; border: 0; max-width: 44vw; color: var(--muted); }
  main { margin-left: 0; padding: 16px 16px calc(112px + env(safe-area-inset-bottom)); }
  h1 { font-size: 20px; line-height: 28px; letter-spacing: -.01em; }
  .lead { margin-bottom: 16px; }
  input[type=text], input[type=url], input[type=password], input[type=number], input[type=search], select, input:not([type]), textarea { font-size: 16px; line-height: 24px; min-height: 44px; }
  select { height: 44px; }
  .btn, .btn.small { height: 44px; padding: 0 16px; } .btn.big { height: 48px; } .btn.icon { width: 44px; padding: 0; }
  .back { min-height: 44px; margin-bottom: 0; }
  .more, .log summary, .caption summary, .full-report summary { min-height: 44px; display: flex; align-items: center; }
  .tabs { margin-inline: -16px; padding-inline: 16px; }
  .tabs a { min-height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; padding: 0; }
  .tag[href] { height: 44px; padding: 0 12px; border-radius: 8px; }
  .desk { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .review, .board { gap: 8px; }
  .review { grid-template-columns: minmax(0, 1fr); }
  .review .vp .stage, .review > .stage { width: min(100%, calc(42dvh * 9 / 16)); margin-inline: auto; }
  .review-body { padding: 0 8px 8px; }
  .review-body > .verdict { padding-top: 4px; }
  .review-body > .facts, .review-body > .notes, .review-body > .sheets { order: 5; }
  .review-body > .more { order: 6; }
  .row-lead, .form-page, .rebuild, .reel-page { grid-template-columns: minmax(0, 1fr); }
  .row-lead { align-items: start; gap: 12px; }
  .row-lead > .btn, .row-lead > form > .btn { justify-self: start; }
  .form-page, .two { gap: 32px; }
  .reel-page { gap: 24px; }
  .reel-side { position: static; max-height: none; }
  .reel-side .vp, .tracked-side .vp, .tracked-side .stage { width: min(100%, calc(56dvh * 9 / 16)); margin-inline: auto; }
  .transcript { max-height: 180px; }
  .cmp { max-width: 420px; margin-inline: auto; width: 100%; }
  .row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
  .row-when { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .vrow { grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
  .vrow-next { grid-column: 1 / -1; justify-items: stretch; text-align: left; max-width: none; }
  .steps li { padding-right: 24px; }
  .steps li:not(:last-child)::after { right: 8px; width: 8px; }
  .vrow .steps li span:last-child { display: none; }
  .vrow .steps li.now span:last-child, .vrow .steps li.done:last-child span:last-child { display: inline; }
  .board-view { grid-template-columns: minmax(0, 44%) minmax(0, 1fr); gap: 16px; align-items: start; }
  .board-label strong { font-size: 20px; line-height: 28px; }
  .board-caption { font-size: 16px; line-height: 24px; min-height: 72px; }
  .board-side .hint { display: none; }
  .gap > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .filters-go { grid-column: 1 / -1; } .filters-go .btn { flex: 1; }
  .chan { grid-template-columns: minmax(0, 1fr); }
  .chan-acts { justify-content: flex-start; }
  .acts > form, .acts > details:not([open]) { flex: 1 1 auto; } .acts .btn { width: 100%; }
  .nextup form, .nextup .btn { width: 100%; }
  .k { margin-top: 8vh; }
  .news { bottom: calc(80px + env(safe-area-inset-bottom)); }
  /* the dock: five cells, floating, the one place a phone gets blur */
  .dock { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(8px + env(safe-area-inset-bottom)); padding: 4px; border-radius: 16px; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--rim), var(--float); }
  .dock a, .dock button { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; height: 48px; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--muted); font-size: 12px; line-height: 16px; font-weight: 500; transition: color var(--fast) var(--ease), background var(--fast) var(--ease); }
  .dock .i { width: 20px; height: 20px; }
  .dock a:active, .dock button:active { background: var(--line); }
  .dock [aria-current] { color: var(--ink); background: var(--rim); }
  .dock [aria-current] .i { color: var(--accent-ink); }
  .dock .pip { position: absolute; top: 8px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--raised); }
  .menu[open] { display: block; position: fixed; inset: auto 12px calc(72px + env(safe-area-inset-bottom)) 12px; width: auto; max-width: none; margin: 0; padding: 8px; border-radius: 16px; }
  .menu .nav-g + .nav-g { margin-top: 12px; }
  .menu a, .menu button { height: 44px; }
  .menu form { display: contents; }
}
@media (max-width: 899px) and (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) and (max-width: 1099px) { .desk { grid-template-columns: minmax(0, 1fr) 272px; gap: 16px; } .review { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); } .review .verdict .btn { padding: 0 8px; } main { padding-inline: 24px; } .form-page { gap: 32px; } .reel-page { grid-template-columns: 264px minmax(0, 1fr); gap: 24px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .spin, .steps .now.busy .step-mark, .bar.unknown span, .film i, .film::after, .film i::after, .mini i { animation: none !important; }
  .btn.primary:hover, a.reel:hover .poster { transform: none; }
  @view-transition { navigation: none; }
}
