/* ================================================================
   ZKELETON DEMO v2 — Bloomberg-feel payer infra console
   Design source of truth: ADOPTED_DESIGN.md
   ================================================================ */

:root {
  --bg:            #050505;
  --surface:       #121212;
  --surface-2:     #1a1a1a;
  --hairline:      #1f1f21;
  --hairline-dim:  #141416;
  --text:          #f1f1f1;
  --text-muted:    #a0a0a0;
  --label:         #737378;
  --faint:         #404040;

  --active:        #3dd68c;
  --warn:          #ffb800;
  --critical:      #e63946;

  --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(0.2, 0.0, 0, 1.0);
  --ease-inout: cubic-bezier(0.4, 0.0, 0.6, 1.0);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

button {
  background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0;
}

/* ===== Section header styling (all caps eyebrow) ===== */
.section-header {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.section-meta {
  font-size: 10px;
  color: var(--label);
  letter-spacing: 0.04em;
}

/* ================================================================
   ENV BAR
   ================================================================ */
.envbar {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.env-left, .env-right { display: flex; align-items: center; gap: 10px; }

.env-dot {
  width: 7px; height: 7px;
  background: var(--active);
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(61, 214, 140, 0.18);
  animation: env-pulse 2400ms ease-in-out infinite;
}
@keyframes env-pulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.55; }
}

.env-label { color: var(--label); text-transform: uppercase; font-weight: 600; font-size: 10px; letter-spacing: 0.14em; }
.env-value { color: var(--text); font-weight: 600; }
.env-value.mono { font-weight: 500; font-size: 11px; }
.env-healthy { color: var(--active); }
.env-sep { color: var(--faint); padding: 0 2px; }
.env-role {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--text-muted);
  padding: 2px 6px;
  font-size: 9px;
  letter-spacing: 0.14em;
}
.env-badge {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--label);
  padding: 2px 6px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-left: 4px;
}

/* ================================================================
   CAPTION STRIP — scene-setter under envbar. Never animates, never
   disappears. Terminal header comment, not marketing copy.
   ================================================================ */
.caption-strip {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  color: var(--text-muted);
  padding: 7px 20px 7px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
  white-space: nowrap;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.caption-strip .cap-w { color: var(--text-muted); }
.caption-strip .cap-sep {
  color: var(--faint);
  padding: 0 14px;
}
.caption-strip .cap-arrow {
  color: #5a5a5f;
  padding: 0 12px;
  font-family: var(--font-sans);
}

/* ================================================================
   PIPELINE HERO
   ================================================================ */
.hero {
  padding: 8px 20px 10px;
  border-bottom: 1px solid var(--hairline);
}

.hero-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.hero-head-right {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
}
/* Hero tracking chip — inline text chip on the right of the pipeline
   section header. Mirrors a Vercel deployment log step. Empty/hidden in
   ambient state; appears only while a hero event is in flight. */
.hero-track {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 200ms var(--ease-out), color 140ms var(--ease-out);
  white-space: nowrap;
}
.hero-track.active { opacity: 1; }
.hero-track.fading { opacity: 0; transition: opacity 600ms ease; }
.hero-track.signing { color: var(--active); }
.hero-track.signed  { color: var(--active); }
.hero-track .ht-glyph { margin-right: 6px; }
.hero-track .ht-id { color: var(--text); }
.hero-track.signing .ht-id, .hero-track.signed .ht-id { color: var(--active); }
.hero-track .ht-sep { color: var(--faint); padding: 0 6px; }
.hero-track .ht-phi { color: var(--text); font-weight: 600; }
.hero-track.signed-pulse { animation: hero-track-pulse 360ms var(--ease-out); }
@keyframes hero-track-pulse {
  0%   { text-shadow: 0 0 6px rgba(61, 214, 140, 0.75); }
  100% { text-shadow: none; }
}

.pipeline {
  display: grid;
  grid-template-columns: 170px 1fr 170px;
  gap: 20px;
  align-items: stretch;
}

/* source / workload columns */
.sources, .workloads {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 18px;
}
.zone-label {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 4px;
  padding-left: 2px;
}
.chip {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 8px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 8px 10px;
  cursor: pointer;
  transition: background 120ms var(--ease-out);
}
.chip:hover { background: var(--surface-2); }
.chip-dot {
  width: 6px; height: 6px;
  background: var(--faint);
  transition: background 120ms var(--ease-out), box-shadow 120ms var(--ease-out);
}
.chip-dot.blink {
  background: var(--active);
  box-shadow: 0 0 0 2px rgba(61, 214, 140, 0.25);
}
.chip-dot-red { background: var(--faint); }
.chip-dot-red.blink {
  background: var(--critical);
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.22);
}
.chip-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text);
}
.chip-meta {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

/* stages row — Gate is 1.6fr to carry extra visual weight */
.stages {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr 32px 1fr 32px 1.6fr;
  align-items: stretch;
  position: relative;
}

.stage {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 10px 12px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  min-height: 128px;
  overflow: hidden;
  transition: background 120ms var(--ease-out);
}
.stage:hover { background: var(--surface-2); }

.heartbeat {
  position: absolute;
  inset: -40%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(241,241,241,0.055), rgba(241,241,241,0) 55%);
  opacity: 0;
  animation: heartbeat 2400ms ease-in-out infinite;
}
/* Stagger the 5-stage heartbeats so they propagate left-to-right instead of
   blooming in unison. Negative delays so the ripple is already running at T=0.
   Stages are data-stage="0".."4" in this markup (zero-indexed). */
.stage[data-stage="0"] .heartbeat { animation-delay: 0ms; }
.stage[data-stage="1"] .heartbeat { animation-delay: -480ms; }
.stage[data-stage="2"] .heartbeat { animation-delay: -960ms; }
.stage[data-stage="3"] .heartbeat { animation-delay: -1440ms; }
.stage[data-stage="4"] .heartbeat { animation-delay: -1920ms; }
.stage-gate .heartbeat {
  background: radial-gradient(circle at 50% 50%, rgba(230,57,70,0.13), rgba(230,57,70,0) 55%);
}
/* Pause the gate's ambient heartbeat briefly during a hero signing flash so
   the two don't collide into an unpredictable double-bloom. */
.stage-gate.gate-beat-pause .heartbeat {
  animation-play-state: paused;
  opacity: 0;
  transition: opacity 80ms var(--ease-out);
}
@keyframes heartbeat {
  0%,100% { opacity: 0; }
  50%     { opacity: 1; }
}

.stage-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  position: relative; z-index: 2;
}
.stage-num {
  font-size: 11px;
  color: var(--label);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.stage-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.stage-gate .stage-name { color: var(--critical); }

.stage-counter {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  margin-top: 2px;
  position: relative; z-index: 2;
}
.stage-gate .stage-counter { color: var(--critical); }

.stage-unit {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
  position: relative; z-index: 2;
}

/* small secondary label that appears under stage counter while a hero event is
   passing through. Empty by default; JS fills textContent and clears it on
   advance. Monospace for continuity with the counter. */
.stage-hero {
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--active);
  min-height: 12px;
  margin-top: 2px;
  position: relative; z-index: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 140ms ease;
}
.stage-hero.active { opacity: 1; }
.stage-gate .stage-hero { color: #ff8a90; }

.stage-status {
  margin-top: auto;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative; z-index: 2;
}
.status-dot {
  width: 5px; height: 5px;
  background: var(--active);
  animation: env-pulse 2400ms ease-in-out infinite;
}
.status-dot-red { background: var(--critical); }

/* the red gate flash */
.stage-gate {
  border-color: #2a1112;
}
.gate-flash {
  position: absolute;
  inset: 0;
  background: var(--critical);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: normal;
}
.gate-flash.fire {
  animation: gate-flash 180ms ease-out;
}
@keyframes gate-flash {
  0%   { opacity: 0.55; }
  100% { opacity: 0; }
}
.gate-flash.fire-hero {
  animation: gate-flash-hero 360ms var(--ease-out);
}
@keyframes gate-flash-hero {
  0%   { opacity: 0.85; }
  100% { opacity: 0; }
}

/* Gate-internal metrics block (PHI counter + mini sparkline) */
.gate-metrics {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: end;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
  position: relative; z-index: 2;
}
.gate-metric-value {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.gate-metric-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
  margin-top: 4px;
}
.gate-spark {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 24px;
  padding-left: 6px;
  border-left: 1px solid var(--hairline);
}
.gate-spark-bar {
  width: 3px;
  background: var(--critical);
  opacity: 0.55;
  min-height: 2px;
}
.gate-spark-bar.peak { opacity: 1; }

.gate-lastsigned {
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--hairline-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative; z-index: 2;
  min-height: 14px;
}
.gate-lastsigned .ls-label { color: var(--label); letter-spacing: 0.1em; }
.gate-lastsigned .ls-id { color: var(--critical); }
.gate-lastsigned .ls-sig { color: var(--text-muted); }

/* dotted arrow */
.arrow {
  position: relative;
  align-self: center;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.arrow-line {
  display: block;
  width: 100%;
  height: 1px;
  background-image: linear-gradient(to right, var(--text-muted) 50%, transparent 50%);
  background-size: 6px 1px;
  background-repeat: repeat-x;
  animation: arrow-flow 1400ms linear infinite;
  opacity: 0.65;
}
@keyframes arrow-flow {
  from { background-position: 0 0; }
  to   { background-position: 12px 0; }
}

/* data particles — 1px dots that crawl along arrows */
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--text);
  opacity: 0.55;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  pointer-events: none;
  animation: particle-travel 900ms cubic-bezier(.45,.05,.55,.95) forwards;
}
.particle.red { background: var(--critical); opacity: 0.85; }
@keyframes particle-travel {
  0%   { left: 0%;   opacity: 0; }
  10%  { opacity: 0.55; }
  90%  { opacity: 0.55; }
  100% { left: 100%; opacity: 0; }
}

/* hero-event traveling glyph — larger, brighter, slower than ambient particles */
.particle.hero {
  width: 3px;
  height: 3px;
  background: var(--active);
  opacity: 1;
  box-shadow: 0 0 6px rgba(61, 214, 140, 0.7);
  animation: particle-travel-hero 1200ms cubic-bezier(.35,.05,.65,.95) forwards;
}
.particle.hero.red {
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 14px rgba(230, 57, 70, 0.6);
}
@keyframes particle-travel-hero {
  0%   { left: 0%;   opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ================================================================
   GATE PANEL (STAYS vs CROSSES)
   ================================================================ */
.gate-panel {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  padding: 10px 20px 10px;
  border-bottom: 1px solid var(--hairline);
}
.panel-col {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.panel-col:first-child { padding-left: 0; }
.panel-col:last-child  { padding-right: 0; }
.panel-divider {
  background: var(--hairline);
  width: 1px;
  height: 100%;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.panel-sub {
  color: var(--label);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.panel-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  font-size: 12px;
  color: var(--text);
}
.panel-list li {
  display: flex;
  gap: 8px;
  padding: 2px 0;
}
.bul { color: var(--faint); }
.tier-tag {
  color: var(--label);
  font-size: 10px;
  letter-spacing: 0.1em;
  min-width: 138px;
  flex: none;
  padding-top: 1px;
}

.panel-badge {
  margin-top: auto;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.badge-value {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.badge-critical { color: var(--critical); }
.badge-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
}

/* ================================================================
   PARTNERS TABLE
   ================================================================ */
.partners {
  padding: 8px 20px 8px;
  border-bottom: 1px solid var(--hairline);
}
.ptable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 12px;
}
.ptable thead th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--label);
  font-weight: 600;
  padding: 8px 12px;
  border-bottom: 1px solid var(--hairline);
}
.ptable th.num, .ptable td.num { text-align: right; font-family: var(--font-mono); }
.ptable tbody tr {
  cursor: pointer;
  transition: background 100ms var(--ease-out);
}
.ptable tbody tr:hover { background: var(--surface); }
.ptable tbody td {
  padding: 5px 12px;
  border-bottom: 1px solid var(--hairline-dim);
  color: var(--text);
}
.ptable tbody td.mono { font-family: var(--font-mono); font-size: 11px; }
.ptable td.scope { color: var(--text-muted); letter-spacing: 0.06em; font-size: 11px; font-family: var(--font-mono); }
.ptable td.pname .pdesc { color: var(--label); font-size: 11px; margin-left: 8px; }
.ptable td.sla   { font-family: var(--font-mono); color: var(--text-muted); }
.ptable td.last  { font-family: var(--font-mono); color: var(--text-muted); font-size: 11px; }
.ptable td.status {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--active);
}
.ptable td.status .dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--active);
  margin-right: 6px;
  vertical-align: middle;
}

/* ================================================================
   AUDIT RIBBON
   ================================================================ */
.ribbon {
  height: 40px;
  display: flex;
  align-items: center;
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  overflow: hidden;
  flex-shrink: 0;
  margin-top: auto;
}
.ribbon-label {
  flex-shrink: 0;
  padding: 0 16px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--label);
  border-right: 1px solid var(--hairline);
  height: 100%;
  display: flex;
  align-items: center;
}
.ribbon-track {
  flex: 1;
  position: relative;
  height: 100%;
  overflow: hidden;
  white-space: nowrap;
}
/* Single-line marquee strip: all events concatenated inline, translated L. */
.ribbon-strip {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate3d(0, -50%, 0);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.1;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  will-change: transform;
}
.ribbon-item {
  display: inline-block;
  padding: 4px 6px;
  cursor: pointer;
  vertical-align: middle;
  white-space: nowrap;
}
.ribbon-item:hover { color: var(--text); background: var(--surface); }
.ribbon-item .tag-sign  { color: var(--active); }
.ribbon-item .tag-drop  { color: var(--label); }
.ribbon-item .tag-flag  { color: var(--critical); }
.ribbon-item .r-phi-bad { color: var(--critical); }
.ribbon-item .r-sep     { color: var(--faint); padding: 0 4px; }
.ribbon-item .r-gap     { display: inline-block; width: 18px; }

/* Hero ribbon entry — subtle highlight that lingers briefly so viewers can
   catch the signed hero event as it scrolls past. */
.ribbon-item.hero {
  background: rgba(61, 214, 140, 0.10);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(61, 214, 140, 0.35);
  transition: background 800ms ease, box-shadow 800ms ease;
}
.ribbon-item.hero .star { color: var(--active); }
.ribbon-item.hero.fade {
  background: transparent;
  box-shadow: inset 0 0 0 1px transparent;
}

/* ================================================================
   THIS MONTH STRIP
   ================================================================ */
.mtd-strip {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr 1px 1fr 1px 1fr;
  align-items: center;
  padding: 8px 20px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
}
.mtd-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px;
}
.mtd-cell:first-child { padding-left: 0; }
.mtd-cell:last-child  { padding-right: 0; }
.mtd-sep {
  background: var(--hairline);
  width: 1px;
  height: 36px;
  justify-self: center;
}
.mtd-value {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.mtd-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label);
  font-weight: 600;
}
.mtd-value.mtd-market { color: var(--active); }

/* ================================================================
   DRAWER
   ================================================================ */
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(5,5,5,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease-out);
  z-index: 50;
}
.drawer-scrim.open {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 40px;       /* under envbar */
  right: 0;
  bottom: 40px;    /* above ribbon */
  width: 480px;
  background: var(--surface);
  border-left: 1px solid var(--hairline);
  transform: translateX(100%);
  transition: transform 220ms var(--ease-out);
  z-index: 60;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.drawer-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.drawer-close {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--label);
}
.drawer-close:hover { color: var(--text); }
.drawer-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}
.drawer-block {
  margin-bottom: 20px;
}
.drawer-block-head {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--hairline);
}
.drawer-kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 4px 12px;
  font-size: 11px;
  font-family: var(--font-mono);
}
.drawer-kv .k { color: var(--label); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; }
.drawer-kv .v { color: var(--text); }

.drawer-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 10px;
}
.drawer-table th {
  text-align: left;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--label);
  padding: 6px 8px 6px 0;
  border-bottom: 1px solid var(--hairline);
  text-transform: uppercase;
}
.drawer-table td {
  padding: 6px 8px 6px 0;
  border-bottom: 1px solid var(--hairline-dim);
  color: var(--text-muted);
}
.drawer-table td.sig { color: var(--text); }

/* stage drawer throughput mini-chart (pure CSS bars) */
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 64px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline-dim);
}
.mini-bar {
  flex: 1;
  background: var(--text-muted);
  min-height: 1px;
  opacity: 0.55;
}
.mini-bar.peak { background: var(--text); opacity: 1; }
.stage-gate-context .mini-bar { background: var(--critical); opacity: 0.6; }
.stage-gate-context .mini-bar.peak { background: var(--critical); opacity: 1; }

/* odometer — vertical slot-machine roll
   Container is locked to one line-height; inner column holds cur + next
   stacked, and translateY rolls cur out, next in. */
.odometer {
  position: relative;
  display: inline-block;
  height: 1.15em;
  line-height: 1.15;
  overflow: hidden;
  vertical-align: baseline;
}
.odo-inner {
  display: flex;
  flex-direction: column;
  transition: transform 220ms var(--ease-out);
}
.odo-cur, .odo-next {
  display: block;
  line-height: 1.15;
  height: 1.15em;
}
