/* ============================================================
   Asymmetric Intelligence — Shared Monitor Design System
   shared/css/base.css  ·  Version 1.9  ·  12 May 2026 — legacy bespoke chip classes retired (chip-filter migration; BRIEF-FE-DEMO-SUBSTANCE-UNIFICATION)
   ONE SHELL, SEVEN PAINT JOBS.
   ============================================================ */

/* ─── Satoshi Font (Fontshare) ──────────────────────────── */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700&display=swap');
@import url('./freshness-badge.css'); /* freshness-badge primitive — BRIEF-FE-FRESHNESS-BADGE-PRIMITIVE */
@import url('./chip-filter.css');     /* chip-filter primitive — BRIEF-FE-DEMO-SUBSTANCE-UNIFICATION */
@import url('./entity-card.css');     /* entity-card primitive — BRIEF-L2-FE-ENTITY-CARD-PRIMITIVE */

/* ─── Design Tokens ──────────────────────────────────────── */
:root {
  /* Typography */
  --font-sans: 'Satoshi', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Courier New', monospace;

  /* Type scale */
  --text-xs:   clamp(0.875rem, 0.84rem + 0.22vw, 0.9375rem);
  --text-min:  var(--text-xs); /* absolute floor — never use font-size below this */
  --text-sm:   clamp(0.9375rem, 0.9rem + 0.25vw, 1rem);
  --text-base: clamp(1rem,      0.96rem + 0.25vw, 1.125rem);
  --text-md:   clamp(1rem,     0.92rem + 0.4vw,  1.125rem);
  --text-lg:   clamp(1.1rem,   0.95rem + 0.75vw, 1.375rem);
  --text-xl:   clamp(1.25rem,  1rem    + 1.25vw, 1.75rem);
  --text-2xl:  clamp(1.5rem,   1.1rem  + 2vw,    2.25rem);
  --text-3xl:  clamp(1.75rem,  1.2rem  + 2.75vw, 3rem);

  /* Line-height scale */
  --line-height-tight: 1.25;   /* headings, dense UI */
  --line-height-body:  1.55;   /* body paragraphs (P12 floor: ≥1.5) */
  --line-height-loose: 1.75;   /* long-form reading, methodology */

  /* Spacing — 4px base */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm: 2px;
  --radius:    4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  /* Monitor accent — overridden by monitor.css */
  --monitor-accent:    #4f98a3;
  --monitor-accent-bg: rgba(79, 152, 163, 0.12);
  --monitor-accent-dark: #6ab3be;

  /* ── Light mode colours ── */
  --color-bg:             #f9f8f6;
  --color-bg-alt:         #f0ede8;
  --color-surface:        #f3f0ec;
  --color-surface-raised: #f9f8f6;
  --color-border:         #d8d4cd;
  --color-border-subtle:  #e8e4de;

  --color-text:           #1a1917;
  --color-text-secondary: #3d3a35;
  --color-text-muted:     #6b6660;
  --color-text-faint:     #9a958d;

  /* Severity colour system */
  --critical:   #c1440e;
  --high:       #d97706;
  --moderate:   #2563eb;
  --positive:   #059669;
  --contested:  #6366f1;

  /* Severity backgrounds */
  --critical-bg:  rgba(193, 68, 14, 0.10);
  --high-bg:      rgba(217, 119, 6, 0.10);
  --moderate-bg:  rgba(37, 99, 235, 0.08);
  --positive-bg:  rgba(5, 150, 105, 0.10);
  --contested-bg: rgba(99, 102, 241, 0.10);

  /* Shadows */
  --shadow-sm:    0 1px 2px rgba(26,25,23,0.06);
  --shadow:       0 2px 8px rgba(26,25,23,0.08);
  --shadow-md:    0 4px 16px rgba(26,25,23,0.10);

  /* Layout */
  --network-bar-height: 40px;
  --nav-height: 52px;
  --sidebar-width: 220px;
  --content-max: 1200px;

  /* Freshness affordance — used by freshness-badge primitive (BRIEF-FE-FRESHNESS-BADGE-PRIMITIVE) */
  --freshness-fresh:    var(--positive);          /* ≤7 days  */
  --freshness-stale:    var(--moderate);          /* 8–30 days */
  --freshness-aged:     var(--high);              /* >30 days */
  --freshness-bg-fresh: var(--positive-bg);
  --freshness-bg-stale: var(--moderate-bg);
  --freshness-bg-aged:  var(--high-bg);

  /* Chip-filter primitive (FE-CHIP-FILTER-PRIMITIVE) */
  --chip-bg:              var(--color-surface);
  --chip-bg-hover:        var(--color-surface-raised);
  --chip-bg-selected:     var(--monitor-accent-bg);
  --chip-text:            var(--color-text-secondary);
  --chip-text-selected:   var(--color-text);
  --chip-border:          var(--color-border);
  --chip-border-selected: var(--monitor-accent);
}

/* ─── Dark mode ─────────────────────────────────────────── */
[data-theme="dark"] {
  --color-bg:             #111210;
  --color-bg-alt:         #191b19;
  --color-surface:        #1e201e;
  --color-surface-raised: #232623;
  --color-border:         #2e3330;
  --color-border-subtle:  #262926;

  --color-text:           #e4e1da;
  --color-text-secondary: #b8b4ae;
  --color-text-muted:     #8a8680;
  --color-text-faint:     #5a5852;

  /* Accents shift in dark mode */
  --monitor-accent: var(--monitor-accent-dark, #6ab3be);
  --monitor-accent-bg: rgba(106, 179, 190, 0.10);

  /* Severity (dark mode) */
  --critical-bg:  rgba(193, 68, 14, 0.15);
  --high-bg:      rgba(217, 119, 6, 0.15);
  --moderate-bg:  rgba(37, 99, 235, 0.12);
  --positive-bg:  rgba(5, 150, 105, 0.15);
  --contested-bg: rgba(99, 102, 241, 0.15);

  --shadow-sm:    0 1px 2px rgba(0,0,0,0.3);
  --shadow:       0 2px 8px rgba(0,0,0,0.35);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.4);
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  font-size:   var(--text-base);     /* P12 sub-rule 1: ≥16px floor (clamp min 1rem) */
  line-height: var(--line-height-body);
  color:       var(--color-text);
  background:  var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.2s, color 0.2s;
  overflow-x: clip; /* R-MV-002 / engine rule: clip not hidden — preserves position:sticky children */
  /* Network bar offset is injected via .style in network-bar.html */
}
a { color: var(--monitor-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul, ol { padding-left: var(--space-6); }
p + p { margin-top: var(--space-3); }
strong { font-weight: 600; }

/* ─── Monitor Nav (horizontal, below network bar) ────────── */
.monitor-nav {
  position: sticky;
  top: 84px; /* below network bar (40px) + site bar (44px) */
  z-index: 100;
  height: var(--nav-height);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  padding: 0 var(--space-6);
  gap: var(--space-6);
}
.monitor-nav__brand {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.monitor-nav__brand .brand-abbr {
  color: var(--monitor-accent);
  font-weight: 700;
}
.monitor-nav__brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* Max width leaves room for SVG (18px) + gap (8px) + hamburger (32px) + toggle (32px) + padding (32px) */
  max-width: calc(100vw - 140px);
}

.monitor-nav__links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}
.monitor-nav__links a {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.monitor-nav__links a:hover,
.monitor-nav__links a.active {
  color: var(--monitor-accent);
  background: var(--monitor-accent-bg);
}
.monitor-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

/* Hamburger (mobile) */
.monitor-nav__hamburger {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
}
.monitor-nav__hamburger svg { width: 18px; height: 18px; }

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: border-color 0.15s, color 0.15s;
  position: relative;
}
.theme-toggle:hover { border-color: var(--monitor-accent); color: var(--monitor-accent); }
.theme-toggle .icon-sun,
.theme-toggle .icon-moon { width: 15px; height: 15px; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon,
:not([data-theme]) .icon-moon { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* ─── Page Layout ────────────────────────────────────────── */
.page-wrapper {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Full-height sidebar layout — main first, sidebar on right */
.monitor-layout {
  display: flex;
  flex-direction: row;
  min-height: calc(100vh - var(--network-bar-height) - var(--nav-height));
}

/* ─── Sidebar ────────────────────────────────────────────── */
.monitor-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--network-bar-height) + var(--nav-height));
  height: calc(100vh - var(--network-bar-height) - var(--nav-height));
  overflow-y: auto;
  border-left: 1px solid var(--color-border);
  background: var(--color-bg);
  padding: var(--space-6) 0;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  transition: transform 0.25s ease;
}
.monitor-sidebar::-webkit-scrollbar { width: 3px; }
.monitor-sidebar::-webkit-scrollbar-thumb { background: var(--color-border); }

.sidebar-nav__title {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  padding: 0 var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--color-border-subtle);
  margin-bottom: var(--space-2);
}
.monitor-sidebar ul { list-style: none; padding: 0; margin: 0; }
.monitor-sidebar li a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  border-left: 2px solid transparent;
  line-height: 1.4;
}
.monitor-sidebar li a:hover,
.monitor-sidebar li a.active {
  color: var(--monitor-accent);
  background: var(--monitor-accent-bg);
  border-left-color: var(--monitor-accent);
  text-decoration: none;
}
.sidebar-num {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-faint);
  min-width: 2ch;
}

/* Sidebar open state (mobile overlay) */
.monitor-sidebar--open {
  transform: translateX(0) !important;
}

/* ─── Main Content ───────────────────────────────────────── */
.monitor-main {
  flex: 1;
  min-width: 0;
  padding: var(--space-8) var(--space-8);
}

/* ─── Module Sections ────────────────────────────────────── */
.module-section {
  margin-bottom: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-subtle);
  scroll-margin-top: calc(var(--network-bar-height) + var(--nav-height) + var(--space-4));
}
.module-section:first-child { border-top: none; padding-top: 0; }
.module-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-subtle);
}
.module-header + .module-desc {
  margin-top: calc(var(--space-6) * -1);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.module-num-large {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--monitor-accent-bg, rgba(79,152,163,0.25));
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
  min-width: 3ch;
}
/* Compact module number used in jump strip / report header */
.module-num {
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--monitor-accent);
  opacity: 0.7;
  min-width: 2ch;
  padding-top: 0.35em;
  letter-spacing: 0.05em;
}
.module-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.025em;
  line-height: 1.2;
  padding-top: 0.15em;
}

/* ─── KPI Strip ──────────────────────────────────────────── */
.kpi-strip {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}
.kpi-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  min-width: 160px;
  flex: 1;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s;
}
.kpi-card:hover { border-color: var(--monitor-accent); }
.kpi-card__value {
  font-size: var(--text-2xl);
  font-weight: 700;
  /* Darken accent so text passes WCAG AA on white card surface.
     Raw --monitor-accent fails on 5 of 7 monitors (WDM/GMM/FCW/ESA/ERM). */
  color: color-mix(in srgb, var(--monitor-accent) 65%, #000);
  line-height: 1;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
}
/* Text-content variant: smaller font + tighter line-height for multi-word KPI values */
.kpi-card__value--text {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
}
.kpi-card__trend {
  font-size: var(--text-base);
  font-weight: 500;
}
.kpi-card__label {
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}
.kpi-card__sub {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-1);
}

/* ─── Signal Block ───────────────────────────────────────── */
.signal-block {
  /* Darken accent 35% so white text passes WCAG AA on all 7 monitor accents.
     color-mix(in srgb, accent 65%, #000) gives min 4.8:1 contrast vs #fff
     across WDM #61a5d2, GMM #22a0aa, FCW #38bdf8, ESA #5b8db0,
     AGM #3a7d5a, ERM #4caf7d, SCEM #dc2626.
     !important prevents monitor.css personality files from overriding this —
     ARCHITECTURAL RULE: monitor.css MUST NOT set background on .signal-block. */
  background: color-mix(in srgb, var(--monitor-accent) 65%, #000) !important;
  color: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-10);
  margin-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
}
.signal-block::before {
  content: "00";
  position: absolute;
  right: var(--space-6);
  top: 50%;
  transform: translateY(-50%);
  font-size: 8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.07);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.06em;
}
[data-theme="dark"] .signal-block {
  background: color-mix(in srgb, var(--monitor-accent) 25%, var(--color-surface));
  color: var(--color-text);
}
[data-theme="dark"] .signal-block p { color: var(--color-text-secondary); }
[data-theme="dark"] .signal-block__title { color: var(--color-text); }
[data-theme="dark"] .signal-block__body { color: var(--color-text-secondary); }
.signal-block__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.75;
  margin-bottom: var(--space-3);
}
.signal-block__title {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  margin-bottom: var(--space-3);
}
.signal-block__body {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  position: relative;
  margin-bottom: 0;
}
.signal-block p {
  font-size: var(--text-md);
  line-height: 1.7;
  position: relative;
}

/* ─── Delta Strip ────────────────────────────────────────── */
.delta-strip {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-8);
}
.delta-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border-subtle);
  align-items: flex-start;
}
.delta-item:last-child { border-bottom: none; }
.delta-item__rank {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-faint);
  min-width: 2ch;
  padding-top: 2px;
}
.delta-item__body { flex: 1; }
.delta-item__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: var(--space-1);
}
.delta-item__module {
  font-size: var(--text-xs);
  color: var(--monitor-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: var(--space-1);
}
.delta-item__one-line {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.delta-item__type {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  white-space: nowrap;
  padding-top: 2px;
}

/* ─── Heatmap Table ──────────────────────────────────────── */
.heatmap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
}
.heatmap-table th {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.heatmap-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text-secondary);
  vertical-align: top;
}
.heatmap-table tr:last-child td { border-bottom: none; }
.heatmap-table tr:hover td { background: var(--color-bg-alt); }
/* Severity colouring via left border on first td */
.heatmap-row--critical td:first-child { border-left: 3px solid var(--critical); }
.heatmap-row--high    td:first-child { border-left: 3px solid var(--high); }
.heatmap-row--moderate td:first-child { border-left: 3px solid var(--moderate); }
.heatmap-row--positive td:first-child { border-left: 3px solid var(--positive); }

/* ─── Severity Badge ─────────────────────────────────────── */
.severity-badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
  white-space: nowrap;
}
.severity-badge--critical  { background: var(--critical-bg);  color: var(--critical); }
.severity-badge--high      { background: var(--high-bg);      color: var(--high); }
.severity-badge--moderate  { background: var(--moderate-bg);  color: var(--moderate); }
.severity-badge--positive  { background: var(--positive-bg);  color: var(--positive); }
.severity-badge--contested { background: var(--contested-bg); color: var(--contested); }

/* Status badges */
.severity-badge--rapid-decay  { background: var(--critical-bg);  color: var(--critical); }
.severity-badge--recovery     { background: var(--positive-bg);  color: var(--positive); }
.severity-badge--watchlist    { background: var(--high-bg);      color: var(--high); }

/* ─── Intel Item ─────────────────────────────────────────── */
/* ─── Confidence Badge ───────────────────────────────────────
   Visual encoding: icon prefix + monochrome label.
   No colour encoding — severity and confidence are separate
   analytical dimensions (PED Q4 decision, 2026-04-12).
   Vocabulary: Confirmed / Assessed / Possible (descending certainty)
   Usage: <span class="confidence-badge confidence-badge--confirmed">Confirmed</span>
   ─────────────────────────────────────────────────────────── */
.confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
  white-space: nowrap;
  background: var(--color-bg-alt, rgba(100,100,100,0.08));
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}
.confidence-badge::before {
  font-style: normal;
  flex-shrink: 0;
}
/* Confirmed — checkmark prefix */
.confidence-badge--confirmed::before { content: '✓'; }
/* Assessed — tilde prefix */
.confidence-badge--assessed::before  { content: '~'; }
/* Possible — question mark prefix */
.confidence-badge--possible::before  { content: '?'; }

[data-theme="dark"] .confidence-badge {
  background: rgba(255,255,255,0.06);
  color: var(--color-text-secondary);
  border-color: var(--color-border);
}


.intel-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-left: 3px solid var(--monitor-accent);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: border-left-color 0.15s, box-shadow 0.15s;
}
.intel-item:hover {
  border-left-color: var(--monitor-accent-dark, var(--monitor-accent));
  box-shadow: var(--shadow);
}
[data-theme="dark"] .intel-item {
  background: var(--color-surface);
  border-color: var(--color-border-subtle);
  border-left-color: var(--monitor-accent);
}
.intel-item + .intel-item { margin-top: 0; }

/* Title — used by AGM renderer and blueprint renderers */
.intel-item__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}
.intel-item__tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}
.intel-item__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.intel-item__rank {
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--monitor-accent);
  min-width: 2ch;
  padding-top: 3px;
  opacity: 0.8;
}
.intel-item__meta { flex: 1; }
.intel-item__country {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--monitor-accent);
  margin-bottom: var(--space-1);
}
.intel-item__headline {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
/* Body text fields — used by AGM renderer */
.intel-item__field {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-top: var(--space-1);
}
.intel-item__field + .intel-item__field {
  margin-top: var(--space-1);
}
/* why_it_matters, asymmetric — visually distinguished */
.intel-item__field--why_it_matters,
.intel-item__field--asymmetric {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  line-height: 1.6;
  padding-top: var(--space-1);
  border-top: 1px solid var(--color-border-subtle);
  margin-top: var(--space-2);
}
.intel-item__field--asymmetric::before {
  content: "Asymmetric → ";
  font-weight: 700;
  color: var(--monitor-accent);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.intel-item__summary {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-top: var(--space-2);
}
.intel-item__source,
.intel-item__footer a,
a.intel-item__source {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--monitor-accent);
  text-decoration: none;
  letter-spacing: 0.03em;
  border-bottom: 1px dashed var(--monitor-accent);
  transition: border-style 0.15s;
}
.intel-item__source:hover,
.intel-item__footer a:hover { border-bottom-style: solid; }
.intel-item__footer {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ─── Mimicry Chain ──────────────────────────────────────── */
.mimicry-chain {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.mimicry-chain__headline {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.mimicry-chain__flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.mimicry-node {
  background: var(--monitor-accent-bg);
  border: 1px solid var(--monitor-accent);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  text-align: center;
  min-width: 120px;
  flex: 1;
  position: relative;
}
.mimicry-node__country {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--monitor-accent);
  margin-bottom: var(--space-1);
}
.mimicry-node__law {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.4;
}
.mimicry-node__year {
  font-size: 0.6rem;
  color: var(--color-text-faint);
  margin-top: var(--space-1);
}
.mimicry-arrow {
  display: flex;
  align-items: center;
  color: var(--color-text-faint);
  font-size: var(--text-lg);
  padding: 0 var(--space-1);
  flex-shrink: 0;
}

/* ─── Persistent Entity Card ─────────────────────────────── */
.persistent-entity {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.persistent-entity__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.persistent-entity__country {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-text);
}
.persistent-entity__badges {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}
.persistent-entity__score {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--monitor-accent);
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
}
.persistent-entity__score .arrow { font-size: var(--text-base); }
.persistent-entity__meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

/* ─── Version History ────────────────────────────────────── */
.version-history {
  display: none;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-subtle);
}
.version-history--open { display: block; }
.version-history__toggle {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--text-xs);
  color: var(--monitor-accent);
  cursor: pointer;
  text-decoration: underline;
  margin-top: var(--space-2);
}
.version-entry {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}
.version-entry:last-child { border-bottom: none; }
.version-entry__date {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--monitor-accent);
  margin-bottom: var(--space-1);
}
.version-entry__change {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.version-entry__reason {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  font-style: italic;
}

/* ─── Archive Entry ──────────────────────────────────────── */
.archive-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-6);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-border-subtle);
  align-items: start;
}
.archive-entry:last-child { border-bottom: none; }
.archive-entry__date {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  padding-top: 3px;
}
.archive-entry__issue {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--monitor-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-1);
}
.archive-entry__title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}
.archive-entry__signal {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}
.archive-entry__delta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.archive-entry__link {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--monitor-accent);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.archive-entry__link:hover { text-decoration: underline; }

/* ─── Cross-Monitor Panel ────────────────────────────────── */
.cross-monitor-panel {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-top: var(--space-12);
}
.cross-monitor-panel__title {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.cms-flag {
  padding: var(--space-5);
  background: var(--color-bg);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}
.cms-flag:last-child { margin-bottom: 0; }
[data-theme="dark"] .cms-flag { background: var(--color-surface, #1e1d1b); border-color: #2d2c2a; }
.cms-flag__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}
.cms-flag__id {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--monitor-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cms-flag__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: var(--space-2);
}
.cms-flag__monitors {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.cms-flag__body {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
}
/* .cms-flag__body--collapsed and .cms-read-more removed 14 Apr 2026
   Standing rule: no "Read more" for intra-site content. */

/* ─── Module Nav Strip ───────────────────────────────────── */
.module-nav-strip {
  position: sticky;
  top: calc(var(--network-bar-height) + var(--nav-height));
  z-index: 90;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 var(--space-6);
}
.module-nav-strip::-webkit-scrollbar { display: none; }
.module-nav-strip a {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-3) var(--space-3);
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.module-nav-strip a:hover,
.module-nav-strip a.active {
  color: var(--monitor-accent);
  border-bottom-color: var(--monitor-accent);
  text-decoration: none;
}

/* ─── Generic Cards ──────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-left: 3px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-3);
  transition: border-left-color 0.15s;
}
.card:hover { border-left-color: var(--monitor-accent); }
.card__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  /* Darken accent so label text passes WCAG AA on white card surface. */
  color: color-mix(in srgb, var(--monitor-accent) 65%, #000);
  margin-bottom: var(--space-2);
}
.card__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}
.card__body {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
}
.card__footer {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border-subtle);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}
.source-link {
  font-size: var(--text-xs);
  color: var(--monitor-accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--monitor-accent);
  transition: border-style 0.15s;
}
.source-link:hover { border-bottom-style: solid; text-decoration: none; }
/* On solid-background panels (signal-block), source-link must be white
   Principle 5: coloured panels require white text (PED 2026-04-03) */
.signal-block .source-link {
  color: rgba(255,255,255,0.88);
  border-bottom-color: rgba(255,255,255,0.4);
}
.signal-block .source-link:hover {
  color: #ffffff;
  border-bottom-color: rgba(255,255,255,0.8);
}

/* ─── Loading / Error States ─────────────────────────────── */
.loading-state {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  padding: var(--space-8) 0;
  text-align: center;
}
.error-state {
  font-size: var(--text-sm);
  color: var(--critical);
  padding: var(--space-4);
  background: var(--critical-bg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

/* ─── Tabs ───────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
}
.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tab-btn:hover { color: var(--color-text); }
.tab-btn.active {
  color: var(--monitor-accent);
  border-bottom-color: var(--monitor-accent);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Page Header ────────────────────────────────────────── */
.page-header {
  padding: var(--space-8) 0 var(--space-6);
  border-bottom: 1px solid var(--color-border-subtle);
  margin-bottom: var(--space-8);
}
.page-header__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--monitor-accent);
  margin-bottom: var(--space-2);
}
.page-header__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.page-header__sub {
  margin-top: var(--space-3);
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  max-width: 680px;
}
.page-header__meta {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--monitor-accent);
  color: #fff;
  border-color: var(--monitor-accent);
}
.btn--primary:hover { opacity: 0.9; text-decoration: none; }
.btn--outline {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: var(--color-border);
}
.btn--outline:hover {
  border-color: var(--monitor-accent);
  color: var(--monitor-accent);
  background: var(--monitor-accent-bg);
  text-decoration: none;
}

/* ─── Section label ──────────────────────────────────────── */
.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--monitor-accent);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--monitor-accent-bg, rgba(79,152,163,0.15));
}
/* Subsection title used within modules (h3.subsection-title) */
.subsection-title, h3.subsection-title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--monitor-accent);
  margin: var(--space-6) 0 var(--space-3);
  padding-left: var(--space-3);
  border-left: 3px solid var(--monitor-accent);
}
/* Sub-subsection (h4) */
.sub-subsection-title, h4.sub-subsection-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin: var(--space-4) 0 var(--space-2);
}

/* ─── Monitor Footer ─────────────────────────────────────── */
.monitor-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: var(--space-6) var(--space-8);
  margin-top: var(--space-16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.monitor-footer a { color: var(--color-text-muted); text-decoration: none; }
.monitor-footer a:hover { color: var(--monitor-accent); }
.monitor-footer__credit {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.monitor-footer__credit a { color: var(--color-text-faint); }
.monitor-footer__credit a:hover { color: var(--color-text-muted); }

/* ─── Utility ────────────────────────────────────────────── */
.text-xs        { font-size: var(--text-xs); }
.text-sm        { font-size: var(--text-sm); }
.text-muted     { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-accent    { color: var(--monitor-accent); }
.divider {
  height: 1px;
  background: var(--color-border-subtle);
  margin: var(--space-6) 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.badge--accent { background: var(--monitor-accent-bg); color: var(--monitor-accent); border-color: var(--monitor-accent); }



/* ─── Confidence Badge (SL-03) ───────────────────────────────────────────────
   Visually distinct from severity badges: outline-only, no fill.
   Spec: docs/ux/badge-spec.md (signed off 7 Apr 2026)
   RULE: never use severity colour tokens (--critical/--high/--moderate/
         --positive/--contested) on .badge-confidence elements.         */

.badge-confidence {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  padding: 0.15em 0.55em;
  /* rgba fallback for browsers without CSS relative colour syntax */
  border: 1px solid rgba(26, 25, 23, 0.25);
  border: 1px solid oklch(from var(--color-text) l c h / 0.25);
  border-radius: 99px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  white-space: nowrap;
}
[data-theme="dark"] .badge-confidence {
  border-color: rgba(245, 243, 240, 0.2);
  border-color: oklch(from var(--color-text) l c h / 0.2);
}
/* Modifier variants — border tint only, no fill */
.badge-confidence--confirmed {
  border-color: rgba(5, 150, 105, 0.5);
  border-color: oklch(from var(--positive) l c h / 0.5);
  color: var(--positive);
}
.badge-confidence--high {
  border-color: rgba(217, 119, 6, 0.4);
  border-color: oklch(from var(--high) l c h / 0.4);
}
.badge-confidence--assessed {
  border-color: rgba(26, 25, 23, 0.25);
  border-color: oklch(from var(--color-text) l c h / 0.25);
}
.badge-confidence--possible {
  border-color: rgba(26, 25, 23, 0.15);
  border-color: oklch(from var(--color-text) l c h / 0.15);
  color: var(--color-text-faint);
}

/* ─── Triage Strip (SL-02) ───────────────────────────────────────────────────
   Five-zone above-the-fold layout for every dashboard.
   Zone order: KPIs → Lead Signal → Structural Snapshot → Primary Delta → Threshold
   renderTriageStrip() in renderer.js enforces this order programmatically.        */

.triage-strip {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}
/* Each named zone inside the triage strip */
.triage-section {
  position: relative;
}
/* Visual separator between triage zones */
.triage-section + .triage-section {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-subtle);
}
/* Zone label — small uppercase type above each section */
.triage-section__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}
/* Threshold zone — accent-tinted left bar */
.triage-section--threshold {
  border-left: 3px solid var(--monitor-accent);
  padding-left: var(--space-5);
}

/* ─── Chart Wrappers (D1) ────────────────────────────────────────────────────
   Standard sizing containers for Chart.js canvases.
   Replaces inline style injections from renderRadarChart().              */

.asym-chart-wrap {
  position: relative;
  width: 100%;
}
.asym-chart-wrap--square { aspect-ratio: 1 / 1; overflow: visible; }
.asym-chart-wrap--radar-fill {
  overflow: visible;
}
.asym-chart-wrap--wide   { aspect-ratio: 16 / 7; }
.asym-chart-wrap--tall   { aspect-ratio: 4 / 3; }
.asym-chart-wrap canvas  { overflow: visible; }

/* Radar layout — grid with side bar list (extracted from renderRadarChart) */
.asym-radar-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
  height: 480px;          /* fixed container — radar fills left, dim list scrolls right */
  overflow: visible;
}
.asym-radar-wrap > .asym-chart-wrap--radar-fill {
  height: 100%;
  min-height: 0;    /* prevent grid blowout */
}
.asym-radar-wrap > .asym-chart-wrap--radar-fill canvas {
  width: 100% !important;
  height: 100% !important;
}
.asym-radar-wrap > .asym-radar-dim-list {
  max-height: 480px;
  overflow-y: auto;
}
.asym-radar-badge {
  text-align: center;
  margin-bottom: var(--space-6);
}
.asym-radar-badge__value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}
.asym-radar-badge__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
.asym-radar-dim-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-2);
}
.asym-radar-dim-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2) var(--space-4);
  align-items: center;
}
.asym-radar-dim-row__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.asym-radar-dim-row__note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.3;
  margin-top: 2px;
}
.asym-radar-dim-row__score {
  font-size: var(--text-lg);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 2.5rem;
}
.asym-radar-dim-row__bar-wrap {
  grid-column: 1 / -1;
  height: 8px;
  background: var(--color-bg-alt);
  border-radius: 4px;
  overflow: hidden;
}
.asym-radar-dim-row__bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
  min-width: 2px;
}

/* ─── Monitor Pills (SL-09 / HP-01) ─────────────────────────────────────────
   Accent-keyed identity chips for monitor strips and cross-monitor badges.
   RULE: always pair accent colour with explicit monitor label text
         (never colour alone — SCEM red collides with --critical).        */

.monitor-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.2em 0.65em;
  border-radius: 99px;
  border: 1px solid var(--monitor-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--monitor-accent);
  background: var(--monitor-accent-bg);
  white-space: nowrap;
  text-decoration: none;
}
.monitor-pill:hover {
  background: color-mix(in srgb, var(--monitor-accent) 15%, transparent);
}
/* Dot — 8px accent circle, used alongside monitor name text */
.monitor-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--monitor-accent);
  flex-shrink: 0;
}

/* ─── Report Card Grid (HP-01) ───────────────────────────────────────────────
   Three-column card layout for homepage report-card grid.
   Each card: monitor colour strip, name, summary, date.                  */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.card-grid--two   { grid-template-columns: repeat(2, 1fr); }
.card-grid--four  { grid-template-columns: repeat(4, 1fr); }

.report-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.report-card:hover {
  border-color: var(--card-accent, var(--monitor-accent));
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
/* Accent strip — top border keyed to monitor colour */
.report-card__accent {
  height: 3px;
  background: var(--card-accent, var(--monitor-accent));
  flex-shrink: 0;
}
.report-card__body {
  padding: var(--space-5) var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.report-card__monitor {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--card-accent, var(--monitor-accent));
}
.report-card__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  flex: 1;
}
.report-card__summary {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.55;
}
.report-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-6);
  border-top: 1px solid var(--color-border-subtle);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
/* ─── Network Bar Offset ─────────────────────────────────────────────
   Network bar is position:fixed, height:40px.
   ALL pages must have body padding-top:40px.
   monitor-nav sticks at top:40px (immediately below the bar).     */
body { padding-top: 40px; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  body { overflow-x: clip; } /* clip not hidden — preserves position:fixed children */
  /* monitor-layout: no overflow:hidden — would break position:sticky on monitor-nav */
  .monitor-nav { padding: 0 var(--space-4); }
  .monitor-nav__hamburger { display: flex; }
  .monitor-nav__links {
    display: none;
    position: fixed;
    top: calc(40px + 52px); /* network bar + monitor nav */
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    min-height: 0;           /* prevent flex stretch */
    max-height: 70vh;
    overflow-y: auto;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    align-content: flex-start;
    justify-content: flex-start;
    padding: var(--space-2) 0;
    gap: 0;
    z-index: 98;
    box-shadow: 0 8px 24px rgba(26,25,23,0.12);
  }
  .monitor-nav__links li { list-style: none; }
  .monitor-nav__links a {
    display: block;
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    border-bottom: 1px solid var(--color-border-subtle);
  }
  .monitor-nav__links li:last-child a { border-bottom: none; }
  .monitor-nav__links a:hover,
  .monitor-nav__links a.active {
    color: var(--monitor-accent);
    background: var(--monitor-accent-bg);
  }
  .monitor-nav__links--open { display: flex; }
  .monitor-sidebar {
    position: fixed;
    top: calc(var(--network-bar-height) + var(--nav-height));
    right: 0;
    height: calc(100vh - var(--network-bar-height) - var(--nav-height));
    z-index: 98;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: var(--shadow-md);
  }
  .monitor-layout { display: block; overflow-x: clip; } /* clip not hidden — preserves sticky children */
  .monitor-main { padding: var(--space-6) var(--space-4); overflow-x: clip; }
  .kpi-strip { gap: var(--space-3); }
  .kpi-card { min-width: 130px; }
  .archive-entry { grid-template-columns: 1fr; gap: var(--space-2); }
  .module-nav-strip { display: none; }
  .signal-block { padding: var(--space-6); }
  .signal-block::before { display: none; }
  .mimicry-chain__flow { flex-direction: column; }
  .mimicry-arrow { transform: rotate(90deg); align-self: flex-start; }
  /* Tables scroll horizontally within their container */
  .heatmap-table { font-size: var(--text-xs); }
  table { display: block; overflow-x: auto; max-width: 100%; }
  /* Indicator grid — 3 columns on mobile */
  .indicator-grid { grid-template-columns: repeat(3, 1fr) !important; }
  /* Cross-monitor panel full width */
  .cross-monitor-panel { padding: var(--space-4); }
  /* Sprint 1 SL — responsive */
  /* LOG-2026-04-17-001: fixed 480px height on .asym-radar-wrap caused the dim
     list to overflow into the next module-section when the grid stacked to 1fr,
     producing the ESA "Critical Materials / Domain Tracker" visual merge.
     Fix: let the stacked layout size itself; remove the dim list cap. */
  .asym-radar-wrap {
    grid-template-columns: 1fr;
    height: auto;
  }
  .asym-radar-wrap > .asym-radar-dim-list {
    max-height: none;
    overflow-y: visible;
  }
  .card-grid, .card-grid--two { grid-template-columns: 1fr; }
  .card-grid--four { grid-template-columns: repeat(2, 1fr); }
  .triage-section--threshold { padding-left: var(--space-4); }
}

@media (max-width: 480px) {
  .monitor-footer { flex-direction: column; text-align: center; }
}

/* ─── Print ──────────────────────────────────────────────── */
@media print {
  .monitor-nav, .monitor-sidebar, .module-nav-strip, .monitor-footer { display: none; }
  .monitor-layout { display: block; }
  .signal-block { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ── Search page ─────────────────────────────────────────────────────── */
.search-wrap { max-width: 720px; padding: var(--space-10) 0; }
.search-input-el {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.15s;
  box-shadow: var(--shadow-sm);
}
.search-input-el:focus { border-color: var(--monitor-accent); }
.search-input-el::placeholder { color: var(--color-text-faint); }
.search-status {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: var(--space-4) 0;
  min-height: 1.5em;
}
.search-result {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}
.search-result:last-child { border-bottom: none; }
.search-result__meta {
  font-size: var(--text-xs);
  color: var(--monitor-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.search-result__body {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
}
.search-result__body mark {
  background: var(--monitor-accent-bg);
  color: var(--monitor-accent);
  border-radius: 2px;
  padding: 0 2px;
}
.search-result__link {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--monitor-accent);
  text-decoration: none;
  font-weight: 600;
}
.search-result__link:hover { text-decoration: underline; }

/* ── Overview Page Components ────────────────────────────────────────── */

/* Hero band — "Why it matters now" */
.ov-hero-band {
  margin-top: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: var(--monitor-accent-bg);
  border: 1px solid var(--color-border-subtle);
  border-left: 4px solid var(--monitor-accent);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-4);
}
.ov-hero-band__content { min-width: 0; }
.ov-band-title {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-text-muted);
}
.ov-band-head {
  font-size: var(--text-xl);
  line-height: 1.2;
  font-weight: 700;
  margin: var(--space-2) 0 var(--space-3);
  max-width: 28ch;
}
.ov-band-copy {
  margin: 0;
  color: var(--color-text-secondary);
  max-width: 60ch;
  line-height: 1.65;
}
/* Legacy overview chip classes retired 2026-05-12 — migrated to chip-filter
   primitive (shared/css/chip-filter.css).
   See BRIEF-FE-DEMO-SUBSTANCE-UNIFICATION. */
.ov-band-stats { display: grid; gap: var(--space-3); align-content: start; }
.ov-mini-stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
}
.ov-mini-stat span {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.ov-mini-stat strong {
  display: block;
  font-size: var(--text-xl);
  line-height: 1;
  margin-top: var(--space-1);
}

/* Pills (issue-level badges) */
.ov-pill {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius);
  background: var(--monitor-accent-bg);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-subtle);
}

/* Route card grid — 2-col */
.ov-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

/* Glance row — 3-4 stat boxes */
.ov-glance-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
}
.ov-glance-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-left: 4px solid var(--monitor-accent);
  padding: var(--space-4);
  border-radius: var(--radius-md);
}
.ov-glance-label,
.ov-glance-box__label {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 700;
}
.ov-glance-box__value {
  display: block;
  font-size: var(--text-lg);
  line-height: 1.15;
  margin-top: var(--space-1);
}
.ov-glance-box__empty {
  opacity: 0.45;
  color: var(--color-text-faint);
}
.ov-glance-box strong {
  display: block;
  font-size: var(--text-lg);
  line-height: 1.15;
  margin-top: var(--space-1);
}
.ov-glance-mini {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}
.ov-glance-box--empty {
  opacity: 0.45;
  border-left-color: var(--color-border);
}
.ov-glance-pending {
  display: block;
  font-size: var(--text-lg);
  color: var(--color-text-faint);
  margin-top: var(--space-1);
}

/* Split grid (Why different + Cross-monitor) */
.ov-split-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--space-3);
}

/* Sidebar icon */
.ov-sidebar-icon {
  font-size: 2rem;
  color: var(--monitor-accent);
  line-height: 1;
}

/* ── Overview responsive ── */
@media (max-width: 900px) {
  .ov-hero-band,
  .ov-route-grid,
  .ov-split-grid,
  .ov-glance-row { grid-template-columns: 1fr; }
}

/* ── Network bar link strip ──────────────────────────────────────────── */
.nb-links { display: flex; }
@media (max-width: 640px) { .nb-links { display: none; } }


/* ══════════════════════════════════════════════════════════════════════
   Sprint 1 — Centralisation batch (SL-C01)
   card__tag · kpi-card__value--accent · severity-card family ·
   tier-distribution family · entity-card (generic accent-bar card)
   ══════════════════════════════════════════════════════════════════════ */

/* ─── card__tag ───────────────────────────────────────────────────────
   Inline pill tag used inside card body — tier labels, categories, etc.
   Used by: WDM, AGM, GMM                                               */
.card__tag {
  display: inline-block;
  font-size: var(--text-min);
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 20px;
  background: var(--color-bg-alt, rgba(100,116,139,0.08));
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-subtle);
  white-space: nowrap;
}

/* ─── kpi-card__value--accent ─────────────────────────────────────────
   Accent-coloured value variant — highlights a lead KPI               */
.kpi-card__value--accent {
  color: var(--color-critical, #dc2626);
}
[data-theme="dark"] .kpi-card__value--accent {
  color: #f87171;
}

/* ─── Severity Card ───────────────────────────────────────────────────
   Compact entity card with large score and status arrow.
   Used by: WDM (rapid decay country cards).
   Reusable for any monitor with scored entities.

   .severity-card                   — base card
   .severity-card--critical/high/moderate — top-border tint
   .severity-card__flag             — emoji flag / icon
   .severity-card__name             — entity name
   .severity-card__score-row        — score + arrow row
   .severity-card__score            — large numeric score
   .severity-card__arrow            — directional arrow
   .severity-card__arrow--up/down/flat — arrow colour states
   .severity-card__signal           — truncated signal text
   .severity-cards-row              — horizontal scroll container
   .severity-cards-empty            — empty state                       */

.severity-cards-row {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
.severity-cards-row::-webkit-scrollbar { height: 4px; }
.severity-cards-row::-webkit-scrollbar-track { background: transparent; }
.severity-cards-row::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}
.severity-card {
  flex: 0 0 180px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s;
}
.severity-card:hover { box-shadow: var(--shadow); }
.severity-card--critical { border-top: 3px solid var(--color-critical, #b91c1c); }
.severity-card--high     { border-top: 3px solid #ea580c; }
.severity-card--moderate { border-top: 3px solid #d97706; }
.severity-card__flag  { font-size: 1.75rem; line-height: 1; }
.severity-card__name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}
.severity-card__score-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.severity-card__score {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-text);
  letter-spacing: -0.03em;
}
.severity-card__arrow { font-size: 1.1rem; font-weight: 700; }
.severity-card__arrow--up   { color: var(--color-critical, #b91c1c); }
.severity-card__arrow--down { color: var(--color-positive, #059669); }
.severity-card__arrow--flat { color: var(--color-text-muted); }
.severity-card__signal {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.severity-cards-empty {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-4) 0;
}
[data-theme="dark"] .severity-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}

/* ─── Tier Distribution Bar ───────────────────────────────────────────
   Stacked horizontal bar showing tier/category counts + legend.
   Used by: WDM (Rapid Decay / Watchlist / Recovery).
   Reusable for any monitor with tiered entity counts.

   .tier-distribution               — wrapper
   .tier-distribution__label        — section eyebrow label
   .tier-dist-canvas-container      — Chart.js canvas host (height set per-use)
   .tier-distribution__legend       — flex legend row
   .tier-legend-item                — single legend swatch + label
   .tier-legend-dot                 — colour swatch
   .tier-legend-dot--decay/watchlist/recovery/active/stable — tint variants */

.tier-distribution {
  margin-bottom: var(--space-6);
}
.tier-distribution__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.tier-dist-canvas-container {
  width: 100%;
  position: relative;
}
.tier-dist-canvas-container canvas {
  border-radius: var(--radius-md);
}
.tier-distribution__legend {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}
.tier-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}
.tier-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
/* Semantic colour aliases — monitors add their own if needed */
.tier-legend-dot--decay      { background: #b91c1c; }
.tier-legend-dot--watchlist  { background: #d97706; }
.tier-legend-dot--recovery   { background: #059669; }
.tier-legend-dot--critical   { background: #b91c1c; }
.tier-legend-dot--high       { background: #d97706; }
.tier-legend-dot--moderate   { background: #2563eb; }
.tier-legend-dot--positive   { background: #059669; }
.tier-legend-dot--active     { background: var(--monitor-accent); }
.tier-legend-dot--stable     { background: var(--color-text-muted); }
[data-theme="dark"] .tier-legend-item { color: var(--color-text-secondary); }

/* ─── Entity Card (generic accent-bar card) ───────────────────────────
   Card with a left accent bar — severity/status colour applied via modifier.
   Generalises conflict-card, theatre-card, tipping-cell bar pattern.

   .entity-card                     — base
   .entity-card--critical/high/moderate/positive/stable — bar colour
   .entity-card__header             — flex header row
   .entity-card__name               — primary entity name
   .entity-card__meta               — secondary metadata row
   .entity-card__body               — description text
   .entity-card__footer             — flex footer with badges/links
   .entity-card__tag                — status/type pill (reuses .card__tag style)
   .entity-card__dot                — pulsing status dot                */

.entity-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  overflow: clip;
  transition: box-shadow 0.15s;
}
.entity-card:hover { box-shadow: var(--shadow); }
/* Left accent bar */
.entity-card::before {
  content: '';
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 3px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background: var(--color-border);
}
.entity-card--critical::before { background: var(--color-critical, #dc2626); }
.entity-card--high::before     { background: #d97706; }
.entity-card--moderate::before { background: #2563eb; }
.entity-card--positive::before { background: var(--color-positive, #059669); }
.entity-card--stable::before   { background: var(--color-text-muted); }

.entity-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}
.entity-card__name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  flex: 1;
  min-width: 0;
}
.entity-card__meta {
  font-size: var(--text-min);
  color: var(--color-text-muted);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--space-2);
}
.entity-card__body {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.6;
}
.entity-card__footer {
  margin-top: var(--space-3);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}
.entity-card__tag {
  /* Inherits .card__tag pattern */
  display: inline-block;
  font-size: var(--text-min);
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 20px;
  background: var(--color-bg-alt, rgba(100,116,139,0.08));
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-subtle);
  white-space: nowrap;
}
.entity-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--color-text-muted);
}
.entity-card__dot--critical { background: #dc2626; box-shadow: 0 0 6px rgba(220,38,38,0.5); }
.entity-card__dot--high     { background: #d97706; box-shadow: 0 0 6px rgba(217,119,6,0.4); }
.entity-card__dot--moderate { background: #2563eb; }
.entity-card__dot--positive { background: #059669; }

/* Entity card grid — responsive */
.entity-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-3);
}
@media (max-width: 640px) { .entity-card-grid { grid-template-columns: 1fr; } }

[data-theme="dark"] .entity-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}


/* ─── Direction Arrow (cross-monitor: scoring/direction indicators) ──── */
/* Promoted from GMM dashboard.html — Sprint 4 */
.dir-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  white-space: nowrap;
}
.dir-arrow svg { flex-shrink: 0; }
.dir-arrow__label { letter-spacing: 0.02em; }
.dir-arrow--down   { color: var(--critical);           background: var(--critical-bg); }
.dir-arrow--up     { color: var(--positive);           background: var(--positive-bg); }
.dir-arrow--accel  { color: var(--high);               background: var(--high-bg); }
.dir-arrow--stable { color: var(--color-text-muted);   background: var(--color-bg-alt); }
.dir-arrow--neutral{ color: var(--color-text-muted); }

/* ─── Risk Heatmap (cross-monitor: tail risk / impact-likelihood matrix) ── */
/* Promoted from GMM dashboard.html — Sprint 4 */
.risk-heatmap {
  margin: var(--space-4) 0 var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.risk-heatmap__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-1);
}
.risk-heatmap__title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-text-muted);
}
.risk-heatmap__method {
  font-size: var(--text-min);
  color: var(--color-text-faint);
}
.risk-heatmap__grid {
  display: grid;
  grid-template-columns: 36px 1fr 1fr 1fr;
  grid-template-rows: auto auto auto auto auto;
  gap: 3px;
}
.risk-heatmap__y-label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--space-2);
  font-size: var(--text-min);
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.risk-heatmap__cell {
  min-height: 72px;
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
}
.risk-heatmap__cell--low      { background: rgba(5,150,105,0.07);  border: 1px solid rgba(5,150,105,0.15); }
.risk-heatmap__cell--medium   { background: rgba(217,119,6,0.07);  border: 1px solid rgba(217,119,6,0.15); }
.risk-heatmap__cell--high     { background: rgba(193,68,14,0.09);  border: 1px solid rgba(193,68,14,0.18); }
.risk-heatmap__cell--critical { background: rgba(193,68,14,0.15);  border: 1px solid rgba(193,68,14,0.30); }
[data-theme="dark"] .risk-heatmap__cell--low      { background: rgba(5,150,105,0.10); }
[data-theme="dark"] .risk-heatmap__cell--medium   { background: rgba(217,119,6,0.10); }
[data-theme="dark"] .risk-heatmap__cell--high     { background: rgba(193,68,14,0.14); }
[data-theme="dark"] .risk-heatmap__cell--critical { background: rgba(193,68,14,0.22); }
.risk-heatmap__x-labels {
  grid-column: 2 / 5;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3px;
}
.risk-heatmap__x-label {
  text-align: center;
  font-size: var(--text-min);
  color: var(--color-text-muted);
  padding-top: var(--space-1);
}
.risk-heatmap__x-title {
  grid-column: 2 / 5;
  text-align: center;
  font-size: var(--text-min);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* Legacy risk chip class retired 2026-05-12 — migrated to chip-filter
   primitive (shared/css/chip-filter.css). Zero HTML/JS call sites existed
   at migration time (verified by `gh search code` 2026-05-12).
   See BRIEF-FE-DEMO-SUBSTANCE-UNIFICATION. */

/* ─── Score History Chart (cross-monitor: any monitor with score history) ── */
.score-history-wrap {
  position: relative;
  height: 340px;
  width: 100%;
}
@media (max-width: 700px) { .score-history-wrap { height: 440px; } }
.score-history-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.score-history-toggle {
  font-size: var(--text-xs);
  font-weight: 600;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 3px 10px;
  cursor: pointer;
  background: var(--color-bg-alt);
  color: var(--color-text-secondary);
  transition: opacity 0.15s, filter 0.15s;
  letter-spacing: 0.02em;
}
.score-history-toggle.active  { color: #fff; border-color: transparent; }
.score-history-toggle.inactive { opacity: 0.38; filter: grayscale(0.6); }
.score-history-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}
.score-history-legend__item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.score-history-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.score-history-legend__name  { font-weight: 600; }
.score-history-legend__score { font-variant-numeric: tabular-nums; }
.score-history-legend__flag  { color: var(--color-text-muted); }


/* ─── Snapshot KPI Strip (cross-monitor: summary stat strip) ───────────
   Promoted from SCEM dashboard.html — Sprint 5
   Used by SCEM Global Escalation Snapshot; intended for any monitor needing
   a tight row of headline KPI tiles.

   .snapshot-strip          — flex wrapper
   .snapshot-kpi            — individual tile (grows to fill)
   .snapshot-kpi--accent    — monitor-accent tinted tile
   .snapshot-kpi__value     — large numeral
   .snapshot-kpi__label     — uppercase category label
   .snapshot-kpi__sub       — small supporting text (muted)
   .snapshot-kpi__sub--text — slightly larger secondary text        */

.snapshot-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}
.snapshot-kpi {
  flex: 1 1 140px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 120px;
}
.snapshot-kpi--accent {
  border-color: rgba(var(--monitor-accent-rgb, 220,38,38), 0.35);
  background: rgba(var(--monitor-accent-rgb, 220,38,38), 0.04);
}
[data-theme="dark"] .snapshot-kpi--accent {
  background: rgba(var(--monitor-accent-rgb, 220,38,38), 0.08);
}
.snapshot-kpi__value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-text);
}
.snapshot-kpi--accent .snapshot-kpi__value {
  color: var(--monitor-accent, #dc2626);
}
[data-theme="dark"] .snapshot-kpi--accent .snapshot-kpi__value {
  color: var(--monitor-accent-light, #f87171);
}
.snapshot-kpi__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
}
.snapshot-kpi__sub {
  font-size: var(--text-min);
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-top: 2px;
}
.snapshot-kpi__sub--text {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.5;
  font-weight: 500;
}

/* ─── Metric Tile Grid (cross-monitor: categorised indicator tiles) ────
   Promoted from ESA dashboard.html — 14 Apr 2026
   Categorised groups of metric tiles with accent top borders,
   sentiment-coloured values, and responsive auto-fill columns.
   Used for KPI indicators, domain health scores, any grouped numerics.

   .metric-tile-group               — wrapper for one category
   .metric-tile-group__header       — uppercase category label (accent-coloured)
   .metric-tile-grid                — auto-fill responsive grid of tiles
   .metric-tile                     — single tile card
   .metric-tile__value              — large numeral/text
   .metric-tile__value--positive    — green-ish (good)
   .metric-tile__value--negative    — red (bad)
   .metric-tile__value--neutral     — muted
   .metric-tile__label              — small descriptor
   .metric-tile__sub                — optional secondary line             */

.metric-tile-group {
  margin-bottom: var(--space-6);
}
.metric-tile-group__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.metric-tile-group__header span {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.metric-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: var(--space-3);
}
.metric-tile {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}
.metric-tile:hover {
  border-color: var(--monitor-accent);
}
.metric-tile__value {
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.metric-tile__value--positive {
  color: color-mix(in srgb, var(--monitor-accent) 65%, #000);
}
[data-theme="dark"] .metric-tile__value--positive {
  color: color-mix(in srgb, var(--monitor-accent) 80%, #fff);
}
.metric-tile__value--negative {
  color: var(--critical, #dc2626);
}
[data-theme="dark"] .metric-tile__value--negative {
  color: #f87171;
}
.metric-tile__value--neutral {
  color: var(--color-text-muted);
}
.metric-tile__label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}
.metric-tile__sub {
  font-size: var(--text-min);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
@media (max-width: 640px) {
  .metric-tile-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-2);
  }
}


/* ─── Entity Heat Strip (cross-monitor: tracked entity pills + detail) ───
   Promoted from ESA dashboard.html — 14 Apr 2026
   Horizontal strip of entity pills sorted by severity. Click expands
   a detail panel below. Compact at rest, interactive for detail.
   Used for: member states, theatres, platforms, economies — any small
   set of tracked entities with status + headline + change text.

   .heat-strip                    — flex wrapper for pills
   .heat-pill                     — individual entity pill
   .heat-pill--critical           — red severity
   .heat-pill--elevated / --high  — amber severity
   .heat-pill--watch              — blue-grey
   .heat-pill--stable             — green
   .heat-pill.is-active           — currently expanded
   .heat-pill__flag               — emoji/icon slot
   .heat-pill__code               — short entity code
   .heat-pill__dot                — severity dot indicator
   .heat-detail                   — expanded detail panel
   .heat-detail__status           — status badge
   .heat-detail__headline         — headline text
   .heat-detail__delta            — change-from-last-week          */

.heat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.heat-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  user-select: none;
  flex: 0 1 auto;
  min-width: 0;
}
.heat-pill:hover {
  border-color: var(--monitor-accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.heat-pill.is-active {
  border-color: var(--monitor-accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background: var(--color-bg-alt);
}
.heat-pill__flag {
  font-size: 1.4rem;
  line-height: 1;
}
.heat-pill__code {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.heat-pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.heat-pill--critical .heat-pill__dot { background: #dc2626; box-shadow: 0 0 6px rgba(220,38,38,0.4); }
.heat-pill--elevated .heat-pill__dot,
.heat-pill--high .heat-pill__dot     { background: #d97706; box-shadow: 0 0 6px rgba(217,119,6,0.3); }
.heat-pill--watch .heat-pill__dot    { background: #5b8db0; }
.heat-pill--stable .heat-pill__dot   { background: #059669; }

.heat-pill--critical { border-left: 3px solid #dc2626; }
.heat-pill--elevated,
.heat-pill--high     { border-left: 3px solid #d97706; }
.heat-pill--watch    { border-left: 3px solid #5b8db0; }
.heat-pill--stable   { border-left: 3px solid #059669; }

.heat-detail {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-3);
  animation: heat-detail-in 0.25s ease;
}
@keyframes heat-detail-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.heat-detail__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.heat-detail__flag {
  font-size: 2rem;
  line-height: 1;
}
.heat-detail__name {
  font-size: var(--text-lg);
  font-weight: 700;
}
.heat-detail__status {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
}
.heat-detail__status--critical { background: rgba(220,38,38,0.1); color: #dc2626; }
.heat-detail__status--elevated,
.heat-detail__status--high     { background: rgba(217,119,6,0.1); color: #d97706; }
.heat-detail__status--watch    { background: rgba(91,141,176,0.1); color: #5b8db0; }
.heat-detail__status--stable   { background: rgba(5,150,105,0.1); color: #059669; }
[data-theme="dark"] .heat-detail__status--critical { background: rgba(220,38,38,0.15); color: #f87171; }
[data-theme="dark"] .heat-detail__status--elevated,
[data-theme="dark"] .heat-detail__status--high     { background: rgba(217,119,6,0.15); color: #fbbf24; }
[data-theme="dark"] .heat-detail__status--watch    { background: rgba(91,141,176,0.15); color: #93c5fd; }
[data-theme="dark"] .heat-detail__status--stable   { background: rgba(5,150,105,0.15); color: #6ee7b7; }
.heat-detail__headline {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.heat-detail__delta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  padding-left: var(--space-4);
  border-left: 2px solid var(--color-border);
}
.heat-detail__source {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
}
.heat-detail__source a {
  color: var(--monitor-accent);
  text-decoration: underline;
}
@media (max-width: 640px) {
  .heat-strip { gap: var(--space-2); }
  .heat-pill { padding: var(--space-2) var(--space-3); }
  .heat-pill__code { font-size: var(--text-xs); }
}


/* ─── Weekly Brief Card (cross-monitor: brief/prose card) ───────────────
   Promoted from SCEM dashboard.html — Sprint 5
   Generic card for displaying multi-paragraph brief/analysis text.  */

.weekly-brief-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-4) 0;
}
.weekly-brief-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin: 0;
}
.weekly-brief-card p + p {
  margin-top: var(--space-4);
}

/* ─── Theatre Card (cross-monitor: entity card with actor tags) ─────────
   Promoted from SCEM dashboard.html — Sprint 5
   Generalises across theatre/actor/entity displays in any monitor.

   .theatre-cards               — responsive grid container
   .theatre-card                — base card
   .theatre-card__accent        — top accent bar (3px, colour via modifier)
   .theatre-card__accent--high/medium/low  — severity colours
   .theatre-card__header        — flex header
   .theatre-card__name          — entity name
   .theatre-card__intensity     — intensity/status pill
   .theatre-card__actors        — actor tag flex row
   .theatre-card__actor-tag     — individual actor pill
   .theatre-card__dev           — latest development text (border-left callout)
   .theatre-card__hybrid        — hybrid-threat tags row
   .theatre-card__hybrid-tag    — individual hybrid-threat pill (accent-tinted)
   .theatre-card__footer        — footer row with risk badge + delta
   .theatre-card__risk-badge    — severity badge (--high/medium/low)
   .theatre-card__ceasefire     — ceasefire/positive status pill
   .theatre-card__delta         — direction indicator (--escalating/stable/deescalating) */

.theatre-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
  margin: var(--space-4) 0;
}
.theatre-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
  overflow: clip;
  transition: box-shadow 0.15s;
}
.theatre-card:hover { box-shadow: var(--shadow-md); }
.theatre-card__accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.theatre-card__accent--high    { background: #dc2626; }
.theatre-card__accent--medium  { background: #d97706; }
.theatre-card__accent--low     { background: #2563eb; }
.theatre-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-2);
}
.theatre-card__name {
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.2;
}
.theatre-card__intensity {
  font-size: var(--text-min);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  white-space: nowrap;
}
.theatre-card__actors {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: var(--space-1);
}
.theatre-card__actor-tag {
  font-size: var(--text-min);
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}
.theatre-card__dev {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.5;
  border-left: 2px solid var(--color-border);
  padding-left: var(--space-2);
  margin-top: var(--space-1);
}
.theatre-card__hybrid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: var(--space-1);
}
.theatre-card__hybrid-tag {
  font-size: var(--text-min);
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(79, 152, 163, 0.1);
  border: 1px solid rgba(79, 152, 163, 0.25);
  color: var(--monitor-accent, #4f98a3);
  font-weight: 600;
}
.theatre-card__footer {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-1);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border-subtle);
}
.theatre-card__risk-badge {
  font-size: var(--text-min);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 2px 8px;
  border-radius: 3px;
}
.theatre-card__risk-badge--high   { background: rgba(220,38,38,0.1);  color: #dc2626; }
.theatre-card__risk-badge--medium { background: rgba(217,119,6,0.1);  color: #d97706; }
.theatre-card__risk-badge--low    { background: rgba(5,150,105,0.1);  color: #059669; }
[data-theme="dark"] .theatre-card__risk-badge--high   { background: rgba(220,38,38,0.2);  color: #f87171; }
[data-theme="dark"] .theatre-card__risk-badge--medium { background: rgba(217,119,6,0.2);  color: #fbbf24; }
[data-theme="dark"] .theatre-card__risk-badge--low    { background: rgba(5,150,105,0.2);  color: #34d399; }
.theatre-card__ceasefire {
  font-size: var(--text-min);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: #059669;
}
[data-theme="dark"] .theatre-card__ceasefire {
  background: rgba(5, 150, 105, 0.15);
  color: #34d399;
}
.theatre-card__delta {
  font-size: var(--text-min);
  font-weight: 700;
  margin-left: auto;
}
.theatre-card__delta--escalating   { color: #dc2626; }
.theatre-card__delta--stable       { color: var(--color-text-muted); }
.theatre-card__delta--deescalating { color: #059669; }

/* ─── Key Judgment Card (cross-monitor: structured assessment cards) ────
   Promoted from SCEM dashboard.html — Sprint 5
   Used by SCEM; pattern applicable to WDM, FCW, AGM assessment cards.

   .key-judgment-cards            — responsive grid container
   .key-judgment-card             — individual card
   .key-judgment-card__id         — judgment identifier (KJ-01, etc.)
   .key-judgment-card__text       — judgment statement
   .key-judgment-card__footer     — footer with theatre + confidence
   .key-judgment-card__theatre    — geographic/thematic scope label
   .kj-confidence-badge           — confidence level badge
   .kj-confidence-badge--confirmed/high/assessed/low  — severity variants  */

.key-judgment-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
  margin: var(--space-4) 0;
}
.key-judgment-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow 0.15s;
}
.key-judgment-card:hover { box-shadow: var(--shadow-md); }
.key-judgment-card__id {
  font-size: var(--text-min);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-text-muted);
}
.key-judgment-card__text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
  flex: 1;
}
.key-judgment-card__footer {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border-subtle);
}
.key-judgment-card__theatre {
  font-size: var(--text-min);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.kj-confidence-badge {
  font-size: var(--text-min);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 1px 7px;
  border-radius: 3px;
}
.kj-confidence-badge--confirmed { background: rgba(5,150,105,0.1);  color: #059669; }
.kj-confidence-badge--high      { background: rgba(37,99,235,0.1);  color: #2563eb; }
.kj-confidence-badge--assessed  { background: rgba(217,119,6,0.1);  color: #d97706; }
.kj-confidence-badge--low       { background: rgba(220,38,38,0.1);  color: #dc2626; }
[data-theme="dark"] .kj-confidence-badge--confirmed { background: rgba(5,150,105,0.2);   color: #34d399; }
[data-theme="dark"] .kj-confidence-badge--high      { background: rgba(37,99,235,0.18);  color: #60a5fa; }
[data-theme="dark"] .kj-confidence-badge--assessed  { background: rgba(217,119,6,0.2);   color: #fbbf24; }
[data-theme="dark"] .kj-confidence-badge--low       { background: rgba(220,38,38,0.2);   color: #f87171; }


/* ─── Cross-Monitor Candidates (cmc-*) ──────────────────────────────────
   Rendered by AsymSections.renderCrossMonitorCandidates in renderer.js.
   Grid of cards showing signals flagged for other monitors.
   ──────────────────────────────────────────────────────────────────────── */
.cmc-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.cmc-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  align-items: flex-start;
}
.cmc-item__target {
  flex-shrink: 0;
  min-width: 140px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent, var(--color-text));
  padding-top: 2px;
}
.cmc-item__link {
  color: inherit;
  text-decoration: none;
}
.cmc-item__link:hover {
  text-decoration: underline;
}
.cmc-item__body {
  flex: 1;
  min-width: 0;
}
.cmc-item__signal {
  font-size: var(--text-xs);
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}
.cmc-item__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.cmc-item__type {
  font-size: var(--text-min);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 640px) {
  .cmc-item { flex-direction: column; gap: var(--space-2); }
  .cmc-item__target { min-width: 0; }
}

/* ─── Risk Rating Badge (cross-monitor: solid-fill severity pill) ────────
   Promoted from AGM dashboard.html — Sprint 6
   Solid-colour fill variant (white text) — contrasts with .severity-badge
   which uses translucent backgrounds. Use for primary risk classifications
   where solid fill communicates high-confidence categorical assignment.

   .risk-rating-badge                     — base
   .risk-rating-badge--HIGH               — solid orange-red
   .risk-rating-badge--ELEVATED           — solid amber
   .risk-rating-badge--MODERATE           — solid blue
   .risk-rating-badge--LOW                — solid grey                     */

.risk-rating-badge {
  display: inline-block;
  font-size: var(--text-min);
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}
.risk-rating-badge--HIGH     { background: #c1440e; color: #fff; }
.risk-rating-badge--ELEVATED { background: #d97706; color: #fff; }
.risk-rating-badge--MODERATE { background: #2563eb; color: #fff; }
.risk-rating-badge--LOW      { background: #6b6660; color: #fff; }

/* ─── Delta Card (cross-monitor: ranked movers list with badge) ─────────
   Promoted from AGM dashboard.html — Sprint 6
   Card-based ranked list — complements the existing flat .delta-strip/.delta-item
   pattern. Use when items need card treatment (surface + border) rather than
   a borderless list row.

   .ds-list                — <ol> container (flex column)
   .ds-card                — individual ranked card (<li>)
   .ds-rank                — large rank numeral
   .ds-body                — flex-grow content area
   .ds-meta                — meta row (module label + badge)
   .ds-module              — module/source label (monospace)
   .ds-badge               — change-type badge
   .ds-badge--new          — new entry (green)
   .ds-badge--escalation   — escalation (orange-red)
   .ds-badge--shift        — shift/change (amber)
   .ds-badge--update       — update (blue)
   .ds-badge--default      — neutral
   .ds-title               — item headline
   .ds-oneline             — single-line summary text                      */

.ds-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.ds-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}
[data-theme="dark"] .ds-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}
.ds-rank {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text-muted);
  line-height: 1;
  min-width: 1.6rem;
  flex-shrink: 0;
}
.ds-body {
  flex: 1;
  min-width: 0;
}
.ds-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.ds-module {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-family: var(--font-mono, monospace);
}
.ds-badge {
  font-size: var(--text-min);
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ds-badge--new        { background: rgba(5,150,105,0.15);  color: #059669; border: 1px solid rgba(5,150,105,0.3); }
.ds-badge--escalation { background: rgba(193,68,14,0.12);  color: #c1440e; border: 1px solid rgba(193,68,14,0.3); }
.ds-badge--shift      { background: rgba(217,119,6,0.12);  color: #d97706; border: 1px solid rgba(217,119,6,0.3); }
.ds-badge--update     { background: rgba(37,99,235,0.1);   color: #2563eb; border: 1px solid rgba(37,99,235,0.25); }
.ds-badge--default    { background: var(--color-surface);  color: var(--color-text-muted); border: 1px solid var(--color-border); }
.ds-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}
.ds-oneline {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.55;
}


/* ══════════════════════════════════════════════════════════════
   SHARED TOOLKIT — Ramparts UI Patterns (extracted 2026-04-12)
   Source: Ramparts AI Frontier Monitor (ramparts.gi)
   ══════════════════════════════════════════════════════════════ */

/* ── 1. Fixed right-hand section nav (scroll-spy sidenav)
        Use with AsymSections.renderFixedSidenav()
        position:fixed bypasses WordPress sticky constraints
   ─────────────────────────────────────────────────────────── */
.asym-sidenav {
  position: fixed;
  top: 140px;
  right: 16px;
  width: 190px;
  z-index: 9999;
  background: var(--color-surface, #f3f0ec);
  border: 1px solid var(--color-border, #ddd);
  border-radius: 10px;
  padding: 8px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}
[data-theme="dark"] .asym-sidenav {
  background: var(--color-surface, #1a1a1a);
  border-color: var(--color-border, #333);
}
.asym-sidenav__label {
  font-family: var(--font-ui, 'Space Grotesk', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  padding: 4px 12px 8px;
}
.asym-sidenav__link {
  display: block;
  font-family: var(--font-ui, 'Space Grotesk', sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted, #6b6860);
  padding: 6px 11px;
  border-radius: 6px;
  text-decoration: none !important;
  line-height: 1.3;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.asym-sidenav__link.is-active,
.asym-sidenav__link[aria-current="true"] {
  color: var(--color-text, #1a1915);
  border-left-color: var(--color-primary, #006b6f);
  background: var(--color-primary-light, #e8f4f4);
  font-weight: 700;
}
.asym-sidenav__link .asym-sidenav__num {
  color: #aaa;
  margin-right: 6px;
  font-size: 11px;
}
.asym-sidenav__link.is-active .asym-sidenav__num {
  color: var(--color-primary, #006b6f);
}
.asym-sidenav__subscribe {
  margin: 8px 8px 4px;
  padding: 11px;
  background: var(--color-primary-light, #e8f4f4);
  border-radius: 8px;
}
.asym-sidenav__subscribe-label {
  font-family: var(--font-ui, 'Space Grotesk', sans-serif);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary, #006b6f);
  margin-bottom: 8px;
}
.asym-sidenav__subscribe-btn {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-ui, 'Space Grotesk', sans-serif);
  color: #fff !important;
  background: var(--color-primary, #006b6f);
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none !important;
}
@media (max-width: 768px) {
  .asym-sidenav { display: none !important; }
  .asym-sidenav-spacer { display: none !important; }
}

/* ── 2. Print stylesheet
        Hides site chrome, resets body for clean PDF output
   ─────────────────────────────────────────────────────────── */
@media print {
  .site-header,
  .asym-sidenav,
  .asym-sidenav-spacer,
  .no-print,
  nav,
  footer { display: none !important; }
  body {
    font-size: 11pt;
    background: white;
    color: black;
  }
  section,
  .asym-section { break-inside: avoid; }
  a { color: inherit; text-decoration: underline; }
  @page { margin: 2cm; }
}

/* ── 3. Teal full-bleed CTA / subscribe block
        Two variants: .asym-cta--card (mid-content) and
        .asym-cta--fullbleed (end of page / footer)
        Use with AsymSections.renderSubscribeCTA()
   ─────────────────────────────────────────────────────────── */
.asym-cta {
  background: var(--color-primary, #006b6f);
  color: #fff;
}
.asym-cta--card {
  border-radius: 12px;
  padding: 40px 48px;
}
.asym-cta--fullbleed {
  padding: clamp(40px,6vw,72px) clamp(16px,4vw,64px);
}
.asym-cta__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.asym-cta--card .asym-cta__inner {
  text-align: left;
  max-width: 600px;
  margin: 0;
}
.asym-cta__eyebrow {
  font-family: var(--font-ui, 'Space Grotesk', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}
.asym-cta__heading {
  font-family: var(--font-ui, 'Space Grotesk', sans-serif);
  font-size: clamp(1.3rem,2.5vw,2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.asym-cta__body {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  max-width: 54ch;
  margin: 0 auto 28px;
}
.asym-cta--card .asym-cta__body {
  margin: 0 0 28px;
}
.asym-cta__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.asym-cta--card .asym-cta__actions { justify-content: flex-start; }
/* Primary button — white on teal */
.asym-cta__btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-ui, 'Space Grotesk', sans-serif);
  color: var(--color-primary, #006b6f) !important;
  background: var(--color-surface, #f3f0ec);
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none !important;
  letter-spacing: 0.01em;
}
/* Ghost button — white outline on teal */
.asym-cta__btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-ui, 'Space Grotesk', sans-serif);
  color: rgba(255,255,255,0.9) !important;
  background: rgba(255,255,255,0.12);
  padding: 13px 22px;
  border-radius: 8px;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,0.3);
}
.asym-cta__footnote {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-top: 16px;
}
.asym-cta__footnote a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

/* ─── Cross-Monitor Strip (injected by nav.js) ──────────────────────────
   Inverted contrast: light page → dark strip, dark page → light strip.
   Active pill is prominent; inactive pills recede.
   ──────────────────────────────────────────────────────────────────── */
.monitor-strip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 clamp(1rem, 3vw, 3rem);
  height: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: #1c1b19;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 84px; /* below network bar (40px) + site bar (44px) */
  z-index: 99;
}
.monitor-strip::-webkit-scrollbar { display: none; }
.monitor-strip__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-right: 0.625rem;
  flex-shrink: 0;
}
.monitor-strip__pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 5px 15px 5px 10px;
  border-radius: 100px;
  font-size: 15.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 120ms ease, color 120ms ease, opacity 120ms ease;
  border: 1px solid transparent;
  font-family: 'Satoshi', 'Inter', sans-serif;
  opacity: 0.55;
}
.monitor-strip__pill:hover {
  opacity: 0.85;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
}
.monitor-strip__pill--active {
  opacity: 1;
  color: #fff;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  border-left: 3px solid var(--pill-accent, #fff);
}
.monitor-strip__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
/* Dark mode: invert — light strip on dark page */
[data-theme="dark"] .monitor-strip {
  background: #f3f0ec;
  border-bottom-color: rgba(40,37,29,0.10);
}
[data-theme="dark"] .monitor-strip__label {
  color: rgba(40,37,29,0.35);
}
[data-theme="dark"] .monitor-strip__pill {
  color: rgba(40,37,29,0.45);
}
[data-theme="dark"] .monitor-strip__pill:hover {
  color: rgba(40,37,29,0.85);
  background: rgba(40,37,29,0.06);
  border-color: rgba(40,37,29,0.10);
}
[data-theme="dark"] .monitor-strip__pill--active {
  color: #28251d;
  background: rgba(40,37,29,0.08);
  border-color: rgba(40,37,29,0.15);
  border-left-color: var(--pill-accent, #28251d);
}


/* ══════════════════════════════════════════════════════════════════════
   AIM (AI Governance Monitor) — Component Styles
   Extracted from inline <style> blocks — 14 April 2026
   ══════════════════════════════════════════════════════════════════════ */

/* ── AIM Dashboard: EU AI Act Compact Tracker + Risk Heat Grid ──────
     + Model Frontier Tier Columns + Energy Wall + arXiv Highlights
     + Country Grid Watch + Concentration Index + Revolving Door ───── */

    /* ── EU AI Act Compact Tracker (Dashboard) ─────────────────────── */
    .euact-dash-wrap {
      background: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-lg);
      padding: var(--space-5) var(--space-6);
      margin-bottom: var(--space-6);
    }
    .euact-dash-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: var(--space-4);
      margin-bottom: var(--space-5);
      flex-wrap: wrap;
    }
    .euact-dash-countdown {
      display: flex;
      align-items: baseline;
      gap: 0.35rem;
    }
    .euact-dash-days {
      font-size: 2.2rem;
      font-weight: 700;
      color: #3a7d5a;
      line-height: 1;
    }
    .euact-dash-days-label {
      font-size: 0.8rem;
      color: var(--color-text-muted);
    }
    .euact-dash-appdate {
      font-size: var(--text-xs);
      color: var(--color-text-muted);
      margin-top: 0.25rem;
    }
    .euact-vacuum-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      font-size: var(--text-min);
      font-weight: 700;
      background: rgba(193, 68, 14, 0.1);
      color: #c1440e;
      border: 1px solid rgba(193, 68, 14, 0.3);
      border-radius: 20px;
      padding: 3px 10px;
    }
    /* Horizontal layer track */
    .euact-track {
      display: flex;
      align-items: flex-start;
      gap: 0;
      position: relative;
      overflow-x: auto;
      padding-bottom: var(--space-2);
    }
    .euact-track-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      flex: 1;
      min-width: 70px;
      position: relative;
    }
    .euact-track-item:not(:last-child)::after {
      content: '';
      position: absolute;
      top: 13px;
      left: 50%;
      width: 100%;
      height: 2px;
      background: var(--color-border);
      z-index: 0;
    }
    .euact-track-node {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      border: 2px solid transparent;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: var(--text-min);
      font-weight: 700;
      position: relative;
      z-index: 1;
      margin-bottom: var(--space-2);
    }
    .euact-track-node--active    { background: #3a7d5a; border-color: #3a7d5a; color: #fff; }
    .euact-track-node--progress  { background: rgba(217,119,6,0.15); border-color: #d97706; color: #d97706; }
    .euact-track-node--delayed   { background: rgba(193,68,14,0.12); border-color: #c1440e; color: #c1440e; }
    .euact-track-node--pending   { background: var(--color-bg); border-color: var(--color-border); color: var(--color-text-muted); }
    .euact-track-node--trilogue  { background: rgba(37,99,235,0.12); border-color: #2563eb; color: #2563eb; }
    .euact-track-label {
      font-size: var(--text-min);
      color: var(--color-text-muted);
      text-align: center;
      line-height: 1.3;
      max-width: 64px;
    }
    .euact-track-status {
      font-size: var(--text-min);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      margin-top: 2px;
      text-align: center;
    }
    .euact-track-status--active   { color: #3a7d5a; }
    .euact-track-status--progress { color: #d97706; }
    .euact-track-status--delayed  { color: #c1440e; }
    .euact-track-status--pending  { color: var(--color-text-muted); }
    .euact-track-status--trilogue { color: #2563eb; }

    /* ── Risk Heat Grid (Dashboard Widget) ─────────────────────────── */
    .risk-heat-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--space-3);
      margin-bottom: var(--space-4);
    }
    .risk-heat-cell {
      border-radius: var(--radius-md);
      padding: var(--space-3) var(--space-4);
      display: flex;
      flex-direction: column;
      gap: var(--space-2);
    }
    .risk-heat-cell--high {
      background: rgba(193, 68, 14, 0.12);
      border: 1px solid rgba(193, 68, 14, 0.3);
    }
    .risk-heat-cell--elevated {
      background: rgba(217, 119, 6, 0.1);
      border: 1px solid rgba(217, 119, 6, 0.28);
    }
    .risk-heat-cell--moderate, .risk-heat-cell--low {
      background: rgba(37, 99, 235, 0.07);
      border: 1px solid rgba(37, 99, 235, 0.2);
    }
    .risk-heat-cell__header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: var(--space-2);
    }
    .risk-heat-cell__name {
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--color-text);
    }
    .risk-heat-cell__summary {
      font-size: var(--text-xs);
      color: var(--color-text-secondary);
      line-height: 1.5;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    /* ── Dark mode ──────────────────────────────────────────────────── */
    [data-theme="dark"] .euact-dash-wrap {
      background: #1e1d1b;
      border-color: #2d2c2a;
    }
    [data-theme="dark"] .euact-track-node--pending {
      background: #1a1917;
      border-color: #3a3835;
    }
    [data-theme="dark"] .euact-track-item::after {
      background: #2d2c2a;
    }
    [data-theme="dark"] .risk-heat-cell--high {
      background: rgba(193, 68, 14, 0.18);
      border-color: rgba(193, 68, 14, 0.4);
    }
    [data-theme="dark"] .risk-heat-cell--elevated {
      background: rgba(217, 119, 6, 0.15);
      border-color: rgba(217, 119, 6, 0.35);
    }
    [data-theme="dark"] .risk-heat-cell--moderate,
    [data-theme="dark"] .risk-heat-cell--low {
      background: rgba(37, 99, 235, 0.1);
      border-color: rgba(37, 99, 235, 0.28);
    }
    @media (max-width: 600px) {
      .risk-heat-grid { grid-template-columns: 1fr; }
    }

    /* ── Model Frontier: Tier Column Layout ─────────────────────────── */
    .model-frontier-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--space-5);
      margin-bottom: var(--space-4);
    }
    @media (max-width: 640px) {
      .model-frontier-grid { grid-template-columns: 1fr; }
    }
    .tier-column {
      display: flex;
      flex-direction: column;
      gap: var(--space-3);
    }
    .tier-column--1 {
      border-left: 3px solid var(--monitor-accent);
      padding-left: var(--space-3);
    }
    .tier-col-header {
      display: flex;
      align-items: baseline;
      gap: var(--space-2);
      margin-bottom: var(--space-2);
    }
    .tier-col-number {
      font-size: 2rem;
      font-weight: 700;
      line-height: 1;
      color: var(--color-text);
    }
    .tier-col-label {
      font-size: var(--text-sm);
      font-weight: 600;
      color: var(--color-text-secondary);
    }
    .tier-col-count {
      font-size: var(--text-xs);
      font-weight: 700;
      background: var(--color-surface);
      border: 1px solid var(--color-border);
      color: var(--color-text-muted);
      padding: 2px 7px;
      border-radius: 20px;
      margin-left: auto;
    }
    .model-card {
      background: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-md);
      padding: var(--space-3) var(--space-4);
      transition: box-shadow 0.15s ease;
      cursor: default;
      position: relative;
    }
    .model-card:hover {
      box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }
    .model-card__name {
      font-size: var(--text-sm);
      font-weight: 700;
      color: var(--color-text);
      margin-bottom: 0.2rem;
    }
    .model-card__lab-row {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      margin-bottom: var(--space-2);
    }
    .lab-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .model-card__lab {
      font-size: var(--text-xs);
      color: var(--color-text-muted);
    }
    .model-card__released {
      font-size: var(--text-xs);
      color: var(--color-text-muted);
      margin-bottom: var(--space-2);
    }
    .model-card__headline {
      font-size: var(--text-xs);
      color: var(--color-text-secondary);
      line-height: 1.55;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      margin-bottom: var(--space-2);
    }
    .model-card:hover .model-card__headline {
      -webkit-line-clamp: unset;
      overflow: visible;
    }
    .model-card__asym {
      font-size: var(--text-xs);
      font-style: italic;
      color: var(--monitor-accent);
      line-height: 1.45;
      margin-top: var(--space-1);
    }
    .model-card__source {
      display: none;
      font-size: var(--text-xs);
      margin-top: var(--space-2);
    }
    .model-card:hover .model-card__source {
      display: block;
    }
    .model-card__source a {
      color: var(--monitor-accent);
      text-decoration: none;
    }
    .model-card__source a:hover { text-decoration: underline; }

    /* Tier legend */
    .tier-legend {
      display: flex;
      flex-wrap: wrap;
      gap: var(--space-4);
      margin-top: var(--space-4);
      padding: var(--space-3) var(--space-4);
      background: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-md);
    }
    .tier-legend-item {
      display: flex;
      align-items: baseline;
      gap: 0.4rem;
    }
    .tier-legend-tier {
      font-size: var(--text-xs);
      font-weight: 700;
      color: var(--color-text);
      white-space: nowrap;
    }
    .tier-legend-desc {
      font-size: var(--text-xs);
      color: var(--color-text-muted);
    }

    /* Dark mode */
    [data-theme="dark"] .model-card {
      background: #1e1d1b;
      border-color: #2d2c2a;
    }
    [data-theme="dark"] .tier-legend {
      background: #1e1d1b;
      border-color: #2d2c2a;
    }
    [data-theme="dark"] .tier-col-count {
      background: #1a1917;
      border-color: #3a3835;
    }
  

    /* ── Energy Wall ────────────────────────────────────────────────── */
    .ew-grid {
      display: flex;
      flex-direction: column;
      gap: var(--space-4);
    }
    .ew-card {
      background: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-md);
      padding: var(--space-4) var(--space-5);
    }
    .ew-card__top {
      display: flex;
      align-items: baseline;
      gap: var(--space-3);
      flex-wrap: wrap;
      margin-bottom: var(--space-2);
    }
    .ew-deal {
      font-size: var(--text-sm);
      font-weight: 700;
      color: var(--color-text);
    }
    .ew-amount {
      font-size: var(--text-sm);
      font-weight: 700;
      color: var(--monitor-accent, #3a7d5a);
    }
    .ew-cat-badge {
      font-size: var(--text-min);
      font-weight: 600;
      padding: 1px 8px;
      border-radius: 20px;
      background: rgba(37,99,235,0.1);
      color: #2563eb;
      border: 1px solid rgba(37,99,235,0.25);
      white-space: nowrap;
    }
    .ew-date {
      font-size: var(--text-xs);
      color: var(--color-text-muted);
      margin-left: auto;
      white-space: nowrap;
    }
    .ew-signal {
      background: rgba(217,119,6,0.08);
      border-left: 3px solid #d97706;
      border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      padding: var(--space-2) var(--space-3);
      font-size: var(--text-xs);
      font-style: italic;
      color: var(--color-text-secondary);
      margin-bottom: var(--space-3);
    }
    .ew-analysis {
      font-size: var(--text-xs);
      color: var(--color-text-secondary);
      line-height: 1.6;
      margin-bottom: var(--space-2);
    }
    [data-theme="dark"] .ew-card {
      background: #1e1d1b;
      border-color: #2d2c2a;
    }
    [data-theme="dark"] .ew-signal {
      background: rgba(217,119,6,0.12);
    }

    /* ── arXiv Research Highlights ───────────────────────────────────── */
    .arxiv-list {
      display: flex;
      flex-direction: column;
      gap: var(--space-3);
    }
    .arxiv-card {
      background: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-md);
      padding: var(--space-3) var(--space-4);
    }
    .arxiv-card__top {
      display: flex;
      align-items: baseline;
      gap: var(--space-2);
      flex-wrap: wrap;
      margin-bottom: 0.2rem;
    }
    .arxiv-title {
      font-size: var(--text-sm);
      font-weight: 600;
      color: var(--monitor-accent, #3a7d5a);
      text-decoration: none;
    }
    .arxiv-title:hover { text-decoration: underline; }
    .arxiv-tier {
      font-size: var(--text-min);
      font-weight: 700;
      padding: 1px 7px;
      border-radius: 20px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .arxiv-tier--t1 { background: rgba(5,150,105,0.15);  color: #059669; border: 1px solid rgba(5,150,105,0.3); }
    .arxiv-tier--t2 { background: rgba(217,119,6,0.12);  color: #d97706; border: 1px solid rgba(217,119,6,0.3); }
    .arxiv-tier--t3 { background: var(--color-surface);  color: var(--color-text-muted); border: 1px solid var(--color-border); }
    .arxiv-meta {
      font-size: var(--text-xs);
      color: var(--color-text-muted);
      margin-bottom: var(--space-2);
    }
    .arxiv-significance {
      font-size: var(--text-xs);
      color: var(--color-text-secondary);
      line-height: 1.6;
    }
    [data-theme="dark"] .arxiv-card {
      background: #1e1d1b;
      border-color: #2d2c2a;
    }
    [data-theme="dark"] .arxiv-tier--t3 {
      background: #1a1917;
      border-color: #3a3835;
    }

    /* ── Country Grid Watch ─────────────────────────────────────────── */
    .cgw-list {
      display: flex;
      flex-direction: column;
      gap: var(--space-3);
    }
    .cgw-card {
      background: var(--color-surface);
      border: 1px solid var(--color-border);
      border-left: 3px solid #f59e0b;
      border-radius: var(--radius-md);
      padding: var(--space-3) var(--space-4);
    }
    .cgw-country {
      font-size: var(--text-sm);
      font-weight: 700;
      color: var(--color-text);
      margin-bottom: 0.3rem;
    }
    .cgw-signal {
      font-size: var(--text-xs);
      color: var(--color-text-secondary);
      line-height: 1.6;
    }
    [data-theme="dark"] .cgw-card {
      background: #1e1d1b;
      border-color: #2d2c2a;
      border-left-color: #f59e0b;
    }

    /* ── Market Concentration Index ─────────────────────────────────── */
    .ci-list {
      display: flex;
      flex-direction: column;
      gap: var(--space-4);
    }
    .ci-card {
      background: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-md);
      padding: var(--space-4) var(--space-5);
    }
    .ci-card__top {
      display: flex;
      align-items: center;
      gap: var(--space-3);
      flex-wrap: wrap;
      margin-bottom: var(--space-2);
    }
    .ci-domain {
      font-size: var(--text-sm);
      font-weight: 700;
      color: var(--color-text);
    }
    .ci-trend {
      font-size: var(--text-min);
      font-weight: 700;
      padding: 2px 9px;
      border-radius: 20px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      white-space: nowrap;
    }
    .ci-trend--concentrating { background: rgba(193,68,14,0.12);  color: #c1440e; border: 1px solid rgba(193,68,14,0.3); }
    .ci-trend--fragmenting   { background: rgba(5,150,105,0.12);  color: #059669; border: 1px solid rgba(5,150,105,0.3); }
    .ci-trend--stable        { background: var(--color-surface);  color: var(--color-text-muted); border: 1px solid var(--color-border); }
    .ci-actors {
      display: flex;
      flex-wrap: wrap;
      gap: 0.3rem;
      margin-bottom: var(--space-2);
    }
    .ci-actor-tag {
      font-size: var(--text-min);
      background: rgba(37,99,235,0.08);
      color: #2563eb;
      border: 1px solid rgba(37,99,235,0.2);
      border-radius: 4px;
      padding: 1px 6px;
      white-space: nowrap;
    }
    .ci-note {
      font-size: var(--text-xs);
      color: var(--color-text-secondary);
      line-height: 1.6;
      margin-bottom: var(--space-1);
    }
    .ci-since {
      font-size: var(--text-min);
      color: var(--color-text-muted);
    }
    [data-theme="dark"] .ci-card {
      background: #1e1d1b;
      border-color: #2d2c2a;
    }
    [data-theme="dark"] .ci-trend--stable {
      background: #1a1917;
      border-color: #3a3835;
    }

    /* ── Revolving Door Watch ───────────────────────────────────────── */
    .rd-list {
      display: flex;
      flex-direction: column;
      gap: var(--space-4);
    }
    .rd-card {
      background: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-md);
      padding: var(--space-4) var(--space-5);
    }
    .rd-observation {
      font-size: var(--text-sm);
      font-weight: 700;
      color: var(--color-text);
      margin-bottom: var(--space-2);
    }
    .rd-detail {
      font-size: var(--text-xs);
      color: var(--color-text-secondary);
      line-height: 1.6;
      margin-bottom: var(--space-3);
    }
    .rd-implication {
      background: rgba(245,158,11,0.08);
      border-left: 3px solid #f59e0b;
      border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      padding: var(--space-3) var(--space-4);
    }
    .rd-implication__label {
      font-size: var(--text-min);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: #d97706;
      margin-bottom: 0.3rem;
    }
    .rd-implication__text {
      font-size: var(--text-xs);
      color: var(--color-text-secondary);
      line-height: 1.6;
    }
    [data-theme="dark"] .rd-card {
      background: #1e1d1b;
      border-color: #2d2c2a;
    }
    [data-theme="dark"] .rd-implication {
      background: rgba(245,158,11,0.10);
    }
  

/* ── AIM Report: Risk Heat Grid (full) + Model Frontier Tier Chart
     NOTE: risk-heat-* rules here use UPPER-CASE modifiers (--HIGH etc.)
     and fuller spacing vs dashboard's compact lowercase variant. ───── */

    /* ── Risk Vector Heat Grid (M07) ─────────────────────────────── */
    .risk-heat-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--space-3);
      margin-bottom: var(--space-5);
    }
    .risk-heat-cell {
      border-radius: var(--radius-md);
      padding: var(--space-4);
      display: flex;
      flex-direction: column;
      gap: var(--space-2);
    }
    .risk-heat-cell--HIGH {
      background: rgba(193, 68, 14, 0.1);
      border: 1px solid rgba(193, 68, 14, 0.3);
    }
    .risk-heat-cell--ELEVATED {
      background: rgba(217, 119, 6, 0.09);
      border: 1px solid rgba(217, 119, 6, 0.28);
    }
    .risk-heat-cell--MODERATE,
    .risk-heat-cell--LOW {
      background: rgba(37, 99, 235, 0.06);
      border: 1px solid rgba(37, 99, 235, 0.18);
    }
    .risk-heat-cell__header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: var(--space-2);
      flex-wrap: wrap;
    }
    .risk-heat-cell__name {
      font-size: var(--text-sm);
      font-weight: 700;
      color: var(--color-text);
    }
    .risk-rating-badge {
      font-size: var(--text-min);
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 20px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .risk-rating-badge--HIGH     { background: #c1440e; color: #fff; }
    .risk-rating-badge--ELEVATED { background: #d97706; color: #fff; }
    .risk-rating-badge--MODERATE { background: #2563eb; color: #fff; }
    .risk-rating-badge--LOW      { background: #6b6660; color: #fff; }
    .risk-heat-cell__summary {
      font-size: var(--text-sm);
      color: var(--color-text-secondary);
      line-height: 1.6;
    }
    .risk-heat-cell__meta {
      display: flex;
      gap: var(--space-2);
      font-size: var(--text-xs);
      color: var(--color-text-muted);
      flex-wrap: wrap;
      margin-top: var(--space-1);
    }
    .risk-heat-divider {
      border: none;
      border-top: 1px solid var(--color-border-subtle);
      margin: var(--space-5) 0;
    }

    /* ── Model Frontier Tier Chart (M02) ─────────────────────────── */
    .tier-chart {
      margin-bottom: var(--space-5);
    }
    .tier-row {
      margin-bottom: var(--space-5);
      position: relative;
    }
    .tier-row__header {
      display: flex;
      align-items: center;
      gap: var(--space-3);
      margin-bottom: var(--space-3);
    }
    .tier-badge {
      font-size: var(--text-min);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.07em;
      padding: 2px 9px;
      border-radius: 3px;
      white-space: nowrap;
    }
    .tier-badge--1 {
      background: #3a7d5a;
      color: #fff;
    }
    .tier-badge--2 {
      background: #d97706;
      color: #fff;
    }
    .tier-badge--3 {
      background: var(--color-bg-alt);
      color: var(--color-text-muted);
      border: 1px solid var(--color-border);
    }
    .tier-row__label {
      font-size: var(--text-xs);
      font-weight: 600;
      color: var(--color-text-secondary);
    }
    .tier-pills {
      display: flex;
      flex-wrap: wrap;
      gap: var(--space-2);
    }
    .tier-pill {
      border-radius: var(--radius-md);
      padding: var(--space-3) var(--space-4);
      display: flex;
      flex-direction: column;
      gap: 3px;
    }
    .tier-pill--1 {
      background: rgba(58, 125, 90, 0.1);
      border: 1px solid rgba(58, 125, 90, 0.3);
      min-width: 200px;
      flex: 1;
    }
    .tier-pill--2 {
      background: rgba(217, 119, 6, 0.08);
      border: 1px solid rgba(217, 119, 6, 0.25);
      min-width: 180px;
      flex: 1;
    }
    .tier-pill--3 {
      background: var(--color-bg-alt);
      border: 1px solid var(--color-border-subtle);
      min-width: 160px;
      flex: 1;
      opacity: 0.85;
    }
    .tier-pill__name {
      font-size: var(--text-sm);
      font-weight: 700;
      color: var(--color-text);
    }
    .tier-pill__lab {
      font-size: var(--text-min);
      color: var(--color-text-muted);
    }
    .tier-pill__warn {
      font-size: var(--text-min);
      color: #d97706;
      font-weight: 600;
    }

    /* Dark mode overrides */
    [data-theme="dark"] .risk-heat-cell--HIGH {
      background: rgba(193, 68, 14, 0.16);
      border-color: rgba(193, 68, 14, 0.4);
    }
    [data-theme="dark"] .risk-heat-cell--ELEVATED {
      background: rgba(217, 119, 6, 0.14);
      border-color: rgba(217, 119, 6, 0.35);
    }
    [data-theme="dark"] .risk-heat-cell--MODERATE,
    [data-theme="dark"] .risk-heat-cell--LOW {
      background: rgba(37, 99, 235, 0.1);
      border-color: rgba(37, 99, 235, 0.25);
    }
    [data-theme="dark"] .tier-pill--3 {
      background: #1e1d1b;
      border-color: #2d2c2a;
    }
    @media (max-width: 640px) {
      .risk-heat-grid { grid-template-columns: 1fr; }
      .tier-pills { flex-direction: column; }
    }
  

/* ── AIM Persistent: EU AI Act Pipeline + Concentration Chart ──────── */

    /* ── EU AI Act Pipeline Tracker ─────────────────────────────────── */
    .euact-tracker {
      background: var(--color-surface);
      border: 1px solid var(--color-border);
      border-radius: var(--radius-lg);
      padding: var(--space-6);
      margin-bottom: var(--space-6);
    }
    .euact-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: var(--space-4);
      margin-bottom: var(--space-6);
      flex-wrap: wrap;
    }
    .euact-title {
      font-size: 0.8rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--color-text-muted);
      margin-bottom: var(--space-2);
    }
    .euact-deadline {
      font-size: 2.5rem;
      font-weight: 700;
      color: #3a7d5a;
      line-height: 1;
    }
    .euact-deadline-label {
      font-size: var(--text-xs);
      color: var(--color-text-muted);
      margin-top: 0.25rem;
    }
    .euact-appdate {
      font-size: 0.85rem;
      color: var(--color-text-secondary);
      margin-top: var(--space-2);
    }
    .vacuum-banner {
      background: rgba(193, 68, 14, 0.1);
      border: 1px solid rgba(193, 68, 14, 0.35);
      border-left: 3px solid #c1440e;
      border-radius: var(--radius-md);
      padding: var(--space-3) var(--space-4);
      font-size: 0.82rem;
      color: var(--color-text);
      margin-bottom: var(--space-5);
    }
    .vacuum-banner strong {
      color: #c1440e;
    }
    /* Timeline */
    .euact-pipeline {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .euact-pipeline::before {
      content: '';
      position: absolute;
      left: 18px;
      top: 18px;
      bottom: 18px;
      width: 2px;
      background: var(--color-border);
      z-index: 0;
    }
    .euact-layer {
      display: flex;
      align-items: flex-start;
      gap: var(--space-4);
      position: relative;
      padding: var(--space-3) 0;
    }
    .euact-layer__node {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: var(--text-min);
      font-weight: 700;
      position: relative;
      z-index: 1;
      border: 2px solid transparent;
    }
    .euact-layer__node--active {
      background: #3a7d5a;
      border-color: #3a7d5a;
      color: #fff;
    }
    .euact-layer__node--in-progress {
      background: linear-gradient(180deg, #3a7d5a 50%, transparent 50%);
      border-color: #3a7d5a;
      color: #3a7d5a;
    }
    .euact-layer__node--in-progress-alt {
      background: rgba(217, 119, 6, 0.15);
      border-color: #d97706;
      color: #d97706;
    }
    .euact-layer__node--delayed {
      background: rgba(193, 68, 14, 0.1);
      border-color: #c1440e;
      color: #c1440e;
    }
    .euact-layer__node--pending {
      background: var(--color-bg);
      border-color: var(--color-border);
      color: var(--color-text-muted);
    }
    .euact-layer__node--trilogue {
      background: rgba(37, 99, 235, 0.12);
      border-color: #2563eb;
      color: #2563eb;
    }
    .euact-layer__body {
      flex: 1;
      padding-top: 0.4rem;
    }
    .euact-layer__name {
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--color-text);
      display: flex;
      align-items: center;
      gap: var(--space-2);
      flex-wrap: wrap;
    }
    .euact-layer__note {
      font-size: var(--text-xs);
      color: var(--color-text-muted);
      margin-top: 0.25rem;
      line-height: 1.5;
    }
    .euact-badge {
      font-size: var(--text-min);
      font-weight: 700;
      padding: 1px 7px;
      border-radius: 20px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      white-space: nowrap;
    }
    .euact-badge--active    { background:#3a7d5a; color:#fff; }
    .euact-badge--progress  { background:#d97706; color:#fff; }
    .euact-badge--delayed   { background:#c1440e; color:#fff; }
    .euact-badge--pending   { background: var(--color-border); color: var(--color-text-muted); }
    .euact-badge--trilogue  { background:#2563eb; color:#fff; }

    /* ── Concentration Chart ────────────────────────────────────────── */
    .conc-chart-wrap {
      margin-bottom: var(--space-6);
    }
    .conc-chart-wrap h3 {
      font-size: var(--text-xs);
      text-transform: uppercase;
      letter-spacing: 0.07em;
      color: var(--color-text-muted);
      margin-bottom: var(--space-4);
    }
    .conc-domain-row {
      margin-bottom: var(--space-5);
    }
    .conc-domain-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: var(--space-2);
      gap: var(--space-2);
    }
    .conc-domain-name {
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--color-text);
    }
    .conc-trend {
      font-size: var(--text-min);
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 20px;
      white-space: nowrap;
    }
    .conc-trend--concentrating {
      background: rgba(193, 68, 14, 0.12);
      color: #c1440e;
    }
    .conc-trend--fragmenting {
      background: rgba(5, 150, 105, 0.12);
      color: #059669;
    }
    .conc-bar-track {
      height: 10px;
      background: var(--color-bg-alt);
      border-radius: 5px;
      overflow: hidden;
      margin-bottom: var(--space-2);
    }
    .conc-bar-fill {
      height: 100%;
      border-radius: 5px;
      transition: width 0.6s ease;
    }
    .conc-bar-fill--high   { background: #c1440e; }
    .conc-bar-fill--medium { background: #d97706; }
    .conc-bar-fill--low    { background: #3a7d5a; }
    .conc-actors {
      font-size: var(--text-xs);
      color: var(--color-text-muted);
      line-height: 1.5;
    }
    .conc-actors span {
      display: inline-block;
      background: var(--color-bg-alt);
      border: 1px solid var(--color-border-subtle);
      border-radius: 3px;
      padding: 1px 6px;
      margin: 2px 2px 2px 0;
      font-size: var(--text-min);
    }
    .conc-note {
      font-size: var(--text-xs);
      color: var(--color-text-muted);
      margin-top: var(--space-2);
      line-height: 1.5;
      border-left: 2px solid var(--color-border);
      padding-left: var(--space-3);
    }

    /* ── Dark mode overrides ────────────────────────────────────────── */
    [data-theme="dark"] .euact-tracker {
      background: #1e1d1b;
      border-color: #2d2c2a;
    }
    [data-theme="dark"] .euact-pipeline::before {
      background: #2d2c2a;
    }
    [data-theme="dark"] .euact-layer__node--pending {
      background: #1a1917;
      border-color: #3a3835;
      color: #6b6660;
    }
    [data-theme="dark"] .vacuum-banner {
      background: rgba(193, 68, 14, 0.15);
      border-color: rgba(193, 68, 14, 0.4);
    }
    [data-theme="dark"] .conc-bar-track {
      background: #2d2c2a;
    }
    [data-theme="dark"] .conc-actors span {
      background: #2d2c2a;
      border-color: #3a3835;
    }
    [data-theme="dark"] .conc-note {
      border-color: #3a3835;
    }
  
