/* Dialed. The homepage keeps the navy tokens on :root; the app (body without .on-landing) swaps them
   for a dark monochrome set: near-black panel inset on a grey ground, a sidebar, thin 1px borders,
   white as the only accent. Colour only where it means something: green up, red down, a warm tint
   for the launch-window fee. Flat fills, no shadows at rest, one sans (Geist). */
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-variable.woff2") format("woff2-variations"), url("/fonts/geist-variable.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  --bg: #061a3a; --panel: #0a2349; --panel-2: #0e2b57; --panel-3: #143565;
  --line: rgba(255,255,255,.075); --line-2: rgba(255,255,255,.12);
  --text: #ffffff; --mute: rgba(226,238,255,.66); --dim: rgba(226,238,255,.42);
  --accent: #6cc6f5; --accent-ink: #061a3a; --accent-soft: rgba(108,198,245,.14);
  --warn: #ffb59f; --warn-soft: rgba(255,181,159,.12);
  --r: 20px; --r-s: 14px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --out: cubic-bezier(.16,1,.3,1); --in: cubic-bezier(.55,0,.75,.2); --spring: cubic-bezier(.34,1.42,.64,1);
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body:not(.on-landing) { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid rgba(255,255,255,.85); outline-offset: 2px; }

/* ---------- shared with the homepage (wallet pill, menus, fee curve, split bar, toast) ---------- */
.acct-pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-2); cursor: pointer; font-size: 13px; font-variant-numeric: tabular-nums; position: relative; }
.acct-pill i { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); }
.acct-pill span { padding-right: 8px; }
.acct-pill { transition: transform .18s var(--out), background .2s, opacity .2s, box-shadow .2s; }
.acct-pill:hover { transform: translateY(-1.5px); }
.acct-pill:active { transform: scale(.97); transition-duration: .12s; }
.acct-menu { position: absolute; right: 0; top: 46px; z-index: 30; min-width: 170px; padding: 6px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(1,8,22,.55); }
.acct-menu button, .acct-menu a { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; background: none; border-radius: 9px; cursor: pointer; font-size: 13px; }
.acct-menu button:hover, .acct-menu a:hover { background: rgba(255,255,255,.07); }
.ca-chip.is-count { cursor: default; }
.fc-box { position: relative; width: 100%; min-height: 150px; }
.fc { display: block; }
.fc-g { stroke: rgba(255,255,255,.07); }
.fc-t { fill: var(--dim); font-size: 11px; font-family: inherit; font-variant-numeric: tabular-nums; }
.fc-fill { fill: var(--accent); opacity: .12; }
.fc-line { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; }
.fc-win { stroke: rgba(255,255,255,.22); stroke-dasharray: 3 4; }
.fc-cur { stroke: rgba(255,255,255,.55); stroke-width: 1; }
.fc-dot { fill: #fff; stroke: var(--accent); stroke-width: 3; }
.fc-lab { fill: #fff; font-size: 12.5px; font-weight: 600; font-family: inherit; font-variant-numeric: tabular-nums; }
.split-bar { display: flex; min-height: 44px; border-radius: 14px; overflow: hidden; gap: 3px; }
.split-bar div { display: flex; flex-direction: column; justify-content: center; padding: 6px 12px; font-size: 12px; font-weight: 500; white-space: nowrap; min-width: 0; overflow: hidden; }
.split-bar div span { font-weight: 400; font-size: 11px; opacity: .75; overflow: hidden; text-overflow: ellipsis; }
.split-bar .sv { background: var(--accent); color: var(--accent-ink); }
.split-bar .sc { background: #2d5c9a; color: #fff; }
.split-bar .sd { background: var(--panel-3); color: var(--mute); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; max-width: min(520px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 16px; background: #fff; color: var(--accent-ink); font-size: 13px; font-weight: 500; line-height: 1.45; box-shadow: 0 18px 50px rgba(1,8,22,.5); pointer-events: none; transition: opacity .25s var(--in), transform .3s var(--in); }
.toast.show { opacity: 1; transform: translate(-50%, 0); transition: opacity .35s var(--out), transform .5s var(--spring); }
.sw-mask, .sl-mask { padding: .04em 0 .16em; margin: -.04em 0 -.16em; }
.rl { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.3; }
.rl-a, .rl-b { display: block; transition: transform .3s cubic-bezier(.65,0,.35,1); }
.rl-b { position: absolute; left: 0; right: 0; top: 100%; }
:is(.L-btn, .L-connect, .connect, .cta, .btn-s):hover:not(:disabled) .rl > span { transform: translateY(-100%); }
.dg { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1; height: 1em; }
.dg > span { display: inline-block; }

/* ---------- app tokens ---------- */
body:not(.on-landing) {
  --ground: #1b1b1d; --bg: #111113; --side: #0e0e0f;
  --panel: #1a1a1c; --panel-2: #151517; --panel-3: #222224; --raise: #262628;
  --line: #29292b; --line-2: #333336; --line-s: #212123;
  --text: #f4f4f5; --mute: #9d9da3; --dim: #6b6b71; --icon: #85858b;
  --accent: #f4f4f5; --accent-ink: #111113; --accent-soft: rgba(255,255,255,.07);
  --up: #5fc98f; --dn: #ec7474;
  --warn: #e8b26c; --warn-soft: rgba(232,178,108,.07); --warn-line: rgba(232,178,108,.26);
  --r: 14px; --r-s: 10px;
  background: var(--ground);
}
html:has(> body:not(.on-landing)) { background: #1b1b1d; }

/* ---------- shell: one rounded panel on the ground, sidebar and main ---------- */
.app { padding: 14px; min-height: 100vh; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: calc(100vh - 28px); background: var(--bg); border: 1px solid var(--line-s); border-radius: 18px; }

/* sidebar */
.sb { min-width: 0; background: var(--side); border-right: 1px solid var(--line-s); border-radius: 17px 0 0 17px; }
.sb-in { position: sticky; top: 14px; height: calc(100vh - 30px); display: flex; flex-direction: column; padding: 16px 14px 14px; overflow-y: auto; scrollbar-width: none; }
.sb-in::-webkit-scrollbar { display: none; }
.sw-wrap { position: relative; display: flex; gap: 8px; margin-bottom: 14px; }
.switch { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 12px 0 9px; border-radius: 12px; border: 1px solid var(--line-s); background: var(--panel-2); cursor: pointer; text-align: left; transition: border-color .2s, background .2s; }
.switch:hover { border-color: var(--line-2); }
.tile-s { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: #1e1e20; border: 1px solid var(--line); }
.tile-s img { display: block; width: 19px; height: auto; }
.sw-t { flex: 1; min-width: 0; display: grid; gap: 2px; line-height: 1.2; }
.sw-t b { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.sw-t small { font-size: 12.5px; color: var(--dim); }
.sw-c { display: grid; color: var(--dim); }
.sw-c svg { width: 18px; height: 18px; }
.sb-x { display: none; }
.sw-menu { left: 0; right: auto; top: 64px; min-width: 230px; }
.sw-note { display: block; margin-top: 4px; padding: 9px 10px 5px; border-top: 1px solid var(--line-s); font-size: 12px; color: var(--dim); }

.srow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; margin: 2px 0; padding: 0 12px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--mute); font: inherit; font-size: 15px; text-align: left; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.srow .ni { display: grid; flex: none; color: var(--icon); transition: color .2s; }
.srow .ni svg { width: 19px; height: 19px; }
.srow:hover { color: var(--text); background: #141416; }
.srow:hover .ni { color: var(--text); }
.srow.on { color: var(--text); background: var(--panel-2); border-color: var(--line-s); }
.srow.on .ni { color: var(--text); }
.srch { cursor: text; }
.srch input { flex: 1; min-width: 0; height: 40px; padding: 0; border: 0; background: none; outline: none; color: var(--text); font: inherit; font-size: 15px; }
.srch input::placeholder { color: var(--mute); opacity: 1; }
.srch input::-webkit-search-cancel-button { display: none; }
.srch kbd { display: grid; place-items: center; flex: none; width: 24px; height: 26px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--dim); font: inherit; font-size: 12px; }
.srch:focus-within { background: var(--panel-2); border-color: var(--line); }
.srch:focus-within kbd { opacity: 0; }
.sres { margin: 4px 0; padding: 4px; border-radius: 12px; border: 1px solid var(--line-s); background: var(--panel-2); }
.sr { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: 14px; }
.sr .av { border-radius: 7px; }
.sr span:not(.av) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr small { color: var(--dim); font-size: 12px; }
.sr:hover, .sr:focus-visible { background: #1f1f21; outline: none; }
.sr-none { margin: 0; padding: 8px; font-size: 13px; color: var(--dim); }
.sdiv { margin: 10px 2px; border: 0; border-top: 1px solid var(--line-s); }
.mine { margin-bottom: 16px; }
.crow { color: var(--text); }
.crow > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow .sq { flex: none; width: 15px; height: 15px; margin: 0 2px; border-radius: 4px; }
.crow .caret { flex: none; color: var(--dim); }
.srow.quiet { padding-top: 9px; padding-bottom: 9px; font-size: 13.5px; line-height: 1.4; color: var(--dim); }
p.srow.quiet { cursor: default; }
p.srow.quiet:hover { background: none; color: var(--dim); }
.srow.quiet svg { width: 18px; height: 18px; flex: none; color: var(--dim); }
.promo { position: relative; margin-top: auto; padding: 16px; border-radius: 14px; border: 1px solid var(--line-s); background: #151517; }
.promo .tile-l { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 11px; border: 1px solid var(--line-2); background: #1c1c1e; color: var(--text); }
.promo .tile-l svg { width: 24px; height: 24px; }
.promo b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.promo p { margin: 8px 0 18px; font-size: 14px; line-height: 1.5; color: var(--mute); }
.promo-x { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--dim); cursor: pointer; transition: color .2s, background .2s; }
.promo-x:hover { color: var(--text); background: #1f1f21; }
.promo-x svg { width: 16px; height: 16px; }

/* main column and its header row */
.main { min-width: 0; display: flex; flex-direction: column; padding: 16px 32px 24px; }
.top { display: flex; align-items: center; gap: 12px; height: 58px; }
.top-logo { display: none; }
.crumb { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; font-size: 18px; color: var(--mute); }
.crumb-i { display: grid; flex: none; color: var(--icon); }
.crumb-i svg { width: 22px; height: 22px; }
.crumb-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb-sep { margin: 0 10px; color: var(--dim); }
.top-r { display: flex; align-items: center; gap: 8px; }
.xbtn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-s); color: var(--mute); transition: color .2s, border-color .2s; }
.xbtn:hover { color: var(--text); border-color: var(--line-2); }
.connect { height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--raise); color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; }
.connect:hover { background: #2e2e31; }
#app .acct-pill { height: 38px; gap: 9px; padding: 0 14px 0 12px; border-radius: 10px; background: var(--panel-2); border-color: var(--line-2); font-size: 13.5px; }
#app .acct-pill i { width: 7px; height: 7px; background: var(--up); }
#app .acct-pill span { padding: 0; }
#app .acct-menu { top: 46px; border-radius: 12px; background: #1d1d1f; border-color: var(--line-2); box-shadow: none; }
#app .acct-menu button:hover, #app .acct-menu a:hover { background: #29292b; }
.ca-chip.bar-ca { height: 38px; padding: 0 13px; border-radius: 10px; background: var(--panel-2); border-color: var(--line-2); color: var(--text); }
.menu { display: none; }
.scrim { display: none; }
.view { flex: 1; width: 100%; max-width: 1280px; outline: none; }

/* ---------- headline ---------- */
.head { margin: 22px 0 28px; }
.head h1 { margin: 0; font-size: 34px; font-weight: 500; letter-spacing: -.03em; line-height: 1.12; color: var(--text); }
.head .sub { margin: 10px 0 0; max-width: 72ch; font-size: 15px; line-height: 1.55; color: var(--mute); }
.head .sub a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.head .sub a:hover { text-decoration-color: var(--mute); }

/* ---------- cards ---------- */
.card { position: relative; min-width: 0; padding: 22px 24px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); transition: border-color .25s var(--out); }
.card-h { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; min-height: 34px; margin-bottom: 18px; }
.card-h h3 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -.015em; color: var(--text); }
.ch-r { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.lbl { font-size: 14px; color: var(--mute); }
.n { font-weight: 500; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; color: var(--text); }
.n-d { color: inherit; }
.n-u { margin-left: .32em; font-size: max(13px, .34em); font-weight: 500; letter-spacing: 0; color: var(--mute); vertical-align: baseline; line-height: 0; }
.arrow { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); color: var(--mute); transition: color .2s, border-color .2s; }
.arrow:hover { color: var(--text); border-color: var(--line-2); }
.arrow svg { width: 15px; height: 15px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 7px; background: var(--panel-3); border: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip.up { color: var(--up); }
.chip.dn { color: var(--dn); }
.chip.up::before { content: ""; border: 4px solid transparent; border-bottom: 5px solid currentColor; border-top: 0; }
.chip.dn::before { content: ""; border: 4px solid transparent; border-top: 5px solid currentColor; border-bottom: 0; }
.chip.hot { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }
.hot { color: var(--warn); }
.empty { margin: 6px 0; font-size: 13.5px; line-height: 1.5; color: var(--dim); }
.empty a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.empty-card { padding: 30px 16px; text-align: center; }
.empty-card p { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--mute); }
.av { position: relative; display: inline-grid; place-items: center; flex: none; overflow: hidden; border-radius: 10px; color: var(--mute); }
.av b { font-weight: 600; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.av-t { background: var(--panel-3); box-shadow: inset 0 0 0 1px var(--line); }

/* segmented tabs */
.tabs { position: relative; display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.tabs > button { position: relative; z-index: 1; height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: none; font-size: 13px; color: var(--mute); cursor: pointer; white-space: nowrap; transition: color .2s; }
.tabs > button:hover { color: var(--text); }
.tabs > button[aria-selected="true"] { color: var(--text); background: var(--raise); }
.tab-ind { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 7px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .42s var(--spring), width .42s var(--spring); }
.tabs:has(> .tab-ind) > button[aria-selected="true"] { background: transparent; }

/* buttons */
.btn-f, .btn-g { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 10px; font: inherit; font-size: 14.5px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .18s var(--out); }
.btn-f { border: 1px solid var(--line-2); background: var(--raise); color: var(--text); }
.btn-f:hover:not(:disabled) { background: #2e2e31; border-color: #3b3b3f; }
.btn-g { border: 0; background: none; color: var(--mute); }
.btn-g:hover { color: var(--text); background: #1f1f21; }
.btn-f svg, .btn-g svg { width: 17px; height: 17px; flex: none; }
.btn-f:disabled { opacity: .4; cursor: default; }
.btn-f.wide { width: 100%; height: 44px; font-size: 15px; }
.btn-s { display: inline-grid; place-items: center; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--raise); color: var(--text); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.btn-s:hover:not(:disabled) { background: #2e2e31; }
.btn-s:disabled { opacity: .4; cursor: default; }
.cta { width: 100%; height: 46px; border: 0; border-radius: 10px; background: var(--text); color: #111113; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .18s var(--out), background .2s, opacity .2s; }
.cta:hover:not(:disabled) { background: #fff; }
.cta:disabled { opacity: .3; cursor: default; }
.cta.hot { background: var(--warn); color: #261705; }
.cta.quiet { background: none; color: var(--text); border: 1px solid var(--line-2); }
.cta:hover:not(:disabled), .connect:hover, .btn-s:hover:not(:disabled), .btn-f:hover:not(:disabled) { transform: translateY(-1px); }
.cta:active:not(:disabled), .connect:active, .btn-s:active:not(:disabled), .btn-f:active:not(:disabled), .btn-g:active { transform: scale(.97); transition-duration: .12s; }
.err { min-height: 18px; margin-top: 10px; font-size: 12.5px; line-height: 1.4; text-align: center; color: var(--dn); }
.err:empty { min-height: 0; margin-top: 0; }
.form .err:empty { display: none; }

/* ---------- stat cards ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.stats:has(> .art-card) { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; min-height: 134px; }
.stat .lbl { font-size: 15px; }
.stat .n { margin-top: 18px; font-size: 40px; }
.stat small { margin-top: 10px; font-size: 13px; color: var(--dim); }
.stat small .hot { color: var(--warn); }
.stat.fee.hot { border-color: var(--warn-line); }
.stat.fee.hot .n, .stat.fee.hot small { color: var(--warn); }
.art-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 0; overflow: hidden; }
.art-card .st { display: flex; flex-direction: column; min-width: 0; padding: 22px 24px; }
.art { display: grid; place-items: center; width: 168px; background: var(--bg); border-left: 1px solid var(--line); }
.art svg { display: block; }
.art .ct { fill: #262628; stroke: #3b3b3e; stroke-width: 1.2; }
.art .cs { fill: #1e1e20; stroke: #3b3b3e; stroke-width: 1.2; }
.art .c-b .ct { fill: #1c1c1e; stroke: #2c2c2f; }
.art .c-b .cs { fill: #171719; stroke: #2c2c2f; }
.art .cr { fill: none; stroke: #4a4a4e; stroke-width: 1.2; }

/* ---------- chart card ---------- */
.chart-card { margin-bottom: 14px; padding-bottom: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--mute); }
.legend span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.k-l, .k-d { display: inline-block; flex: none; width: 18px; }
.k-l { height: 2px; border-radius: 2px; background: #ececee; }
.k-d { height: 0; border-top: 2px dashed #5d5d62; }
.chart-box { position: relative; height: 300px; }
.area { display: block; touch-action: pan-y; }
.area .g { stroke: #29292b; stroke-width: 1; }
.area text { fill: var(--mute); font-size: 12.5px; font-family: inherit; font-variant-numeric: tabular-nums; }
.area .af { fill: url(#hatch); }
.area .lp { fill: none; stroke: #ececee; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.area .cp { fill: none; stroke: #58585d; stroke-width: 2; stroke-dasharray: 5 5; stroke-linecap: round; }
.area .cur { stroke: #3d3d41; }
.area .dp { fill: var(--text); stroke: var(--panel); stroke-width: 3; }
.tipcard { position: absolute; z-index: 5; pointer-events: none; min-width: 150px; padding: 10px 12px; border-radius: 10px; background: #232325; border: 1px solid var(--line-2); color: var(--text); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tipcard .d { font-size: 11.5px; color: var(--mute); margin-bottom: 4px; }
.tipcard .big { font-size: 20px; letter-spacing: -.02em; line-height: 1.15; }
.tipcard .big small { margin-left: 4px; font-size: 11px; color: var(--mute); letter-spacing: 0; }
.tipcard .tl { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--mute); white-space: nowrap; }
.tipcard .tl b { margin-left: auto; padding-left: 10px; color: var(--text); font-weight: 500; }
.chart-foot { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 12px 0 0; font-size: 13px; color: var(--mute); }
.chart-foot b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- section card with item cards ---------- */
.sect { margin-bottom: 14px; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.item { display: flex; flex-direction: column; min-width: 0; padding: 18px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-s); transition: border-color .25s var(--out); }
.item:hover { border-color: var(--line); }
.item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.tile { position: relative; display: grid; place-items: center; flex: none; width: 120px; height: 86px; overflow: hidden; border-radius: 10px; background: var(--panel-3); border: 1px solid var(--line); }
.tile .tk { font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--mute); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item-meta { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding-top: 3px; font-size: 13px; color: var(--mute); }
.hc { font-variant-numeric: tabular-nums; }
.item h4 { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.item h4 a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item h4 a:hover { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.item .mine { flex: none; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); font-size: 11.5px; font-weight: 400; color: var(--mute); }
.item p { margin: 8px 0 18px; font-size: 14px; line-height: 1.55; color: var(--mute); font-variant-numeric: tabular-nums; }
.item-btns { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; margin-top: auto; }
.item.ghost { justify-content: center; gap: 8px; min-height: 260px; background: none; border-style: dashed; border-color: var(--line); color: var(--mute); font-size: 14px; line-height: 1.5; transition: border-color .2s, color .2s; }
.item.ghost .tile { width: 48px; height: 48px; margin-bottom: 8px; color: var(--text); }
.item.ghost .tile svg { width: 22px; height: 22px; }
.item.ghost b { color: var(--text); font-size: 17px; font-weight: 500; }
.item.ghost:hover { border-color: var(--line-2); color: var(--text); }
.card.item { padding: 22px 24px; border-radius: var(--r); background: var(--panel); border-color: var(--line); }
.card.item p { margin-bottom: 0; }

/* ---------- activity ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 14px; align-items: start; }
.duo.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.act-list { display: flex; flex-direction: column; }
.arow { display: flex; align-items: center; gap: 12px; margin: 0 -10px; padding: 10px; border-radius: 10px; transition: background .2s; }
.arow:hover { background: #1f1f21; }
.arow .t { flex: 1; min-width: 0; }
.arow .t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; }
.arow .t small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--dim); }
.arow .v { text-align: right; white-space: nowrap; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.arow .v small { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--mute); }
.arow .v small.hot { color: var(--warn); }
.arow .v .btn-s { margin-top: 6px; }
.arow.new { animation: rowin .6s var(--out); }
@keyframes rowin { from { opacity: 0; transform: translateY(-8px); } }
.mylist { display: grid; gap: 2px; }
.you .n { margin: 10px 0 22px; font-size: 36px; }
.you p { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--mute); }
.you-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line-s); }
.you-row b { display: block; margin-top: 6px; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- coin page ---------- */
.coin-head { display: flex; align-items: center; gap: 18px; }
.ctile { position: relative; display: grid; place-items: center; flex: none; width: 64px; height: 64px; overflow: hidden; border-radius: 14px; background: var(--panel-3); border: 1px solid var(--line); }
.ctile .tk { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--mute); }
.ctile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ch-t { flex: 1; min-width: 0; }
.ch-t h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-t .sub { margin-top: 6px; }
.cg { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cg .chart-card { margin-bottom: 0; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line-s); }
.minis span { display: block; font-size: 13px; color: var(--mute); }
.minis b { display: block; margin-top: 6px; font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minis b small { font-size: 13px; font-weight: 400; color: var(--dim); }
.trade .tabs { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; margin-bottom: 18px; }
.trade .tabs > button { height: 34px; font-size: 14px; }
.field { display: block; }
.field .top { display: flex; justify-content: space-between; gap: 8px; height: auto; margin-bottom: 8px; font-size: 13px; color: var(--mute); }
.inbox { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); transition: border-color .2s; }
.inbox:focus-within { border-color: #4a4a4f; }
.inbox input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--text); font: inherit; font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.inbox input::placeholder { color: var(--dim); }
.inbox .u { font-size: 13.5px; font-weight: 500; color: var(--mute); }
.quick { display: flex; gap: 6px; margin: 10px 0 14px; }
.quick button { flex: 1; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--mute); font-size: 12.5px; cursor: pointer; transition: background .2s, color .2s, transform .3s var(--spring); }
.quick button:hover { background: #1f1f21; color: var(--text); }
.quick button:active { transform: scale(.95); }
.warn { display: grid; gap: 6px; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); border: 1px solid var(--warn-line); font-size: 13px; line-height: 1.5; color: #eadbc6; }
.warn b { font-size: 14px; font-weight: 600; color: var(--warn); font-variant-numeric: tabular-nums; }
.warn small { font-size: 12px; color: #bfae96; }
.warn:empty { display: none; }
.qrows { display: grid; gap: 10px; padding: 14px 0 16px; border-top: 1px solid var(--line-s); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.qrows div { display: flex; justify-content: space-between; gap: 10px; }
.qrows span { color: var(--mute); }
.qrows b { font-weight: 500; text-align: right; }
.qrows .hot { color: var(--warn); }
.pos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.pos .lbl { margin-bottom: 6px; font-size: 13px; }
.pos .v { font-size: 17px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pos .empty { grid-column: 1 / -1; margin: 0; }
.rw .n { margin: 4px 0 16px; font-size: 34px; }
.rw p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--mute); }
.rw p:last-child { margin-bottom: 0; }
.rw p b { color: var(--text); font-weight: 500; }
.rw .pos { margin-bottom: 16px; }
.rw .btn-f { width: 100%; }
.rw .note { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--dim); }
.how { display: grid; gap: 14px; align-content: start; }
.how .card-h { margin-bottom: 4px; }
.how p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--mute); }
.how p b { color: var(--text); font-weight: 500; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kv div { min-width: 0; padding: 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-s); }
.kv small { display: block; margin-bottom: 6px; font-size: 12.5px; color: var(--mute); }
.kv b { font-size: 15px; font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pool .n { font-size: 36px; }
.pool .pool-sub { margin: 4px 0 2px; font-size: 13px; color: var(--dim); }
[data-b="split"] p { margin-top: 12px; }
#app .fc-g { stroke: #29292b; }
#app .fc-t { fill: var(--mute); font-size: 12px; }
#app .fc-fill { fill: url(#hatch); opacity: 1; }
#app .fc-line { stroke: #ececee; stroke-width: 2.2; }
#app .fc-win { stroke: #58585d; stroke-width: 1.5; stroke-dasharray: 5 5; }
#app .fc-cur { stroke: #4a4a4f; }
#app .fc-dot { fill: #fff; stroke: var(--panel); }
#app .split-bar { min-height: 46px; border-radius: 10px; }
#app .split-bar div span { opacity: 1; }
#app .split-bar .sv { background: #ececee; color: #111113; }
#app .split-bar .sv span { color: #4b4b50; }
#app .split-bar .sc { background: #38383b; color: var(--text); }
#app .split-bar .sc span { color: #b4b4b9; }
#app .split-bar .sd { background: var(--panel-3); color: var(--mute); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- launch ---------- */
.lg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 14px; align-items: start; }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.form .card-h { margin-bottom: 0; }
.form > *, .form .two > * { min-width: 0; }
.form label > span:not(.inbox) { display: block; margin-bottom: 8px; font-size: 13.5px; color: var(--mute); }
.form .two { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 12px; }
.tin { width: 100%; min-width: 0; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-size: 15px; outline: none; transition: border-color .2s; }
.tin::placeholder { color: var(--dim); }
.tin:focus { border-color: #4a4a4f; }
.form .note { margin: -4px 0 0; font-size: 13px; line-height: 1.5; color: var(--dim); }
.form .hint { margin: 8px 0 0; font-size: 13px !important; line-height: 1.5; color: var(--mute); }
.lg-side { display: grid; gap: 14px; min-width: 0; }

/* ---------- coins page ---------- */
.searchbox { display: flex; align-items: center; gap: 8px; min-width: 260px; height: 38px; padding: 0 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); color: var(--dim); }
.searchbox:focus-within { border-color: #4a4a4f; }
.searchbox svg { width: 17px; height: 17px; flex: none; }
.searchbox input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: var(--text); font: inherit; font-size: 14px; }
@media (hover: none) { .srch kbd { display: none; } }
.searchbox input::placeholder { color: var(--dim); }

/* ---------- footer, toast ---------- */
.foot-app { max-width: 1280px; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line-s); font-size: 12.5px; line-height: 1.6; color: var(--dim); }
.foot-app nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 6px; }
.foot-app a { color: var(--mute); }
.foot-app a:hover { color: var(--text); }
.foot-app p { margin: 0; }
body:not(.on-landing) .toast { border-radius: 12px; background: #f4f4f5; color: #111113; box-shadow: none; }

/* ---------- motion ---------- */
.view.in .card, .view.in .head { animation: rise .7s var(--out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.gs .view.in .card, .gs .view.in .head { animation: none; }
.card:hover { border-color: #303033; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .shell { grid-template-columns: 280px minmax(0, 1fr); }
  .promo p { font-size: 13px; }
  .main { padding: 16px 24px 22px; }
  .stats, .stats:has(> .art-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg { grid-template-columns: minmax(0, 1fr) 330px; }
  .pair, .duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1080px) {
  .cg { grid-template-columns: minmax(0, 1fr); }
  .cg > .col { display: contents; }
  .cg-main > .chart-card { order: 1; }
  .cg-side > * { order: 2; }
  .cg-main > .pair { order: 3; }
  .cg-main > .act { order: 4; }
  .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg { grid-template-columns: minmax(0, 1fr); }
  .duo.even { grid-template-columns: minmax(0, 1fr); }
}
/* phone and small tablet: a compact top bar, the sidebar opens as a full-height sheet */
@media (max-width: 900px) {
  .app { padding: 0; }
  .shell { display: block; min-height: 100vh; border: 0; border-radius: 0; }
  .sb { position: fixed; z-index: 70; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); border-radius: 0 16px 16px 0; border-right: 1px solid var(--line); transform: translateX(-102%); visibility: hidden; transition: transform .24s var(--in), visibility 0s .24s; }
  body.sb-open .sb { transform: none; visibility: visible; transition: transform .42s var(--out), visibility 0s; }
  .sb-in { position: static; height: 100%; padding: 14px 14px max(14px, env(safe-area-inset-bottom)); overflow-y: auto; }
  .sb-x { display: grid; place-items: center; flex: none; width: 52px; height: 58px; border-radius: 12px; border: 1px solid var(--line-s); background: var(--panel-2); color: var(--mute); cursor: pointer; }
  .sb-x svg { width: 20px; height: 20px; }
  .scrim { position: fixed; inset: 0; z-index: 65; display: block; background: rgba(0,0,0,.6); }
  body.sb-open { overflow: hidden; }
  .main { padding: 0 16px 20px; }
  .top { position: sticky; top: 0; z-index: 40; height: 60px; margin: 0 -16px; padding: 0 12px 0 16px; background: var(--bg); border-bottom: 1px solid var(--line-s); }
  .top-logo { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
  .top-logo img { display: block; }
  .crumb { gap: 0; font-size: 16px; }
  .crumb-i { display: none; }
  .crumb-sep { margin: 0 8px; }
  .menu { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--raise); color: var(--text); cursor: pointer; }
  .menu svg { width: 20px; height: 20px; }
  .xbtn { display: none; }
  .head { margin: 22px 0 22px; }
  .head h1 { font-size: 28px; }
  .foot-app { margin-top: 28px; }
}
@media (max-width: 600px) {
  .stats { gap: 10px; margin-bottom: 10px; }
  .stats > .art-card, .art-card ~ .stat:nth-child(4) { grid-column: 1 / -1; }
  .card { padding: 18px; }
  .arow { align-items: flex-start; }
  .arow .t b { white-space: normal; }
  .arow .v { max-width: 50%; }
  .arow .v small { white-space: normal; }
  .stat { min-height: 0; padding: 16px; }
  .stat .lbl { font-size: 13px; }
  .stat .n { margin-top: 12px; font-size: 26px; }
  .stat small { font-size: 12px; }
  .stats > .art-card { padding: 0; }
  .art-card .st { padding: 16px; }
  .art { width: 128px; }
  .art svg { width: 100px; height: auto; }
  .chart-card, .sect, .cg, .col, .lg, .lg-side, .duo, .pair { gap: 10px; }
  .chart-card, .sect { margin-bottom: 10px; }
  .chart-box { height: 230px; }
  .ch-r { width: 100%; justify-content: space-between; }
  .card-h .tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .card-h .tabs::-webkit-scrollbar { display: none; }
  .items { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .item.ghost { min-height: 0; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .minis b { font-size: 15px; }
  .form .two { grid-template-columns: minmax(0, 1fr); }
  .coin-head { flex-wrap: wrap; gap: 14px; }
  .coin-head .ctile { width: 52px; height: 52px; border-radius: 12px; }
  .coin-head > .btn-f { width: 100%; }
  .searchbox { width: 100%; min-width: 0; }
  .connect { padding: 0 13px; }
  #app .acct-pill { padding: 0 11px; }
  .you .n, .pool .n, .rw .n { font-size: 30px; }
}
#app.leaving { opacity: 0; pointer-events: none; transition: opacity .24s cubic-bezier(.55,0,.75,.2); }

/* launch: the preview's image box is the upload */
.tile.up { cursor: pointer; padding: 0; font: inherit; color: var(--mute); border-style: dashed; border-color: var(--line-2); transition: border-color .2s, background .2s, color .2s; }
.tile.up:hover, .tile.up.over { border-color: #6b6b70; background: #222224; color: var(--text); }
.tile.up.has { border-style: solid; }
.tile.up:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.up-in { display: grid; justify-items: center; gap: 6px; }
.up-in b { font-size: 12.5px; font-weight: 500; }
.up-over { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: #fff; background: rgba(10,10,11,.62); opacity: 0; transition: opacity .2s; }
.tile.up:hover .up-over, .tile.up:focus-visible .up-over { opacity: 1; }
.up-x { margin-top: 8px; padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--mute); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.up-x:hover { color: var(--text); }
.item.prev .up-hint, .item.prev .up-err { margin: -6px 0 20px; font-size: 12.5px; line-height: 1.5; color: var(--dim); }
.prev .item-meta { display: flex; flex-direction: column; align-items: flex-end; }
.item.prev .up-err { color: #f87171; }

/* stacked coins: drop in one by one, then the top coin floats and a light runs round its rim */
.art .coin { transform-box: fill-box; animation: coin-drop .72s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--i) * 95ms + 180ms); }
.art .coin.top { animation: coin-drop .72s cubic-bezier(.22,1,.36,1) both, coin-float 3.8s ease-in-out infinite; animation-delay: calc(var(--i) * 95ms + 180ms), calc(var(--i) * 95ms + 1000ms); }
.art .shine { fill: none; stroke: #9a9aa0; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 16 84; stroke-dashoffset: 100; opacity: 0; animation: coin-shine 3.8s ease-in-out infinite; animation-delay: 1.5s; }
@keyframes coin-drop { 0% { transform: translateY(-44px); opacity: 0; } 50% { opacity: 1; } 76% { transform: translateY(1.4px); } 100% { transform: none; opacity: 1; } }
@keyframes coin-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3.5px); } }
@keyframes coin-shine { 0% { stroke-dashoffset: 100; opacity: 0; } 10% { opacity: .85; } 52% { stroke-dashoffset: 0; opacity: .85; } 64%, 100% { stroke-dashoffset: 0; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .view.in .card, .view.in .head, .arow.new { animation: none; }
  .toast, .sb, body.sb-open .sb { transition: none; }
  .art .coin, .art .coin.top, .art .shine { animation: none; }
  .art .coin { opacity: 1; }
  #app.leaving { transition: none; }
}

/* ==========================================================================
   Cloak dashboard, after the user's reference screenshot: an indigo-black app
   that fills the window, a full-height sidebar (logo, nav, ranked coins), a top
   bar with search and actions, a photo hero with stat boxes, filter chips and a
   grid of coin cards with a buy box. Loaded last, so it overrides the rules above.
   ========================================================================== */
body:not(.on-landing) {
  --ground: #0a0a17; --bg: #0a0a17; --side: #0a0a17;
  --panel: #121229; --panel-2: #0f0f22; --panel-3: #1b1b38; --raise: #1d1d3c;
  --line: rgba(160,168,255,.1); --line-2: rgba(160,168,255,.16); --line-s: rgba(160,168,255,.07);
  --text: #f3f3fb; --mute: #a4a6c2; --dim: #6d6f8f; --icon: #8a8cab;
  --accent: #f3f3fb; --accent-ink: #0a0a17; --accent-soft: rgba(255,255,255,.07);
}
html:has(> body:not(.on-landing)) { background: #0a0a17; }
.app { padding: 0; }
.shell { grid-template-columns: 300px minmax(0, 1fr); min-height: 100vh; border: 0; border-radius: 0; background: var(--bg); }
.sb { border-radius: 0; border-right: 1px solid var(--line-s); background: var(--side); }
.sb-in { top: 0; height: 100vh; padding: 14px 12px 14px; }

/* sidebar head: logo, network, collapse */
.sb-head { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 4px 0 10px; margin-bottom: 18px; }
.sb-logo { display: grid; place-items: center; flex: none; }
.sb-logo img { display: block; width: 34px; height: auto; transition: transform .45s var(--spring); }
.sb-logo:hover img { transform: rotate(60deg); }
.sb-net { padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); font-size: 11.5px; font-weight: 500; color: var(--mute); }
.sb-col { margin-left: auto; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--icon); cursor: pointer; transition: color .2s, background .2s, transform .3s var(--out); }
.sb-col:hover { color: var(--text); background: var(--panel-3); }
.sb-col svg { width: 19px; height: 19px; }

/* nav rows: quiet until hovered; the active one is lifted with a white edge */
.srow { position: relative; min-height: 38px; margin: 1px 0; font-size: 14.5px; border: 0; border-radius: 8px; }
.srow:hover { background: rgba(255,255,255,.04); }
.srow.on { background: var(--panel-3); border: 0; }
.srow.on::before { content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: #fff; }
.srow .ni svg { width: 18px; height: 18px; }

/* ranked coins */
.sb-rank { margin-top: 22px; display: flex; flex-direction: column; min-height: 0; }
.sb-tabs { display: flex; gap: 20px; padding: 0 10px; border-bottom: 1px solid var(--line-s); }
.sb-tabs button { margin-bottom: -1px; padding: 8px 0 11px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--mute); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: color .2s, border-color .2s; }
.sb-tabs button:hover { color: var(--text); }
.sb-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: #fff; }
.sb-cap { margin: 12px 10px 10px; font-size: 12px; color: var(--dim); }
.rank { list-style: none; margin: 0; padding: 6px; border-radius: 12px; border: 1px solid var(--line-s); background: var(--panel-2); }
.rk { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px; transition: background .2s; }
.rk:hover { background: rgba(255,255,255,.04); }
.rk-n { flex: none; width: 16px; text-align: center; font-size: 12px; font-weight: 600; color: #e8b26c; font-variant-numeric: tabular-nums; }
.rk .av { flex: none; border-radius: 50%; }
.rk-t, .rk-v { display: grid; gap: 2px; min-width: 0; line-height: 1.25; }
.rk-t { flex: 1; }
.rk-t b, .rk-t small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-t b { font-size: 13.5px; font-weight: 600; }
.rk-t small, .rk-v small { font-size: 11.5px; color: var(--mute); font-variant-numeric: tabular-nums; }
.rk-v { text-align: right; flex: none; }
.rk-v b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rk-v small.up, .mc-st b.up { color: var(--up); }
.rk-v small.dn, .mc-st b.dn { color: var(--dn); }
.rk-empty { padding: 12px 8px; font-size: 13px; color: var(--dim); }

/* collapsed sidebar: icons only */
body.sb-mini .shell { grid-template-columns: 76px minmax(0, 1fr); }
body.sb-mini .sb-net, body.sb-mini .sb-rank, body.sb-mini .srow > span:not(.ni) { display: none; }
body.sb-mini .sb-head { flex-direction: column; height: auto; gap: 12px; padding: 6px 0; }
body.sb-mini .sb-col { margin: 0; transform: rotate(180deg); }
body.sb-mini .srow { justify-content: center; padding: 0; }

/* top bar: search on the left, actions on the right */
.main { padding: 14px 28px 24px; }
.top { height: 56px; gap: 12px; margin-bottom: 14px; }
.tsearch { position: relative; flex: 1; max-width: 420px; }
.tsearch .srch { margin: 0; height: 42px; min-height: 0; padding: 0 10px 0 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2); color: var(--mute); font-size: 14px; }
.tsearch .srch:hover { background: var(--panel-2); border-color: var(--line-2); }
.tsearch .srch input { height: 40px; font-size: 14px; }
.tsearch .srch kbd { background: var(--panel-3); border-color: var(--line); }
.tsearch .sres { position: absolute; z-index: 45; left: 0; right: 0; top: 48px; margin: 0; background: #14142e; border-color: var(--line-2); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.tsearch .sr:hover, .tsearch .sr:focus-visible { background: var(--panel-3); }
.top-r { margin-left: auto; gap: 10px; }
.btn-w { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px; background: #fff; color: #0a0a17; font-size: 14px; font-weight: 600; white-space: nowrap; transition: transform .2s var(--out), box-shadow .2s; }
.btn-w:hover { transform: translateY(-1.5px); box-shadow: 0 8px 26px rgba(255,255,255,.14); }
.btn-w:active { transform: scale(.97); }
.btn-w svg { width: 17px; height: 17px; }
.connect { height: 40px; padding: 0 16px; border-radius: 8px; border-color: var(--line-2); background: transparent; font-weight: 600; }
.connect:hover { background: var(--panel-3); }
#app .acct-pill { height: 40px; border-radius: 8px; background: var(--panel-2); }
#app .acct-menu { background: #14142e; }
#app .acct-menu button:hover, #app .acct-menu a:hover { background: var(--panel-3); }
.ca-chip.bar-ca { height: 40px; border-radius: 8px; background: var(--panel-2); }
.view { max-width: none; }

/* hero: the Earth photo, text on the left, stat boxes bottom right */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; min-height: 400px; margin: 0 0 22px; padding: 30px; border-radius: 14px; border: 1px solid var(--line-s); background: #05060e; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; transform: scale(1.04); animation: hero-in 1.6s var(--out) both; }
@keyframes hero-in { from { transform: scale(1.1); opacity: 0; } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,7,18,.86) 0%, rgba(7,7,18,.6) 32%, rgba(7,7,18,.08) 62%, rgba(7,7,18,0) 100%), linear-gradient(0deg, rgba(7,7,18,.55) 0%, rgba(7,7,18,0) 45%); }
.hero .head { margin: 0; max-width: 430px; align-self: center; }
.hero .head h1 { font-size: 36px; font-weight: 600; letter-spacing: -.03em; line-height: 1.08; }
.hero .head .sub { margin-top: 12px; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.86); }
.hero-note { display: block; margin-top: 6px; color: rgba(255,255,255,.6); font-size: 13.5px; }
.btn-o { display: inline-flex; align-items: center; height: 40px; margin-top: 20px; padding: 0 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,.34); background: rgba(8,8,22,.45); color: #fff; font-size: 14px; font-weight: 600; transition: background .2s, border-color .2s, transform .2s var(--out); }
.btn-o:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.55); transform: translateY(-1.5px); }
.hero-stats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.hs { min-width: 120px; padding: 12px 18px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(8,8,22,.66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hs span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.hs b { display: block; margin-top: 4px; font-size: 28px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* filter row and counts */
.fbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs.chips { gap: 4px; padding: 0; background: none; border: 0; flex-wrap: wrap; }
.tabs.chips > button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px; border-radius: 8px; font-size: 13.5px; font-weight: 500; }
.tabs.chips > button svg { width: 15px; height: 15px; }
.tabs.chips > .tab-ind { border-radius: 8px; background: var(--panel-3); }
.tabs.chips > button[aria-selected="true"] { color: var(--text); font-weight: 600; }
.fsearch { display: flex; align-items: center; gap: 8px; width: 240px; max-width: 100%; height: 40px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2); color: var(--mute); cursor: text; }
.fsearch:focus-within { border-color: var(--line-2); }
.fsearch svg { width: 17px; height: 17px; flex: none; }
.fsearch input { flex: 1; min-width: 0; height: 38px; border: 0; background: none; outline: none; color: var(--text); font: inherit; font-size: 14px; }
.fsearch input::placeholder { color: var(--mute); }
.fsearch input::-webkit-search-cancel-button { display: none; }
.fmeta { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fmeta span { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.fmeta b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* coin cards */
.mcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 22px; }
.mc { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(180deg, #17173a 0%, #101026 100%); transition: border-color .25s var(--out), transform .25s var(--out); }
.mc:hover { border-color: var(--line-2); transform: translateY(-2px); }
.mc-top { display: flex; align-items: center; gap: 11px; width: 100%; margin-bottom: 4px; }
.mc-av { flex: none; display: grid; }
.mc-av .av { border-radius: 50%; }
.mc-n { flex: 1; min-width: 0; display: grid; gap: 2px; line-height: 1.25; }
.mc-n a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; }
.mc-n a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.mc-n small { font-size: 12.5px; color: var(--mute); }
.mc-n .hot { color: var(--warn); }
.mc-spark { flex: none; display: grid; place-items: center; width: 50px; height: 26px; border-radius: 7px; background: rgba(255,255,255,.06); color: var(--mute); }
.mc-spark.up { color: var(--up); }
.mc-spark.dn { color: var(--dn); }
.mc-st { display: grid; gap: 3px; padding: 8px 11px; border-radius: 8px; background: rgba(255,255,255,.05); }
.mc-st span { font-size: 12px; color: var(--mute); }
.mc-st b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mc-buy { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.mc-amt { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 8px; background: rgba(255,255,255,.06); cursor: text; }
.mc-amt input { width: 52px; border: 0; background: none; outline: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mc-amt span { font-size: 12px; color: var(--mute); }
.mc-amt:focus-within { box-shadow: 0 0 0 1px var(--line-2); }
.mc-buy button { margin-left: auto; height: 34px; padding: 0 16px; border: 0; border-radius: 8px; background: #fff; color: #0a0a17; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .2s var(--out), box-shadow .2s; }
.mc-buy button:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,255,255,.14); }
.mc-buy button:active { transform: scale(.97); }

/* panels below the grid pick up the indigo */
.card { background: var(--panel); border-color: var(--line); }
.tabs { background: var(--panel-2); }
.tabs > button[aria-selected="true"], .tab-ind { background: var(--raise); }
.btn-f { background: var(--raise); }
.btn-f:hover:not(:disabled) { background: #26264a; border-color: var(--line-2); }

@media (max-width: 1100px) {
  .hero { flex-direction: column; align-items: flex-start; }
  .hero-stats { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .shell { display: block; }
  .sb { border-radius: 0 16px 16px 0; }
  .sb-head { margin-bottom: 10px; }
  .sb-col { display: none; }
  .sb-x { width: 40px; height: 40px; margin-left: auto; border-radius: 9px; }
  .srow.on::before { left: -14px; }
  .main { padding: 0 16px 20px; }
  .top { margin: 0 -16px 14px; }
  .tsearch { max-width: none; }
  .tsearch .srch kbd { display: none; }
  .btn-w > span:not([data-i]), .bar-ca { display: none; }
  .btn-w { width: 40px; padding: 0; justify-content: center; }
  .top-r .connect { padding: 0 12px; }
  .hero { min-height: 0; padding: 22px; }
  .hero .head h1 { font-size: 28px; }
  .hs { min-width: 0; flex: 1; padding: 10px 12px; }
  .hs b { font-size: 20px; }
  .fsearch { width: 100%; }
  .mcs { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (max-width: 520px) {
  .top-r .connect { font-size: 13px; }
  .mcs { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } .mc, .btn-w, .btn-o { transition: none; } }

.tsearch .srch { display: flex; align-items: center; gap: 10px; width: 100%; cursor: text; }
.tsearch .srch .ni { display: grid; flex: none; color: var(--icon); }
.tsearch .srch .ni svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .top { gap: 8px; padding: 0 10px 0 12px; }
  .top-logo { width: 36px; height: 36px; }
  .cw { display: none; }
  .tsearch .srch { padding: 0 10px; }
  .hero { padding: 20px 18px; }
  .hero .head h1 { font-size: 26px; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .hs { padding: 9px 10px; }
  .hs span { font-size: 9.5px; letter-spacing: .04em; }
  .hs b { font-size: 15px; }
  .tabs.chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .tabs.chips::-webkit-scrollbar { display: none; }
  .tabs.chips > button { flex: none; }
}
@media (max-width: 600px) { .top-r .btn-w { display: none; } }
