:root {
  --bg: #101214; --panel: #171a1d; --line: #2a2f35; --fg: #e9e7e2; --mute: #8b919a;
  --accent: #f2b233; --accent-ink: #1a1400; --bad: #ff6b57; --ok: #6fd18a;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; } [hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.who { font-size: 14px; color: var(--mute); display: flex; gap: 14px; align-items: center; }
.who a { text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .95; margin: 0; letter-spacing: .005em; }
h1 { font-size: clamp(40px, 7vw, 64px); }
h2 { font-size: clamp(28px, 5vw, 44px); }
h3 { font-size: 22px; font-weight: 600; letter-spacing: .03em; }
.lead { font-size: 17px; color: var(--mute); max-width: 56ch; margin: 14px 0 0; }
.note { font-size: 14px; color: var(--mute); }
.err { color: var(--bad); font-size: 14px; }
.ok { color: var(--ok); }
main { padding-block: 36px 80px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; background: var(--accent); color: var(--accent-ink); border: 0; cursor: pointer; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.sm { padding: 10px 14px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.card { background: var(--panel); border: 1px solid var(--line); padding: 20px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.kv span { color: var(--mute); }
.warid { font-family: var(--display); font-size: clamp(36px, 8vw, 64px); font-weight: 800; letter-spacing: .04em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line); color: var(--mute); }
.pill.done { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.pill.open { color: var(--fg); border-color: var(--fg); }
.pill.bad { color: var(--bad); border-color: var(--bad); }
.stages { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 24px; }
.stage { background: var(--panel); padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; }
.stage b { font-family: var(--display); font-size: 24px; font-weight: 800; text-transform: uppercase; display: block; }
.stage p { margin: 2px 0 0; color: var(--mute); font-size: 14px; }
@media (max-width: 560px) { .stage { grid-template-columns: 1fr; } }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
tr:hover td { background: var(--panel); }
.tscroll { overflow-x: auto; border: 1px solid var(--line); }
input, select, textarea { width: 100%; background: var(--bg); color: var(--fg); border: 1px solid var(--line); padding: 10px 12px; font: 500 15px var(--body); border-radius: 0; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
label { display: grid; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stats div { background: var(--panel); padding: 14px 16px; display: grid; gap: 2px; }
.stats b { font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
footer { border-top: 1px solid var(--line); padding: 24px 20px 40px; font-size: 14px; color: var(--mute); text-align: center; }
footer a { color: var(--mute); text-decoration: none; }

/* capture flow */
.cap { position: fixed; inset: 0; background: #000; z-index: 50; display: grid; grid-template-rows: auto 1fr auto; }
.cap-top { padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 10px; display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,.6); color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.cap-view { position: relative; overflow: hidden; }
.cap-view video, .cap-view canvas, .cap-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cap-view svg.outline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cap-view .count { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 160px; font-weight: 800; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.8); }
.cap-prompt { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; font-size: 18px; font-weight: 600; text-align: center; }
.cap-bar { padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 14px); display: flex; gap: 10px; justify-content: center; background: #000; }
.cap-bar .btn { flex: 1 1 auto; }
.rec { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); margin-right: 8px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.checklist { display: grid; gap: 10px; margin: 18px 0; }
.checklist div { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 16px; }
.checklist i { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--accent); margin-top: 3px; }
.progress { display: flex; gap: 6px; margin-top: 12px; }
.progress i { flex: 1; height: 4px; background: var(--line); }
.progress i.on { background: var(--accent); }
