/* µStocks — Unified Stocks */

:root {
  --accent: #ccff00;          /* fills */
  --accent-ink: #0a0b08;      /* text on accent fills */
  --accent-text: #ccff00;     /* accent used as text on bg */
  --bg: #090a07;
  --panel: #10120c;
  --panel-2: #161910;
  --line: #262b1a;
  --line-2: #363d24;
  --text: #eef2e0;
  --muted: #8f977b;
  --up: #b6f000;
  --down: #ff5a4f;
  --stock: #ccff00;
  --crypto: #6fd6ff;
  --defi: #c59bff;
  --warn: #ffb547;
  --glow: rgba(204, 255, 0, .10);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: "Space Grotesk", "JetBrains Mono", system-ui, sans-serif;
}

:root[data-theme="light"] {
  --accent-text: #425800;
  --bg: #f5f7ea;
  --panel: #ffffff;
  --panel-2: #f0f3e1;
  --line: #dbe1c6;
  --line-2: #c4cca8;
  --text: #11130a;
  --muted: #5e6649;
  --up: #3f7a00;
  --down: #cf3a2f;
  --stock: #425800;
  --crypto: #0a6f9c;
  --defi: #6a3fc0;
  --warn: #a35f00;
  --glow: rgba(204, 255, 0, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.6 var(--mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(900px 420px at 85% -80px, var(--glow), transparent 70%),
    linear-gradient(color-mix(in srgb, var(--line) 40%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 40%, transparent) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  background-position: 0 0, -1px -1px, -1px -1px;
  background-repeat: no-repeat, repeat, repeat;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
ul { list-style: none; }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* ── Brand ── */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.mark {
  display: block; width: 34px; height: 34px; border-radius: 9px; flex: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 6px 22px var(--glow);
}
.mark.lg { width: 62px; height: 62px; border-radius: 15px; }
.mark.inv { display: grid; place-items: center; background: var(--accent-ink); color: var(--accent); box-shadow: none; }
.mark.inv svg { width: 100%; height: 100%; }
.word { font: 700 19px/1 var(--display); letter-spacing: -.01em; }
.word b { color: var(--accent-text); font-weight: 700; }
.word.lg { font-size: 40px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-2); border-radius: 8px;
  padding: 9px 16px; cursor: pointer;
  font-weight: 700; font-size: 12px; letter-spacing: .09em; text-transform: uppercase;
  background: transparent; white-space: nowrap;
  transition: transform .12s, box-shadow .12s, background .12s, border-color .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { box-shadow: 0 8px 28px var(--glow), 0 0 0 3px var(--glow); }
.btn.ghost:hover { border-color: var(--accent-text); color: var(--accent-text); }
.btn.big { padding: 14px 24px; font-size: 13px; }
.btn.full { width: 100%; }
.btn:focus-visible, .tab:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-text); outline-offset: 2px;
}

/* ── Top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.nav { display: flex; gap: 2px; }
.nav a {
  padding: 6px 11px; border: 1px solid transparent; border-radius: 6px;
  font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap;
}
.nav a:hover { color: var(--text); border-color: var(--line-2); }
.nav a.active { color: var(--accent-text); border-color: var(--accent-text); background: var(--glow); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.theme { display: flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; }
.theme button {
  border: 0; background: none; cursor: pointer; border-radius: 999px;
  padding: 3px 10px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.theme button.on { background: var(--accent); color: var(--accent-ink); }
.chain { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); display: inline-block; box-shadow: 0 0 0 0 var(--up); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.burger { display: none; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 8px; background: none; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.burger span { width: 16px; height: 2px; background: var(--text); }

/* ── Ticker ── */
.ticker { border-bottom: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick { display: inline-flex; gap: 10px; align-items: baseline; padding: 8px 20px; border-right: 1px solid var(--line); font-size: 12px; white-space: nowrap; }
.tick b { font-weight: 700; }
.tick { align-items: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Hero ── */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding: 64px 0 56px; }
.hero-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
h1 { font: 700 clamp(40px, 6.4vw, 78px)/1.02 var(--display); letter-spacing: -.035em; }
.hl { color: var(--accent-text); }
:root[data-theme="light"] .hl { background: var(--accent); color: var(--accent-ink); padding: 0 .12em; border-radius: .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lede { color: var(--muted); max-width: 56ch; margin: 22px 0 30px; font-size: 15px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-top: 28px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero-facts li::before { content: "▸ "; color: var(--accent-text); }
.hero-facts b { color: var(--text); }

.modules { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mod {
  border: 1px solid color-mix(in srgb, var(--c, var(--stock)) 45%, var(--line)); border-radius: 12px; padding: 20px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c, var(--stock)) 9%, var(--panel)), var(--panel) 70%);
  transition: transform .15s, border-color .15s;
}
.mod:hover { transform: translateY(-3px); border-color: var(--c, var(--stock)); }
.c-crypto { --c: var(--crypto); } .c-defi { --c: var(--defi); } .c-warn { --c: var(--warn); }
.mod-id { font-size: 14px; font-weight: 800; letter-spacing: .06em; color: var(--c, var(--stock)); }
.mod h3 { font: 700 19px/1.2 var(--display); margin: 8px 0 8px; }
.mod p { font-size: 12px; color: var(--muted); }

/* ── Panels ── */
.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 28px; overflow: hidden; }
.panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--panel-2);
  border-left: 3px solid var(--accent);
}
.panel-head h2 { font: 700 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.panel-head > span { font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.live { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; color: var(--up) !important; }
.live.bad { color: var(--down) !important; }
.live.bad .dot { background: var(--down); animation: none; }

/* merge */
.merge { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; padding: 22px 20px; }
.merge-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--bg); }
.merge-card h3 { font: 700 18px/1.2 var(--display); margin: 12px 0 8px; }
.merge-card p { font-size: 12.5px; color: var(--muted); }
.merge-op { font: 700 26px/1 var(--display); color: var(--muted); align-self: center; font-style: normal; }
.merge-out {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 16px;
  background: var(--accent); color: var(--accent-ink); border-radius: 12px; padding: 18px 22px; position: relative;
}
.merge-out::before { content: "="; position: absolute; top: -29px; left: 50%; transform: translateX(-50%); font: 700 22px/1 var(--display); color: var(--muted); background: var(--panel); padding: 0 8px; display: none; }
.merge-out .mark { width: 46px; height: 46px; border-radius: 11px; }
.merge-out h3 { font: 700 20px/1.2 var(--display); }
.merge-out p { font-size: 12px; font-weight: 500; opacity: .8; }

.cls { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; border: 1px solid currentColor; }
.cls-stock { color: var(--stock); } .cls-crypto { color: var(--crypto); } .cls-defi { color: var(--defi); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.step { padding: 24px 20px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c, var(--stock)); color: #0a0b08; font-weight: 800; font-size: 13px; }
:root[data-theme="light"] .num { color: #fff; }
.step h3 { font: 700 18px/1.2 var(--display); margin: 14px 0 8px; }
.step p { font-size: 12.5px; color: var(--muted); }
.strip { padding: 13px 20px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); background: var(--panel-2); }
.strip b { color: var(--accent-text); letter-spacing: .06em; }
.mono-strip { display: flex; gap: 8px 28px; flex-wrap: wrap; }

/* market */
.market { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.board { border-right: 1px solid var(--line); min-width: 0; }
.board-bar { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { border: 1px solid var(--line-2); background: none; border-radius: 6px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--muted); }
.tab em { font-style: normal; font-weight: 400; opacity: .7; margin-left: 4px; }
.tab:hover { color: var(--text); }
.tab.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.search { background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; padding: 7px 12px; font-size: 12px; width: 200px; max-width: 100%; }
.table-scroll { overflow: auto; max-height: 880px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { position: sticky; top: 0; background: var(--panel-2); z-index: 1; text-align: left; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { padding-left: 20px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 20px; }
.tbl td { padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr.sel { background: var(--glow); box-shadow: inset 3px 0 0 var(--accent); }
.tbl tbody tr:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; }
.tbl tbody tr:hover { background: var(--glow); }
.tbl .r { text-align: right; }
.sym { font-weight: 800; font-size: 14px; }
.cdot { display: none; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.nm { display: block; font-size: 11px; color: var(--muted); }
.px { font-weight: 700; font-variant-numeric: tabular-nums; transition: color .5s; }
.px.fu { color: var(--up); transition: none; } .px.fd { color: var(--down); transition: none; }
.chg { font-variant-numeric: tabular-nums; font-weight: 500; }
.up { color: var(--up); } .dn { color: var(--down); }
.spark { width: 84px; height: 28px; display: block; margin-left: auto; }
.mini { border: 1px solid var(--line-2); background: none; border-radius: 5px; padding: 4px 8px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; color: var(--muted); }
.mini:hover { border-color: var(--accent-text); color: var(--accent-text); }
.empty { padding: 28px 20px; color: var(--muted); text-align: center; }

/* swap */
.side { position: sticky; top: 64px; min-width: 0; }
.swap { padding: 20px; display: flex; flex-direction: column; gap: 10px; background: var(--panel); }
.swap[hidden] { display: none; }
.swap-head h3 { font: 700 18px/1.2 var(--display); }
.swap-head span { font-size: 11px; color: var(--muted); }
.field { display: block; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; background: var(--bg); }
.field:focus-within { border-color: var(--accent-text); }
.field > span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.field-row { display: flex; gap: 10px; align-items: center; margin: 4px 0 2px; }
.field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font: 700 22px/1.3 var(--mono); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; }
.field select { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 8px; font-weight: 700; font-size: 13px; cursor: pointer; max-width: 120px; }
.field small { font-size: 11px; color: var(--muted); }
.flip { align-self: center; width: 34px; height: 34px; margin: -18px 0; z-index: 1; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer; font-size: 15px; transition: transform .2s, border-color .2s; }
.flip:hover { transform: rotate(180deg); border-color: var(--accent-text); color: var(--accent-text); }
.quote { font-size: 12px; border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 14px; margin: 4px 0; }
.quote div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.quote dt { color: var(--muted); } .quote dd { font-weight: 500; text-align: right; }
.fine { font-size: 11px; color: var(--muted); line-height: 1.55; }

/* values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); }
.val { padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.val:nth-child(4n) { border-right: 0; }
.val span { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.val b { display: block; font: 700 30px/1.25 var(--display); margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.val small { font-size: 11px; color: var(--muted); }
#values .strip { border-top: 0; }

/* phases */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); }
.phase { padding: 22px 20px; border-right: 1px solid var(--line); }
.phase:last-child { border-right: 0; }
.phase.now { background: linear-gradient(180deg, var(--glow), transparent); }
.phase h3 { font: 700 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.badge { font-style: normal; font-size: 10px; padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--muted); }
.badge.live { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.phase li { font-size: 12.5px; padding: 5px 0 5px 18px; position: relative; color: var(--muted); }
.phase.now li { color: var(--text); }
.phase li::before { content: ""; position: absolute; left: 0; top: 13px; width: 7px; height: 7px; border: 1px solid var(--line-2); border-radius: 2px; }
.phase.now li::before { background: var(--accent); border-color: var(--accent); }

/* final + footer */
.final { padding: 28px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: linear-gradient(120deg, var(--glow), var(--panel) 60%); }
.final p { max-width: 70ch; color: var(--muted); }
.final p b { color: var(--accent-text); }
.foot { padding: 12px 0 48px; }
.foot-row { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 12px; }
.foot-links a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.foot-links a:hover { color: var(--accent-text); }
.foot-links b { color: var(--accent-text); }
.caps { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 8px; font-size: 12px; font-weight: 500; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Responsive ── */
@media (max-width: 1200px) { .chain { display: none; } }
@media (max-width: 1080px) {
  .market { grid-template-columns: minmax(0, 1fr); }
  .board { border-right: 0; border-bottom: 1px solid var(--line); }
  .table-scroll { max-height: 520px; }
  .side { position: static; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0; gap: 32px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .merge { grid-template-columns: 1fr; }
  .merge-op { justify-self: center; }
  .values { grid-template-columns: 1fr 1fr; }
  .val:nth-child(2n) { border-right: 0; }
  .phases { grid-template-columns: 1fr; }
  .phase { border-right: 0; border-bottom: 1px solid var(--line); }
  .phase:last-child { border-bottom: 0; }
  .burger { display: inline-flex; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
}
@media (max-width: 560px) {
  .theme { display: none; }
  .modules { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mod { padding: 14px; } .mod h3 { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .hide-sm { display: none; }
  .cdot { display: inline-block; }
  .tbl .act { display: none; }
  .logo { width: 26px; height: 26px; }
  .mkt { gap: 8px; }
  .tbl th, .tbl td { padding: 10px 6px; }
  .tbl .chg.muted { display: inline-block; white-space: normal; max-width: 62px; line-height: 1.25; text-align: right; }
  .tbl td:nth-last-child(2), .tbl th:nth-last-child(2) { padding-right: 0; }
  .tbl td:nth-child(4), .tbl th:nth-child(4) { padding-right: 14px; }
  .nm { max-width: 104px; overflow: hidden; text-overflow: ellipsis; }
  .word.lg { font-size: 32px; } .mark.lg { width: 50px; height: 50px; }
  .search { width: 100%; }
  .btn.big { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ── logos ── */
.logo { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #fff; flex: none; display: inline-block; box-shadow: 0 0 0 1px var(--line-2); }
.logo.xs { width: 16px; height: 16px; box-shadow: none; }
.logo.lg { width: 44px; height: 44px; }
.logo.avatar { display: inline-grid; place-items: center; background: var(--panel-2); color: var(--accent-text); font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.logo.avatar.xs { font-size: 0; }
.logo.avatar.lg { font-size: 14px; }
.mkt { display: flex; align-items: center; gap: 12px; min-width: 0; }
.muted { color: var(--muted); }
.chg.muted { font-size: 11px; }

/* ── loading skeleton (real data pending, never placeholder numbers) ── */
.skel { color: transparent !important; border-radius: 4px; background: linear-gradient(90deg, var(--line) 25%, var(--line-2) 50%, var(--line) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── selected market detail ── */
.detail { padding: 20px; border-bottom: 1px solid var(--line); }
.d-head { display: flex; align-items: center; gap: 12px; }
.d-head > div { flex: 1; min-width: 0; }
.d-head b { display: block; font: 700 20px/1.2 var(--display); }
.d-head div span { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-px { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 8px; flex-wrap: wrap; }
.d-px b { font: 700 30px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.d-px .chg { font-size: 12px; }
.chart { display: block; width: 100%; height: 110px; }
.d-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.ranges { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; flex: none; }
.ranges button { border: 0; background: none; cursor: pointer; padding: 3px 9px; font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.ranges button.on { background: var(--accent); color: var(--accent-ink); }
.d-meta { margin-top: 12px; font-size: 12px; }
.d-meta div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-top: 1px dashed var(--line); }
.d-meta dt { color: var(--muted); }
.d-meta a { color: var(--accent-text); font-weight: 500; }
.d-meta a:hover { text-decoration: underline; }

/* ── earn panel ── */
.unit { font-size: 13px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel-2); }
.field input[type="range"] { width: 100%; margin: 10px 0 6px; accent-color: var(--accent); font-size: 0; height: 18px; cursor: pointer; }
.field > span b { color: var(--accent-text); }
