/* =========================================================================
   Investor Intelligence — panel styles
   Editorial / instrument-panel look: paper & ink neutrals, one deep accent,
   tabular figures, hairline rules instead of heavy card shadows.
   ========================================================================= */

:root {
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --bg: #f4f3ee;
  --surface: #fbfaf7;
  --surface-2: #efede6;
  --ink: #15171b;
  --ink-2: #3d4148;
  --muted: #72767e;
  --rule: #dedbd1;
  --rule-strong: #c9c5b8;
  --accent: #124e66;
  --accent-ink: #ffffff;
  --accent-soft: #dcebf0;
  --rail-bg: #15191f;
  --rail-ink: #c9ccd2;
  --rail-muted: #7d838d;
  --rail-active: #f4f3ee;

  --ok: #1f7a4d;     --ok-soft: #dcefe4;
  --warn: #a5650b;   --warn-soft: #f6ead3;
  --bad: #b3261e;    --bad-soft: #f6dcd9;
  --off: #8a8d93;    --off-soft: #e8e7e2;

  --radius: 6px;
  --shadow: 0 1px 0 rgba(21, 23, 27, .04);

  --bs-body-font-family: var(--font-sans);
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--ink);
  --bs-border-color: var(--rule);
  --bs-link-color-rgb: 18, 78, 102;
  --bs-link-hover-color-rgb: 10, 52, 70;
  --bs-emphasis-color: var(--ink);
  --bs-secondary-color: var(--muted);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; }
}
:root[data-theme="dark"], :root.theme-dark {
  --bg: #0f1114;
  --surface: #161a1f;
  --surface-2: #1d2228;
  --ink: #e8e6e0;
  --ink-2: #c4c2bc;
  --muted: #8b9099;
  --rule: #2a3038;
  --rule-strong: #3a414b;
  --accent: #6fb3cc;
  --accent-ink: #0b1418;
  --accent-soft: #15303a;
  --rail-bg: #0b0d10;
  --rail-ink: #b9bdc4;
  --rail-muted: #6d737c;
  --rail-active: #e8e6e0;
  --ok: #5cc28e;   --ok-soft: #13291e;
  --warn: #e0a548; --warn-soft: #2e2413;
  --bad: #ef7b72;  --bad-soft: #321a18;
  --off: #80858d;  --off-soft: #22262c;
  --shadow: none;
  --bs-link-color-rgb: 111, 179, 204;
  --bs-link-hover-color-rgb: 150, 203, 222;
  color-scheme: dark;
}

html, body { background: var(--bg); color: var(--ink); }
body { font-family: var(--font-sans); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.num, .mono, code, td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: .92em; }
a { text-underline-offset: 2px; }
::selection { background: var(--accent-soft); }

/* ---------------------------------------------------------------- shell */
.shell { display: flex; min-height: 100vh; }
.rail {
  width: 236px; flex: 0 0 236px; background: var(--rail-bg); color: var(--rail-ink);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
/* Bootstrap's .offcanvas-lg forces a transparent background on desktop; the rail keeps its own. */
.rail.offcanvas-lg { background-color: var(--rail-bg) !important; color: var(--rail-ink); }
@media (max-width: 991.98px) {
  .rail.offcanvas-lg { position: fixed; height: 100%; }
}
.rail .offcanvas-body { display: flex; flex-direction: column; padding: 0; height: 100%; overflow-y: auto; }
.brand { padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.brand-mark { display: flex; align-items: center; gap: 10px; color: var(--rail-active); text-decoration: none; }
.brand-mark svg { flex: 0 0 auto; }
.brand-name { font-weight: 600; letter-spacing: .01em; font-size: 15px; line-height: 1.15; }
.brand-name small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--rail-muted); }

.nav-group { padding: 16px 12px 4px; }
.nav-group-title { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rail-muted); padding: 0 8px 6px; }
.nav-item-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 8px; border-radius: 4px; color: var(--rail-ink); text-decoration: none; font-size: 13.5px;
  border-left: 2px solid transparent;
}
.nav-item-link:hover { background: rgba(255,255,255,.04); color: var(--rail-active); }
.nav-item-link.active { color: var(--rail-active); background: rgba(255,255,255,.06); border-left-color: var(--accent); }
.nav-item-link.planned { color: var(--rail-muted); }
.phase-tag { font-family: var(--font-mono); font-size: 10px; padding: 1px 6px; border-radius: 3px;
  border: 1px solid rgba(255,255,255,.12); color: var(--rail-muted); white-space: nowrap; }
.rail-foot { margin-top: auto; padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.06); font-size: 12.5px; }
.rail-foot a, .rail-foot button { color: var(--rail-ink); }
.rail-foot .btn-link { padding: 0; font-size: 12.5px; text-decoration: none; }

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 16px; padding: 14px 28px; border-bottom: 1px solid var(--rule);
  background: var(--bg); position: sticky; top: 0; z-index: 10;
}
.topbar h1 { font-size: 19px; font-weight: 600; margin: 0; letter-spacing: -.005em; }
.topbar .crumb { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.clocks { margin-left: auto; display: flex; gap: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.clocks b { color: var(--ink); font-weight: 500; }
.icon-btn { border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); border-radius: var(--radius);
  width: 34px; height: 34px; display: inline-grid; place-items: center; }
.icon-btn:hover { border-color: var(--rule-strong); color: var(--ink); }
.content { padding: 24px 28px 48px; max-width: 1440px; width: 100%; }
@media (max-width: 575.98px) {
  .topbar { padding: 12px 16px; } .content { padding: 18px 16px 40px; } .clocks { display: none; }
}

/* ---------------------------------------------------------------- panels */
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 14px 18px 10px; border-bottom: 1px solid var(--rule); }
.panel-title { font-size: 13px; font-weight: 600; letter-spacing: .02em; margin: 0; }
.panel-sub { font-size: 12px; color: var(--muted); }
.panel-body { padding: 16px 18px; }
.panel-body.flush { padding: 0; }
.eyebrow { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* KPI strip: hairline-divided instrument readouts */
.readouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 1px solid var(--rule);
  border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.readout { padding: 14px 18px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: -1px; }
.readout:last-child { border-right: 0; }
.readout .value { font-family: var(--font-mono); font-size: 22px; font-weight: 500; margin-top: 4px; line-height: 1.1; }
.readout .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Empty state for modules not built yet – explicit, never fake numbers */
.empty { padding: 26px 18px; text-align: left; color: var(--muted); font-size: 13px; }
.empty strong { display: block; color: var(--ink-2); font-weight: 500; margin-bottom: 2px; }
.empty .phase-pill { display: inline-block; margin-top: 10px; font-family: var(--font-mono); font-size: 11px;
  padding: 2px 8px; border: 1px dashed var(--rule-strong); border-radius: 3px; color: var(--muted); }

/* ---------------------------------------------------------------- status */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; white-space: nowrap;
  padding: 2px 8px 2px 7px; border-radius: 999px; background: var(--off-soft); color: var(--off); }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-ok, .status-success { background: var(--ok-soft); color: var(--ok); }
.status-degraded, .status-skipped, .status-running { background: var(--warn-soft); color: var(--warn); }
.status-down, .status-failed { background: var(--bad-soft); color: var(--bad); }
.status-disabled, .status-unknown { background: var(--off-soft); color: var(--off); }

.tag { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; padding: 1px 6px; border-radius: 3px;
  border: 1px solid var(--rule); color: var(--ink-2); background: var(--surface-2); white-space: nowrap; }
.tag-accent { border-color: transparent; background: var(--accent-soft); color: var(--accent); }

/* ---------------------------------------------------------------- tables */
.table { --bs-table-bg: transparent; --bs-table-color: var(--ink); --bs-table-border-color: var(--rule);
  --bs-table-hover-bg: var(--surface-2); margin: 0; font-size: 13.5px; }
.table > thead th { font-family: var(--font-mono); font-weight: 500; font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); border-bottom-color: var(--rule-strong); padding: 10px 12px; white-space: nowrap; }
.table > tbody td { padding: 10px 12px; vertical-align: middle; }
.table > tbody tr:last-child td { border-bottom: 0; }
.table .sub { display: block; font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- provider cards */
.provider { border-top: 1px solid var(--rule); padding: 16px 18px; scroll-margin-top: 80px; }
.provider:first-child { border-top: 0; }
.provider-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.provider-name { font-weight: 600; font-size: 14.5px; }
.provider-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 20px; margin-top: 12px; }
.provider-meta dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 400; }
.provider-meta dd { margin: 0; font-size: 13px; }
.license { margin-top: 10px; font-size: 12.5px; color: var(--ink-2); border-left: 2px solid var(--rule-strong); padding-left: 10px; }
.provider-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
details.provider-config summary { cursor: pointer; font-size: 12.5px; color: var(--accent); list-style: none; }
details.provider-config summary::-webkit-details-marker { display: none; }
details.provider-config[open] summary { margin-bottom: 10px; }

/* ---------------------------------------------------------------- forms & buttons */
.btn { --bs-btn-font-size: 13px; --bs-btn-padding-y: .35rem; --bs-btn-padding-x: .8rem; border-radius: 5px; font-weight: 500; }
.btn-primary { --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-color: var(--accent-ink);
  --bs-btn-hover-bg: var(--accent); --bs-btn-hover-border-color: var(--accent); --bs-btn-hover-color: var(--accent-ink);
  --bs-btn-active-bg: var(--accent); --bs-btn-active-border-color: var(--accent); filter: saturate(1.05); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-quiet { --bs-btn-color: var(--ink-2); --bs-btn-bg: var(--surface); --bs-btn-border-color: var(--rule);
  --bs-btn-hover-bg: var(--surface-2); --bs-btn-hover-border-color: var(--rule-strong); --bs-btn-hover-color: var(--ink);
  --bs-btn-active-bg: var(--surface-2); --bs-btn-active-border-color: var(--rule-strong); }
.btn-sm { --bs-btn-font-size: 12.5px; --bs-btn-padding-y: .2rem; --bs-btn-padding-x: .6rem; }
.form-control, .form-select { background-color: var(--surface); border-color: var(--rule-strong); color: var(--ink);
  font-size: 13.5px; border-radius: 5px; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
  background-color: var(--surface); color: var(--ink); }
.form-label { font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 4px; }
.form-text { color: var(--muted); font-size: 12px; }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.setting-row { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 8px 24px; padding: 12px 18px;
  border-top: 1px solid var(--rule); align-items: center; }
.setting-row:first-child { border-top: 0; }
.setting-row .key { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
@media (max-width: 767.98px) { .setting-row { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- flash */
.flash { border-radius: var(--radius); border: 1px solid var(--rule); background: var(--surface); padding: 10px 14px;
  font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; border-left-width: 3px; }
.flash-success { border-left-color: var(--ok); }
.flash-danger { border-left-color: var(--bad); }
.flash-warning { border-left-color: var(--warn); }
.flash-secondary, .flash-info { border-left-color: var(--off); }

/* ---------------------------------------------------------------- login */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.login-art { background: var(--rail-bg); color: var(--rail-ink); padding: 48px; display: flex; flex-direction: column;
  justify-content: space-between; position: relative; overflow: hidden; }
.login-art svg.grid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.login-art .quote { position: relative; max-width: 420px; font-size: 22px; line-height: 1.35; color: var(--rail-active); font-weight: 300; }
.login-art .quote small { display: block; margin-top: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--rail-muted); }
.login-form { display: grid; place-items: center; padding: 32px 16px; }
.login-form form { width: 100%; max-width: 340px; }
@media (max-width: 767.98px) { .login-wrap { grid-template-columns: 1fr; } .login-art { display: none; } }

.mt-section { margin-top: 20px; }
.text-muted-2 { color: var(--muted) !important; }
.hr { border-top: 1px solid var(--rule); }
.mw-520 { max-width: 520px; } .mw-640 { max-width: 640px; } .mw-720 { max-width: 720px; }
.interval-input { width: 118px; }
.detail-cell { font-size: 11.5px; max-width: 420px; word-break: break-word; }

/* ---------------------------------------------------------------- news radar */
.score { flex: 0 0 auto; display: inline-grid; place-items: center; width: 40px; height: 32px; border-radius: 5px;
  font-family: var(--font-mono); font-weight: 500; font-size: 14px; border: 1px solid var(--rule);
  background: var(--surface-2); color: var(--muted); }
.score-lo { color: var(--ink-2); border-color: var(--rule-strong); }
.score-md { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.score-hi { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.score-lg { width: 64px; height: 52px; font-size: 22px; border-radius: 6px; }

.verif { font-size: 11.5px; font-weight: 500; padding: 1px 7px; border-radius: 999px; white-space: nowrap;
  background: var(--off-soft); color: var(--off); }
.verif-official { background: var(--accent-soft); color: var(--accent); }
.verif-corroborated { background: var(--ok-soft); color: var(--ok); }
.verif-speculative, .verif-state_or_low_only { background: var(--warn-soft); color: var(--warn); }

.tier { font-family: var(--font-mono); font-size: 10.5px; padding: 1px 6px; border-radius: 3px; white-space: nowrap;
  border: 1px solid var(--rule); color: var(--muted); }
.tier-official { border-color: var(--accent); color: var(--accent); }
.tier-major { color: var(--ink-2); border-color: var(--rule-strong); }
.tier-state, .tier-low { border-color: var(--warn); color: var(--warn); }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface);
  color: var(--ink-2); text-decoration: none; }
.chip .num { color: var(--muted); margin-left: 4px; }
.chip:hover { border-color: var(--rule-strong); color: var(--ink); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip.active .num { color: inherit; opacity: .8; }

.event-list { list-style: none; margin: 0; padding: 0; }
.event-row { display: flex; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--rule); align-items: flex-start; }
.event-row:first-child { border-top: 0; }
.event-main { min-width: 0; flex: 1 1 auto; }
.event-title { color: var(--ink); font-weight: 500; text-decoration: none; line-height: 1.35; display: block; }
.event-title:hover { color: var(--accent); text-decoration: underline; }
.event-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.event-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.event-tags a.tag, a.tag { text-decoration: none; }
a.tag:hover { border-color: var(--rule-strong); color: var(--ink); }
.tag-country { background: transparent; }
.tag-entity { background: transparent; border-style: dashed; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 12px; border-top: 1px solid var(--rule); }
.attribution { margin-top: 10px; font-size: 12px; color: var(--muted); }
.panel-foot { padding: 8px 18px 12px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--rule); }
.cal-when { width: 64px; white-space: nowrap; }

.event-hero { display: flex; gap: 18px; align-items: flex-start; }
.event-hero-title { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 0; letter-spacing: -.005em; }
.timeline { list-style: none; margin: 0; padding: 4px 0; }
.timeline-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px 18px;
  border-top: 1px solid var(--rule); border-left: 3px solid transparent; }
.timeline-item:first-child { border-top: 0; }
.timeline-item.is-new { border-left-color: var(--accent); }
.timeline-time { font-size: 12px; color: var(--muted); padding-top: 2px; }
.timeline-title { color: var(--ink); text-decoration: none; font-weight: 500; }
.timeline-title:hover { color: var(--accent); text-decoration: underline; }
.timeline-summary { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); }
.comp { margin-bottom: 12px; }
.comp-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.comp-bar { width: 100%; height: 6px; margin-top: 4px; }
.comp-bar::-webkit-meter-bar { background: var(--surface-2); border: 0; border-radius: 3px; height: 6px; }
.comp-bar::-webkit-meter-optimum-value { background: var(--accent); border-radius: 3px; }
.comp-bar::-moz-meter-bar { background: var(--accent); border-radius: 3px; }
.comp-hint { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.entity-group { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.entity-group .eyebrow { width: 100%; }
.domain-table { max-height: 560px; overflow-y: auto; }
.domain-table .form-select { width: auto; }
@media (max-width: 575.98px) {
  .event-row { padding: 12px 14px; gap: 10px; }
  .timeline-item { grid-template-columns: 1fr; gap: 2px; }
  .event-hero { flex-direction: column; gap: 10px; }
}

/* ---------------------------------------------------------------- market */
.chg-up { color: var(--ok); }
.chg-down { color: var(--bad); }
.chart-box { position: relative; height: 340px; }
.chart-box-sm { height: 150px; }
.asset-hero { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end; }
.asset-price { text-align: right; }
.asset-price .value { font-size: 26px; font-weight: 500; }
.asset-price .hint { font-size: 12px; color: var(--muted); }
.asset-table td .sub { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 575.98px) { .asset-price { text-align: left; } .chart-box { height: 260px; } }

/* ---------------------------------------------------------------- AI / macro */
.ai-body p { font-size: 14px; }
.ai-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.refs { font-family: var(--font-mono); font-size: 10.5px; color: var(--accent); margin-left: 4px; }
.claim-list { list-style: none; padding: 0; margin: 0; }
.claim-list li { padding: 5px 0; border-top: 1px solid var(--rule); font-size: 13.5px; }
.claim-list li:first-child { border-top: 0; }
.claim-verified_fact, .claim-official_statement { border-color: var(--accent); color: var(--accent); }
.claim-speculation, .claim-opinion { border-color: var(--warn); color: var(--warn); }
.tag-warn { border-color: var(--warn); color: var(--warn); background: transparent; }
.counter-box { border-left: 3px solid var(--warn); background: var(--surface-2); padding: 10px 14px; border-radius: 4px; }
.counter-box ul { font-size: 13px; padding-left: 18px; }
.evidence-list { font-size: 12.5px; padding-left: 0; list-style: none; margin-top: 6px; }
.evidence-list li { padding: 2px 0; color: var(--muted); }
.evidence-list li.cited { color: var(--ink-2); }
.analog { padding: 6px 0; border-top: 1px solid var(--rule); font-size: 13px; }
.analog:first-of-type { border-top: 0; }
.regime { display: inline-flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid var(--rule);
  border-radius: var(--radius); background: var(--surface); min-width: 150px; }
.regime b { font-weight: 500; font-size: 13.5px; }

/* ---------------------------------------------------------------- opportunities */
.act { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 4px; white-space: nowrap; border: 1px solid var(--rule); }
.act-buy_candidate { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.act-reduce_candidate { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.act-watch { color: var(--accent); border-color: var(--accent); }
.act-wait, .act-insufficient_data { color: var(--muted); }
.risk { font-size: 12px; white-space: nowrap; }
.risk-low { color: var(--ok); } .risk-medium { color: var(--warn); } .risk-high { color: var(--bad); }
.why-cell { max-width: 380px; }
.evidence-item { font-size: 13px; padding: 5px 0; border-top: 1px solid var(--rule); }
.evidence-item:first-child { border-top: 0; }
.evidence-item.contra .tag { border-color: var(--warn); color: var(--warn); }

/* ---------------------------------------------------------------- portfolio */
.chart-box-md { height: 240px; }
.warn-list { list-style: none; margin: 0; padding: 6px 18px 12px; }
.warn-list li { padding: 5px 0; border-top: 1px solid var(--rule); font-size: 13.5px; }
.warn-list li:first-child { border-top: 0; }
.warn-list .tag { border-color: var(--warn); color: var(--warn); }
.text-warn { color: var(--warn) !important; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 52px; gap: 8px; align-items: center; padding: 2px 0; }
.bar-row meter { width: 100%; height: 6px; }
.corr-table td, .corr-table th { padding: 6px 8px; font-size: 12px; text-align: center; }
.corr-5 { background: var(--bad-soft); color: var(--bad); }
.corr-4 { background: var(--warn-soft); color: var(--warn); }
.corr-3 { background: var(--surface-2); }
.corr-2 { color: var(--muted); }
.corr-1 { background: var(--accent-soft); color: var(--accent); }

/* ---------------------------------------------------------------- performance */
tr.unreliable td { color: var(--muted); }
.bt-run { padding: 12px 18px; border-top: 1px solid var(--rule); }
.bt-run:first-child { border-top: 0; }
.bt-metrics { margin-top: 6px; }

/* ---------------------------------------------------------------- notifications */
.bell { position: relative; text-decoration: none; }
.badge-dot { position: absolute; top: -5px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--bad); color: #fff; font-size: 10.5px; font-family: var(--font-mono); display: grid; place-items: center; }
.event-row.is-read { opacity: .62; }

.readouts-flat { border: 0; border-radius: 0; border-top: 1px solid var(--rule); }
