/* ThiqPad. DESIGN.md is the contract; tokens and components live only here. No gradients, no blur, no glow. */

:root {
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --r-card: 12px; --r-btn: 10px; --r-band: 6px; --header-h: 64px; --bar-h: 72px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Bricolage Grotesque', var(--font);
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  /* block colours: the same in both themes. One accent, the logo's green; black and white. */
  --green: #5FCB8F; --on-green: #0C0C0F; --green-soft: #A8E6C4;
  --black: #0C0C0F; --on-black: #F4F5F6; --on-black-muted: #9A9FA8;
  --white: #FFFFFF; --on-white: #0C0C0F; --on-white-muted: #5F6670;
  /* the comparison chart: pump.fun's pool, then the ThiqPad stack (pool, fees paired in, the 1%) */
  --c-pump: #8A8F98; --c-fees: var(--green); --c-reserve: var(--green-soft); --c-sep: var(--black);
}
/* dark, the default (index.html sets data-theme; ?theme=light|dark forces one) */
:root, :root[data-theme='dark'] {
  --bg: #0C0C0F; --surface: #141418; --surface-2: #1C1C21; --line: #26262C; --line-strong: #F4F5F6;
  --ink: #F4F5F6; --muted: #9A9FA8; --green-text: #5FCB8F; --grey: #8A8F98; --focus: #5FCB8F;
  --alt: var(--white); --on-alt: var(--on-white); --on-alt-muted: var(--on-white-muted);
  --c-pool: #3A3B42; --strip-next: #3A3B42;
  --up: var(--green-text); --down: #FF5A5A; --warn: #FFD23F;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #FFFFFF; --surface: #F4F5F6; --surface-2: #EBEDF0; --line: #E4E6EA; --line-strong: #0C0C0F;
  --ink: #0C0C0F; --muted: #5F6670; --green-text: #28794F; --grey: #80858E; --focus: var(--green-text);
  --alt: var(--black); --on-alt: var(--on-black); --on-alt-muted: var(--on-black-muted);
  --c-pool: #C5C8CE; --c-pump: #60656E; --strip-next: #D3D6DA;
  --up: var(--green-text); --down: #C92A2A; --warn: #8A5A00;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/24px var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
main { flex: 1; }

/* ---------- type ---------- */
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.display-xl { font-size: clamp(46px, 7.4vw, 100px); }
.display-l { font-size: clamp(36px, 4.4vw, 60px); }
.display-m { font-size: 30px; line-height: 34px; letter-spacing: -0.03em; }
.numeral { font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -0.04em; }
.numeral-l { font-size: 72px; }
.numeral-m { font-size: 40px; line-height: 44px; letter-spacing: -0.03em; }
.eyebrow { font: 700 12px/16px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.lede { font-size: 20px; line-height: 30px; max-width: 52ch; }
.small, .t-sm { font-size: 14px; line-height: 20px; } .micro, .t-xs { font-size: 12px; line-height: 16px; }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.up { color: var(--up); } .down { color: var(--down); } .warn { color: var(--warn); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.u { text-decoration: underline; text-decoration-thickness: 0.09em; text-underline-offset: 0.08em; text-decoration-color: var(--green); }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; white-space: nowrap; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }

/* ---------- blocks ---------- */
/* .block-brick keeps its name: it is the surface block now (hero, closing; the launch stage and the
   coin page's liquidity block are the same surface), with the green as its accent */
.block { padding-block: var(--s9); }
.block-brick { background: var(--surface); color: var(--ink); }
.block-brick .eyebrow { color: var(--green-text); }
.block-alt { background: var(--alt); color: var(--on-alt); }
.block-alt .muted { color: var(--on-alt-muted); }
.block-alt, .footer { --focus: var(--on-alt); }
.block-black { background: var(--black); color: var(--on-black); }
.block-black .muted { color: var(--on-black-muted); }
.block-head { display: grid; gap: var(--s4); margin-bottom: var(--s7); max-width: 60ch; }
.block-head .eyebrow { color: var(--green-text); }
.block-alt .block-head .eyebrow { color: inherit; opacity: 0.8; }
.block-head p { color: var(--muted); font-size: 18px; line-height: 28px; }
.block-head .lede { font-size: 20px; line-height: 30px; color: inherit; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s6); flex-wrap: wrap; }

/* ---------- buttons, chips ---------- */
.btn, .btn-brick, .btn-ink, .btn-outline { height: 52px; padding: 0 22px; border-radius: var(--r-btn); border: 2px solid var(--black); font: 700 16px/1 var(--font); display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; cursor: pointer; transition: transform 120ms, box-shadow 120ms, opacity 120ms; }
.btn-brick { background: var(--green); color: var(--on-green); }
.btn-ink { background: var(--black); color: var(--on-black); border-color: var(--black); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.top-right .btn-sm { gap: 0; } /* "Launch a coin" is one label; the wide part hides on phones */
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-brick:hover, .btn-outline:hover { opacity: 0.9; }
/* the primary on a surface block: green, black border, a hard shadow in the block's ink */
.block-brick .btn-ink { background: var(--green); color: var(--on-green); border-color: var(--black); box-shadow: 4px 4px 0 var(--ink); }
.block-brick .btn-ink:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-brick:disabled, .btn-ink:disabled, .btn-outline:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
[aria-busy='true'] { cursor: progress; opacity: 0.7; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 2px solid var(--line); border-radius: var(--r-btn); color: var(--muted); }
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.chip, .chip-lime { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--black); font: 700 13px/1 var(--font); white-space: nowrap; }
.chip { background: var(--surface-2); color: var(--ink); }
.chip-lime { background: var(--green); color: var(--on-green); }
.chip-lime i { width: 8px; height: 8px; border-radius: 50%; background: var(--black); }
.pill { height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 999px; font: 600 13px/1 var(--font-mono); white-space: nowrap; }
.pill-paper { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--white); color: var(--on-white); border: 2px solid var(--grey); font: 700 11px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.delta { height: 28px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; font: 700 13px/1 var(--font-mono); background: var(--surface-2); }

/* ---------- forms ---------- */
.input, .textarea, .select { width: 100%; height: 48px; padding: 0 var(--s4); background: var(--surface-2); border: 2px solid var(--line); border-radius: var(--r-btn); outline: none; color: var(--ink); }
.textarea { height: 112px; padding: var(--s3) var(--s4); resize: none; line-height: 24px; }
.input:focus, .textarea:focus { border-color: var(--line-strong); }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input.mono { font-family: var(--font-mono); font-size: 15px; }
.field { display: grid; gap: var(--s2); min-width: 0; align-content: start; }
.field > label, .field-label { font-size: 14px; line-height: 20px; font-weight: 600; display: flex; justify-content: space-between; gap: var(--s2); }
.field-help { font-size: 14px; line-height: 20px; color: var(--muted); }
.field-error { font-size: 14px; line-height: 20px; color: var(--down); }
.fields { display: grid; gap: var(--s5); }
.fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.unit-wrap { position: relative; }
.unit-wrap .input { padding-right: 64px; }
.unit-wrap .unit { position: absolute; right: var(--s4); top: 50%; transform: translateY(-50%); font: 500 13px/1 var(--font-mono); color: var(--muted); pointer-events: none; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--r-btn); }
.seg button { height: 40px; border-radius: 7px; font: 700 14px/1 var(--font); color: var(--muted); border: 0; }
.seg button[aria-selected='true'], .seg button[aria-checked='true'] { background: var(--ink); color: var(--bg); }
.block-alt .seg { background: transparent; border: 2px solid var(--on-alt); }
.block-alt .seg button { color: var(--on-alt-muted); }
.block-alt .seg button[aria-selected='true'], .block-alt .seg button[aria-checked='true'] { background: var(--on-alt); color: var(--alt); }
.seg.strip { display: flex; overflow-x: auto; scrollbar-width: none; width: auto; height: auto; flex: initial; }
.seg.strip::-webkit-scrollbar { display: none; }
.seg.strip button { flex: 1 0 auto; padding: 0 16px; }
.check { display: flex; align-items: center; gap: var(--s3); min-height: 40px; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--green); margin: 0; }

/* ---------- stats, rows, kv ---------- */
.stats { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-top: 2px solid var(--line-strong); }
.stats > div { padding: var(--s5) var(--s5) var(--s5) 0; display: grid; gap: var(--s2); align-content: start; border-left: 2px solid var(--line-strong); padding-left: var(--s5); min-width: 0; }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats b { font-family: var(--font-display); font-weight: 800; font-size: var(--num, 72px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats.m { --num: 40px; }
.stats.m b { line-height: 44px; letter-spacing: -0.03em; }
/* long money strings ($0.0000010, 1,234.5678) shrink so a row of equal cells never overflows: the
   page adds numClass() from lib.js; the line height stays, so the cells of a row keep one height */
.stats b.n-long { font-size: calc(var(--num, 72px) * 0.75); }
.stats b.n-xlong { font-size: calc(var(--num, 72px) * 0.6); }
.stats b small { font-size: 0.5em; font-weight: 800; letter-spacing: -0.02em; color: var(--muted); margin-left: 0.12em; }
.stats span { font-size: 14px; line-height: 20px; color: var(--muted); max-width: 26ch; }
.stats span .mono { color: var(--ink); font-size: 13px; white-space: nowrap; }
.stats-note { padding: var(--s3) 0 0; font: 500 12px/16px var(--font-mono); color: var(--muted); border-top: 2px solid var(--line-strong); }
.rows > li, .rows > a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: var(--s3); align-items: center; min-height: 48px; padding: var(--s2) 0; border-top: 1px solid var(--line); }
.rows > :first-child { border-top: 0; }
.rows .trail { text-align: right; font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.rows .who { font: 500 13px/18px var(--font-mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .side { font: 700 12px/16px var(--font-mono); width: 44px; }
.rows .none { display: block; }
/* the coin page's lists: trades = side · wallet (explorer link) + age · SOL over USD · tokens;
   holders = wallet + tags · tokens · share. Two-line trails stack a <b> over a <small>. */
.rows.trades > li { grid-template-columns: 44px minmax(0, 1fr) auto auto; }
.rows.holders > li { grid-template-columns: minmax(0, 1fr) auto auto; }
.rows .side.buy { color: var(--up); }
.rows .side.sell { color: var(--down); }
.rows .who a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.rows .who a:hover { text-decoration-color: var(--ink); }
.rows .age { color: var(--muted); }
.rows .tag { font: 700 11px/16px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rows .tag.creator { color: var(--green-text); }
.rows .tag.you { color: var(--ink); }
.rows .amt { text-align: right; font-family: var(--font-mono); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rows .trail { font-variant-numeric: tabular-nums; }
.rows .amt b, .rows .trail b { display: block; line-height: 16px; }
.rows .amt small, .rows .trail small { display: block; font-size: 11px; line-height: 14px; color: var(--muted); }
.rows .who small { display: block; font-size: 11px; line-height: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.rows .age a { color: inherit; text-decoration-color: transparent; }
.rows .age a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.rows-more { width: 100%; margin-top: var(--s3); }
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.list-head h3 { margin-bottom: 0; }
.kv { display: grid; gap: var(--s2); }
.kv > div { display: flex; justify-content: space-between; gap: var(--s3); font-size: 14px; line-height: 20px; }
.kv dt { color: var(--muted); }
.kv dd { font-family: var(--font-mono); font-size: 13px; font-weight: 500; text-align: right; }
.addr-rows > div { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s2) 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.addr-rows > div:first-child { border-top: 0; }
.addr-rows dt { color: var(--muted); }
.addr-rows dd { font-family: var(--font-mono); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.addr-rows .copy { width: 20px; height: 20px; color: var(--muted); display: inline-grid; place-items: center; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s5); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); min-height: 24px; }
.card-head h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 26px; letter-spacing: -0.02em; }
.coin-card { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; min-width: 0; transition: border-color 120ms; color: var(--ink); }
.coin-card:hover { border-color: var(--muted); }
.coin-card > * { padding-inline: var(--s4); }
.coin-card .pic { position: relative; aspect-ratio: 1; background: var(--surface-2); padding: 0; }
.coin-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.coin-card .pic .chip { position: absolute; top: var(--s3); left: var(--s3); }
.coin-card .pic .ph { position: absolute; inset: 0; display: grid; place-items: center; font: 600 14px/20px var(--font); color: var(--muted); text-align: center; padding: var(--s4); }
.coin-card .pic .ph.big { font-size: 72px; line-height: 1; }
.coin-card .title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); padding-top: var(--s2); }
.coin-card .title b { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 26px; letter-spacing: -0.02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tick { font: 500 13px/18px var(--font-mono); color: var(--muted); white-space: nowrap; }
.coin-card .desc { font-size: 14px; line-height: 20px; color: var(--muted); min-height: 40px; }
.coin-card .cap-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s2); }
.coin-card .cap-row b { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.coin-card .cap-row small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); margin-top: 4px; }
.coin-card .state { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding-bottom: var(--s4); font: 500 12px/16px var(--font-mono); color: var(--muted); }
.block-brick .coin-card, .stage .coin-card { background: var(--bg); border: 2px solid var(--line-strong); box-shadow: 4px 4px 0 var(--ink); }
.board, .teaser { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.strip { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; width: 88px; height: 6px; flex: none; }
.strip i { display: block; border-radius: 2px; background: var(--strip-next); }
.strip i[data-s='filling'] { background: transparent; box-shadow: inset 0 0 0 2px var(--green-text); }
.strip i[data-s='filled'], .strip i[data-s='done'] { background: var(--green); }
.strip i[data-s='passed'] { background: transparent; box-shadow: inset 0 0 0 1px var(--grey); }

/* ---------- the ladder ---------- */
.ladder { display: grid; gap: 8px; }
.band { position: relative; height: 56px; border-radius: var(--r-band); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; overflow: hidden; }
.band .cap { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; position: relative; }
.band .word { font: 700 12px/16px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; position: relative; text-align: right; }
/* on a surface block; an outlined band's words are the block's ink */
.band[data-state='next'] { border: 2px dashed var(--grey); color: var(--ink); }
.band[data-state='filling'] { border: 2px solid var(--green-text); color: var(--ink); }
.band[data-state='filling']::before { content: ''; position: absolute; left: 0; bottom: 0; height: 8px; width: var(--fill); background: var(--green-text); }
.band[data-state='filled'], .band[data-state='done'] { background: var(--green); color: var(--on-green); }
.band[data-state='passed'] { border: 2px solid var(--grey); color: var(--ink); }
.ladder.compact .band[data-state='filling']::before { height: 5px; }
.ladder.compact .band { height: 40px; padding: 0 14px; }
.ladder.compact .band .cap { font-size: 18px; }
.ladder.compact .band .word { font-size: 10px; }
.now-row { height: 24px; display: flex; align-items: center; gap: var(--s3); }
.now-row i { flex: 1; height: 0; border-top: 3px dashed var(--grey); }
.hero-art { width: 100%; max-width: 540px; }
.hero-art .cap { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.03em; }
.hero-art .tag { font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- comparison chart ---------- */
.cmp-svg { width: 100%; height: auto; display: block; }
.cmp-svg .grid { stroke: var(--on-alt-muted); stroke-opacity: 0.4; stroke-width: 1; }
.cmp-svg .base { stroke: var(--on-alt); stroke-width: 2; }
.cmp-svg .axis { font: 500 13px var(--font-mono); fill: var(--on-alt-muted); }
.cmp-svg .val { font: 700 12px var(--font-mono); fill: var(--on-alt); }
.cmp-svg .s-pump { fill: var(--c-pump); } .cmp-svg .s-pool { fill: var(--c-pool); } .cmp-svg .s-fees { fill: var(--c-fees); } .cmp-svg .s-reserve { fill: var(--c-reserve); }
.cmp-svg .s-fees, .cmp-svg .s-reserve { stroke: var(--c-sep); stroke-width: 2; }
.cmp-rows { display: none; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s4); font-size: 14px; line-height: 20px; color: var(--on-alt-muted); }
.cmp-legend span { display: inline-flex; align-items: center; gap: 8px; }
.cmp-legend i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.cmp-legend .s-pump { background: var(--c-pump); } .cmp-legend .s-pool { background: var(--c-pool); border: 1px solid var(--on-alt-muted); } .cmp-legend .s-fees { background: var(--c-fees); } .cmp-legend .s-reserve { background: var(--c-reserve); }
.cmp-legend .s-fees, .cmp-legend .s-reserve { box-shadow: inset 0 0 0 1px var(--c-sep); } /* the SVG's --c-sep line, 1px; no size change */
.cmp-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s7); align-items: start; }
.cmp-side { display: grid; gap: var(--s5); }
.cmp-side .big { font-family: var(--font-display); font-weight: 800; font-size: 72px; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.cmp-side p { color: var(--on-alt-muted); }

/* ---------- header, banner, footer ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 2px solid var(--line); }
.top .container { height: var(--header-h); display: flex; align-items: center; gap: var(--s6); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.wordmark img, .wordmark svg { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: flex; gap: var(--s1); }
.nav a { height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: var(--r-btn); font-weight: 600; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current='page'] { color: var(--ink); background: var(--surface-2); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
.banner { background: var(--surface); border-bottom: 2px solid var(--line); }
.banner .container { min-height: 40px; padding-block: var(--s2); display: flex; align-items: center; justify-content: center; text-align: center; font-size: 14px; line-height: 20px; color: var(--muted); }
.banner b { color: var(--ink); font-weight: 600; }
.footer { background: var(--alt); color: var(--on-alt); }
.footer .container { padding-block: var(--s7); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); }
.footer .col { display: grid; gap: var(--s3); align-content: start; font-size: 14px; line-height: 20px; color: var(--on-alt-muted); }
.footer .col.right { justify-items: end; text-align: right; }
.footer .wordmark { color: var(--on-alt); }
.footer nav { display: flex; gap: var(--s4); flex-wrap: wrap; justify-content: flex-end; }
.footer nav a { color: var(--on-alt); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--s5) + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: var(--r-btn); font-size: 14px; font-weight: 600; max-width: calc(100vw - 32px); }
.has-bar .toast { bottom: calc(var(--bar-h) + var(--s4)); }
.skeleton { background: var(--surface-2); border-radius: var(--r-card); min-height: 160px; }
.skeleton-page { padding-block: var(--s7); }
.skeleton-page .skeleton { min-height: 360px; }
.board .skeleton { min-height: 420px; }
.empty { text-align: center; padding: var(--s8) var(--s5); color: var(--muted); display: grid; justify-items: center; gap: var(--s3); }
.empty h3 { color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 30px; }

/* ---------- home ---------- */
.hero { padding-block: var(--s8) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s7); align-items: center; }
.hero-copy { display: grid; gap: var(--s5); align-content: center; }
.hero-top { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.hero h1 { max-width: 11ch; }
.hero-cta { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; }
.hero-art-wrap { justify-self: end; width: 100%; max-width: 540px; }
.hero-stats { margin-top: var(--s8); }
.hero-stats-wrap { padding-bottom: var(--s6); }
.hero .stats-note { padding-bottom: var(--s6); }
.block { scroll-margin-top: var(--header-h); }
.board .empty, .teaser .empty { grid-column: 1 / -1; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.steps > li { display: grid; grid-template-rows: auto auto 1fr; gap: var(--s4); padding-top: var(--s5); border-top: 2px solid var(--line-strong); min-width: 0; }
.step-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); }
.step-n { font-family: var(--font-display); font-weight: 800; font-size: 96px; line-height: 0.85; letter-spacing: -0.05em; color: var(--green-text); font-variant-numeric: tabular-nums; }
.step-glyph { width: 88px; height: 88px; flex: none; }
.step-glyph .p { fill: var(--line); }
/* token colours for inline SVG (Brik, the hero art, the glyphs); all but grey, .stroke-green and
   .fill-green-text (both --green-text: the hero art's filling band) are the same in both themes */
.fill-green { fill: var(--green); } .fill-green-soft { fill: var(--green-soft); } .fill-grey { fill: var(--grey); }
.fill-green-text { fill: var(--green-text); }
.fill-black { fill: var(--black); } .fill-white { fill: var(--white); }
.stroke-ink { stroke: var(--black); } .stroke-green { stroke: var(--green-text); } .stroke-grey { stroke: var(--grey); }
/* the older names, for anything still drawn with them */
.ink { fill: var(--black); } .paper { fill: var(--white); } .lime, .step-glyph .b, .step-glyph .l { fill: var(--green); }
.steps h3 { font-size: 30px; line-height: 34px; letter-spacing: -0.03em; }
.steps p { color: var(--muted); }
.closing { text-align: center; display: grid; justify-items: center; gap: var(--s5); }
.closing .lede { text-align: center; }

/* ---------- board page ---------- */
.board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.board-head .input { width: 280px; }
.board-sort { margin-bottom: var(--s5); }

/* ---------- launch page ---------- */
.launch { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s7); align-items: start; padding-block: var(--s7) 0; }
.stage { position: sticky; top: calc(var(--header-h) + var(--s4)); background: var(--surface); color: var(--ink); border-radius: var(--r-card); padding: var(--s6); display: grid; gap: var(--s5); }
.stage .brik-wrap { display: flex; justify-content: center; margin-bottom: calc(-1 * (var(--s5) + 22px)); position: relative; z-index: 1; }
.stage .stage-title { font: 700 12px/16px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-text); margin-bottom: var(--s3); }
.stage .stage-line { font-size: 14px; line-height: 20px; color: var(--muted); }
.stage .stage-line a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.form-groups { display: grid; gap: var(--s7); }
.group { display: grid; gap: var(--s5); padding-top: var(--s5); border-top: 2px solid var(--line-strong); }
.group-head { display: flex; align-items: baseline; gap: var(--s4); }
.group-head .n { font: 700 12px/16px var(--font-mono); letter-spacing: 0.12em; color: var(--green-text); }
.group-head h2 { font-size: 30px; line-height: 34px; letter-spacing: -0.03em; }
.group > details > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); font-weight: 600; min-height: 40px; }
.group > details[open] > summary { margin-bottom: var(--s4); }
.lookup { display: flex; gap: var(--s2); }
.lookup .input { flex: 1; min-width: 0; }
.lookup .btn-outline { height: 48px; }
.logo-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.launch-head { padding-top: var(--s7); display: grid; gap: var(--s4); }
.group > details > summary svg { transition: transform 150ms; }
.group > details[open] > summary svg { transform: rotate(180deg); }
.logo-pick { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s4); align-items: center; }
.logo-prev { width: 96px; height: 96px; border-radius: var(--r-card); background: var(--surface-2); border: 2px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.logo-prev img { width: 100%; height: 100%; object-fit: cover; }
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--bar-h); background: var(--bg); border-top: 2px solid var(--line); }
.action-bar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.action-bar .cost { font: 500 14px/20px var(--font-mono); color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.has-bar main { padding-bottom: calc(var(--bar-h) + var(--s8)); }
.has-bar .footer .container { padding-bottom: calc(var(--s7) + var(--bar-h)); }
/* the dev buy: presets beside the free field, one row; the fee shares: equal rows of wallet + percent + remove */
.dev-row { display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: var(--s3); align-items: center; }
.dev-row .seg button { padding: 0 6px; white-space: nowrap; }
.share-rows { display: grid; gap: var(--s3); }
.share-row { display: grid; grid-template-columns: minmax(0, 1fr) 104px 40px; gap: var(--s2); align-items: center; }
.share-row .icon-btn { height: 48px; }
.share-row .unit-wrap .input { padding-right: 36px; }
.share-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; min-height: 40px; font-size: 14px; line-height: 20px; color: var(--muted); }
.addr-note { font-size: 14px; line-height: 20px; color: var(--muted); }
.addr-note .mono, .field-help .mono { color: var(--ink); font-weight: 700; }

/* ---------- coin page ---------- */
.coin { padding-block: var(--s7) var(--s9); }
.coin-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s5); align-items: center; margin-bottom: var(--s6); }
.avatar { width: 80px; height: 80px; border-radius: var(--r-card); overflow: hidden; flex: none; background: var(--surface-2); border: 2px solid var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.coin-head h1 { font-size: clamp(32px, 4vw, 52px); display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
.coin-meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center; margin-top: var(--s3); font-size: 14px; line-height: 20px; color: var(--muted); }
.coin-head .desc { flex-basis: 100%; }
.coin-head .links { display: flex; gap: var(--s2); }
.main-rail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s6); align-items: start; }
.main { display: grid; gap: var(--s7); min-width: 0; }
.rail { display: grid; gap: var(--s5); position: sticky; top: calc(var(--header-h) + var(--s4)); }
.price-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); }
.price-head > .seg { min-width: 200px; }
/* charts (web/lib.js chart() and curveSvg()): 1px --line grid, Mono 13 axis text, the price line in
   --green-text, candles in --up/--down (a number moved), the current price as an ink tag on the axis,
   the hovered value and time as surface tags, the tooltip in the toast's ink-on-bg */
.chart { position: relative; min-height: 280px; }
.chart-svg { width: 100%; height: 280px; display: block; overflow: visible; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.chart-svg text { font: 500 13px var(--font-mono); fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart-svg text.sub { font-size: 12px; }
.chart-svg .axis, .chart-svg .grid, .chart-svg .tick { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.chart-svg .line { stroke: var(--green-text); fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .line.done { stroke: var(--green-text); }
.chart-svg .fill { fill: none; }
.chart-svg .rest { stroke: var(--line); fill: none; stroke-width: 2; stroke-dasharray: 3 4; }
.chart-svg .dot { fill: var(--green-text); }
.chart-svg .dot.end { stroke: var(--bg); stroke-width: 2; }
.chart-svg .c line, .chart-svg .c rect { stroke-width: 1; }
.chart-svg .c.up { stroke: var(--up); fill: var(--up); }
.chart-svg .c.down { stroke: var(--down); fill: var(--down); }
.chart-svg .c.flat { stroke: var(--muted); }
.chart-svg .vol { fill: var(--line); }
.chart-svg line.now { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 4; }
.chart-svg .tag-bg { fill: var(--ink); }
.chart-svg .tag-t { fill: var(--bg); font-weight: 700; font-size: 12px; }
.chart-svg .tag-bg.hov { fill: var(--surface-2); stroke: var(--line); stroke-width: 1; }
.chart-svg .tag-t.hov { fill: var(--ink); }
.chart-svg .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
.chart-svg .pt { fill: var(--green-text); stroke: var(--bg); stroke-width: 2; }
.chart-tip { position: absolute; top: 0; left: 0; z-index: 2; pointer-events: none; display: grid; gap: 2px; padding: 8px 10px; border-radius: var(--r-band); background: var(--ink); color: var(--bg); font: 500 12px/16px var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart-tip > div { display: flex; justify-content: space-between; gap: var(--s4); }
.chart-tip .t, .chart-tip .k { opacity: 0.7; }
.chart-tip b { font-weight: 700; }
.chart-empty { min-height: 280px; }
/* the chart toolbar: Curve/Trades, USD/SOL, Price/Cap as small segs that size to their labels */
.chart-tools { display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.seg-sm { padding: 3px; gap: 3px; }
.seg-sm button { height: 32px; font-size: 13px; border-radius: 7px; }
.seg.auto { grid-auto-columns: auto; }
.seg.auto button { min-width: 56px; padding: 0 12px; }
.delta small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.numeral-m.n-long { font-size: 32px; letter-spacing: -0.03em; }
.numeral-m.n-xlong { font-size: 26px; letter-spacing: -0.02em; }
.price-stats { margin-top: var(--s5); --n: 4; }
.price-now { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
.coin-head .tick { font-size: 16px; }
.liq { background: var(--surface); color: var(--ink); border-radius: var(--r-card); padding: var(--s6); display: grid; gap: var(--s5); }
.liq .block-head { margin-bottom: 0; }
.liq .block-head .eyebrow { color: var(--green-text); opacity: 1; }
.liq .block-head p { color: var(--muted); }
.liq .note { font-size: 14px; line-height: 20px; color: var(--muted); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); align-items: start; }
.two-col > section { min-width: 0; }
.two-col h3 { margin-bottom: var(--s3); }
.trade .seg { margin-bottom: var(--s4); }
.trade-amount { position: relative; }
.trade-amount .input { height: 56px; font-size: 22px; font-weight: 700; padding-right: 88px; font-variant-numeric: tabular-nums; }
.trade-amount .input.long { font-size: 16px; } /* a whole token balance (16 digits) stays inside the field */
.trade-amount .unit { position: absolute; right: var(--s4); top: 50%; transform: translateY(-50%); font: 500 13px/1 var(--font-mono); color: var(--muted); }
.quick { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s2); margin-top: var(--s3); }
.quick button { height: 36px; border-radius: 999px; border: 2px solid var(--line); font: 700 13px var(--font-mono); color: var(--muted); padding: 0 4px; white-space: nowrap; min-width: 0; }
.quick button:hover { color: var(--ink); border-color: var(--line-strong); }
.quick button[aria-pressed='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.quick button:disabled { opacity: 0.45; cursor: not-allowed; }
.trade-bal { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s2); font-size: 14px; line-height: 20px; color: var(--muted); min-width: 0; }
.trade-bal .mono { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trade .kv { margin-block: var(--s4); min-height: 56px; }
/* the live quote: "You get" as the big first row, then price impact (--up/--down/--warn only when
   it moved), fee, minimum received, the route word; dd.pending while a quote is on its way */
.kv .big { padding-bottom: var(--s2); border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.kv .big dd { font-size: 16px; font-weight: 700; color: var(--ink); }
.kv dd.pending { color: var(--muted); }
.kv dd.wrap { white-space: normal; overflow-wrap: anywhere; }
.kv dd.up { color: var(--up); } .kv dd.down { color: var(--down); } .kv dd.warn { color: var(--warn); }
.kv dt.down { color: var(--down); } /* the quote's refusal line */
/* while a quote loads (aria-busy) the list is not dimmed, so its labels keep 4.5:1; its values take the pending colour */
.kv[aria-busy='true'] { opacity: 1; } .kv[aria-busy='true'] dd, .kv[aria-busy='true'] .big dd { color: var(--muted); }
.slip { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s3); margin-top: var(--s4); font-size: 14px; line-height: 20px; color: var(--muted); }
.trade .slip .seg { margin-bottom: 0; min-width: 0; }
.trade .why { margin-top: var(--s2); font-size: 14px; line-height: 20px; color: var(--muted); text-align: center; }
.trade .why.down { color: var(--down); } .trade .why.warn { color: var(--warn); }
.trade .empty { padding: var(--s4) 0; }
.trade .note { margin-top: var(--s2); }
.trade .hold { margin-top: var(--s3); display: flex; justify-content: space-between; gap: var(--s3); }
.rail details > summary { display: flex; align-items: center; justify-content: space-between; font-weight: 600; min-height: 40px; }
.rail .addr-rows { margin-top: var(--s2); }
.rail .more { margin-top: var(--s3); }
.rail .split { margin-top: var(--s3); overflow-wrap: anywhere; }
.creator-grid { display: grid; gap: var(--s4); }
.creator-grid > div { display: grid; gap: var(--s2); }
.creator-grid h4 { font-size: 15px; line-height: 20px; }

/* ---------- details page ---------- */
.doc { display: grid; gap: var(--s4); max-width: 72ch; }
.doc h2 { font-size: 30px; line-height: 34px; letter-spacing: -0.03em; margin-top: var(--s5); }
.doc h3 { font-size: 18px; line-height: 24px; font-weight: 700; margin-top: var(--s3); }
.doc p, .doc li { color: var(--muted); }
.doc ul { display: grid; gap: var(--s2); padding-left: 18px; list-style: disc; }
.doc b { color: var(--ink); }
.doc code { font-family: var(--font-mono); font-size: 13px; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.fee-table { width: 100%; border-collapse: collapse; }
.fee-table th, .fee-table td { padding: var(--s2); border-top: 1px solid var(--line); text-align: right; font-family: var(--font-mono); font-size: 13px; }
.fee-table th { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; border-top: 0; }
.fee-table th:first-child, .fee-table td:first-child { text-align: left; padding-left: 0; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .hero-art .band { animation: rise 420ms cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 70ms); }
  .hero-art .mascot { animation: rise 420ms cubic-bezier(.2, .7, .2, 1) both; animation-delay: 420ms; }
  .ladder .band { animation: rise 420ms cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
  .cmp { animation: rise 420ms cubic-bezier(.2, .7, .2, 1) both; }
  .band::before, .cmp-bar i { transition: width 300ms; }
  .flash-up { animation: flashUp 600ms; } .flash-down { animation: flashDown 600ms; }
  @keyframes flashUp { from { color: var(--up); } } @keyframes flashDown { from { color: var(--down); } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1050px) {
  .hero h1 { font-size: clamp(46px, 8.6vw, 88px); }
  .hero-grid, .launch { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); }
  .main-rail { grid-template-columns: minmax(0, 1fr) 340px; }
  .stats.m.price-stats { --num: 32px; } /* four cells beside a 340px rail */
  .stats.m.price-stats b { line-height: 36px; }
}
@media (max-width: 900px) {
  .block { padding-block: var(--s8); }
  .hero.block { padding-bottom: 0; }
  .hero-grid, .launch, .cmp-grid, .main-rail { grid-template-columns: minmax(0, 1fr); }
  .hero-art-wrap { justify-self: center; max-width: 520px; }
  .stage, .rail { position: static; }
  .main, .rail { display: contents; }
  .main-rail { gap: var(--s7); }
  .main-rail > .main > :first-child { order: 1; }
  .rail > .trade { order: 2; }
  .main > .liq { order: 3; }
  .main > .two-col { order: 4; }
  .rail > :not(.trade) { order: 5; }
  .launch .stage { order: -1; }
  .nav { display: none; }
  .stats { --num: 56px; }
  .cmp-side .big { font-size: 56px; }
}
@media (max-width: 768px) {
  .board, .teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmp-svg { display: none; }
  .cmp-rows { display: grid; gap: var(--s3); }
  .cmp-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s3); align-items: center; }
  .cmp-cap { font: 700 13px var(--font-mono); color: var(--on-alt); }
  .cmp-bars { display: grid; gap: 4px; }
  .cmp-bar { display: flex; align-items: center; gap: 6px; height: 16px; }
  .cmp-bar i { display: block; height: 100%; border-radius: 2px; }
  .cmp-bar .s-pump { background: var(--c-pump); } .cmp-bar .s-pool { background: var(--c-pool); } .cmp-bar .s-fees { background: var(--c-fees); } .cmp-bar .s-reserve { background: var(--c-reserve); }
  .cmp-bar .s-fees, .cmp-bar .s-reserve { box-shadow: inset 0 0 0 1px var(--c-sep); }
  .cmp-bar b { font: 700 11px var(--font-mono); white-space: nowrap; }
  .cmp-legend { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .coin-head { grid-template-columns: auto minmax(0, 1fr); }
  .coin-head .links { grid-column: 1 / -1; }
  .price-stats { --n: 2; }
  .stats.m.price-stats { --num: 40px; }
  .stats.m.price-stats b { line-height: 44px; }
  .price-stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .price-stats > div:nth-child(n + 3) { border-top: 2px solid var(--line-strong); }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .footer .container { grid-template-columns: minmax(0, 1fr); }
  .footer .col.right { justify-items: start; text-align: left; }
  .footer nav { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .hero { padding-block: var(--s7) 0; }
  .hero h1 { font-size: clamp(44px, 12.5vw, 60px); }
  .lede { font-size: 17px; line-height: 26px; }
  .block-head .lede { font-size: 17px; line-height: 26px; }
  .display-m, .steps h3, .group-head h2 { font-size: 26px; line-height: 30px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats > div { grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); align-items: center; gap: var(--s4); border-left: 0; padding: var(--s4) 0; border-top: 2px solid var(--line-strong); }
  .stats > div:first-child { border-top: 0; }
  .stats, .stats.m, .stats.m.price-stats { --num: 44px; }
  .stats b, .stats.m b, .stats.m.price-stats b { line-height: 1; }
  .stats b.n-long { font-size: calc(var(--num) * 0.85); } /* the stacked cell has room */
  .stats b.n-xlong { font-size: calc(var(--num) * 0.75); }
  .stats span { max-width: none; }
  .chart-tools { width: 100%; justify-content: flex-start; }
  .chart-tools .seg { flex: 1 1 auto; }
  .seg.auto button { min-width: 0; padding: 0 8px; }
  .price-stats { --n: 1; }
  .price-stats > div:nth-child(n + 2) { border-top: 2px solid var(--line-strong); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step-n { font-size: 72px; }
  .step-glyph { width: 64px; height: 64px; }
  .board, .teaser { grid-template-columns: minmax(0, 1fr); }
  .board-head .input { width: 100%; }
  .fields.two, .fields.three { grid-template-columns: minmax(0, 1fr); }
  .dev-row { grid-template-columns: minmax(0, 1fr); }
  .dev-row .seg button { font-size: 13px; padding: 0 4px; }
  .share-row { grid-template-columns: minmax(0, 1fr) 88px 40px; }
  .btn, .btn-brick, .btn-ink, .btn-outline { height: 48px; }
  .btn-sm { height: 40px; }
  .stage { border-radius: 0; margin-inline: -16px; padding: var(--s5) 16px; }
  .liq { padding: var(--s5); }
  .band { height: 48px; padding: 0 14px; }
  .band .cap { font-size: 20px; }
  .band .word { font-size: 10px; letter-spacing: 0.08em; }
  .action-bar .cost { font-size: 13px; }
  .top-right .wide { display: none; }
  .top .container { gap: var(--s3); }
  .top-right { gap: var(--s2); }
  .top-right #theme { display: none; }
  .pill { height: 36px; padding: 0 10px; font-size: 12px; }
  .doc h2 { font-size: 26px; line-height: 30px; }
}
