/* Structural chrome only in P2 — per-screen visual design (charts, Sankey,
   dial-replacement bars) lands in P3-P6 once the `dataviz` skill's palette
   is loaded (DEMO_BUILD_PLAN.md §9.5). CSS custom properties here so a real
   VBScout brand palette is a values swap, not a rewrite. */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --border: #e2e5eb;
  --text: #1a1d29;
  --text-muted: #5b6172;
  --accent: #2f5fd6;
  --accent-contrast: #ffffff;
  --warn: #c2540a;
  --good: #1e7d4f;
  --chrome-bg: #12162b;
  --chrome-text: #e7e9f2;
  --chrome-muted: #9aa1bd;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Chart-only tokens (dataviz skill's reference palette, §9.5). Categorical
     slots 1+2 (blue/orange), validated: scripts/validate_palette.js "#2a78d6,
     #eb6834" --mode light -> ALL CHECKS PASS. Everything else in Act 3's
     charts is muted ink by design (emphasis form, not full categorical). */
  --viz-blue: #2a78d6;
  --viz-orange: #eb6834;
  --viz-muted-ink: #898781;
  --viz-grid: #e1e0d9;
}

* { box-sizing: border-box; }

/* -------------------------------------------------- passcode gate */

.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--chrome-bg);
  padding: 1.5rem;
}

/* Same fix as .lightbox[hidden] (P3): this rule and the UA [hidden]{display:
   none} have equal specificity, and this stylesheet loads after the UA
   sheet, so without this override `overlay.hidden = true` sets the
   attribute but never actually hides anything. */
.gate-overlay[hidden] { display: none; }

.gate-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border-radius: 12px;
  padding: 2rem 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.gate-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a5720a;
  border: 1px solid #d8b45a;
  background: rgba(237, 161, 0, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.gate-title { font-size: 1.25rem; margin: 0 0 0.5rem; color: var(--text); }
.gate-sub { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; margin: 0 0 1.25rem; }

.gate-input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.85rem;
  text-align: center;
  letter-spacing: 0.05em;
}

.gate-input:focus { outline: none; border-color: var(--accent); }

.gate-submit {
  width: 100%;
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  border-radius: 8px;
  padding: 0.65rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.gate-submit:hover { opacity: 0.92; }

.gate-error { color: var(--warn); font-size: 0.82rem; margin-top: 0.75rem; }

@keyframes gate-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.gate-shake { animation: gate-shake 0.4s; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
}

/* -------------------------------------------------- header chrome */

.chrome {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--chrome-bg);
  color: var(--chrome-text);
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

.chrome-left { flex: 0 0 auto; }

.simulated-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffd166;
  border: 1px solid #7a5a17;
  background: rgba(255, 209, 102, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.act-nav {
  display: flex;
  gap: 0.35rem;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.act-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--chrome-muted);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  white-space: nowrap;
}

.act-btn:hover { color: var(--chrome-text); background: rgba(255, 255, 255, 0.06); }

.act-btn.active {
  color: var(--chrome-text);
  background: var(--accent);
}

.chrome-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
  font-size: 0.85rem;
}

.scenario-select-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--chrome-muted);
}

.scenario-select-wrap select {
  background: #1c2140;
  color: var(--chrome-text);
  border: 1px solid #333a5c;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-family: inherit;
  font-size: 0.85rem;
}

.source-indicator {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.source-live { color: #7fe3a1; background: rgba(127, 227, 161, 0.1); }
.source-local { color: #f2c14e; background: rgba(242, 193, 78, 0.1); }

/* -------------------------------------------------- main / screens */

main#app {
  min-height: calc(100vh - 3.5rem - 2.75rem);
  padding: 1.5rem;
}

.loading-state {
  padding: 4rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
}

.screen {
  max-width: 1100px;
  margin: 0 auto;
}

.screen-placeholder {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.screen-placeholder h1 { color: var(--text); font-size: 1.4rem; }

/* -------------------------------------------------- what-am-I-looking-at footer */

.whatami-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.whatami-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.6rem 1.25rem;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.whatami-toggle:hover { color: var(--text); }

.whatami-panel {
  padding: 0 1.25rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 800px;
  line-height: 1.5;
}

/* -------------------------------------------------- shared act chrome */

.act-title { font-size: 1.9rem; margin: 0 0 0.35rem; color: var(--text); }
.act-sub { color: var(--text-muted); margin: 0 0 1.75rem; max-width: 720px; line-height: 1.5; }

/* -------------------------------------------------- Act 1: the report they got */

.callout-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 2rem;
}

.callout-half {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.callout-life { border-top: 4px solid var(--good); }
.callout-supp { border-top: 4px solid var(--warn); }

.callout-vs {
  align-self: center;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.callout-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  font-weight: 700;
}

.callout-big { font-size: 2.4rem; font-weight: 800; margin: 0.35rem 0; color: var(--text); }
.callout-dash { color: var(--warn); }
.callout-desc { color: var(--text-muted); font-size: 0.88rem; line-height: 1.4; }

.hero-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.hero-fig {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
}

.hero-fig img { width: 100%; display: block; }

.hero-fig figcaption {
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.thumb-strip-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0.6rem;
}

.thumb-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.thumb-fig {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--surface);
}

.thumb-fig img { width: 100%; display: block; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 3rem;
  cursor: zoom-out;
}

/* [hidden] and .lightbox{display:flex} have equal specificity, and this rule
   loads after the UA stylesheet's [hidden]{display:none} — without this,
   the lightbox would always render open. Caught in browser testing (P3). */
.lightbox[hidden] { display: none; }

.lightbox img { max-width: 100%; max-height: 100%; border-radius: 4px; }

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1rem;
  cursor: pointer;
}

/* -------------------------------------------------- Act 2: the machine */

.headline-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--good);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.headline-number { font-size: 2.4rem; font-weight: 800; color: var(--good); }
.headline-label { color: var(--text-muted); font-size: 0.95rem; }

.layer-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

.layer-panel-title { font-weight: 700; margin-bottom: 0.6rem; }

.layer-chain {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.layer-pill {
  background: rgba(47, 95, 214, 0.08);
  color: var(--accent);
  border: 1px solid rgba(47, 95, 214, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.layer-arrow { color: var(--text-muted); }

.layer-desc { color: var(--text-muted); font-size: 0.87rem; line-height: 1.55; margin: 0; }

.repro-table-wrap { margin-bottom: 2rem; }

.repro-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.repro-section summary {
  padding: 0.7rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  list-style: none;
}

.repro-section summary::-webkit-details-marker { display: none; }
.repro-section summary::before { content: "▸ "; color: var(--text-muted); }
.repro-section[open] summary::before { content: "▾ "; }

.repro-count { color: var(--text-muted); font-weight: 400; font-size: 0.82rem; }

.repro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.repro-table th {
  text-align: left;
  padding: 0.4rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.repro-table td {
  padding: 0.35rem 1rem;
  border-top: 1px solid var(--border);
}

.repro-pass td:last-child { color: var(--good); font-weight: 600; }
.repro-fail td:last-child { color: var(--warn); font-weight: 700; }
.repro-fail { background: rgba(194, 84, 10, 0.05); }
.repro-info td:last-child { color: var(--text-muted); }

.validation-trail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.validation-trail-title { font-weight: 700; margin-bottom: 0.4rem; }

.validation-list {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.9;
}

.validation-list a { color: var(--accent); text-decoration: none; }
.validation-list a:hover { text-decoration: underline; }

.validation-list-plain { list-style: disc; }

/* -------------------------------------------------- Act 3: the X-ray */

.xray-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.xray-toggle {
  background: var(--chrome-bg);
  color: var(--chrome-text);
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.xray-toggle:hover { background: #1c2140; }

.xray-toggle-hint { color: var(--text-muted); font-size: 0.85rem; }

.chart-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.chart-panel-title { font-weight: 700; margin-bottom: 0.75rem; }

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legend-item { display: inline-flex; align-items: center; gap: 0.4rem; }

.legend-swatch { display: inline-block; width: 16px; height: 10px; }

.legend-swatch-band { background: rgba(42, 120, 214, 0.14); border-radius: 3px; }
.legend-swatch-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--viz-blue);
}
.legend-swatch-tick { width: 2px; height: 12px; background: var(--viz-muted-ink); margin: 0 7px; }
.legend-swatch-competitor {
  width: 2px; height: 12px; margin: 0 7px;
  background: repeating-linear-gradient(to bottom, var(--viz-muted-ink) 0 3px, transparent 3px 6px);
}

.chart-wrap { position: relative; }

.lr-bars-svg, .sankey-svg { width: 100%; height: auto; display: block; }

.chart-band { fill: rgba(42, 120, 214, 0.14); }

.chart-row-label { font-size: 0.83rem; fill: var(--text); font-weight: 600; }

.chart-axis-label { font-size: 0.7rem; fill: var(--viz-muted-ink); }

.chart-dot {
  fill: var(--viz-blue);
  stroke: var(--surface);
  stroke-width: 2px;
  cursor: pointer;
}
.chart-dot:hover, .chart-dot:focus { stroke-width: 3px; outline: none; }

.chart-tick-muted, .chart-tick-competitor {
  stroke: var(--viz-muted-ink);
  stroke-width: 2px;
  cursor: pointer;
}
.chart-tick-competitor { stroke-dasharray: 3 3; }
.chart-tick-muted:hover, .chart-tick-muted:focus,
.chart-tick-competitor:hover, .chart-tick-competitor:focus {
  stroke-width: 3px; outline: none;
}

.chart-tooltip {
  position: absolute;
  z-index: 5;
  background: var(--chrome-bg);
  color: var(--chrome-text);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
  white-space: nowrap;
  pointer-events: none;
  transform: translateY(-100%);
}

.chart-tooltip strong { margin-right: 0.3rem; }

/* Sankey */

.sankey-node { stroke-width: 0; cursor: pointer; }
.sankey-node.sankey-accent { fill: var(--viz-blue); }
.sankey-node.sankey-accent2 { fill: var(--viz-orange); }
.sankey-node.sankey-muted { fill: var(--viz-muted-ink); opacity: 0.6; }
.sankey-node.sankey-neutral { fill: var(--text-muted); opacity: 0.35; }
.sankey-node.sankey-ghost {
  fill: var(--viz-muted-ink);
  opacity: 0.3;
  stroke: var(--viz-muted-ink);
  stroke-width: 1.5px;
  stroke-dasharray: 3 3;
}
.sankey-node:hover, .sankey-node:focus { opacity: 0.85; outline: none; }

.sankey-link { opacity: 0.32; cursor: pointer; }
.sankey-link.sankey-accent { stroke: var(--viz-blue); }
.sankey-link.sankey-accent2 { stroke: var(--viz-orange); }
.sankey-link.sankey-muted { stroke: var(--viz-muted-ink); }
.sankey-link.sankey-neutral { stroke: var(--text-muted); }
.sankey-link:hover, .sankey-link:focus { opacity: 0.55; outline: none; }

.sankey-link-ghost {
  stroke: var(--viz-muted-ink);
  stroke-dasharray: 5 4;
  opacity: 0.28;
  cursor: pointer;
}
.sankey-link-ghost:hover, .sankey-link-ghost:focus { opacity: 0.5; outline: none; }

.sankey-node-label { font-size: 0.72rem; fill: var(--text-muted); }
.sankey-node-label-ghost { font-style: italic; }

.honesty-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.honesty-panel-title { font-weight: 700; margin-bottom: 0.4rem; }

.honesty-list {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* -------------------------------------------------- Act 4: VBScout on */

.recovered-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.recovered-hero-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  max-width: 640px;
}

.recovered-hero-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.recovered-hero-band {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.recovered-hero-band .band-active { color: var(--accent); font-weight: 700; }

.stat-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem;
}

.stat-tile-label { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 0.35rem; }
.stat-tile-value { font-size: 1.9rem; font-weight: 800; color: var(--text); }
.stat-tile-note { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.3rem; }

.queue-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.queue-table-wrap {
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-top: 0.75rem;
}

.queue-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }

.queue-table thead th {
  position: sticky;
  top: 0;
  background: var(--surface);
  text-align: left;
  padding: 0.5rem 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
}

.queue-table thead th:hover { color: var(--text); }
.queue-table thead th.th-active { color: var(--accent); }
.queue-table thead th.num, .queue-table td.num { text-align: right; }

.queue-table td { padding: 0.45rem 0.85rem; border-top: 1px solid var(--border); }

.queue-sub { color: var(--text-muted); font-size: 0.74rem; margin-top: 0.1rem; }

.tam-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.tam-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
  margin: 0.85rem 0;
}

.tam-table th {
  text-align: left;
  padding: 0.4rem 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border);
}

.tam-table td { padding: 0.5rem 0.85rem; border-top: 1px solid var(--border); }
.tam-table .tam-row-active { background: rgba(47, 95, 214, 0.06); font-weight: 700; }

.tam-caveats {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* -------------------------------------------------- Act 5: levers */

.scenario-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.scenario-chip strong { color: var(--accent); }
.scenario-chip-hint { color: var(--text-muted); font-size: 0.78rem; }

.lever-panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.lever-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.lever-title { font-weight: 700; }
.lever-value { font-size: 1.3rem; font-weight: 800; color: var(--viz-blue); font-variant-numeric: tabular-nums; }

.slider-track-wrap {
  position: relative;
  margin-top: 0.85rem;
  padding-bottom: 1.6rem;
}

.lever-slider {
  width: 100%;
  display: block;
  accent-color: var(--viz-blue);
  height: 20px;
  cursor: pointer;
}

.slider-tick {
  position: absolute;
  top: 22px;
  width: 2px;
  height: 8px;
  background: var(--viz-muted-ink);
  transform: translateX(-1px);
}

.slider-tick-label {
  position: absolute;
  top: 32px;
  left: 4px;
  white-space: nowrap;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.flow-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.flow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.flow-col { text-align: center; }
.flow-col-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.flow-stat { font-size: 1.5rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.flow-stat-accent { color: var(--viz-blue); }
.flow-stat-note { font-size: 0.76rem; color: var(--text-muted); margin-top: 0.2rem; }
.flow-arrow { color: var(--text-muted); font-size: 1.3rem; }

.flow-bar-wrap {
  height: 14px;
  background: rgba(42, 120, 214, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.flow-bar-recovered {
  height: 100%;
  background: var(--viz-blue);
  border-radius: 999px;
  transition: width 0.1s linear;
}

.flow-bar-caption { font-size: 0.76rem; color: var(--text-muted); margin-top: 0.4rem; }

@media (max-width: 720px) {
  .flow-grid { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
}
