:root {
  --bg: #090c0e;
  --surface: #0d1215;
  --surface-strong: #11181b;
  --line: #263137;
  --line-soft: #192226;
  --text: #edf5f2;
  --muted: #879499;
  --accent: #55f2c0;
  --amber: #e6b95c;
  --red: #ff7676;
  --mono: "Cascadia Code", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Segoe UI Variable Text", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(rgba(85, 242, 192, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 242, 192, .012) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
  font-family: var(--sans);
}

button, a { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.eyebrow, .meta-label {
  color: var(--accent);
  font: 700 11px/1.1 var(--sans);
  letter-spacing: .11em;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 60px;
  padding: 0 clamp(18px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 12, 14, .92);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font: 650 13px/1 var(--sans); letter-spacing: .08em; }
.brand-mark { width: 8px; height: 22px; background: var(--accent); }
.system-state { display: flex; align-items: center; gap: 9px; font: 650 12px/1 var(--sans); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.status-dot.live { background: var(--accent); box-shadow: 0 0 0 5px rgba(85, 242, 192, .1); }
.status-dot.stale, .status-dot.ambiguous, .status-dot.paused { background: var(--amber); }
.status-dot.error, .status-dot.diverged, .status-dot.no-data { background: var(--red); }

.workspace-nav {
  position: sticky;
  top: 60px;
  z-index: 25;
  display: flex;
  gap: 2px;
  padding: 0 clamp(18px, 4vw, 64px);
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 12, 14, .95);
  scrollbar-width: none;
}
.workspace-nav::-webkit-scrollbar { display: none; }
.workspace-tab {
  flex: 0 0 auto;
  padding: 14px 16px 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  font: 650 12px/1 var(--sans);
  letter-spacing: .035em;
  cursor: pointer;
}
.workspace-tab:hover, .workspace-tab:focus-visible { color: var(--text); outline: none; }
.workspace-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

main { width: min(1480px, 100%); margin: 0 auto; padding: 0 clamp(18px, 4vw, 64px) 92px; }
section { border-bottom: 1px solid var(--line); }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(34px, 5vw, 72px); font-weight: 500; letter-spacing: -.055em; }
h2 { margin-top: 9px; font-size: clamp(22px, 2.4vw, 34px); font-weight: 480; letter-spacing: -.035em; }
.workspace-intro { padding: clamp(52px, 7vw, 88px) 0 38px; }
.workspace-intro h1 { margin-top: 14px; }
.workspace-intro p { max-width: 760px; margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.65; }

.live-flow-section { padding: 26px 0 28px; }
.live-flow-heading { display: block; margin-bottom: 18px; }
.live-flow-heading h1 { margin-top: 10px; font-size: clamp(34px, 4vw, 56px); }
.live-flow-heading p { color: var(--muted); font-size: 12px; line-height: 1.6; text-align: right; }
.flow-accumulator { display: grid; grid-template-columns: repeat(5, minmax(104px, 1fr)) auto; align-items: stretch; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.flow-accumulator > div { display: grid; gap: 8px; padding: 15px 18px 14px 0; border-right: 1px solid var(--line-soft); }
.flow-accumulator > div + div { padding-left: 18px; }
.flow-accumulator span, .flow-accumulator small { color: var(--muted); font: 700 10px/1.1 var(--sans); letter-spacing: .07em; }
.flow-accumulator strong { font: 600 clamp(18px, 1.7vw, 24px)/1 var(--mono); letter-spacing: -.035em; }
.flow-accumulator > div:nth-child(3) strong { color: var(--red); }
.flow-accumulator > div:nth-child(4) strong { color: var(--amber); }
.flow-accumulator > small { align-self: center; padding-left: 20px; white-space: nowrap; }
.flow-accumulator strong.tick { animation: stat-tick .28s ease-out; }

.round-conveyor-frame { position: relative; height: 510px; overflow: hidden; border-bottom: 1px solid var(--line); }
.round-stream { height: 100%; overflow-y: auto; padding: 7px 0; scroll-behavior: smooth; scrollbar-width: none; }
.round-stream::-webkit-scrollbar { display: none; }
.conveyor-edge { position: absolute; z-index: 4; left: 0; right: 0; height: 26px; pointer-events: none; }
.conveyor-edge-top { top: 0; background: linear-gradient(var(--bg) 15%, transparent); }
.conveyor-edge-bottom { bottom: 0; background: linear-gradient(transparent, var(--bg) 85%); }
.stream-row { display: grid; grid-template-columns: minmax(122px, 178px) 36px minmax(0, 1fr); min-height: 42px; transition: opacity .2s ease, transform .2s ease; }
.stream-round { display: flex; flex-direction: column; justify-content: center; gap: 2px; color: var(--muted); text-align: right; }
.stream-round span, .stream-block-state, .stream-validator span { font: 700 9px/1.05 var(--sans); letter-spacing: .075em; }
.stream-round strong { color: var(--text); font: 600 12px/1 var(--mono); }
.stream-track { position: relative; }
.stream-track::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line); }
.stream-track i { position: absolute; z-index: 1; top: 50%; left: 50%; width: 6px; height: 6px; border: 1.5px solid var(--muted); border-radius: 50%; background: var(--bg); transform: translate(-50%, -50%); }
.stream-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 390px); align-items: center; gap: 20px; margin-left: 8px; padding: 6px 16px; border-bottom: 1px solid var(--line-soft); }
.stream-block-main { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.stream-validator { display: grid; gap: 7px; }
.stream-block-main strong { font: 600 13px/1 var(--mono); letter-spacing: -.015em; white-space: nowrap; }
.stream-validator { grid-template-columns: auto auto 1fr; align-items: baseline; column-gap: 7px; }
.stream-validator strong { font: 650 13px/1 var(--mono); }
.stream-validator small { color: var(--muted); font: 500 10px/1.25 var(--sans); text-align: right; }
.stream-row.confirmed .stream-block-state, .stream-row.confirmed .stream-track i { color: var(--accent); border-color: var(--accent); }
.stream-row.confirmed .stream-track i { box-shadow: 0 0 0 5px rgba(85, 242, 192, .08); }
.stream-row.skipped { background: linear-gradient(90deg, transparent 17%, rgba(255, 118, 118, .08), transparent 86%); }
.stream-row.skipped .stream-round strong, .stream-row.skipped .stream-block-state, .stream-row.skipped .stream-block-main strong { color: var(--red); }
.stream-row.skipped .stream-track i { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 5px rgba(255, 118, 118, .09); }
.stream-row.mismatch .stream-block-state, .stream-row.mismatch .stream-validator small, .stream-row.mismatch .stream-track i { color: var(--red); border-color: var(--red); }
.stream-row.sync-blocked { background: linear-gradient(90deg, transparent 17%, rgba(230, 185, 92, .07), transparent 86%); }
.stream-row.sync-blocked .stream-block-state, .stream-row.sync-blocked .stream-validator strong, .stream-row.sync-blocked .stream-track i { color: var(--amber); border-color: var(--amber); }
.stream-row.scheduled { opacity: .48; }
.stream-row.scheduled .stream-track i { border-style: dashed; }
.stream-row.unknown { opacity: .65; }
.stream-now { display: grid; grid-template-columns: minmax(112px, 168px) 34px minmax(0, 1fr); align-items: center; height: 36px; color: var(--accent); }
.stream-now > span { text-align: right; font: 750 10px/1 var(--sans); letter-spacing: .1em; }
.stream-now i { height: 1px; margin: 0 -4px; background: var(--accent); box-shadow: 34px 0 0 var(--accent); }
.stream-now small { padding-left: 20px; color: var(--accent); font: 700 10px/1 var(--sans); letter-spacing: .08em; }
.stream-arrival { animation: conveyor-arrival .36s ease-out both; }
.stream-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding-top: 16px; color: var(--muted); font: 550 11px/1.2 var(--sans); letter-spacing: .025em; }
.stream-legend .muted { margin-left: auto; }
.legend-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; vertical-align: 1px; background: var(--muted); }
.legend-dot.confirmed { background: var(--accent); }
.legend-dot.skipped { background: var(--red); }
.legend-dot.scheduled { border: 1px dashed var(--muted); background: transparent; }

.live-intelligence-section { padding: 44px 0 56px; }
.live-geo-stage { height: clamp(300px, 34vw, 430px); margin-bottom: 0; }
.geo-points-base { opacity: .34; }
.geo-base-point { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); transform: translate(-50%, -50%); cursor: help; }
.geo-confirmed-point { position: absolute; display: grid; place-items: center; width: var(--point-size, 20px); height: var(--point-size, 20px); border: 1px solid rgba(85, 242, 192, .72); border-radius: 50%; color: var(--text); background: rgba(9, 12, 14, .9); box-shadow: 0 0 0 6px rgba(85, 242, 192, .06); font: 700 9px/1 var(--mono); cursor: help; transform: translate(-50%, -50%); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.geo-confirmed-point:hover { transform: translate(-50%, -50%) scale(1.08); border-color: var(--accent); box-shadow: 0 0 0 9px rgba(85, 242, 192, .09); }
.geo-confirmed-point:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.location-ranking-head { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0 12px; color: var(--muted); font: 700 11px/1.4 var(--sans); letter-spacing: .065em; }
.location-ranking-head span:last-child { text-align: right; font-weight: 400; letter-spacing: 0; }
.location-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.location-summary-item { min-width: 0; padding: 18px 16px 0 0; border-right: 1px solid var(--line-soft); }
.location-summary-item + .location-summary-item { padding-left: 16px; }
.location-summary-item:last-child { border-right: 0; }
.location-summary-top { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; min-height: 54px; }
.location-rank { color: var(--accent); font: 600 10px/1 var(--mono); }
.location-summary-top > div { display: grid; align-content: start; gap: 8px; }
.location-summary-top strong { font: 650 13px/1.25 var(--sans); overflow-wrap: anywhere; }
.location-summary-top small { color: var(--muted); font: 500 11px/1.35 var(--sans); }
.candidate-mini-list { margin-top: 18px; border-top: 1px solid var(--line-soft); }
.candidate-mini-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 7px; align-items: center; min-height: 50px; border-bottom: 1px solid var(--line-soft); }
.candidate-position { color: var(--muted); font: 600 10px/1 var(--mono); }
.candidate-name { display: grid; min-width: 0; gap: 4px; }
.candidate-name strong { font: 650 11px/1.15 var(--sans); overflow-wrap: anywhere; }
.candidate-name small { color: var(--muted); font: 500 10px/1.3 var(--sans); overflow-wrap: anywhere; }
.candidate-latency { display: grid; justify-items: end; gap: 4px; color: var(--text); font: 650 12px/1 var(--mono); white-space: nowrap; }
.candidate-latency small { color: var(--muted); font: 700 9px/1 var(--sans); text-transform: uppercase; }
.candidate-empty { min-height: 100px; margin: 0; padding: 18px 0; color: var(--muted); font: 500 11px/1.5 var(--sans); }

.routing-posture { padding: clamp(52px, 7vw, 86px) 0 34px; }
.posture-heading, .section-head, .route-horizon-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.posture-heading h1 { margin-top: 13px; }
.posture-status { display: grid; justify-items: end; gap: 8px; text-align: right; font: 11px/1.35 var(--mono); }
.status-label { padding: 6px 9px; border: 1px solid var(--line); color: var(--muted); font: 600 10px/1 var(--mono); letter-spacing: .08em; }
.status-label.ready, .status-label.available, .status-label.live { border-color: rgba(85, 242, 192, .45); color: var(--accent); }
.status-label.collecting, .status-label.stale, .status-label.ambiguous { border-color: rgba(230, 185, 92, .5); color: var(--amber); }
.status-label.error, .status-label.diverged { border-color: rgba(255, 118, 118, .5); color: var(--red); }

.posture-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr); gap: clamp(36px, 6vw, 90px); margin-top: 52px; }
.primary-route { align-self: end; }
.posture-value { margin: 14px 0 24px; font: 500 clamp(44px, 7vw, 94px)/.94 var(--mono); letter-spacing: -.07em; }
.posture-route-line { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 500 clamp(15px, 2vw, 23px)/1.25 var(--mono); }
.posture-route-line strong { color: var(--accent); white-space: nowrap; }
.explanation { max-width: 820px; margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.posture-facts { margin: 0; border-top: 1px solid var(--line); }
.posture-facts > div { display: grid; grid-template-columns: 128px 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.posture-facts dt { color: var(--muted); font: 10px/1.35 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.posture-facts dd { margin: 0; text-align: right; font: 500 12px/1.35 var(--mono); overflow-wrap: anywhere; }

.route-horizon { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); }
.route-horizon-head { align-items: center; }
.route-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 15px; border-top: 1px solid var(--line); }
.route-slot { min-width: 0; padding: 16px 20px 18px 0; border-right: 1px solid var(--line-soft); }
.route-slot + .route-slot { padding-left: 20px; }
.route-slot:last-child { border-right: 0; }
.route-slot-head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font: 10px/1 var(--mono); }
.route-slot-value { margin-top: 18px; font: 500 17px/1.25 var(--mono); overflow-wrap: anywhere; }
.route-slot-meta { margin-top: 8px; color: var(--muted); font: 10px/1.45 var(--mono); }

.schedule-rail-section, .decision-timeline-section, .route-candidates-section, .schedule-full-section,
.coverage-section, .reliability-section, .incident-section, .network-section, .evidence-section { padding: 40px 0 48px; }
.section-head { margin-bottom: 24px; }
.section-head.compact { align-items: center; }
.section-copy { max-width: 500px; color: var(--muted); font-size: 12px; line-height: 1.55; text-align: right; }
.rail-actions { display: flex; align-items: center; gap: 18px; }
.text-button { padding: 0; border: 0; border-bottom: 1px solid currentColor; color: var(--accent); background: none; font: 600 10px/1.4 var(--mono); cursor: pointer; }
.text-button:hover, .text-button:focus-visible { color: var(--text); outline: none; }

.rail-shell { position: relative; padding-top: 18px; }
.now-marker { position: absolute; top: 0; left: 16px; z-index: 2; color: var(--accent); font: 600 9px/1 var(--mono); letter-spacing: .08em; }
.now-marker::after { content: ""; position: absolute; top: 14px; left: 0; width: 1px; height: 118px; background: var(--accent); opacity: .65; }
.timeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(126px, 1fr); overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; scrollbar-color: var(--line) transparent; }
.timeline.full { grid-auto-columns: minmax(136px, 1fr); }
.timeline-item { min-height: 118px; padding: 14px 15px 16px; border: 0; border-top: 1px solid var(--line); border-right: 1px solid var(--line-soft); color: var(--text); background: transparent; text-align: left; scroll-snap-align: start; cursor: pointer; }
.timeline-item:hover, .timeline-item:focus-visible { background: rgba(255, 255, 255, .025); outline: none; }
.timeline-item.selected { border-top-color: var(--accent); background: linear-gradient(180deg, rgba(85, 242, 192, .09), transparent 74%); }
.timeline-item.new-round { animation: schedule-shift .22s ease-out both; }
.timeline-round { color: var(--muted); font: 10px/1 var(--mono); }
.timeline-validator { margin: 23px 0 7px; font: 600 18px/1 var(--mono); }
.timeline-context { color: var(--muted); font: 10px/1.45 var(--mono); }
.timeline-risk { margin-top: 7px; color: var(--amber); font: 9px/1 var(--mono); }

.decision-timeline { min-height: 400px; overflow-x: auto; border-top: 1px solid var(--line); }
.decision-chart { display: block; width: 100%; min-width: 960px; height: auto; color: var(--text); }
.chart-lane, .chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-label, .chart-axis, .chart-meta { fill: var(--muted); font-family: var(--mono); }
.chart-label { font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.chart-axis, .chart-meta { font-size: 9px; }
.chart-value { fill: var(--text); font: 600 11px var(--mono); }
.chart-proposer { fill: var(--surface-strong); }
.chart-sync { stroke: var(--accent); stroke-width: 3; }
.chart-sync-warn { stroke: var(--amber); stroke-width: 3; stroke-dasharray: 6 4; }
.chart-p95 { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.chart-point { fill: var(--accent); }
.chart-point.estimated { fill: var(--amber); }
.chart-match { fill: var(--accent); }
.chart-miss { stroke: var(--red); stroke-width: 3; }
.chart-unknown { fill: var(--muted); }
.chart-future { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 4; }
.chart-now { stroke: var(--text); stroke-width: 1.5; }
.chart-selection { fill: rgba(85, 242, 192, .055); }
.fresh-direct { fill: rgba(85, 242, 192, .22); }
.fresh-estimated { fill: rgba(230, 185, 92, .18); }
.fresh-stale { fill: rgba(135, 148, 153, .14); }
.selected-round-detail { display: flex; gap: 12px; align-items: center; min-height: 44px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font: 11px/1.5 var(--mono); }
.selected-round-detail strong { color: var(--text); font-weight: 500; }

.ranking-intro { border-bottom: 0; }
.ranking-filter { display: grid; grid-template-columns: minmax(430px, auto) minmax(230px, auto) auto minmax(220px, 1fr); gap: 16px; align-items: end; padding: 0 0 28px; border-bottom: 1px solid var(--line); }
.ranking-filter label { display: grid; gap: 9px; color: var(--muted); font: 700 11px/1 var(--sans); letter-spacing: .065em; }
.ranking-filter input { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 0; color: var(--text); background: transparent; color-scheme: dark; font: 550 13px/1 var(--sans); }
.ranking-filter input:focus { border-color: var(--accent); outline: none; }
.ranking-date-range { display: grid; grid-template-columns: 170px 170px auto; gap: 9px; align-items: end; }
.ranking-quick-range { display: grid; gap: 9px; color: var(--muted); font: 700 11px/1 var(--sans); letter-spacing: .065em; }
.ranking-quick-range > div { display: flex; gap: 6px; }
.ranking-quick-range button { min-height: 42px; min-width: 50px; padding: 0 11px; border: 1px solid var(--line); color: var(--muted); background: transparent; font: 700 11px/1 var(--sans); letter-spacing: .04em; cursor: pointer; }
.ranking-quick-range button:hover, .ranking-quick-range button:focus-visible { color: var(--text); border-color: var(--muted); outline: none; }
.ranking-quick-range button.active { border-color: var(--accent); color: var(--accent); background: rgba(85, 242, 192, .06); }
.ranking-filter-actions { display: flex; gap: 9px; }
.filter-submit, .filter-clear { min-height: 42px; padding: 0 14px; border: 1px solid var(--line); background: transparent; font: 700 11px/1 var(--sans); letter-spacing: .045em; cursor: pointer; }
.filter-submit { border-color: var(--accent); color: var(--bg); background: var(--accent); }
.filter-clear { color: var(--muted); }
.filter-submit:hover, .filter-submit:focus-visible { background: var(--text); border-color: var(--text); outline: none; }
.filter-clear:hover, .filter-clear:focus-visible { color: var(--text); border-color: var(--muted); outline: none; }
.ranking-filter-status { align-self: center; justify-self: end; color: var(--muted); font: 500 11px/1.4 var(--sans); text-align: right; }
.ranking-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.ranking-kpis > div { display: grid; gap: 9px; padding: 24px 24px 24px 0; border-right: 1px solid var(--line-soft); }
.ranking-kpis > div + div { padding-left: 24px; }
.ranking-kpis > div:last-child { border-right: 0; }
.ranking-kpis span, .ranking-kpis small { color: var(--muted); font: 650 11px/1.3 var(--sans); letter-spacing: .045em; }
.ranking-kpis strong { font: 520 clamp(28px, 3vw, 46px)/1 var(--mono); letter-spacing: -.055em; }
.ranking-kpis small { letter-spacing: 0; }
.provider-summary-section { padding: 30px 0 36px; }
.provider-summary-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.provider-summary-item { min-width: 0; padding: 17px 18px 0 0; border-right: 1px solid var(--line-soft); }
.provider-summary-item + .provider-summary-item { padding-left: 18px; }
.provider-summary-item:last-child { border-right: 0; }
.provider-summary-head { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: baseline; min-height: 38px; }
.provider-summary-head span { color: var(--accent); font: 600 10px/1 var(--mono); }
.provider-summary-head strong { font: 650 14px/1.25 var(--sans); overflow-wrap: anywhere; }
.provider-summary-bar { position: relative; height: 2px; margin: 16px 0 13px; background: var(--line-soft); overflow: hidden; }
.provider-summary-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--provider-share, 0%); background: var(--accent); }
.provider-summary-meta { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; color: var(--muted); font: 500 11px/1.3 var(--sans); }
.provider-summary-meta span:first-child { color: var(--text); }
.provider-summary-meta small { grid-column: 1 / -1; overflow-wrap: anywhere; }
.validator-ranking-section { padding: 42px 0 56px; }
.tested-provider-line { margin: 10px 0 0; color: var(--muted); font: 600 12px/1.45 var(--sans); letter-spacing: .015em; }
.tested-provider-line strong { color: var(--text); font-weight: 650; }
.validator-ranking-table { min-width: 1060px; }
.validator-ranking-table th:nth-child(1) { width: 90px; }
.validator-ranking-table th:nth-child(2) { width: 180px; }
.validator-ranking-table th:nth-child(3) { width: 170px; }
.validator-ranking-table th:nth-child(4) { width: 210px; }
.validator-ranking-table th:nth-child(6) { width: 130px; text-align: right; }
.validator-ranking-table td { height: 80px; }
.ranking-position { color: var(--accent); font: 600 11px/1 var(--mono); }
.ranking-validator, .ranking-server { display: grid; gap: 7px; }
.ranking-validator strong { font: 600 14px/1 var(--mono); }
.validator-name { color: var(--text); font: 650 12px/1.25 var(--sans); overflow-wrap: anywhere; }
.ranking-validator small, .ranking-server small { color: var(--muted); font: 500 11px/1.3 var(--sans); }
.ranking-server strong { font: 600 12px/1.35 var(--sans); }
.ranking-server.unavailable strong { color: var(--muted); }
.ranking-wins { text-align: right; color: var(--accent); font: 600 17px/1 var(--mono); }

.system-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.system-grid > div { display: grid; gap: 10px; padding: 18px 20px 18px 0; border-right: 1px solid var(--line-soft); }
.system-grid > div + div { padding-left: 20px; }
.system-grid > div:last-child { border-right: 0; }
.system-grid strong { font: 500 13px/1.3 var(--mono); }
.state-text.available, .state-text.live { color: var(--accent); }
.state-text.stale, .state-text.ambiguous { color: var(--amber); }
.state-text.error { color: var(--red); }

.coverage-list, .evidence-list, .incident-list { border-top: 1px solid var(--line); }
.coverage-row { display: grid; grid-template-columns: 42px minmax(180px, .45fr) 120px minmax(220px, .65fr) 1fr; gap: 18px; align-items: center; padding: 19px 0; border-bottom: 1px solid var(--line-soft); }
.coverage-index { color: var(--muted); font: 11px/1 var(--mono); }
.coverage-name { font-size: 14px; }
.coverage-decision { color: var(--text); font-size: 12px; line-height: 1.5; }
.pill { width: max-content; padding: 5px 8px; border: 1px solid var(--line); color: var(--muted); font: 600 9px/1 var(--mono); letter-spacing: .09em; }
.pill.available { border-color: rgba(85, 242, 192, .4); color: var(--accent); }
.pill.estimated { border-color: rgba(230, 185, 92, .45); color: var(--amber); }
.coverage-reason { color: var(--muted); font-size: 11px; line-height: 1.5; }

.geo-stage { position: relative; height: clamp(260px, 34vw, 440px); margin-bottom: 32px; overflow: hidden; border: 1px solid var(--line); background:
  linear-gradient(rgba(135, 148, 153, .08) 1px, transparent 1px),
  linear-gradient(90deg, rgba(135, 148, 153, .08) 1px, transparent 1px),
  radial-gradient(circle at 52% 42%, rgba(85, 242, 192, .04), transparent 45%);
  background-size: 12.5% 25%, 12.5% 25%, auto;
  touch-action: none;
  cursor: grab;
}
.geo-stage::after { content: "PUBLIC ENDPOINT OBSERVATIONS · NOT VALIDATOR HOST PROOF"; position: absolute; left: 14px; bottom: 12px; color: var(--muted); font: 9px/1 var(--mono); letter-spacing: .08em; }
.geo-stage.dragging { cursor: grabbing; }
.geo-viewport { position: absolute; inset: 0; transform-origin: 0 0; transition: transform .18s ease-out; }
.geo-stage.dragging .geo-viewport { transition: none; }
.geo-map-base { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .92; }
.geo-graticule path { fill: none; stroke: rgba(135, 148, 153, .08); stroke-width: 1; vector-effect: non-scaling-stroke; }
.geo-land path { fill: rgba(85, 242, 192, .035); }
.geo-coast path { fill: none; stroke: rgba(135, 148, 153, .22); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.geo-controls { position: absolute; z-index: 8; top: 12px; right: 12px; display: inline-flex; overflow: hidden; border: 1px solid var(--line); background: rgba(8, 12, 14, .82); backdrop-filter: blur(10px); }
.geo-controls button { min-width: 34px; height: 30px; padding: 0 10px; border: 0; border-right: 1px solid var(--line-soft); color: var(--text); background: transparent; font: 700 10px/1 var(--mono); cursor: pointer; }
.geo-controls button:last-child { border-right: 0; color: var(--muted); font-size: 8px; letter-spacing: .08em; }
.geo-controls button:hover, .geo-controls button:focus-visible { color: var(--accent); outline: none; background: rgba(85, 242, 192, .08); }
.geo-tooltip { position: absolute; z-index: 10; width: min(280px, calc(100% - 36px)); padding: 12px 13px; border: 1px solid rgba(85, 242, 192, .24); background: rgba(8, 12, 14, .94); box-shadow: 0 18px 60px rgba(0, 0, 0, .36); transform: translate(-6px, -100%); pointer-events: none; }
.geo-tooltip strong { display: block; margin-bottom: 10px; color: var(--text); font: 700 11px/1.25 var(--mono); }
.geo-tooltip span { display: grid; grid-template-columns: minmax(78px, .7fr) minmax(0, 1fr); gap: 10px; padding: 6px 0; border-top: 1px solid var(--line-soft); color: var(--text); font: 10px/1.35 var(--mono); overflow-wrap: anywhere; }
.geo-tooltip em { color: var(--muted); font-style: normal; text-transform: uppercase; letter-spacing: .06em; }
.geo-label { position: absolute; top: 12px; color: var(--muted); opacity: .65; font: 9px/1 var(--mono); }
.geo-americas { left: 12%; } .geo-europe { left: 45%; } .geo-asia { left: 76%; }
.geo-points { position: absolute; inset: 0; }
.geo-point { position: absolute; width: 7px; height: 7px; border: 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(85, 242, 192, .08); opacity: .72; transform: translate(-50%, -50%); transition: transform .18s ease, opacity .18s ease; cursor: help; }
.geo-point:hover, .geo-point:focus-visible { z-index: 2; transform: translate(-50%, -50%) scale(1.8); opacity: 1; outline: none; }

/* Interactive network atlas: Leaflet is bundled locally; only cartographic tiles are remote. */
.geo-stage[data-geo-kind] {
  height: clamp(390px, 43vw, 580px);
  margin-bottom: 32px;
  border: 1px solid rgba(129, 153, 164, .2);
  background: #09131a;
  box-shadow: inset 0 0 0 1px rgba(85, 242, 192, .025), 0 20px 70px rgba(0, 0, 0, .18);
  cursor: default;
  touch-action: auto;
}
.live-geo-stage[data-geo-kind] { height: clamp(420px, 45vw, 620px); margin-bottom: 0; }
.geo-stage[data-geo-kind]::after { content: none; }
.geo-leaflet-canvas { position: absolute; inset: 0; z-index: 1; background: #09131a; }
.geo-stage .leaflet-container { font-family: var(--mono); }
.geo-stage .leaflet-tile-pane { filter: saturate(.64) brightness(.76) contrast(1.08); }
.geo-stage .leaflet-control-attribution {
  margin: 0 10px 8px 0 !important;
  padding: 3px 6px !important;
  color: rgba(184, 199, 205, .48) !important;
  background: rgba(4, 9, 12, .72) !important;
  font: 7px/1.25 var(--mono) !important;
  backdrop-filter: blur(8px);
}
.geo-stage .leaflet-control-attribution a { color: rgba(85, 242, 192, .58); }
.geo-controls-leaflet { z-index: 800; top: 14px; right: 14px; border-color: rgba(184, 199, 205, .18); background: rgba(5, 11, 15, .84); }
.geo-controls-leaflet button { min-width: 38px; height: 34px; }
.geo-controls-leaflet button:last-child { min-width: 64px; }
.geo-map-legend {
  position: absolute;
  z-index: 790;
  top: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  max-width: calc(100% - 220px);
  padding: 9px 11px;
  border: 1px solid rgba(184, 199, 205, .14);
  color: rgba(225, 235, 238, .72);
  background: rgba(5, 11, 15, .8);
  backdrop-filter: blur(10px);
  font: 8px/1 var(--mono);
  letter-spacing: .055em;
  text-transform: uppercase;
  pointer-events: none;
}
.geo-map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.geo-legend-dot { width: 7px; height: 7px; border-radius: 50%; background: #55f2c0; box-shadow: 0 0 0 4px rgba(85, 242, 192, .08); }
.geo-legend-dot.observed { width: 5px; height: 5px; opacity: .55; }
.geo-legend-dot.confirmed { border: 1px solid #55f2c0; background: #071015; box-shadow: 0 0 0 4px rgba(85, 242, 192, .1); }
.geo-map-evidence {
  position: absolute;
  z-index: 790;
  left: 14px;
  bottom: 11px;
  max-width: calc(100% - 250px);
  padding: 5px 7px;
  color: rgba(184, 199, 205, .55);
  background: rgba(4, 9, 12, .7);
  font: 7px/1.2 var(--mono);
  letter-spacing: .075em;
  pointer-events: none;
}
.geo-confirmed-marker, .geo-network-marker { border: 0; background: transparent; }
.geo-confirmed-marker span, .geo-network-marker span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 1px solid rgba(85, 242, 192, .9);
  border-radius: 50%;
  color: #e9f3ef;
  background: rgba(5, 14, 17, .9);
  box-shadow: 0 0 0 6px rgba(85, 242, 192, .08), 0 8px 24px rgba(0, 0, 0, .32);
  font: 700 9px/1 var(--mono);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.geo-network-marker span { border-color: rgba(85, 242, 192, .7); background: rgba(7, 17, 21, .92); }
.geo-network-marker.single span { background: #55f2c0; box-shadow: 0 0 0 5px rgba(85, 242, 192, .1); }
.geo-confirmed-marker:hover span, .geo-confirmed-marker:focus span,
.geo-network-marker:hover span, .geo-network-marker:focus span {
  transform: scale(1.1);
  background: rgba(9, 29, 29, .96);
  box-shadow: 0 0 0 9px rgba(85, 242, 192, .12), 0 12px 30px rgba(0, 0, 0, .4);
}
.leaflet-tooltip.geo-tooltip {
  width: min(238px, calc(100vw - 40px));
  padding: 10px 11px;
  border: 1px solid rgba(85, 242, 192, .28);
  border-radius: 0;
  color: var(--text);
  background: rgba(5, 11, 14, .96);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .5);
  backdrop-filter: blur(14px);
}
.leaflet-tooltip.geo-tooltip::before { border-top-color: rgba(85, 242, 192, .28); }
.leaflet-tooltip.geo-tooltip strong { margin-bottom: 7px; font-size: 10px; }
.leaflet-tooltip.geo-tooltip span { grid-template-columns: 112px minmax(0, 1fr); padding: 5px 0; font-size: 8px; }
.geo-map-error { display: grid; height: 100%; margin: 0; place-items: center; color: var(--muted); font: 10px/1.4 var(--mono); }

@media (max-width: 720px) {
  .geo-stage[data-geo-kind], .live-geo-stage[data-geo-kind] { height: 410px; }
  .geo-map-legend { max-width: calc(100% - 30px); top: auto; bottom: 38px; }
  .geo-map-evidence { display: none; }
  .geo-controls-leaflet { top: 12px; right: 12px; }
}

.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 830px; border-collapse: collapse; font: 500 13px/1.45 var(--sans); }
th { padding: 12px 16px 12px 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .065em; text-align: left; border-bottom: 1px solid var(--line); }
td { padding: 15px 16px 15px 0; border-bottom: 1px solid var(--line-soft); }
td.good { color: var(--accent); }
td.warn { color: var(--amber); }
.empty { padding: 22px 0; color: var(--muted); font-size: 12px; }
.empty code { color: var(--text); font-family: var(--mono); }

.incident-row, .evidence-row { width: 100%; display: grid; gap: 18px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line-soft); color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.incident-row { grid-template-columns: 120px 1fr 160px 120px; }
.evidence-row { grid-template-columns: 130px 1fr 180px 130px; }
.incident-row:hover, .incident-row:focus-visible, .evidence-row:hover, .evidence-row:focus-visible { color: var(--accent); outline: none; }
.incident-row span, .evidence-row span { font: 11px/1.4 var(--mono); overflow-wrap: anywhere; }
.classification { color: var(--muted); }

.drawer { position: fixed; inset: 0 0 0 auto; z-index: 50; width: min(520px, 92vw); padding: 30px clamp(22px, 4vw, 52px); border-left: 1px solid var(--line); background: #0b1012; transform: translateX(102%); transition: transform .25s ease-out; overflow-y: auto; }
.drawer.open { transform: translateX(0); }
.drawer-close { float: right; padding: 0 0 12px; border: 0; color: var(--muted); background: none; font: 10px/1 var(--mono); cursor: pointer; }
.drawer dl { margin: 36px 0 0; }
.drawer dt { margin-top: 20px; color: var(--muted); font: 9px/1 var(--mono); letter-spacing: .1em; }
.drawer dd { margin: 7px 0 0; padding-bottom: 15px; border-bottom: 1px solid var(--line-soft); font: 12px/1.5 var(--mono); overflow-wrap: anywhere; }
.drawer-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); }

@keyframes schedule-shift { from { opacity: .6; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes conveyor-arrival { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes stat-tick { from { opacity: .45; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media (max-width: 900px) {
  .ranking-filter { grid-template-columns: 1fr 1fr; }
  .ranking-date-range { grid-column: 1 / -1; grid-template-columns: 1fr 1fr auto; }
  .ranking-filter-status { justify-self: start; text-align: left; }
  .provider-summary-list { grid-template-columns: repeat(2, 1fr); }
  .provider-summary-item:nth-child(2n) { border-right: 0; }
  .provider-summary-item:nth-child(n+3) { padding-top: 22px; border-top: 1px solid var(--line-soft); }
  .location-summary { grid-template-columns: repeat(2, 1fr); }
  .location-summary-item:nth-child(2n) { border-right: 0; }
  .location-summary-item:nth-child(n+3) { padding-top: 24px; border-top: 1px solid var(--line-soft); }
  .posture-grid { grid-template-columns: 1fr; gap: 38px; }
  .route-strip { grid-template-columns: 1fr; }
  .route-slot, .route-slot + .route-slot { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .route-slot:last-child { border-bottom: 0; }
  .coverage-row { grid-template-columns: 34px 1fr auto; gap: 12px; }
  .coverage-decision, .coverage-reason { grid-column: 2 / -1; }
}
@media (max-width: 680px) {
  .topbar { height: 56px; }
  .workspace-nav { top: 56px; }
  .system-state .muted, .system-state #system-state { display: none; }
  .posture-heading, .section-head { align-items: start; flex-direction: column; }
  .flow-accumulator { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow-accumulator > div, .flow-accumulator > div + div { padding: 12px 7px; }
  .flow-accumulator > small { display: none; }
  .flow-accumulator span { font-size: 9px; }
  .flow-accumulator strong { font-size: clamp(15px, 4.3vw, 19px); }
  .round-conveyor-frame { height: 420px; }
  .round-stream { padding: 5px 0; }
  .stream-row, .stream-now { grid-template-columns: 72px 20px minmax(0, 1fr); }
  .stream-row { min-height: 36px; }
  .stream-block { grid-template-columns: minmax(0, 1fr) auto; gap: 5px; margin-left: 4px; padding: 3px 4px 3px 9px; }
  .stream-block-state, .stream-validator span, .stream-validator small { display: none; }
  .stream-block-main strong, .stream-validator strong { font-size: 11px; }
  .stream-block-main strong { overflow: hidden; text-overflow: ellipsis; }
  .stream-validator { display: block; }
  .stream-now { height: 30px; }
  .stream-now small { padding-left: 10px; font-size: 9px; }
  .conveyor-edge { height: 20px; }
  .stream-legend { gap: 12px; }
  .stream-legend .muted { width: 100%; margin-left: 0; }
  .location-ranking-head { align-items: start; flex-direction: column; gap: 8px; }
  .location-ranking-head span:last-child { text-align: left; }
  .location-summary { grid-template-columns: 1fr; }
  .location-summary-item, .location-summary-item + .location-summary-item { padding: 22px 0 0; border-top: 1px solid var(--line-soft); border-right: 0; }
  .location-summary-item:first-child { border-top: 0; }
  .location-summary-top { min-height: 0; }
  .candidate-empty { min-height: 60px; }
  .ranking-filter { grid-template-columns: 1fr; }
  .ranking-date-range { grid-template-columns: 1fr 1fr; }
  .ranking-date-range .filter-submit { grid-column: 1 / -1; }
  .ranking-quick-range > div { display: grid; grid-template-columns: repeat(4, 1fr); }
  .ranking-filter-actions { width: 100%; }
  .ranking-filter-actions button { flex: 1; }
  .provider-summary-list { grid-template-columns: 1fr; }
  .provider-summary-item, .provider-summary-item + .provider-summary-item { padding: 18px 0 0; border-top: 1px solid var(--line-soft); border-right: 0; }
  .provider-summary-item:first-child { border-top: 0; }
  .ranking-kpis > div, .ranking-kpis > div + div { padding: 18px 10px 18px 0; }
  .ranking-kpis > div + div { padding-left: 10px; }
  .ranking-kpis strong { font-size: clamp(22px, 8vw, 34px); }
  .ranking-kpis small { font-size: 9px; }
  .posture-status { justify-items: start; text-align: left; }
  .section-copy { text-align: left; }
  .posture-value { font-size: clamp(40px, 16vw, 68px); }
  .posture-route-line { align-items: start; flex-direction: column; }
  .posture-facts > div { grid-template-columns: 110px 1fr; }
  .system-grid { grid-template-columns: 1fr; }
  .system-grid > div, .system-grid > div + div { padding: 15px 0; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .rail-actions { width: 100%; justify-content: space-between; }
  .incident-row, .evidence-row { grid-template-columns: 92px 1fr; }
  .incident-row span:nth-child(n+3), .evidence-row span:nth-child(n+3) { display: none; }
  .geo-label { display: none; }
}
