/* Archivo by Omnibus-Type, SIL Open Font License (static/fonts/ARCHIVO-OFL.txt). One variable file: widths 62-125%, weights 100-900. */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("/static/v/09d095df43/fonts/archivo.woff2") format("woff2-variations"), url("/static/v/09d095df43/fonts/archivo.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* YonniPad: Axiom-style terminal. Near-black, hairline borders, blue primary, teal buys, pink sells. */
:root {
  /* defaults = the "Night" look; theme.js sets these from each person's choice (Settings) */
  --ink: #000000;
  --panel: #0a0b0d;
  --panel-2: #121418;
  --panel-3: #1a1d22;
  --line: #1c1f25;
  --line-2: #2a2e36;
  --text: #f2f4f7;
  --muted: #8b909a;
  --faint: #5a5f69;
  --accent: #7aa2f7;        /* highlights: the page you're on, links, progress */
  --gold: #7aa2f7;          /* old name for the accent, kept so every page follows */
  --gold-ink: #06070a;
  --btn: #f2f4f7;           /* main buttons */
  --btn-ink: #06070a;
  --buy: #2ebd85;           /* up / buy */
  --sell: #f6465d;          /* down / sell */
  --buy-ink: #06070a;
  --sell-ink: #ffffff;
  --c-up: #2ebd85;          /* candles */
  --c-down: #f6465d;
  --warn: #f0b90b;
  --r-chip: calc(5px * var(--rs, 1));
  --r-ctl: calc(8px * var(--rs, 1));
  --r-panel: calc(12px * var(--rs, 1));
  --r-sheet: calc(18px * var(--rs, 1));
  --wide: 118%;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--text); }
body { font: calc(14px * var(--fs, 1))/1.45 var(--font); letter-spacing: -0.005em; font-variant-numeric: tabular-nums; min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:not(.btn):not([data-link]):hover { color: var(--gold); }
img { display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h1 { font-size: calc(26px * var(--fs, 1)); font-weight: 700; }
h2 { font-size: calc(16px * var(--fs, 1)); font-weight: 600; }
p { margin: 0 0 10px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: calc(13px * var(--fs, 1)); }
.up { color: var(--buy); }
.down { color: var(--sell); }
[hidden] { display: none !important; }
main { flex: 1; width: 100%; max-width: 1360px; margin: 0 auto; padding: calc(18px * var(--dn, 1)) 16px 48px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px; padding: 10px 20px;
  background: rgba(0,0,0,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 7px; color: var(--text); font-weight: 700; font-size: calc(20px * var(--fs, 1)); text-decoration: none; letter-spacing: -0.02em; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { text-decoration: none; color: var(--muted); padding: 7px 11px; border-radius: var(--r-ctl); font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); }
.acct { display: flex; align-items: center; gap: 8px; }
.bal { display: flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: var(--r-ctl); background: var(--panel); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.me { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--gold); }
.sol-ico { display: inline-block; vertical-align: -2px; border-radius: 50%; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: var(--r-ctl);
  padding: 9px 15px; background: var(--gold); color: var(--gold-ink); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(var(--hover, 1.07)); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }
.btn.ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.btn.block { width: 100%; }
.btn.lg { padding: 13px 16px; font-size: calc(16px * var(--fs, 1)); }
.btn.sm { padding: 5px 9px; font-size: calc(13px * var(--fs, 1)); }
.btn.sell { background: var(--act-sell, var(--sell)); color: var(--act-sell-ink, var(--sell-ink)); }
.link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.link:hover { color: var(--text); }
input, select, textarea { width: 100%; background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 10px 11px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
select { width: auto; padding: 4px 8px; }
.fld { display: block; margin: 0 0 12px; }
.fld > span { display: block; font-size: calc(13px * var(--fs, 1)); color: var(--muted); margin-bottom: 5px; }
.fld > span em { font-style: normal; color: var(--faint); }
.inp-suffix { position: relative; }
.inp-suffix input { padding-right: 58px; }
.inp-suffix em { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: calc(13px * var(--fs, 1)); pointer-events: none; }
.upper { text-transform: uppercase; }
.quick { display: flex; gap: 6px; margin: -4px 0 12px; flex-wrap: wrap; }
.quick button { flex: 1; min-width: 44px; padding: 6px 4px; border-radius: calc(6px * var(--rs, 1)); border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; font-size: calc(13px * var(--fs, 1)); }
.quick button:hover { border-color: var(--muted); }
.seg { display: inline-flex; background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 2px; }
.seg button { flex-shrink: 0; border: 0; background: none; padding: 5px 10px; border-radius: calc(6px * var(--rs, 1)); color: var(--muted); cursor: pointer; font-size: calc(13px * var(--fs, 1)); }
.seg button.on { background: var(--panel-2); color: var(--text); }
.seg.wide { display: flex; margin-bottom: 12px; }
.seg.wide button { flex: 1; }
.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--line); background: none; color: var(--muted); padding: 3px 9px; border-radius: calc(999px * var(--rs, 1)); font-size: calc(12px * var(--fs, 1)); cursor: pointer; }
.chips button.on { color: var(--ink); background: var(--text); border-color: var(--text); }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: calc(14px * var(--fs, 1)); color: var(--muted); margin: calc(7px * var(--dn, 1)) 0; }
.kv b { color: var(--text); font-weight: 600; text-align: right; }
.kv.total { border-top: 1px solid var(--line); padding-top: 9px; margin-top: 10px; }
.tag { display: inline-block; font-size: calc(11px * var(--fs, 1)); font-weight: 600; padding: 2px 7px; border-radius: calc(5px * var(--rs, 1)); background: var(--panel-2); color: var(--muted); }
.tag.kol { background: rgba(242, 184, 75, 0.14); color: var(--gold); }
.tag.fomo { background: color-mix(in srgb, var(--buy) 16%, transparent); color: #b9f5cf; }
.tag.pumpfun { background: rgba(63, 215, 165, 0.14); color: var(--buy); }
.tag.curve { background: rgba(242, 184, 75, 0.14); color: var(--gold); }
.empty { color: var(--muted); padding: 28px 16px; text-align: center; }
.empty .btn { margin-top: 8px; }
.empty.big { padding: 80px 16px; }
.empty.big h1 { color: var(--text); margin-bottom: 10px; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: -2px; opacity: 0.8; }
@keyframes spin { to { transform: rotate(360deg); } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: calc(16px * var(--dn, 1)); }
.panel + .panel { margin-top: 12px; }
.launch > .panel, .coin-side > .panel:first-child { margin-top: 0; }
.panel > h2 { margin-bottom: 8px; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: calc(12px * var(--dn, 1)); flex-wrap: wrap; }
span.avatar { display: inline-grid; place-items: center; font-weight: 700; color: hsl(var(--h) 75% 74%); background: hsl(var(--h) 28% 17%);
  box-shadow: inset 0 0 0 1px hsl(var(--h) 40% 30% / .6); }
.prog { display: block; height: 4px; background: var(--ink); border-radius: calc(9px * var(--rs, 1)); overflow: hidden; margin-top: 5px; }
.prog i { display: block; height: 100%; background: var(--gold); border-radius: calc(9px * var(--rs, 1)); }
.prog.big { height: 10px; }
.note { background: rgba(242, 184, 75, 0.08); border: 1px solid rgba(242, 184, 75, 0.25); color: var(--text); border-radius: var(--r-ctl); padding: 10px 12px; }

/* board */
.board-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; flex-wrap: wrap; }
.board-head h1 { font-size: calc(22px * var(--fs, 1)); flex: 1 1 320px; }
.search { flex: 1 1 340px; }
.mtabs { display: none; }
.cols { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 12px; align-items: start; }
.col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); min-width: 0; }
.col > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list { max-height: calc(100vh - 230px); overflow: auto; }
.crow { display: flex; gap: 11px; align-items: center; padding: 10px 14px; border-bottom: 1px solid rgba(30, 36, 30, 0.6); text-decoration: none; }
.crow:hover { background: var(--panel-2); }
.ci { width: 44px; height: 44px; border-radius: calc(9px * var(--rs, 1)); object-fit: cover; flex-shrink: 0; background: var(--panel-2); font-size: calc(18px * var(--fs, 1)); }
.crow-main { flex: 1; min-width: 0; }
.crow-top { display: flex; gap: 7px; align-items: baseline; }
.crow-top .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(13px * var(--fs, 1)); }
.crow-sub { display: flex; gap: 10px; font-size: calc(13px * var(--fs, 1)); margin-top: 2px; }
.crow-sub b { font-weight: 600; }
.crow-age { font-size: calc(12px * var(--fs, 1)); color: var(--faint); align-self: flex-start; }
.trk { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 8px; align-items: center; padding: 9px 14px; border-bottom: 1px solid rgba(30, 36, 30, 0.6); text-decoration: none; font-size: calc(13px * var(--fs, 1)); }
.trk:hover { background: var(--panel-2); }
.trk-who { display: flex; gap: 6px; align-items: center; min-width: 0; }
.trk-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trk.buy .trk-act { color: var(--buy); }
.trk.sell .trk-act { color: var(--sell); }
.trk-act { display: flex; gap: 4px; align-items: center; }
.trk-tok { display: flex; gap: 6px; align-items: center; min-width: 0; }
.trk-tok span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ti { width: 22px; height: 22px; border-radius: calc(6px * var(--rs, 1)); object-fit: cover; flex-shrink: 0; font-size: calc(11px * var(--fs, 1)); }
.trk-meta { display: flex; gap: 6px; color: var(--faint); font-size: calc(12px * var(--fs, 1)); justify-content: flex-end; }

/* coin */
.coin { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.coin-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.ch-img { width: 56px; height: 56px; border-radius: calc(12px * var(--rs, 1)); object-fit: cover; font-size: calc(24px * var(--fs, 1)); }
.ch-txt h1 { font-size: calc(24px * var(--fs, 1)); }
.ch-txt h1 .muted { font-weight: 500; font-size: calc(17px * var(--fs, 1)); }
.ch-sub { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; font-size: calc(13px * var(--fs, 1)); }
.mint { background: var(--panel-2); border: 1px solid var(--line); border-radius: calc(6px * var(--rs, 1)); padding: 2px 8px; cursor: pointer; color: var(--muted); font-size: calc(13px * var(--fs, 1)); }
.mint:hover { color: var(--text); }
.ext { color: var(--muted); text-decoration: none; }
.stats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); margin-bottom: 12px; }
.stats div { padding: 10px 12px; border-right: 1px solid var(--line); min-width: 0; }
.stats div:last-child { border-right: 0; }
.stats span { display: block; font-size: calc(12px * var(--fs, 1)); color: var(--muted); }
.stats b { font-weight: 600; white-space: nowrap; }
.curvebar { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 12px 14px; margin-bottom: 12px; }
.curvebar .kv { margin-top: 0; }
.curvebar p { margin: 8px 0 0; }
.chartbox { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; margin-bottom: 12px; }
.chart-bar { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chart-area { position: relative; height: 440px; }
.chart-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); padding: 20px; }
.desc { white-space: pre-wrap; color: var(--muted); margin: 0; }
.coin-side { position: sticky; top: 70px; }
.bs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.bs button { padding: 9px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--ink); color: var(--muted); font-weight: 600; cursor: pointer; }
.bs #s-buy.on { background: var(--act-buy); color: var(--act-buy-ink); border-color: var(--act-buy); }
.bs #s-sell.on { background: var(--act-sell); color: var(--act-sell-ink); border-color: var(--act-sell); }
.trade .btn:not(.sell) { background: var(--buy); color: var(--buy-ink); }
.olist { list-style: none; padding: 0; margin: 10px 0 0; font-size: calc(13px * var(--fs, 1)); }
.olist li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); align-items: center; }
.olist li.cancelled, .olist li.failed { opacity: 0.55; }

/* launch */
.launch { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; max-width: 1040px; margin: 0 auto; align-items: start; }
.launch h1 { margin-bottom: 6px; }
.lf-grid { display: grid; grid-template-columns: 150px 1fr; gap: 14px; margin: 14px 0 4px; }
.drop { width: 150px; height: 150px; border: 1px dashed var(--muted); border-radius: var(--r-panel); background: var(--ink); color: var(--muted); display: grid; place-content: center; text-align: center; cursor: pointer; overflow: hidden; padding: 8px; }
.drop small { display: block; font-size: calc(11px * var(--fs, 1)); color: var(--faint); margin-top: 4px; }
.drop img { width: 150px; height: 150px; object-fit: cover; margin: -8px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.devbuy { margin-top: 6px; padding: 14px; border-radius: var(--r-panel); background: var(--ink); border: 1px solid var(--line); }
.devbuy .fld > span { color: var(--text); font-weight: 600; font-size: calc(15px * var(--fs, 1)); }
.devbuy p { margin: 0; }
.cost { position: sticky; top: 70px; }
.cost h2 { margin-bottom: 8px; }
.cost .btn { margin-top: 12px; }
.steps { list-style: none; padding: 0; margin: 14px 0 0; font-size: calc(13px * var(--fs, 1)); counter-reset: s; }
.steps li { color: var(--faint); padding: 3px 0 3px 24px; position: relative; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 1px solid currentColor; font-size: calc(10px * var(--fs, 1)); display: grid; place-items: center; }
.steps li.done { color: var(--buy); }
.steps li.now { color: var(--gold); }
.steps li.fail { color: var(--sell); }

/* portfolio + admin */
.pf { max-width: 980px; margin: 0 auto; }
.pf-top { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.pf-bal { display: flex; align-items: center; gap: 10px; font-size: calc(34px * var(--fs, 1)); font-weight: 700; margin: 2px 0; }
.pf-sum { display: flex; gap: 28px; }
.pf-sum span { display: block; font-size: calc(13px * var(--fs, 1)); }
.pf-sum b { font-size: calc(18px * var(--fs, 1)); }
.pf-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) { .pf-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .pf-actions > * { text-align: center; justify-content: center; } }
.pf-wd { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; display: grid; grid-template-columns: 2fr 1fr auto; gap: 10px; align-items: end; }
.pf-wd p { grid-column: 1 / -1; margin: 0; }
.pf-wd .fld { margin: 0; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.tbl { width: 100%; border-collapse: collapse; font-size: calc(14px * var(--fs, 1)); }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: calc(12px * var(--fs, 1)); padding: calc(6px * var(--dn, 1)) 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: calc(9px * var(--dn, 1)) 8px; border-bottom: 1px solid rgba(30, 36, 30, 0.6); }
.tcoin { display: flex; align-items: center; gap: 8px; text-decoration: none; }
td.tact { text-align: right; white-space: nowrap; }
td.tact > * + * { margin-left: 6px; }
.pf-acct { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.pf-acct p { flex-basis: 100%; margin: 0; }
.tw-add { display: grid; grid-template-columns: 2fr 1fr auto auto; gap: 8px; margin-bottom: 12px; }

/* docs */
.doc { max-width: 680px; margin: 0 auto; }
.doc h1 { font-size: calc(34px * var(--fs, 1)); margin: 10px 0 8px; }
.doc h2 { font-size: calc(19px * var(--fs, 1)); margin: 28px 0 8px; }
.doc p { line-height: 1.6; }
.lead { color: var(--muted); font-size: calc(17px * var(--fs, 1)); }
.fee-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 6px; }
.fee-pair div { border-left: 3px solid var(--gold); padding: 4px 0 4px 14px; }
.fee-pair b { display: block; font-size: calc(38px * var(--fs, 1)); line-height: 1.1; color: var(--gold); }
.fee-pair span { color: var(--muted); }
.doc .tbl { margin: 12px 0; }

/* modal, toast, footer */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(5, 8, 16, 0.7); display: grid; place-items: center; padding: 16px; }
.modal-box { position: relative; width: 100%; max-width: 390px; background: var(--panel); border: 1px solid var(--line); border-radius: calc(16px * var(--rs, 1)); padding: 22px; }
.modal.wide .modal-box { max-width: 720px; }
.modal-box h2 { font-size: calc(20px * var(--fs, 1)); margin-bottom: 8px; }
.modal-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; color: var(--muted); font-size: calc(24px * var(--fs, 1)); cursor: pointer; line-height: 1; padding: 4px 8px; }
.modal .code { text-align: center; font-size: calc(26px * var(--fs, 1)); letter-spacing: 0.4em; }
.modal .small a { margin-right: 14px; }
.modal .sep { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
.qr { width: 232px; margin: 12px auto; background: #fff; border-radius: calc(12px * var(--rs, 1)); padding: 8px; display: grid; place-items: center; min-height: 60px; color: var(--ink); }
.addr { font-size: calc(13px * var(--fs, 1)); word-break: break-all; background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 9px; margin-bottom: 10px; text-align: center; }
.pnl-wrap { margin: 10px 0 14px; min-height: 100px; display: grid; place-items: center; }
.pnl-canvas { width: 100%; height: auto; border-radius: calc(10px * var(--rs, 1)); border: 1px solid var(--line); }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; max-width: min(400px, calc(100vw - 32px)); }
.toast { background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--buy); padding: 11px 14px; border-radius: var(--r-ctl); font-size: calc(14px * var(--fs, 1)); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.toast.err { border-left-color: var(--sell); }
.toast a { color: var(--gold); }
.foot { display: flex; justify-content: space-between; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: calc(13px * var(--fs, 1)); }
.foot a { color: var(--muted); }

/* responsive */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats div:nth-child(4) { border-right: 0; }
  .stats div:nth-child(n+5) { border-top: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .mtabs { display: flex; gap: 6px; margin-bottom: 10px; }
  .mtabs button { flex: 1; padding: 9px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-weight: 600; }
  .mtabs button.on { color: var(--text); background: var(--panel-2); }
  .cols { grid-template-columns: 1fr; }
  .col { display: none; }
  .col.show { display: block; }
  .list { max-height: none; }
  .coin, .launch { grid-template-columns: minmax(0, 1fr); }
  .coin > *, .launch > * { min-width: 0; }
  .coin-side, .cost { position: static; }
  .chart-area { height: 340px; }
  .pf-top { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .top { gap: 10px; padding: 9px 12px; flex-wrap: wrap; }
  .bal span { display: none; }
  .three, .lf-grid, .tw-add, .pf-wd { grid-template-columns: 1fr; }
  .trk { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who meta" "act tok"; row-gap: 4px; }
  .trk-who { grid-area: who; } .trk-meta { grid-area: meta; } .trk-act { grid-area: act; } .trk-tok { grid-area: tok; justify-content: flex-end; }
  .trk-meta .muted { display: none; }
  /* phone: price | market cap, liquidity | volume, then the three changes in one row (no orphan cell) */
  .stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .stats div { grid-column: span 3; border-right: 1px solid var(--line); }
  .stats div:nth-child(n+5) { grid-column: span 2; }
  .stats div:nth-child(2), .stats div:nth-child(4), .stats div:nth-child(7) { border-right: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats div:nth-child(n+5) { padding-top: 7px; padding-bottom: 7px; }
  .stats b { font-size: calc(14px * var(--fs, 1)); overflow: hidden; text-overflow: ellipsis; display: block; }
  .tbl th:nth-child(3), .tbl td:nth-child(3), .tbl th:nth-child(4), .tbl td:nth-child(4) { display: none; }
  .fee-pair { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2s; } }
.orders .btn.block + p { margin-top: 10px; }

/* coin tabs: trades, holders, bubble map */
.tabs { padding: 0; }
.tabbar { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabbar { scrollbar-width: none; }
.tabbar::-webkit-scrollbar { display: none; }
.tabbar button { flex: none; border: 0; background: none; color: var(--muted); padding: 7px 12px; border-radius: calc(6px * var(--rs, 1)); cursor: pointer; font-weight: 600; white-space: nowrap; }
.tabbar button.on { background: var(--panel-2); color: var(--text); }
.tabs [data-pane] { padding: 6px 12px 12px; max-height: 520px; overflow: auto; }
.tabs [data-pane="tracked"] .chips { padding: 8px 2px; }
.tbl.trades td { padding: 6px 8px; font-size: calc(13px * var(--fs, 1)); }
.tbl a { text-decoration: none; }
.you { color: var(--gold); }
.hsum { padding: 8px 2px 10px; color: var(--muted); font-size: calc(14px * var(--fs, 1)); }
.hsum b { color: var(--text); }
.hsum b.down { color: var(--sell); }
.hbar { position: relative; min-width: 120px; height: 20px; background: var(--ink); border-radius: calc(5px * var(--rs, 1)); overflow: hidden; }
.hbar i { position: absolute; inset: 0 auto 0 0; background: rgba(242, 184, 75, 0.28); }
.hbar span { position: relative; padding-left: 7px; font-size: calc(13px * var(--fs, 1)); line-height: 20px; }
.tag.pool { background: rgba(242, 184, 75, 0.14); color: var(--gold); }
.tag.creator { background: rgba(255, 122, 107, 0.14); color: var(--sell); }
.tag.tracked { background: color-mix(in srgb, var(--buy) 16%, transparent); color: #b9f5cf; }
.bubbles svg { width: 100%; max-height: 440px; display: block; margin: 8px auto; }
.bubbles circle { stroke: var(--ink); stroke-width: 1.5; transition: fill-opacity 0.15s; }
.bubbles a:hover circle { fill-opacity: 1; }
.bubbles text { font: 600 calc(11px * var(--fs, 1)) var(--font); fill: #10162a; pointer-events: none; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: calc(13px * var(--fs, 1)); color: var(--muted); align-items: center; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.legend a { margin-left: auto; color: var(--gold); }
@media (max-width: 600px) { .tbl.trades th:nth-child(4), .tbl.trades td:nth-child(4) { display: none; } }

/* token info, bubble groups */
.info .kv { margin: 6px 0; }
.info .kv[title] b { text-decoration: underline dotted var(--faint); text-underline-offset: 3px; cursor: help; }
.stats div[title] b { text-decoration: underline dotted var(--faint); text-underline-offset: 3px; cursor: help; }
.warn { color: var(--gold); }
.pumpbar { margin-bottom: 10px; }
.risks { list-style: none; padding: 0; margin: 10px 0 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.risks li { font-size: calc(12px * var(--fs, 1)); padding: 3px 8px; border-radius: calc(5px * var(--rs, 1)); background: var(--panel-2); color: var(--muted); cursor: help; }
.risks li.danger { background: rgba(255, 122, 107, 0.14); color: var(--sell); }
.risks li.warn { background: rgba(242, 184, 75, 0.14); color: var(--gold); }
.srcs { margin: 10px 0 0; }
.bsum { margin: 6px 2px 4px; color: var(--muted); }
.bsum b { color: var(--text); }
.bsum b.down { color: var(--sell); }
.bubbles line { stroke: rgba(233, 236, 246, 0.35); stroke-width: 1.5; }
.groups { list-style: none; padding: 0; margin: 10px 0 0; font-size: calc(13px * var(--fs, 1)); color: var(--muted); }
.groups li { margin: 3px 0; }
.groups i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.bm-frame { width: 100%; height: 520px; border: 0; border-radius: calc(8px * var(--rs, 1)); background: var(--ink); }
.seg.small button { padding: 4px 8px; font-size: calc(12px * var(--fs, 1)); }


/* ---------------------------------------------------------------- Axiom-style terminal */
.logo svg { color: var(--accent); }
main { max-width: 1680px; }
.top { gap: 18px; background: rgba(11, 12, 15, 0.95); }
.hsearch { position: relative; display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: calc(999px * var(--rs, 1)); padding: 0 14px; width: 300px; }
.hsearch svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.6; flex-shrink: 0; }
.hsearch input { border: 0; background: none; padding: 8px 0; }
.hs-drop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--panel-2); border: 1px solid var(--line); border-radius: calc(10px * var(--rs, 1)); overflow: hidden; z-index: 40; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.hs-item { display: grid; grid-template-columns: 22px auto 1fr auto; gap: 8px; align-items: center; padding: 8px 12px; text-decoration: none; font-size: calc(14px * var(--fs, 1)); }
.hs-item:hover { background: var(--panel); }
.hs-item .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ico { display: inline-flex; width: 14px; height: 14px; vertical-align: -2px; }
.ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.page-h { display: flex; align-items: center; gap: 14px; margin: 4px 0 calc(14px * var(--dn, 1)); flex-wrap: wrap; }
.page-h h1 { font-size: calc(22px * var(--fs, 1)); flex: 1; }
.qb-set { display: inline-flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: calc(999px * var(--rs, 1)); padding: 4px 12px; color: var(--accent); }
.qb-set input { width: 52px; border: 0; background: none; padding: 4px 0; text-align: right; color: var(--text); font-weight: 600; }
.qb-set em { font-style: normal; color: var(--muted); font-size: calc(13px * var(--fs, 1)); }
.fbtn { position: relative; display: inline-grid; place-items: center; width: 32px; height: 30px; border-radius: calc(8px * var(--rs, 1)); border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; color: var(--muted); }
.fbtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.fbtn:hover { color: var(--text); }
.fcount { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; border-radius: calc(8px * var(--rs, 1)); background: var(--accent); color: var(--gold-ink); font-size: calc(10px * var(--fs, 1)); font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.fcount:empty { display: none; }

/* pulse */
.pulse .pulse-tabs { display: none; margin-bottom: 10px; }
.pcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; background: var(--panel); }
.pcol { min-width: 0; border-right: 1px solid var(--line); }
.pcol:last-child { border-right: 0; }
.pcol > header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.pcol > header h2 { flex: 1; font-size: calc(16px * var(--fs, 1)); }
.plist { height: calc(100vh - 210px); height: calc(100dvh - 210px); overflow-y: auto; scrollbar-width: thin; }
.pc { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 10px; padding: calc(10px * var(--dn, 1)) 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pc:hover { background: var(--panel-2); }
.pc-img { position: relative; text-align: center; }
.pimg { width: 74px; height: 74px; border-radius: calc(8px * var(--rs, 1)); object-fit: cover; border: 1px solid var(--line); font-size: calc(26px * var(--fs, 1)); }
.proto-dot { position: absolute; top: 58px; right: -4px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--panel); background: var(--faint); }
.proto-dot.pump { background: #3ddc84; } .proto-dot.bonk { background: #f5a524; } .proto-dot.bags { background: #8fd14f; }
.proto-dot.meteora { background: #ff6a3d; } .proto-dot.yonnipad { background: var(--accent); } .proto-dot.raydium { background: #8b7bff; }
.pc-mint { display: block; font-size: calc(11px * var(--fs, 1)); color: var(--faint); margin-top: 5px; white-space: nowrap; }
.pc-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pc-l1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pc-l1 b { font-size: calc(16px * var(--fs, 1)); white-space: nowrap; }
.pc-l1 .nm { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* a long ticker or name is cut with "…" (the name first) so the copy / hide buttons always stay on the card */
.pc-l1 b { min-width: 0; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.pc-l1 .nm { min-width: 0; flex: 0 10 auto; }
.pc-l1 > button, .pc-l1 > .ib { flex-shrink: 0; }
.ib { border: 0; background: none; padding: 0; color: var(--faint); cursor: pointer; display: inline-flex; }
.ib:hover { color: var(--text); }
.pc-l2 { display: flex; align-items: center; gap: 9px; font-size: calc(13px * var(--fs, 1)); color: var(--muted); flex-wrap: wrap; }
.age { color: var(--buy); font-weight: 600; }
.soc { font-size: calc(11px * var(--fs, 1)); font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: calc(5px * var(--rs, 1)); padding: 0 5px; text-decoration: none; }
.soc:hover { color: var(--text); border-color: var(--muted); }
.st { display: inline-flex; align-items: center; gap: 4px; color: var(--text); }
.st .ico { color: var(--muted); }
.pc-l3 { display: flex; gap: 5px; flex-wrap: wrap; }
.chip { font-size: calc(11.5px * var(--fs, 1)); font-weight: 600; padding: 2px 7px; border-radius: calc(999px * var(--rs, 1)); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.good { color: var(--buy); border-color: rgba(47, 210, 141, 0.3); }
.chip.bad { color: var(--sell); border-color: rgba(242, 70, 110, 0.3); }
.chip.curve { color: #b9f5cf; border-color: color-mix(in srgb, var(--buy) 35%, transparent); }
.pc-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.pc-nums { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: calc(14px * var(--fs, 1)); white-space: nowrap; }
.pc-nums em { font-style: normal; color: var(--faint); font-size: calc(12px * var(--fs, 1)); margin-right: 4px; }
.pc-nums b { color: var(--text); }
.bc { width: 80px; height: 4px; background: var(--ink); border-radius: calc(4px * var(--rs, 1)); overflow: hidden; }
.bc i { display: block; height: 100%; background: var(--accent); }
.qb { display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: calc(999px * var(--rs, 1)); background: var(--accent); color: var(--gold-ink); font-weight: 700; font-size: calc(13px * var(--fs, 1)); padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.qb:hover { filter: brightness(calc(var(--hover, 1.07) + .03)); }
.qb.busy { opacity: 0.6; }
.qb .ico svg { fill: currentColor; stroke: none; }

/* discover */
.dtabs { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.dtabs button { border: 0; background: none; color: var(--muted); font-size: calc(18px * var(--fs, 1)); font-weight: 600; padding: 4px 10px; cursor: pointer; border-radius: calc(8px * var(--rs, 1)); }
.dtabs button.on { color: var(--text); }
.dtools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.panel.tight { padding: 0; overflow: hidden; }
.dtbl th { padding: 10px 12px; }
.dtbl td { padding: 10px 12px; vertical-align: middle; }
.tr-row { cursor: pointer; }
.tr-row:hover td { background: var(--panel-2); }
.tp { display: flex; gap: 10px; align-items: center; min-width: 0; }
.timg { width: 52px; height: 52px; border-radius: calc(8px * var(--rs, 1)); object-fit: cover; flex-shrink: 0; font-size: calc(20px * var(--fs, 1)); border: 1px solid var(--line); }
.tr-pair { max-width: 360px; }
.show-m { display: none !important; }
.qb i.u { font-style: normal; }
.tr-pair .pc-l2 { margin-top: 4px; }
.ti-chips { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.tr-act { text-align: right; }

/* tracker page */
.track-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; align-items: start; }
.track .list { max-height: calc(100vh - 200px); }

/* filter sheet */
.modal.sheet .modal-box { max-width: 520px; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column; }
.f-kw { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f-tabs { margin: 4px -4px 8px; border-bottom: 0; padding: 0; }
.f-body { overflow-y: auto; min-height: 220px; padding: 4px 0; }
.f-range { display: grid; grid-template-columns: 1fr 100px 100px; gap: 8px; align-items: center; margin-bottom: 10px; font-size: calc(14px * var(--fs, 1)); color: var(--muted); }
.chips.big button { font-size: calc(14px * var(--fs, 1)); padding: 7px 14px; }
.chips button.proto.on, .chips.big button.on { background: var(--accent); border-color: var(--accent); color: var(--gold-ink); }
.f-foot { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
.f-foot .btn { flex: 1; }

/* phones: Axiom-like bottom bar, one Pulse column at a time */
.bnav { display: none; }
@media (max-width: 900px) {
  .pulse .pulse-tabs { display: flex; }
  .pcols { grid-template-columns: 1fr; }
  .pcol { display: none; border-right: 0; }
  .pcol.show { display: block; }
  .plist { height: auto; max-height: none; }
  .track-grid { grid-template-columns: 1fr; }
  .hsearch { width: auto; flex: 1; }
  .nav { display: none; }
  .foot { display: none; }
  main { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(11, 12, 15, 0.97); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); backdrop-filter: blur(10px); }
  .bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: calc(11px * var(--fs, 1)); color: var(--muted); text-decoration: none; padding: 4px 0; }
  .bnav a[aria-current="page"] { color: var(--text); }
  .bnav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
  .hide-m { display: none; }
  .show-m { display: flex !important; }
  #toasts { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  .top { flex-wrap: nowrap; padding: 8px 10px; gap: 8px; }
  .logo span { display: none; }
  .hsearch input::placeholder { font-size: calc(13px * var(--fs, 1)); }
  .acct .btn#dep-btn { display: none; }
  .pc { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 9px; padding: calc(9px * var(--dn, 1)) 10px; }
  .pimg { width: 56px; height: 56px; font-size: calc(22px * var(--fs, 1)); }
  .proto-dot { top: 41px; width: 16px; height: 16px; }
  .pc-mint { display: none; }
  .pc-l1 b { font-size: calc(15px * var(--fs, 1)); }
  .pc-side { gap: 6px; }
  .pc-nums { font-size: calc(13px * var(--fs, 1)); }
  .dtabs button { font-size: calc(16px * var(--fs, 1)); padding: 4px 6px; }
  .tr-pair { max-width: none; }
  .tr-pair .nm { display: none; }
  .tr-act .qb { padding: 6px 10px; }
  .tr-act .qb i.u { display: none; }
  .dtbl th:first-child, .dtbl td:first-child { padding-left: 10px; }
  .dtbl td:last-child { padding-right: 10px; }
  .timg { width: 42px; height: 42px; }
  .dtbl td { padding: 9px 8px; }
  .f-kw { grid-template-columns: 1fr; }
  .f-range { grid-template-columns: 1fr 80px 80px; }
  .modal.sheet { align-items: end; padding: 0; }
  .modal.sheet .modal-box { max-width: none; border-radius: calc(16px * var(--rs, 1)) calc(16px * var(--rs, 1)) 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* live market cap ticks on Pulse cards and Discover rows */
/* a colour hold set and cleared from JS (ui.js flash): no per-frame animation */
.flash-up { color: var(--buy) !important; }
.flash-down { color: var(--sell) !important; }

/* login page: shown alone (logo only in the header) until you're logged in */
body.gated .nav, body.gated .hsearch, body.gated .acct, body.gated .bnav, body.gated .foot { display: none; }
.login-page { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 24px 0; }
.login-card { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line); border-radius: calc(16px * var(--rs, 1)); padding: 26px 22px; }
.login-card h1 { font-size: calc(24px * var(--fs, 1)); margin: 0 0 6px; }
.login-card > p { margin: 0 0 18px; }

/* ---- login page animations ---- */
.login-page { position: relative; isolation: isolate; }
.lg-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.lg-bg i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: .35; animation: lg-drift 16s ease-in-out infinite alternate; }
.lg-bg i:nth-child(1) { background: var(--accent); top: -18vmax; left: -12vmax; }
.lg-bg i:nth-child(2) { background: #1f9d55; bottom: -22vmax; right: -14vmax; animation-delay: -5s; animation-duration: 19s; }
.lg-bg i:nth-child(3) { background: var(--buy); width: 26vmax; height: 26vmax; top: 40%; left: 55%; opacity: .14; animation-delay: -9s; }
.lg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(150,160,150,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(150,160,150,.06) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); }
@keyframes lg-drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }

.login-card { position: relative; overflow: hidden; background: color-mix(in srgb, var(--panel) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--buy) 45%, transparent); animation: lg-rise .7s cubic-bezier(.2,.9,.25,1.15) both; }
.login-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--lg-spin, 0deg), transparent 0 70%, var(--accent), #1f9d55, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: lg-spin 4s linear infinite; }
@property --lg-spin { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes lg-spin { to { --lg-spin: 360deg; } }
@keyframes lg-rise { from { opacity: 0; transform: translateY(28px) scale(.96); filter: blur(6px); } }
.lg-logo { width: 54px; height: 54px; border-radius: calc(15px * var(--rs, 1)); display: grid; place-items: center; margin-bottom: 14px; color: #fff;
  background: linear-gradient(135deg, #4ade80, #1f9d55); box-shadow: 0 10px 30px -8px var(--accent); animation: lg-pop .6s .15s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes lg-pop { from { opacity: 0; transform: scale(.4) rotate(-20deg); } }
.login-card h1, .login-card > p { animation: lg-up .5s both; }
.login-card h1 { animation-delay: .22s; }
.login-card > p { animation-delay: .3s; }
#lg-root.lg-in > * { animation: lg-up .45s both; }
#lg-root.lg-in > *:nth-child(1) { animation-delay: .36s; }
#lg-root.lg-in > *:nth-child(2) { animation-delay: .42s; }
#lg-root.lg-in > *:nth-child(3) { animation-delay: .48s; }
#lg-root.lg-in > *:nth-child(n+4) { animation-delay: .54s; }
@keyframes lg-up { from { opacity: 0; transform: translateY(12px); } }

.google-btn { background: #fff; color: #1f1f1f; gap: 10px; font-weight: 600; }
.google-btn svg { flex: none; }
.or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--faint); font-size: calc(13px * var(--fs, 1)); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-card .code { text-align: center; font-size: calc(26px * var(--fs, 1)); letter-spacing: .4em; }
.login-card input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); transition: box-shadow .2s; }
.shake { animation: lg-shake .45s; border-color: var(--sell) !important; }
@keyframes lg-shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

/* success: card content fades, a check draws itself, a ring of sparks bursts out */
.login-card.success > :not(.lg-done) { opacity: 0; transform: scale(.97); transition: opacity .25s, transform .25s; pointer-events: none; }
.login-card.success { box-shadow: 0 30px 90px -25px rgba(47,210,141,.55); transition: box-shadow .4s; }
.lg-done { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; font-size: calc(20px * var(--fs, 1)); }
.lg-done b { animation: lg-up .4s .45s both; }
.lg-check { width: 84px; height: 84px; fill: none; stroke: var(--buy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; animation: lg-pop .5s cubic-bezier(.3,1.6,.5,1) both; }
.lg-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: lg-draw .55s .05s ease-out forwards; }
.lg-check path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: lg-draw .35s .45s ease-out forwards; }
@keyframes lg-draw { to { stroke-dashoffset: 0; } }
.lg-burst { position: absolute; left: 50%; top: calc(50% - 16px); }
.lg-burst i { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--buy); opacity: 0;
  animation: lg-spark .7s calc(.35s + var(--d)) ease-out forwards; }
.lg-burst i:nth-child(3n) { background: var(--accent); }
.lg-burst i:nth-child(3n+1) { background: #1f9d55; }
@keyframes lg-spark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-90px) scale(.3); } }
.login-page.leaving .login-card { animation: lg-leave .38s ease-in forwards; }
@keyframes lg-leave { to { opacity: 0; transform: scale(1.06); filter: blur(8px); } }
body.entering #view, body.entering .top, body.entering .bnav { animation: lg-up .5s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  .login-page *, .login-page *::before, body.entering * { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}

/* ---- landing page (logged out) ---- */
body.gated .top { display: none; }
body.gated main { max-width: none; padding: 0; }
body.gated { background: #000; }
.login-page.landing { display: block; min-height: 100vh; min-height: 100dvh; padding: 0 16px 60px; overflow: hidden; color: #fff; }
/* the chart background (static/loginbg.js): one canvas behind everything, kept dim, with a dark pool behind the
   headline and the login card so candles and labels never sit bright under text */
.login-page.landing .lp-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.login-page.landing .lp-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.login-page.landing .lp-bg canvas.on { opacity: .88; }
.login-page.landing .lp-light { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; --l: var(--c-up, #2ebd85);
  background: radial-gradient(ellipse 60% 70% at 72% 55%, color-mix(in srgb, var(--l) 10%, transparent), transparent 70%); }
.login-page.landing .lp-light.down { --l: var(--c-down, #f6465d); }
.login-page.landing .lp-light.accent { --l: var(--accent, #7aa2f7); }
.login-page.landing .lp-bg[data-light="up"] .lp-light.up, .login-page.landing .lp-bg[data-light="down"] .lp-light.down,
.login-page.landing .lp-bg[data-light="accent"] .lp-light.accent { opacity: 1; }
/* the login sheet is open: the charts step further back while you type */
.login-page.landing.lp-open .lp-bg canvas.on { opacity: .3; }
.login-page.landing .lp-shade { position: absolute; inset: 0;
  background: radial-gradient(ellipse 42% 40% at 50% 47%, rgba(0,0,0,.9), rgba(0,0,0,.8) 45%, rgba(0,0,0,.42) 75%, transparent 100%),
              linear-gradient(to bottom, rgba(0,0,0,.5), transparent 20%, transparent 72%, rgba(0,0,0,.8)); }
@media (max-width: 700px) {
  .login-page.landing .lp-shade { background: radial-gradient(ellipse 95% 40% at 50% 43%, rgba(0,0,0,.9), rgba(0,0,0,.82) 55%, rgba(0,0,0,.4) 80%, transparent 100%),
              linear-gradient(to bottom, rgba(0,0,0,.6), transparent 24%, transparent 66%, rgba(0,0,0,.85)); }
  .login-page.landing .lp-bg canvas.on { opacity: .75; }
  .login-page.landing.lp-open .lp-bg canvas.on { opacity: .25; }
}

/* the chart is a main part of the page now: full strength. Wide screens: headline on the left, the chart owns the
   right side (a dark fade only behind the text). Narrower screens: the chart is a band above the headline. */
.login-page.landing .lp-bg canvas.on { opacity: 1; }
.login-page.landing .lp-light.hot, .login-page.landing .lp-light.panic { --l: var(--c-up, #2ebd85);
  background: radial-gradient(ellipse 42% 50% at 72% 42%, color-mix(in srgb, var(--l) 20%, transparent), transparent 70%); }
.login-page.landing .lp-light.panic { --l: var(--c-down, #f6465d); }
.login-page.landing .lp-bg[data-light="hot"] .lp-light.hot, .login-page.landing .lp-bg[data-light="panic"] .lp-light.panic { opacity: 1; }
@media (min-width: 1024px) {
  .login-page.landing .lp-shade { background: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.72) 32%, rgba(0,0,0,.2) 46%, transparent 54%),
              linear-gradient(to bottom, rgba(0,0,0,.35), transparent 14%, transparent 80%, rgba(0,0,0,.92) 92%); }
  .login-page.landing .lp-hero { text-align: left; width: 100%; max-width: 1180px; margin: 0 auto; padding: 17vh 0 10vh; }
  .login-page.landing .lp-hero > * { max-width: min(520px, 40vw); }
  .login-page.landing .lp-hero h1 { font-size: clamp(48px, 5vw, 72px); }
  .login-page.landing .lp-hero p { margin: 0 0 30px; }
  .login-page.landing .lp-mark svg { width: 52px; height: 52px; }
}
@media (max-width: 1023px) {
  .login-page.landing .lp-light { background-position: center; }
  .login-page.landing .lp-light, .login-page.landing .lp-light.hot, .login-page.landing .lp-light.panic {
    background: radial-gradient(ellipse 80% 30% at 50% 24%, color-mix(in srgb, var(--l) 16%, transparent), transparent 70%); }
  .login-page.landing .lp-shade { background: linear-gradient(to bottom, rgba(0,0,0,.4), transparent 9%, transparent 39%, rgba(0,0,0,.92) 45%, #000 60%); }
  .login-page.landing .lp-hero { padding-top: 37vh; }
  .login-page.landing .lp-hero .lp-mark { display: none; }
  .login-page.landing .lp-hero h1 { margin-top: 0; }
  .login-page.landing .lp-bg canvas.on { opacity: 1; }
}
.login-page.landing.lp-open .lp-bg canvas.on { opacity: .3; }

.lp-top { position: relative; z-index: 2; display: flex; width: 100%; align-items: center; justify-content: space-between; max-width: 1180px; margin: 0 auto; padding: 18px 0;
  animation: lg-up .6s both; }
.lp-logo { display: flex; align-items: center; gap: 8px; font-size: calc(20px * var(--fs, 1)); letter-spacing: -.02em; }
.lp-logo svg { color: #fff; }
.lp-actions { display: flex; gap: 10px; }
.lp-btn { border: 0; border-radius: calc(999px * var(--rs, 1)); padding: 10px 20px; font-weight: 700; cursor: pointer; background: var(--accent); color: var(--gold-ink);
  box-shadow: 0 8px 30px -10px var(--accent); transition: transform .15s, filter .15s, box-shadow .2s; }
.lp-btn:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 12px 36px -10px var(--accent); }
.lp-btn:active { transform: scale(.97); }
.lp-btn.ghost { background: #1a1d1a; color: var(--text); box-shadow: none; }
.lp-btn.lg { padding: 15px 34px; font-size: calc(18px * var(--fs, 1)); }

.lp-hero { position: relative; z-index: 1; text-align: center; max-width: 760px; margin: 0 auto; padding: 12vh 0 7vh; }
.lp-mark { display: inline-grid; color: #fff; animation: lg-pop .7s .1s cubic-bezier(.3,1.6,.5,1) both; }
.lp-mark svg { width: 64px; height: 64px; filter: drop-shadow(0 0 24px color-mix(in srgb, var(--buy) 80%, transparent)); }
.lp-hero h1 { font-size: clamp(40px, 9vw, 76px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em; margin: 22px 0 18px; animation: lg-up .7s .2s both;
  background: linear-gradient(180deg, #fff 30%, #c8f7d8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero p { font-size: clamp(17px, 2.4vw, 21px); color: #9aa29a; max-width: 520px; margin: 0 auto 30px; animation: lg-up .7s .32s both; }
.lp-hero .lp-btn { animation: lg-up .7s .44s both, lp-pulse 2.6s 1.4s ease-in-out infinite; }
@keyframes lp-pulse { 50% { transform: scale(1.035); } }
.lp-sub { display: block; margin-top: 16px; font-size: calc(13px * var(--fs, 1)); color: #6b726b; animation: lg-up .7s .56s both; }

.lp-preview { max-width: 980px; margin: 0 auto; perspective: 1400px; animation: lp-tilt 1.1s .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes lp-tilt { from { opacity: 0; transform: translateY(60px) rotateX(18deg); } }
.lp-win { border: 1px solid #1d211d; border-radius: calc(16px * var(--rs, 1)); overflow: hidden; background: linear-gradient(180deg, rgba(12,14,12,.85), rgba(6,7,12,.95));
  box-shadow: 0 -20px 80px -30px color-mix(in srgb, var(--buy) 55%, transparent), inset 0 1px 0 rgba(255,255,255,.05); }
.lp-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid #1c1f2e; }
.lp-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a2f2a; }
.lp-bar span { flex: 1; max-width: 220px; height: 8px; margin-left: 10px; border-radius: calc(6px * var(--rs, 1)); background: #1b1e1b; }
.lp-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; padding: 14px; }
.lp-chart { border-radius: calc(10px * var(--rs, 1)); background: rgba(255,255,255,.02); padding: 10px; min-height: 180px; }
.lp-chart svg { width: 100%; height: 100%; min-height: 160px; }
.lp-chart g { opacity: 0; animation: lg-up .4s calc(.9s + var(--d) * 45ms) both; animation-name: lp-candle; }
@keyframes lp-candle { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }
.lp-chart .u { stroke: var(--buy); fill: var(--buy); }
.lp-chart .d { stroke: var(--sell); fill: var(--sell); }
.lp-chart line { stroke-width: 1; }
.lp-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lp-cols > div { display: grid; gap: 8px; align-content: start; }
.lp-cols span { display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; gap: 5px 7px; padding: 8px; border-radius: calc(8px * var(--rs, 1)); background: rgba(255,255,255,.03);
  animation: lg-up .5s calc(1s + var(--d) * 70ms) both; }
.lp-cols i { grid-row: span 2; width: 22px; height: 22px; border-radius: calc(6px * var(--rs, 1)); background: linear-gradient(135deg, #4ade80, #1f9d55); opacity: .7; }
.lp-cols b { height: 7px; border-radius: calc(4px * var(--rs, 1)); background: #2a2f2a; }
.lp-cols em { height: 6px; width: 60%; border-radius: calc(4px * var(--rs, 1)); background: rgba(47,210,141,.45); }
.lp-cols span:nth-child(2n) em { background: rgba(242,70,110,.45); width: 40%; }

.lp-feats { max-width: 980px; margin: 34px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-feats div { padding: 18px; border: 1px solid #1d211d; border-radius: calc(14px * var(--rs, 1)); background: rgba(10,12,10,.7); animation: lg-up .6s 1.2s both; }
.lp-feats b { display: block; font-size: calc(17px * var(--fs, 1)); margin-bottom: 4px; }
.lp-feats span { color: #8c938c; font-size: calc(14px * var(--fs, 1)); }

.lp-sheet { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.lp-sheet[hidden] { display: none; }
.lp-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: lp-fade .3s both; }
@keyframes lp-fade { from { opacity: 0; } }
.lp-sheet .login-card { width: 100%; max-width: 400px; border: 1px solid var(--line); border-radius: calc(18px * var(--rs, 1)); padding: 26px 22px; }
.lp-sheet .login-card h1 { font-size: calc(24px * var(--fs, 1)); margin: 0 0 6px; }
.lp-sheet .login-card > p { margin: 0 0 18px; }

@media (max-width: 700px) {
  .lp-body { grid-template-columns: 1fr; }
  .lp-cols { grid-template-columns: repeat(2, 1fr); }
  .lp-cols > div:nth-child(3) { display: none; }
  .lp-feats { grid-template-columns: 1fr; }
  .lp-hero { padding-top: 9vh; }
  .lp-sheet { place-items: end center; padding: 0; }
  .lp-sheet .login-card { max-width: none; border-radius: calc(20px * var(--rs, 1)) calc(20px * var(--rs, 1)) 0 0; padding-bottom: 34px; animation: lp-sheet .45s cubic-bezier(.2,.9,.25,1.05) both; }
  @keyframes lp-sheet { from { transform: translateY(100%); } }
}
@media (prefers-reduced-motion: reduce) {
  .landing *, .landing *::before { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}
.login-page.landing.leaving > :not(.lp-sheet) { opacity: 0; transition: opacity .35s; }

/* ---- 404 page ---- */
.nf { text-align: center; padding: 10vh 16px 60px; max-width: 560px; margin: 0 auto; }
.nf-code { display: flex; justify-content: center; gap: 4px; font-size: clamp(96px, 26vw, 168px); font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.nf-code span { background: linear-gradient(180deg, #fff 25%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: nf-drop .7s cubic-bezier(.3,1.5,.5,1) both; }
.nf-code span:nth-child(2) { animation-delay: .08s; }
.nf-code span:nth-child(3) { animation-delay: .16s; }
.nf-0 { animation: nf-drop .7s .08s cubic-bezier(.3,1.5,.5,1) both, nf-wobble 3s 1s ease-in-out infinite !important; display: inline-block; }
@keyframes nf-drop { from { opacity: 0; transform: translateY(-40px) scale(.8); } }
@keyframes nf-wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg) translateY(4px); } 75% { transform: rotate(6deg); } }
.nf-line { width: 100%; max-width: 360px; height: 60px; margin: 6px auto 18px; display: block; }
.nf-line path { fill: none; stroke: var(--sell); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 400; stroke-dashoffset: 400; animation: lg-draw 1.4s .4s ease-out forwards; filter: drop-shadow(0 0 6px rgba(242,70,110,.6)); }
.nf h1 { font-size: calc(26px * var(--fs, 1)); margin-bottom: 8px; animation: lg-up .5s .5s both; }
.nf p { animation: lg-up .5s .6s both; word-break: break-all; }
.nf-acts { display: flex; gap: 10px; justify-content: center; margin-top: 18px; animation: lg-up .5s .7s both; }
.stats .vf span::after { content: " ✓"; color: var(--buy); font-weight: 700; }

/* ---- motion ---- */
.view-in { animation: view-in .35s cubic-bezier(.2,.8,.2,1); }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } }
.enter { animation: card-in .45s calc(var(--i, 0) * 40ms) cubic-bezier(.2,.9,.25,1.1) both; }
@keyframes card-in { from { opacity: 0; transform: translateX(-14px) scale(.98); } }
.pc, .tr-row { transition: background .2s, transform .15s; }
.pc:hover { background: var(--panel-2); transform: translateX(2px); }
.btn, .lp-btn, .qb, .seg button, .tabbar button, .bs button { position: relative; overflow: hidden; }
.btn:active, .qb:active, .seg button:active, .bs button:active { transform: scale(.97); }
.btn, .qb { transition: transform .12s, filter .15s, box-shadow .2s; }
.ripple { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: rgba(255,255,255,.35); pointer-events: none;
  animation: ripple .6s ease-out forwards; }
@keyframes ripple { to { transform: scale(40); opacity: 0; } }
.toast { animation: toast-in .35s cubic-bezier(.2,.9,.25,1.15) both; }
.toast.out { animation: toast-out .26s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
.tabbar button, .seg button { transition: background .2s, color .2s; }
.bnav a[aria-current="page"] svg { animation: nav-pop .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes nav-pop { 50% { transform: translateY(-3px) scale(1.15); } }

@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
.coin-burst { position: fixed; z-index: 90; pointer-events: none; }
.coin-burst i { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--c, var(--accent2, #f5c84b));
  box-shadow: 0 0 8px var(--c, var(--accent2, #f5c84b)); animation: coin-burst .8s var(--d) cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes coin-burst { from { transform: rotate(var(--a)) translateY(0); opacity: 1; } to { transform: rotate(var(--a)) translateY(-70px) scale(.4); opacity: 0; } }
input.pop { animation: inp-pop .5s; }
@keyframes inp-pop { 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--buy) 35%, transparent); } }
.xfill { margin-left: 8px; font-size: calc(12px * var(--fs, 1)); color: var(--accent); background: none; border: 0; cursor: pointer; padding: 0; }
.xfill[aria-pressed="true"] { color: var(--buy); }

/* ---- rewards ---- */
.rw { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; }
.rw-hero { position: relative; overflow: hidden; text-align: center; padding: 34px 20px; display: grid; justify-items: center; gap: 6px; }
.rw-glow { position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--buy) 35%, transparent), transparent); animation: lg-drift 9s ease-in-out infinite alternate; pointer-events: none; }
.rw-big { position: relative; display: flex; align-items: center; gap: 10px; font-size: clamp(38px, 9vw, 56px); font-weight: 700; letter-spacing: -.03em; }
.rw-big em { font-style: normal; font-size: .45em; color: var(--muted); }
.rw-hero .btn { margin-top: 12px; min-width: 220px; }
.rw-hero .btn.ready { animation: lp-pulse 2.4s ease-in-out infinite; }
.rw-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rw-stats .panel { display: grid; gap: 4px; padding: 16px; }
.rw-stats b { display: flex; align-items: center; gap: 6px; font-size: calc(18px * var(--fs, 1)); }
.rw-how { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.rw-how li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; }
.rw-how li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--accent); font-weight: 700; }
.rw-how span { color: var(--muted); font-size: calc(14px * var(--fs, 1)); }
.tag.paid { color: var(--buy); } .tag.pending, .tag.sending { color: var(--gold); }
@media (max-width: 700px) { .rw-stats { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .view-in, .enter, .panel, .toast, .coin-burst i, .ripple { animation: none !important; }
}
.rw-claims { list-style: none; margin: 0; padding: 0; }
.rw-claims li { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rw-claims b { display: flex; align-items: center; gap: 5px; }
/* coin page: your position */
.pos-pnl { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-bottom: 10px; border-radius: calc(10px * var(--rs, 1));
  background: color-mix(in srgb, var(--buy) 10%, transparent); animation: panel-in .4s both; }
.pos-pnl.down { background: color-mix(in srgb, var(--sell) 10%, transparent); }
.pos-pnl b { font-size: calc(22px * var(--fs, 1)); letter-spacing: -.02em; }
.pos-pnl span { font-size: calc(13px * var(--fs, 1)); }
.pos .kv b { display: flex; align-items: center; gap: 5px; }
/* /adminfees */
.af, .af-lock { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.af-lock { min-height: 60vh; place-items: center; }
.af-card { width: 100%; max-width: 380px; padding: 26px 22px; }
.af-card h1 { font-size: calc(24px * var(--fs, 1)); margin-bottom: 4px; }
.af-hero { position: relative; overflow: hidden; text-align: center; padding: 30px 20px; display: grid; justify-items: center; gap: 6px; }
.af-addr { position: relative; display: flex; gap: 14px; align-items: center; font-size: calc(14px * var(--fs, 1)); margin-top: 6px; }

/* ---- Pip, the trading fox ---- */
.pip { position: fixed; right: 18px; bottom: 18px; z-index: 55; }
.pip-btn { position: relative; width: 70px; height: 70px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer; padding: 3px;
  background: radial-gradient(circle at 50% 35%, #2a2236, #14121c); box-shadow: 0 10px 30px -8px rgba(244,122,42,.55); transition: transform .2s; }
.pip-btn:hover { transform: translateY(-3px) scale(1.04); }
.pip-btn .pip-fox { animation: pip-bob 3.2s ease-in-out infinite; will-change: transform; }
.pip.off .pip-btn { filter: saturate(.35) brightness(.8); box-shadow: none; }
.pip.off .pip-btn .pip-fox { animation: pip-breathe 4s ease-in-out infinite; }
@keyframes pip-bob { 50% { transform: translateY(-3px) rotate(-2deg); } }
@keyframes pip-breathe { 50% { transform: scale(1.03); } }
/* the fox's face moves when you point at him (SVG part animations repaint every frame, so not on idle) */
.pip-fox .pip-eyes { transform-origin: 50px 50px; }
.pip-btn:hover .pip-fox .pip-eyes { animation: pip-blink 4.5s infinite; }
@keyframes pip-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.pip-fox .pip-ears { transform-origin: 50px 30px; }
.pip-btn:hover .pip-fox .pip-ears { animation: pip-ears 6s infinite; }
@keyframes pip-ears { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-4deg); } 94% { transform: rotate(3deg); } }
.pip-fox .pip-tail { transform-origin: 74px 80px; }
.pip-btn:hover .pip-fox .pip-tail { animation: pip-tail 1.2s ease-in-out infinite; }
@keyframes pip-tail { 50% { transform: rotate(-9deg); } }
.pip-fox.worried { animation: pip-shiver .4s 2; }
@keyframes pip-shiver { 25% { transform: translateX(-1.5px); } 75% { transform: translateX(1.5px); } }
.pip-dot { position: absolute; top: 3px; right: 3px; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--ink); }
.pip-dot.buy { background: var(--buy); } .pip-dot.wait { background: #f5c84b; } .pip-dot.avoid { background: var(--sell); }
.pip-zz { position: absolute; top: -6px; right: 4px; font-weight: 700; color: var(--muted); animation: pip-zz 2s ease-in-out infinite; }
@keyframes pip-zz { 0% { opacity: 0; transform: translate(0, 4px) scale(.8); } 50% { opacity: 1; } 100% { opacity: 0; transform: translate(8px, -12px) scale(1.2); } }
.pip-pop { position: absolute; right: 78px; bottom: 16px; width: max-content; max-width: min(300px, calc(100vw - 120px)); padding: 10px 13px;
  border-radius: calc(14px * var(--rs, 1)) calc(14px * var(--rs, 1)) calc(4px * var(--rs, 1)) calc(14px * var(--rs, 1)); background: #fff4e6; color: #2b1a12; font-size: calc(14px * var(--fs, 1)); line-height: 1.35; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.pip-pop.show { animation: pip-pop 6s both; }
@keyframes pip-pop { 0% { opacity: 0; transform: translateY(8px) scale(.9); } 6%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.pip-panel { position: absolute; right: 0; bottom: 82px; width: min(360px, calc(100vw - 28px)); max-height: min(76vh, 640px); max-height: min(76dvh, 640px); overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: calc(16px * var(--rs, 1)); padding: 14px 16px; box-shadow: 0 24px 60px rgba(0,0,0,.55);
  animation: pip-open .3s cubic-bezier(.2,.9,.25,1.15) both; transform-origin: bottom right; }
@keyframes pip-open { from { opacity: 0; transform: scale(.85) translateY(10px); } }
.pip-panel header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pip-panel header > div:nth-child(2) { display: grid; flex: 1; }
.pip-face { width: 46px; height: 46px; border-radius: 50%; background: #131513; display: grid; place-items: center; }
.pip-x { border: 0; background: none; color: var(--muted); font-size: calc(22px * var(--fs, 1)); cursor: pointer; }
.pip-sw { position: relative; width: 40px; height: 22px; cursor: pointer; }
.pip-sw input { position: absolute; opacity: 0; }
.pip-sw i { position: absolute; inset: 0; border-radius: calc(22px * var(--rs, 1)); background: var(--panel-2); border: 1px solid var(--line); transition: background .2s; }
.pip-sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.pip-sw input:checked + i { background: #f47a2a; border-color: #f47a2a; }
.pip-sw input:checked + i::after { transform: translateX(18px); background: #fff; }
.pip-sw input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }
.pip-verdict { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: calc(12px * var(--rs, 1)); background: var(--panel-2); animation: panel-in .4s both; }
.pip-verdict > div:last-child { display: grid; }
.pip-verdict > div:last-child span { font-size: calc(12px * var(--fs, 1)); color: var(--muted); }
.pip-verdict > div:last-child b { font-size: calc(20px * var(--fs, 1)); }
.pip-verdict.buy b { color: var(--buy); } .pip-verdict.wait b { color: #f5c84b; } .pip-verdict.avoid b { color: var(--sell); }
.pip-ring { --c: var(--buy); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--c) calc(var(--s) * 1%), rgba(255,255,255,.08) 0); position: relative; }
.pip-verdict.wait .pip-ring { --c: #f5c84b; } .pip-verdict.avoid .pip-ring { --c: var(--sell); }
.pip-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--panel-2); }
.pip-ring b { position: relative; font-size: calc(16px * var(--fs, 1)) !important; color: var(--text) !important; }
.pip-say { margin: 10px 0; padding: 10px 12px; border-radius: calc(12px * var(--rs, 1)) calc(12px * var(--rs, 1)) calc(12px * var(--rs, 1)) calc(4px * var(--rs, 1)); background: #fff4e6; color: #2b1a12; font-size: calc(14px * var(--fs, 1)); }
.pip-move { margin: 10px 0; padding: 10px 12px; border-radius: calc(12px * var(--rs, 1)); border: 1px solid var(--line); display: grid; gap: 3px; }
.pip-move.sell { border-color: color-mix(in srgb, var(--sell) 50%, transparent); background: color-mix(in srgb, var(--sell) 8%, transparent); }
.pip-move.hold { border-color: color-mix(in srgb, var(--buy) 40%, transparent); }
.pip-move > b { font-size: calc(17px * var(--fs, 1)); } .pip-move p { margin: 0 0 4px; font-size: calc(14px * var(--fs, 1)); }
.pip-move .quick { margin-top: 6px; } .pip-move .quick button.on { border-color: var(--sell); color: var(--sell); }
.pip-supply { font-size: calc(13px * var(--fs, 1)); color: var(--muted); } .pip-supply b { color: var(--text); margin-right: 4px; }
.pip-why { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 5px; font-size: calc(13px * var(--fs, 1)); }
.pip-why li { padding-left: 18px; position: relative; }
.pip-why li::before { position: absolute; left: 0; font-weight: 700; }
.pip-why li.good::before { content: "+"; color: var(--buy); } .pip-why li.bad::before { content: "–"; color: var(--sell); }
@media (max-width: 900px) { .pip { bottom: calc(84px + env(safe-area-inset-bottom)); right: 12px; } .pip-btn { width: 58px; height: 58px; } .pip-btn svg { width: 50px; height: 50px; } }
@media (prefers-reduced-motion: reduce) { .pip *, .pip-btn .pip-fox { animation: none !important; } }
/* following wallets */
.trk-side { display: grid; gap: 14px; align-content: start; }
.fl-add { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 10px; }
.fl-add input { width: 100%; }
.fl-list { list-style: none; margin: 0 0 10px; padding: 0; }
.fl-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); animation: panel-in .3s both; }
.fl-list li > span { display: grid; }
.fl-alerts { margin: 8px 0; }
.fl-btn { margin-left: 6px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); color: var(--accent);
  font-weight: 700; line-height: 1; cursor: pointer; display: inline-grid; place-items: center; font-size: calc(13px * var(--fs, 1)); }
.fl-btn.on { color: var(--buy); cursor: default; }
.fl-btn:hover:not(.on) { border-color: var(--accent); }
.tag.following { color: #f47a2a; }
.fl-toast { text-decoration: none; color: inherit; }
.trk-side, .trk-side .panel { min-width: 0; }
.fl-alerts .btn { white-space: normal; text-align: center; }
.pip-live { font-style: normal; font-size: calc(10px * var(--fs, 1)); text-transform: uppercase; letter-spacing: .06em; color: var(--buy); margin-left: 4px; }
.pip-live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: var(--buy); animation: pip-blink2 1.6s infinite; vertical-align: 1px; }
@keyframes pip-blink2 { 50% { opacity: .25; } }
.pip-verdict > div:last-child span:last-child { font-size: calc(11px * var(--fs, 1)); }
/* phones: Pip's panel is a compact sheet above the bottom bar, never the whole screen */
@media (max-width: 900px) {
  .pip-panel { position: fixed; left: 8px; right: 8px; width: auto; bottom: calc(150px + env(safe-area-inset-bottom)); max-height: 46vh;
    padding: 12px; border-radius: calc(14px * var(--rs, 1)); transform-origin: bottom center; }
  .pip-panel header { margin-bottom: 8px; }
  .pip-face { width: 36px; height: 36px; } .pip-face svg { width: 34px; height: 34px; }
  .pip-verdict { padding: 8px 10px; } .pip-ring { width: 42px; height: 42px; } .pip-verdict > div:last-child b { font-size: calc(17px * var(--fs, 1)); }
  .pip-say { font-size: calc(13px * var(--fs, 1)); padding: 8px 10px; margin: 8px 0; }
  .pip-why { font-size: calc(12px * var(--fs, 1)); gap: 3px; }
  .pip-pop { max-width: min(230px, calc(100vw - 100px)); font-size: calc(13px * var(--fs, 1)); right: 66px; }
}
.pf-cfees{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;margin-bottom:8px;border:1px solid var(--line,#1d211d);border-radius:calc(10px * var(--rs, 1));background:rgba(46,209,138,.06)}
.pf-bal.sm{font-size: calc(20px * var(--fs, 1))}
.site-opt{border:1px solid var(--line,#1d211d);border-radius:calc(12px * var(--rs, 1));padding:12px 14px;margin:6px 0 14px}
.site-opt .chk{display:flex;gap:10px;align-items:flex-start;cursor:pointer}
.site-opt .chk input{margin-top:4px;accent-color:var(--accent,#6c5ce7);width:18px;height:18px;flex:none;padding:0}
.site-opt .chk span{display:flex;flex-direction:column;gap:2px}
.site-fields{display:grid;grid-template-columns:1fr 90px;gap:10px;margin-top:10px}
.site-fields .fld.color input{height:40px;padding:2px;width:100%}
@media (max-width:560px){.site-fields{grid-template-columns:1fr 70px}}
.pip-ask{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.pip-ask button{background:transparent;border:1px solid var(--line,#1d211d);color:inherit;border-radius:calc(999px * var(--rs, 1));padding:5px 10px;font-size: calc(12.5px * var(--fs, 1));cursor:pointer}
.pip-ask button.on,.pip-ask button:hover{border-color:#f47a2a;color:#f9a66b}
.pip-ans{background:rgba(244,122,42,.08);border:1px solid rgba(244,122,42,.25);border-radius:calc(10px * var(--rs, 1));padding:9px 11px;margin:0 0 10px;font-size: calc(13.5px * var(--fs, 1));line-height:1.45}
.pip.steady .pip-panel,.pip.steady .pip-verdict,.pip.steady .pip-panel .pip-fox{animation:none!important}
.lp-ref{display:inline-block;margin-top:12px;padding:6px 12px;border-radius:calc(999px * var(--rs, 1));background:rgba(46,209,138,.12);color:#7ee2b4;font-size: calc(13px * var(--fs, 1))}
.rw-stats{grid-template-columns:repeat(4,1fr)}
.rw-stats .panel small{display:block;margin-top:2px;font-size: calc(12px * var(--fs, 1))}
@media (max-width:760px){.rw-stats{grid-template-columns:repeat(2,1fr)}}
.rw-refer p{margin:0 0 12px}
.rf-link{display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:var(--panel-2,var(--panel-2));border:1px solid var(--line,#1d211d);border-radius:calc(12px * var(--rs, 1));padding:8px 8px 8px 14px}
.rf-link code{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size: calc(15px * var(--fs, 1))}
.rf-form{display:flex;align-items:center;gap:6px;margin:10px 0 14px;flex-wrap:wrap}
.rf-form input{width:160px}.rf-at{color:var(--muted)}
.rf-split{display:flex;border-radius:calc(12px * var(--rs, 1));overflow:hidden;font-size: calc(12px * var(--fs, 1))}
.rf-split div{flex:var(--w) 1 0;padding:8px 10px;display:flex;flex-direction:column;min-width:0}
.rf-split span{opacity:.8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rf-split .them{background:rgba(46,209,138,.18)}.rf-split .you{background:color-mix(in srgb, var(--buy) 35%, transparent)}.rf-split .site{background:rgba(255,255,255,.06)}
.rw-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:760px){.rw-two{grid-template-columns:1fr}}
.rw-claims .up{color:var(--buy,#2ed18a)}
.tag.ok{background:rgba(46,209,138,.15);color:#7ee2b4}
.cfg-tbl td{vertical-align:middle}
.rf-split .you{color:#fff}
#rw-creator td{white-space:nowrap}
.rw-stats{align-items:stretch}


/* =================================================================== Axiom pass ===== */
/* header */
.top { height: 52px; padding: 0 16px; gap: 14px; background: rgba(0,0,0, .96); border-bottom: 1px solid var(--line); }
.logo { font-size: calc(18px * var(--fs, 1)); }
.nav { gap: 0; }
.nav a { padding: 6px 10px; font-size: calc(14px * var(--fs, 1)); color: var(--muted); border-radius: calc(6px * var(--rs, 1)); }
.nav a:hover { background: none; color: var(--text); }
.nav a[aria-current="page"] { background: none; color: var(--accent); }
.hsearch { width: 260px; border-radius: calc(999px * var(--rs, 1)); background: var(--panel-2); border-color: var(--line); height: 34px; }
.hsearch input { font-size: calc(13px * var(--fs, 1)); padding: 6px 0; }
.hs-k { font: 600 calc(11px * var(--fs, 1)) var(--font); color: var(--faint); border: 1px solid var(--line-2); border-radius: calc(5px * var(--rs, 1)); padding: 0 5px; }
.acct .btn#dep-btn { border-radius: calc(999px * var(--rs, 1)); padding: 7px 16px; font-weight: 700; }
.bal { border-radius: calc(999px * var(--rs, 1)); background: var(--panel-2); padding: 6px 12px; font-size: calc(13px * var(--fs, 1)); }
.me { width: 32px; height: 32px; background: var(--panel-3); }
@media (max-width: 1280px) { .nav a { padding: 6px 7px; font-size: calc(13px * var(--fs, 1)); } .hsearch { width: 200px; } }
@media (max-width: 1100px) { .hs-k { display: none; } }

/* surfaces + controls */
.panel { background: var(--panel); border-color: var(--line); }
.panel-h.pad { padding: 12px 14px 0; }
.panel.tight .panel-h.pad { margin-bottom: 8px; }
.btn { border-radius: calc(999px * var(--rs, 1)); font-weight: 600; padding: 8px 16px; }
.btn.ghost { background: var(--panel-2); border-color: var(--line-2); }
.btn.sm { padding: 5px 11px; font-size: calc(12.5px * var(--fs, 1)); }
.btn.lg { padding: 12px 18px; }
.seg { background: var(--panel-2); border-color: var(--line); border-radius: calc(8px * var(--rs, 1)); }
.seg button { font-weight: 500; }
.seg button.on { background: var(--panel-3); color: var(--text); }
input, select, textarea { background: var(--ink); border-color: var(--line-2); border-radius: calc(8px * var(--rs, 1)); }
.tbl th { font-size: calc(12px * var(--fs, 1)); font-weight: 500; color: var(--muted); padding: calc(8px * var(--dn, 1)) 10px; }
.tbl td { padding: calc(10px * var(--dn, 1)) 10px; border-bottom-color: var(--line); }
.tbl tbody tr:hover td { background: rgba(255, 255, 255, .015); }
.tag { border-radius: calc(5px * var(--rs, 1)); }
.chips button.on { background: var(--accent); border-color: var(--accent); color: var(--gold-ink); }
.modal { background: rgba(0, 0, 0, .66); backdrop-filter: blur(2px); }
.modal-box { background: var(--panel); border-color: var(--line-2); border-radius: calc(12px * var(--rs, 1)); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modal.sheet .modal-box { max-width: 420px; }
.more-list { display: grid; gap: 6px; margin-top: 6px; }
.more-list a { display: grid; padding: 12px 14px; border: 1px solid var(--line); border-radius: calc(10px * var(--rs, 1)); text-decoration: none; background: var(--panel-2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wlink { text-decoration: none; cursor: pointer; }
.wlink:hover b, .wlink:hover { color: var(--accent); }
.txl { margin-left: 5px; color: var(--faint); text-decoration: none; font-size: calc(12px * var(--fs, 1)); }
.txl:hover { color: var(--text); }

/* coin page */
.coin { gap: 10px; }
@media (min-width: 961px) { .coin { grid-template-columns: minmax(0, 1fr) 330px; } }
.coin-head { align-items: center; }
.ch-txt { flex: 1; min-width: 0; }
.ch-acts { display: flex; gap: 6px; }
.stats { border-radius: var(--r-panel); }
.stats span { font-size: calc(11.5px * var(--fs, 1)); }
.chartbox { border-radius: var(--r-panel); }
.chart-bar { align-items: center; padding: 6px 8px; }
.chart-tools { display: flex; gap: 6px; align-items: center; }
.chart-tools .seg button svg { width: 15px; height: 15px; display: block; fill: none; stroke: currentColor; stroke-width: 1.5; }
.cbtn { display: inline-grid; place-items: center; min-width: 30px; height: 28px; padding: 0 7px; border-radius: calc(7px * var(--rs, 1)); border: 1px solid var(--line); background: var(--panel-2);
  color: var(--muted); font: 600 calc(12px * var(--fs, 1)) var(--font); cursor: pointer; }
.cbtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.cbtn:hover, .cbtn.on { color: var(--text); border-color: var(--line-2); }
.cbtn.on { color: var(--accent2, #f5c84b); }
.chart-area { height: 460px; }
.chart-legend { position: absolute; z-index: 3; top: 8px; left: 10px; right: 70px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: calc(12px * var(--fs, 1)); pointer-events: none; color: var(--muted); }
.chart-legend b { color: var(--text); }
.chart-legend i { font-style: normal; }
.chart-area::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 3px; opacity: 0; pointer-events: none; }
.chart-area.tick-up::after { background: var(--buy); animation: tickflash .9s ease-out; }
.chart-area.tick-down::after { background: var(--sell); animation: tickflash .9s ease-out; }
@keyframes tickflash { from { opacity: .9; } to { opacity: 0; } }
.chartbox.fs, .chartbox.max { position: fixed; inset: 0; z-index: 80; margin: 0; border-radius: 0; display: flex; flex-direction: column; }
.chartbox.fs .chart-area, .chartbox.max .chart-area { flex: 1; height: auto; }
@media (max-width: 960px) { .chart-area { height: 360px; } }
@media (max-width: 600px) {
  .chart-bar { gap: 6px; }
  .chart-bar > .seg { width: 100%; overflow-x: auto; }
  .chart-bar > .seg button { flex: 1; padding: 5px 6px; }
  .chart-tools { width: 100%; justify-content: space-between; }
  .chart-area { height: 330px; }
  .chart-legend { font-size: calc(11px * var(--fs, 1)); right: 56px; }
  .ch-acts .btn { padding: 5px 9px; }
}
.trade.panel .bs { background: var(--panel-2); border-radius: calc(10px * var(--rs, 1)); padding: 3px; gap: 3px; }
.trade.panel .bs button { border: 0; border-radius: calc(8px * var(--rs, 1)); background: none; }

/* status bar (desktop) */
.sbar { position: sticky; bottom: 0; z-index: 25; display: flex; align-items: center; gap: 16px; height: 30px; padding: 0 14px; border-top: 1px solid var(--line);
  background: rgba(0,0,0, .97); font-size: calc(12px * var(--fs, 1)); color: var(--muted); }
.sb-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; color: var(--muted); }
.sb-item .muted { margin-left: 2px; }
a.sb-item:hover { color: var(--text); }
.sb-grow { flex: 1; }
.sb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.sb-item.good { color: var(--buy); } .sb-item.good .sb-dot { background: var(--buy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--buy) 15%, transparent); }
.sb-item.slow { color: var(--warn); } .sb-item.slow .sb-dot { background: var(--warn); }
.sb-item.bad { color: var(--sell); } .sb-item.bad .sb-dot { background: var(--sell); }
.foot { display: none; }
body.gated .sbar { display: none; }
.bnav button { flex: 1; display: none; flex-direction: column; align-items: center; gap: 3px; font-size: calc(11px * var(--fs, 1)); color: var(--muted); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.bnav button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
@media (max-width: 900px) {
  .sbar { display: none; }
  .bnav button { display: flex; }
  .top { height: 50px; }
}

/* ---------------------------------------------------------- wallet inspector */
.modal.wallet-modal { place-items: start center; padding: 28px 16px; overflow-y: auto; }
.modal.wallet-modal .modal-box { max-width: 1240px; padding: 0; background: var(--panel); }
.modal.wallet-modal .modal-x { display: none; }
.wi.page { max-width: 1240px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: calc(12px * var(--rs, 1)); }
.wi-h { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.wi-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-3); font-size: calc(17px * var(--fs, 1)); }
.wi-name { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; flex-wrap: wrap; }
.wi-name b { font-size: calc(16px * var(--fs, 1)); }
.wi-addr { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: calc(13px * var(--fs, 1)); padding: 0; }
.wi-addr svg, .wi-ib svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.wi-addr:hover { color: var(--text); }
.wi-ext { color: var(--faint); font-size: calc(12.5px * var(--fs, 1)); text-decoration: none; }
.wi-acts { display: flex; align-items: center; gap: 8px; }
.wi-ib { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: calc(8px * var(--rs, 1)); border: 0; background: none; color: var(--muted); cursor: pointer; }
.wi-ib:hover { color: var(--text); background: var(--panel-2); }
.wi-ib.on { color: var(--warn); } .wi-ib.on svg { fill: currentColor; }
.wi-x { font-size: calc(22px * var(--fs, 1)); line-height: 1; }
.wi-sep { width: 1px; height: 20px; background: var(--line-2); }
.wi-tf { display: flex; gap: 2px; }
.wi-tf button { border: 0; background: none; color: var(--text); font: 600 calc(14px * var(--fs, 1)) var(--font); padding: 5px 10px; border-radius: calc(7px * var(--rs, 1)); cursor: pointer; }
.wi-tf button.on { color: var(--accent); }
.wi-body { padding: 14px 18px 16px; transition: opacity .2s; }
.wi-body.busy { opacity: .55; pointer-events: none; }
.wi-load { padding: 70px 10px; text-align: center; color: var(--muted); }
.wi-top { display: grid; grid-template-columns: 1.15fr 1fr 1fr; border: 1px solid var(--line); border-radius: calc(10px * var(--rs, 1)); overflow: hidden; background: var(--panel); }
.wi-top > .wi-card { border-right: 1px solid var(--line); border-radius: 0; }
.wi-top > .wi-card:last-child { border-right: 0; }
.wi-card { padding: 16px 18px; background: var(--panel); border-radius: calc(10px * var(--rs, 1)); min-width: 0; }
.wi-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.wi-row h3 { font-size: calc(15px * var(--fs, 1)); font-weight: 500; }
.wi-unit { background: none; border: 0; color: var(--text); font: 600 calc(13px * var(--fs, 1)) var(--font); cursor: pointer; }
.wi-unit::before { content: "⇅ "; color: var(--muted); }
.wi-bal-grid { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.wi-bal-grid > div:first-child { display: grid; gap: 2px; }
.wi-bal-grid .muted { font-size: calc(12.5px * var(--fs, 1)); }
.wi-big { font-size: calc(26px * var(--fs, 1)); font-weight: 500; margin-bottom: 10px; letter-spacing: -.02em; }
.wi-mid { font-size: calc(20px * var(--fs, 1)); font-weight: 500; display: flex; align-items: center; gap: 4px; }
.wi-bal-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 12px; }
.wi-bal-foot div { display: grid; gap: 2px; font-size: calc(12.5px * var(--fs, 1)); }
.wi-bal-foot b { font-size: calc(16px * var(--fs, 1)); font-weight: 500; display: flex; align-items: center; gap: 5px; }
.wi-heat { display: grid; gap: 2px; justify-self: end; }
.hm-hours, .hm-row { display: grid; grid-template-columns: 12px repeat(24, 9px); gap: 2px; align-items: center; }
.hm-hours { grid-template-columns: 12px repeat(4, 66px); font-size: calc(9px * var(--fs, 1)); color: var(--faint); }
.hm-d { font-size: calc(9px * var(--fs, 1)); color: var(--faint); }
.hm-row i { width: 9px; height: 9px; border-radius: calc(2px * var(--rs, 1)); background: #1d1e23; }
.hm-row i.now { outline: 1px solid var(--muted); }
.wi-chart-card { display: flex; flex-direction: column; }
.wi-chart { position: relative; flex: 1; min-height: 210px; }
.wi-svg { width: 100%; height: 210px; display: block; cursor: crosshair; }
.wi-zero { stroke: rgba(255, 255, 255, .08); stroke-dasharray: 3 4; }
.wi-cross { stroke: rgba(255, 255, 255, .3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wi-line { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--buy) 35%, transparent)); }
.wi-readout { position: absolute; left: 0; top: -2px; display: flex; gap: 8px; align-items: baseline; font-size: calc(13px * var(--fs, 1)); pointer-events: none; }
.wi-ylab { position: absolute; right: 0; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-between; font-size: calc(10px * var(--fs, 1)); color: var(--faint); pointer-events: none; }
.wi-nochart { display: grid; place-items: center; height: 100%; min-height: 190px; color: var(--muted); text-align: center; font-size: calc(13px * var(--fs, 1)); }
.wi-perf .kv { font-size: calc(13.5px * var(--fs, 1)); margin: 9px 0; }
.wi-perf .kv span:first-child { color: var(--muted); }
.wi-buckets { list-style: none; padding: 0; margin: 16px 0 10px; display: grid; gap: 9px; font-size: calc(13.5px * var(--fs, 1)); }
.wi-buckets li { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 8px; }
.wi-buckets i { width: 8px; height: 8px; border-radius: 50%; }
.b5 i, i.b5 { background: #0f8f6c; } .b4 i, i.b4 { background: #17b083; } .b3 i, i.b3 { background: var(--buy); }
.b2 i, i.b2 { background: #b8406a; } .b1 i, i.b1 { background: var(--sell); } i.b0 { background: var(--line-2); }
.wi-dist { display: flex; height: 4px; border-radius: calc(4px * var(--rs, 1)); overflow: hidden; gap: 2px; }
.wi-dist i { display: block; }
.wi-tabs { margin-top: 12px; padding: 0; border: 1px solid var(--line); }
.wi-tabbar { display: flex; align-items: center; gap: 4px; padding: 0 14px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.wi-tabbar button { border: 0; background: none; color: var(--muted); font: 500 calc(14px * var(--fs, 1)) var(--font); padding: 13px 8px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.wi-tabbar button.on { color: var(--text); border-bottom-color: var(--text); }
.wi-grow { flex: 1; }
.wi-tabbar input { width: 240px; border-radius: calc(999px * var(--rs, 1)); padding: 6px 14px; font-size: calc(13px * var(--fs, 1)); background: var(--panel-2); margin: 6px 0; }
.wi-table { max-height: 460px; overflow: auto; }
.wi-tbl td { vertical-align: middle; }
.wi-tbl td small { display: block; font-size: calc(11.5px * var(--fs, 1)); margin-top: 1px; }
.wi-tbl td > span { display: inline-flex; align-items: center; gap: 4px; }
.wi-tbl .tcoin span { display: grid; }
.wi-tbl em { font-style: normal; }
.wi-ti { width: 38px; height: 38px; border-radius: calc(8px * var(--rs, 1)); object-fit: cover; flex: none; font-size: calc(15px * var(--fs, 1)); }
.wi-src { margin: 10px 2px 0; }
@media (max-width: 1000px) {
  .wi-top { grid-template-columns: 1fr 1fr; }
  .wi-top > .wi-bal { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .modal.wallet-modal { padding: 0; }
  .modal.wallet-modal .modal-box { border-radius: 0; min-height: 100%; }
  .wi-h { padding: 10px 12px; gap: 8px; }
  .wi-name { flex-basis: calc(100% - 50px); order: 1; }
  .wi-av { order: 0; }
  .wi-acts { order: 2; width: 100%; justify-content: space-between; }
  .wi-sep, #wi-full { display: none; }
  .wi-body { padding: 10px; }
  .wi-top { grid-template-columns: 1fr; }
  .wi-top > .wi-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .wi-bal-grid { grid-template-columns: 1fr; }
  .wi-heat { justify-self: stretch; overflow-x: auto; }
  .hm-row { grid-template-columns: 12px repeat(24, minmax(7px, 1fr)); }
  .hm-row i { width: auto; aspect-ratio: 1; }
  .hm-hours { grid-template-columns: 12px repeat(4, 1fr); }
  .wi-tabbar input { width: 100%; order: 9; }
  .wi-tabbar { flex-wrap: wrap; }
  .wi-grow { display: none; }
  .wi-tbl th:nth-child(3), .wi-tbl td:nth-child(3) { display: none; }
  .wi-ti { width: 30px; height: 30px; }
}

/* ---------------------------------------------------------- copy trading */
.cp { max-width: 1240px; margin: 0 auto; display: grid; gap: 12px; }
.cp .page-h { margin-bottom: 0; }
.cp-status { font-size: calc(12.5px * var(--fs, 1)); font-weight: 600; padding: 4px 10px; border-radius: calc(999px * var(--rs, 1)); background: var(--panel-2); color: var(--muted); }
.cp-status.on { color: var(--buy); background: color-mix(in srgb, var(--buy) 10%, transparent); }
.cp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.cp-grid .panel + .panel { margin-top: 0; }
.cp-on { display: flex; gap: 20px; align-items: center; justify-content: space-between; background: linear-gradient(120deg, color-mix(in srgb, var(--buy) 12%, transparent), transparent 60%), var(--panel); }
.cp-on h2 { font-size: calc(18px * var(--fs, 1)); margin-bottom: 6px; }
.cp-on p { max-width: 640px; margin: 0; }
.cp-live { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--buy) 25%, transparent); background: color-mix(in srgb, var(--buy) 6%, transparent); border-radius: calc(10px * var(--rs, 1)); font-size: calc(13.5px * var(--fs, 1)); }
.cp-live span:nth-child(2) { flex: 1; }
/* live dots: the ring is a separate layer that only scales and fades (runs on the GPU, no repaints) */
.cp-pulse, .st-dot { position: relative; }
.cp-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--buy); flex: none; }
.cp-pulse::after, .st-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--buy); opacity: .55;
  animation: dot-ring 1.8s ease-out infinite; will-change: transform, opacity; }
@keyframes dot-ring { to { transform: scale(3); opacity: 0; } }
.note-card h2 { margin-bottom: 6px; }
.cp-bot { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); }
.cp-bot.paused { opacity: .55; }
.cp-bot-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.cp-bot-top { display: flex; gap: 8px; align-items: baseline; }
.cp-bot-sub { display: flex; gap: 10px; flex-wrap: wrap; font-size: calc(13px * var(--fs, 1)); align-items: center; }
.cp-bot-stats { display: flex; gap: 14px; font-size: calc(12.5px * var(--fs, 1)); color: var(--muted); flex-wrap: wrap; }
.cp-bot-stats b { color: var(--text); font-weight: 600; }
.cp-bot-stats b.up { color: var(--buy); } .cp-bot-stats b.down { color: var(--sell); }
.cp-bot-acts { display: flex; gap: 12px; align-items: center; }
.sw { position: relative; width: 38px; height: 22px; cursor: pointer; flex: none; }
.sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sw i { position: absolute; inset: 0; border-radius: calc(22px * var(--rs, 1)); background: var(--panel-3); border: 1px solid var(--line-2); transition: background .2s; pointer-events: none; }
.sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.sw input:checked + i { background: var(--buy); border-color: var(--buy); }
.sw input:checked + i::after { transform: translateX(16px); background: #fff; }
.cp-ev { list-style: none; margin: 0; padding: 0; }
.cp-ev li { display: grid; grid-template-columns: 10px 90px 90px 110px 1fr auto 30px; gap: 10px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line); font-size: calc(13px * var(--fs, 1)); }
.cp-ev a { text-decoration: none; }
.cp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.cp-ev li.ok .cp-dot { background: var(--buy); } .cp-ev li.bad .cp-dot { background: var(--sell); } .cp-ev li.wait .cp-dot { background: var(--warn); }
.cp-ev li.bad .cp-note { color: var(--sell); }
.cp-note { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal.copy-modal .modal-box { max-width: 480px; }
.cp-form .fld { margin-bottom: 10px; }
.cp-modes { border: 0; padding: 0; margin: 4px 0 12px; display: grid; gap: 6px; }
.cp-modes legend { font-size: calc(13px * var(--fs, 1)); color: var(--muted); margin-bottom: 6px; }
.cp-mode { display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: calc(9px * var(--rs, 1)); cursor: pointer; }
.cp-mode:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--buy) 8%, transparent); }
.cp-mode input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); flex: none; padding: 0; }
.cp-mode span { display: grid; gap: 1px; }
.cp-more { margin: 2px 0 10px; }
.cp-more summary { cursor: pointer; color: var(--muted); font-size: calc(13px * var(--fs, 1)); margin-bottom: 8px; }
.fl-acts { display: flex; gap: 10px; }
@media (max-width: 900px) {
  .cp-grid { grid-template-columns: 1fr; }
  .cp-on { flex-direction: column; align-items: stretch; }
  .cp-ev li { grid-template-columns: 10px auto auto 1fr auto; }
  .cp-ev li > span.muted:nth-of-type(2), .cp-ev li > a:last-child { display: none; }
  .cp-ev li .cp-note { grid-column: 2 / -1; white-space: normal; }
}

/* ---------------------------------------------------------- callouts */
.callouts { max-width: 1240px; margin: 0 auto; }
.co-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.co-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.co-feed.compact { padding: 8px 0; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.co { position: relative; display: grid; gap: 10px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: calc(10px * var(--rs, 1)); animation: panel-in .4s both; overflow: hidden; }
.co.ran { border-color: color-mix(in srgb, var(--buy) 35%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--buy) 7%, transparent), transparent 50%), var(--panel); }
.co-coin { display: flex; gap: 10px; align-items: center; text-decoration: none; }
.co-coin span { display: grid; }
.co-coin b { font-size: calc(16px * var(--fs, 1)); }
.co-img { width: 42px; height: 42px; border-radius: calc(9px * var(--rs, 1)); object-fit: cover; font-size: calc(17px * var(--fs, 1)); }
.co-by { position: absolute; top: 14px; right: 14px; display: flex; gap: 7px; align-items: center; text-align: right; }
.co-by span:last-child { display: grid; font-size: calc(13px * var(--fs, 1)); }
.co-av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--gold-ink); font-weight: 700; font-size: calc(12px * var(--fs, 1)); }
.co-note { margin: 0; font-size: calc(13.5px * var(--fs, 1)); color: #cfd4cf; white-space: pre-wrap; overflow-wrap: anywhere; }
.co-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.co-nums div { display: grid; gap: 1px; padding: 7px 9px; background: var(--panel-2); border-radius: calc(8px * var(--rs, 1)); font-size: calc(13px * var(--fs, 1)); }
.co-nums span { font-size: calc(11px * var(--fs, 1)); color: var(--muted); }
.co-nums em { font-style: normal; font-weight: 700; font-size: calc(12.5px * var(--fs, 1)); }
.co-nums em.hot { text-shadow: 0 0 12px color-mix(in srgb, var(--buy) 60%, transparent); }
.co-bar { height: 3px; background: var(--panel-2); border-radius: calc(3px * var(--rs, 1)); overflow: hidden; }
.co-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--buy)); }
.co footer { display: flex; justify-content: space-between; align-items: center; }
.co-side { display: grid; gap: 12px; position: sticky; top: 64px; }
.co-side .panel + .panel { margin-top: 0; }
.co-lead { list-style: none; margin: 0; padding: 0; }
.co-lead li { display: grid; grid-template-columns: 24px 1fr auto; grid-template-rows: auto auto; column-gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: calc(13.5px * var(--fs, 1)); }
.co-lead li > span:nth-of-type(2) { grid-column: 2; }
.co-lead li > .up { grid-column: 3; grid-row: 1; text-align: right; font-weight: 600; }
.co-lead li > span:last-child { grid-column: 3; text-align: right; }
.co-rank { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); font-size: calc(11px * var(--fs, 1)); font-weight: 700; }
.co-rank.r1 { background: #f5c84b; color: #2a2000; } .co-rank.r2 { background: #c9ccd6; color: #1c1d22; } .co-rank.r3 { background: #d68c4c; color: #2a1606; }
.co-h { display: flex; gap: 6px; align-items: center; margin: 6px 0; }
.modal.call-modal textarea { resize: vertical; }
@media (max-width: 900px) {
  .co-layout { grid-template-columns: 1fr; }
  .co-side { position: static; order: -1; }
  .callouts .page-h .seg { overflow-x: auto; }
}

/* ---------------------------------------------------------- rewards */
.rw { max-width: 980px; }
.rw-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rw-pair .panel + .panel { margin-top: 0; }
.rw-kicker { position: relative; font-size: calc(15px * var(--fs, 1)); font-weight: 600; color: var(--text); }
.rw-hero.creator .rw-glow { background: radial-gradient(closest-side, rgba(245, 200, 75, .22), transparent); }
.rw-hero.creator .btn { background: var(--text); color: #000; }
.rw-hero.creator .btn:disabled { background: var(--panel-3); color: var(--faint); }
.rw-hero .rw-big { font-size: clamp(32px, 6vw, 46px); }
.rw-mini { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); text-align: left; }
.rw-mini div { display: grid; gap: 1px; font-size: calc(12px * var(--fs, 1)); color: var(--muted); }
.rw-mini b { color: var(--text); font-size: calc(15px * var(--fs, 1)); display: flex; gap: 5px; align-items: center; }
#rw-creator td { white-space: normal; }
@media (max-width: 760px) { .rw-pair { grid-template-columns: 1fr; } }

.sol-ico { display: inline-block; vertical-align: -2px; flex: none; }
.wi-tbl td.tact { display: table-cell; text-align: right; }
.wi-tbl td b, .wi-perf .kv b { white-space: nowrap; }
.wi-tbl td > span, .wi-tbl td > b { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.modal-box { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.modal.wallet-modal .modal-box { max-height: none; overflow: visible; }
.rw > .panel + .panel, .rw-stats .panel + .panel, .rw-two .panel + .panel, .cp > .panel + .panel { margin-top: 0; }
.co-coin { padding-right: 120px; min-width: 0; }
.co-coin b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) {
  .cp-bot { flex-wrap: wrap; }
  .cp-bot-acts { width: 100%; justify-content: flex-start; }
}
@media (min-width: 901px) { .pip { bottom: 44px; } }

/* launch venue + Mayhem */
.venue { display: grid; gap: 8px; margin: 6px 0 14px; }
.venue-l { font-size: calc(13px * var(--fs, 1)); color: var(--muted); }
.vopt { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: calc(10px * var(--rs, 1)); cursor: pointer; }
.vopt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--buy) 7%, transparent); }
.vopt input { width: 16px; height: 16px; margin-top: 3px; flex: none; padding: 0; accent-color: var(--accent); }
.vopt span small { display: block; margin-top: 2px; }
.tag.mayhem { background: rgba(255, 92, 92, .16); color: #ff8a8a; }
.mayhem-box { padding: 12px 14px; border-radius: calc(10px * var(--rs, 1)); border: 1px solid rgba(255, 92, 92, .3); background: rgba(255, 92, 92, .06); }
.mayhem-box .chk { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.mayhem-box .chk input { width: 18px; height: 18px; margin-top: 3px; flex: none; padding: 0; accent-color: #ff5c5c; }
.mayhem-box small { display: block; margin-top: 3px; line-height: 1.45; }
/* honeypot warning */
.honeypot { margin: 10px 0; padding: 10px 12px; border-radius: calc(10px * var(--rs, 1)); border: 1px solid color-mix(in srgb, var(--sell) 45%, transparent); background: color-mix(in srgb, var(--sell) 8%, transparent); font-size: calc(13px * var(--fs, 1)); }
.honeypot ul { margin: 6px 0 0; padding-left: 16px; }
.honeypot li { margin: 3px 0; color: #f7b3c6; }
/* callouts from elsewhere */
.xc { display: grid; gap: 14px; padding: 8px 0; }
.xc-sec header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.xc-sec h3 { font-size: calc(14px * var(--fs, 1)); font-weight: 600; }
.xc-list { list-style: none; margin: 0; padding: 0; }
.xc-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: calc(13.5px * var(--fs, 1)); }
.xc-list li a { text-decoration: none; }
.xc-list li > .muted { width: 100%; }
.xc-list li.xc-quote > span:nth-child(2) { width: 100%; color: #cfd4cf; overflow-wrap: anywhere; }
.xc-links { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
tr.sec-hot td { background: color-mix(in srgb, var(--sell) 6%, transparent); }
.co-feed.compact .co-nums div { padding: 6px 7px; font-size: calc(12px * var(--fs, 1)); min-width: 0; }
.co-feed.compact .co-nums b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

.wi-scan { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--line-2); border-radius: calc(8px * var(--rs, 1)); font-size: calc(13px * var(--fs, 1)); color: var(--muted); }
.wi-scan.bad { border-color: color-mix(in srgb, var(--sell) 35%, transparent); color: #f7b3c6; justify-content: space-between; }

/* calm pass: no decorative glows or entrance animation on every block */
.rw-glow { display: none; }
.co, .fl-list li, .pos-pnl, .pip-verdict { animation: none; }
.rw-hero { text-align: left; justify-items: start; padding: 22px; }
.rw-hero .btn { min-width: 0; }
.rw-hero .btn.ready { animation: none; }

/* ------------------------------------------------------------------ launch */
.lx { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px 32px; max-width: 1080px; margin: 0 auto; align-items: start; }
.lx-h { grid-column: 1 / -1; }
.lx-h h1 { font-size: calc(28px * var(--fs, 1)); letter-spacing: -.02em; margin-bottom: 4px; }
.lx-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.lx-sec { padding: 22px 0; border-top: 1px solid var(--line); }
.lx-sec:first-child { border-top: 0; padding-top: 4px; }
.lx-sec h2 { font-size: calc(15px * var(--fs, 1)); font-weight: 600; margin-bottom: 12px; }
.lx-sec > .muted.small { margin: 6px 0 0; }
.lx-coin { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; margin-bottom: 4px; }
.lx-drop { position: relative; width: 148px; height: 148px; border-radius: calc(14px * var(--rs, 1)); border: 1px dashed var(--line-2); background: var(--panel); color: var(--muted);
  display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; cursor: pointer; padding: 10px; overflow: hidden; transition: border-color .15s, background .15s; }
.lx-drop svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lx-drop span { color: var(--text); font-weight: 600; font-size: calc(13.5px * var(--fs, 1)); }
.lx-drop small { font-size: calc(11px * var(--fs, 1)); line-height: 1.35; color: var(--faint); }
.lx-drop:hover, .lx-drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--buy) 6%, transparent); }
.lx-drop.has { padding: 0; border-style: solid; }
.lx-drop.has img { width: 100%; height: 100%; object-fit: cover; }
.lx-drop-x { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: calc(999px * var(--rs, 1)); background: rgba(0, 0, 0, .65); font-size: calc(12px * var(--fs, 1)) !important; }
.lx-fields { display: grid; gap: 4px; align-content: start; }
.fld > span .cnt { float: right; font-style: normal; color: var(--faint); font-variant-numeric: tabular-nums; }
.fld > span .cnt.full { color: var(--warn); }
.lx-tick { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: calc(8px * var(--rs, 1)); background: var(--ink); padding-left: 11px; }
.lx-tick b { color: var(--muted); font-weight: 600; }
.lx-tick input { border: 0; background: none; padding-left: 4px; }
.lx-tick:focus-within { border-color: var(--accent); }
.lx-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lx-links .fld { margin: 0; }
.lx-links .xfill { float: right; margin: 0; text-decoration: none; }
.lx-venues { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lx-venues .vopt small { color: var(--muted); font-size: calc(12.5px * var(--fs, 1)); line-height: 1.4; }
.lx-venues + .mayhem-box { margin-top: 10px; }
.lx-buy { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px; align-items: center; }
.lx-buy .quick { margin: 0; }
.lx-side { position: sticky; top: 68px; display: grid; gap: 14px; }
.lx-pv { padding: 14px; border: 1px solid var(--line); border-radius: calc(12px * var(--rs, 1)); background: var(--panel); }
.lx-pv-l { display: block; font-size: calc(12.5px * var(--fs, 1)); color: var(--muted); margin-bottom: 10px; }
.pv-card { border: 1px solid var(--line); border-radius: calc(10px * var(--rs, 1)); background: var(--ink); cursor: default; }
.pv-card:hover { transform: none; background: var(--ink); }
.pv-card .pimg { display: grid; place-items: center; font-size: calc(26px * var(--fs, 1)); font-weight: 700; }
.lx-pv-desc { margin: 10px 2px 0; font-size: calc(13px * var(--fs, 1)); color: var(--muted); overflow-wrap: anywhere; }
.chip.mayhem-chip { color: #ff8a8a; border-color: rgba(255, 92, 92, .35); }
.lx-cost { padding: 4px 2px; }
.lx-cost .kv { margin: 8px 0; }
.lx .steps { margin-top: 0; }
@media (max-width: 960px) {
  .lx { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lx-side { position: static; }
  .lx-links { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lx-coin { grid-template-columns: 1fr; }
  .lx-drop { width: 100%; height: 160px; }
  .lx-venues, .lx-buy { grid-template-columns: 1fr; }
}

.page-h .ph-t { flex: 1; min-width: 0; }
.page-h .ph-t h1 { flex: none; }
.page-h .ph-t p { margin: 2px 0 0; font-size: calc(13.5px * var(--fs, 1)); }
.trk { grid-template-columns: minmax(150px, 1.1fr) 130px minmax(0, 1fr) auto; }
.rw .page-h { margin-bottom: 0; }
.pv-card .pc-l1 { flex-wrap: wrap; }
.pv-card .pc-l1 .nm { white-space: normal; }

/* email confirmation code */
.confirm-modal .modal-box { max-width: 400px; }
.cf-f { display: grid; gap: 10px; margin: 16px 0 10px; }
.cf-code { font: 600 calc(28px * var(--fs, 1))/1 var(--mono, ui-monospace, monospace); letter-spacing: .45em; text-align: center; padding: 14px 10px 14px 22px;
  background: var(--panel); border: 1px solid var(--line, #1d211d); border-radius: calc(10px * var(--rs, 1)); color: var(--text, #f2f3f5); width: 100%; }
.cf-code:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.cf-err { margin: 0; }

/* alerts bell */
.bell { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: calc(8px * var(--rs, 1)); background: transparent;
  border: 1px solid var(--line); color: var(--text); cursor: pointer; margin-right: 8px; flex: none; }
.bell:hover { background: var(--panel); }
.bell svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bell b { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: calc(9px * var(--rs, 1)); background: var(--sell);
  color: #fff; font: 700 calc(10px * var(--fs, 1))/17px var(--font, inherit); text-align: center; }
.al-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 60vh; overflow: auto; }
.al-list li a { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-size: calc(13px * var(--fs, 1)); }
.al-list li.new a { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.al-side { font-size: calc(11px * var(--fs, 1)); font-weight: 700; padding: 2px 6px; border-radius: calc(5px * var(--rs, 1)); }
.al-side.buy { color: var(--buy); background: color-mix(in srgb, var(--buy) 14%, transparent); }
.al-side.sell { color: var(--sell); background: color-mix(in srgb, var(--sell) 14%, transparent); }
.al-foot { margin-top: 12px; }
.al-set { display: grid; gap: 8px; }
.al-tg { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: calc(8px * var(--rs, 1)); }
.al-tg span:first-child { display: grid; }
.al-tg.on { border-color: color-mix(in srgb, var(--buy) 40%, var(--line)); }

/* owner stats page */
.stp { display: grid; gap: 14px; }
.st-lock { max-width: 360px; margin: 60px auto; display: grid; gap: 10px; }
.st-lock form { display: grid; gap: 8px; }
.st-lock input { padding: 10px 12px; background: var(--ink); border: 1px solid var(--line); border-radius: calc(8px * var(--rs, 1)); color: var(--text); }
.st-sys { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: calc(11px * var(--fs, 1)); padding: 3px 8px; border-radius: calc(999px * var(--rs, 1)); border: 1px solid var(--line); color: var(--muted, #8c938c); }
.chip.ok { color: var(--buy); border-color: color-mix(in srgb, var(--buy) 35%, var(--line)); }
.st-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.st-tiles.sm { margin-top: 10px; }
.st-tile { background: var(--panel); border: 1px solid var(--line); border-radius: calc(10px * var(--rs, 1)); padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
.st-tile > span { font-size: calc(12px * var(--fs, 1)); color: var(--muted, #8c938c); display: flex; align-items: center; gap: 6px; }
.st-tile > b { font-size: calc(22px * var(--fs, 1)); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.st-tile small { font-size: calc(11.5px * var(--fs, 1)); overflow-wrap: anywhere; }
.st-live > b { font-size: calc(30px * var(--fs, 1)); color: var(--buy); }
.st-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--buy); flex: none; }
@media (prefers-reduced-motion: reduce) { .st-dot::after, .cp-pulse::after { animation: none; opacity: 0; } }
.st-chart { width: 100%; height: auto; display: block; margin-top: 8px; }
.st-bar { fill: var(--accent); opacity: .85; } .st-bar:hover { opacity: 1; }
.st-grid { stroke: var(--line); stroke-dasharray: 3 4; }
.st-ax { fill: var(--muted, #8c938c); font-size: calc(10px * var(--fs, 1)); }
.st-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.st-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .st-grid3, .st-grid2 { grid-template-columns: 1fr; } }
.stp h2 small { font-weight: 400; font-size: calc(12px * var(--fs, 1)); margin-left: 6px; }
.st-h2 { margin-top: 14px; }
.st-bars { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.st-bars li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto 34px; gap: 8px; align-items: center; font-size: calc(12.5px * var(--fs, 1)); }
.st-bl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-bt { height: 6px; background: var(--line); border-radius: calc(3px * var(--rs, 1)); overflow: hidden; }
.st-bt i { display: block; height: 100%; background: var(--accent); border-radius: calc(3px * var(--rs, 1)); }
.st-bars b { font-variant-numeric: tabular-nums; } .st-bars em { font-style: normal; font-size: calc(11px * var(--fs, 1)); text-align: right; }
.st-t { width: 100%; font-size: calc(12.5px * var(--fs, 1)); }
.stp .panel { overflow-x: auto; }

/* quietly logging back in */
.restore { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--accent); }
.restore p { margin: 0; }
.st-danger { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  border-color: color-mix(in srgb, var(--sell) 35%, var(--line)); }
.st-danger > div { flex: 1 1 320px; } .st-danger h2 { margin: 0 0 4px; } .st-danger p { margin: 0; }
.btn.danger { background: var(--sell); color: #fff; }

/* phones: full-screen blurs are expensive; use solid colours instead */
@media (max-width: 720px) {
  .lp-scrim { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(0,0,0,.82); }
  .login-card { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--panel); }
  .top, .bnav, .modal { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .top { background: var(--ink); }
}
.st-errs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.st-errs li { display: grid; grid-template-columns: 70px 1fr; gap: 8px; font-size: calc(12px * var(--fs, 1)); }
.st-errs code { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
@media (max-width: 720px) { .bnav { background: var(--ink); } }

/* wallet check under address boxes */
.wc { border: 1px solid var(--line); border-radius: calc(9px * var(--rs, 1)); padding: 10px 12px; margin: 6px 0 10px; font-size: calc(13px * var(--fs, 1)); display: grid; gap: 8px;
  animation: wc-in .22s cubic-bezier(.2,.8,.2,1); }
.wc[data-level="good"] { border-color: color-mix(in srgb, var(--buy) 45%, var(--line)); background: color-mix(in srgb, var(--buy) 6%, transparent); }
.wc[data-level="warn"], .wc[data-level="unknown"] { border-color: color-mix(in srgb, #f5b84b 45%, var(--line)); background: color-mix(in srgb, #f5b84b 6%, transparent); }
.wc[data-level="bad"] { border-color: color-mix(in srgb, var(--sell) 50%, var(--line)); background: color-mix(in srgb, var(--sell) 7%, transparent); }
.wc-row { display: flex; gap: 8px; align-items: center; }
.wc-row svg { width: 18px; height: 18px; flex: none; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wc[data-level="good"] svg { stroke: var(--buy); } .wc[data-level="bad"] svg { stroke: var(--sell); }
.wc[data-level="warn"] svg, .wc[data-level="unknown"] svg { stroke: #f5b84b; }
.wc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.wc-stats div { min-width: 0; } .wc-stats dt { font-size: calc(11px * var(--fs, 1)); color: var(--muted, #8c938c); }
.wc-stats dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) { .wc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wc-pnl { justify-self: start; font-size: calc(12.5px * var(--fs, 1)); }
@keyframes wc-in { from { opacity: 0; transform: translateY(-3px); } }

/* ---- motion, round 2: popups, new rows, skeletons, bell ---- */
.modal { animation: md-fade .16s ease-out both; }
.modal .modal-box { animation: md-rise .24s cubic-bezier(.2,.9,.3,1.05) both; }
.modal.closing { animation: md-fade .16s ease-in reverse forwards; }
.modal.closing .modal-box { animation: md-sink .16s ease-in forwards; }
@keyframes md-fade { from { opacity: 0; } }
@keyframes md-rise { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes md-sink { to { opacity: 0; transform: translateY(6px) scale(.985); } }
@media (max-width: 640px) {
  .modal.sheet .modal-box { animation: md-sheet .3s cubic-bezier(.2,.9,.3,1) both; }
  .modal.sheet.closing .modal-box { animation: md-sheet-out .17s ease-in forwards; }
}
@keyframes md-sheet { from { transform: translateY(100%); } }
@keyframes md-sheet-out { to { transform: translateY(100%); } }

/* a trade that just came in */
/* a trade that just came in: tinted, then fades back (a class on and off: only those rows restyle) */
.tbl.trades tbody tr { transition: background-color .8s steps(4, end); }   /* 4 steps: a fade in 4 paints, not 50 */
tr.row-new { background: color-mix(in srgb, var(--rc, var(--accent)) 16%, transparent); transition: none; }
tr.row-new.buy { --rc: var(--buy); } tr.row-new.sell { --rc: var(--sell); }

/* coin page tabs: the opened pane fades in */
[data-pane]:not([hidden]) { animation: pane-in .2s ease-out; }
@keyframes pane-in { from { opacity: 0; transform: translateY(4px); } }

/* loading placeholders */
.skel { display: grid; gap: 2px; padding: 4px 0; }
.skel-row { display: grid; grid-template-columns: 36px 1fr 64px; gap: 10px; align-items: center; padding: 10px 12px;
  animation: view-in .3s calc(var(--i) * 45ms) both; }
.skel.flat .skel-row { grid-template-columns: 28px 1fr 90px; }
.skel i { display: block; border-radius: calc(6px * var(--rs, 1)); background: linear-gradient(90deg, var(--line) 0%, var(--line-2) 40%, var(--line) 80%);
  background-size: 300% 100%; animation: sk-shine 1.4s linear infinite; }
.sk-av { width: 36px; height: 36px; border-radius: calc(9px * var(--rs, 1)) !important; } .skel.flat .sk-av { width: 28px; height: 28px; }
.skel span { display: grid; gap: 6px; } .sk-l { height: 11px; width: 55%; } .sk-s { height: 9px; width: 32%; }
.sk-r { height: 12px; width: 100%; }
@keyframes sk-shine { from { background-position: 100% 0; } to { background-position: -200% 0; } }

/* bell rings once when a new alert arrives */
.bell.ring svg { animation: bell-ring .7s cubic-bezier(.3,1.4,.5,1); transform-origin: 50% 10%; }
.bell.ring b { animation: md-rise .3s cubic-bezier(.3,1.6,.5,1); }
@keyframes bell-ring { 15% { transform: rotate(16deg); } 35% { transform: rotate(-13deg); } 55% { transform: rotate(8deg); } 75% { transform: rotate(-4deg); } }

/* hover lift for clickable panels, kept small */
.co, .st-tile, .al-list li a { transition: transform .15s ease, border-color .15s ease, background .15s ease; }
@media (hover: hover) { .co:hover { transform: translateY(-2px); border-color: var(--line-2); } }

@media (prefers-reduced-motion: reduce) {
  .modal, .modal .modal-box, tr.row-new, tr.row-new td, [data-pane]:not([hidden]), .skel-row, .bell.ring svg, .bell.ring b, .wc { animation: none !important; }
  .skel i { animation: none; }
  .co:hover { transform: none; }
}

/* what if (/larpmode67) */
.wi2 { display: grid; gap: 14px; }
.wi2-grid { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 900px) { .wi2-grid { grid-template-columns: 1fr; } }
.wi2-form { display: grid; gap: 14px; }
.wi2-form input { width: 100%; padding: 10px 12px; background: var(--ink); border: 1px solid var(--line); border-radius: calc(8px * var(--rs, 1)); color: var(--text); font: inherit; }
.wi2-form input:focus { outline: none; border-color: var(--accent); }
.wi2-form input[type="datetime-local"] { color-scheme: dark; }
.wi2-search { position: relative; }
.wi2-drop { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); background: var(--panel-2, #17181c); border: 1px solid var(--line-2);
  border-radius: calc(10px * var(--rs, 1)); padding: 4px; box-shadow: 0 16px 40px rgba(0,0,0,.5); animation: md-rise .16s ease-out; max-height: 340px; overflow: auto; }
.wi2-drop button { display: grid; grid-template-columns: 28px auto 1fr auto; gap: 8px; align-items: center; width: 100%; padding: 8px; background: none; border: 0;
  border-radius: calc(7px * var(--rs, 1)); color: var(--text); font: inherit; font-size: calc(13px * var(--fs, 1)); text-align: left; cursor: pointer; }
.wi2-drop button:hover { background: var(--line); }
.wi2-drop button span.muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wi2-drop p { padding: 8px; margin: 0; }
.wi2-coin { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: calc(10px * var(--rs, 1)); margin-top: -6px; animation: wc-in .2s ease-out; }
.wi2-coin > span:not(.spin) { display: grid; min-width: 0; } .wi2-cm { text-align: right; }
.wi2-hist { grid-column: 1 / -1; }
.wi2-amt { display: flex; gap: 8px; } .wi2-amt input { flex: 1; } .wi2-amt .seg { flex: none; }
.wi2-step { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.wi2-step legend { font-size: calc(13px * var(--fs, 1)); color: var(--muted, #8c938c); margin-bottom: 6px; padding: 0; }
.wi2-step .seg { display: flex; flex-wrap: wrap; } .wi2-step .seg button { flex: 1 1 auto; }
.wi2-out { min-height: 320px; display: grid; gap: 14px; align-content: start; }
.wi2-empty { display: grid; gap: 12px; justify-items: center; padding: 30px 10px; }
.wi2-ph { width: 100%; aspect-ratio: 16 / 9; border-radius: calc(14px * var(--rs, 1)); border: 1px dashed var(--line-2);
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.015) 14px 28px); }
.wi2-wrap { display: grid; place-items: center; min-height: 120px; }
.wi2-canvas { width: 100%; height: auto; border-radius: calc(14px * var(--rs, 1)); display: block; animation: md-rise .35s cubic-bezier(.2,.9,.3,1.05); }
.wi2-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wi2-sum > div { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: calc(10px * var(--rs, 1)); min-width: 0; }
.wi2-sum b { font-size: calc(18px * var(--fs, 1)); font-variant-numeric: tabular-nums; } .wi2-sum small { overflow-wrap: anywhere; }
@media (max-width: 520px) { .wi2-sum { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .wi2-canvas, .wi2-drop, .wi2-coin { animation: none; } }
.wi2-ph.wi2-err { border-color: color-mix(in srgb, var(--sell) 40%, var(--line)); }

/* chart: live dot on the last price, countdown to the next candle, a little depth */
.chart-area { background: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--buy) 6%, transparent), transparent 60%); }
.c-dot { position: absolute; z-index: 2; left: 0; top: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--buy); pointer-events: none; will-change: transform; }
.c-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--buy); opacity: 0; animation: c-ping 1.6s ease-out infinite; }
.c-dot.down { background: var(--sell); } .c-dot.down::after { border-color: var(--sell); }
@keyframes c-ping { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.c-next { position: absolute; z-index: 2; right: 0; top: 0; min-width: 58px; padding: 1px 6px; font: 600 calc(10.5px * var(--fs, 1))/16px var(--font, Geist, system-ui);
  text-align: center; color: #fff; background: color-mix(in srgb, var(--buy) 70%, #000); border-radius: calc(3px * var(--rs, 1)) 0 0 calc(3px * var(--rs, 1)); pointer-events: none;
  font-variant-numeric: tabular-nums; transition: transform .1s linear; }
.c-next.down { background: color-mix(in srgb, var(--sell) 70%, #000); }
@media (prefers-reduced-motion: reduce) { .c-dot::after { animation: none; } .c-dot, .c-next { transition: none; } }

/* trade panel: Market / Limit / Adv., quick sell, auto sell after a buy */
.tmodes { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin: 2px 0 12px; }
.tmodes button { background: none; border: 0; color: var(--muted, #8c938c); font: inherit; font-size: calc(13.5px * var(--fs, 1)); font-weight: 500; padding: 6px 0 9px;
  cursor: pointer; position: relative; }
.tmodes button.on { color: var(--text); }
.tmodes button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text); border-radius: calc(2px * var(--rs, 1));
  animation: md-rise .2s ease-out; }
.adv-k { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.adv-k button { padding: 6px 10px; border-radius: calc(7px * var(--rs, 1)); border: 1px solid var(--line); background: transparent; color: var(--muted, #8c938c);
  font: inherit; font-size: calc(12.5px * var(--fs, 1)); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.adv-k button.on { background: var(--accent); border-color: var(--accent); color: var(--gold-ink); }
.adv-note { margin: 4px 0 10px; } .adv-note b { color: var(--text); }
.lim-sl { margin: 2px 0 12px; } .lim-sl input { width: 100%; accent-color: var(--accent); }
.lim-ticks { display: flex; justify-content: space-between; font-size: calc(10.5px * var(--fs, 1)); color: var(--muted, #8c938c); margin-top: 2px; }
.qsell { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 6px; align-items: center; margin-top: 10px; animation: wc-in .2s ease-out; }
.qsell span { font-size: calc(12px * var(--fs, 1)); color: var(--muted, #8c938c); padding-right: 4px; }
.qsell button { padding: 8px 0; border-radius: calc(8px * var(--rs, 1)); border: 1px solid color-mix(in srgb, var(--act-sell) 45%, var(--line));
  background: color-mix(in srgb, var(--sell) 12%, transparent); color: var(--sell); font: inherit; font-weight: 600; font-size: calc(13px * var(--fs, 1)); cursor: pointer;
  transition: background .15s, transform .1s; }
.qsell button:hover { background: color-mix(in srgb, var(--act-sell) 22%, transparent); }
.qsell button:active { transform: scale(.96); } .qsell button:disabled { opacity: .55; }
.strat { margin: 4px 0 10px; }
.chk { display: flex; gap: 8px; align-items: center; font-size: calc(13px * var(--fs, 1)); cursor: pointer; }
.chk input { accent-color: var(--accent); width: 16px; height: 16px; }
.chk em { font-style: normal; }
#strat-rows { display: grid; gap: 6px; margin-top: 8px; animation: wc-in .2s ease-out; }
.srow { display: grid; grid-template-columns: 1fr auto auto auto; gap: 6px; align-items: center; padding: 6px 8px; border: 1px solid var(--line);
  border-radius: calc(8px * var(--rs, 1)); font-size: calc(12.5px * var(--fs, 1)); }
.srow label { display: flex; align-items: center; gap: 3px; color: var(--muted, #8c938c); }
.srow input { width: 44px; padding: 4px 5px; background: var(--ink); border: 1px solid var(--line); border-radius: calc(6px * var(--rs, 1)); color: var(--text);
  font: inherit; text-align: right; }
.srow .link { font-size: calc(16px * var(--fs, 1)); line-height: 1; padding: 0 2px; }
.sadd { display: flex; flex-wrap: wrap; gap: 6px; }
.sadd button { background: none; border: 1px dashed var(--line-2); border-radius: calc(7px * var(--rs, 1)); color: var(--muted, #8c938c); font: inherit; font-size: calc(12px * var(--fs, 1));
  padding: 5px 8px; cursor: pointer; }
.sadd button:hover { color: var(--text); border-color: var(--text); }
.o-hint { margin-top: 8px; }
#o-list .olist { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .tmodes button.on::after, .qsell, #strat-rows { animation: none; } }

/* SPEED: long coin lists only lay out and paint the cards on screen, and a column's updates stay inside it */
.plist { contain: content; }
.plist > [data-card] { content-visibility: auto; contain-intrinsic-size: auto 140px; }
.d-tbl tbody, #d-body { contain: content; }
#speed { align-items: center; } #speed button { font-weight: 500; }

.keys { margin: 8px 0 0; font-size: calc(11px * var(--fs, 1)); color: var(--muted); display: flex; gap: 4px; align-items: center; justify-content: center; opacity: .7; }
.keys kbd { font: 600 calc(10px * var(--fs, 1))/1 var(--mono, ui-monospace, monospace); padding: 3px 5px; border-radius: calc(4px * var(--rs, 1)); border: 1px solid var(--line); background: var(--panel-2); color: var(--text); }
.keys kbd + kbd { margin-left: 1px; }
@media (hover: none), (max-width: 900px) { .keys { display: none; } }
/* phones: page titles take their own line instead of being squeezed beside the buttons */
.page-h .ph-t { flex: 1 1 260px; }
/* portfolio positions on phones: the two action buttons stack, the table can scroll if a value is long */
#pf-pos { overflow-x: auto; }
@media (max-width: 640px) {
  #pf-pos td.tact { white-space: normal; }
  #pf-pos td.tact > * { display: block; margin: 0 0 4px auto; width: max-content; }
  #pf-pos .tbl th, #pf-pos .tbl td { padding-left: 4px; padding-right: 4px; font-size: calc(13px * var(--fs, 1)); }
  #pf-pos .tbl td:first-child { max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
}
.pip-pop { cursor: pointer; pointer-events: auto; }
.st-fees-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.st-fees .pf-bal { font-size: calc(28px * var(--fs, 1)); }
/* Pip: safety / momentum dials, the plan, memory, score breakdown */
.pip-dials { display: grid; gap: 6px; margin: 10px 0 2px; }
.pip-dial { display: grid; grid-template-columns: 74px 1fr 26px; align-items: center; gap: 8px; font-size: calc(12px * var(--fs, 1)); color: var(--muted); }
.pip-dial i { height: 6px; border-radius: calc(3px * var(--rs, 1)); background: var(--panel-2); overflow: hidden; }
.pip-dial i b { display: block; height: 100%; border-radius: calc(3px * var(--rs, 1)); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.pip-dial i b.hi { background: var(--buy); } .pip-dial i b.mid { background: var(--warn); } .pip-dial i b.lo { background: var(--sell); }
.pip-dial em { font-style: normal; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.pip-plan { margin: 10px 0; padding: 10px 12px; border-radius: calc(12px * var(--rs, 1)); border: 1px solid var(--line); display: grid; gap: 2px; }
.pip-plan > b { font-size: calc(13px * var(--fs, 1)); margin-bottom: 2px; }
.pip-plan .kv { margin: 3px 0; font-size: calc(13px * var(--fs, 1)); }
.pip-plan .quick { margin-top: 6px; }
.pip-plan p { margin: 0; }
.pip-mem { margin: 4px 0 0; padding-left: 9px; border-left: 2px solid var(--line); }
.pip-fams { margin: 8px 0 4px; }
.pip-fams summary { cursor: pointer; list-style: none; }
.pip-fams summary::-webkit-details-marker { display: none; }
.pip-fams summary::before { content: "▸ "; } .pip-fams[open] summary::before { content: "▾ "; }
.pip-fams .kv { margin: 3px 0; font-size: calc(12.5px * var(--fs, 1)); }
.pip-ask { flex-wrap: wrap; }

/* every new price: one quick ripple from the live dot */
.c-dot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; opacity: 0; }
.c-dot.ping::before { animation: c-tick .55s cubic-bezier(.2, .8, .2, 1); }
@keyframes c-tick { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(3.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .c-dot.ping::before { animation: none; } }
/* claim animation: SOL coins flying into the balance */
.fly-coin { position: fixed; left: 0; top: 0; z-index: 95; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #fff8 0 18%, transparent 19%), linear-gradient(135deg, #9945ff, #14f195);
  box-shadow: 0 0 0 1.5px #0b0c10, 0 4px 12px rgba(20, 241, 149, .35); will-change: transform; }
.btn.claimed { background: var(--buy) !important; color: var(--buy-ink) !important; border-color: transparent !important; }
.btn.claimed .ck { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 20; stroke-dashoffset: 20; animation: ck-draw .35s .05s ease-out forwards; }
@keyframes ck-draw { to { stroke-dashoffset: 0; } }
.acct .bal.bal-up { color: var(--buy); transition: color .3s; }
@media (prefers-reduced-motion: reduce) { .btn.claimed .ck { animation: none; stroke-dashoffset: 0; } }

/* ---- polish pass: details that make it feel finished ---- */
::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); color: #fff; }
:where(button, a, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 80%, #fff); outline-offset: 2px; border-radius: calc(6px * var(--rs, 1)); }
:where(input, select, textarea):focus-visible { outline-offset: 0; }
* { scrollbar-width: thin; scrollbar-color: #2a2f2a transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: #2a2f2a; border-radius: calc(8px * var(--rs, 1)); border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: #3a3e4c; } ::-webkit-scrollbar-track { background: transparent; }
/* numbers line up in columns and don't jiggle while they change */
.tbl td, .kv b, .st-tile b, #bal, .acct .bal, .pf-bal, .rw-big, #out, #fee, .pip-plan b, .stats b, .c-next { font-variant-numeric: tabular-nums; }
button:disabled, .btn:disabled { cursor: not-allowed; }
a { text-underline-offset: 2px; }
/* the Buy / Sell button right after a trade is sent */
#go.done { background: var(--act-buy); color: var(--act-buy-ink); }
#go.sell.done { background: var(--act-sell); color: var(--act-sell-ink); }
/* a trade shown instantly, still confirming on Solana */
tr.pending td { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--rc, var(--buy)) 9%, transparent), transparent) 0 0 / 200% 100%;
  animation: pend-sweep 1.4s linear infinite; }
tr.pending.sell { --rc: var(--sell); }
@keyframes pend-sweep { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.cfm { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: calc(999px * var(--rs, 1)); font-size: calc(11px * var(--fs, 1)); color: var(--muted); border: 1px solid var(--line); }
.cfm::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--warn); vertical-align: 1px; animation: cfm-blink 1s ease-in-out infinite; }
@keyframes cfm-blink { 50% { opacity: .25; } }
/* toasts: a thin bar that shows how long it stays */
.toast { position: relative; overflow: hidden; }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: currentColor; opacity: .18; transform-origin: left;
  animation: toast-time var(--ms, 5000ms) linear forwards; }
@keyframes toast-time { to { transform: scaleX(0); } }
.qb.done { background: var(--act-buy) !important; color: var(--act-buy-ink) !important; }
@media (prefers-reduced-motion: reduce) { tr.pending td, .cfm::before, .toast::after { animation: none; } }

/* withdraw: what Solana says about the address, right under it */
.wd-chk { margin: 0; padding: 7px 10px; border-radius: calc(8px * var(--rs, 1)); font-size: calc(12.5px * var(--fs, 1)); line-height: 1.4; background: var(--panel-2, rgba(255,255,255,.04)); color: var(--muted); overflow-wrap: anywhere; }
.wd-chk::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.wd-chk.good { color: var(--buy); background: color-mix(in srgb, var(--buy) 9%, transparent); }
.wd-chk.warn, .wd-chk.unknown { color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.wd-chk.bad { color: var(--sell); background: color-mix(in srgb, var(--sell) 10%, transparent); }
.wd-chk:has(.spin)::before, .wd-chk .spin + * { display: none; }
.wd-chk .link { margin-left: 4px; color: inherit; text-decoration: underline; }

/* ------------------------------------------------------------- stocks */
.stk .page-h { align-items: flex-end; }
.stk-acct { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 0; margin-bottom: 12px; }
.stk-acct > div { display: grid; gap: 2px; align-content: start; padding: 12px 16px; border-right: 1px solid var(--line); min-width: 0; }
.stk-acct > div:last-child { border-right: 0; }
.stk-acct > div > span { font-size: calc(12px * var(--fs, 1)); color: var(--muted); }
.stk-acct b { font-size: calc(18px * var(--fs, 1)); font-weight: 650; letter-spacing: -.01em; white-space: nowrap; }
.stk-acct em { font-style: normal; font-size: calc(12px * var(--fs, 1)); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stk-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.stk-grid > .panel + .panel { margin-top: 0; }
.stk-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.stk-main .panel + .panel { margin-top: 0; }
.stk-list { padding: 12px; position: sticky; top: 70px; }
.stk-search { position: relative; margin-bottom: 10px; }
.stk-search svg { position: absolute; left: 10px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.6; }
.stk-search input { width: 100%; padding: 8px 10px 8px 31px; background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-ctl); }
.stk-search input:focus { border-color: var(--line-2); outline: none; }
.stk-rows { display: grid; max-height: calc(100vh - 230px); overflow-y: auto; margin: 0 -6px; scrollbar-width: thin; }
.stk-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 64px 82px; gap: 10px; align-items: center; padding: 8px 6px; border: 0; border-radius: calc(6px * var(--rs, 1));
  background: none; text-align: left; cursor: pointer; }
.stk-res { grid-template-columns: 30px minmax(0, 1fr) auto; }
.stk-row:hover { background: var(--panel-2); }
.stk-row.on { background: var(--panel-3); }
.stk-id { display: grid; min-width: 0; }
.stk-id b { font-size: calc(13.5px * var(--fs, 1)); }
.stk-id small, .stk-row > small { color: var(--muted); font-size: calc(12px * var(--fs, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stk-px { display: grid; justify-items: end; font-size: calc(13px * var(--fs, 1)); }
.stk-px b { font-weight: 600; }
.stk-px span { font-size: calc(12px * var(--fs, 1)); }
.stk-sp { width: 64px; height: 22px; }
.stk-logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: calc(8px * var(--rs, 1)); background: var(--panel-3); border: 1px solid var(--line-2);
  font-size: calc(11px * var(--fs, 1)); font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.stk-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 86px; }
.stk-h-id { display: flex; gap: 12px; align-items: center; min-width: 0; }
.stk-h-id .stk-logo { width: 42px; height: 42px; font-size: calc(14px * var(--fs, 1)); border-radius: calc(10px * var(--rs, 1)); }
.stk-h-id h2 { font-size: calc(20px * var(--fs, 1)); display: flex; align-items: center; gap: 8px; }
.stk-h-id p { margin: 2px 0 0; font-size: calc(13px * var(--fs, 1)); }
.stk-badge { font-size: calc(11px * var(--fs, 1)); font-weight: 600; padding: 2px 7px; border-radius: calc(999px * var(--rs, 1)); background: var(--panel-3); color: var(--muted); letter-spacing: 0; }
.stk-badge.open { color: var(--buy); background: color-mix(in srgb, var(--buy) 12%, transparent); }
.stk-badge.ext { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.stk-h-px { display: grid; justify-items: end; gap: 1px; }
.stk-h-px b { font-size: calc(28px * var(--fs, 1)); font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }
.stk-h-px span { font-size: calc(14px * var(--fs, 1)); }
.stk-h-px small { font-size: calc(12px * var(--fs, 1)); }
.stk-chart-p { padding: 12px 12px 6px; }
.stk-ch-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.stk-chart { position: relative; height: 380px; }
.stk-chart-msg { position: absolute; inset: 0; display: grid; place-content: center; margin: 0; z-index: 2; }
.stk-trade { position: sticky; top: 70px; }
.stk-trade .fld { margin-bottom: 8px; }
.stk-trade input:not([type=range]) { width: 100%; padding: 11px 12px; font-size: calc(18px * var(--fs, 1)); background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-ctl); }
.stk-trade input:not([type=range]):focus { border-color: var(--line-2); outline: none; }
.stk-presets { margin-bottom: 12px; min-height: 26px; }
.stk-est { border-top: 1px solid var(--line); padding-top: 6px; margin-bottom: 12px; }
.stk-est .kv { font-size: calc(13px * var(--fs, 1)); margin: 6px 0; }
.stk .btn.long { background: var(--buy); color: var(--buy-ink); }
.stk .btn.short { background: var(--sell); color: var(--sell-ink); }
.stk-side button[data-s="long"].on { background: color-mix(in srgb, var(--buy) 18%, var(--panel-2)); color: var(--buy); }
.stk-side button[data-s="short"].on { background: color-mix(in srgb, var(--sell) 18%, var(--panel-2)); color: var(--sell); }
/* leverage: risk colours, a filling bar, tick marks, a sliding preset pill, a number that pops */
@property --p { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
.stk-lev { --lc: var(--buy); margin: 2px 0 12px; transition: --p .28s cubic-bezier(.2,.9,.25,1); }
.stk-lev[data-tier="mid"] { --lc: #8fd36b; }
.stk-lev[data-tier="hi"] { --lc: var(--warn); }
.stk-lev[data-tier="x"] { --lc: var(--sell); }
.stk-lev-h { display: flex; align-items: baseline; gap: 8px; font-size: calc(13px * var(--fs, 1)); color: var(--muted); margin-bottom: 4px; }
.stk-lev-h b { margin-left: auto; font-size: calc(20px * var(--fs, 1)); color: var(--lc); font-variant-numeric: tabular-nums; transition: color .25s; display: inline-block; }
.stk-lev-h b.pop { animation: lev-pop .32s cubic-bezier(.3,1.6,.5,1); }
@keyframes lev-pop { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
.stk-lev-risk { font-size: calc(11px * var(--fs, 1)); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--lc); }
.stk-lev.warn .stk-lev-h { animation: lev-shake .35s; }
@keyframes lev-shake { 25% { transform: translateX(-3px); } 50% { transform: translateX(3px); } 75% { transform: translateX(-2px); } }
.stk-lev-track { position: relative; padding: 10px 0 8px; }
#stk-lev { display: block; position: relative; z-index: 1; width: 100%; height: 6px; padding: 0; border: 0; margin: 0; appearance: none; -webkit-appearance: none;
  border-radius: calc(999px * var(--rs, 1)); cursor: pointer; background: linear-gradient(90deg, var(--buy) 0%, var(--lc) var(--p), var(--line-2) var(--p)); }
#stk-lev:focus { outline: none; }
#stk-lev::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--lc);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--lc) 22%, transparent), 0 2px 8px rgba(0,0,0,.5); transition: transform .15s, border-color .25s, box-shadow .25s; }
#stk-lev:active::-webkit-slider-thumb { transform: scale(1.18); box-shadow: 0 0 0 8px color-mix(in srgb, var(--lc) 18%, transparent), 0 2px 10px rgba(0,0,0,.5); }
#stk-lev::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--lc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lc) 22%, transparent); }
/* scale marks under the bar at 1, 5, 10, 15, 20x */
.stk-lev-ticks { position: absolute; left: 10px; right: 10px; top: 22px; height: 4px; pointer-events: none; }
.stk-lev-ticks i { position: absolute; top: 0; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: rgba(255,255,255,.22); }
.stk-lev-c { position: relative; display: flex; justify-content: space-between; gap: 4px; margin-top: 6px; }
.stk-lev-c button { position: relative; z-index: 1; flex: 1; border: 0; background: none; color: var(--muted); padding: 5px 0; border-radius: calc(999px * var(--rs, 1));
  font-size: calc(12px * var(--fs, 1)); font-weight: 600; cursor: pointer; transition: color .2s; }
.stk-lev-c button.on { color: #000000; }
.stk-lev-c button:hover:not(.on) { color: var(--text); }
.stk-lev-pill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: calc(999px * var(--rs, 1)); background: var(--lc); opacity: 0;
  transition: transform .3s cubic-bezier(.2,.9,.25,1.1), width .3s, background .25s, opacity .2s; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .stk-lev, .stk-lev-pill, .stk-lev-h b { transition: none; animation: none !important; } }
.stk-tp-t { display: block; margin: -4px 0 10px; text-decoration: none; color: var(--muted); }
.stk-tp-t:hover { color: var(--text); }
.stk-tp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stk-tp input { font-size: calc(14px * var(--fs, 1)) !important; padding: 9px 10px !important; }
.stk-tp .inp-suffix em { font-size: calc(11.5px * var(--fs, 1)); }
.stk-est small { font-weight: 400; color: var(--muted); }
.stk-hint { margin: 6px 0 0; font-size: calc(12px * var(--fs, 1)); color: var(--warn); }
.stk-side-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: calc(4px * var(--rs, 1)); font-size: calc(11px * var(--fs, 1)); font-weight: 700; letter-spacing: .01em; vertical-align: 1px; }
.stk-side-tag.long { color: var(--buy); background: color-mix(in srgb, var(--buy) 13%, transparent); }
.stk-side-tag.short { color: var(--sell); background: color-mix(in srgb, var(--sell) 13%, transparent); }
.stk-tbl td small { display: block; font-size: calc(11.5px * var(--fs, 1)); }
.stk-acts { text-align: right; }
.stk-acts .btn + .btn { margin-left: 4px; }
.stk-k { font-weight: 600; }
.stk-k.open { color: var(--text); } .stk-k.close { color: var(--muted); } .stk-k.liquidated { color: var(--warn); }
.stk-k.take_profit { color: var(--buy); } .stk-k.stop { color: var(--sell); }
.stk-ch-top .stk-src { margin-left: auto; }
.stk-legend { position: absolute; left: 6px; top: 2px; z-index: 3; display: flex; gap: 10px; font-size: calc(11.5px * var(--fs, 1)); color: var(--muted); pointer-events: none; }
.stk-legend b { color: var(--text); font-weight: 600; }
.stk-live { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--buy); vertical-align: 1px; position: relative; }
.stk-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--buy); animation: dot-ring 1.8s ease-out infinite; }
.stk-tps .row-btns { display: flex; gap: 8px; justify-content: flex-end; }
.stk-tps .inp-suffix em { font-size: calc(12px * var(--fs, 1)); }
.stk-note { margin: 10px 0 0; }
.stk-book .panel-h { margin-bottom: 4px; }
.stk-tbl td, .stk-tbl th { white-space: nowrap; }
.stk-tbl tbody tr { cursor: pointer; }
.stk-tbl tbody tr:hover { background: var(--panel-2); }
.stk-tbl td small { font-size: calc(12px * var(--fs, 1)); }
.tbl-wrap { overflow-x: auto; }
@media (max-width: 1180px) {
  .stk-acct { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stk-acct > div:nth-child(3) { border-right: 0; }
  .stk-acct > div:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 1180px) and (min-width: 901px) {
  .stk-grid { grid-template-columns: 260px minmax(0, 1fr); }
  .stk-list { grid-row: 1 / span 2; grid-column: 1; }
  .stk-main { grid-row: 1; grid-column: 2; }
  .stk-trade { grid-row: 2; grid-column: 2; position: static; }
}
@media (max-width: 900px) {
  .stk .page-h { align-items: flex-start; }
  .stk-acct { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stk-acct > div { padding: 10px 12px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
  .stk-acct > div:nth-child(-n+2) { border-top: 0; }
  .stk-acct > div:nth-child(2n+1) { border-right: 1px solid var(--line); }
  .stk-acct > div:nth-child(2n) { border-right: 0; }
  .stk-acct b { font-size: calc(16px * var(--fs, 1)); }
  /* phone: price, chart, trade box, the list, then your positions */
  .stk-grid { grid-template-columns: minmax(0, 1fr); }
  .stk-main { display: contents; }
  .stk-trade, .stk-list { position: static; }
  .stk-head { order: 1; } .stk-chart-p { order: 2; } .stk-trade { order: 3; } .stk-book { order: 4; } .stk-list { order: 5; }
  .stk-rows { max-height: none; }
  .stk-chart { height: 280px; }
  .stk-h-px b { font-size: calc(24px * var(--fs, 1)); }
  .stk-head { min-height: 0; }
}
.stk-tpsl-b { display: grid; text-align: left; text-decoration: none; font-size: calc(12.5px * var(--fs, 1)); }
.stk-tpsl-b:hover { text-decoration: underline; }
.stk-tbl th, .stk-tbl td { padding-left: 8px; padding-right: 8px; }
/* phones: positions as cards */
.stk-cards { display: grid; gap: 10px; }
.stk-pc { border: 1px solid var(--line); border-radius: calc(8px * var(--rs, 1)); padding: 12px; background: var(--panel-2); }
.stk-pc-h { display: flex; align-items: center; gap: 4px; }
.stk-pc-h [data-k=pnl] { margin-left: auto; text-align: right; font-weight: 650; }
.stk-pc-h small { display: block; font-size: calc(11.5px * var(--fs, 1)); font-weight: 500; }
.stk-pc-g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 10px 0; }
.stk-pc-g span { display: block; font-size: calc(11.5px * var(--fs, 1)); color: var(--muted); }
.stk-pc-g b { font-weight: 600; font-size: calc(14px * var(--fs, 1)); }
.stk-pc-g small { display: block; font-size: calc(11.5px * var(--fs, 1)); font-weight: 400; }
.stk-pc-a { display: flex; gap: 6px; flex-wrap: wrap; }
.stk-pc-a .btn:first-child { flex: 1 1 100%; }
.stk-pc-a .btn:not(:first-child) { flex: 1; }
/* stocks: limit orders and draggable chart lines */
.stk-ot { margin-bottom: 10px; }
.stk-lim .fld { margin-bottom: 6px; }
.stk-lim .chips { margin-bottom: 12px; }
.stk-drag { position: absolute; top: 0; bottom: 0; left: 0; right: 60px; z-index: 4; pointer-events: none; }
.stk-hd { position: absolute; right: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px 0 4px; border-radius: calc(5px * var(--rs, 1));
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 14%, var(--panel)); color: var(--text);
  font: 600 calc(11.5px * var(--fs, 1))/1 var(--font); white-space: nowrap; cursor: ns-resize; pointer-events: auto; touch-action: none; user-select: none; will-change: transform; }
.stk-hd i { font-style: normal; color: var(--c); letter-spacing: -2px; font-size: calc(11px * var(--fs, 1)); opacity: .8; }
.stk-hd b { color: var(--c); font-weight: 700; }
.stk-hd span { font-weight: 600; }
.stk-hd:hover, .stk-hd.on { background: color-mix(in srgb, var(--c) 24%, var(--panel)); }
.stk-hd.on { box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.stk-hd.bad { border-color: var(--sell); }
.stk-hd.add { right: 0; border-style: dashed; background: var(--panel); opacity: .75; }
.stk-hd.add:hover { opacity: 1; }
.stk-sub { display: flex; align-items: baseline; gap: 10px; font-size: calc(14px * var(--fs, 1)); margin: 16px 0 8px; }
.stk-ords { display: grid; gap: 6px; }
.stk-ord { display: grid; grid-template-columns: minmax(130px, 1.2fr) 1fr 1fr 1fr auto; gap: 12px; align-items: center; padding: 9px 10px;
  border: 1px dashed var(--line-2); border-radius: calc(8px * var(--rs, 1)); font-size: calc(13.5px * var(--fs, 1)); cursor: pointer; }
.stk-ord:hover { background: var(--panel-2); }
.stk-ord small { display: block; font-size: calc(11.5px * var(--fs, 1)); color: var(--muted); }
.stk-ord em { display: block; font-style: normal; font-size: calc(11.5px * var(--fs, 1)); }
@media (max-width: 900px) {
  .stk-ord { grid-template-columns: 1fr 1fr; }
  .stk-ord .btn { grid-column: 1 / -1; }
  .stk-hd { height: 26px; font-size: calc(12px * var(--fs, 1)); }
}
/* header search: stock results */
.hs-sec { margin: 0; padding: 8px 12px 4px; font-size: calc(11px * var(--fs, 1)); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); border-top: 1px solid var(--line); }
.hs-tk { display: grid; place-items: center; width: 22px; height: 22px; border-radius: calc(6px * var(--rs, 1)); background: var(--panel-3); font-size: calc(9.5px * var(--fs, 1)); font-weight: 700; color: var(--muted); }
/* human check before withdrawals: slide the coin into the slot */
.hc { margin: 14px 0 6px; }
.hc-track { position: relative; height: 52px; border-radius: calc(999px * var(--rs, 1)); background: var(--ink); border: 1px solid var(--line-2); touch-action: none; user-select: none; }
.hc-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: calc(999px * var(--rs, 1)); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 25%, transparent)); pointer-events: none; }
.hc-slot { position: absolute; top: 6px; width: 40px; height: 40px; border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--accent) 70%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); pointer-events: none; transition: border-color .2s, background .2s; }
.hc-knob { position: absolute; top: 4px; left: 5px; width: 42px; height: 42px; border-radius: 50%; border: 0; padding: 0; cursor: grab;
  display: grid; place-items: center; color: var(--gold-ink); background: radial-gradient(circle at 35% 30%, #7ef0a8, var(--accent) 60%, #14532d);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--buy) 45%, transparent); touch-action: none; }
.hc-knob svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.hc-knob.back { transition: left .28s cubic-bezier(.2,.9,.25,1); }
.hc-track.drag .hc-knob { cursor: grabbing; }
.hc-track.near .hc-slot { border-color: var(--buy); background: color-mix(in srgb, var(--buy) 14%, transparent); }
.hc.ok .hc-knob { background: var(--buy); box-shadow: 0 0 0 6px color-mix(in srgb, var(--buy) 22%, transparent); }
.hc.shake { animation: lev-shake .35s; }
.hc-msg { min-height: 18px; margin: 6px 0 0; color: var(--muted); }
.hc-ts { display: flex; justify-content: center; min-height: 68px; }

/* ---------- networks: chain picker, chain badges, EVM token page ---------- */
.cdot { --c: #888; --s: 18px; display: inline-grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%; flex-shrink: 0;
  background: color-mix(in srgb, var(--c) 22%, var(--panel-2)); border: 1.5px solid var(--c); color: var(--c);
  font: 800 calc(var(--s) * 0.5)/1 var(--font); font-style: normal; }
.chain-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 6px; border-radius: calc(999px * var(--rs, 1));
  border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; }
.chain-btn:hover { color: var(--text); border-color: var(--line-2); }
.chain-btn .cstack { display: inline-flex; }
.chain-btn .cstack .cdot + .cdot { margin-left: -6px; box-shadow: 0 0 0 2px var(--panel); }
.chain-btn em { font-style: normal; font-size: calc(12px * var(--fs, 1)); font-weight: 600; }
.chain-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chain-list { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 14px; overflow-y: auto; }
.chain-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: calc(10px * var(--rs, 1)); cursor: pointer; border: 1px solid transparent; }
.chain-row:hover { background: var(--panel-2); }
.chain-row.on { background: var(--panel-2); border-color: var(--line-2); }
.chain-row input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.chain-row b { font-size: calc(15px * var(--fs, 1)); min-width: 48px; }
.chains-m .f-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chains-m .f-foot .btn { width: 100%; }
.chain-dot { position: absolute; top: -5px; left: -5px; line-height: 0; }
.chain-dot .cdot { box-shadow: 0 0 0 2px var(--panel); }
.timg-w { position: relative; display: inline-block; flex-shrink: 0; }
.chip.net { color: var(--text); }
.qb.view { background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); font-weight: 600; }
.pc.evm:hover .qb.view, .tr-row:hover .qb.view { color: var(--text); }
.dep-nets { overflow-x: auto; scrollbar-width: none; }
.dep-nets button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-weight: 600; font-size: calc(12px * var(--fs, 1)); padding: 6px 6px; }
/* the network tabs keep their full width (icon + name) and the row scrolls sideways instead of squeezing them on top of each other */
.seg.wide.dep-nets { justify-content: flex-start; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.seg.wide.dep-nets button { flex: 1 0 auto; min-width: max-content; white-space: nowrap; padding: 7px 10px; scroll-snap-align: start; }
.dep-nets::-webkit-scrollbar { display: none; }
.pf-evm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.evm-bals { display: flex; flex-wrap: wrap; gap: 6px; }
.evm-bal { display: inline-flex; align-items: center; gap: 5px; background: var(--panel-2); border: 1px solid var(--line); border-radius: calc(999px * var(--rs, 1)); padding: 3px 9px 3px 4px; font-size: calc(12.5px * var(--fs, 1)); cursor: pointer; }
.evm-bal:hover { border-color: var(--line-2); }
.evm-bal em { font-style: normal; color: var(--muted); }
.tok { max-width: 1400px; margin: 0 auto; }
.tk-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; }
.tk-img { position: relative; flex-shrink: 0; }
.tk-img .pimg { width: 56px; height: 56px; }
.tk-id { min-width: 0; }
.tk-id h1 { font-size: calc(22px * var(--fs, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-id h1 .nm { font-size: calc(15px * var(--fs, 1)); color: var(--muted); font-weight: 500; }
.tk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.tk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; align-items: start; }
.tk-chart iframe { display: block; width: 100%; height: min(72vh, 620px); border: 0; background: var(--ink); }
.tk-side .panel + .panel { margin-top: 12px; }
.tk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.tk-stat > span { display: block; font-size: calc(12px * var(--fs, 1)); color: var(--muted); }
.tk-stat b { font-size: calc(16px * var(--fs, 1)); }
.tk-stat em { display: block; font-style: normal; font-size: calc(12px * var(--fs, 1)); }
.tk-stat:last-child { grid-column: 1 / -1; }
.tk-you h2 { margin-bottom: 8px; }
.tk-you #tk-wallet { margin-bottom: 8px; }
.tk-you .row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-pools { display: flex; flex-direction: column; }
.tk-pool { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: calc(13px * var(--fs, 1)); }
.tk-pool:first-child { border-top: 0; }
.tk-pool .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-links a { font-size: calc(13px * var(--fs, 1)); color: var(--muted); }
@media (max-width: 960px) {
  .tk-grid { grid-template-columns: 1fr; }
  .tk-chart iframe { height: 420px; }
}

/* ---------- EVM trading, hidden coins, 12 words ---------- */
.hide-btn { opacity: 0; transition: opacity .15s; }
.pc:hover .hide-btn, .hide-btn:focus-visible { opacity: 1; }
@media (hover: none) { .hide-btn { opacity: .55; } }
.pc.hiding { opacity: 0; transform: translateX(16px); transition: opacity .25s, transform .25s; pointer-events: none; }
.hid-btn { padding: 0 10px; }
.hid-btn .ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.hid-list { display: flex; flex-direction: column; overflow-y: auto; margin-top: 8px; }
.hid-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--line); }
.hid-row a { flex: 1; min-width: 0; display: flex; flex-direction: column; text-decoration: none; }
.ch-qb { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; background: var(--ink); border: 1px solid var(--line); border-radius: calc(8px * var(--rs, 1)); padding: 2px 8px; }
.ch-qb input { width: 62px; border: 0; background: none; text-align: right; padding: 4px 0; font-weight: 600; }
.ch-qb em { font-style: normal; color: var(--muted); font-size: calc(12px * var(--fs, 1)); }
.tk-trade .bs { margin-bottom: 12px; }
.tk-trade .bs #s-sell.on { background: var(--act-sell); color: var(--act-sell-ink); }
.tk-trade .bs #s-buy.on { background: var(--act-buy); color: var(--act-buy-ink); }
.tk-trade .tk-pre { margin-bottom: 10px; }
.tk-trade .tk-pre button.on { color: var(--ink); background: var(--text); border-color: var(--text); }
.tk-trade select { background: var(--ink); border: 1px solid var(--line); border-radius: calc(6px * var(--rs, 1)); padding: 3px 6px; }
.tk-trade #tk-go { margin-top: 10px; background: var(--buy); color: var(--buy-ink); }
.tk-trade #tk-go.sell { background: var(--sell); color: #fff; }
.tk-bal { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; align-items: center; }
.tk-chart { min-height: 460px; }
.tk-chart .chart-area { height: min(64vh, 560px); position: relative; }
.tk-chart iframe { display: block; width: 100%; height: min(72vh, 620px); border: 0; }
@media (max-width: 960px) { .tk-chart .chart-area { height: 380px; } .tk-chart { min-height: 0; } }
.rw-evm { margin-top: 12px; }
.rw-evm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.rw-ev { border: 1px solid var(--line); border-radius: calc(10px * var(--rs, 1)); padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--panel-2); }
.rw-ev-h { display: flex; align-items: center; gap: 8px; }
.rw-ev-big { display: flex; align-items: baseline; gap: 6px; }
.rw-ev-big span { font-size: calc(24px * var(--fs, 1)); font-weight: 700; }
.rw-ev-big em { font-style: normal; color: var(--muted); }
.rw-ev-k { display: flex; justify-content: space-between; font-size: calc(12.5px * var(--fs, 1)); color: var(--muted); }
.rw-ev-k b { color: var(--text); font-weight: 600; }
.pf-evmw .pf-evm { flex-direction: column; align-items: flex-start; }
.pf-evmw .mint { word-break: break-all; text-align: left; }
.pf-sub { font-size: calc(14px * var(--fs, 1)); margin: 16px 0 6px; }
.warnbox { background: color-mix(in srgb, var(--sell) 10%, transparent); border: 1px solid color-mix(in srgb, var(--sell) 35%, transparent); color: #ffb3c8; border-radius: calc(8px * var(--rs, 1)); padding: 10px 12px; font-size: calc(13px * var(--fs, 1)); }
.seed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0; margin: 12px 0; list-style: none; counter-reset: w; }
.seed li { counter-increment: w; background: var(--ink); border: 1px solid var(--line); border-radius: calc(6px * var(--rs, 1)); padding: 7px 8px; font-weight: 600; font-size: calc(13.5px * var(--fs, 1)); }
.seed li::before { content: counter(w) "."; color: var(--faint); font-weight: 500; margin-right: 5px; font-size: calc(11px * var(--fs, 1)); }
.pk { display: block; word-break: break-all; background: var(--ink); border: 1px solid var(--line); border-radius: calc(6px * var(--rs, 1)); padding: 8px; font-size: calc(12px * var(--fs, 1)); margin: 8px 0; }
.chain-row input[type="checkbox"] { flex-shrink: 0; }
@media (max-width: 440px) { .chain-row:has(.ch-qb) > .muted { display: none; } }

/* owner: EVM fee tab */
.ow-tabs { margin-bottom: 12px; }
.ow-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 10px; }
.ow-ch { border: 1px solid var(--line); border-radius: calc(10px * var(--rs, 1)); padding: 14px; display: flex; flex-direction: column; gap: 7px; background: var(--panel-2); }
.ow-ch .btn { margin-top: 4px; }
.ow-db { margin-top: 10px; padding: 10px 12px; border-radius: calc(8px * var(--rs, 1)); border: 1px solid var(--line); font-size: calc(13px * var(--fs, 1)); display: flex; flex-direction: column; gap: 3px; }
.ow-db.bad { border-color: color-mix(in srgb, var(--sell) 50%, transparent); background: color-mix(in srgb, var(--sell) 8%, transparent); }
.ow-m h2 { display: flex; align-items: center; gap: 8px; }

/* trade replay */
.rp-m .modal-box { max-width: 960px; }
.rp-stage { position: relative; border-radius: calc(10px * var(--rs, 1)); overflow: hidden; background: #000000; border: 1px solid var(--line); }
.rp-canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.rp-load { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); }
.rp-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.rp-bar input[type="range"] { flex: 1; min-width: 120px; accent-color: var(--accent); }
.rp-btn { white-space: nowrap; }
/* coin header on phones: the action buttons wrap instead of running off the edge */
.ch-acts { flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
@media (max-width: 600px) { .coin-head { flex-wrap: wrap; } .ch-acts { flex-basis: 100%; justify-content: flex-start; } }
/* network logos: the real logo on a clear background (no coloured ring) */
.cdot.logo { background: transparent; border: 0; overflow: hidden; }
.cdot.logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.chain-btn .cstack .cdot.logo + .cdot { box-shadow: 0 0 0 2px var(--panel); }
img.gen { image-rendering: pixelated; background: var(--panel-2); }
/* the main menu never wraps a label onto two lines ("Copy Trade") */
.nav a { white-space: nowrap; }
.nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
/* Solana cards: network logo top-left, launchpad dot stays bottom-right */
.pc-img .chain-dot { z-index: 1; }

/* draggable order lines on the chart */
.ord-handles { position: absolute; inset: 0 70px 0 0; pointer-events: none; z-index: 4; }
.ord-h { position: absolute; left: 10px; top: 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px 0 4px;
  border-radius: calc(6px * var(--rs, 1)); border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 18%, #000000); color: #fff; font-size: calc(11.5px * var(--fs, 1));
  cursor: ns-resize; touch-action: none; user-select: none; white-space: nowrap; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.ord-h b { font-weight: 700; color: var(--c); }
.ord-h em { font-style: normal; font-weight: 600; }
.ord-grip { color: var(--c); letter-spacing: -2px; font-size: calc(12px * var(--fs, 1)); opacity: .8; }
.ord-h.drag { transform-origin: left center; outline: 2px solid var(--c); z-index: 5; }

/* take profit / stop loss on the position */
.tpsl .tpsl-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tpsl .tpsl-row > span:first-child { min-width: 84px; font-weight: 600; font-size: calc(13px * var(--fs, 1)); }
.tpsl .tpsl-row .inp-suffix { width: 96px; }
.tpsl .tpsl-row .inp-suffix input { padding: 6px 30px 6px 10px; width: 100%; background: var(--ink); border: 1px solid var(--line); border-radius: calc(8px * var(--rs, 1)); }
.tpsl .chips button { font-size: calc(12px * var(--fs, 1)); }

/* ---------- portfolio dashboard ---------- */
.pfd { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; margin: 12px 0; }
.pfd .panel + .panel { margin-top: 0; }
.pfd-chart { grid-row: span 2; display: flex; flex-direction: column; gap: 8px; }
.pfd-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pfd-big { font-size: calc(26px * var(--fs, 1)); font-weight: 800; }
.pfd-big .muted { font-size: calc(15px * var(--fs, 1)); font-weight: 600; }
.pfd-svg { position: relative; height: 190px; }
.pfd-svg svg { width: 100%; height: 100%; display: block; touch-action: pan-y; }
.pfd-line.up { color: var(--buy); } .pfd-line.down { color: var(--sell); }
.pfd-line .ln { fill: none; stroke: currentColor; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.pfd-line .zero { stroke: rgba(255,255,255,.12); stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.pfd-tip { position: absolute; top: 0; width: 120px; background: var(--panel-2); border: 1px solid var(--line); border-radius: calc(8px * var(--rs, 1)); padding: 5px 8px; font-size: calc(12px * var(--fs, 1)); display: flex; flex-direction: column; pointer-events: none; }
.pfd-chart .btn { align-self: flex-start; }
.pfd-buckets { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; font-size: calc(13px * var(--fs, 1)); }
.pfd-buckets div { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; }
.pfd-buckets i { width: 9px; height: 9px; border-radius: 50%; }
.pfd-buckets .b0, .pfd-buckets .b1 { background: #12a37a; } .pfd-buckets .b2 { background: var(--buy); }
.pfd-buckets .b3 { background: #b8325a; } .pfd-buckets .b4 { background: var(--sell); }
.pfd-bar { display: flex; height: 5px; border-radius: calc(3px * var(--rs, 1)); overflow: hidden; background: var(--line); gap: 3px; }
.pfd-bar .up { background: var(--buy); } .pfd-bar .down { background: var(--sell); }
.heat { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; overflow-x: auto; }
.heat-hours, .heat-row { display: grid; grid-template-columns: 14px repeat(24, minmax(9px, 1fr)); gap: 3px; font-size: calc(10px * var(--fs, 1)); color: var(--faint); }
.heat-row i { aspect-ratio: 1; border-radius: calc(2px * var(--rs, 1)); background: rgba(255,255,255,.04); }
.heat-row i.now { outline: 1px solid var(--accent); }
.pfd-cardimg { width: 100%; border-radius: calc(12px * var(--rs, 1)); margin: 8px 0 12px; display: block; }
@media (max-width: 860px) { .pfd { grid-template-columns: minmax(0, 1fr); } .pfd-chart { grid-row: auto; } }

/* stocks: company logos, realized curve */
.stk-logo.has-img { background: #fff; padding: 0; overflow: hidden; }
.stk-logo.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.stk-logo:not(.logo):not(.has-img) { }
.stk-curve { display: flex; flex-direction: column; gap: 2px; min-width: 150px; }
.stk-curve span { font-size: calc(12px * var(--fs, 1)); color: var(--muted); }
.stk-curve svg { width: 100%; height: 36px; }
.stk-curve em { font-style: normal; font-size: calc(11.5px * var(--fs, 1)); color: var(--muted); }
.pfd-chart .pfd-svg { flex: 1; min-height: 190px; }
#stk-g { flex-wrap: wrap; }
#stk-g button { flex: 1 1 auto; padding-left: 8px; padding-right: 8px; white-space: nowrap; overflow: visible; }
/* the "couldn't read more history" note wraps on phones instead of pushing its button off screen */
.wi-scan { flex-wrap: wrap; min-width: 0; }
.wi-scan > span { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.wi-scan .btn { flex: 0 0 auto; }

/* ---- main bar: 4 pages + More ---- */
.nav { align-items: center; }
.nav-more { position: relative; }
#nav-more { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; font: inherit;
  font-size: calc(14px * var(--fs, 1)); font-weight: 500; color: var(--muted); padding: 6px 10px; border-radius: calc(6px * var(--rs, 1)); }
#nav-more:hover, #nav-more[aria-expanded="true"] { color: var(--text); }
#nav-more[data-on] { color: var(--accent); }
#nav-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .15s; }
#nav-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-pop { position: absolute; top: calc(100% + 8px); left: -8px; z-index: 60; width: 320px; padding: 6px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: calc(12px * var(--rs, 1)); box-shadow: 0 18px 40px rgba(0,0,0,.45);
  display: grid; gap: 2px; animation: navpop .12s ease-out; }
@keyframes navpop { from { opacity: 0; transform: translateY(-4px); } }
.nav-pop a { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: calc(8px * var(--rs, 1)); text-decoration: none; color: var(--text) !important; }
.nav-pop a:hover, .nav-pop a:focus-visible { background: var(--panel-2) !important; outline: none; }
.nav-pop a.on b, .more-list a.on b { color: var(--accent); }
.nav-pop a > span { display: grid; gap: 1px; min-width: 0; }
.nav-pop b { font-weight: 600; font-size: calc(14px * var(--fs, 1)); }
.mi-ic { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: calc(8px * var(--rs, 1)); background: var(--panel-2); border: 1px solid var(--line); }
.mi-ic svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.more-list a { grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.more-list a > span { display: grid; gap: 2px; }
.bnav [data-on] { color: var(--accent); }
.nav { overflow: visible; }                 /* only 5 items now: no scrolling, so the More menu isn't clipped */
.nav-pop[hidden] { display: none; }
/* phones: small icon buttons (copy / hide on coin cards) get a finger-sized touch area without looking bigger */
@media (pointer: coarse) {
  .ib { position: relative; }
  .ib::after { content: ""; position: absolute; inset: -8px -5px; }
  .wlink { padding-block: 4px; }
}

/* ---- Rewards: invite card ---- */
.rf-card { position: relative; overflow: hidden; padding: 22px; border-color: color-mix(in srgb, var(--buy) 35%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--buy) 14%, transparent), color-mix(in srgb, var(--buy) 3%, transparent) 45%, transparent 70%), var(--panel); }
.rf-glow { position: absolute; width: 340px; height: 340px; right: -110px; top: -150px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--buy) 35%, transparent), transparent 65%); filter: blur(10px); animation: rfglow 6s ease-in-out infinite alternate; }
@keyframes rfglow { to { transform: translate(-30px, 20px) scale(1.1); opacity: .7; } }
.rf-top { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.rf-big { display: flex; align-items: center; gap: 14px; }
.rf-pct { font-size: clamp(54px, 9vw, 76px); font-weight: 800; line-height: .9; letter-spacing: -.04em;
  background: linear-gradient(180deg, #fff 10%, #9ff0bf 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px color-mix(in srgb, var(--buy) 45%, transparent)); }
.rf-of { font-size: calc(15px * var(--fs, 1)); line-height: 1.3; color: var(--muted); font-weight: 500; }
.rf-earned { display: grid; gap: 2px; text-align: right; padding: 10px 14px; border-radius: calc(12px * var(--rs, 1)); background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.rf-earned b { font-size: calc(20px * var(--fs, 1)); display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.rf-sub { position: relative; color: var(--muted); margin: 6px 0 14px; max-width: 640px; }
.rf-sub b { color: var(--text); }
.rf-card .rf-link, .rf-card .rf-form { position: relative; }
.rf-card .rf-form { margin-bottom: 0; }
@media (max-width: 600px) { .rf-earned { text-align: left; width: 100%; } .rf-earned b { justify-content: flex-start; } }
.pfd-sol { font-size: calc(15px * var(--fs, 1)); font-weight: 500; margin-left: 6px; }

/* ---- Copy trading ---- */
.cp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.cp-stats:empty { display: none; }
.cp-stat { display: grid; gap: 3px; padding: 14px 16px; border: 1px solid var(--line); border-radius: calc(12px * var(--rs, 1)); background: var(--panel); }
.cp-stat > span { color: var(--muted); font-size: calc(13px * var(--fs, 1)); }
.cp-stat b { font-size: calc(22px * var(--fs, 1)); font-weight: 700; letter-spacing: -.01em; }
.cp-stat b em { font-style: normal; color: var(--muted); font-size: calc(15px * var(--fs, 1)); font-weight: 500; }
.cp-how { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cp-how li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: calc(12px * var(--rs, 1)); border: 1px solid var(--line);
  background: linear-gradient(135deg, color-mix(in srgb, var(--buy) 10%, transparent), transparent 60%), var(--panel); }
.cp-how i { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-style: normal; font-weight: 800;
  background: var(--accent); color: var(--gold-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--buy) 18%, transparent); }
.cp-how div { display: grid; gap: 2px; } .cp-how span { color: var(--muted); font-size: calc(13px * var(--fs, 1)); }
.cp-kol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; padding: 0 14px 14px; }
.cp-kol { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: calc(12px * var(--rs, 1)); background: var(--panel-2); }
.cp-kol > div { display: grid; flex: 1; min-width: 0; } .cp-kol b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 800; flex: 0 0 auto;
  background: linear-gradient(135deg, #4ade80, #1f9d55); color: #fff; }
@media (max-width: 760px) { .cp-stats { grid-template-columns: 1fr 1fr; } .cp-how { grid-template-columns: 1fr; } }

/* ---- Pulse mini chart ---- */
.pc-side { position: relative; }
.spk { display: block; width: 72px; height: 26px; margin-left: auto; overflow: visible; }
.spk .l { fill: none; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spk.up .l { stroke: var(--up, #4ade80); } .spk.down .l { stroke: var(--down, #f0457a); }
.spk.up circle { fill: var(--up, #4ade80); } .spk.down circle { fill: var(--down, #f0457a); }
.spk:empty { opacity: 0; }
/* numbers change smoothly instead of jumping */
.pc-nums b, .pc-nums span { transition: color .4s; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .rf-link code { flex: 1 1 100%; padding: 4px 0 2px; }
  .rf-link .btn { flex: 1 1 0; }
  .rf-form input { flex: 1 1 120px; width: auto; }
}

/* speed: the header is almost solid, so its background blur was invisible but made every update under it repaint */
.top { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(11, 11, 13); }
/* the invite card's glow sits still (an endless blur animation keeps the page repainting) */
.rf-glow { animation: none; }
.pos-note { margin: -4px 0 8px; }

/* ---- Portfolio positions: rows that work on phones and desktops ---- */
#pf-pos { overflow: visible; }
.pfr-head, .pfr { display: grid; grid-template-columns: minmax(0, 1.6fr) 1fr 1fr minmax(120px, 1fr); align-items: center; gap: 4px 12px; }
.pfr-head { padding: 0 16px 8px; font-size: calc(12px * var(--fs, 1)); color: var(--muted); }
.pfr-head span:last-child { text-align: right; }
.pfr { padding: 12px 16px; border-top: 1px solid var(--line); }
.pfr[hidden] { display: none; }
.pfr-coin { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: inherit; }
.pfr-coin > span { display: grid; min-width: 0; }
.pfr-coin b, .pfr-coin small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfr-coin .ti { width: 32px; height: 32px; border-radius: calc(8px * var(--rs, 1)); flex: 0 0 auto; }
.pfr-dk { font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 4px; }
.pfr-pnl { display: grid; justify-items: end; text-align: right; font-variant-numeric: tabular-nums; }
.pfr-pnl b { font-size: calc(15px * var(--fs, 1)); } .pfr-pnl small { font-size: calc(12px * var(--fs, 1)); opacity: .85; }
.pfr-acts { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chipbtn { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: calc(999px * var(--rs, 1)); border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--text); font: 600 calc(12.5px * var(--fs, 1))/1 var(--font, inherit); text-decoration: none; cursor: pointer; }
.chipbtn:hover { border-color: var(--accent); }
@media (max-width: 700px) {
  .pfr-head, .pfr { grid-template-columns: minmax(0, 1fr) auto; padding-left: 12px; padding-right: 12px; }
  .pfr-dk { display: none; }
  .pfr-acts { justify-content: flex-start; padding-left: 42px; }
}
@media (min-width: 701px) {
  .pfr-head, .pfr { grid-template-columns: minmax(0, 1.5fr) 0.8fr 0.8fr minmax(120px, 1fr) minmax(250px, auto); }
  .pfr-acts { grid-column: auto; flex-wrap: nowrap; }
}
.pfr-head span:nth-child(4) { text-align: right; }
/* replay on phones: the tall video fills the width, the controls stay on screen */
.rp-canvas { aspect-ratio: auto; }
@media (max-width: 700px) {
  .rp-m .modal-box { width: 100%; max-width: none; padding: 14px; }
  .rp-m h2 { font-size: calc(17px * var(--fs, 1)); margin-bottom: 8px; }
  .rp-canvas { max-height: calc(100dvh - 220px); width: auto; max-width: 100%; margin: 0 auto; }
  .rp-stage { display: flex; justify-content: center; background: #000000; }
  .rp-bar { gap: 8px; }
  .rp-bar input[type="range"] { flex-basis: 100%; order: -1; }
  .rp-bar #rp-dl { margin-left: auto; }
}

/* phones: live blur behind popups and on the login screen is redrawn every frame by the phone's GPU
   (the main source of stutter when the buy sheet opens over a chart). Solid dark backgrounds look nearly the same. */
@media (max-width: 700px) {
  .modal { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(0, 0, 0, .78); }
  .lp-scrim { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(0, 0, 0, .72); }
  .login-card { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--panel); }
  .lg-bg i { filter: blur(40px); animation: none; will-change: auto; }
}

/* Share PnL: options */
.pc-m .modal-box { max-width: 760px; max-height: calc(100dvh - 24px); overflow-y: auto; }
.pnl-canvas.sq { max-width: min(100%, 520px); margin: 0 auto; display: block; }
.pnl-canvas.tall { width: auto; max-width: 100%; max-height: 62dvh; margin: 0 auto; display: block; }
.pc-live, .pc-paper { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; margin-left: 6px; padding: 3px 10px; border-radius: calc(999px * var(--rs, 1)); font-size: calc(12px * var(--fs, 1)); font-weight: 700; }
.pc-live { color: #38c6f4; background: rgba(56,198,244,.12); }
.pc-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pc-paper { color: #f5c84b; background: rgba(245,200,75,.12); }
#pnl-custom.on { border-color: var(--accent); }
.pc-opts { display: grid; gap: 10px; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: calc(12px * var(--rs, 1)); background: rgba(255,255,255,.02); }
.pc-opt { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 10px; }
.pc-opt > span { color: var(--muted); font-size: calc(13px * var(--fs, 1)); }
.pc-opt .seg { justify-self: start; flex-wrap: wrap; }
.pc-opt input { width: 100%; min-height: 38px; }
.pc-sw { display: flex; gap: 10px; flex-wrap: wrap; }
.pc-sw button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; background: var(--c); padding: 0; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(0,0,0,.35); }
.pc-sw button.on { border-color: #fff; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-chips button { min-height: 32px; padding: 0 12px; border-radius: calc(999px * var(--rs, 1)); border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: calc(13px * var(--fs, 1)); cursor: pointer; }
.pc-chips button.on { color: var(--text, #eceef4); border-color: color-mix(in srgb, var(--buy) 70%, transparent); background: color-mix(in srgb, var(--buy) 14%, transparent); }
@media (max-width: 700px) {
  .pc-m .modal-box { padding: 16px; }
  .pc-opt { grid-template-columns: 1fr; gap: 6px; }
  .pc-m .row-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pc-m .row-btns .btn { width: 100%; }
}
.stk-share { margin-left: 6px; opacity: .8; }
.stk-share:hover { opacity: 1; }

/* Pip: where he'd buy (one button), and what he sees */
.pip-entry { margin: 12px 0; padding: 14px; border-radius: calc(14px * var(--rs, 1)); border: 1px solid color-mix(in srgb, var(--buy) 28%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--buy) 9%, transparent), color-mix(in srgb, var(--buy) 2%, transparent)); }
.pip-entry.wait { border-color: rgba(245,200,75,.32); background: linear-gradient(180deg, rgba(245,200,75,.09), rgba(245,200,75,.02)); }
.pip-entry-k { font-size: calc(11px * var(--fs, 1)); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pip-entry-mc { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 2px 0 8px; }
.pip-entry-mc b { font-size: calc(26px * var(--fs, 1)); font-weight: 800; letter-spacing: -.02em; color: var(--buy); font-variant-numeric: tabular-nums; }
.pip-entry.wait .pip-entry-mc b { color: #f5c84b; }
.pip-entry-mc span { color: var(--muted); font-size: calc(13px * var(--fs, 1)); }
.pip-entry-why { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 4px; }
.pip-entry-why li { position: relative; padding-left: 16px; font-size: calc(13px * var(--fs, 1)); line-height: 1.35; }
.pip-entry-why li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }
.pip-fill { margin: 0 0 8px; font-size: calc(12.5px * var(--fs, 1)); color: var(--muted); }
.pip-fill.high, .pip-fill.good { color: #7fe3c4; }
.pip-entry .kv { font-size: calc(13px * var(--fs, 1)); }
.pip-limit { width: 100%; margin-top: 10px; min-height: 44px; font-weight: 700; background: var(--buy); color: var(--buy-ink); border: 0; }
.pip-entry.wait .pip-limit { background: #f5c84b; }
.pip-see { margin: 10px 0; }
.pip-see > b { font-size: calc(12px * var(--fs, 1)); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pip-see ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 5px; }
.pip-see li { font-size: calc(13px * var(--fs, 1)); line-height: 1.35; padding-left: 18px; position: relative; }
.pip-see li::before { content: "•"; position: absolute; left: 4px; color: var(--muted); }
.pip-see li.good::before { content: "▲"; font-size: calc(9px * var(--fs, 1)); top: 3px; color: var(--buy); }
.pip-see li.bad::before { content: "▼"; font-size: calc(9px * var(--fs, 1)); top: 3px; color: var(--sell, #f0457a); }
.pip-fams .pip-why { margin-top: 8px; }
@keyframes pip-set { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--buy) 70%, transparent); } 100% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--buy) 0%, transparent); } }
.pip-set { animation: pip-set .9s ease-out 2; }

/* Stocks history on phones: the stock name stays (the site-wide rule hides every table's 3rd/4th column),
   the small details stack under their value, so the P&L and its Share link always fit */
@media (max-width: 700px) {
  .stk-tbl th:nth-child(3), .stk-tbl td:nth-child(3) { display: table-cell; }
  .stk-tbl th:nth-child(4), .stk-tbl td:nth-child(4) { display: none; }
  .stk-tbl th, .stk-tbl td { padding-left: 5px; padding-right: 5px; font-size: calc(13px * var(--fs, 1)); }
  .stk-tbl td > .muted.small { display: block; font-size: calc(11.5px * var(--fs, 1)); }
  .stk-tbl .stk-share { display: block; margin: 2px 0 0; }
}
.co-x { color: var(--text); font-weight: 600; }
.shield-box { margin-top: 10px; padding: 12px; border: 1px solid color-mix(in srgb, var(--buy) 30%, transparent); border-radius: calc(12px * var(--rs, 1)); background: color-mix(in srgb, var(--buy) 5%, transparent); }

/* dev report card */
.dr-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dr-top > div { display: grid; gap: 2px; }
.dr-grade { width: 46px; height: 46px; border-radius: calc(12px * var(--rs, 1)); display: grid; place-items: center; font-size: calc(24px * var(--fs, 1)); font-weight: 800; background: var(--panel-2, rgba(255,255,255,.06)); border: 1px solid var(--line); }
.dr-grade.up { color: var(--buy); border-color: color-mix(in srgb, var(--buy) 40%, transparent); background: color-mix(in srgb, var(--buy) 8%, transparent); }
.dr-grade.warn { color: #f5c84b; border-color: rgba(245,200,75,.4); background: rgba(245,200,75,.08); }
.dr-grade.down { color: var(--sell); border-color: color-mix(in srgb, var(--sell) 45%, transparent); background: color-mix(in srgb, var(--sell) 8%, transparent); }
.dr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.dr-stats > div { padding: 8px 10px; border-radius: calc(10px * var(--rs, 1)); background: rgba(255,255,255,.03); border: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; }
.dr-stats span { font-size: calc(11.5px * var(--fs, 1)); color: var(--muted); }
.dr-stats b { font-size: calc(14px * var(--fs, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-why { margin: 0 0 10px; padding-left: 18px; font-size: calc(13px * var(--fs, 1)); display: grid; gap: 3px; }
.dr-recent { display: grid; gap: 4px; }
.dr-coin { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: calc(8px * var(--rs, 1)); text-decoration: none; color: inherit; font-size: calc(13px * var(--fs, 1)); }
.dr-coin:hover { background: rgba(255,255,255,.04); }
@media (max-width: 700px) { .dr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* leaderboard */
.lb-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; margin-bottom: 16px; }
.lb-pod { display: grid; justify-items: center; gap: 6px; padding: 18px 12px; border-radius: calc(16px * var(--rs, 1)); border: 1px solid var(--line); background: var(--panel); text-align: center; min-width: 0; }
.lb-pod.r1 { padding-top: 26px; border-color: rgba(245,200,75,.45); background: linear-gradient(180deg, rgba(245,200,75,.10), var(--panel)); }
.lb-pod.r2 { border-color: rgba(200,205,220,.35); }
.lb-pod.r3 { border-color: rgba(205,127,50,.4); }
.lb-pod.me, .lb-row.me { outline: 2px solid color-mix(in srgb, var(--buy) 60%, transparent); }
.lb-medal { font-size: calc(12px * var(--fs, 1)); font-weight: 800; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.lb-pod.r1 .lb-medal { background: #f5c84b; color: #1a1300; }
.lb-pod.r2 .lb-medal { background: #c8cddc; color: #111; }
.lb-pod.r3 .lb-medal { background: #cd7f32; color: #160b00; }
.lb-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, #4ade80, #1f9d55); color: var(--gold-ink); }
.lb-av.sm { width: 30px; height: 30px; font-size: calc(13px * var(--fs, 1)); }
.lb-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-pnl, .lb-p { display: grid; justify-items: inherit; gap: 1px; }
.lb-pnl b { font-size: calc(18px * var(--fs, 1)); }
.lb-list { display: grid; gap: 6px; margin-bottom: 16px; }
.lb-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: calc(12px * var(--rs, 1)); border: 1px solid var(--line); background: var(--panel); }
.lb-rank { font-weight: 700; color: var(--muted); text-align: center; }
.lb-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-p { justify-items: end; text-align: right; }
.lb-stat { text-align: right; }
.lb-me { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.lb-me > div { display: grid; gap: 2px; }
@media (max-width: 700px) {
  .lb-podium { gap: 6px; }
  .lb-pod { padding: 12px 6px; }
  .lb-pnl b { font-size: calc(15px * var(--fs, 1)); }
  .lb-row { grid-template-columns: 26px minmax(0, 1fr) auto; padding: 10px; }
  .lb-stat { display: none; }
}

/* cashback levels */

/* ---- multiple wallets ---- */
.wl { display: grid; gap: 8px; margin: 12px 0; }
.wl + .row-btns { margin-bottom: 12px; }
.wl-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: calc(12px * var(--rs, 1)); background: var(--panel-2); }
.wl-row.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.wl-id { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.wl-id b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14ch; }
.wl-act { font-size: calc(11px * var(--fs, 1)); font-weight: 800; padding: 2px 8px; border-radius: calc(999px * var(--rs, 1)); background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.wl-copy { font-size: calc(12px * var(--fs, 1)); }
.wl-bal { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; font-weight: 700; justify-self: end; }
.wl-acts { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.wl-acts:empty { display: none; }
.wl-key { width: 100%; font: calc(12px * var(--fs, 1))/1.4 ui-monospace, monospace; word-break: break-all; padding: 10px; border-radius: calc(10px * var(--rs, 1)); border: 1px solid var(--line); background: var(--ink); color: var(--text); resize: none; }
.wl-chip { max-width: 11ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 10px; border-radius: calc(999px * var(--rs, 1)); border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-weight: 700; font-size: calc(12px * var(--fs, 1)); cursor: pointer; }
@media (max-width: 560px) { .wl-chip { max-width: 8ch; padding: 5px 8px; } }

/* ---- Pip trades for you (locked preview) ---- */
.pt-soon { display: inline-block; vertical-align: middle; margin-left: 8px; font-size: calc(12px * var(--fs, 1)); font-weight: 800; padding: 3px 10px; border-radius: calc(999px * var(--rs, 1)); background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.pt-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 14px; }
@media (max-width: 860px) { .pt-grid { grid-template-columns: 1fr; } }
.pt-lock { font-size: calc(11px * var(--fs, 1)); font-weight: 700; color: var(--muted); }
.pt-note { padding: 10px 12px; border-radius: calc(10px * var(--rs, 1)); background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 12px; font-size: calc(13px * var(--fs, 1)); }
.pt-f { display: grid; gap: 12px; }
.pt-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pt-fields .fld small { font-size: calc(11px * var(--fs, 1)); }
.pt-f input:disabled { opacity: .6; }
.pt-facts { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.pt-rows { display: grid; gap: 4px; margin-bottom: 8px; }
.pt-row { display: grid; grid-template-columns: 32px minmax(70px, auto) 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: calc(10px * var(--rs, 1)); text-decoration: none; }
.pt-row:hover { background: var(--panel-2); }
.pt-row .thumb { width: 32px; height: 32px; border-radius: calc(8px * var(--rs, 1)); }
.pt-id { display: grid; line-height: 1.2; }
.pt-why { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-score { font-weight: 800; font-size: calc(16px * var(--fs, 1)); min-width: 2.2em; text-align: right; }
.pt-score.warn { color: var(--warn); }
.pt-tr { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 560px) { .pt-row { grid-template-columns: 32px 1fr auto; } .pt-why { grid-column: 2 / 4; grid-row: 2; white-space: normal; } .pt-fields { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .f-tabs button { padding: 7px 9px; } }


/* =========================================================== YonniPad identity ===== */
/* One family, Archivo, used at two widths: stretched wide and heavy for headings and big numbers (poster type,
   the loud memecoin voice), normal width for everything you read and trade with. Every colour is a variable each person
   can pick in Settings (theme.js): background set, highlight, main buttons, up/down and candle colours.
   Shapes follow importance: chips 5px, controls 8px, panels 14px, sheets 20px. No pill buttons. */
body { font-stretch: 100%; letter-spacing: 0; background: var(--ink); }
h1, .h-wide { font-stretch: var(--wide); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: calc(30px * var(--fs, 1)); }
h2 { font-stretch: 108%; font-weight: 700; letter-spacing: -0.01em; }
@media (max-width: 600px) { h1 { font-size: calc(25px * var(--fs, 1)); } }
::selection { background: color-mix(in srgb, var(--accent) 70%, transparent); color: var(--gold-ink); }
:focus-visible { outline-color: var(--accent); }

/* header + nav: the page you're on gets an underline in the highlight colour, flush with the bar's bottom edge */
.top { background: rgba(0, 0, 0, .94); border-bottom-color: var(--line); }
.logo { font-stretch: 125%; font-weight: 800; letter-spacing: -0.04em; font-size: calc(19px * var(--fs, 1)); }
.logo svg { color: var(--accent); }
.nav { align-self: stretch; align-items: stretch; }
.nav a { display: flex; align-items: center; border-radius: 0; padding: 0 11px; position: relative; font-weight: 600; }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: -1px; height: 3px; border-radius: calc(3px * var(--rs, 1)) calc(3px * var(--rs, 1)) 0 0; background: var(--accent); }
.nav-more { display: flex; align-items: center; }
.hsearch { border-radius: var(--r-ctl); background: var(--panel); }
.bal, .acct .btn#dep-btn { border-radius: var(--r-ctl); }
.bal { background: var(--panel); border-color: var(--line); }
.me { border-radius: var(--r-ctl); color: var(--accent); background: var(--panel-2); }
.sbar { background: rgba(0, 0, 0, .97); }

/* buttons: square-shouldered; the main button colour is your pick (white by default) */
.btn { border-radius: var(--r-ctl); font-weight: 700; padding: 9px 16px; background: var(--btn); color: var(--btn-ink); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.ghost { background: var(--btn2, transparent); color: var(--btn2-ink, var(--text)); border: 1px solid var(--line-2); }
.btn.ghost:hover { border-color: var(--muted); filter: none; background: var(--btn2-hover, var(--panel-2)); }
.btn.sm { border-radius: calc(6px * var(--rs, 1)); }
.btn.lg { border-radius: calc(10px * var(--rs, 1)); font-stretch: 108%; }
.chips button, .chip, .chipbtn, .tag, .qb, .qb-set, .cfm, .stk-badge, .cp-status, .pc-chips button, .pc-live, .pc-paper,
.lx-drop-x, .pip-ask button, .lp-ref, .wl-act, .wl-chip, .pt-soon, .evm-bal, .chain-btn, .wi-tabbar input { border-radius: var(--r-chip); }
.chips button.on { color: var(--gold-ink); }
.seg { border-radius: var(--r-ctl); }
.seg button { border-radius: calc(6px * var(--rs, 1)); }
.seg button.on { background: var(--panel-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent), var(--glow, 0 0 0 0 transparent); }
.tabbar button.on { box-shadow: inset 0 -2px 0 var(--accent), var(--glow, 0 0 0 0 transparent); border-radius: calc(6px * var(--rs, 1)) calc(6px * var(--rs, 1)) 0 0; }
input, select, textarea { background: #050605; border-color: var(--line-2); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }

/* surfaces */
.panel, .col { border-radius: var(--r-panel); }
.modal { background: rgba(0, 0, 0, .75); }
.modal-box { border-radius: calc(18px * var(--rs, 1)); border-color: var(--line-2); }
.modal.sheet .modal-box { border-radius: var(--r-sheet) var(--r-sheet) 0 0; }
@media (min-width: 721px) { .modal.sheet .modal-box { border-radius: calc(18px * var(--rs, 1)); } }
.page-h h1 { margin-bottom: 4px; }

/* phone bottom bar: Launch sits in the middle on a raised pad */
@media (max-width: 720px) {
  .bnav { background: var(--ink); }
  .bnav a[aria-current="page"], .bnav [data-on] { color: var(--accent); }
  .bnav .bn-launch { color: var(--text); font-weight: 700; }
  .bn-pad { display: grid; place-items: center; width: 46px; height: 34px; margin-top: -14px; border-radius: calc(11px * var(--rs, 1)); background: var(--btn);
    color: var(--btn-ink); box-shadow: 0 0 0 4px var(--ink); }
  .bnav .bn-pad svg { width: 22px; height: 22px; stroke: var(--btn-ink); stroke-width: 1.8; }
  .bnav .bn-launch[aria-current="page"] .bn-pad { background: var(--accent); }
  .bnav .bn-launch[aria-current="page"] .bn-pad svg { stroke: var(--gold-ink); }
}
@media (min-width: 721px) { .bn-pad { display: contents; } }

/* More: a plain list on computers, a grid of six on phones */
.nav-pop { width: 220px; }
.nav-pop a { gap: 10px; padding: 8px 10px; }
.nav-pop b { font-weight: 600; }
.mi-ic { width: 30px; height: 30px; }
.more-sheet .modal-box { padding: 54px 16px calc(18px + env(safe-area-inset-bottom)); }
.more-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.more-list a { display: grid; grid-template-columns: none; justify-items: center; gap: 8px; padding: 16px 6px 13px; border-radius: calc(12px * var(--rs, 1));
  background: var(--panel-2); border: 1px solid var(--line); text-align: center; }
.more-list a b { font-size: calc(13px * var(--fs, 1)); font-weight: 600; color: var(--text); }
.more-list a.on { border-color: var(--accent); }
.more-list .mi-ic { width: 40px; height: 40px; border-radius: calc(11px * var(--rs, 1)); background: var(--panel-3); border: 0; }
.more-list .mi-ic svg { width: 21px; height: 21px; stroke: var(--text); }
.more-list a.on .mi-ic { background: var(--accent); }
.more-list a.on .mi-ic svg { stroke: var(--gold-ink); }

/* Pip trades link on the copy page */
.cp-pip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 14px; padding: 11px 14px; border-radius: var(--r-ctl);
  border: 1px dashed var(--line-2); text-decoration: none; }
.cp-pip:hover { border-color: var(--accent); }

/* ---- cashback levels: the climb ---- */
.cl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 22px 32px; align-items: start; }
@media (max-width: 760px) { .cl { grid-template-columns: 1fr; } }
.cl .t0 { --t: #d9945f; } .cl .t1 { --t: #c9cbe0; } .cl .t2 { --t: #f5c84b; }
.cl .t3 { --t: #7fe0d4; } .cl .t4 { --t: #9db6ff; } .cl .t5 { --t: #ff7ac8; }
.cl-tier { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--t); font-stretch: 110%; }
.cl-tier i { width: 10px; height: 10px; border-radius: calc(3px * var(--rs, 1)); background: var(--t); transform: rotate(45deg); }
.cl-big { display: flex; align-items: flex-end; gap: 10px; margin: 6px 0 10px; }
.cl-big b { font-size: calc(92px * var(--fs, 1)); line-height: .8; font-weight: 800; font-stretch: 125%; letter-spacing: -0.05em; color: var(--text); }
.cl-big span { font-size: calc(15px * var(--fs, 1)); line-height: 1.25; color: var(--muted); padding-bottom: 2px; }
.cl-sub { color: var(--muted); font-size: calc(14px * var(--fs, 1)); max-width: 46ch; }
.cl-bar { height: 10px; border-radius: calc(3px * var(--rs, 1)); background: var(--ink); border: 1px solid var(--line); overflow: hidden; margin: 16px 0 8px; }
.cl-bar i { display: block; height: 100%; width: 0; border-radius: calc(2px * var(--rs, 1)); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, #000), var(--accent));
  transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.cl-bar i:not([data-to="0.0"]) { min-width: 4px; }
.cl-ends { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: -2px 0 10px; font-size: calc(12px * var(--fs, 1)); color: var(--faint); }
.cl-ends b { color: var(--text); font-size: calc(13px * var(--fs, 1)); }
@media (prefers-reduced-motion: reduce) { .cl-bar i { transition: none; } }
.cl-next { font-size: calc(14px * var(--fs, 1)); margin: 0; }
.cl-next b { color: var(--accent); }
.cl-ladder { list-style: none; margin: 0; padding: 0; }
.cl-ladder li { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 12px 9px 0; }
/* the rail: each rung draws the stretch below it; climbed stretches take the highlight colour */
.cl-ladder li::before { content: ""; position: absolute; left: 10px; top: 50%; height: 100%; width: 2px; background: var(--line-2); }
.cl-ladder li:last-child::before { display: none; }
.cl-ladder li.done::before, .cl-ladder li.on::before { background: var(--accent); }
.cl-ladder li.on + li::before, .cl-ladder li.done + li::before { background: var(--accent); }
.cl-node { position: relative; z-index: 1; width: 12px; height: 12px; margin-left: 5px; border-radius: calc(3px * var(--rs, 1)); transform: rotate(45deg);
  background: var(--ink); border: 2px solid var(--line-2); }
.cl-ladder li.done .cl-node { background: var(--t); border-color: var(--t); }
.cl-ladder li.on .cl-node { width: 18px; height: 18px; margin-left: 2px; background: var(--t); border-color: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--t) 25%, transparent); }
.cl-lv { display: grid; line-height: 1.2; min-width: 0; }
.cl-lv b { font-weight: 700; font-stretch: 108%; }
.cl-lv small { color: var(--faint); font-size: calc(12px * var(--fs, 1)); }
.cl-pct { font-weight: 800; font-stretch: 115%; font-size: calc(17px * var(--fs, 1)); color: var(--muted); }
.cl-ladder li:not(.on):not(.done) .cl-lv b { color: var(--muted); }
.cl-ladder li.done .cl-pct { color: var(--muted); }
.cl-ladder li.on { background: color-mix(in srgb, var(--t) 9%, transparent); border-radius: calc(10px * var(--rs, 1)); }
.cl-ladder li.on .cl-lv b { color: var(--t); }
.cl-ladder li.on .cl-pct { color: var(--text); font-size: calc(20px * var(--fs, 1)); }
.cl-foot { margin: 14px 0 0; font-size: calc(12.5px * var(--fs, 1)); color: var(--faint); }
.btn:disabled, .btn:disabled:hover { background: var(--panel-3); color: var(--faint); border-color: transparent; opacity: 1; box-shadow: none; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

/* quick buys: tinted in the buy colour, so a list of coins isn't a wall of solid buttons */
.qb { background: color-mix(in srgb, var(--act-buy) 15%, transparent); color: var(--act-buy); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--act-buy) 35%, transparent); }
.qb:hover { background: color-mix(in srgb, var(--act-buy) 24%, transparent); }
.qb.done { color: var(--act-buy-ink) !important; }

/* ---- Settings ---- */
/* ---- Settings: looks, your own colours, interface ---- */
.sp { max-width: 1120px; margin: 0 auto; interpolate-size: allow-keywords; }
.sp .page-h { align-items: flex-start; }
.sp-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: 20px; align-items: start; }
.sp-main { display: grid; gap: 12px; min-width: 0; }
@media (max-width: 760px) { .sp-layout { grid-template-columns: 1fr; } .sp-preview { order: -1; position: static !important; gap: 10px; } .sp-pv-kv, .sp-pv-in { display: none; } }
/* save status: quiet when saved, clear when it isn't */
.sp-status { display: inline-flex; align-items: center; gap: 6px; font-size: calc(12.5px * var(--fs, 1)); color: var(--muted); padding: 5px 10px; border-radius: calc(999px * var(--rs, 1));
  border: 1px solid var(--line); background: var(--panel); white-space: nowrap; transition: color .2s, border-color .2s; }
.sp-status svg { width: 13px; height: 13px; fill: none; stroke: var(--buy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sp-status.bad { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); white-space: normal; }
.sp-status.bump { animation: sp-bump .5s ease-out; }
@keyframes sp-bump { 30% { border-color: color-mix(in srgb, var(--buy) 55%, var(--line)); color: var(--text); } }
/* looks */
.sp-looks .panel-h { gap: 10px; } .sp-looks .panel-h h2 { flex: 1; }
.sp-own { font-size: calc(12px * var(--fs, 1)); color: var(--accent); }
.sp-presets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .sp-presets { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .sp-pre-view { height: 58px; } .sp-pre-view svg { height: 34px; } }
@media (max-width: 340px) { .sp-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sp-pre { display: grid; gap: 8px; padding: 8px 8px 10px; border-radius: calc(12px * var(--rs, 1)); border: 1px solid var(--line); background: var(--panel); cursor: pointer; color: var(--text); text-align: left;
  transition: border-color .15s, transform .15s, box-shadow .2s; }
.sp-pre:hover { border-color: var(--line-2); transform: translateY(-1px); }
.sp-pre:active { transform: scale(.98); }
.sp-pre.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), var(--glow, 0 0 0 0 transparent); }
.sp-pre-name { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 2px; }
.sp-pre b { font-weight: 600; font-size: calc(13.5px * var(--fs, 1)); }
.sp-pre-ck { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: var(--gold-ink); opacity: 0; transform: scale(.6);
  transition: opacity .15s, transform .2s cubic-bezier(.3,1.4,.5,1); }
.sp-pre-ck svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sp-pre.on .sp-pre-ck { opacity: 1; transform: none; }
.sp-pre-view { position: relative; display: block; height: 74px; border-radius: calc(8px * var(--rs, 1)); background: var(--pb); border: 1px solid var(--pl); overflow: hidden; }
.sp-pre-view svg { position: absolute; left: 6px; right: 6px; top: 6px; width: calc(100% - 12px); height: 46px; }
.sp-pre-btn { position: absolute; right: 8px; bottom: 7px; width: 34px; height: 10px; border-radius: calc(3px * var(--rs, 1)); background: var(--pbt); }
.sp-pre-bar { position: absolute; left: 8px; bottom: 9px; width: 42px; height: 3px; border-radius: calc(2px * var(--rs, 1)); background: var(--pa); }
/* groups: open and close smoothly where the browser can (instantly elsewhere) */
.sp-grp { padding-top: 0; padding-bottom: 0; }
.sp-grp > summary { display: flex; align-items: center; gap: 12px; padding: calc(14px * var(--dn, 1)) 0; cursor: pointer; list-style: none; user-select: none; }
.sp-grp > summary::-webkit-details-marker { display: none; }
.sp-grp > summary h2 { flex: 1; }
.sp-grp > summary:hover h2 { color: var(--text); }
.sp-chev { display: grid; place-items: center; width: 22px; height: 22px; color: var(--muted); transition: transform .2s; }
.sp-chev svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sp-grp[open] .sp-chev { transform: rotate(180deg); }
.sp-dots { display: flex; gap: 4px; }
.sp-dots i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transition: background .2s; }
.sp-grp[open] .sp-dots { display: none; }
.sp-sum { font-size: calc(12px * var(--fs, 1)); color: var(--muted); text-align: right; }
.sp-grp::details-content { height: 0; overflow: clip; transition: height .22s ease, content-visibility .22s allow-discrete; }
.sp-grp[open]::details-content { height: auto; }
.sp-body { padding-bottom: calc(10px * var(--dn, 1)); border-top: 1px solid var(--line); }
/* rows */
.sp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 14px; padding: calc(11px * var(--dn, 1)) 0; border-bottom: 1px solid var(--line); }
.sp-row:last-child { border-bottom: 0; }
.sp-lbl { display: grid; gap: 1px; min-width: 0; }
.sp-lbl b { font-weight: 600; }
.sp-lbl small { font-size: calc(12px * var(--fs, 1)); color: var(--muted); }
.sp-err { grid-column: 1 / -1; margin: 0; font-size: calc(12.5px * var(--fs, 1)); color: var(--warn); }
.sp-pick { display: inline-flex; align-items: center; gap: 8px; }
/* a swatch is the real colour picker underneath, shown as a clean chip */
.sp-sw { position: relative; display: block; width: 36px; height: 30px; border-radius: calc(8px * var(--rs, 1)); background: var(--c, #000); cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 0 0 1px var(--line-2); transition: transform .12s, box-shadow .15s; }
.sp-sw:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 0 0 1px var(--muted); }
.sp-sw:active { transform: scale(.95); }
.sp-sw:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.sp-sw.auto { background: repeating-linear-gradient(135deg, var(--c) 0 5px, var(--panel-2) 5px 10px); }
.sp-sw input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.sp-hex { width: calc(7ch + 22px); height: 30px; padding: 0 8px; border-radius: calc(7px * var(--rs, 1)); border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text);
  font: calc(12.5px * var(--fs, 1))/1 ui-monospace, Menlo, monospace; text-transform: lowercase; }
.sp-hex::placeholder { color: var(--faint); text-transform: none; font-family: var(--font); }
.sp-hex:focus { border-color: var(--accent); outline: none; }
.sp-undo { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: calc(7px * var(--rs, 1)); background: none; color: var(--muted); cursor: pointer; transition: color .15s, background .15s; }
.sp-undo:hover { color: var(--text); background: var(--panel-2); }
.sp-undo svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sp-undo[hidden] { display: grid !important; visibility: hidden; }      /* keeps the row's width steady */
.sp-seg button { transition: background .15s, color .15s, box-shadow .2s; }
.sp-range { display: inline-flex; align-items: center; gap: 10px; }
.sp-range input { width: 150px; accent-color: var(--accent); }
.sp-range output { width: 4ch; text-align: right; font-size: calc(12.5px * var(--fs, 1)); color: var(--muted); }
.sp-note { margin: 8px 0 0; }
.sp-acts { display: flex; justify-content: flex-end; padding-top: 10px; }
@media (max-width: 560px) {
  .sp-row { grid-template-columns: 1fr; }
  .sp-pick, .sp-seg, .sp-range { justify-self: start; }
  .sp-seg { max-width: 100%; overflow-x: auto; }
}
/* live preview: the real components in your colours, interface and motion settings */
.sp-preview { position: sticky; top: 70px; display: grid; gap: 12px; padding: 14px; border-radius: calc(12px * var(--rs, 1)); background: var(--ink); border: 1px solid var(--line); }
.sp-preview *, .sp-preview { transition: background-color .2s, color .2s, border-color .2s, fill .2s, stroke .2s; }
.sp-candles { display: block; width: 100%; height: auto; }
.sp-pv-chart { border-radius: calc(8px * var(--rs, 1)); background: var(--panel); border: 1px solid var(--line); padding: 6px; }
.sp-pv-grid line { stroke: var(--chart-grid); stroke-width: 1; }
.sp-pv-cross line { stroke: var(--chart-cross); stroke-width: 1; stroke-dasharray: 2 3; }
.sp-pv-ma { fill: none; stroke: var(--accent2); stroke-width: 1.3; opacity: .85; }
.sp-pv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sp-pv-tabs { display: flex; gap: 12px; font-size: calc(13px * var(--fs, 1)); color: var(--muted); }
.sp-pv-tabs .on { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent), var(--glow, 0 0 0 0 transparent); padding-bottom: 4px; }
.sp-pv-seg { pointer-events: none; }
.sp-pv-coin { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: calc(8px * var(--dn, 1)) 10px;
  border-radius: calc(10px * var(--rs, 1)); background: var(--panel); border: 1px solid var(--line); }
.sp-pv-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: calc(9px * var(--rs, 1)); background: var(--panel-3); font-weight: 800; color: var(--accent); }
.sp-pv-id, .sp-pv-nums { display: grid; gap: 1px; min-width: 0; }
.sp-pv-id small, .sp-pv-nums small { font-size: calc(11.5px * var(--fs, 1)); color: var(--muted); }
.sp-pv-nums { text-align: right; }
.sp-pv-coin .qb { pointer-events: none; }
.sp-pv-kv { margin: 0; padding: 0 2px; }
.sp-pv-trade { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: calc(10px * var(--rs, 1)); background: var(--panel-2); }
.sp-pv-trade span { text-align: center; padding: 7px 0; border-radius: calc(8px * var(--rs, 1)); font-weight: 700; font-size: calc(13.5px * var(--fs, 1)); }
.sp-pv-buy { background: var(--act-buy); color: var(--act-buy-ink); }
.sp-pv-sell { color: var(--act-sell); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--act-sell) 45%, transparent); }
.sp-pv-in { width: 100%; height: 36px; padding: 0 12px; border-radius: calc(8px * var(--rs, 1)); border: 1px solid var(--accent); background: var(--panel-2); color: var(--text);
  box-shadow: var(--glow, 0 0 0 0 transparent); pointer-events: none; }
.sp-pv-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sp-pv-btns .btn { pointer-events: none; }
.sp-sync p { max-width: 70ch; }

/* ---- search window (coins, wallets, stocks) ---- */
.modal.sx-modal { align-items: start; padding-top: 9vh; }
.sx-modal .modal-box { max-width: 820px; padding: 0; display: flex; flex-direction: column; max-height: 78vh; overflow: hidden; }
.sx-modal .modal-x { display: none; }
.sx-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.sx-top svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.sx-top input { flex: 1; border: 0; background: none; padding: 6px 0; font-size: calc(19px * var(--fs, 1)); font-weight: 600; outline: none; min-width: 0; }
.sx-top input:focus { border: 0; }
.sx-esc { font: 600 calc(11px * var(--fs, 1)) var(--font); color: var(--muted); border: 1px solid var(--line-2); border-radius: calc(5px * var(--rs, 1)); padding: 3px 6px; cursor: pointer; }
.sx-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.sx-tabs { display: flex; gap: 2px; }
.sx-tabs button { border: 0; background: none; color: var(--muted); padding: 6px 10px; border-radius: calc(6px * var(--rs, 1)); font-weight: 600; font-size: calc(13px * var(--fs, 1)); cursor: pointer; }
.sx-tabs button.on { color: var(--text); background: var(--panel-3); box-shadow: inset 0 -2px 0 var(--accent), var(--glow, 0 0 0 0 transparent); }
.sx-sort { display: inline-flex; align-items: center; gap: 6px; }
.sx-sort select { padding: 5px 8px; font-size: calc(13px * var(--fs, 1)); background: var(--panel-2); }
.sx-body { overflow-y: auto; padding: 4px 0 10px; overscroll-behavior: contain; }
.sx-sec > header { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px 6px; font-size: calc(13px * var(--fs, 1)); color: var(--muted); font-weight: 600; }
.sx-sec > header em { font-style: normal; color: var(--faint); margin-left: 4px; }
.sx-row { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) 92px 92px 92px auto; gap: 12px; align-items: center; padding: 9px 18px;
  border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.sx-row:hover, .sx-row.sel { background: var(--panel-2); }
.sx-wallet { grid-template-columns: 44px minmax(0, 1fr) 92px 110px 110px; }
.sx-stock, .sx-recent { grid-template-columns: 44px minmax(0, 1fr); }
.sx-recent { grid-template-columns: minmax(0, 1fr); padding: 8px 18px; }
.sx-img { width: 44px; height: 44px; border-radius: calc(10px * var(--rs, 1)); object-fit: cover; display: grid; place-items: center; background: var(--panel-3); font-weight: 800; font-size: calc(13px * var(--fs, 1)); }
.sx-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: calc(17px * var(--fs, 1));
  color: hsl(var(--h) 70% 75%); background: hsl(var(--h) 30% 16%); }
.sx-id { display: grid; gap: 3px; min-width: 0; }
.sx-l1 { display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; }
.sx-l1 b { font-weight: 700; }
.sx-l1 .muted { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sx-l2 { display: flex; align-items: center; gap: 8px; font-size: calc(12.5px * var(--fs, 1)); }
.sx-l2 em { font-style: normal; font-weight: 600; }
.sx-ver { font-size: calc(11px * var(--fs, 1)); color: var(--accent); }
.sx-copy { border: 0; background: none; color: var(--faint); padding: 2px; cursor: pointer; display: inline-grid; flex: none; }
.sx-copy:hover { color: var(--text); }
.sx-copy svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.sx-num { display: grid; gap: 1px; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; }
.sx-num small { font-size: calc(11px * var(--fs, 1)); color: var(--faint); }
.sx-num b { font-weight: 600; font-size: calc(14px * var(--fs, 1)); white-space: nowrap; }
.sx-qb { justify-self: end; }
.sx-none, .sx-hint { padding: 10px 18px; margin: 0; font-size: calc(13.5px * var(--fs, 1)); }
.sx-hint { padding: 26px 18px; text-align: center; }
.sx-busy { text-align: center; color: var(--muted); padding: 10px; margin: 0; }
@media (max-width: 720px) {
  .modal.sx-modal { padding: 0; align-items: stretch; }
  .sx-modal .modal-box { max-width: none; max-height: none; height: 100%; border-radius: 0; border: 0; }
  .sx-top { padding: 12px 14px; padding-top: calc(12px + env(safe-area-inset-top)); }
  .sx-top input { font-size: calc(17px * var(--fs, 1)); }
  .sx-row { grid-template-columns: 40px minmax(0, 1fr) 76px auto; padding: 9px 14px; gap: 10px; }
  .sx-wallet { grid-template-columns: 40px minmax(0, 1fr) 76px; }
  .sx-img, .sx-av { width: 40px; height: 40px; }
  .sx-hide-s { display: none; }
  .sx-sec > header { padding: 12px 14px 6px; }
}
@media (max-width: 720px) { .sx-stock { grid-template-columns: 40px minmax(0, 1fr); } .sx-recent { grid-template-columns: minmax(0, 1fr); } }

/* ---- Pulse loading cards ---- */
.pc-skel { pointer-events: none; cursor: default; }
.pc-skel .sk { display: inline-block; height: 10px; border-radius: calc(5px * var(--rs, 1)); vertical-align: middle;
  background: linear-gradient(90deg, var(--panel-2) 0%, var(--line-2) 40%, var(--panel-2) 80%); background-size: 200% 100%;
  animation: sk-shine 1.4s ease-in-out infinite; animation-delay: var(--d, 0ms); }
.pc-skel .pc-l1 .sk:first-child { height: 13px; }
.pc-skel .pc-l1, .pc-skel .pc-l2, .pc-skel .pc-l3 { display: flex; gap: 7px; align-items: center; }
.pc-skel .pc-l2, .pc-skel .pc-l3 { margin-top: 9px; }
.pc-skel .sk-img { display: block; width: 74px; height: 74px; border-radius: calc(8px * var(--rs, 1)); }
.pc-skel .sk-chip { width: 52px; height: 18px; border-radius: calc(5px * var(--rs, 1)); }
.pc-skel .pc-nums { display: grid; gap: 7px; justify-items: end; }
.pc-skel .sk-btn { width: 76px; height: 30px; border-radius: calc(8px * var(--rs, 1)); margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .pc-skel .sk { animation: none; } }
@media (max-width: 600px) { .pc-skel .sk-img { width: 56px; height: 56px; } }

/* ---- moments: trades, wins, claims, levels (fx.js) ---- */
/* trade buttons go down when pressed, like a key */
#go, .qb, #qsell button, #tk-go, #rw-claim, #cf-claim { transition: transform .08s ease-out, filter .15s; }
#go:active:not(:disabled), .qb:active:not(:disabled), #qsell button:active:not(:disabled), #tk-go:active:not(:disabled),
#rw-claim:active:not(:disabled), #cf-claim:active:not(:disabled) { transform: translateY(1px) scale(.97); filter: brightness(.92); }
/* the receipt that lands on a button */
.rc-ov { position: fixed; z-index: 90; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 10px; pointer-events: none;
  font-weight: 800; white-space: nowrap; overflow: hidden; animation: rc-in .32s cubic-bezier(.2, 1.4, .4, 1) both; }
.rc-ov.out { animation: rc-out .24s ease-in both; }
.rc-ov b { font-stretch: 108%; letter-spacing: -0.01em; }
.rc-ov em { font-style: normal; font-weight: 600; opacity: .8; font-size: .9em; }
.rc-ov .rc-ck { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 22; stroke-dashoffset: 22; animation: rc-ck .35s .12s ease-out forwards; flex: none; }
.rc-buy, .rc-win { background: var(--buy); color: var(--buy-ink); }
.rc-sell { background: var(--panel-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.rc-win { box-shadow: 0 0 0 0 color-mix(in srgb, var(--buy) 60%, transparent); animation: rc-in .32s cubic-bezier(.2, 1.4, .4, 1) both, rc-ring 1.1s .1s ease-out; }
@keyframes rc-in { from { transform: scale(.82); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rc-out { to { transform: translateY(-4px); opacity: 0; } }
@keyframes rc-ck { to { stroke-dashoffset: 0; } }
@keyframes rc-ring { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--buy) 55%, transparent); } to { box-shadow: 0 0 0 18px transparent; } }
/* one light across the card / panel where it happened */
.fx-sweep, .fx-sweep-sell { position: relative; }
.fx-sweep::after, .fx-sweep-sell::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--buy) 22%, transparent) 45%, color-mix(in srgb, var(--buy) 6%, transparent) 60%, transparent 75%);
  background-size: 260% 100%; animation: fx-sweep .85s ease-out both; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--buy) 55%, transparent); }
.fx-sweep-sell::after { background-image: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--sell) 18%, transparent) 45%, transparent 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sell) 45%, transparent); }
@keyframes fx-sweep { from { background-position: 120% 0; opacity: 1; } 80% { opacity: 1; } to { background-position: -40% 0; opacity: 0; } }
/* "2.4x" over the button on a doubled position */
.fx-mult { position: fixed; z-index: 91; transform: translate(-50%, -100%); font: 800 calc(34px * var(--fs, 1))/1 var(--font); font-stretch: 125%; letter-spacing: -0.04em;
  color: var(--buy); text-shadow: 0 2px 0 var(--ink), 0 8px 24px color-mix(in srgb, var(--buy) 45%, transparent); pointer-events: none;
  animation: fx-mult 1.6s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes fx-mult { 0% { opacity: 0; transform: translate(-50%, -60%) scale(.6); } 18% { opacity: 1; transform: translate(-50%, -110%) scale(1.08); }
  30% { transform: translate(-50%, -105%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -150%) scale(1); } }
/* 5x and better: the screen edges glow once */
.fx-edge { position: fixed; inset: 0; z-index: 89; pointer-events: none; box-shadow: inset 0 0 90px 10px color-mix(in srgb, var(--buy) 45%, transparent);
  animation: fx-edge 1.4s ease-out both; }
@keyframes fx-edge { from { opacity: 0; } 20% { opacity: 1; } to { opacity: 0; } }
/* cashback progress: the stretch gained since last time grows in, in the highlight colour */
.cl-bar { position: relative; }
.cl-gain { display: block; margin-top: 4px; font-size: calc(12.5px * var(--fs, 1)); font-weight: 700; color: var(--buy); }
/* level up */
.lvu { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .78); animation: lvu-fade .25s ease-out both; }
.lvu.out { animation: lvu-fade .22s ease-in reverse both; }
.lvu-box { position: relative; width: min(560px, 100%); display: grid; grid-template-columns: 110px 1fr; gap: 26px; align-items: center; padding: 30px 28px;
  border-radius: calc(20px * var(--rs, 1)); background: var(--panel); border: 1px solid color-mix(in srgb, var(--t) 45%, var(--line)); overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7), 0 0 0 1px color-mix(in srgb, var(--t) 20%, transparent); }
.lvu-box::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--t) 22%, transparent), transparent); }
.lvu-rail { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; }
.lvu-rail li { display: flex; align-items: center; gap: 9px; font-size: calc(12px * var(--fs, 1)); color: var(--faint); font-weight: 600; }
.lvu-rail i { width: 10px; height: 10px; border-radius: calc(2px * var(--rs, 1)); transform: rotate(45deg); border: 2px solid var(--line-2); background: var(--ink); flex: none; }
.lvu-rail li.done i { background: var(--t); border-color: var(--t); }
.lvu-rail li.done span { color: var(--muted); }
.lvu-rail li.new i { animation: lvu-light .3s calc(.25s + var(--k) * .12s) ease-out both; }
.lvu-rail li.now span { color: var(--t); font-weight: 800; }
.lvu-rail li.now i { width: 14px; height: 14px; background: var(--t); border-color: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--t) 30%, transparent); }
.lvu-main { position: relative; display: grid; gap: 6px; justify-items: start; }
.lvu-gem { width: 34px; height: 34px; border-radius: calc(6px * var(--rs, 1)); background: var(--t); transform: rotate(45deg); margin: 4px 0 8px 4px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--t) 18%, transparent), 0 10px 30px color-mix(in srgb, var(--t) 40%, transparent);
  animation: lvu-stamp .55s .1s cubic-bezier(.2, 1.5, .35, 1) both; }
.lvu-name { font: 800 calc(30px * var(--fs, 1))/1 var(--font); font-stretch: 125%; letter-spacing: -0.03em; color: var(--t); animation: lvu-up .4s .3s ease-out both; }
.lvu-num { display: flex; align-items: flex-end; gap: 8px; animation: lvu-up .4s .4s ease-out both; }
.lvu-num b { font: 800 calc(76px * var(--fs, 1))/.8 var(--font); font-stretch: 125%; letter-spacing: -0.05em; color: var(--text); font-variant-numeric: tabular-nums; }
.lvu-num span { color: var(--muted); font-size: calc(14px * var(--fs, 1)); line-height: 1.25; padding-bottom: 2px; }
.lvu-main p { margin: 6px 0 10px; color: var(--muted); font-size: calc(14px * var(--fs, 1)); max-width: 40ch; animation: lvu-up .4s .5s ease-out both; }
.lvu-ok { animation: lvu-up .4s .6s ease-out both; min-width: 120px; }
@keyframes lvu-fade { from { opacity: 0; } }
@keyframes lvu-stamp { from { transform: rotate(45deg) scale(2.2); opacity: 0; } 60% { opacity: 1; } to { transform: rotate(45deg) scale(1); } }
@keyframes lvu-up { from { opacity: 0; transform: translateY(8px); } }
@keyframes lvu-light { from { background: var(--ink); border-color: var(--line-2); transform: rotate(45deg) scale(1.6); } }
@media (max-width: 520px) { .lvu-box { grid-template-columns: 1fr; padding: 24px 20px; gap: 18px; } .lvu-rail { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 12px; }
  .lvu-rail span { display: none; } .lvu-rail li.now span { display: inline; } .lvu-num b { font-size: calc(64px * var(--fs, 1)); } }
@media (prefers-reduced-motion: reduce) { .rc-ov, .rc-ov .rc-ck, .lvu, .lvu *, .fx-mult { animation: none !important; } .rc-ov .rc-ck { stroke-dashoffset: 0; } .cl-bar s { transition: none; } }

/* hints in empty boxes are faint, so they never look like something you typed; a box you filled is outlined */
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1; }
input[data-r]:not(:placeholder-shown), #f-inc:not(:placeholder-shown), #f-exc:not(:placeholder-shown) { border-color: var(--accent); color: var(--text); }

/* coin page: just launched here / creator fees */
.tk-wait p { margin: 8px 0; }
.tk-wait .btn { margin-right: 6px; }
.tk-creator h2 { margin-bottom: 4px; }
.tk-creator .kv { margin: 10px 0; }

/* ---------------------------------------------------------------- launch page ---------------------------------- */
/* one column of plain cards; the summary sticks beside it on wide screens, a Launch bar sticks to the bottom on phones */
.lx { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; max-width: 1040px; }
.lx-form { gap: 12px; }
.lx-form .lx-h { margin-bottom: 4px; }
.lx-form .lx-h h1 { font-size: calc(26px * var(--fs, 1)); }
.lx-form .lx-h p { margin: 0; max-width: 60ch; }
.lx-card { border: 1px solid var(--line); border-radius: calc(12px * var(--rs, 1)); background: var(--panel); padding: 16px; }
.lx-card > h2, .lx-more summary h2 { font-size: calc(14px * var(--fs, 1)); font-weight: 600; margin: 0 0 12px; display: flex; gap: 8px; align-items: baseline; }
.lx-card .fld { margin-bottom: 0; }
.lx-card > .fld { margin-top: 12px; }
.lx-coin { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; margin: 0; }
.lx-img-wrap { display: grid; gap: 4px; align-content: start; }
.lx-drop { width: 112px; height: 112px; gap: 6px; border-radius: calc(12px * var(--rs, 1)); }
.lx-drop span { font-size: calc(13px * var(--fs, 1)); }
.lx-drop.bad { border-color: var(--sell); border-style: solid; }
.lx-hint { margin: 8px 0 0; }
.fld-err { display: block; min-height: 0; font-style: normal; font-size: calc(12px * var(--fs, 1)); color: var(--sell); }
.fld-err:empty { display: none; }
.fld.bad input, .fld.bad .lx-tick { border-color: var(--sell); }
.lx-fields { gap: 10px; }
.lx-buy { grid-template-columns: 160px minmax(0, 1fr); }
@media (max-width: 560px) { .lx-buy { grid-template-columns: minmax(0, 1fr); } }   /* (the earlier phone rule is overridden by the line above) */
.lx-share { margin: 10px 0 0; font-size: calc(13px * var(--fs, 1)); }
.lx-share b { font-variant-numeric: tabular-nums; }
#devbuy-note { margin: 6px 0 0; }
.lx-net { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.lx-net button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: calc(10px * var(--rs, 1));
  background: var(--panel); color: var(--muted); font-weight: 600; font-size: calc(13.5px * var(--fs, 1)); cursor: pointer; min-width: 0; }
.lx-net button em { flex: none; }
/* phones: the networks in two rows of two instead of one cramped row (names stay readable) */
@media (max-width: 560px) { .lx-net { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lx-net button.on { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.lx-net button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-more { padding: 0; }
.lx-more summary { list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; }
.lx-more summary::-webkit-details-marker { display: none; }
.lx-more summary h2 { margin: 0; }
.lx-more summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); margin-left: 4px; flex: none; align-self: center; }
.lx-more[open] summary::after { transform: rotate(-135deg); }
.lx-more summary .muted { margin-left: auto; text-align: right; }
.lx-more > :not(summary) { margin: 0 16px 16px; }
.lx-more .chk { display: flex; gap: 10px; margin: 0 16px 14px; }
.lx-links { grid-template-columns: 1fr 1fr; }
.lx-side { top: 72px; gap: 12px; }
.lx-side #pv .pv-card { border: 1px solid var(--line); border-radius: calc(12px * var(--rs, 1)); background: var(--panel); }
.lx-cost { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: calc(12px * var(--rs, 1)); display: grid; gap: 8px; }
.lx-cost > div { display: flex; justify-content: space-between; gap: 12px; font-size: calc(13.5px * var(--fs, 1)); }
.lx-cost dt { color: var(--muted); }
.lx-cost dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.lx-cost .total { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 600; }
.lx-cost .total dt { color: var(--text); }
.lx-cost .lx-balrow dd.down { color: var(--sell); }
.lx-bar { display: none; }
@media (max-width: 960px) {
  .lx { grid-template-columns: 1fr; }
  .lx-side { position: static; }
}
@media (max-width: 900px) {
  /* phones and small tablets: the Launch button is always in reach, above the bottom bar */
  .lx { padding-bottom: 76px; }
  .lx-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; z-index: 29;
    bottom: calc(62px + env(safe-area-inset-bottom)); padding: 10px 16px; background: var(--ink); border-top: 1px solid var(--line); }
  .lx-bar span { display: grid; line-height: 1.2; }
  .lx-bar b { font-variant-numeric: tabular-nums; }
  .lx-bar .btn { min-width: 150px; min-height: 44px; }
  .lx-side #launch-btn { display: none; }
}
@media (max-width: 560px) {
  .lx-coin { grid-template-columns: 96px minmax(0, 1fr); }
  .lx-drop { width: 96px; height: 96px; }
  .lx-links { grid-template-columns: 1fr; }
  .lx-buy { grid-template-columns: 1fr; }
  .lx-net { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
}
.cfg-warn { padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--warn, #f5a524) 45%, transparent); border-radius: calc(10px * var(--rs, 1));
  background: color-mix(in srgb, var(--warn, #f5a524) 8%, transparent); font-size: calc(13.5px * var(--fs, 1)); }

/* launch page: networks whose launcher isn't deployed yet */
.lx-net button .lx-soon { font-style: normal; font-size: calc(10px * var(--fs, 1)); font-weight: 700; padding: 1px 6px; border-radius: calc(999px * var(--rs, 1)); background: var(--panel-3); color: var(--muted); }
.lx-off { margin: -2px 0 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: calc(10px * var(--rs, 1)); color: var(--muted); font-size: calc(13px * var(--fs, 1)); }
.lx-off a { color: var(--accent); }

/* Pulse: a column that hasn't refreshed for 30 s says how old it is */
.pfresh{font-size: calc(11px * var(--fs, 1));color:var(--warn);margin-left:6px;white-space:nowrap}
.pfresh:empty{display:none}

/* a trade still confirming / outcome not known yet */
.toast.wait { border-left-color: var(--warn); }
.bal-pend { margin-left: 6px; font-size: calc(11px * var(--fs, 1)); color: var(--warn); font-weight: 500; }

/* trade box: quote age, price impact */
.qage { font-style: normal; font-size: calc(11px * var(--fs, 1)); color: var(--muted); margin-left: 4px; }
.qage.stale { color: var(--warn); }
.qage.stale::before { content: "old · "; }
.kv b.imp-warn, .imp-warn { color: var(--warn); }
.kv b.imp-bad, .imp-bad { color: var(--sell); }
.imp-bad::before { content: "High: "; font-weight: 500; }

/* dialogs: the dialog box takes focus itself (no outline on that), scrolling stays inside it */
.modal, .modal-box, .lp-sheet, .login-card { overscroll-behavior: contain; }
.modal-box:focus, .login-card:focus, .lvu-box:focus { outline: none; }
.ask .modal-box { max-width: 420px; }
.ask-list { margin: 6px 0 4px; padding-left: 18px; display: grid; gap: 6px; color: var(--text); font-size: calc(13.5px * var(--fs, 1)); }
.ask-btns { justify-content: flex-end; margin-top: 14px; }

/* cookie choice: a small bar, never blocks the page; Decline and OK look the same */
.ck { position: fixed; left: 16px; bottom: 16px; z-index: 45; max-width: 440px; display: flex; gap: 12px; align-items: center;
  background: var(--panel-2); border: 1px solid var(--line-2, var(--line)); border-radius: calc(12px * var(--rs, 1)); padding: 12px 14px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.ck p { margin: 0; font-size: calc(12.5px * var(--fs, 1)); color: var(--muted); line-height: 1.45; }
.ck-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex-shrink: 0; }
.ck-btns .btn { min-width: 88px; width: 100%; min-height: 40px; justify-content: center; }
@media (max-width: 900px) { .ck { left: 10px; right: 10px; max-width: none; bottom: calc(76px + env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; }
  .ck-btns .btn { min-width: 0; } }

/* ---- Phase 1: phones and touch ---- */
/* iPhone Safari zooms the whole page into any text field under 16px when it's tapped, and the page then stays
   zoomed (and scrolls sideways). Touch Safari only: fields stay at 16px there, everywhere else keeps its sizes. */
@supports (-webkit-touch-callout: none) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea { font-size: max(16px, 1em); }
}
/* finger-sized touch areas for small icon controls, without changing how they look */
@media (pointer: coarse) {
  .wi-addr, .top .logo { position: relative; }
  .wi-addr::after, .top .logo::after { content: ""; position: absolute; inset: -8px -6px; }
}
.pc-a { color: inherit; text-decoration: none; }   /* a coin card's ticker: a real link for keyboards and screen readers */
.pc-a:hover { color: inherit; }

/* ---- watchlist: the Watch toggle on a coin's page, the Watchlist tab in Discover, its empty state ---- */
.wbtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: fill .15s, stroke .15s; }
.wbtn.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.wbtn.on svg { fill: var(--accent); stroke: var(--accent); }
.dtabs .dt-n { font-style: normal; font-size: calc(12px * var(--fs, 1)); font-weight: 600; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line);
  border-radius: calc(999px * var(--rs, 1)); padding: 0 7px; margin-left: 4px; vertical-align: 3px; line-height: 18px; display: inline-block; }
.dtabs button.on .dt-n { color: var(--text); }
.wl-empty { display: grid; justify-items: center; gap: 2px; padding: 44px 16px; }
.wl-empty svg { width: 28px; height: 28px; fill: none; stroke: var(--faint); stroke-width: 1.6; stroke-linejoin: round; margin-bottom: 8px; }
.wl-empty p { margin: 0; max-width: 420px; }
.wl-empty .btn { margin-top: 14px; }
/* touch screens: the coin page's header actions get finger-sized hit areas */
@media (pointer: coarse) { .ch-acts .btn { min-height: 40px; } }
@media (prefers-reduced-motion: reduce) { .wbtn svg { transition: none; } }
.dtabs .dt-star { display: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; vertical-align: -3px; }
.dtabs button.on .dt-star { fill: currentColor; }
@media (max-width: 600px) { .dtabs .dt-w { display: none; } .dtabs .dt-star { display: inline-block; } .dtabs .dt-n { margin-left: 2px; } }
/* phones: the five lists stay on one line and scroll sideways (a fade at the edge shows there's more) */
@media (max-width: 600px) {
  .discover .page-h .dtabs { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; min-width: 0; max-width: 100%; scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); }
  .discover .page-h .dtabs::-webkit-scrollbar { display: none; }
  .discover .page-h .dtabs button { flex: none; white-space: nowrap; }
  .discover .page-h .dtabs button:last-child { margin-right: 18px; }
}


/* ---- Glow (Settings > Interface): nothing unless switched on; then a soft light on what's selected or active ---- */
html:not([data-glow="off"]) :where(.btn:not(.ghost)):hover,
html:not([data-glow="off"]) :where(input, select, textarea):focus-visible { box-shadow: var(--glow); }

/* ---- Animations (Settings > Interface; a device asking for less motion always counts as Off) ----
   Off: everything settles at once (end states and "finished" events still happen, just instantly); loading spinners
   keep turning, since they say something is still on its way.
   Subtle: the decorative effects go (bursts, sweeps, the mascot's idle moves, pings, glows that breathe); quick
   feedback (hover, pressed, dialogs, toasts, price flashes) stays. */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
  animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
  transition-duration: 1ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
html[data-motion="off"] .spin { animation-duration: 1.4s !important; animation-iteration-count: infinite !important; }
html[data-motion="subtle"] :is(.pip, .pip-btn, .pip-zz, .lvu, .rc-ov, .coin-burst, .lg-bg, .lp-bg, .nf),
html[data-motion="subtle"] :is(.pip, .pip-btn, .lvu, .rc-ov, .coin-burst, .lg-bg, .lp-bg, .nf) *,
html[data-motion="subtle"] .fx-edge, html[data-motion="subtle"] .fx-mult, html[data-motion="subtle"] .fx-sweep::after, html[data-motion="subtle"] .fx-sweep-sell::after,
html[data-motion="subtle"] .c-dot::after, html[data-motion="subtle"] .c-dot::before, html[data-motion="subtle"] .stk-live::after, html[data-motion="subtle"] .bell.ring svg,
html[data-motion="subtle"] .rw-glow, html[data-motion="subtle"] .rw-hero .btn.ready, html[data-motion="subtle"] .lp-hero .lp-btn, html[data-motion="subtle"] .lp-preview {
  animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
/* theme changes cross-fade once (a single snapshot of the page) */
html[data-vt]::view-transition-old(root), html[data-vt]::view-transition-new(root) { animation-duration: .24s; animation-timing-function: ease; }
html[data-vt="subtle"]::view-transition-old(root), html[data-vt="subtle"]::view-transition-new(root) { animation-duration: .14s; }

/* login page music: the speaker button in the top bar */
.lp-music { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #1a1d1a; color: var(--muted); cursor: pointer;
  transition: color .2s, background .2s, transform .15s; }
.lp-music:hover { color: var(--text); }
.lp-music:active { transform: scale(.94); }
.lp-music svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lp-music svg path:first-child { fill: currentColor; }
.lp-music .lpm-wave { display: none; }
.lp-music.on { color: var(--accent); }
.lp-music.on .lpm-wave { display: block; animation: lpm-beat 1.54s ease-in-out infinite; }
.lp-music.on .lpm-x { display: none; }
@keyframes lpm-beat { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* Spotify: Settings panel */
.sp-spotify h2 { display: flex; align-items: center; gap: 8px; }
.sps-logo svg, .sps-go svg { width: 20px; height: 20px; }
.sps-go { background: #1ed760; color: #000; margin: 6px 0 12px; }
.sps-go svg circle { fill: #000; } .sps-go svg path { stroke: #1ed760; }
.sps-h { font-size: calc(14px * var(--fs, 1)); margin: 14px 0 8px; }
.sps-shows { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.sps-shows .empty { grid-column: 1 / -1; padding: 12px; }
.sps-show { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel-2);
  color: var(--text); cursor: pointer; min-width: 0; }
.sps-show:hover { filter: brightness(var(--hover, 1.07)); }
.sps-show[aria-pressed="true"] { border-color: #1ed760; }
.sps-show img { width: 44px; height: 44px; border-radius: calc(6px * var(--rs, 1)); object-fit: cover; flex-shrink: 0; background: var(--line); }
.sps-show span, .sps-ep span { display: flex; flex-direction: column; min-width: 0; }
.sps-show b, .sps-show small, .sps-ep b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sps-show small, .sps-ep small { color: var(--muted); font-size: calc(12px * var(--fs, 1)); }
.sps-eps { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 4px 12px; }
.sps-eh { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sps-ep { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.sps-ep:last-child { border-bottom: 0; }
.sps-eps .empty { padding: 14px; }
[data-play].playing { background: #1ed760; color: #000; border-color: #1ed760; }
.sps-link { display: flex; gap: 8px; margin: 14px 0 6px; }
.sps-link input { flex: 1; min-width: 0; }

/* Spotify: the player docked in the corner while you trade */
.spx { position: fixed; left: 16px; bottom: 44px; z-index: 55; width: min(360px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-panel, 12px); box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .7); overflow: hidden; animation: spx-in .35s both; }
.spx-bar { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; font-size: calc(12px * var(--fs, 1)); color: var(--muted); }
.spx-bar b { flex: 1; font-weight: 600; }
.spx-logo svg { width: 16px; height: 16px; display: block; }
.spx-btn { display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.spx-btn:hover { background: var(--panel-2); color: var(--text); }
.spx-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s; }
.spx-frame { height: 152px; transition: height .25s; }
.spx-frame iframe { display: block; width: 100%; height: 152px; border: 0; }
/* folded: just the bar (the player stays loaded, so it keeps playing) */
.spx.min { width: auto; }
.spx.min .spx-frame { height: 0; }
.spx.min .spx-btn svg { transform: rotate(180deg); }
@keyframes spx-in { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 760px) { .spx { left: 8px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: calc(100vw - 16px); } .spx.min { width: auto; } }
html[data-motion="off"] .spx, html[data-motion="off"] .lp-music.on .lpm-wave { animation: none; }

/* Spotify account row (Settings) */
.sps-acct { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin: 6px 0 4px;
  border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel-2); }
.sps-acct-t { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sps-acct-t img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.sps-acct-t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sps-acct-b { display: flex; gap: 8px; flex-wrap: wrap; }

/* Top tracks (More menu) */
.tt { max-width: 900px; margin: 0 auto; }
.tt h1 { display: flex; align-items: center; gap: 10px; }
.tt-logo svg { width: 26px; height: 26px; display: block; }
.tt-who { margin: -6px 0 12px; }
.tt-who a { color: inherit; }
.tt-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); overflow: hidden; }
.tt-row + .tt-row { border-top: 1px solid var(--line); }
.tt-play { display: grid; grid-template-columns: 28px 44px minmax(0, 1fr) minmax(0, .7fr) 48px; align-items: center; gap: 12px; width: 100%;
  padding: 8px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tt-play:hover { background: var(--panel-2); }
.tt-play:focus-visible { outline: 2px solid #1ed760; outline-offset: -2px; }
.tt-n { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.tt-play img, .tt-noart { width: 44px; height: 44px; border-radius: calc(4px * var(--rs, 1)); object-fit: cover; background: var(--line); display: block; }
.tt-t { display: flex; flex-direction: column; min-width: 0; }
.tt-t b, .tt-t small, .tt-al { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-t small { color: var(--muted); font-size: calc(12px * var(--fs, 1)); }
.tt-d { text-align: right; font-variant-numeric: tabular-nums; }
.tt-row.playing .tt-t b, .tt-row.playing .tt-n { color: #1ed760; }
.tt-eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.tt-eq i { width: 3px; background: #1ed760; border-radius: 1px; animation: tt-eq 0.9s ease-in-out infinite; }
.tt-eq i:nth-child(2) { animation-delay: -.3s; } .tt-eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes tt-eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
html[data-motion="off"] .tt-eq i { animation: none; height: 10px; }
.tt-gate { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 40px 16px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel); }
.tt-gate-ic svg { width: 44px; height: 44px; display: block; }
.tt-gate h2 { font-size: calc(18px * var(--fs, 1)); margin: 4px 0 0; }
.tt-gate p { max-width: 420px; margin: 0 0 6px; }
.tt-gate .sps-go { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 760px) {
  .tt-play { grid-template-columns: 22px 40px minmax(0, 1fr) 40px; gap: 10px; padding: 8px 10px; }
  .tt-play img, .tt-noart { width: 40px; height: 40px; }
  .tt-al { display: none; }
  .tt .page-h .seg { width: 100%; } .tt .page-h .seg button { flex: 1; }
}

/* ---- trading feel (feel.js): only transform / opacity animate; motion "off" stops all of it (rule above) ---- */
/* a failed trade: the button shakes once */
.shake { animation: fl-shake .42s cubic-bezier(.36,.07,.19,.97); }
@keyframes fl-shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
/* total PnL crossing break-even: one pop in the new colour */
.be-up, .be-down { display: inline-block; animation: fl-pop .55s cubic-bezier(.2,1.4,.4,1); }
@keyframes fl-pop { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 100% { transform: scale(1); } }
/* Final stretch, 90%+ of the curve: the bar heats up (a light runs along it) */
.bc { position: relative; }
.bc.hot i { background: var(--warn); }
.bc.hot::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-120%); animation: fl-heat 1.4s ease-in-out infinite; }
@keyframes fl-heat { to { transform: translateX(260%); } }
html[data-motion="subtle"] .bc.hot::after { animation: none; opacity: 0; }
/* the chart while it loads: faint candles the size of the chart (no jump when the real one draws) */
.chart-skel { display: flex; align-items: stretch; gap: 1.2%; padding: 8% 7% 22% 3%; }
.chart-skel i { flex: 1; position: relative; }
.chart-skel i::before { content: ""; position: absolute; left: 20%; right: 20%; bottom: var(--y); height: var(--h); border-radius: 1px;
  background: var(--panel-3); animation: fl-skel 1.4s ease-in-out infinite; animation-delay: calc(var(--i) * 40ms); }
@keyframes fl-skel { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.chart-msg .btn { margin: 0 6px; }
/* Settings: the shortcuts list, the volume row */
.sp-keys { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; margin: 4px 0; align-items: center; }
.sp-keys dt { margin: 0; }
.sp-keys dd { margin: 0; color: var(--muted); font-size: calc(13px * var(--fs, 1)); }
.sp-keys kbd { font: 600 calc(12px * var(--fs, 1))/1 var(--mono, ui-monospace, monospace); padding: 5px 8px; border-radius: calc(5px * var(--rs, 1));
  border: 1px solid var(--line-2, var(--line)); border-bottom-width: 2px; background: var(--panel-2); color: var(--text); white-space: nowrap; }
#sp-vol-test { margin-left: 8px; }
@media (max-width: 760px) { #sp-vol-test { justify-self: start; margin-left: 0; } }

/* END OF STYLES.CSS: the server checks for this line at start. If it is missing, the file was cut off while uploading. */
