/* Reporting Center — shared design system
   Linear/Stripe-flavored, Outfit + JetBrains Mono, light surfaces with
   editorial restraint. Three concept apps share these tokens & primitives. */

/* ── Tokens (default = light, "regular" density) ─────────────────────── */
:root {
  /* Type */
  --rc-font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --rc-font-body:    'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --rc-font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Palette — base light */
  --rc-bg:           #f7f6f1;       /* canvas */
  --rc-surface:      #ffffff;       /* cards */
  --rc-surface-2:    #fbfaf6;       /* nested rows */
  --rc-surface-ink:  #0f1419;       /* dark hero strip */
  --rc-line:         #ebe9e1;
  --rc-line-strong:  #d6d3c7;
  --rc-ink:          #0f1419;
  --rc-ink-2:        #2b2f36;
  --rc-muted:        #6b7280;
  --rc-muted-2:      #9aa0a8;
  --rc-on-ink:       #f4f2eb;
  --rc-on-ink-mute:  rgba(244,242,235,0.6);

  /* Brand accents — unified to the portal brand green (#16a34a) 2026-06-01,
     retiring the dull forest #5a7a3e that made reporting look like a different app. */
  --rc-accent:       #16a34a;       /* primary green (portal brand) */
  --rc-accent-2:     #22c55e;       /* lighter green */
  --rc-warn:         #E07A3C;       /* orange — warnings/anomaly */
  --rc-pos:          #2F6F4E;       /* positive */
  --rc-neg:          #C9532E;       /* negative */
  --rc-crit:         #B83A2B;       /* critical */
  --rc-info:         #4A5568;       /* neutral driver */
  --rc-tint-warn:    #FBEEDE;
  --rc-tint-pos:     #E7F0E5;
  --rc-tint-neg:     #F8E4DC;
  --rc-tint-crit:    #F4D9D3;
  --rc-tint-info:    #ECEEF1;
  --rc-highlight:    #FFF6D9;       /* sentence-level emphasis */

  /* Geometry & motion */
  --rc-radius-sm: 6px;
  --rc-radius:    10px;
  --rc-radius-lg: 14px;
  --rc-shadow-1:  0 1px 0 rgba(15,20,25,0.04), 0 1px 2px rgba(15,20,25,0.04);
  --rc-shadow-2:  0 8px 24px -8px rgba(15,20,25,0.10), 0 1px 0 rgba(15,20,25,0.04);
  --rc-ease:      cubic-bezier(.2,.7,.3,1);

  /* Density (regular) */
  --rc-pad:    20px;
  --rc-pad-sm: 12px;
  --rc-row-h:  44px;
  --rc-fs:     14px;
  --rc-fs-sm:  12.5px;
  --rc-fs-xs:  11px;
}

/* Dark hero / inverted regions */
.rc-ink-region {
  background: var(--rc-surface-ink);
  color: var(--rc-on-ink);
}
.rc-ink-region a { color: var(--rc-accent-2); }

/* Density modes */
[data-rc-density="compact"] {
  --rc-pad: 14px;
  --rc-pad-sm: 8px;
  --rc-row-h: 36px;
  --rc-fs: 13px;
  --rc-fs-sm: 11.5px;
  --rc-fs-xs: 10.5px;
}
[data-rc-density="comfy"] {
  --rc-pad: 28px;
  --rc-pad-sm: 16px;
  --rc-row-h: 52px;
  --rc-fs: 15px;
  --rc-fs-sm: 13px;
  --rc-fs-xs: 11.5px;
}

/* Palette variants (Tweak: rc-palette) */
[data-rc-palette="ink"] {
  --rc-accent:   #4A5568;
  --rc-accent-2: #718096;
  --rc-warn:     #B7791F;
  --rc-pos:      #2F6F4E;
  --rc-neg:      #9B2C2C;
}
[data-rc-palette="warm"] {
  --rc-accent:   #C9532E;
  --rc-accent-2: #E07A3C;
  --rc-warn:     #B7791F;
  --rc-pos:      #2F6F4E;
  --rc-neg:      #9B2C2C;
  --rc-bg:       #faf6f0;
}
[data-rc-palette="forest"] {
  --rc-accent:   #5a7a3e;
  --rc-accent-2: #7BA05B;
  --rc-warn:     #E07A3C;
  --rc-pos:      #2F6F4E;
  --rc-neg:      #C9532E;
}

/* Reset / base — scoped under .rc-app to avoid clobbering canvas chrome */
.rc-app, .rc-app * { box-sizing: border-box; }
.rc-app {
  font-family: var(--rc-font-body);
  font-size: var(--rc-fs);
  line-height: 1.45;
  color: var(--rc-ink);
  background: var(--rc-bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01','cv11';
}
.rc-app h1, .rc-app h2, .rc-app h3, .rc-app h4 {
  font-family: var(--rc-font-display);
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0;
}
.rc-app h1 { font-size: 28px; letter-spacing: -0.02em; }
.rc-app h2 { font-size: 20px; }
.rc-app h3 { font-size: 15px; }
.rc-app .mono { font-family: var(--rc-font-mono); font-feature-settings: 'tnum' 1; }
.rc-app .num { font-family: var(--rc-font-mono); font-feature-settings: 'tnum' 1; font-weight: 600; }
.rc-app .eyebrow {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--rc-muted);
}
.rc-app .lede {
  font-size: 17px; line-height: 1.45; color: var(--rc-ink-2); text-wrap: pretty;
  font-weight: 400;
}

/* ── Surface primitives ──────────────────────────────────────────────── */
.rc-card {
  background: var(--rc-surface);
  border: 1px solid var(--rc-line);
  border-radius: var(--rc-radius);
  box-shadow: var(--rc-shadow-1);
}
.rc-card.rc-flush { box-shadow: none; }
.rc-card-pad { padding: var(--rc-pad); }
.rc-card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 14px var(--rc-pad);
  border-bottom: 1px solid var(--rc-line);
}
.rc-card-head h3 { font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--rc-ink-2); font-weight: 600; }
.rc-card-foot {
  padding: 10px var(--rc-pad); border-top: 1px solid var(--rc-line);
  font-size: var(--rc-fs-xs); color: var(--rc-muted);
  display: flex; justify-content: space-between; align-items: center;
}
.rc-row {
  display: flex; align-items: center; gap: 12px;
  padding: 0 var(--rc-pad); height: var(--rc-row-h);
  border-top: 1px solid var(--rc-line);
}
.rc-row:first-child { border-top: 0; }
.rc-row.rc-row-hover:hover { background: var(--rc-surface-2); cursor: pointer; }

/* Hero strip — the dark "answer" band */
.rc-hero {
  background: var(--rc-surface-ink);
  color: var(--rc-on-ink);
  border-radius: var(--rc-radius-lg);
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
}
.rc-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(800px 200px at 110% -20%, rgba(123,160,91,0.20), transparent 60%),
    radial-gradient(600px 180px at -10% 110%, rgba(224,122,60,0.10), transparent 60%);
  pointer-events: none;
}
.rc-hero > * { position: relative; }

/* ── Pill / badge / chip ─────────────────────────────────────────────── */
.rc-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: var(--rc-fs-xs);
  font-weight: 500;
  background: var(--rc-tint-info);
  color: var(--rc-info);
  white-space: nowrap;
}
.rc-pill.rc-pill-warn { background: var(--rc-tint-warn); color: #8C4A12; }
.rc-pill.rc-pill-pos  { background: var(--rc-tint-pos);  color: var(--rc-pos); }
/* F1 a11y — darker text tokens so pill text on its tint meets WCAG AA (≥4.5:1).
   --rc-neg (#C9532E)→3.6 and --rc-crit (#B83A2B)→4.27 both fell short on tint;
   these darker shades read 5.28 / 5.32. The base tokens are unchanged so other
   (non-tinted) uses of --rc-neg/--rc-crit keep their brand color. */
.rc-pill.rc-pill-neg  { background: var(--rc-tint-neg);  color: #A63A1C; }
.rc-pill.rc-pill-crit { background: var(--rc-tint-crit); color: #A52A1F; }
.rc-pill.rc-pill-ink  { background: rgba(244,242,235,0.10); color: var(--rc-on-ink); border: 1px solid rgba(244,242,235,0.18); }
.rc-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Severity dots / strips */
.rc-sev {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--rc-muted-2);
}
.rc-sev-critical { background: var(--rc-crit); }
.rc-sev-high     { background: var(--rc-neg); }
.rc-sev-med      { background: var(--rc-warn); }
.rc-sev-low      { background: var(--rc-accent-2); }
.rc-sev-positive { background: var(--rc-pos); }

/* ── Delta number (the soul of this UI) ──────────────────────────────── */
.rc-delta {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--rc-font-mono); font-size: var(--rc-fs-sm);
  font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--rc-muted);
}
.rc-delta.rc-up   { color: var(--rc-pos); }
.rc-delta.rc-down { color: var(--rc-neg); }
.rc-delta.rc-up-bad   { color: var(--rc-neg); }
.rc-delta.rc-down-good{ color: var(--rc-pos); }
.rc-delta svg { width: 10px; height: 10px; }

/* KPI tile */
.rc-kpi {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 18px;
  border-radius: var(--rc-radius);
  background: var(--rc-surface);
  border: 1px solid var(--rc-line);
  min-width: 0;
}
.rc-kpi .label { font-size: 12px; color: var(--rc-muted); font-weight: 500; }
.rc-kpi .val   { font-family: var(--rc-font-mono); font-weight: 700; font-size: 28px; letter-spacing: -0.01em; color: var(--rc-ink); line-height: 1.1; font-feature-settings: 'tnum' 1; }
.rc-kpi .unit  { font-size: 14px; color: var(--rc-muted-2); font-weight: 500; margin-left: 4px; font-family: var(--rc-font-display); }
.rc-kpi .meta  { display: flex; align-items: center; gap: 10px; font-size: var(--rc-fs-xs); color: var(--rc-muted); }
.rc-kpi.rc-kpi-ink {
  background: rgba(244,242,235,0.04);
  border: 1px solid rgba(244,242,235,0.10);
  color: var(--rc-on-ink);
}
.rc-kpi.rc-kpi-ink .val { color: var(--rc-on-ink); }
.rc-kpi.rc-kpi-ink .label, .rc-kpi.rc-kpi-ink .meta { color: var(--rc-on-ink-mute); }
.rc-kpi.rc-kpi-ink .unit { color: rgba(244,242,235,0.45); }

/* ── Buttons / controls ──────────────────────────────────────────────── */
.rc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border-radius: var(--rc-radius-sm);
  border: 1px solid var(--rc-line-strong);
  background: var(--rc-surface);
  color: var(--rc-ink);
  font: 500 13px/1 var(--rc-font-display);
  cursor: pointer;
  transition: background .12s var(--rc-ease), border-color .12s, transform .08s;
}
.rc-btn:hover { background: var(--rc-surface-2); }
.rc-btn:active { transform: translateY(0.5px); }
.rc-btn.rc-btn-ghost { border-color: transparent; background: transparent; }
.rc-btn.rc-btn-ghost:hover { background: rgba(15,20,25,0.04); }
.rc-btn.rc-btn-primary {
  background: var(--rc-ink); color: var(--rc-on-ink); border-color: var(--rc-ink);
}
.rc-btn.rc-btn-primary:hover { background: #1d2329; }
.rc-btn.rc-btn-accent {
  background: var(--rc-accent); color: white; border-color: var(--rc-accent);
}
.rc-btn.rc-btn-sm { height: 26px; padding: 0 8px; font-size: 12px; border-radius: 5px; }
.rc-btn.rc-btn-icon { width: 32px; padding: 0; justify-content: center; }
.rc-btn .kbd { font-family: var(--rc-font-mono); font-size: 10.5px; opacity: 0.6; padding: 1px 4px; border: 1px solid currentColor; border-radius: 3px; opacity: .5; }

/* Segmented */
.rc-seg {
  display: inline-flex; padding: 3px;
  background: var(--rc-surface-2);
  border: 1px solid var(--rc-line);
  border-radius: 8px;
}
.rc-seg button {
  appearance: none; border: 0; background: transparent;
  font: 500 12.5px/1 var(--rc-font-display);
  padding: 6px 10px; border-radius: 5px; cursor: pointer; color: var(--rc-muted);
}
.rc-seg button[aria-pressed="true"] {
  background: var(--rc-surface); color: var(--rc-ink);
  box-shadow: var(--rc-shadow-1);
}

/* Tabs */
.rc-tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--rc-line);
  align-items: flex-end;
}
.rc-tab {
  appearance: none; background: transparent; border: 0;
  padding: 10px 14px;
  font: 500 13.5px/1 var(--rc-font-display);
  color: var(--rc-muted);
  cursor: pointer;
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
}
.rc-tab:hover { color: var(--rc-ink); }
.rc-tab[aria-selected="true"] {
  color: var(--rc-ink);
  box-shadow: inset 0 -2px 0 var(--rc-ink);
}
.rc-tab .count { font-family: var(--rc-font-mono); font-size: 11px; color: var(--rc-muted); }

/* ── Sparkline ───────────────────────────────────────────────────────── */
.rc-spark { display: block; width: 100%; height: 28px; }

/* ── Tables ──────────────────────────────────────────────────────────── */
.rc-table { width: 100%; border-collapse: collapse; font-size: var(--rc-fs-sm); }
.rc-table th {
  text-align: left; font-weight: 500;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--rc-muted);
  padding: 10px var(--rc-pad);
  border-bottom: 1px solid var(--rc-line);
  background: var(--rc-surface-2);
  position: sticky; top: 0;
}
.rc-table td {
  padding: 12px var(--rc-pad);
  border-bottom: 1px solid var(--rc-line);
  color: var(--rc-ink-2);
  vertical-align: middle;
}
.rc-table tr:last-child td { border-bottom: 0; }
.rc-table tr:hover td { background: var(--rc-surface-2); }
.rc-table .num { font-family: var(--rc-font-mono); font-feature-settings: 'tnum' 1; text-align: right; font-weight: 600; }

/* ── Bar in a cell ───────────────────────────────────────────────────── */
.rc-bar {
  position: relative; width: 100%; height: 6px;
  background: var(--rc-line); border-radius: 999px; overflow: hidden;
}
.rc-bar > span { display: block; height: 100%; background: var(--rc-accent); border-radius: 999px; }
.rc-bar.rc-bar-warn > span { background: var(--rc-warn); }
.rc-bar.rc-bar-neg > span  { background: var(--rc-neg); }

/* ── Drawer (right side panel for drill-down) ───────────────────────── */
.rc-drawer-mask {
  position: fixed; inset: 0; background: rgba(15,20,25,0.45);
  z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s var(--rc-ease);
}
.rc-drawer-mask[data-open="true"] { opacity: 1; pointer-events: auto; }
.rc-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 92vw);
  background: var(--rc-surface);
  border-left: 1px solid var(--rc-line);
  box-shadow: -24px 0 64px -24px rgba(15,20,25,0.20);
  z-index: 91;
  transform: translateX(100%);
  transition: transform .3s var(--rc-ease);
  display: flex; flex-direction: column;
}
.rc-drawer[data-open="true"] { transform: translateX(0); }
.rc-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--rc-line);
}
.rc-drawer-body { flex: 1; overflow-y: auto; padding: 24px; }
.rc-drawer-foot {
  padding: 14px 24px; border-top: 1px solid var(--rc-line);
  display: flex; gap: 8px; justify-content: flex-end;
  background: var(--rc-surface-2);
}

/* ── Action row (Concept B inbox) ────────────────────────────────────── */
.rc-action {
  display: grid;
  grid-template-columns: 8px auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid var(--rc-line);
  cursor: pointer;
  transition: background .12s;
}
.rc-action:hover { background: var(--rc-surface-2); }
.rc-action[data-expanded="true"] { background: var(--rc-surface-2); cursor: default; }
.rc-action .strip {
  width: 3px; height: 28px; border-radius: 3px; background: var(--rc-muted-2);
}
.rc-action[data-sev="critical"] .strip { background: var(--rc-crit); }
.rc-action[data-sev="high"]     .strip { background: var(--rc-neg); }
.rc-action[data-sev="med"]      .strip { background: var(--rc-warn); }
.rc-action[data-sev="positive"] .strip { background: var(--rc-pos); }
.rc-action .center {
  font-family: var(--rc-font-mono); font-size: 10.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--rc-muted);
  width: 64px; flex-shrink: 0;
}
.rc-action .title { font-size: 14px; color: var(--rc-ink); font-weight: 500; }
.rc-action .why   { font-size: 12.5px; color: var(--rc-muted); margin-top: 2px; }
.rc-action .age   { font-family: var(--rc-font-mono); font-size: 12px; color: var(--rc-muted); white-space: nowrap; }

.rc-action-expanded {
  padding: 0 20px 18px 20px; background: var(--rc-surface-2);
  border-top: 1px dashed var(--rc-line);
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px;
}
.rc-action-expanded .block { padding-top: 14px; }
.rc-action-expanded .block .eyebrow { margin-bottom: 6px; }
.rc-action-expanded .block p { margin: 0; font-size: 13px; color: var(--rc-ink-2); line-height: 1.5; }
.rc-action-expanded .actions { grid-column: 1 / -1; display: flex; gap: 8px; padding-top: 14px; border-top: 1px solid var(--rc-line); }

/* ── Cockpit (Concept C) ─────────────────────────────────────────────── */
.rc-cockpit { display: grid; grid-template-columns: 320px 1fr; height: 100%; }
.rc-cockpit .rail {
  border-right: 1px solid var(--rc-line);
  background: var(--rc-surface);
  overflow-y: auto;
}
.rc-cockpit .focus { overflow-y: auto; }

/* Rail signal item */
.rc-signal {
  display: grid; grid-template-columns: 8px 1fr auto; gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rc-line);
  cursor: pointer;
  position: relative;
}
.rc-signal:hover { background: var(--rc-surface-2); }
.rc-signal[aria-selected="true"] { background: var(--rc-tint-info); }
.rc-signal[aria-selected="true"]::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--rc-ink);
}
.rc-signal .lbl { font-size: 13px; color: var(--rc-ink); font-weight: 500; }
.rc-signal .sub { font-size: 11.5px; color: var(--rc-muted); margin-top: 1px; }
.rc-signal .delta { font-family: var(--rc-font-mono); font-size: 12px; }

/* ── Briefing layout (Concept A) ─────────────────────────────────────── */
.rc-brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) {
  .rc-brief-grid { grid-template-columns: 1fr; }
}

/* Subtle list with hover (used in many places) */
.rc-listrow {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px;
  align-items: center; padding: 12px var(--rc-pad);
  border-top: 1px solid var(--rc-line);
}
.rc-listrow:first-child { border-top: 0; }
.rc-listrow .name { font-weight: 500; }
.rc-listrow .meta { font-size: 12px; color: var(--rc-muted); }

/* Avatars / monogram */
.rc-mono {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 12px var(--rc-font-display);
  background: var(--rc-tint-info); color: var(--rc-info);
}

/* Shell — page chrome shared across concepts */
.rc-shell { display: grid; grid-template-rows: 56px 1fr; height: 100%; min-height: 0; }
.rc-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; border-bottom: 1px solid var(--rc-line);
  background: var(--rc-surface);
  gap: 16px;
}
.rc-topbar .crumbs {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--rc-font-display); font-size: 13.5px; color: var(--rc-muted);
}
.rc-topbar .crumbs strong { color: var(--rc-ink); font-weight: 600; }
.rc-topbar .crumbs .sep { color: var(--rc-muted-2); }
.rc-topbar .right { display: flex; gap: 8px; align-items: center; }

/* Filter strip */
.rc-filter-strip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-bottom: 1px solid var(--rc-line);
  background: var(--rc-surface-2);
  font-size: 13px;
}
.rc-filter-strip .group { display: flex; align-items: center; gap: 6px; }
.rc-filter-strip .label { color: var(--rc-muted); }

/* Section header (between bands) */
.rc-section-h {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin: 32px 0 14px 0;
}
.rc-section-h h2 { font-size: 18px; }
.rc-section-h .meta { font-size: 12.5px; color: var(--rc-muted); }

/* Quote / narrative pull */
.rc-quote {
  font-size: 19px; line-height: 1.5; letter-spacing: -0.005em;
  font-weight: 400; color: var(--rc-ink); text-wrap: pretty;
}
.rc-quote em {
  font-style: normal;
  background: var(--rc-highlight);
  padding: 1px 4px; border-radius: 3px;
}
.rc-quote.rc-quote-ink em { background: rgba(255,246,217,0.85); color: #2a2418; }

/* Utility */
.rc-flex { display: flex; }
.rc-row-flex { display: flex; align-items: center; gap: 12px; }
.rc-grow { flex: 1 1 auto; min-width: 0; }
.rc-stack { display: flex; flex-direction: column; }
.rc-gap-4 { gap: 4px; } .rc-gap-6 { gap: 6px; } .rc-gap-8 { gap: 8px; }
.rc-gap-12 { gap: 12px; } .rc-gap-16 { gap: 16px; } .rc-gap-20 { gap: 20px; }
.rc-gap-24 { gap: 24px; }
.rc-mt-4 { margin-top: 4px; } .rc-mt-8 { margin-top: 8px; }
.rc-mt-12 { margin-top: 12px; } .rc-mt-16 { margin-top: 16px; }
.rc-mt-24 { margin-top: 24px; } .rc-mt-32 { margin-top: 32px; }
.rc-muted { color: var(--rc-muted); }
.rc-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Responsive — Tablet (≤768px) ──────────────────────────────────────── */
@media (max-width: 768px) {
  .rc-cockpit { grid-template-columns: 1fr; }
  .rc-cockpit .rail { border-right: 0; border-bottom: 1px solid var(--rc-line); max-height: 40vh; }
  .rc-action-expanded { grid-template-columns: 1fr; }
}

/* ── Responsive — Phone (≤480px) ───────────────────────────────────────── */
@media (max-width: 480px) {
  .rc-listrow { grid-template-columns: 1fr auto; gap: 8px; }
}

/* ── Chart typography (2026-06-03 polish) ──────────────────────────────────
   Axis/tick/label text in the SVG engine historically used ui-monospace — a
   classic "amateur" tell. CSS beats the inline `font-family` presentation
   attribute, so this re-skins every chart label to the body font with
   tabular-nums (digits align) without touching the JS. */
.rc-chart-wrap text,
.rc-svg text,
.rc-radar text,
.rc-gauge-svg text {
  font-family: var(--rc-font-body, 'Outfit', system-ui, sans-serif);
  font-variant-numeric: tabular-nums;
}
