/* Antemure console — "warm" design system.
   Extracted from the approved mockup; the single source of truth for tokens + components.
   3-state theming: bare :root (light), @media dark guarded by :root:not([data-theme=light]),
   and :root[data-theme=dark]. */

/* Warm earthy console: greige page, big rounded cards, muted categorical palette,
   pastel cell-grid fleet, gradient hero, donut + gauge + bars.
   Content/routing identical to the other variants; only the skin changes. */
:root{
  --canvas:#eeebe3; --surface:#ffffff; --surface2:#f7f5ef; --rail:#f3f1ea; --rail-hover:#ebe8df;
  --line:#ece9e1; --line2:#e0ddd3;
  --ink:#283844; --ink-dim:#6c7681; --faint:#a6aaa6;
  --accent:#273f4d; --accent-ink:#ffffff; --accent-weak:#e8edee; --accent-line:#cdd7da;
  --flame1:#2563eb; --flame2:#2bb6cf;
  --crit:#cf5a49; --crit-weak:#f8e6e1; --crit-line:#eec6bd;
  --warn:#c89328; --warn-weak:#f6edcf; --warn-line:#e7d49a;
  --ok:#58a070; --ok-weak:#e3f0e4; --ok-line:#c2dec5;
  --info:#3d6d8c; --info-weak:#e4edf2; --info-line:#c4d6e2;
  /* categorical (tenants / charts) */
  --sage-bg:#dcecdf; --sage-ink:#43795a;
  --gold-bg:#f3ead0; --gold-ink:#8a6d22;
  --purple-bg:#e6e0f2; --purple-ink:#685a92;
  --teal-bg:#d7ebe8; --teal-ink:#347d77;
  --bar1:#2f4a5e; --bar2:#e2bf57;
  --gold-solid:#e2bf57; --gold-track:#ede7d5;
  --radius:22px; --radius-sm:14px; --radius-xs:11px;
  --shadow:0 1px 2px rgba(40,56,68,.03),0 10px 26px rgba(60,66,52,.06);
  --shadow-sm:0 1px 2px rgba(40,56,68,.04),0 2px 8px rgba(60,66,52,.05);
  --shadow-pop:0 16px 44px rgba(40,46,36,.18),0 3px 10px rgba(40,46,36,.1);
  --f-disp:"Fraunces",Georgia,serif;
  --f-ui:"Hanken Grotesk",system-ui,sans-serif;
  --f-mono:"JetBrains Mono",ui-monospace,monospace;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --canvas:#15140f; --surface:#201e18; --surface2:#1a1914; --rail:#191712; --rail-hover:#262319;
  --line:#2c2a22; --line2:#38352b;
  --ink:#ece9df; --ink-dim:#a39e8f; --faint:#6f6b5f;
  --accent:#d8e4e0; --accent-ink:#1a2a2a; --accent-weak:#232a28; --accent-line:#394340;
  --flame1:#4b8bff; --flame2:#38d0ea;
  --crit:#e0776a; --crit-weak:#2c1915; --crit-line:#53291f;
  --warn:#dcac3e; --warn-weak:#2a2210; --warn-line:#4d3e1a;
  --ok:#6cb985; --ok-weak:#152417; --ok-line:#2c4631;
  --info:#6b9bbb; --info-weak:#17232b; --info-line:#28404f;
  --sage-bg:#1d2b22; --sage-ink:#7fc294;
  --gold-bg:#2b2413; --gold-ink:#dcb75a;
  --purple-bg:#252033; --purple-ink:#b3a4d7;
  --teal-bg:#152a2c; --teal-ink:#6fc0b8;
  --bar1:#7a9cb0; --bar2:#dcb75a;
  --gold-solid:#dcb75a; --gold-track:#312a18;
  --shadow:0 1px 2px rgba(0,0,0,.4),0 10px 28px rgba(0,0,0,.42);
  --shadow-sm:0 1px 2px rgba(0,0,0,.4),0 2px 8px rgba(0,0,0,.3);
  --shadow-pop:0 16px 44px rgba(0,0,0,.6),0 3px 10px rgba(0,0,0,.5);
  color-scheme:dark;
}}
:root[data-theme="dark"]{
  --canvas:#15140f; --surface:#201e18; --surface2:#1a1914; --rail:#191712; --rail-hover:#262319;
  --line:#2c2a22; --line2:#38352b;
  --ink:#ece9df; --ink-dim:#a39e8f; --faint:#6f6b5f;
  --accent:#d8e4e0; --accent-ink:#1a2a2a; --accent-weak:#232a28; --accent-line:#394340;
  --flame1:#4b8bff; --flame2:#38d0ea;
  --crit:#e0776a; --crit-weak:#2c1915; --crit-line:#53291f;
  --warn:#dcac3e; --warn-weak:#2a2210; --warn-line:#4d3e1a;
  --ok:#6cb985; --ok-weak:#152417; --ok-line:#2c4631;
  --info:#6b9bbb; --info-weak:#17232b; --info-line:#28404f;
  --sage-bg:#1d2b22; --sage-ink:#7fc294;
  --gold-bg:#2b2413; --gold-ink:#dcb75a;
  --purple-bg:#252033; --purple-ink:#b3a4d7;
  --teal-bg:#152a2c; --teal-ink:#6fc0b8;
  --bar1:#7a9cb0; --bar2:#dcb75a;
  --gold-solid:#dcb75a; --gold-track:#312a18;
  --shadow:0 1px 2px rgba(0,0,0,.4),0 10px 28px rgba(0,0,0,.42);
  --shadow-sm:0 1px 2px rgba(0,0,0,.4),0 2px 8px rgba(0,0,0,.3);
  --shadow-pop:0 16px 44px rgba(0,0,0,.6),0 3px 10px rgba(0,0,0,.5);
  color-scheme:dark;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--canvas);color:var(--ink);font-family:var(--f-ui);
  font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased;overflow:hidden}
button{font-family:inherit;font-size:inherit;color:inherit;cursor:pointer}
a{color:inherit;text-decoration:none}
.mono{font-family:var(--f-mono);font-variant-ligatures:none}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:5px}

/* ---------- App shell ---------- */
.app{display:grid;grid-template-columns:250px minmax(0,1fr);gap:14px;height:100%;
  padding:14px;padding-left:max(14px,env(safe-area-inset-left,0px));
  padding-right:max(14px,env(safe-area-inset-right,0px))}
.app.analyst-open{grid-template-columns:250px minmax(0,1fr) 384px}
.scrim{display:none;position:fixed;inset:0;background:rgba(20,18,12,.46);z-index:45}

/* ---------- Left rail ---------- */
.rail{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);
  display:flex;flex-direction:column;min-height:0;overflow:hidden}
.brand{display:flex;align-items:center;gap:10px;padding:18px 18px 12px}
.flame{width:28px;height:28px;flex:none}
.brand .wm{font-family:var(--f-disp);font-weight:600;font-size:20px;letter-spacing:-.01em}
.tenant{margin:0 14px 6px;border:1px solid var(--line2);background:var(--surface);border-radius:var(--radius-sm);
  padding:9px 11px;display:flex;align-items:center;gap:10px;cursor:pointer;transition:background .12s}
.tenant:hover{background:var(--rail)}
.tenant .av{width:26px;height:26px;border-radius:8px;background:var(--teal-bg);color:var(--teal-ink);
  display:grid;place-items:center;font-weight:700;font-size:11px;flex:none}
.tenant .tx{min-width:0;flex:1}
.tenant .tx .n{font-weight:600;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tenant .tx .s{font-size:11px;color:var(--ink-dim)}
.tenant .ch{color:var(--faint);flex:none}
.nav{flex:1;min-height:0;overflow:auto;padding:8px 14px 10px}
.nav::-webkit-scrollbar{width:7px}.nav::-webkit-scrollbar-thumb{background:var(--line2);border-radius:8px}
.group{margin-top:12px}
.group:first-child{margin-top:4px}
.group>.lbl{font-size:10.5px;font-weight:700;letter-spacing:.11em;text-transform:uppercase;
  color:var(--faint);padding:5px 10px 7px;display:flex;align-items:center;justify-content:space-between;cursor:pointer}
.group>.lbl .cc{transition:transform .15s;color:var(--faint)}
.group.collapsed>.lbl .cc{transform:rotate(-90deg)}
.group.collapsed .items{display:none}
.items{display:flex;flex-direction:column;gap:2px}
.nitem{display:flex;align-items:center;gap:11px;padding:9px 11px;border-radius:var(--radius-xs);
  color:var(--ink-dim);font-weight:500;position:relative;transition:background .12s,color .12s}
.nitem:hover{background:var(--rail);color:var(--ink)}
.nitem.active{background:var(--accent);color:var(--accent-ink);font-weight:600}
.nitem svg{width:18px;height:18px;flex:none;stroke:currentColor}
.nitem .cnt{margin-left:auto;font-size:11px;font-weight:700;font-family:var(--f-mono);
  background:var(--rail-hover);color:var(--ink-dim);border-radius:20px;padding:1px 8px}
.nitem .cnt.crit{background:var(--crit-weak);color:var(--crit)}
.nitem.active .cnt,.nitem.active .cnt.crit{background:rgba(255,255,255,.2);color:var(--accent-ink)}
:root[data-theme="dark"] .nitem.active .cnt{background:rgba(0,0,0,.18)}
.rail-card{margin:6px 14px 12px;border-radius:var(--radius-sm);padding:14px;
  background:linear-gradient(150deg,var(--gold-bg),var(--surface));border:1px solid var(--warn-line)}
.rail-card .rc-ic{width:30px;height:30px;border-radius:9px;background:var(--gold-solid);color:#3a2f10;
  display:grid;place-items:center;margin-bottom:9px}
.rail-card .rc-ic svg{width:16px;height:16px;stroke:currentColor}
.rail-card .rc-t{font-weight:700;font-size:13px}
.rail-card .rc-d{font-size:11.5px;color:var(--ink-dim);margin:3px 0 11px;line-height:1.4}
.rail-card .rc-btn{width:100%;border:0;background:var(--accent);color:var(--accent-ink);font-weight:600;
  font-size:12.5px;padding:7px;border-radius:9px}
.rail-foot{border-top:1px solid var(--line);padding:11px 16px;display:flex;align-items:center;gap:10px}
.rail-foot .me{width:30px;height:30px;border-radius:50%;background:var(--purple-bg);color:var(--purple-ink);display:grid;place-items:center;font-weight:700;font-size:12px}
.rail-foot .mx{min-width:0;flex:1}
.rail-foot .mx .n{font-weight:600;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rail-foot .mx .r{font-size:10.5px;color:var(--faint)}

/* ---------- Main column ---------- */
.main{min-width:0;display:flex;flex-direction:column;min-height:0}
.topbar{height:44px;display:flex;align-items:center;gap:10px;padding:0 4px 0 2px;flex:none;margin-bottom:4px}
.crumbs{font-size:13px;color:var(--ink-dim);display:flex;align-items:center;gap:7px}
.crumbs b{color:var(--ink);font-weight:700}
.crumbs .sep{color:var(--faint)}
.spacer{flex:1}
.seg{display:flex;background:var(--surface);border-radius:11px;padding:3px;box-shadow:var(--shadow-sm)}
.seg button{border:0;background:transparent;color:var(--ink-dim);font-weight:600;font-size:12.5px;
  padding:5px 12px;border-radius:8px;display:flex;align-items:center;gap:6px}
.seg button.on{background:var(--rail);color:var(--ink)}
.seg .dot{width:7px;height:7px;border-radius:50%}
.iconbtn{width:36px;height:36px;border:0;background:var(--surface);border-radius:11px;box-shadow:var(--shadow-sm);
  display:grid;place-items:center;color:var(--ink-dim);transition:color .12s}
.iconbtn:hover{color:var(--ink)}
.iconbtn svg{width:17px;height:17px;stroke:currentColor}
.btn{border:0;background:var(--surface);color:var(--ink);font-weight:600;font-size:13px;box-shadow:var(--shadow-sm);
  padding:8px 13px;border-radius:11px;display:inline-flex;align-items:center;gap:7px;transition:filter .12s}
.btn:hover{filter:brightness(.98)}
.btn svg{width:15px;height:15px;stroke:currentColor}
.btn.primary{background:var(--accent);color:var(--accent-ink)}
.btn.primary:hover{filter:brightness(1.08)}

.body{flex:1;min-height:0;overflow:auto;padding:2px 2px 20px}
.body::-webkit-scrollbar{width:9px}.body::-webkit-scrollbar-thumb{background:var(--line2);border-radius:10px}
.pagehead{display:flex;align-items:flex-end;gap:14px;margin:6px 0 18px;flex-wrap:wrap}
.pagehead h1{font-family:var(--f-disp);font-size:28px;font-weight:600;letter-spacing:-.01em;margin:0}
.pagehead .sub{color:var(--ink-dim);font-size:13px;margin-bottom:4px}
.pagehead .ph-r{margin-left:auto;display:flex;gap:9px;align-items:center}

.tabs{display:flex;gap:4px;margin-bottom:18px;overflow-x:auto;background:var(--surface);
  padding:4px;border-radius:13px;box-shadow:var(--shadow-sm);width:max-content;max-width:100%}
.tabs button{border:0;background:transparent;color:var(--ink-dim);font-weight:600;font-size:13px;
  padding:7px 14px;border-radius:9px;white-space:nowrap}
.tabs button:hover{color:var(--ink)}
.tabs button.on{color:var(--ink);background:var(--rail)}

.filters{display:flex;gap:10px;margin-bottom:18px;flex-wrap:wrap}
.search{flex:1;min-width:200px;position:relative}
.search svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:15px;height:15px;stroke:var(--faint)}
.search input{width:100%;border:0;background:var(--surface);border-radius:12px;box-shadow:var(--shadow-sm);
  padding:10px 13px 10px 37px;color:var(--ink);font-family:inherit;font-size:13px}
.search input::placeholder{color:var(--faint)}
.search input:focus{outline:2px solid var(--accent-line)}
.sel{border:0;background:var(--surface);border-radius:12px;padding:10px 13px;box-shadow:var(--shadow-sm);
  color:var(--ink-dim);font-weight:600;font-size:13px;display:flex;align-items:center;gap:8px}
.sel svg{width:13px;height:13px;stroke:var(--faint)}

/* ---------- cards ---------- */
.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0;overflow:hidden}
.card .ch{display:flex;align-items:center;gap:9px;padding:16px 18px;border-bottom:1px solid var(--line)}
.card .ch .t{font-family:var(--f-disp);font-weight:600;font-size:16px}
.card .cb{padding:16px 18px}
.card .cb.flush{padding:0;overflow-x:auto}

/* dashboard grid */
.dash{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px;align-items:start}
.col{display:flex;flex-direction:column;gap:16px;min-width:0}

/* hero */
.hero{position:relative;overflow:hidden;border-radius:var(--radius);box-shadow:var(--shadow);
  background:var(--surface);display:flex;min-height:180px}
.hero .htext{padding:22px 22px 20px;position:relative;z-index:2;flex:1;min-width:0;display:flex;flex-direction:column}
.hero .hbig{font-family:var(--f-disp);font-size:40px;font-weight:600;letter-spacing:-.02em;line-height:1}
.hero .hlab{font-weight:600;font-size:15px;margin-top:6px}
.hero .hsub{color:var(--ink-dim);font-size:12.5px;margin-top:2px}
.hero .hd{margin-top:auto;padding-top:14px}
.hero .hbadges{position:absolute;top:18px;right:18px;z-index:3;display:flex;flex-direction:column;gap:7px;align-items:flex-end}
.hbadge{background:rgba(255,255,255,.72);backdrop-filter:blur(4px);border-radius:20px;padding:4px 11px;
  font-size:11.5px;font-weight:600;color:#2a3a46}
.hero .hblob{width:44%;flex:none;position:relative}
.hero .hblob::before{content:"";position:absolute;inset:0;
  background:
    radial-gradient(60% 75% at 72% 28%, #a9d6e6 0%, transparent 58%),
    radial-gradient(52% 66% at 86% 74%, var(--gold-solid) 0%, transparent 56%),
    radial-gradient(70% 86% at 54% 92%, #99c9a3 0%, transparent 58%),
    radial-gradient(64% 80% at 96% 46%, #3f7df0 0%, transparent 60%),
    linear-gradient(135deg,#e4edf0,#d2ddd6);
  filter:saturate(1.12) contrast(1.02)}
:root[data-theme="dark"] .hero .hblob::before{filter:saturate(1.05) brightness(.82)}

/* donut */
.donut-wrap{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.donut{position:relative;width:132px;height:132px;flex:none}
.donut .mid{position:absolute;inset:0;display:grid;place-content:center;text-align:center}
.donut .mid .p{font-family:var(--f-disp);font-size:26px;font-weight:600;line-height:1}
.donut .mid .l{font-size:11px;color:var(--ink-dim);margin-top:2px}
.dstats{display:grid;grid-template-columns:1fr 1fr;gap:14px 22px;flex:1;min-width:140px}
.dstat .v{font-family:var(--f-disp);font-size:20px;font-weight:600;line-height:1}
.dstat .l{font-size:11.5px;color:var(--ink-dim);margin-top:2px}

/* gauge */
.gauge{padding:6px 0 2px}
.gwrap{position:relative;width:100%;max-width:248px;margin:0 auto}
.gwrap svg{width:100%;height:auto;display:block}
.gmid{position:absolute;left:0;right:0;bottom:9%;text-align:center}
.gmid .v{font-family:var(--f-disp);font-size:30px;font-weight:600;line-height:1}
.gmid .l{font-size:12px;color:var(--ink-dim);margin-top:3px}
.gmid .d{font-size:12px;font-weight:700;color:var(--ok);margin-top:5px}

/* bar chart */
.bars{display:flex;align-items:flex-end;gap:14px;height:150px;padding:6px 2px 0}
.barcol{flex:1;display:flex;flex-direction:column;align-items:center;gap:7px;height:100%;justify-content:flex-end}
.barpair{display:flex;align-items:flex-end;gap:5px;height:100%;width:100%;justify-content:center}
.barpair i{width:12px;border-radius:7px 7px 3px 3px;min-height:5px}
.barpair i.a{background:var(--bar1)} .barpair i.b{background:var(--bar2)}
.barcol .x{font-size:11px;color:var(--faint);font-family:var(--f-mono)}

/* 2x2 stat cards */
.stat2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.stat{background:var(--surface2);border-radius:var(--radius-sm);padding:14px 15px}
.stat .top{display:flex;align-items:center;justify-content:space-between}
.stat .sic{width:36px;height:36px;border-radius:11px;background:var(--surface);box-shadow:var(--shadow-sm);display:grid;place-items:center;color:var(--ink-dim)}
.stat .sic svg{width:18px;height:18px;stroke:currentColor}
.stat .v{font-family:var(--f-disp);font-size:26px;font-weight:600;margin-top:13px;line-height:1}
.stat .l{font-size:12px;color:var(--ink-dim);margin-top:4px}
.delta{font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:20px;display:inline-flex;align-items:center;gap:4px}
.delta.up{color:var(--ok);background:var(--ok-weak)}
.delta.down{color:var(--crit);background:var(--crit-weak)}
.delta.flat{color:var(--ink-dim);background:var(--rail)}

/* chips */
.chip{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:600;
  padding:3px 10px;border-radius:20px;color:var(--ink-dim);background:var(--rail)}
.chip .d{width:6px;height:6px;border-radius:50%;background:currentColor}
.chip.crit{color:var(--crit);background:var(--crit-weak)}
.chip.warn{color:var(--warn);background:var(--warn-weak)}
.chip.ok{color:var(--ok);background:var(--ok-weak)}
.chip.info{color:var(--info);background:var(--info-weak)}
.chip.ghost{color:var(--ink-dim);background:var(--rail)}

/* table */
table{width:100%;border-collapse:collapse;font-size:13px}
thead th{text-align:left;font-weight:700;color:var(--ink-dim);font-size:11px;letter-spacing:.04em;
  text-transform:uppercase;padding:11px 18px;border-bottom:1px solid var(--line);background:var(--surface);position:sticky;top:0}
tbody td{padding:13px 18px;border-bottom:1px solid var(--line);vertical-align:middle}
tbody tr:last-child td{border-bottom:0}
tbody tr{transition:background .08s}
tbody tr:hover{background:var(--rail)}
td .pri{font-weight:600}
td .sub{color:var(--ink-dim);font-size:12px}
.sevbar{width:3px;height:30px;border-radius:3px;display:inline-block;vertical-align:middle;margin-right:10px}
.sev-crit{background:var(--crit)} .sev-warn{background:var(--warn)} .sev-ok{background:var(--ok)} .sev-info{background:var(--info)}
.rowact{color:var(--info);font-weight:600;font-size:12.5px}

/* ---- fleet cell grid (the signature motif) ---- */
.sections{display:grid;grid-template-columns:repeat(auto-fit,minmax(214px,1fr));gap:16px}
.section{background:var(--surface);border-radius:var(--radius);padding:17px;box-shadow:var(--shadow);border:2px solid transparent}
.section.sel{border-color:var(--accent)}
.section .sh{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.section .sh .n{font-weight:700;font-size:13.5px;display:flex;align-items:center;gap:8px}
.section .sh .n .sw{width:11px;height:11px;border-radius:4px}
.section .sh .c{font-size:11.5px;color:var(--faint);font-family:var(--f-mono)}
.cells{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cell{height:50px;border-radius:14px;display:grid;place-items:center;font-weight:600;font-size:12.5px;
  font-family:var(--f-mono);position:relative}
.cell.ghost{background:var(--surface2);color:var(--faint);
  background-image:repeating-linear-gradient(45deg,var(--line2) 0 1px,transparent 1px 8px)}
.cell.sage{background:var(--sage-bg);color:var(--sage-ink)}
.cell.gold{background:var(--gold-bg);color:var(--gold-ink)}
.cell.purple{background:var(--purple-bg);color:var(--purple-ink)}
.cell.teal{background:var(--teal-bg);color:var(--teal-ink)}
.cell .att{position:absolute;top:6px;right:7px;width:8px;height:8px;border-radius:50%;box-shadow:0 0 0 3px var(--surface)}
/* gate marker: actions on this node awaiting a human decision (bottom-left pill) */
.cell .apmark{position:absolute;left:6px;bottom:5px;min-width:15px;height:15px;padding:0 3px;border-radius:8px;
  background:var(--warn-weak);color:var(--warn);border:1px solid var(--warn-line);box-sizing:border-box;
  font-family:var(--f-mono);font-size:9px;font-weight:700;line-height:13px;text-align:center}
/* Active risk / live investigation → a breathing severity ring, like the old heatmap.
   crit = open incident, warn = elevated risk, info = an investigation running on a calm node.
   One keyframe; each variant sets --pc (its reserved severity colour) and its own tempo. */
.cell.pulse-crit{--pc:var(--crit);animation:cellpulse 1.5s ease-in-out infinite}
.cell.pulse-warn{--pc:var(--warn);animation:cellpulse 1.9s ease-in-out infinite}
.cell.pulse-info{--pc:var(--info);animation:cellpulse 2.2s ease-in-out infinite}
@keyframes cellpulse{
  0%,100%{box-shadow:inset 0 0 0 2px var(--pc),0 0 0 0 transparent}
  50%{box-shadow:inset 0 0 0 2px var(--pc),0 0 12px -1px var(--pc)}
}
@media (prefers-reduced-motion:reduce){
  .cell.pulse-crit,.cell.pulse-warn,.cell.pulse-info{animation:none;box-shadow:inset 0 0 0 2px var(--pc),0 0 9px -3px var(--pc)}
}

/* empty state */
.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:58px 20px;gap:5px}
.empty .ic{width:66px;height:66px;border-radius:20px;background:var(--surface2);display:grid;place-items:center;margin-bottom:12px;box-shadow:var(--shadow-sm)}
.empty .ic svg{width:28px;height:28px;stroke:var(--accent)}
.empty h3{font-family:var(--f-disp);font-size:18px;font-weight:600;margin:0}
.empty p{color:var(--ink-dim);max-width:360px;margin:2px 0 14px}

.list-row{display:flex;align-items:center;gap:13px;padding:13px 18px;border-bottom:1px solid var(--line)}
.list-row:last-child{border-bottom:0}
.list-row .ic{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;flex:none}
.list-row .ic svg{width:17px;height:17px;stroke:currentColor}
.list-row .gr{min-width:0;flex:1}
.list-row .gr .t{font-weight:600}
.list-row .gr .d{color:var(--ink-dim);font-size:12.5px}
.ic-crit{background:var(--crit-weak);color:var(--crit)} .ic-ok{background:var(--ok-weak);color:var(--ok)}
.ic-info{background:var(--info-weak);color:var(--info)} .ic-warn{background:var(--warn-weak);color:var(--warn)}

.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;color:var(--ink-dim);margin-top:16px}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend i{width:10px;height:10px;border-radius:4px}
.legend i.lg-pulse{background:transparent;box-shadow:inset 0 0 0 2px var(--pc);animation:cellpulse 1.8s ease-in-out infinite}
.legend i.lg-ap{width:auto;height:14px;min-width:14px;padding:0 3px;border-radius:7px;background:var(--warn-weak);
  color:var(--warn);border:1px solid var(--warn-line);font-family:var(--f-mono);font-size:9px;font-weight:700;
  line-height:12px;text-align:center}
@media (prefers-reduced-motion:reduce){.legend i.lg-pulse{animation:none;box-shadow:inset 0 0 0 2px var(--pc),0 0 7px -3px var(--pc)}}

/* ---- detail (node / tenant) header ---- */
.dhead{display:flex;align-items:flex-start;gap:14px;margin:4px 0 18px;flex-wrap:wrap}
.dhead .title{min-width:0}
.dhead .title h1{font-family:var(--f-disp);font-size:24px;font-weight:600;letter-spacing:-.01em;margin:0;word-break:break-word}
.dhead .title .sub{color:var(--ink-dim);font-size:13px;margin-top:6px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.dhead .acts{margin-left:auto;display:flex;gap:9px;flex-wrap:wrap}

/* shared small icon chip */
.sic{width:36px;height:36px;border-radius:11px;background:var(--surface2);box-shadow:var(--shadow-sm);display:grid;place-items:center;color:var(--ink-dim)}
.sic svg{width:18px;height:18px;stroke:currentColor}

/* clickable fleet cells */
.cell[data-node]{cursor:pointer;transition:transform .1s}
.cell[data-node]:hover{transform:translateY(-2px)}

/* ---- agent activity (phase stepper + stream + verdict) ---- */
.pstepper{display:flex;align-items:center;gap:10px;padding:16px 18px;border-bottom:1px solid var(--line)}
.pstep{display:flex;align-items:center;gap:8px;font-weight:600;font-size:13px;color:var(--ink-dim);transition:color .2s}
.pstep .pdot{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;background:var(--rail);color:var(--ink-dim);transition:background .2s,color .2s}
.pstep.on{color:var(--ink)} .pstep.on .pdot{background:var(--accent);color:var(--accent-ink)}
.pstep.done{color:var(--ok)} .pstep.done .pdot{background:var(--ok-weak);color:var(--ok)}
.pline{flex:1;height:2px;background:var(--line2);border-radius:2px}
.astream{padding:6px 0;max-height:374px;overflow:auto}
.astream::-webkit-scrollbar{width:8px}.astream::-webkit-scrollbar-thumb{background:var(--line2);border-radius:8px}
.phase-divider{padding:13px 18px 5px;font-size:10.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--faint)}
.astep{display:flex;align-items:flex-start;gap:12px;padding:8px 18px;animation:afade .25s ease}
@keyframes afade{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
.astep .aic{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;flex:none}
.astep .aic svg{width:15px;height:15px;stroke:currentColor}
.aic.aic-investigate{background:var(--info-weak);color:var(--info)}
.aic.aic-remediate{background:var(--gold-bg);color:var(--gold-ink)}
.aic.aic-verify{background:var(--ok-weak);color:var(--ok)}
.astep .atx{flex:1;min-width:0}
.astep .al{font-weight:500;font-size:13.5px}
.astep .atool{font-size:12px;color:var(--ink-dim);background:var(--surface2);border-radius:8px;padding:5px 9px;margin-top:5px;max-width:100%;overflow:auto;white-space:nowrap}
.astep .atool::-webkit-scrollbar{height:0}
.astep.cmd .atool{color:var(--ok);background:var(--ok-weak)}
.astep.v-ok{box-shadow:inset 3px 0 var(--ok)} .astep.v-warn{box-shadow:inset 3px 0 var(--warn)} .astep.v-crit{box-shadow:inset 3px 0 var(--crit)}
.aspin{width:18px;height:18px;flex:none;align-self:center;color:var(--ink-dim)}
.aspin .sp{display:block;width:16px;height:16px;border-radius:50%;border:2px solid var(--line2);border-top-color:var(--accent);animation:spin .7s linear infinite}
.astep.ok .aspin{color:var(--ok)}
.aspin svg{width:17px;height:17px;stroke:currentColor}
@media (prefers-reduced-motion:reduce){.aspin .sp{animation:none;border-top-color:var(--line2)}.astep{animation:none}}
.verdict{margin:8px 18px 16px;border-radius:14px;padding:14px 16px;display:flex;align-items:center;gap:12px;background:var(--ok-weak);flex-wrap:wrap}
.verdict .vic{width:38px;height:38px;border-radius:11px;background:var(--ok);color:#fff;display:grid;place-items:center;flex:none}
.verdict .vic svg{width:20px;height:20px;stroke:currentColor}
.verdict .vt{font-weight:700}
.verdict .vd{font-size:12.5px;color:var(--ink-dim);margin-top:2px}
.verdict .vch{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap}

/* facts + meters */
.facts{display:flex;flex-direction:column}
.fact{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}
.fact:last-child{border-bottom:0}
.fact .k{color:var(--ink-dim)} .fact .v{font-weight:600;text-align:right}
.mini{display:flex;flex-direction:column;gap:13px}
.meter .mh{display:flex;justify-content:space-between;font-size:12px;margin-bottom:6px}
.meter .bar{height:7px;border-radius:5px;background:var(--rail);overflow:hidden}
.meter .bar i{display:block;height:100%;border-radius:5px;background:var(--accent)}
.meter .bar i.warn{background:var(--warn)}
.meter .bar i.crit{background:var(--crit)}

/* ---- intel: chain / correlations / investigations ---- */
.intel-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}
.intel{display:flex;align-items:center;gap:13px;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px 18px}
.intel[data-route]{cursor:pointer;transition:transform .1s}
.intel[data-route]:hover{transform:translateY(-2px)}
.intel .iv{font-family:var(--f-disp);font-size:24px;font-weight:600;line-height:1}
.intel .il{font-size:12px;color:var(--ink-dim);margin-top:3px}
.intel .go{margin-left:auto;color:var(--faint)}
.intel .go svg,.go svg{width:17px;height:17px;stroke:currentColor}
.intel .cc-main{min-width:0}

/* kill chain */
.chain{display:flex;flex-direction:column}
.cstage{display:flex;gap:14px}
.crail{display:flex;flex-direction:column;align-items:center;flex:none;width:28px}
.cnum{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:12px;color:#fff;flex:none}
.cnum.crit{background:var(--crit)} .cnum.warn{background:var(--warn)} .cnum.ok{background:var(--ok)} .cnum.info{background:var(--info)}
.cline{flex:1;width:2px;background:var(--line2);margin:4px 0;border-radius:2px}
.cstage:last-child .cline{display:none}
.cbody{flex:1;min-width:0;padding-bottom:16px}
.cstage:last-child .cbody{padding-bottom:0}
.ctop{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.ctech{font-family:var(--f-mono);font-size:11.5px;font-weight:600;background:var(--surface2);border-radius:7px;padding:3px 8px;color:var(--ink-dim)}
.cname{font-family:var(--f-disp);font-weight:600;font-size:15px}
.cmeta{font-size:12px;color:var(--ink-dim);margin-top:5px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.cdesc{font-size:13px;margin-top:5px}

/* host graph */
.hostgraph{width:100%;height:auto;color:var(--ink)}
.hg-edge{stroke:var(--line2);stroke-width:2;fill:none}
.hg-edge.hot{stroke:var(--crit);stroke-dasharray:5 4}
.hg-node{fill:var(--surface2);stroke:var(--line2);stroke-width:1.5}
.hg-node.crit{stroke:var(--crit)} .hg-node.warn{stroke:var(--warn)}
.hg-name{fill:var(--ink);font-family:var(--f-mono);font-size:11px;font-weight:500}
.hg-lab{fill:var(--ink-dim);font-family:var(--f-mono);font-size:9.5px}

/* correlation cards */
.corr{display:flex;flex-direction:column;gap:14px}
.corrcard{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);padding:17px 18px;cursor:pointer;transition:transform .1s;display:flex;gap:15px;align-items:flex-start}
.corrcard:hover{transform:translateY(-2px)}
.corrcard .cc-ic{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;flex:none}
.corrcard .cc-ic svg{width:20px;height:20px;stroke:currentColor}
.corrcard .cc-main{flex:1;min-width:0}
.corrcard .cc-t{font-family:var(--f-disp);font-weight:600;font-size:16px;display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.corrcard .cc-d{color:var(--ink-dim);font-size:13px;margin-top:4px}
.corrcard .cc-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:11px}
.corrcard .cc-r{flex:none;text-align:right;display:flex;flex-direction:column;gap:7px;align-items:flex-end}
.corrcard .cc-span{font-family:var(--f-mono);font-size:11px;color:var(--faint)}

.chaingrid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:16px;align-items:start}
@media(max-width:1180px){.intel-row{grid-template-columns:1fr}.chaingrid{grid-template-columns:1fr}}

/* ---- incident record: findings / ledger / integrity ---- */
.finding{display:flex;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line)}
.finding:last-child{border-bottom:0}
.fk{font-size:9.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;padding:4px 8px;border-radius:7px;flex:none;align-self:flex-start}
.fk.gathered{background:var(--info-weak);color:var(--info)}
.fk.heuristic{background:var(--gold-bg);color:var(--gold-ink)}
.fk.decision{background:var(--purple-bg);color:var(--purple-ink)}
.fk.analyst{background:var(--crit-weak);color:var(--crit)}
.finding .fmain{flex:1;min-width:0}
.finding .fl{font-weight:600;font-size:13.5px}
.finding .fd{font-size:12.5px;color:var(--ink-dim);margin-top:4px;line-height:1.5}
.ledger{display:flex;flex-direction:column}
.lentry{padding:12px 18px;border-bottom:1px solid var(--line)}
.lentry:last-child{border-bottom:0}
.lentry .lt{font-family:var(--f-mono);font-size:11px;color:var(--faint);display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.lentry .lt .evt{font-weight:600}
.lentry .lt .evt.crit{color:var(--crit)} .lentry .lt .evt.ok{color:var(--ok)} .lentry .lt .evt.info{color:var(--info)} .lentry .lt .evt.warn{color:var(--warn)}
.lentry .ld{font-size:12.5px;margin-top:5px}
.integrity{display:flex;flex-direction:column;gap:11px;align-items:flex-start}
.hashline{display:flex;gap:10px;align-items:center;width:100%;background:var(--surface2);border-radius:10px;padding:10px 12px}
.hashline .hk{font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--faint);flex:none}
.hashline .hv{font-size:11.5px;color:var(--ink-dim);word-break:break-all}

/* ---- node live: event feed / fleet mesh ---- */
.feed{max-height:290px;overflow:auto}
.feed::-webkit-scrollbar{width:8px}.feed::-webkit-scrollbar-thumb{background:var(--line2);border-radius:8px}
.fevt{display:grid;grid-template-columns:62px 116px minmax(0,1fr) 44px;gap:10px;align-items:center;padding:7px 18px;border-bottom:1px solid var(--line)}
.fevt .ft{font-family:var(--f-mono);color:var(--faint);font-size:11px}
.fevt .fty{font-weight:600;font-size:12.5px}
.fevt .fdet{font-family:var(--f-mono);font-size:11px;color:var(--ink-dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fevt .fsc{font-family:var(--f-mono);text-align:right;color:var(--faint);font-size:11.5px}
.fevt.hot .fsc{color:var(--crit);font-weight:700}
.fevt.hot .fty{color:var(--crit)}
.intelrow{padding:11px 18px;border-bottom:1px solid var(--line)}
.intelrow:last-child{border-bottom:0}
.intelrow .ir-h{display:flex;gap:9px;align-items:baseline;flex-wrap:wrap;font-size:12.5px}
.intelrow .ir-t{font-family:var(--f-mono);font-size:11px;color:var(--faint)}
.intelrow .ir-k{color:var(--info);font-weight:600;font-size:11px}
.intelrow .ir-ips{font-family:var(--f-mono);font-size:11px;color:var(--ink-dim);margin-top:4px;word-break:break-all}

/* ---- incident records list ---- */
.badge-pill{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--ink-dim);background:var(--rail);border-radius:20px;padding:4px 10px}
.badge-pill .d{width:7px;height:7px;border-radius:50%;background:var(--ok)}
.rec{display:flex;align-items:flex-start;gap:12px;padding:12px 18px;border-bottom:1px solid var(--line);cursor:pointer}
.rec:last-child{border-bottom:0}
.rec:hover{background:var(--rail)}
.rec .rdot{width:9px;height:9px;border-radius:50%;margin-top:5px;flex:none}
.rec .rmain{flex:1;min-width:0}
.rec .rt{font-weight:600;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rec .rm{font-family:var(--f-mono);font-size:11px;color:var(--ink-dim);margin-top:3px}
.rec .rv{color:var(--info);font-weight:600;font-size:12.5px;flex:none;align-self:center;white-space:nowrap}

/* ---------- Analyst rail ---------- */
.analyst{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);display:flex;flex-direction:column;min-height:0;overflow:hidden}
.app:not(.analyst-open) .analyst{display:none}
.an-head{display:flex;align-items:center;gap:10px;padding:16px 16px;border-bottom:1px solid var(--line);flex:none}
.an-head .sp{width:28px;height:28px;border-radius:9px;background:linear-gradient(135deg,var(--flame1),var(--flame2));display:grid;place-items:center;color:#fff;flex:none}
.an-head .ti{font-family:var(--f-disp);font-weight:600;font-size:15px}
.an-head .ti small{display:block;font-family:var(--f-ui);font-weight:500;font-size:11px;color:var(--ink-dim)}
.an-scope{display:flex;background:var(--rail);border-radius:10px;padding:3px;margin:12px 16px 0}
.an-scope button{flex:1;border:0;background:transparent;color:var(--ink-dim);font-weight:600;font-size:12px;padding:6px;border-radius:7px}
.an-scope button.on{background:var(--surface);color:var(--ink);box-shadow:var(--shadow-sm)}
.an-body{flex:1;min-height:0;overflow:auto;padding:16px}
.msg{margin-bottom:15px}
.msg .who{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--faint);margin-bottom:5px}
.msg.a .bub{background:var(--accent-weak)}
.msg .bub{background:var(--rail);border-radius:14px;padding:11px 13px;font-size:13px}
.msg .bub p{margin:0 0 7px}.msg .bub p:last-child{margin:0}
.msg .bub .tool{font-family:var(--f-mono);font-size:11.5px;background:var(--surface);border-radius:9px;padding:8px 10px;margin:8px 0;color:var(--ink-dim);display:flex;align-items:center;gap:7px;box-shadow:var(--shadow-sm)}
.msg .bub .tool .d{width:6px;height:6px;border-radius:50%;background:var(--ok)}
.chiprow{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.sugg{border:0;background:var(--rail);border-radius:20px;padding:6px 12px;font-size:12px;font-weight:600;color:var(--ink-dim)}
.sugg:hover{color:var(--ink);background:var(--rail-hover)}
.an-input{border-top:1px solid var(--line);padding:12px 14px;flex:none}
.an-input .box{border-radius:14px;background:var(--rail);padding:10px 11px;display:flex;align-items:flex-end;gap:8px}
.an-input textarea{flex:1;border:0;background:transparent;resize:none;color:var(--ink);font-family:inherit;font-size:13px;max-height:80px}
.an-input textarea:focus{outline:0}
.an-send{width:32px;height:32px;border-radius:11px;background:var(--accent);color:var(--accent-ink);border:0;display:grid;place-items:center;flex:none}
.an-send svg{width:15px;height:15px;stroke:currentColor}

/* ---- reliability ---- */
.hgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:13px}
.hcard{border:1px solid var(--line);border-radius:16px;padding:13px 14px;background:var(--surface2);transition:box-shadow .4s,border-color .4s}
.hcard[data-state="warn"]{border-color:var(--warn);box-shadow:0 0 0 1px var(--warn),0 0 17px -6px var(--warn)}
.hcard[data-state="breach"]{border-color:var(--crit);box-shadow:0 0 0 1px var(--crit),0 0 18px -5px var(--crit)}
.hcard .hh{display:flex;align-items:center;gap:7px;margin-bottom:10px}
.hcard .hh .nm{font-family:var(--f-mono);font-size:12.5px;font-weight:600;word-break:break-all}
.hcard .hh .st{margin-left:auto;font-size:9px;font-weight:700;letter-spacing:.06em;padding:2px 7px;border-radius:20px}
.hbar{display:flex;align-items:center;gap:8px;margin:6px 0}
.hbar .hl{width:28px;font-size:11px;color:var(--ink-dim)}
.hbar .ht{flex:1;min-width:0;height:6px;border-radius:5px;background:var(--rail);overflow:hidden}
.hbar .ht i{display:block;height:100%;border-radius:5px}
.hbar .hv{width:48px;text-align:right;font-family:var(--f-mono);font-size:11.5px}
.hbar .hb{font-size:9px;padding:1px 6px;border-radius:20px;border:1px solid;white-space:nowrap}
.hbar .sp{width:50px;height:17px;flex:none}
.hcard .hf{font-size:10.5px;color:var(--faint);margin-top:8px;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.hcard .hf a{color:var(--info);text-decoration:none}
.rule{display:flex;align-items:center;gap:9px;padding:11px 2px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.rule:last-child{border-bottom:0}
.rule .rn{font-weight:600;font-size:12.5px}
.rule .rd{font-family:var(--f-mono);font-size:11px;color:var(--ink-dim);display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.rule .rr{margin-left:auto;display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.relinc{border:1px solid var(--line);border-radius:14px;padding:11px 13px;margin-bottom:9px;background:var(--surface2)}
.relinc.open{border-color:#caa36a}
.relinc .rih{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.relinc .rih .sev{font-weight:700}
.relinc .rid{font-size:12.5px;color:var(--ink-dim);margin-top:5px}
.pmcard{border:1px solid var(--line);border-radius:14px;padding:11px 13px;margin-bottom:9px;background:var(--surface);cursor:pointer;transition:transform .1s,border-color .1s}
.pmcard:hover{transform:translateY(-2px);border-color:var(--line2)}
.pm-ov{position:fixed;inset:0;z-index:200;background:rgba(20,16,10,.5);display:flex;align-items:center;justify-content:center;padding:22px}
.pm-bx{background:var(--surface);border:1px solid var(--line2);border-radius:18px;max-width:720px;width:100%;max-height:86vh;overflow:auto;box-shadow:var(--shadow-pop)}
.pm-bx .pmh{display:flex;align-items:center;gap:10px;padding:18px 22px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--surface)}
.pm-bx .pmh h3{font-family:var(--f-disp);font-weight:600;font-size:18px;margin:0}
.pm-bx .pmb{padding:18px 22px;font-size:13px;line-height:1.6}
.pm-bx .pmb h4{font-family:var(--f-disp);font-weight:600;font-size:13px;letter-spacing:.02em;text-transform:uppercase;color:var(--faint);margin:16px 0 7px}
.pm-bx .pmb h4:first-child{margin-top:0}
.pm-bx .pmb ul{margin:0;padding-left:18px}.pm-bx .pmb li{margin:3px 0}
.pm-bx .pmb .tl{font-family:var(--f-mono);font-size:11.5px;color:var(--ink-dim);border-left:2px solid var(--line2);padding:3px 0 3px 12px;margin:2px 0}

/* ---- telemetry widgets ---- */
.telboard{display:flex;flex-direction:column;gap:14px;margin-bottom:14px}
.wtiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,164px),1fr));gap:12px}
.telsub{font-family:var(--f-ui);font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--faint);margin:2px 0 -4px}
.telsub .mono{font-size:11px}
.wtile{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:13px 14px;box-shadow:var(--shadow-sm);overflow:hidden;position:relative}
.wtile[data-hm]{cursor:pointer;transition:transform .1s,border-color .12s,box-shadow .12s}
.wtile[data-hm]:hover{transform:translateY(-2px);border-color:var(--line2)}
.wtile[data-hm].wt-on{border-color:var(--accent);box-shadow:0 0 0 1.5px var(--accent)}
.wsel{font-family:var(--f-ui);font-size:12.5px;font-weight:600;color:var(--ink);background:var(--rail);border:1px solid var(--line2);border-radius:9px;padding:6px 30px 6px 11px;cursor:pointer;appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c7681' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}
.wsel:focus{outline:none;border-color:var(--accent)}
.wtile .wt-h{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--ink-dim);font-weight:600}
.wtile .wt-dot{width:7px;height:7px;border-radius:50%;flex:none}
.wtile .wt-v{font-family:var(--f-disp);font-size:25px;font-weight:600;line-height:1.05;margin-top:9px;letter-spacing:-.01em}
.wtile .wt-v .u{font-size:12.5px;color:var(--ink-dim);font-weight:500;margin-left:2px}
.wtile .wt-d{font-size:11px;font-weight:600;margin-top:3px;display:flex;align-items:center;gap:4px}
.wtile .wt-spark{margin-top:8px;height:40px}
.wtile .wt-spark svg{width:100%;height:40px;display:block}
.tchart{position:relative}
.tchart svg{width:100%;height:auto;display:block}
.tchart .hover-ov{cursor:crosshair}
.ttip{position:absolute;pointer-events:none;top:6px;left:0;background:var(--surface);border:1px solid var(--line2);border-radius:10px;padding:7px 9px;box-shadow:var(--shadow-pop);opacity:0;transition:opacity .12s;z-index:6}
.ttip .tth{font-family:var(--f-mono);font-size:10px;color:var(--faint);margin-bottom:4px}
.ttr{display:flex;align-items:center;gap:6px;white-space:nowrap;line-height:1.55;font-size:11.5px}
.ttr b{font-variant-numeric:tabular-nums}
.tsw{width:9px;height:9px;border-radius:3px;flex:none}
.wseg{display:inline-flex;background:var(--rail);border-radius:9px;padding:3px;gap:2px}
.wseg button{border:0;background:transparent;color:var(--ink-dim);font-weight:600;font-size:11px;padding:4px 10px;border-radius:7px;font-family:inherit;cursor:pointer}
.wseg button.on{background:var(--surface);color:var(--ink);box-shadow:var(--shadow-sm)}
.wlegend{display:flex;gap:16px;font-size:11px;color:var(--ink-dim);margin-top:2px}
.wlegend span{display:flex;align-items:center;gap:6px}
.wlegend i{width:14px;height:0;border-top:2px solid currentColor;display:inline-block}
.wlegend i.dash{border-top-style:dashed}
.btbl{width:100%;border-collapse:collapse}
.btbl td,.btbl th{padding:8px 6px;text-align:left;font-size:12px;border-bottom:1px solid var(--line)}
.btbl th{font-size:10px;letter-spacing:.05em;text-transform:uppercase;color:var(--faint);font-weight:600}
.btbl tr:last-child td{border-bottom:0}
.btbl .num{text-align:right;font-family:var(--f-mono);font-variant-numeric:tabular-nums}
.btbl .spk{width:70px}

.railtoggle{display:none}
@media(max-width:1180px){
  .app.analyst-open{grid-template-columns:250px minmax(0,1fr)}
  .app.analyst-open .analyst{position:fixed;right:14px;top:14px;bottom:14px;width:min(384px,86vw);z-index:46;box-shadow:var(--shadow-pop)}
  .dash{grid-template-columns:1fr}
}
@media(max-width:760px){
  .app,.app.analyst-open{grid-template-columns:1fr;padding:10px;gap:10px}
  .rail{position:fixed;left:10px;top:10px;bottom:10px;width:270px;z-index:50;transform:translateX(-115%);transition:transform .2s;box-shadow:var(--shadow-pop)}
  .app.rail-open .rail{transform:none}
  .railtoggle{display:grid}
  .hero .hblob{width:34%}
  .app.rail-open .scrim{display:block}
}
/* cell label: long real node ids ellipsize; the full id is in the tooltip */
.cell{padding:0 12px;min-width:0}
.cell .clab{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* NOT PROTECTED (unlicensed / collector-blind): a node that's up but unguarded never reads as calm */
.cell .cflag{position:absolute;top:5px;left:6px;width:15px;height:15px;border-radius:50%;background:var(--crit);color:#fff;
  font-family:var(--f-body);font-size:10px;font-weight:800;line-height:15px;text-align:center;box-shadow:0 0 0 2px var(--surface)}
.cell.dim{opacity:.28}
.section[data-tenant]{cursor:default}
.section .cells{grid-template-columns:repeat(auto-fill,minmax(92px,1fr))}
.section .sh .n{min-width:0}
@media (max-width:640px){.section[style*="span 2"]{grid-column:auto!important}}
