/* PUI — "product UI" re-creations of the ThreatResponder console for the website.
   Every panel is drawn at a fixed design size inside .pu-stage and scaled to its host, so the
   console reads the same at 1280 and 3440. Skins re-map the console palette to each website
   variant (the product is "adapted", never a raw screenshot). */

.pui {
  --pu-bg: #0b1433; --pu-bg-2: #0e1a40; --pu-panel: #111d47; --pu-panel-2: #16245a; --pu-raise: #1b2b66;
  --pu-line: rgba(143, 160, 224, .16); --pu-line-2: rgba(143, 160, 224, .28);
  --pu-text: #eef1fb; --pu-text-2: #aeb8de; --pu-muted: #7885b6;
  --pu-accent: #7d96f2; --pu-accent-2: #a9b9f7; --pu-accent-soft: rgba(125, 150, 242, .16); --pu-on-accent: #0b1433;
  --pu-crit: #ff5a61; --pu-crit-soft: rgba(255, 90, 97, .15);
  --pu-high: #ff9d4d; --pu-high-soft: rgba(255, 157, 77, .15);
  --pu-warn: #f3c552; --pu-warn-soft: rgba(243, 197, 82, .15);
  --pu-ok: #3ed3a1; --pu-ok-soft: rgba(62, 211, 161, .14);
  --pu-purple: #b095ff; --pu-purple-soft: rgba(176, 149, 255, .15);
  --pu-cyan: #5fcaff;
  --pu-mitre: #6d86e6;
  --pu-shadow: 0 10px 28px rgba(3, 8, 28, .45);
  --pu-font: "Gotham Pro", "Montserrat", "Segoe UI", system-ui, sans-serif;
  --pu-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --pu-radius: 8px;
  position: relative; display: block; width: 100%; overflow: hidden; text-align: left;
  background: var(--pu-bg); color: var(--pu-text);
  border-radius: var(--pu-frame-radius, 12px);
  contain: layout paint;
}
.pui.skin-light {
  --pu-bg: #f2f4fa; --pu-bg-2: #eaeef8; --pu-panel: #ffffff; --pu-panel-2: #f6f8fd; --pu-raise: #eef2fc;
  --pu-line: #e1e6f2; --pu-line-2: #cdd5ea;
  --pu-text: #141d45; --pu-text-2: #4a5683; --pu-muted: #7d88ae;
  --pu-accent: #3552c9; --pu-accent-2: #5b74dc; --pu-accent-soft: rgba(53, 82, 201, .09); --pu-on-accent: #fff;
  --pu-crit: #e2313a; --pu-crit-soft: rgba(226, 49, 58, .09);
  --pu-high: #e5761b; --pu-high-soft: rgba(229, 118, 27, .1);
  --pu-warn: #b98300; --pu-warn-soft: rgba(185, 131, 0, .1);
  --pu-ok: #11916a; --pu-ok-soft: rgba(17, 145, 106, .1);
  --pu-purple: #6c4bd6; --pu-purple-soft: rgba(108, 75, 214, .09);
  --pu-cyan: #0f7fc2; --pu-mitre: #4c66cf;
  --pu-shadow: 0 8px 22px rgba(20, 29, 69, .08);
}
.pui.skin-paper {
  --pu-bg: #efebe2; --pu-bg-2: #e9e4d8; --pu-panel: #fbf9f4; --pu-panel-2: #f5f2ea; --pu-raise: #efe9dc;
  --pu-line: #ddd6c6; --pu-line-2: #cbc2ae;
  --pu-text: #1a2140; --pu-text-2: #4d5170; --pu-muted: #857f70;
  --pu-accent: #374b8b; --pu-accent-2: #5569aa; --pu-accent-soft: rgba(55, 75, 139, .1); --pu-on-accent: #fff;
  --pu-crit: #c8303a; --pu-crit-soft: rgba(200, 48, 58, .1);
  --pu-high: #c46419; --pu-high-soft: rgba(196, 100, 25, .1);
  --pu-warn: #9c7400; --pu-warn-soft: rgba(156, 116, 0, .1);
  --pu-ok: #2c7a5c; --pu-ok-soft: rgba(44, 122, 92, .1);
  --pu-purple: #5d4a9e; --pu-purple-soft: rgba(93, 74, 158, .1);
  --pu-cyan: #2a6f8f; --pu-mitre: #4a5d9c;
  --pu-shadow: 0 8px 20px rgba(60, 50, 30, .08);
}
.pui.skin-graphite {
  --pu-bg: #131519; --pu-bg-2: #171a1f; --pu-panel: #1c1f25; --pu-panel-2: #22262d; --pu-raise: #292d35;
  --pu-line: rgba(236, 233, 226, .09); --pu-line-2: rgba(236, 233, 226, .17);
  --pu-text: #ece9e2; --pu-text-2: #aba79d; --pu-muted: #7d7a72;
  --pu-accent: #93a6ec; --pu-accent-2: #b6c3f4; --pu-accent-soft: rgba(147, 166, 236, .14); --pu-on-accent: #131519;
  --pu-crit: #f23e45; --pu-crit-soft: rgba(242, 62, 69, .15);
  --pu-high: #e8894a; --pu-high-soft: rgba(232, 137, 74, .14);
  --pu-warn: #dcb65c; --pu-warn-soft: rgba(220, 182, 92, .14);
  --pu-ok: #86c9a8; --pu-ok-soft: rgba(134, 201, 168, .13);
  --pu-purple: #b3a1e8; --pu-purple-soft: rgba(179, 161, 232, .13);
  --pu-cyan: #8cc6d9; --pu-mitre: #8193d6;
  --pu-shadow: 0 10px 26px rgba(0, 0, 0, .45);
}
.pui.skin-royal {
  --pu-bg: #0d1b52; --pu-bg-2: #11215f; --pu-panel: #152768; --pu-panel-2: #1a2f77; --pu-raise: #213886;
  --pu-line: rgba(170, 188, 255, .16); --pu-line-2: rgba(170, 188, 255, .3);
  --pu-text: #f1f4ff; --pu-text-2: #b8c3ef; --pu-muted: #8391c9;
  --pu-accent: #8ea6ff; --pu-accent-soft: rgba(142, 166, 255, .17); --pu-on-accent: #0d1b52;
  --pu-shadow: 0 12px 30px rgba(3, 8, 40, .5);
}

.pui * { box-sizing: border-box; }
.pu-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; font-family: var(--pu-font); font-size: 14px; line-height: 1.35; color: var(--pu-text); background: var(--pu-bg); -webkit-font-smoothing: antialiased; }
.pu-stage .mono { font-family: var(--pu-mono); }
.pu-i { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: middle; }
.pu-stage .grow { flex: 1; }
.pu-stage .crit { color: var(--pu-crit); }
.pu-stage .ok { color: var(--pu-ok); }
.pu-stage .warn { color: var(--pu-warn); }
.pu-stage .high { color: var(--pu-high); }
.pu-stage .acc { color: var(--pu-accent); }
.pu-stage .dim { color: var(--pu-text-2); }
.pu-stage .mut { color: var(--pu-muted); }

/* --- app chrome --- */
.pu-app { position: absolute; inset: 0; display: grid; grid-template-columns: 60px 1fr; grid-template-rows: 56px 1fr; }
.pu-app.no-rail { grid-template-columns: 1fr; }
.pu-app.no-rail .pu-rail { display: none; }
.pu-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 0 22px 0 18px; border-bottom: 1px solid var(--pu-line); background: var(--pu-bg-2); }
.pu-mark { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.pu-mark .cross { width: 22px; height: 22px; position: relative; }
.pu-mark .cross::before, .pu-mark .cross::after { content: ""; position: absolute; background: var(--pu-crit); border-radius: 1px; }
.pu-mark .cross::before { left: 8px; top: 2px; width: 6px; height: 18px; }
.pu-mark .cross::after { left: 2px; top: 8px; width: 18px; height: 6px; }
.pu-crumb { color: var(--pu-text-2); font-size: 13px; }
.pu-crumb b { color: var(--pu-text); font-weight: 600; }
.pu-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--pu-line); border-radius: 9px; background: var(--pu-panel); }
.pu-tabs span { padding: 6px 12px; border-radius: 6px; font-size: 12.5px; color: var(--pu-text-2); font-weight: 500; }
.pu-tabs span.on { background: var(--pu-accent-soft); color: var(--pu-text); font-weight: 700; box-shadow: inset 0 0 0 1px var(--pu-line-2); }
.pu-pill { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border: 1px solid var(--pu-line); border-radius: 8px; font-size: 12.5px; color: var(--pu-text-2); background: var(--pu-panel); white-space: nowrap; }
.pu-pill b { color: var(--pu-text); font-weight: 600; }
.pu-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--pu-accent); color: var(--pu-on-accent); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.pu-rail { border-right: 1px solid var(--pu-line); background: var(--pu-bg-2); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0; }
.pu-rail i { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--pu-muted); }
.pu-rail i.on { background: var(--pu-accent-soft); color: var(--pu-accent); }
.pu-rail i .pu-i { width: 18px; height: 18px; }
.pu-rail hr { width: 24px; border: 0; border-top: 1px solid var(--pu-line); margin: 6px 0; }
.pu-body { position: relative; padding: 18px 20px; overflow: hidden; }

.pu-card { background: var(--pu-panel); border: 1px solid var(--pu-line); border-radius: var(--pu-radius); box-shadow: var(--pu-shadow); }
.pu-h { display: flex; align-items: center; gap: 10px; }
.pu-h .t { font-weight: 700; font-size: 15px; letter-spacing: -.005em; }
.pu-h .s { font-size: 12px; color: var(--pu-text-2); }
.pu-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--pu-accent-soft); color: var(--pu-accent); flex: none; }
.pu-ico.crit { background: var(--pu-crit-soft); color: var(--pu-crit); }
.pu-ico.ok { background: var(--pu-ok-soft); color: var(--pu-ok); }
.pu-ico.warn { background: var(--pu-warn-soft); color: var(--pu-warn); }
.pu-ico.purple { background: var(--pu-purple-soft); color: var(--pu-purple); }
.pu-chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; background: var(--pu-accent-soft); color: var(--pu-accent); }
.pu-chip.crit { background: var(--pu-crit-soft); color: var(--pu-crit); }
.pu-chip.high { background: var(--pu-high-soft); color: var(--pu-high); }
.pu-chip.warn { background: var(--pu-warn-soft); color: var(--pu-warn); }
.pu-chip.ok { background: var(--pu-ok-soft); color: var(--pu-ok); }
.pu-chip.purple { background: var(--pu-purple-soft); color: var(--pu-purple); }
.pu-chip.plain { background: transparent; color: var(--pu-text-2); box-shadow: inset 0 0 0 1px var(--pu-line-2); }
.pu-chip .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pu-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 8px; font-size: 13px; font-weight: 700; background: var(--pu-accent); color: var(--pu-on-accent); white-space: nowrap; transition: transform .2s, box-shadow .2s; }
.pu-btn.ghost { background: transparent; color: var(--pu-text); box-shadow: inset 0 0 0 1px var(--pu-line-2); }
.pu-btn.danger { background: var(--pu-crit-soft); color: var(--pu-crit); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pu-crit) 45%, transparent); }
.pu-btn.pressed { transform: scale(.96); box-shadow: 0 0 0 6px var(--pu-accent-soft); }
.pu-btn.danger.pressed { box-shadow: 0 0 0 6px var(--pu-crit-soft), inset 0 0 0 1px var(--pu-crit); }
.pu-label { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pu-muted); }
.pu-num { font-variant-numeric: tabular-nums; }
.pu-caret::after { content: ""; display: inline-block; width: 7px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--pu-accent); animation: puBlink 1s steps(1) infinite; }
@keyframes puBlink { 50% { opacity: 0; } }
.pu-pulse { animation: puPulse 1.8s ease-out infinite; }
@keyframes puPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pu-crit) 55%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }

/* --- overview --- */
.ov-tiles { display: grid; grid-template-columns: 1.18fr 1fr 1fr 1fr 1fr; gap: 14px; }
.ov-tile { padding: 14px 16px 12px; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; height: 176px; }
.ov-tile .pu-h .t { font-size: 13.5px; }
.ov-tile .flag { margin-left: auto; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.ov-tile .flag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ov-big { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.ov-big small { font-size: 12px; font-weight: 500; color: var(--pu-text-2); letter-spacing: 0; margin-left: 6px; }
.ov-foot { font-size: 11.5px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.ov-foot .mut { font-weight: 500; }
.ov-post { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.ov-ring { position: relative; width: 96px; height: 96px; }
.ov-ring svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.ov-ring .v { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ov-ring .v b { font-size: 28px; line-height: 1; font-weight: 700; }
.ov-ring .v span { font-size: 9px; font-weight: 700; letter-spacing: .1em; color: var(--pu-crit); margin-top: 3px; }
.ov-kv { display: grid; gap: 5px; font-size: 11.5px; color: var(--pu-text-2); }
.ov-kv div { display: flex; justify-content: space-between; }
.ov-kv b { color: var(--pu-crit); font-weight: 700; }
.ov-spark { display: flex; align-items: flex-end; gap: 4px; height: 44px; }
.ov-spark i { flex: 1; background: color-mix(in srgb, var(--pu-crit) 55%, var(--pu-panel)); border-radius: 2px 2px 0 0; transform-origin: bottom; }
.ov-spark i.hot { background: var(--pu-crit); }
.ov-seg { display: flex; height: 9px; border-radius: 5px; overflow: hidden; gap: 2px; background: var(--pu-line); }
.ov-seg i { display: block; height: 100%; }
.ov-leg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; font-size: 11px; color: var(--pu-text-2); }
.ov-leg span { display: flex; align-items: center; gap: 6px; }
.ov-leg span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.ov-leg b { margin-left: auto; color: var(--pu-text); font-weight: 600; }
.ov-row { display: grid; grid-template-columns: 1.08fr 1fr; gap: 14px; margin-top: 14px; }
.ov-att, .ov-mitre { padding: 16px 18px; height: 506px; display: flex; flex-direction: column; gap: 14px; }
.ov-banner { border: 1px solid color-mix(in srgb, var(--pu-crit) 40%, transparent); border-left: 3px solid var(--pu-crit); background: var(--pu-crit-soft); border-radius: 8px; padding: 14px 16px; display: grid; grid-template-columns: 40px 1fr auto; gap: 4px 14px; align-items: center; }
.ov-banner .pu-ico { grid-row: span 2; width: 40px; height: 40px; }
.ov-banner .k { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--pu-crit); }
.ov-banner .h { font-size: 15px; font-weight: 700; }
.ov-banner .facts { grid-column: 1 / -1; display: flex; gap: 18px; font-size: 11.5px; color: var(--pu-text-2); padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--pu-line); }
.ov-banner .facts span { display: inline-flex; align-items: center; gap: 6px; }
.ov-banner .pu-btn { grid-row: span 2; background: var(--pu-crit); color: #fff; }
.ov-arrived { display: grid; gap: 8px; }
.ov-arrived .bars { display: flex; align-items: flex-end; gap: 7px; height: 92px; border-bottom: 1px solid var(--pu-line); }
.ov-arrived .bars div { flex: 1; display: flex; flex-direction: column-reverse; gap: 1px; transform-origin: bottom; }
.ov-arrived .bars i { display: block; border-radius: 1px; }
.ov-list { display: grid; gap: 2px; }
.ov-li { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 12px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--pu-line); }
.ov-li .pu-ico { width: 30px; height: 30px; }
.ov-li .t { font-size: 12.5px; font-weight: 600; }
.ov-li .s { font-size: 11px; color: var(--pu-muted); }
.ov-li .ago { font-size: 11px; color: var(--pu-muted); }
.ov-seg-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--pu-line); border-radius: 8px; padding: 3px; font-size: 12.5px; color: var(--pu-text-2); text-align: center; }
.ov-seg-tabs span { padding: 7px; border-radius: 6px; }
.ov-seg-tabs span.on { background: var(--pu-accent-soft); color: var(--pu-text); font-weight: 700; box-shadow: inset 0 0 0 1px var(--pu-line-2); }
.ov-tac { display: grid; grid-template-columns: 30px 190px 1fr 36px; gap: 12px; align-items: center; }
.ov-tac .pu-ico { width: 30px; height: 30px; background: var(--pu-panel-2); color: var(--pu-text-2); }
.ov-tac .n { font-size: 12.5px; font-weight: 700; }
.ov-tac .s { font-size: 10.5px; color: var(--pu-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-tac .bar { height: 12px; border-radius: 3px; background: var(--pu-panel-2); overflow: hidden; }
.ov-tac .bar i { display: block; height: 100%; background: var(--pu-mitre); border-radius: 3px; }
.ov-tac .c { font-size: 15px; font-weight: 700; text-align: right; }
.ov-insight { margin-top: auto; border: 1px dashed var(--pu-line-2); border-radius: 8px; padding: 12px 14px; font-size: 12px; color: var(--pu-text-2); display: flex; gap: 10px; align-items: flex-start; }
.ov-insight b { color: var(--pu-text); }

/* --- threat story --- */
.ts-head { position: absolute; left: 0; right: 0; top: 0; height: 104px; padding: 18px 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; border-bottom: 1px solid var(--pu-line); background: var(--pu-bg-2); }
.ts-sev { width: 70px; height: 58px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--pu-high) 50%, transparent); background: var(--pu-high-soft); color: var(--pu-high); display: grid; place-content: center; text-align: center; }
.ts-sev b { font-size: 17px; line-height: 1; }
.ts-sev span { font-size: 9px; font-weight: 700; letter-spacing: .12em; margin-top: 4px; }
.ts-title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.ts-meta { display: flex; gap: 14px; font-size: 12px; color: var(--pu-text-2); margin-top: 7px; align-items: center; }
.ts-meta .mono { color: var(--pu-text); font-size: 11.5px; }
.ts-meta .tt { font-family: var(--pu-mono); font-size: 10px; padding: 2px 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--pu-line-2); color: var(--pu-text-2); }
.ts-when { text-align: right; font-family: var(--pu-mono); font-size: 10.5px; color: var(--pu-muted); line-height: 1.7; }
.ts-when b { color: var(--pu-text); font-weight: 500; }
.ts-status { position: absolute; left: 0; top: 104px; height: 84px; padding: 12px 24px; display: flex; gap: 10px; align-items: stretch; border-bottom: 1px solid var(--pu-line); }
.ts-cell { border: 1px solid var(--pu-line); border-radius: 8px; padding: 9px 13px; background: var(--pu-panel); min-width: 150px; display: grid; align-content: center; gap: 3px; transition: border-color .4s, background .4s; }
.ts-cell .k { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; color: var(--pu-muted); }
.ts-cell .v { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.ts-cell .v::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ts-cell .s { font-size: 10.5px; color: var(--pu-muted); }
.ts-cell.flip { border-color: color-mix(in srgb, var(--pu-ok) 50%, transparent); background: var(--pu-ok-soft); }
.ts-acts { display: flex; gap: 10px; align-items: center; margin-left: 8px; }
.ts-canvas { position: absolute; left: 0; top: 188px; bottom: 64px; overflow: hidden; background:
  radial-gradient(420px 300px at 64% 52%, color-mix(in srgb, var(--pu-crit) 13%, transparent), transparent 70%),
  radial-gradient(360px 300px at 16% 56%, color-mix(in srgb, var(--pu-ok) 9%, transparent), transparent 70%); }
.ts-canvas .grid { position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--pu-text) 12%, transparent) 1px, transparent 1.4px); background-size: 22px 22px; opacity: .45; }
.ts-chap { position: absolute; top: 18px; }
.ts-chap .k { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; display: flex; align-items: center; gap: 8px; }
.ts-chap .k::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.ts-chap .h { font-size: 16px; font-weight: 700; margin-top: 6px; }
.ts-chap .s { font-size: 11.5px; color: var(--pu-text-2); margin-top: 3px; }
.ts-svg { position: absolute; inset: 0; overflow: visible; }
.ts-svg path { fill: none; stroke-width: 2.4; stroke-linecap: round; }
.ts-svg .ring { fill: none; stroke: var(--pu-line-2); stroke-dasharray: 3 6; }
.ts-node { position: absolute; width: 184px; min-height: 60px; padding: 9px 12px; border-radius: 9px; background: var(--pu-panel); border: 1px solid var(--pu-line-2); box-shadow: var(--pu-shadow); display: grid; grid-template-columns: 30px 1fr; gap: 1px 10px; align-items: center; }
.ts-node .pu-ico { grid-row: span 3; width: 30px; height: 30px; }
.ts-node .k { font-size: 9px; font-weight: 700; letter-spacing: .12em; color: var(--c, var(--pu-muted)); }
.ts-node .n { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-node .p { font-family: var(--pu-mono); font-size: 9.5px; color: var(--pu-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-node.entry { --c: var(--pu-ok); border-color: color-mix(in srgb, var(--pu-ok) 38%, var(--pu-line)); }
.ts-node.impact { --c: var(--pu-crit); border-color: color-mix(in srgb, var(--pu-crit) 40%, var(--pu-line)); }
.ts-node.persist { --c: var(--pu-purple); border-color: color-mix(in srgb, var(--pu-purple) 40%, var(--pu-line)); }
.ts-core { position: absolute; width: 150px; text-align: center; }
.ts-core .hex { width: 96px; height: 96px; margin: 0 auto; position: relative; display: grid; place-items: center; }
.ts-core .hex svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ts-core .hex .pu-i { width: 30px; height: 30px; color: var(--pu-crit); position: relative; }
.ts-core .tag { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: .14em; color: var(--pu-crit); padding: 3px 7px; border-radius: 4px; background: var(--pu-crit-soft); margin-bottom: 8px; }
.ts-core .n { font-weight: 700; font-size: 15px; margin-top: 10px; }
.ts-core .p { font-family: var(--pu-mono); font-size: 10px; color: var(--pu-muted); }
.ts-core .halo { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--pu-crit) 40%, transparent); }
.ts-step { position: absolute; display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px 0 4px; border-radius: 999px; background: var(--pu-panel); border: 1px solid var(--pu-line-2); font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.ts-step i { font-style: normal; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; color: #fff; background: var(--c, var(--pu-accent)); }
.ts-replay { position: absolute; left: 0; bottom: 0; height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 22px; border-top: 1px solid var(--pu-line); background: var(--pu-bg-2); }
.ts-play { width: 38px; height: 38px; border-radius: 50%; background: var(--pu-accent); color: var(--pu-on-accent); display: grid; place-items: center; flex: none; }
.ts-dots { display: flex; gap: 5px; }
.ts-dots i { width: 24px; height: 5px; border-radius: 3px; background: var(--pu-line-2); transition: background .3s; }
.ts-dots i.on { background: var(--pu-accent); }
.ts-cap .k { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; color: var(--pu-muted); }
.ts-cap .v { font-size: 13px; font-weight: 600; margin-top: 2px; }
.ts-brief { position: absolute; top: 188px; right: 0; bottom: 0; width: 360px; border-left: 1px solid var(--pu-line); background: var(--pu-bg-2); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.ts-draft { border: 1px dashed color-mix(in srgb, var(--pu-purple) 55%, transparent); background: var(--pu-purple-soft); border-radius: 8px; padding: 8px 11px; font-size: 10.5px; color: var(--pu-text-2); }
.ts-draft b { color: var(--pu-purple); }
.ts-sum { font-size: 12.5px; line-height: 1.55; min-height: 116px; }
.ts-do { border: 1px solid var(--pu-line); border-radius: 8px; padding: 11px 12px; background: var(--pu-panel); display: grid; grid-template-columns: 22px 1fr; gap: 4px 10px; }
.ts-do .no { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; box-shadow: inset 0 0 0 1px var(--pu-line-2); grid-row: span 2; }
.ts-do .t { font-size: 12.5px; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.ts-do .d { font-size: 11px; color: var(--pu-text-2); }

/* --- identity terrain --- */
.it-band { position: absolute; left: 0; right: 0; border-bottom: 1px solid var(--pu-line); }
.it-band .lbl { position: absolute; left: 20px; top: 14px; }
.it-band .lbl b { display: block; font-size: 11px; letter-spacing: .14em; }
.it-band .lbl span { font-size: 9.5px; letter-spacing: .12em; color: var(--pu-muted); font-weight: 700; }
.it-band.t0 { background: color-mix(in srgb, var(--pu-crit) 7%, transparent); }
.it-sys { position: absolute; width: 150px; padding: 7px 10px; border-radius: 8px; background: var(--pu-panel); border: 1px solid var(--pu-line-2); display: grid; grid-template-columns: 22px 1fr; gap: 0 8px; align-items: center; box-shadow: var(--pu-shadow); transition: border-color .35s, box-shadow .35s; }
.it-sys .pu-i { grid-row: span 2; color: var(--pu-text-2); }
.it-sys b { font-size: 11.5px; font-family: var(--pu-mono); font-weight: 600; }
.it-sys span { font-size: 9.5px; color: var(--pu-muted); }
.it-sys.hit { border-color: var(--pu-crit); box-shadow: 0 0 0 4px var(--pu-crit-soft), var(--pu-shadow); }
.it-sys.hit .pu-i { color: var(--pu-crit); }
.it-sys.choke { border-color: var(--pu-warn); box-shadow: 0 0 0 4px var(--pu-warn-soft), var(--pu-shadow); }
.it-hop { position: absolute; font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--pu-bg-2); border: 1px solid var(--pu-line-2); white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.it-hop .mono { font-weight: 500; color: var(--pu-text-2); }
.it-clock { position: absolute; right: 22px; top: 18px; text-align: right; }
.it-clock .k { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--pu-muted); }
.it-clock .v { font-size: 38px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.it-clock .v small { font-size: 14px; color: var(--pu-text-2); font-weight: 500; margin-left: 4px; }
.it-brief { position: absolute; right: 22px; top: 232px; width: 290px; padding: 14px 16px; }

/* --- live view --- */
.lv { position: absolute; inset: 0; display: grid; grid-template-columns: 250px 1fr; }
.lv-side { border-right: 1px solid var(--pu-line); background: var(--pu-bg-2); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.lv-host b { display: block; font-family: var(--pu-mono); font-size: 15px; }
.lv-host span { font-size: 11.5px; color: var(--pu-text-2); }
.lv-vital { border: 1px solid var(--pu-line); border-radius: 8px; padding: 10px 12px; background: var(--pu-panel); }
.lv-vital .row { display: flex; justify-content: space-between; font-size: 11px; color: var(--pu-text-2); }
.lv-vital .row b { color: var(--pu-text); font-size: 13px; }
.lv-vital svg { width: 100%; height: 34px; margin-top: 6px; }
.lv-vital path { fill: none; stroke: var(--pu-accent); stroke-width: 1.6; }
.lv-term { position: relative; display: flex; flex-direction: column; min-width: 0; }
.lv-tabs { display: flex; gap: 2px; padding: 10px 14px 0; border-bottom: 1px solid var(--pu-line); background: var(--pu-bg-2); }
.lv-tabs span { padding: 8px 14px; font-size: 12px; font-weight: 600; color: var(--pu-muted); border-radius: 7px 7px 0 0; display: inline-flex; gap: 7px; align-items: center; }
.lv-tabs span.on { background: var(--pu-bg); color: var(--pu-text); box-shadow: inset 0 1px 0 var(--pu-line-2), inset 1px 0 0 var(--pu-line), inset -1px 0 0 var(--pu-line); }
.lv-out { flex: 1; padding: 16px 20px; font-family: var(--pu-mono); font-size: 12.5px; line-height: 1.62; overflow: hidden; }
.lv-out .ln { white-space: pre; }
.lv-out .pr { color: var(--pu-accent); }
.lv-out .cm { color: var(--pu-text); }
.lv-out .o { color: var(--pu-text-2); }
.lv-out .okl { color: var(--pu-ok); }
.lv-out .bad { color: var(--pu-crit); }
.lv-out .hd { color: var(--pu-muted); }
.lv-out .blk { margin: 2px 0 10px; padding: 8px 12px; border-left: 2px solid var(--pu-line-2); background: var(--pu-panel); border-radius: 0 6px 6px 0; }

/* --- forensics --- */
.fx-eps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fx-ep { padding: 11px 13px; display: grid; gap: 8px; }
.fx-ep .top { display: flex; justify-content: space-between; align-items: center; }
.fx-ep b { font-family: var(--pu-mono); font-size: 12.5px; }
.fx-ep .bar { height: 5px; border-radius: 3px; background: var(--pu-line); overflow: hidden; }
.fx-ep .bar i { display: block; height: 100%; width: 0; background: var(--pu-accent); }
.fx-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.fx-kpi { padding: 12px 14px; }
.fx-kpi .k { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; color: var(--pu-muted); }
.fx-kpi .v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; }
.fx-kpi.hot { border-color: color-mix(in srgb, var(--pu-crit) 50%, var(--pu-line)); }
.fx-kpi.hot .v { color: var(--pu-crit); }
.fx-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 14px; }
.fx-tl { padding: 14px 16px; }
.fx-tl .bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; margin-top: 14px; border-bottom: 1px solid var(--pu-line); }
.fx-tl .bars i { flex: 1; background: color-mix(in srgb, var(--pu-accent) 70%, var(--pu-panel)); border-radius: 2px 2px 0 0; transform-origin: bottom; }
.fx-tl .bars i.hot { background: var(--pu-crit); }
.fx-tl .ax { display: flex; justify-content: space-between; font-family: var(--pu-mono); font-size: 9.5px; color: var(--pu-muted); margin-top: 6px; }
.fx-ev { display: grid; gap: 8px; }
.fx-row { padding: 9px 12px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; }
.fx-row .pu-chip { grid-row: span 2; }
.fx-row .c { font-family: var(--pu-mono); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-row .s { font-size: 10.5px; color: var(--pu-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-row.hot { border-color: color-mix(in srgb, var(--pu-crit) 50%, var(--pu-line)); background: var(--pu-crit-soft); }

/* --- exposure --- */
.ex-row { display: grid; grid-template-columns: 90px 20px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; }
.ex-row .t { font-family: var(--pu-mono); font-size: 12px; color: var(--pu-muted); }
.ex-row .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--pu-accent)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--pu-accent)) 20%, transparent); justify-self: center; }
.ex-row .m b { font-size: 13.5px; }
.ex-row .m div { font-size: 11.5px; color: var(--pu-text-2); margin-top: 2px; }
.ex-rail { position: absolute; width: 2px; background: var(--pu-line-2); }
.ex-cmp { display: grid; gap: 12px; }
.ex-cmp .row { display: grid; grid-template-columns: 170px 1fr 110px; gap: 14px; align-items: center; font-size: 12px; }
.ex-cmp .track { height: 14px; border-radius: 4px; background: var(--pu-panel-2); overflow: hidden; }
.ex-cmp .track i { display: block; height: 100%; border-radius: 4px; }
.ex-cmp .v { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* --- hunt --- */
.hx-q { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-family: var(--pu-mono); font-size: 14px; }
.hx-q .pu-i { color: var(--pu-accent); width: 18px; height: 18px; }
.hx-q .f { color: var(--pu-cyan); }
.hx-q .v { color: var(--pu-high); }
.hx-q .o { color: var(--pu-purple); font-weight: 700; }
.hx-hist { display: flex; align-items: flex-end; gap: 3px; height: 70px; }
.hx-hist i { flex: 1; background: var(--pu-accent); opacity: .75; border-radius: 2px 2px 0 0; transform-origin: bottom; }
.hx-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.hx-table th { text-align: left; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--pu-muted); padding: 8px 12px; border-bottom: 1px solid var(--pu-line); background: var(--pu-panel-2); }
.hx-table td { padding: 9px 12px; border-bottom: 1px solid var(--pu-line); white-space: nowrap; }
.hx-table td.mono { font-size: 11.5px; }
.hx-table tr.hot td { background: var(--pu-crit-soft); }
.hx-toast { position: absolute; right: 22px; bottom: 22px; padding: 12px 16px; display: flex; gap: 12px; align-items: center; font-size: 12.5px; border-color: color-mix(in srgb, var(--pu-ok) 45%, var(--pu-line)); }

/* --- detonation map (radial) --- */
.dm-svg { position: absolute; inset: 0; }
.dm-svg text { font-family: var(--pu-mono); font-size: 10px; fill: var(--pu-text-2); }
.dm-svg .lbl { font-family: var(--pu-font); font-size: 9px; font-weight: 700; letter-spacing: .14em; fill: var(--pu-muted); }

/* --- tour / annotation layer --- */
.pu-spot { position: absolute; z-index: 20; pointer-events: none; border-radius: 10px; box-shadow: 0 0 0 9999px color-mix(in srgb, var(--pu-bg) 72%, transparent), 0 0 0 2px var(--pu-accent), 0 0 30px 4px var(--pu-accent-soft); transition: left .7s cubic-bezier(.2, .7, .2, 1), top .7s cubic-bezier(.2, .7, .2, 1), width .7s cubic-bezier(.2, .7, .2, 1), height .7s cubic-bezier(.2, .7, .2, 1), opacity .5s; opacity: 0; }
.pu-spot.on { opacity: 1; }
