/* Orbitpad: "Mission control" (docs/DESIGN-ORBIT.md). A calm flight desk in daylight: pale deck paper over a plotting grid, navy ink,
   one mission blue for action, flare rose for burns (re-entries), trace cyan for data. Colours mirror shared/brand.ts. Light only.
   Type: Saira (display), Atkinson Hyperlegible Next (text), Fragment Mono (figures, labels, addresses).
   Devices: the ring (a small tilted ellipse with a dot riding it, as in the logo) and tick marks (like a ruler or dial).
   Served first; story.css, shell.css (the console shell and primitives) and the page sheets are appended after it. */
@font-face { font-family: "Saira"; src: url("/fonts/saira.woff2") format("woff2"); font-weight: 400 800; font-stretch: 100% 125%; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/fonts/atkinson-next.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Fragment Mono"; src: url("/fonts/fragment-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light; --sec: 56px; --sec-in: 28px; --head-h: 61px;
  --deck: #eceee8; --deck-2: #e1e5dc; --panel: #f8f9f5;
  --ink: #0f1b33; --ink-2: #45506a; --ink-3: #636c82;
  --blue: #1f4fd1; --blue-hi: #3d6cf0; --blue-deep: #15389a; --blue-soft: #dbe4fb; --on-blue: #fff;
  --flare: #d63a6a; --trace: #0b8aa3;
  --line: rgba(15, 27, 51, .12); --line-2: rgba(15, 27, 51, .22);
  --ok: #12764f; --warn: #8a5a00; --bad: #b8213f; --focus: #3d6cf0;
  --card: #fbfcf9; --well: #eef0e9; --track: #d3d9cf;
  --lane-core: #1f4fd1; --lane-summit: #d63a6a; --lane-rising: #0b8aa3; --unalloc: #aeb6c6; --meteora: #7b859b;
  --r: 12px;
  --display: "Saira", "Segoe UI", system-ui, sans-serif;
  --sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Fragment Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 1px 0 rgba(15, 27, 51, .04), 0 8px 24px -12px rgba(15, 27, 51, .18);
}
* { box-sizing: border-box; }
@media (min-width: 880px) { :root { --sec: 96px; --sec-in: 44px; } }
html, body, button, input, textarea, select { font-synthesis: none; }
[hidden] { display: none !important; }
html { background: var(--deck); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 16px/1.6 var(--sans); background: var(--deck);
  display: flex; flex-direction: column; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* the plotting grid: 24px squares, ink at 5 %, fixed behind everything */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(15, 27, 51, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 27, 51, .05) 1px, transparent 1px); background-size: 24px 24px; }
header, main, footer { position: relative; z-index: 1; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: var(--on-blue); padding: 8px 12px; z-index: 80; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s; }
a:hover { color: var(--blue-deep); }
::selection { background: var(--blue-soft); color: var(--ink); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* the ring glyph: a small tilted ellipse with a dot riding it (kickers, menu rows). --rc = ring colour, --rd = dot colour */
.kicker::before, .eyebrow::before, .sheet a::before, .ringglyph::before {
  content: ""; flex: none; width: 14px; height: 8px; border: 1.5px solid var(--rc, var(--blue)); border-radius: 50%; transform: rotate(-20deg);
  background: radial-gradient(circle at 80% 38%, var(--rd, var(--flare)) 0 2.1px, transparent 2.6px);
}


/* ---------- type ---------- */
main { flex: 1; padding: 24px 0 var(--sec); view-transition-name: page; overflow-x: clip; } /* drawn art may bleed past the edge; never the page */
main > * { animation: fade .4s var(--ease) both; }
::view-transition-old(page), ::view-transition-new(page) { animation: none; mix-blend-mode: normal; }
::view-transition-group(page) { animation-duration: .42s; animation-timing-function: var(--ease); }
h1, h2, .display { font-family: var(--display); font-weight: 680; font-stretch: 112%; letter-spacing: -.015em; overflow-wrap: break-word; }
h1 { font-size: clamp(34px, 9vw, 56px); line-height: 1.04; margin: 6px 0 14px; }
h2 { font-size: clamp(26px, 6.4vw, 38px); line-height: 1.08; margin: 52px 0 14px; }
h1 em, h2 em, .display em { font-style: normal; color: var(--blue-deep); }
h3 { font-size: 16.5px; margin: 0 0 4px; font-weight: 700; letter-spacing: -.005em; }
.lead { color: var(--ink-2); font-size: 17.5px; line-height: 1.6; margin: 0 0 18px; max-width: 60ch; }
.mute { color: var(--ink-2); } .faint { color: var(--ink-3); }
.small { font-size: 13.5px; }
.kicker, .eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: 11.5px; font-weight: 400; color: var(--ink-2); margin: 0; display: flex; align-items: center; gap: 10px; }
.sechead { display: flex; flex-wrap: wrap; align-items: end; gap: 6px 12px; margin: var(--sec) 0 16px; }
.sechead h2 { margin: 0; }
.sechead > .kicker { flex: 0 0 100%; margin-bottom: 4px; }
.sechead .spacer { flex: 1; }
.sechead > a { padding: 10px 4px; }
.num { font-variant-numeric: tabular-nums; }
.mono, code { font-family: var(--mono); }

/* ---------- buttons: pills, one action colour ---------- */
.btn { background: var(--blue); color: var(--on-blue); border: 1px solid var(--blue); border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 700; letter-spacing: -.005em; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 6px 14px -8px rgba(31, 79, 209, .7);
  transition: transform .18s var(--ease), background-color .2s, border-color .2s, box-shadow .3s, color .2s; touch-action: manipulation; }
.btn:hover { color: var(--on-blue); background: var(--blue-hi); border-color: var(--blue-hi); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 10px 22px -10px rgba(31, 79, 209, .75); }
.btn:active { transform: scale(.98); background: var(--blue-deep); border-color: var(--blue-deep); color: var(--on-blue); transition-duration: .08s; }
.btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic-go { transform: translateX(3px); }
.btn.sm { padding: 7px 16px; font-size: 14px; min-height: 36px; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn.ghost:hover { background: var(--blue-soft); color: var(--blue-deep); border-color: var(--blue); box-shadow: none; }
.btn.ghost:active { background: #c9d6f8; color: var(--blue-deep); }
.btn.danger { background: transparent; color: var(--bad); border-color: rgba(184, 33, 63, .45); box-shadow: none; }
.btn.danger:hover { background: rgba(184, 33, 63, .08); color: var(--bad); border-color: var(--bad); }
.btn svg, .ic { width: 18px; height: 18px; flex: none; }
.linkbtn { background: none; border: 0; color: var(--blue); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--blue-deep); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.actions > :first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.actions .btn { padding-inline: 12px; }
@media (min-width: 640px) { .actions { display: flex; flex-wrap: wrap; } }
.more { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; }
.more .ic { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.more:hover .ic { transform: translateX(4px); }

/* ---------- surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.card + .card, .card + .tablewrap, .stats + .card, .coinhead + .lead { margin-top: 12px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrapx { flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 20px; box-shadow: var(--shadow); }
@media (min-width: 880px) { .panel { padding: 34px 32px; } }

/* figures in one instrument panel: hairline cells with a short tick scale on top. .stats (coin page, treasury) and .ledger share it */
.stats, div.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 18px 0; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.stats > *, div.ledger > * { background: var(--card); border: 0; border-radius: 0; box-shadow: none; margin: 0; }
.stats > .card:nth-child(n) { margin: 0; }
@media (min-width: 760px) { .stats, div.ledger { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 22px 16px 15px; position: relative; min-width: 0; }
.stat::before { content: ""; position: absolute; top: 10px; left: 16px; width: 36px; height: 5px; background: repeating-linear-gradient(90deg, var(--ink-3) 0 1px, transparent 1px 6px); opacity: .6; }
.stat b { display: block; font: 400 clamp(19px, 5.4vw, 27px)/1.15 var(--mono); letter-spacing: -.04em; overflow-wrap: anywhere; color: var(--ink); }
.stat span { color: var(--ink-2); font-size: 13.5px; display: block; margin-top: 6px; line-height: 1.35; }
div.ledger { margin: 28px 0 0; }
div.ledger .stat b { white-space: nowrap; overflow-wrap: normal; }
@media (min-width: 760px) { div.ledger .stat { padding: 28px 22px 20px; } div.ledger .stat::before { left: 22px; top: 14px; } div.ledger .stat b { font-size: clamp(26px, 3vw, 33px); } }
.src { display: inline-flex !important; align-items: center; gap: 7px; font: 400 11px/1.3 var(--mono); color: var(--ink-3) !important; margin-top: 9px !important; max-width: 100%; white-space: normal; }
.src::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); flex: none; }
.src.chain::before { background: var(--ok); animation: beat 2.4s ease-in-out infinite; }
.src.market::before { background: var(--trace); }
.src.ledger::before { background: var(--blue); }
@keyframes beat { 50% { opacity: .3; } }

/* the treasury vault: one instrument panel, figures in hairline cells */
.vault { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 22px 18px; margin: 18px 0; box-shadow: var(--shadow); }
.vault .stats { margin: 14px -18px 8px; box-shadow: none; border-width: 1px 0; border-radius: 0; }
@media (min-width: 880px) { .vault .stats { margin-left: -30px; margin-right: -30px; } }
.vault > .stats:last-child { margin-bottom: -22px; border-bottom: 0; }
@media (min-width: 880px) { .vault > .stats:last-child { margin-bottom: -30px; } }
.vault .stat b { color: var(--ink); white-space: nowrap; overflow-wrap: normal; font-size: clamp(20px, 5.4vw, 26px); }
.vault .addr { margin: 12px 0 0; }
@media (min-width: 880px) { .vault { padding: 30px; } }

/* ---------- coin rows ---------- */
.coins { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.coins > .coin { border-bottom: 1px solid var(--line); }
.coins > .coin:last-child { border-bottom: 0; }
.coins > .empty { border: 0; box-shadow: none; grid-column: 1 / -1; }
@media (min-width: 880px) { .coins.two { grid-template-columns: 1fr 1fr; } .coins.two > .coin:nth-child(odd) { border-right: 1px solid var(--line); } .coins.two > .coin:nth-last-child(2):nth-child(odd) { border-bottom: 0; } }
.coin { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; text-decoration: none; color: inherit; padding: 14px 16px; position: relative; transition: background-color .2s; }
.coin:hover { background: rgba(219, 228, 251, .55); color: inherit; }
.coin::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); transform: scaleY(0); transition: transform .35s var(--ease); }
.coin:hover::before { transform: none; }
.coin img, .art { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--track); display: block; box-shadow: 0 0 0 1px var(--line-2); }
.coin .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.coin .tk { color: var(--ink-3); font-size: 12px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin .mc { text-align: right; white-space: nowrap; font-weight: 700; }
.coin .rank { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; background: var(--well); line-height: 1.4; }
.pill .ic { width: 14px; height: 14px; }
.pill.ok { color: var(--ok); border-color: rgba(18, 118, 79, .35); background: rgba(18, 118, 79, .08); }
.pill.warn { color: var(--warn); border-color: rgba(138, 90, 0, .35); background: rgba(138, 90, 0, .08); }
.pill.hot { color: #a8244c; background: rgba(214, 58, 106, .1); border-color: rgba(214, 58, 106, .4); font-weight: 700; }
.up { color: var(--ok); } .down { color: var(--bad); } .flat { color: var(--ink-3); }
.podium { background: linear-gradient(90deg, rgba(219, 228, 251, .7), transparent 60%); }
.podium::before { transform: none; }

/* ---------- coin page ---------- */
.coinhead { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: center; }
.coinhead img, .coinhead .art { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-2), 0 0 0 6px var(--panel), 0 0 0 7px var(--line-2); }
.coinhead h1 { margin: 0; font-size: clamp(28px, 7vw, 44px); overflow-wrap: anywhere; }
.coinhead .pills { grid-column: 1 / -1; gap: 6px; }
.bar { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue-deep), var(--blue) 60%, var(--blue-hi)); transform-origin: left; animation: grow 1s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.addr { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); }
code { background: var(--well); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; word-break: break-all; font-size: .82em; }

/* ---------- forms ---------- */
form label, .lbl { display: block; margin: 16px 0 6px; font-weight: 700; font-size: 14px; }
.hint { color: var(--ink-3); font-size: 12.5px; margin: 6px 0 0; }
input, textarea, select { width: 100%; background: var(--panel); border: 1px solid var(--line-2); color: var(--ink); border-radius: 8px; padding: 12px 13px; font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
input:hover, textarea:hover, select:hover { border-color: var(--ink-3); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 79, 209, .2); }
input[aria-invalid="true"] { border-color: var(--bad); }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--blue); flex: none; margin: 2px 0 0; }
input[type="search"] { -webkit-appearance: none; appearance: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--ink-2); margin: 12px 0; }
.drop { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; border: 1px dashed var(--ink-3); border-radius: var(--r); padding: 12px; cursor: pointer; background: var(--well); position: relative; transition: border-color .2s, background-color .2s; }
.drop:hover { border-color: var(--blue); background: var(--blue-soft); }
.drop:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.drop img, .drop .art { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.err { color: var(--bad); } .okmsg { color: var(--ok); }
.fielderr { color: var(--bad); font-size: 13px; margin: 5px 0 0; }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
option { background: var(--panel); color: var(--ink); }

/* ---------- launch wizard ---------- */
.launch { display: grid; gap: 18px; }
@media (min-width: 900px) { .launch { grid-template-columns: 1.25fr .75fr; align-items: start; } .launch aside { position: sticky; top: 86px; } }
.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 6px 0 18px; counter-reset: st; }
.stepper li { counter-increment: st; flex: 1; font-size: 13px; color: var(--ink-3); padding-top: 12px; font-weight: 700; position: relative; }
.stepper li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 999px; background: var(--track); }
.stepper li.on { color: var(--ink); } .stepper li.on::after { background: var(--blue); }
.stepper li.done { color: var(--ink-2); } .stepper li.done::after { background: var(--blue-deep); opacity: .55; }
.review dl { display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: 10px 14px; margin: 12px 0; font-size: 14.5px; }
.review dt { color: var(--ink-3); }
.review dd { margin: 0; overflow-wrap: anywhere; }
.review h2 { font-size: 26px; }
.split { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; margin: 10px 0 8px; animation: wipe .9s var(--ease) both; }
.split i { display: block; height: 100%; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend span::before { content: ""; width: 9px; height: 9px; background: var(--c); border-radius: 50%; flex: none; }
.progress { display: grid; gap: 10px; margin: 14px 0; padding: 0; list-style: none; }
.progress li { display: flex; gap: 10px; align-items: center; color: var(--ink-3); font-size: 15px; }
.progress li.on { color: var(--ink); } .progress li.done { color: var(--ok); } .progress li.fail { color: var(--bad); }
.progress li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.progress li.on::before { border-color: var(--blue); border-top-color: transparent; animation: spin .8s linear infinite; }
.progress li.done::before { background: var(--ok); }
@keyframes spin { to { transform: rotate(360deg); } }
.summary { white-space: pre-wrap; font: 11.5px/1.6 var(--mono); background: var(--well); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--ink-2); overflow-wrap: anywhere; }

/* ---------- notices, empty states ---------- */
.notice { border: 1px solid rgba(138, 90, 0, .35); background: #f6ecd2; color: #5e3d00; border-radius: var(--r); padding: 12px 16px; margin: 14px 0; }
.notice.info { border-color: rgba(31, 79, 209, .3); background: var(--blue-soft); color: var(--blue-deep); }
.notice.bad { border-color: rgba(184, 33, 63, .35); background: #f8dfe5; color: #8b1832; }
.empty { text-align: center; padding: 22px 16px; color: var(--ink-2); background: transparent; border: 1px dashed var(--line-2); box-shadow: none; }
.empty > svg:not(.empty-art) { width: 40px; height: 40px; margin: 0 auto 10px; display: block; color: var(--blue); stroke-width: 1.4; }
.empty .empty-art { width: 140px; height: auto; margin: 0 auto 2px; display: block; overflow: visible; }
.empty p { max-width: 42ch; margin: 0 auto 12px; }
.soon { text-align: center; padding: 34px 20px; }
.soon .mark svg { width: 84px; height: 84px; margin: 0 auto 10px; display: block; }
.checklist { list-style: none; padding: 0; margin: 18px auto; max-width: 440px; text-align: left; display: grid; border-top: 1px solid var(--line); }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.checklist .ic { color: var(--ink-3); } .checklist li.ok { color: var(--ink); } .checklist li.ok .ic { color: var(--ok); }

/* ---------- lists, tables, details ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 0; margin: 18px 0 0; }
.steps li.card { counter-increment: s; position: relative; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; margin: 0; padding: 20px 0 20px 40px; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: ""; position: absolute; left: 4px; top: 28px; width: 12px; height: 12px; border: 2px solid var(--blue); border-radius: 50%; background: var(--deck); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; white-space: nowrap; }
th { color: var(--ink-3); font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; background: var(--well); }
tbody tr { transition: background-color .15s; } tbody tr:hover { background: rgba(219, 228, 251, .4); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--mono); }
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px; margin: 8px 0; transition: border-color .2s; }
details[open] { border-color: var(--line-2); padding-bottom: 4px; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; color: var(--blue); font: 400 16px/1 var(--mono); transition: transform .35s var(--ease), background-color .2s; }
summary:hover::after { background: var(--blue-soft); }
details[open] > summary::after { transform: rotate(45deg); }
.faq { margin-top: 6px; }
.faq details { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 2px; margin: 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { font-size: 17px; font-weight: 600; padding: 18px 0; }
.faq details p { margin: 0 0 18px; max-width: 66ch; color: var(--ink-2); }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(23px, 5vw, 30px); margin-top: 40px; }
.prose ul { list-style: none; padding: 0; margin: 10px 0; }
.prose li { margin: 8px 0; color: var(--ink-2); padding-left: 24px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 9px; height: 9px; border: 1.5px solid var(--blue); border-radius: 50%; }
.toolbar { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 12px 0 14px; }
@media (min-width: 640px) { .toolbar { grid-template-columns: 1fr auto; } }
.seg { display: inline-flex; background: var(--deck-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; justify-self: start; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { background: none; border: 0; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 700; padding: 8px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s; min-height: 40px; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--blue-soft); color: var(--blue-deep); box-shadow: inset 0 0 0 1px rgba(31, 79, 209, .22); }

/* ---------- charts ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-l { stroke: var(--line); }
.chart .axis { fill: var(--ink-3); font-size: 11px; font-family: var(--mono); }
.chart .line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: url(#burnfill); }
.chart .dot { fill: var(--flare); stroke: var(--card); stroke-width: 2; }
.chart .hair { stroke: var(--line-2); }
.chartbox { position: relative; }
.tip { position: absolute; pointer-events: none; background: var(--ink); border: 1px solid var(--ink); color: var(--panel); border-radius: 8px; padding: 6px 9px; font-size: 12.5px; white-space: nowrap; transform: translate(-50%, -115%); box-shadow: 0 10px 24px -8px rgba(15, 27, 51, .4); }

/* ---------- skeletons ---------- */
.sk { background: linear-gradient(90deg, rgba(15, 27, 51, .05) 25%, rgba(15, 27, 51, .1) 37%, rgba(15, 27, 51, .05) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: var(--r); }
.sk-h1 { height: 46px; width: min(420px, 80%); margin: 10px 0 16px; }
.sk-line { height: 16px; width: min(640px, 95%); margin: 8px 0; }
.sk-line.short { width: min(360px, 60%); }
.sk-card { height: 80px; }
.sk-stat { height: 86px; border-radius: 0; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- dialogs, toasts ---------- */
dialog { background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); border-radius: 16px; padding: 22px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 30px 70px -20px rgba(15, 27, 51, .45); }
dialog[open] { animation: pop .3s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }
dialog::backdrop { background: rgba(15, 27, 51, .5); }
dialog h2 { margin: 0 0 6px; font-size: 26px; }
.wlist { display: grid; gap: 8px; margin: 14px 0; }
.wlist button, .wlist a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line-2); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; min-height: 52px; transition: border-color .2s, background-color .2s, transform .15s; }
.wlist button:hover, .wlist a:hover { border-color: var(--blue); background: var(--blue-soft); color: var(--ink); }
.wlist button:active, .wlist a:active { transform: scale(.99); }
.wlist img { width: 28px; height: 28px; border-radius: 8px; }
.toasts { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; width: min(440px, calc(100vw - 28px)); pointer-events: none; }
.toast { background: var(--panel); border: 1px solid var(--line-2); color: var(--ink); border-radius: var(--r); padding: 12px 16px; font-size: 14px; box-shadow: 0 16px 36px -10px rgba(15, 27, 51, .4); animation: rise .35s var(--ease) both; pointer-events: auto; display: flex; gap: 12px; align-items: center; }
.toast::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--blue); flex: none; }
.toast.err::before { border-color: var(--bad); background: var(--bad); }
.toast.ok::before { border-color: var(--ok); background: var(--ok); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- mission patches and the empty state (client/art.ts): round drawings in inline SVG, coloured from the palette ---------- */
.patch, .empty-art { display: block; overflow: visible; }
@keyframes lift { from { transform: translateY(0); } to { transform: translateY(-4px); } }
.empty-art .em-planet { fill: var(--blue); } .empty-art .em-orbit { fill: none; stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 3 5; }
.empty-art .em-ring { fill: none; stroke: var(--ink); stroke-width: 1.6; } .empty-art .em-sat { fill: var(--flare); }
.em-x { animation: em-x 7s cubic-bezier(.37, 0, .63, 1) infinite alternate; }
.em-y { animation: em-y 7s cubic-bezier(.37, 0, .63, 1) -3.5s infinite alternate; }
@keyframes em-x { to { transform: translateX(-108px); } }
@keyframes em-y { from { transform: translateY(-17px); } to { transform: translateY(17px); } }

/* ---------- reveals: content is hidden only once the user scrolls and only while it is still below the screen (app.ts reveal()). Things rise into place. ---------- */
.rv-hide { opacity: 0; transform: translateY(10px) rotate(.4deg); }
.rv-on { transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }


.home { overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .pt-spin, .pt-draw, .pt-lift, .em-x, .em-y, .sk, .progress li.on::before, .src.chain::before, .wheel .spin, .loop::after, .loop li::before { animation: none !important; }
  .rv-hide { opacity: 1; transform: none; }
}

/* connected wallet + X link + menu overflowed the header between 380 and 410px: drop the wallet icon once an address is shown */
@media (max-width: 419px) { #wallet:not([title^="Connect"]) .ic { display: none; } }

/* Story drawings (client/story.ts): the fee-split explorer and the burn orbits, laid out as console panels (see docs.css for the page).
   Tokens come from style.css. The base state of every drawing is its finished state; motion is added on top, only under no-preference. */
.ep-dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--c, currentColor); }

/* shared drawing parts */
.pm-r { fill: var(--ink); } .pm-p { fill: var(--blue); } .pm-s { fill: var(--flare); }
.sat-b { fill: var(--blue-deep); } .sat-p { fill: var(--ink); opacity: .85; } .sat-w { stroke: var(--ink); stroke-width: 1; fill: none; }
.ep-orbits text, .ep-curve text { font-family: var(--mono); }

/* ---------- follow one trade ---------- */
.ep-tf { display: grid; gap: 14px; align-items: start; }
.ep-tf > .pnl + .pnl { margin-top: 0; }
@media (min-width: 880px) { .ep-tf { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.ep-intro { margin: 0 0 14px; }
.ep-ctl { display: block; margin: 0 0 14px; }
.ep-ctl > span { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 6px; font: 400 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.ep-ctl output { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 13px; }
.ep-ctl input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 40px; margin: 0; padding: 0; background: transparent; border: 0; cursor: pointer; }
.ep-ctl input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--line-2); }
.ep-ctl input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-2); }
.ep-ctl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; border: 5px solid var(--blue); background: var(--panel); }
.ep-ctl input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; border: 5px solid var(--blue); background: var(--panel); }
.ep-ctl input[type=range]:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
.ep-curve { display: block; width: 100%; max-width: 440px; height: auto; margin-top: 4px; }
.ep-curve .ax { stroke: var(--line-2); fill: none; }
.ep-curve .ln { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ep-curve .ar { fill: var(--blue); opacity: .1; stroke: none; }
.ep-curve .dot { transition: transform .25s var(--ease); }
.ep-curve .dot-halo { fill: var(--flare); opacity: .2; } .ep-curve .dot-c { fill: var(--flare); }
.ep-curve .tk { font-size: 12px; fill: var(--ink-2); }
.ep-fee { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ep-fk { grid-column: 1 / -1; font: 400 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.ep-big b { font: 400 clamp(36px, 10vw, 48px)/1 var(--mono); color: var(--blue-deep); letter-spacing: -.04em; }
.ep-fs { font-size: 14px; color: var(--ink-2); line-height: 1.4; } .ep-fs b { color: var(--ink); font-weight: 400; font-family: var(--mono); font-size: 13px; }
.ep-h { margin: 16px 0 6px; font: 400 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.ep-split { display: block; width: 100%; height: auto; max-height: 84px; }
.ep-split .trunk { fill: none; stroke: var(--ink-2); stroke-width: 6; stroke-linecap: round; opacity: .35; }
.ep-split .br { fill: none; stroke: var(--c); stroke-linecap: round; opacity: .85; }
.ep-split .end { fill: var(--c); }
.ep-split .src { fill: var(--ink); }
.ep-split .flow { fill: none; stroke: var(--panel); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1 11; opacity: .9; }
.ep-split .met, .ep-leg .met { --c: var(--ink-3); } .ep-split .cre, .ep-leg .cre { --c: var(--blue-hi); } .ep-split .tre, .ep-leg .tre { --c: var(--blue-deep); }
.ep-split .core, .ep-leg .core { --c: var(--lane-core); } .ep-split .sum, .ep-leg .sum { --c: var(--lane-summit); } .ep-split .ris, .ep-leg .ris { --c: var(--lane-rising); }
.ep-leg { list-style: none; margin: 4px 0 0; padding: 0; }
.ep-leg li { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.ep-leg li:last-child { border-bottom: 0; }
.ep-leg b { font: 400 13px var(--mono); color: var(--ink); text-align: right; }
.ep-note { margin: 14px 0 0; color: var(--ink-2); font-size: 13.5px; }
@media (prefers-reduced-motion: no-preference) {
  .ep-split .flow { animation: ep-flow 2.4s linear infinite; animation-delay: var(--d, 0s); }
  @keyframes ep-flow { to { stroke-dashoffset: -24; } }
}

/* ---------- where a burn goes: three orbits ---------- */
.ep-lanes { display: grid; gap: 14px; align-items: start; }
.ep-lanes > .pnl + .pnl { margin-top: 0; }
@media (min-width: 880px) { .ep-lanes { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.ep-orbits-w { margin: 4px auto 0; max-width: 440px; }
.ep-orbits { display: block; width: 100%; height: auto; overflow: visible; }
.ep-orbits .lane-orb { fill: none; stroke: var(--c); opacity: .75; }
.ep-lane.core, .ep-orbits .core { --c: var(--lane-core); } .ep-lane.summit, .ep-orbits .summit { --c: var(--lane-summit); } .ep-lane.rising, .ep-orbits .rising { --c: var(--lane-rising); }
.ep-orbits .lane-sat .sat-b { fill: var(--c); } .ep-orbits .lane-sat .sat-p { fill: var(--ink); opacity: .8; }
.ep-orbits .trail { fill: none; stroke: var(--flare); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1 6; opacity: .85; }
.ep-orbits .lane-tag rect { fill: var(--panel); stroke: var(--c); stroke-width: 1.2; }
.ep-orbits .lane-tag text { font-size: 13px; fill: var(--ink); }
.ep-lane-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ep-lane { padding: 14px; border-left: 3px solid var(--c); margin: 0; }
.ep-lane + .ep-lane { margin-top: 0; }
.ep-lane h3 { margin: 0 0 6px; display: flex; align-items: center; gap: 10px; font: 650 19px/1.15 var(--display); font-stretch: 108%; color: var(--ink); }
.ep-lane h3 .ep-dot { background: var(--c); }
.ep-lane h3 b { margin-left: auto; font: 400 13px var(--mono); color: var(--ink); padding: 3px 9px; border-radius: 3px; border: 1px solid var(--c); background: var(--panel); }
.ep-lane p { margin: 0; max-width: 54ch; color: var(--ink-2); }
.ep-ranks { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ep-ranks li { display: flex; gap: 8px; align-items: baseline; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--panel); font: 400 12.5px var(--mono); color: var(--ink-2); }
.ep-ranks b { color: var(--ink); font-weight: 400; }
@media (prefers-reduced-motion: no-preference) {
  .ep-orbits .trail { animation: ep-dash 2s linear infinite; }
  @keyframes ep-dash { to { stroke-dashoffset: -14; } }
  .ep-orbits .lane-sat { transform-box: fill-box; transform-origin: center; animation: ep-bob 6s ease-in-out infinite; }
  .ep-orbits .lane-sat.summit { animation-delay: -2s; } .ep-orbits .lane-sat.rising { animation-delay: -4s; }
  @keyframes ep-bob { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(3px, -2px); } }
}

/* Orbitpad console shell (docs/DESIGN-CONSOLE.md). The site is one mission-control console: a dark status bar on top, a dark rail of
   numbered channels on the left (desktop), and a light work deck where every page is laid out as panels with hairline borders.
   Phones: the rail folds into the menu sheet; pages stack their panels. Served after style.css and story.css; it overrides their
   primitives (square 4px corners, no soft shadows, mono labels) so every page shares one console vocabulary. */
:root {
  --bar-h: 52px; --rail-w: 92px; --r: 4px;
  --scope: #0c1630; --scope-2: #13204a; --scope-3: #1b2b5c; --scope-line: rgba(220, 230, 255, .13); --scope-line-2: rgba(220, 230, 255, .24);
  --scope-ink: #e6ecfa; --scope-ink-2: #b4c0dc; --scope-ink-3: #9fb0d0;
  --core-hi: #6f93ff; --summit-hi: #ff7aa1; --rising-hi: #39c6de;
  --shadow: none;
  --t1: 11px; --t2: 13px; --t3: 15px; --t4: 19px; --t5: 26px; --t6: clamp(28px, 3.4vw, 40px);
}
body { font-size: 15px; line-height: 1.55; }

/* ---------- status bar: logo, live readouts, actions ---------- */
.sbar { position: sticky; top: 0; z-index: 30; background: var(--scope); color: var(--scope-ink); border-bottom: 1px solid var(--scope-line-2); }
.sbar-in { display: flex; align-items: center; gap: 8px; height: calc(var(--bar-h) - 1px); padding: 0 10px 0 14px; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--scope-ink); text-decoration: none; font: 700 19px/1 var(--display); font-stretch: 112%; letter-spacing: -.01em; flex: none; margin-right: auto; }
.logo:hover { color: #fff; }
.logo .mark svg { display: block; width: 28px; height: 28px; background: var(--panel); border-radius: 50%; padding: 1px; transition: transform .7s var(--ease); }
.logo:hover .mark svg { transform: rotate(-14deg); }
.readouts { display: none; }
.ro-cell { display: inline-flex; align-items: baseline; gap: 7px; padding: 0 14px; border-left: 1px solid var(--scope-line); font: 400 12px/1 var(--mono); white-space: nowrap; }
.ro-cell i { font-style: normal; color: var(--scope-ink-3); text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; }
.ro-cell b { font-weight: 400; color: var(--scope-ink); }
.ro-cell.go b::before, .ro-cell.hold b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: #3ad29f; vertical-align: 1px; animation: beat 2.4s ease-in-out infinite; }
.ro-cell.hold b::before { background: #f2b544; }
.head-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.head-actions .btn, .menu-btn { height: 40px; min-height: 0; position: relative; }
.head-actions .btn::after, .menu-btn::after { content: ""; position: absolute; inset: -3px; }
.head-actions .head-x { width: 40px; padding: 0; background: transparent; color: var(--scope-ink); border-color: var(--scope-line-2); }
.head-actions .head-x:hover { background: var(--scope-3); color: #fff; border-color: var(--scope-ink-3); }
.head-x svg { width: 15px; height: 15px; }
#wallet { max-width: 150px; overflow: hidden; white-space: nowrap; padding: 0 13px; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; padding: 0; background: transparent; border: 1px solid var(--scope-line-2); border-radius: var(--r); color: var(--scope-ink); cursor: pointer; touch-action: manipulation; width: 40px; }
.menu-btn:hover { background: var(--scope-3); }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 16px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn i { position: relative; background: transparent; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; top: 0; }
.menu-btn i::before { transform: translateY(-3.5px); } .menu-btn i::after { transform: translateY(3.5px); }
.menu-btn[aria-expanded="true"] { background: var(--blue); border-color: var(--blue); }
.menu-btn[aria-expanded="true"] i::before { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: rotate(-45deg); }
@media (max-width: 379px) { .head-actions .head-x { display: none; } .logo { font-size: 17px; } #wallet { max-width: 120px; } }
@media (max-width: 419px) { #wallet:not([title^="Connect"]) .ic { display: none; } }

/* ---------- phone menu: a dark channel grid that drops from the bar ---------- */
.scrim { display: none; position: fixed; inset: 0; z-index: 24; background: rgba(12, 22, 48, .45); animation: fade .25s var(--ease) both; }
.sheet { position: fixed; left: 0; right: 0; top: var(--bar-h); z-index: 26; background: var(--scope); border-bottom: 1px solid var(--scope-line-2); padding: 1px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background-color: var(--scope-line); max-height: calc(100dvh - var(--bar-h)); overflow-y: auto; animation: drop .3s var(--ease) both; }
.sheet:not([hidden]) + .scrim { display: block; }
.sheet a { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 68px; padding: 10px 16px; background: var(--scope); color: var(--scope-ink); text-decoration: none; font: 650 17px/1.15 var(--display); font-stretch: 108%; }
.sheet a i { font: 400 10.5px/1 var(--mono); font-style: normal; color: var(--scope-ink-3); letter-spacing: .12em; }
.sheet a[aria-current="page"] { background: var(--scope-3); box-shadow: inset 3px 0 0 var(--core-hi); }
.sheet a[aria-current="page"] i { color: var(--core-hi); }
@keyframes drop { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- frame: rail + deck ---------- */
.frame { flex: 1; display: flex; min-height: 0; position: relative; z-index: 1; }
.rail { display: none; }
.deck { flex: 1; min-width: 0; display: flex; flex-direction: column; }
@media (min-width: 1000px) {
  .readouts { display: flex; align-items: center; margin-right: 8px; }
  .menu-btn, .sheet, .scrim { display: none !important; }
  .logo { margin-right: 18px; }
  .readouts { margin-right: auto; }
  .frame { background: linear-gradient(90deg, var(--scope) calc(var(--rail-w) - 1px), var(--scope-line-2) calc(var(--rail-w) - 1px), var(--scope-line-2) var(--rail-w), transparent var(--rail-w)); }
  .rail { display: flex; flex-direction: column; flex: none; width: var(--rail-w); position: sticky; align-self: flex-start; top: var(--bar-h); height: calc(100dvh - var(--bar-h)); background: var(--scope); border-right: 1px solid var(--scope-line-2); padding: 8px 0; overflow-y: auto; }
  .rail a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 11px 6px; color: var(--scope-ink-2); text-decoration: none; text-align: center; font: 600 11.5px/1.2 var(--sans); transition: color .2s, background-color .2s; }
  .rail a i { font: 400 11px/1 var(--mono); font-style: normal; letter-spacing: .1em; color: var(--scope-ink-3); width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--scope-line-2); border-radius: 50%; transition: border-color .2s, color .2s, background-color .2s; }
  .rail a:hover { color: #fff; background: var(--scope-2); }
  .rail a:hover i { border-color: var(--scope-ink-3); color: var(--scope-ink); }
  .rail a[aria-current="page"] { color: #fff; background: var(--scope-2); }
  .rail a[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--core-hi); }
  .rail a[aria-current="page"] i { background: var(--blue); border-color: var(--blue); color: #fff; }
}

/* ---------- main + slim footer ---------- */
main { flex: 1; padding: 18px 0 40px; view-transition-name: page; overflow-x: clip; }
main > * { animation: acquire .34s cubic-bezier(.65, 0, .35, 1) both; }
.wrap { max-width: 1240px; padding: 0 16px; }
@media (min-width: 1000px) { main { padding: 22px 8px 40px; } .wrap { padding: 0 22px; } }
.foot { position: relative; z-index: 1; border-top: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2); font-size: 13px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 10px 16px; max-width: 1240px; }
@media (min-width: 1000px) { .foot-in { padding: 8px 30px; } }
.foot-copy { margin: 0; font: 400 11.5px/1.4 var(--mono); letter-spacing: .08em; color: var(--ink-3); }
.foot-note { margin: 0; flex: 1 1 260px; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }
.foot-links a, #foot-ext a { color: var(--ink); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.foot-links a:hover { color: var(--blue); }
#foot-ext { display: inline-flex; gap: 14px; }
.foot-x svg { width: 13px; height: 13px; }
@keyframes acquire { from { opacity: 0; clip-path: inset(0 0 0 0); transform: translateX(-10px); } to { opacity: 1; transform: none; } }

/* ---------- console primitives: square, hairline, mono-labelled ---------- */
h1, h2 { letter-spacing: -.01em; }
h1 { font-size: var(--t6); line-height: 1.05; margin: 4px 0 10px; }
h2 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.12; margin: 28px 0 10px; }
h3 { font-size: var(--t3); }
.lead { font-size: 16px; line-height: 1.55; }
.btn { border-radius: var(--r); box-shadow: none; padding: 11px 18px; }
.btn:hover { box-shadow: none; }
.btn.sm { padding: 6px 13px; min-height: 40px; }
.card, .panel, .coins, .stats, div.ledger, .empty, .notice, .tablewrap, input, textarea, select, .seg, .seg button, .drop, details, .vault, .toast, dialog { border-radius: var(--r) !important; }
.card, .panel, .coins { box-shadow: none; }
.pill { border-radius: 3px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; }

/* page head: a dark console band across the top of the deck, like the home scope. Mono path, compact title, lead, actions */
.phead { position: relative; display: grid; gap: 12px 24px; align-items: end; margin: -18px -16px 18px; padding: 18px 16px 18px; background: var(--scope); color: var(--scope-ink); border-bottom: 1px solid var(--scope-line-2);
  box-shadow: 0 0 0 100vmax var(--scope); clip-path: inset(0 -100vmax); } /* the band runs edge to edge of the deck; main clips it */
.phead::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(var(--scope-line) 1px, transparent 1px), linear-gradient(90deg, var(--scope-line) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(90deg, transparent, #000 60%); }
.tk-head::after { content: ""; position: absolute; right: -40px; top: 50%; width: 300px; height: 300px; margin-top: -150px; border-radius: 50%; pointer-events: none;
  border: 1px solid var(--scope-line-2); box-shadow: 0 0 0 46px rgba(12, 22, 48, 0), 0 0 0 47px var(--scope-line), 0 0 0 98px rgba(12, 22, 48, 0), 0 0 0 99px var(--scope-line); }
.phead > * { position: relative; z-index: 1; }
.phead > .ph-orb { position: absolute; z-index: 0; right: -30px; top: 50%; width: 380px; height: auto; transform: translateY(-50%); opacity: .9; pointer-events: none; }
.ho-o { fill: none; stroke: var(--scope-line-2); stroke-width: 1.2; }
.ho-p { fill: var(--blue); stroke: var(--scope); stroke-width: 3; }
.ho-a { fill: var(--summit-hi); } .ho-b { fill: var(--core-hi); } .ho-c { fill: var(--rising-hi); }
@media (max-width: 759px) { .phead > .ph-orb { width: 220px; right: -96px; top: -46px; transform: none; opacity: .4; } }
@media (min-width: 760px) { .phead { grid-template-columns: minmax(0, 1fr) auto; } }
@media (min-width: 1000px) { .phead { margin: -22px -30px 22px; padding: 26px 30px 24px; } }
.ph-path { display: flex; flex-wrap: wrap; gap: 0; margin: 0; font: 400 var(--t1)/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--scope-ink-3); }
.ph-path span + span::before { content: "/"; margin: 0 9px; color: var(--scope-line-2); }
.ph-path span:last-child { color: var(--core-hi); }
.phead h1 { margin: 10px 0 6px; color: #fff; }
.phead h1 em { color: var(--core-hi); }
.phead .lead { margin: 0; max-width: 68ch; font-size: 15px; color: var(--scope-ink-2); }
.phead a:not(.btn) { color: #a9c0ff; }
.ph-act { display: flex; gap: 8px; flex-wrap: wrap; }
.phead .btn.ghost { background: transparent; color: var(--scope-ink); border-color: var(--scope-line-2); }
.phead .btn.ghost:hover { background: var(--scope-3); color: #fff; }

/* panel: a bordered box with a mono header row */
.pnl { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); min-width: 0; }
.pnl + .pnl { margin-top: 14px; }
.pnl-h { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 14px; border-bottom: 1px solid var(--line); font: 400 var(--t1)/1.2 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); }
.pnl-h > .spacer { flex: 1; }
.pnl-h a { text-transform: none; letter-spacing: 0; font: 600 13px/1 var(--sans); text-decoration: none; }
.pnl-h .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--blue)); flex: none; }
.pnl-b { padding: 14px; }
.pnl-b > :first-child { margin-top: 0; }
.pnl-b > :last-child { margin-bottom: 0; }

/* layout: a work area and a sticky inspector on the right (wide screens) */
.cgrid { display: grid; gap: 14px; align-items: start; }
@media (min-width: 1100px) { .cgrid { grid-template-columns: minmax(0, 1fr) 360px; } .cgrid > .insp { position: sticky; top: calc(var(--bar-h) + 16px); } }

/* readouts: mono label, big figure, source */
.ro-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
@media (min-width: 760px) { .ro-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ro { background: var(--card); padding: 12px 14px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ro-k { font: 400 var(--t1)/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ro-v { font: 400 clamp(20px, 2.4vw, 28px)/1.1 var(--mono); letter-spacing: -.04em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro .src { margin-top: 2px; }

/* tabs: a rail of square tabs with an underline; on phones they read as one segmented control */
.tabbar { display: flex; gap: 0; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--well); padding: 3px; }
.tabbar [role="tab"] { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 6px 8px; background: transparent; border: 0; border-radius: 3px; color: var(--ink-2); font: 600 13.5px/1.1 var(--sans); cursor: pointer; white-space: nowrap; transition: color .2s, background-color .2s; }
.tabbar [role="tab"]:hover { color: var(--ink); }
.tabbar [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; }
.seg { border-radius: var(--r); }

/* event log: time, body, value */
.log { list-style: none; margin: 0; padding: 0; }
.log > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 10px 14px; border-top: 1px solid var(--line); }
.log > li:first-child { border-top: 0; }
.log .t { font: 400 var(--t1)/1.4 var(--mono); color: var(--ink-3); letter-spacing: .06em; white-space: nowrap; }
.log .v { font: 400 13px/1.4 var(--mono); white-space: nowrap; text-align: right; }

/* the acquire motion: content swapped into a panel wipes in from the left */
.acq { animation: acquire .3s cubic-bezier(.65, 0, .35, 1) both; }

@media (prefers-reduced-motion: reduce) {
  main > *, .acq, .sheet { animation: none !important; }
  .ro-cell.go b::before, .ro-cell.hold b::before { animation: none; }
}

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.foot-note a { color: var(--blue); font-weight: 600; }
/* empty states: compact, the drawing small, so an empty table does not become a poster */
.empty { padding: 14px 14px 16px; }
.empty .empty-art { width: 92px; }
.empty p { margin-bottom: 10px; }

body::before { content: none; }
.deck { background-color: var(--deck); background-image: linear-gradient(rgba(15, 27, 51, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 27, 51, .05) 1px, transparent 1px); background-size: 24px 24px; }

/* Home console (client/pages/home.ts): dark scope with the radial orbit (bezel nav, lane rings, coin satellites, corner readouts),
   the newest-coins log under it, the tabbed inspector on the right. Desktop: one screen, no page scroll. Phones: scope band, then
   the segmented tabs and the inspector, then the log. */
main:has(> .home) { padding: 0; }
.home { display: grid; grid-template-areas: "scope" "insp" "log"; gap: 0; animation: none; }
.scope { grid-area: scope; position: relative; background: var(--scope); color: var(--scope-ink); overflow: hidden; padding: 4px 10px 10px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.scope::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--scope-line) 1px, transparent 1px), linear-gradient(90deg, var(--scope-line) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%); }
.scope-fig { position: relative; display: grid; place-items: center; }
.orb { width: 100%; max-width: 230px; height: auto; display: block; overflow: visible; font-family: var(--mono); }
.ln-label, .sc-t { display: none; }

/* bezel */
.bz-ring { fill: none; stroke: var(--scope-line-2); stroke-width: 1.5; }
.bz-in { fill: none; stroke: var(--scope-line); stroke-width: 1; stroke-dasharray: 2 6; }
.bz-tk { stroke: var(--scope-ink-3); stroke-width: 1; opacity: .55; }
.bz-tk-l { stroke-width: 1.6; opacity: .9; }
.bz-a rect { fill: var(--scope); stroke: var(--scope-line-2); stroke-width: 1.2; transition: fill .2s, stroke .2s; }
.bz-a text { fill: var(--scope-ink); font-size: 12.5px; letter-spacing: .12em; transition: fill .2s; }
.bz-a:hover rect, .bz-a:focus-visible rect { fill: var(--blue); stroke: var(--core-hi); }
.bz-a:hover text, .bz-a:focus-visible text { fill: #fff; }
.bz-a:focus { outline: none; }
.bz-nav { display: none; }

/* sweep and fee streams */
.bbox { fill: none; stroke: none; pointer-events: none; }
.sweep { transform-box: fill-box; transform-origin: center; animation: turn 9s linear infinite; }
.sw-edge { stroke: var(--core-hi); stroke-opacity: .45; stroke-width: 1.2; }
.streams { opacity: 0; transition: opacity .4s; }
.st-line { stroke: var(--scope-line); stroke-width: 1; stroke-dasharray: 3 5; }
.st-dot { fill: var(--rising-hi); opacity: 0; }
.scope[data-mode="fees"] .streams { opacity: 1; }
.scope[data-mode="fees"] .st-dot { animation: infall 2.7s cubic-bezier(.5, 0, .9, .6) infinite; }
@keyframes infall { 0% { transform: translateX(0); opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(-196px); opacity: 0; } }
@keyframes turn { to { transform: rotate(360deg); } }

/* lanes */
.lane { transition: opacity .35s var(--ease); }
.ring { fill: none; stroke-width: 1.6; transition: stroke-width .3s var(--ease), stroke-opacity .3s; stroke-opacity: .75; }
.share { fill: none; stroke-width: 9; stroke-opacity: .3; stroke-linecap: butt; pointer-events: none; }
.ln-core .share { stroke: var(--core-hi); } .ln-summit .share { stroke: var(--summit-hi); } .ln-rising .share { stroke: var(--rising-hi); }
.lane.on .share { stroke-opacity: .55; }
.ln-core .ring { stroke: var(--core-hi); } .ln-summit .ring { stroke: var(--summit-hi); } .ln-rising .ring { stroke: var(--rising-hi); }
.ring-hit { fill: none; stroke: transparent; stroke-width: 30; cursor: pointer; pointer-events: stroke; }
.ring-hit:focus { outline: none; }
.lane:has(.ring-hit:hover) .ring, .lane:has(.ring-hit:focus-visible) .ring { stroke-width: 4; stroke-opacity: 1; }
.lane:has(.ring-hit:focus-visible) .ring { stroke-dasharray: 6 4; }
.spin { transform-box: fill-box; transform-origin: center; }
.spin.fast { animation: turn 60s linear infinite; } .spin.mid { animation: turn 140s linear infinite; } .spin.slow { animation: turn 220s linear infinite reverse; }
.orb:has(.sc:hover) .spin, .orb:has(.sc:focus-visible) .spin, .orb:has(.sc.on) .spin { animation-play-state: paused; }
.slot { fill: var(--scope); stroke: var(--scope-ink-3); stroke-width: 1.2; stroke-dasharray: 2 3; }
.reentry { fill: var(--summit-hi); }
.ln-label rect { fill: var(--scope); stroke: var(--scope-line-2); }
.ln-label text { font-size: 11.5px; letter-spacing: .12em; }
.ln-core .ln-label text { fill: var(--core-hi); } .ln-summit .ln-label text { fill: var(--summit-hi); } .ln-rising .ln-label text { fill: var(--rising-hi); }
.orb.has-sel .lane:not(.on) { opacity: .38; }
.orb.has-sel:not(:has(.lane.on)) .lane { opacity: 1; }
.lane.on .ring { stroke-width: 4.5; stroke-opacity: 1; }

/* coin satellites */
.sc { cursor: pointer; }
.sc:focus { outline: none; }
.sc-halo { fill: var(--scope); }
.sc-rim { fill: none; stroke: var(--scope-ink); stroke-width: 1.5; }
.ln-summit .sc-rim { stroke: var(--summit-hi); } .ln-rising .sc-rim { stroke: var(--rising-hi); }
.sc-ret { fill: none; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 5 5; opacity: 0; transition: opacity .2s; }
.sc-t { fill: var(--scope-ink-2); font-size: 11px; letter-spacing: .04em; }
.sc:hover .sc-ret, .sc:focus-visible .sc-ret, .sc.on .sc-ret { opacity: 1; }
.sc.on .sc-t { fill: #fff; }

/* the planet */
.planet { cursor: pointer; }
.planet:focus { outline: none; }
.pl-glow { fill: rgba(111, 147, 255, .08); stroke: var(--scope-line-2); stroke-dasharray: 1 5; transition: fill .3s; }
.planet:hover .pl-glow, .planet:focus-visible .pl-glow { fill: rgba(111, 147, 255, .18); }
.pl-r { fill: var(--scope-ink); } .pl-p { fill: var(--blue-hi); } .pl-s { fill: var(--summit-hi); }
.pl-t { fill: var(--scope-ink); font-size: 14px; letter-spacing: .1em; }

/* corner readouts */
.huds { grid-column: 1 / -1; display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -10px; padding: 0 10px; }
.huds::-webkit-scrollbar { display: none; }
.hud { flex: 0 0 auto; min-width: 46%; scroll-snap-align: start; position: relative; z-index: 1; padding: 6px 9px; border: 1px solid var(--scope-line); background: rgba(12, 22, 48, .7); border-radius: var(--r); min-width: 0; }
.hud-k { display: block; font: 400 11px/1.3 var(--mono); letter-spacing: .06em; white-space: nowrap; text-transform: uppercase; color: var(--scope-ink-3); }
.hud b { display: block; font: 400 18px/1.15 var(--mono); letter-spacing: -.03em; color: #fff; white-space: nowrap; margin: 3px 0 2px; }
.hud .src { color: var(--scope-ink-3) !important; font-size: 11px; margin: 0; }
@media (min-width: 1000px) { .hud.tr, .hud.br { text-align: right; } .hud.tr .src, .hud.br .src { justify-content: flex-end; } }

/* inspector */
.hinsp { grid-area: insp; background: var(--panel); min-width: 0; display: flex; flex-direction: column; }
.hinsp .tabbar { position: sticky; top: var(--bar-h); z-index: 5; margin: 0; border-radius: 0 !important; border-width: 0 0 1px; background: var(--deck-2); padding: 6px; }
.ipanel { padding: 18px 16px 22px; flex: 1; min-height: 0; }
.ipanel:focus { outline: none; }
.iv h1 { font-size: clamp(32px, 9vw, 44px); margin: 8px 0 10px; }
.iv h2 { margin: 6px 0 8px; font-size: 24px; }
.iv .lead { font-size: 15.5px; margin-bottom: 16px; }
.ikick { margin: 0; font: 400 var(--t1)/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.cta { gap: 8px; margin-bottom: 16px; }
.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.checks li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.checks .ic { color: var(--ok); width: 17px; height: 17px; }
.ihint { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); }
.kbd { font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line-2); border-radius: 3px; padding: 3px 6px; margin-right: 4px; color: var(--ink-2); }
.iv .more { margin-top: 14px; display: inline-flex; }
.iv .row .more { margin-top: 10px; margin-right: 14px; }
.lrows { list-style: none; margin: 12px 0 0; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); }
.lrows > li + li { border-top: 1px solid var(--line); }
.lrow { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.lrow:hover { background: var(--well); }
.lrow.on { background: var(--well); box-shadow: inset 3px 0 0 var(--c); }
.lr-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.lr-n { flex: 1; font-weight: 700; }
.lr-v { font: 400 15px/1 var(--mono); }
.ldet { padding: 0 12px 12px 32px; font-size: 14px; color: var(--ink-2); }
.ldet p { margin: 0 0 8px; }
.mlist { list-style: none; margin: 0; padding: 0; }
.mlist button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 0; background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; text-align: left; min-height: 40px; }
.mlist button:hover .ml-n { color: var(--blue); }
.mlist img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.ml-r { font: 400 12px/1 var(--mono); color: var(--ink-3); width: 24px; }
.ml-n { flex: 1; font-weight: 700; }
.ml-v { font: 400 13px/1 var(--mono); }
.calc { margin-top: 14px; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); }
.calc label { display: flex; justify-content: space-between; margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.calc label b { font: 400 13px/1.4 var(--mono); color: var(--ink); }
.calc input[type=range] { width: 100%; margin: 2px 0 10px; padding: 0; border: 0; background: none; accent-color: var(--blue); }
.decay { width: 100%; height: 46px; display: block; margin: 0 0 8px; }
.dc-b { fill: var(--track); transition: fill .2s; } .dc-b.on { fill: var(--blue); }
.calc-out, .facts-dl { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0; font-size: 13.5px; }
.calc-out dt, .calc-out dd, .facts-dl dt, .facts-dl dd { padding: 6px 0; border-top: 1px solid var(--line); margin: 0; }
.calc-out dt { display: flex; align-items: center; gap: 7px; color: var(--ink-2); }
.calc-out dt[style]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.calc-out dd, .facts-dl dd { text-align: right; font-family: var(--mono); }
.facts-dl { margin: 10px 0 12px; font-size: 14px; }
.facts-dl dt { color: var(--ink-2); padding-right: 12px; }
.facts-dl dd { color: var(--ink); }
.facts-dl dd.up { color: var(--ok); } .facts-dl dd.down { color: var(--bad); }
.tgt-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 400 var(--t1)/1.3 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 12px; }
.x-btn { width: 36px; height: 36px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; color: var(--ink); }
.x-btn:hover { background: var(--well); }
.tgt-coin { display: flex; gap: 12px; align-items: center; }
.tgt-coin img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.tgt-coin h2 { margin: 0; }
.tgt-coin p { margin: 2px 0 0; }

/* newest-coins log */
.mlog { grid-area: log; background: var(--scope-2); color: var(--scope-ink); border-top: 1px solid var(--scope-line-2); padding: 10px 12px 12px; min-width: 0; }
.mlog-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 400 var(--t1)/1.3 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--scope-ink-3); }
.mlog-h a { color: var(--scope-ink); text-transform: none; letter-spacing: 0; font: 600 13px/1 var(--sans); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; min-height: 40px; }
.mlog-h a .ic { width: 15px; height: 15px; }
.mlog-l { list-style: none; margin: 6px 0 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.mlog-l a { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid var(--scope-line-2); border-radius: var(--r); color: var(--scope-ink); text-decoration: none; white-space: nowrap; font-size: 13px; }
.mlog-l a:hover { background: var(--scope-3); }
.mlog-l img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.mlog-l span { font-family: var(--mono); color: var(--scope-ink-2); font-size: 12px; }
.mlog-empty { margin: 6px 0 0; font-size: 14px; color: var(--scope-ink-2); }
.mlog-empty a { color: #a9c0ff; }

@media (min-width: 560px) and (max-width: 999px) { .scope { padding: 16px 24px; } .hud { min-width: 0; flex: 1 1 0; } .ln-label { display: inline; } }
@media (min-width: 1000px) {
  .deck:has(> main > .home) { height: calc(100dvh - var(--bar-h)); min-height: 640px; }
  main:has(> .home) { display: flex; min-height: 0; }
  .home { flex: 1; min-height: 0; grid-template-columns: minmax(0, 1fr) clamp(360px, 30vw, 430px); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "scope insp" "log insp"; }
  .ln-label, .sc-t { display: inline; }
  .scope { display: block; padding: 0; }
  .scope-fig { position: absolute; inset: 0; }
  .orb { width: auto; height: calc(100% - 24px); max-width: calc(100% - 300px); }
  .bz-nav { display: inline; }
  .hud { position: absolute; width: 176px; }
  .hud.tl { left: 16px; top: 16px; } .hud.tr { right: 16px; top: 16px; } .hud.bl { left: 16px; bottom: 16px; } .hud.br { right: 16px; bottom: 16px; }
  .hud b { font-size: 25px; }
  .hinsp { border-left: 1px solid var(--line-2); overflow-y: auto; }
  .hinsp .tabbar { top: 0; }
  .ipanel { padding: 22px 22px 26px; }
  .iv h1 { font-size: clamp(34px, 3vw, 44px); }
  .mlog { padding: 8px 16px 10px; }
}
@media (min-width: 1000px) and (max-height: 720px) { .iv h1 { font-size: 32px; } .checks li { padding: 6px 0; } }
@media (prefers-reduced-motion: reduce) {
  .sweep, .spin, .st-dot { animation: none !important; }
  .scope[data-mode="fees"] .st-dot { opacity: .8; }
}
@media (max-width: 999px) { .ring { stroke-width: 3.2; stroke-opacity: .95; } .bz-ring { stroke-width: 2.5; } .slot { stroke-width: 2; } }

/* phones: numbered channel links beside the orbit */
.scope-nav { display: flex; flex-direction: column; justify-content: center; gap: 6px; position: relative; z-index: 1; }
.scope-nav a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 10px; border: 1px solid var(--scope-line-2); border-radius: var(--r); color: var(--scope-ink); text-decoration: none; font: 650 15px/1.1 var(--display); font-stretch: 106%; background: rgba(12, 22, 48, .6); }
.scope-nav a i { font: 400 11px/1 var(--mono); font-style: normal; color: var(--core-hi); }
.scope-nav a:active { background: var(--scope-3); }
/* empty newest log: three open slots, then the line */
.slots li span { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border: 1px dashed var(--scope-line-2); border-radius: var(--r); font: 400 12px/1 var(--mono); color: var(--scope-ink-3); white-space: nowrap; min-height: 38px; }
.slots li i { width: 22px; height: 22px; border-radius: 50%; border: 1px dashed var(--scope-ink-3); }
.mlog-none .mlog-empty { margin-top: 8px; }
@media (min-width: 1000px) {
  .scope-nav { display: none; }
  .huds { display: contents; }
  .hud { min-width: 0; }
  .hud-k { white-space: normal; }
  .ipanel { display: flex; flex-direction: column; }
  .iv-ov { flex: 1; display: flex; flex-direction: column; }
  .iv-ov .ihint { margin-top: auto; padding-top: 14px; }
  .mlog-none { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
  .mlog-none .mlog-empty { margin: 6px 0 0; }
}
@media (min-width: 560px) and (max-width: 999px) { .orb { max-width: 360px; } }

/* phones: the readout strip fades at the right edge so it reads as swipeable; the open slots fit in one row */
@media (max-width: 999px) {
  .huds { -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent); padding-right: 48px; }
  .slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .slots li span { padding: 6px 8px; gap: 6px; }
  .slots li i { width: 16px; height: 16px; }
}
.slot-open { font-style: normal; }
@media (max-width: 420px) { .slot-open { display: none; } }

/* Explore, leaderboard, coin page: console data grid, lane tracks, instrument layout (docs/DESIGN-CONSOLE.md). */

/* ---------- shared coin rows ---------- */
.xr-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--well); }
.xr-n { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.xr-n b { font: 650 15px/1.25 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xr-n small { font: 400 11.5px/1.3 var(--mono); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chg { font: 400 13px/1.2 var(--mono); }
.pnl-b .empty { border: 0; margin: 0; }

/* ---------- explore ---------- */
.xmain { display: grid; gap: 14px; min-width: 0; }
.xmain .pnl + .pnl { margin: 0; }
.xbar-b { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: center; }
.xbar-b input { width: 100%; min-height: 44px; margin: 0; }
.xbar-b .seg { display: flex; width: 100%; }
.xbar-b .seg button { flex: 1 1 0; min-height: 44px; padding: 0 6px; font-size: 13.5px; }
.xcount { font: 400 var(--t1)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
@media (min-width: 760px) {
  .xbar-b { grid-template-columns: minmax(200px, 1fr) auto auto; }
  .xbar-b .seg { width: auto; }
  .xbar-b .seg button { padding: 0 14px; }
  .xcount { min-width: 80px; text-align: right; }
}
.xtable { overflow: hidden; }
.xr { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "img n m" "img n c"; align-items: center; column-gap: 12px; row-gap: 0; padding: 9px 14px; min-height: 60px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; position: relative; }
.xr:first-child { border-top: 0; }
a.xr:hover { background: var(--well); }
a.xr:focus-visible { outline-offset: -3px; }
.xr-i, .xr-v { display: none; }
.xr-img { grid-area: img; }
.xr-n { grid-area: n; }
.xr-m { grid-area: m; font: 400 14px/1.2 var(--mono); text-align: right; white-space: nowrap; }
.xr-c { grid-area: c; text-align: right; }
.xr-i, .xr-v { font: 400 12.5px/1.2 var(--mono); }
.xr-i { color: var(--ink-3); }
.xr-h { display: none; }
.xr-sk { height: 60px; margin: 0; border-radius: 0; }
@media (min-width: 640px) {
  .xr { grid-template-columns: 28px 40px minmax(0, 1fr) 96px 72px 96px; grid-template-areas: "i img n m c v"; }
  .xr-i, .xr-v { display: block; }
  .xr-v { text-align: right; grid-area: v; }
  .xr-i { grid-area: i; }
  .xr-h { display: grid; min-height: 36px; background: var(--well); font: 400 var(--t1)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
  .xr-h span { font: inherit; }
  .xr-h .xr-img { background: none; height: auto; }
}
@media (min-width: 1100px) {
  .xr { grid-template-columns: 28px 40px minmax(0, 1fr) 90px 66px 90px; column-gap: 10px; }
}
@media (min-width: 1240px) { .xr { grid-template-columns: 30px 40px minmax(0, 1fr) 110px 80px 110px; column-gap: 14px; } }
a.xr[aria-current="true"] { background: rgba(61, 108, 240, .08); box-shadow: inset 3px 0 0 var(--blue); }
.xinsp { display: none; }
@media (min-width: 1100px) { .xinsp { display: block; } }
.xi-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.xi-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.xi-name { margin: 0; font-size: 22px; line-height: 1.1; overflow-wrap: anywhere; }
.xi-sub { margin: 4px 0 0; font: 400 12px/1.3 var(--mono); }
.xi-ro { grid-template-columns: 1fr 1fr; margin-bottom: 12px; }
.xi-ro .ro-v { font-size: 20px; }
.xi-ch { margin: 0 0 14px; }
.xinsp .btn { width: 100%; justify-content: center; }

/* ---------- leaderboard tracks ---------- */
.lbmain { display: grid; gap: 14px; min-width: 0; align-content: start; }
.lbmain .pnl + .pnl, .tk > .pnl { margin: 0; }
.track .pnl-h { border-left: 3px solid var(--c); }
.tr-share { font: 400 var(--t1)/1 var(--mono); letter-spacing: .08em; color: var(--ink-2); }
.tr-text { margin: 0; padding: 10px 14px; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.tr-list { list-style: none; margin: 0; padding: 0; }
.tr-list li + li { border-top: 1px solid var(--line); }
.tr-row { display: grid; grid-template-columns: 34px 40px minmax(0, 1fr) auto; grid-template-areas: "r img n mc" "r img n sh"; align-items: center; column-gap: 10px; padding: 9px 14px; min-height: 60px; color: var(--ink); text-decoration: none; }
.tr-row:hover { background: var(--well); }
.tr-row:focus-visible { outline-offset: -3px; }
.tr-rank { grid-area: r; font: 400 15px/1 var(--mono); color: var(--c); }
.tr-row .xr-img { grid-area: img; } .tr-row .xr-n { grid-area: n; }
.tr-mc { grid-area: mc; font: 400 14px/1.2 var(--mono); text-align: right; white-space: nowrap; }
.tr-sh { grid-area: sh; font: 400 11.5px/1.3 var(--mono); color: var(--ink-3); text-align: right; white-space: nowrap; }
@media (min-width: 640px) { .tr-row { grid-template-columns: 44px 40px minmax(0, 1fr) 110px 150px; grid-template-areas: "r img n mc sh"; column-gap: 14px; } }
.rules p { margin: 0 0 10px; font-size: 14.5px; }
.rules .btn { margin-top: 4px; }
.insp .pnl + .pnl { margin-top: 14px; }

/* ---------- coin page ---------- */
.tk { grid-template-columns: minmax(0, 1fr); }
.tk > * { min-width: 0; }
.tk-id { display: flex; align-items: center; gap: 14px; }
.tk-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.tk-head .tk-id { margin-top: 12px; }
.tk-id h1 { margin: 0 0 6px; overflow-wrap: anywhere; }
.tk-meta { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0; font: 400 12.5px/1.5 var(--mono); color: var(--scope-ink-2); }
.tk-meta span { display: inline-flex; align-items: center; gap: 5px; }
.tk-meta { gap: 2px 14px; }
.tk-meta span { white-space: nowrap; }
.tk-meta span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--scope-ink-3); margin-right: 2px; }
.tk-meta .ok { color: #6fe0b4; } .tk-meta .ic { width: 13px; height: 13px; }
.tk-head .tk-img { box-shadow: 0 0 0 2px var(--scope), 0 0 0 3px var(--core-hi); }
.tk-head p.row .mute { color: var(--scope-ink-3); }
.tk-desc { margin: 14px 0 0; font-size: 15.5px; max-width: 70ch; overflow-wrap: anywhere; }
.gauge { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; height: 26px; }
.gauge i { background: var(--well); border: 1px solid var(--line-2); border-radius: 2px; transform-origin: bottom; }
.gauge i.on { background: var(--blue); border-color: var(--blue); }
.gz-pc { font: 400 15px/1 var(--mono); color: var(--ink); letter-spacing: 0; }
.tk-actions { display: grid; gap: 8px; }
.tk-actions .btn { width: 100%; justify-content: center; min-height: 44px; }
.tk-addr { display: grid; gap: 12px; }
.tk-addr .addr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; }
.tk-addr .addr .ro-k { flex: 0 0 100%; }
.tk-addr .addr code { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; font: 400 12.5px/1.4 var(--mono); }
.tk-report details { margin: 0; border: 0; background: none; padding: 0; }
.tk-report summary.pnl-h { text-transform: none; letter-spacing: .02em; font-size: 13.5px; cursor: pointer; border-bottom: 0; min-height: 44px; }
.tk-report details[open] summary.pnl-h { border-bottom: 1px solid var(--line); }
.tk-report .btn { min-height: 40px; }
.tk-report select, .tk-report textarea { width: 100%; }
@media (min-width: 1100px) {
  .tk { grid-template-columns: minmax(0, 1fr) 360px; }
  .tk > * { grid-column: 1; }
  .tk > .tk-insp { grid-column: 2; grid-row: 1 / span var(--n); }
  .tk-insp .pnl + .pnl { margin-top: 14px; }
}
@media (max-width: 400px) { .tk-img { width: 56px; height: 56px; } }

@media (prefers-reduced-motion: reduce) { .gauge i { transition: none; } }

/* empty lanes: one compact row, no drawing */
.lbmain .empty { border: 0; padding: 6px 0; text-align: left; }
.lbmain .empty .empty-art { display: none; }
.lbmain .empty p { margin: 0; max-width: none; }

/* Treasury and Launch consoles (docs/DESIGN-CONSOLE.md). Panels, readouts and event logs from shell.css; this file only adds the
   treasury dashboard grid, the burn log, and the launch pre-flight layout (step rail, review checklist, launch sequence, pad). */

/* ---------- treasury ---------- */
.tr-addr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 10px 0 14px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); font-size: 13.5px; color: var(--ink-2); min-height: 44px; }
.tr-addr .ro-k { margin-right: 4px; }
.ro-row + .tr-addr { margin-top: 10px; }
.tr-grid { display: grid; gap: 14px; margin: 14px 0; align-items: start; }
.tr-grid > .pnl + .pnl, .tr-grid > .pnl { margin-top: 0; }
@media (min-width: 1000px) { .tr-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.tr-h { font-size: 19px; margin: 0 0 10px; }
.tr-grid .chartbox { min-width: 0; }
.tr-grid .small { margin: 8px 0 0; }
.tr-plan { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.tr-plan li { display: grid; grid-template-columns: minmax(78px, auto) minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 9px 0 9px 12px; border-bottom: 1px solid var(--line); position: relative; }
.tr-plan li::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; background: var(--c); border-radius: 2px; }
.tr-plan .ln { font: 400 var(--t1)/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tr-plan .cn { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-plan .am { font: 400 13px/1.4 var(--mono); white-space: nowrap; }
.tr-log > li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "bd v" "t tx"; padding: 11px 14px 11px 17px; position: relative; }
.tr-log > li::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; background: var(--c); border-radius: 2px; }
.tr-log .bd { grid-area: bd; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.tr-log .bd .ln { font: 400 var(--t1)/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tr-log .t { grid-area: t; }
.tr-log .v { grid-area: v; }
.tr-log .tx { grid-area: tx; text-align: right; font: 400 12.5px/1.4 var(--mono); min-width: 0; }
.tr-log .tx a { display: inline-flex; align-items: center; min-height: 32px; }
.tr-note { margin: 0; padding: 10px 14px; border-top: 1px solid var(--line); }
@media (min-width: 700px) {
  .tr-log > li { grid-template-columns: 96px minmax(0, 1fr) auto 150px; grid-template-areas: "t bd v tx"; align-items: center; }
}

/* ---------- launch: pre-flight ---------- */
.lc { display: grid; gap: 14px; align-items: start; grid-template-columns: minmax(0, 1fr); grid-template-areas: "rail" "insp" "stage"; }
.lc-rail { grid-area: rail; }
.lc-stage { grid-area: stage; min-width: 0; }
.lc-insp { grid-area: insp; min-width: 0; }
.lc-rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); overflow: hidden; }
.lc-rail li { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 8px; color: var(--ink-3); font: 600 13.5px/1.1 var(--sans); position: relative; }
.lc-rail li + li { border-left: 1px solid var(--line); }
.lc-rail i { font: 400 11px/1 var(--mono); font-style: normal; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; flex: none; }
.lc-rail li.on { color: var(--ink); background: var(--blue-soft); box-shadow: inset 0 -3px 0 var(--blue); }
.lc-rail li.on i { background: var(--blue); border-color: var(--blue); color: #fff; }
.lc-rail li.done { color: var(--ink-2); }
.lc-rail li.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
@media (min-width: 1000px) {
  .lc { grid-template-columns: 168px minmax(0, 1fr) 340px; grid-template-areas: "rail stage insp"; }
  .lc-rail { grid-template-columns: 1fr; position: sticky; top: calc(var(--bar-h) + 16px); }
  .lc-rail li { justify-content: flex-start; padding: 12px 14px; min-height: 52px; }
  .lc-rail li + li { border-left: 0; border-top: 1px solid var(--line); }
  .lc-rail li.on { box-shadow: inset 3px 0 0 var(--blue); }
  .lc-insp { position: sticky; top: calc(var(--bar-h) + 16px); }
}
.lc .pnl + .pnl { margin-top: 12px; }
.lform .pnl-b > label:first-child { margin-top: 0; }
.lform input, .lform textarea { border-radius: var(--r) !important; }
.lform .btn[type=submit] { min-height: 48px; }
.lform summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }

/* on the pad: the coin as a satellite on a small orbit ring */
.pad { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 14px; background: var(--scope); color: var(--scope-ink); border-radius: 0 0 var(--r) var(--r); }
.pad .ring { position: relative; width: 112px; height: 112px; }
.pad .ring::before, .pad .ring::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed var(--scope-line-2); }
.pad .ring::before { inset: 0; }
.pad .ring::after { inset: 30px; border-style: solid; border-color: var(--scope-line); }
.pad .core { position: absolute; inset: 40px; display: block; }
.pad .core svg { width: 100%; height: 100%; display: block; opacity: .9; }
.pad .orbit { position: absolute; inset: 0; animation: padspin 40s linear infinite; }
.pad .sat { position: absolute; left: 50%; top: -2px; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%; animation: padspin 40s linear infinite reverse; box-shadow: 0 0 0 2px var(--core-hi), 0 0 0 5px rgba(111, 147, 255, .22); }
.pad .sat img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: block; box-shadow: none; background: var(--scope-3); }
@keyframes padspin { to { transform: rotate(360deg); } }
.pad-t { min-width: 0; }
.pad .nm { font: 700 19px/1.2 var(--display); font-stretch: 108%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pad .tk { font: 400 13px/1.4 var(--mono); color: #a9bfff; letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; }
.pad dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 10px 0 0; font: 400 11.5px/1.4 var(--mono); }
.pad dt { color: var(--scope-ink-3); text-transform: uppercase; letter-spacing: .1em; }
.pad dd { margin: 0; color: var(--scope-ink); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 999px) { .pad { grid-template-columns: 76px minmax(0, 1fr); padding: 10px 12px; } .pad .ring { width: 76px; height: 76px; } .pad .ring::after { inset: 20px; } .pad .core { inset: 27px; } .pad .sat { width: 28px; height: 28px; margin-left: -14px; } .pad .sat img { width: 28px; height: 28px; } .pad dl { margin-top: 6px; } }
.lc-insp .pnl-h { border-bottom-color: var(--line); }
.perks > summary { cursor: pointer; list-style: none; }
.perks > summary::-webkit-details-marker { display: none; }
.perks > summary::after { content: "+"; margin-left: auto; font-size: 16px; }
.perks[open] > summary::after { content: "\2212"; }
@media (min-width: 1000px) { .perks > summary { cursor: default; } .perks > summary::after { content: none !important; } }
.perks .facts.mini { margin: 0; padding-top: 4px; padding-bottom: 4px; }

/* review: a pre-flight checklist */
.pf-list { list-style: none; margin: 14px 0; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r); }
.pf { display: grid; grid-template-columns: 10px 92px minmax(0, 1fr); gap: 4px 12px; align-items: baseline; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 14.5px; }
.pf:first-child { border-top: 0; }
.pf .lt, .lc-check .lt { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); align-self: center; box-shadow: 0 0 0 3px rgba(18, 118, 79, .15); }
.pf .k { color: var(--ink-3); font-size: 13px; }
.pf .v { min-width: 0; overflow-wrap: anywhere; }
.pf .err { color: var(--bad); font-weight: 700; }
@media (max-width: 519px) { .pf { grid-template-columns: 10px minmax(0, 1fr); } .pf .v { grid-column: 2; } }
.pf-h { margin: 18px 0 2px; }
.review details { margin-top: 12px; }
.review summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }

/* sign: the launch sequence */
.progress.seq { gap: 0; margin: 14px 0; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.progress.seq li { gap: 12px; padding: 14px; border-top: 1px solid var(--line); }
.progress.seq li:first-child { border-top: 0; }
.progress.seq li i { font: 400 11.5px/1 var(--mono); font-style: normal; letter-spacing: .08em; color: var(--ink-3); width: 26px; flex: none; }
.progress.seq li.on { background: var(--blue-soft); }
.progress.seq li.fail { background: #f8dfe5; }

/* closed: standby */
.lc-check { list-style: none; margin: 0; padding: 0; }
.lc-check li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border-top: 1px solid var(--line); color: var(--ink-2); }
.lc-check li:first-child { border-top: 0; }
.lc-check li.ok { color: var(--ink); }
.lc-check .lt { background: #f2b544; box-shadow: 0 0 0 3px rgba(242, 181, 68, .22); }
.lc-check li.ok .lt { background: var(--ok); box-shadow: 0 0 0 3px rgba(18, 118, 79, .15); }
.lc-check .st { font: 400 var(--t1)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.lc-check li.ok .st { color: var(--ok); }
.lc-news { display: grid; gap: 12px; justify-items: start; }
.lc-news .mark svg { width: 56px; height: 56px; display: block; }
.lc-news p { margin: 0; }

@media (prefers-reduced-motion: reduce) { .pad .orbit, .pad .sat { animation: none !important; } }
.perks:not([open]) > summary { border-bottom: 0; }
.perks { overflow: hidden; }

/* what every launch gets: icon + text rows, no browser bullets */
.perks ul { list-style: none; margin: 0; padding: 0 14px 12px; }
.perks li { display: flex; align-items: center; gap: 9px; padding: 5px 0; }
.perks li .ic { width: 17px; height: 17px; flex: none; color: var(--blue); }

/* Docs pages (client/pages/docs.ts): How it works (tabbed manual), FAQ (master-detail / accordion), Rules (manual with a sticky index).
   Served after style.css, story.css and shell.css; uses the console primitives (.phead, .pnl, .tabbar, .acq). */

/* ---------- shared ---------- */
.doc-h h2 { text-transform: none; margin: 0; font: 650 17px/1.2 var(--display); font-stretch: 108%; letter-spacing: 0; color: var(--ink); }
.doc.pnl + .doc.pnl { margin-top: 0; }
.spec { margin: 0; display: grid; }
.spec-r { display: grid; gap: 4px 24px; padding: 12px 0; border-top: 1px solid var(--line); }
.spec-r:first-child { border-top: 0; padding-top: 0; }
.spec-r:last-child { padding-bottom: 0; }
.spec dt { font: 400 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.spec dd { margin: 0; display: grid; gap: 4px; }
.spec dd b { font: 400 15px/1.35 var(--mono); color: var(--ink); letter-spacing: -.02em; }
.spec dd span { color: var(--ink-2); font-size: 14.5px; max-width: 70ch; }
@media (min-width: 760px) { .spec-r { grid-template-columns: 200px minmax(0, 1fr); } .spec dt { padding-top: 4px; } }

/* ---------- how it works ---------- */
.how-page > .tabbar { margin-bottom: 14px; }
.how-panel { min-width: 0; }
.how-panel:focus { outline: none; }
.how-2, .how-1 { display: grid; gap: 14px; align-items: start; }
@media (min-width: 1000px) { .how-2 { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.fw-wrap { max-width: 460px; margin: 0 auto; }
.fw { display: block; width: 100%; height: auto; overflow: visible; }
.fw-orbit { fill: none; stroke: var(--line-2); stroke-width: 1.4; stroke-dasharray: 3 6; }
.fw-lane { fill: none; stroke-width: 1.4; opacity: .55; }
.fw-arrow { stroke: var(--blue); }
.fw-node circle { fill: var(--panel); stroke: var(--blue); stroke-width: 1.6; }
.fw-node { color: var(--blue-deep); }
.fw-node .ic { stroke: var(--blue-deep); color: var(--blue-deep); }
.fw-node text { font: 600 13px var(--sans); fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }
.fw-node text.sub { font: 400 11px var(--mono); fill: var(--ink-2); }
.fw-core path { stroke: none; }
@media (prefers-reduced-motion: no-preference) {
  .fw-spin { transform-origin: 200px 200px; animation: fw-turn 60s linear infinite; }
  .fw-spin-1 { animation-duration: 90s; animation-direction: reverse; }
  .fw-spin-2 { animation-duration: 120s; }
  @keyframes fw-turn { to { transform: rotate(360deg); } }
}
.proc { counter-reset: p; list-style: none; margin: 0; padding: 0; }
.proc li { counter-increment: p; position: relative; padding: 14px 0 14px 46px; border-top: 1px solid var(--line); }
.proc li:first-child { border-top: 0; padding-top: 0; }
.proc li:last-child { padding-bottom: 0; }
.proc li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: 14px; width: 34px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 3px; background: var(--well); font: 400 12px/1 var(--mono); color: var(--blue-deep); }
.proc li:first-child::before { top: 0; }
.proc h3 { margin: 0 0 4px; font: 650 17px/1.25 var(--display); font-stretch: 106%; }
.proc p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------- FAQ: accordion on phones, master-detail on desktop ---------- */
.faq-md { display: none; }
.faq-acc details { background: var(--card); border: 1px solid var(--line-2); margin: 0 0 8px; padding: 0 14px; }
.faq-acc summary { font: 600 15.5px/1.35 var(--sans); min-height: 48px; padding: 10px 0; }
.faq-acc details p { margin: 0 0 14px; color: var(--ink-2); }
@media (min-width: 1000px) {
  .faq-acc { display: none; }
  .faq-md { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 14px; align-items: start; }
  .faq-md > .pnl + .pnl { margin-top: 0; }
  .faq-list { position: sticky; top: calc(var(--bar-h) + 16px); }
  .faq-list .tabbar { flex-direction: column; border: 0; background: none; padding: 6px; gap: 2px; border-radius: 0; }
  .faq-list [role="tab"] { flex: none; text-align: left; white-space: normal; min-height: 44px; padding: 9px 12px; font: 500 14px/1.3 var(--sans); border-radius: 3px; white-space: pre-wrap; }
  .faq-list [role="tab"][aria-selected="true"] { box-shadow: inset 3px 0 0 var(--core-hi); }
  .faq-a { padding: 22px 24px 22px; }
  .faq-a:focus { outline: none; }
  .faq-n { margin: 0 0 10px; font: 400 11px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
  .faq-a h2 { margin: 0 0 12px; font-size: clamp(22px, 2.4vw, 28px); }
  .faq-t { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); max-width: 62ch; }
}

/* ---------- rules: a manual ---------- */
.rl-grid { display: grid; gap: 14px; align-items: start; }
.rl-body { display: grid; gap: 14px; min-width: 0; }
.rl-body > .pnl { scroll-margin-top: calc(var(--bar-h) + 14px); }
.rl-index { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 12px 12px; }
.rl-k { margin: 0 0 6px; font: 400 11px/1.2 var(--mono); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.rl-index ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rl-index a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--well); color: var(--ink); text-decoration: none; font: 600 13.5px/1 var(--sans); }
.rl-index a i { font: 400 11px/1 var(--mono); font-style: normal; color: var(--blue-deep); }
.rl-index a:hover { border-color: var(--blue); color: var(--blue-deep); }
@media (min-width: 1000px) {
  .rl-grid { grid-template-columns: 220px minmax(0, 1fr); }
  .rl-index { position: sticky; top: calc(var(--bar-h) + 16px); padding: 12px 8px; }
  .rl-k { padding: 0 8px; }
  .rl-index ol { flex-direction: column; gap: 2px; }
  .rl-index a { border: 0; background: none; min-height: 40px; border-radius: 3px; padding: 0 8px; }
  .rl-index a:hover { background: var(--well); }
}
.rl-list { list-style: none; margin: 0; padding: 0; }
.rl-list li { position: relative; margin: 0; padding: 9px 0 9px 24px; border-top: 1px solid var(--line); color: var(--ink-2); }
.rl-list li:first-child { border-top: 0; padding-top: 2px; }
.rl-list li::before { content: ""; position: absolute; left: 3px; top: 1.05em; width: 8px; height: 8px; border: 1.5px solid var(--blue); border-radius: 50%; }
.rl-list li:first-child::before { top: .6em; }
.rl-body .doc .pnl-b > p { margin: 10px 0 0; max-width: 72ch; }
.rl-body .doc .pnl-b > p:first-child { margin-top: 0; }
.rl-body .doc .rl-list { margin: 10px 0 0; }
.rl-body .doc .pnl-b > .rl-list:first-child { margin-top: 0; }
.rl-body .doc .pnl-b > p.mute + .rl-list { margin-top: 8px; }

/* loop labels get a halo in the panel colour so ring strokes never cut through them */
.fw-node text { paint-order: stroke; stroke: var(--card); stroke-width: 5px; stroke-linejoin: round; }

.faq-next { margin-top: 16px; background: none; border: 0; padding: 8px 0; cursor: pointer; font: 700 14px/1 var(--sans); color: var(--blue); min-height: 40px; }
