/* B3 Atlas. Paper, black, a strict grey scale and one process colour.
   The process colour is printer's magenta. It is the ink survey maps and flight charts use for
   routes, so on a map of money it reads as "this is moving" and nothing else on the page competes
   with it. It is also far from the teal, amber and cobalt of the sibling concepts. Status colours
   (green, ochre, red) appear only on a status, always with a shape and a word. */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("../fonts/martian-mono-var.woff2") format("woff2"); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; }

:root {
  --sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;
  --r: 2px;
  --top-h: 56px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --wrap: 1440px;
  --gut: 40px;
}
:root, [data-theme="light"] {
  color-scheme: light;
  --paper: #ffffff; --paper-2: #f3f3f2; --paper-3: #e7e7e5;
  --ink: #000000; --ink-2: #333333; --muted: #6a6a68;
  --rule: #d8d8d5; --rule-2: #b9b9b5;
  --solid: #000000; --on-solid: #ffffff; --on-solid-muted: #b4b4b0;
  --flow: oklch(55% 0.235 352); --flow-deep: oklch(46% 0.21 352); --on-flow: #ffffff;
  --flow-wash: oklch(95.5% 0.03 352); --flow-soft: oklch(55% 0.235 352 / 0.16);
  --safe: oklch(46% 0.12 150); --safe-wash: oklch(95% 0.04 150);
  --warn: oklch(50% 0.11 75); --warn-wash: oklch(95% 0.05 85);
  --danger: oklch(51% 0.2 33); --danger-wash: oklch(95% 0.035 33);
  --idle: #c9c9c5;
  --scrim: rgb(0 0 0 / 0.42);
  --shadow: 0 24px 60px -20px rgb(0 0 0 / 0.35);
}
[data-theme="dark"] {
  color-scheme: dark;
  --paper: #000000; --paper-2: #131313; --paper-3: #1f1f1f;
  --ink: #ffffff; --ink-2: #d6d6d3; --muted: #9a9a96;
  --rule: #2b2b2b; --rule-2: #474745;
  --solid: #ffffff; --on-solid: #000000; --on-solid-muted: #5c5c59;
  --flow: oklch(68% 0.22 352); --flow-deep: oklch(76% 0.17 352); --on-flow: #000000;
  --flow-wash: oklch(24% 0.07 352); --flow-soft: oklch(68% 0.22 352 / 0.22);
  --safe: oklch(76% 0.15 150); --safe-wash: oklch(24% 0.05 150);
  --warn: oklch(80% 0.12 82); --warn-wash: oklch(26% 0.05 82);
  --danger: oklch(70% 0.18 33); --danger-wash: oklch(25% 0.07 33);
  --idle: #3d3d3b;
  --scrim: rgb(0 0 0 / 0.66);
  --shadow: 0 24px 60px -20px rgb(0 0 0 / 0.9), 0 0 0 1px #2b2b2b;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 14px/1.45 var(--sans); font-stretch: 100%; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--flow); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--solid); color: var(--on-solid); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; top: 8px; }
.m { font-family: var(--mono); font-size: 0.82em; font-stretch: 85%; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.r { text-align: right; }
.nowrap { white-space: nowrap; }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 40; height: var(--top-h); background: var(--paper); border-bottom: 2px solid var(--ink); display: flex; align-items: stretch; padding: 0 max(16px, env(safe-area-inset-left)) 0 0; }
.brand { display: flex; align-items: center; justify-content: center; width: var(--top-h); background: var(--solid); color: var(--on-solid); flex: none; }
.brand svg { width: 26px; height: 26px; }
.ws { display: flex; align-items: center; gap: 8px; padding: 0 16px; font-weight: 700; font-stretch: 110%; border-right: 1px solid var(--rule); white-space: nowrap; }
.ws:hover, .top nav a:hover, .tool:hover { background: var(--paper-2); }
.top nav { display: flex; align-items: stretch; flex: 1; min-width: 0; padding-left: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a[aria-current="page"]::after { bottom: 0; }
.top nav a { display: flex; align-items: center; gap: 6px; padding: 0 11px; text-decoration: none; font-stretch: 84%; font-weight: 550; font-size: 14.5px; color: var(--ink-2); position: relative; white-space: nowrap; }
.top nav a[aria-current="page"] { color: var(--ink); font-weight: 750; }
.top nav a[aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: -2px; height: 6px; background: var(--flow); }
.count { min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; background: var(--flow); color: var(--on-flow); font-size: 11.5px; font-weight: 750; font-stretch: 100%; border-radius: var(--r); }
.tools { display: flex; align-items: center; gap: 4px; margin-left: auto; padding-left: 8px; flex: none; }
.tool { height: 36px; min-width: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 8px; border-radius: var(--r); }
.cmdk-open { border: 1px solid var(--rule-2); padding: 0 10px; color: var(--muted); font-stretch: 88%; }
kbd { font: 500 11px var(--mono); font-stretch: 80%; border: 1px solid var(--rule-2); padding: 1px 4px; border-radius: var(--r); color: var(--muted); }
.ava { width: 26px; height: 26px; display: inline-grid; place-items: center; background: var(--paper-3); color: var(--ink); font-size: 10.5px; font-weight: 750; font-stretch: 88%; border-radius: var(--r); flex: none; }
.ava.you { background: var(--solid); color: var(--on-solid); }
.ava.bot { background: none; border: 1.5px dashed var(--ink); }
.menu { position: absolute; top: calc(var(--top-h) - 4px); min-width: 260px; background: var(--paper); border: 2px solid var(--ink); box-shadow: var(--shadow); z-index: 50; padding: 4px; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; text-decoration: none; }
.menu a:hover, .menu button:hover { background: var(--paper-2); }
.menu .cap { padding: 8px 10px 4px; color: var(--muted); font-size: 12.5px; font-stretch: 86%; }
.menu b { font-weight: 700; }
.menu small { display: block; color: var(--muted); font-size: 12.5px; }

#banner:empty { display: none; }
.stopbar { background: var(--solid); color: var(--on-solid); display: flex; gap: 14px; align-items: center; padding: 9px var(--gut); font-weight: 600; background-image: repeating-linear-gradient(135deg, transparent 0 10px, rgb(128 128 128 / 0.28) 10px 12px); }
.stopbar span { font-weight: 400; color: var(--on-solid-muted); }
.stopbar a { margin-left: auto; font-weight: 700; white-space: nowrap; }

/* ---------- page frame ---------- */
#view { outline: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gut) 96px; }
.ph { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 26px; }
.ph h1 { font-size: 34px; line-height: 1.02; font-weight: 800; font-stretch: 118%; letter-spacing: -0.022em; }
.ph p { margin-top: 8px; color: var(--ink-2); max-width: 62ch; font-size: 15px; }
.ph .acts { margin-left: auto; display: flex; gap: 8px; flex: none; }
.back { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; color: var(--muted); font-stretch: 88%; margin-bottom: 10px; }
.back:hover { color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 32px; align-items: start; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c9 { grid-column: span 9; } .c12 { grid-column: span 12; }
.sec > h2, h2.h { font-size: 15px; font-weight: 750; font-stretch: 106%; padding-bottom: 8px; border-bottom: 2px solid var(--ink); margin-bottom: 0; display: flex; align-items: baseline; gap: 10px; }
.sec > h2 small, h2.h small { font-weight: 400; font-stretch: 90%; color: var(--muted); font-size: 13px; }
.sec > h2 .end, h2.h .end { margin-left: auto; font-weight: 500; font-size: 13px; font-stretch: 90%; }
.note { color: var(--ink-2); font-size: 13.5px; max-width: 70ch; }
.note + .note { margin-top: 6px; }
.pad { padding-top: 14px; }

/* ---------- buttons, fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; font-weight: 700; font-stretch: 96%; border-radius: var(--r); background: var(--solid); color: var(--on-solid); white-space: nowrap; text-decoration: none; transition: transform 0.12s var(--ease), background 0.12s; }
.btn[data-pressed] { transform: scale(0.97); }
.btn.flow { background: var(--flow); color: var(--on-flow); }
.btn.flow:hover { background: var(--flow-deep); }
.btn.line { background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.line:hover { background: var(--paper-2); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.danger { background: var(--danger); color: var(--paper); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; font-weight: 600; }
.link:hover { color: var(--flow-deep); }
label.f { display: block; }
label.f > span { display: block; font-size: 13px; font-stretch: 88%; font-weight: 600; margin-bottom: 5px; }
.in, select.in, textarea.in { width: 100%; height: 40px; padding: 0 12px; background: var(--paper); border: 1.5px solid var(--rule-2); border-radius: var(--r); }
textarea.in { height: auto; padding: 10px 12px; resize: vertical; }
.in:hover { border-color: var(--ink); }
.in:focus { outline: 2px solid var(--flow); outline-offset: 0; border-color: var(--flow); }
.fields { display: grid; gap: 16px; }
.fields.two { grid-template-columns: 1fr 1fr; }
.seg { display: inline-flex; box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: var(--r); }
.seg button, .seg a { padding: 0 12px; height: 32px; display: inline-flex; align-items: center; gap: 6px; font-stretch: 88%; font-weight: 600; text-decoration: none; }
.seg [aria-pressed="true"], .seg [aria-current="page"] { background: var(--solid); color: var(--on-solid); }

/* ---------- tables ---------- */
.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-weight: 600; font-stretch: 78%; font-size: 12.5px; color: var(--muted); padding: 9px 12px 7px 0; border-bottom: 1px solid var(--rule-2); white-space: nowrap; }
.t td { padding: 11px 16px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.t th.r, .t td.r { text-align: right; padding-right: 24px; padding-left: 12px; }
.t th:last-child, .t td:last-child { padding-right: 0; }
.t tr.go { cursor: pointer; }
.t tr.go:hover td { background: var(--paper-2); }
.t td b { font-weight: 650; }
.t td small { display: block; color: var(--muted); font-size: 12.5px; font-stretch: 92%; }
.t .amt { font-weight: 650; white-space: nowrap; }
.t .amt i { font-style: normal; font-weight: 400; color: var(--muted); font-stretch: 85%; margin-left: 4px; }
.tscroll { overflow-x: auto; }

/* status marks: a shape and a word, colour last */
.st { display: inline-flex; align-items: center; gap: 6px; font-stretch: 88%; font-weight: 600; font-size: 13px; white-space: nowrap; }
.st::before { content: ""; width: 9px; height: 9px; flex: none; background: currentColor; }
.st.safe { color: var(--safe); } .st.warn { color: var(--warn); } .st.danger { color: var(--danger); } .st.idle { color: var(--muted); } .st.flowc { color: var(--flow-deep); }
.st.warn::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px currentColor; }
.st.danger::before, .st.idle::before { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.flag { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; font-size: 12.5px; font-stretch: 86%; font-weight: 600; background: var(--paper-3); border-radius: var(--r); white-space: nowrap; }
.flag.hot { background: var(--danger-wash); color: var(--danger); }
.flag.warm { background: var(--warn-wash); color: var(--warn); }
.flags { display: flex; flex-wrap: wrap; gap: 4px; }

/* quorum meter: one cell per unit of signer weight */
.q { display: inline-flex; gap: 2px; vertical-align: middle; }
.q i { width: 14px; height: 10px; background: var(--paper-3); box-shadow: inset 0 0 0 1px var(--rule-2); transition: background 0.35s var(--ease); }
.q i.on { background: var(--ink); box-shadow: none; }
.q i.new { background: var(--flow); box-shadow: none; }
.q.big i { width: 34px; height: 16px; }

/* figures */
.fig { display: block; font-weight: 800; font-stretch: 122%; letter-spacing: -0.03em; line-height: 1; font-size: 40px; }
.fig small { font-size: 0.5em; font-weight: 600; font-stretch: 100%; letter-spacing: 0; color: var(--muted); }
.fig.md { font-size: 26px; } .fig.sm { font-size: 19px; letter-spacing: -0.02em; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0; }
.kv > div { display: contents; }
.kv dt { color: var(--muted); font-stretch: 86%; padding: 8px 20px 8px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.kv dd { padding: 8px 0; border-bottom: 1px solid var(--rule); text-align: right; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
.stat { border-top: 2px solid var(--ink); padding: 10px 0 0; }
.stat > span { display: block; font-stretch: 86%; color: var(--ink-2); margin-bottom: 8px; font-size: 13.5px; }
.stat > em { display: block; font-style: normal; color: var(--muted); font-size: 12.5px; margin-top: 6px; font-stretch: 92%; }
.bar { display: flex; height: 14px; gap: 2px; margin: 10px 0 8px; }
.bar i { display: block; background: var(--ink); min-width: 2px; }
.bar i:nth-child(2) { background: var(--ink-2); opacity: 0.72; } .bar i:nth-child(3) { background: var(--muted); } .bar i:nth-child(4) { background: var(--rule-2); } .bar i:nth-child(5) { background: var(--paper-3); box-shadow: inset 0 0 0 1px var(--rule-2); } .bar i:nth-child(6) { background: var(--flow); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; font-stretch: 90%; color: var(--ink-2); }
.legend b { font-weight: 650; color: var(--ink); }
.meter { height: 12px; background: var(--paper-3); position: relative; }
.meter i { position: absolute; inset: 0 auto 0 0; background: var(--ink); transition: width 0.5s var(--ease); }
.meter i.flowc { background: var(--flow); }
.meter.halt i { background: repeating-linear-gradient(135deg, var(--muted) 0 4px, transparent 4px 7px); }

/* ---------- overview: the map ---------- */
.atlas { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 2px solid var(--ink); background: var(--paper-2); }
.atlas.open { grid-template-columns: minmax(0, 1fr) 384px; }
.mapwrap { padding: 16px var(--gut) 10px; min-width: 0; width: 100%; max-width: var(--wrap); margin: 0 auto; }
.maphead { display: flex; align-items: baseline; gap: 16px; margin-bottom: 4px; }
.maphead h1 { font-size: 22px; font-weight: 800; font-stretch: 118%; letter-spacing: -0.02em; }
.maphead p { color: var(--ink-2); font-size: 13.5px; }
.atlas.open .maphead p { display: none; }
.map { width: 100%; height: auto; max-height: calc(100vh - 250px); min-height: 300px; overflow: visible; font-family: var(--sans); }
.map text { fill: var(--ink); font-size: 13px; }
.map .col { font-size: 12px; font-stretch: 80%; fill: var(--muted); font-weight: 600; }
.map .nl { font-weight: 700; font-stretch: 84%; font-size: 13.5px; }
.map .ns { font-size: 11.5px; fill: var(--muted); font-stretch: 84%; }
.map .on-solid { fill: var(--on-solid); } .map .on-solid.ns { fill: var(--on-solid-muted); }
.map .nv { font-weight: 800; font-stretch: 116%; font-size: 14px; letter-spacing: -0.01em; }
.node rect.body { fill: var(--solid); }
.node, .gate, .pend { cursor: pointer; outline: none; }
.node:focus-visible rect.body, .gate:focus-visible .post, .node.sel rect.body, .gate.sel .post { stroke: var(--flow); stroke-width: 3; }
.node rect.hit, .gate rect.hit { fill: transparent; }
.node .tier { fill: var(--on-solid); opacity: 0.16; }
.node .tierline { stroke: var(--on-solid); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.6; }
.rib { fill: var(--flow); opacity: 0.82; transition: opacity 0.2s, fill 0.3s; }
.rib.zero { fill: none; stroke: var(--rule-2); stroke-width: 1.5; stroke-dasharray: 2 5; opacity: 1; }
.dash { fill: none; stroke: var(--paper); stroke-width: 1.5; stroke-dasharray: 2 14; stroke-linecap: butt; opacity: 0.7; animation: run 1.6s linear infinite; pointer-events: none; }
@keyframes run { to { stroke-dashoffset: -32; } }
.map.dimmed .rib:not(.lit), .map.dimmed .dash:not(.lit) { opacity: 0.13; }
.map.dimmed .node:not(.lit), .map.dimmed .gate:not(.lit) { opacity: 0.32; }
.node, .gate { transition: opacity 0.2s; }
.gate .post { fill: var(--solid); }
.gate .door { fill: var(--solid); transform-box: fill-box; transform-origin: center top; transform: scaleY(0); transition: transform 0.35s var(--ease); }
.gate.shut .door { transform: scaleY(1); }
.gate .hatch { opacity: 0; transition: opacity 0.3s 0.2s; }
.gate.shut .hatch { opacity: 1; }
.rib.halt { fill: url(#hatch); opacity: 1; }
.dash.halt { animation: none; opacity: 0; }
.pend rect { fill: var(--paper); stroke: var(--flow); stroke-width: 2; }
.pend text { fill: var(--flow-deep); font-weight: 800; font-size: 12.5px; font-stretch: 100%; }
.pend:hover rect, .pend:focus-visible rect { fill: var(--flow); } .pend:hover text, .pend:focus-visible text { fill: var(--on-flow); }
.srcbar { fill: var(--solid); }
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--solid); color: var(--on-solid); padding: 6px 9px; font-size: 12.5px; font-stretch: 90%; max-width: 280px; border-radius: var(--r); }
.tip b { font-weight: 750; }

.panel { background: var(--paper); border-left: 2px solid var(--ink); padding: 18px 22px 22px; min-width: 0; overflow-y: auto; max-height: calc(100vh - var(--top-h)); animation: slide 0.28s var(--ease); }
@keyframes slide { from { transform: translateX(24px); } }
.panel .x { float: right; margin: -6px -8px 0 8px; }
.panel h2 { font-size: 21px; font-weight: 800; font-stretch: 114%; letter-spacing: -0.02em; line-height: 1.1; }
.panel .kind { color: var(--muted); font-stretch: 86%; font-size: 13px; margin-bottom: 2px; }
.panel .fig { margin: 12px 0 4px; }
.panel h3 { font-size: 13px; font-weight: 750; margin: 18px 0 0; padding-bottom: 6px; border-bottom: 1.5px solid var(--ink); }
.panel .rows > * { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.panel .rows a:hover { background: var(--paper-2); }
.panel .rows .end { margin-left: auto; text-align: right; font-weight: 650; white-space: nowrap; }
.panel .rows small { display: block; color: var(--muted); font-size: 12.5px; }
.panel .acts { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.sentence { font-size: 16.5px; line-height: 1.5; font-stretch: 96%; margin-top: 10px; }
.sentence b { font-weight: 750; background: var(--paper-3); padding: 0 4px; border-radius: var(--r); white-space: nowrap; }

/* phone map: a vertical flow */
.vflow { display: none; }
.vstage { position: relative; padding: 0 0 22px 22px; }
.vstage::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: -6px; width: 6px; background: var(--flow); opacity: 0.85; }
.vstage::after { content: ""; position: absolute; left: 6.5px; top: 6px; bottom: -6px; width: 1px; background: repeating-linear-gradient(180deg, var(--paper) 0 2px, transparent 2px 14px); animation: fall 1.6s linear infinite; }
@keyframes fall { to { background-position: 0 28px; } }
.vstage:last-child::before, .vstage:last-child::after { bottom: auto; height: 10px; }
.vstage > span { display: block; font-size: 12.5px; font-stretch: 82%; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.vnodes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vnode { background: var(--solid); color: var(--on-solid); padding: 9px 10px; border-radius: var(--r); min-height: 54px; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; position: relative; }
.vnode b { font-stretch: 84%; font-weight: 700; font-size: 13.5px; line-height: 1.15; }
.vnode em { font-style: normal; font-weight: 800; font-stretch: 112%; font-size: 14px; }
.vnode small { color: var(--on-solid-muted); font-size: 11.5px; font-stretch: 84%; }
.vnode.wide { grid-column: span 2; }
.vnode.lite { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.vnode.lite small { color: var(--muted); }
.vnode.gate2 { background: var(--paper); color: var(--ink); border-left: 8px solid var(--ink); border-right: 8px solid var(--ink); }
.vnode.gate2 small { color: var(--muted); }
.vnode.shut { background-image: repeating-linear-gradient(135deg, transparent 0 6px, var(--rule-2) 6px 8px); }
.vnode .count { position: absolute; top: 8px; right: 8px; }

/* overview lower half */
.needs li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.needs li b { font-weight: 700; font-size: 15px; }
.needs li small { color: var(--muted); grid-column: 1; }
.needs li .act { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: center; gap: 12px; }
.spark { width: 100%; height: 64px; overflow: visible; }
.spark path.l { fill: none; stroke: var(--ink); stroke-width: 2; }
.spark path.a { fill: var(--paper-3); }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 96px; margin-top: 12px; }
.bars div { display: flex; gap: 2px; align-items: flex-end; height: 100%; position: relative; }
.bars i { flex: 1; background: var(--flow); min-height: 2px; }
.bars i + i { background: var(--ink); }
.barlab { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; font-size: 12px; color: var(--muted); font-stretch: 84%; margin-top: 4px; }
.warranty { border: 2px solid var(--ink); padding: 14px 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 6px 20px; align-items: center; }
.warranty p { color: var(--ink-2); font-size: 13.5px; }

/* ---------- approvals ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 32px; align-items: start; }
.queue li a { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 13px 12px 13px 14px; border-bottom: 1px solid var(--rule); text-decoration: none; border-left: 6px solid transparent; }
.queue li a:hover { background: var(--paper-2); }
.queue li a[aria-current="true"] { border-left-color: var(--flow); background: var(--paper-2); }
.queue b { font-weight: 700; font-size: 15px; }
.queue .amt { font-weight: 750; font-stretch: 108%; text-align: right; white-space: nowrap; }
.queue .sub { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; font-stretch: 92%; }
.queue .done b, .queue .done .amt { color: var(--muted); }
.detail { position: sticky; top: calc(var(--top-h) + 20px); border: 2px solid var(--ink); padding: 22px 24px 24px; background: var(--paper); }
.detail h2 { font-size: 24px; font-weight: 800; font-stretch: 114%; letter-spacing: -0.02em; line-height: 1.08; }
.detail .fig { margin: 14px 0 2px; }
.detail .lane { display: grid; grid-template-columns: 1fr 28px 1fr; gap: 0; align-items: stretch; margin: 16px 0 0; }
.detail .lane > div { background: var(--paper-2); padding: 10px 12px; min-width: 0; }
.detail .lane > div span { display: block; color: var(--muted); font-size: 12.5px; font-stretch: 86%; }
.detail .lane > div b { font-weight: 700; display: block; }
.detail .lane > div .m { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); margin-top: 2px; }
.detail .lane > svg { align-self: center; justify-self: center; color: var(--flow); }
.detail h3 { font-size: 13px; font-weight: 750; margin: 20px 0 0; padding-bottom: 6px; border-bottom: 1.5px solid var(--ink); }
.signers li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.signers li .end { margin-left: auto; }
.cta { display: flex; gap: 8px; margin-top: 20px; align-items: center; flex-wrap: wrap; }
.cta .why { color: var(--muted); font-size: 13px; flex: 1; min-width: 160px; }
.result { margin-top: 18px; padding: 12px 14px; background: var(--flow-wash); border-left: 6px solid var(--flow); font-weight: 600; }
.result.grey { background: var(--paper-2); border-color: var(--ink); }
.diff { display: grid; grid-template-columns: 1fr auto auto; gap: 0 18px; }
.diff > * { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.diff .h { color: var(--muted); font-size: 12.5px; font-stretch: 82%; font-weight: 600; }
.diff .neg { color: var(--flow-deep); font-weight: 700; }

/* ---------- overlay: phone prompt, command bar, sheets ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 70; display: grid; place-items: center; padding: 16px; animation: fade 0.18s; }
@keyframes fade { from { opacity: 0; } }
.phone { width: 340px; max-width: 100%; background: #0b0b0b; color: #fff; border-radius: 38px; padding: 12px; box-shadow: var(--shadow); animation: rise 0.34s var(--ease); color-scheme: dark; }
@keyframes rise { from { transform: translateY(40px) scale(0.96); opacity: 0; } }
.phone .scr { background: #161616; border-radius: 28px; padding: 14px 18px 20px; }
.phone .island { width: 84px; height: 22px; border-radius: 12px; background: #000; margin: 0 auto 12px; }
.phone .from { color: #a3a3a0; font-size: 12.5px; font-stretch: 88%; display: flex; gap: 6px; align-items: center; }
.phone h2 { font-size: 19px; font-weight: 800; font-stretch: 110%; margin: 4px 0 2px; line-height: 1.12; }
.phone .big { font-size: 31px; font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; margin: 10px 0 2px; }
.phone .big small { font-size: 0.5em; font-weight: 600; color: #a3a3a0; letter-spacing: 0; }
.phone dl { margin: 12px 0 0; }
.phone dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid #2c2c2c; font-size: 13.5px; }
.phone dt { color: #a3a3a0; font-stretch: 86%; white-space: nowrap; }
.phone dd { text-align: right; font-weight: 600; }
.phone .st.safe { color: oklch(78% 0.15 150); } .phone .st.warn { color: oklch(82% 0.12 82); } .phone .st.danger { color: oklch(72% 0.18 33); }
.phone .rule { font-size: 13px; color: #cfcfcc; margin-top: 10px; padding: 9px 10px; background: #222; border-radius: 4px; }
.holdbtn { position: relative; width: 100%; height: 56px; margin-top: 16px; border-radius: 28px; background: #2a2a2a; color: #fff; font-weight: 750; overflow: hidden; display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; }
.holdbtn i { position: absolute; inset: 0; background: oklch(60% 0.235 352); transform-origin: left; transform: scaleX(var(--p, 0)); }
.holdbtn span { position: relative; display: inline-flex; gap: 8px; align-items: center; }
.holdbtn[data-holding] { transform: scale(0.985); }
.phone .cancel { display: block; width: 100%; text-align: center; color: #a3a3a0; padding: 12px 0 0; }
.phone .okmark { width: 64px; height: 64px; margin: 34px auto 14px; border-radius: 50%; background: oklch(60% 0.235 352); display: grid; place-items: center; animation: pop 0.4s var(--ease); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }
.phone .okmark svg { width: 30px; height: 30px; stroke: #fff; stroke-width: 3; fill: none; }
.phone .center { text-align: center; padding-bottom: 24px; }
.dialog { width: 520px; max-width: 100%; background: var(--paper); border: 2px solid var(--ink); box-shadow: var(--shadow); padding: 22px 24px; animation: rise 0.28s var(--ease); max-height: calc(100vh - 32px); overflow: auto; }
.dialog h2 { font-size: 21px; font-weight: 800; font-stretch: 112%; margin-bottom: 6px; }
.dialog .cta { justify-content: flex-end; }
.cmdk { width: 600px; max-width: 100%; align-self: start; margin-top: 12vh; background: var(--paper); border: 2px solid var(--ink); box-shadow: var(--shadow); animation: rise 0.22s var(--ease); }
.cmdk input { width: 100%; height: 54px; border: 0; border-bottom: 2px solid var(--ink); background: none; padding: 0 18px; font-size: 17px; outline: none; }
.cmdk ul { max-height: 46vh; overflow: auto; padding: 4px; }
.cmdk li { display: flex; gap: 10px; align-items: center; padding: 9px 12px; cursor: pointer; }
.cmdk li small { margin-left: auto; color: var(--muted); font-stretch: 86%; }
.cmdk li[aria-selected="true"] { background: var(--solid); color: var(--on-solid); }
.cmdk li[aria-selected="true"] small { color: var(--on-solid-muted); }
.cmdk .none { padding: 18px; color: var(--muted); }
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: var(--solid); color: var(--on-solid); padding: 10px 16px; font-weight: 600; border-left: 6px solid var(--flow); animation: rise 0.3s var(--ease); max-width: min(92vw, 520px); }

/* ---------- policy ---------- */
.rules { counter-reset: none; }
.rule { display: grid; grid-template-columns: 200px 1fr; gap: 0 28px; padding: 20px 0; border-bottom: 1px solid var(--rule-2); }
.rule .who b { display: block; font-weight: 750; font-size: 15px; }
.rule .who small { color: var(--muted); }
.rule .gatepic { width: 46px; height: 30px; margin-bottom: 8px; }
.rule p { font-size: 22px; line-height: 1.75; font-stretch: 96%; letter-spacing: -0.005em; max-width: 34em; }
.pill { display: inline-block; font: inherit; font-weight: 750; background: var(--paper-2); border: 0; border-bottom: 2px solid var(--ink); padding: 0 6px; line-height: 1.3; border-radius: var(--r) var(--r) 0 0; cursor: pointer; color: var(--ink); max-width: 100%; }
select.pill { field-sizing: content; appearance: none; -webkit-appearance: none; padding-right: 22px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 11px) 55%, calc(100% - 6px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
input.pill { cursor: text; text-align: right; }
.pill:hover { background-color: var(--paper-3); }
.pill:focus { outline: 2px solid var(--flow); outline-offset: 1px; }
.pill.changed { border-bottom-color: var(--flow); background-color: var(--flow-wash); color: var(--flow-deep); }
.pill.fixed { cursor: default; border-bottom-style: dotted; }
.draftbar { position: sticky; bottom: 16px; z-index: 20; margin-top: 24px; background: var(--solid); color: var(--on-solid); padding: 12px 16px; display: flex; gap: 16px; align-items: center; border-left: 8px solid var(--flow); box-shadow: var(--shadow); }
.draftbar p { flex: 1; } .draftbar small { display: block; color: var(--on-solid-muted); }
.draftbar .btn.line { color: var(--on-solid); box-shadow: inset 0 0 0 1.5px var(--on-solid); }
.draftbar .btn.line:hover { background: rgb(128 128 128 / 0.3); }
.cases li { display: grid; grid-template-columns: 22px 1fr; gap: 2px 8px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.cases li svg { margin-top: 2px; color: var(--safe); }
.cases li b { font-weight: 650; }
.cases li span { grid-column: 2; color: var(--ink-2); }
.cases li.moved span { color: var(--flow-deep); font-weight: 600; }
.whatif { display: flex; gap: 8px; margin-top: 12px; }
.answer { margin-top: 12px; padding: 12px 14px; background: var(--paper-2); border-left: 6px solid var(--ink); }
.answer b { font-weight: 750; }
.tries { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tries button { font-size: 12.5px; font-stretch: 90%; padding: 3px 8px; background: var(--paper-2); border-radius: var(--r); }
.tries button:hover { background: var(--paper-3); }

/* ---------- payments ---------- */
.steps { display: flex; gap: 0; margin-bottom: 22px; border-bottom: 2px solid var(--ink); }
.steps li { padding: 0 22px 10px 0; margin-right: 22px; font-stretch: 90%; color: var(--muted); display: flex; gap: 8px; align-items: baseline; position: relative; }
.steps li b { font-weight: 800; font-stretch: 110%; }
.steps li.on { color: var(--ink); font-weight: 700; }
.steps li.on::after { content: ""; position: absolute; left: 0; right: 22px; bottom: -2px; height: 6px; background: var(--flow); }
.steps li.did { color: var(--ink-2); }
.drop { border: 2px dashed var(--rule-2); padding: 44px 24px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.drop.over { border-color: var(--flow); background: var(--flow-wash); }
.drop b { font-size: 18px; font-weight: 750; }
.vt { border: 1.5px solid var(--ink); }
.vt .hd, .vt .rw { display: grid; grid-template-columns: 64px minmax(140px, 1.4fr) 90px minmax(160px, 2fr) 120px minmax(200px, 1.8fr); gap: 0 12px; align-items: center; padding: 0 14px; }
.vt .hd { height: 34px; font-size: 12.5px; font-stretch: 78%; font-weight: 600; color: var(--muted); border-bottom: 1.5px solid var(--ink); }
.vt .body { height: 396px; overflow-y: auto; position: relative; }
.vt .rw { position: absolute; left: 0; right: 0; height: 36px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.vt .rw > * { overflow: hidden; text-overflow: ellipsis; }
.vt .rw.bad { background: var(--warn-wash); }
.vt .rw.gone { opacity: 0.4; text-decoration: line-through; }
.vt .rw .fixes { display: flex; gap: 6px; align-items: center; overflow: visible; }
.issues li { display: grid; grid-template-columns: 70px 1fr auto; gap: 4px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.issues li small { color: var(--muted); display: block; }
.issues li .fx { display: flex; gap: 6px; }
.issues li.ok { color: var(--muted); }
.progress { height: 8px; background: var(--paper-3); margin: 14px 0 6px; }
.progress i { display: block; height: 100%; background: var(--flow); width: 0; transition: width 0.2s linear; }
.pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 2px solid var(--ink); }
.pick a { padding: 20px 22px 22px; text-decoration: none; border-right: 1px solid var(--rule-2); display: grid; gap: 8px; align-content: start; }
.pick a:last-child { border-right: 0; }
.pick a:hover { background: var(--paper-2); }
.pick a b { font-size: 19px; font-weight: 800; font-stretch: 110%; }
.pick a p { color: var(--ink-2); }
.pick a .go { margin-top: 6px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; color: var(--flow-deep); }
.veil { background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 9px); color: transparent; display: inline-block; width: 78px; height: 10px; vertical-align: middle; opacity: 0.55; }

/* ---------- collections ---------- */
.sweepzone { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.vaulttile { background: var(--solid); color: var(--on-solid); padding: 16px 18px 18px; position: sticky; top: calc(var(--top-h) + 20px); }
.vaulttile span { color: var(--on-solid-muted); font-stretch: 86%; font-size: 13px; }
.vaulttile .fig { margin: 8px 0 12px; font-size: 30px; }
.vaulttile .btn { width: 100%; }
.vaulttile.hit { animation: thump 0.3s var(--ease); }
@keyframes thump { 40% { transform: scale(1.025); } }
.vaulttile dl { margin-top: 14px; font-size: 13px; }
.vaulttile dl div { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--on-solid-muted); }
.vaulttile dd { font-weight: 700; }
.fly { position: fixed; z-index: 80; background: var(--flow); color: var(--on-flow); font-weight: 750; padding: 3px 8px; pointer-events: none; border-radius: var(--r); white-space: nowrap; }

/* ---------- vaults ---------- */
.vrow { display: grid; grid-template-columns: 6px minmax(0, 1.4fr) minmax(0, 2fr) 150px 170px; gap: 0 22px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.vrow:hover { background: var(--paper-2); }
.vrow > i { align-self: stretch; background: var(--ink); }
.vrow b { font-size: 17px; font-weight: 750; font-stretch: 106%; display: block; }
.vrow small { color: var(--muted); }
.vrow .fig { text-align: right; }
.tiers { display: grid; grid-template-columns: 1fr 40px 1.6fr; align-items: stretch; margin-top: 14px; }
.tiers > div { padding: 14px 16px; }
.tiers .t1 { box-shadow: inset 0 0 0 2px var(--ink); }
.tiers .t2 { background: var(--solid); color: var(--on-solid); }
.tiers .t2 p, .tiers .t2 span { color: var(--on-solid-muted); }
.tiers span { font-size: 12.5px; font-stretch: 86%; color: var(--muted); display: block; }
.tiers b { display: block; font-weight: 800; font-stretch: 112%; font-size: 20px; margin: 4px 0; }
.tiers p { font-size: 13px; color: var(--ink-2); }
.tiers > svg { align-self: center; justify-self: center; color: var(--flow); width: 22px; height: 22px; }
.two-step { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--ink); margin-top: 18px; }
.two-step > div { padding: 20px 22px 22px; }
.two-step > div + div { border-left: 2px solid var(--ink); }
.two-step .n { font-weight: 800; font-stretch: 122%; font-size: 34px; line-height: 1; }
.two-step h3 { font-size: 18px; font-weight: 800; font-stretch: 108%; margin: 10px 0 6px; }
.two-step p { color: var(--ink-2); margin-bottom: 14px; }
.two-step .off { opacity: 0.45; }
.addrline { display: flex; gap: 14px; align-items: center; padding: 12px 16px; background: var(--paper-2); margin-top: 14px; flex-wrap: wrap; }
.addrline .m { font-size: 13px; overflow-wrap: anywhere; }

/* ---------- automation ---------- */
.stopcard { border: 2px solid var(--ink); padding: 22px 24px; display: grid; grid-template-columns: 1fr auto; gap: 12px 32px; align-items: center; }
.stopcard h2 { font-size: 24px; font-weight: 800; font-stretch: 114%; letter-spacing: -0.02em; }
.stopcard p { color: var(--ink-2); max-width: 60ch; margin-top: 4px; }
.stopcard.is { background: var(--solid); color: var(--on-solid); background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgb(128 128 128 / 0.22) 14px 16px); }
.stopcard.is p { color: var(--on-solid-muted); }
.stopbtn { position: relative; width: 210px; height: 64px; background: var(--solid); color: var(--on-solid); font-weight: 800; font-stretch: 106%; font-size: 16px; display: grid; place-items: center; overflow: hidden; border-radius: var(--r); touch-action: none; user-select: none; -webkit-user-select: none; }
.stopbtn i { position: absolute; inset: 0; background: var(--danger); transform-origin: left; transform: scaleX(var(--p, 0)); }
.stopbtn span { position: relative; display: grid; justify-items: center; line-height: 1.15; }
.stopbtn small { font-weight: 500; font-stretch: 90%; font-size: 12px; opacity: 0.8; }
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: 16px; }
.lanes li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--rule-2); }
.lanes li .end { margin-left: auto; }
.stopcard.is .lanes li { border-color: var(--on-solid-muted); }
.stopcard.is .st.safe { color: oklch(78% 0.15 150); }
.stopcard.is .st.idle { color: var(--on-solid-muted); }
[data-theme="dark"] .stopcard.is .st.safe { color: oklch(40% 0.12 150); }

/* ---------- team ---------- */
.wt { display: inline-grid; place-items: center; min-width: 26px; height: 26px; font-weight: 800; font-stretch: 112%; background: var(--solid); color: var(--on-solid); border-radius: var(--r); }
.wt.z { background: none; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--rule-2); }
.ladder li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.ladder b { font-weight: 700; }
.ladder small { display: block; color: var(--muted); }

/* ---------- small screens ---------- */
.tabs { display: none; }
@media (max-width: 1180px) {
  :root { --gut: 24px; }
  .top nav a { padding: 0 8px; font-size: 14px; }
  .cmdk-open span, .cmdk-open kbd { display: none; }
  .ws span.nm { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
  .atlas.open { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 960px) {
  .top nav { display: none; }
  .ws { border-right: 0; }
  .tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--paper); border-top: 2px solid var(--ink); padding-bottom: env(safe-area-inset-bottom); }
  .tabs a, .tabs button { display: grid; justify-items: center; gap: 2px; padding: 8px 2px 7px; font-size: 11.5px; font-stretch: 80%; font-weight: 600; text-decoration: none; color: var(--muted); position: relative; }
  .tabs [aria-current="page"] { color: var(--ink); }
  .tabs [aria-current="page"]::before { content: ""; position: absolute; top: -2px; left: 22%; right: 22%; height: 5px; background: var(--flow); }
  .tabs .count { position: absolute; top: 3px; left: 54%; }
  .tabs .ic { width: 20px; height: 20px; }
  .wrap { padding-bottom: 120px; }
  .grid { gap: 28px 0; }
  .grid > * { grid-column: span 12; }
  .split { grid-template-columns: 1fr; }
  .split.has-detail .queue { display: none; }
  .detail { position: static; }
  .sweepzone { grid-template-columns: minmax(0, 1fr); }
  .vaulttile { position: static; order: -1; }
  .atlas.open { grid-template-columns: 1fr; }
  .panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; max-height: 76vh; z-index: 65; border-left: 0; border-top: 2px solid var(--ink); box-shadow: var(--shadow); padding-bottom: calc(22px + env(safe-area-inset-bottom)); animation: rise 0.3s var(--ease); }
  .pick { grid-template-columns: 1fr; } .pick a { border-right: 0; border-bottom: 1px solid var(--rule-2); }
  .rule { grid-template-columns: 1fr; gap: 10px; }
  .vrow { grid-template-columns: 6px 1fr auto; }
  .vrow > .nets, .vrow > .pol { display: none; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; --top-h: 52px; }
  body { font-size: 14.5px; }
  .map { display: none; }
  .vflow { display: block; margin-top: 12px; }
  .maphead { flex-wrap: wrap; gap: 4px 12px; }
  .maphead p { flex-basis: 100%; order: 3; }
  .ph { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 20px; }
  .ph h1 { font-size: 28px; }
  .ph .acts { margin-left: 0; flex-wrap: wrap; }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 20px; }
  .stats .stat:first-child { grid-column: span 2; }
  .t.stack td.nowrap { white-space: normal; }
  .t.stack td.full .btn { margin-top: 6px; }
  .fig { font-size: 30px; } .fig.md { font-size: 22px; }
  .fields.two { grid-template-columns: 1fr; }
  .warranty { grid-template-columns: 1fr; }
  .detail { border: 0; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 22px; }
  .detail > .cta { position: sticky; bottom: calc(58px + env(safe-area-inset-bottom)); background: var(--paper); padding: 10px 0; margin-top: 12px; border-top: 2px solid var(--ink); z-index: 5; }
  .detail > .cta .why { flex-basis: 100%; }
  .detail .lane { grid-template-columns: 1fr; } .detail .lane > svg { transform: rotate(90deg); margin: 4px 0; }
  .rule p { font-size: 19px; line-height: 1.8; }
  .draftbar { flex-direction: column; align-items: stretch; bottom: 76px; }
  .stopcard { grid-template-columns: 1fr; } .stopbtn { width: 100%; }
  .lanes { grid-template-columns: 1fr; }
  .two-step { grid-template-columns: 1fr; } .two-step > div + div { border-left: 0; border-top: 2px solid var(--ink); }
  .tiers { grid-template-columns: 1fr; } .tiers > svg { transform: rotate(90deg); margin: 6px auto; }
  .issues li { grid-template-columns: 56px 1fr; } .issues li .fx { grid-column: 2; }
  .steps li { padding-right: 10px; margin-right: 10px; font-size: 13px; } .steps li.on::after { right: 10px; }
  .t.stack thead { display: none; }
  .t.stack tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
  .t.stack td { border: 0; padding: 0; }
  .t.stack td.hide-s { display: none; }
  .t.stack td.full { grid-column: 1 / -1; }
  .stopbar { padding: 9px var(--gut); flex-wrap: wrap; gap: 2px 12px; }
  .stopbar a { margin-left: 0; }
  #toasts { bottom: 84px; }
  .whatif { flex-direction: column; }
  .needs li { grid-template-columns: 1fr; } .needs li .act { grid-row: auto; grid-column: 1; margin-top: 6px; justify-content: space-between; }
  .ladder li { grid-template-columns: 72px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .dash { animation: none !important; }
}

/* visibility helpers */
.only-s { display: none; }
@media (max-width: 960px) { .only-s { display: inline-flex; } .only-wide { display: none; } .split.has-detail > .queue { display: none; } }
@media (max-width: 640px) { .hide-s { display: none !important; } .t.stack td.r-s { text-align: right; } }
@media (max-width: 760px) {
  .vt .hd, .vt .rw { grid-template-columns: 44px minmax(0, 1fr) 76px 78px; padding: 0 10px; gap: 0 8px; }
  .vt .hd > :nth-child(4), .vt .hd > :nth-child(6), .vt .rw > :nth-child(4), .vt .rw > :nth-child(6) { display: none; }
  .vtbar { flex-wrap: wrap; }
  .vtbar .seg button { white-space: nowrap; }
  .vtbar #vtpos { display: none; }
}
