@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300..700&family=Space+Grotesk:wght@300..700&display=swap");
/* ── Tokens: Runway Sans / Editorial Brutalism ──────────────── */
:root {
  --bg: #000000;
  --surface-0: rgba(12, 12, 12, 0.65);
  --surface-0-solid: #0c0c0c;
  --surface-1: rgba(20, 20, 20, 0.6);
  --surface-1-solid: #141414;
  --surface-2: rgba(30, 30, 30, 0.6);
  --surface-2-solid: #1e1e1e;
  --surface-3: rgba(45, 45, 45, 0.6);
  --surface-3-solid: #2d2d2d;

  --glass-blur: blur(24px) saturate(1.2);

  /* Hairline Borders */
  --border: rgba(255, 255, 255, 0.04);
  --border-strong: rgba(255, 255, 255, 0.10);
  --border-focus: rgba(255, 255, 255, 0.3);

  /* Monochrome Ink */
  --ink: #ffffff;
  --ink-2: #a3a3a3;
  --ink-3: #737373;

  /* Sharp Accents & Chalky Semantics */
  --accent: #ffffff;
  --accent-dim: rgba(255, 255, 255, 0.10);
  --accent-text: #ffffff;

  --green: #a7f3d0; /* Sage */
  --green-dim: rgba(167, 243, 208, 0.1);
  --red: #fecaca;   /* Terracotta */
  --red-dim: rgba(254, 202, 202, 0.1);
  --amber: #fde68a; /* Ochre */
  --amber-dim: rgba(253, 230, 138, 0.1);
  --blue: #bae6fd;  /* Ice */
  --blue-dim: rgba(186, 230, 253, 0.1);

  /* Architectural Geometry */
  --radius-s: 0px;
  --radius-m: 0px;
  --radius-l: 0px;
  --radius-pill: 999px;

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
img, video, canvas, svg { max-width: 100%; height: auto; }
/* Prevent any element from pushing the viewport wider */
.topbar, .jumpbar, .container, .panel, .panel-body,
.hero-grid, .split-grid, .runbook-grid, .controls-grid,
.metric-grid, .button-row, .chip-cloud, .control-subsection { overflow-wrap: break-word; min-width: 0; }
/* overflow-x on html removed — breaks iOS scroll chain. Body-level is sufficient. */
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
::selection { background: rgba(255, 255, 255, 0.2); color: #fff; }
:focus-visible { outline: 1px solid var(--border-focus); outline-offset: 2px; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 0px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
/* ── Brand Accent Bar (Razor Thin) ─────────────────────── */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 200;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  pointer-events: none;
}
/* ── Entrance Animations ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.container > .panel, .container > section {
  animation: fadeUp 0.6s var(--ease) both;
}
.container > :nth-child(1) { animation-delay: 0.0s; }
.container > :nth-child(2) { animation-delay: 0.05s; }
.container > :nth-child(3) { animation-delay: 0.10s; }
.container > :nth-child(4) { animation-delay: 0.15s; }
.container > :nth-child(5) { animation-delay: 0.20s; }
.container > :nth-child(6) { animation-delay: 0.25s; }
.container > :nth-child(7) { animation-delay: 0.30s; }
.container > :nth-child(8) { animation-delay: 0.35s; }
.container > :nth-child(9) { animation-delay: 0.40s; }
.container > :nth-child(10) { animation-delay: 0.45s; }
.container > :nth-child(11) { animation-delay: 0.50s; }
.container > :nth-child(12) { animation-delay: 0.55s; }
/* ── Top Bar ───────────────────────────────────────────── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px clamp(12px, 4vw, 32px);
  border-bottom: 1px solid var(--border);
  background: #000;
  position: sticky;
  top: 1px;
  z-index: 100;
  animation: fadeUp 0.4s var(--ease) both;
}
.topbar-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-logo {
  height: 22px;
  width: auto;
  flex-shrink: 0;
}
.topbar h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.topbar h1.brand-name {
  font-family: "Heiti SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Space Grotesk", sans-serif;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: none;
}
.topbar p {
  margin: 0;
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.02em;
}
.topbar-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}
/* ── Page navigation strip ─────────────────────────────── */
.page-nav {
  display: flex;
  gap: 0;
  background: var(--surface-0-solid);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(12px, 4vw, 32px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.page-nav::-webkit-scrollbar { display: none; }
.page-nav a {
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-decoration: none;
  padding: 10px 14px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.page-nav a:hover { color: var(--ink); }
.page-nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--green);
}
@media (max-width: 600px) {
  .page-nav a { padding: 8px 10px; font-size: 9px; }
}

.run-picker {
  display: grid;
  gap: 6px;
  color: var(--ink-3);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  min-width: 0;
}
.run-picker select {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  padding: 8px 12px;
  min-width: 0;
  width: 100%;
  max-width: 44vw;
  background: var(--surface-1-solid);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.run-picker select:hover { border-color: rgba(255,255,255,0.2); background: var(--surface-2-solid); }
.run-picker select:focus { border-color: var(--border-focus); outline: none; }
/* ── Layout ────────────────────────────────────────────── */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(8px, 3vw, 32px) clamp(8px, 3vw, 32px) clamp(16px, 5vw, 64px);
  display: grid;
  gap: 24px;
}
/* ── Panel (Glass) & Effect 2: Corner Crosshairs ──────── */
.panel {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface-0);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-l);
  padding: clamp(12px, 3vw, 32px);
  box-shadow: var(--shadow);
  transition: border-color 0.4s var(--ease);
}
.panel:hover {
  border-color: var(--border-strong);
}
.panel::before, .panel::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  opacity: 0.25;
  background:
    linear-gradient(rgba(255,255,255,1), rgba(255,255,255,1)) center / 1px 100% no-repeat,
    linear-gradient(rgba(255,255,255,1), rgba(255,255,255,1)) center / 100% 1px no-repeat;
}
.panel::before { top: -5px; left: -5px; }
.panel::after { bottom: -5px; right: -5px; }
.panel:hover::before, .panel:hover::after { opacity: 0.5; }
.panel h2 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  overflow-wrap: break-word;
  word-break: break-word;
}
.panel h3 {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}
/* ── Section Codes ───────────────────────────────────── */
.sec-code {
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--bg);
  background: var(--ink-3);
  margin-right: 10px;
  padding: 2px 8px;
  vertical-align: middle;
  display: inline-block;
  line-height: 1.4;
}
/* ── Site Footer ─────────────────────────────────────── */
.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 40px 24px 32px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.footer-sep { opacity: 0.4; }
/* ── Visualization Containers ────────────────────────── */
.radar-wrap,
.depth-bar-wrap,
.basis-breakdown-wrap,
.gap-waterfall-wrap,
#conflict-theater {
  margin: 16px 0 20px;
}
.triad-wrap {
  margin: 16px 0 20px;
  padding: 20px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.radar-wrap {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.radar-wrap:empty,
.depth-bar-wrap:empty,
.basis-breakdown-wrap:empty,
.triad-wrap:empty,
.gap-waterfall-wrap:empty,
#conflict-theater:empty {
  display: none;
}
/* P5: Paper Depth Stacked Bar */
.depth-bar-wrap {
  padding: 16px 20px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
}
.depth-bar-stack {
  display: flex;
  height: 6px;
  border-radius: 0px;
  overflow: hidden;
  background: var(--surface-2-solid);
  margin-bottom: 8px;
}
.depth-bar-stack > span {
  display: block;
  height: 100%;
  transition: width 0.6s var(--ease);
}
.depth-bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: var(--ink-2);
}
.depth-bar-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.depth-bar-legend .swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
/* P6: Direction Basis Breakdown */
.basis-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.basis-bar-row .basis-label {
  min-width: 140px;
  max-width: 220px;
  width: max-content;
  text-align: right;
  font-weight: 500;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}
.basis-bar-row .basis-track {
  flex: 1;
  height: 4px;
  background: var(--surface-2-solid);
  border-radius: 2px;
  overflow: hidden;
}
.basis-bar-row .basis-fill {
  display: block;
  height: 100%;
  background: var(--blue);
  opacity: 0.7;
  border-radius: 2px;
  transition: width 0.5s var(--ease);
}
.basis-bar-row .basis-count {
  min-width: 32px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink);
}
/* P4: Conflict Theater */
.conflict-theater-card {
  border: 1px solid rgba(254, 202, 202, 0.2);
  background: var(--red-dim);
  border-radius: var(--radius-m);
  padding: 16px 20px;
  margin-bottom: 16px;
}
.conflict-theater-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.conflict-theater-head h3 {
  margin: 0;
  color: var(--red);
}
.conflict-theater-head .count-pill {
  border-color: rgba(254, 202, 202, 0.3);
  color: var(--red);
}
.conflict-theater-list {
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.conflict-theater-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-s);
}
.conflict-theater-item .ct-triple {
  flex: 1;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* P2: Gap Waterfall */
.gap-waterfall-wrap {
  padding: 20px 24px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
}
.gap-waterfall-bar {
  display: grid;
  grid-template-columns: 20px minmax(100px, max-content) 1fr auto 50px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 5px;
}
.gap-waterfall-bar .gw-label {
  text-align: right;
  color: var(--ink-2);
  font-weight: 500;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
}
.gap-waterfall-bar .gw-track {
  height: 10px;
  background: var(--surface-2-solid);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.gap-waterfall-bar .gw-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s var(--ease);
}
.gap-waterfall-bar .gw-rank {
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
  text-align: right;
}
.gap-waterfall-bar .gw-meta {
  font-size: 10px;
  color: var(--ink-3);
  white-space: nowrap;
}
.gap-waterfall-bar .gw-tag {
  font-weight: 600;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gap-waterfall-bar .gw-score {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink);
}
/* P3: Triad Triangles */
/* ── Triad Ranked List ───────────────────────────────── */
.triad-ranked-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.triad-ranked-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: var(--surface-1);
}
.triad-rank {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  min-width: 18px;
  text-align: center;
}
.triad-ranked-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.triad-ranked-crop {
  font-weight: 600;
  font-size: 12px;
  color: var(--ink);
}
.triad-ranked-nutrients {
  font-size: 10px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.triad-ranked-bar-track {
  height: 3px;
  background: var(--surface-2-solid);
  overflow: hidden;
}
.triad-ranked-bar-fill {
  height: 100%;
  transition: width 0.4s var(--ease);
}
.triad-ranked-score {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  min-width: 48px;
  text-align: right;
}
/* P1: Scan Radar */
.radar-svg {
  display: block;
  margin: 0 auto 12px;
  max-width: 520px;
  width: 100%;
  overflow: visible;
}
.radar-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 11px;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.radar-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.radar-legend .swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
/* ── Discovery Stream ──────────────────────────────── */
.frontier-viz.discovery-stream {
  min-height: 360px;
  display: block;
  position: relative;
  overflow: hidden;
}
.frontier-viz.discovery-stream canvas {
  border-radius: var(--radius-m);
}
.stream-empty {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  color: var(--ink-3);
  font-size: 12px;
  font-family: "Space Grotesk", sans-serif;
}
.stream-tooltip {
  position: absolute;
  pointer-events: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  color: var(--ink);
  background: var(--surface-1-solid);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--border-strong);
  border-radius: 0px;
  padding: 8px 12px;
  white-space: nowrap;
  z-index: 10;
  backdrop-filter: blur(8px);
  min-width: 140px;
}
.stream-tip-title {
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.stream-tip-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
  color: var(--ink-2);
  line-height: 1.7;
}
.stream-tip-label {
  color: var(--ink-3);
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.06em;
  font-weight: 500;
}
/* ── Discovery Funnel ────────────────────────────────── */
.funnel-wrap {
  margin: 16px 0 20px;
  padding: 20px 24px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  max-width: 680px;
}
.funnel-wrap:empty { display: none; }
.funnel-step {
  display: grid;
  grid-template-columns: 120px 1fr 60px;
  gap: 10px;
  align-items: center;
  margin-bottom: 2px;
}
.funnel-step .funnel-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.funnel-step .funnel-bar {
  height: 20px;
  border-radius: 2px;
  transition: width 0.8s var(--ease);
  position: relative;
}
.funnel-step .funnel-count {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.funnel-step .funnel-pct {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  font-weight: 600;
  color: var(--bg);
  letter-spacing: 0.04em;
  opacity: 0.9;
}
/* ── Confidence Spark ────────────────────────────────── */
.spark-wrap { margin: 16px 0 20px; }
.spark-wrap:empty { display: none; }
.spark-histogram {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 40px;
}
.spark-histogram .spark-bar {
  flex: 1;
  border-radius: 1px 1px 0 0;
  transition: height 0.5s var(--ease);
  min-width: 4px;
}
.spark-histogram .spark-bar:hover {
  outline: 1px solid var(--ink);
  z-index: 1;
}
.spark-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--ink-3);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
/* ── Enhanced Confidence Spark ────────────────────────── */
.spark-histogram--full {
  height: 80px;
  position: relative;
}
.spark-histogram .spark-bar[data-tip] { cursor: crosshair; }
.spark-histogram .spark-bar[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: var(--ink);
  white-space: nowrap;
  background: var(--surface-0-solid);
  padding: 3px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  z-index: 5;
  pointer-events: none;
}
.spark-mean-marker {
  position: absolute;
  bottom: 0; top: 0;
  width: 1px;
  border-left: 2px dashed var(--ink);
  opacity: 0.5;
  pointer-events: none;
}
.spark-mean-label {
  position: absolute;
  top: -14px; left: 2px;
  font-size: 8px;
  color: var(--ink);
  white-space: nowrap;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
}
.spark-summary {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  font-size: 10px;
  color: var(--ink-3);
  font-family: "Space Grotesk", sans-serif;
}
.spark-summary strong { color: var(--ink); }
/* ── Heatmap Legend ──────────────────────────────────── */
.heatmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 10px;
  color: var(--ink-2);
  align-items: center;
}
/* ── Bubble Chart ────────────────────────────────────── */
.bubble-chart-wrap {
  margin: 16px 0 20px;
  padding: 20px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bubble-chart-wrap:empty { display: none; }
.bubble-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  font-size: 10px;
  color: var(--ink-2);
  align-items: center;
}
.bubble-svg circle { cursor: crosshair; transition: fill-opacity 0.2s; }
.bubble-svg circle:hover { fill-opacity: 0.95 !important; stroke-width: 1.5; }
/* ── Network Ranked List ────────────────────────────── */
.net-ranked-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.net-ranked-row:last-child { border-bottom: none; }
.net-rank { font-size: 10px; font-weight: 600; color: var(--ink-3); min-width: 16px; text-align: right; }
.net-pair { font-weight: 500; color: var(--ink); white-space: nowrap; }
.net-crop { font-size: 10px; white-space: nowrap; }
.net-score { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--ink); font-size: 11px; min-width: 44px; text-align: right; }
/* ── Network Graph Interactivity ────────────────────── */
.net-node, .net-edge { transition: opacity 0.2s var(--ease), stroke-width 0.2s var(--ease); }
.net-node.dimmed { opacity: 0.1; }
.net-edge.dimmed { opacity: 0.05; }
.net-node.highlighted circle { stroke: #fff; stroke-width: 1.5px; fill-opacity: 1; }
.net-node.highlighted text { fill: #fff; font-weight: 700; opacity: 1; }
/* ── Network Graph ───────────────────────────────────── */
.network-wrap {
  margin: 16px 0 20px;
  padding: 20px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  display: flex;
  justify-content: center;
}
.network-wrap:empty { display: none; }
.network-svg line { transition: stroke-opacity 0.2s; }
.network-svg line:hover { stroke-opacity: 0.8 !important; stroke-width: 3 !important; }
.network-svg circle { cursor: crosshair; transition: fill-opacity 0.2s; }
.network-svg circle:hover { fill-opacity: 0.95 !important; }
/* ── Year Depth Legend ───────────────────────────────── */
.year-depth-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  font-size: 9px;
  color: var(--ink-2);
}
/* ── Funnel SVG ──────────────────────────────────────── */
.funnel-svg polygon { transition: fill-opacity 0.2s; }
.funnel-svg polygon:hover { fill-opacity: 0.7 !important; }
/* ── Scan Heartbeat ──────────────────────────────────── */
.heartbeat-strip {
  display: flex;
  height: 8px;
  gap: 0;
  border-radius: 2px;
  overflow: hidden;
  margin: 0 0 20px;
}
.heartbeat-strip:empty { display: none; }
.heartbeat-strip > span {
  flex: 1;
  min-width: 1px;
  transition: opacity 0.3s var(--ease);
}
.heartbeat-strip > span:hover { opacity: 1 !important; }
/* ── Count-Up Animation ──────────────────────────────── */
@keyframes countFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.metric .value.count-up {
  animation: countFadeIn 0.4s var(--ease) both;
}
/* ── Direction Composition ───────────────────────────── */
.dir-comp-wrap { margin: 20px 0; }
.dir-comp-wrap:empty { display: none; }
.dir-comp-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}
.dir-comp-row .dc-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dir-comp-row .dc-stack {
  display: flex;
  height: 12px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--surface-2-solid);
}
.dir-comp-row .dc-stack > span {
  display: block;
  height: 100%;
  transition: width 0.6s var(--ease);
}
/* ── Entity Cross-Filter ─────────────────────────────── */
.cross-filter-bar {
  position: sticky;
  top: 94px;
  z-index: 97;
  display: none; /* shown by JS when active */
  align-items: center;
  gap: 10px;
  padding: 8px clamp(8px, 3vw, 32px);
  background: var(--surface-1-solid);
  border-bottom: 1px solid var(--border-strong);
  animation: fadeUp 0.2s var(--ease) both;
}
.cross-filter-bar.is-active { display: flex; }
.cross-filter-bar .cf-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  white-space: nowrap;
}
.cross-filter-bar .cf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}
.cf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  cursor: default;
  white-space: nowrap;
}
.cf-pill .cf-type {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.cf-pill .cf-close {
  cursor: pointer;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1;
  transition: color 0.15s var(--ease);
  border: none;
  background: none;
  padding: 0;
}
.cf-pill .cf-close:hover { color: var(--red); }
.cross-filter-bar .cf-clear {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  cursor: pointer;
  border: none;
  background: none;
  white-space: nowrap;
  transition: color 0.15s var(--ease);
}
.cross-filter-bar .cf-clear:hover { color: var(--red); }
/* Clickable entity names */
[data-entity] {
  cursor: pointer;
  transition: color 0.15s var(--ease), border-bottom-color 0.15s var(--ease);
  border-bottom: 1px dashed transparent;
}
[data-entity]:hover {
  color: var(--ink);
  border-bottom-color: var(--ink-3);
}
/* Dim non-matching rows when cross-filter is active */
.cf-dimmed { opacity: 0.2; transition: opacity 0.3s var(--ease); }
/* ── Attention Surface ───────────────────────────────── */
.attention-wrap {
  margin: 16px 0 20px;
  padding: 16px 20px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
}
.attention-wrap:empty { display: none; }
.attention-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 4px;
  background: var(--surface-2);
  border-left: 3px solid var(--ink-3);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  transition: border-color 0.2s var(--ease);
}
.attention-item:hover { border-left-color: var(--ink); }
.attention-item .att-icon {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1.5;
}
.attention-item--gap { border-left-color: var(--red); }
.attention-item--conflict { border-left-color: var(--amber); }
.attention-item--coverage { border-left-color: var(--blue); }
.attention-item--strength { border-left-color: var(--green); }
.attention-item strong { color: var(--ink); }
/* ── Run Diff ────────────────────────────────────────── */
.run-diff-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}
.run-diff-toggle select {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  padding: 4px 8px;
  font-size: 11px;
  color: var(--ink);
  background: var(--surface-1-solid);
  font-family: "Space Grotesk", sans-serif;
}
.run-diff-wrap {
  margin: 16px 0 20px;
}
.run-diff-wrap:empty { display: none; }
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 10px;
}
.diff-card {
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.diff-card .diff-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.diff-card .diff-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.diff-card .diff-delta {
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}
.diff-delta--up { color: var(--green); }
.diff-delta--down { color: var(--red); }
.diff-delta--same { color: var(--ink-3); }
.diff-changes {
  margin-top: 12px;
  display: grid;
  gap: 4px;
}
.diff-change {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-2);
  padding: 6px 10px;
  background: var(--surface-2);
  border-left: 3px solid var(--ink-3);
}
.diff-change--added { border-left-color: var(--green); }
.diff-change--removed { border-left-color: var(--red); }
.diff-change--changed { border-left-color: var(--amber); }
/* ── Intro ────────────────────────────────────────────── */
.intro-panel {
  background: var(--surface-1);
}
.intro-panel h2 {
  max-width: none;
}
.intro-sub {
  margin: 8px 0 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
/* ── Hero ─────────────────────────────────────────────── */
.hero-panel {
  background: var(--surface-1);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(16px, 3vw, 32px);
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.eyebrow {
  margin: 0 0 12px;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-3);
  font-weight: 600;
}
.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  border: 1px solid var(--border-strong);
  background: var(--surface-0);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  transition: all 0.3s var(--ease);
}
.chip:hover {
  border-color: var(--ink);
  color: var(--bg);
  background: var(--ink);
}
.primer-details {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.primer-details summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}
.primer-details summary:hover { color: var(--ink); }
.primer-details[open] summary { margin-bottom: 24px; }
/* ── Panel Head ────────────────────────────────────────── */
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.panel-head h2 { margin-bottom: 0; }
.count-pill {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface-1);
  letter-spacing: 0.05em;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
/* ── Metrics & Effect 4: Silver/Chrome Text ────────────── */
.metric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.metric {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 24px;
  background: var(--surface-1);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.metric:hover {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.metric .label {
  font-size: 10px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
}
.metric .value {
  margin-top: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  /* Silver Chrome Effect — softened for readability */
  background: linear-gradient(180deg, #ffffff 0%, #a3a3a3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 4px;
}
/* ── Grids ─────────────────────────────────────────────── */
.split-grid,
.runbook-grid {
  display: grid;
  gap: clamp(16px, 3vw, 32px);
}
.split-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
/* 3-column coverage grid aligns evenly */
.split-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.runbook-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
/* Breathing room when grids follow sibling content */
.split-grid:not(:first-child),
.runbook-grid:not(:first-child),
.metric-grid:not(:first-child) {
  margin-top: 24px;
}
/* Article children in grids get consistent vertical rhythm */
.split-grid > article > h3,
.runbook-grid > article > h3 {
  margin-top: 0;
  margin-bottom: 12px;
}
/* ── Stat Bars ─────────────────────────────────────────── */
.stat-list { display: grid; gap: 8px; }
.stat-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 12px;
}
.stat-row .name { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-row .count { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat-bar {
  height: 2px;
  background: var(--surface-2-solid);
}
.stat-bar > span {
  display: block;
  height: 100%;
  background: var(--ink);
  opacity: 0.8;
  transition: width 0.6s var(--ease);
}
/* ── Entity Cards ─────────────────────────────────────── */
.entity-card {
  padding: 10px 12px 8px; border: 1px solid var(--border);
  border-radius: var(--radius-m); background: var(--surface-2);
}
.entity-card + .entity-card { margin-top: 6px; }
.entity-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.entity-card-name {
  font-weight: 600; font-size: 13px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0;
}
.entity-card-count {
  font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px;
  color: var(--ink); margin-left: 8px; flex-shrink: 0;
}
.entity-card-bar {
  height: 3px; background: var(--surface-2-solid); border-radius: 2px;
  overflow: hidden; margin-bottom: 6px;
}
.entity-card-bar > span {
  display: block; height: 100%; border-radius: 2px;
  transition: width 0.5s var(--ease);
}
/* Reset direction text styles when used as bar fill */
.entity-card-bar > [class*="direction-"] {
  padding: 0; font-weight: normal; color: transparent;
  font-size: 0; line-height: 0; border-radius: 2px;
}
.entity-card-bar > .direction-positive { background: var(--green); }
.entity-card-bar > .direction-negative { background: var(--red); }
.entity-card-bar > .direction-nonlinear,
.entity-card-bar > .direction-unknown { background: var(--amber); }
.entity-card-meta {
  display: flex; gap: 12px; font-size: 11px; color: var(--ink-2);
  align-items: center;
}
.entity-card-meta > [class*="direction-"] {
  font-size: 10px; padding: 1px 6px;
}
/* ── Evidence Heatmap ─────────────────────────────────── */
.heatmap-title { margin-top: 24px; margin-bottom: 4px; }
.heatmap-wrap { overflow-x: auto; margin-top: 8px; }
.heatmap-grid {
  display: grid; gap: 1px; font-size: 11px;
  min-width: max-content;
}
.heatmap-corner { background: transparent; }
.heatmap-col-label {
  writing-mode: vertical-lr; transform: rotate(180deg);
  padding: 4px 2px; color: var(--ink-2); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; max-height: 90px;
  font-size: 10px; text-align: start;
}
.heatmap-row-label {
  padding: 4px 6px; color: var(--ink-2); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11px; display: flex; align-items: center;
}
.heatmap-cell {
  display: flex; align-items: center; justify-content: center;
  min-width: 32px; min-height: 28px; font-variant-numeric: tabular-nums;
  color: var(--ink); font-size: 10px; border-radius: 2px;
  transition: background 0.3s var(--ease);
}
.heatmap-cell:hover { outline: 1px solid var(--ink-2); z-index: 1; }
/* ── Control Panel Subsections ─────────────────────────── */
.control-subsection {
  margin-top: 20px;
  padding: 20px 24px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
}
.control-subsection h3 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.control-subsection--service {
  padding: 20px 24px;
  border-radius: var(--radius-m);
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
}
.control-service-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.control-service-header h3 {
  margin: 0;
}
.control-monitor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.control-monitor-grid .control-subsection {
  border-left: 3px solid var(--border-strong);
}
.control-meta-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.control-meta-grid .meta-label {
  font-weight: 600;
  color: var(--ink-3);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-top: 2px;
}
.control-meta-grid .meta-value {
  color: var(--ink-2);
}
/* ── Engine Pulse (dashboard compact widget) ──────────── */
.ep-wrap { }
.ep-counters { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 12px; }
.ep-counter { text-align: center; min-width: 48px; }
.ep-num { font-family: "Space Grotesk", sans-serif; font-size: 20px; font-weight: 400; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ep-label { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); margin-top: 4px; }
.ep-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--ink-3); }
.ep-dot--green { background: var(--green); }
.ep-dot--red { background: var(--red); }

.ep-live { font-size: 12px; color: var(--ink-2); margin: 10px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-variant-numeric: tabular-nums; }
.ep-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: ep-blink 1.8s ease-in-out infinite; flex-shrink: 0; }
@keyframes ep-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.ep-live-batch { font-weight: 600; color: var(--ink); text-transform: uppercase; font-size: 10px; letter-spacing: 0.06em; }
.ep-live-arrow { color: var(--ink-3); }
.ep-live-stage { color: var(--green); }
.ep-live-time { color: var(--ink-3); font-size: 11px; }
.ep-live-nums { font-size: 10px; color: var(--ink-3); margin-left: 8px; }

.ep-progress { height: 3px; background: var(--surface-2); margin: 8px 0 6px; }
.ep-progress-fill { height: 100%; background: var(--green); transition: width 0.8s var(--ease); }

.ep-batches { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 12px; }
.ep-batch { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--border-strong); background: transparent; transition: background 0.3s; }
.ep-batch--done { background: var(--green); border-color: var(--green); }
.ep-batch--active { border-color: var(--green); animation: ep-blink 1.5s ease-in-out infinite; }
.ep-batch--error { background: var(--red); border-color: var(--red); }

.ep-link { display: inline-block; font-family: "Space Grotesk", sans-serif; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); text-decoration: none; border-bottom: 1px solid var(--border-strong); padding-bottom: 1px; transition: color 0.15s, border-color 0.15s; }
.ep-link:hover { color: var(--ink); border-color: var(--ink-3); }

/* ── Notes / Lists ─────────────────────────────────────── */
.runbook-note {
  margin: 0 0 16px;
  color: var(--ink-3);
  line-height: 1.6;
  font-size: 13px;
}
.runbook-note--compact {
  margin: 0 0 12px;
  font-size: 12px;
  opacity: 0.55;
}
code {
  background: var(--surface-2-solid);
  border: 1px solid var(--border);
  padding: 2px 6px;
  font-size: 0.85em;
  font-family: "SF Mono", "Cascadia Code", "Fira Code", ui-monospace, monospace;
}
.baseline-list {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-2);
}
/* ── Controls ──────────────────────────────────────────── */
.controls-grid {
  display: grid;
  gap: 12px 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
  margin-bottom: 20px;
  align-items: end;
}
.controls-grid label {
  display: grid;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.controls-grid select,
.controls-grid input {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink);
  background: var(--surface-1-solid);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.controls-grid select:hover,
.controls-grid input:hover { border-color: rgba(255,255,255,0.2); background: var(--surface-2-solid); }
.controls-grid select:focus,
.controls-grid input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 2px var(--blue-dim); }
.controls-grid input::placeholder { color: var(--ink-3); }
/* ── Tabs ──────────────────────────────────────────────── */
.tabs {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 8px;
}
.tab {
  border: none;
  background: transparent;
  color: var(--ink-3);
  padding: 8px 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.is-active {
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
}
/* ── Buttons ───────────────────────────────────────────── */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
  align-items: center;
}
.action {
  border: 1px solid var(--border-strong);
  background: var(--surface-1-solid);
  color: var(--ink);
  border-radius: 2px;
  padding: 10px 20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.action:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.action:active { transform: scale(0.97); }
.action.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  font-weight: 600;
}
.action.primary:hover { background: var(--blue); border-color: var(--blue); color: var(--bg); }
.action.warn {
  color: var(--ink);
  border-color: rgba(255,255,255,0.08);
  background: var(--surface-1-solid);
  border-left: 3px solid #ef4444;
}
.action.warn:hover { background: #ef4444; color: #000; border-color: #ef4444; border-left-color: #ef4444; }
.action.secondary {
  color: var(--ink-2);
  border-color: var(--border-strong);
  background: transparent;
}
.action.secondary:hover { background: var(--surface-2); color: var(--ink); border-color: var(--ink-3); }
.ghost {
  border: none;
  background: transparent;
  color: var(--ink-3);
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.ghost:hover { color: var(--ink); }
/* ── Status ────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.status-running {
  background: var(--green-dim);
  color: var(--green);
  border-color: rgba(167, 243, 208, 0.2);
  animation: pulse 2.5s ease-in-out infinite;
}
.status-completed { background: var(--blue-dim); color: var(--blue); border-color: rgba(186, 230, 253, 0.2); }
.status-failed, .status-stopped { background: var(--red-dim); color: var(--red); border-color: rgba(254, 202, 202, 0.2); }
/* ── Status Badge (inline roadmap badges) ─────────────── */
.status-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--radius-s);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bg);
}
.status-badge--completed { background: var(--green); }
.status-badge--in_progress, .status-badge--next { background: var(--amber); }
.status-badge--planned, .status-badge--future { background: var(--ink-3); }
/* ── Roadmap ───────────────────────────────────────────── */
.roadmap-tier {
  margin-bottom: 20px;
}
.roadmap-tier > h3 {
  margin: 0 0 4px;
}
.roadmap-phase {
  margin-bottom: 8px;
}
.roadmap-phase > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}
.roadmap-phase > summary:hover { color: var(--ink); }
.roadmap-phase > .table-wrap {
  margin-top: 6px;
}
/* ── Tables ────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--surface-0);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th, td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
th {
  color: var(--ink-3);
  background: var(--surface-1-solid);
  position: sticky;
  top: 0;
  z-index: 2;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  white-space: nowrap;
  vertical-align: middle;
}
tbody tr { transition: background 0.2s var(--ease); }
tbody tr:hover { background: var(--surface-1); }
/* ── Semantic Stat Bars ────────────────────────────────── */
.stat-bar--green > span { background: var(--green); opacity: 0.7; }
.stat-bar--red > span { background: var(--red); opacity: 0.7; }
.stat-bar--amber > span { background: var(--amber); opacity: 0.7; }
.stat-bar--blue > span { background: var(--blue); opacity: 0.7; }
/* ── Metric Groups ────────────────────────────────────── */
.metric-group {
  display: contents;
}
.metric-group-heading {
  grid-column: 1 / -1;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-3);
  padding: 8px 0 0;
  border-top: 1px solid var(--border);
}
.metric-group:first-child .metric-group-heading {
  border-top: none;
  padding-top: 0;
}
.metric-group-cards {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
  gap: 12px;
}
/* ── Entity Count Badge ──────────────────────────────── */
.entity-count {
  display: inline-block;
  margin-left: 6px;
  font-size: 9px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
  text-transform: none;
}
/* ── Direction / Lane ──────────────────────────────────── */
.direction-positive { color: var(--green); font-weight: 600; background: var(--green-dim); padding: 2px 8px; border-radius: var(--radius-pill); }
.direction-negative { color: var(--red); font-weight: 600; background: var(--red-dim); padding: 2px 8px; border-radius: var(--radius-pill); }
.direction-nonlinear, .direction-unknown { color: var(--amber); font-weight: 600; background: var(--amber-dim); padding: 2px 8px; border-radius: var(--radius-pill); }
.lane-claim_yield { color: var(--green); font-weight: 600; background: var(--green-dim); padding: 2px 8px; border-radius: var(--radius-pill); }
.lane-scanned_no_claim { color: var(--amber); font-weight: 600; background: var(--amber-dim); padding: 2px 8px; border-radius: var(--radius-pill); }
.lane-scanned_no_hits, .lane-not_scanned { color: var(--red); font-weight: 600; background: var(--red-dim); padding: 2px 8px; border-radius: var(--radius-pill); }
/* ── Conflict Badges ──────────────────────────────────── */
.conflict-badge {
  display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle;
  padding: 3px 5px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-strong);
}
.conflict-pip {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  /* Reset text styles inherited from .direction-* */
  padding: 0; font-weight: normal; color: transparent;
  font-size: 0; line-height: 0;
}
.conflict-pip.direction-positive { background: var(--green); }
.conflict-pip.direction-negative { background: var(--red); }
.conflict-pip.direction-nonlinear { background: var(--amber); }
.conflict-pip.direction-unknown { background: var(--amber); opacity: 0.6; }
.has-conflict { border-left: 2px solid var(--red) !important; }
/* ── Expandable Claim Rows ────────────────────────────── */
.claim-row { cursor: pointer; transition: background 0.12s var(--ease); }
.claim-row:hover { background: rgba(255,255,255,0.03); }
.claim-row.is-expanded { background: rgba(255,255,255,0.05); }
.claim-detail td { padding: 0 !important; border-top: none !important; }
.claim-detail-inner {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  padding: 10px 16px 12px;
  font-size: 12px; color: var(--ink-2);
  background: var(--surface-2); border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.claim-detail-inner strong {
  color: var(--ink); margin-right: 4px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  vertical-align: baseline;
}
.claim-detail-sep { display: none; }
/* ── Links ─────────────────────────────────────────────── */
a.paper-link {
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s var(--ease);
}
a.paper-link:hover { color: var(--ink); }
/* ── Badges ────────────────────────────────────────────── */
.depth-badge {
  display: inline-block;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.depth-full_text { background: var(--green-dim); color: var(--green); border-color: rgba(167, 243, 208, 0.2); }
.depth-abstract_only { background: var(--blue-dim); color: var(--blue); border-color: rgba(186, 230, 253, 0.2); }
.depth-title_only, .depth-empty { background: var(--red-dim); color: var(--red); border-color: rgba(254, 202, 202, 0.2); }
/* ── Pre / Code ────────────────────────────────────────── */
#script-status {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.6;
}
#run-commands, #control-log-tail {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  font-family: "SF Mono", "Cascadia Code", "Fira Code", ui-monospace, monospace;
  font-size: 12px;
  background: var(--surface-2-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 20px;
  color: var(--ink-2);
}
#control-log-tail {
  min-height: 120px;
  max-height: 300px;
  overflow: auto;
}
#deficiency-priority-body td:last-child {
  min-width: min(260px, 50vw);
  max-width: 440px;
  white-space: normal;
  line-height: 1.45;
  font-size: 12px;
}
/* ── Login ─────────────────────────────────────────────── */
.login-body { min-height: 100vh; display: grid; place-items: center; background: var(--bg); }
.login-card {
  position: relative;
  width: min(420px, 90vw);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-l);
  background: var(--surface-0);
  padding: 48px 40px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.6s var(--ease) both;
}
/* Crosshairs on Login Card */
.login-card::before, .login-card::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  pointer-events: none;
  opacity: 0.25;
  background:
    linear-gradient(rgba(255,255,255,1), rgba(255,255,255,1)) center / 1px 100% no-repeat,
    linear-gradient(rgba(255,255,255,1), rgba(255,255,255,1)) center / 100% 1px no-repeat;
}
.login-card::before { top: -5px; left: -5px; }
.login-card::after { bottom: -5px; right: -5px; }
.login-card h1 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-transform: uppercase;
}
.login-card p { color: var(--ink-3); font-size: 14px; margin: 0 0 32px; }
.login-form { display: grid; gap: 20px; }
.login-form label { font-size: 10px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.15em; }
.login-form input {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  padding: 14px 16px;
  background: var(--surface-1-solid);
  color: var(--ink);
  font-size: 15px;
  transition: all 0.2s var(--ease);
}
.login-form input:focus { border-color: var(--ink); outline: none; }
.login-form button {
  border: 1px solid var(--ink);
  border-radius: var(--radius-s);
  padding: 14px 24px;
  background: var(--ink);
  color: var(--bg);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.login-form button:hover { opacity: 0.9; }
.login-form button:active { transform: scale(0.98); }
/* ── Error ─────────────────────────────────────────────── */
.error {
  border: 1px solid rgba(254, 202, 202, 0.2);
  color: var(--red);
  background: var(--red-dim);
  border-radius: var(--radius-s);
  padding: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  text-align: center;
}
/* ── Skeleton ──────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface-1-solid) 25%, var(--surface-3-solid) 50%, var(--surface-1-solid) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite ease-in-out;
  border-radius: var(--radius-s);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-row { height: 14px; margin-bottom: 8px; }
.skeleton-metric { height: 60px; }
/* ── Jump Bar ──────────────────────────────────────────── */
.jumpbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px clamp(8px, 3vw, 32px);
  background: #000;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 62px;
  z-index: 99;
  animation: fadeUp 0.4s var(--ease) 0.1s both;
}
.jumpbar-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  flex: 1;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.jumpbar-inner::-webkit-scrollbar { display: none; }
.jumpbar-link {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
  border: 1px solid transparent;
}
.jumpbar-link:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}
.jumpbar-link.is-active {
  color: var(--ink);
  background: var(--surface-2);
  border-color: var(--border-strong);
}
/* ── Jump Bar Tiers ─────────────────────────────────────── */
.jumpbar-tier {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.jumpbar-tier-label {
  border: none;
  background: transparent;
  color: var(--ink-3);
  font-family: "Space Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.jumpbar-tier-label:hover { color: var(--ink); }
.jumpbar-tier-label.is-active {
  color: var(--ink);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-pill);
}
.jumpbar-tier-items {
  display: inline-flex;
  gap: 2px;
}
.jumpbar-divider {
  width: 1px;
  height: 16px;
  background: var(--border-strong);
  margin: 0 6px;
  flex-shrink: 0;
}
.jumpbar-collapse-all {
  flex-shrink: 0;
  padding: 5px 12px;
}
/* ── Collapsible Panels ───────────────────────────────── */
.panel-toggle {
  cursor: pointer;
  user-select: none;
}
.panel-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.panel-chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.panel--collapsed .panel-chevron {
  transform: rotate(-135deg);
}
.panel-body {
  transition: opacity 0.3s var(--ease);
  opacity: 1;
}
.panel--collapsed .panel-body {
  display: none;
  opacity: 0;
  pointer-events: none;
}
/* ── Pagination ───────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-3);
}
.pagination:empty { display: none; }
.pagination-info {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.pagination-btn {
  border: 1px solid var(--border-strong);
  background: var(--surface-1-solid);
  color: var(--ink-2);
  border-radius: var(--radius-s);
  padding: 5px 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.pagination-btn:hover:not(:disabled) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pagination-btn:disabled { opacity: 0.3; cursor: default; }
.pagination-size {
  border: 1px solid var(--border-strong);
  background: var(--surface-1-solid);
  color: var(--ink);
  padding: 5px 8px;
  font-size: 11px;
  border-radius: var(--radius-s);
}
/* Smooth scroll target offset for sticky headers */
html { scroll-behavior: smooth; }
[id^="sec-"] { scroll-margin-top: var(--sticky-offset, 120px); }
/* ── Floating Section Progress ────────────────────────── */
.section-progress {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 98;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  pointer-events: none;
}
.section-progress .sp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-3);
  opacity: 0.3;
  transition: all 0.3s var(--ease);
  pointer-events: auto;
  cursor: pointer;
  position: relative;
}
.section-progress .sp-dot.is-active {
  opacity: 1;
  background: var(--ink);
  width: 8px;
  height: 8px;
}
.section-progress .sp-dot:hover { opacity: 0.8; }
.section-progress .sp-dot::before {
  content: attr(data-label);
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Space Grotesk", sans-serif;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
  pointer-events: none;
  background: var(--surface-0-solid);
  padding: 4px 8px;
  border: 1px solid var(--border-strong);
}
.section-progress .sp-dot:hover::before { opacity: 1; }
/* ── Year Sparkline ──────────────────────────────────── */
.year-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 32px;
  margin-bottom: 8px;
}
.year-sparkline .ys-bar {
  flex: 1;
  min-width: 6px;
  max-width: 24px;
  border-radius: 1px 1px 0 0;
  background: var(--blue);
  opacity: 0.6;
  transition: opacity 0.2s var(--ease), height 0.5s var(--ease);
  position: relative;
}
.year-sparkline .ys-bar:hover { opacity: 1; }
.year-sparkline .ys-bar::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s var(--ease);
  background: var(--surface-0-solid);
  padding: 2px 5px;
  border: 1px solid var(--border-strong);
}
.year-sparkline .ys-bar:hover::after { opacity: 1; }
.year-sparkline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
/* ── Query Status Ring ───────────────────────────────── */
.status-ring-wrap { text-align: center; margin-bottom: 8px; }
.status-ring-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin-top: 8px;
  font-size: 10px;
  color: var(--ink-2);
}
.status-ring-legend .swatch {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}
/* ── Score Cells (inline micro-bars in tables) ───────── */
td .score-micro {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
td .score-micro .sm-bar {
  display: inline-block;
  height: 4px;
  border-radius: 1px;
  background: var(--green);
  opacity: 0.6;
  min-width: 2px;
}
/* ── Tier Badges ─────────────────────────────────────── */
.tier-badge {
  display: inline-block;
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  white-space: nowrap;
}
/* Legacy numeric variants (kept for backward compat) */
.tier-badge--1 { background: var(--red-dim);   color: var(--red);   border-color: rgba(254,202,202,0.2); }
.tier-badge--2 { background: var(--amber-dim); color: var(--amber); border-color: rgba(253,230,138,0.2); }
.tier-badge--3 { background: var(--green-dim); color: var(--green); border-color: rgba(167,243,208,0.2); }
/* Semantic confidence tier variants */
.tier-protocol   { background: var(--green-dim); color: var(--green); border-color: rgba(167,243,208,0.25); }
.tier-actionable { background: var(--blue-dim);  color: var(--blue);  border-color: rgba(186,230,253,0.25); }
.tier-low-signal { background: var(--amber-dim); color: var(--amber); border-color: rgba(253,230,138,0.2); }
.tier-unusable   { background: var(--red-dim);   color: var(--red);   border-color: rgba(254,202,202,0.2); }

/* ── Claim row tier highlighting ───────────────────────── */
.tier-row--protocol   { border-left: 2px solid rgba(167,243,208,0.4) !important; }
.tier-row--actionable { border-left: 2px solid rgba(186,230,253,0.25) !important; }
.tier-row--low-signal { border-left: 2px solid transparent !important; }
.tier-row--unusable   { opacity: 0.65; }

/* ── Tier summary bar ──────────────────────────────────── */
.tier-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 8px 0 12px;
  align-items: center;
}
.tier-summary-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tier-summary-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.tier-summary-pct {
  font-size: 11px;
  color: var(--ink-3);
}
/* ── Coverage State Dots ─────────────────────────────── */
.coverage-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.coverage-dot--gap { background: var(--red); }
.coverage-dot--partial { background: var(--amber); }
.coverage-dot--covered { background: var(--green); }
/* ── Effect Size Micro Bar ───────────────────────────── */
td .effect-bar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
td .effect-bar {
  display: inline-block;
  height: 6px;
  border-radius: 1px;
  opacity: 0.65;
  min-width: 2px;
  max-width: 60px;
}
/* ── Responsive ────────────────────────────────────────── */

/* Desktop enhancement: widen run-picker only on large screens */
@media (min-width: 841px) {
  .run-picker select { min-width: 260px; }
}

/* ── Evidence Quality Card (A.02) ───────────────────── */
.evidence-quality-wrap { margin-bottom: 20px; }
.eq-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  padding: 16px 20px;
}
.eq-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.eq-title { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); }
.eq-subtitle { font-size: 11px; color: var(--ink-3); }
.eq-bar-row { margin-bottom: 8px; }
.eq-bar-track {
  display: flex; height: 8px; background: var(--surface-2); overflow: hidden;
}
.eq-bar { height: 100%; transition: width 0.4s var(--ease); }
.eq-bar--single { background: var(--amber); }
.eq-bar--meta { background: var(--green); }
.eq-legend { display: flex; gap: 16px; font-size: 11px; color: var(--ink-2); }
.eq-legend-item { display: flex; align-items: center; gap: 5px; }
.eq-dot { width: 8px; height: 8px; display: inline-block; }
.eq-dot--single { background: var(--amber); }
.eq-dot--meta { background: var(--green); }
.eq-warning {
  margin: 10px 0 0; padding: 8px 12px; font-size: 11px; line-height: 1.5;
  color: var(--amber); background: var(--amber-dim); border-left: 3px solid var(--amber);
}

/* ── Coverage Gap Matrix (A.01) ─────────────────────── */
.gap-summary {
  font-size: 12px; color: var(--ink-2); margin-bottom: 10px;
}
.gap-summary strong { color: var(--ink); }
.heatmap-cell--gap {
  background: var(--red-dim) !important;
  color: var(--red); font-size: 10px; opacity: 0.85;
}
.heatmap-cell--ok {
  background: var(--green-dim);
  color: var(--green);
}
/* ── Crop Group Sections (grouped coverage) ─────────── */
.crop-group-section {
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 0px;
  background: var(--surface-1);
}
.crop-group-section:last-child { margin-bottom: 0; }
.crop-group-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px 0;
  letter-spacing: 0.03em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.crop-group-stats {
  font-weight: 400;
  font-size: 11px;
  color: var(--ink-2);
  margin-left: 10px;
}
.coverage-group-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Extraction Diagnostics (S.03) ──────────────────── */
.diagnostics-wrap {
  margin-bottom: 20px;
  padding: 20px 24px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
}
.diagnostics-wrap:empty { display: none; }
.diag-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.diag-card {
  background: var(--surface-1); border: 1px solid var(--border);
  padding: 14px 16px;
}
.diag-label {
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2);
  margin-bottom: 8px;
}
.diag-gauge { display: flex; align-items: center; gap: 10px; }
.diag-gauge-track {
  flex: 1; height: 8px; background: var(--surface-2); overflow: hidden;
}
.diag-gauge-fill { height: 100%; transition: width 0.4s var(--ease); }
.diag-gauge-val { font-family: "Space Grotesk", sans-serif; font-size: 18px; font-weight: 700; min-width: 50px; text-align: right; }
.diag-detail { font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.diag-modes { display: flex; flex-direction: column; gap: 4px; }
.diag-mode-row { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.diag-mode-name { min-width: 100px; color: var(--ink-2); text-align: right; }
.diag-mode-bar-track { flex: 1; height: 6px; background: var(--surface-2); overflow: hidden; }
.diag-mode-bar { height: 100%; }
.diag-mode-val { min-width: 60px; color: var(--ink-3); font-size: 10px; }
.diag-warning {
  margin: 8px 0 0; padding: 8px 12px; font-size: 11px; line-height: 1.5;
  color: var(--amber); background: var(--amber-dim); border-left: 3px solid var(--amber);
}
.diag-stat { font-size: 13px; color: var(--ink-2); }

/* ── Direction Badge (First-Order Table) ────────────── */
.dir-badge {
  display: inline-block; padding: 2px 8px; font-size: 10px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.dir-positive { background: var(--green-dim); color: var(--green); }
.dir-negative { background: var(--red-dim); color: var(--red); }
.dir-nonlinear { background: var(--amber-dim); color: var(--amber); }
.dir-unknown { background: var(--surface-2); color: var(--ink-3); }

/* ── S.03 Signal Density: master-detail split ─────────── */
.signal-scope-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border);
}
.signal-scope-title {
  font-size: 14px; font-weight: 600; color: var(--ink);
  font-family: "Space Grotesk", sans-serif; margin: 0;
}
.signal-split-master {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-top: 20px; min-height: 360px;
}
.signal-detail {
  background: var(--surface-0); border: 1px solid var(--border);
  border-radius: var(--radius-m); padding: 20px;
  display: flex; flex-direction: column;
  position: sticky; top: 80px; align-self: start;
}
.signal-detail-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.signal-detail-title {
  font-size: 15px; font-weight: 700; color: var(--ink);
  font-family: "Space Grotesk", sans-serif; margin: 0;
}
.signal-detail-back {
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-pill); color: var(--ink-2);
  font-size: 11px; padding: 4px 12px; cursor: pointer;
  transition: all 0.2s var(--ease);
}
.signal-detail-back:hover { color: var(--ink); border-color: var(--ink-2); }
.signal-detail-content { flex: 1; }
.signal-list {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 560px; overflow-y: auto; padding-right: 4px;
}
.signal-list::-webkit-scrollbar { width: 4px; }
.signal-list::-webkit-scrollbar-track { background: transparent; }
.signal-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── A.04 Synergies: master-detail split ─────────────── */
.synergy-scope-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border);
}
.synergy-scope-title {
  font-size: 14px; font-weight: 600; color: var(--ink);
  font-family: "Space Grotesk", sans-serif; margin: 0;
}
.synergy-split-master {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-top: 20px; min-height: 360px;
}
.synergy-detail {
  background: var(--surface-0); border: 1px solid var(--border);
  border-radius: var(--radius-m); padding: 20px;
  display: flex; flex-direction: column;
  position: sticky; top: 80px; align-self: start;
}
.synergy-detail-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.synergy-detail-title {
  font-size: 15px; font-weight: 700; color: var(--ink);
  font-family: "Space Grotesk", sans-serif; margin: 0;
}
.synergy-detail-back {
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-pill); color: var(--ink-2);
  font-size: 11px; padding: 4px 12px; cursor: pointer;
  transition: all 0.2s var(--ease);
}
.synergy-detail-back:hover { color: var(--ink); border-color: var(--ink-2); }
.synergy-detail-content { flex: 1; }
.synergy-list {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 560px; overflow-y: auto; padding-right: 4px;
}
.synergy-list::-webkit-scrollbar { width: 4px; }
.synergy-list::-webkit-scrollbar-track { background: transparent; }
.synergy-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── A.05 Gap Intelligence: master-detail split ──────── */
.gap-scope-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border);
}
.gap-scope-title {
  font-size: 14px; font-weight: 600; color: var(--ink);
  font-family: "Space Grotesk", sans-serif; margin: 0;
}
.gap-split-master {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-top: 20px; min-height: 360px;
}
.gap-detail {
  background: var(--surface-0); border: 1px solid var(--border);
  border-radius: var(--radius-m); padding: 20px;
  display: flex; flex-direction: column;
  position: sticky; top: 80px; align-self: start;
}
.gap-detail-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.gap-detail-title {
  font-size: 15px; font-weight: 700; color: var(--ink);
  font-family: "Space Grotesk", sans-serif; margin: 0;
}
.gap-detail-back {
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-pill); color: var(--ink-2);
  font-size: 11px; padding: 4px 12px; cursor: pointer;
  transition: all 0.2s var(--ease);
}
.gap-detail-back:hover { color: var(--ink); border-color: var(--ink-2); }
.gap-detail-content { flex: 1; }
.gap-list {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 560px; overflow-y: auto; padding-right: 4px;
}
.gap-list::-webkit-scrollbar { width: 4px; }
.gap-list::-webkit-scrollbar-track { background: transparent; }
.gap-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── Shared: master-detail card pattern (used by S.03, A.04, A.05) ── */
.md-card {
  background: var(--surface-0); border: 1px solid var(--border);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 6px;
  cursor: pointer; transition: all 0.2s var(--ease); border-radius: var(--radius-m);
}
.md-card:hover { border-color: var(--ink-3); background: var(--surface-1); }
.md-card--active { border-color: var(--accent); background: var(--surface-1); box-shadow: 0 0 0 1px var(--accent); }
.md-card-row { display: flex; gap: 12px; align-items: center; width: 100%; }
.md-card-icon {
  flex-shrink: 0; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border-radius: var(--radius-m);
  font-family: "Space Grotesk", sans-serif; font-size: 14px; font-weight: 700;
  color: var(--ink-2);
}
/* Distinctive SVG visualization slot — replaces numbered icon */
.md-card-viz {
  flex-shrink: 0; width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
}
.md-card-viz svg { display: block; }
/* Pipeline throughput ring */
.pipeline-ring-svg { overflow: visible; }
/* Synergy bridge arc */
.synergy-bridge-svg { overflow: visible; }
/* Arc gauge SVG */
.arc-gauge-svg { overflow: visible; }
.md-card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.md-card-header { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.md-card-title {
  font-size: 13px; font-weight: 600; color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
}
.md-card-badge {
  font-size: 9px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; padding: 2px 8px;
}
.md-card-stats { display: flex; gap: 14px; font-size: 11px; color: var(--ink-3); }
.md-card-stats strong { color: var(--ink-2); }
.md-card-bar {
  width: 100%; height: 4px; background: var(--surface-2);
  margin-top: 4px; overflow: hidden;
}
.md-card-bar-fill { height: 100%; transition: width 0.4s var(--ease); }
.md-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.md-card-tag {
  font-size: 9px; padding: 2px 8px; background: var(--surface-2);
  color: var(--ink-3); border-radius: var(--radius-pill); white-space: nowrap;
}
/* Detail panel content blocks */
.md-detail-section { margin-bottom: 16px; }
.md-detail-section:last-child { margin-bottom: 0; }
.md-detail-label {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-3); margin-bottom: 6px;
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
}
.md-detail-value {
  font-size: 13px; color: var(--ink); line-height: 1.5;
}
.md-detail-stat-row {
  display: flex; gap: 20px; flex-wrap: wrap;
}
.md-detail-stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.md-detail-stat-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1;
}
.md-detail-stat-lbl {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3);
}
.md-gauge {
  width: 100%; height: 6px; background: var(--surface-2); margin-top: 4px;
}
.md-gauge-fill { height: 100%; transition: width 0.4s var(--ease); }
.md-detail-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.md-detail-list li {
  font-size: 12px; color: var(--ink-2); padding-left: 12px;
  position: relative; line-height: 1.5;
}
.md-detail-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 4px; height: 4px; background: var(--ink-3);
}

/* Large tablet: fix 3-col grid + section progress */
@media (max-width: 960px) {
  .split-grid--3 { grid-template-columns: 1fr 1fr; }
  .section-progress { display: none; }
}
/* Tablet */
@media (max-width: 840px) {
  /* Topbar: stack brand + controls; solid bg to avoid backdrop-filter scroll jank */
  .topbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .jumpbar { /* solid bg inherited from base rule */ }
  .topbar h1 { font-size: clamp(16px, 4vw, 20px); }
  .topbar-logo { height: clamp(16px, 4vw, 20px); }
  .topbar-controls { width: 100%; justify-content: space-between; }
  .run-picker { flex: 1; min-width: 0; }
  .run-picker select { max-width: 100%; }

  /* Jumpbar */
  .jumpbar { top: 95px; }
  .cross-filter-bar { top: 130px; }
  .jumpbar-link { font-size: 10px; padding: 4px 10px; }
  .jumpbar-collapse-all { display: none; }
  [id^="sec-"] { scroll-margin-top: var(--sticky-offset, 140px); }

  /* Layout */
  .container { gap: 16px; }
  .panel h2 { font-size: clamp(13px, 3vw, 15px); }

  /* Hero */
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  /* Metrics */
  .metric-group-cards { grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); gap: 10px; }
  .metric { padding: 16px; }
  .metric .value { font-size: 24px; }

  /* Grids */
  .split-grid { gap: 20px; }
  .controls-grid { grid-template-columns: 1fr 1fr; }
  /* Collapse master-detail splits to single column on tablet */
  .signal-split-master { grid-template-columns: 1fr; }
  .signal-detail { position: static; }
  .signal-list { max-height: none; }
  .synergy-split-master { grid-template-columns: 1fr; }
  .synergy-detail { position: static; }
  .synergy-list { max-height: none; }
  .gap-split-master { grid-template-columns: 1fr; }
  .gap-detail { position: static; }
  .gap-list { max-height: none; }

  /* Tables */
  th, td { padding: 10px 12px; font-size: 12px; }

  /* Disable hover transform on touch devices (causes scroll jank) */
  .metric:hover { transform: none; }

  /* Buttons – touch targets */
  .button-row { gap: 8px; }
  .action { padding: 12px 14px; font-size: 11px; min-height: 44px; }

  /* Tabs: horizontal scroll */
  .tabs { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; padding: 8px 12px; font-size: 11px; min-height: 44px; white-space: nowrap; }

  /* Pagination */
  .pagination { flex-wrap: wrap; font-size: 11px; }
}

/* Phone */
@media (max-width: 480px) {
  /* Topbar */
  .topbar { gap: 6px; }
  .brand-row { gap: 6px; }
  .topbar p { font-size: 10px; }
  .topbar-controls { gap: 8px; }
  .run-picker select { font-size: 12px; padding: 6px 8px; }

  /* Jumpbar */
  .jumpbar { top: 72px; gap: 4px; }
  .cross-filter-bar { top: 107px; font-size: 10px; }
  .jumpbar-link { font-size: 9px; padding: 6px 8px; min-height: 32px; display: flex; align-items: center; }
  [id^="sec-"] { scroll-margin-top: var(--sticky-offset, 112px); }

  /* Layout */
  .container { gap: 8px; }
  .panel h3 { font-size: 9px; }

  /* Hide decorative elements */
  .panel::before, .panel::after { display: none; }
  /* Single column everything */
  .controls-grid { grid-template-columns: 1fr; }
  .split-grid, .split-grid--3 { grid-template-columns: 1fr; }
  .runbook-grid { grid-template-columns: 1fr; }
  .metric-group-cards { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .metric { padding: 10px; }
  .metric .value { font-size: 18px; }
  .metric .label { font-size: 8px; letter-spacing: 0.1em; }

  /* Chips */
  .chip { padding: 4px 8px; font-size: 10px; }

  /* Tables: bleed to panel edges — use panel's own clamp for symmetry */
  .table-wrap { margin-left: calc(-1 * clamp(12px, 3vw, 32px)); margin-right: calc(-1 * clamp(12px, 3vw, 32px)); border-left: none; border-right: none; border-radius: 0; }
  th, td { padding: 8px 8px; font-size: 11px; white-space: nowrap; }
  th { font-size: 8px; letter-spacing: 0.08em; }
  #deficiency-priority-body td:last-child { min-width: 140px; }

  /* Pre/code */
  #run-commands, #control-log-tail { padding: 10px; font-size: 10px; }
  #control-log-tail { min-height: 60px; max-height: 180px; }
  code { font-size: 0.8em; padding: 1px 3px; }

  /* Buttons: full width stacked */
  .button-row { flex-direction: column; gap: 6px; }
  .action { width: 100%; text-align: center; min-height: 44px; padding: 12px 10px; font-size: 11px; }

  /* GROBID */
  .control-subsection--service { padding: 10px 12px; }
  .control-service-header { flex-wrap: wrap; gap: 6px; }
  .control-monitor-grid { grid-template-columns: 1fr; }

  /* Text */
  .runbook-note { font-size: 12px; line-height: 1.5; }
  .baseline-list { font-size: 11px; padding-left: 12px; gap: 3px; }
  .eyebrow { font-size: 9px; }

  /* Pagination: stack */
  .pagination { flex-direction: column; align-items: stretch; text-align: center; gap: 6px; }
  .pagination-controls { justify-content: center; }
  .pagination-btn { padding: 6px 10px; min-height: 36px; }

  /* Misc */
  .count-pill { font-size: 9px; padding: 2px 6px; }
  .panel-head { gap: 8px; }
  .controls-grid select, .controls-grid input { padding: 8px 10px; font-size: 13px; }

  /* Login */
  .login-card { padding: 24px 16px; }
  .login-card h1 { font-size: 20px; }
  .login-card p { font-size: 12px; margin-bottom: 20px; }
  .login-form input { padding: 12px 12px; font-size: 14px; }
  .login-form button { padding: 12px 16px; font-size: 12px; }
}
/* ── Vertical Radar Webs (inside S.01) ───────────────── */
.verticals-scope-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.verticals-scope-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
}
.scope-totals {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: flex-end;
}
.scope-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.scope-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.scope-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
/* ── Split view: detail (left) + list (right) ─────────── */
.verticals-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
  min-height: 420px;
}
.verticals-detail {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 80px;
  align-self: start;
}
.verticals-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.verticals-detail-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
}
.verticals-detail-back {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-size: 11px;
  padding: 4px 12px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.verticals-detail-back:hover {
  color: var(--ink);
  border-color: var(--ink-2);
}
.verticals-detail .radar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
}
.verticals-detail .radar-svg {
  max-width: 380px;
  width: 100%;
}
/* Detail card shown when a vertical is selected */
.verticals-detail-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.verticals-detail-card .vweb-radar {
  max-width: 320px;
  width: 100%;
}
.verticals-detail-card .vweb-stats {
  font-size: 13px;
  gap: 20px;
}
.verticals-detail-card .vweb-crops {
  justify-content: center;
}
.verticals-detail-card .vweb-crop-tag {
  font-size: 11px;
  padding: 3px 10px;
}

/* Right: scrollable vertical list */
.verticals-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 4px;
}
.verticals-list::-webkit-scrollbar { width: 4px; }
.verticals-list::-webkit-scrollbar-track { background: transparent; }
.verticals-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.vweb-card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border-radius: var(--radius-m);
}
.vweb-card:hover {
  border-color: var(--ink-3);
  background: var(--surface-1);
}
.vweb-card--active {
  border-color: var(--accent);
  background: var(--surface-1);
  box-shadow: 0 0 0 1px var(--accent);
}
.vweb-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vweb-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
}
.vweb-status {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.vweb-radar {
  width: 100%;
  max-width: 220px;
  height: auto;
}
/* Card row: mini radar left, info right */
.vweb-card-row {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}
.vweb-mini-radar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  opacity: 0.9;
}
.vweb-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mini-radar-svg { display: block; }
.vweb-stats {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--ink-3);
}
.vweb-stats strong {
  color: var(--ink-2);
}
.vweb-crops {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.vweb-crop-tag {
  font-size: 9px;
  padding: 2px 8px;
  background: var(--surface-2);
  color: var(--ink-3);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
/* Bar fallback for verticals with < 3 crop axes */
.vweb-bar-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0;
}
.vweb-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-3);
}
.vweb-bar-label {
  width: 70px;
  text-align: right;
  flex-shrink: 0;
}
.vweb-bar-track {
  flex: 1;
  height: 6px;
  background: var(--surface-2);
  border-radius: 0px;
  overflow: hidden;
}
.vweb-bar-fill {
  height: 100%;
  border-radius: 0px;
  transition: width 0.4s var(--ease);
}
.vweb-bar-val {
  width: 24px;
  font-weight: 600;
  color: var(--ink-2);
}

@media (max-width: 600px) {
  .verticals-split { grid-template-columns: 1fr; }
  .verticals-detail { position: static; }
  .verticals-list { max-height: none; }
  .scope-totals { gap: 16px; }
  .scope-num { font-size: 22px; }
}

/* ── A.07 Complex Links ──────────────────────────────── */
.complex-sub-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-1);
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  padding: 0;
  margin: 0 0 8px;
}
.count-pill--sm {
  font-size: 10px;
  padding: 2px 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  background: var(--surface-1);
  font-weight: 500;
}
.mini-pill {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  white-space: nowrap;
}
.pill--green { background: rgba(46,204,113,.15); color: #2ecc71; }
.pill--amber { background: rgba(241,196,15,.15); color: #f1c40f; }
.pill--dim   { background: var(--surface-1); color: var(--ink-3); border: 1px solid var(--border-strong); }
.cell-note {
  font-size: 11px;
  color: var(--ink-3);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-wrap--scroll {
  overflow-y: auto;
}
.empty-state {
  text-align: center;
  color: var(--ink-3);
  font-style: italic;
  padding: 16px;
}

/* ── Reduced Motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
