/* CCTV, direction A "Console" (picked 2 Nov 2026): security-software calm. Near-black room, hairline panels, flat
   camera feeds, one red that only ever marks a detection. Geist for words, Geist Mono for addresses, numbers and the
   on-screen display. */
:root {
  --bg: #0a0b0d;
  --panel: #111317;
  --panel-2: #16191e;
  --line: #1f232a;
  --line-2: #2a2f37;
  --ink: #ecedef;
  --ink-2: #b6bcc6;
  --mute: #7a818d;
  --red: #e8403d;
  --red-ink: #ff6d69;
  --red-bg: rgba(232, 64, 61, 0.14);
  --r: 14px;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14.5px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
img, svg, canvas { display: block; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ------------------------------------------------------------ header: the brand, the search, live */
.bar { position: sticky; top: 0; z-index: 20; background: rgba(10, 11, 13, 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 28px; height: 28px; }
.brand .word { height: 14px; width: auto; }
.search { flex: 1; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 5px 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); }
.search:focus-within { border-color: #4a515c; }
.search svg { width: 16px; height: 16px; color: var(--mute); flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 500 13px var(--mono); }
.search input::placeholder { font: 400 14px var(--sans); color: var(--mute); }
.search button { height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: var(--ink); color: #0a0b0d; font-weight: 600; font-size: 13px; cursor: pointer; }
.search.bad { border-color: var(--red); }
.bar .right { display: flex; align-items: center; gap: 8px; flex: none; }
.bar .link { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 13.5px; padding: 6px 8px; border-radius: 8px; }
.bar .link:hover, .bar .link[aria-current='page'] { color: var(--ink); background: var(--panel); }
.ca { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; font: 500 12px var(--mono); color: var(--ink-2); cursor: pointer; }
.ca b { font-weight: 600; color: var(--mute); }
.ca[data-empty] { cursor: default; }
.motion { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.motion i { width: 26px; height: 15px; border-radius: 8px; background: var(--line-2); position: relative; transition: background 0.2s; }
.motion i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink-2); transition: transform 0.2s; }
.motion[aria-pressed='true'] i { background: var(--red); }
.motion[aria-pressed='true'] i::after { transform: translateX(11px); background: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px var(--red-bg); flex: none; }
.motion-on .dot.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(232, 64, 61, 0); } }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--mono); letter-spacing: 0.06em; color: var(--ink-2); text-transform: uppercase; margin-bottom: 10px; }
.rec { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* ------------------------------------------------------------ shared pieces */
h1 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
.lede { margin: 8px 0 0; color: var(--mute); font-size: 15px; max-width: 60ch; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-width: 0; }
.ph { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); min-height: 48px; }
.ph h2 { margin: 0; font-size: 13.5px; font-weight: 600; }
.ph .meta { margin-left: auto; color: var(--mute); font: 500 12px var(--mono); white-space: nowrap; }
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font: 600 10.5px/1 var(--mono); letter-spacing: 0.06em; white-space: nowrap; flex: none; }
.chip.bad { background: var(--red); color: #fff; }
.chip.warn { border: 1px solid var(--red); color: var(--red-ink); }
.chip.clean { border: 1px solid var(--line-2); color: var(--ink-2); }
.chip.wait { border: 1px dashed var(--line-2); color: var(--mute); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 9px; font-weight: 600; font-size: 13.5px; text-decoration: none; border: 1px solid var(--line-2); color: var(--ink); background: var(--panel-2); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #3a404a; }
.btn.primary, .btn-play { background: var(--ink); color: #0a0b0d; border-color: var(--ink); }
.btn-ghost { background: var(--panel-2); }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn svg { width: 12px; height: 12px; }
.soon { font: 500 11px var(--mono); color: var(--mute); }

/* a camera feed: flat, edge to edge */
.video { position: relative; aspect-ratio: 16 / 9; background: #0b0c0f; }
.video canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ------------------------------------------------------------ home: the latest catch and the live list */
.home-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 24px 0 16px; }
.home { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; align-items: start; }
.feature { scroll-margin-top: 124px; }
.feature .head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.feature .coin { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feature .headline { padding: 12px 14px 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.feature .sub { padding: 4px 14px 0; color: var(--mute); font-size: 13.5px; }
.feature .actions { display: flex; gap: 8px; padding: 14px; }
.tabs { display: flex; gap: 2px; padding: 3px; margin: 10px 12px 0; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.tabs button { flex: 1; height: 32px; border: 0; border-radius: 7px; background: transparent; color: var(--mute); font-weight: 500; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.tabs button[aria-selected='true'] { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.tabs .n { font: 500 11px var(--mono); color: var(--mute); }
.list-note { padding: 10px 14px 4px; color: var(--mute); font-size: 12.5px; }
.rows { list-style: none; margin: 0; padding: 4px 0 6px; max-height: 640px; overflow-y: auto; }
.rows li + li { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 14px; text-decoration: none; }
.row:hover { background: var(--panel-2); }
.row[aria-current='true'] { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden; border: 1px solid var(--line); background: #0b0c0f; }
.thumb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.thumb .tag { position: absolute; left: 4px; bottom: 4px; display: flex; }
.thumb .chip { height: 16px; padding: 0 5px; font-size: 9px; letter-spacing: 0.04em; border-radius: 4px; }
.thumb .chip.clean, .thumb .chip.warn, .thumb .chip.wait { background: rgba(10, 11, 13, 0.82); }
.row .body { display: grid; gap: 3px; min-width: 0; }
.row .top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.row .name { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .name span { color: var(--mute); font: 500 12px var(--mono); margin-left: 6px; }
.row .when { color: var(--mute); font: 500 11.5px var(--mono); white-space: nowrap; font-variant-numeric: tabular-nums; flex: none; }
.row .what { color: var(--ink-2); font-size: 13px; line-height: 1.35; }
.motion-on .rows li.new { animation: rowin 1.2s ease-out; }
@keyframes rowin { from { background: rgba(236, 237, 239, 0.07); } to { background: transparent; } }
.empty { padding: 26px 14px; color: var(--mute); font-size: 13.5px; text-align: center; }

/* ------------------------------------------------------------ replay page */
.case { padding: 22px 0 10px; }
.case-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.case-head h1 { font-size: clamp(24px, 2.4vw, 30px); }
.case-head .name { color: var(--mute); font-size: 15px; }
.case-meta { display: flex; gap: 6px 18px; flex-wrap: wrap; color: var(--mute); font-size: 13px; margin-top: 8px; }
.case-meta a { color: var(--ink-2); text-underline-offset: 3px; }
.copy { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-2); font: 500 12.5px var(--mono); text-decoration: underline dotted; text-underline-offset: 3px; }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; margin-top: 18px; align-items: start; }
.mon { display: block; }
.mon .bezel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.mon .recess { padding: 0; background: none; }
.mon .screen { position: relative; aspect-ratio: 16 / 9; background: #0b0c0f; }
.mon canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.transport { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--panel); }
.stage .player { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stage .player .mon .bezel { border: 0; border-radius: 0; }
.tbtn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel-2); display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; }
.tbtn svg { width: 13px; height: 13px; }
.scrub { flex: 1; height: 36px; display: flex; align-items: center; cursor: pointer; touch-action: none; min-width: 0; }
.scrub .track { position: relative; width: 100%; height: 4px; border-radius: 2px; background: var(--line-2); }
.scrub .fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 2px; background: var(--ink); }
.scrub .mark { position: absolute; top: -5px; width: 2px; height: 14px; border-radius: 1px; background: var(--red); }
.tc { font: 500 12px var(--mono); color: var(--ink-2); min-width: 62px; text-align: right; font-variant-numeric: tabular-nums; }
.speed { height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer; font: 500 12px var(--mono); }

.verdict { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.v-top { padding: 16px 16px 14px; border-bottom: 1px solid var(--line); }
.stamp { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 7px; font: 600 14px/1 var(--mono); letter-spacing: 0.08em; }
.stamp.bad { background: var(--red); color: #fff; }
.stamp.warn { border: 1px solid var(--red); color: var(--red-ink); }
.stamp.clean { border: 1px solid var(--line-2); color: var(--ink); }
.v-head { font-size: 18px; font-weight: 600; line-height: 1.3; margin: 12px 0 0; letter-spacing: -0.015em; }
.v-sub { color: var(--ink-2); margin: 6px 0 0; font-size: 14px; }
.checks { list-style: none; margin: 0; padding: 4px 0; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 10px 16px; font-size: 13.5px; line-height: 1.45; }
.checks li + li { border-top: 1px solid var(--line); }
.checks .ic { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font: 700 11px var(--mono); margin-top: 1px; }
.checks .flag .ic { background: var(--red); color: #fff; }
.checks .pass .ic { border: 1px solid var(--line-2); color: var(--ink-2); }
.txs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.txs a { font: 500 11.5px var(--mono); color: var(--mute); text-underline-offset: 3px; }
.txs a:hover { color: var(--ink); }
.v-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }

.tape { margin-top: 22px; }
.tape h2, .notes h2 { font-size: 15px; margin: 0 0 10px; font-weight: 600; }
.scroll-x { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; color: var(--mute); font-weight: 500; font-size: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table td.num { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.table th.num { text-align: right; }
.table a { color: var(--ink-2); font-family: var(--mono); font-size: 12.5px; text-underline-offset: 3px; }
.kind { font: 600 10.5px var(--mono); letter-spacing: 0.06em; padding: 3px 6px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--ink-2); }
.kind.bundle, .kind.dev { border-color: var(--red); color: var(--red-ink); }
.notes { margin-top: 22px; color: var(--mute); font-size: 13px; }
.notes ul { margin: 0; padding-left: 18px; }

/* ------------------------------------------------------------ docs */
.doc { max-width: 760px; padding: 30px 0 20px; }
.doc h1 { font-size: clamp(26px, 3vw, 36px); }
.doc h2 { font-size: 19px; margin: 32px 0 8px; letter-spacing: -0.01em; font-weight: 600; }
.doc p, .doc li { color: var(--ink-2); }
.doc code { font: 13px var(--mono); background: var(--panel); padding: 2px 6px; border-radius: 5px; }
.doc .defs { display: grid; grid-template-columns: 140px 1fr; gap: 12px 18px; margin: 14px 0; align-items: start; }
.doc .defs dt { margin: 0; }
.doc .defs dd { margin: 0; color: var(--ink-2); }
.doc .defs .stamp { font-size: 11.5px !important; height: 24px; }

/* ------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 20px 0 34px; color: var(--mute); font-size: 12.5px; }
.foot .wrap { display: flex; gap: 8px 22px; flex-wrap: wrap; align-items: center; }
.foot a { color: var(--ink-2); text-underline-offset: 3px; }
.foot .risk { flex-basis: 100%; }

/* ------------------------------------------------------------ phones */
@media (max-width: 1080px) {
  .home, .stage { grid-template-columns: 1fr; }
  .rows { max-height: none; }
}
@media (max-width: 720px) {
  .bar .wrap { flex-wrap: wrap; height: auto; padding-block: 10px; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .bar .right { margin-left: auto; }
  .home-title { padding-top: 18px; }
}
@media (max-width: 480px) {
  .wrap { padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); }
  .motion span, .bar .link { display: none; }
  .row { grid-template-columns: 104px minmax(0, 1fr); gap: 10px; padding: 10px 12px; }
  .feature .actions .btn { flex: 1; }
  .doc .defs { grid-template-columns: 1fr; gap: 4px; }
  .doc .defs dd { margin-bottom: 10px; }
  .tc { min-width: 0; }
}
