:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --gold: #62d46a;
  --gold-hi: #b8f0b4;
  --ink: #07140a;
  --bg: #070c09;
  --fg: #eaf6ec;
  --muted: #86a08c;
  --line: rgb(98 212 106 / 0.18);
  --line-2: rgb(98 212 106 / 0.34);
  --fill: rgb(98 212 106 / 0.08);
  --fill-2: rgb(98 212 106 / 0.16);
  --red: #d46a5c;
  --green: #62d46a;
  --blue: #7a96b4;
  --glow: rgb(98 212 106 / 0.28);
  --r: 14px;
  --r-lg: 20px;
  --font: Inter, "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  --display: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  --shadow: 0 18px 50px rgb(0 0 0 / 0.45);
  --topbar: rgb(7 12 9 / 0.78);
  --glass-from: rgb(98 212 106 / 0.10);
  --glass-to: rgb(7 12 9 / 0.72);
  --orb-1: rgb(98 212 106 / 0.18);
  --orb-2: rgb(120 160 255 / 0.10);
  --orb-3: rgb(62 174 92 / 0.12);
  --chip: rgb(0 0 0 / 0.28);
  --thumb: #121a14;
  --pair-chip: rgb(7 12 9 / 0.78);
  --mob: rgb(7 12 9 / 0.92);
  --focus: rgb(98 212 106 / 0.12);
  --mode-on: rgb(98 212 106 / 0.14);
  --inset: rgb(0 0 0 / 0.22);
  --toast: #121a14;
}
html[data-theme="light"] {
  color-scheme: light;
  --gold: #2f9e48;
  --gold-hi: #1e7a36;
  --ink: #f4fff6;
  --bg: #eef4ec;
  --fg: #122016;
  --muted: #5d7262;
  --line: rgb(18 32 22 / 0.12);
  --line-2: rgb(47 158 72 / 0.35);
  --fill: rgb(255 255 255 / 0.72);
  --fill-2: rgb(47 158 72 / 0.12);
  --red: #c24b3d;
  --green: #2f9e48;
  --blue: #4d6f8a;
  --glow: rgb(47 158 72 / 0.22);
  --shadow: 0 18px 40px rgb(18 32 22 / 0.10);
  --topbar: rgb(238 244 236 / 0.78);
  --glass-from: rgb(255 255 255 / 0.82);
  --glass-to: rgb(241 247 238 / 0.88);
  --orb-1: rgb(255 214 110 / 0.55);
  --orb-2: rgb(170 220 255 / 0.45);
  --orb-3: rgb(120 190 110 / 0.35);
  --chip: rgb(255 255 255 / 0.7);
  --thumb: #d7e4d6;
  --pair-chip: rgb(255 255 255 / 0.82);
  --mob: rgb(238 244 236 / 0.92);
  --focus: rgb(47 158 72 / 0.16);
  --mode-on: rgb(47 158 72 / 0.12);
  --inset: rgb(18 32 22 / 0.05);
  --toast: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, .word, .nm, .display { font-family: var(--display); }

.bg-orbs { pointer-events: none; position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.bg-orbs .base { position: absolute; inset: 0; background: var(--bg); }
.bg-orbs .o1, .bg-orbs .o2, .bg-orbs .o3 { position: absolute; border-radius: 999px; }
.bg-orbs .o1 { left: -8rem; top: -7rem; width: 520px; height: 520px; background: var(--orb-1); filter: blur(150px); }
.bg-orbs .o2 { right: -6rem; top: 6rem; width: 380px; height: 380px; background: var(--orb-2); filter: blur(130px); }
.bg-orbs .o3 { bottom: -4rem; left: 28%; width: 560px; height: 280px; background: var(--orb-3); filter: blur(140px); }
.sunmoon {
  position: absolute; right: 11%; top: 7%;
  width: 70px; height: 70px; border-radius: 50%;
  background: #cfe3c4;
  box-shadow: 0 0 40px rgb(207 227 196 / 0.35), 0 0 90px rgb(98 212 106 / 0.18);
}
html[data-theme="light"] .sunmoon {
  background: radial-gradient(circle at 35% 35%, #fff6d2, #ffc44d);
  box-shadow: 0 0 50px rgb(255 196 77 / 0.55);
  top: 8%;
}
.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff8, transparent),
    radial-gradient(1px 1px at 28% 8%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 46% 22%, #fff7, transparent),
    radial-gradient(1px 1px at 63% 12%, #fff5, transparent),
    radial-gradient(1px 1px at 78% 28%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 88% 16%, #fff4, transparent);
  opacity: 0.55;
}
html[data-theme="light"] .stars { opacity: 0; }
.meadow { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 32vh; min-height: 160px; }
.hill-back { fill: rgb(38 92 52 / 0.42); }
.hill-front { fill: rgb(28 72 42 / 0.55); }
html[data-theme="light"] .hill-back { fill: rgb(120 176 108 / 0.45); }
html[data-theme="light"] .hill-front { fill: rgb(86 150 78 / 0.55); }

.shell { position: relative; z-index: 10; display: flex; min-height: 100dvh; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--topbar);
  backdrop-filter: blur(22px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
header.bar {
  margin: 0 auto;
  display: flex;
  height: 64px;
  max-width: 1120px;
  align-items: center;
  gap: 28px;
  padding: 0 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img {
  height: 36px;
  width: auto;
  max-width: 72px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}
html[data-theme="light"] .brand img {
  filter: drop-shadow(0 1px 1px rgb(18 32 22 / 0.14));
}
.word { font-weight: 700; letter-spacing: -0.04em; font-size: 17px; user-select: none; }
.word .dot { color: var(--gold); }
nav.desk { display: none; align-items: center; gap: 4px; }
nav.desk a {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}
nav.desk a:hover { color: var(--fg); background: var(--fill); }
nav.desk a.on { color: var(--fg); background: var(--fill-2); }
@media (min-width: 720px) { nav.desk { display: flex; } }
.right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  height: 34px; width: 34px; display: none; place-items: center;
  border-radius: 999px; color: var(--muted); border: 1px solid transparent;
}
.icon-btn:hover { color: var(--fg); border-color: var(--line); background: var(--fill); }
@media (min-width: 640px) { .icon-btn { display: grid; } }
.seg {
  display: flex; border-radius: 999px; border: 1px solid var(--line);
  background: var(--chip); padding: 2px;
}
.seg button { border-radius: 999px; padding: 5px 10px; font-size: 11px; font-weight: 650; color: var(--muted); }
.seg button.on { background: var(--gold); color: var(--ink); }

.btn-accent, .btn-3d {
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 650;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08) inset, 0 8px 22px var(--glow);
  transition: transform .15s, filter .15s, box-shadow .15s;
}
.btn-accent { padding: 8px 16px; font-size: 13.5px; }
.btn-3d { padding: 11px 20px; font-size: 14px; }
.btn-accent:hover, .btn-3d:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  font-size: 13px; color: var(--muted); background: var(--fill);
}
.btn-ghost:hover { color: var(--fg); border-color: var(--line-2); }
.btn-wide { width: 100%; border-radius: 14px; padding: 13px 16px; font-weight: 650; }
.btn-buy { background: var(--gold); color: var(--ink); }
.btn-sell { background: var(--red); color: #fff; box-shadow: none; }

main { flex: 1; width: 100%; min-width: 0; overflow-x: clip; }
.wrap { margin: 0 auto; width: 100%; max-width: 1120px; padding: 28px 16px 108px; }
.wrap-sm { max-width: 720px; }
.wrap-md { max-width: 440px; }

.glass {
  background: linear-gradient(180deg, var(--glass-from), var(--glass-to));
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-head { margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 28px; letter-spacing: -0.045em; font-weight: 700; }
.kicker {
  display: inline-block; margin-bottom: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.lede { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 52ch; }

.toolbar {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px;
}
.search-row { display: flex; align-items: center; gap: 10px; }
.search { position: relative; flex: 1; }
.search svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; border-radius: 14px; padding: 12px 14px 12px 42px; font-size: 14px; outline: none;
  background: var(--fill); border: 1px solid var(--line);
}
.search input:focus { border-color: var(--line-2); box-shadow: 0 0 0 4px var(--focus); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filters h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.04em; margin: 0; margin-right: auto; }
.count { font-size: 13px; color: var(--muted); font-weight: 500; }

.chipbar {
  display: flex; flex-wrap: wrap;
  border-radius: 14px; border: 1px solid var(--line); background: var(--chip); padding: 4px;
  gap: 2px;
}
.chipbar button {
  border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 650;
  color: var(--fg); white-space: nowrap; opacity: 0.72;
}
.chipbar button:hover { opacity: 1; }
.chipbar button.on {
  background: var(--gold); color: var(--ink); font-weight: 800; opacity: 1;
}
.chip-sep {
  width: 1px;
  align-self: stretch;
  margin: 4px 6px;
  background: var(--line);
}

.tape { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 18px; }
@media (min-width: 800px) { .tape { grid-template-columns: 1.4fr 1fr 1fr; } }
.tape-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--fill);
}
.tape-item:hover { border-color: var(--line-2); }
.tape-item img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.tape-item b { display: block; font-size: 14px; }
.tape-item .hint { margin-top: 2px; }
.tape-item .amt { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
.tape-item .amt small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; }

.grid-tokens { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--fill); transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 16px 36px rgb(0 0 0 / 0.35); }
.card-art { position: relative; }
.card .thumb { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--thumb); }
.card-pair {
  position: absolute; left: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 8px 4px 4px; border-radius: 999px;
  background: var(--topbar); backdrop-filter: blur(10px);
  border: 1px solid var(--line); font-size: 11px; font-weight: 650;
}
.card-pair img { width: 16px; height: 16px; border-radius: 99px; }
.card-body { padding: 12px 12px 13px; display: flex; flex-direction: column; gap: 8px; }
.card .nm { font-weight: 700; font-size: 14.5px; letter-spacing: -0.03em; line-height: 1.2; }
.card .sym { font-size: 12px; color: var(--muted); font-weight: 500; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; }
.badge { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: 0.02em; }
.badge-r { background: var(--gold); color: var(--ink); }
.badge-s { background: var(--fill-2); color: var(--muted); border: 1px solid var(--line); }
.badge-f { background: var(--ink); color: var(--gold-hi); border: 1px solid var(--line-2); }
.stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.stats span { font-size: 10px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.stats b { display: block; margin-top: 2px; color: var(--fg); font-weight: 650; font-size: 13px; font-variant-numeric: tabular-nums; text-transform: none; }
.spark-mini { width: 100%; height: 36px; display: block; }
.px-lg {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.px-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.px-chg { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.px-chg.up, .metric b.up { color: #2f9e44; }
.px-chg.down, .metric b.down { color: #c45c4a; }

.empty {
  padding: 56px 16px; text-align: center; font-size: 14px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--r-lg); background: var(--fill);
}

footer.ft { padding: 8px 16px 100px; }
@media (min-width: 1024px) { footer.ft { padding: 8px 16px 40px; } }
.ft-box { margin: 0 auto; max-width: 1120px; border-radius: var(--r-lg); padding: 28px; }
.ft-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .ft-grid { grid-template-columns: 1.6fr 1fr 1.4fr; } }
.ft-grid h4 { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ft-grid p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 8px 0 0; }
.ft-grid a { display: block; font-size: 14px; margin: 6px 0; color: var(--muted); }
.ft-grid a:hover { color: var(--gold); }
.ft-bottom {
  margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  border-top: 1px solid var(--line); padding-top: 14px; font-size: 12px; color: var(--muted);
}
.ft-bottom a:hover { color: var(--fg); }

.mob {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  background: var(--mob); backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
}
@media (min-width: 1024px) { .mob { display: none; } }
.mob-grid { display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 6px max(10px, env(safe-area-inset-bottom)); }
.mob-grid a { text-align: center; font-size: 10.5px; font-weight: 650; color: #8a8274; padding: 6px 2px; border-radius: 10px; }
.mob-grid a.on { color: var(--gold); background: var(--fill); }

.form { display: flex; flex-direction: column; gap: 16px; }
.field {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; outline: none;
  padding: 11px 12px; font-size: 14px; background: var(--fill); color: var(--fg);
}
.field:focus { border-color: var(--line-2); box-shadow: 0 0 0 4px var(--focus); }
.field-unit {
  display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px;
  background: var(--fill); overflow: hidden;
}
.field-unit:focus-within { border-color: var(--line-2); box-shadow: 0 0 0 4px var(--focus); }
.field-unit .field {
  border: 0; border-radius: 0; box-shadow: none; background: transparent; flex: 1;
}
.field-unit .unit {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 12px;
  font-size: 12.5px; font-weight: 650; color: var(--muted);
  border-left: 1px solid var(--line); background: var(--inset); white-space: nowrap;
}
.field-unit .unit img { width: 16px; height: 16px; border-radius: 99px; object-fit: cover; }
.field-unit .max {
  border: 0; border-left: 1px solid var(--line);
  background: var(--inset); color: var(--gold);
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  padding: 0 10px; cursor: pointer;
}
.field-unit .max:hover { color: var(--fg); }
label.lbl { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.two { display: grid; gap: 12px; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }
.mode-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .mode-grid { grid-template-columns: 1fr 1fr; } }
.mode {
  text-align: left; border: 1px solid var(--line); border-radius: 16px; padding: 14px;
  background: var(--fill);
}
.mode.on { border-color: var(--gold); background: var(--mode-on); box-shadow: 0 0 0 1px var(--gold) inset; }
.mode b { display: block; font-size: 14px; font-family: var(--display); }
.mode span { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.split { display: flex; flex-direction: column; gap: 8px; }
.split-row { display: flex; justify-content: space-between; font-size: 13px; }
.split-row span { color: var(--muted); }
.bar { height: 8px; border-radius: 999px; overflow: hidden; display: flex; background: var(--thumb); }
.bar i { display: block; height: 100%; }
.i-c { background: var(--gold); }
.i-h { background: var(--green); }
.i-p { background: var(--blue); }
.i-b { background: var(--red); }
.i-f { background: var(--gold-hi); }

.studio { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) {
  .studio { grid-template-columns: 1.15fr 0.85fr; }
  .studio-side { position: sticky; top: 84px; }
}

.token-head { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.token-head img.lg { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; border: 1px solid var(--line); }
.token-head h1 { margin: 0; font-size: 26px; letter-spacing: -0.04em; }
.token-head .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.layout-2 { display: grid; gap: 16px; }
@media (min-width: 900px) { .layout-2 { grid-template-columns: 1.25fr 0.75fr; align-items: start; } }
.panel { border-radius: 18px; padding: 18px; }
.panel h3 { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: -0.02em; }
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
@media (min-width: 640px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric { padding: 10px 12px; border-radius: 12px; background: var(--inset); border: 1px solid var(--line); }
.metric span { display: block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.metric b { display: block; margin-top: 4px; font-size: 14px; font-variant-numeric: tabular-nums; text-transform: none; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); }
.bucket { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.bucket:last-child { border-bottom: 0; }
.dot { width: 8px; height: 8px; border-radius: 99px; flex-shrink: 0; }
.bucket .amt { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 650; font-size: 13px; }
.side-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--chip); padding: 4px; border-radius: 999px; margin-bottom: 14px; border: 1px solid var(--line);
}
.side-toggle button { border-radius: 999px; padding: 9px 8px; font-weight: 650; font-size: 13px; color: var(--muted); }
.side-toggle button.on.buy { background: var(--gold); color: var(--ink); }
.side-toggle button.on.sell { background: var(--red); color: #fff; }
.pay-with {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 11.5px; font-weight: 650; color: var(--muted); margin: 0 0 12px;
}
.pay-with button {
  height: 28px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 650; color: var(--muted);
  background: var(--inset); border: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 6px;
}
.pay-with button img { width: 14px; height: 14px; border-radius: 99px; object-fit: cover; }
.pay-with button.on { background: var(--ink); color: #eaf6ec; border-color: transparent; }
html[data-theme="light"] .pay-with button.on { background: #142016; color: #e8f5e4; }
.swap-well {
  border-radius: 16px; background: var(--inset); padding: 14px;
  border: 1px solid var(--line);
}
.swap-well + .swap-well { margin-top: 6px; }
.swap-well .lbl-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 650; color: var(--muted); margin-bottom: 8px;
}
.swap-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.swap-amt {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font-family: var(--display); font-size: 24px; font-weight: 700;
  letter-spacing: -0.03em; color: var(--fg);
}
.swap-out {
  flex: 1; min-width: 0; font-family: var(--display); font-size: 24px; font-weight: 700;
  letter-spacing: -0.03em; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.swap-out.is-empty { color: var(--muted); }
.swap-unit {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: 13px; font-weight: 700; color: var(--fg);
}
.swap-unit img { width: 22px; height: 22px; border-radius: 99px; object-fit: cover; }
.text-max {
  border: 0; background: transparent; color: var(--gold);
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; padding: 0; cursor: pointer;
}
.text-max.hidden { display: none; }
.trade-meta { margin-top: 4px; }
.trade-meta .kv { font-size: 12.5px; padding: 8px 0; }
.slip-pills { display: inline-flex; gap: 4px; }
.slip-pills button {
  height: 26px; padding: 0 8px; border-radius: 999px;
  font-size: 11px; font-weight: 650; color: var(--muted);
  border: 1px solid var(--line); background: var(--fill);
}
.slip-pills button.on { background: var(--gold); color: var(--ink); border-color: transparent; }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 6px; }
.table td { padding: 9px 6px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.buy { color: var(--green); }
.sell { color: var(--red); }
.act-tx { color: inherit; text-decoration: none; font-variant-numeric: tabular-nums; }
.act-tx:hover { text-decoration: underline; }
.toast {
  position: fixed; right: 16px; bottom: 86px; z-index: 50;
  background: var(--toast); border: 1px solid var(--line-2); color: var(--fg);
  padding: 12px 16px; border-radius: 12px; font-size: 13px; box-shadow: var(--shadow);
}
.pair-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pair-pick button {
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px 7px 7px;
  background: var(--fill); display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 650;
}
.pair-pick button img { width: 20px; height: 20px; border-radius: 99px; object-fit: cover; }
.pair-pick button.on { border-color: var(--gold); background: var(--mode-on); }
.pair-scroll {
  max-height: 240px; overflow: auto; padding: 4px 2px 8px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--inset);
}
.upload {
  display: flex; align-items: center; gap: 14px; padding: 12px;
  border: 1px dashed var(--line-2); border-radius: 16px; background: var(--fill); cursor: pointer;
}
.upload:hover { border-color: var(--gold); }
.upload-preview {
  width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex-shrink: 0;
  border: 1px solid var(--line); background: var(--thumb);
}
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload b { display: block; font-size: 14px; }
.upload .hint { margin-top: 4px; }

.docs h2 { font-family: var(--display); font-size: 17px; margin: 28px 0 8px; letter-spacing: -0.03em; }
.docs p, .docs li { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.docs ul { padding-left: 18px; }

.rank {
  display: flex; align-items: center; gap: 12px; padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.rank:last-child { border-bottom: 0; }
.rank .n {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: var(--muted); background: var(--fill); border: 1px solid var(--line);
}
.rank.r1 .n { background: var(--gold); color: var(--ink); border-color: transparent; }
.rank.r2 .n { background: #cfc3a6; color: var(--ink); border-color: transparent; }
.rank.r3 .n { background: #b08968; color: var(--ink); border-color: transparent; }
.rank img { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; }
.muted { color: var(--muted); }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.spark { width: 100%; height: 88px; display: block; }
.chart-box {
  margin-top: 12px;
  height: 248px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--inset);
  border: 1px solid var(--line);
  position: relative;
}
.chart-box.chart-embed { height: 480px; }
@media (max-width: 640px) {
  .chart-box.chart-embed { height: 360px; }
}
.chart-box iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--inset); }
.chart-wait {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  background: color-mix(in srgb, var(--inset) 82%, transparent);
  padding: 4px 8px;
  border-radius: 8px;
}
.chart { width: 100%; height: 100%; display: block; }
.chart-y {
  position: absolute;
  right: 10px;
  top: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
  z-index: 1;
}
.chart-y span {
  font-size: 10px;
  font-weight: 650;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--inset) 78%, transparent);
  padding: 1px 4px;
  border-radius: 4px;
}
.hidden { display: none !important; }
.addr { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); word-break: break-all; }

.gate {
  text-align: center; padding: 36px 22px;
  border-radius: 20px;
}
.gate h1 { margin: 0; font-size: 24px; letter-spacing: -0.04em; }
.hero-pot { text-align: center; padding: 28px 18px; }
.hero-pot .n {
  font-family: var(--display); font-size: 40px; font-weight: 700; letter-spacing: -0.05em;
  background: linear-gradient(180deg, #d8ffd4, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.pots .bucket { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--inset); }
.pots .bucket img { width: 20px; height: 20px; border-radius: 99px; }

.preview-card { overflow: hidden; }
.preview-card .thumb { aspect-ratio: 1.15; }

@media (max-width: 639px) {
  .page-head h1 { font-size: 24px; }
  .token-head img.lg { width: 56px; height: 56px; border-radius: 14px; }
  .token-head h1 { font-size: 20px; }
}

.icon-btn.theme-btn,
.icon-btn.x-btn { display: grid; }
.theme-btn .sun { display: none; }
html[data-theme="light"] .theme-btn .moon { display: none; }
html[data-theme="light"] .theme-btn .sun { display: block; }
html[data-theme="light"] .hero-pot .n {
  background: linear-gradient(180deg, #3bb85a, #145c28);
  -webkit-background-clip: text; background-clip: text;
}
html[data-theme="light"] .card-pair { color: var(--fg); }
.empty .btn-accent { display: inline-block; margin-top: 16px; }
.btn-accent[disabled], .btn-wide[disabled], .btn-3d[disabled] { opacity: 0.55; pointer-events: none; transform: none; }
.scan { font-size: 12px; color: var(--muted); word-break: break-all; }
