
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); color-scheme: light; }

/* Palette: Elysium-family deep teal + warm neutrals (see elysium.kinetiq.xyz/brand); our own logo and name. */
:root {
  --bg: #F8F7F4;
  --surface: #FDFDFD;
  --sunk: #F1EFE8;
  --ink: #1C1A14;
  --muted: #6B655A;
  --line: #DDD6C7;
  --accent: #2D7388;
  --accent-ink: #FDFDFD;
  --accent-soft: #DBF2F9;
  --good: #1F7A4A;
  --good-soft: #DFF1E5;
  --warn: #8F5A0A;
  --warn-soft: #F6EAD2;
  --bad: #B23A2E;
  --bad-soft: #F6DFDB;
  --display: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071317; --surface: #0C1E23; --sunk: #04181C; --ink: #EEF3F2; --muted: #91A4A6; --line: #163B44;
    --accent: #34B7DD; --accent-ink: #04181C; --accent-soft: #0F2A30;
    --good: #4FC383; --good-soft: #0F2B1C; --warn: #E3A64A; --warn-soft: #2E2410; --bad: #F06F61; --bad-soft: #36161A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #071317; --surface: #0C1E23; --sunk: #04181C; --ink: #EEF3F2; --muted: #91A4A6; --line: #163B44;
  --accent: #34B7DD; --accent-ink: #04181C; --accent-soft: #0F2A30;
  --good: #4FC383; --good-soft: #0F2B1C; --warn: #E3A64A; --warn-soft: #2E2410; --bad: #F06F61; --bad-soft: #36161A;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-family: var(--display); font-weight: 700; font-size: 1.75rem; letter-spacing: -0.02em; }
h2 { font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
h3 { font-size: 0.95rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent); }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* App shell: icon sidebar (bottom bar on phones) + slim top bar */
.side { position: fixed; inset: 0 auto 0 0; width: 76px; z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 18px 0; background: var(--bg); border-right: 1px solid var(--line); }
.side-mark { display: grid; text-decoration: none; }
.side nav { display: flex; flex-direction: column; gap: 8px; }
.side nav a, .side-btn { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--muted); border: 0; background: transparent; padding: 0; text-decoration: none; }
.side nav a:hover, .side-btn:hover { background: var(--sunk); color: var(--ink); }
.side nav a[aria-current="page"] { background: var(--sunk); color: var(--ink); }
.side nav a[aria-current="page"]::before { content: ""; position: absolute; left: -15px; top: 11px; bottom: 11px; width: 3px; border-radius: 3px; background: var(--accent); }
.side-btn { margin-top: auto; }
.ic { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app { margin-left: 76px; min-width: 0; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.top-inner { display: flex; align-items: center; gap: 10px; padding-block: 12px; }
.top .brand { display: none; text-decoration: none; color: var(--ink); }
.spacer { flex: 1; }
@media (max-width: 760px) {
  .side { inset: auto 0 0 0; width: auto; height: auto; flex-direction: row; justify-content: space-around; gap: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); border-right: 0; border-top: 1px solid var(--line); }
  .side-mark { display: none; }
  .side nav { flex-direction: row; gap: 0; flex: 1; justify-content: space-around; }
  .side nav a, .side-btn { width: 44px; height: 44px; }
  .side-btn { margin: 0; }
  .side nav a[aria-current="page"]::before { left: 12px; right: 12px; top: -7px; bottom: auto; width: auto; height: 3px; }
  .app { margin-left: 0; padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .top .brand { display: inline-flex; }
}

/* Controls */
button, .btn { font: inherit; cursor: pointer; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 7px 12px; font-weight: 500; }
button:hover { border-color: var(--muted); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button.primary:hover { filter: brightness(1.06); }
button.small { padding: 4px 9px; font-size: 0.8rem; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; min-width: 0; }
textarea { resize: vertical; min-height: 64px; }
select.compact { width: auto; padding: 6px 8px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }

/* Layout */
main { padding-block: 22px 60px; }
.view-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 18px; }
.view-head p { max-width: 62ch; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
@media (max-width: 920px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; min-width: 0; }
.stack { display: grid; gap: 18px; min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats > div { background: var(--surface); padding: 12px; min-width: 0; }
.stats .v { font-family: var(--mono); font-size: 1.05rem; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Pills & progress */
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 9px; font-size: 0.75rem; font-weight: 600; background: var(--sunk); color: var(--muted); white-space: nowrap; }
.pill.accent { background: var(--accent-soft); color: var(--ink); }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.progress { height: 8px; background: var(--sunk); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.progress.done > i { background: var(--good); }

/* Explore cards */
.filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--accent); }
.coin-id { display: flex; gap: 10px; align-items: center; min-width: 0; }
.coin-id > div { min-width: 0; }
.coin-id .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 44px; height: 44px; border-radius: 10px; flex: none; object-fit: cover; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 0.8rem; color: #fff; }
.avatar.lg { width: 64px; height: 64px; font-size: 1rem; border-radius: 14px; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }

/* Create form */
.step { display: grid; gap: 10px; }
.step + .step { border-top: 1px solid var(--line); padding-top: 16px; }
.step-h { display: flex; gap: 10px; align-items: baseline; }
.step-n { font-family: var(--display); font-weight: 700; color: var(--accent); font-size: 0.95rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .fields, .fields.three { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 4px; min-width: 0; }
.field label { font-weight: 500; font-size: 0.85rem; }
.hint { font-size: 0.78rem; color: var(--muted); }
.err { font-size: 0.78rem; color: var(--bad); }
.assetopt { text-align: left; display: grid; gap: 2px; min-width: 140px; }
.assetopt small { color: var(--muted); font-weight: 400; }
.upload { display: flex; gap: 10px; align-items: center; }

/* Trade panel */
.trade-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.trade-tabs button[aria-pressed="true"].buy { background: var(--good-soft); border-color: var(--good); color: var(--good); }
.trade-tabs button[aria-pressed="true"].sell { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.notice { border-radius: 8px; padding: 9px 11px; font-size: 0.85rem; }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.good { background: var(--good-soft); color: var(--good); }
.notice.info { background: var(--accent-soft); color: var(--ink); }

/* Tables */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td.r, th.r { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }

canvas { width: 100%; height: 220px; display: block; }
.log { max-height: 260px; overflow: auto; display: grid; gap: 6px; font-size: 0.82rem; }
.log div { border-left: 3px solid var(--line); padding: 2px 8px; }
.log .ok { border-color: var(--good); }
.log .no { border-color: var(--bad); }

/* Checklist */
.checks { display: grid; gap: 8px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.tick { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); margin-top: 2px; }
.check.done .tick { background: var(--good); border-color: var(--good); }
.check.done .t { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }

.toast-box { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; z-index: 20; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; font-size: 0.85rem; box-shadow: 0 6px 20px rgb(0 0 0 / 0.2); }
.toast.bad { background: var(--bad); color: #fff; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

a.btn { display: inline-flex; align-items: center; text-decoration: none; }
a.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.warnbtn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); display: inline-block; }
.avatar.sm { width: 28px; height: 28px; font-size: 0.6rem; border-radius: 7px; }
.steps { display: grid; gap: 8px; counter-reset: s; }
.stepline { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.stepline .tick { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); }
.stepline.done .tick { background: var(--good); border-color: var(--good); }
.stepline.active { border-color: var(--accent); }
.stepline.failed { border-color: var(--bad); }
.stepline .tick.spin { border-color: var(--accent); border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
pre.code { background: var(--sunk); border-radius: 8px; padding: 12px; overflow-x: auto; font-family: var(--mono); font-size: 0.78rem; margin: 0; }
.addr { font-family: var(--mono); font-size: 0.82rem; overflow-wrap: anywhere; }
.skeleton { color: var(--muted); padding: 18px 0; }

.dialog-backdrop { position: fixed; inset: 0; z-index: 30; background: rgb(0 0 0 / 0.45); display: grid; place-items: center; padding: 16px; }
.dialog { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; width: min(360px, 100%); display: grid; gap: 14px; }
.walletopt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; }
.walletopt img { border-radius: 6px; }

.walleticon { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: var(--accent-soft); color: var(--ink); font-weight: 600; font-size: 0.8rem; flex: none; }
a.btn.walletopt { color: var(--ink); }
.dialog { max-height: calc(100vh - 32px); overflow-y: auto; }

/* Docs */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.docs-nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 72px); display: grid; gap: 2px; }
.docs-nav .label { margin: 14px 0 4px; }
.docs-nav .label:first-child { margin-top: 0; }
.docs-nav a { padding: 5px 10px; border-radius: 6px; color: var(--muted); text-decoration: none; }
.docs-nav a:hover { color: var(--ink); }
.docs-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); font-weight: 500; }
.docs-body { max-width: 72ch; display: grid; gap: 14px; min-width: 0; }
.docs-body h1 { margin-top: -6px; }
.docs-body h3 { margin-top: 8px; }
.docs-body ul, .docs-body ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.docs-body p, .docs-body li { line-height: 1.6; }
.doc-kv { grid-template-columns: max-content 1fr; }
.doc-kv dd { text-align: left; font-family: var(--body); }
.kv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kv-grid > div { background: var(--surface); padding: 12px; display: grid; gap: 2px; }
.kv-grid b { font-family: var(--display); font-weight: 600; font-size: 1rem; }
.docs-pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 820px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .docs-nav .label { width: 100%; margin: 6px 0 0; }
  .kv-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Network status in the header */
.netbadge.soon .dot { background: var(--warn); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.countdown { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 6px; }
.countdown div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; min-width: 74px; text-align: center; }
.countdown b { display: block; font-family: var(--mono); font-size: 1.6rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 0.75rem; color: var(--muted); }
.soon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 22px; }
.soon-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink); line-height: 1.5; }
.soon-list li::marker { color: var(--accent); font-weight: 600; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand b { font-size: 1.15rem; letter-spacing: -0.02em; }
.brand .mark rect { fill: var(--accent); }
.tagline { font-weight: 600; color: var(--accent); margin: 0 0 4px; }
.sunk { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 12px 16px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sunk b { font-family: var(--mono); font-size: 1.35rem; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Launches (explore) */
.launch-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin: 4px 0 10px; }
.launch-head h1 { font-size: clamp(2.3rem, 6vw, 3.4rem); letter-spacing: -0.04em; line-height: 1.02; }
.launch-head .tagline { margin: 6px 0 0; }
.cta { padding: 13px 24px; font-size: 1rem; font-weight: 700; border-radius: 14px; text-decoration: none; display: inline-block; }
a.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.statline { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); margin-bottom: 30px; }
.statline b { color: var(--ink); font-family: var(--mono); font-weight: 500; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.sec-head h2 { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.025em; }
.round { width: 42px; height: 42px; border-radius: 50%; padding: 0; display: grid; place-items: center; background: transparent; }
.trend { display: grid; grid-auto-flow: column; grid-auto-columns: 230px; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 6px; margin-bottom: 34px; }
.trend::-webkit-scrollbar { display: none; }
.tcard { scroll-snap-align: start; display: grid; gap: 6px; text-decoration: none; color: var(--ink); min-width: 0; }
.tcard .art, .gcard .art { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--sunk); }
.tcard:hover .art, .gcard:hover .art { outline: 2px solid var(--accent); outline-offset: 2px; }
.avatar.art { width: 100%; height: 100%; border-radius: 0; font-size: 2.2rem; }
.tcard .t1 { display: flex; gap: 8px; align-items: baseline; margin-top: 6px; font-weight: 500; font-size: 1.05rem; min-width: 0; }
.tcard .t1 .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard .rank { color: var(--muted); }
.t2 { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.t2 b { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.chg { font-weight: 600; font-variant-numeric: tabular-nums; }
.up { color: var(--good); }
.down { color: var(--bad); }
.tabsbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tabs button { border: 0; border-radius: 0; background: none; padding: 12px 10px; font-size: 1.05rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.tabsbar .tools { margin-left: auto; display: flex; gap: 8px; align-items: center; padding: 8px 0; }
.pairsel { width: auto; border-radius: 999px; padding: 9px 14px; background: var(--sunk); }
.viewtog { display: inline-flex; background: var(--sunk); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.viewtog button { border: 0; background: transparent; width: 38px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: 999px; color: var(--muted); }
.viewtog button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.1); }
.ltable { width: 100%; border-collapse: collapse; }
.ltable th { text-align: left; font-weight: 500; color: var(--muted); font-size: 0.92rem; padding: 16px 12px; border-bottom: 1px solid var(--line); }
.ltable td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ltable th.r, .ltable td.r { text-align: right; }
.ltable tbody tr { cursor: pointer; }
.ltable tbody tr:hover td { background: var(--surface); }
.tok { display: flex; gap: 14px; align-items: center; min-width: 0; }
.tok .avatar { width: 50px; height: 50px; border-radius: 13px; }
.tok .nm { font-size: 1.12rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.tok .tk { color: var(--muted); margin-left: 8px; }
.tok .sub { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.pairc { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.pico { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 0.62rem; font-weight: 700; color: #fff; background: var(--muted); flex: none; }
.pico.hype { background: #2D7388; }
.pico.usd { background: #2775CA; }
.spark { display: block; width: 150px; height: 40px; margin-left: auto; color: var(--good); }
.spark.down { color: var(--bad); }
.spark polyline { fill: none; stroke: currentColor; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark .flat { stroke: var(--line); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
td.mc { text-align: right; white-space: nowrap; font-size: 1.08rem; font-variant-numeric: tabular-nums; }
td.mc small { display: block; font-size: 0.8rem; }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px 18px; margin-top: 20px; }
.gcard { display: grid; gap: 8px; text-decoration: none; color: var(--ink); min-width: 0; }
.gcard .art .pill { position: absolute; top: 10px; left: 10px; }
.gcard .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard .t2 b { font-size: 1.25rem; }
@media (max-width: 760px) {
  .ltable .c-pair, .ltable .c-graph { display: none; }
  .ltable th, .ltable td { padding-inline: 6px; }
  .tok { gap: 10px; }
  .tok .avatar { width: 42px; height: 42px; }
  .trend { grid-auto-columns: 160px; gap: 14px; }
  .t2 b { font-size: 1.25rem; }
  .tabsbar .tools { margin-left: 0; }
  .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
}
.ltable th { text-transform: none; letter-spacing: 0; font-family: var(--body); }
@media (max-width: 760px) {
  .top-inner { gap: 8px; }
  .top .brand b { font-size: 1.05rem; }
  .top .netbadge { font-size: 0.7rem; padding: 2px 8px; }
  #walletBox button { padding: 6px 12px; font-size: 0.85rem; }
  .cta { padding: 10px 16px; font-size: 0.92rem; }
  .launch-head { align-items: flex-start; }
}
.logo { display: block; height: auto; }
.side-mark .logo { width: 46px; }
.brand .logo { width: 38px; }

/* Sidebar: slides open over the page on hover or keyboard focus (desktop) */
.side { align-items: stretch; padding: 18px 15px; overflow: hidden; transition: width 0.18s ease, box-shadow 0.18s ease; }
.side-mark { display: flex; align-items: center; gap: 12px; height: 46px; color: var(--ink); text-decoration: none; }
.side-mark b { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.side nav a, .side-btn { width: 100%; justify-content: flex-start; display: flex; align-items: center; gap: 14px; padding: 0 12.5px; white-space: nowrap; font-size: 0.98rem; font-weight: 500; }
.side .ic { flex: none; }
.lbl { opacity: 0; transition: opacity 0.12s ease; }
.side-btn .seg { margin-left: auto; display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--sunk); }
.side-btn .seg i { width: 28px; height: 24px; display: grid; place-items: center; border-radius: 999px; color: var(--muted); }
.side-btn .seg svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:root:not([data-theme="dark"]) .side-btn .seg .sun, :root[data-theme="dark"] .side-btn .seg .moon { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / 0.15); }
@media (min-width: 761px) {
  .side:hover, .side:has(:focus-visible) { width: 248px; box-shadow: 12px 0 40px rgb(0 0 0 / 0.22); }
  .side:hover .lbl, .side:has(:focus-visible) .lbl { opacity: 1; }
}
@media (max-width: 760px) {
  .side { padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); overflow: visible; }
  .side nav a, .side-btn { width: 44px; padding: 0; justify-content: center; }
  .lbl { display: none; }
}
.cta { display: inline-flex; align-items: center; gap: 8px; }

/* Footer */
.foot { position: relative; margin-top: 70px; padding: 64px 0 48px; color: var(--muted); overflow: hidden; }
.foot::before { content: ""; position: absolute; left: 0; bottom: 0; width: min(380px, 38%); height: 100%; pointer-events: none;
  background-image: radial-gradient(circle, var(--line) 1.4px, transparent 1.6px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 0% 70%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 0% 70%, #000 0%, transparent 70%); }
.foot-inner { position: relative; display: grid; gap: 34px; max-width: 760px; margin-left: auto; margin-right: max(16px, calc((100% - 1240px) / 2 + 16px)); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 20px 72px; }
.foot h4 { margin: 0 0 8px; color: var(--ink); font-size: 0.98rem; font-weight: 700; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot ul a { color: var(--ink); opacity: 0.82; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.foot ul a:hover { opacity: 1; color: var(--accent); }
.foot .ext { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.foot-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; color: var(--ink); opacity: 0.85; }
.foot-social { display: inline-flex; gap: 14px; }
.foot-social a { color: var(--ink); display: grid; }
.foot-social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.foot-legal { font-size: 0.8rem; line-height: 1.55; max-width: 70ch; }
@media (max-width: 760px) {
  .foot { margin-top: 40px; padding-top: 40px; }
  .foot-inner { margin: 0; max-width: none; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .foot::before { width: 60%; opacity: 0.6; }
}

/* Show more */
.more { display: flex; justify-content: center; margin-top: 26px; }
.more button { padding: 12px 26px; border-radius: 14px; font-weight: 700; font-size: 1rem; background: transparent; }
@media (max-width: 760px) { .side-mark, .side-btn .seg { display: none; } }
@media (max-width: 760px) { .side { justify-content: space-evenly; } .side nav { flex: 0 1 auto; display: contents; } }
.pico.stock { background: #1F7A4A; }

/* Stock board */
.pairtabs { margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.sb-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; }
.sb-search { max-width: 320px; border-radius: 999px; padding: 9px 14px; background: var(--sunk); }
.sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; max-height: 470px; overflow-y: auto; padding: 2px; }
.sb-item { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "sym tag" "name name" "px px"; gap: 2px 8px; text-align: left; border-radius: 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); }
.sb-item:hover { border-color: var(--accent); }
.sb-item.soon { cursor: default; }
.sb-item.soon:hover { border-color: var(--line); }
.sb-item[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.sb-sym { grid-area: sym; font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.sb-item .pill { grid-area: tag; justify-self: end; align-self: start; font-size: 0.68rem; }
.sb-name { grid-area: name; color: var(--muted); font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-px { grid-area: px; display: flex; gap: 8px; align-items: baseline; margin-top: 4px; font-variant-numeric: tabular-nums; font-weight: 600; }
.sb-px .chg { font-size: 0.82rem; }
.soon-stocks { margin-top: 40px; }
@media (max-width: 760px) { .sb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; } .sb-search { max-width: none; } }
