
:root {
  --ink: #14161b; --ink-2: #3b4152; --muted: #5a6072; --line: #e2e4e9; --line-strong: #c9cdd6;
  --bg: #f4f5f7; --panel: #ffffff; --soft: #f4f5f7;
  --accent: #2b4bd6; --accent-hover: #1c349e; --accent-ink: #ffffff; --accent-soft: #e8ecfb; --link: #2b4bd6;
  --proposed: #a84808; --proposed-soft: #fbeee4; --lamp: #f2b544;
  --good: #16804a; --good-soft: #e2f5ea; --bad: #c42739; --bad-soft: #fde7e9; --warn: #8a5300; --warn-soft: #fff3de;
  --info: #2b4bd6; --info-soft: #e8ecfb;
  --ins: #dcf5e4; --ins-ink: #0e4d2d; --del: #fde2e5; --del-ink: #8a1826;
  --radius: 12px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: var(--sans);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); }
body.white { background: var(--panel); }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
code, pre, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--soft); padding: .1em .35em; border-radius: 4px; }
pre { background: var(--soft); padding: 12px 14px; border-radius: 8px; overflow: auto; line-height: 1.45; }
pre code { background: none; padding: 0; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; }
h1 { font: 600 32px/1.15 var(--display); letter-spacing: -.01em; }
h2 { font-size: 20px; font-weight: 600; } h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 .8em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
img { max-width: 100%; }
button, .button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

/* the site bar */
.top { background: var(--panel); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1120px; margin: 0 auto; padding: 0 24px; min-height: 52px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 8px; font: 600 16px var(--display); color: var(--ink); }
.logo:hover { text-decoration: none; color: var(--ink); }
.logo svg { width: 22px; height: 22px; }
.logo svg .m { mix-blend-mode: multiply; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: var(--muted); padding: 6px 10px; border-radius: 7px; font-size: 15px; }
.nav a:hover, .nav a.on { color: var(--ink); background: var(--soft); text-decoration: none; }
.who { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.who form { display: contents; }
.badge-count { background: var(--lamp); color: var(--ink); border-radius: 999px; font-size: 11px; padding: 1px 7px; margin-left: 4px; font-weight: 700; }

main { max-width: 1120px; margin: 0 auto; padding: 28px 24px 120px; }
main.narrow, .narrow { max-width: 760px; }
main.stream-main { max-width: 720px; padding-top: 0; }
main.details-main { max-width: 760px; padding-top: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.cols-2 { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); }
.cols-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 860px) { .cols-2 { grid-template-columns: 1fr; } .nav { display: none; } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.card h2, .card h3 { margin-top: 0; }
:not(.grid) > .card + .card { margin-top: 16px; }
.section { margin: 28px 0 0; }
.section > h2 { display: flex; align-items: baseline; gap: 10px; }
.section > h2 .muted { font-weight: 400; font-size: 15px; }
.kicker, .label { text-transform: uppercase; letter-spacing: .04em; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.label.proposed { color: var(--proposed); }
.eyebrow { margin: 0; font: 600 14px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

.chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 1px 10px; font-size: 13px;
  font-weight: 600; background: var(--soft); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.chip.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip.warn, .chip.amber { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.info, .chip.sky { background: var(--info-soft); color: var(--info); border-color: transparent; }
.chip.accent, .chip.magenta { background: var(--proposed-soft); color: var(--proposed); border-color: transparent; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.chip.tag { font-weight: 500; }
a.chip.tag { text-decoration: none; }
a.chip.tag:hover { border-color: var(--ink); color: var(--ink); }
.chip.tag.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.tag .n { opacity: .65; font-weight: 400; }
.tag-filter { margin: 0 0 16px; }
.tag-form { margin-top: 14px; }
.chip.agent::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.chip.person::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); }

/* buttons: outline by default; primary is ink, accent is the blue call to action */
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--panel); color: var(--ink); padding: 0 16px; min-height: 40px; font-weight: 600; font-size: 15px; cursor: pointer; line-height: 1.2; text-decoration: none; }
.button:hover, button:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.button.primary, button.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.button.primary:hover, button.primary:hover { background: #2a2d36; color: #fff; }
.button.accent, button.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.button.accent:hover, button.accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.button.good, button.good { background: var(--good); color: #fff; border-color: var(--good); }
.button.bad, button.bad { background: var(--panel); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.button.quiet, button.quiet { border-color: transparent; background: none; color: var(--muted); font-weight: 500; padding: 0 12px; }
.button.quiet:hover, button.quiet:hover { color: var(--ink); }
.button.small, button.small { min-height: 32px; padding: 0 12px; font-size: 14px; }
.button.big, button.big { min-height: 48px; padding: 0 22px; font-size: 16px; }
.button.huge, button.huge { min-height: 52px; padding: 0 26px; font-size: 16px; }
.button.pill, button.pill { border-radius: 999px; font-weight: 500; min-height: 44px; }
.button.pill.primary, button.pill.primary { font-weight: 600; }
button[disabled], .button[aria-disabled=true] { opacity: .45; cursor: not-allowed; }
button[disabled]:hover { border-color: var(--line-strong); }
.button.accent[disabled]:hover, button.accent[disabled]:hover { background: var(--accent); border-color: var(--accent); }
.arrow::after { content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat; }
.play::before { content: ""; width: 14px; height: 14px; background: currentColor; clip-path: polygon(25% 15%, 85% 50%, 25% 85%); }
kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; color: var(--muted); }

form.stack { display: grid; gap: 14px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: 15px; }
label .hint { font-weight: 400; color: var(--muted); font-size: 14px; }
input[type=text], input[type=password], input[type=number], select, textarea {
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); border-radius: 8px; padding: 10px 14px; width: 100%; font: 400 16px/1.5 var(--sans); }
textarea { min-height: 90px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 400; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.choice { border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px; display: flex; gap: 10px; cursor: pointer; font-weight: 400; background: var(--panel); }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.choice strong { display: block; }

.flash { border-radius: 8px; padding: 12px 16px; margin: 16px 0; font-weight: 500; }
.flash.ok { background: var(--good-soft); color: var(--good); }
.flash.error { background: var(--bad-soft); color: var(--bad); }
.note-box { margin: 8px 0 0; padding: 14px 16px; background: var(--soft); border-radius: 8px; }
body.white .note-box, .card .note-box { background: var(--bg); }

.prose { line-height: 1.6; }
.prose h1 { font-size: 28px; }
.prose h2, .prose h3, .prose h4 { margin: 1.2em 0 .4em; }
.prose h1:first-child, .prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 .9em; }
.prose blockquote { margin: 0 0 .9em; padding: 2px 14px; border-left: 3px solid var(--line); color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* explore */
.hero { padding: 24px 0 8px; }
.hero h1 { font-size: 40px; line-height: 1.1; max-width: 780px; }
.hl { color: var(--accent); }
.hero p { font-size: 17px; color: var(--ink-2); max-width: 680px; }
.project-card { display: grid; gap: 8px; color: var(--ink); }
.project-card:hover { text-decoration: none; color: var(--ink); border-color: var(--line-strong); }
.project-card .thumb { aspect-ratio: 16 / 9; border-radius: 8px; background: var(--soft); overflow: hidden; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-card .thumb.empty { display: grid; place-items: center; color: var(--muted); font-size: 14px; background: #0f1626; color: #b7bfd3; }

/* a project: its header and two tabs */
.proj-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.proj-head.lined { border-bottom: 1px solid var(--line); }
.proj-name { display: flex; align-items: center; gap: 10px; font: 600 20px var(--display); color: var(--ink); }
.proj-name:hover { text-decoration: none; color: var(--ink); }
.mark { width: 24px; height: 24px; flex: none; }
.ptabs { display: flex; align-items: center; gap: 24px; }
.ptabs a { color: var(--muted); padding: 12px 0; border-bottom: 2px solid transparent; }
.ptabs a:hover { color: var(--ink); text-decoration: none; }
.ptabs a[aria-current=page] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.ai-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 16px; padding: 12px 16px; }
.ai-banner .marks { display: inline-flex; flex: none; }
.ai-banner .logo-mark { width: 32px; height: 32px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 50%; }
.ai-banner .logo-mark + .logo-mark { margin-left: -8px; }
.ai-banner .txt { flex: 1 1 240px; min-width: 0; }
.ai-banner .t { display: block; font-weight: 600; }
.ai-banner .s { display: block; font-size: 14px; color: var(--muted); }
.prompt-pop { width: min(600px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; color: var(--ink); background: var(--panel); box-shadow: 0 12px 40px rgba(20, 22, 27, .18); }
.prompt-pop::backdrop { background: rgba(20, 22, 27, .35); }
.prompt-pop h2 { margin: 0; }
.prompt-pop p { margin: 8px 0 0; }
.prompt-pop [data-copy-status].ok { color: var(--good); font-weight: 500; }
.prompt-pop .prompt-text { white-space: pre-wrap; margin: 14px 0 16px; font-size: 13.5px; }

/* the Contribute tab */
.about { padding: 32px 0 28px; }
.about h1 { font-size: 40px; line-height: 1.1; margin: 0; }
.about .lede { margin: 14px 0 0; font-size: 17px; color: var(--ink-2); max-width: 640px; }
.stats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 20px; font-size: 15px; color: var(--muted); }
.stats b { font-weight: 600; color: var(--ink); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.play-card { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 16px; }
.play-card .thumb { flex: 0 0 200px; border-radius: 8px; overflow: hidden; background: #0f1626; aspect-ratio: 16 / 9; }
.play-card .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.play-card .what { flex: 1 1 220px; min-width: 0; }
.play-card h2 { margin: 0; font: 600 20px/1.2 var(--display); }
.play-card p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.block { margin-top: 40px; }
.block > .eyebrow + * { margin-top: 12px; }
.judge-card { padding: 24px; }
.judge-card + .judge-card { margin-top: 16px; }
.meta { margin: 0; font-size: 14px; color: var(--muted); }
.judge-card h3 { margin: 4px 0 0; font-size: 20px; font-weight: 600; line-height: 1.3; }
.judge-card h3 a { color: var(--ink); }
.pair, .trio { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.trio { gap: 12px; }
.pair > div { flex: 1 1 260px; min-width: 0; }
.trio > div { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.shotbox { margin-top: 8px; border-radius: 8px; overflow: hidden; background: #0f1626; aspect-ratio: 16 / 9; }
.trio .shotbox { margin-top: 0; }
.shotbox img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shotbox.proposed { outline: 2px solid var(--proposed); outline-offset: -2px; }
.shotbox.none { display: grid; place-items: center; color: #b7bfd3; font-size: 14px; text-align: center; padding: 12px; }
.trio .who-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.summary-mini { margin: 16px 0 0; padding: 0 0 0 20px; color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.cta .hint { font-size: 14px; color: var(--muted); }
.more-link { margin: 12px 0 0; font-size: 15px; }
.suggest { padding: 24px; }
.suggest label.big-label { font-weight: 600; font-size: 16px; }
.suggest textarea { margin-top: 8px; min-height: 0; padding: 14px; }
.suggest .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.fine { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.lined { list-style: none; margin: 0; padding: 0; }
.lined > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.lined > li:last-child { border-bottom: 0; }
.lined .txt { flex: 1 1 260px; min-width: 0; }
.lined .t { display: block; font-weight: 600; color: var(--ink); }
a.t:hover { color: var(--accent); }
.lined .s { display: block; font-size: 14px; color: var(--muted); }
.lined form { margin: 0; }
.card .lined > li { padding-left: 0; padding-right: 0; }
form.row { align-items: flex-end; }

/* the Details tab */
.details-intro { padding: 40px 0 8px; }
.details-intro h1 { margin: 0; }
.details-intro p { margin: 10px 0 0; color: var(--muted); max-width: 600px; }
.index { padding-top: 32px; }
.index + .index { padding-top: 40px; }
.index ul { list-style: none; margin: 8px 0 0; padding: 0; }
.index li { border-bottom: 1px solid var(--line); }
.index li a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; min-height: 44px; color: var(--ink); }
.index li a:hover { text-decoration: none; }
.index li a:hover .t { color: var(--accent); }
.index .t { display: block; font-weight: 600; }
.index .s { display: block; font-size: 14px; color: var(--muted); }
.index li a::after { content: ""; flex: none; width: 16px; height: 16px; background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat; }
.crumb { padding: 32px 0 4px; font-size: 15px; }
.subpage h1 { margin: 0 0 6px; }
.subpage > .muted:first-of-type { margin-top: 0; }
.subpage .card { margin-top: 20px; }

/* review screens */
.rv-head { background: var(--panel); border-bottom: 1px solid var(--line); }
.rv-head .in { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font-weight: 600; }
.back:hover { color: var(--ink); }
.back::before { content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 8H3M7 4L3 8l4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 8H3M7 4L3 8l4 4'/%3E%3C/svg%3E") center / contain no-repeat; }
.rv-head .where { display: flex; align-items: center; gap: 20px; font-size: 15px; color: var(--muted); }
.rv-head .where a { padding: 12px 0; }
main.rv { padding-top: 0; }
.rv section { padding: 28px 0; border-top: 1px solid var(--line); }
.rv section.ask { padding: 36px 0 28px; border-top: 0; }
.rv section.last { padding-bottom: 0; }
.ask h1 { margin: 6px 0 0; font-size: 34px; }
.ask .body { margin: 14px 0 0; max-width: 720px; }
.cols { display: flex; flex-wrap: wrap; gap: 16px 48px; margin-top: 20px; }
.cols > div { flex: 1 1 360px; min-width: 0; }
.cols ul { margin: 6px 0 0; padding: 0 0 0 20px; }
.cols .prose { margin-top: 6px; }
.rv h2 { margin: 0; font: 600 22px var(--display); }
.sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.sec-head .hint { font-size: 14px; color: var(--muted); }
.panes { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 16px; }
.panes > .pane-col { flex: 1 1 420px; min-width: 0; }
.panes.many > .pane-col { flex-basis: 300px; }
.pane-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pane-top .status { font-size: 14px; color: var(--muted); }
.player { position: relative; margin-top: 8px; border-radius: 12px; overflow: hidden; background: #0f1626; aspect-ratio: 16 / 9; }
.player.proposed { outline: 2px solid var(--proposed); outline-offset: -2px; }
.player img { display: block; width: 100%; height: 100%; object-fit: cover; }
.player iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.player .missing { position: absolute; inset: 0; border: 0; color: #b7bfd3; min-height: 0; }
.play-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 26px; background: #fff; color: var(--ink); font: 600 17px var(--sans); white-space: nowrap; box-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.play-btn:hover { text-decoration: none; color: var(--ink); background: #f4f5f7; }
.pane-foot { margin-top: 6px; font-size: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: var(--panel); flex-wrap: wrap; }
.seg button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 0; background: var(--panel); color: var(--ink); font-weight: 500; font-size: 14px; }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button[aria-pressed=true] { background: var(--ink); color: #fff; font-weight: 600; }
.viewer-stage { margin-top: 16px; border-radius: 12px; overflow: hidden; background: #07090e; }
.viewer-stage .slot { display: grid; gap: 2px; }
.viewer-stage img { display: block; width: 100%; height: auto; }
.viewer-stage .slot figure { margin: 0; position: relative; }
.viewer-stage .slot figcaption { position: absolute; left: 10px; top: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 13px; font-weight: 600; }
.viewer-stage.sbs-mode { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px; }
.viewer-stage.phone-mode .slot { max-width: 390px; margin: 0 auto; }
.viewer-stage .slot-text { background: var(--panel); padding: 16px 20px; }
.viewer-stage.sbs-mode .slot-text { height: 100%; }
.slot-foot { margin: 0; padding: 10px 14px; font-size: 14px; }
.slot-foot a { color: #c3ccf7; }
.slot-foot a:hover { color: #fff; }
.moments > summary { padding: 4px 0; }
.moments > summary .muted { margin-left: 8px; font-size: 14px; }
.viewer-stage .empty-slot { display: grid; place-items: center; min-height: 200px; color: #b7bfd3; font-size: 14px; }
.pickers { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.pickers button { flex: 1 1 180px; min-width: 0; min-height: 56px; justify-content: space-between; padding: 0 16px; border: 2px solid var(--line-strong); border-radius: 8px; font-size: 15px; }
.pickers button[aria-pressed=true] { border-color: var(--ink); }
.pickers .seen { font-weight: 400; color: var(--muted); }
.verdict-form .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.verdict-form textarea { margin-top: 8px; min-height: 0; padding: 12px 14px; }
.verdict-form label.label { display: block; }
.recorded { margin-top: 24px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px; }
.recorded p { margin: 0; }
.recorded p + p { margin-top: 6px; color: var(--muted); }
.recorded .button { margin-top: 14px; }
.full-pack { margin-top: 28px; font-size: 15px; }
.shots-list { margin-top: 16px; }

/* pipeline */
.pipeline { display: flex; gap: 0; flex-wrap: wrap; margin: 12px 0 4px; }
.stage { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; background: var(--panel); border: 1px solid var(--line);
  border-right: 0; font-size: 14px; font-weight: 600; }
.stage:first-child { border-radius: 8px 0 0 8px; }
.stage:last-child { border-radius: 0 8px 8px 0; border-right: 1px solid var(--line); }
.stage .dot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; background: var(--line); flex: none; }
.stage.passed .dot { background: var(--good); }
.stage.failed .dot { background: var(--bad); }
.stage.open .dot, .stage.taken .dot { background: var(--lamp); animation: pulse 1.6s ease-in-out infinite; }
.stage.waiting { color: var(--muted); }
.stage .sub { font-weight: 400; color: var(--muted); font-size: 13px; }
.pipeline.mini { margin: 6px 0 0; }
.pipeline.mini .stage { padding: 2px 10px 2px 6px; font-size: 13px; }
.pipeline.mini .stage .dot { width: 14px; height: 14px; font-size: 9px; }
@keyframes pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .stage .dot { animation: none !important; } }

/* the full pack */
.pack-head h1 { margin-bottom: 6px; }
.summary-lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.summary-lines li { padding-left: 18px; position: relative; }
.summary-lines li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--lamp); }
.exhibit-nav { position: sticky; top: 0; z-index: 10; background: var(--bg); padding: 8px 0; margin: 20px 0 6px; display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
body.white .exhibit-nav { background: var(--panel); }
.exhibit-nav a { padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-strong); color: var(--ink); font-weight: 600; font-size: 14px; }
.exhibit-nav a:hover { text-decoration: none; border-color: var(--ink); }
.exhibit { margin-top: 28px; scroll-margin-top: 70px; }
.exhibit > h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.shot { margin: 0 0 24px; scroll-margin-top: 20px; }
.shot figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.shot .title { font-weight: 600; }
.modes { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: var(--panel); }
.modes button { border: 0; border-radius: 0; min-height: 32px; padding: 0 12px; font-size: 13px; font-weight: 500; background: transparent; color: var(--ink); }
.modes button.on { background: var(--ink); color: #fff; font-weight: 600; }
.modes button + button { border-left: 1px solid var(--line-strong); }
.frame { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--soft); max-width: 100%; }
.frame.phone { max-width: 390px; }
.compare { position: relative; display: block; user-select: none; touch-action: pan-y; }
.compare img { display: block; width: 100%; height: auto; }
.compare .over { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--proposed); pointer-events: none; }
.compare .handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--proposed);
  color: #fff; font-weight: 700; border-radius: 999px; padding: 2px 8px; font-size: 13px; white-space: nowrap; }
.compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .tag { position: absolute; top: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; }
.compare .tag.l { left: 8px; } .compare .tag.r { right: 8px; }
.sbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sbs.phone { grid-template-columns: repeat(2, minmax(0, 300px)); }
.sbs figure { margin: 0; } .sbs figcaption { font-size: 13px; color: var(--muted); margin-bottom: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.sbs figure:last-child figcaption { color: var(--proposed); }
.sbs img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 8px; }
.sbs figure:last-child img { outline: 2px solid var(--proposed); outline-offset: -2px; }
.missing { display: grid; place-items: center; min-height: 140px; color: var(--muted); font-size: 14px; border: 1px dashed var(--line-strong); border-radius: 8px; padding: 20px; text-align: center; }
.unchanged { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.unchanged figure { margin: 0; font-size: 13px; color: var(--muted); }
.unchanged img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 4px; }
.errors { margin: 6px 0 0; padding: 8px 12px; background: var(--bad-soft); color: var(--bad); border-radius: 8px; font-size: 13px; font-family: var(--mono); }
.seen-mark { font-size: 13px; color: var(--good); font-weight: 600; }

.previews { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.previews.single { grid-template-columns: 1fr; }
.previews .pane { display: grid; gap: 6px; }
.previews .pane[hidden] { display: none; }
.previews iframe { width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 8px; background: #000; }
.pane-head { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
@media (max-width: 860px) { .previews { grid-template-columns: 1fr; } .sbs { grid-template-columns: 1fr; } }

.diff { white-space: pre-wrap; word-wrap: break-word; font: 15px/1.65 var(--sans); background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 14px 16px; }
.diff ins { background: var(--ins); color: var(--ins-ink); text-decoration: none; border-radius: 3px; padding: 0 1px; }
.diff del { background: var(--del); color: var(--del-ink); text-decoration: line-through; text-decoration-thickness: 1px; border-radius: 3px; padding: 0 1px; }
.diff .fold { display: block; color: var(--muted); font-size: 13px; padding: 2px 0; font-style: italic; }
.clean { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; }

.delta-up { color: var(--good); } .delta-down { color: var(--bad); } .delta-flat { color: var(--muted); }
.check-ok { color: var(--good); font-weight: 600; } .check-fail { color: var(--bad); font-weight: 600; }

.verdict { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: color-mix(in srgb, var(--panel) 96%, transparent);
  backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.verdict .in { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.verdict .coverage { font-size: 14px; color: var(--muted); }
.grow { flex: 1; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 8px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 12px; font-size: 15px; }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { color: var(--muted); font-size: 14px; }
.timeline li > div { min-width: 0; }
.timeline pre { margin: 6px 0 0; font-size: 13px; max-height: 260px; }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }
.critique { border-left: 3px solid var(--line); padding: 6px 12px; margin: 8px 0; }
.critique.accept { border-color: var(--good); } .critique.changes_requested { border-color: var(--bad); }
.list { display: grid; }
.row-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 8px; margin: 0 -8px;
  border-bottom: 1px solid var(--line); color: var(--ink); border-radius: 8px; }
.row-link:last-child { border-bottom: 0; }
.row-link:hover { text-decoration: none; color: var(--ink); background: var(--soft); }
.row-link .t { font-weight: 600; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸ "; color: var(--muted); }
details[open] > summary::before { content: "▾ "; }
.token { font-family: var(--mono); background: var(--soft); padding: 10px 12px; border-radius: 8px; word-break: break-all; border: 1px solid var(--line); }
.agent-box { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 18px 20px; scroll-margin-top: 20px; }
.agent-box:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.agent-box pre { margin: 8px 0 10px; white-space: pre-wrap; }
.agent-box table { font-size: 14px; }
.agent-box td { padding: 6px 10px 6px 0; word-break: break-all; }
.agent-box td:first-child { color: var(--muted); width: 64px; word-break: normal; }
footer { color: var(--muted); font-size: 14px; text-align: center; padding: 30px 24px 60px; }

/* phones */
@media (max-width: 600px) {
  .top .in, main, .rv-head .in { padding-left: 16px; padding-right: 16px; }
  .proj-head { padding: 0; gap: 0; margin: 0 -16px; background: var(--panel); border-bottom: 1px solid var(--line); }
  .proj-head .proj-name { min-height: 56px; padding: 0 16px; width: 100%; }
  .proj-head .ptabs { padding: 0 16px; width: 100%; border-top: 1px solid var(--line); }
  .ai-banner > button { width: 100%; }
  .about { padding: 28px 0 24px; }
  .about h1 { font-size: 30px; line-height: 1.12; }
  .about .lede { font-size: 16px; }
  .play-card { padding: 12px; gap: 12px; }
  .play-card .thumb { flex-basis: 100%; }
  .play-card .go { width: 100%; }
  .block { margin-top: 36px; }
  .judge-card, .suggest { padding: 16px; }
  .judge-card h3 { font-size: 18px; }
  .pair { flex-wrap: nowrap; gap: 10px; }
  .pair > div { flex: 1 1 0; }
  .trio { flex-wrap: nowrap; gap: 8px; }
  .trio > div { flex: 1 1 0; }
  .cta .button, .suggest .bar button, .suggest .bar .button { width: 100%; }
  .lined > li { padding: 16px; }
  .lined > li > form, .lined > li > .button { width: 100%; }
  .lined > li > form button { width: 100%; }
  .details-intro { padding-top: 28px; }
  .ask h1 { font-size: 28px; }
  .rv section.ask { padding-top: 24px; }
  .verdict-form .actions button { flex: 1 1 100%; }
  .seg { width: 100%; }
  .seg button { flex: 1 1 0; padding: 0 8px; }
  h1 { font-size: 28px; }
  .hero h1 { font-size: 30px; }
}
