/* Swarm — site styles.
   Direction: calm, crafted, product-first. Near-black background, one slightly lighter surface for panels, 1px hairline
   borders, off-white and muted grey text. Acid green (#B6FF3B) is the single accent and is reserved for the primary
   button, the live dot, positive numbers and progress fills, the focus ring and the buy marker. Rust (#FF6A2B) only
   marks sells, errors and destructive states. Archivo at normal width, weights 400–600, sentence case, tight tracking
   on headings; JetBrains Mono only for numbers, prices, addresses and tickers. The one exception is the wordmark:
   lowercase "swarm" in Archivo 800 at 112% width, set beside the S-bot mark in the logo lockup's proportions (mark box
   1.1em, gap .22em). No gradients, glows, hard shadows, textures or stickers. Spacing on a 4/8 scale. */

@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-var.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-var.woff2') format('woff2'); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --bg: #0B0C0A;
  --surface: #121410;
  --surface-2: #181B15;
  --line: #22261F;
  --line-2: #30352B;
  --text: #ECEEE8;
  --text-2: #A6AB9F;
  --text-3: #82887B;
  --acid: #B6FF3B;
  --acid-hover: #C6FF66;
  --rust: #FF6A2B;
  --radius: 14px;
  --radius-sm: 10px;
  --font: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hh: 64px;
  --wrap: 1160px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 16px); background: var(--bg); }
body { margin: 0; font-family: var(--font); font-stretch: 100%; font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; min-width: 320px; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 550; text-wrap: balance; }
b, strong { font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: var(--mono); font-size: .9em; }
sub { font-size: .7em; vertical-align: -.25em; line-height: 0; }
[hidden] { display: none !important; }
::selection { background: var(--acid); color: var(--bg); }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--acid); color: var(--bg); padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus-visible { top: 12px; }
.noscript { position: fixed; bottom: 0; left: 0; right: 0; padding: 12px; text-align: center; background: var(--surface-2); border-top: 1px solid var(--line-2); color: var(--text); font-size: 14px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-weight: 450; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.fine { font-size: 13px; color: var(--text-3); margin-top: 16px; line-height: 1.55; }
.i { width: 20px; height: 20px; flex: none; stroke-width: 1.75; }
.i-sm { width: 16px; height: 16px; }
.i-xs { width: 14px; height: 14px; }
.flip { transform: scaleX(-1); }

/* ---------- type ---------- */
.eyebrow { font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--text-3); }
.h1 { font-size: clamp(32px, 3.6vw, 44px); font-weight: 550; letter-spacing: -.03em; line-height: 1.1; margin-top: 12px; overflow-wrap: anywhere; }
.h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 550; letter-spacing: -.025em; line-height: 1.15; }
.h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.lede { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 600px; margin-top: 16px; text-wrap: pretty; }
.unit { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--text-3); margin-left: 4px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid transparent; font-size: 14.5px; font-weight: 550; letter-spacing: -.005em; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.btn-acid { background: var(--acid); color: var(--bg); border-color: var(--acid); }
.btn-acid:hover { background: var(--acid-hover); border-color: var(--acid-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text-3); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-acid[aria-disabled="true"]:hover, .btn-acid:disabled:hover { background: var(--acid); border-color: var(--acid); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: transparent; border: 1px solid var(--line-2); color: var(--text-2); transition: color .15s, border-color .15s; }
.btn-icon:hover:not(:disabled) { color: var(--text); border-color: var(--text-3); }
.btn-icon:disabled { opacity: .4; cursor: not-allowed; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 500; font-size: 14.5px; text-decoration: none; transition: color .15s; }
.link-arrow:hover { color: var(--text); }
.link-arrow .i { transition: transform .15s var(--ease); }
.link-arrow:hover .i { transform: translateX(2px); }
.link-btn { padding: 0; border: 0; background: none; color: var(--text); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.link-btn:hover { text-decoration-color: var(--text-2); }

.btn-follow { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: transparent; color: var(--text); font-weight: 500; font-size: 13.5px; white-space: nowrap; transition: border-color .15s, background-color .15s; }
.btn-follow .i { color: var(--text-3); }
.btn-follow:hover { border-color: var(--text-3); }
.btn-follow.is-on { background: var(--surface-2); border-color: var(--line-2); color: var(--text); }
.btn-follow.is-on .i { color: var(--acid); }
.btn-follow.is-compact { height: 32px; padding: 0 11px; font-size: 13px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(11, 12, 10, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 32px; height: var(--hh); }
.logo { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; flex: none; border-radius: 8px; }
.logo-mark { width: 24px; height: 24px; }
.wm { font-size: 22px; font-weight: 800; font-stretch: 112%; letter-spacing: -.035em; line-height: 1; color: var(--text); }
.nav-list { display: flex; gap: 4px; }
.nav-list a { display: block; padding: 8px 12px; font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--text-2); border-radius: 8px; transition: color .15s; }
.nav-list a:hover { color: var(--text); }
.nav-list a[aria-current="page"] { color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.demo-badge { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.demo-sub { color: var(--text-3); }
.demo-sep { color: var(--text-3); }
.demo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); flex: none; }
.is-demo .demo-dot { background: var(--text-3); }
.nav-toggle { display: none; width: 40px; height: 40px; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: transparent; color: var(--text); }

/* ---------- tape (home) ---------- */
.tape { display: flex; align-items: center; height: 40px; border-bottom: 1px solid var(--line); overflow: hidden; font-size: 13px; color: var(--text-3); }
.tape-label { display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 16px 0 var(--gutter); color: var(--text-2); font-weight: 500; flex: none; border-right: 1px solid var(--line); }
.tape-view { flex: 1; overflow: hidden; min-width: 0; height: 100%; }
.tape-track { display: flex; width: max-content; height: 100%; align-items: center; animation: tape 90s linear infinite; }
.tape-set { display: flex; }
.tape-view:hover .tape-track { animation-play-state: paused; }
.tape-item { display: inline-flex; align-items: center; gap: 6px; padding: 0 20px; white-space: nowrap; text-decoration: none; color: var(--text-3); font-variant-numeric: tabular-nums; transition: color .15s; }
.tape-item:hover { color: var(--text-2); }
.tape-item b { font-weight: 500; color: var(--text-2); }
.tape-item .tape-side { color: var(--acid); }
.tape-item.is-sell .tape-side { color: var(--rust); }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- hero ---------- */
.hero { padding: 96px 0 104px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 64px; align-items: center; }
.hero-h1 { margin-top: 16px; font-size: clamp(40px, 5vw, 62px); font-weight: 550; letter-spacing: -.035em; line-height: 1.04; }
.hero-h1 .line { display: block; }
.hero .lede { font-size: 18px; max-width: 540px; margin-top: 24px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 580px; }
.hero-stats div { display: flex; flex-direction: column-reverse; gap: 4px; min-width: 0; }
.hero-stats dt { font-size: 13px; color: var(--text-3); }
.hero-stats dd { font-size: 24px; font-weight: 450; color: var(--text); line-height: 1.2; }
.hero-note { font-size: 13px; color: var(--text-3); margin-top: 16px; }
.token-ca { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); font-size: 13px; max-width: 100%; }
.token-ca-label { font-weight: 600; color: var(--acid); white-space: nowrap; }
.token-ca-addr { font-family: var(--mono); font-size: 13px; color: var(--text); word-break: break-all; }
.token-ca-link { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.token-ca-link:hover { color: var(--text); }
.token-ca.is-hero { margin-top: 20px; align-self: flex-start; width: fit-content; }
.token-ca.is-footer { margin-bottom: 8px; width: fit-content; background: transparent; }
.hero-bot { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; justify-self: center; }
.hero-bot-fallback { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.hero-bot canvas { width: 100%; height: 100%; display: block; }

/* ---------- sections, panels ---------- */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-tight { padding: 40px 0 96px; }
.section-head { margin-bottom: 40px; max-width: 640px; }
.section-head .h2 { margin-top: 12px; }
.section-sub { margin-top: 64px; }
.section-sub .h2 { margin-bottom: 24px; font-size: clamp(22px, 2.2vw, 26px); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-head .h2 { font-size: 22px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.panel-head .h3 { display: flex; align-items: center; gap: 10px; }
.panel-head .small { color: var(--text-3); }
.panel-head-sub { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); flex: none; }

.page-head { padding: 72px 0 40px; }
.page-head .lede { max-width: 640px; }

.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.seg-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 7px; border: 1px solid transparent; background: transparent; color: var(--text-2); font-weight: 500; font-size: 13.5px; white-space: nowrap; transition: color .15s, background-color .15s; }
.seg-btn:hover { color: var(--text); }
.seg-btn[aria-pressed="true"] { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }
.toolbar-right .seg-btn { height: 36px; border-color: var(--line-2); border-radius: var(--radius-sm); }
.toolbar-right .seg-btn[aria-pressed="true"] { background: var(--surface-2); }

/* ---------- feed / trades ---------- */
.feed-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.trades { display: flex; flex-direction: column; }
.trade { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.trade:first-child { border-top: 0; padding-top: 4px; }
.trade.is-skel { display: flex; gap: 14px; }
.page-coin .trade, .page-agent .trade { grid-template-columns: minmax(0, 1fr) auto; }
.page-coin .trade:has(.t-av), .page-agent .trade:has(.t-av) { grid-template-columns: 36px minmax(0, 1fr) auto; }
.t-av { border-radius: 9px; }
.t-av .av { width: 36px; height: 36px; border-radius: 9px; }
.av { border-radius: 9px; background: var(--surface-2); flex: none; }
.t-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 14.5px; color: var(--text-2); }
.t-agent { font-weight: 600; text-decoration: none; color: var(--text); }
.t-agent:hover { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.t-side { font-size: 14px; font-weight: 500; color: var(--acid); }
.trade-sell .t-side { color: var(--rust); }
.t-amt { font-size: 13.5px; color: var(--text); }
.t-of { color: var(--text-3); font-size: 14px; }
.t-tok { color: var(--text-3); font-size: 13px; }
.t-coin { display: inline-flex; align-items: center; gap: 6px; align-self: center; font-weight: 500; text-decoration: none; color: var(--text); }
.t-coin:hover { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.t-coin .coin-img { border-radius: 5px; }
.t-note { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); max-width: 62ch; overflow-wrap: anywhere; }
.t-note.is-empty { color: var(--text-3); font-size: 13px; }
.t-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-top: 2px; }
.t-meta time { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.trade.is-fresh { animation: fresh .6s var(--ease); }
@keyframes fresh { from { opacity: 0; transform: translateY(-4px); } }

.conf { display: inline-flex; align-items: center; gap: 6px; }
.conf-k { font-size: 12px; color: var(--text-3); }
.conf-bar { position: relative; width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.conf-bar i { position: absolute; inset: 0 auto 0 0; background: var(--acid); border-radius: 2px; }
.conf-mid .conf-bar i { background: var(--text-2); }
.conf-lo .conf-bar i { background: var(--text-3); }
.conf b { font-size: 12px; font-weight: 450; min-width: 2ch; text-align: right; color: var(--text-2); }

.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 500; color: var(--text-2); white-space: nowrap; vertical-align: middle; }
.tag-rust { color: var(--rust); border-color: rgba(255, 106, 43, .4); }
.tag-acid { color: var(--text); }
.tag-follow { height: auto; padding: 0; border: 0; color: var(--text-3); align-self: center; }

.trend-list { display: flex; flex-direction: column; }
.trend { display: grid; grid-template-columns: 16px 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }
.trend-list li:first-child .trend { border-top: 0; padding-top: 4px; }
.trend:hover .trend-name { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.trend-rank { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.trend .coin-img { width: 36px; height: 36px; border-radius: 9px; }
.trend-name { font-weight: 500; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-sub { display: block; font-family: var(--mono); font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-right { text-align: right; min-width: 88px; }
.trend-right .mono { font-size: 13px; }
.trend-right .prog { margin-top: 8px; }

/* ---------- progress ---------- */
.prog { display: flex; align-items: center; gap: 10px; }
.prog-track { position: relative; flex: 1; height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.prog-track i { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: var(--acid); }
.prog.is-done .prog-track i { background: var(--text-3); }
.prog-val { font-size: 12px; color: var(--text-2); min-width: 3.4em; text-align: right; }
.prog.is-done .prog-val { font-family: var(--font); font-size: 12.5px; color: var(--text-3); min-width: 0; }
.prog-lg .prog-track { height: 8px; border-radius: 4px; }
.prog-lg .prog-track i { border-radius: 4px; }
.prog-sm .prog-track { height: 3px; }

/* ---------- coin cards ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 24px; }
.toolbar-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid transparent; background: transparent; color: var(--text-2); font-weight: 500; font-size: 14px; white-space: nowrap; transition: color .15s, background-color .15s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface-2); border-color: var(--line-2); color: var(--text); }
.tab-n { font-size: 12px; color: var(--text-3); }
.tab-n:empty { display: none; }
.search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: transparent; color: var(--text-3); }
.search:focus-within { border-color: var(--text-3); }
.search input { border: 0; background: transparent; outline: none; width: 200px; min-width: 0; color: var(--text); font-size: 14px; }
.search input::placeholder { color: var(--text-3); }
.select select { height: 36px; padding: 0 32px 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2382887B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px; appearance: none; font-weight: 500; font-size: 14px; color: var(--text); }
.select select option { background: var(--surface); color: var(--text); }

.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(264px, 1fr)); gap: 16px; }
.coin-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .15s; min-width: 0; }
.coin-card:hover { border-color: var(--line-2); }
.coin-card.is-skel:hover { border-color: var(--line); }
.cc-top { display: flex; gap: 14px; align-items: center; min-width: 0; }
.coin-img { border-radius: 10px; background: var(--surface-2); flex: none; }
.cc-top .coin-img { width: 48px; height: 48px; }
.cc-id { min-width: 0; flex: 1; }
.cc-name { font-weight: 600; font-size: 16px; letter-spacing: -.01em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-sym { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.cc-by { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); min-width: 0; }
.cc-by span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-by b { color: var(--text-2); font-weight: 500; }
.cc-by .av { border-radius: 5px; }
.cc-by time { margin-left: auto; font-family: var(--mono); font-size: 12px; flex: none; }
.cc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.cc-stats div { display: flex; flex-direction: column-reverse; gap: 2px; min-width: 0; }
.cc-stats dt { font-size: 12px; color: var(--text-3); }
.cc-stats dd { font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticker { flex: none; align-self: flex-start; font-size: 12px; font-weight: 500; color: var(--text-3); white-space: nowrap; }
.sticker-hot { color: var(--text-2); }

.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 40px 16px; color: var(--text-3); font-size: 14.5px; grid-column: 1 / -1; }
.empty .i { width: 22px; height: 22px; color: var(--text-3); }
.empty a { color: var(--text-2); }

.skel { background: var(--surface-2); border-radius: 8px; animation: skel 1.6s ease-in-out infinite; }
@keyframes skel { 50% { opacity: .55; } }

/* ---------- home: editorial sections ---------- */
.editorial { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px 64px; align-items: start; }
.editorial .section-head { margin: 0; }
.editorial .lede { font-size: 16px; }

.rounds { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.round { display: grid; grid-template-columns: 48px minmax(0, 200px) minmax(0, 1fr); gap: 8px 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.round-n { font-family: var(--mono); font-size: 13px; color: var(--text-3); padding-top: 1px; }
.round .h3 { font-size: 16px; font-weight: 550; }
.round p { font-size: 15px; color: var(--text-2); line-height: 1.6; }
.round code, .rule code { color: var(--text); font-size: 13.5px; }
.round p a { color: var(--text); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.round p a:hover { text-decoration-color: var(--text-2); }

.rules-grid { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.rule { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.rule .h3 { font-size: 16px; font-weight: 550; }
.rule p { font-size: 15px; color: var(--text-2); line-height: 1.6; }
.rules-more { margin-top: 24px; }

/* ---------- coin page ---------- */
.coin-head, .agent-head { padding: 40px 0 32px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text-3); text-decoration: none; margin-bottom: 24px; transition: color .15s; }
.back:hover { color: var(--text); }
.ch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ch-id { display: flex; gap: 20px; align-items: center; min-width: 0; }
.ch-id .coin-img { width: 72px; height: 72px; border-radius: 14px; }
.ch-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ch-title h1 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 550; letter-spacing: -.03em; line-height: 1.1; overflow-wrap: anywhere; }
.ch-sym { font-family: var(--mono); font-size: 15px; color: var(--text-3); }
.ch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; font-size: 14px; color: var(--text-3); }
.ch-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.ch-meta a { color: var(--text-2); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ch-meta a:hover { color: var(--text); }
.ch-meta .av { border-radius: 5px; }
.addr { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.addr .btn-icon { width: 26px; height: 26px; border-radius: 6px; border-color: transparent; color: var(--text-3); }
.addr .btn-icon:hover:not(:disabled) { border-color: var(--line-2); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; font-weight: 500; font-size: 13.5px; color: var(--text-2); border: 1px solid var(--line-2); }
.status-pill.is-live { color: var(--text); }
.status-pill.is-grad { color: var(--text-2); }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.kpis div { display: flex; flex-direction: column-reverse; gap: 4px; min-width: 0; }
.kpis dt { font-size: 13px; color: var(--text-3); }
.kpis dd { font-size: clamp(17px, 1.7vw, 21px); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.pos, .kpis dd .pos { color: var(--acid); }
.neg, .kpis dd .neg { color: var(--rust); }
.coin-grid-2, .agent-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.col-main, .col-side { min-width: 0; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; margin-bottom: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.notice b { color: var(--text); font-weight: 600; }
.notice > .i { color: var(--text-3); margin-top: 1px; }
.notice a, .lf-hint a { color: var(--text); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.chart { position: relative; height: 380px; }
.chart-legend { position: absolute; z-index: 3; top: 4px; left: 4px; right: 72px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--text-3); pointer-events: none; }
.chart-legend b { font-weight: 500; }
.chart-legend .is-up { color: var(--acid); }
.chart-legend .is-down { color: var(--rust); }
.chart-empty { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; margin: 0; font-size: 13px; color: var(--text-3); pointer-events: none; }
.tf-bar { display: flex; flex-wrap: wrap; gap: 2px; margin: -4px 0 12px; }
.tf { height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text-3); font: 500 12px var(--mono); transition: color .15s, background-color .15s; }
.tf:hover { color: var(--text); }
.tf[aria-pressed="true"] { background: var(--surface-2); border-color: var(--line-2); color: var(--text); }
.mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin-top: 20px; }
.mini-stats div { display: flex; flex-direction: column-reverse; gap: 2px; min-width: 0; }
.mini-stats .span-2 { grid-column: span 2; padding-top: 16px; border-top: 1px solid var(--line); }
.mini-stats dt { font-size: 13px; color: var(--text-3); }
.mini-stats dd { font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grad-box { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.grad-box p { font-size: 14px; color: var(--text-2); margin-bottom: 12px; }
.grad-box .fine { margin: 12px 0 0; }
.grad-box .btn { width: 100%; }
.holders { display: flex; flex-direction: column; }
.holder { display: grid; grid-template-columns: 16px 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.holders li:first-child .holder { border-top: 0; padding-top: 2px; }
.holder-rank { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.holder .av { width: 28px; height: 28px; border-radius: 7px; }
.holder-name { font-weight: 500; font-size: 14px; text-decoration: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.holder-name:hover { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.cap-bar { position: relative; height: 3px; border-radius: 2px; background: var(--line-2); margin-top: 7px; overflow: hidden; }
.cap-bar i { position: absolute; inset: 0 auto 0 0; background: var(--text-3); border-radius: 2px; }
.cap-bar.is-max i { background: var(--text-2); }
.holder-pct { text-align: right; font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.holder-pct small { display: block; font-size: 11.5px; color: var(--text-3); }
.tag-cap { height: 18px; margin-left: 6px; padding: 0 6px; font-size: 11.5px; color: var(--text-3); }

/* ---------- agents leaderboard ---------- */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.pod { position: relative; display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; min-width: 0; transition: border-color .15s; }
.pod:hover { border-color: var(--line-2); }
.pod-n { position: absolute; right: 18px; top: 16px; font-family: var(--mono); font-size: 12px; color: var(--text-3); pointer-events: none; }
.pod .av { width: 56px; height: 56px; border-radius: 12px; }
.pod-body { min-width: 0; }
.pod-label { font-size: 13px; color: var(--text-3); }
.pod-name { font-weight: 600; font-size: 17px; letter-spacing: -.01em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod-stat { font-family: var(--mono); font-size: 13px; color: var(--text-2); margin-top: 4px; }
.pod-stat b { font-weight: 450; color: var(--text); }
.board-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.board { width: 100%; border-collapse: collapse; }
.board th { text-align: left; font-size: 13px; font-weight: 500; color: var(--text-3); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.board th.num { text-align: right; }
.board td { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.board tr:first-child td { border-top: 0; }
.board tbody tr:hover { background: var(--surface-2); }
.board tr.is-followed .agent-cell b::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 6px; vertical-align: 3px; border-radius: 50%; background: var(--text-2); }
.c-rank { width: 56px; }
.c-act { width: 130px; text-align: right; }
.rank { font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.rank.top { color: var(--text); }
.agent-cell { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.agent-cell .av { width: 36px; height: 36px; }
.agent-cell b { display: block; font-weight: 500; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-cell:hover b { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.agent-cell small { display: block; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.agent-cell .tag { margin-left: 6px; height: 20px; }
.board-more { display: flex; justify-content: center; margin-top: 24px; }

/* ---------- agent profile ---------- */
.ah-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.ah-av { width: 96px; height: 96px; border-radius: 20px; background: var(--surface-2); }
.ah-main { flex: 1; min-width: 220px; }
.ah-main h1 { margin-top: 6px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 550; letter-spacing: -.03em; line-height: 1.1; overflow-wrap: anywhere; }
.ah-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; font-size: 14px; color: var(--text-3); }
.ah-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ah-actions .btn-follow { height: 40px; padding: 0 16px; font-size: 14.5px; }
.ah-followers { font-size: 13px; color: var(--text-3); }
.ah-followers b { color: var(--text); font-family: var(--mono); font-weight: 450; }
.kpis-agent { grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0 0 40px; padding: 0 0 24px; border-top: 0; border-bottom: 1px solid var(--line); }
.positions { display: flex; flex-direction: column; }
.position { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }
.positions li:first-child .position { border-top: 0; padding-top: 2px; }
.position .coin-img { width: 32px; height: 32px; border-radius: 8px; }
.position b { font-weight: 500; font-size: 14px; }
.position:hover b { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.position small { display: block; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.position .tag { height: 18px; padding: 0 6px; font-size: 11.5px; }
.position-r { text-align: right; font-family: var(--mono); font-size: 13px; }
.position-r small { font-family: var(--font); }

/* ---------- docs ---------- */
.docs-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 64px; align-items: start; }
.toc { position: sticky; top: calc(var(--hh) + 24px); }
.toc-h { font-size: 13px; font-weight: 500; color: var(--text-3); margin-bottom: 12px; }
.toc a { display: block; padding: 5px 0 5px 12px; border-left: 1px solid var(--line); font-size: 14px; color: var(--text-2); text-decoration: none; transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--text); border-left-color: var(--text-3); }
.prose { max-width: 720px; min-width: 0; }
.prose h2 { font-size: clamp(22px, 2vw, 26px); font-weight: 550; letter-spacing: -.025em; line-height: 1.2; margin: 56px 0 16px; scroll-margin-top: calc(var(--hh) + 24px); }
.prose p, .prose li { color: var(--text-2); font-size: 16px; line-height: 1.7; }
.prose p + p { margin-top: 14px; }
.prose b { color: var(--text); }
.prose a { color: var(--text); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--text-2); }
.prose code { color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-size: .84em; }
.prose ul, .prose ol { margin: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.prose ul li { position: relative; padding-left: 20px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .75em; width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }
.prose ol { counter-reset: s; }
.prose ol li { position: relative; padding-left: 28px; counter-increment: s; }
.prose ol li::before { content: counter(s) "."; position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: 14px; color: var(--text-3); line-height: 1.9; }
.code { position: relative; margin: 14px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.code pre { margin: 0; padding: 14px 56px 14px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.55; }
.code pre code { color: var(--text); background: none; border: 0; padding: 0; font-size: inherit; }
.code pre code::before { content: "$ "; color: var(--text-3); }
.code-copy { position: absolute; top: 8px; right: 8px; }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 15px; line-height: 1.6; }
.callout b { color: var(--text); }
.callout > .i { color: var(--text-3); margin-top: 2px; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.doc-table th { text-align: left; font-size: 13px; font-weight: 500; color: var(--text-3); padding: 12px 16px; background: var(--surface); }
.doc-table td { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--text-2); }
.doc-table td code { white-space: nowrap; }
.doc-table .num { text-align: right; }
.doc-table th.num { text-align: right; }
details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-top: 8px; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 500; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; border-radius: var(--radius-sm); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--text-3); font-size: 16px; line-height: 1.4; }
details[open] summary::after { content: "−"; }
details p { padding: 0 16px 16px; }

/* ---------- rewards badge, fee splits (coin cards, coin page, launch) ---------- */
.tag-reward { color: var(--text-2); }
.tag-reward .i { color: var(--text-3); }
.cc-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.cc-wallet { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: var(--surface-2); color: var(--text-3); flex: none; }
.after-lede { font-size: 14px; color: var(--text-2); }
.after-lede b { color: var(--text); font-weight: 500; }
.split-bar { display: flex; gap: 2px; height: 6px; margin: 16px 0 12px; border-radius: 3px; overflow: hidden; }
.split-bar i { min-width: 4px; }
.seg-holders { background: var(--acid); }
.seg-creator { background: var(--text); }
.seg-platform { background: var(--text-3); }
.seg-meteora { background: var(--line-2); }
.split-list { display: flex; flex-direction: column; }
.split-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.split-row:first-child { border-top: 0; }
.split-row dt { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500; }
.split-row dt small { font-weight: 400; color: var(--text-3); font-size: 12.5px; }
.split-row dd { color: var(--text); }
.split-dot { width: 8px; height: 8px; border-radius: 2px; flex: none; }

/* ---------- launch ---------- */
.notice-devnet, .notice-error { margin: 24px 0 0; max-width: 720px; }
.notice-error { border-color: rgba(255, 106, 43, .45); }
.notice-error > .i { color: var(--rust); }
.notice-quiet { margin: 16px 0 0; background: var(--bg); }
.launch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.launch-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.launch-form .panel + .panel { margin-top: 0; }
.launch-side { position: sticky; top: calc(var(--hh) + 24px); }
.lf-step { margin: 0; min-width: 0; padding: 28px; }
.lf-step:disabled { opacity: .7; }
.lf-legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 24px; padding: 0; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.lf-legend + * { clear: both; }
.lf-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text-2); font-family: var(--mono); font-size: 12px; font-weight: 450; }
.lf-coin { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 24px; align-items: start; }
.lf-fields { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lf-row { display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 16px; }
.lf-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lf-label { font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.lf-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lf-out { font-size: 14px; color: var(--text); }
.lf-opt { font-size: 12.5px; font-weight: 400; color: var(--text-3); margin-left: 4px; }
.lf-hint { font-size: 13px; color: var(--text-3); line-height: 1.5; }
.lf-hint.is-bad { color: var(--rust); }
.lf-hint-top { margin-bottom: 12px; }
.input { width: 100%; min-height: 42px; padding: 9px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font-size: 15px; outline: none; transition: border-color .15s; }
textarea.input { resize: vertical; min-height: 88px; line-height: 1.5; font-family: var(--font); }
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: #3D4337; }
.input:focus-visible, .input:focus { border-color: var(--acid); box-shadow: 0 0 0 1px var(--acid); }
.input[aria-invalid="true"] { border-color: var(--rust); box-shadow: 0 0 0 1px var(--rust); }
.input:disabled { opacity: .6; }
.input-affix { position: relative; display: flex; align-items: center; }
.input-affix > span { position: absolute; left: 12px; font-family: var(--mono); color: var(--text-3); pointer-events: none; }
.input-affix .input { padding-left: 26px; }
.input-affix-r > span { left: auto; right: 12px; font-size: 13px; }
.input-affix-r .input { padding-left: 12px; padding-right: 52px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.drop { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: 100%; border-radius: var(--radius); border: 1px dashed var(--line-2); background: var(--bg); cursor: pointer; overflow: hidden; text-align: center; transition: border-color .15s; }
.drop:hover, .drop.is-over { border-color: var(--text-3); }
.drop.is-over { background: var(--surface-2); }
.file-input:focus-visible + .drop { outline: 2px solid var(--acid); outline-offset: 2px; }
.file-input[aria-invalid="true"] + .drop { border-color: var(--rust); }
.drop.has-image { border-style: solid; border-color: var(--line); }
.drop-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; color: var(--text-3); }
.drop-empty .i { width: 22px; height: 22px; color: var(--text-3); margin-bottom: 2px; }
.drop-empty b { color: var(--text); font-size: 14px; font-weight: 500; }
.drop-empty small { font-size: 12px; line-height: 1.4; }
fieldset:disabled .drop { cursor: not-allowed; }
.lf-links { margin-top: 24px; background: transparent; }
.lf-links summary { font-size: 14.5px; justify-content: flex-start; align-items: center; }
.lf-links summary::after { margin-left: auto; }
.lf-links-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 16px; }
.lf-links > .lf-hint { padding: 12px 16px 16px; }
.type-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.type-card { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); cursor: pointer; transition: border-color .15s; }
.type-card:hover { border-color: var(--text-3); }
.type-card input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border-radius: 50%; border: 1px solid var(--text-3); background: transparent; display: grid; place-items: center; }
.type-card input::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bg); transform: scale(0); transition: transform .12s; }
.type-card input:checked { border-color: var(--text); background: var(--text); }
.type-card input:checked::after { transform: scale(1); }
.type-card input:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }
.type-card:has(input:checked) { border-color: var(--text-2); background: var(--surface-2); }
.type-card:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.type-body { display: flex; flex-direction: column; gap: 4px; }
.type-body b { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--text); }
.type-body b .i { color: var(--text-3); }
.type-body small { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
[data-tiers-note] { margin-top: 12px; }
.rewards-opts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 32px; margin-top: 16px; padding: 20px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.tier-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: transparent; }
.tier { position: relative; }
.tier input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tier span { display: inline-grid; place-items: center; min-width: 56px; height: 34px; padding: 0 12px; border-radius: 7px; font-family: var(--mono); font-size: 13.5px; color: var(--text-2); border: 1px solid transparent; }
.tier input:checked + span { background: var(--surface-2); border-color: var(--line-2); color: var(--text); }
.tier input:hover:not(:checked) + span { color: var(--text); }
.tier input:focus-visible + span { outline: 2px solid var(--acid); outline-offset: 2px; }
.range { --fill: 50%; width: 100%; height: 24px; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--text-2) var(--fill), var(--line-2) var(--fill)); }
.range::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--text-2) var(--fill), var(--line-2) var(--fill)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--text); border: 0; }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--text); border: 0; }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--acid); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--acid); }
.split { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.split-h { font-size: 14px; color: var(--text-2); }
.split-h b { color: var(--text); font-family: var(--mono); font-weight: 450; }
.wallet-ic { width: 28px; height: 28px; border-radius: 8px; flex: none; }
/* wallet dialog */
dialog.modal { border: 0; padding: 0; background: transparent; color: var(--text); width: calc(100vw - 32px); max-width: 420px; max-height: calc(100dvh - 32px); overflow: visible; }
dialog.modal::backdrop { background: rgba(5, 6, 4, .66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.modal[open] .modal-card { animation: modal-in .28s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px; max-height: calc(100dvh - 32px); overflow: auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.modal-sub { margin: 8px 0 16px; color: var(--text-2); font-size: 14px; }
.modal-foot { margin: 14px 0 0; font-size: 13px; color: var(--text-3); }
.wallet-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wallet-opt { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); text-align: left; text-decoration: none; font: inherit; cursor: pointer; transition: border-color .15s, background-color .15s; }
.wallet-opt:hover, .wallet-opt:focus-visible { border-color: var(--acid); background: var(--surface-2); }
.wallet-opt img, .wallet-blank { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.wallet-blank { display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); }
.wo-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wo-name b { font-weight: 600; font-size: 15px; }
.wo-name small { font-size: 12.5px; color: var(--text-3); }
.wo-act { font-size: 13px; font-weight: 500; color: var(--acid); white-space: nowrap; }
.wallet-opt.is-missing .wo-act { color: var(--text-3); }
.wallet-opt.is-busy { opacity: .7; cursor: progress; }
.wallet-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); flex-wrap: wrap; }
.wallet-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); flex: none; }
.wallet-id { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.wallet-id > b { font-weight: 600; }
.wallet-agent { flex-basis: 100%; font-size: 13px; color: var(--text-3); }
.wallet-agent b { color: var(--text); font-weight: 500; }
.wallet-agent .i { display: inline-block; vertical-align: -2px; margin-right: 6px; color: var(--text-3); }
.first-buy { margin-top: 16px; max-width: 320px; }
.lf-submit { display: flex; flex-direction: column; gap: 12px; padding: 24px 28px; }
.btn-launch { width: 100%; min-height: 48px; font-size: 15.5px; }
.lf-status { font-size: 14px; font-weight: 500; color: var(--text); }
.lf-status:empty { display: none; }
.steps { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.step { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; font-size: 14px; color: var(--text-3); }
.step-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 11px; flex: none; }
.step-label { padding-top: 1px; }
.step-label small { display: inline; font-size: 12.5px; color: var(--text-3); }
.step.is-active { color: var(--text); font-weight: 500; }
.step.is-active .step-ic { border-color: var(--text-3); }
.step.is-done, .step.is-skip { color: var(--text-2); }
.step.is-done .step-ic { border-color: var(--line-2); color: var(--acid); }
.step.is-skip .step-ic { color: var(--text-3); }
.step.is-error { color: var(--rust); font-weight: 500; }
.step.is-error .step-ic { border-color: var(--rust); color: var(--rust); }
.spin { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--text-2); border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-error { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 106, 43, .45); background: var(--bg); color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.form-error .i { color: var(--rust); margin-top: 2px; }
.success { padding: 20px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); }
.success:focus { outline: none; }
.success:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }
.success-head { display: flex; gap: 12px; align-items: flex-start; }
.success-head > .i { width: 22px; height: 22px; color: var(--acid); margin-top: 2px; }
.success-head b { display: block; font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.success p { margin-top: 12px; font-size: 14px; color: var(--text-2); }
.success p a { color: var(--text); text-underline-offset: 3px; }
.success .cta-row { margin-top: 16px; }
.success-warn { color: var(--rust) !important; }
.coin-card.is-preview { background: var(--bg); padding: 18px; }
.coin-card.is-preview:hover { border-color: var(--line); }
.coin-img-empty { display: grid; place-items: center; width: 48px; height: 48px; border: 1px dashed var(--line-2); color: var(--text-3); }
.side-steps { display: flex; flex-direction: column; gap: 14px; counter-reset: s; }
.side-steps li { position: relative; padding-left: 28px; font-size: 14px; color: var(--text-2); line-height: 1.55; counter-increment: s; }
.side-steps li::before { content: counter(s) "."; position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: 13px; color: var(--text-3); line-height: 1.7; }
.side-steps b { color: var(--text); font-weight: 500; }

/* ---------- 404 ---------- */
.ko { padding: 120px 0 128px; }
.ko-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; align-items: center; }
.ko-art img { width: 160px; height: 160px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .logo-mark { width: 22px; height: 22px; }
.footer-brand .wm { font-size: 20px; }
.footer-tag { font-size: 15px; font-weight: 500; color: var(--text); margin-top: 20px; }
.footer-small { font-size: 14px; color: var(--text-3); margin-top: 8px; max-width: 340px; line-height: 1.6; }
.footer-h { font-size: 13px; font-weight: 500; color: var(--text-3); margin-bottom: 12px; }
.site-footer ul a { display: inline-block; padding: 4px 0; font-size: 14.5px; color: var(--text-2); text-decoration: none; transition: color .15s; }
.site-footer ul a:hover { color: var(--text); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-3); }
.footer-bottom b { color: var(--text-2); font-weight: 500; }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 360px; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font-size: 14px; text-decoration: none; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); animation: toast-in .25s var(--ease); transition: opacity .3s, transform .3s; }
.toast .i { color: var(--text-3); }
.toast b { font-weight: 600; }
.toast.is-out { opacity: 0; transform: translateY(6px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .kpis-agent { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  :root { --gutter: 24px; }
  .feed-grid, .coin-grid-2, .agent-grid, .launch-grid { grid-template-columns: minmax(0, 1fr); }
  .launch-side { position: static; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 40px; }
  .editorial { grid-template-columns: minmax(0, 1fr); }
  .editorial .section-head { margin-bottom: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; }
  .toc ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .toc a { border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; font-size: 13.5px; }
  .hide-md { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; padding: 8px var(--gutter) 16px; gap: 0; }
  .nav-list a { padding: 12px 0; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-list li:last-child a { border-bottom: 0; }
  .header-row { position: static; }
  .podium { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --hh: 60px; }
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-h1 { font-size: clamp(36px, 10.5vw, 42px); }
  .hero .lede { font-size: 16.5px; margin-top: 20px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; margin-top: 40px; }
  .hero-bot { max-width: 260px; }
  .page-head { padding: 48px 0 24px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 24px 0 64px; }
  .round { grid-template-columns: 40px minmax(0, 1fr); padding: 20px 0; }
  .round p { grid-column: 2; }
  .rule { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 20px 0; }
  .ko { padding: 64px 0 80px; }
  .ko-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ko-art img { width: 96px; height: 96px; }
  .chart { height: 320px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis-agent { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ah-actions { flex-direction: row; flex-wrap: wrap; width: 100%; align-items: center; gap: 12px; }
  .ah-av { width: 72px; height: 72px; border-radius: 16px; }
  .lf-step { padding: 20px; }
  .lf-submit { padding: 20px; }
  .token-ca { padding: 10px 12px; }
  .token-ca-addr { font-size: 11.5px; word-break: normal; overflow-wrap: anywhere; }
  dialog.modal { margin: auto 0 0; width: 100vw; max-width: 100vw; max-height: 92dvh; }
  .modal-card { border-radius: 18px 18px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
  .lf-coin { grid-template-columns: minmax(0, 1fr); }
  .lf-image { max-width: 200px; }
  .lf-links-grid { grid-template-columns: minmax(0, 1fr); }
  .rewards-opts { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  /* leaderboard rows become cards */
  .board thead { display: none; }
  .board, .board tbody { display: block; }
  .board tr { display: grid; grid-template-columns: 28px repeat(4, minmax(0, 1fr)); gap: 12px 8px; padding: 16px; border-top: 1px solid var(--line); align-items: center; }
  .board tr:first-child { border-top: 0; }
  .board td { padding: 0; border: 0; min-width: 0; }
  .board td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .board td:nth-child(2) { grid-column: 2 / 5; grid-row: 1; }
  .board td:nth-child(8) { grid-column: 5; grid-row: 1; width: auto; justify-self: end; }
  .board td.stat { grid-row: 2; display: flex; flex-direction: column; text-align: left; font-size: 13.5px; }
  .board td.stat::before { content: attr(data-label); font-family: var(--font); font-size: 12px; color: var(--text-3); }
  .board td:nth-child(3) { grid-column: 2; }
  .board td:nth-child(4) { grid-column: 3; }
  .board td:nth-child(5) { grid-column: 4; }
  .board td:nth-child(7) { grid-column: 5; }
  .hide-md { display: none; }
}
@media (max-width: 560px) {
  .header-row { gap: 12px; }
  .demo-badge { height: 28px; padding: 0 10px; font-size: 12px; gap: 6px; }
  .demo-sep, .demo-sub { display: none; }
  .tape-label { padding-left: var(--gutter); }
  .trade { grid-template-columns: 32px minmax(0, 1fr); gap: 6px 12px; }
  .page-coin .trade, .page-agent .trade { grid-template-columns: minmax(0, 1fr); }
  .page-coin .trade:has(.t-av), .page-agent .trade:has(.t-av) { grid-template-columns: 32px minmax(0, 1fr); }
  .t-av .av { width: 32px; height: 32px; border-radius: 8px; }
  .t-meta { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; padding-top: 0; }
  .trade:has(.t-av) .t-meta { grid-column: 2 / -1; }
  .panel { padding: 20px 16px; }
  .toolbar-right, .search { width: 100%; }
  .search input { width: 100%; }
  .select { flex: 1; }
  .select select { width: 100%; }
  .tabs { width: 100%; }
  .tab { height: 34px; padding: 0 11px; font-size: 13.5px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toasts { left: 12px; right: 12px; bottom: 12px; align-items: stretch; }
  .toast { max-width: none; }
  .ch-id { gap: 16px; }
  .ch-id .coin-img { width: 56px; height: 56px; border-radius: 12px; }
  .lf-row { grid-template-columns: minmax(0, 1fr); }
  .type-cards { grid-template-columns: minmax(0, 1fr); }
  .tier span { min-width: 0; padding: 0 14px; }
  .first-buy { max-width: none; }
  .success .cta-row .btn { width: 100%; }
  .cta-row .btn { flex: 1 1 auto; }
}
@media (max-width: 400px) {
  .header-row { gap: 8px; }
  .logo-mark { width: 22px; height: 22px; }
  .wm { font-size: 20px; }
  .nav-toggle { width: 36px; height: 36px; }
  .hero-stats dd { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .tape-track { animation: none !important; }
  .tape-view { overflow-x: auto; }
  .skel { animation: none !important; }
}
