/*
  Waf Visual components. Reads tokens.css only (no raw colour, size or duration here).
  The shapes and names come from LatihSpeaking: separation comes from a tone step (ground vs fill), never from a
  hairline or a resting shadow; only things that float carry a shadow. Selection has three forms with fixed jobs:
  chips pick several, a segmented control picks one of a few, a switch turns one thing on.
  The second half adds what a desktop-first film gallery needs: the site header and footer, film cards, the player
  with its tabs, the prompt box, tables and document typography.
*/

/* ================================================================ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + var(--s-4)); }
body {
  margin: 0;
  background: var(--c-ground);
  color: var(--c-ink);
  font: var(--t-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote, pre { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--c-accent-ink); text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
img, svg, video { display: block; max-width: 100%; }
b, strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--c-accent-soft); color: var(--c-ink); }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Icons: one line set (icons/*.svg, inlined by ic() from icons/icons.js). */
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic--sm { width: 18px; height: 18px; }
.ic--xs { width: 16px; height: 16px; }
.ic--star { color: var(--c-star); }

/* ================================================================ text roles */
.display { font: var(--t-display); letter-spacing: var(--track-display); text-wrap: balance; }
.display em { font-style: normal; color: var(--c-accent-ink); }
.heading { font: var(--t-heading); letter-spacing: var(--track-heading); text-wrap: balance; }
.title { font: var(--t-title); letter-spacing: var(--track-title); }
.lead { font: var(--t-lead); max-width: var(--measure); text-wrap: pretty; }
.muted { color: var(--c-ink-muted); }
.small { font: var(--t-small); }
.small-strong { font: var(--t-small-strong); }
.caption { font: var(--t-caption); color: var(--c-ink-muted); }
.kicker { font: var(--t-small-strong); color: var(--c-ink-muted); }
.num { font-variant-numeric: tabular-nums; }
.link { color: var(--c-accent-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.link:hover { text-decoration-thickness: 2.5px; }

/* ================================================================ layout helpers */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.stack { display: flex; flex-direction: column; gap: var(--s-3); }
.stack--2 { gap: var(--s-2); }
.stack--4 { gap: var(--s-4); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }

/* A section: its head (heading plus an optional line or link on the right), then its content. */
.section { display: flex; flex-direction: column; gap: var(--s-6); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-2) var(--s-6); }
.section-head > div { display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; }
.section-head h2 { font: var(--t-heading); letter-spacing: var(--track-heading); text-wrap: balance; }
.section-head p { max-width: var(--measure); color: var(--c-ink-muted); }
.section-head > a, .section-head__more { font: var(--t-small-strong); display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--tap); }

/* ================================================================ buttons */
.btn {
  min-height: var(--btn-h);
  padding: 0 var(--s-5);
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font: var(--t-body-strong);
  text-align: center;
  color: var(--c-ink);
  background: var(--c-fill);
  transition: transform var(--dur-press) var(--ease-out), background var(--dur-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--c-fill-strong); }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--c-accent); color: var(--c-on-accent); }
.btn--primary:hover { background: var(--c-accent-press); }
.btn--secondary { background: var(--c-fill); color: var(--c-ink); }
.btn--tint { background: var(--c-accent-tint); color: var(--c-accent-ink); }
.btn--tint:hover { background: var(--c-accent-soft); }
.btn--text { background: none; color: var(--c-accent-ink); min-height: var(--tap); padding: 0 var(--s-3); }
.btn--text:hover { background: var(--c-accent-tint); }
.btn--sm { min-height: var(--btn-h-sm); padding: 0 var(--s-4); font: var(--t-small-strong); border-radius: var(--r-sm); }
.btn--sm.btn--text { min-height: var(--tap); }
.btn--lg { min-height: 56px; padding: 0 var(--s-6); font-size: 17px; }
.btn--block { width: 100%; }
.btn .ic { width: 18px; height: 18px; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--c-fill-disabled); color: var(--c-ink-faint); cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* A round button that holds only an icon. Give it an aria-label. */
.icon-btn {
  width: var(--tap);
  height: var(--tap);
  flex: none;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  color: var(--c-ink);
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.icon-btn:hover { background: var(--c-fill); }
.icon-btn:active { background: var(--c-fill-strong); transform: scale(0.94); }
.icon-btn[aria-pressed="true"] { color: var(--c-accent-ink); }
.icon-btn--fill { background: var(--c-fill); }
.icon-btn--fill:hover { background: var(--c-fill-strong); }

/* ================================================================ selection */
/* Chips pick several (filters). Pressed = solid accent with a check. A link chip goes to a filtered list. */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  min-height: var(--tap);
  padding: 0 var(--s-4);
  border-radius: var(--r-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-fill);
  color: var(--c-ink);
  font: var(--t-small-strong);
  font-size: 15px;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { background: var(--c-fill-strong); }
.chip:active { transform: scale(0.96); }
.chip .ic { width: 16px; height: 16px; }
.chip > .ic--check { display: none; }
.chip[aria-pressed="true"] { background: var(--c-accent); color: var(--c-on-accent); }
.chip[aria-pressed="true"] > .ic--check { display: block; }
.chip__n { font: var(--t-caption); color: var(--c-ink-muted); }
.chip[aria-pressed="true"] .chip__n { color: inherit; }
.chip--sm { min-height: 36px; padding: 0 var(--s-3); font: var(--t-small-strong); }
/* A tool chip: the tool's colour as a dot, the name in ink (Lab only). Set --tool to one of the --c-tool-* tokens. */
.chip--tool::before, .tag--tool::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: var(--r-full); background: var(--tool, var(--c-edge)); }
.chip--tool[aria-pressed="true"]::before { box-shadow: 0 0 0 2px var(--c-on-accent); }
.t-motion { --tool: var(--c-tool-motion); }
.t-remotion { --tool: var(--c-tool-remotion); }
.t-three { --tool: var(--c-tool-three); }
.t-hyperframes { --tool: var(--c-tool-hyperframes); }
.t-blender { --tool: var(--c-tool-blender); }

/* A filter row: its label, then its chips. */
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
/* A group of chips in a sheet: its title above, the chips wrapping so every choice is in view. */
.filter-group { display: flex; flex-direction: column; gap: var(--s-3); margin: 0; padding: 0; border: 0; min-width: 0; }
.filter-group legend { padding: 0; margin-bottom: var(--s-3); font: var(--t-small-strong); color: var(--c-ink-muted); }

/* Select: a native dropdown (the phone's own picker) dressed as a small pill, with an icon and a chevron. */
.select { position: relative; display: inline-flex; align-items: center; min-width: 0; }
.select select { appearance: none; -webkit-appearance: none; min-height: var(--btn-h-sm); max-width: 100%; padding: 0 36px 0 36px; border: 0; border-radius: var(--r-full); background: var(--c-fill); color: var(--c-ink); font: var(--t-small-strong); cursor: pointer; text-overflow: ellipsis; }
.select select:hover { background: var(--c-fill-strong); }
.select > .ic { position: absolute; pointer-events: none; color: var(--c-ink-muted); }
.select > .ic:first-of-type { left: 13px; }
.select > .ic:last-of-type { right: 13px; }
.filter__label { font: var(--t-small-strong); color: var(--c-ink-muted); min-width: 72px; }

/* Segmented control: one value out of a few, set inline. Built from radio inputs (arrow keys work natively), or from
   buttons with aria-pressed. The thumb floats, so it carries the one small shadow. */
.seg {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-md);
  background: var(--c-fill-strong);
}
.seg label { position: relative; display: flex; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span, .seg button {
  flex: 1;
  min-height: 40px;
  border-radius: var(--r-sm);
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font: var(--t-small-strong);
  font-size: 15px;
  line-height: 1.25;
  color: var(--c-ink-muted);
  text-align: center;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.seg small { font: var(--t-caption); font-weight: 500; color: inherit; }
.seg label:hover span, .seg button:hover { color: var(--c-ink); }
.seg input:checked + span, .seg button[aria-pressed="true"] { background: var(--c-raised); color: var(--c-accent-ink); box-shadow: var(--shadow-thumb); }
.seg input:focus-visible + span { outline: 3px solid var(--c-focus); outline-offset: 1px; }
.seg input:disabled { cursor: not-allowed; }
.seg input:disabled + span, .seg button:disabled { color: var(--c-ink-faint); opacity: 0.6; }

/* Switch: turns one thing on. An <input type="checkbox" role="switch">, usually inside a .switch-row label. */
.switch {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 50px;
  height: 30px;
  margin: 7px 0;
  padding: 3px;
  border-radius: var(--r-full);
  background: var(--c-edge);
  display: flex;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.switch::after { content: ""; width: 24px; height: 24px; border-radius: var(--r-full); background: var(--c-on-accent); box-shadow: var(--shadow-thumb); transition: transform var(--dur-fast) var(--ease-out); }
.switch:checked { background: var(--c-accent); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: var(--r-full); }
.switch-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4);
  border-radius: var(--r-md);
  background: var(--c-fill);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.switch-row:has(.switch:checked) { background: var(--c-accent-tint); }
.switch-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.switch-row__text b { font: var(--t-body-strong); }
.switch-row__text span { font: var(--t-small); color: var(--c-ink-muted); }

/* Colour swatches: a style's colours, each a colour input. The colour itself is data: style="--sw: #hex". */
.swatch-picks { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.swatch-pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--tap);
  padding: 4px var(--s-3) 4px 4px;
  border-radius: var(--r-full);
  background: var(--c-fill);
  font: var(--t-small-strong);
  cursor: pointer;
}
.swatch-pick:hover { background: var(--c-fill-strong); }
.swatch-pick input { appearance: none; -webkit-appearance: none; width: 36px; height: 36px; flex: none; padding: 0; border: 0; border-radius: var(--r-full); background: none; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--c-edge); }
.swatch-pick input::-webkit-color-swatch-wrapper { padding: 3px; }
.swatch-pick input::-webkit-color-swatch { border: 0; border-radius: var(--r-full); }
.swatch-pick input::-moz-color-swatch { border: 0; border-radius: var(--r-full); }
.swatch-pick input:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.swatch-pick small { font: var(--t-caption); color: var(--c-ink-muted); font-family: var(--font-mono); font-weight: 400; }

/* ================================================================ fields */
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.label { font: var(--t-small-strong); color: var(--c-ink); }
.hint { font: var(--t-small); color: var(--c-ink-muted); }
.input, .textarea {
  width: 100%;
  min-height: var(--btn-h);
  padding: 11px 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--c-edge);
  background: var(--c-ground);
  color: var(--c-ink);
  font: var(--t-body);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.textarea--sm { min-height: 64px; }
.input::placeholder, .textarea::placeholder { color: var(--c-ink-muted); }
.input:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }

/* A numbered list of short fields (the prompt form's scenes), each with a remove button. */
.scenes { display: flex; flex-direction: column; gap: var(--s-2); counter-reset: scene; }
.scenes li { display: grid; grid-template-columns: 28px minmax(0, 1fr) var(--tap); align-items: start; gap: var(--s-2); counter-increment: scene; }
.scenes li::before { content: counter(scene); height: var(--btn-h); display: grid; place-items: center; font: var(--t-small-strong); color: var(--c-ink-muted); font-variant-numeric: tabular-nums; }
.scenes .textarea { min-height: var(--btn-h); field-sizing: content; } /* grows with its text where supported */
.textarea--sm { field-sizing: content; }
.scenes .icon-btn { margin-top: 2px; color: var(--c-ink-muted); }
.scenes li:only-child { grid-template-columns: 28px minmax(0, 1fr); }

/* ================================================================ surfaces */
.card {
  background: var(--c-fill);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.card--tint { background: var(--c-accent-tint); }
.card--star { background: var(--c-star-tint); }
.card h3 { font: var(--t-title); letter-spacing: var(--track-title); }

/* Grouped list: rows on the fill with a 2px gap between them instead of a divider line. */
.list { display: flex; flex-direction: column; gap: 2px; border-radius: var(--r-lg); overflow: hidden; }
.row {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--c-fill);
  color: var(--c-ink);
  text-align: left;
  width: 100%;
  transition: background var(--dur-fast) var(--ease-out);
}
a.row:hover, button.row:hover { background: var(--c-fill-strong); }
.row__icon { width: 40px; height: 40px; flex: none; border-radius: var(--r-full); display: grid; place-items: center; background: var(--c-ground); color: var(--c-accent-ink); }
.row__n { width: 40px; height: 40px; flex: none; border-radius: var(--r-full); display: grid; place-items: center; background: var(--c-ground); color: var(--c-accent-ink); font: 800 16px/1 var(--font); font-variant-numeric: tabular-nums; }
.row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row__text b { font: var(--t-body-strong); }
.row__text span { font: var(--t-small); color: var(--c-ink-muted); }
.row--top { align-items: flex-start; }

/* A disclosure (FAQ, "how to fill it"): a <details> in a .list; the summary is a row with a chevron that turns. */
.disclosure { background: var(--c-fill); }
.disclosure > summary { min-height: 60px; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); font: var(--t-body-strong); cursor: pointer; list-style: none; transition: background var(--dur-fast) var(--ease-out); }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary:hover { background: var(--c-fill-strong); }
.disclosure > summary .ic { margin-left: auto; color: var(--c-ink-muted); transition: transform var(--dur-fast) var(--ease-out); }
.disclosure[open] > summary .ic { transform: rotate(180deg); }
.disclosure__body { padding: 0 var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); color: var(--c-ink); }

/* Notice: a tip or a warning in the flow. Always with an icon. */
.notice {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--c-fill);
  font: var(--t-small);
  color: var(--c-ink);
}
.notice > .ic { margin-top: 0; color: var(--c-ink-muted); }
.notice b { font-weight: 700; }
.notice--accent { background: var(--c-accent-tint); }
.notice--accent > .ic { color: var(--c-accent-ink); }
.notice--star { background: var(--c-star-tint); }
.notice--star > .ic { color: var(--c-star-ink); }
.notice--good { background: var(--c-good-tint); color: var(--c-good); }
.notice--good > .ic { color: var(--c-good); }
.notice--bad { background: var(--c-bad-tint); color: var(--c-bad); }
.notice--bad > .ic { color: var(--c-bad); }

/* Tag: a label, not a control (use-case, kind of film, "Favorit"). Square-ish so it never reads as a chip. */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 10px; border-radius: var(--r-sm); background: var(--c-fill); font: var(--t-small-strong); color: var(--c-ink); white-space: nowrap; }
.tag .ic { width: 14px; height: 14px; }
a.tag:hover { background: var(--c-fill-strong); }
.tag--accent { background: var(--c-accent-tint); color: var(--c-accent-ink); }
.tag--good { background: var(--c-good-tint); color: var(--c-good); }
.tag--star { background: var(--c-star-tint); color: var(--c-star-ink); }
.tag--bad { background: var(--c-bad-tint); color: var(--c-bad); }
.tag--ground { background: var(--c-ground); }

/* Big numbers: a row of them grouped on the fill. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2px; border-radius: var(--r-lg); overflow: hidden; }
.stat { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-5); background: var(--c-fill); }
.stat b { font: var(--t-stat); letter-spacing: var(--track-display); font-variant-numeric: tabular-nums; }
.stat span { font: var(--t-small); color: var(--c-ink-muted); }

/* Summary: key and value rows. */
.summary { display: flex; flex-direction: column; gap: 2px; border-radius: var(--r-lg); overflow: hidden; }
.summary > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding: 14px var(--s-4); background: var(--c-fill); }
.summary dt { flex: none; max-width: 45%; color: var(--c-ink-muted); font: var(--t-small); }
.summary dd { font: var(--t-small-strong); text-align: right; }

/* Meter: a score out of 10, or any share. Set --v (0% to 100%). */
.meter { height: 8px; border-radius: var(--r-full); background: var(--c-fill-strong); overflow: hidden; }
.meter > i { display: block; height: 100%; width: var(--v, 50%); border-radius: inherit; background: var(--c-accent); }
.scores { display: flex; flex-direction: column; gap: var(--s-3); }
.score { display: grid; grid-template-columns: minmax(96px, 140px) minmax(0, 1fr) 32px; align-items: center; gap: var(--s-3); font: var(--t-small); }
.score b { font: var(--t-small-strong); text-align: right; font-variant-numeric: tabular-nums; }

/* Menu: a small floating list (the header's Lab menu). */
.menu {
  position: absolute;
  z-index: 30;
  min-width: 260px;
  padding: var(--s-2);
  border-radius: var(--r-lg);
  background: var(--c-raised);
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: pop-in var(--dur-fast) var(--ease-out);
}
.menu a { display: flex; flex-direction: column; gap: 2px; padding: 10px var(--s-3); border-radius: var(--r-md); color: var(--c-ink); }
.menu a:hover, .menu a[aria-current="page"] { background: var(--c-fill); }
.menu b { font: var(--t-body-strong); }
.menu span { font: var(--t-small); color: var(--c-ink-muted); }

/* Sheet: rises from the bottom on a phone (the site menu). */
dialog.sheet {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 88dvh;
  margin: 0 auto;
  padding: var(--s-2) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom));
  border: 0;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--c-raised);
  color: var(--c-ink);
  box-shadow: var(--shadow-float);
  overflow-y: auto;
}
dialog.sheet[open] { display: flex; flex-direction: column; gap: var(--s-4); animation: sheet-in var(--dur-sheet) var(--ease-sheet); }
dialog.sheet::backdrop { background: var(--c-scrim); animation: fade-in var(--dur-fast) var(--ease-out); }
dialog.sheet > * { flex-shrink: 0; }
.sheet__grab { align-self: center; width: 40px; height: 5px; border-radius: var(--r-full); background: var(--c-fill-strong); }
.sheet__head { display: flex; align-items: center; gap: var(--s-2); }
.sheet__head h2 { flex: 1; font: var(--t-title); letter-spacing: var(--track-title); }
.sheet .list .row { background: var(--c-fill); }
/* The sheet's actions stay in view at its foot while its content scrolls. */
.sheet__foot { position: sticky; bottom: calc((var(--s-6) + env(safe-area-inset-bottom)) * -1); display: flex; gap: var(--s-2); margin-top: var(--s-2); padding: var(--s-3) 0 calc(var(--s-6) + env(safe-area-inset-bottom)); margin-bottom: calc((var(--s-6) + env(safe-area-inset-bottom)) * -1); background: var(--c-raised); }
.sheet__foot .btn--primary { flex: 1; }

/* ================================================================ gallery: site header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--c-glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
@media (prefers-reduced-transparency: reduce) { .site-head { background: var(--c-ground); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.site-head__in { height: var(--head-h); display: flex; align-items: center; gap: var(--s-4); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); color: var(--c-ink); font: var(--t-body-strong); font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; margin-right: auto; }
.brand img { width: var(--logo); height: var(--logo); flex: none; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav > a, .site-nav__btn {
  min-height: var(--tap);
  padding: 0 14px;
  border-radius: var(--r-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--c-ink);
  font: var(--t-small-strong);
  font-size: 15px;
  transition: background var(--dur-fast) var(--ease-out);
}
.site-nav > a:hover, .site-nav__btn:hover, .site-nav__btn[aria-expanded="true"] { background: var(--c-fill); }
.site-nav > a[aria-current="page"], .site-nav__btn[aria-current="page"] { color: var(--c-accent-ink); background: var(--c-accent-tint); }
.site-nav__btn .ic { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.site-nav__btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.site-nav__dd { position: relative; }
.site-nav__dd .menu { top: calc(100% + 6px); right: 0; }
.site-head__tools { display: flex; align-items: center; gap: 2px; }
/* The language switch: two letters, the current one on the thumb. */
.lang { display: inline-grid; grid-auto-flow: column; gap: 2px; padding: 3px; border-radius: var(--r-full); background: var(--c-fill); min-height: 36px; margin: 0 var(--s-1); }
.lang span { min-width: 34px; display: grid; place-items: center; border-radius: var(--r-full); font: var(--t-caption); font-size: 13px; color: var(--c-ink-muted); }
.lang span.on { background: var(--c-raised); color: var(--c-ink); box-shadow: var(--shadow-thumb); }
.lang:hover span:not(.on) { color: var(--c-ink); }
.theme-btn .ic--sun { display: none; }
:root[data-theme="dark"] .theme-btn .ic--sun { display: block; }
:root[data-theme="dark"] .theme-btn .ic--moon { display: none; }
.menu-btn { display: none; }
@media (max-width: 760px) {
  .site-nav { display: none; }
  .menu-btn { display: grid; }
  .site-head__in { gap: var(--s-2); }
}
/* The phone header at any width (design.html shows it next to the wide one). */
.site-head--compact .site-nav { display: none; }
.site-head--compact .menu-btn { display: grid; }
.site-head--compact .site-head__in { gap: var(--s-2); }

/* ================================================================ gallery: footer */
.site-foot { margin-top: var(--s-24); padding: var(--s-12) 0 var(--s-16); background: var(--c-fill); color: var(--c-ink-muted); font: var(--t-small); }
.site-foot__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4) var(--s-8); align-items: start; }
.site-foot .brand { margin: 0; }
.site-foot__text { display: flex; flex-direction: column; gap: var(--s-2); max-width: var(--measure); }
.site-foot__links { grid-column: 2; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); font: var(--t-small-strong); }
.site-foot__links a { min-height: var(--tap); display: inline-flex; align-items: center; }
@media (max-width: 640px) {
  .site-foot__in { grid-template-columns: minmax(0, 1fr); }
  .site-foot__links { grid-column: auto; }
}

/* ================================================================ gallery: film cards */
/* A style or a film: the poster (the film plays muted on hover), then its name and a line. No card fill: posters read
   best straight on the ground. Set --ar to the film's width / height so nothing shifts while it loads. */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--s-8) var(--s-5); }
.cards--films { grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: var(--s-6) var(--s-4); }
@media (max-width: 640px) { .cards--films { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-3); } }
/* Style cards with a 9:16 poster: four across on a wide screen, three on a tablet, two on a phone. */
.cards--styles { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s-8) var(--s-5); }
@media (max-width: 1000px) { .cards--styles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } } /* three on a tablet */
@media (max-width: 640px) { .cards--styles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-3); } }
.film-card { display: flex; flex-direction: column; gap: var(--s-3); color: var(--c-ink); min-width: 0; }
.film-card__media {
  position: relative;
  aspect-ratio: var(--ar, 16 / 9);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-fill);
  isolation: isolate;
}
.film-card__media.is-loading { background: linear-gradient(100deg, var(--c-fill) 30%, var(--c-fill-strong) 50%, var(--c-fill) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.film-card__media img, .film-card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-card__media--letterbox { background: var(--c-stage); }
.film-card__media--letterbox img, .film-card__media--letterbox video { object-fit: contain; }
.film-card__media img { transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.film-card__media img.is-hidden { opacity: 0; }
.film-card__media video { opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); }
.film-card__media video.is-live { opacity: 1; }
.film-card:hover .film-card__media img { transform: scale(1.03); }
.film-card__n, .film-card__kind {
  position: absolute;
  z-index: 1;
  top: var(--s-2);
  min-height: 26px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--r-full);
  background: var(--c-overlay);
  color: var(--c-on-stage);
  font: var(--t-caption);
  font-variant-numeric: tabular-nums;
}
.film-card__n { left: var(--s-2); }
.film-card__kind { right: var(--s-2); }
.film-card__kind .ic { width: 14px; height: 14px; }
.film-card__body { display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; }
.film-card__title { font: var(--t-body-strong); font-size: 17px; letter-spacing: -0.01em; }
.film-card:hover .film-card__title { color: var(--c-accent-ink); }
.film-card__text { font: var(--t-small); color: var(--c-ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.film-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s-3); margin-top: var(--s-1); }
.film-card__meta .tags { flex: 1; }
.counts { display: inline-flex; align-items: center; gap: var(--s-3); font: var(--t-caption); color: var(--c-ink-muted); font-variant-numeric: tabular-nums; }
.counts span { display: inline-flex; align-items: center; gap: 4px; }
.counts .ic { width: 15px; height: 15px; }

/* ================================================================ gallery: hero reel, use cards, mosaic */
/* The home page's film: one vertical film after another on the stage, with the style now playing as a link. */
.reel { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-xl); overflow: hidden; background: var(--c-stage); }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__sound { position: absolute; z-index: 1; top: var(--s-3); right: var(--s-3); background: var(--c-overlay); color: var(--c-on-stage); }
.reel__sound:hover, .reel__sound:active { background: var(--c-overlay); color: var(--c-on-stage); }
.reel__now { position: absolute; z-index: 1; left: var(--s-3); right: var(--s-3); bottom: var(--s-3); min-height: 56px; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3) var(--s-2) var(--s-4); border-radius: var(--r-lg); background: var(--c-overlay); color: var(--c-on-stage); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.reel__now span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.reel__now small { font: var(--t-caption); color: var(--c-on-stage-muted); }
.reel__now b { font: var(--t-body-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel__dots { display: flex; justify-content: center; gap: 6px; margin-top: var(--s-4); }
.reel__dots i { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--c-fill-strong); transition: width var(--dur-slow) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.reel__dots i.is-on { width: 28px; background: var(--c-accent); }

/* A job to start from: a small frame from one of its styles, the job and how many styles suit it. */
.use-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: var(--s-3); }
.use-card { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-2) var(--s-4) var(--s-2) var(--s-2); border-radius: var(--r-lg); background: var(--c-fill); color: var(--c-ink); transition: background var(--dur-fast) var(--ease-out); }
.use-card:hover { background: var(--c-fill-strong); }
.use-card img { width: 52px; aspect-ratio: 9 / 16; flex: none; object-fit: cover; border-radius: var(--r-sm); background: var(--c-stage); }
.use-card span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.use-card b { font: var(--t-body-strong); }
.use-card small { font: var(--t-small); color: var(--c-ink-muted); }
.use-card > .ic { color: var(--c-ink-muted); }

/* Four frames side by side (the Lab band: one style in four tools), each named on the frame. */
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; border-radius: var(--r-lg); overflow: hidden; }
.mosaic figure { position: relative; margin: 0; aspect-ratio: 16 / 9; background: var(--c-stage); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic figcaption { position: absolute; left: var(--s-2); bottom: var(--s-2); min-height: 26px; padding: 0 9px; display: inline-flex; align-items: center; gap: 4px; border-radius: var(--r-full); background: var(--c-overlay); color: var(--c-on-stage); font: var(--t-caption); }
.mosaic figcaption .ic { width: 14px; height: 14px; color: var(--c-star); }

/* ================================================================ gallery: player */
/* One film at a time on a dark stage, with tabs for the kinds of film above it. The stage keeps one height on a wide
   screen, so switching between a 9:16 and a 16:9 film never moves the page; its width follows the film playing (--ar,
   set by app.js), so a 9:16 film sits in a 9:16 stage, centred, instead of in a wide black box. A 16:9 film is
   capped at the column's width. On a phone the stage takes the film's shape. */
.player { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.player__stage {
  position: relative;
  height: min(72vh, 680px);
  aspect-ratio: var(--ar, 16 / 9);
  align-self: center;
  max-width: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-stage);
}
.player__stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--c-stage); cursor: pointer; }
/* When every film in the player is landscape, the stage simply takes that shape. */
.player__stage--wide { height: auto; align-self: stretch; aspect-ratio: var(--ar, 16 / 9); }
.player__bar { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-1) var(--s-2); border-radius: var(--r-full); background: var(--c-fill); }
.player__bar .icon-btn:hover { background: var(--c-fill-strong); }
.player__time { font: var(--t-caption); font-size: 13px; color: var(--c-ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 84px; text-align: right; }
@media (max-width: 760px) {
  .player__stage { height: auto; max-height: 80vh; max-width: none; align-self: stretch; aspect-ratio: var(--ar, 16 / 9); margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
}

/* The kinds of film under the player: a small poster tile each (its kind, length and tool), in one row. The tile
   playing is outlined; what it is shows once, in the caption above. Buttons with aria-pressed, so Tab reaches each. */
.kinds { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s-2); }
.kind { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 4px 4px var(--s-2); border-radius: var(--r-lg); color: var(--c-ink); text-align: left; transition: background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.kind:hover { background: var(--c-fill); }
.kind[aria-pressed="true"] { background: var(--c-accent-tint); box-shadow: inset 0 0 0 2px var(--c-accent); cursor: default; }
.kind__thumb { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; background: var(--c-stage); }
.kind__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.kind:hover .kind__thumb img { transform: scale(1.05); }
.kind__text { display: flex; flex-direction: column; padding: 0 4px; min-width: 0; }
.kind__text b { font: var(--t-small-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kind__text small { font: var(--t-caption); font-weight: 500; color: var(--c-ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* One line on what's playing: its kind and topic, then what that kind of film proves. */
.player__caption { font: var(--t-small); color: var(--c-ink); padding: 0 var(--s-1); }
.player__caption span { color: var(--c-ink-muted); }

/* Scrub bar: a range input drawn with the tokens. --p is the played share (set by script). */
.scrub { -webkit-appearance: none; appearance: none; flex: 1; min-width: 60px; height: var(--tap); background: none; cursor: pointer; margin: 0; }
.scrub::-webkit-slider-runnable-track { height: 6px; border-radius: var(--r-full); background: linear-gradient(to right, var(--c-accent) var(--p, 0%), var(--c-fill-strong) var(--p, 0%)); }
.scrub::-moz-range-track { height: 6px; border-radius: var(--r-full); background: var(--c-fill-strong); }
.scrub::-moz-range-progress { height: 6px; border-radius: var(--r-full); background: var(--c-accent); }
.scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5px; border-radius: var(--r-full); background: var(--c-accent); box-shadow: 0 0 0 3px var(--c-ground); }
.scrub::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: var(--r-full); background: var(--c-accent); box-shadow: 0 0 0 3px var(--c-ground); }
.scrub:focus-visible { outline: none; }
.scrub:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--c-ground), 0 0 0 6px var(--c-focus); }
.scrub:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--c-ground), 0 0 0 6px var(--c-focus); }

/* Tabs: switch what one area shows (the kinds of film). The selected tab has a bar under it; arrow keys move along. */
.tabs { display: flex; gap: var(--s-1); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  flex: none;
  min-height: var(--tap);
  padding: 0 var(--s-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--r-sm);
  font: var(--t-small-strong);
  font-size: 15px;
  color: var(--c-ink-muted);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.tab:hover { color: var(--c-ink); background: var(--c-fill); }
.tab .ic { width: 18px; height: 18px; }
.tab[aria-selected="true"], .tab[aria-current="page"] { color: var(--c-ink); }
.tab[aria-selected="true"]::after, .tab[aria-current="page"]::after { content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 0; height: 3px; border-radius: var(--r-full); background: var(--c-accent); }
.tab:focus-visible { outline-offset: -3px; }

/* ================================================================ gallery: prompt box */
/* The prompt as people copy it: mono text on the fill, its colours shown as swatches, empty [SLOTS] marked. */
.prompt { border-radius: var(--r-lg); background: var(--c-fill); overflow: hidden; min-width: 0; }
.prompt__head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4); background: var(--c-fill-strong); }
.prompt__label { flex: 1; min-width: 0; font: var(--t-small-strong); }
.prompt__label span { font-weight: 400; color: var(--c-ink-muted); }
.prompt pre { padding: var(--s-4); font: var(--t-mono); color: var(--c-ink); white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
.prompt--clamp pre { max-height: 360px; overflow-y: auto; overscroll-behavior: contain; }
.prompt .sw { display: inline-block; width: 0.9em; height: 0.9em; margin: 0 0.3em -0.1em 0; border-radius: 3px; background: var(--sw); box-shadow: inset 0 0 0 1px var(--c-edge); }
.prompt mark.added { background: var(--c-star-tint); color: var(--c-star-ink); border-radius: 3px; }
.prompt mark.slot { background: var(--c-accent-tint); color: var(--c-accent-ink); font-weight: 500; border-radius: 4px; padding: 0 3px; }
.prompt-note { font: var(--t-small); color: var(--c-ink-muted); }
.copy-btn[data-state="done"] { background: var(--c-good-tint); color: var(--c-good); }

/* ================================================================ gallery: tables */
/* Rows on the fill with 2px gaps, like a list. Wide tables scroll inside their box on a phone. */
.table-wrap { border-radius: var(--r-lg); overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0 2px; margin: -2px 0; font: var(--t-small); }
.table th { padding: 10px var(--s-4); text-align: left; font: var(--t-caption); color: var(--c-ink-muted); background: var(--c-fill-strong); white-space: nowrap; }
.table td { padding: 12px var(--s-4); background: var(--c-fill); vertical-align: top; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td b { font-weight: 700; }
.table .chip { min-height: 32px; }
.table tr.is-best td { background: var(--c-star-tint); }
@media (max-width: 640px) { .table .hide-sm { display: none; } }

/* ================================================================ gallery: small parts */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: var(--t-small); color: var(--c-ink-muted); }
.crumbs a { font-weight: 700; min-height: var(--tap); display: inline-flex; align-items: center; }
.crumbs .ic { width: 14px; height: 14px; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border-radius: var(--r-lg); overflow: hidden; }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: var(--s-4) var(--s-5); background: var(--c-fill); color: var(--c-ink); }
.pager a:hover { background: var(--c-fill-strong); }
.pager a span { font: var(--t-small); color: var(--c-ink-muted); display: inline-flex; align-items: center; gap: 4px; }
.pager a b { font: var(--t-body-strong); }
.pager a:last-child:not(:first-child) { text-align: right; align-items: flex-end; }
.pager .is-empty { background: var(--c-fill); }

/* Views and the like and dislike buttons. Dislikes are counted but not shown. */
.vote { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.vote__views { display: inline-flex; align-items: center; gap: 6px; padding: 0 var(--s-2); font: var(--t-small); color: var(--c-ink-muted); }
.vote__views b { color: var(--c-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.vote__btn { min-height: 40px; padding: 0 var(--s-3); border-radius: var(--r-full); display: inline-flex; align-items: center; gap: 6px; background: var(--c-fill); font: var(--t-small-strong); color: var(--c-ink); font-variant-numeric: tabular-nums; transition: background var(--dur-fast) var(--ease-out); }
.vote__btn:hover { background: var(--c-fill-strong); }
.vote__btn .ic { width: 18px; height: 18px; }
.vote__btn[aria-pressed="true"] { background: var(--c-accent-tint); color: var(--c-accent-ink); }
.vote__btn[aria-pressed="true"] .ic path { fill: var(--c-accent-soft); }

/* A status line that updates as you type (the prompt form). */
.status { display: flex; align-items: center; gap: 6px; font: var(--t-small); color: var(--c-ink-muted); }
.status .ic { width: 18px; height: 18px; }
.status.is-ok { color: var(--c-good); }

/* ================================================================ document typography */
/* Long text: the guide, the Lab's method, template notes. */
.doc { display: flex; flex-direction: column; gap: var(--s-4); max-width: var(--measure); font: var(--t-body); }
.doc > * + h2 { margin-top: var(--s-8); }
.doc > * + h3 { margin-top: var(--s-4); }
.doc h1 { font: var(--t-display); letter-spacing: var(--track-display); text-wrap: balance; }
.doc h2 { font: var(--t-heading); letter-spacing: var(--track-heading); text-wrap: balance; }
.doc h3 { font: var(--t-title); letter-spacing: var(--track-title); }
.doc p, .doc li { text-wrap: pretty; }
.doc ul { list-style: disc; padding-left: 1.3em; display: flex; flex-direction: column; gap: var(--s-2); }
.doc ol { list-style: decimal; padding-left: 1.4em; display: flex; flex-direction: column; gap: var(--s-2); }
.doc li::marker { color: var(--c-ink-muted); }
.doc a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.doc code { font: var(--t-mono); font-size: 0.875em; padding: 1px 6px; border-radius: 6px; background: var(--c-fill); }
.doc blockquote { padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--c-fill); }
/* A table in long text (the guide's) looks like .table. */
.doc .table-wrap { max-width: 100%; }
.doc table { width: 100%; border-collapse: separate; border-spacing: 0 2px; margin: -2px 0; font: var(--t-small); }
.doc th { padding: 10px var(--s-4); text-align: left; font: var(--t-caption); color: var(--c-ink-muted); background: var(--c-fill-strong); }
.doc td { padding: 12px var(--s-4); background: var(--c-fill); vertical-align: top; }
.doc .btn-row { margin-top: var(--s-6); }
.doc a.btn { text-decoration: none; }
.doc a.btn--primary { color: var(--c-on-accent); }
.doc mark { background: var(--c-accent-tint); color: var(--c-accent-ink); border-radius: 4px; padding: 0 3px; }

/* ================================================================ motion */
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  html { scroll-behavior: auto; }
}

/* ================================================================ gallery: locked prompt */
/* A prompt that isn't in the page: its opening, then blank bars where the rest would be, and a note on top. */
.locked { position: relative; border-radius: var(--r-lg); background: var(--c-fill); padding: var(--s-5); overflow: hidden; }
.locked pre { margin-bottom: var(--s-4); font: var(--t-mono); color: var(--c-ink-muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.locked .veil { display: grid; gap: var(--s-3); opacity: 0.7; }
.locked .veil i { display: block; height: 10px; border-radius: var(--r-full); background: var(--c-fill-strong); }
.locked .lock { position: absolute; left: 50%; bottom: var(--s-8); transform: translateX(-50%); display: grid; gap: 2px; text-align: center; padding: var(--s-3) var(--s-5); border-radius: var(--r-lg); background: var(--c-raised); box-shadow: var(--shadow-float); }
.locked .lock b { font: var(--t-body-strong); }
.locked .lock span { font: var(--t-small); color: var(--c-ink-muted); }
.locked .lock a { font: var(--t-small-strong); color: var(--c-accent-ink); }
