/* findsatoshi.work — AIBTC look: near-black, Bitcoin orange, wide display headings. */
@font-face { font-family: "Roc Grotesk"; src: url("/fonts/RocGrotesk-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roc Grotesk"; src: url("/fonts/RocGrotesk-WideMedium.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Roc Grotesk Wide"; src: url("/fonts/RocGrotesk-ExtraWideMedium.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --paper: #000000;
  --paper-2: rgb(255 255 255 / 0.05);
  --card: #0a0a0a;
  --ink: #ffffff;
  --ink-2: rgb(255 255 255 / 0.7);
  --muted: rgb(255 255 255 / 0.5);
  --rule: rgb(255 255 255 / 0.1);
  --red: #f7931a;        /* accent: Bitcoin orange (AIBTC) */
  --red-ink: #e8850f;     /* orange hover */
  --danger: #f06464;
  --green: #4dcd5e;
  --manila: #3a2a12;
  --blue: #7da2ff;
  --purple: #a855f7;
  --f-impostor: #f06464;
  --f-genesis: #f7931a;
  --f-artifacts: #7da2ff;
  --f-cold: #a855f7;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Roc Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Roc Grotesk Wide", "Roc Grotesk", ui-sans-serif, system-ui, sans-serif;
  --display: "Roc Grotesk Wide", "Roc Grotesk", ui-sans-serif, system-ui, sans-serif;
  --radius: 8px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: inherit; text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--card); padding: 6px 10px; z-index: 10; }

.mono { font-family: var(--mono); }
.dim { color: var(--muted); }
.small { font-size: 0.86rem; }
.label { font: 700 0.78rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0 0 0.6rem; }

/* ── header / footer ─────────────────────────────── */
header.site { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  max-width: 1120px; margin: 0 auto; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 0.55rem; font: 700 1.15rem var(--mono); text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border: 2px solid var(--red); color: var(--red);
  border-radius: 50%; font-size: 1rem; transform: rotate(-8deg); }
header.site nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
header.site nav a { font: 0.92rem var(--mono); text-decoration: none; padding: 0.35rem 0.6rem; border-radius: var(--radius); }
header.site nav a:hover { background: var(--paper-2); }
header.site nav a.active { background: var(--ink); color: var(--paper); }
main { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem 3rem; }
footer.site { max-width: 1120px; margin: 0 auto; padding: 2rem 1.25rem 3rem; border-top: 1px solid var(--rule); text-align: center; }
.motto { font: 700 1.05rem var(--mono); margin: 0 0 0.4rem; }
.fine { color: var(--muted); font-size: 0.86rem; margin: 0; }

/* ── page head + filters ─────────────────────────── */
.page-head { padding: 2.6rem 0 1.4rem; }
.page-head h1 { font: 700 clamp(1.8rem, 4.2vw, 2.8rem)/1.15 var(--serif); margin: 0 0 1.2rem; letter-spacing: -0.01em; }
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.filter-group { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.filter-group a { font: 0.86rem var(--mono); text-decoration: none; padding: 0.3rem 0.65rem; border: 1px solid var(--rule); border-radius: 999px; }
.filter-group a.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ── folders + cards ─────────────────────────────── */
.folder { margin: 1.8rem 0 2.4rem; }
.folder-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.folder-blurb { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.file-tab { display: inline-block; font: 700 0.85rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none;
  background: var(--manila); color: #2b2417; padding: 0.3rem 0.8rem 0.25rem; border-radius: 6px 6px 0 0; border-bottom: 3px solid currentColor; }
.file-impostor { border-bottom-color: var(--f-impostor); } .file-genesis { border-bottom-color: var(--f-genesis); }
.file-artifacts { border-bottom-color: var(--f-artifacts); } .file-cold { border-bottom-color: var(--f-cold); }
.file-tab { color: #f3ead4; }

.case-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.case-card { background: var(--card); border: 1px solid var(--rule); border-left: 5px solid var(--rule); border-radius: var(--radius);
  transition: transform 0.12s ease, box-shadow 0.12s ease; }
.case-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgb(0 0 0 / 0.08); }
.file-edge-impostor { border-left-color: var(--f-impostor); } .file-edge-genesis { border-left-color: var(--f-genesis); }
.file-edge-artifacts { border-left-color: var(--f-artifacts); } .file-edge-cold { border-left-color: var(--f-cold); }
.case-link { display: flex; flex-direction: column; height: 100%; padding: 1rem 1.1rem; text-decoration: none; }
.case-card-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.case-card h3 { font: 700 1.3rem/1.25 var(--serif); margin: 0.6rem 0 0.35rem; }
.tagline { color: var(--ink-2); margin: 0 0 1rem; }
.tagline.lg { font-size: 1.15rem; }
.case-card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 0.2rem; }
.reward { font-family: var(--mono); }
.empty { color: var(--muted); font-style: italic; padding: 1rem 0; }

/* ── stamps + tiers ──────────────────────────────── */
.stamp { display: inline-block; font: 700 0.95rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em;
  border: 3px double currentColor; padding: 0.2rem 0.6rem; border-radius: 3px; transform: rotate(-4deg); white-space: nowrap;
  color: var(--ink-2); mix-blend-mode: multiply; }
.stamp { mix-blend-mode: normal; }
.stamp-sm { font-size: 0.68rem; padding: 0.08rem 0.4rem; border-width: 2px; border-style: solid; transform: rotate(-2deg); }
.stamp-open { color: var(--green); } .stamp-confirmed { color: var(--green); }
.stamp-cracked { color: var(--red); } .stamp-dead_end { color: var(--red); }
.stamp-pending { color: var(--f-genesis); } .stamp-closed, .stamp-draft { color: var(--muted); }
.tier { font: 700 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; padding: 0.15rem 0.5rem; border-radius: 3px; background: var(--paper-2); }
.tier-breakthrough { background: var(--ink); color: var(--paper); }
.tier-case_cracked { background: var(--red); color: #fff; }

/* ── case page ───────────────────────────────────── */
.case-head { margin: 2rem 0 1.5rem; padding: 1.4rem 1.5rem; background: var(--card); border: 1px solid var(--rule); border-left-width: 6px; border-radius: var(--radius); }
.case-head-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.case-title-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.case-title-row h1 { font: 700 clamp(1.9rem, 4.5vw, 3rem)/1.1 var(--serif); margin: 0.8rem 0 0.4rem; }
.case-facts { display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; margin: 1rem 0 0; }
.case-facts dt { margin: 0 0 0.2rem; } .case-facts dd { margin: 0; }
.case-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; }
@media (max-width: 880px) { .case-body { grid-template-columns: 1fr; } }
.case-main section { margin-bottom: 2rem; }
.md p { margin: 0 0 0.9rem; } .md ul { margin: 0 0 0.9rem; padding-left: 1.2rem; } .md li { margin: 0.25rem 0; }
.md code, code { font: 0.9em var(--mono); background: var(--paper-2); padding: 0.05rem 0.3rem; border-radius: 3px; }
.kinds { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.chip { font: 0.78rem var(--mono); border: 1px solid var(--rule); border-radius: 999px; padding: 0.1rem 0.55rem; background: var(--card); }
.case-side { display: flex; flex-direction: column; gap: 1.2rem; }
.submit-box, .share-box { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.1rem; }
pre.code { margin: 0.6rem 0; padding: 0.8rem; background: var(--ink); color: var(--paper); border-radius: var(--radius); overflow-x: auto; font-size: 0.78rem; line-height: 1.45; }
pre.code code { background: none; padding: 0; color: inherit; }
.share-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn { font: 700 0.86rem var(--mono); display: inline-block; padding: 0.5rem 0.9rem; border-radius: var(--radius); background: var(--ink); color: var(--paper);
  text-decoration: none; border: 1px solid var(--ink); cursor: pointer; }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px dashed var(--rule); }
.tl { position: relative; margin: 0 0 1.1rem; padding-left: 0.6rem; }
.tl::before { content: ""; position: absolute; left: -1.45rem; top: 0.45rem; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--paper); border: 2px solid var(--muted); }
.tl-confirmed::before { border-color: var(--green); background: var(--green); }
.tl-dead_end::before { border-color: var(--red); }
.tl-meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.tl-summary { margin: 0.35rem 0 0; }

.rules { border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--paper-2); margin: 2rem 0 0; }
.case-side .rules { margin: 0; }
.rules-motto { font: 700 1.05rem var(--mono); margin: 0 0 0.4rem; }
.rules ul { margin: 0; padding-left: 1.1rem; } .rules li { margin: 0.3rem 0; }
.rules-compact p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) { .case-card { transition: none; } .case-card:hover { transform: none; } }

/* ── lead page ───────────────────────────────────── */
.evidence-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.evidence-list li { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.7rem 0.9rem; }
.ev-value { overflow-wrap: anywhere; margin-top: 0.3rem; }
main > section { margin-bottom: 1.6rem; }

/* ── live: a stream page (dark, player + chat, like status.drx4.xyz) ── */
body.live-page { background: #0f0f10; color: #f2f2f2; }
body.live-page header.site { border-bottom-color: #26262a; }
body.live-page header.site nav a:hover { background: #1d1d20; }
body.live-page header.site nav a.active { background: #f2f2f2; color: #0f0f10; }
body.live-page footer.site { border-top-color: #26262a; }
body.live-page main { max-width: 1480px; }
body.live-page a:not(.chip-hot) { color: inherit; }
.rec { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #fff; margin-right: 0.35rem; animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 50% { opacity: 0.3; } }
.lv { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.25rem; padding-top: 1.1rem; align-items: start; }
@media (max-width: 1080px) { .lv { grid-template-columns: 1fr; } }

.player { position: relative; aspect-ratio: 16 / 9; min-height: 340px; background: radial-gradient(ellipse at 20% 0%, #23201a, #0b0b0c 60%); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; container-type: inline-size; border: 1px solid #222; }
.ptop { display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1rem; }
.live-badge { display: inline-flex; align-items: center; background: #e5281f; color: #fff; font: 700 0.74rem var(--sans); letter-spacing: 0.06em; padding: 0.22rem 0.55rem; border-radius: 4px; }
.pchip { display: inline-flex; gap: 0.3rem; align-items: center; font: 0.78rem var(--mono); background: rgb(255 255 255 / 0.08); padding: 0.22rem 0.55rem; border-radius: 4px; }
.conn { font: 0.72rem var(--mono); color: #f7931a; }
.phases { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 0.2rem; }
.ph { display: inline-flex; align-items: center; gap: 0.3rem; font: 600 0.72rem var(--sans); color: rgb(242 242 242 / 0.35); padding: 0.22rem 0.5rem; border-radius: 999px; }
.ph span { display: none; } .ph.done { color: rgb(242 242 242 / 0.6); }
.ph.on { color: #111; background: #f7931a; } .ph.on span { display: inline; }
.stagegrid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 28%); gap: 1rem; padding: 0 1rem 1rem; min-height: 0; }
@container (max-width: 640px) { .stagegrid { grid-template-columns: 1fr; } .side { display: none; } .ph:not(.on) { display: none; } }
.pane { display: flex; flex-direction: column; min-height: 0; background: rgb(0 0 0 / 0.35); border: 1px solid #2a2a2e; border-radius: 10px; overflow: hidden; }
.pane-body { flex: 1; min-height: 0; overflow: hidden; }
.termlog { height: 100%; overflow: hidden; padding: 0.6rem 0.9rem; font: clamp(0.68rem, 1.45cqw, 0.82rem)/1.65 var(--mono); display: flex; flex-direction: column; justify-content: flex-end; }
.tempty { color: rgb(242 242 242 / 0.35); display: flex; gap: 0.4rem; align-items: center; margin: auto; }
.tl { display: grid; grid-template-columns: 3rem 1.2rem 1fr; gap: 0.3rem; color: rgb(242 242 242 / 0.55); }
.tl:last-child { color: #f2f2f2; }
.tl-t { color: rgb(242 242 242 / 0.35); } .tl-i { color: #f7931a; } .tl-x { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side { display: flex; flex-direction: column; gap: 0.7rem; min-height: 0; }
.me { display: flex; align-items: center; gap: 0.6rem; }
.avring { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; background: #1b1b1e; color: #f7931a; border: 2px solid #333; flex: none; }
.avring.working { border-color: #e5281f; box-shadow: 0 0 0 4px rgb(229 40 31 / 0.18); animation: ring 2s ease-in-out infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 7px rgb(229 40 31 / 0.06); } }
.me-t { min-width: 0; } .state { display: flex; gap: 0.3rem; align-items: center; font: 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: #f7931a; }
.doing { font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.steps { background: rgb(0 0 0 / 0.35); border: 1px solid #2a2a2e; border-radius: 10px; padding: 0.55rem 0.7rem; overflow: hidden; flex: 1; min-height: 0; }
.steps h4 { margin: 0 0 0.4rem; font: 700 0.66rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: rgb(242 242 242 / 0.5); }
.lst { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr) auto auto; gap: 0.45rem; align-items: center; font-size: 0.8rem; color: rgb(242 242 242 / 0.42); padding: 0.22rem 0.3rem; border-radius: 6px; }
.lst.cur { color: #f2f2f2; background: rgb(247 147 26 / 0.1); } .lst .ic { color: #f7931a; } .lst .tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alerts { position: absolute; top: 3.4rem; right: 1rem; display: flex; flex-direction: column; gap: 0.5rem; width: min(300px, 50%); z-index: 3; }
.alert { display: flex; gap: 0.6rem; align-items: center; background: #f2f2f2; color: #111; border-left: 4px solid #e5281f; border-radius: 8px; padding: 0.5rem 0.7rem;
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.5); animation: alert-in 0.35s ease-out; font-size: 0.82rem; }
.alert i { font-size: 1.35rem; color: #e5281f; } .alert .k { font-weight: 700; }
.alert .v { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.alert.out { opacity: 0; transform: translateX(20px); transition: all 0.4s; }
@keyframes alert-in { from { opacity: 0; transform: translateX(30px); } }
.captions { padding: 0.7rem 1rem 0.9rem; display: flex; justify-content: center; }
.cap { max-width: 92%; background: rgb(0 0 0 / 0.78); border-radius: 6px; padding: 0.4rem 0.8rem; font-size: clamp(0.8rem, 1.9cqw, 1.05rem); line-height: 1.45; text-align: center;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cap .who { color: #f7931a; font-weight: 700; margin-right: 0.45rem; }
.sleep { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; text-align: center;
  background: rgb(10 10 11 / 0.86); backdrop-filter: blur(3px); }
.sleep[hidden] { display: none; }
.sleep i { font-size: 2.6rem; color: #f7931a; } .sleep .t { font: 700 0.75rem var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: rgb(242 242 242 / 0.6); }
.sleep .cd { font: 700 clamp(2.4rem, 8cqw, 4.2rem) var(--mono); } .sleep .s { font-size: 0.88rem; color: rgb(242 242 242 / 0.7); max-width: 26rem; }

.under { padding: 0.9rem 0.2rem 0; }
.under .title { font: 700 1.25rem/1.3 var(--sans); margin: 0 0 0.75rem; }
.channel { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.chav { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #1b1b1e; color: #f7931a; display: grid; place-items: center; font-size: 1.3rem; }
.channel .name { font-weight: 700; } .channel .sub { font-size: 0.8rem; color: rgb(242 242 242 / 0.55); }
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-left: auto; }
.chip { display: inline-flex; gap: 0.35rem; align-items: center; font: 600 0.85rem var(--sans); padding: 0.45rem 0.85rem; border-radius: 999px; background: #222225; color: #f2f2f2; border: 0; text-decoration: none; cursor: pointer; }
.chip:hover { background: #2e2e32; color: #fff; } .chip-hot { background: #f2f2f2; color: #111; } .chip-hot:hover { background: #fff; color: #111; }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; margin: 1rem 0; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { display: flex; gap: 0.55rem; align-items: center; background: #19191b; border-radius: 10px; padding: 0.6rem 0.7rem; }
.stat i { font-size: 1.3rem; color: #f7931a; } .stat b { display: block; font: 700 1rem var(--mono); } .stat span { font-size: 0.72rem; color: rgb(242 242 242 / 0.55); }
.box { background: #19191b; border-radius: 12px; padding: 0.9rem 1rem; margin-bottom: 1rem; }
.box h3 { display: flex; gap: 0.45rem; align-items: center; margin: 0 0 0.7rem; font: 700 0.95rem var(--sans); } .box h3 i { color: #f7931a; }
.hl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.7rem; }
.hl-empty { color: rgb(242 242 242 / 0.45); font-size: 0.88rem; }
.hcard { display: block; text-decoration: none; background: #111113; border-radius: 10px; overflow: hidden; }
.hcard .img { aspect-ratio: 1200 / 630; background: #222 center / cover no-repeat; display: grid; place-items: center; font-size: 2rem; color: #f7931a; }
.hcard .meta { display: flex; gap: 0.35rem; align-items: center; padding: 0.45rem 0.6rem 0; font-size: 0.75rem; color: #f7931a; } .hcard .meta .t { margin-left: auto; color: rgb(242 242 242 / 0.45); font-family: var(--mono); }
.hl-x { margin-bottom: 0.5rem; max-height: 2.9em; line-height: 1.45; padding: 0.2rem 0.6rem 0; font-size: 0.82rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
#log { display: flex; flex-direction: column; }
.lrow { display: grid; grid-template-columns: 4.6rem 1fr; gap: 0.6rem; padding: 0.55rem 0; border-top: 1px solid #252528; }
.lrow:first-child { border-top: 0; }
.lt { font: 0.75rem var(--mono); color: rgb(242 242 242 / 0.45); padding-top: 0.1rem; }
.lg-b { min-width: 0; }
.lw { font-size: 0.75rem; font-weight: 700; color: #f7931a; }
.lx { font-size: 0.9rem; line-height: 1.5; color: #cfcfcf; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.lx.open { display: block; }
.more { margin-top: 0.6rem; width: 100%; background: #222225; color: #f2f2f2; border: 0; border-radius: 8px; padding: 0.5rem; font: 600 0.85rem var(--sans); cursor: pointer; }
.more:disabled { opacity: 0.5; }

.lchat { position: sticky; top: 1rem; background: #151517; border: 1px solid #242427; border-radius: 14px; display: flex; flex-direction: column; height: calc(100vh - 2rem); max-height: 860px; }
@media (max-width: 1080px) { .lchat { position: static; height: 640px; } }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1rem; border-bottom: 1px solid #242427; font-weight: 700; }
.chat-head .n { display: inline-flex; gap: 0.3rem; align-items: center; font: 0.78rem var(--mono); color: rgb(242 242 242 / 0.55); }
.chat-list { flex: 1; overflow-y: auto; padding: 0.5rem 0.75rem; }
.chat-empty { color: rgb(242 242 242 / 0.45); text-align: center; padding: 2rem 0; font-size: 0.9rem; }
.cm { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.55rem; padding: 0.35rem 0.3rem; border-radius: 8px; font-size: 0.88rem; line-height: 1.45; }
.cav { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font: 700 0.75rem var(--sans); background: #3a3a40; color: #fff; }
.cm-reply .cav { background: #f7931a; color: #111; } .cm-chat .cav { background: #3f5f80; }
.cline { overflow-wrap: anywhere; } .cwho { font-weight: 700; color: rgb(242 242 242 / 0.62); margin-right: 0.4rem; }
.cwho-host { color: #f7931a; } .cwho-agent { color: #8fb4dc; }
.cq { font-size: 0.75rem; color: rgb(242 242 242 / 0.45); border-left: 2px solid #333; padding-left: 0.45rem; margin-bottom: 0.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-reply { background: rgb(247 147 26 / 0.07); } .cm-mine { background: rgb(255 255 255 / 0.04); }
.cst { font-size: 0.7rem; color: rgb(242 242 242 / 0.45); } .cst:empty { display: none; } .cst.bad { color: #ff6b61; }
.cm-new { animation: cm-in 0.6s ease-out; } @keyframes cm-in { from { background: rgb(247 147 26 / 0.2); } }
.ask { border-top: 1px solid #242427; padding: 0.7rem 0.8rem 0.8rem; display: grid; gap: 0.45rem; }
.ask .who { display: flex; gap: 0.5rem; align-items: center; }
.ask .av { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #3a3a40; display: grid; place-items: center; font: 700 0.75rem var(--sans); flex: none; }
.ask input, .ask textarea { font: 0.9rem var(--sans); color: #f2f2f2; background: #0f0f10; border: 1px solid #2c2c30; border-radius: 10px; padding: 0.5rem 0.7rem; min-width: 0; }
.ask input { flex: 1; font-size: 0.82rem; padding: 0.35rem 0.6rem; }
.ask textarea { flex: 1; resize: none; max-height: 6rem; }
.ask .row { display: flex; gap: 0.45rem; align-items: flex-end; }
#c-send { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; background: #f2f2f2; color: #111; cursor: pointer; display: grid; place-items: center; font-size: 1rem; flex: none; }
#c-send:hover { background: #fff; } #c-send:disabled { opacity: 0.5; }
.ask-note { font-size: 0.72rem; color: rgb(242 242 242 / 0.45); }
@media (prefers-reduced-motion: reduce) { .rec, .cm-new, .alert, .avring.working { animation: none; } }

/* ── handbook ───────────────────────────────────── */
.handbook { max-width: 760px; }
.handbook h2 { font: 700 1.35rem var(--serif); margin: 2rem 0 0.6rem; }
.handbook h3 { font: 700 1.1rem var(--sans); margin: 1.4rem 0 0.4rem; }
.handbook pre.code { white-space: pre; font-size: 0.82rem; }
.handbook li { margin: 0.35rem 0; }

/* ── home ───────────────────────────────────────── */
.rec-red { background: var(--red); }
.hero { padding: 3rem 0 2rem; text-align: center; }
.live-pill { display: inline-flex; align-items: center; gap: 0.3rem; font: 700 0.85rem var(--sans); text-decoration: none; background: var(--card); border: 1px solid var(--rule); padding: 0.35rem 0.85rem; border-radius: 999px; }
.hero h1 { font: 700 clamp(2.6rem, 7vw, 4.6rem)/1.02 var(--serif); margin: 1.1rem 0 0.8rem; letter-spacing: -0.02em; }
.hero-sub { color: var(--red); }
.verdict { display: inline-flex; gap: 0.6rem; align-items: baseline; flex-wrap: wrap; justify-content: center; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 0.55rem 1rem; margin: 0.4rem 0 1rem; }
.verdict .label { margin: 0; color: var(--red); }
.hero-lede { font-size: 1.2rem; max-width: 640px; margin: 0 auto 1.6rem; color: var(--ink-2); }
.hero-stats { display: flex; justify-content: center; gap: 0.6rem 2.6rem; flex-wrap: wrap; margin: 0; }
.hero-stats dt { font: 0.78rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.hero-stats dd { margin: 0; font: 700 1.8rem var(--mono); }
.join-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; background: #0f0f10; color: #f2f2f2; border-radius: 16px; padding: 2rem; margin: 1.5rem 0 2rem; }
@media (max-width: 860px) { .join-hero { grid-template-columns: 1fr; } }
.join-hero h2 { font: 700 clamp(1.6rem, 3.6vw, 2.3rem)/1.15 var(--serif); margin: 0 0 1rem; }
.join-hero p { color: rgb(242 242 242 / 0.8); }
.join-line { white-space: pre-wrap; background: rgb(255 255 255 / 0.08); color: #f2f2f2; font-size: 0.88rem; }
.join-hero .btn { background: #f7931a; color: #0f0f10; border-color: #f7931a; display: inline-flex; gap: 0.35rem; align-items: center; }
.join-hero .btn-ghost { background: transparent; color: #f2f2f2; border-color: rgb(242 242 242 / 0.4); }
.how3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; align-content: center; }
.how3 li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.7rem; align-items: start; }
.how3 i { font-size: 1.8rem; color: #f7931a; }
.judge { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; border: 2px solid var(--ink); border-radius: 12px; padding: 1.1rem 1.3rem; margin: 0 0 2.2rem; }
.judge i { font-size: 2.4rem; color: var(--red); }
.judge h2 { margin: 0 0 0.3rem; font: 700 1.3rem var(--serif); } .judge p { margin: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 0.9rem; }
.sec-head h2 { font: 700 1.5rem var(--serif); margin: 0; }
.fronts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 2.2rem; }
.front { background: var(--card); border: 1px solid var(--rule); border-top: 5px solid var(--rule); border-left: 1px solid var(--rule); border-radius: 10px; padding: 1rem; }
.front.file-edge-impostor { border-top-color: var(--f-impostor); } .front.file-edge-genesis { border-top-color: var(--f-genesis); }
.front.file-edge-artifacts { border-top-color: var(--f-artifacts); } .front.file-edge-cold { border-top-color: var(--f-cold); }
.front-head { display: grid; grid-template-columns: 2rem 1fr; gap: 0.6rem; align-items: start; margin-bottom: 0.7rem; }
.front-head i { font-size: 1.6rem; color: var(--ink-2); }
.front-head .label { margin: 0 0 0.15rem; } .front-head h3 { margin: 0; font: 700 1.05rem/1.25 var(--sans); }
.front ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.front li a { display: block; padding: 0.5rem 0.4rem; border-radius: 6px; text-decoration: none; }
.front li a:hover { background: var(--paper-2); }
.front .q { display: block; font-weight: 600; line-height: 1.3; }
.front-meta { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 0.25rem; }
.st { font: 700 0.72rem var(--sans); padding: 0.12rem 0.5rem; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.st-open { background: #e6f0e7; color: var(--green); } .st-work { background: #fbefd5; color: #8a5a00; }
.st-checked { background: #dfe9f3; color: var(--f-artifacts); } .st-solved { background: var(--red); color: #fff; }
.st-open { background: #1f3323; } .st-work { background: #3a2e14; color: #e8b957; } .st-checked { background: #1d2a38; }
.lb { list-style: none; margin: 0 0 2rem; padding: 0; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--card); }
.lb li { display: grid; grid-template-columns: 3.5rem 1fr 6rem 5rem 8rem; gap: 0.6rem; align-items: center; padding: 0.65rem 1rem; border-top: 1px solid var(--rule); }
.lb li:first-child { border-top: 0; }
.lb-mini li { grid-template-columns: 3.5rem 1fr auto 8rem; }
.lb-rank { font-weight: 700; color: var(--muted); } .lb li:nth-child(1) .lb-rank, .lb-mini li:nth-child(1) .lb-rank { color: var(--red); }
.lb-name { font-weight: 700; text-decoration: none; } .lb-sats { text-align: right; font-weight: 700; }
.lb-headrow { background: var(--paper-2); }
.hard-rule { display: grid; grid-template-columns: 2rem 1fr; gap: 0.7rem; align-items: start; background: var(--paper-2); border-radius: 12px; padding: 1rem 1.2rem; }
.hard-rule i { font-size: 1.6rem; color: var(--green); } .hard-rule p { margin: 0; }
.case-question { font: 700 clamp(1.2rem, 2.6vw, 1.6rem)/1.3 var(--sans); margin: 0.4rem 0 0.3rem; }

/* ── stream workspace: the real work (terminal / editor / browser) ── */
.ws { display: flex; flex-direction: column; min-height: 0; background: #121214; border: 1px solid #2a2a2e; border-radius: 10px; overflow: hidden; position: relative; }
.ws-hero { display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0.85rem; border-bottom: 1px solid #26262a; }
.now-ic { width: 2.1rem; height: 2.1rem; border-radius: 8px; background: #f7931a; color: #111; display: grid; place-items: center; font-size: 1.15rem; flex: none; }
.ws-ht { min-width: 0; } .now-ph { white-space: nowrap; font: 700 0.66rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: #f7931a; }
.now-tx { font: 600 clamp(0.85rem, 1.9cqw, 1.05rem) var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-tabs { display: flex; align-items: stretch; gap: 0; background: #0d0d0f; border-bottom: 1px solid #26262a; font: 0.72rem var(--mono); }
.ws-tab { display: inline-flex; gap: 0.35rem; align-items: center; padding: 0.4rem 0.75rem; color: rgb(242 242 242 / 0.4); border-right: 1px solid #1f1f23; }
.ws-tab.on { color: #f2f2f2; background: #121214; box-shadow: inset 0 2px 0 #f7931a; }
.ws-where { margin-left: auto; padding: 0.4rem 0.75rem; color: rgb(242 242 242 / 0.4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; }
.ws-body { position: relative; flex: 1; min-height: 0; }
.wv { position: absolute; inset: 0; display: none; flex-direction: column; } .wv.on { display: flex; }
.term { flex: 1; overflow: hidden; padding: 0.6rem 0.85rem; font: clamp(0.62rem, 1.32cqw, 0.8rem)/1.55 var(--mono); display: flex; flex-direction: column; justify-content: flex-end; }
.t-cmd { color: #f2f2f2; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 0.35rem; }
.t-prompt { color: #6fbf7d; font-weight: 700; } .t-priv { color: rgb(242 242 242 / 0.45); font-style: italic; }
.t-out { color: rgb(242 242 242 / 0.55); white-space: pre-wrap; overflow-wrap: anywhere; }
.t-empty { color: rgb(242 242 242 / 0.5); }
.ed-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.8rem; border-bottom: 1px solid #1f1f23; font: 0.72rem var(--mono); }
.cw-file { color: #f7931a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cw-add { margin-left: auto; color: #6fbf7d; }
.cw-code { flex: 1; margin: 0; padding: 0.6rem 0.85rem; font: clamp(0.62rem, 1.32cqw, 0.8rem)/1.55 var(--mono); color: #cfcfcf; white-space: pre-wrap; overflow: hidden; background: none; }
.cw-code code { background: none; padding: 0; color: #cfcfcf; font: inherit; }
.cw-caret { display: inline-block; width: 0.55em; height: 1.05em; background: #f2f2f2; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.br-bar { display: flex; gap: 0.45rem; align-items: center; margin: 0.5rem 0.7rem; padding: 0.3rem 0.7rem; background: #1c1c20; border-radius: 999px; font: 0.74rem var(--mono); color: rgb(242 242 242 / 0.75); overflow: hidden; white-space: nowrap; }
.br-bar i { color: #6fbf7d; }
.br-page { flex: 1; display: grid; place-items: center; padding: 0.6rem; min-height: 0; }
.br-og { width: min(92%, 520px); aspect-ratio: 1200 / 630; background: center / cover no-repeat; border-radius: 8px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.5); }
.br-card { text-align: center; color: rgb(242 242 242 / 0.7); } .br-card i { font-size: 2.4rem; color: #f7931a; }
.br-host { font: 700 1rem var(--mono); color: #f2f2f2; margin-top: 0.4rem; } .br-path { font: 0.78rem var(--mono); color: rgb(242 242 242 / 0.5); max-width: 32rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-empty i { font-size: 2.4rem; color: rgb(242 242 242 / 0.2); }
.wv-private { position: absolute; inset: 0; z-index: 2; display: flex; gap: 0.5rem; align-items: center; justify-content: center; background: rgb(12 12 14 / 0.92); color: #f7931a; font: 600 0.9rem var(--sans); }
.wv-private[hidden] { display: none; }
/* live: small screens */
.lv-main, .lchat { min-width: 0; }
.stagegrid > * { min-width: 0; }
@media (max-width: 700px) {
  .player { aspect-ratio: auto; height: 470px; min-height: 0; }
  .ws-where { display: none; }
  .stagegrid { grid-template-columns: 1fr; }
  .side { display: none; }
  .phases .ph:not(.on) { display: none; }
  .ptop { flex-wrap: nowrap; }
  .cap { font-size: 0.82rem; -webkit-line-clamp: 4; }
  .chips { margin-left: 0; }
  .under .title { font-size: 1.05rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .alerts { width: 70%; top: 3rem; }
}

/* live code window: the code being written, typed out */
.codewin { position: absolute; left: 6%; right: 6%; top: 0.6rem; bottom: 3.6rem; background: #141417; border: 1px solid #333338; border-radius: 10px; overflow: hidden;
  opacity: 0; transition: opacity 0.4s; display: flex; flex-direction: column; box-shadow: 0 16px 40px rgb(0 0 0 / 0.45); }
.codewin.on { opacity: 1; }
.cw-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0.7rem; background: #1c1c20; border-bottom: 1px solid #2c2c31; font: 0.75rem var(--mono); }
.cw-dots { display: inline-flex; gap: 0.3rem; } .cw-dots i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #e5281f; } .cw-dots i:nth-child(2) { background: #f7931a; } .cw-dots i:nth-child(3) { background: #6fbf7d; }
.cw-file { color: #f7931a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cw-add { margin-left: auto; color: #6fbf7d; }
.cw-code { flex: 1; margin: 0; padding: 0.7rem 0.9rem; font: clamp(0.62rem, 1.35cqw, 0.82rem)/1.55 var(--mono); color: #cfcfcf; white-space: pre-wrap; overflow: hidden; background: none; }
.cw-caret { display: inline-block; width: 0.55em; height: 1.05em; background: #f2f2f2; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
.cw-code code { background: none; padding: 0; color: #cfcfcf; font: inherit; }

/* peer review thread */
.reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.rv { background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--rule); border-radius: 8px; padding: 0.65rem 0.85rem; }
.rv-verified { border-left-color: var(--green); } .rv-disputed { border-left-color: var(--red); }
.rv-head { display: flex; gap: 0.55rem; align-items: baseline; flex-wrap: wrap; margin-bottom: 0.25rem; }
.rv-badge { font: 700 0.72rem var(--sans); padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--paper-2); }
.rv-b-verified { background: #e6f0e7; color: var(--green); } .rv-b-disputed { background: #f6e1df; color: var(--red); }
.rv-body { white-space: pre-wrap; overflow-wrap: anywhere; }

/* terminal = Claude Code style */
.t-say { color: #f2f2f2; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0.55rem 0 0.15rem; }
.t-dot { color: #f2f2f2; } .t-dot2 { color: #6fbf7d; }
.t-tool { margin-top: 0.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-name { color: #f2f2f2; font-weight: 700; } .t-arg { color: rgb(242 242 242 / 0.6); }
.t-cmdline { color: rgb(242 242 242 / 0.45); padding-left: 1.4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-out { color: rgb(242 242 242 / 0.55); margin-left: 0.9em; padding-left: 0.7em; border-left: 2px solid #34343a; white-space: pre-wrap; overflow-wrap: anywhere; }
.t-elbow { color: rgb(242 242 242 / 0.35); }
.t-elbow, .t-dot, .t-dot2 { font-family: "DejaVu Sans Mono", "Menlo", "Consolas", "Liberation Mono", monospace; }

/* ── the one screen ─────────────────────────────── */
.scr { display: flex; flex-direction: column; min-height: 0; background: #111113; border: 1px solid #2a2a2e; border-radius: 12px; overflow: hidden; position: relative; }
.scr.busy { border-color: #3a3420; box-shadow: 0 0 0 1px rgb(247 147 26 / 0.08), 0 0 30px rgb(247 147 26 / 0.05) inset; }
.scr-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid #222226; background: #141416; }
.scr-body { position: relative; flex: 1; min-height: 0; }
.sv { position: absolute; inset: 0; display: none; flex-direction: column; animation: sv-in 0.25s ease-out; }
.sv.on { display: flex; }
@keyframes sv-in { from { opacity: 0; transform: translateY(6px); } }
/* say */
.sv-say { justify-content: center; padding: 1rem clamp(1rem, 4cqw, 2.4rem); }
.say-who { font: 700 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: #f7931a; display: flex; gap: 0.4rem; align-items: center; margin-bottom: 0.6rem; }
.say-text { font: 400 clamp(0.95rem, 2.3cqw, 1.35rem)/1.5 var(--sans); color: #f2f2f2; white-space: pre-wrap; overflow-wrap: anywhere; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; }
/* run */
.sv-run { padding: 0.8rem 1rem; font: clamp(0.66rem, 1.4cqw, 0.85rem)/1.6 var(--mono); }
.run-cmd { color: rgb(242 242 242 / 0.5); font-size: 0.92em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run-prompt { color: #6fbf7d; font-weight: 700; }
.run-out { flex: 1; margin: 0.5rem 0 0; padding: 0.7rem 0.9rem; background: #0b0b0c; border-radius: 8px; color: #cfcfcf; white-space: pre-wrap; overflow: hidden; font: inherit; display: flex; flex-direction: column; justify-content: flex-end; }
.run-out.waiting::after { content: "▌"; animation: blink 1s steps(1) infinite; color: #f2f2f2; }
/* edit */
.sv-edit .ed-bar { display: flex; gap: 0.5rem; align-items: center; padding: 0.5rem 0.9rem; border-bottom: 1px solid #1f1f23; font: 0.75rem var(--mono); color: #f7931a; }
.sv-edit .ed-bar i { font-size: 1rem; }
/* browse */
.sv-browse .br-bar { margin: 0.7rem 0.9rem 0; }
.br-loading { margin-top: 0.6rem; font: 0.75rem var(--mono); color: #f7931a; animation: blink 1.4s steps(1) infinite; }
/* check: the evidence being verified */
.sv-check { align-items: center; justify-content: center; text-align: center; padding: 1rem; gap: 0.45rem; }
.ck-kind { display: inline-flex; gap: 0.45rem; align-items: center; font: 700 0.75rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: #f7931a; }
.ck-kind i { font-size: 1.6rem; }
.ck-label { font: 700 clamp(1rem, 2.6cqw, 1.45rem) var(--sans); color: #f2f2f2; max-width: 90%; }
.ck-subject { font-size: clamp(0.66rem, 1.4cqw, 0.82rem); color: rgb(242 242 242 / 0.6); background: #0b0b0c; border: 1px solid #26262a; border-radius: 8px; padding: 0.45rem 0.7rem; max-width: 92%; overflow-wrap: anywhere; }
.ck-result { display: inline-flex; gap: 0.5rem; align-items: center; margin-top: 0.4rem; font: 700 clamp(1.1rem, 3.4cqw, 1.9rem) var(--mono); letter-spacing: 0.08em; padding: 0.3rem 1rem; border-radius: 8px; border: 3px solid currentColor; transform: rotate(-3deg); }
.ck-running { color: rgb(242 242 242 / 0.75); border-style: dashed; transform: none; font-size: 0.95rem; }
.ck-verified { color: #6fbf7d; animation: stamp-in 0.35s ease-out; } .ck-failed { color: #ff6b61; animation: stamp-in 0.35s ease-out; } .ck-manual { color: #f7931a; animation: stamp-in 0.35s ease-out; }
@keyframes stamp-in { from { transform: scale(1.8) rotate(-12deg); opacity: 0; } }
.ck-spin { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid rgb(242 242 242 / 0.25); border-top-color: #f7931a; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ck-notes { font-size: 0.8rem; color: rgb(242 242 242 / 0.55); max-width: 90%; }
/* private / idle */
.sv-private { align-items: center; justify-content: center; gap: 0.6rem; flex-direction: row; flex-wrap: wrap; text-align: center; padding: 1rem 1.5rem; font: 600 0.95rem/1.5 var(--sans); }
.sv-idle { padding: 1rem clamp(1rem, 4cqw, 2rem); gap: 0.8rem; justify-content: center; }
.idle-top { display: flex; gap: 0.5rem; align-items: center; font: 600 0.85rem var(--mono); color: #f7931a; }
.recap { background: #0b0b0c; border: 1px solid #222226; border-radius: 10px; padding: 0.8rem 1rem; }
.recap-h { font: 700 0.68rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: rgb(242 242 242 / 0.45); margin-bottom: 0.4rem; }
.recap ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.recap li { display: flex; gap: 0.5rem; align-items: center; font-size: clamp(0.78rem, 1.6cqw, 0.92rem); color: #cfcfcf; }
.recap li i { color: #f7931a; }
.recap-say { margin-top: 0.6rem; font-size: clamp(0.8rem, 1.7cqw, 0.95rem); color: rgb(242 242 242 / 0.75); font-style: italic; }
.hlp, .h-badge { font: 700 0.6rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; background: #3f5f80; color: #fff; padding: 0.05rem 0.35rem; border-radius: 4px; }
.sv-private { color: #f7931a; } .sv-idle { color: rgb(242 242 242 / 0.5); }
.sv-private i, .sv-idle i { font-size: 1.4rem; }
/* status line */
.scr-status { display: flex; gap: 0.5rem; align-items: center; padding: 0.45rem 0.9rem; border-top: 1px solid #222226; font: 0.75rem var(--mono); color: rgb(242 242 242 / 0.65); background: #0e0e10; }
.st-ic { color: #f7931a; width: 1em; text-align: center; } .scr.busy .st-ic { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.st-t { margin-left: auto; color: rgb(242 242 242 / 0.4); }
@media (prefers-reduced-motion: reduce) { .sv, .ck-result, .ck-spin, .scr.busy .st-ic { animation: none !important; } }

/* host card (leaderboard) */
.host { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; background: var(--card); border: 1px solid var(--rule); border-left: 5px solid var(--red); border-radius: 10px; padding: 0.85rem 1rem; margin: 0 0 1rem; }
.host-av { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: #0f0f10; font-size: 1.3rem; color: #f7931a; flex: none; }
.host-t { flex: 1; min-width: 14rem; }
.host-name { font-weight: 700; display: flex; gap: 0.5rem; align-items: center; }
.host-badge { font: 700 0.68rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; background: var(--red); color: #fff; padding: 0.1rem 0.45rem; border-radius: 4px; }
.host-links { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.hlp.bld { background: #6b5a2e; }

/* "Working on": the thread the agent is investigating */
.focus { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; margin: 0 1rem 0.75rem; padding: 0.6rem 0.8rem;
  border-radius: 10px; text-decoration: none; background: linear-gradient(90deg, rgb(247 147 26 / 0.14), rgb(247 147 26 / 0.03)); border: 1px solid rgb(247 147 26 / 0.25); color: #f2f2f2; }
.focus[hidden] { display: none; }
.focus-ic { width: 2rem; height: 2rem; border-radius: 8px; background: rgb(247 147 26 / 0.15); display: grid; place-items: center; color: #f7931a; font-size: 1.05rem; }
.focus-txt { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.focus-k { font: 700 0.62rem var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: #f7931a; }
.focus-t { font: 500 clamp(0.8rem, 1.65cqw, 0.95rem)/1.35 var(--sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.focus-go { color: #f7931a; display: grid; place-items: center; }
a.focus:hover { border-color: #f7931a; }
.focus.flash { animation: focus-flash 1.2s ease-out; } @keyframes focus-flash { from { background: rgb(247 147 26 / 0.45); } }

.lst .rep { font: 0.68rem var(--mono); color: rgb(242 242 242 / 0.45); }

/* ── sources + findings (the visible process) ── */
.run-src { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.45rem; } .run-src[hidden] { display: none; }
.src { display: inline-flex; align-items: center; gap: 0.35rem; max-width: 100%; padding: 0.22rem 0.55rem; border-radius: 999px; background: #1c1c20; border: 1px solid #2c2c31;
  text-decoration: none; color: #f2f2f2; font: 0.74rem var(--mono); }
.src:hover { border-color: #f7931a; }
.src img { border-radius: 3px; } .src-h { font-weight: 700; color: #f7931a; } .src-p { color: rgb(242 242 242 / 0.55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22rem; }
.found { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin-top: 0.5rem; } .found[hidden] { display: none; }
.found-k { font: 700 0.66rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: #6fbf7d; margin-right: 0.15rem; }
.fchip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.55rem; border-radius: 6px; background: rgb(111 191 125 / 0.12); border: 1px solid rgb(111 191 125 / 0.3); font-size: 0.74rem; animation: sv-in 0.3s ease-out; }
.fchip i { color: #6fbf7d; } .fc-k { color: #f2f2f2; font-weight: 600; } .fc-v { color: rgb(242 242 242 / 0.7); font-size: 0.72rem; }
.box-sub { margin: -0.3rem 0 0.7rem; font-size: 0.8rem; color: rgb(242 242 242 / 0.5); }
.trail { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.trail-empty { color: rgb(242 242 242 / 0.45); font-size: 0.88rem; }
.trail-i { display: grid; grid-template-columns: 4.6rem 1fr; gap: 0.6rem; padding: 0.5rem 0; border-top: 1px solid #252528; } .trail-i:first-child { border-top: 0; }
.trail-t { font: 0.72rem var(--mono); color: rgb(242 242 242 / 0.45); padding-top: 0.25rem; }
.trail-src { display: flex; flex-wrap: wrap; gap: 0.35rem; } .trail-b .found { margin-top: 0.35rem; }

/* The Vault */
.vault-search { display: flex; gap: 0.5rem; margin: 0 0 1.5rem; }
.vault-search input { flex: 1; padding: 0.55rem 0.8rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); color: inherit; font: inherit; }
.vault-list { list-style: none; margin: 0 0 2rem; padding: 0; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--card); }
.vault-item { padding: 0.9rem 1rem; border-top: 1px solid var(--rule); }
.vault-item:first-child { border-top: 0; }
.vault-title { font-weight: 700; }
.vault-item p { margin: 0.3rem 0 0; }

/* brand logos */
.now-ic.has-logo { background: #fff; padding: 0.25rem; }
.now-logo { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.st-logo { width: 1rem; height: 1rem; object-fit: contain; border-radius: 3px; background: #fff; padding: 1px; }
.src-logo { width: 14px; height: 14px; object-fit: contain; border-radius: 3px; background: #fff; }
.br-logo { width: 4rem; height: 4rem; object-fit: contain; border-radius: 14px; background: #fff; padding: 0.5rem; box-shadow: 0 10px 30px rgb(0 0 0 / 0.5); }

/* side panel: the evidence trail replaces the step list */
.side-trail { background: rgb(0 0 0 / 0.35); border: 1px solid #2a2a2e; border-radius: 10px; padding: 0.55rem 0.7rem; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.side-trail h4 { margin: 0 0 0.45rem; font: 700 0.66rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: rgb(242 242 242 / 0.5); display: flex; gap: 0.35rem; align-items: center; }
.side-trail .trail { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; gap: 0.35rem; padding-right: 0.3rem; scrollbar-width: thin; scrollbar-color: rgb(247 147 26 / 0.35) transparent; }
.side-trail .trail::-webkit-scrollbar { width: 6px; } .side-trail .trail::-webkit-scrollbar-thumb { background: rgb(247 147 26 / 0.3); border-radius: 3px; }
.side-trail .trail-i { grid-template-columns: 1fr; gap: 0.2rem; padding: 0.35rem 0; }
.side-trail .trail-t { font-size: 0.62rem; padding: 0; }
.side-trail .src { font-size: 0.68rem; padding: 0.15rem 0.45rem; } .side-trail .src-p { max-width: 9rem; }
.side-trail .fchip { font-size: 0.66rem; padding: 0.12rem 0.4rem; } .side-trail .fc-v { display: none; } .side-trail .found-k { display: none; }
.side-trail .trail-empty { font-size: 0.78rem; }
.trail-all { margin-top: 0.4rem; font: 600 0.75rem var(--sans); color: #f7931a; text-decoration: none; display: inline-flex; gap: 0.3rem; align-items: center; }
.trail-all:hover { text-decoration: underline; }

/* /trail page */
.trail-head h1 { color: #f2f2f2; } .trail-head a { color: #f7931a; }
.trail-sites { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.trail-full { max-width: 900px; background: #19191b; border-radius: 12px; padding: 0.6rem 1rem; }
.trail-full .src-p { max-width: 36rem; }
.side-trail .src { max-width: 100%; } .side-trail .src-p { min-width: 0; }
.side-trail .found { gap: 0.25rem; } .side-trail .fchip { max-width: 100%; min-width: 0; } .side-trail .fc-k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-trail .trail-src { min-width: 0; } .side-trail .trail-b { min-width: 0; overflow: hidden; }
body.live-page .tagline { color: rgb(242 242 242 / 0.75); } body.live-page .page-head .dim { color: rgb(242 242 242 / 0.45); }

.side-trail .trail { align-content: start; }

/* rendered markdown (agent's words) */
.md-p { margin: 0 0 0.5em; } .md-p:last-child { margin-bottom: 0; }
.md-ul { margin: 0 0 0.5em; padding-left: 1.2em; } .md-ul li { margin: 0.15em 0; }
.md-c { font: 0.88em var(--mono); background: rgb(255 255 255 / 0.08); padding: 0.05em 0.3em; border-radius: 4px; }
.say-text strong, .lx strong { color: #fff; }
.say-text { display: block; overflow: hidden; } .lx .md-p, .lx .md-ul { margin-bottom: 0.25em; }
.lx { display: block; max-height: 4.6em; -webkit-line-clamp: unset; } .lx.open { max-height: none; }
.say-text { max-height: 100%; mask-image: linear-gradient(#000 85%, transparent); }

.say-text.long { font-size: clamp(0.85rem, 1.9cqw, 1.1rem); } .say-text.xlong { font-size: clamp(0.8rem, 1.6cqw, 0.98rem); }

/* big logo moments */
.sv-act { align-items: center; justify-content: center; text-align: center; gap: 0.55rem; padding: 1rem; }
.act-logo { width: clamp(4rem, 12cqw, 6.5rem); height: clamp(4rem, 12cqw, 6.5rem); border-radius: 22px; background: #fff; display: grid; place-items: center; padding: 0.7rem;
  box-shadow: 0 14px 40px rgb(0 0 0 / 0.55); animation: act-pop 0.45s cubic-bezier(.2,1.4,.4,1); }
.act-img { width: 100%; height: 100%; object-fit: contain; }
@keyframes act-pop { from { transform: scale(0.6); opacity: 0; } }
.act-title { font: 700 clamp(1.05rem, 2.8cqw, 1.6rem) var(--sans); color: #f2f2f2; margin-top: 0.3rem; }
.act-detail { font-size: clamp(0.66rem, 1.4cqw, 0.82rem); color: rgb(242 242 242 / 0.55); max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-result { display: inline-flex; gap: 0.45rem; align-items: center; margin-top: 0.4rem; font: 0.85rem var(--mono); color: rgb(242 242 242 / 0.7); padding: 0.35rem 0.8rem; border: 1px dashed #3a3a40; border-radius: 8px; max-width: 92%; }
.act-result.done { color: #6fbf7d; border-style: solid; border-color: rgb(111 191 125 / 0.45); animation: stamp-in 0.35s ease-out; } .act-result.done i { font-size: 1.1rem; }
@media (prefers-reduced-motion: reduce) { .act-logo, .act-result.done { animation: none; } }

.trail-what { font-weight: 600; color: #f2f2f2; font-size: 0.88rem; margin-bottom: 0.3rem; line-height: 1.3; }
.side-trail .trail-what { font-size: 0.78rem; margin-bottom: 0.2rem; }
.trail-help { margin: -0.2rem 0 0.5rem; font-size: 0.72rem; color: rgb(242 242 242 / 0.45); }

/* trail as a numbered timeline */
.trail-i { position: relative; }
.trail-t { display: flex; flex-direction: column; gap: 0.1rem; }
.step-n { font: 700 0.68rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: #f7931a; white-space: nowrap; }
.step-ago { font: 0.66rem var(--mono); color: rgb(242 242 242 / 0.4); }
.side-trail .trail-t { flex-direction: row; gap: 0.5rem; align-items: baseline; }
.side-trail .trail-i { padding-left: 0.75rem; border-left: 2px solid rgb(247 147 26 / 0.25); border-top: 0; }
.side-trail .trail-i::before { content: ""; position: absolute; left: -5px; top: 0.55rem; width: 8px; height: 8px; border-radius: 50%; background: #f7931a; }
.trail-full .trail-i { border-top: 0; border-left: 2px solid rgb(247 147 26 / 0.25); padding-left: 1rem; margin-left: 0.4rem; }
.trail-full .trail-i::before { content: ""; position: absolute; left: -6px; top: 0.85rem; width: 10px; height: 10px; border-radius: 50%; background: #f7931a; }

.trail-url { display: block; margin-top: 0.25rem; font-size: 0.7rem; color: rgb(242 242 242 / 0.55); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trail-url:hover { color: #f7931a; text-decoration: underline; }
.side-trail .trail-url { font-size: 0.64rem; }
.trail-full .trail-url { font-size: 0.78rem; white-space: normal; overflow-wrap: anywhere; }
.sv-act { gap: 0.4rem; padding: 0.6rem 1rem; }
.act-logo { width: clamp(3rem, 9cqw, 5rem); height: clamp(3rem, 9cqw, 5rem); border-radius: 18px; padding: 0.55rem; }
.act-title { margin-top: 0.15rem; }
/* phones: the Evidence trail sits under the screen (the avatar card stays hidden) */
@media (max-width: 700px) {
  .player { height: 720px; }
  .stagegrid { grid-template-rows: minmax(0, 1fr) 230px; }
  .side { display: flex; } .side .me { display: none; }
}
/* copy confirmation: floats, never shifts the layout */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); opacity: 0; pointer-events: none; z-index: 100;
  background: #f2f2f2; color: #111; font: 600 0.9rem var(--sans); padding: 0.6rem 1rem; border-radius: 10px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.5); transition: opacity 0.2s, transform 0.2s; max-width: calc(100vw - 2rem); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
[data-copy] { justify-content: center; }
/* working together */
.work-box { border: 1px solid var(--line, #cfcfcf); border-radius: 10px; padding: 0.8rem 1rem; margin-bottom: 1rem; }
.work-list { list-style: none; padding: 0; margin: 0.3rem 0 0.6rem; display: grid; gap: 0.45rem; }
.prop-list { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.prop { border: 1px solid var(--line, #cfcfcf); border-radius: 10px; padding: 0.7rem 0.9rem; }
.prop p { margin: 0.3rem 0 0; }
.prop-head { display: flex; gap: 0.5rem; align-items: baseline; flex-wrap: wrap; }
.prop-st { font: 700 0.66rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; padding: 0.1rem 0.4rem; border-radius: 4px; border: 1px solid currentColor; }
.prop-st-proposed { color: #9a7b2f; } .prop-st-opened { color: #2f7a43; } .prop-st-declined { color: #8a8a8a; }
.rv-reply { margin-left: 1.6rem; border-left: 2px solid var(--line, #cfcfcf); padding-left: 0.8rem; }
.rv-to { margin-bottom: 0.2rem; } .rv-id { margin-top: 0.3rem; opacity: 0.7; }
/* narrow screens (YouTube-style): player, then live chat, then everything else */
@media (max-width: 1080px) {
  .lv-main { display: contents; }
  .lv > .lv-main > .player { order: 1; }
  .lv > .lchat { order: 2; height: min(560px, 72vh); }
  .lv > .lv-main > .under { order: 3; }
}
/* /trail: timeline graph (one lane per site) */
.tg { max-width: 900px; margin: 0 0 1.6rem; background: #19191b; border-radius: 12px; padding: 0.9rem 1rem 0.7rem; }
.tg-rows { display: grid; gap: 0.15rem; }
.tg-row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); align-items: center; gap: 0.8rem; min-height: 1.7rem; }
.tg-site { display: flex; gap: 0.4rem; align-items: center; font: 600 0.74rem var(--mono); color: #f2f2f2; min-width: 0; }
.tg-site img { width: 16px; height: 16px; border-radius: 3px; flex: none; } .tg-site span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-other { color: rgb(242 242 242 / 0.55); }
.tg-lane { position: relative; height: 1.7rem; border-bottom: 1px dashed rgb(242 242 242 / 0.12); }
.tg-dot { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #f7931a; opacity: 0.85; box-shadow: 0 0 0 2px #19191b; }
.tg-dot:hover { transform: scale(1.6); opacity: 1; z-index: 2; }
.tg-dot.tg-found { background: #6fbf7d; }
.tg-dot.tg-static { position: static; display: inline-block; margin: 0 0.25rem 0 0.6rem; vertical-align: middle; box-shadow: none; }
.tg-axis { display: flex; justify-content: space-between; margin: 0.35rem 0 0 11.8rem; font: 0.66rem var(--mono); color: rgb(242 242 242 / 0.45); }
.tg-key { margin-top: 0.5rem; }
@media (max-width: 640px) { .tg-row { grid-template-columns: 6.5rem minmax(0, 1fr); } .tg-axis { margin-left: 7.3rem; } }
/* /trail: newest-first list, site logo as the node on the line */
.trail-bucket { list-style: none; font: 700 0.68rem var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: #f7931a; padding: 0.8rem 0 0.2rem; }
.trail-full .trail-i::before { content: none; }
.trail-node { position: absolute; left: -13px; top: 0.55rem; width: 24px; height: 24px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px #19191b; }
.trail-node img { width: 16px; height: 16px; border-radius: 3px; } .trail-node i { color: #19191b; font-size: 0.85rem; }
.trail-full .trail-i { padding-left: 1.4rem; scroll-margin-top: 1rem; }
.trail-full .trail-i:target { background: rgb(247 147 26 / 0.08); border-radius: 8px; }
.ck-done { color: rgb(242 242 242 / 0.85); animation: stamp-in 0.35s ease-out; }
@media (max-width: 640px) { .tg-row { grid-template-columns: 1.4rem minmax(0, 1fr); gap: 0.6rem; } .tg-site span { display: none; } .tg-site img { width: 18px; height: 18px; } .tg-axis { margin-left: 2rem; } }
.trail-x { font: 700 0.62rem var(--mono); color: #19191b; background: #f7931a; border-radius: 4px; padding: 0 0.3rem; align-self: flex-start; }
/* ── chat composer UX (desktop + phones) ── */
.lchat { position: sticky; }
.ask input:focus, .ask textarea:focus { outline: none; border-color: #f7931a; box-shadow: 0 0 0 3px rgb(247 147 26 / 0.15); }
.ask textarea { line-height: 1.35; min-height: 2.4rem; overflow-y: auto; }
#c-send { transition: transform 0.12s, opacity 0.15s; }
#c-send:not(:disabled):active { transform: scale(0.92); }
#c-send:disabled { opacity: 0.35; cursor: default; }
.ask.sending #c-send i { animation: spin-send 0.8s linear infinite; }
@keyframes spin-send { to { transform: rotate(360deg); } }
.ask-foot { display: flex; gap: 0.5rem; align-items: baseline; }
.ask-note { flex: 1; } .ask-note.bad { color: #ff8a80; }
.ask-count { font: 0.68rem var(--mono); color: rgb(242 242 242 / 0.5); }
.av-btn { display: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid #2c2c30; background: #3a3a40; color: #f2f2f2; font: 700 0.9rem var(--sans); flex: none; cursor: pointer; }
.chat-new { position: absolute; left: 50%; bottom: 9.2rem; transform: translateX(-50%); z-index: 3; border: 0; border-radius: 999px; padding: 0.4rem 0.85rem;
  background: #f7931a; color: #19191b; font: 700 0.78rem var(--sans); display: inline-flex; gap: 0.35rem; align-items: center; cursor: pointer; box-shadow: 0 6px 18px rgb(0 0 0 / 0.45); }
.chat-new[hidden] { display: none; }
@media (max-width: 1080px) { .lchat { position: relative; } }
@media (prefers-reduced-motion: reduce) { .ask.sending #c-send i { animation: none; } }

/* phones: the chat bar sticks to the bottom of the screen on the whole page */
@media (max-width: 700px) {
  body.live-page { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
  .ask { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 60; gap: 0.35rem; border-top: 1px solid #2a2a2e;
    background: rgb(21 21 23 / 0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 0.6rem calc(0.5rem + env(safe-area-inset-bottom)); }
  .ask .who { display: none; } .ask.naming .who { display: flex; }
  .ask .who .av { display: none; }
  .av-btn { display: grid; place-items: center; }
  .ask .row { align-items: center; }
  .ask textarea, .ask input { font-size: 16px; } /* no zoom-on-focus on iPhone */
  .ask-foot { display: none; } .ask:has(.ask-note.bad) .ask-foot, .ask:has(.ask-count:not(:empty)) .ask-foot { display: flex; }
  .chat-new { bottom: 0.7rem; }
}
.ask { margin: 0; }

/* ── AIBTC brand layer ───────────────────────────── */
body { background:
    radial-gradient(900px 520px at 92% -8%, rgb(247 147 26 / 0.16), transparent 60%),
    radial-gradient(800px 600px at -10% 30%, rgb(60 80 200 / 0.10), transparent 60%),
    var(--paper) no-repeat; background-attachment: fixed; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; }
::selection { background: rgb(247 147 26 / 0.35); }
a:hover { color: var(--red-ink); }
header.site { border-bottom-color: rgb(255 255 255 / 0.06); }
.brand { font: 500 1.05rem var(--display); letter-spacing: 0.01em; }
.brand-mark { border: 0; background: var(--red); color: #0a0a0a; transform: none; border-radius: 8px; font-weight: 800; }
.brand .dim { color: var(--red); }
header.site nav a { font: 500 0.88rem var(--sans); color: var(--muted); }
header.site nav a:hover { background: rgb(255 255 255 / 0.06); color: var(--ink); }
header.site nav a.active, body.live-page header.site nav a.active { background: rgb(247 147 26 / 0.12); color: var(--red); box-shadow: inset 0 0 0 1px rgb(247 147 26 / 0.35); }
footer.site { border-top-color: rgb(255 255 255 / 0.06); }
.motto { font-family: var(--display); font-weight: 500; font-size: 0.9rem; }
.btn { font: 600 0.86rem var(--sans); border-radius: 10px; background: var(--ink); color: #0a0a0a; border: 1px solid var(--ink); }
.btn:hover { background: var(--red); border-color: var(--red); color: #0a0a0a; }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgb(255 255 255 / 0.18); }
.btn-ghost:hover { background: rgb(255 255 255 / 0.06); color: var(--ink); border-color: rgb(255 255 255 / 0.3); }
.btn-brand { background: rgb(247 147 26 / 0.1); color: var(--red); border-color: rgb(247 147 26 / 0.5); }
.btn-brand:hover { background: var(--red); color: #0a0a0a; }
.card, .case-card, .front, .judge, .hard-rule, .host, .verdict, .live-pill { border-color: rgb(255 255 255 / 0.08) !important; }
.file-tab { color: #f2f2f2; }
.rv-b-verified { background: #13301b; } .rv-b-disputed { background: #3a1616; color: var(--danger); }
.rv-disputed { border-left-color: var(--danger); }
.tier-case_cracked, .st-solved, .host-badge { color: #0a0a0a; }
.label { font-family: var(--sans); font-weight: 600; letter-spacing: 0.1em; }

/* home hero: text left, Activity right; on phones Activity sits right under the headline */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "top act" "foot act";
  gap: 1.2rem 3rem; align-items: start; text-align: left; padding: 3.5rem 0 2.5rem; }
.hero-top { grid-area: top; } .act-card { grid-area: act; } .hero-foot { grid-area: foot; }
.hero h1 { font: 500 clamp(2.1rem, 5.2vw, 3.6rem)/1.08 var(--display); letter-spacing: -0.02em; margin: 1rem 0 0.9rem; }
.hero-sub { color: var(--red); }
.hero-lede { margin: 0; max-width: 34rem; font-size: 1.1rem; }
.live-pill { font: 600 0.8rem var(--sans); background: rgb(255 255 255 / 0.04); }
.verdict { display: flex; justify-content: flex-start; margin: 0 0 1.2rem; font-size: 0.92rem; }
.hero-stats { justify-content: flex-start; gap: 0.8rem 2rem; }
.hero-stats dt { font: 600 0.7rem var(--sans); letter-spacing: 0.1em; }
.hero-stats dd { font: 500 1.45rem var(--display); }
.hero-cta { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-cta .btn { padding: 0.65rem 1.1rem; }

.act-card { background: rgb(10 10 10 / 0.8); border: 1px solid rgb(255 255 255 / 0.08); border-radius: 14px; overflow: hidden;
  backdrop-filter: blur(8px); box-shadow: 0 20px 60px rgb(0 0 0 / 0.45); margin-top: 0.4rem; }
.act-card-head { display: flex; align-items: center; gap: 0.55rem; padding: 0.8rem 1rem; border-bottom: 1px solid rgb(255 255 255 / 0.06); }
.act-card-head h2 { font: 500 0.9rem var(--display); margin: 0; flex: 1; color: var(--ink-2); }
.act-card-head a { font-size: 0.8rem; color: var(--red); text-decoration: none; }
.act-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgb(77 205 94 / 0.6); animation: actpulse 2s infinite; }
@keyframes actpulse { 70% { box-shadow: 0 0 0 7px rgb(77 205 94 / 0); } 100% { box-shadow: 0 0 0 0 rgb(77 205 94 / 0); } }
.act-list { list-style: none; margin: 0; padding: 0; }
.act-i { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.7rem; align-items: start; padding: 0.7rem 1rem; border-bottom: 1px solid rgb(255 255 255 / 0.05); }
.act-i:last-child { border-bottom: 0; }
.act-ic { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / 0.06); color: var(--ink-2); font-size: 1rem; }
.act-agent .act-ic { background: rgb(125 162 255 / 0.12); color: var(--blue); }
.act-site .act-ic { background: rgb(247 147 26 / 0.12); color: var(--red); }
.act-win .act-ic { background: rgb(77 205 94 / 0.14); color: var(--green); }
.act-body { display: grid; gap: 0.15rem; text-decoration: none; min-width: 0; }
.act-text { font-size: 0.9rem; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.act-text strong { color: var(--ink); font-weight: 600; }
.act-body:hover .act-text { color: var(--ink); }
.act-meta { display: flex; gap: 0.5rem; align-items: center; font-size: 0.74rem; color: var(--muted); }
.act-host { font-family: var(--mono); color: var(--red); background: rgb(247 147 26 / 0.08); padding: 0 0.35rem; border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14rem; }
.act-empty { padding: 1rem; color: var(--muted); font-size: 0.9rem; }
.act-fresh { animation: actin 0.6s ease-out; }
@keyframes actin { from { background: rgb(247 147 26 / 0.12); } to { background: transparent; } }
.act-foot { display: flex; gap: 0.4rem; align-items: center; justify-content: center; padding: 0.6rem; font-size: 0.82rem; color: var(--muted);
  text-decoration: none; border-top: 1px solid rgb(255 255 255 / 0.06); background: rgb(255 255 255 / 0.02); }
.act-foot:hover { color: var(--red); }

.join-hero { background: linear-gradient(135deg, rgb(247 147 26 / 0.10), rgb(15 15 16 / 0.9) 55%); border: 1px solid rgb(247 147 26 / 0.18); }
.join-hero .btn { color: #0a0a0a; }
.join-line { font-family: var(--mono); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "top" "act" "foot"; gap: 1.1rem; padding: 1.6rem 0 1.4rem; }
}
@media (max-width: 640px) {
  /* header: one brand row, then a single scrollable nav row */
  header.site { padding: 0.7rem 1rem 0; gap: 0.5rem; }
  header.site nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: calc(100% + 2rem); margin: 0 -1rem; padding: 0 1rem 0.6rem; gap: 0.2rem; }
  header.site nav::-webkit-scrollbar { display: none; }
  header.site nav a { white-space: nowrap; padding: 0.4rem 0.7rem; }
  main { padding: 0 1rem 2.5rem; }
  main > section { margin-bottom: 2rem; }
  footer.site { padding: 1.6rem 1rem 2.4rem; }
  .hero h1 { font-size: 2rem; margin: 0.8rem 0 0.6rem; }
  .hero-lede { font-size: 1rem; }
  .act-i { padding: 0.6rem 0.85rem; gap: 0.6rem; }
  .act-text { font-size: 0.86rem; }
  .verdict { font-size: 0.86rem; padding: 0.55rem 0.8rem; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .hero-stats > div { background: rgb(255 255 255 / 0.03); border: 1px solid rgb(255 255 255 / 0.07); border-radius: 10px; padding: 0.55rem 0.75rem; }
  .hero-stats dd { font-size: 1.2rem; }
  .hero-cta .btn { flex: 1; text-align: center; }
  .join-hero { padding: 1.3rem; gap: 1.4rem; border-radius: 14px; margin: 0 0 2rem; }
  .join-hero h2 { font-size: 1.35rem; }
  .judge, .hard-rule { padding: 1rem; gap: 0.8rem; }
  .sec-head { gap: 0.6rem; align-items: baseline; }
  .sec-head h2 { font-size: 1.2rem; }
  .front { padding: 1rem; }
  .lb-mini li { gap: 0.5rem; }
}
.brand-mark { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
@media (min-width: 861px) {
  .hero h1 { font-size: clamp(2.1rem, 3.6vw, 3rem); }
  .hero-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 1.6rem; }
}
.brand-mark { width: 1.75rem; height: 1.75rem; background: none; border-radius: 7px; display: block; }
.join-hero .btn-ghost { color: #fff; }
.join-hero .btn-ghost:hover { color: #fff; }
.hero-stats dt { white-space: nowrap; }
@media (min-width: 861px) { .hero-stats { gap: 1.4rem; } .hero-stats dd { font-size: 1.25rem; white-space: nowrap; } }
.page-head h1, .case-title-row h1 { font-weight: 500; }
@media (max-width: 640px) {
  .page-head h1 { font-size: 1.55rem; line-height: 1.2; }
  .case-title-row h1 { font-size: 1.45rem; line-height: 1.2; }
  .case-card h3 { font-size: 1.08rem; line-height: 1.3; }
  .join-hero h2 { font-size: 1.2rem; line-height: 1.3; }
  .judge h2 { font-size: 1.05rem; line-height: 1.3; }
  .front-head h3 { font-size: 0.98rem; line-height: 1.3; }
  .handbook h2 { font-size: 1.1rem; }
  .lb-mini li { grid-template-columns: 2.2rem minmax(0, 1fr) auto; grid-template-areas: "rank name sats" "rank conf conf"; row-gap: 0.1rem; padding: 0.6rem 0.85rem; }
  .lb-mini .lb-rank { grid-area: rank; } .lb-mini .lb-name { grid-area: name; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lb-mini .small { grid-area: conf; color: var(--muted); } .lb-mini .lb-sats { grid-area: sats; text-align: right; }
}
.code, pre.code { background: rgb(255 255 255 / 0.04); color: var(--ink-2); border: 1px solid var(--rule); }
.join-hero .join-line { background: rgb(0 0 0 / 0.45); color: #fff; border-color: rgb(247 147 26 / 0.25); }
.sec-head a { white-space: nowrap; font-size: 0.88rem; color: var(--red); text-decoration: none; }
.nav-live { color: #e5281f; font-size: 0.85em; vertical-align: -0.05em; }
.rv-badge i, .rv-to i { vertical-align: -0.12em; }
.hero-sub { display: inline-block; font-size: 0.55em; line-height: 1.25; margin-top: 0.35em; }
.chat-pin { margin: 0.5rem 0.6rem 0; padding: 0.6rem 0.7rem; border: 1px solid rgb(247 147 26 / 0.25); background: rgb(247 147 26 / 0.06); border-radius: 10px; font-size: 0.8rem; line-height: 1.4; color: rgb(255 255 255 / 0.7); }
.chat-pin-t { display: flex; gap: 0.45rem; align-items: flex-start; } .chat-pin-t i { color: var(--red); margin-top: 0.15rem; }
.chat-pin-t strong { color: #fff; }
.chat-pin-a { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.chat-pin-a .chip { font-size: 0.76rem; }
.hero-cta .btn i { vertical-align: -0.12em; }
.chat-pin { flex: none; }
.chat-pin-a { flex-wrap: wrap; margin-top: 0; }
.chat-pin-a .chip { padding: 0.35rem 0.7rem; font-weight: 400; }

/* ── spacing pass ───────────────────────────────── */
main > section { margin: 0 0 3.5rem; }
.hero { grid-template-rows: auto 1fr; padding: 3rem 0 0; }
.hero-foot { align-self: start; }
.hero-cta .btn { white-space: nowrap; }
@media (min-width: 861px) {
  .hero { gap: 1.6rem 3rem; }
  .hero-stats { grid-template-columns: repeat(4, minmax(0, max-content)); gap: 1.2rem 1.8rem; }
  .hero-stats dd { font-size: 1.2rem; }
}
.join-hero { padding: 2.2rem 2.4rem; gap: 2.5rem; align-items: start; margin: 0 0 3.5rem; }
.join-hero h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; }
.join-hero p { margin: 0 0 1rem; }
.join-hero .share-row { margin-top: 1rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.how3 { align-content: start; gap: 1.4rem; padding-top: 0.4rem; }
.judge { margin: 0 0 3.5rem; padding: 1.3rem 1.5rem; border-width: 1px; }
.sec-head { margin: 0 0 1.2rem; }
.fronts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin: 0; }
.front { padding: 1.2rem 1.2rem 0.8rem; }
.front-head { margin-bottom: 0.9rem; }
.front ul { gap: 0.35rem; }
.front li a { padding: 0.6rem 0.5rem; }
.front .q { font-weight: 400; font-size: 1rem; color: #fff; }
.front-meta { margin-top: 0.45rem; align-items: center; }
.host { margin: 0 0 1.2rem; }
.empty { padding: 0.4rem 0 0; }
.hard-rule { padding: 1.2rem 1.4rem; }
@media (max-width: 860px) { .fronts { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  main > section, .join-hero, .judge { margin-bottom: 2.4rem; }
  .hero { padding-top: 1.4rem; gap: 1.2rem; }
  .hero-cta { gap: 0.5rem; }
  .hero-cta .btn { padding: 0.65rem 0.6rem; font-size: 0.82rem; }
  .join-hero { padding: 1.4rem 1.2rem; gap: 1.6rem; }
  .front { padding: 1rem 0.9rem 0.6rem; }
  .front .q { font-size: 0.95rem; }
  .judge, .hard-rule { padding: 1.1rem; }
}
@media (min-width: 861px) { .hero-stats { display: flex; flex-wrap: wrap; gap: 0.8rem 2.4rem; } }
.page-head { padding: 2.4rem 0 0.6rem; }
.page-head + section, main > .page-head { margin-bottom: 2rem; }
.case-card h3 { font-size: 1.12rem; line-height: 1.3; margin: 0.7rem 0 0.4rem; }
.case-grid { gap: 1.2rem; }
.lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 640px) {
  .page-head { padding-top: 1.6rem; }
  .lb li:not(.lb-mini li) { grid-template-columns: 2.2rem minmax(0, 1fr) 4.6rem 4.4rem; gap: 0.5rem; padding: 0.6rem 0.8rem; }
  .lb:not(.lb-mini) li > :nth-child(4) { display: none; }
  .lb:not(.lb-mini) li > :nth-child(3), .lb:not(.lb-mini) li > :nth-child(5) { text-align: right; }
}

/* ── home hero, desktop: short text column centred against the Activity card ── */
@media (min-width: 861px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: ". act" "top act" "foot act" ". act"; gap: 0 3.5rem; align-items: center; padding: 3.5rem 0 1rem; }
  .hero h1 { font-size: clamp(2.4rem, 3.6vw, 3.1rem); white-space: nowrap; margin: 1.3rem 0 1rem; }
  .join-hero h2 { font-size: clamp(1.2rem, 1.75vw, 1.45rem); line-height: 1.25; }
  .hero-lede { font-size: 1.3rem; line-height: 1.45; max-width: 30rem; }
  .hero-cta { margin-top: 2rem; gap: 0.8rem; }
  .hero-cta .btn { padding: 0.8rem 1.35rem; }
  .act-card { align-self: stretch; margin-top: 0; }
}
@media (min-width: 861px) {
  .act-text { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .act-body { min-width: 0; }
}
/* hero fills the first screen on desktop (viewport minus the header); content centred */
@media (min-width: 861px) {
  .hero { min-height: calc(100svh - 68px); padding: 1.5rem 0; margin-bottom: 0; align-content: center; }
  .act-card { align-self: center; }
}

/* ── donate (live chat header + modal), ported from status.drx4.xyz ── */
.chat-head .n { margin-left: auto; }
.heartbtn { margin-left: 0.5rem; background: #ff4f1a; color: #fff; border: 0; border-radius: 16px; padding: 0.25rem 0.65rem; font: 600 0.75rem var(--sans); display: inline-flex; align-items: center; gap: 0.25rem; cursor: pointer; }
.heartbtn:hover { background: #ff6a3a; }
.heartbtn:focus-visible, .dbox button:focus-visible, .dbox input:focus-visible, .dbox textarea:focus-visible { outline: 2px solid #f7931a; outline-offset: 2px; }
.dmodal { position: fixed; inset: 0; background: rgb(0 0 0 / 0.7); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.dmodal[hidden] { display: none; }
body.dm-open { overflow: hidden; }
.dbox { background: #1f1f1f; color: #f2f2f2; border-radius: 14px; width: 100%; max-width: 420px; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 20px; box-shadow: 0 20px 60px rgb(0 0 0 / 0.6); }
.dbox h3 { margin: 0 0 4px; font: 700 1.1rem var(--sans); display: flex; align-items: center; gap: 8px; }
.dbox h3 i { color: #ff4f1a; }
.dsub { color: rgb(242 242 242 / 0.6); font-size: 0.82rem; margin-bottom: 14px; }
.dseg { display: flex; background: #2a2a2d; border-radius: 10px; padding: 3px; margin-bottom: 12px; }
.dseg button { flex: 1; border: 0; background: transparent; color: rgb(242 242 242 / 0.6); font: 600 0.9rem var(--sans); padding: 8px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.dseg button.on { background: #3a3a3a; color: #fff; }
.dpresets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.dpresets button { border: 0; background: #2a2a2d; color: #f2f2f2; font: 600 0.85rem var(--sans); padding: 10px 6px; border-radius: 10px; cursor: pointer; }
.dpresets button.on { background: #ff4f1a; color: #fff; }
.dbox input, .dbox textarea { display: block; width: 100%; box-sizing: border-box; background: #0f0f10; border: 1px solid #333; color: #f2f2f2; border-radius: 10px; padding: 9px 12px; font: 0.9rem var(--sans); margin-bottom: 10px; }
.dbox textarea { resize: none; height: 64px; }
.dbox label { font-size: 0.75rem; color: rgb(242 242 242 / 0.6); display: block; margin: 2px 0 6px; }
.dgo { width: 100%; border: 0; background: #ff4f1a; color: #fff; font: 700 0.95rem var(--sans); padding: 11px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.dgo:hover { background: #ff6a3a; } .dgo:disabled { opacity: 0.5; cursor: default; }
.drow { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.drow .dnote { margin-top: 0; }
.dcancel { border: 0; background: #2a2a2d; color: #f2f2f2; font: 600 0.82rem var(--sans); padding: 7px 14px; border-radius: 8px; cursor: pointer; flex: none; }
.dstat { font-size: 0.82rem; color: rgb(242 242 242 / 0.6); min-height: 1.2em; margin-bottom: 8px; }
.dstat.err { color: #ff6b61; } .dstat.ok { color: var(--green); }
.dnote { color: rgb(242 242 242 / 0.42); font-size: 0.7rem; margin-top: 10px; line-height: 1.45; }
body.live-page a.dnote { color: rgb(242 242 242 / 0.42); text-decoration: none; } body.live-page a.dnote:hover { color: rgb(242 242 242 / 0.75); }
@media (max-width: 860px) { .dpresets button, .dseg button { min-height: 42px; } }
.cm-donation { background: rgb(255 79 26 / 0.12); border-left: 3px solid #ff4f1a; }
.cm-donation .cav { background: #ff4f1a; color: #fff; }
.cm-don-stx { background: rgb(85 70 255 / 0.12); border-left-color: #5546ff; } .cm-don-stx .cav { background: #5546ff; }
.damt { font-weight: 700; color: #fff; }
a.damt { text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.3); }
.dstt { font: 0.68rem var(--mono); color: rgb(242 242 242 / 0.5); margin-left: 0.2rem; }
.dstt-confirmed { color: var(--green); } .dstt-failed, .dstt-expired { color: #ff6b61; }
/* Markdown tables in Case briefs */
.md-table { overflow-x: auto; margin: 1rem 0; border: 1px solid rgb(255 255 255 / 0.08); border-radius: 10px; }
.md-table table { border-collapse: collapse; width: 100%; font-size: 0.86rem; }
.md-table th, .md-table td { text-align: left; vertical-align: top; padding: 0.55rem 0.7rem; border-bottom: 1px solid rgb(255 255 255 / 0.06); }
.md-table th { color: var(--ink-2); font-weight: 600; background: rgb(255 255 255 / 0.03); white-space: nowrap; }
.md-table tr:last-child td { border-bottom: 0; }
/* home hero: single "Join the live chat" button */
.btn-live { background: var(--red); color: #000; border-color: var(--red); font-weight: 700; padding: 0.85rem 1.5rem; display: inline-flex; align-items: center; gap: 0.55rem; }
.btn-live:hover { background: #ffa53a; color: #000; }
.btn-live .rec { background: #000; }
.btn-watch { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.85rem 1.4rem; font-weight: 600; color: #fff; }
.hero-cta .btn { justify-content: center; }
/* /live polish: chat list reads as scrolled under the pinned bar; stream entries fade instead of cutting mid-line; compact Highlights on phones */
.chat-list { padding-top: 0.75rem; mask-image: linear-gradient(transparent 0, #000 1.25rem); -webkit-mask-image: linear-gradient(transparent 0, #000 1.25rem); }
.lx:not(.open) { max-height: 4.7em; overflow: hidden; mask-image: linear-gradient(#000 55%, transparent); -webkit-mask-image: linear-gradient(#000 55%, transparent); cursor: pointer; }
.hcard .img:not([style*="url"]) { aspect-ratio: auto; height: 3.2rem; font-size: 1.4rem; }
@media (max-width: 640px) { .hl { grid-template-columns: 1fr 1fr; gap: 0.5rem; } .hl-x { font-size: 0.78rem; } }
