/* BrewGramBot — dashboard styles. Coffee + Telegram teal on a warm dark base; light theme via
   [data-theme="light"]. */

:root {
  color-scheme: dark;
  --bg: #0b0806;
  --glow-1: rgba(240, 151, 63, 0.16);
  --glow-2: rgba(30, 160, 179, 0.14);
  --surface: rgba(26, 20, 16, 0.78);
  --surface-solid: #1a1410;
  --surface-2: #221a14;
  --surface-3: #2b211a;
  --line: rgba(255, 236, 214, 0.08);
  --line-2: rgba(255, 236, 214, 0.15);
  --text: #f7efe6;
  --text-2: #d6c7b9;
  --muted: #a49383;
  --brew: #f29b45;
  --brew-2: #d96f22;
  --brew-soft: rgba(242, 155, 69, 0.14);
  --gram: #35c8da;
  --gram-2: #1a9db3;
  --gram-soft: rgba(53, 200, 218, 0.13);
  --bot: #f7efe6;
  --ok: #4ccb8e;
  --ok-soft: rgba(76, 203, 142, 0.13);
  --bad: #f4705f;
  --bad-soft: rgba(244, 112, 95, 0.13);
  --warn: #f1bf4f;
  --ink-brew: #1f1004;
  --ink-gram: #03222a;
  --btn-brew: linear-gradient(135deg, #f7aa57, #e47b2c);
  --btn-gram: linear-gradient(135deg, #3fd2e3, #1aa3b9);
  --series-1: #1ea0b3;
  --grid: rgba(255, 236, 214, 0.08);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px -30px rgba(0, 0, 0, 0.75);
  --shadow-pop: 0 20px 50px -12px rgba(0, 0, 0, 0.6);
  --r: 20px;
  --r-sm: 12px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --top-h: 68px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f8f3ed;
  --glow-1: rgba(230, 140, 60, 0.16);
  --glow-2: rgba(14, 141, 161, 0.12);
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-2: #f7f0e8;
  --surface-3: #efe5da;
  --line: rgba(70, 44, 22, 0.1);
  --line-2: rgba(70, 44, 22, 0.18);
  --text: #1c2734;
  --text-2: #3c4856;
  --muted: #6d6055;
  --brew: #b8581a;
  --brew-2: #93440f;
  --brew-soft: rgba(184, 88, 26, 0.1);
  --gram: #0b8196;
  --gram-2: #086575;
  --gram-soft: rgba(11, 129, 150, 0.1);
  --bot: #1c2734;
  --ok: #158a55;
  --ok-soft: rgba(21, 138, 85, 0.1);
  --bad: #cc3d2b;
  --bad-soft: rgba(204, 61, 43, 0.09);
  --warn: #a66b12;
  --ink-brew: #fffaf4;
  --ink-gram: #ffffff;
  --btn-brew: linear-gradient(135deg, #c4621f, #96450f);
  --btn-gram: linear-gradient(135deg, #0f93a8, #0a6c7c);
  --series-1: #0e8da1;
  --grid: rgba(70, 44, 22, 0.1);
  --shadow: 0 1px 2px rgba(70, 44, 22, 0.05), 0 22px 46px -30px rgba(70, 44, 22, 0.35);
  --shadow-pop: 0 18px 40px -14px rgba(70, 44, 22, 0.35);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.bg-fx {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 8% -6%, var(--glow-1), transparent 62%),
    radial-gradient(820px 520px at 100% 4%, var(--glow-2), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, var(--glow-2), transparent 70%);
}
a { color: var(--gram); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -0.015em; line-height: 1.2; }
h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
small { font-size: 12.5px; }
code { font-family: var(--mono); font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: var(--surface-3); color: var(--text); }
sub { font-size: 0.72em; vertical-align: -0.28em; line-height: 0; }
.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.sm { font-size: 13px; }
.xs { font-size: 12px; }
.pad { padding: 6px 2px; }
.num { font-variant-numeric: tabular-nums; }
.r { text-align: right; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: none; }
:focus-visible { outline: 2px solid var(--gram); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 8px 14px; border-radius: 10px; background: var(--surface-solid); }
.skip:focus { left: 12px; }
.noscript { padding: 40px 16px; text-align: center; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--top-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { max-width: 1240px; height: 100%; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; flex: none; }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 4px 10px rgba(240, 151, 63, 0.25)); }
.wordmark { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; }
.wordmark.sm { font-size: 17px; }
.w-brew { color: var(--brew); } .w-gram { color: var(--gram); } .w-bot { color: var(--bot); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  color: var(--text-2); font-weight: 600; font-size: 14px; text-decoration: none;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tickers { display: flex; align-items: center; gap: 8px; }
.ticker {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--line); font-variant-numeric: tabular-nums; transition: color 0.4s, border-color 0.4s;
}
.ticker > span:first-child { color: var(--muted); font-weight: 700; font-size: 11.5px; letter-spacing: 0.04em; }
.ticker.up { border-color: color-mix(in srgb, var(--ok) 60%, transparent); }
.ticker.down { border-color: color-mix(in srgb, var(--bad) 60%, transparent); }
.ticker.stale { opacity: 0.55; }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.sync-dot.busy { background: var(--warn); animation: pulse 1.2s ease-in-out infinite; }
.sync-dot.bad { background: var(--bad); }
.theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-sun { display: inline-flex; }
:root[data-theme="light"] .theme-btn .i-moon { display: none; }
.theme-btn span { display: inline-flex; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font: 600 14px/1 var(--font); cursor: pointer; white-space: nowrap; text-decoration: none !important;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.btn:hover:not(:disabled):not([aria-disabled="true"]) { border-color: color-mix(in srgb, var(--gram) 55%, var(--line-2)); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--btn-brew); border-color: transparent; color: var(--ink-brew); box-shadow: 0 8px 22px -10px rgba(228, 123, 44, 0.75); }
.btn-primary:hover:not(:disabled) { border-color: transparent !important; box-shadow: 0 12px 28px -10px rgba(228, 123, 44, 0.9); }
.btn-teal { background: var(--btn-gram); border-color: transparent; color: var(--ink-gram); box-shadow: 0 8px 22px -10px rgba(26, 163, 185, 0.7); }
.btn-teal:hover:not([aria-disabled="true"]) { border-color: transparent !important; }
.btn-teal.soon { opacity: 1; cursor: default; background: var(--gram-soft); color: var(--gram); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gram) 35%, transparent); }
.btn-teal.soon em { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: var(--gram); color: var(--ink-gram); }
.btn-ghost { background: transparent; }
.btn-ghost.on { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
.btn-ghost.on .ic { fill: currentColor; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { min-height: 50px; padding: 0 22px; font-size: 15.5px; border-radius: 14px; }
.btn-wallet { min-height: 40px; border-radius: 999px; padding: 0 16px 0 14px; background: var(--btn-brew); color: var(--ink-brew); border: 0; }
.btn-wallet.connected { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); padding-left: 6px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none;
  border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2); cursor: pointer;
  text-decoration: none !important; transition: color 0.2s, border-color 0.2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn.xs { width: 26px; height: 26px; border-radius: 8px; background: transparent; border-color: transparent; color: var(--muted); }
.icon-btn.xs:hover { color: var(--gram); background: var(--gram-soft); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: none; color: var(--text-2); font: 600 14px var(--font); cursor: pointer; }
.link-btn:hover { color: var(--text); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-row.center { justify-content: center; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn-row .btn { flex: 1 1 140px; }

/* ---------- account menu ---------- */
.acct { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px; z-index: 40;
  background: var(--surface-solid); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-pop);
  display: grid; gap: 2px;
}
.menu[hidden] { display: none; }
.menu-label { padding: 6px 10px 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; border: 0; background: none;
  color: var(--text); font: 500 14px var(--font); text-align: left; cursor: pointer; text-decoration: none !important;
}
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.menu .danger { color: var(--bad); }

/* ---------- avatar ---------- */
.avatar { display: inline-block; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.15); }
.avatar.sm { width: 28px; height: 28px; }
.avatar.xl { width: 64px; height: 64px; }

/* ---------- layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 28px 20px 80px; display: grid; gap: 26px; outline: none; }
.wrap > * { min-width: 0; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px;
  box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); min-width: 0;
}
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card > h2:first-child { margin-bottom: 14px; }
.card-h .tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.block { display: grid; gap: 14px; }
.block-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.page-h p.muted { margin-top: 6px; max-width: 640px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.eyebrow-sm { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--gram); margin-bottom: 6px; }
.crumbs { margin-bottom: -10px; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 8px; margin-left: 6px; border-radius: 999px; background: var(--surface-3); font-size: 12.5px; color: var(--text-2); vertical-align: 2px; }
.count:empty { display: none; }
.more-row { display: flex; justify-content: center; margin-top: 16px; }
.more-row [hidden] { display: none; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 32px; align-items: center; padding: 22px 0 6px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.035em; margin: 18px 0 18px; }
.grad { background: linear-gradient(100deg, var(--brew) 0%, #f5c26b 38%, var(--gram) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 17.5px; color: var(--text-2); max-width: 560px; }
.lead b { color: var(--text); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; color: var(--text-2);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: ping 2s infinite; }
.hero .cta-row { margin: 28px 0 22px; }
.proof { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.proof li { display: inline-flex; align-items: center; gap: 7px; }
.proof .ic { color: var(--gram); }
.hero-art { position: relative; aspect-ratio: 1; max-width: 500px; width: 100%; justify-self: center; }
.halo {
  position: absolute; inset: 9%; border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--brew) 38%, transparent), transparent 62%),
              radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--gram) 30%, transparent), transparent 55%);
  filter: blur(20px); animation: breathe 6s ease-in-out infinite;
}
.mascot { position: relative; width: 88%; height: auto; margin: 6%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35)); animation: float 6s ease-in-out infinite; }
.steam { position: absolute; left: 41%; top: 6%; width: 16%; height: 22%; z-index: 1; pointer-events: none; }
.steam i { position: absolute; bottom: 0; width: 14px; height: 14px; border-radius: 50%; background: color-mix(in srgb, var(--text) 30%, transparent); filter: blur(5px); opacity: 0; animation: steam 4.5s ease-in infinite; }
.steam i:nth-child(1) { left: 10%; }
.steam i:nth-child(2) { left: 45%; animation-delay: 1.5s; }
.steam i:nth-child(3) { left: 75%; animation-delay: 3s; }
.float-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 14px;
  background: var(--surface-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow-pop); font-size: 13px; color: var(--text-2);
  white-space: nowrap; animation: float 7s ease-in-out infinite;
}
.float-chip b { color: var(--text); font-size: 14.5px; }
.float-chip .ic { color: var(--brew); }
.float-chip.c1 { left: -2%; top: 18%; }
.float-chip.c2 { right: -3%; top: 46%; animation-delay: -2.4s; }
.float-chip.c2 .ic { color: var(--bad); }
.float-chip.c3 { left: 6%; bottom: 7%; animation-delay: -4.2s; }
.float-chip.c3 .ic { color: var(--gram); }

/* ---------- search ---------- */
.search {
  display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px; min-height: 44px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); transition: border-color 0.2s, box-shadow 0.2s;
}
.search:focus-within { border-color: color-mix(in srgb, var(--gram) 60%, transparent); box-shadow: 0 0 0 4px var(--gram-soft); }
.search input { flex: 1; min-width: 0; height: 40px; border: 0; outline: none; background: transparent; color: var(--text); font: 500 15px var(--font); }
.search input::placeholder { color: var(--muted); }
.search.big { max-width: 560px; min-height: 56px; border-radius: 16px; padding-left: 18px; }
.search.big input { height: 52px; font-size: 15.5px; }
.search.sm { min-height: 38px; border-radius: 11px; }
.search.sm input { height: 36px; font-size: 14px; width: 150px; }
select {
  min-height: 40px; padding: 0 34px 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background-color: var(--surface-2);
  color: var(--text); font: 600 14px var(--font); cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
select option { background: var(--surface-solid); color: var(--text); }
input { font: inherit; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border-radius: 18px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
}
.kpi-l { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi-l .ic { color: var(--gram); }
.kpi-v { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.kpi-v small { font-size: 0.55em; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.kpi-s { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.kpi.kpi-hero {
  grid-column: span 2; background:
    radial-gradient(120% 140% at 0% 0%, var(--brew-soft), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, var(--gram-soft), transparent 60%), var(--surface);
  border-color: color-mix(in srgb, var(--brew) 30%, var(--line));
}
.kpi.kpi-hero .kpi-v { font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.03em; }
.kpi.kpi-hero .kpi-l .ic { color: var(--brew); }
.kpi-act { margin-top: 8px; }
.kpis.dash, .kpis.tok { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpis.tok .kpi-v { font-size: 22px; }

/* ---------- token cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tcard {
  display: grid; gap: 14px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text); text-decoration: none !important; box-shadow: var(--shadow); min-width: 0;
  transition: transform 0.18s ease, border-color 0.2s, box-shadow 0.2s;
}
a.tcard:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brew) 40%, var(--line)); box-shadow: var(--shadow-pop); }
.tcard.sk { padding: 0; overflow: hidden; }
.tcard.sk .skel { border-radius: 0; }
.tcard-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tcard-name { display: grid; min-width: 0; flex: 1; }
.tcard-name b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard-name span { font-size: 13px; color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.tcard-stats div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.tcard-stats dt { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.tcard-stats dd { margin: 2px 0 0; font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.tcard-stats dd small { color: var(--muted); font-weight: 600; font-size: 11.5px; }
.tcard-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.tcard-foot span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }

/* ---------- token logo ---------- */
.tlogo {
  --s: 40px; width: var(--s); height: var(--s); flex: none; border-radius: 30%; display: inline-grid; place-items: center;
  overflow: hidden; color: #fff; font-weight: 800; font-size: calc(var(--s) * 0.34); letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.tlogo.has-img { background: var(--surface-3) !important; }
.tlogo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); white-space: nowrap;
}
.badge.ok { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.badge.teal { color: var(--gram); background: var(--gram-soft); border-color: transparent; }
.badge.brew { color: var(--brew); background: var(--brew-soft); border-color: transparent; }
.badge.q { margin-left: auto; padding: 3px 8px; font-size: 11px; letter-spacing: 0.02em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.roles { display: inline-flex; gap: 4px; flex-wrap: nowrap; }
.chg { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chg.up { color: var(--ok); }
.chg.down { color: var(--bad); }
.mult { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 6px; font-size: 11.5px; font-weight: 800; }
.mult.up { color: var(--ok); background: var(--ok-soft); }
.mult.down { color: var(--bad); background: var(--bad-soft); }
.mult.flat { color: var(--muted); background: var(--surface-3); }
.side { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; font-size: 12.5px; font-weight: 700; }
.side.buy { color: var(--ok); background: var(--ok-soft); }
.side.sell { color: var(--bad); background: var(--bad-soft); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl tbody tr { transition: background 0.15s; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl .num small { color: var(--muted); font-weight: 600; }
.tbl.compact td, .tbl.compact th { padding: 7px 10px; }
.tk { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none !important; min-width: 0; }
.tk-names { display: grid; min-width: 0; }
.tk-names b { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.tk-names small { color: var(--muted); font-weight: 500; }
.tk:hover b { color: var(--gram); }
.actions { width: 1%; }

/* ---------- lists ---------- */
.list { list-style: none; margin: 0; padding: 0; display: grid; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); min-width: 0; }
.list li:last-child { border-bottom: 0; }
.li-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--text-2); }
.li-ic.ok { color: var(--ok); background: var(--ok-soft); }
.li-ic.teal { color: var(--gram); background: var(--gram-soft); }
.li-main { display: grid; flex: 1; min-width: 0; }
.li-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-main a { color: var(--text); }
.li-main small { color: var(--muted); }
.li-side { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }

/* ---------- key/value ---------- */
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 4px; }
.addr { display: inline-flex; align-items: center; gap: 2px; }
.addr a { color: var(--text); }
.addr a:hover { color: var(--gram); }

/* ---------- dashboard ---------- */
.dash-h .who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.addr-title { display: flex; align-items: center; gap: 8px; font-size: clamp(22px, 3vw, 30px); }
.addr-title .mono { font-size: 0.9em; }
.dash-h .chips { margin-top: 8px; }
.tok-tbl td.tk-cell { white-space: normal; min-width: 220px; }

/* ---------- token page ---------- */
.tok-h { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 24px; align-items: center; }
.tok-id { display: flex; gap: 18px; align-items: center; min-width: 0; }
.tok-titles { display: grid; gap: 8px; min-width: 0; }
.tok-titles h1 { font-size: clamp(24px, 3vw, 32px); overflow-wrap: anywhere; }
.tok-titles .sym { color: var(--muted); font-weight: 700; font-size: 0.66em; letter-spacing: 0; }
.tok-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tok-about { grid-column: 1 / -1; display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text-2); }
.tok-about:empty { display: none; }
.tok-about p { white-space: pre-line; overflow-wrap: anywhere; max-width: 900px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.social { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 13.5px; }
.social:hover { border-color: var(--line-2); text-decoration: none; }
.tok-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.tok-main, .tok-side { display: grid; gap: 22px; min-width: 0; }
.embed { position: relative; border-radius: 14px; overflow: hidden; background: var(--surface-2); aspect-ratio: 16 / 10; min-height: 360px; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chart-embed .xs { margin-top: 10px; }
.fee-card { border-color: color-mix(in srgb, var(--gram) 28%, var(--line)); }
.fee-big { display: grid; gap: 4px; padding: 16px; border-radius: 16px; margin-bottom: 16px;
  background: radial-gradient(120% 140% at 0% 0%, var(--gram-soft), transparent 60%), var(--surface-2); }
.fee-big .lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.fee-big b { font-size: 26px; letter-spacing: -0.02em; }
.fee-big b small { font-size: 0.55em; color: var(--muted); }
.fee-big > small { color: var(--muted); }
.recip { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.recip summary { cursor: pointer; font-weight: 600; color: var(--text-2); font-size: 14px; }
.recip-form { display: flex; gap: 8px; margin: 12px 0 8px; }
.recip-form input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-size: 12.5px; }

/* ---------- segmented ---------- */
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 600 13.5px var(--font); cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"] { background: var(--surface-solid); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 0 0 1px var(--line); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.toolbar .search { flex: 1 1 280px; }

/* ---------- chart ---------- */
.chart-card .card-h { margin-bottom: 8px; }
.chart { position: relative; }
.chart-plot { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .gl { stroke: var(--grid); stroke-width: 1; }
.chart .axis { stroke: var(--line-2); stroke-width: 1; }
.chart .tick { fill: var(--muted); font: 500 11px var(--font); font-variant-numeric: tabular-nums; }
.chart .hit { fill: transparent; cursor: default; }
.chart .mark { fill: var(--series-1); transition: opacity 0.15s; }
.chart .bar:focus { outline: none; }
.chart .bar.on .mark, .chart .bar:focus-visible .mark { opacity: 0.78; }
.chart .bar.on .hit, .chart .bar:focus-visible .hit { fill: color-mix(in srgb, var(--series-1) 9%, transparent); }
.chart-tip {
  position: absolute; z-index: 3; transform: translate(-50%, -100%); pointer-events: none; display: grid; gap: 1px;
  padding: 8px 12px; border-radius: 10px; background: var(--surface-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow-pop); white-space: nowrap;
}
.chart-tip[hidden] { display: none; }
.chart-tip b { font-size: 16px; }
.chart-tip span { color: var(--text-2); font-size: 12px; margin-left: 4px; }
.chart-tip small { color: var(--muted); font-size: 12px; }
.chart-tip b, .chart-tip span { display: inline; }
.chart-table { margin-top: 10px; }
.chart-table summary { cursor: pointer; font-size: 13px; color: var(--muted); font-weight: 600; width: fit-content; }
.chart-table table { margin-top: 8px; max-width: 420px; }

/* ---------- steps, faq, cta ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { position: relative; display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.steps p { color: var(--text-2); font-size: 14.5px; }
.step-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--ink-brew); background: var(--btn-brew); box-shadow: 0 10px 24px -12px rgba(228, 123, 44, 0.9); }
.steps li:nth-child(2) .step-ic { background: linear-gradient(135deg, #8f6a4c, #5b3d27); color: #fff; box-shadow: none; }
.steps li:nth-child(3) .step-ic { background: var(--btn-gram); color: var(--ink-gram); box-shadow: 0 10px 24px -12px rgba(26, 163, 185, 0.9); }
.step-n { position: absolute; right: 18px; top: 10px; font-size: 54px; font-weight: 800; color: var(--text); opacity: 0.06; letter-spacing: -0.05em; }
.faq { display: grid; gap: 4px; }
.faq h2 { margin-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gram); font-weight: 700; font-size: 18px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); font-size: 14.5px; padding: 0 0 12px; }
.cta-card { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 30px 24px;
  background: radial-gradient(90% 120% at 50% 0%, var(--brew-soft), transparent 70%), var(--surface); }
.cta-card img { width: 132px; height: 132px; animation: float 6s ease-in-out infinite; }
.cta-card.compact img { width: 96px; height: 96px; }
.cta-card p { max-width: 420px; }

/* ---------- fee flow ---------- */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 12px; }
.flow-arrow { align-self: center; }
.flow-step { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 8px; }
.flow-step small { color: var(--muted); max-width: 220px; }
.flow-ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--gram-soft); color: var(--gram); }
.flow-step:nth-child(3) .flow-ic { background: var(--brew-soft); color: var(--brew); }
.flow-step:nth-child(5) .flow-ic { background: var(--ok-soft); color: var(--ok); }
.flow-arrow { display: grid; justify-items: center; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- empty & skeleton ---------- */
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 36px 16px; }
.empty img { width: 120px; height: 120px; opacity: 0.95; }
.empty p { color: var(--text-2); max-width: 520px; }
.empty .cta-row { margin-top: 8px; }
.skel { display: inline-block; max-width: 100%; border-radius: 8px; vertical-align: middle;
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.rows-sk { display: grid; gap: 10px; }

/* ---------- dialog & toasts ---------- */
dialog { padding: 0; border: 1px solid var(--line-2); border-radius: 22px; background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow-pop); width: min(420px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(8, 5, 3, 0.62); backdrop-filter: blur(4px); }
.dlg { display: grid; gap: 14px; padding: 22px; }
.dlg-h { display: flex; align-items: center; justify-content: space-between; }
.wallet-list { display: grid; gap: 8px; }
.wallet-opt {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); font: 500 14px var(--font); text-align: left; cursor: pointer; transition: border-color 0.2s, transform 0.15s;
}
.wallet-opt:hover { border-color: color-mix(in srgb, var(--gram) 55%, transparent); transform: translateY(-1px); }
.wallet-opt > span { display: grid; flex: 1; }
.wallet-opt small { color: var(--muted); }
.wallet-opt img { border-radius: 9px; }
.wallet-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--gram-soft); color: var(--gram); }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 16px; background: var(--surface-solid);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-pop); animation: toastIn 0.22s ease-out;
}
.toast.out { opacity: 0; transform: translateY(6px); transition: 0.2s; }
.toast-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--gram-soft); color: var(--gram); }
.toast.ok .toast-ic { background: var(--ok-soft); color: var(--ok); }
.toast.bad .toast-ic { background: var(--bad-soft); color: var(--bad); }
.toast.busy .toast-ic { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.toast.busy .toast-ic .ic { animation: spin 1.6s linear infinite; }
.toast-tx { display: grid; gap: 2px; flex: 1; min-width: 0; font-size: 14px; }
.toast-tx span { color: var(--text-2); font-size: 13px; overflow-wrap: anywhere; }
.toast-tx a { display: inline-flex; align-items: center; gap: 4px; }
.toast-x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px; }

/* ---------- footer & bottom nav ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 20px; }
.footer-in { max-width: 1240px; margin: 0 auto; padding: 30px 20px 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 30px; align-items: center; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand p { margin-top: 4px; max-width: 520px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; font-weight: 600; }
.footer-links a { color: var(--text-2); }
.footer-social { display: inline-flex; gap: 6px; }
.footer-social:empty { display: none; }
.footer-social .icon-btn { width: 32px; height: 32px; border-radius: 9px; }
.footer-status { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); }
.bottom-nav { display: none; }

/* ---------- sponsor ---------- */
.badge.bad { color: var(--bad); background: var(--bad-soft); border-color: transparent; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.ok { color: var(--ok); background: var(--ok-soft); }
.status-pill.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.status-pill.bad { color: var(--bad); background: var(--bad-soft); }
.sp-name { font-size: clamp(22px, 2.6vw, 28px); overflow-wrap: anywhere; }
.sp-name .sym { color: var(--muted); font-weight: 700; font-size: 0.66em; }
.sp-kpis { margin-top: 14px; }
.sp-grid { margin: 22px 0; }
.sp-big { margin: 2px 0 16px; font-size: 30px; font-weight: 800; letter-spacing: -0.01em; }
.sp-big small { color: var(--muted); font-size: 15px; font-weight: 600; }
.sp-big .muted { font-size: 15px; font-weight: 500; }
.sponsor-banner { display: flex; align-items: center; gap: 16px; margin-top: 18px; color: var(--text); text-decoration: none; border-color: color-mix(in srgb, var(--brew) 35%, var(--line)); }
.sponsor-banner:hover { border-color: var(--brew); }
.sb-ic { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; color: var(--brew); background: var(--brew-soft); }
.sb-txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.sb-go { display: inline-flex; align-items: center; gap: 4px; color: var(--brew); font-weight: 700; white-space: nowrap; }
@media (max-width: 720px) { .sb-go { display: none; } }

/* ---------- motion ---------- */
@keyframes pulse { 50% { opacity: 0.35; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes breathe { 0%, 100% { opacity: 0.85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes steam { 0% { transform: translateY(0) scale(0.6); opacity: 0; } 25% { opacity: 0.7; } 100% { transform: translateY(-70px) scale(1.8); opacity: 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .tickers { display: none; }
  .kpis.dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis.tok { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tok-grid { grid-template-columns: minmax(0, 1fr); }
  .tok-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-art { max-width: 380px; grid-row: 1; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tok-h { grid-template-columns: 1fr; }
  .tok-actions { justify-content: flex-start; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); padding: 4px 0; }
  .flow-arrow span { transform: rotate(-90deg); }
}
@media (max-width: 760px) {
  :root { --top-h: 60px; }
  body { padding-bottom: 72px; }
  .topbar-in { padding: 0 16px; gap: 10px; }
  .nav { display: none; }
  .wordmark { font-size: 18px; }
  .brand img { width: 34px; height: 34px; }
  .wrap { padding: 20px 16px 40px; gap: 20px; }
  .card { padding: 18px 16px; border-radius: 18px; }
  .kpis, .kpis.dash, .kpis.tok { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-v { font-size: 21px; }
  .kpi.kpi-hero { grid-column: 1 / -1; }
  .kpis.tok .kpi-v { font-size: 19px; }
  .tok-side { grid-template-columns: 1fr; }
  .page-h { align-items: flex-start; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1 1 auto; }
  .float-chip { font-size: 12px; padding: 8px 10px; }
  .float-chip.c1 { left: 0; }
  .float-chip.c2 { right: 0; }
  .search.sm input { width: 100%; }
  .card-h .tools { width: 100%; }
  .card-h .tools > * { flex: 1 1 150px; min-width: 0; }
  .hero { gap: 8px; padding-top: 0; }
  .hero-art { max-width: 300px; }
  .hero .cta-row .btn { flex: 1 1 100%; }
  .embed { aspect-ratio: auto; height: 420px; min-height: 0; }
  .footer-in { grid-template-columns: 1fr; padding-bottom: 28px; }
  .toasts { right: 16px; bottom: 84px; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface-solid) 92%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .bottom-nav a { display: grid; justify-items: center; gap: 3px; padding: 6px 0; border-radius: 12px; color: var(--muted); font-size: 11.5px; font-weight: 700; text-decoration: none; }
  .bottom-nav a[aria-current="page"] { color: var(--brew); background: var(--brew-soft); }

  /* Token table → stacked cards */
  .tok-tbl thead { display: none; }
  .tok-tbl, .tok-tbl tbody, .tok-tbl tr, .tok-tbl td { display: block; width: 100%; }
  .tok-tbl tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .tok-tbl tr:last-child { border-bottom: 0; }
  .tok-tbl td { padding: 0; border: 0; white-space: normal; text-align: left !important; }
  .tok-tbl td.tk-cell { grid-column: 1 / -1; min-width: 0; }
  .tok-tbl td.actions { position: absolute; display: none; }
  .tok-tbl td[data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
  .tok-tbl tbody tr:hover { background: none; }
  .tbl-wrap { margin: 0; padding: 0; }
}
@media (max-width: 420px) {
  .wordmark { font-size: 16px; }
  .btn-wallet span:not(.avatar) { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
  .hero h1 { font-size: 34px; }
  .kpi-v { font-size: 19px; }
  .tcard-stats dd { font-size: 14px; }
}
.in-telegram .footer-links { display: none; }

/* ---------- launcher ---------- */
.launch-wrap { max-width: 720px; padding-bottom: 150px; }
.launch-h { display: grid; gap: 8px; }
.launch-h h1 { font-size: clamp(30px, 5vw, 42px); }
.banner { padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.lsec h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.lsec h2 small { font-weight: 500; font-size: 13px; }
.lsec > p.muted { margin-bottom: 12px; }
.lnum { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--btn-brew); color: var(--ink-brew); font-size: 13px; font-weight: 800; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: 600 14px var(--font); cursor: pointer;
}
.chip:hover { border-color: color-mix(in srgb, var(--gram) 55%, var(--line-2)); }
.chip.on { background: var(--btn-brew); color: var(--ink-brew); border-color: transparent; }
.field { display: grid; gap: 6px; margin: 10px 0; min-width: 0; }
.field label, .field .lbl { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field input, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); font: 500 15px var(--font); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
.field input:focus, .field textarea:focus { border-color: color-mix(in srgb, var(--gram) 60%, transparent); box-shadow: 0 0 0 4px var(--gram-soft); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input.mono { font-family: var(--mono); font-size: 13.5px; }
.field-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
.field-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-err { color: var(--bad); font-size: 13.5px; font-weight: 600; }
.field-err:empty { display: none; }
.dropzone {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px;
  border: 1.5px dashed var(--line-2); background: var(--surface-2); cursor: pointer; transition: border-color 0.2s;
}
.dropzone:hover, .dropzone:focus-within { border-color: color-mix(in srgb, var(--gram) 60%, transparent); }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone.has-img { border-style: solid; }
.drop-img { width: 64px; height: 64px; border-radius: 30%; flex: none; display: grid; place-items: center; background: var(--surface-3); overflow: hidden; }
.drop-img:empty::before { content: "+"; font-size: 28px; font-weight: 600; color: var(--muted); }
.drop-img img { width: 100%; height: 100%; object-fit: cover; }
.drop-tx { display: grid; gap: 2px; min-width: 0; }
.drop-tx small { color: var(--muted); overflow-wrap: anywhere; }
.pair-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 14px; }
.pair-card:empty { display: none; }
.pair-card > div { display: grid; gap: 2px; min-width: 0; }
.pair-card span { color: var(--text-2); overflow-wrap: anywhere; }
.pair-card > .ic { margin-top: 2px; }
.pair-card.ok { background: var(--ok-soft); }
.pair-card.ok > .ic { color: var(--ok); }
.pair-card.bad { background: var(--bad-soft); }
.pair-card.bad > .ic { color: var(--bad); }
.warn-text { color: var(--warn) !important; }
.buy-est { font-size: 14px; color: var(--text-2); }
.buy-est:empty { display: none; }
.buy-est.bad { color: var(--bad); font-weight: 600; }
label.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; color: var(--text-2); cursor: pointer; }
label.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brew); flex: none; }
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface-solid) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.actionbar-in { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.ab-info { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); }
.actionbar .btn { flex: none; min-width: 210px; }
.launcher .toasts { bottom: 104px; }
.psteps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.psteps li { display: flex; gap: 12px; align-items: flex-start; }
.psteps li > span:last-child { display: grid; gap: 2px; }
.psteps small { color: var(--muted); }
.pdot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--muted); font-size: 12px; font-weight: 800; }
.psteps li.done .pdot { background: var(--ok-soft); color: var(--ok); }
.psteps li.active .pdot { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.psteps li.active .pdot .ic { animation: spin 1.6s linear infinite; }
.psteps li.error .pdot { background: var(--bad-soft); color: var(--bad); }
.psteps li.todo b { color: var(--muted); font-weight: 600; }
.success { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 32px 20px; }
.success img { width: 120px; height: 120px; animation: float 6s ease-in-out infinite; }
.success h1 { font-size: clamp(28px, 5vw, 38px); }
.addr-big { display: inline-flex; align-items: center; gap: 6px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--surface-2); max-width: 100%; }
.addr-big .mono { overflow-wrap: anywhere; text-align: left; }
@media (max-width: 760px) {
  .launch-wrap { padding-bottom: 170px; }
  .field-row, .field-row.three { grid-template-columns: 1fr; gap: 0; }
  .actionbar-in { flex-direction: column; align-items: stretch; gap: 8px; }
  .actionbar .btn { width: 100%; min-width: 0; }
  .ab-info { text-align: center; }
  .launcher .toasts { bottom: 150px; }
}
