/* Plumb design system. Tokens follow Perpl's dark app theme (surfaces,
   indigo accent, long/short colours, Geist); the categorical chart palette is
   brand-tinted and validated for colour-vision deficiency on the chart
   surface (see docs/design.md). */
@font-face { font-family: 'Geist'; src: url('/vendor/fonts/geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/vendor/fonts/geist-mono.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-glow: #110c21;
  --surface: #0e0d10;
  --surface-2: #121113;
  --surface-3: #1a191d;
  --menu: #1e1b23;
  --tooltip: #24222a;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --grid: rgba(255, 255, 255, 0.05);
  --text: #ffffff;
  --text-2: rgba(224, 225, 255, 0.70);
  --text-3: rgba(255, 255, 255, 0.42);
  --accent: #a2a4ff;
  --accent-strong: #6f5cff;
  --accent-hover: #6366fe;
  --accent-soft: rgba(162, 164, 255, 0.10);
  --long: #81c784;
  --short: #f65a6e;
  --long-soft: rgba(129, 199, 132, 0.12);
  --short-soft: rgba(246, 90, 110, 0.12);
  --warn: #ffa726;
  --info: #29b6f6;
  /* categorical (validated, dark surface) */
  --c1: #7b7dea; --c2: #d36c00; --c3: #00a999; --c4: #b28500; --c5: #cd5ea2; --c6: #0098de; --c-other: #5c5b66;
  --radius: 6px;
  --radius-sm: 4px;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --page: 1440px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 400 14px/1.45 var(--font);
  background: radial-gradient(1200px 420px at 50% -120px, var(--bg-glow), transparent 70%), var(--bg);
  -webkit-font-smoothing: antialiased; font-feature-settings: 'ss01';
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.num, td.n, .kpi-value, .mono-num { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.pos { color: var(--long); }
.neg { color: var(--short); }
.warn-text { color: var(--warn); }
.hidden { display: none !important; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(0, 0, 0, 0.78); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.top-inner { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); height: 56px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 22px; height: 22px; color: var(--accent); }
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: -0.02em; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 7px 11px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; font-size: 13.5px; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav a.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.search { position: relative; flex: 1; max-width: 420px; margin-left: auto; display: flex; align-items: center; height: 36px; padding: 0 10px; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.search:focus-within { border-color: rgba(162, 164, 255, 0.45); }
.search svg { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 13px; }
.search input::placeholder { color: var(--text-3); }
.search kbd { font: 500 11px var(--mono); color: var(--text-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; }
.search-results { position: absolute; top: 42px; left: 0; right: 0; background: var(--menu); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 4px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); }
.search-results a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: var(--radius-sm); }
.search-results a:hover, .search-results a.sel { background: var(--accent-soft); color: var(--text); }
.search-results .empty { padding: 10px; color: var(--text-3); font-size: 13px; }
.ticker { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-variant-numeric: tabular-nums; flex: none; }
.ticker[hidden] { display: none; }
.ticker .tk { border-radius: 50%; }
.ticker .tp { color: var(--text); font-weight: 500; }
.ticker:hover { border-color: var(--line-2); color: inherit; }
.live { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--text-2); flex: none; font-variant-numeric: tabular-nums; }
.live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.live.ok .dot { background: var(--long); box-shadow: 0 0 0 0 rgba(129, 199, 132, 0.6); animation: pulse 2s infinite; }
.live.warn .dot { background: var(--warn); }
.live.bad .dot { background: var(--short); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(129, 199, 132, 0.55); } 70% { box-shadow: 0 0 0 7px rgba(129, 199, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(129, 199, 132, 0); } }

.banner { max-width: var(--page); margin: 12px auto 0; padding: 0 var(--gutter); }
.banner-inner { display: flex; align-items: center; gap: 14px; padding: 9px 14px; border: 1px solid rgba(162, 164, 255, 0.18); background: rgba(111, 92, 255, 0.07); border-radius: var(--radius); font-size: 13px; color: var(--text-2); }
.banner-inner b { color: var(--text); font-weight: 500; }
@media (max-width: 860px) { .banner-inner { flex-wrap: wrap; gap: 6px 12px; } .banner-inner .faint { flex-basis: 100%; } .banner-inner .bar { flex: 1; } }
.bar { flex: 0 0 180px; height: 4px; background: rgba(255, 255, 255, 0.08); border-radius: 2px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); }

/* ---------- layout ---------- */
.view { max-width: var(--page); margin: 0 auto; padding: 20px var(--gutter) 48px; outline: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 8px 0 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.page-head .sub { color: var(--text-2); font-size: 13px; margin-top: 4px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); }
@media (max-width: 1300px) { .top-inner { gap: 18px; } .nav a { padding: 7px 9px; } }
@media (max-width: 1100px) { .g-2, .g-3, .g-main { grid-template-columns: minmax(0, 1fr); } .nav a { padding: 7px 8px; font-size: 13px; } .search kbd { display: none; } }
/* Phones: the nav becomes a second, horizontally scrolling row. */
@media (max-width: 860px) {
  .top-inner { height: auto; min-height: 56px; flex-wrap: wrap; gap: 6px 12px; padding-top: 10px; padding-bottom: 4px; }
  .nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: none; padding: 6px 10px; }
  .search { min-width: 0; }
  .search kbd { display: none; }
  .live span:last-child { display: none; }
  .ticker { display: none; }
}
@media (max-width: 420px) { .brand-name { display: none; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; min-height: 48px; }
.panel-head h2 { margin: 0; font-size: 13.5px; font-weight: 600; letter-spacing: -0.005em; }
.panel-head .meta { color: var(--text-3); font-size: 12px; }
@media (max-width: 640px) {
  .panel-head { flex-wrap: wrap; }
  .panel-head .meta { flex: 1 1 100%; }
  .kpi-row { flex-wrap: wrap; row-gap: 2px; }
  .kpi-note { white-space: normal; }
}
.panel-body { padding: 0 16px 16px; }
.panel-body.flush { padding: 0; }
.panel-foot { padding: 10px 16px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12px; display: flex; justify-content: space-between; gap: 10px; }

/* ---------- controls ---------- */
.seg { display: inline-flex; padding: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: transparent; color: var(--text-2); padding: 5px 11px; border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 500; cursor: pointer; font-variant-numeric: tabular-nums; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 12px 0 11px; color: var(--text-2); font-weight: 500; font-size: 13px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; flex: none; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.btn:hover { border-color: rgba(162, 164, 255, 0.45); color: var(--text); }
.btn.primary { background: var(--accent-strong); border-color: transparent; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { background: transparent; }
.btn svg { width: 14px; height: 14px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 0; background: none; color: var(--text-3); cursor: pointer; border-radius: 4px; padding: 0; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.icon-btn.on { color: var(--warn); }
.icon-btn svg { width: 14px; height: 14px; }
.chart-tools { display: inline-flex; gap: 2px; opacity: 0; transition: opacity 0.15s; }
.panel:hover .chart-tools, .chart-tools:focus-within { opacity: 1; }
@media (hover: none) { .chart-tools { opacity: 1; } }
.head-right { display: flex; align-items: flex-start; gap: 10px; }

/* ---------- KPIs (Nado-style, no boxes) ---------- */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis.k5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpis.k7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 1100px) { .kpis, .kpis.k5, .kpis.k7 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kpis, .kpis.k4, .kpis.k5, .kpis.k7 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { padding: 14px 16px 12px; border-left: 1px solid var(--line); min-width: 0; position: relative; }
.kpi:first-child { border-left: 0; }
@media (max-width: 1100px) { .kpi { border-left: 0; border-top: 1px solid var(--line); } }
.kpi-label { color: var(--text-2); font-size: 12px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.kpi-value { font-size: 24px; font-weight: 500; letter-spacing: -0.025em; margin-top: 6px; white-space: nowrap; line-height: 1.15; }
.kpi-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; min-height: 18px; }
.kpi-note { color: var(--text-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .spark { height: 30px; margin-top: 6px; }
.delta { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; }
.delta.up { color: var(--long); }
.delta.down { color: var(--short); }
.delta.flat { color: var(--text-3); }
.info-tip { display: inline-flex; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--text-3); color: var(--text-3); font-size: 9px; align-items: center; justify-content: center; cursor: help; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
.t th { position: sticky; top: 0; background: var(--surface); text-align: left; font-weight: 500; font-size: 12px; color: var(--text-3); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; user-select: none; }
.t th.n, .t td.n { text-align: right; }
.t th.sort { cursor: pointer; }
.t th.sort:hover { color: var(--text-2); }
.t th.sorted { color: var(--text); }
.t td { padding: 0 12px; height: 42px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { transition: background 0.12s; }
.t tbody tr.link { cursor: pointer; }
.t tbody tr:hover { background: rgba(162, 164, 255, 0.045); }
.t td:first-child, .t th:first-child { padding-left: 16px; }
.t td:last-child, .t th:last-child { padding-right: 16px; }
.t.compact td { height: 36px; }
.t .sub { color: var(--text-3); font-size: 11.5px; }
.t tr.flash td { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: rgba(162, 164, 255, 0.14); } to { background: transparent; } }
.t tr.proposed td { opacity: 0.55; }
.rank { color: var(--text-3); width: 36px; font-variant-numeric: tabular-nums; }
.cell-bar { position: relative; }
tr.hl td { background: rgba(162, 164, 255, 0.07); }
.t tbody tr.sel td { background: var(--accent-soft); }
.cell-bar .track { position: absolute; right: 12px; bottom: 6px; width: 64px; height: 2px; background: rgba(255, 255, 255, 0.07); border-radius: 1px; overflow: hidden; }
.cell-bar .track > i { position: absolute; right: 0; top: 0; bottom: 0; background: var(--accent); opacity: 0.8; }

/* ---------- small components ---------- */
.mkt { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.mkt .sw { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.mkt .tk { border-radius: 50%; flex: none; box-shadow: 0 0 0 1px var(--line-2); }
.mkt .nm { color: var(--text-3); font-weight: 400; font-size: 12px; }
.side { font-size: 11.5px; font-weight: 600; padding: 2px 6px; border-radius: 3px; letter-spacing: 0.02em; }
.side.long { color: var(--long); background: var(--long-soft); }
.side.short { color: var(--short); background: var(--short-soft); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; padding: 2px 6px; border-radius: 3px; color: var(--text-2); background: rgba(255, 255, 255, 0.06); }
.tag.accent { color: var(--accent); background: var(--accent-soft); }
.tag.warn { color: var(--warn); background: rgba(255, 167, 38, 0.1); }
.tag.bad { color: var(--short); background: var(--short-soft); }
.tag.good { color: var(--long); background: var(--long-soft); }
.rank-pill { display: inline-block; min-width: 34px; padding: 1px 6px; border-radius: 3px; font-size: 11.5px; font-weight: 500; text-align: center; color: var(--text-2); background: rgba(255, 255, 255, 0.06); font-variant-numeric: tabular-nums; }
.rank-pill.top { color: var(--accent); background: var(--accent-soft); }
tr.inactive td { opacity: 0.5; }
.sub.tags { display: flex; gap: 4px; margin-top: 3px; }
.sub.tags .tag { font-size: 10.5px; padding: 1px 5px; cursor: help; }
.addr { display: inline-flex; align-items: center; gap: 4px; }
.addr a { font-family: var(--mono); font-size: 12.5px; }
.ratio { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, 0.06); min-width: 64px; }
.ratio i { display: block; height: 100%; }
.ratio i.l { background: var(--long); }
.ratio i.s { background: var(--short); }
.ratio-wrap { display: flex; flex-direction: column; gap: 4px; min-width: 96px; }
.ratio-wrap .lbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.chart { width: 100%; height: 300px; }
.chart.sm { height: 200px; }
.chart.lg { height: 360px; }
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13px; }
.list-row:first-child { border-top: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { padding: 11px 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat > span:first-child { color: var(--text-2); white-space: nowrap; }
.stat > span:last-child { font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; }
@media (max-width: 640px) { .stat > span { min-width: 0; } .stat > span:first-child { white-space: normal; } }
.insights { display: flex; flex-direction: column; gap: 8px; padding: 4px 16px 16px; }
.insight { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.insight .tag { flex: none; margin-top: 1px; min-width: 72px; justify-content: center; }
.heat { display: grid; grid-template-columns: 28px repeat(24, minmax(0, 1fr)); gap: 2px; font-size: 10px; color: var(--text-3); }
.cal-wrap { display: flex; gap: 6px; overflow-x: auto; }
.cal-days { display: grid; grid-template-rows: 14px repeat(7, 16px); gap: 3px; font-size: 10px; color: var(--text-3); line-height: 16px; }
.cal { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 16px); grid-auto-columns: 16px; gap: 3px; }
.cal i { display: block; width: 16px; height: 16px; border-radius: 3px; }
.cal-months { display: grid; grid-auto-flow: column; grid-auto-columns: 16px; gap: 3px; font-size: 10px; color: var(--text-3); height: 14px; margin-bottom: 3px; }
.cal-months span { white-space: nowrap; overflow: visible; }
.cal-foot { margin-top: 10px; font-size: 12px; }
.heat i { display: block; height: 14px; border-radius: 2px; background: rgba(162, 164, 255, 0.06); }
.empty-state { padding: 36px 16px; text-align: center; color: var(--text-3); font-size: 13px; }
.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 4px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-line { height: 12px; margin: 10px 0; }
.sk-block { height: 280px; }
.wallet-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wallet-id { display: flex; flex-direction: column; gap: 4px; }
.wallet-id .big { font: 500 20px var(--mono); letter-spacing: -0.01em; }
.addr-short { display: none; }
@media (max-width: 900px) { .addr-full { display: none; } .addr-short { display: inline; } }
.wallet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
@media (max-width: 640px) { .wallet-actions { margin-left: 0; } }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--tooltip); border: 1px solid var(--line-2); padding: 9px 14px; border-radius: var(--radius); font-size: 13px; opacity: 0; pointer-events: none; transition: all 0.18s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.foot { border-top: 1px solid var(--line); margin-top: 24px; }
.foot-inner { max-width: var(--page); margin: 0 auto; padding: 18px var(--gutter) 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-3); font-size: 12px; }
.foot a { color: var(--text-2); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--accent); }
.range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 3px solid var(--surface); }
.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stage { padding: 14px 16px; border-left: 1px solid var(--line); }
.stage:first-child { border-left: 0; }
.stage h3 { margin: 0 0 8px; font-size: 12px; color: var(--text-2); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.stage .v { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stage .d { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--text-3); }
.status-dot.ok { background: var(--long); }
.status-dot.warn { background: var(--warn); }
.status-dot.bad { background: var(--short); }
.doc { font-size: 13.5px; color: var(--text-2); line-height: 1.6; padding: 0 16px 16px; }
.doc code { font-family: var(--mono); font-size: 12px; color: var(--text); background: rgba(255, 255, 255, 0.05); padding: 1px 4px; border-radius: 3px; }
.doc h3 { color: var(--text); font-size: 13.5px; margin: 16px 0 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* panels whose body scrolls inside the row height set by a sibling */
.panel.fill { display: flex; flex-direction: column; }
.panel.fill > .scroll { flex: 1 1 0; min-height: 0; overflow: auto; }
/* Stacked single column: the panel has no row height to fill, so give the list its own. */
@media (max-width: 1100px) { .panel.fill > .scroll { flex: none; max-height: 460px; } }
.seg.sm button { padding: 3px 8px; font-size: 11.5px; }

/* section labels with a rule (HyperScreener-style grouping) */
.section-label { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; font-weight: 500; letter-spacing: 0.01em; margin: 10px 0 -2px; }
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.panel-head .desc { color: var(--text-3); font-size: 12px; margin-top: 2px; font-weight: 400; }
.head-value { text-align: right; }
.head-value .hv { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.head-value .hn { color: var(--text-3); font-size: 11.5px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.legend.toggles { gap: 6px; }
.legend .lg { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: transparent; color: var(--text-2); border-radius: 999px; padding: 2px 9px 2px 7px; font-size: 11.5px; cursor: pointer; }
.legend .lg:hover { border-color: var(--line-2); color: var(--text); }
.legend .lg i { width: 8px; height: 8px; border-radius: 2px; }
.legend .lg .tk { border-radius: 50%; margin-left: -1px; }
.legend .lg.off { opacity: 0.4; }
.legend .lg.off i { background: transparent !important; box-shadow: inset 0 0 0 1px var(--text-3); }
