/* Payslip. A professional app shell like pelly.fun (the owner's ask, 2 Nov): a near-black desk, a sidebar, one cobalt
   accent, and white paper payslips on top. Tokens and the reasons are in ../../DESIGN.md.
   UI tokens are the dark values; anything printed on paper (.slip, .strip-in, the machine's payslip) re-declares the
   light ones, so the same components work on both. Contrast on --bg: --ink 16:1, --ink-2 10:1, --muted 5.4:1,
   --blue-text 6.6:1. */
:root {
  color-scheme: dark;
  --bg: #090B12;
  --bg-2: #0D1019;
  --surface: #11141F;
  --surface-2: #161A28;
  --surface-3: #1D2234;
  --line: #1D2233;
  --line-2: #283047;
  --line-3: #37415E;
  --ink: #EEF1F8;
  --ink-2: #B8C0D4;
  --muted: #848DA6;
  --faint: #59617A;
  --blue: #1958FC;
  --blue-2: #3A72FF;
  --blue-text: #7FA3FF;
  --blue-wash: rgba(25, 88, 252, 0.14);
  --blue-line: rgba(127, 163, 255, 0.34);
  --good: #3DD68C;
  --good-wash: rgba(61, 214, 140, 0.12);
  --warn: #FFB357;
  --warn-wash: rgba(255, 179, 87, 0.1);
  --warn-line: rgba(255, 179, 87, 0.32);
  --bad: #FF6B7A;
  --paper: #FFFFFF;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --side-w: 236px;
  --top-h: 64px;
  --strip-h: 32px;
  --wrap: 1160px;
  --gut: clamp(16px, 2.6vw, 32px);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --zig: 14px;
}
/* paper: payslips stay white with dark ink, wherever they sit */
.paper, .slip, .strip-in {
  --ink: #181B2A;
  --ink-2: #3A4157;
  --muted: #667089;
  --faint: #98A0B4;
  --line: #E2E6EE;
  --line-2: #D2D8E3;
  --blue-text: #1958FC;
  --blue-wash: #EDF2FF;
  --blue-line: #C3D3FF;
  --surface: #FFFFFF;
  --surface-2: #F4F6FA;
  --surface-3: #EBEFF6;
  --bg-2: #F4F6FA;
  --warn: #9A5300;
  --warn-wash: #FFF4E5;
  --warn-line: #F5D9B0;
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 10px; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- the shell ---------- */
.risk-strip { position: relative; z-index: 31; height: var(--strip-h); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; background: #06070C; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 12px; white-space: nowrap; overflow: hidden; }
.risk-strip b { color: var(--blue-text); font-weight: 650; }
.risk-strip .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); flex: none; }
.risk-strip a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: calc(100svh - var(--strip-h)); }
.sidebar { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; background: var(--bg-2); border-right: 1px solid var(--line); overflow-y: auto; scrollbar-width: none; z-index: 40; }
.sidebar::-webkit-scrollbar { display: none; }
.brand { display: inline-flex; align-items: center; padding: 4px 8px 16px; }
.brand img { height: 26px; width: auto; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px; border-radius: 8px; color: var(--ink-2); font-weight: 550; font-size: 14px; transition: background 0.14s, color 0.14s; }
.side-nav a .icon { color: var(--muted); transition: color 0.14s; }
.side-nav a:hover { background: var(--surface); color: var(--ink); }
.side-nav a[aria-current] { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.side-nav a[aria-current] .icon { color: var(--blue-text); }
.side-nav a[aria-disabled='true'] { cursor: default; }
.side-nav .soon { margin-left: auto; font: 500 10px/1 var(--mono); letter-spacing: 0.1em; color: var(--faint); }
.side-label { margin: 20px 10px 6px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.side-foot { margin-top: auto; padding-top: 16px; }
.wallet-card { display: grid; gap: 8px; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.wallet-card .wc-k { font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.wallet-card .wc-addr { font: 500 12.5px var(--mono); color: var(--ink); }
.wallet-card .wc-v { font: 500 18px/1.1 var(--mono); color: var(--ink); }
.wallet-card .wc-v small { font: 500 12px var(--font); color: var(--muted); margin-left: 4px; }
.wallet-card .wc-check { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.ok-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-wash); flex: none; }

.frame { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 var(--gut); background: rgba(9, 11, 18, 0.86); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.top-brand { display: none; padding: 0; }
.top-brand img { height: 30px; width: 30px; }
.top-search { position: relative; flex: 1; max-width: 420px; display: flex; align-items: center; margin: 0; }
.top-search .icon { position: absolute; left: 12px; color: var(--muted); pointer-events: none; width: 16px; height: 16px; }
.top-search input { width: 100%; height: 38px; padding: 0 44px 0 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font-size: 13.5px; }
.top-search input::placeholder { color: var(--muted); }
.top-search input:focus { outline: none; border-color: var(--line-3); background: var(--surface); }
.top-search kbd { position: absolute; right: 10px; height: 20px; min-width: 20px; display: grid; place-items: center; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); font: 500 11px var(--mono); pointer-events: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top .menu-btn { display: none; }
main { flex: 1; padding: 24px 0 56px; }

.motion-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.motion-btn:hover { border-color: var(--line-3); color: var(--ink); }
.motion-btn .knob { position: relative; width: 26px; height: 15px; border-radius: 8px; background: var(--surface-3); border: 1px solid var(--line-2); }
.motion-btn .knob::after { content: ''; position: absolute; top: 2px; left: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); transition: transform 0.15s var(--ease), background 0.15s; }
.motion-btn[aria-pressed='true'] .knob { background: var(--blue-wash); border-color: var(--blue-line); }
.motion-btn[aria-pressed='true'] .knob::after { transform: translateX(11px); background: var(--blue-text); }

.foot { border-top: 1px solid var(--line); padding: 22px var(--gut) 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; color: var(--muted); font-size: 12.5px; }
.foot .foot-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 650; }
.foot .foot-brand img { width: 18px; height: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot nav a:hover { color: var(--ink); }
.foot .foot-risk { flex-basis: 100%; color: var(--faint); font-size: 12px; line-height: 1.6; max-width: 72em; }
.tabbar { display: none; }
.veil { display: none; }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 650; white-space: nowrap; transition: background 0.14s, border-color 0.14s, transform 0.14s; }
.btn:hover { background: var(--surface-2); border-color: var(--line-3); }
.btn:active { transform: translateY(1px); }
.btn.primary, .btn.btn-blue { background: var(--blue); border-color: transparent; color: #fff; }
.btn.primary:hover, .btn.btn-blue:hover { background: var(--blue-2); }
.btn.lg { height: 46px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn .icon { width: 16px; height: 16px; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.45; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); font: 500 12px/1 var(--mono); white-space: nowrap; }
.chip.stock { background: var(--blue-wash); color: var(--blue-text); border-color: var(--blue-line); }
.chip.demo { background: var(--warn-wash); color: var(--warn); border-color: var(--warn-line); }
.chip.live { background: var(--good-wash); color: var(--good); border-color: rgba(61, 214, 140, 0.32); }
.paper .chip.live, .slip .chip.live { background: #E8F6EE; color: #0E7A45; border-color: #BFE6CF; }
.soon-chip { height: 18px; padding: 0 6px; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-wash); display: inline-block; flex: none; }
.motion .live-dot { animation: live 2.4s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 5px rgba(61, 214, 140, 0); } }
.eyebrow { display: flex; align-items: center; gap: 9px; font: 500 11.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- the desk (home): headline and what you sign, beside the live machine ---------- */
.desk {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 32px; align-items: center;
  padding: 34px 36px 30px; border-radius: 22px; border: 1px solid var(--line-2); overflow: hidden;
  background:
    radial-gradient(80% 90% at 80% 0%, rgba(25, 88, 252, 0.22), transparent 60%),
    linear-gradient(180deg, #121728, #0E111C);
}
.desk::before { content: ''; position: absolute; width: 620px; height: 620px; left: -260px; bottom: -380px; background: url(/img/rosette-white.svg) center / contain no-repeat; opacity: 0.05; pointer-events: none; }
.desk > * { position: relative; }
.desk h1 { margin-top: 16px; font-size: clamp(32px, 3.5vw, 48px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.06; text-wrap: balance; max-width: 12em; }
.desk .lede { margin-top: 14px; font-size: 16px; color: var(--ink-2); max-width: 32em; }
.desk .ctas { margin-top: 22px; }
.sign-box { margin-top: 20px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: rgba(9, 11, 18, 0.45); }
.sign-box .k { font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; color: var(--muted); margin-bottom: 10px; }
.sign-box ul { display: grid; gap: 7px; }
.sign-box li { display: grid; grid-template-columns: 12px max-content minmax(0, 1fr); align-items: baseline; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.sign-box li b { color: var(--ink); font-weight: 700; }
.sign-box li::before { content: '✓'; color: var(--good); font-weight: 700; }
.sign-box li.no::before { content: '✕'; color: var(--bad); }
.checks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.checks li::before { content: '✓'; color: var(--good); margin-right: 7px; }
.desk-live { display: grid; gap: 6px; }
.desk-live-head { display: flex; justify-content: space-between; align-items: center; }
.board-row { display: flex; flex-direction: column; align-items: center; gap: 7px; margin-top: 8px; }
.board-row .k { font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.12em; color: var(--muted); }
.motion .desk-copy > *, .motion .desk-live { animation: rise 0.8s var(--ease) both; }
.motion .desk-copy > :nth-child(2) { animation-delay: 0.05s; }
.motion .desk-copy > :nth-child(3) { animation-delay: 0.1s; }
.motion .desk-copy > :nth-child(4) { animation-delay: 0.15s; }
.motion .desk-copy > :nth-child(5) { animation-delay: 0.2s; }
.motion .desk-live { animation-delay: 0.12s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* the stats strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.stat-strip > div { padding: 16px 20px 18px; border-left: 1px solid var(--line); min-width: 0; }
.stat-strip > div:first-child { border-left: 0; }
.stat-strip dt { font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stat-strip dd { margin: 8px 0 0; font: 500 26px/1.1 var(--mono); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-strip dd.blue { color: var(--blue-text); }
.stat-strip .sub { margin-top: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.odo { display: inline-flex; min-height: 1.15em; }
.odo-d { display: inline-block; height: 1.15em; overflow: hidden; }
.odo-s { display: flex; flex-direction: column; transition: transform 0.9s cubic-bezier(0.2, 0.75, 0.2, 1); }
.odo-s > span, .odo-c { display: block; height: 1.15em; line-height: 1.15em; white-space: pre; }
html:not(.motion) .odo-s { transition: none; }

/* the payday board: split-flap cells that flip to each new payday */
.board { display: inline-flex; gap: 12px; padding: 9px 11px 10px; border-radius: 11px; background: #05060B; border: 1px solid var(--line-2); max-width: 100%; --fw: 18px; --fh: 26px; }
.board-field { display: grid; gap: 5px; }
.board-k { font: 500 9px/1 var(--mono); letter-spacing: 0.12em; color: #7C86A3; }
.board-v { display: flex; gap: 2px; }
.flap { position: relative; width: var(--fw); height: var(--fh); perspective: 220px; }
.flap > span { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: #1E2335; color: #F3F1EA; backface-visibility: hidden; }
.flap > .t, .flap > .ft { top: 0; border-radius: 3px 3px 0 0; }
.flap > .b, .flap > .fb { bottom: 0; border-radius: 0 0 3px 3px; background: #242A3F; }
.flap > span > i { display: block; height: var(--fh); line-height: var(--fh); text-align: center; font: 500 calc(var(--fh) * 0.6) / var(--fh) var(--mono); font-style: normal; }
.flap > .b > i, .flap > .fb > i { transform: translateY(-50%); }
.flap > .ft { transform-origin: 50% 100%; z-index: 2; }
.flap > .fb { transform-origin: 50% 0; z-index: 2; transform: rotateX(90deg); }
.flap::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #05060B; z-index: 3; }
.flap.go > .ft { animation: flap-t 0.075s ease-in forwards; }
.flap.go > .fb { animation: flap-b 0.075s 0.075s ease-out forwards; }
@keyframes flap-t { to { transform: rotateX(-90deg); } }
@keyframes flap-b { from { transform: rotateX(90deg); } to { transform: rotateX(0); } }

/* ---------- the payroll machine, drawn on the dark desk; its payslip is paper ---------- */
.machine { position: relative; }
.m-svg { width: 100%; height: auto; display: block; overflow: visible; }
.m-k { font: 500 10.5px var(--mono); letter-spacing: 0.1em; fill: var(--muted); }
.m-k.m-blue { fill: var(--blue-text); }
.m-v { font: 500 11.5px var(--mono); fill: var(--ink); }
.m-tiny { font: 500 9.5px var(--mono); fill: var(--blue-text); }
.m-box { fill: var(--surface-2); stroke: var(--line-2); }
.m-pipe { fill: none; stroke: var(--line-3); stroke-width: 2; stroke-linecap: round; }
.m-fan { fill: none; stroke: var(--line-2); stroke-width: 1.4; stroke-linejoin: round; transition: stroke 0.3s; }
.m-svg.paying .m-fan { stroke: var(--blue-line); }
.m-spark { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.m-spark-dot { fill: var(--blue-text); }
.m-tube { fill: rgba(25, 88, 252, 0.08); stroke: var(--blue-line); stroke-width: 1.5; }
.m-fill { transform-box: fill-box; transform-origin: 50% 100%; }
.m-mark { stroke: var(--blue-text); stroke-width: 1.5; stroke-dasharray: 3 3; }
.m-node { fill: var(--surface-2); stroke: var(--line-3); stroke-width: 1.5; transition: fill 0.3s, stroke 0.3s; }
.m-node.hot { fill: rgba(25, 88, 252, 0.22); stroke: var(--blue-text); }
.m-ring { fill: none; stroke: var(--blue-text); stroke-width: 1.5; stroke-dasharray: 4 6; opacity: 0.35; transform-box: fill-box; transform-origin: center; }
.m-ring.spin { opacity: 1; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.m-stock { font: 600 14px var(--mono); fill: var(--blue-text); }
.m-res { font: 500 11.5px var(--mono); fill: var(--blue-text); opacity: 0; transition: opacity 0.3s; }
.m-res.on { opacity: 1; }
.m-printer { fill: #04050A; stroke: var(--line-3); }
.m-led { fill: #3DD68C; }
.m-led.busy { fill: #6E95FF; }
.motion .m-led.busy { animation: blink 0.35s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.m-slot { stroke: #000; stroke-width: 3; stroke-linecap: round; }
.m-paper { fill: #FFFFFF; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35)); }
.m-guil { fill: #1958FC; opacity: 0.25; }
.m-slip-no { font: 500 6.5px var(--mono); letter-spacing: 0.06em; fill: #667089; }
.m-slip-k { font: 500 6px var(--mono); letter-spacing: 0.08em; fill: #667089; }
.m-slip-amt { font: 500 13px var(--mono); fill: #1958FC; }
.m-slip-stock { font: 500 9px var(--mono); fill: #181B2A; }
.m-rule { stroke: #D2D8E3; stroke-dasharray: 2 2; }
.m-bar { fill: #E2E6EE; }
.m-h-dot { fill: var(--surface-2); stroke: var(--line-3); stroke-width: 1.5; transition: fill 0.25s, stroke 0.25s; }
.m-h-wallet { fill: none; stroke: var(--faint); stroke-width: 1.4; transition: stroke 0.25s; }
.m-h.paid .m-h-dot { fill: var(--blue); stroke: var(--blue-text); }
.m-h.paid .m-h-wallet { stroke: #fff; }
.m-pop { font: 500 8.5px var(--mono); fill: var(--blue-text); opacity: 0; transition: opacity 0.3s; }
.m-h.paid .m-pop { opacity: 1; }
.m-fee { fill: var(--blue-text); opacity: 0.8; }
.m-sol { fill: #fff; }
.m-stock-dot { fill: var(--blue); stroke: #fff; stroke-width: 1.5; }
.m-status { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin: 0; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.m-status b { color: var(--ink); }
.m-status .mono { color: var(--blue-text); }
.machine-card { position: relative; margin: 0; padding: 16px 18px 14px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: linear-gradient(180deg, #121728, #0E111C); }
.machine-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }

/* ---------- panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 18px; min-width: 0; }
.panel h3 { font-size: 15.5px; font-weight: 750; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel h3 a { font-size: 13px; font-weight: 650; color: var(--blue-text); }
.panel-link { display: inline-block; margin-top: 14px; font-weight: 650; font-size: 13.5px; color: var(--blue-text); }
.panel-k { font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.app-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: stretch; }
.band-risk { margin-top: 16px; font-size: 12.5px; line-height: 1.55; color: var(--muted); max-width: 72em; }
.band-risk b { color: var(--ink-2); }
.band-risk a { color: var(--blue-text); font-weight: 650; }

.next-list { margin-top: 10px; }
.next-list li a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.next-list li:first-child a { border-top: 0; }
.next-list b { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next-list .sub { display: flex; align-items: center; gap: 8px; font: 500 11.5px/1 var(--mono); color: var(--muted); margin-top: 4px; }
.next-list .when { text-align: right; font: 500 15px/1 var(--mono); font-variant-numeric: tabular-nums; }
.next-list .when small { display: block; font: 600 11px/1.3 var(--font); color: var(--muted); margin-top: 3px; }
.next-list .meter { grid-column: 2 / 4; margin-top: -2px; }
.meter { height: 5px; border-radius: 9px; background: var(--surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 9px; background: var(--blue); transition: width 1s linear; }

.chart-total { margin-top: 8px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.chart-total .mono { font-size: 24px; color: var(--ink); letter-spacing: -0.02em; }
.chart { margin-top: 12px; }
.bars { width: 100%; height: auto; display: block; }
.bars rect { fill: rgba(127, 163, 255, 0.3); }
.bars rect:hover { fill: var(--blue-text); }
.bars rect.now { fill: var(--blue); }
.bars .grid line { stroke: var(--line-2); stroke-dasharray: 2 3; }
.chart-axis { display: flex; justify-content: space-between; font: 500 10.5px/1 var(--mono); color: var(--faint); margin-top: 6px; }
.split-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; gap: 2px; background: var(--surface-3); }
.split-bar i { display: block; height: 100%; }
.split-key, .wrap-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.split-key span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; background: var(--c); }
.wrap-key b { font-family: var(--mono); font-weight: 500; color: var(--ink); }

/* ---------- payslips: paper ---------- */
.slip-wrap { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25)) drop-shadow(0 12px 20px rgba(0, 0, 0, 0.35)); }
.slip {
  position: relative; background: var(--paper); padding: 16px 20px calc(16px + var(--zig) / 2);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zig) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zig) 100%;
}
.guil { height: 16px; margin: -16px -20px 0; background: url(/img/guilloche-band.svg) center / auto 26px repeat-x; opacity: 0.5; }
.slip > .guil + .slip-top { margin-top: 12px; }
.slip-top { display: flex; justify-content: space-between; gap: 12px; font: 500 11.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.micro { contain: inline-size; min-width: 0; margin: 3px 0 11px; font: 500 6.5px/1 var(--mono); letter-spacing: 0.16em; color: #1958FC; opacity: 0.55; white-space: nowrap; overflow: hidden; text-transform: uppercase; user-select: none; }
.slip-coin { display: flex; align-items: center; gap: 10px; margin-top: 12px; min-width: 0; }
.micro + .slip-coin, .micro + .total { margin-top: 0; }
.slip-coin .who { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; }
.slip-coin .who-txt { min-width: 0; }
.slip-coin .nm { font-size: 15.5px; font-weight: 750; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slip-coin .who:hover .nm { color: var(--blue-text); }
.slip-coin .tk { display: block; font: 500 12px/1.3 var(--mono); color: var(--muted); }
.slip-amount { display: grid; gap: 3px; margin-top: 14px; padding-right: 96px; }
.slip-amount .lbl { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.slip-amount .units { font: 500 28px/1.15 var(--mono); letter-spacing: -0.03em; color: var(--blue-text); font-variant-numeric: tabular-nums; }
.slip-amount .usd { font: 500 15px/1.2 var(--mono); color: var(--ink-2); }
.slip-amount .usd.words { font: 600 13px/1.4 var(--font); color: var(--muted); }
.leaders { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-2); display: grid; gap: 5px; }
.leaders li { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--ink-2); }
.leaders li::after { content: ''; order: 1; flex: 1; border-bottom: 1px dotted var(--line-2); transform: translateY(-4px); min-width: 16px; }
.leaders li > :last-child { order: 2; font-family: var(--mono); font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.leaders li.zero > :last-child { color: var(--blue-text); }
.slip-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.txlink { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--mono); color: var(--ink-2); background: none; border: 0; padding: 4px 0; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.txlink:hover { color: var(--blue-text); }
.stamp { position: absolute; right: 22px; top: 124px; font: 500 13px/1 var(--mono); letter-spacing: 0.18em; color: #1958FC; border: 2px solid currentColor; border-radius: 6px; padding: 6px 7px 5px 9px; transform: rotate(-9deg); opacity: 0.85; pointer-events: none; }
.motion .printing .stamp { animation: stamp 0.5s 0.75s both cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes stamp { from { opacity: 0; transform: rotate(-9deg) scale(1.8); } to { opacity: 0.85; transform: rotate(-9deg) scale(1); } }
.fine { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.av { flex: none; display: grid; place-items: center; border-radius: 28%; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av svg { width: 56%; height: 56%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.av.empty { background: var(--surface-3); color: var(--faint); box-shadow: inset 0 0 0 1px var(--line-2); }

/* the printer (the feed page) and the mini printer (home) */
.printer, .mini-printer { position: relative; display: flex; align-items: center; gap: 8px; border-radius: 12px 12px 6px 6px; background: linear-gradient(#20263A, #05060B); border: 1px solid var(--line-3); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.7); z-index: 2; }
.printer { height: 30px; margin: 0 -8px; padding: 0 14px 6px; }
.mini-printer { height: 24px; margin: 12px -6px 0; padding: 0 12px 4px; border-radius: 10px 10px 5px 5px; }
.printer::after, .mini-printer::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 3px; background: #000; }
.printer-led { width: 7px; height: 7px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 6px rgba(61, 214, 140, 0.7); }
.printer-name, .printer-state { font: 500 10px/1 var(--mono); letter-spacing: 0.14em; color: #7C86A3; }
.printer-state { margin-left: auto; }
.printer-state::before { content: 'READY'; }
.busy .printer-state::before { content: 'PRINTING'; color: #9DB7FF; }
.busy .printer-led { background: #6E95FF; box-shadow: 0 0 8px rgba(110, 149, 255, 0.9); }
.motion .busy .printer-led { animation: blink 0.3s steps(2) infinite; }
.feed { position: relative; margin-top: -6px; padding-top: 6px; overflow: hidden; }
.feed > li { display: grid; grid-template-rows: 1fr; }
.feed > li > .slip-wrap { min-height: 0; min-width: 0; padding-bottom: 14px; }
.motion .feed > li.printing { animation: feed-open 0.9s var(--ease); }
.motion .feed > li.printing > .slip-wrap { animation: feed-print 0.9s var(--ease); }
@keyframes feed-open { from { grid-template-rows: 0fr; } to { grid-template-rows: 1fr; } }
@keyframes feed-print { from { transform: translateY(-60%); } to { transform: none; } }
.feed-empty { padding: 40px 20px; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--r); }
.more { margin: 6px auto 0; display: flex; }
.feed-page { max-width: 640px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); font: 500 12.5px/1 var(--mono); color: var(--ink-2); }
.filters button[aria-pressed='true'] { background: var(--blue); color: #fff; border-color: var(--blue); }

/* receipt strips (home) */
.strips { margin-top: -5px; padding-top: 5px; overflow: hidden; }
.strip { display: grid; grid-template-rows: 1fr; }
.strip-wrap { min-height: 0; min-width: 0; padding-bottom: 6px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25)) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3)); }
.strip-in {
  position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 13px 12px 17px; background: var(--paper);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 10px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 10px 100%;
}
.strip-guil { position: absolute; left: 0; right: 0; top: 0; height: 5px; background: url(/img/guilloche-band.svg) center / auto 18px repeat-x; opacity: 0.55; }
.strip-who { min-width: 0; display: grid; gap: 2px; }
.strip-who b { font-size: 14.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-who span, .strip-amt span { font: 500 11.5px/1.2 var(--mono); color: var(--muted); white-space: nowrap; }
.strip-who span { overflow: hidden; text-overflow: ellipsis; }
.strip-amt { display: grid; gap: 2px; text-align: right; }
.strip-amt b { font: 500 14.5px/1.2 var(--mono); color: var(--blue-text); white-space: nowrap; }
.strip-in:hover .strip-who b { color: var(--blue-text); }
.motion .strip.printing { animation: feed-open 0.8s var(--ease); }
.motion .strip.printing > .strip-wrap { animation: feed-print 0.8s var(--ease); }

/* ---------- page heads ---------- */
.page-head { padding: 12px 0 22px; }
.page-head h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -0.03em; }
.page-head p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; max-width: 44em; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--ink-2); font-weight: 650; }

/* ---------- coins register ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.search { flex: 1 1 240px; height: 40px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-2); padding: 0 14px; font-size: 14px; }
.select { height: 40px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 12px; font-weight: 650; font-size: 13.5px; }
.register { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.reg-row { display: grid; grid-template-columns: minmax(0, 2.2fr) 0.9fr 1.3fr 0.8fr 0.8fr 1fr 1fr; gap: 14px; align-items: center; padding: 13px 18px; border-top: 1px solid var(--line); }
.reg-row:first-child { border-top: 0; }
a.reg-row:hover { background: var(--surface-2); }
.reg-head { font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); padding-top: 12px; padding-bottom: 12px; }
.reg-coin { display: flex; align-items: center; gap: 12px; min-width: 0; }
.reg-coin .who-txt { min-width: 0; }
.reg-coin .nm { font-weight: 750; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reg-coin .tk { display: flex; align-items: center; gap: 6px; font: 500 12px/1.3 var(--mono); color: var(--muted); margin-top: 2px; }
.num { font: 500 14px/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.num small { display: block; color: var(--muted); font: 500 12px/1.35 var(--font); }
.num .blue { color: var(--blue-text); }
.reg-row .k { display: none; }
.spark-wrap { display: block; margin-top: 5px; }
.spark { width: 60px; height: 16px; display: block; }
.spark rect { fill: rgba(127, 163, 255, 0.35); }
.spark rect:last-child { fill: var(--blue-text); }

/* ---------- the coin page ---------- */
.coin-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 8px 0 22px; }
.coin-head h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; }
.coin-head .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.coin-head .ca { margin-left: auto; text-align: right; }
.ca-box { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 5px 5px 5px 13px; font: 500 12.5px/1 var(--mono); color: var(--muted); }
.coin-grid { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 28px; align-items: start; }
.big-slip .slip { padding: 22px 26px calc(24px + var(--zig) / 2); overflow: hidden; }
.big-slip .slip > * { position: relative; }
.big-slip .slip > .stamp { position: absolute; top: 96px; right: 24px; }
.big-slip .slip::before { content: ''; position: absolute; width: 300px; height: 300px; right: -90px; top: 120px; background: url(/img/rosette.svg) center / contain no-repeat; opacity: 0.07; pointer-events: none; }
.big-slip .guil { margin: -22px -26px 0; height: 20px; }
.big-slip .total .lbl { font-size: 13px; font-weight: 650; color: var(--muted); }
.big-slip .total .units { display: flex; flex-wrap: wrap; font: 500 clamp(34px, 5vw, 46px)/1.05 var(--mono); letter-spacing: -0.04em; color: var(--blue-text); margin-top: 6px; }
.big-slip .total .in { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.payday { margin-top: 18px; padding: 14px 16px; border-radius: var(--r); background: var(--blue-wash); }
.payday-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 700; }
.payday-top .mono { font-size: 18px; color: var(--blue-text); }
.payday .meter { margin-top: 10px; background: #fff; height: 7px; }
.payday p { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.calc { margin-top: 18px; }
.calc label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.calc .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.calc input { width: 140px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); padding: 0 12px; font-family: var(--mono); background: #fff; color: var(--ink); }
.calc output { font: 500 15px/1.3 var(--mono); color: var(--ink); }
.calc p { font-size: 12px; color: var(--muted); margin-top: 8px; }
.calc .btn { background: var(--surface-2); border-color: var(--line-2); color: var(--ink); }
.calc p.nosetup { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--blue-wash); color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.calc p.nosetup b { color: var(--blue-text); }
.history { display: grid; }
.hist-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px dashed var(--line-2); }
.hist-row:first-child { border-top: 0; }
.hist-row .no { font: 500 12px/1.3 var(--mono); color: var(--muted); }
.hist-row .what { font-size: 13.5px; color: var(--ink-2); }
.hist-row .what b { font-family: var(--mono); font-weight: 500; color: var(--blue-text); }
.history:not(.all) > li:nth-child(n+7) { display: none; }
.hist-more { margin-top: 10px; }
.motion .hist-row.printing { animation: fade-in 0.7s var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(-6px); } }
.hist-chart { margin: 12px 0 4px; }
.hist-chart .bars rect.grow { transform-box: fill-box; transform-origin: 50% 100%; }
.motion .hist-chart .bars rect.grow { animation: grow 0.7s var(--ease); }
@keyframes grow { from { transform: scaleY(0); } }

/* ---------- launch ---------- */
.launch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.form-step { padding: 22px 24px; border-top: 1px solid var(--line); }
.form-step:first-child { border-top: 0; }
.form-step h2 { font-size: 16.5px; font-weight: 750; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.form-step h2 .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-wash); color: var(--blue-text); font: 500 12px/1 var(--mono); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label { font-size: 13px; font-weight: 700; }
.field .hint { font-size: 12px; color: var(--muted); }
.field input[type='text'], .field input[type='number'], .field textarea { display: block; width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); padding: 0 14px; background: var(--bg-2); color: var(--ink); font-size: 15px; }
.field textarea { height: 84px; padding: 10px 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .search:focus, .calc input:focus { outline: 2px solid var(--blue-text); outline-offset: -1px; border-color: transparent; }
.field .err { font-size: 12.5px; color: var(--bad); font-weight: 650; }
.field.bad input, .field.bad .drop { border-color: var(--bad); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ticker-wrap { position: relative; }
.ticker-wrap span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-family: var(--mono); }
.ticker-wrap input { padding-left: 28px !important; font-family: var(--mono); text-transform: uppercase; }
.drop { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; border: 1px dashed var(--line-3); background: var(--bg-2); cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--blue-text); background: var(--blue-wash); }
.sr:focus-visible + .drop { outline: 2px solid var(--blue-text); outline-offset: 2px; }
.drop .pic { width: 64px; height: 64px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--faint); }
.drop .pic img { width: 100%; height: 100%; object-fit: cover; }
.drop .pic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop b { display: block; font-size: 14px; }
.drop span { font-size: 12.5px; color: var(--muted); }
.stocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stock-opt { position: relative; }
.stock-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.stock-opt label { display: block; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; }
.stock-opt label b { display: block; font: 500 15px/1.2 var(--mono); }
.stock-opt label span { font-size: 12.5px; color: var(--muted); }
.stock-opt input:checked + label { border-color: var(--blue-text); background: var(--blue-wash); box-shadow: inset 0 0 0 1px var(--blue-text); }
.stock-opt input:focus-visible + label { outline: 2px solid var(--blue-text); outline-offset: 2px; }
.signs { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 13.5px; color: var(--ink-2); display: grid; gap: 8px; }
.signs li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.signs li::before { content: '→'; color: var(--blue-text); font-weight: 700; }
.signs b { color: var(--ink); }
.submit-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.submit-row p { font-size: 12.5px; color: var(--muted); flex: 1 1 200px; }
.preview { position: sticky; top: 84px; }
.preview-label { font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; }
.run { display: grid; gap: 10px; margin: 6px 0 4px; }
.run li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--ink-2); opacity: 0.45; transition: opacity 0.3s; }
.run li.on, .run li.done { opacity: 1; }
.run li .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-3); display: grid; place-items: center; margin-top: 1px; }
.run li.on .dot { border-color: var(--blue-text); border-top-color: transparent; }
.motion .run li.on .dot { animation: spin 0.8s linear infinite; }
.run li.done .dot { background: var(--blue); border-color: var(--blue); }
.run li.done .dot::after { content: ''; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.run li small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 200px minmax(0, 720px); gap: 44px; }
.toc { position: sticky; top: 88px; align-self: start; display: grid; gap: 2px; }
.toc a { font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 6px 10px; border-radius: 8px; }
.toc a:hover { background: var(--surface); color: var(--ink); }
.doc section { padding: 0 0 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.doc section:last-child { border-bottom: 0; }
.doc h2 { font-size: 23px; font-weight: 800; margin-bottom: 12px; scroll-margin-top: 90px; }
.doc p, .doc li { font-size: 15.5px; color: var(--ink-2); line-height: 1.65; }
.doc p + p { margin-top: 10px; }
.doc ul.dots { list-style: disc; padding-left: 20px; margin-top: 8px; display: grid; gap: 4px; }
.doc ol.nums { list-style: decimal; padding-left: 22px; margin-top: 8px; display: grid; gap: 6px; }
.doc b { color: var(--ink); }
.doc a { color: var(--blue-text); }
.doc-machine { margin: 6px 0 18px; }
.split { display: grid; gap: 8px; margin-top: 14px; }
.doc .split-bar i { background: var(--blue); }
.callout { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--warn-wash); color: var(--ink-2); font-size: 14px; line-height: 1.55; border: 1px solid var(--warn-line); }
.callout.blue { background: var(--blue-wash); border-color: var(--blue-line); }
.status { display: grid; gap: 8px; margin-top: 12px; }
.status li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; font-size: 14.5px; color: var(--ink-2); align-items: baseline; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 750; font-size: 15.5px; color: var(--ink); }
.faq details p { margin-top: 8px; }

/* ---------- modal, wallet, toast ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); display: grid; place-items: center; padding: 16px; z-index: 80; }
.modal { width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); padding: 20px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-head h2 { font-size: 18px; font-weight: 800; }
.x { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 18px; line-height: 1; }
.wallet-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); margin-bottom: 8px; text-align: left; font-weight: 700; }
.wallet-row:hover { border-color: var(--blue-text); }
.wallet-row img { width: 28px; height: 28px; border-radius: 8px; }
.wallet-row .tagline { margin-left: auto; font: 500 11.5px/1 var(--mono); color: var(--muted); }
.problem { color: var(--bad); font-size: 13px; font-weight: 650; margin-top: 8px; }
.wallet-box { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); width: 220px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7); padding: 6px; z-index: 50; }
.menu-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; font-size: 13px; }
.menu-item { width: 100%; display: block; text-align: left; padding: 9px 10px; border-radius: 8px; border: 0; background: none; font-weight: 650; font-size: 14px; }
.menu-item:hover { background: var(--surface-2); }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--surface-3); border: 1px solid var(--line-3); color: var(--ink); padding: 12px 16px; border-radius: 12px; font-size: 14px; z-index: 90; max-width: calc(100vw - 32px); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6); }
.motion .toast { animation: toast-in 0.3s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
.lost { max-width: 420px; margin: 40px auto 64px; text-align: center; }
.lost .slip { text-align: left; }
.lost h1 { font-size: 26px; font-weight: 800; margin: 26px 0 8px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .desk { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .desk-live { max-width: 620px; }
  .app-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .app-band > .band-feed { grid-column: 1 / -1; }
}
@media (max-width: 1040px) {
  .coin-grid, .launch-grid { grid-template-columns: minmax(0, 1fr); }
  .preview { position: static; order: -1; }
  .docs { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .toc a { background: var(--surface); border: 1px solid var(--line); }
  .reg-head { display: none !important; }
  .reg-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; padding: 16px; }
  .reg-row .reg-coin { grid-column: 1 / -1; }
  .reg-row .k { display: block; font: 600 11px/1.2 var(--font); color: var(--muted); margin-bottom: 3px; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip > div:nth-child(3) { border-left: 0; }
  .stat-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); height: 100dvh; transform: translateX(-102%); transition: transform 0.28s var(--ease); z-index: 70; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  body.drawer-open .sidebar { transform: none; box-shadow: 30px 0 60px rgba(0, 0, 0, 0.6); }
  .veil { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 60; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
  body.drawer-open .veil { opacity: 1; pointer-events: auto; }
  .top-brand { display: inline-flex; }
  .top-search { display: none; }
  .top-cta { display: none; }
  .top .menu-btn { display: inline-grid; }
  .motion-btn .lbl { display: none; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(62px + env(safe-area-inset-bottom, 0px)); padding: 0 max(4px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(4px, env(safe-area-inset-left, 0px)); background: rgba(9, 11, 18, 0.94); border-top: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .tabbar a { display: grid; place-items: center; align-content: center; gap: 3px; font-size: 11px; font-weight: 650; color: var(--muted); }
  .tabbar a .icon { width: 20px; height: 20px; }
  .tabbar a[aria-current] { color: var(--ink); }
  .tabbar a[aria-current] .icon { color: var(--blue-text); }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  main { padding-top: 16px; }
  .risk-strip { justify-content: flex-start; font-size: 11.5px; }
  .risk-strip .wide { display: none; }
  .top { gap: 8px; height: 58px; }
  .desk { padding: 22px 18px 20px; border-radius: 18px; gap: 20px; }
  .desk h1 { font-size: 31px; margin-top: 12px; }
  .desk .lede { font-size: 15px; }
  .desk .ctas .btn { flex: 1 1 140px; }
  .sign-box li { font-size: 13px; }
  .board { --fw: 13px; --fh: 20px; gap: 8px; padding: 8px 9px 9px; }
  .board-field:nth-child(4) { display: none; }
  .board-k { font-size: 8.5px; }
  .board-v { gap: 1.5px; }
  .m-k { font-size: 12px; }
  .m-v { font-size: 13px; }
  .stat-strip dd { font-size: 21px; }
  .stat-strip .sub { white-space: normal; }
  .stat-strip > div { padding: 14px 14px 16px; }
  .app-band { grid-template-columns: minmax(0, 1fr); }
  .strip-in { gap: 8px; padding-inline: 10px; }
  .strip-amt b { font-size: 13.5px; }
  .slip { padding: 14px 16px calc(14px + var(--zig) / 2); }
  .guil { margin: -14px -16px 0; }
  .slip-amount { padding-right: 80px; }
  .slip-amount .units { font-size: 24px; }
  .stamp { top: 118px; right: 16px; font-size: 12px; }
  .printer { margin: 0 -4px; }
  .two { grid-template-columns: 1fr; }
  .form-step { padding: 18px 16px; }
  .coin-head .ca { margin-left: 0; text-align: left; width: 100%; }
  .hist-row { grid-template-columns: 74px minmax(0, 1fr); }
  .hist-row .txlink { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.motion) *, html:not(.motion) *::before, html:not(.motion) *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
