/* Detonation Labs. Forensic, calm, precise: one loud moment (the chamber), everything else quiet. */
:root {
  --paper: #FAFAF8; --surface: #FFFFFF; --sunk: #F3F2EE; --ink: #16161A; --ink2: #2C2B31; --muted: #4E4D54;
  --rule: #E6E4DF; --rule2: #D6D3CC;
  --signal: #C2152B; --signal-ink: #9E1023; --signal-tint: #FBEDEF;
  --mal: #B4142A; --mal-tint: #FCEEF0; --sus: #8C6100; --sus-tint: #FBF3E2; --ok: #1E7550; --ok-tint: #EAF5EF;
  --vul: #B9520E; --vul-tint: #FCF0E7;
  --high: #B9520E; --low: #6B6A70;
  --chamber: #111115; --chamber2: #1A1A20; --ch-line: #2A2A31; --ch-text: #E9E8E4; --ch-muted: #8D8C93;
  --amber: #F2A33A; --hot: #FF5468; --mint: #4FD08F;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-s: 6px; --r-m: 10px; --r-l: 16px;
  --shadow: 0 1px 2px rgba(22, 22, 26, .04), 0 8px 24px -12px rgba(22, 22, 26, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121215; --surface: #19191D; --sunk: #1F1F24; --ink: #EEEDE9; --ink2: #D2D0CA; --muted: #9B9AA1;
    --rule: #2A2A30; --rule2: #36363D; --signal: #FF4D60; --signal-ink: #FF7A88; --signal-tint: #2A1519;
    --mal: #FF5A6C; --mal-tint: #2B161A; --sus: #E7B04A; --sus-tint: #2A2214; --ok: #4CC98B; --ok-tint: #14261D;
    --vul: #FF9550; --vul-tint: #2B1C12;
    --high: #FF9550; --low: #A3A2A8; --chamber: #0C0C0F; --chamber2: #141418;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
       text-rendering: optimizeLegibility; }
a { color: var(--signal); text-decoration: none; }
a:hover { color: var(--signal-ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
code, pre, .mono { font-family: var(--mono); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.012em; margin: 0; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); }
.narrow { max-width: 1040px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: var(--r-s); z-index: 50; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.lbl { font-size: 13px; color: var(--muted); }
.lbl.red { color: var(--signal); }
.mt22 { margin-top: 22px; } .mt30 { margin-top: 30px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--sans);
       padding: 13px 20px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
       transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--signal); color: #fff; }
.btn.primary:hover { background: var(--signal-ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule2); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn.small { padding: 9px 14px; font-size: 14px; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #16161A; } .btn.primary:hover { color: #16161A; } }
input[type=text], input[type=search] { font: 15px/1.4 var(--sans); padding: 14px 16px; width: 100%; color: var(--ink);
       background: var(--surface); border: 1px solid var(--rule2); border-radius: 8px; transition: border-color .15s, box-shadow .15s; }
input[type=text]:focus, input[type=search]:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--sunk); }
input::placeholder { color: var(--muted); }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 86%, transparent);
             backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
             border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--rule); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font: 600 20px/1 var(--serif); letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand svg { color: var(--ink); flex: none; }
.brand.lockup { gap: 6px; }
.brand.lockup svg { margin-left: -6px; } /* the mark's own padding; aligns the bracket with the page edge */
.brand-t { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.brand-n { position: relative; padding-bottom: 5px; line-height: 1; }
.brand-n::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--signal); border-radius: 2px; }
.brand-tag { font: 500 12.5px/1 var(--sans); letter-spacing: .005em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.nav a:not(.btn) { color: var(--ink2); position: relative; padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ink);
                          transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }

/* footer */
.site-foot { border-top: 1px solid var(--rule); margin-top: 120px; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; padding-top: 40px; padding-bottom: 48px; align-items: start; }
.foot-brand p { margin: 8px 0 0; color: var(--muted); font-size: 14px; max-width: 46ch; }
.foot-brand p.tagline { margin-top: 14px; color: var(--ink); font-weight: 500; font-size: 15px; }
.foot-nav { display: flex; gap: 26px; flex-wrap: wrap; font-size: 14px; }
.foot-nav a { color: var(--ink2); }
.foot-meta { grid-column: 1 / -1; margin: 18px 0 0; font-size: 13px; color: var(--muted); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center;
        padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); }
.kicker { margin: 0 0 22px; font-size: 15px; color: var(--signal); font-weight: 500; }
.hero h1 { font-size: clamp(38px, 4.1vw, 60px); line-height: 1.05; letter-spacing: -.022em; font-weight: 400; max-width: 19ch; text-wrap: balance; }
.lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--ink2); margin: 26px 0 34px; max-width: 54ch; line-height: 1.6; }
.lede strong { color: var(--ink); font-weight: 600; }
.punch { margin: 24px 0 0; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.35; color: var(--ink2); letter-spacing: -.01em; }
.punch strong { color: var(--ink); font-weight: 600; white-space: nowrap; }
.punch + .lede { margin-top: 14px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.facts-inline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 48px 0 0; padding: 0;
                border-top: 1px solid var(--rule); }
.facts-inline div { padding: 18px 20px 0 0; }
.facts-inline div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.facts-inline dt { font: 500 26px/1.1 var(--serif); letter-spacing: -.01em; }
.facts-inline dd { margin: 6px 0 0; font-size: 14.5px; font-weight: 500; color: var(--ink2); line-height: 1.45; }

/* the chamber: the one loud thing */
.chamber { margin: 0; background: var(--chamber); color: var(--ch-text); border-radius: var(--r-l); overflow: hidden;
           box-shadow: 0 30px 80px -40px rgba(17, 17, 21, .55), 0 0 0 1px rgba(255, 255, 255, .04) inset; position: relative; isolation: isolate; }
.chamber::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
                   background: radial-gradient(600px 260px at 78% -10%, rgba(255, 84, 104, .10), transparent 60%),
                               radial-gradient(500px 300px at 0% 110%, rgba(79, 208, 143, .05), transparent 60%); }
.chamber.alarm::before { background: radial-gradient(600px 300px at 80% 40%, rgba(255, 84, 104, .18), transparent 60%); transition: background .6s; }
.ch-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--ch-line); font-size: 13px; color: var(--ch-muted); }
.ch-top b { color: var(--ch-text); font-weight: 500; font-family: var(--mono); font-size: 12.5px; }
.ch-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(242, 163, 58, .14);
          animation: pulse 1.6s ease-in-out infinite; }
.chamber.done .ch-dot { background: var(--hot); box-shadow: 0 0 0 4px rgba(255, 84, 104, .16); animation: none; }
.ch-run { margin-left: auto; font-family: var(--mono); font-size: 12px; }
.ch-body { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.38fr) 56px; min-height: 284px; }
.ch-h { margin: 0 0 12px; font-size: 12px; color: var(--ch-muted); }
.ch-secrets { padding: 18px 16px 18px 18px; border-right: 1px solid var(--ch-line); }
.ch-secrets ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ch-secrets li { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border-radius: 8px; background: var(--chamber2);
                 border: 1px solid var(--ch-line); transition: border-color .35s var(--ease), background-color .35s var(--ease); }
.ch-secrets .f { font: 12.5px/1.3 var(--mono); color: var(--ch-text); }
.ch-secrets .s { font-size: 11.5px; color: var(--ch-muted); transition: color .35s; }
.ch-secrets li.read { border-color: rgba(242, 163, 58, .55); background: rgba(242, 163, 58, .07); }
.ch-secrets li.read .s { color: var(--amber); }
.ch-secrets li.leaked { border-color: rgba(255, 84, 104, .7); background: rgba(255, 84, 104, .09); }
.ch-secrets li.leaked .s { color: var(--hot); }
.ch-trace { padding: 18px 16px; min-width: 0; }
.ch-trace ol { list-style: none; margin: 0; padding: 0; font: 12.5px/1.75 var(--mono); }
.ch-trace li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ch-text); opacity: 0; transform: translateY(4px);
               animation: lineIn .35s var(--ease) forwards; }
.ch-trace li .k { color: var(--ch-muted); display: inline-block; width: 8ch; }
.ch-trace li.amber { color: var(--amber); } .ch-trace li.hot { color: var(--hot); } .ch-trace li.ok { color: var(--mint); }
.ch-wall { position: relative; border-left: 1px solid var(--ch-line); background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(255, 255, 255, .025) 7px 8px); }
.wall-line { position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--ch-line); transition: background .3s, box-shadow .3s; }
.chamber.alarm .wall-line { background: var(--hot); box-shadow: 0 0 18px rgba(255, 84, 104, .65); }
.packet { position: absolute; top: 58%; left: -140px; width: 10px; height: 10px; border-radius: 50%; background: var(--hot); opacity: 0;
          box-shadow: 0 0 12px var(--hot); }
.packet.fly { animation: fly .9s cubic-bezier(.5, 0, .9, .5) forwards; }
.ripple { position: absolute; top: calc(58% - 22px); left: -22px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--hot); opacity: 0; }
.ripple.go { animation: ripple .8s var(--ease) forwards; }
.outside { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl;
           font: 11px/1 var(--mono); color: var(--ch-muted); white-space: nowrap; }
.ch-verdict { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-top: 1px solid var(--ch-line);
              min-height: 58px; opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.ch-verdict.show { opacity: 1; transform: none; }
.stamp { font: 600 13px/1 var(--mono); color: var(--hot); border: 1.5px solid var(--hot); padding: 6px 9px; border-radius: 5px; letter-spacing: .02em; }
.ch-verdict.show .stamp { animation: stamp .45s var(--ease); }
.why { font-size: 13.5px; color: var(--ch-muted); flex: 1 1 260px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(242, 163, 58, .05); } }
@keyframes lineIn { to { opacity: 1; transform: none; } }
@keyframes fly { 0% { opacity: 0; transform: translateX(0); } 15% { opacity: 1; } 100% { opacity: 1; transform: translateX(134px); } }
@keyframes ripple { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes stamp { 0% { transform: scale(1.25); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* bands */
.band { padding: clamp(56px, 7vw, 104px) 0 0; }
.band-head { max-width: 62ch; margin-bottom: 36px; }
.band-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.band-head.row > div { max-width: 62ch; }
.band h2 { font-size: clamp(30px, 3vw, 42px); line-height: 1.12; }
.band-head p { margin: 14px 0 0; font-size: 17px; font-weight: 450; color: var(--ink2); }
.band-head .btn { margin-top: 22px; }
.band-head.row .btn { margin-top: 0; }

.panel pre, .code-tabs pre { margin: 0; background: var(--chamber); color: var(--ch-text); border-radius: var(--r-m); padding: 18px 20px;
                             font-size: 13px; line-height: 1.75; overflow-x: auto; }
.hl-amber { color: var(--amber); } .hl-red { color: var(--hot); } .hl-green { color: var(--mint); }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.works-with { margin: 26px 0 0; font-size: 14.5px; font-weight: 500; color: var(--muted); max-width: 60ch; }

/* sample reports */
.samples { border: 1px solid var(--rule); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.sm-bar { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.sm-bar button { display: inline-flex; align-items: center; gap: 10px; font: 500 14px/1 var(--sans); color: var(--muted); background: transparent;
                 border: 0; border-bottom: 2px solid transparent; padding: 10px 12px 14px; cursor: pointer; }
.sm-bar button span:last-child { font-family: var(--mono); font-size: 13px; }
.sm-bar button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--ink); }
.sm-panel { padding: clamp(20px, 2.5vw, 32px); }
.sm-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.sm-meta { margin: 0 0 6px; font-size: 13.5px; color: var(--muted); }
.sm-head h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; max-width: 46ch; }
.sm-findings { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.sm-findings li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; font-weight: 500; }

/* research teaser */
.studies { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.studies a { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 24px; border: 1px solid var(--rule); border-radius: var(--r-l);
             background: var(--surface); color: var(--ink); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.studies a:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.st-num { font: 500 34px/1 var(--serif); letter-spacing: -.015em; color: var(--signal); }
.st-body b { display: block; font-size: 17px; font-weight: 600; line-height: 1.35; }
.st-body small { display: block; margin-top: 8px; font-size: 14.5px; font-weight: 500; color: var(--muted); line-height: 1.55; }

/* faq */
.faq { max-width: 880px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
               padding: 22px 4px; font: 500 20px/1.35 var(--serif); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
                      transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: var(--signal); }
.faq details p { margin: 0 4px 0; padding-bottom: 24px; font-size: 16.5px; font-weight: 450; color: var(--ink2); line-height: 1.7; max-width: 72ch; }

/* document pages: research, security, privacy, terms */
.doc-head { padding: clamp(36px, 5vw, 72px) 0 clamp(28px, 3vw, 44px); border-bottom: 1px solid var(--rule); }
.doc-head h1 { font-size: clamp(38px, 4.2vw, 60px); line-height: 1.05; font-weight: 400; letter-spacing: -.022em; max-width: 20ch; }
.doc-lede { margin: 18px 0 0; font-size: clamp(17px, 1.3vw, 19px); font-weight: 450; color: var(--ink2); max-width: 64ch; line-height: 1.6; }
.doc-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-top: 12px; }
.doc-toc { position: sticky; top: 96px; padding-top: 32px; }
.doc-toc p { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.doc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.doc-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink2);
             font-size: 14.5px; font-weight: 500; transition: color .15s, border-color .15s; }
.doc-toc a:hover { color: var(--ink); }
.doc-toc a.active { color: var(--signal); border-left-color: var(--signal); }
.doc-body > section { padding: 32px 0 36px; border-bottom: 1px solid var(--rule); }
.doc-body > section:last-child { border-bottom: 0; }
.doc-body h2 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; margin: 0 0 14px; }
.doc-body p, .doc-body li { font-size: 16.5px; font-weight: 450; color: var(--ink2); line-height: 1.7; max-width: 76ch; }
.doc-body ul { padding-left: 20px; margin: 0 0 14px; }
.doc-body li { margin: 8px 0; }
.doc-body li b, .doc-body p b { color: var(--ink); font-weight: 600; }
.doc-body :not(pre) > code { background: var(--sunk); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.study-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 56px); align-items: start; }
.study-fig { margin: 0; position: sticky; top: 96px; }
.study-fig .result { margin: 4px 0 0; box-shadow: var(--shadow); }
.study-text p:first-child { margin-top: 0; }

/* research page */
.study { }
.study-tag { margin: 0 0 10px; font-size: 14px; font-weight: 500; color: var(--signal); }
.study h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin-bottom: 16px; }
.study p, .study li { font-size: 16.5px; font-weight: 450; color: var(--ink2); line-height: 1.7; max-width: 74ch; }
.study ul { padding-left: 20px; }
.study li { margin: 6px 0; }
.study .limits { background: var(--sunk); border-radius: var(--r-m); padding: 14px 18px; font-size: 15px; }
.result { width: 100%; border-collapse: collapse; margin: 22px 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-m);
          overflow: hidden; font-size: 15px; }
.result th { text-align: left; font: 500 13.5px/1.2 var(--sans); color: var(--muted); background: var(--sunk); padding: 12px 16px; }
.result td { padding: 12px 16px; border-top: 1px solid var(--rule); color: var(--ink2); }
.result td b { color: var(--ink); }

/* feed */
.feed { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.feed a { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1.8fr) 190px; gap: 18px; align-items: center;
          padding: 18px 12px; margin: 0 -12px; border-bottom: 1px solid var(--rule); color: var(--ink); border-radius: 8px;
          transition: background-color .15s; }
.feed a:hover { background: var(--sunk); color: var(--ink); }
.feed-name { font: 500 14.5px/1.3 var(--mono); overflow-wrap: anywhere; }
.feed-src { font-size: 14px; color: var(--muted); }
.feed-top { font-size: 14.5px; font-weight: 500; color: var(--ink2); }
.feed .chip { justify-self: end; }

/* code tabs */
.band.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.band.split .band-head { margin-bottom: 0; }
.code-tabs { background: var(--chamber); border-radius: var(--r-l); overflow: hidden; box-shadow: 0 24px 60px -36px rgba(17, 17, 21, .5); }
.ct-bar { display: flex; gap: 4px; padding: 10px 10px 0; border-bottom: 1px solid var(--ch-line); }
.ct-bar button { font: 500 13.5px/1 var(--sans); color: var(--ch-muted); background: transparent; border: 0; padding: 11px 14px 13px;
                 cursor: pointer; border-bottom: 2px solid transparent; }
.ct-bar button[aria-selected=true] { color: var(--ch-text); border-bottom-color: var(--hot); }
.code-tabs pre { border-radius: 0; padding: 22px 24px 26px; min-height: 236px; }
.code-tabs .c { color: var(--ch-muted); }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px/1 var(--sans); padding: 5px 9px 5px 8px; border-radius: 999px;
        white-space: nowrap; background: var(--sunk); color: var(--ink2); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.malicious, .chip.critical { background: var(--mal-tint); color: var(--mal); }
.chip.high { background: var(--mal-tint); color: var(--high); }
.chip.suspicious, .chip.medium { background: var(--sus-tint); color: var(--sus); }
.chip.clean { background: var(--ok-tint); color: var(--ok); }
.chip.vulnerable { background: var(--vul-tint); color: var(--vul); }
.chip.norun { background: var(--sunk); color: var(--ink2); }
.chip.low, .chip.info { background: var(--sunk); color: var(--low); }

/* page heads */
.page-h { padding: clamp(36px, 5vw, 64px) 0 8px; }
.page-h h1 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.08; font-weight: 400; letter-spacing: -.02em; margin: 0 0 14px; }
.page-h h1 .mono { font-size: .6em; letter-spacing: 0; overflow-wrap: anywhere; }
.page-h p { margin: 0; font-size: 18px; color: var(--ink2); max-width: 62ch; }
.empty { border: 1px dashed var(--rule2); border-radius: var(--r-m); padding: 26px; color: var(--muted); font-size: 15.5px; }
.small-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* report */
.crumbs { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 28px 0 22px; }
.crumbs .path { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.crumbs .path a { color: var(--muted); } .crumbs .path a:hover { color: var(--ink); }
.crumbs .path b { color: var(--ink); font: 500 14px/1.3 var(--mono); }
.verdict { --vc: var(--low); --vt: var(--sunk); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-l);
           box-shadow: var(--shadow); overflow: hidden; position: relative; }
.verdict::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--vc); }
.verdict.malicious { --vc: var(--mal); --vt: var(--mal-tint); }
.verdict.suspicious { --vc: var(--sus); --vt: var(--sus-tint); }
.verdict.clean { --vc: var(--ok); --vt: var(--ok-tint); }
.verdict.vulnerable { --vc: var(--vul); --vt: var(--vul-tint); }
.verdict.norun { --vc: var(--ink2); --vt: var(--sunk); }
.v-main { display: flex; gap: 18px; align-items: flex-start; padding: 30px 30px 26px; }
.v-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--vt); color: var(--vc); }
.v-label { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.verdict h1.v { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; color: var(--vc); font-weight: 500; }
.v-sub { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule); }
.facts > div { padding: 16px 30px 18px; min-width: 0; }
.facts > div + div { border-left: 1px solid var(--rule); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 14.5px; overflow-wrap: anywhere; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; margin-top: 48px; align-items: start; }
.section-h { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; }
.section-h h2 { font-size: 26px; }
.section-h .count { font-size: 14px; color: var(--muted); }
.finding { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--low); border-radius: var(--r-m); margin-bottom: 16px; overflow: hidden; }
.finding.critical, .finding.high { border-left-color: var(--mal); }
.finding.medium { border-left-color: var(--sus); }
.finding .fh { display: flex; align-items: center; gap: 12px; padding: 16px 20px 10px; flex-wrap: wrap; }
.finding .fid { font: 600 12.5px/1 var(--mono); color: var(--muted); }
.finding .fh .title { font: 600 17px/1.35 var(--sans); margin: 0; flex: 1 1 300px; letter-spacing: 0; }
.fmeta { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0; padding: 0 20px 14px; border-bottom: 1px solid var(--rule); }
.fmeta div { display: flex; gap: 8px; align-items: baseline; }
.fmeta dt { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.fmeta dd { margin: 0; font-size: 13.5px; }
.fmeta dd.mono { font: 13px/1.4 var(--mono); }
.fbody { padding: 4px 20px 18px; }
.fbody section { padding-top: 14px; }
.fbody h4 { margin: 0 0 5px; font: 600 13px/1.3 var(--sans); color: var(--ink); letter-spacing: .01em; }
.fbody p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink2); max-width: 80ch; }
.ev { margin-top: 8px; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--sunk); }
.ev-loc { display: block; padding: 6px 12px; font: 600 12.5px/1.4 var(--mono); color: var(--ink); background: var(--surface); border-bottom: 1px solid var(--rule); }
.ev pre { margin: 0; padding: 10px 12px; font: 12.5px/1.6 var(--mono); color: var(--ink2); white-space: pre-wrap; overflow-wrap: anywhere; }
.refs { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.refs li { font: 500 12.5px/1 var(--sans); padding: 6px 9px; border-radius: 6px; background: var(--sunk); color: var(--ink2); border: 1px solid var(--rule); }
.manifest { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ch-line); border-radius: var(--r-m); overflow: hidden; }
.manifest > div { background: var(--chamber); padding: 16px 18px; }
.manifest .lbl { color: var(--ch-muted); font-size: 12.5px; }
.manifest .n { font: 500 30px/1.2 var(--mono); color: var(--ch-text); margin-top: 6px; }
.manifest .n.hot { color: var(--amber); }
.manifest .n.red { color: var(--hot); font-size: 19px; margin-top: 12px; overflow-wrap: anywhere; }
.side .hosts { margin: 10px 0 0; padding: 0; list-style: none; font: 12.5px/1.5 var(--mono); color: var(--ink2); }
.side .hosts li { padding: 7px 0; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.cols + section { margin-top: 56px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.timeline li { position: relative; padding: 0 0 26px 30px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface);
                       border: 2px solid var(--rule2); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 22px; bottom: 0; width: 1px; background: var(--rule); }
.timeline li:last-child::after { display: none; }
.timeline li.hit::before { border-color: var(--mal); background: var(--mal); }
.timeline .rl { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; font: 500 14px/1.4 var(--mono); }
.timeline .rl span { font: 13px/1 var(--sans); color: var(--muted); }
.timeline p { margin: 5px 0 0; font-size: 14.5px; color: var(--ink2); overflow-wrap: anywhere; }
.timeline .cmds { margin: 10px 0 0; padding: 12px 14px; background: var(--sunk); border-radius: 8px; font: 12.5px/1.6 var(--mono);
                  color: var(--ink2); white-space: pre-wrap; overflow-wrap: anywhere; }
.note { margin: 48px 0 0; border-top: 1px solid var(--rule); padding-top: 20px; display: flex; gap: 14px; align-items: baseline; }
.note .k { font-size: 13px; font-weight: 600; color: var(--ink); flex: none; }
.note p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); max-width: 90ch; }

/* submit + live scan */
.card { border: 1px solid var(--rule); border-radius: var(--r-l); background: var(--surface); margin-top: 28px; box-shadow: var(--shadow); overflow: hidden; }
.tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.tabs button { font: 500 14.5px/1 var(--sans); padding: 12px 14px 14px; border: 0; background: transparent; color: var(--muted); cursor: pointer;
               border-bottom: 2px solid transparent; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--signal); }
.pane { padding: 26px; }
.pane[hidden] { display: none; }
.pane label.lbl { display: block; margin-bottom: 8px; font-size: 14px; color: var(--ink2); font-weight: 500; }
.drop { border: 1.5px dashed var(--rule2); border-radius: var(--r-m); padding: 24px; display: flex; gap: 16px; align-items: center; transition: border-color .15s, background-color .15s; }
.drop:hover { border-color: var(--ink); background: var(--sunk); }
.drop input[type=file] { font-size: 14px; color: var(--ink); margin-top: 6px; }
.drop .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.formfoot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 26px 24px; border-top: 1px solid var(--rule); }
.check { display: inline-flex; gap: 10px; align-items: center; font-size: 15px; color: var(--ink2); }
.check input { width: 18px; height: 18px; accent-color: var(--signal); }
.error { border: 1px solid var(--mal); background: var(--mal-tint); color: var(--ink); border-radius: var(--r-m); padding: 13px 16px; margin-top: 18px; font-size: 15px; }
.live { border: 1px solid var(--rule); border-radius: var(--r-l); background: var(--surface); margin-top: 28px; overflow: hidden; box-shadow: var(--shadow); }
.live .lh { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; padding: 18px 22px; font-size: 15px; }
.live .lh .lbl { font-family: var(--mono); font-size: 13px; }
.live .lh .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); display: inline-block; margin-right: 10px; animation: pulse 1.6s infinite; }
.live .lh .dot.done { background: var(--ok); animation: none; } .live .lh .dot.failed { background: var(--mal); animation: none; }
.live .bar { height: 3px; background: var(--sunk); }
.live .bar i { display: block; height: 3px; background: var(--signal); width: 0; transition: width .6s var(--ease); }
.live ol { list-style: none; margin: 0; padding: 12px 22px; }
.live li { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; padding: 8px 0; font: 13.5px/1.5 var(--mono); align-items: center;
           animation: lineIn .35s var(--ease) both; }
.live li .st { font: 500 12px/1 var(--sans); color: var(--ok); }
.live li .st.run { color: var(--high); }
.live li .res { font-size: 13px; color: var(--muted); text-align: right; }
.live .console { background: var(--chamber); color: var(--ch-text); font: 13px/1.85 var(--mono); padding: 16px 22px; min-height: 64px; }
.live .console .t { color: var(--ch-muted); margin-right: 10px; }
.live .console .r { color: var(--hot); }

/* docs */
.prose { max-width: 780px; }
.prose h2 { font-size: 28px; margin: 48px 0 12px; }
.prose p, .prose li { color: var(--ink2); }
.prose pre { background: var(--chamber); color: var(--ch-text); padding: 18px 20px; border-radius: var(--r-m); overflow-x: auto; font-size: 13px; line-height: 1.75; }
.prose code { font-size: .9em; }
.prose :not(pre) > code { background: var(--sunk); padding: 2px 6px; border-radius: 4px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.prose td, .prose th { border-top: 1px solid var(--rule); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { font: 500 13px/1 var(--sans); color: var(--muted); }

/* responsive */
/* Report: summary, recommendation, confidence, tree, IOCs, coverage */
.v-summary { margin: 12px 0 0; font: 400 clamp(18px, 1.5vw, 21px)/1.5 var(--serif); color: var(--ink); max-width: 68ch; }
.reco { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 26px; align-items: center; padding: 18px 30px;
        border-top: 1px solid var(--rule); background: var(--vt); }
.reco-act { display: flex; flex-direction: column; gap: 2px; }
.reco-act b { font-size: 19px; font-weight: 600; color: var(--vc); }
.reco p { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink2); max-width: 70ch; }
.reco-meta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.repro { font-size: 13px; font-weight: 600; color: var(--ink2); padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule); }
.conf { display: inline-flex; align-items: center; font: 600 12.5px/1 var(--sans); padding: 5px 10px; border-radius: 999px; border: 1px solid currentColor; }
.conf.confirmed { color: var(--mal); } .conf.likely { color: var(--high); } .conf.possible { color: var(--sus); } .conf.info { color: var(--low); }
.finding .fx { padding: 0 18px 14px; margin-top: -4px; }
.finding .why { margin: 0 0 6px; font-size: 15px; font-weight: 500; color: var(--ink); max-width: 75ch; }
.finding .meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--muted); }
.finding .meta .tech { font-weight: 600; color: var(--ink2); }
.finding .meta .run { font: 12.5px/1.6 var(--mono); }
.mt48 { margin-top: 48px; }
.tree-intro { margin: -8px 0 16px; font-size: 14.5px; color: var(--muted); max-width: 70ch; }
.tree { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-m); padding: 16px 18px; overflow-x: auto; }
.tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul ul { margin-left: 9px; padding-left: 16px; border-left: 1px solid var(--rule2); }
.tn { position: relative; }
.tree ul ul > .tn::before { content: ""; position: absolute; left: -16px; top: 15px; width: 12px; border-top: 1px solid var(--rule2); }
.tl { display: inline-flex; gap: 10px; align-items: baseline; padding: 4px 0; font: 13px/1.55 var(--mono); color: var(--ink2); white-space: pre-wrap; overflow-wrap: anywhere; }
.tk { flex: none; font: 600 11.5px/1 var(--sans); color: var(--muted); min-width: 40px; }
.tn.hot > ul { border-left-color: var(--mal); }
.tn.hot > ul > .tn.hot::before { border-top-color: var(--mal); }
.tn.proc.hot > .tl { color: var(--ink); font-weight: 500; }
.tn.f-read > .tl { color: var(--sus); font-weight: 600; }
.tn.f-leak > .tl, .tn.f-persist > .tl { color: var(--mal); font-weight: 600; }
.tn.f-own > .tl, .tn.f-write > .tl { color: var(--muted); }
.tc { color: var(--muted); font-weight: 400; }
.tree-full { margin-top: 12px; }
.tree-full summary { cursor: pointer; display: inline-flex; font-size: 14.5px; font-weight: 600; color: var(--ink); padding: 8px 14px;
                     border: 1px solid var(--rule2); border-radius: 999px; list-style: none; }
.tree-full summary::-webkit-details-marker { display: none; }
.tree-full summary:hover { border-color: var(--ink); }
.tree-full[open] summary { margin-bottom: 12px; }
.tree-full summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ioc-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.side .hosts.ioc li { color: var(--mal); }
.side .hosts.ioc li.hash { color: var(--muted); }
.cov { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; margin: 10px 0 0; border-top: 1px solid var(--rule); }
.cov > div { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.cov .wide { grid-column: 1 / -1; }
.cov dt { font-size: 12.5px; color: var(--muted); }
.cov dd { margin: 2px 0 0; font: 500 15px/1.4 var(--mono); overflow-wrap: anywhere; }
.cov .wide dd { font-size: 13px; }

/* Data-flow diagram: package -> install -> runs as -> what it reached */
.flow-sec { margin-top: 48px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.6fr); gap: 34px; align-items: start; }
.fl-step { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--rule);
           border-radius: var(--r-m); padding: 18px 18px 20px; min-width: 0; }
.fl-step + .fl-step::before { content: ""; position: absolute; left: -29px; top: 34px; width: 22px; height: 1.5px; background: var(--rule2); }
.fl-step + .fl-step::after { content: ""; position: absolute; left: -11px; top: 30px; border: 5px solid transparent; border-left: 7px solid var(--rule2); border-right: 0; }
.fl-k { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.fl-step > b { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; line-height: 1.4; }
.fl-step > b.mono { font: 500 13.5px/1.5 var(--mono); }
.fl-s { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.fl-start { color: var(--ink2, inherit); }
.fl-partial { color: var(--warn, #9a5b00); font-weight: 600; }
.fl-list { list-style: none; margin: 4px 0 0; padding: 0; }
.fl-list li { display: flex; flex-direction: column; gap: 1px; padding: 7px 0; border-top: 1px solid var(--rule); font-size: 13px; }
.fl-list li:first-child { border-top: 0; padding-top: 2px; }
.fl-list .mono { font: 500 13px/1.45 var(--mono); overflow-wrap: anywhere; color: var(--ink); }
.fl-d { font-size: 12.5px; color: var(--muted); }
.fl-list li.read .mono { color: var(--sus); }
.fl-list li.leak .mono, .fl-list li.leak .fl-d { color: var(--mal); font-weight: 600; }
.fl-tags { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.fl-tags li { font-size: 12px; padding: 3px 7px; border-radius: 5px; background: var(--sunk); color: var(--ink2); }
.fl-group { padding-top: 10px; }
.fl-group + .fl-group { border-top: 1px solid var(--rule); margin-top: 6px; }
.fl-g { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.fl-none { margin: 2px 0 0; font-size: 13.5px; color: var(--ok); font-weight: 500; }
.fl-own { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.fl-own .mono { font: 12.5px/1.4 var(--mono); }
.fl-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); max-width: 80ch; }

.card.cfg { margin-top: 28px; }
.card.cfg h2 { font-size: 22px; margin: 0 0 6px; }
.card.cfg textarea { width: 100%; margin-top: 12px; font: 13px/1.55 var(--mono); padding: 14px 16px; color: var(--ink);
                     background: var(--surface); border: 1px solid var(--rule2); border-radius: var(--r-m); resize: vertical; }
.card.cfg textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--sunk); }
.cfg-rows { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.cfg-rows li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.cfg-rows .mono { font: 13px/1.4 var(--mono); color: var(--muted); margin-left: 8px; }
.cfg-skip { font-size: 13.5px; color: var(--muted); }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { max-width: 20ch; }
  .band.split { grid-template-columns: 1fr; }
  .studies { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-toc { position: static; padding-top: 20px; }
  .study-grid { grid-template-columns: 1fr; }
  .study-fig { position: static; }
  .cols { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .fl-step:nth-child(3)::before, .fl-step:nth-child(3)::after { display: none; }
}
@media (max-width: 720px) {
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .fl-step + .fl-step::before { display: block; left: 28px; top: -22px; width: 1.5px; height: 16px; }
  .fl-step + .fl-step::after { display: block; left: 24px; top: -8px; border: 5px solid transparent; border-top: 7px solid var(--rule2); border-bottom: 0; }
}
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .head-in { height: 64px; }
  .brand-tag { display: none; }
  .brand.lockup svg { width: 32px; height: 32px; margin-left: -4px; }
  .facts-inline { grid-template-columns: 1fr; }
  .facts-inline div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 14px; }
  .facts-inline div { padding-top: 14px; }
  .ch-body { grid-template-columns: 1fr 38px; }
  .ch-secrets { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--ch-line); }
  .ch-secrets ul { grid-template-columns: 1fr 1fr; }
  .feed a { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .feed-src { grid-row: 2; } .feed-top { grid-column: 1 / -1; }
  .feed .chip { grid-column: 2; grid-row: 1; }
  .ch-run { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .v-main { padding: 24px 20px 20px; }
  .reco { grid-template-columns: 1fr; padding: 16px 20px; }
  .reco-meta { justify-content: flex-start; }
  .tree { padding: 12px; }
  .tree ul ul { margin-left: 3px; padding-left: 10px; }
  .tree ul ul > .tn::before { left: -10px; width: 7px; }
  .tk { display: none; }
  .facts > div { padding: 14px 20px; }
  .live li { grid-template-columns: 56px 1fr; }
  .live li .res { grid-column: 2; text-align: left; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ======================================================================
   Motion and interaction. Everything here is progressive: hidden states
   only apply under html.motion (set by boot.js when JS runs and the user
   has not asked for reduced motion), so the page reads fine without it.
   ====================================================================== */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --head-h: 80px; }
body { overflow-x: clip; }
::selection { background: color-mix(in srgb, var(--signal) 22%, transparent); }

/* reveal on scroll */
.motion [data-reveal] { opacity: 0; transform: translateY(28px);
                        transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
                        transition-delay: calc(var(--i, 0) * 70ms); }
.motion [data-reveal].in { opacity: 1; transform: none; }
.motion [data-rise] { opacity: 0; transform: translateY(18px); }
.motion .loaded [data-rise], .motion.loaded [data-rise] { opacity: 1; transform: none;
                        transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0ms); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; }
.motion .w > span { transform: translateY(110%); }
.motion.loaded .w > span { transform: none; transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 45ms); }

/* header: scroll progress, tucks away while reading, back on the way up */
.site-head { transition: border-color .2s, transform .45s var(--ease-out); }
.site-head::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--signal);
                    transform: scaleX(var(--progress, 0)); transform-origin: left; opacity: .9; }
.site-head.tuck { transform: translateY(-100%); }
.nav .btn { transition: background-color .18s var(--ease), transform .25s var(--ease-out); }

/* buttons: an arrow that leans in */
.btn.arrow::after { content: "\2192"; display: inline-block; font-weight: 500; transition: transform .35s var(--ease-out); }
.btn.arrow:hover::after { transform: translateX(4px); }
.btn.primary { box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 8px 20px -10px color-mix(in srgb, var(--signal) 70%, transparent); }
.btn.primary:hover { transform: translateY(-1px); }
.btn.on-dark { background: var(--ch-text); color: var(--chamber); }
.btn.on-dark:hover { background: #fff; color: var(--chamber); transform: translateY(-1px); }

/* section heads */
.sec-head { max-width: 64ch; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.sec-head.row > div { max-width: 64ch; }
.sec-head h2 { font-size: clamp(34px, 3.8vw, 56px); line-height: 1.06; letter-spacing: -.022em; font-weight: 400; text-wrap: balance; }
.sec-head p:not(.eyebrow) { margin: 18px 0 0; font-size: clamp(17px, 1.3vw, 19px); font-weight: 450; color: var(--ink2); line-height: 1.6; }
.sec-head .btn { margin-top: 26px; }
.sec-head.row .btn { margin-top: 0; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font: 500 13px/1 var(--mono); color: var(--muted); letter-spacing: .02em; }
.eyebrow span { color: var(--signal); }
.eyebrow::after { content: ""; width: 48px; height: 1px; background: var(--rule2); }

/* hero */
.hero { position: relative; isolation: isolate; min-height: min(860px, calc(100vh - var(--head-h))); }
.hero-bg { position: absolute; z-index: -1; top: 0; bottom: -80px; left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none;
           background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
           background-size: 56px 56px; background-position: center top;
           -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 42%, #000 10%, transparent 72%);
           mask-image: radial-gradient(ellipse 60% 70% at 72% 42%, #000 10%, transparent 72%); opacity: .7; }
.hero h1 { font-size: clamp(40px, 4.6vw, 68px); }
.facts-inline dt { font-variant-numeric: tabular-nums; }

/* the chamber: depth and light that follow the pointer */
.chamber-wrap { position: relative; perspective: 1400px; }
.chamber-wrap::before { content: ""; position: absolute; inset: 8% -6% -10% -6%; z-index: -1; border-radius: 40px; filter: blur(40px);
                        background: radial-gradient(closest-side, color-mix(in srgb, var(--signal) 22%, transparent), transparent);
                        opacity: .55; transition: opacity .8s var(--ease-out); }
.chamber-wrap:has(.chamber.alarm)::before { opacity: 1; }
.chamber { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
           transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); will-change: transform; }
.glare { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s;
         background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .07), transparent 45%); }
.chamber-wrap:hover .glare { opacity: 1; }
.ch-replay { margin-left: 4px; font: 500 12px/1 var(--mono); color: var(--ch-text); background: transparent; border: 1px solid var(--ch-line);
             border-radius: 999px; padding: 6px 11px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.ch-replay:hover { border-color: var(--ch-muted); background: var(--chamber2); }

/* story: one detonation, told by scrolling */
.story { padding-top: clamp(80px, 10vw, 150px); }
.story-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 96px); }
.story-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.sstep { counter-increment: st; min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 4vh 0; }
.sstep:first-child { min-height: 60vh; justify-content: flex-start; padding-top: 8vh; }
.sstep:last-child { min-height: 64vh; }
.motion .sstep { opacity: .22; transition: opacity .6s var(--ease-out); }
.motion .sstep.on { opacity: 1; }
.sn { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--mono); color: var(--signal); margin-bottom: 18px; }
.sn::before { content: counter(st, decimal-leading-zero); color: var(--muted); }
.sstep h3 { font-size: clamp(28px, 2.7vw, 42px); line-height: 1.1; letter-spacing: -.02em; font-weight: 400; max-width: 18ch; text-wrap: balance; }
.sstep p { margin: 18px 0 0; font-size: 17.5px; font-weight: 450; color: var(--ink2); line-height: 1.65; max-width: 48ch; }
.sstep-code { margin: 22px 0 0; background: var(--chamber); color: var(--ch-text); border-radius: var(--r-m); padding: 16px 18px;
              font-size: 12.5px; line-height: 1.75; overflow-x: auto; }
.js .sstep-code { display: none; }
html:not(.js) .stage { display: none; }
html:not(.js) .story-grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.stage { position: sticky; top: calc(var(--head-h) + 4vh); height: calc(100vh - var(--head-h) - 8vh); max-height: 680px; align-self: start; }
.stage-in { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--chamber); color: var(--ch-text);
            border-radius: 20px; overflow: hidden; box-shadow: 0 40px 100px -50px rgba(17, 17, 21, .7), 0 0 0 1px rgba(255, 255, 255, .04) inset; }
.stage-in::before { content: ""; position: absolute; inset: 0; pointer-events: none;
                    background: radial-gradient(700px 360px at 85% -10%, rgba(255, 84, 104, .12), transparent 60%),
                                linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 100% 32px; }
.stage-top { position: relative; display: flex; align-items: center; gap: 10px; padding: 16px 20px; font-size: 13px; color: var(--ch-muted);
             border-bottom: 1px solid var(--ch-line); }
.stage-top .mono { color: var(--ch-text); font-size: 12.5px; }
.stage-label { margin-left: auto; font: 500 12px/1 var(--mono); color: var(--ch-text); padding: 6px 10px; border: 1px solid var(--ch-line); border-radius: 999px; }
.stage-rail { position: relative; height: 2px; background: var(--ch-line); }
.stage-rail span { position: absolute; inset: 0; background: var(--hot); transform-origin: left; transform: scaleX(var(--sp, .2));
                   transition: transform .8s var(--ease-out); box-shadow: 0 0 12px rgba(255, 84, 104, .6); }
.scenes { position: relative; flex: 1; }
.scene { position: absolute; inset: 0; padding: clamp(22px, 2.6vw, 38px); display: flex; flex-direction: column; justify-content: center; gap: 18px;
         opacity: 0; transform: translateY(16px) scale(.985); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); pointer-events: none; }
.scene.on { opacity: 1; transform: none; transition-delay: .12s; }
.scene [data-i] { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.scene.on [data-i] { opacity: 1; transform: none; transition-delay: calc(.45s + var(--i) * .32s); }
.sc-cmd { margin: 0; font: 13px/1.5 var(--mono); color: var(--ch-text); }
.sc-cmd span { color: var(--ch-muted); margin-right: 8px; }
.sc-cmd em { font-style: normal; color: var(--mint); }
.box { border: 1px dashed color-mix(in srgb, var(--ch-muted) 45%, transparent); border-radius: 14px; padding: 18px; }
.box-l { margin: 0 0 14px; font: 11.5px/1 var(--mono); color: var(--ch-muted); letter-spacing: .03em; }
.tokens { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tokens span { font: 12.5px/1.3 var(--mono); padding: 10px 12px; border-radius: 9px; background: var(--chamber2); border: 1px solid var(--ch-line);
               transition: border-color .4s, background-color .4s, color .4s, opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.scene.on .tokens .hit { border-color: rgba(255, 84, 104, .7); background: rgba(255, 84, 104, .1); color: var(--hot); transition-delay: 2s; }
.sc-trace { list-style: none; margin: 16px 0 0; padding: 0; font: 12.5px/1.9 var(--mono); }
.sc-trace b, .vs b { font-weight: 400; color: var(--ch-muted); display: inline-block; width: 7ch; }
.sc-trace .amber { color: var(--amber); } .sc-trace .hot { color: var(--hot); }
.toolcard { background: var(--chamber2); border: 1px solid var(--ch-line); border-radius: 14px; padding: 20px; }
.tc-name { margin: 0 0 10px; font: 500 14px/1.3 var(--mono); }
.tc-name span { color: var(--ch-muted); font-weight: 400; } .tc-name i { font-style: normal; color: var(--amber); }
.tc-desc { margin: 0; font-size: 15px; line-height: 1.7; color: color-mix(in srgb, var(--ch-text) 80%, transparent); }
.tc-desc mark { color: inherit; background: linear-gradient(rgba(242, 163, 58, .32), rgba(242, 163, 58, .32)) no-repeat 0 100% / 0% 100%;
                border-radius: 3px; padding: 1px 0; opacity: 1 !important; transform: none !important;
                transition: background-size .9s var(--ease-out), color .4s; }
.scene.on .tc-desc mark { background-size: 100% 100%; color: var(--ch-text); transition-delay: calc(.6s + var(--i) * .7s); }
.flags { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.flags li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ch-text); }
.clock { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 20px; border-radius: 14px; background: var(--chamber2);
         border: 1px solid var(--ch-line); }
.clk-k { font: 12px/1 var(--mono); color: var(--ch-muted); }
.clk-v { font: 400 30px/1 var(--serif); font-variant-numeric: tabular-nums; }
.clk-v b { font-weight: 500; color: var(--amber); }
.worlds { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.worlds li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--ch-line);
             font-size: 13px; }
.worlds .res { color: var(--ch-muted); font-family: var(--mono); font-size: 12px; } .worlds .res.ok { color: var(--mint); }
.worlds .bad { border-color: rgba(255, 84, 104, .6); background: rgba(255, 84, 104, .08); } .worlds .bad .res { color: var(--hot); }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vs-col { background: var(--chamber2); border: 1px solid var(--ch-line); border-radius: 14px; padding: 16px; }
.vs-col.ctrl { border-style: dashed; }
.vs-h { margin: 0 0 12px; font-size: 12.5px; color: var(--ch-muted); }
.vs ol { list-style: none; margin: 0; padding: 0; font: 12px/1.5 var(--mono); display: grid; gap: 8px; }
.vs li { overflow-wrap: anywhere; } .vs .hot { color: var(--hot); } .vs .ok { color: var(--mint); }
.vs-verdict { margin: 0; font-size: 15px; color: var(--ch-muted); } .vs-verdict b { color: var(--hot); font-weight: 600; }
.mini-report { background: var(--surface); color: var(--ink); border-radius: 14px; overflow: hidden; position: relative; }
.mini-report::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--mal); }
.mr-v { margin: 0; padding: 24px 22px 14px; font: 400 26px/1.15 var(--serif); letter-spacing: -.015em; }
.mini-report ul { list-style: none; margin: 0; padding: 0 22px; }
.mini-report li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--rule); font-size: 14px; font-weight: 500; }
.mr-foot { margin: 0; padding: 14px 22px 20px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--rule); }
@media (prefers-color-scheme: dark) { .mini-report { background: var(--surface); } }

/* the dark band: full bleed, cards lit by the pointer */
.dark-band { position: relative; isolation: isolate; margin: clamp(80px, 10vw, 150px) calc(50% - 50vw) 0; background: var(--chamber);
             color: var(--ch-text); padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; }
.dark-band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
                     background: radial-gradient(900px 500px at 88% 0%, rgba(255, 84, 104, .13), transparent 60%),
                             radial-gradient(700px 400px at 0% 100%, rgba(79, 208, 143, .05), transparent 60%); }
.dark-band::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
                    background-image: linear-gradient(var(--ch-line) 1px, transparent 1px), linear-gradient(90deg, var(--ch-line) 1px, transparent 1px);
                    background-size: 56px 56px;
                    -webkit-mask-image: radial-gradient(ellipse 50% 60% at 50% 0%, #000, transparent 80%);
                    mask-image: radial-gradient(ellipse 50% 60% at 50% 0%, #000, transparent 80%); }
.dark-in { max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); }
.dark-band .eyebrow { color: var(--ch-muted); } .dark-band .eyebrow span { color: var(--hot); }
.dark-band .eyebrow::after { background: var(--ch-line); }
.dark-band .sec-head p:not(.eyebrow) { color: color-mix(in srgb, var(--ch-text) 72%, var(--chamber)); }
.cards { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cards li { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 26px 30px; border-radius: 18px;
            background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); border: 1px solid var(--ch-line); }
.cards li::before, .studies a::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
            background: radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 84, 104, .75), transparent 65%);
            -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity .4s; }
.cards li::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
                   background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(255, 255, 255, .05), transparent 60%); }
[data-spot]:hover li::before, [data-spot]:hover li::after, [data-spot]:hover a::before { opacity: 1; }
.cd-tag { margin: 0 0 18px; font: 12px/1.4 var(--mono); color: var(--ch-muted); }
.cards b { font: 400 23px/1.2 var(--serif); letter-spacing: -.012em; }
.cards span { font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--ch-text) 70%, var(--chamber)); }

/* research cards on paper, lit in signal red */
.studies a { position: relative; padding: 28px; transition: border-color .3s var(--ease), transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.studies a::before { background: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), color-mix(in srgb, var(--signal) 55%, transparent), transparent 65%); }
.studies a:hover { transform: translateY(-4px); border-color: var(--rule); box-shadow: var(--shadow); }
.st-num { font-size: 44px; font-variant-numeric: tabular-nums; }

/* tabs: one ink line that slides to the selected tab */
.sm-bar, .ct-bar { position: relative; }
.tab-ink { position: absolute; bottom: -1px; left: 0; height: 2px; width: var(--tw, 0); transform: translateX(var(--tx, 0));
           background: var(--ink); border-radius: 2px; transition: transform .5s var(--ease-out), width .5s var(--ease-out); }
.ct-bar .tab-ink { background: var(--hot); }
.js .sm-bar button[aria-selected=true], .js .ct-bar button[aria-selected=true] { border-bottom-color: transparent; }
.sm-bar button, .ct-bar button { transition: color .25s; }
.sm-bar button:hover, .ct-bar button:hover { color: var(--ink); }
.ct-bar button:hover { color: var(--ch-text); }
.motion .sm-panel.enter .sm-head, .motion .sm-panel.enter li, .motion .code-tabs pre.enter { animation: panelIn .55s var(--ease-out) both; }
.motion .sm-panel.enter li { animation-delay: calc(.08s + var(--i, 0) * 60ms); }
.ct-copy { margin-left: auto; align-self: center; font: 500 12px/1 var(--mono) !important; color: var(--ch-muted); border: 1px solid var(--ch-line) !important;
           border-radius: 999px; padding: 7px 12px !important; margin-bottom: 8px; }
.ct-copy:hover { color: var(--ch-text) !important; border-color: var(--ch-muted) !important; }

/* feed rows: a wash that sweeps in from the left */
.feed a { background: linear-gradient(var(--sunk), var(--sunk)) no-repeat 0 0 / 0% 100%;
          transition: background-size .5s var(--ease-out), padding-left .5s var(--ease-out); }
.feed a:hover { background-color: transparent; background-size: 100% 100%; padding-left: 20px; }

/* faq: animated height */
.faq summary { transition: color .2s, padding-left .4s var(--ease-out); }
.faq summary:hover { padding-left: 10px; }
.faq-a { overflow: hidden; }
.faq summary { font-size: clamp(19px, 1.6vw, 23px); padding: 26px 4px; }

/* closing lookup */
.closer { position: relative; isolation: isolate; margin-top: clamp(100px, 12vw, 180px); padding: clamp(72px, 9vw, 130px) 0;
          text-align: center; border-top: 1px solid var(--rule); }
.closer::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); pointer-events: none;
                  background: radial-gradient(640px 280px at 50% 42%, color-mix(in srgb, var(--signal) 8%, transparent), transparent 70%); }
.lookup input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.closer-in { max-width: 760px; margin: 0 auto; }
.closer h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -.024em; font-weight: 400; text-wrap: balance; }
.closer p { margin: 18px auto 0; font-size: 18px; color: var(--ink2); max-width: 52ch; }
.lookup { position: relative; display: flex; gap: 8px; margin: 36px auto 0; padding: 7px; background: var(--surface); border: 1px solid var(--rule2);
          border-radius: 14px; box-shadow: var(--shadow); text-align: left; transition: border-color .2s, box-shadow .3s; }
.lookup:focus-within { border-color: var(--ink); box-shadow: 0 0 0 5px var(--sunk), var(--shadow); }
.lookup input[type=search] { border: 0; box-shadow: none !important; background: transparent; font-size: 17px; padding: 12px 14px; }
.lookup .btn { flex: none; }
.lk-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 5; list-style: none; margin: 0; padding: 6px;
              background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 24px 60px -28px rgba(22, 22, 26, .35);
              animation: panelIn .3s var(--ease-out); }
.lk-results a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 12px 14px; border-radius: 9px; color: var(--ink); }
.lk-results a:hover, .lk-results a.sel { background: var(--sunk); color: var(--ink); }
.lk-results .n { font: 500 14px/1.3 var(--mono); overflow-wrap: anywhere; }
.lk-results .t { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); }
.lk-results .go { color: var(--signal); font-weight: 600; font-size: 14.5px; }

@media (max-width: 1100px) {
  .hero { min-height: 0; }
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { display: none; }
  .js .sstep-code { display: block; }
  .sstep, .sstep:first-child, .sstep:last-child { min-height: 0; padding: 36px 0; border-top: 1px solid var(--rule); }
  .motion .sstep { opacity: 1; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --head-h: 64px; }
  .cards { grid-template-columns: 1fr; }
  .sm-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .sm-bar::-webkit-scrollbar { display: none; }
  .sm-bar button { flex: none; }
  .lookup { flex-direction: column; }
  .closer { text-align: left; }
  .hero-bg { -webkit-mask-image: radial-gradient(ellipse 90% 50% at 50% 70%, #000 10%, transparent 72%);
             mask-image: radial-gradient(ellipse 90% 50% at 50% 70%, #000 10%, transparent 72%); }
}
@media (prefers-color-scheme: dark) { .dark-band { border-block: 1px solid var(--rule); } }

/* ======================================================================
   Database, submit and live scan pages
   ====================================================================== */
.sec-head h1 { font-size: clamp(38px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -.024em; font-weight: 400; text-wrap: balance; }
.sec-head h1 .mono { font-size: .56em; letter-spacing: 0; overflow-wrap: anywhere; }

/* database */
.db-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: end;
           padding: clamp(40px, 6vw, 88px) 0 clamp(28px, 3vw, 40px); }
.db-head .sec-head { margin-bottom: 0; }
.db-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule); }
.db-stats div { padding: 18px 0 16px; border-bottom: 1px solid var(--rule); }
.db-stats div:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--rule); }
.db-stats div:nth-child(even) { padding-left: 20px; }
.db-stats dt { font: 400 40px/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.db-stats dd { margin: 8px 0 0; font-size: 14px; font-weight: 500; color: var(--muted); }
.db-stats .mal dt { color: var(--mal); } .db-stats .sus dt { color: var(--sus); } .db-stats .ok dt { color: var(--ok); }
.db-tools { position: sticky; top: 0; z-index: 6; display: grid; gap: 14px; padding: 14px 0 16px; margin: 0 0 4px;
            background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.db-search { margin: 0; max-width: none; }
.kbd { align-self: center; font: 500 12px/1 var(--mono); color: var(--muted); border: 1px solid var(--rule2); border-bottom-width: 2px;
       border-radius: 6px; padding: 4px 7px; margin-right: 4px; }
.seg { position: relative; display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; width: fit-content; max-width: 100%;
       background: var(--sunk); border-radius: 12px; isolation: isolate; }
.seg a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px; font-size: 14px;
         font-weight: 500; color: var(--ink2); transition: color .25s; }
.seg a:hover { color: var(--ink); }
.seg a.on { color: var(--ink); }
.seg .n { font: 500 12px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.seg-pill { position: absolute; z-index: -1; left: 0; top: 0; width: var(--tw, 0); height: var(--th, 0);
            transform: translate(var(--tx, 0), var(--ty, 0)); background: var(--surface); border-radius: 9px;
            box-shadow: 0 1px 2px rgba(22, 22, 26, .08), 0 4px 12px -6px rgba(22, 22, 26, .2);
            transition: transform .5s var(--ease-out), width .5s var(--ease-out); }
html:not(.js) .seg a.on { background: var(--surface); }
.db-meta { margin: 10px 0 0; }
.dbl { margin-top: 12px; border-top: 1px solid var(--rule); }
.dbl-h, .dbl-r { display: grid; grid-template-columns: minmax(0, 1.1fr) 190px minmax(0, 1.6fr) 110px 110px; gap: 18px; align-items: center; }
.dbl-h { padding: 12px 14px; font-size: 12.5px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--rule); }
.dbl-r { padding: 18px 14px; color: var(--ink); border-bottom: 1px solid var(--rule); border-radius: 10px;
         background: linear-gradient(var(--sunk), var(--sunk)) no-repeat 0 0 / 0% 100%;
         transition: background-size .5s var(--ease-out); }
.dbl-r:hover { color: var(--ink); background-size: 100% 100%; }
.dbl-r[hidden] { display: none; }
.dbl-name b { display: block; font: 500 14.5px/1.35 var(--mono); overflow-wrap: anywhere; transition: color .2s; }
.dbl-r:hover .dbl-name b { color: var(--signal); }
.dbl-name small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.dbl-top { font-size: 14.5px; font-weight: 500; color: var(--ink2); }
.dbl-date { font: 13px/1.3 var(--mono); color: var(--muted); }
.dbl + .empty { margin-top: 18px; }

/* submit */
.sub-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .9fr); gap: clamp(28px, 4vw, 72px); align-items: start;
            padding-top: clamp(40px, 6vw, 88px); }
.sub-head { margin-bottom: 8px; }
.sub-card .tabs { position: relative; }
.js .sub-card .tabs button[aria-selected=true] { border-bottom-color: transparent; }
.sub-card .tab-ink { background: var(--signal); }
.field { position: relative; }
.field input { padding-right: 190px; font-size: 16px; }
.detect { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px;
          font: 500 12.5px/1 var(--sans); color: var(--muted); pointer-events: none; }
.detect.ok { color: var(--ok); } .detect.warn { color: var(--sus); }
.detect.ok::before { content: ""; width: 8px; height: 4px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
                     transform: rotate(-45deg) translateY(-2px); }
.examples { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.examples button { font: 500 12.5px/1 var(--mono); color: var(--ink2); background: var(--sunk); border: 1px solid transparent; border-radius: 999px;
                   padding: 6px 10px; cursor: pointer; transition: border-color .2s, color .2s; }
.examples button:hover { border-color: var(--rule2); color: var(--ink); }
.drop { position: relative; cursor: pointer; padding: 34px 26px; border-radius: 14px; flex-direction: column; text-align: center; gap: 12px;
        color: var(--muted); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-t b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.drop-t .hint { display: block; margin-top: 6px; }
.drop.over { border-color: var(--signal); background: var(--signal-tint); color: var(--signal); transform: scale(1.01); }
.drop.has { border-style: solid; border-color: var(--ok); color: var(--ok); }
.drop { transition: border-color .2s, background-color .2s, transform .3s var(--ease-out), color .2s; }
.drop:focus-within { outline: 2px solid var(--signal); outline-offset: 3px; }
.btn.busy { opacity: .75; cursor: progress; }
.btn.busy::after { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
                   animation: spin .8s linear infinite; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.cfg-card summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; }
.cfg-card summary::-webkit-details-marker { display: none; }
.cfg-card summary b { display: block; font: 400 21px/1.25 var(--serif); }
.cfg-card summary small { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.cfg-card summary::after { content: "+"; flex: none; font: 300 26px/1 var(--sans); color: var(--muted); transition: transform .3s var(--ease-out); }
.cfg-card[open] summary::after { transform: rotate(45deg); }
.cfg-card .cfg { padding: 0 26px; }
.cfg-card .cfg > .small-note { margin-top: 0; }
.cfg-card textarea { width: 100%; margin-top: 12px; font: 13px/1.6 var(--mono); padding: 14px 16px; color: var(--ink); background: var(--sunk);
                     border: 1px solid var(--rule2); border-radius: 10px; resize: vertical; }
.cfg-card textarea:focus { outline: none; border-color: var(--ink); }
.cfg-card .formfoot { padding: 18px 0 24px; border-top: 0; }
.sub-aside { position: sticky; top: calc(var(--head-h) + 24px); }
.next { background: var(--chamber); color: var(--ch-text); border-radius: 18px; padding: 26px 26px 22px; position: relative; overflow: hidden;
        box-shadow: 0 30px 80px -50px rgba(17, 17, 21, .6); }
.next::before { content: ""; position: absolute; inset: 0; pointer-events: none;
                background: radial-gradient(420px 220px at 100% 0%, rgba(255, 84, 104, .14), transparent 60%); }
.next-h { position: relative; margin: 0 0 18px; font: 500 12.5px/1 var(--mono); color: var(--ch-muted); }
.next ol { position: relative; list-style: none; margin: 0; padding: 0; counter-reset: nx; }
.next li { counter-increment: nx; position: relative; padding: 0 0 18px 40px; }
.next li::before { content: counter(nx); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; display: grid;
                   place-items: center; font: 500 12px/1 var(--mono); color: var(--ch-text); border: 1px solid var(--ch-line); background: var(--chamber2); }
.next li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 28px; bottom: 4px; width: 1px; background: var(--ch-line); }
.next li b { display: block; font-size: 15px; font-weight: 600; }
.next li span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.55; color: color-mix(in srgb, var(--ch-text) 66%, var(--chamber)); }
.next-foot { position: relative; margin: 6px 0 0; padding-top: 16px; border-top: 1px solid var(--ch-line); font-size: 13px; color: var(--ch-muted); }

/* live scan */
.scan-head { padding-top: clamp(40px, 6vw, 80px); margin-bottom: 28px; }
.phases { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.phases li { position: relative; padding-top: 14px; font-size: 13px; font-weight: 500; color: var(--muted); }
.phases li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: var(--rule);
                     transition: background-color .5s var(--ease-out); }
.phases li.done { color: var(--ink2); } .phases li.done::before { background: var(--ink); }
.phases li.on { color: var(--signal); }
.phases li.on::before { background: linear-gradient(90deg, var(--signal) 0 40%, var(--rule) 40%) 0 0 / 250% 100%; animation: phase 1.6s linear infinite; }
@keyframes phase { from { background-position: 100% 0; } to { background-position: 0 0; } }
.phases[data-status=failed] li.on::before { animation: none; background: var(--mal); }
.live { background: var(--chamber); color: var(--ch-text); border: 0; box-shadow: 0 40px 100px -60px rgba(17, 17, 21, .8); border-radius: 18px; }
.live .lh { border-bottom: 1px solid var(--ch-line); }
.live .lh .mono { font-size: 13.5px; }
.live .lh .lbl { color: var(--ch-muted); }
.live .bar { background: var(--ch-line); overflow: hidden; }
.live .bar i { background: var(--hot); box-shadow: 0 0 12px rgba(255, 84, 104, .6); }
.live .bar.busy i { background: linear-gradient(90deg, var(--hot), #FF8C99, var(--hot)) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.live ol { border-bottom: 1px solid var(--ch-line); }
.live ol:empty { display: none; }
.live li { color: var(--ch-text); }
.live li .st { color: var(--mint); }
.live li .res { color: var(--ch-muted); }
.live .console { max-height: 320px; overflow-y: auto; background: transparent; }

@media (max-width: 1100px) {
  .db-head, .sub-grid { grid-template-columns: minmax(0, 1fr); }
  .sub-aside { position: static; }
  .dbl-h { display: none; }
  .dbl-r { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; }
  .dbl-top { grid-column: 1 / -1; }
  .dbl-r > span:nth-child(4), .dbl-date { display: none; }
}
@media (max-width: 720px) {
  .db-stats dt { font-size: 32px; }
  .seg { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg a { flex: none; }
  .kbd { display: none; }
  .field input { padding-right: 16px; }
  .sub-card .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .sub-card .tabs::-webkit-scrollbar { display: none; }
  .sub-card .tabs button { flex: none; }
  .detect { position: static; transform: none; margin-top: 8px; }
  .phases li span { font-size: 11.5px; }
  .db-tools { position: static; }
}

/* admin (owner only) */
.adm-head { padding-top: clamp(28px, 4vw, 52px); }
.adm-msg { margin: 18px 0 0; padding: 12px 16px; border-radius: var(--r-m); background: var(--sunk); font-size: 15px; }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0; margin: 26px 0 0; border-top: 1px solid var(--rule); }
.adm-stats div { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.adm-stats dt { font: 400 34px/1 var(--serif); font-variant-numeric: tabular-nums; }
.adm-stats dd { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.adm-queue { padding: 22px 26px; }
.adm-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.adm-row input { width: 120px; padding: 10px 12px; border: 1px solid var(--rule2); border-radius: var(--r-s); font: inherit; background: var(--surface); color: var(--ink); }
.adm-h { font: 400 26px/1.2 var(--serif); margin: 40px 0 14px; }
.adm-held { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.adm-held li { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 2fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.adm-held a small { color: var(--muted); font-family: var(--mono); }
.adm-top { font-size: 14px; color: var(--ink2); min-width: 0; overflow-wrap: anywhere; }
.adm-held form { margin: 0; }
@media (max-width: 720px) { .adm-held li { grid-template-columns: minmax(0, 1fr) auto; } .adm-top { grid-column: 1 / -1; } }
