/* Reels. Layout: a dark editor like any video tool. Down the left, the set and its reels; then captions and the
   transcript side by side, with the timeline under them; the 9:16 preview takes the right-hand side, full height. */

:root {
  /* olliehorn.com colours, on a dark working surface */
  --yellow: #eacd4c; --orange: #ff7700; --rust: #c2410c; --teal: #1faaa7; --navy: #012f40; --paper: #fefdfc;
  /* the paper every screen is made of (the start and working screens add their flat colours on top) */
  --bg: #f8f5ef; --panel: #fffdf8; --raise: #ece7dc; --line: #161616; --text: #161616; --dim: #5d5a53; --faint: #8d897f;
  --display: "Archivo", "Arial Narrow", sans-serif;
  --ui: "Archivo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  /* the bright screens (start, working, shortlist): flat colour, black outlines, cream paper */
  --violet: #62649a; --lilac: #8785bc; --tomato: #c94448; --peach: #f8c977; --lemon: #f2ea48; --blush: #f6c0bb;
  --ink: #161616; --cream: #f8f5ef;
  --audience: #0e7c79;   /* what audience members say */
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { font: 14px/1.45 var(--ui); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fine { color: var(--dim); font-size: 13px; }
.label { margin: 0; margin-block-end: 8px; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--raise); cursor: pointer; text-decoration: none; color: var(--text); font-weight: 600; }

.btn--light { background: var(--paper); color: #111; border-color: var(--paper); }

.btn--ghost { background: transparent; }
.icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; color: var(--text); font-size: 18px; }

.bar { display: block; height: 8px; border-radius: 99px; background: var(--raise); overflow: clip; }
.bar i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .3s; }
.err { margin: 0; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--rust); color: #ffb08a; }

/* ---- Start and working screens ---- */
.tag { margin: 0; font: 18px/1.45 var(--ui); color: var(--text); }
.bar--big { height: 12px; }
.bar--big i { background: linear-gradient(90deg, var(--orange), var(--yellow)); transition: width .6s ease; }
.eta { color: var(--dim); font-size: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bump { 40% { transform: scale(1.18); color: var(--yellow); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

@keyframes glow { 50% { box-shadow: 0 0 0 8px rgba(234,205,76,.18); } }

/* ---- Editor grid ---- */
.editor { height: 100vh; display: grid; grid-template-columns: 250px minmax(360px, 1fr) minmax(300px, 30vw); grid-template-rows: 52px minmax(0, 1fr) 300px;
  grid-template-areas: "top top top" "side text prev" "side tl prev"; }
.top { grid-area: top; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--panel); }
.top__title { margin: 0; font: 600 15px/1 var(--ui); white-space: nowrap; overflow: clip; text-overflow: ellipsis; max-width: 26vw; }
.search { position: relative; flex: 1; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--dim); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; }
.search input:focus-visible { outline: 0; }
.search:focus-within { outline: 2px solid var(--yellow); outline-offset: 2px; }
.search__results { position: absolute; z-index: 20; top: 40px; left: 0; right: 0; margin: 0; padding: 6px; list-style: none; max-height: 50vh; overflow: auto; background: var(--raise); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.search__results button { width: 100%; text-align: left; display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 8px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; color: var(--text); }

.search__results time { color: var(--dim); font-variant-numeric: tabular-nums; }
.search__results mark { background: transparent; color: var(--yellow); }

.side { grid-area: side; border-right: 1px solid var(--line); background: var(--panel); display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.side__set { padding: 14px; border-bottom: 1px solid var(--line); }
.mini-stats { margin: 0 0 10px; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mini-stats li { padding: 8px; border-radius: 8px; background: var(--raise); }
.mini-stats b { display: block; font: 600 18px/1.1 var(--ui); }
.mini-stats span { color: var(--dim); font-size: 12px; }
.mini-map { width: 100%; height: 44px; display: block; border-radius: 6px; background: var(--bg); cursor: pointer; }
.side__reels { padding: 14px 8px 14px 14px; overflow: auto; min-height: 0; }
.reel-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.reel-list button { width: 100%; text-align: left; display: grid; gap: 2px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; cursor: pointer; }

.reel-list button[aria-current="true"] { background: var(--raise); border-color: var(--faint); }
.reel-list b { font-weight: 600; }
.reel-list span { color: var(--dim); font-size: 12px; }
.size { display: inline-block; padding: 1px 5px; border-radius: 4px; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; vertical-align: 1px; margin-inline-end: 4px; color: #111; }
.size.huge { background: var(--orange); } .size.big { background: var(--yellow); } .size.laugh { background: var(--teal); }
.reel-list .size { color: #111; }

.pane { min-height: 0; display: grid; grid-template-rows: 44px minmax(0, 1fr); border-right: 1px solid var(--line); }
.transcript-pane { grid-area: text; }
.pane__tabs { display: flex; align-items: center; gap: 4px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.pane__tab { padding: 6px 10px; border-radius: 8px; border: 0; background: transparent; color: var(--dim); font-weight: 600; cursor: pointer; }
.pane__tab.is-on { background: var(--raise); color: var(--text); }

.transcript { overflow: auto; padding: 14px 18px 30px; }
.reel-title { position: sticky; top: -14px; z-index: 2; width: calc(100% + 16px); padding: 10px 8px 6px; margin: -14px 0 4px -8px; background: var(--bg) !important; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); font: 600 17px/1.3 var(--ui); }
.reel-title:focus { border-color: var(--line); background: var(--bg); }
.hint { margin: 0 0 14px; color: var(--dim); font-size: 12.5px; }
.words { font: 500 19px/1.7 var(--ui); }
.words .w { border-radius: 4px; padding: 1px 1px; cursor: pointer; }

.words .w.out { color: var(--faint); }
.words .w.cut { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--rust); }
.words .w.now { background: var(--yellow); color: #111; }
.words .gap { color: var(--dim); cursor: pointer; padding: 0 3px; border-radius: 4px; font-family: var(--ui); }

.words .gap.kept { color: var(--teal); }
.words .laughed { display: inline-block; margin: 0 4px; padding: 0 6px; border-radius: 5px; background: #3a2412; color: var(--orange); font: 600 11px/1.7 var(--ui); text-transform: uppercase; letter-spacing: .06em; vertical-align: 3px; }
.words .edge { display: block; margin: 10px 0; border-top: 1px dashed var(--faint); }
.adjust { padding: 18px; display: grid; gap: 18px; align-content: start; }
.adjust label { display: grid; gap: 6px; font-weight: 600; }
.adjust label.check { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adjust input[type=range] { width: 100%; accent-color: var(--yellow); }
.adjust .btn { justify-self: start; }

/* ---- Timeline ---- */
.timeline { grid-area: tl; border-top: 1px solid var(--line); border-right: 1px solid var(--line); display: grid; grid-template-rows: 40px minmax(0, 1fr); min-width: 0; min-height: 0; background: var(--bg); }
.tabs { display: flex; gap: 2px; padding: 0 8px; overflow-x: auto; border-bottom: 1px solid var(--line); align-items: stretch; }
.tabs button { flex: 0 0 auto; padding: 0 14px; border: 0; background: transparent; color: var(--dim); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--yellow); }
.tl { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) 84px; min-height: 0; }
.tl__heads { display: grid; grid-template-rows: 28px 34px 62px 42px 28px; align-items: center; padding-top: 0; color: var(--dim); font-size: 12px; font-weight: 600; text-align: center; }
.tl__heads .h-zoom { grid-row: 2; } .tl__heads .h-v { grid-row: 3; } .tl__heads .h-a { grid-row: 4; } .tl__heads .h-vol { grid-row: 5; font-size: 10.5px; }
.tl__scroll { overflow-x: auto; overflow-y: hidden; min-width: 0; cursor: text; }
.tl__inner { position: relative; height: 100%; min-width: 100%; }
.tl__ruler { position: absolute; left: 0; top: 0; height: 28px; }
.tl__clip { position: absolute; top: 34px; height: 26px; left: 0; border-radius: 6px; background: var(--raise); border: 1px solid var(--line); padding: 0 10px; font: 600 12.5px/24px var(--ui); white-space: nowrap; overflow: clip; text-overflow: ellipsis; }
.tl__v, .tl__a { position: absolute; left: 0; display: flex; }
.tl__v { top: 66px; height: 58px; }
.tl__a { top: 128px; height: 38px; }
.tl__v .seg, .tl__a .seg { position: relative; height: 100%; margin-inline-end: 2px; border-radius: 6px; overflow: clip; border: 1px solid #2f5f7a; background: #173447; flex: 0 0 auto; }
.tl__v .seg { display: flex; background: #0d2533; }
.tl__v .seg canvas { height: 100%; flex: 0 0 auto; display: block; }
.tl__a .seg canvas { width: 100%; height: 100%; display: block; }
.tl__v .seg.punch, .tl__a .seg.punch { border-color: var(--yellow); }
.tl__head { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--yellow); pointer-events: none; }
.tl__head::before { content: ""; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top-color: var(--yellow); }
.tl__zoom { display: grid; align-content: end; padding-bottom: 8px; gap: 4px; justify-items: center; }

/* ---- Preview ---- */
.preview { grid-area: prev; display: grid; grid-template-rows: minmax(0, 1fr) 54px; background: #0a0a0a; min-height: 0; }
.preview__frame { position: relative; min-height: 0; display: grid; place-items: center; padding: 12px; }
.preview canvas { height: 100%; max-height: 100%; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 10px; background: #000; cursor: grab; }
.preview canvas:active { cursor: grabbing; }
.transport { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-top: 1px solid var(--line); }
.icon--play { width: 40px; height: 40px; background: var(--paper); color: #111; border-radius: 50%; }

.icon--play svg { fill: currentColor; stroke: none; }
.rate { border: 1px solid var(--line); background: transparent; border-radius: 8px; padding: 4px 8px; cursor: pointer; color: var(--dim); }
.time { margin-inline-start: auto; font-variant-numeric: tabular-nums; color: var(--dim); }

/* ---- Export dialog ---- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0,0,0,.6); padding: 20px; }
.modal__box { width: min(420px, 100%); display: grid; gap: 14px; padding: 22px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.modal__box h2 { margin: 0; font: 600 18px/1.2 var(--ui); }
.modal__actions { display: flex; gap: 10px; }

/* Smaller screens: preview on top, then the transcript; the side panel and captions tuck away */
@media (max-width: 1100px) {
  .editor { height: auto; min-height: 100vh; grid-template-columns: minmax(0, 1fr); grid-template-rows: 52px 70vh auto auto 300px auto;
    grid-template-areas: "top" "prev" "text" "tl" "side"; }
  .pane { max-height: 60vh; }
  .top__title { max-width: 30vw; }
}

/* ---- Audience members' words ---- */
.words .w.aud { color: var(--audience); }
.words .w.aud.cut { color: var(--faint); }
.framing { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); margin: 0; padding: 7px 12px; border-radius: 99px; background: rgba(0,0,0,.72); color: var(--text); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; pointer-events: none; }
.aud { color: var(--audience); }
.btn--small { padding: 6px 10px; font-size: 13px; }

/* ---- Your sets (start screen) ---- */
.sets { display: grid; gap: 10px; margin-top: 10px; }
.sets h2 { margin: 0; font: 600 18px/1.2 var(--ui); }
.sets__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.sets__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.sets__list b { display: block; font-weight: 600; overflow: clip; text-overflow: ellipsis; white-space: nowrap; }
.sets__list span { color: var(--dim); font-size: 13px; }
.sets__list .del { color: var(--dim); }
.reconnect__name { margin: 0; font: 600 26px/1.2 var(--ui); overflow-wrap: anywhere; }
.reconnect__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Shortlist ---- */
.shortlist { max-width: 980px; margin: 0 auto; padding: 24px 20px 80px; display: grid; gap: 16px; }
.sl__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; position: sticky; top: 0; z-index: 5; padding: 12px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.sl__heading h1 { margin: 0; font: 600 22px/1.2 var(--ui); overflow-wrap: anywhere; }
.sl__heading .label { margin: 0; }
.sl__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sl__actions .btn:disabled { opacity: .5; cursor: default; }
.sl__how { margin: 0; color: var(--dim); max-width: 75ch; }
.sl__cards { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); align-items: start; }
.clip { padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 10px; }
.clip.is-dropped { opacity: .45; }
.clip__head { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.keep { display: flex; gap: 6px; align-items: center; color: var(--dim); font-size: 13px; cursor: pointer; }
.keep input { accent-color: var(--yellow); width: 16px; height: 16px; }
.clip__n { font: 600 13px/1 var(--ui); color: var(--dim); font-variant-numeric: tabular-nums; }
.clip__title { min-width: 0; padding: 5px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); font: 600 16px/1.3 var(--ui); }
.clip__title:focus { border-color: var(--line); background: var(--bg); }
.clip__when { color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clip__text { display: grid; gap: 2px; font: 500 16.5px/1.55 var(--ui); }
.ln { margin: 0; padding: 4px 8px; border-radius: 6px; display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }

.ln--out { color: var(--faint); border-inline-start: 2px dashed var(--line); border-radius: 0 6px 6px 0; }
.lineact { flex: 0 0 auto; margin-inline-start: auto; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--dim); font-size: 12.5px; font-weight: 600; cursor: pointer; opacity: 0; }
.lineact:focus-visible { opacity: 1; }
.lineact--add { opacity: 1; color: var(--yellow); border-color: #4a4222; }

.clip .laughed { margin-inline-start: 6px; }
@media (hover: none) { .lineact { opacity: 1; } }
@media (max-width: 700px) { .sl__top { grid-template-columns: auto minmax(0, 1fr); } .sl__actions { grid-column: 1 / -1; justify-content: flex-start; } .clip__head { grid-template-columns: auto auto minmax(0, 1fr); } .clip__when { grid-column: 1 / -1; } }

/* Hover effects only where there's a real pointer (no stuck hovers after a tap on a phone) */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: var(--dim); }
  .btn--light:hover { background: var(--yellow); border-color: var(--yellow); }
  .icon:hover { background: var(--raise); }
  .drop:hover { border-color: var(--yellow); background: #1f1d14; }
  .btn--ready:hover { background: var(--orange); border-color: var(--orange); }
  .search__results button:hover { background: var(--line); }
  .reel-list button:hover { background: var(--raise); }
  .reel-title:hover { border-color: var(--line); background: var(--bg); }
  .words .w:hover { background: var(--raise); }
  .words .gap:hover { background: var(--raise); }
  .icon--play:hover { background: var(--yellow); }
  .clip__title:hover { border-color: var(--line); background: var(--bg); }
  .ln:hover { background: var(--raise); }
  .ln:hover .lineact { opacity: 1; }
  .lineact:hover { color: var(--text); border-color: var(--dim); }
}

/* Everything pressable gives under the finger */
.btn:active, .icon:active, .lineact:active, .rate:active, .tabs button:active, .reel-list button:active, .pane__tab:active, .search__results button:active { transform: translateY(1px); }
.tl__v .seg.teaser canvas { filter: grayscale(1); }
.tl__v .seg.teaser, .tl__a .seg.teaser { border-style: dashed; }
.clip__foot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; border-block-start: 1px solid var(--line); padding-block-start: 10px; }
.why { margin: 0; color: var(--dim); font-size: 13px; max-width: 60ch; }
.clip__tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.clip__tools .is-playing { border-color: var(--yellow); color: var(--yellow); }
.kind { display: inline-block; margin-inline-end: 6px; padding: 2px 7px; border-radius: 99px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: #111; }
.kind--routine { background: var(--yellow); }
.kind--crowd { background: var(--audience); }
.fix { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--yellow); border-radius: 5px; padding: 0 4px; min-width: 3ch; }
.sw { cursor: text; border-radius: 3px; }
@media (hover: hover) and (pointer: fine) { .sw:hover { background: var(--raise); } }
.sets__list .path { display: block; color: var(--faint); font-size: 12px; overflow: clip; text-overflow: ellipsis; white-space: nowrap; }
.storage { display: grid; gap: 10px; margin-block-start: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.storage h2 { margin: 0; font: 600 16px/1.2 var(--ui); }
.storage__bar { display: flex; height: 10px; border-radius: 99px; overflow: clip; background: var(--raise); }
.storage__bar i { display: block; height: 100%; }
.storage__models { background: var(--orange); }
.storage__sets { background: var(--audience); }
.storage__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13.5px; }
.storage__list li { display: flex; gap: 8px; align-items: center; }
.storage__list i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.storage .btn { justify-self: start; }
.tips summary { cursor: pointer; color: var(--text); font-weight: 600; }
.tips[open] { gap: 8px; }
.tips { padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; color: var(--dim); display: grid; gap: 6px; }
.tips p { margin: 0; }
.tips b { color: var(--text); }
.tips ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 2px; }
.tips__warn { color: #ffb08a; }
.ln__text { flex: 1 1 auto; min-width: 0; }
.tl__v .seg { cursor: grab; touch-action: none; }
.tl__v .seg.teaser { cursor: default; }
.tl__v .seg.is-sel { outline: 2px solid var(--paper); outline-offset: 1px; }
.tl__v .seg.is-dragging { cursor: grabbing; opacity: .75; z-index: 3; box-shadow: 0 10px 24px rgba(0,0,0,.5); }
@media (prefers-reduced-motion: no-preference) { .tl__v .seg:not(.is-dragging) { transition: transform .15s ease-out; } }
.tl__drop { position: absolute; top: 60px; height: 112px; width: 3px; margin-inline-start: -2px; background: var(--yellow); border-radius: 2px; pointer-events: none; z-index: 4; }
.tl__zoom { align-content: start; padding-block-start: 8px; grid-template-columns: repeat(2, 36px); justify-content: center; }
.tl__zoom .zoom-pick { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
.tl__zoom .zoom-pick button { inline-size: auto; }
.tl__sep { display: block; grid-column: 1 / -1; justify-self: center; height: 1px; width: 60px; background: var(--line); margin-block: 4px; }
.help { position: fixed; z-index: 40; inset-block-start: 60px; inset-inline-end: 16px; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 80px); overflow: auto; padding: 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.55); display: grid; gap: 12px; }
.help h2 { margin: 0; font: 600 17px/1.2 var(--ui); }
.help dl { margin: 0; display: grid; gap: 10px; }
.help dt { font-weight: 600; }
.help dd { margin: 2px 0 0; color: var(--dim); font-size: 14px; }
.help .btn { justify-self: start; }
#help-btn { font-weight: 700; }
.guide-open { justify-self: start; }
.guide { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: color-mix(in oklch, black 65%, transparent); }
.guide__box { width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; overscroll-behavior: contain; padding: 0 22px 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.guide__top { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-block: 16px 10px; background: var(--panel); border-block-end: 1px solid var(--line); }
.guide__top h2 { margin: 0; margin-inline-end: auto; font: 600 19px/1.2 var(--ui); }
.guide__body { display: grid; gap: 18px; }
.tip { display: grid; gap: 8px; padding-block-end: 16px; border-block-end: 1px solid var(--line); }
.tip h3 { margin: 0; display: flex; gap: 10px; align-items: baseline; font: 600 16.5px/1.3 var(--ui); }
.tip__n { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); color: #111; font-size: 12.5px; }
.tip p { margin: 0; color: var(--dim); max-width: 68ch; }
.tip__settings { display: grid; gap: 8px; padding: 12px; border-radius: 10px; background: var(--bg); }
.set { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; font-weight: 500; }
.set em { display: block; font-style: normal; color: var(--faint); font-size: 12px; }
.set--range { grid-template-columns: minmax(0, 1fr) minmax(120px, 200px) 3.5em; }
.set input[type=range] { width: 100%; accent-color: var(--yellow); }
.set input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--yellow); }
.set output { font-variant-numeric: tabular-nums; color: var(--text); text-align: end; }
.set select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; max-width: 280px; }
.tip__src { font-size: 12.5px; }
.tip__src a { color: var(--dim); }
@media (max-width: 620px) { .set--range { grid-template-columns: minmax(0, 1fr) 3.5em; } .set--range input { grid-column: 1 / -1; grid-row: 2; } }
.teaser-tools { display: grid; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.teaser-tools .row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.words .w.tz { background: color-mix(in oklch, var(--paper) 16%, transparent); border-radius: 3px; }
.words.picking .w { cursor: crosshair; }
.words .w.pickfrom { outline: 2px solid var(--yellow); border-radius: 3px; }
.start__links { display: flex; flex-wrap: wrap; gap: 8px; }
.fav[aria-pressed="true"] { background: var(--yellow); color: #111; border-color: var(--yellow); }
.fav.is-stale { background: transparent; color: var(--yellow); border-color: var(--yellow); }
.fav:disabled { opacity: .8; cursor: progress; }
.review { max-width: 1180px; margin: 0 auto; padding: 24px 20px 80px; display: grid; gap: 16px; }
.rv-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.rv { display: grid; gap: 8px; align-content: start; }
.rv video { width: 100%; aspect-ratio: 9 / 16; border-radius: 12px; background: #000; border: 1px solid var(--line); }
.rv__info { display: grid; gap: 2px; }
.rv__info b { font-weight: 600; }
.rv__info span { color: var(--dim); font-size: 13px; }
.rv__info .rv__stale { color: var(--yellow); }
.rv__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.reel-list .star { color: var(--yellow); margin-inline-end: 4px; }
.banner { position: sticky; top: 0; z-index: 70; margin: 0; padding: 10px 16px; background: var(--yellow); color: #111; font-weight: 600; text-align: center; }
.clip__head { grid-template-columns: auto auto minmax(0, 1fr) auto auto; }
.reject { color: var(--dim); }
.clip.is-rejected { opacity: .5; border-style: dashed; }
.clip.is-fresh { border-color: var(--yellow); }
.kind--new { background: var(--yellow); }
@media (max-width: 700px) { .clip__head { grid-template-columns: auto auto minmax(0, 1fr); } .reject, .clip__head [data-act="unreject"] { grid-column: 1 / -1; justify-self: start; } }

/* trimming a section: a handle at each end of it on the timeline */
.tl__v .seg .trim { position: absolute; inset-block: 0; inline-size: 12px; z-index: 2; cursor: ew-resize; touch-action: none; background: color-mix(in oklch, var(--paper) 18%, transparent); }
.tl__v .seg .trim::after { content: ""; position: absolute; inset-block: 16px; inset-inline-start: 5px; inline-size: 2px; border-radius: 1px; background: var(--paper); opacity: .8; }
.tl__v .seg .trim--s { inset-inline-start: 0; border-start-start-radius: 5px; border-end-start-radius: 5px; }
.tl__v .seg .trim--e { inset-inline-end: 0; border-start-end-radius: 5px; border-end-end-radius: 5px; }
.tl__v .seg .trim:active, .tl__v .seg.is-trimming .trim { background: color-mix(in oklch, var(--yellow) 55%, transparent); }
@media (hover: hover) and (pointer: fine) { .tl__v .seg .trim:hover { background: color-mix(in oklch, var(--yellow) 40%, transparent); } }
.tl__v .seg.is-trimming { z-index: 3; border-color: var(--yellow); }
.tl__tip { position: absolute; inset-block-start: 172px; translate: -50% 0; padding: 4px 8px; border-radius: 6px; background: var(--paper); color: var(--bg); font: 600 12px/1.3 var(--ui); white-space: nowrap; pointer-events: none; z-index: 5; }

/* the shortlist grid: a tile per clip */
.tile { position: relative; display: grid; gap: 10px; min-width: 0; }
.tile.is-open { grid-column: 1 / -1; }
.tile.is-dropped:not(.is-open) .tile__pic { opacity: .45; }
.tile.is-rejected:not(.is-open) { opacity: .55; }
.tile.is-fresh:not(.is-open) .tile__pic { border-color: var(--yellow); }
.tile__pic { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: clip; background: var(--panel); border: 1px solid var(--line); cursor: pointer; }
.tile__pic canvas, .tile__video { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; display: block; }
.tile__video { object-fit: cover; background: #000; }
.tile__wait { position: absolute; inset: auto 0 45% 0; text-align: center; color: var(--dim); font-size: 13px; display: none; }
.tile.is-loading .tile__wait { display: block; }
.tile.is-loading .tile__pic canvas { opacity: 0; }
.tile__len { position: absolute; inset-block-end: 8px; inset-inline-start: 8px; padding: 2px 7px; border-radius: 99px; background: oklch(0 0 none / .65); color: #fff; font: 600 12px/1.4 var(--ui); font-variant-numeric: tabular-nums; }
.tile__bar { position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 3px; background: var(--yellow); transform-origin: left; transform: scaleX(var(--played, 0)); opacity: 0; }
.tile__pic.is-playing .tile__bar { opacity: 1; }
.tile__pic.is-playing .tile__len { opacity: 0; }
.tile__x { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; z-index: 2; inline-size: 40px; block-size: 40px; border-radius: 50%; border: 1px solid oklch(1 0 none / .25); background: oklch(0 0 none / .6); color: #fff; font: 600 18px/1 var(--ui); cursor: pointer; display: grid; place-items: center; }
.tile__x:active { background: var(--rust); scale: .94; }
@media (hover: hover) and (pointer: fine) { .tile__x:hover { background: var(--rust); border-color: var(--rust); } }
.tile.is-open .tile__x { display: none; }
.tile__back { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; z-index: 2; }
.tile__body { display: grid; gap: 6px; min-width: 0; }
.tile__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; align-items: center; }
.tile__head .clip__title { font-size: 15px; padding: 3px 6px; margin-inline-start: -6px; text-overflow: ellipsis; }
.tile__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; color: var(--dim); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tile__meta .kind, .tile__meta .laughed { margin: 0; }
.tile__line { margin: 0; font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: clip; }
.tile__gap { margin: 0; color: var(--faint); font-size: 12px; }
.tile__tools { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-block-start: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .tile { transition: opacity .2s ease-out, scale .2s ease-out; }
  .tile.is-leaving { opacity: 0; scale: .92; }
  .tile.is-fresh:not(.is-loading) { animation: pop-in .35s ease-out; }
  .tile.is-loading .tile__pic, .ghost__pic, .ghost__line { background: linear-gradient(100deg, var(--panel) 30%, var(--raise) 50%, var(--panel) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
}
@keyframes pop-in { from { opacity: 0; translate: 0 12px; } }
@keyframes shimmer { to { background-position: -150% 0; } }
.tile.is-leaving { opacity: 0; }

/* more clips being found at the foot of the grid */
.sl__more { display: grid; gap: 14px; }
.sl__buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sl__ghosts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); opacity: .5; }
.sl__more.is-finding .sl__ghosts { opacity: 1; }
.ghost { display: grid; gap: 8px; }
.ghost__pic { aspect-ratio: 9 / 16; border-radius: 12px; background: var(--panel); border: 1px dashed var(--line); }
.ghost__line { block-size: 12px; border-radius: 6px; background: var(--panel); }
.ghost__line--short { inline-size: 60%; }
.sl__end { margin: 0; }
.sl__connect { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }

/* zooms: a lane on the timeline, above the video */
.tl__zooms { position: absolute; inset-inline-start: 0; inset-block-start: 34px; block-size: 26px; inline-size: 100%; z-index: 2; pointer-events: none; }
.zoom { position: absolute; inset-block: 0; border-radius: 6px; background: color-mix(in oklch, var(--yellow) 85%, transparent); color: #111; font: 700 11.5px/26px var(--ui); padding-inline: 14px; white-space: nowrap; overflow: clip; text-overflow: ellipsis; cursor: pointer; pointer-events: auto; touch-action: none; }
.zoom.is-sel { outline: 2px solid var(--paper); outline-offset: 1px; }
.zoom:active { background: var(--yellow); }
.zoom .trim { position: absolute; inset-block: 0; inline-size: 10px; cursor: ew-resize; background: oklch(0 0 none / .18); }
.zoom .trim--s { inset-inline-start: 0; } .zoom .trim--e { inset-inline-end: 0; }
@media (hover: hover) and (pointer: fine) { .zoom:hover { background: var(--yellow); } .zoom .trim:hover { background: oklch(0 0 none / .35); } }
.icon--zoom svg { stroke: var(--yellow); }
.zoom-auto { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* sound: swearing, muted words, louder or quieter stretches */
.w.swear { text-decoration: underline wavy var(--rust); text-underline-offset: 3px; }
.w.is-muted { color: var(--faint); text-decoration: line-through; }
.w.is-muted::before { content: "🔇"; font-size: .75em; margin-inline-end: 2px; }
.flag-note { margin: 0 0 8px; padding: 8px 12px; border-radius: 8px; background: color-mix(in oklch, var(--orange) 16%, transparent); border: 1px solid color-mix(in oklch, var(--orange) 50%, transparent); font-size: 13.5px; }
.sound { display: grid; gap: 10px; padding-block-start: 12px; border-block-start: 1px solid var(--line); }
.sound h3 { margin: 0; }
.swears { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.swears label { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.level { display: grid; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.tl__vols { position: absolute; inset-inline-start: 0; inset-block-start: 170px; block-size: 24px; inline-size: 100%; z-index: 2; pointer-events: none; }
.vol { position: absolute; inset-block: 0; border-radius: 6px; background: color-mix(in oklch, var(--teal) 80%, transparent); color: #fff; font: 700 11px/24px var(--ui); padding-inline: 12px; white-space: nowrap; overflow: clip; text-overflow: ellipsis; cursor: pointer; pointer-events: auto; touch-action: none; }
.vol.is-quiet { background: color-mix(in oklch, var(--rust) 80%, transparent); }
.vol.is-sel { outline: 2px solid var(--paper); outline-offset: 1px; }
.vol:active { filter: brightness(1.15); }
.vol .trim { position: absolute; inset-block: 0; inline-size: 9px; cursor: ew-resize; background: oklch(0 0 none / .2); }
.vol .trim--s { inset-inline-start: 0; } .vol .trim--e { inset-inline-end: 0; }
@media (hover: hover) and (pointer: fine) { .vol:hover { filter: brightness(1.15); } }
.icon--vol svg { stroke: var(--teal); }
.kind--context { background: var(--orange); }
.kind--swear { background: var(--rust); color: #fff; }

.zoom--strong { background: color-mix(in oklch, var(--orange) 85%, transparent); }
.zoom-pick { display: grid; gap: 3px; }
.zoom-pick button { padding: 3px 0; inline-size: 38px; border-radius: 6px; border: 1px solid var(--line); background: var(--raise); color: var(--text); font: 700 11px/1.3 var(--ui); cursor: pointer; }
.zoom-pick button.is-on { background: var(--yellow); border-color: var(--yellow); color: #111; }
.zoom-pick button:active { scale: .95; }
@media (hover: hover) and (pointer: fine) { .zoom-pick button:hover { border-color: var(--yellow); } }

/* framing modes, pan keyframes, frame nudging */
.frame-mode { display: grid; gap: 8px; }
.frame-mode .label { margin: 0; }
.seg-btns { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); inline-size: fit-content; max-inline-size: 100%; }
.seg-btns button { padding: 6px 12px; border-radius: 7px; border: 0; background: transparent; color: var(--dim); font: 600 13px/1.3 var(--ui); cursor: pointer; }
.seg-btns button[aria-checked="true"] { background: var(--paper); color: #111; }
.seg-btns button:active { scale: .97; }
@media (hover: hover) and (pointer: fine) { .seg-btns button:not([aria-checked="true"]):hover { color: var(--text); } }
.tl__pans { position: absolute; inset-inline-start: 0; inset-block-start: 60px; block-size: 12px; inline-size: 100%; z-index: 3; pointer-events: none; }
.pan { position: absolute; inset-block-start: 0; inline-size: 12px; block-size: 12px; margin-inline-start: -6px; rotate: 45deg; border-radius: 2px; background: var(--teal); border: 1px solid var(--paper); cursor: pointer; pointer-events: auto; }
.pan.is-sel { background: var(--paper); }
.tl__nudge { position: absolute; inset-block-start: 2px; z-index: 5; display: flex; gap: 2px; align-items: center; padding: 2px 4px; border-radius: 7px; background: var(--paper); color: #111; font: 700 10.5px/1 var(--ui); }
.tl__nudge span { padding-inline: 3px; }
.tl__nudge button { inline-size: 20px; block-size: 20px; border-radius: 5px; border: 0; background: oklch(0 0 none / .1); color: #111; font: 700 14px/1 var(--ui); cursor: pointer; }
.tl__nudge button:active { background: var(--yellow); }
@media (hover: hover) and (pointer: fine) { .tl__nudge button:hover { background: oklch(0 0 none / .2); } }

/* the start screen: nothing but the drop zone (settings behind the gear) */
.start__links:not(:has(:not([hidden]))) { display: none; }
.guide__computer { display: grid; gap: 12px; }

/* processing: the drop box becomes one timeline, with its five steps along it */
.steps { margin: 0; padding: 0; list-style: none; inline-size: min(560px, 100%); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.steps li { display: grid; gap: 8px; color: var(--faint); font: 600 12.5px/1.2 var(--ui); }
.steps li.is-on, .steps li.is-done { color: var(--text); }
.steps__bar { display: block; block-size: 8px; border-radius: 99px; background: var(--raise); overflow: clip; }
.steps__bar i { display: block; block-size: 100%; inline-size: 100%; background: var(--yellow); transform-origin: left; transform: scaleX(var(--p, 0)); }
.steps li.is-done .steps__bar i { background: var(--teal); }
@media (prefers-reduced-motion: no-preference) {
  .steps__bar i { transition: transform .4s ease-out; }
  .steps li.is-on .steps__bar { background: linear-gradient(100deg, var(--raise) 30%, color-mix(in oklch, var(--yellow) 25%, var(--raise)) 50%, var(--raise) 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
}
.work__now { margin: 0; min-block-size: 2.9em; max-inline-size: 46ch; color: var(--dim); font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.work__now .eta { display: block; font-size: 13px; color: var(--faint); }

/* ---- the bright screens: start (violet) and working (lilac). Huge condensed type, a cream pill on top, chunky
   outlined buttons with hard shadows, a microphone peeking over the headline. */
.start, .working { min-block-size: 100vh; display: grid; align-content: start; justify-items: center; gap: 28px; padding: 16px 16px 56px; color: var(--ink); }
.start { background: var(--violet); }
.working { background: var(--lilac); }
.pill { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; inline-size: min(560px, 100%); padding: 8px 16px; background: var(--cream); border: 2px solid var(--ink); font: 500 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .02em; }
.pill__mark { font: 900 clamp(15px, 2.4vw, 19px)/1 var(--display); font-stretch: 125%; text-transform: none; letter-spacing: -.01em; white-space: nowrap; }
.pill__side { justify-self: start; min-width: 0; padding: 4px 0; border: 0; background: none; cursor: pointer; font: inherit; text-transform: inherit; color: var(--ink); white-space: nowrap; overflow: clip; text-overflow: ellipsis; max-inline-size: 100%; }
.pill__side:last-child { justify-self: end; }
.pill__note { cursor: default; color: color-mix(in oklch, var(--ink) 70%, transparent); }
button.pill__side:active { translate: 0 1px; }
@media (hover: hover) and (pointer: fine) { button.pill__side:hover { text-decoration: underline; text-underline-offset: 3px; } }
@media (max-width: 520px) { .pill { grid-template-columns: auto 1fr; } .pill__mark { justify-self: end; } .pill__side:last-child { display: none; } }

.hero { display: grid; justify-items: center; gap: 22px; inline-size: min(1200px, 100%); padding-block: clamp(8px, 4vh, 40px) 8px; text-align: center; cursor: pointer; }
.work.hero { cursor: default; }
.hero__title { margin: 0; display: grid; justify-items: center; font: 900 clamp(64px, 15.5vw, 230px)/.8 var(--display); font-stretch: 62%; letter-spacing: -.015em; color: var(--lemon); text-wrap: balance; }
.start .hero__title { color: var(--peach); text-transform: uppercase; font-stretch: 75%; font-size: clamp(56px, 12.5vw, 190px); line-height: .84; }
.hero__title span { display: block; }
.mascot { display: block; inline-size: clamp(110px, 14vw, 200px); block-size: auto; margin-block: calc(clamp(110px, 14vw, 200px) * -0.1) calc(clamp(110px, 14vw, 200px) * -0.36); position: relative; z-index: 1; fill: none; stroke: none; }
@media (prefers-reduced-motion: no-preference) {
  .mascot__eyes { transform-origin: 110px 78px; animation: blink 5s infinite; }
  .mascot--listening { animation: bob 1.6s ease-in-out infinite; }
  .drop.over .mascot { animation: bob .5s ease-in-out infinite; }
}
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes bob { 50% { translate: 0 -8px; } }
.hero__note { margin: 0; max-inline-size: 30ch; font: 600 clamp(18px, 2.2vw, 23px)/1.35 var(--ui); color: var(--cream); text-wrap: pretty; }
.drop.over { background: none; }
.start:has(.drop.over) { background: var(--tomato); }
.start:has(.drop.over) .hero__title { color: var(--blush); }

.btn--chunky { padding: 12px 22px; border: 2px solid var(--ink); border-radius: 6px; background: var(--cream); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); font: 800 14px/1 var(--ui); text-transform: uppercase; letter-spacing: .01em; }
.btn--chunky.btn--small { padding: 8px 14px; font-size: 12.5px; box-shadow: 3px 3px 0 var(--ink); }
.btn--chunky:active { translate: 3px 3px; box-shadow: 1px 1px 0 var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn--chunky:hover { background: var(--lemon); } }

.start__inner { inline-size: min(760px, 100%); display: grid; gap: 14px; }
.start .err, .start .tips__warn { padding: 12px 14px; border: 2px solid var(--ink); background: var(--cream); color: var(--ink); }
.start .sets h2 { font: 900 32px/1 var(--display); font-stretch: 75%; text-transform: uppercase; color: var(--peach); }
.start .sets .fine { color: color-mix(in oklch, var(--cream) 80%, transparent); }

/* the timeline while it works */
.steps { inline-size: min(640px, 100%); gap: 6px; }
.steps li { color: color-mix(in oklch, var(--ink) 55%, transparent); font: 500 12px/1.2 var(--mono); text-transform: uppercase; }
.steps li.is-on, .steps li.is-done { color: var(--ink); }
.steps__bar { block-size: 18px; border: 2px solid var(--ink); border-radius: 4px; background: var(--cream); }
.steps__bar i { background: var(--lemon); }
.steps li.is-done .steps__bar i { background: var(--ink); }
.work__now { color: var(--ink); font: 600 16px/1.4 var(--ui); }
.work__now .eta { color: color-mix(in oklch, var(--ink) 65%, transparent); font: 500 12.5px/1.4 var(--mono); text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) { .steps li.is-on .steps__bar { background: linear-gradient(100deg, var(--cream) 30%, color-mix(in oklch, var(--lemon) 45%, var(--cream)) 50%, var(--cream) 70%) 0 0 / 300% 100%; } }

/* your sets, as progress bars */
.start .sets__list li { grid-template-columns: minmax(0, 1fr) auto auto; padding: 12px 14px 14px; border: 2px solid var(--ink); border-radius: 6px; background: var(--cream); color: var(--ink); row-gap: 10px; }
.start .sets__list span, .start .sets__list .path { color: color-mix(in oklch, var(--ink) 65%, transparent); }
.start .sets__list .del { color: color-mix(in oklch, var(--ink) 65%, transparent); border-color: transparent; background: none; }
.sets__bar { grid-column: 1 / -1; display: block; block-size: 14px; border: 2px solid var(--ink); border-radius: 4px; background: var(--cream); overflow: clip; }
.sets__bar i { display: block; block-size: 100%; inline-size: 100%; background: var(--lemon); transform-origin: left; transform: scaleX(var(--p, 0)); }
.sets__list li.is-done .sets__bar i { background: var(--ink); }
.sets__list li.is-waiting .sets__bar { border-style: dashed; }
@media (prefers-reduced-motion: no-preference) {
  .sets__bar i { transition: transform .6s ease-out; }
  .sets__list li.is-working .sets__bar { background: linear-gradient(100deg, var(--cream) 30%, color-mix(in oklch, var(--lemon) 45%, var(--cream)) 50%, var(--cream) 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
}

/* the shortlist: cream paper, black outlines, the headline in the big condensed type */
.shortlist { --bg: var(--cream); --panel: #fffdf8; --raise: #ece7dc; --line: var(--ink); --text: var(--ink); --dim: #5d5a53; --faint: #8d897f; --audience: #0e7c79; color-scheme: light; background: var(--cream); color: var(--ink); min-block-size: 100vh; }
.shortlist .sl__heading h1 { font: 900 clamp(34px, 5vw, 56px)/.9 var(--display); font-stretch: 62%; text-transform: uppercase; color: var(--tomato); letter-spacing: -.01em; }
.shortlist .label { font: 500 12px/1 var(--mono); color: var(--dim); }
.shortlist .sl__top { border-block-end: 2px solid var(--ink); }
.shortlist .btn { border: 2px solid var(--ink); border-radius: 6px; box-shadow: 3px 3px 0 var(--ink); font-weight: 700; }
.shortlist .btn:active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--ink); transform: none; }
.shortlist .btn--light { background: var(--lemon); color: var(--ink); }
.shortlist .btn--ghost { background: var(--cream); }
.shortlist .tile__pic { border: 2px solid var(--ink); border-radius: 8px; box-shadow: 4px 4px 0 var(--ink); }
.shortlist .tile.is-fresh:not(.is-open) .tile__pic { border-color: var(--ink); box-shadow: 4px 4px 0 var(--tomato); }
.shortlist .tile__x { border: 2px solid var(--ink); background: var(--cream); color: var(--ink); }
.shortlist .clip { border: 2px solid var(--ink); border-radius: 8px; box-shadow: 4px 4px 0 var(--ink); }
.shortlist .ghost__pic { border: 2px dashed var(--faint); }
.shortlist .sl__connect { border: 2px solid var(--ink); }
.shortlist .kind { border: 1.5px solid var(--ink); }
.shortlist { box-shadow: 0 0 0 100vmax var(--cream); clip-path: inset(0 -100vmax); }

/* reconnect and preparing: the same bright screens, the set's name in the big type */
.start--lilac { background: var(--lilac); }
.start .label { font: 500 12.5px/1 var(--mono); color: var(--cream); }
.start .tag { color: var(--cream); font-weight: 600; }
.start .reconnect__name { font: 900 clamp(44px, 8vw, 110px)/.85 var(--display); font-stretch: 62%; text-transform: uppercase; color: var(--lemon); }
.start:not(.start--lilac) .reconnect__name { color: var(--peach); }
.start .start__inner:has(.reconnect__name) { padding-block-start: clamp(40px, 14vh, 140px); }
.prep__bar { block-size: 22px; }
.prep__bar i { transform: none; }

/* the editor works on one clip at a time */
.ed-nav { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: 6px; }
.ed-nav__pos { font: 500 12.5px/1 var(--mono); color: var(--dim); white-space: nowrap; }
.ed-nav .btn:disabled { opacity: .4; cursor: default; }

/* lost the video: its name to copy and how to search for it */
.find { display: grid; gap: 10px; padding: 16px; border: 2px solid var(--ink); border-radius: 6px; background: var(--cream); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.find__h { margin: 0; font: 800 17px/1.3 var(--ui); }
.find__name { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.find__name code { padding: 8px 10px; border: 2px dashed var(--ink); border-radius: 4px; background: #fff; font: 500 14px/1.3 var(--mono); overflow-wrap: anywhere; user-select: all; }
.find__facts { margin: 0; font: 500 12.5px/1.4 var(--mono); color: color-mix(in oklch, var(--ink) 70%, transparent); }
.find__facts:empty { display: none; }
.find__steps { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.45; }

/* ---- the whole app in the homepage's style: cream paper, black outlines, chunky buttons, flat colour bands */
.btn { border: 2px solid var(--ink); border-radius: 6px; background: var(--cream); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); font-weight: 700; }
.btn:active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--ink); transform: none; }
.btn--light { background: var(--lemon); color: var(--ink); border-color: var(--ink); }
.btn--ghost { background: var(--cream); box-shadow: none; }
.btn:disabled { box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .btn:not(:disabled):hover { background: var(--lemon); } }
.err, .tips__warn { color: var(--ink); background: var(--blush); border: 2px solid var(--ink); }
.label { font: 500 12px/1 var(--mono); }

/* the editor: a violet bar on top, paper panels, a dark screen for the preview */
.editor { background: var(--bg); }
.top { background: var(--violet); border-bottom: 2px solid var(--ink); color: var(--cream); }
.top__title { font: 900 26px/1 var(--display); font-stretch: 62%; text-transform: uppercase; color: var(--lemon); letter-spacing: -.005em; }
.top .ed-nav__pos { color: var(--cream); }
.top .icon { color: var(--cream); }
.top .search input { background: var(--cream); color: var(--ink); border: 2px solid var(--ink); }
.side, .pane { border-color: var(--ink); }
.timeline { border-top: 2px solid var(--ink); }
.preview { --text: var(--cream); --dim: #b9b4aa; --faint: #8a857c; --line: #3a3a3a; --raise: #2a2a2a; --panel: #1f1f1f; background: var(--ink); color: var(--cream); border-inline-start: 2px solid var(--ink); }
.preview .btn { background: var(--cream); color: var(--ink); }
.words .laughed, .clip .laughed, .tile__meta .laughed { background: var(--peach); color: var(--ink); border: 1.5px solid var(--ink); }
.lineact--add { color: var(--ink); border-color: var(--ink); background: var(--lemon); }
.clip__tools .is-playing { border-color: var(--ink); color: var(--ink); background: var(--lemon); }
.words .w.now { background: var(--lemon); color: var(--ink); }
.tl__v .seg, .tl__a .seg { border: 1.5px solid var(--ink); background: var(--raise); }
.tl__v .seg { background: var(--ink); }
.tl__v .seg.punch, .tl__a .seg.punch { border-color: var(--tomato); }
.tl__v .seg.is-sel { outline-color: var(--tomato); }
.zoom { border: 1.5px solid var(--ink); background: var(--lemon); }
.zoom--strong { background: var(--peach); }
.vol { border: 1.5px solid var(--ink); background: var(--audience); }
.vol.is-quiet { background: var(--tomato); }
.icon--zoom svg, .icon--vol svg { stroke: var(--ink); }
.tl__nudge { border: 1.5px solid var(--ink); background: var(--lemon); }
.seg-btns { border: 2px solid var(--ink); background: var(--cream); }
.seg-btns button[aria-checked="true"] { background: var(--ink); color: var(--cream); }
.pan { background: var(--audience); border-color: var(--ink); }
.pan.is-sel { background: var(--lemon); }
.flag-note { background: var(--peach); border: 2px solid var(--ink); }
.level, .sound .level { border: 2px solid var(--ink); }

/* review, settings, help, the export box: paper cards with black outlines and hard shadows */
.review .label, .guide .label { color: var(--dim); }
.guide__box, .help, .modal__box { border: 2px solid var(--ink); border-radius: 8px; box-shadow: 6px 6px 0 var(--ink); background: var(--cream); }
.guide__top h2, .help h2, .modal__box h2 { font: 900 30px/.95 var(--display); font-stretch: 62%; text-transform: uppercase; color: var(--tomato); }
.review h1, .review h2:first-child { font: 900 clamp(34px, 5vw, 56px)/.9 var(--display); font-stretch: 62%; text-transform: uppercase; color: var(--tomato); }
.rv video { border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.tips { border: 2px solid var(--ink); background: var(--panel); color: var(--dim); }
.storage { border: 2px solid var(--ink); }
