:root {
  --acid: #d9fb1e;
  --acid-deep: #8fa80b;
  --ink: #0b0d09;
  --panel: #11140e;
  --panel-2: #171a14;
  --paper: #f3f2ea;
  --white: #fff;
  --muted: #8f9587;
  --muted-light: #b8bdaf;
  --rule: #34392f;
  --alert: #f05a3c;
  --blue: #6ab7ff;
  --sans: "Hanken Grotesk", Arial, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); color: var(--paper); }
body.receipts-page {
  min-width: 320px;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--acid); color: var(--ink); }
a { color: inherit; }
button { color: inherit; font: inherit; }
code { font-family: var(--mono); font-size: .9em; }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }

.receipts-page main {
  width: min(1540px, calc(100% - 28px));
  margin: 0 auto;
  padding: 10px 0 18px;
}

.flow-terminal {
  min-height: calc(100svh - 112px);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--panel);
  box-shadow: 7px 7px 0 var(--acid);
}

.terminal-head,
.terminal-title,
.panel-head,
.terminal-foot,
.stat-grid,
.route-summary,
.rwa-stat-grid,
.rwa-sources {
  font-family: var(--mono);
  text-transform: uppercase;
}

.terminal-head {
  min-height: 44px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .07em;
}

.terminal-brand {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.terminal-brand img { width: 50px; height: 27px; object-fit: contain; }
.terminal-brand span { display: flex; align-items: baseline; gap: 9px; }
.terminal-brand strong { color: var(--acid); font-size: 10px; letter-spacing: .1em; }
.terminal-brand small { color: var(--muted); font-size: 7px; }

.snapshot-line { display: flex; align-items: center; gap: 15px; white-space: nowrap; }
.state-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--muted);
}
.state-dot.is-verified::before { background: var(--acid); box-shadow: 0 0 0 3px rgba(217,251,30,.14); }
.state-dot.is-older::before { background: #f4b93c; box-shadow: none; }
.state-dot.is-failed::before { background: var(--alert); box-shadow: none; }
.terminal-links { justify-self: end; display: flex; gap: 14px; }
.terminal-links a { color: var(--acid); text-underline-offset: 3px; }

.terminal-title {
  min-height: 85px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  border-bottom: 1px solid var(--rule);
  background: var(--panel-2);
}
.terminal-title > div { padding: 11px 15px; }
.terminal-title p { margin: 0 0 5px; color: var(--muted); font-size: 7px; font-weight: 700; letter-spacing: .12em; }
.terminal-title h1 {
  margin: 0;
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(24px, 3vw, 45px);
  font-weight: 920;
  letter-spacing: -.06em;
  line-height: .82;
}

.view-tabs { display: flex; align-items: stretch; border-left: 1px solid var(--rule); }
.view-tab {
  min-width: 96px;
  padding: 0 14px;
  appearance: none;
  border: 0;
  border-right: 1px solid var(--rule);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font: 750 9px/1 var(--mono);
  letter-spacing: .08em;
}
.view-tab:last-child { border-right: 0; }
.view-tab span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 7px; }
.view-tab:hover { color: var(--acid); }
.view-tab.is-active { background: var(--acid); color: var(--ink); }
.view-tab.is-active span { color: var(--ink); }

.terminal-panel[hidden] { display: none !important; }
.terminal-panel { min-height: 640px; }

.consumption-hero {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) auto;
  grid-template-rows: auto auto auto;
  gap: 12px 30px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
}
.consumption-copy > span,
.consumption-copy p,
.consumption-counts,
.track-start,
.track-end {
  font-family: var(--mono);
  text-transform: uppercase;
}
.consumption-copy > span { color: var(--acid); font-size: 8px; font-weight: 750; letter-spacing: .1em; }
.consumption-copy h2 {
  margin: 5px 0 2px;
  font-size: clamp(22px, 3.1vw, 47px);
  font-weight: 920;
  letter-spacing: -.055em;
  line-height: .9;
}
.consumption-copy p { margin: 0; color: var(--muted); font-size: 7px; letter-spacing: .06em; }
.consumption-hero > strong {
  align-self: end;
  color: var(--acid);
  font-family: var(--mono);
  font-size: clamp(38px, 6vw, 86px);
  font-weight: 800;
  letter-spacing: -.075em;
  line-height: .78;
}
.consumption-track {
  position: relative;
  grid-column: 1 / -1;
  height: 37px;
  overflow: hidden;
  border: 1px solid var(--acid);
  background: var(--panel-2);
}
.consumption-track i {
  width: 0;
  height: 100%;
  display: block;
  background: var(--acid);
  transition: width 700ms cubic-bezier(.2,.8,.2,1);
}
.track-start,
.track-end {
  position: absolute;
  top: 50%;
  z-index: 2;
  color: var(--paper);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: .08em;
  transform: translateY(-50%);
  mix-blend-mode: difference;
}
.track-start { left: 10px; }
.track-end { right: 10px; }
.consumption-counts {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted-light);
  font-size: 7px;
  letter-spacing: .05em;
}
.consumption-counts b { color: var(--paper); font-size: 9px; }

.stat-grid,
.rwa-stat-grid {
  display: grid;
  border-bottom: 1px solid var(--rule);
}
.stat-grid { grid-template-columns: 1.08fr .9fr 1.08fr .9fr; }
.stat-grid > div,
.rwa-stat-grid > div {
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid var(--rule);
  background: var(--panel-2);
}
.stat-grid > div:last-child,
.rwa-stat-grid > div:last-child { border-right: 0; }
.stat-grid span,
.rwa-stat-grid span { display: block; color: var(--muted); font-size: 6px; font-weight: 750; letter-spacing: .08em; }
.stat-grid strong,
.rwa-stat-grid strong { display: block; margin-top: 6px; font-family: var(--sans); font-size: clamp(18px, 2vw, 30px); font-weight: 900; letter-spacing: -.05em; line-height: .9; white-space: nowrap; }
.stat-grid small,
.rwa-stat-grid small { display: block; margin-top: 5px; color: var(--muted-light); font-size: 6px; letter-spacing: .04em; }
.stat-grid__acid { background: var(--acid) !important; color: var(--ink); }
.stat-grid__acid span,
.stat-grid__acid small { color: var(--ink) !important; }

.dead-workbench {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(520px, 1.08fr) minmax(430px, .92fr);
}
.claim-chart-card,
.claim-ledger,
.rwa-chart-card,
.rwa-run { min-width: 0; background: var(--panel); }
.claim-chart-card,
.rwa-chart-card { border-right: 1px solid var(--rule); }
.panel-head {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--rule);
  background: var(--panel-2);
}
.panel-head span { display: block; color: var(--paper); font-size: 8px; font-weight: 750; letter-spacing: .08em; }
.panel-head small { display: block; margin-top: 4px; color: var(--muted); font-size: 6px; letter-spacing: .05em; }
.panel-head > strong { color: var(--acid); font: 750 8px/1.2 var(--mono); }

.metric-toggles { display: flex; }
.metric-toggle {
  padding: 6px 8px;
  appearance: none;
  border: 1px solid var(--rule);
  border-right: 0;
  background: var(--ink);
  color: var(--muted-light);
  cursor: pointer;
  font: 700 6px/1 var(--mono);
  letter-spacing: .05em;
}
.metric-toggle:last-child { border-right: 1px solid var(--rule); }
.metric-toggle:hover,
.metric-toggle.is-active { background: var(--acid); color: var(--ink); }

#claimChart,
#rwaChart { width: 100%; display: block; }
#claimChart { height: 274px; padding: 8px 10px 0; }
.chart-grid-line { stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-axis-label { fill: var(--muted); font: 12px var(--mono); }
.chart-area { fill: rgba(217,251,30,.08); }
.chart-line { fill: none; stroke: var(--acid); stroke-width: 4; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.chart-dot { fill: var(--ink); stroke: var(--acid); stroke-width: 3; vector-effect: non-scaling-stroke; }
.chart-dot.is-selected { fill: var(--acid); stroke: var(--paper); }
.chart-value-label { fill: var(--paper); font: 700 13px var(--mono); }
.chart-foot {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 11px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font: 650 6px/1.3 var(--mono);
  letter-spacing: .05em;
}
.chart-foot a { color: var(--acid); text-underline-offset: 3px; }

.claim-ledger { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.claim-table-wrap { min-height: 0; max-height: 310px; overflow: auto; }
.claim-table { width: 100%; border-collapse: collapse; font-family: var(--mono); table-layout: fixed; }
.claim-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 7px 8px;
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
  color: var(--muted);
  font-size: 6px;
  letter-spacing: .05em;
  text-align: right;
}
.claim-table th:first-child { width: 24%; text-align: left; }
.claim-table th:last-child { width: 8%; }
.claim-table td { padding: 8px; border-bottom: 1px solid var(--rule); color: var(--muted-light); font-size: 7px; text-align: right; white-space: nowrap; }
.claim-table td:first-child { text-align: left; }
.claim-table tbody tr { cursor: pointer; }
.claim-table tbody tr:hover,
.claim-table tbody tr.is-selected { background: #202617; }
.claim-table tbody tr.is-selected td { color: var(--paper); }
.claim-table button {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.claim-table a { color: var(--acid); font-weight: 750; }
.claim-detail {
  min-height: 90px;
  padding: 10px 11px;
  border-top: 1px solid var(--rule);
  background: var(--ink);
  color: var(--muted-light);
  font: 600 7px/1.45 var(--mono);
}
.claim-detail strong { color: var(--acid); }
.claim-detail__legs { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 8px; border: 1px solid var(--rule); }
.claim-detail__legs span { min-width: 0; padding: 7px; border-right: 1px solid var(--rule); }
.claim-detail__legs span:last-child { border-right: 0; }
.claim-detail__legs b,
.claim-detail__legs small { display: block; overflow-wrap: anywhere; }
.claim-detail__legs b { color: var(--paper); font-size: 7px; }
.claim-detail__legs small { margin-top: 4px; color: var(--muted); font-size: 6px; }

.route-summary {
  display: grid;
  grid-template-columns: auto minmax(420px, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.route-summary > div { min-width: 0; padding: 11px 13px; border-right: 1px solid var(--rule); }
.route-summary > div:last-child { border-right: 0; }
.route-summary span { display: block; color: var(--muted); font-size: 6px; letter-spacing: .08em; }
.route-summary strong { display: block; margin-top: 5px; color: var(--paper); font: 800 18px/1 var(--mono); letter-spacing: -.04em; }
.route-summary small { display: block; margin-top: 4px; color: var(--muted-light); font-size: 6px; }
.route-summary__open strong { color: var(--alert); }
.route-allocation-bar { height: 100%; display: flex; padding: 0 !important; }
.route-allocation-bar span { min-width: 0; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--ink); background: var(--acid); color: var(--ink); font-size: 7px; font-weight: 800; }
.route-allocation-bar span:nth-child(2) { background: #b9d815; }
.route-allocation-bar span:nth-child(3) { background: #899e17; color: var(--paper); }
.route-allocation-bar span:nth-child(4) { background: #657315; color: var(--paper); }
.route-allocation-bar span:nth-child(5) { background: #3e4714; color: var(--paper); }

.router-workbench { min-height: 520px; display: grid; grid-template-columns: minmax(720px, 1fr) minmax(310px, .36fr); border-bottom: 1px solid var(--rule); }
.route-board { min-width: 0; display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.route-board__head { min-height: 43px; display: grid; grid-template-columns: minmax(250px, 1.3fr) .72fr .82fr 1fr; align-items: center; border-bottom: 1px solid var(--rule); background: var(--panel-2); color: var(--muted); font: 700 7px/1.2 var(--mono); letter-spacing: .07em; }
.route-board__head > div:first-child { padding: 8px 11px; }
.route-board__head > div:first-child span { display: block; color: var(--paper); font-size: 9px; }
.route-board__head small { display: block; margin-top: 3px; font-size: 6px; }
.route-columns { grid-column: 2 / 5; display: grid; grid-template-columns: .72fr .82fr 1fr; }
.route-columns span { padding: 0 10px; }
.route-list { min-height: 0; margin: 0; padding: 0; list-style: none; }
.route-list li { min-height: 20%; }
.route-loading { padding: 24px; color: var(--muted); font: 650 9px/1.4 var(--mono); }
.route-button { width: 100%; min-height: 100%; display: grid; grid-template-columns: minmax(250px, 1.3fr) .72fr .82fr 1fr; align-items: stretch; padding: 0; appearance: none; border: 0; border-bottom: 1px solid var(--rule); background: var(--panel); color: var(--paper); cursor: pointer; text-align: left; }
.route-list li:last-child .route-button { border-bottom: 0; }
.route-button:hover { background: #171d13; }
.route-button[aria-pressed="true"] { background: #202617; box-shadow: inset 6px 0 0 var(--acid); }
.route-ident,
.route-cell { min-width: 0; padding: 8px 10px; }
.route-cell { display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--rule); }
.route-ident__line { display: flex; align-items: center; gap: 8px; }
.route-share { min-width: 32px; padding: 4px 5px; background: var(--acid); color: var(--ink); text-align: center; font: 800 8px/1 var(--mono); }
.route-ident strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.allocation-line { height: 4px; margin-top: 8px; background: var(--rule); }
.allocation-line i { height: 100%; display: block; background: var(--acid); }
.route-cell span { color: var(--muted); font: 700 6px/1.2 var(--mono); letter-spacing: .06em; }
.route-cell strong { display: block; margin-top: 4px; font: 750 9px/1.2 var(--mono); overflow-wrap: anywhere; }
.route-cell small { display: block; margin-top: 3px; color: var(--muted); font: 550 6px/1.3 var(--mono); }
.route-cell .result-verified { color: var(--acid); }
.route-cell .result-open { color: var(--alert); }
.route-legend { margin: 0; padding: 7px 11px; border-top: 1px solid var(--rule); color: var(--muted); font: 500 6px/1.35 var(--mono); }
.route-legend strong { color: var(--paper); }

.route-inspector { min-width: 0; padding: 13px 14px; display: grid; grid-template-rows: auto auto auto auto minmax(0,1fr) auto; border-left: 1px solid var(--rule); background: var(--ink); color: var(--paper); }
.inspector-head { display: flex; justify-content: space-between; color: var(--muted); font: 700 7px/1 var(--mono); letter-spacing: .08em; }
.inspector-head strong { color: var(--acid); font-size: 10px; }
.route-inspector h2 { margin: 8px 0 10px; color: var(--acid); font-size: clamp(21px, 2vw, 32px); font-weight: 920; letter-spacing: -.055em; line-height: .88; }
.inspector-flow { display: flex; align-items: center; gap: 7px; padding: 8px 0 10px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font: 650 7px/1.3 var(--mono); }
.inspector-flow b { color: var(--acid); font-size: 10px; }
.inspector-flow i { color: var(--muted); font-style: normal; }
.inspector-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.inspector-facts div { min-width: 0; padding: 8px 6px 8px 0; border-bottom: 1px solid var(--rule); }
.inspector-facts div:nth-child(2n) { padding-left: 7px; border-left: 1px solid var(--rule); }
.inspector-facts dt { color: var(--muted); font: 700 6px/1.2 var(--mono); letter-spacing: .07em; }
.inspector-facts dd { margin: 4px 0 0; font: 650 8px/1.35 var(--mono); overflow-wrap: anywhere; }
.inspector-note { align-self: start; max-height: 82px; margin: 9px 0 0; overflow: auto; color: var(--muted-light); font: 500 7px/1.45 var(--mono); }
.inspector-note strong { color: var(--alert); }
.inspector-links { display: flex; flex-wrap: wrap; gap: 8px 12px; padding-top: 9px; }
.inspector-links a { color: var(--acid); font: 700 7px/1 var(--mono); text-underline-offset: 3px; }

.effect-rail { min-height: 62px; display: grid; grid-template-columns: 1fr 1.05fr 1.5fr auto; background: var(--panel-2); }
.effect-rail > div,
.effect-rail > a { min-width: 0; padding: 9px 11px; border-right: 1px solid var(--rule); }
.effect-rail > a { display: flex; align-items: center; border-right: 0; background: var(--acid); color: var(--ink); font: 800 7px/1.3 var(--mono); text-align: center; text-decoration: none; }
.effect-rail > a:hover { background: var(--paper); }
.effect-rail span { display: block; color: var(--muted); font: 700 6px/1.2 var(--mono); letter-spacing: .06em; }
.effect-rail strong { display: inline-block; margin-top: 6px; font-size: 13px; }
.effect-rail small { margin-left: 7px; color: var(--muted); font: 600 7px/1.25 var(--mono); }

.rwa-hero {
  min-height: 137px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--acid);
  color: var(--ink);
}
.rwa-hero > div:first-child > span { font: 800 8px/1 var(--mono); letter-spacing: .08em; }
.rwa-hero h2 { margin: 8px 0 4px; font-size: clamp(34px, 5.4vw, 76px); font-weight: 920; letter-spacing: -.075em; line-height: .78; }
.rwa-hero h2 b { font: inherit; }
.rwa-hero p { margin: 0; font: 750 8px/1.3 var(--mono); letter-spacing: .04em; }
.rwa-status { min-width: 218px; padding: 14px; border: 1px solid var(--ink); font-family: var(--mono); }
.rwa-status b,
.rwa-status span,
.rwa-status small { display: block; }
.rwa-status b { font-size: 18px; }
.rwa-status span { margin-top: 6px; font-size: 7px; font-weight: 750; }
.rwa-status small { margin-top: 14px; font-size: 6px; }

.rwa-stat-grid { grid-template-columns: repeat(5, 1fr); }
.rwa-stat-grid strong.is-positive { color: var(--acid); }
.rwa-stat-grid strong.is-negative { color: var(--alert); }

.rwa-workbench { min-height: 465px; display: grid; grid-template-columns: minmax(580px, 1.14fr) minmax(340px, .86fr); border-bottom: 1px solid var(--rule); }
#rwaChart { height: 310px; padding: 6px 10px 0; }
.rwa-area { fill: rgba(106,183,255,.08); }
.rwa-line { fill: none; stroke: var(--blue); stroke-width: 4; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.rwa-dot { fill: var(--panel); stroke: var(--blue); stroke-width: 3; vector-effect: non-scaling-stroke; }
.rwa-dot:last-of-type { fill: var(--acid); stroke: var(--paper); }
.rwa-milestones { display: grid; grid-template-columns: repeat(9, 1fr); border-top: 1px solid var(--rule); }
.rwa-milestones span { min-width: 0; padding: 7px 5px; border-right: 1px solid var(--rule); color: var(--muted); font: 600 6px/1.3 var(--mono); text-align: center; }
.rwa-milestones span:last-child { border-right: 0; }
.rwa-milestones b { display: block; margin-top: 4px; color: var(--paper); font-size: 7px; }

.rwa-run { border-left: 0; }
.run-flow { padding: 13px 14px; }
.run-flow > div { padding: 10px; border: 1px solid var(--rule); background: var(--panel-2); }
.run-flow > i { display: block; height: 18px; color: var(--muted); font: normal 800 11px/18px var(--mono); text-align: center; }
.run-flow span,
.run-flow strong,
.run-flow small { display: block; }
.run-flow span { color: var(--muted); font: 700 6px/1 var(--mono); letter-spacing: .07em; }
.run-flow strong { margin-top: 5px; font-size: 16px; letter-spacing: -.03em; }
.run-flow small { margin-top: 4px; color: var(--muted-light); font: 600 6px/1.3 var(--mono); }
.run-flow__result { border-color: var(--acid) !important; }
.run-flow__result strong { color: var(--acid); }
.run-boundary { margin: 0 14px; padding: 9px; border-left: 3px solid var(--alert); background: #22140f; color: #e4b6a8; font: 600 7px/1.45 var(--mono); }
.run-links { display: flex; flex-wrap: wrap; gap: 9px 13px; padding: 12px 14px 14px; }
.run-links a { color: var(--acid); font: 700 7px/1 var(--mono); text-underline-offset: 3px; }

.rwa-sources { min-height: 54px; display: grid; grid-template-columns: auto auto auto 1fr; align-items: center; gap: 16px; padding: 8px 12px; background: var(--ink); color: var(--muted); font-size: 6px; }
.rwa-sources > span { color: var(--paper); white-space: nowrap; }
.rwa-sources a { color: var(--acid); white-space: nowrap; text-underline-offset: 3px; }
.rwa-sources p { margin: 0; text-align: right; }

.proof-grid { min-height: 640px; display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-card { min-width: 0; padding: 20px; border-right: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.proof-card:last-child { border-right: 0; }
.proof-card > span { color: #676a62; font: 750 7px/1 var(--mono); letter-spacing: .08em; }
.proof-card > strong { display: block; margin-top: clamp(24px, 6vh, 65px); font-size: clamp(26px, 3.2vw, 48px); font-weight: 920; letter-spacing: -.065em; line-height: .82; overflow-wrap: anywhere; }
.proof-card > em { display: block; margin-top: 8px; color: #676a62; font: 700 7px/1 var(--mono); letter-spacing: .07em; font-style: normal; }
.proof-card > p { margin: 22px 0 0; color: #5e615a; font: 550 8px/1.55 var(--mono); }
.proof-card > a,
.proof-card nav a { display: block; width: fit-content; margin-top: 17px; font: 750 7px/1.2 var(--mono); text-underline-offset: 3px; }
.proof-card--acid { background: var(--acid); }
.proof-card--dark { background: var(--ink); color: var(--paper); }
.proof-card--dark > span,
.proof-card--dark > em,
.proof-card--dark > p { color: var(--muted-light); }
.proof-card--dark > strong,
.proof-card--dark > a { color: var(--acid); }
.proof-rules { margin: 28px 0 0; padding: 0; list-style: none; }
.proof-rules li { padding: 11px 0; border-top: 1px solid #bfc0b8; }
.proof-rules b,
.proof-rules span { display: block; font: 700 8px/1.35 var(--mono); }
.proof-rules span { margin-top: 4px; color: #63665f; font-weight: 550; }

.terminal-foot {
  min-height: 43px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 8px 11px;
  border-top: 1px solid var(--rule);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 6px;
  font-weight: 650;
  letter-spacing: .035em;
}
.terminal-foot span { color: var(--paper); white-space: nowrap; }
.terminal-foot p { margin: 0; text-align: right; }
.noscript { margin: 14px 0 0; padding: 16px; border: 1px solid var(--acid); background: var(--panel); color: var(--paper); font: 600 10px/1.5 var(--mono); }

@media (max-width: 1150px) {
  .terminal-head { grid-template-columns: 1fr auto; }
  .snapshot-line { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; padding-top: 6px; border-top: 1px solid var(--rule); }
  .terminal-title { grid-template-columns: 1fr; }
  .view-tabs { min-height: 55px; border-top: 1px solid var(--rule); border-left: 0; }
  .view-tab { flex: 1; }
  .dead-workbench,
  .rwa-workbench { grid-template-columns: 1fr; }
  .claim-chart-card,
  .rwa-chart-card { border-right: 0; border-bottom: 1px solid var(--rule); }
  .claim-table-wrap { max-height: 390px; }
  .router-workbench { grid-template-columns: minmax(650px, 1fr) 315px; overflow-x: auto; }
  .route-summary { grid-template-columns: auto minmax(360px, 1fr) auto; }
  .rwa-milestones { grid-template-columns: repeat(5, 1fr); }
  .rwa-milestones span { border-bottom: 1px solid var(--rule); }
  .rwa-sources { grid-template-columns: auto auto auto; }
  .rwa-sources p { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 780px) {
  .receipts-page main { width: 100%; padding: 0; }
  .flow-terminal { border-right: 0; border-left: 0; box-shadow: none; }
  .terminal-head { grid-template-columns: 1fr auto; gap: 10px; }
  .snapshot-line { align-items: flex-start; flex-direction: column; gap: 5px; }
  .terminal-title h1 { font-size: 34px; }
  .view-tab { min-width: 0; padding: 0 5px; }
  .consumption-hero { grid-template-columns: 1fr; gap: 12px; padding: 15px 12px; }
  .consumption-hero > strong { font-size: 52px; }
  .consumption-track,
  .consumption-counts { grid-column: 1; }
  .consumption-counts { align-items: flex-start; flex-direction: column; gap: 7px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid > div:nth-child(2) { border-right: 0; }
  .stat-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .claim-chart-card .panel-head { align-items: flex-start; flex-direction: column; }
  .metric-toggles { width: 100%; }
  .metric-toggle { flex: 1; }
  #claimChart { height: 230px; }
  .claim-table { min-width: 610px; }
  .claim-detail__legs { grid-template-columns: 1fr 1fr; }
  .claim-detail__legs span { border-bottom: 1px solid var(--rule); }
  .claim-detail__legs span:nth-child(2n) { border-right: 0; }
  .claim-detail__legs span:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .route-summary { grid-template-columns: 1fr; }
  .route-summary > div { min-height: 65px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .route-allocation-bar { min-height: 54px !important; }
  .route-summary > div:last-child { border-bottom: 0; }
  .router-workbench { display: block; overflow: visible; }
  .route-board__head { grid-template-columns: 1fr; }
  .route-columns { display: none; }
  .route-list li { min-height: 0; }
  .route-button { grid-template-columns: 1fr 1fr 1fr; }
  .route-ident { grid-column: 1 / -1; border-bottom: 1px solid var(--rule); }
  .route-cell { min-height: 66px; padding: 8px; border-left: 0; border-right: 1px solid var(--rule); }
  .route-cell:last-child { border-right: 0; }
  .route-inspector { min-height: 375px; border-top: 1px solid var(--rule); border-left: 0; }
  .effect-rail { grid-template-columns: 1fr; }
  .effect-rail > div,
  .effect-rail > a { border-right: 0; border-bottom: 1px solid var(--rule); }
  .effect-rail > a { min-height: 48px; justify-content: center; border-bottom: 0; }
  .rwa-hero { grid-template-columns: 1fr; }
  .rwa-status { min-width: 0; }
  .rwa-stat-grid { grid-template-columns: 1fr 1fr; }
  .rwa-stat-grid > div { border-bottom: 1px solid var(--rule); }
  .rwa-stat-grid > div:nth-child(2n) { border-right: 0; }
  .rwa-stat-grid > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  #rwaChart { height: 255px; }
  .rwa-milestones { grid-template-columns: repeat(3, 1fr); }
  .rwa-sources { grid-template-columns: 1fr; gap: 8px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-card { min-height: 350px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .proof-card:last-child { border-bottom: 0; }
  .terminal-foot { grid-template-columns: 1fr; gap: 5px; }
  .terminal-foot p { text-align: left; }
}

@media (max-width: 460px) {
  .terminal-brand small { display: none; }
  .terminal-links { gap: 8px; }
  .terminal-title h1 { font-size: 30px; }
  .view-tab span { margin-bottom: 5px; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-grid > div { min-height: 86px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .stat-grid > div:last-child { border-bottom: 0; }
  .route-button { grid-template-columns: 1fr; }
  .route-cell { min-height: 0; display: grid; grid-template-columns: minmax(105px,.85fr) 1.15fr; align-items: start; column-gap: 9px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .route-cell > span { grid-row: 1 / 3; }
  .route-cell > strong { margin-top: 0; }
  .route-cell:last-child { border-bottom: 0; }
  .inspector-facts { grid-template-columns: 1fr; }
  .inspector-facts div:nth-child(2n) { padding-left: 0; border-left: 0; }
  .rwa-stat-grid { grid-template-columns: 1fr; }
  .rwa-stat-grid > div,
  .rwa-stat-grid > div:nth-child(2n),
  .rwa-stat-grid > div:last-child { grid-column: auto; border-right: 0; border-bottom: 1px solid var(--rule); }
  .rwa-stat-grid > div:last-child { border-bottom: 0; }
  .rwa-milestones { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  body.receipts-page { background: #fff; color: #000; }
  .receipts-page main { width: 100%; padding: 0; }
  .flow-terminal { box-shadow: none; }
  .view-tabs { display: none; }
  .terminal-panel[hidden] { display: block !important; }
  .terminal-panel { break-inside: avoid; }
}
