/* Dhurandhar console · Graphite.
   Serious, quiet, precise: one typeface family (Geist + Geist Mono, OFL,
   vendored), monochrome surfaces, colour only as small dots and text,
   hairline borders, small radii, one live signal (the agent status).
   House rules: no coloured strip on any edge of a card, row, bar or banner;
   no tiny monospace captions (mono only for code, hashes, endpoints, ids). */

@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: #09090b;
  --side: #0b0b0d;
  --panel: #0f0f12;
  --panel-2: #131317;
  --panel-3: #18181d;
  --line: #1e1e24;
  --line-2: #2a2a31;
  --line-3: #3a3a43;
  --text: #ededf0;
  --text-2: #b3b3bc;
  --text-3: #7f7f8a;
  --text-4: #5c5c66;

  --crit: #f0555b;
  --crit-text: #f58e92;
  --high: #ee8a4e;
  --med: #e0b043;
  --ok: #43b98c;
  --ok-text: #74d1ac;
  --sus: #a28cf6;
  --info: #8aa4ff;

  --code-bg: #0b0b0e;
  --code: #dcdce3;
  --sel: rgba(138, 164, 255, 0.14);
  --r: 10px;
  --r-sm: 6px;
  --r-xs: 4px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 400 14px/1.55 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.003em;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 1.5px solid var(--info); outline-offset: 2px; border-radius: var(--r-xs); }
[hidden] { display: none !important; }
code, pre, kbd, .mono { font-family: var(--mono); font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
::selection { background: var(--sel); }

/* ── shell ─────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px 12px 14px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 2px; color: var(--text); }
.mark { width: 20px; height: 20px; flex: none; color: var(--text); }
.mark .mark-core { fill: var(--crit); }
.brand-name { font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; }

.ws { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.ws-top { display: flex; gap: 10px; align-items: center; }
.ws-av { width: 28px; height: 28px; border-radius: 7px; background: var(--panel-3); border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--text); flex: none; }
.ws-top b { display: block; font-weight: 560; font-size: 13.5px; }
.ws-top span { display: block; color: var(--text-3); font-size: 12.5px; }
.ws-sample { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--med); }
.ws-sample::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--med); }

.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 2px; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: var(--r-xs); padding: 4px 10px; font-size: 12.5px; font-weight: 500; color: var(--text-3); cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--text-2); }
.seg button[aria-pressed="true"] { background: var(--panel-3); color: var(--text); box-shadow: 0 0 0 1px var(--line-2); }

.nav { display: flex; flex-direction: column; gap: 1px; }
.nav a { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: var(--r-sm); color: var(--text-2); font-size: 13.5px; font-weight: 450; }
.nav a svg { width: 16px; height: 16px; flex: none; color: var(--text-3); }
.nav a:hover { background: var(--panel-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--panel-3); color: var(--text); }
.nav a[aria-current="page"] svg { color: var(--text); }
.nav .n { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.nav .n.crit { color: var(--crit-text); display: inline-flex; align-items: center; gap: 6px; }
.nav .n.crit::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--crit); }

.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 12px 8px 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-3); }
.side-foot b { color: var(--text-2); font-weight: 500; }

.main { min-width: 0; display: flex; flex-direction: column; }
.bar { position: sticky; top: 0; z-index: 20; height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-3); min-width: 0; white-space: nowrap; overflow: hidden; }
.crumb b { color: var(--text); font-weight: 500; }
.crumb .sep { color: var(--text-4); }
.bar-right { display: flex; align-items: center; gap: 12px; }
.cmd { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 10px; width: 300px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--panel); color: var(--text-3); cursor: pointer; font-size: 13px; }
.cmd:hover { border-color: var(--line-3); color: var(--text-2); }
.cmd svg { width: 15px; height: 15px; }
.cmd span { flex: 1; text-align: left; }
kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid var(--line-2); border-bottom-width: 1.5px; border-radius: var(--r-xs); background: var(--panel-2); color: var(--text-3); font-size: 11.5px; line-height: 1; }
.agent { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13px; color: var(--text-2); white-space: nowrap; }
.agent .live { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.agent .live::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--ok); opacity: 0; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.7; } 80%, 100% { transform: scale(1.8); opacity: 0; } }

.notice { margin: 14px 24px 0; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--panel); font-size: 13.5px; color: var(--text-2); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.notice::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--med); flex: none; }
.notice.bad::before { background: var(--crit); }
.notice code { font-size: 12.5px; color: var(--text); }
.view { padding: 22px 24px 56px; outline: none; max-width: 1440px; width: 100%; }
.view > * { animation: fade .22s ease-out both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.loading { color: var(--text-3); padding: 40px 0; }

/* ── primitives ────────────────────────────────────── */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.pad { padding: 16px 18px; }
.ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 22px; margin-bottom: 12px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.more { font-size: 13px; color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; }
.more:hover { color: var(--text); }
.sub { color: var(--text-3); font-size: 13px; }

.page-head { margin-bottom: 18px; }
.page-head h1 { margin: 6px 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.page-head p { margin: 0; color: var(--text-2); font-size: 14px; max-width: 880px; }

.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: var(--r-xs); font-size: 12.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; background: transparent; }
.tag .d { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); flex: none; }
.tag.crit { color: var(--crit-text); }
.tag.crit .d { background: var(--crit); }
.tag.med .d { background: var(--med); }
.tag.ok { color: var(--ok-text); }
.tag.ok .d { background: var(--ok); }
.tag.sus .d { background: var(--sus); }
.tag.na .d { background: var(--text-4); }
.tag.na { color: var(--text-3); }
.tag.m { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.tag.m b { font-weight: 500; color: var(--text); }
.tag.m span { font-family: var(--sans); color: var(--text-3); font-size: 12.5px; }

.sev { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; cursor: help; }
.sev i { display: inline-flex; gap: 2px; align-items: flex-end; height: 11px; }
.sev i b { width: 3px; border-radius: 1px; background: var(--line-3); }
.sev i b:nth-child(1) { height: 5px; } .sev i b:nth-child(2) { height: 8px; } .sev i b:nth-child(3) { height: 11px; }
.sev.critical { color: var(--crit-text); } .sev.critical i b { background: var(--crit); }
.sev.high { color: var(--high); } .sev.high i b:nth-child(-n+2) { background: var(--high); }
.sev.medium { color: var(--med); } .sev.medium i b:nth-child(1) { background: var(--med); }
.sev.resolved { color: var(--text-3); letter-spacing: 0.04em; cursor: default; }

.btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--panel-2); color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--panel-3); border-color: var(--line-3); }
.btn.primary { background: var(--text); color: var(--bg); border-color: transparent; }
.btn.primary:hover { background: #ffffff; }
.btn.ghost { background: transparent; }
.btn svg { width: 14px; height: 14px; }
.btn[aria-disabled="true"] { opacity: 0.5; cursor: default; }

.copy { border: 1px solid var(--line-2); background: transparent; color: var(--text-3); border-radius: var(--r-xs); font-size: 12px; font-weight: 500; height: 22px; padding: 0 7px; cursor: pointer; }
.copy:hover { color: var(--text); border-color: var(--line-3); }
.copy.done { color: var(--ok-text); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.hash { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.hashrow { display: inline-flex; gap: 8px; align-items: center; }
.empty { padding: 28px; text-align: center; color: var(--text-3); }
.note { color: var(--text-3); font-size: 13px; }
.note b { color: var(--text-2); font-weight: 500; }

pre.code { margin: 0; padding: 11px 13px; background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 12.5px; line-height: 1.65; color: var(--code); white-space: pre-wrap; overflow-wrap: anywhere; }
.j-key { color: #9fb3ff; } .j-str { color: #8fd6b6; } .j-num { color: #f2b38f; } .j-lit { color: #c3b2ff; }

/* ── overview ──────────────────────────────────────── */
.ov { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 16px; align-items: start; }
.ov-main, .ov-rail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ov-head h1 { margin: 8px 0 6px; font-size: 28px; font-weight: 600; letter-spacing: -0.028em; line-height: 1.15; }
.ov-head h1 .n { color: var(--crit-text); }
.ov-head p { margin: 0; font-size: 14.5px; color: var(--text-2); max-width: 760px; }
.ov-head p b { color: var(--text); font-weight: 500; }

.inc { overflow: hidden; }
.inc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 18px 0; }
.inc-top .rank { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-right: 2px; }
.inc h2 { margin: 10px 18px 12px; font-size: 18px; font-weight: 560; letter-spacing: -0.015em; line-height: 1.3; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin: 0; }
.facts > div { padding: 10px 18px 12px; border-left: 1px solid var(--line); min-width: 0; }
.facts > div:first-child { border-left: 0; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-4); font-weight: 500; margin-bottom: 3px; }
.facts dd { margin: 0; font-size: 13.5px; color: var(--text); line-height: 1.4; }
.inc-foot { display: flex; gap: 8px; align-items: center; padding: 12px 18px 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.inc-foot .spacer { flex: 1; }

/* the recorded-run terminal (replay) */
.term { background: var(--code-bg); border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; line-height: 1.7; }
.panel > .term:first-child { border-top: 0; border-radius: var(--r) var(--r) 0 0; }
.term-head { display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 14px; border-bottom: 1px solid var(--line); color: var(--text-3); font-family: var(--sans); font-size: 12.5px; }
.term-head .spacer { flex: 1; }
.term-head .btn { height: 26px; padding: 0 9px; font-size: 12.5px; }
.term-body { padding: 10px 14px 12px; max-height: 340px; overflow: auto; }
.tl { display: grid; grid-template-columns: 44px 84px minmax(0, 1fr); gap: 0 12px; color: var(--code); transition: opacity .18s ease; }
.tl .tt { color: var(--text-4); }
.tl .tk { color: var(--text-3); }
.tl .tv { white-space: pre-wrap; overflow-wrap: anywhere; }
.tl.t-req .tv { color: #f0f0f4; }
.tl.t-res .tk { color: var(--high); }
.tl.t-ok .tk, .tl.t-ok .tv { color: var(--ok-text); }
.tl.pending { opacity: 0; }
.term .caret { display: inline-block; width: 7px; height: 13px; background: var(--text-2); vertical-align: -2px; animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* queue table */
.qtable { overflow: hidden; }
.qh, .qr { display: grid; grid-template-columns: 28px 100px minmax(0, 1fr) 196px 28px; gap: 12px; align-items: center; padding: 0 16px; }
.qh { height: 34px; border-bottom: 1px solid var(--line); font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-4); font-weight: 500; }
.qr { min-height: 58px; padding-top: 9px; padding-bottom: 9px; border-bottom: 1px solid var(--line); cursor: pointer; }
.qtable > .qr:last-child, .qtable > .qexp:last-child { border-bottom: 0; }
.qr:hover, .qr.hl { background: var(--panel-2); }
.qr:focus-visible { outline: none; background: var(--panel-2); box-shadow: 0 0 0 1px var(--line-3) inset; }
.qr .qn { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); }
.qr .qt { font-weight: 500; font-size: 13.5px; color: var(--text); line-height: 1.35; display: block; }
.qr .qm { font-size: 12.5px; color: var(--text-3); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.qr .qm code { color: var(--text-2); font-size: 12px; }
.qr .qs { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.qr .qd { color: var(--text-4); }
.qr .qd::before { content: "· "; }
.qr .qx { width: 26px; height: 26px; border-radius: var(--r-xs); border: 1px solid transparent; background: transparent; color: var(--text-3); display: grid; place-items: center; cursor: pointer; }
.qr .qx:hover { border-color: var(--line-2); color: var(--text); }
.qr .qx svg { width: 14px; height: 14px; transition: transform .15s; }
.qr .qx[aria-expanded="true"] svg { transform: rotate(90deg); }
.qexp { border-bottom: 1px solid var(--line); background: var(--panel-2); padding: 12px 16px 14px 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.qexp .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-4); font-weight: 500; margin-bottom: 5px; }
.qexp .acts { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }

/* KPIs */
.kpis { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.kpi { padding: 13px 14px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.kpi:nth-child(2n) { border-right: 0; }
.kpi:nth-last-child(-n+2) { border-bottom: 0; }
.kpi .k { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); font-weight: 500; display: flex; align-items: center; gap: 7px; }
.kpi .k .d { width: 6px; height: 6px; border-radius: 50%; }
.kpi .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 7px; }
.kpi .v { font-size: 26px; font-weight: 560; letter-spacing: -0.03em; line-height: 1; }
.kpi .v .of { color: var(--text-4); font-weight: 500; }
.kpi .s { font-size: 12.5px; color: var(--text-3); margin-top: 7px; line-height: 1.35; }
.spark { width: 88px; height: 26px; flex: none; overflow: visible; }
.spark polyline { fill: none; stroke: var(--text-3); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.spark .area { fill: rgba(237, 237, 240, 0.05); stroke: none; }
.spark circle { fill: var(--text); }

/* agent activity */
.feed { list-style: none; margin: 0; padding: 0; }
.fe { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); align-items: start; }
.fe:first-child { border-top: 0; padding-top: 2px; }
.fe .d { width: 6px; height: 6px; border-radius: 50%; background: var(--text-4); margin-top: 7px; justify-self: center; }
.fe .d.crit { background: var(--crit); } .fe .d.ok { background: var(--ok); } .fe .d.med { background: var(--med); } .fe .d.sus { background: var(--sus); }
.fe .t { font-size: 13px; color: var(--text); line-height: 1.4; }
.fe .t a:hover { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.fe .m { font-size: 12.5px; color: var(--text-3); margin-top: 1px; }
.fe .m code { font-size: 12px; }
.fe .w { font-size: 12px; color: var(--text-4); white-space: nowrap; font-family: var(--mono); padding-top: 1px; }
.now { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); padding: 10px 12px; margin-bottom: 12px; }
.now .h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); margin-bottom: 7px; }
.now .h b { color: var(--text); font-weight: 500; }
.now .h .spacer { flex: 1; }
.linkbtn { border: 0; background: none; color: var(--text-3); cursor: pointer; font-size: 12.5px; padding: 0; display: inline-flex; gap: 5px; align-items: center; }
.linkbtn:hover { color: var(--text); }
.linkbtn svg { width: 12px; height: 12px; }
.now ol { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.now li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 8px; padding: 2px 0; color: var(--text-2); transition: opacity .2s; }
.now li .ic { color: var(--ok-text); font-family: var(--mono); }
.now li .tm { color: var(--text-4); font-family: var(--mono); font-size: 12px; }
.now li.pending { opacity: 0.22; }
.now li.run .ic { color: var(--text-2); }

/* agent network (always in motion) */
.net { padding: 14px 12px 12px; }
.net .ph { margin-bottom: 4px; }
.net canvas { display: block; }
.net-now { font-size: 12.5px; color: var(--text-2); margin-top: 6px; min-height: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.net-key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12px; color: var(--text-3); }
.net-key span { display: inline-flex; align-items: center; gap: 6px; }
.net-key i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.live-dot { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.live-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--ok); opacity: 0; animation: ping 2.4s ease-out infinite; }

/* attack surface matrix */
.surf-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.surf-app .nm { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.surf-app .nm code { font-size: 12.5px; color: var(--text); }
.surf-app .nm span { font-size: 12.5px; color: var(--text-3); }
.cells { display: flex; flex-wrap: wrap; gap: 4px; }
.cells a { display: block; line-height: 0; }
.cell { display: block; width: 14px; height: 14px; border-radius: 3px; background: var(--panel-3); border: 1px solid var(--line-2); }
.cell.open { background: var(--crit); border-color: var(--crit); }
.cell.blocked { background: var(--med); border-color: var(--med); }
.cell.fixed { background: transparent; border-color: color-mix(in srgb, var(--ok) 70%, transparent); }
.cell.suspected { background: transparent; border-color: color-mix(in srgb, var(--sus) 75%, transparent); }
.cell.na { background: repeating-linear-gradient(135deg, var(--line-2) 0 2px, transparent 2px 4px); border-color: var(--line-2); }
.cell.hl { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--text); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 12.5px; color: var(--text-3); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend .cell { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }

/* charts */
.chart { width: 100%; height: auto; display: block; }
.chart .b { fill: var(--line-3); }
.chart .b.c { fill: var(--med); }
.chart .b:hover { fill: var(--text-3); }
.chart .b.c:hover { fill: #f0c561; }
.chart .ax { fill: var(--text-4); font: 11.5px var(--sans); }
.chart .gl { stroke: var(--line); }
.stats { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; font-size: 13px; color: var(--text-3); }
.stats b { color: var(--text); font-weight: 500; }

.cov-row { display: grid; grid-template-columns: 116px minmax(0, 1fr) 54px; gap: 12px; align-items: center; padding: 6px 0; }
.cov-row code { font-size: 12.5px; color: var(--text-2); }
.bar-t { height: 6px; border-radius: 3px; background: var(--panel-3); overflow: hidden; display: flex; }
.bar-t i { display: block; height: 100%; background: var(--text-2); }
.bar-t i.na { background: repeating-linear-gradient(135deg, var(--line-3) 0 2px, transparent 2px 4px); }
.cov-row .p { text-align: right; font-size: 12.5px; color: var(--text-2); font-family: var(--mono); }
.gaps { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.gaps div { font-size: 13px; color: var(--text-2); padding: 8px 10px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); }
.gaps b { color: var(--text); font-weight: 500; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

/* ── queue page ───────────────────────────────────── */
.tabs { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 2px; margin-bottom: 14px; background: var(--panel); flex-wrap: wrap; }
.tab { border: 0; background: transparent; border-radius: var(--r-xs); padding: 5px 11px; font-size: 13px; font-weight: 500; color: var(--text-3); cursor: pointer; display: inline-flex; gap: 7px; align-items: center; }
.tab:hover { color: var(--text-2); }
.tab .c { font-family: var(--mono); font-size: 12px; color: var(--text-4); }
.tab[aria-pressed="true"] { background: var(--panel-3); color: var(--text); box-shadow: 0 0 0 1px var(--line-2); }
.tab[aria-pressed="true"] .c { color: var(--text-3); }
.order-note { font-size: 13px; color: var(--text-3); margin: 0 0 12px; display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: center; }
.order-note kbd { margin: 0 2px; }
.lead-h { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); font-weight: 500; margin: 18px 0 8px; display: flex; gap: 8px; align-items: center; }
.lr { display: grid; grid-template-columns: 130px minmax(0, 1fr) minmax(0, 300px); gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: start; }
.lr:last-child { border-bottom: 0; }
.lr .t { font-weight: 500; font-size: 13.5px; }
.lr .why { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.lr .where { font-family: var(--mono); font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; }

/* ── exploit page ─────────────────────────────────── */
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--text-3); font-size: 13px; margin-bottom: 12px; }
.back:hover { color: var(--text); }
.xh { margin-bottom: 16px; }
.xh .tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.xh h1 { margin: 0 0 6px; font-size: 24px; font-weight: 600; letter-spacing: -0.022em; line-height: 1.2; }
.xh p { margin: 0; color: var(--text-2); font-size: 13.5px; max-width: 1000px; }
.xh p code { font-size: 12.5px; color: var(--text); }
.x-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.x-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.impact { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin: 0; }
.impact > div { padding: 10px 0; border-top: 1px solid var(--line); }
.impact > div:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.impact .wide { grid-column: 1 / -1; }
.impact dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-4); font-weight: 500; margin-bottom: 3px; }
.impact dd { margin: 0; font-size: 13.5px; color: var(--text); }
.diff { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--code-bg); }
.diff-f { display: flex; justify-content: space-between; gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.diff-f code { color: var(--text-2); font-size: 12px; }
.dl { display: grid; grid-template-columns: 22px minmax(0, 1fr); font-family: var(--mono); font-size: 12.5px; line-height: 1.7; }
.dl .ds { text-align: center; color: var(--text-4); user-select: none; }
.dl code { white-space: pre-wrap; overflow-wrap: anywhere; padding-right: 10px; color: var(--code); }
.dl.add { background: rgba(67, 185, 140, 0.09); } .dl.add .ds { color: var(--ok-text); }
.dl.del { background: rgba(240, 85, 91, 0.09); } .dl.del .ds { color: var(--crit-text); }
.okline { display: flex; gap: 10px; align-items: flex-start; border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); border-radius: var(--r-sm); padding: 9px 11px; font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.okline::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-top: 7px; flex: none; }
.okline b { color: var(--text); font-weight: 500; }
.trail { width: 100%; border-collapse: collapse; font-size: 13px; }
.trail th { text-align: left; font-weight: 500; color: var(--text-4); font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; padding: 0 12px 8px 0; border-bottom: 1px solid var(--line); }
.trail td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.trail tr:last-child td { border-bottom: 0; }
.trail .ok { color: var(--ok-text); } .trail .bad { color: var(--crit-text); }

/* ── apps / prs / techniques / evidence ───────────── */
.app-h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.app-h code { font-size: 14px; color: var(--text); font-weight: 500; }
.app-h .about { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.app-h .pct { font-family: var(--mono); font-size: 13px; color: var(--text-2); text-align: right; white-space: nowrap; }
.app-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 12px; }
.eps { border-top: 1px solid var(--line); margin-top: 12px; }
.ep { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.ep:last-child { border-bottom: 0; }
.ep code { font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; }
.ep .cell { width: 10px; height: 10px; border-radius: 2px; }
.ep .st { color: var(--text-3); white-space: nowrap; }
.ep a.st { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 500; color: var(--text-4); font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--panel-2); }
.tbl td.t { color: var(--text); }
.tbl .mono { font-size: 12.5px; white-space: nowrap; }
.tbl .r { text-align: right; }
.tbl a:hover { text-decoration: underline; text-decoration-color: var(--line-3); }

.tech { margin-bottom: 14px; }
.tech-h { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.tech h3 { margin: 0; font-size: 15.5px; font-weight: 560; letter-spacing: -0.01em; }
.tech p { margin: 4px 0 12px; color: var(--text-2); font-size: 13.5px; }
.tech-res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.tech-res > div { padding: 10px 12px; border-left: 1px solid var(--line); font-size: 13px; }
.tech-res > div:first-child { border-left: 0; }
.tech-res code { font-size: 12.5px; color: var(--text); display: block; margin-bottom: 6px; }
.tech-res .why { color: var(--text-3); margin-top: 6px; font-size: 12.5px; }

.seal { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 18px 20px; margin-bottom: 16px; }
.seal-mark { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.seal-mark svg { width: 22px; height: 22px; }
.seal-mark.ok { color: var(--ok-text); } .seal-mark.bad { color: var(--crit-text); } .seal-mark.unk { color: var(--text-3); }
.seal-facts { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-2); border-left: 1px solid var(--line); padding-left: 22px; }
.seal-facts b { color: var(--text); font-weight: 500; }
.seal-acts { display: flex; flex-direction: column; gap: 8px; }

/* ── command bar ──────────────────────────────────── */
.palette { position: fixed; inset: 0; z-index: 100; background: rgba(5, 5, 7, 0.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding-top: 14vh; animation: fade .12s ease-out; }
.pal-box { width: min(680px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); overflow: hidden; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 50px; border-bottom: 1px solid var(--line); }
.pal-in svg { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.pal-in input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--text); }
.pal-in input::placeholder { color: var(--text-4); }
.pal-list { max-height: 52vh; overflow-y: auto; padding: 6px; }
.pal-g { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-4); font-weight: 500; padding: 10px 10px 4px; }
.pal-i { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; }
.pal-i[aria-selected="true"] { background: var(--panel-3); }
.pal-i .ic { width: 16px; height: 16px; color: var(--text-3); }
.pal-i .tx { min-width: 0; }
.pal-i .tt { font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-i .mt { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-i .rt { display: flex; align-items: center; gap: 8px; }
.pal-foot { display: flex; gap: 16px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.pal-foot kbd { margin-right: 4px; }
.pal-note { margin-left: auto; color: var(--text-4); }
.pal-empty { padding: 26px 12px; text-align: center; color: var(--text-3); font-size: 13.5px; }

.tip { position: fixed; z-index: 120; pointer-events: none; max-width: 340px; background: var(--panel-3); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 7px 10px; font-size: 12.5px; color: var(--text); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); line-height: 1.45; }
.tip .tm { color: var(--text-3); display: block; }

/* ── responsive ───────────────────────────────────── */
@media (max-width: 1280px) {
  .ov { grid-template-columns: minmax(0, 1fr); }
  .qh, .qr { grid-template-columns: 28px 100px minmax(0, 1fr) 180px 28px; }
}
@media (max-width: 1100px) {
  .x-grid, .grid-2, .grid-3, .surf-apps { grid-template-columns: minmax(0, 1fr); }
  .cmd { width: 220px; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .side-foot { display: none; }
  .bar { position: static; height: auto; padding: 10px 16px; flex-wrap: wrap; }
  .cmd { width: 100%; }
  .view { padding: 16px 16px 40px; }
  .notice { margin: 12px 16px 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { border-left: 0; }
  .qh { display: none; }
  .qr { grid-template-columns: 26px minmax(0, 1fr) 28px; }
  .qr .qsev, .qr .qs { grid-column: 2; }
  .qexp, .lr, .tech-res, .seal { grid-template-columns: minmax(0, 1fr); }
  .tech-res > div { border-left: 0; border-top: 1px solid var(--line); }
  .seal-facts { border-left: 0; padding-left: 0; }
  .tbl .hide-sm { display: none; }
  .tl { grid-template-columns: 76px minmax(0, 1fr); }
  .tl .tt { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .side, .bar, .notice, .palette, .tip { display: none !important; }
  .shell { display: block; }
}

/* ── P1-04: members + sign-in pages (hairlines only, no edge strips) ── */
.mem-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 14px; }
.mem-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-3); min-width: 200px; flex: 1; }
.mem-form input, .mem-form select { height: 32px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--panel-2); color: var(--text); font: inherit; font-size: 13px; }
.mem-form input:focus, .mem-form select:focus { outline: none; border-color: var(--line-3); }
.mem-note { font-size: 12.5px; color: var(--text-4); }
.side-foot .btn { margin-top: 6px; align-self: flex-start; height: 28px; }
.auth-page { max-width: 560px; margin: 12vh auto; padding: 0 24px; color: var(--text-2); font-size: 14px; }
.auth-page h1 { color: var(--text); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.auth-page code { color: var(--text); word-break: break-all; }
/* BILL-02 billing + PW-04 7a deletion (uniform hairline panels; no edge strips) */
.bill-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.bill-stat { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.bill-stat span { font-size: 12px; color: var(--text-3); }
.bill-stat b { font-size: 22px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.bill-buy { margin-top: 14px; padding: 14px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.bill-buy .tick { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.bill-buy .tick input { width: 16px; height: 16px; accent-color: var(--text); }
.bill-buy .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* DEF-3b: incidents and traces (dots + text only; no edge stripes) */
.inc-mode { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.inc-back { margin: -6px 0 12px; font-size: 13px; color: var(--text-3); }
.inc-back a:hover { color: var(--text); }
.inc-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.inc-facts > div { padding: 12px 14px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.inc-facts > div:first-child { border-left: 0; }
.inc-facts .lbl, .inc-row .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-4); font-weight: 500; }
.inc-facts .v { color: var(--text); font-size: 13.5px; overflow-wrap: anywhere; }
.inc-sec { margin-top: 14px; padding: 14px; }
.inc-sec > .note { margin: 0; }
.inc-pack { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.inc-pack > .note { margin: 0; }
.inc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-2); min-width: 0; }
.inc-row .t { color: var(--text); overflow-wrap: anywhere; }
.inc-acts { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.inc-pre { max-height: 320px; overflow: auto; }
.inc-draft { border-top: 1px solid var(--line); padding: 14px 0 4px; display: flex; flex-direction: column; gap: 9px; }
.inc-draft:first-of-type { border-top: 0; padding-top: 0; }
.inc-draft .ph { margin-bottom: 0; flex-wrap: wrap; }
.inc-draft .ph b { font-weight: 600; color: var(--text); font-size: 14px; }
.inc-draft > .note { margin: 0; }
.inc-ua { max-width: 340px; overflow-wrap: anywhere; font-size: 12.5px; }
.inc-req code { overflow-wrap: anywhere; }
@media (max-width: 1100px) { .inc-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .inc-facts > div:nth-child(3n + 1) { border-left: 0; } .inc-facts > div:nth-child(n + 4) { border-top: 1px solid var(--line); } }
@media (max-width: 860px) { .inc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .inc-facts > div { border-left: 1px solid var(--line); border-top: 0; } .inc-facts > div:nth-child(odd) { border-left: 0; } .inc-facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); } }
.inc-scroll { overflow-x: auto; }
.inc-as { white-space: nowrap; }
@media (max-width: 860px) { .inc-as { display: block; } .inc-scroll .tbl td, .inc-scroll .tbl th { padding-left: 10px; padding-right: 10px; } }
.inc-scroll td:first-child code { white-space: nowrap; }

/* BILL-04: fair-use push meter (a filled bar, no edge stripe) */
.push-meter { margin-top: 14px; padding: 14px 16px; }
.push-meter-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: var(--text-2); }
.push-meter-head b { font-size: 18px; color: var(--text); font-variant-numeric: tabular-nums; }
.push-meter-bar { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin: 10px 0 8px; }
.push-meter-bar i { display: block; height: 100%; background: var(--low, #3a7); border-radius: 999px; }
.push-meter-bar.near i, .push-meter-bar.over i { background: var(--med); }
.push-meter-bar.paused i { background: var(--crit); }
.push-banner span { flex: 1 1 320px; }
