/* Shork — neutral dark surfaces, a standalone white mark, and a restrained coral launch action. */

:root {
  color-scheme: dark;
  /* Surfaces, darkest to lightest. Nothing else paints a grey background. */
  --bg: #090909;
  --surface: #111111;   /* panels, cards */
  --raised: #1a1a1a;    /* inputs, chips, hover */
  --selected: #262626;  /* pressed, selected */
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  /* Text: primary and one muted grey. */
  --ink: #f2f2f2;
  --muted: #999999;
  /* Aliases kept so older rules resolve to the same small set. */
  --line-3: var(--line-2);
  --fill-1: var(--raised);
  --fill-2: var(--raised);
  --fill-3: var(--selected);
  --well: var(--raised);
  --panel: var(--surface);
  --ink-2: var(--muted);
  --ink-3: var(--muted);
  --ink-4: rgba(255, 255, 255, 0.2); /* decoration only, never text */
  --up: #30d158;
  --down: #ff453a;
  --down-text: #ff6961;
  --warn: #ffd60a;
  --brand-coral: #ff8976;
  --accent: #f2f2f2;
  --accent-ink: #111111;
  --up-bg: rgba(48, 209, 88, 0.12);
  --down-bg: rgba(255, 69, 58, 0.12);
  --accent-bg: var(--raised);
  --r-xl: 24px;
  --r-lg: 20px;
  --r-md: 16px;
  --r-sm: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --page: 1320px;
  --gutter: 24px;
  --spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.9);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html.has-modal { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 14px; line-height: 1.45; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; }
h1, h2, h3 { font-weight: 700; }
::selection { background: rgba(255, 255, 255, 0.45); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tabular, .num, [data-bind] { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: -0.01em; }
.up { color: var(--up); }
.down { color: var(--down-text); }
.flat { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.move { display: inline-flex; align-items: center; gap: 3px; color: var(--ink-2); white-space: nowrap; }
.tri { flex: none; }
.icon { flex: none; }
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.16) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }

/* Main page layers. */
.view, .site-footer { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 40; padding: 10px var(--gutter) 0; }
.topbar-inner {
  position: relative; max-width: var(--page); margin: 0 auto; height: 60px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 0 10px 0 14px;
  border-radius: 20px; background: rgba(17, 17, 17, 0.88);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--line); box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.9);
}
.brand { display: inline-flex; align-items: center; justify-content: center; justify-self: start; width: 44px; height: 44px; }
.brand-mark { flex: none; display: block; object-fit: contain; }
.top-actions { display: flex; align-items: center; gap: 8px; justify-self: end; min-width: 0; }
.search-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: var(--fill-1); border: 1px solid var(--line); color: var(--ink-3); font: 500 13.5px var(--font);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.search-btn { padding: 0 7px 0 14px; }
.icon-btn.top-search { display: none; }
.search-btn:hover { background: var(--selected); color: var(--ink); }
.wallet-wrap { position: relative; }
.wallet-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 5px; border-radius: 999px; cursor: pointer;
  background: var(--raised); border: 1px solid var(--line); color: var(--ink); font: 500 13px var(--mono);
  transition: background 0.2s;
}
.wallet-btn:hover { background: var(--selected); }
.wallet-btn .icon { color: var(--ink-3); }
.wallet-connect .icon { margin-left: -2px; }

/* Live status dot */
.live-dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); display: inline-block; }
.live-dot.is-live { background: var(--up); animation: livePulse 2.2s ease-out infinite; }
.live-dot.is-snap { background: var(--warn); }
.live-dot.is-wait { background: var(--ink-3); animation: blink 1.1s ease-in-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.55); } 70% { box-shadow: 0 0 0 7px rgba(48, 209, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); } }
@keyframes blink { 50% { opacity: 0.35; } }

/* ---------- Controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  font: 600 14px/1 var(--font); letter-spacing: -0.005em; color: var(--ink); background: var(--fill-2);
  transition: transform 0.35s var(--spring), background 0.2s, border-color 0.2s, box-shadow 0.25s, color 0.2s;
}
.btn:active:not(:disabled) { transform: scale(0.96); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: #fff; }
.hero-ctas .btn-primary, .create-submit .btn-primary { background: var(--brand-coral); }
.hero-ctas .btn-primary:hover:not(:disabled), .create-submit .btn-primary:hover:not(:disabled) { background: #ff9e8e; }
.btn-glass { background: var(--raised); color: var(--ink); }
.btn-glass:hover:not(:disabled) { background: var(--selected); }
.btn:not(.btn-primary):not(.btn-ghost):hover:not(:disabled) { background: var(--selected); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--fill-1); color: var(--ink); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-xs { height: 30px; padding: 0 12px; font-size: 12.5px; gap: 5px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid transparent; color: var(--ink-2); transition: background 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--raised); color: var(--ink); }
.icon-btn.bare { width: 34px; height: 34px; }
.icon-btn.glass-icon { width: 32px; height: 32px; background: var(--raised); }
.icon-btn.glass-icon:hover { background: var(--selected); }
.icon-btn.glass-icon[aria-pressed="true"] { background: var(--fill-3); color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); font: 600 13px var(--font); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
kbd {
  display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 7px; white-space: nowrap;
  background: var(--selected); border: 0; font: 600 11px/1 var(--font); color: var(--muted);
}

/* Segmented controls: raised track, selected thumb. */
.seg {
  position: relative; display: inline-flex; align-items: center; gap: 2px; padding: 3px; max-width: 100%;
  border-radius: 999px; background: var(--raised); border: 0;
}
.seg > button, .seg > a {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; white-space: nowrap;
  color: var(--ink-3); font: 600 13px/1 var(--font); transition: color 0.2s, background 0.25s, box-shadow 0.25s;
}
.seg > button:hover, .seg > a:hover { color: var(--ink); }
.seg > [aria-pressed="true"] { color: var(--ink); background: var(--selected); }
.seg .count { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.seg-sm > button { height: 30px; padding: 0 12px; font-size: 12.5px; }
.seg-fill { display: flex; width: 100%; }
.seg-fill > button { flex: 1; height: 38px; font-size: 14px; }
.seg-scroll { overflow-x: auto; scrollbar-width: none; }
.seg-scroll::-webkit-scrollbar { display: none; }
.nav-seg { justify-self: center; gap: 4px; padding: 0; background: none; border: 0; }
.nav-seg > a { height: 36px; padding: 0 16px; font-size: 14px; color: var(--ink-3); }
.nav-seg > a[aria-current="page"] { color: var(--ink); }
.nav-seg .seg-thumb { top: 0; bottom: 0; }
.seg-thumb {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 999px; opacity: 0;
  background: var(--fill-3);
  transition: transform 0.55s var(--spring), width 0.55s var(--spring), opacity 0.2s;
}
.seg-thumb.no-anim { transition: none; }

.badge { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font: 500 13px/1 var(--font); color: var(--muted); }
.badge .icon { color: var(--muted); }
.badge-up .icon { color: var(--up); }
.badge-down .icon { color: var(--down-text); }
.state-text { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.state-text::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.state-text.badge-up::before { background: var(--up); }
.state-text.badge-down::before { background: var(--down-text); }
.tag {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; white-space: nowrap;
  font: 500 11.5px/1 var(--font); background: var(--raised); color: var(--muted);
}
.chip-sim { display: inline-flex; align-items: center; gap: 3px; font: 500 12px/1 var(--font); color: var(--muted); white-space: nowrap; }
.k { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }

.meter { display: block; height: 4px; border-radius: 99px; background: var(--selected); overflow: hidden; margin-top: 7px; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width 0.6s var(--ease); }
.meter.lg { height: 6px; margin-top: 14px; }

.spinner { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Live values flash when they change */
.flash-up { animation: flashUp 0.9s ease-out; }
.flash-down { animation: flashDown 0.9s ease-out; }
@keyframes flashUp { 0%, 20% { color: var(--up); } }
@keyframes flashDown { 0%, 20% { color: var(--down-text); } }

/* Stock logos and coin art */
.logo {
  --s: 28px; width: var(--s); height: var(--s); flex: none; display: inline-grid; place-items: center;
  border-radius: calc(var(--s) * 0.27); background: var(--raised); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.logo svg { width: 60%; height: 60%; overflow: visible; display: block; }
.logo-mono { font: 700 calc(var(--s) * 0.28) / 1 var(--font); color: var(--ink-3); letter-spacing: -0.02em; }
.art {
  --s: 44px; position: relative; width: var(--s); height: var(--s); flex: none; overflow: hidden;
  border-radius: calc(var(--s) * 0.27); background: var(--raised);
}
.art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.art::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); pointer-events: none; }
.persona-dot {
  --d: 28px; width: var(--d); height: var(--d); flex: none; border-radius: 50%; display: inline-block;
  background: #777;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ---------- Layout ---------- */
.view { min-height: 60vh; }
.view.enter { animation: viewIn 0.5s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }
.page { max-width: var(--page); margin: 0 auto; padding: 28px var(--gutter) 72px; }
.boot { min-height: 62vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--ink-3); font-size: 13px; }
.boot .brand-mark { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(0.9); opacity: 0.7; } }
.backlink { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--ink-3); transition: color 0.2s; }
.backlink:hover { color: var(--ink); }
.page-head { margin: 10px 0 26px; }
.page-title { font-size: clamp(34px, 4.4vw, 48px); line-height: 1.02; font-weight: 750; letter-spacing: -0.045em; margin: 0 0 10px; }
.page-sub { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 700px; margin: 0; }
.section-title { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; margin: 0; }

/* Panels */
.panel, .glass-panel { position: relative; border-radius: var(--r-lg); min-width: 0; background: var(--surface); border: 1px solid var(--line); }
.panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding: 16px 18px 0; }
.panel-title { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; letter-spacing: -0.015em; }
.panel-title .icon { color: var(--ink-3); }
.panel-aside { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 12.5px; color: var(--ink-3); }
.panel-aside b { color: var(--ink); }
.panel-body { padding: 14px 18px 18px; }
.panel-note { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.panel-note.pad { padding: 0 18px 18px; }
.divider { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.note { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.note .icon { margin-top: 1px; color: var(--ink-3); }

/* ---------- Explore: hero ---------- */
.hero {
  max-width: var(--page); margin: 0 auto; padding: 60px var(--gutter) 48px;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; align-items: center;
}
.hero-title {
  margin: 0 0 18px; font-size: clamp(42px, 5.8vw, 76px); line-height: 0.97; font-weight: 750; letter-spacing: -0.05em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-sub { margin: 0; max-width: 540px; font-size: 17px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.hero-stats { display: flex; gap: 20px; margin: 34px 0 0; }
.hero-stats > div + div { padding-left: 20px; border-left: 1px solid var(--line-2); }
.hero-stats dt { font-size: 12px; font-weight: 400; color: var(--ink-3); margin-bottom: 7px; }
.hero-stats dd { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.hero-stage { display: grid; justify-items: center; gap: 22px; min-width: 0; }
.stack { position: relative; width: min(100%, 450px); }

/* Featured coin card and the grid cards: one flat surface each. */
.fcard, .tcard { position: relative; background: var(--surface); border: 1px solid var(--line); }
.fcard {
  display: grid; gap: 16px; padding: 22px; border-radius: var(--r-xl); box-shadow: var(--shadow);
  animation: cardIn 0.5s var(--ease); transition: opacity 0.18s, transform 0.18s, border-color 0.2s;
}
.fcard:hover { border-color: var(--line-2); }
.fcard.leaving { opacity: 0; transform: translateY(8px); }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } }
.fcard-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.fcard-id { min-width: 0; }
.fcard-id b { display: block; font-size: 21px; font-weight: 750; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard-id span { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.fcard-go {
  margin-left: auto; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px;
  background: var(--raised); color: var(--muted); transition: transform 0.4s var(--spring), background 0.2s, color 0.2s;
}
.fcard:hover .fcard-go { transform: rotate(45deg); background: var(--selected); color: var(--ink); }
.fcard-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.fcard-price b { font-size: 42px; font-weight: 750; letter-spacing: -0.045em; line-height: 1; }
.fcard-chg { font-size: 15px; font-weight: 600; }
.fcard-when { margin-left: -4px; font-size: 13px; color: var(--muted); }
.fcard-spark { height: 64px; margin: -4px -2px 0; }
.fcard-foot {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.fcard-stock-copy { min-width: 0; }
.fcard-stock-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; font-size: 14px; }
.fcard-stock-name > span { color: var(--ink-3); }
.fcard-stock-name b { font-weight: 600; }
.fcard-results { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 5px; font-size: 12px; color: var(--ink-3); }
.fcard-results > span { white-space: nowrap; }
.fcard-results b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.fcard-results b.up { color: var(--up); }
.fcard-results b.down { color: var(--down-text); }
.feature-dots { display: flex; gap: 8px; }
.feature-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; cursor: pointer; background: var(--selected); transition: width 0.45s var(--spring), background 0.2s; }
.feature-dots button[aria-pressed="true"] { width: 24px; background: var(--ink); }

/* A quiet price tape: ticker, price, change. */
.tape { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.tape-track { display: flex; width: max-content; animation: tape 180s linear infinite; }
.tape:hover .tape-track, .tape:focus-within .tape-track { animation-play-state: paused; }
.tape-group { display: flex; gap: 36px; padding: 11px 18px; }
.tape-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tape-item .art, .tape-item .logo { border-radius: 50%; }
.tape-item .art::after { display: none; }
.tape-item b { color: var(--ink); font-weight: 600; }
.tape-item .move { color: var(--muted); }
.tape-chg.flat { color: var(--muted); }
a.tape-item:hover b { text-decoration: underline; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- Explore: toolbar, grid ---------- */
.catalog-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.catalog-count { margin-left: 8px; color: var(--ink-3); font-size: 14px; font-weight: 400; letter-spacing: 0; }
.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.catalog-search { display: flex; align-items: center; gap: 10px; flex: 1 1 280px; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid transparent; border-radius: 12px; background: var(--raised); color: var(--muted); transition: border-color 0.2s; }
.catalog-search:focus-within { color: var(--ink); border-color: var(--line-2); }
.catalog-search input { flex: 1; min-width: 0; height: 40px; padding: 0 4px; background: none; border: 0; border-radius: 4px; outline: 0; color: var(--ink); font: 400 14px var(--font); }
.catalog-search input::placeholder { color: var(--ink-3); }
.catalog-search input::-webkit-search-cancel-button { filter: invert(1) opacity(0.5); }
.catalog-tools { display: flex; align-items: center; gap: 20px; min-width: 0; max-width: 100%; }
.catalog-tabs { display: flex; align-items: center; gap: 16px; max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.catalog-tabs button { flex: none; height: 40px; padding: 0 2px; border: 0; background: none; color: var(--ink-3); font: 500 13px var(--font); white-space: nowrap; cursor: pointer; }
.catalog-tabs button:hover { color: var(--ink); }
.catalog-tabs button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.catalog-tabs button:focus-visible { outline-offset: -2px; }
.catalog-sort { display: flex; position: relative; align-items: center; flex: none; color: var(--ink-2); }
.catalog-sort select { appearance: none; width: 142px; min-height: 44px; padding: 0 28px 0 14px; border: 0; border-radius: 12px; background: var(--raised); color: var(--ink); font: 500 14px var(--font); cursor: pointer; }
.catalog-sort .icon { position: absolute; right: 12px; pointer-events: none; }
.catalog-sort option { background: var(--raised); color: var(--ink); }
.catalog-views { display: flex; gap: 2px; flex: none; padding-left: 14px; border-left: 1px solid var(--line); }
.catalog-layout { display: grid; place-items: center; width: 34px; height: 36px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ink-3); cursor: pointer; }
.catalog-layout:hover { color: var(--ink); }
.catalog-layout[aria-pressed="true"] { color: var(--ink); background: var(--raised); }
.search-field {
  flex: 1 1 320px; min-width: 0; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 10px 0 16px;
  border-radius: 999px; background: var(--raised); border: 1px solid transparent; color: var(--muted); transition: border-color 0.2s;
}
.search-field:focus-within { border-color: var(--line-2); }
.search-field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font: 500 15px var(--font); }
.search-field input::placeholder { color: var(--ink-3); }
.search-field input::-webkit-search-cancel-button { filter: invert(1) opacity(0.5); }
.search-field.sm { flex: 0 1 260px; height: 40px; }
.search-field.sm input { font-size: 14px; }
.count-badge { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 8px; border-radius: 99px; background: var(--raised); font-size: 12.5px; font-weight: 650; color: var(--ink-2); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 16px; }
.tcard {
  display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--r-lg);
  transition: transform 0.4s var(--spring), border-color 0.2s, background 0.2s;
  animation: cardIn 0.45s var(--ease) both;
}
.grid .tcard:nth-child(2) { animation-delay: 0.03s; }
.grid .tcard:nth-child(3) { animation-delay: 0.06s; }
.grid .tcard:nth-child(4) { animation-delay: 0.09s; }
.grid .tcard:nth-child(n + 5) { animation-delay: 0.12s; }
.tcard:hover { transform: translateY(-2px); border-color: var(--line-2); }
.tcard-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.tcard-link:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.tcard-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tcard-id { flex: 1; min-width: 0; }
.tcard-name { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard-sub { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard-mkt { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tcard-mcap { font-size: 26px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tcard-chg { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tcard-spark { height: 40px; margin: -4px -2px 0; }
.spark-empty { height: 100%; display: grid; place-items: center; border: 1px dashed var(--line-2); border-radius: 12px; font-size: 12px; color: var(--muted); }
.tcard-foot { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.tw-target { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--muted); }
.tw-target > span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-target b { color: var(--ink); font-weight: 600; }
.tc-stats { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--muted); }
.tc-stat b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tc-stat b.up { color: var(--up); }
.tc-stat b.down { color: var(--down-text); }
.tcard.is-preview { animation: none; }

/* The short behind a coin: the stock leads, then pool, profit and payouts. */
.tshort { display: grid; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ts-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.ts-name { min-width: 0; }
.ts-name span { display: block; font-size: 12px; color: var(--muted); }
.ts-name b { display: block; margin-top: 1px; font-size: 16px; font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-move { display: grid; justify-items: end; gap: 2px; text-align: right; }
.ts-move-v { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ts-move small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.ts-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.ts-stats > div { min-width: 0; }
.ts-stats > div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.ts-stats > div:not(:first-child) { margin-left: 12px; }
.ts-stats dt { font-size: 11.5px; color: var(--muted); }
.ts-stats dd { margin: 3px 0 0; font-size: 15px; font-weight: 650; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-stats dd small { margin-left: 6px; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.ts-stats dd small.up { color: var(--up); }
.ts-stats dd small.down { color: var(--down-text); }
.fcard .tshort { padding-top: 16px; }
.fcard .ts-name b { font-size: 17px; }

.spark { display: block; overflow: visible; }
.spark .l { fill: none; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.spark.up .l { stroke: var(--up); }
.spark.down .l { stroke: var(--down); }
.spark .a { stroke: none; }
.spark.up { color: var(--up); }
.spark.down { color: var(--down); }
.fcard-spark .spark, .tcard-spark .spark { -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.spark .dot { stroke: var(--surface); stroke-width: 1.5; }
/* Card sparklines are shape only; the % change next to them carries the colour. */
.tcard-spark .spark, .fcard-spark .spark { color: #8c8c8c; }
.tcard-spark .spark .l, .fcard-spark .spark .l { stroke: #8c8c8c; stroke-width: 1.5; }
.tcard-spark .spark .a, .fcard-spark .spark .a { opacity: 0.6; }
.spark.up .dot { fill: var(--up); }
.spark.down .dot { fill: var(--down); }

.empty { display: grid; justify-items: center; gap: 8px; padding: 48px 20px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--raised); color: var(--muted); }
.empty h3 { margin: 6px 0 0; font-size: 18px; letter-spacing: -0.02em; }
.empty p { margin: 0; max-width: 470px; color: var(--ink-3); line-height: 1.55; }
.empty .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }

/* ---------- Tables ---------- */
.table-panel { overflow: hidden; }
.dtable-wrap { overflow-x: auto; }
.dtable { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.dtable th { padding: 12px 14px; text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.dtable td { padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable .num { text-align: right; }
.dtable tr[data-href] { cursor: pointer; }
.dtable tr[data-href]:hover td { background: var(--raised); }
.dtable .rank { width: 36px; color: var(--ink-3); }
.dtable .val { font-weight: 650; }
.dtable .badge + .chip-sim { margin-left: 8px; }
.coin-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.coin-cell b { display: block; font-weight: 650; }
.coin-cell small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.coin-cell:hover b { text-decoration: underline; }
.stock-cell { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.pay-table .zero { color: var(--ink-3); }
.pay-table .why { display: block; margin-top: 2px; font-size: 11px; color: var(--ink-3); }
.row-open td { background: var(--raised); }
.tx { display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--ink-2); font: 500 12px var(--mono); }
.tx:hover { color: var(--ink); }
.more-row { padding: 12px; text-align: center; border-top: 1px solid var(--line); }
.table-scroll { max-height: 400px; overflow: auto; }
.status { display: grid; gap: 4px; }
.status small { max-width: 230px; font-size: 11.5px; color: var(--ink-3); white-space: normal; }

/* ---------- Coin page ---------- */
.coin-hero { display: grid; gap: 18px; padding: 22px; }
.ch-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.art-xl { border-radius: 20px; }
.ch-titles { min-width: 0; }
.ch-name-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ch-name { margin: 0; font-size: 30px; line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.ch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.ch-meta b { color: var(--ink); font-weight: 600; }
.ch-meta > span::before { content: '·'; margin-right: 10px; }
.ca-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; cursor: pointer;
  background: var(--raised); border: 0; color: var(--muted); font: 500 12px var(--font);
}
.ca-chip:hover { background: var(--selected); color: var(--ink); }
.ch-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
/* Phones fold the links into one menu button. */
.ch-more { display: none; position: relative; margin-left: auto; }
.ch-more summary { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--raised); color: var(--muted); list-style: none; cursor: pointer; }
.ch-more summary::-webkit-details-marker { display: none; }
.ch-more[open] summary { background: var(--selected); color: var(--ink); }
.ch-more-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; display: grid; gap: 4px; min-width: 190px; padding: 6px;
  border-radius: 16px; background: var(--raised); border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.ch-more-menu .btn { justify-content: space-between; width: 100%; height: 38px; background: none; border-radius: 10px; }
.ch-more-menu .btn:hover { background: var(--selected); }
.ch-more-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ch-more-menu .btn { grid-column: 1 / -1; }
.ch-more-menu .icon-btn { width: 100%; height: 38px; border-radius: 10px; background: none; }
.ch-more-menu .icon-btn:hover { background: var(--selected); }
.ch-price { text-align: right; }
.ch-price .big { display: block; font-size: 38px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ch-price .sub { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Market stats: one row of plain figures separated by hairlines. */
.ch-strip { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.ch-strip > div { min-width: 0; padding: 0 16px; border-left: 1px solid var(--line); }
.ch-strip > div:first-child { padding-left: 0; border-left: 0; }
.ch-strip dt, .kpi-row dt, .cht-kpis dt { font-size: 12px; color: var(--muted); }
.ch-strip dd, .kpi-row dd, .cht-kpis dd { margin: 4px 0 0; font-size: 17px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Compact stat line: the short first, then market figures as quiet label/value pairs. */
.stat-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.stat-line > span { display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.stat-line em { font-style: normal; color: var(--muted); }
.stat-line b { font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-line b.up { color: var(--up); }
.stat-line b.down { color: var(--down-text); }
.sl-sep { align-self: stretch; width: 1px; background: var(--line); }
.short-pill { align-items: center !important; gap: 9px !important; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--raised); }
.short-pill .logo { border-radius: 50%; }
.short-pill b { font-weight: 650; }
.short-pill .px { color: var(--muted); font-variant-numeric: tabular-nums; }
.short-pill .px .move { color: var(--muted); }

/* The target stock: the same column grid as the stats above, so every figure lines up. */
.ch-target { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); align-items: center; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.ch-target > div { min-width: 0; padding: 0 16px; border-left: 1px solid var(--line); }
.ch-target > .cht-id { display: flex; align-items: center; gap: 12px; padding-left: 0; border-left: 0; }
.ch-target dt { font-size: 12px; color: var(--muted); }
.ch-target dd { margin: 4px 0 0; font-size: 17px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-target dd small { margin-left: 7px; font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.ch-target dd small.up { color: var(--up); }
.ch-target dd small.down { color: var(--down-text); }
.ch-target dd .dim { font-size: 15px; font-weight: 500; }
.ch-target .move { color: var(--muted); }
.cht-name { min-width: 0; }
.cht-name span { display: block; font-size: 12px; color: var(--muted); }
.cht-name b { display: block; margin-top: 2px; font-size: 17px; font-weight: 650; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.coin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; margin-top: 16px; align-items: start; }
.coin-main, .coin-rail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 16px 18px 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.chart-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px 0; }
.chart-controls-r { display: flex; align-items: center; gap: 8px; }
/* Candle colour switch: two swatches, each a half-and-half dot. */
.candle-pick > button { width: 34px; padding: 0; }
.sw { display: block; width: 14px; height: 14px; border-radius: 50%; }
.sw-shork { background: linear-gradient(90deg, #ffad67 50%, #ff2d83 50%); }
.sw-classic { background: linear-gradient(90deg, var(--up) 50%, var(--down) 50%); }
.candle-pick > button:not([aria-pressed="true"]) .sw { opacity: 0.55; }
.readout { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-height: 36px; padding: 12px 18px 4px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.readout b { color: var(--ink); font-weight: 600; }
.readout .sym { color: var(--ink); font-weight: 650; }
.readout .up { color: var(--up); }
.readout .down { color: var(--down-text); }
.readout .key i { display: inline-block; width: 10px; height: 2px; margin-right: 6px; border-radius: 2px; vertical-align: middle; }
.readout .key i.up { background: var(--up); }
.readout .key i.down { background: var(--down); }
.readout .key i.stock { background: var(--ink-2); }
.tv { position: relative; height: 390px; margin: 2px 10px 12px 14px; }
.tv-strat { height: 360px; }
.tv.is-table, .tv.is-empty { height: auto; }
.tv:focus-visible { outline-offset: 0; border-radius: 12px; }
.chart-loading { display: flex; align-items: center; justify-content: center; gap: 10px; height: 100%; color: var(--muted); font-size: 13px; animation: fadeIn 0.4s ease 0.3s both; }
@keyframes fadeIn { from { opacity: 0; } }

.chart { position: relative; min-height: 140px; padding: 6px 10px 10px 16px; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.chart-svg .grid { stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; }
.chart-svg .baseline, .chart-svg .zero { stroke: var(--line-2); stroke-width: 1; }
.chart-svg .tick { fill: var(--ink-3); font-size: 10.5px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart-svg .tick.muted { paint-order: stroke; stroke: #0c0c10; stroke-width: 4px; }
.chart-svg .panel-label { fill: var(--ink-3); font-size: 11px; font-weight: 600; font-family: var(--font); paint-order: stroke; stroke: #0c0c10; stroke-width: 4px; stroke-linejoin: round; }
.chart-svg .wick { stroke-width: 1; }
.chart-svg .wick.up, .chart-svg .body.up { stroke: var(--up); fill: var(--up); }
.chart-svg .wick.down, .chart-svg .body.down { stroke: var(--down); fill: var(--down); }
.chart-svg .body { stroke-width: 0; }
.chart-svg .vol { opacity: 0.3; }
.chart-svg .vol.up { fill: var(--up); }
.chart-svg .vol.down { fill: var(--down); }
.chart-svg .last-line { stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.7; }
.chart-svg .last-line.up { stroke: var(--up); }
.chart-svg .last-line.down { stroke: var(--down); }
.chart-svg .last-tag.up rect { fill: var(--up); }
.chart-svg .last-tag.down rect { fill: var(--down); }
.chart-svg .last-tag text { fill: #000; font-size: 10.5px; font-weight: 700; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart-svg .cross-line { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 3; }
.chart-svg .area { stroke: none; opacity: 0.16; }
.chart-svg .area.up { fill: var(--up); }
.chart-svg .area.down { fill: var(--down); }
.chart-svg .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .line.up { stroke: var(--up); }
.chart-svg .line.down { stroke: var(--down); }
.chart-svg .line.stock { stroke: var(--ink-2); stroke-width: 1.5; }
.chart-svg .end-dot, .chart-svg .cross-dot { stroke: #0c0c10; stroke-width: 2; }
.chart-svg .end-dot.up, .chart-svg .cross-dot.up { fill: var(--up); }
.chart-svg .end-dot.down, .chart-svg .cross-dot.down { fill: var(--down); }
.chart-svg .end-dot.stock, .chart-svg .cross-dot.stock { fill: var(--ink-2); }
.chart-svg .entry-line { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 4 4; opacity: 0.85; }
.chart-svg .entry-label { fill: var(--accent); font-size: 10.5px; font-weight: 600; font-family: var(--font); paint-order: stroke; stroke: #0c0c10; stroke-width: 4px; stroke-linejoin: round; }
.chart-svg .bar { fill: var(--accent); }
.chart-svg .bar.est { fill: var(--accent); opacity: 0.35; }
.chart-svg .zero-dot { fill: var(--ink-3); }
.chart-svg .zero-dot.est { fill: var(--accent); }
.chart-tip {
  position: absolute; top: 10px; z-index: 5; min-width: 170px; padding: 10px 12px; border-radius: 14px; pointer-events: none;
  background: var(--raised); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 12px;
}
.tip-title { margin-bottom: 6px; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tip-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; line-height: 1.6; }
.tip-val { order: 2; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tip-key { order: 1; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); white-space: nowrap; }
.tip-swatch { display: inline-block; width: 10px; height: 2px; border-radius: 2px; background: var(--ink-3); }
.tip-swatch.up { background: var(--accent); }
.chart-empty {
  display: grid; place-items: center; align-content: center; gap: 6px; min-height: 220px; margin: 4px 0 8px; padding: 24px;
  border: 1px dashed var(--line-2); border-radius: 16px; text-align: center; font-size: 13px; color: var(--ink-3);
}
.chart-empty strong { color: var(--ink); font-weight: 650; }
.chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 2px 18px 12px; font-size: 12px; color: var(--ink-3); }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend .link-btn { margin-left: auto; font-size: 12px; }
.key-line { display: inline-block; width: 12px; height: 2px; border-radius: 2px; }
.key-line.up { background: var(--up); }
.key-line.down { background: var(--down); }
.key-line.stock { background: var(--ink-2); }
.key-dash { display: inline-block; width: 12px; border-top: 1.5px dashed var(--accent); }
.key-bar { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--accent); }
.key-bar.est { opacity: 0.35; }
.key-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }

/* Rail */
.big-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.big-v { font-size: 34px; line-height: 1.05; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.big-v small { margin-left: 4px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.o-dist .panel-note { margin-top: 12px; }
.kv { display: grid; margin: 0; }
.kv-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv-row:last-child { border-bottom: 0; }
.kv-row dt { color: var(--muted); }
.kv-row dt small, .kv-row dd small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
.kv-row dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.kv-tight .kv-row { padding: 7px 0; }
.waterfall .sub dt, .waterfall .sub dd { font-weight: 700; color: var(--ink); }
.waterfall .total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.waterfall .total dt { color: var(--ink); font-weight: 650; }
.waterfall .total dd { font-size: 16px; }
.addr-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.addr-row:last-child { border-bottom: 0; }
.addr-row .k { margin-bottom: 2px; }

.rules { margin: 12px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.rules li { margin: 2px 0; }

/* Details: folded sections inside one panel. */
.o-details { overflow: hidden; }
.fold + .fold { border-top: 1px solid var(--line); }
.fold summary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 18px;
  list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; transition: background 0.2s;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary:hover { background: var(--raised); }
.fold summary .icon { color: var(--muted); transition: transform 0.25s var(--ease); }
.fold[open] summary .icon { transform: rotate(180deg); }
.fold > :not(summary) { margin: 0 18px 12px; }

/* Trade */
.amount {
  display: flex; align-items: center; gap: 10px; height: 60px; margin-top: 14px; padding: 0 18px; border-radius: var(--r-md);
  background: var(--raised); border: 1px solid transparent; transition: border-color 0.2s;
}
.amount:focus-within { border-color: var(--line-2); }
.amount input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: 700 26px var(--font); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.amount .unit { font-weight: 600; color: var(--muted); white-space: nowrap; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.bal-line { display: flex; justify-content: space-between; gap: 8px; margin: 8px 4px 0; font-size: 12px; color: var(--ink-3); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.quick.three { grid-template-columns: repeat(3, 1fr); }
.quick button { height: 32px; border-radius: 999px; cursor: pointer; background: var(--raised); border: 0; color: var(--ink); font: 500 12.5px var(--font); transition: background 0.2s; }
.quick button:hover:not(:disabled) { background: var(--selected); }
.quick button:disabled { opacity: 0.4; cursor: not-allowed; }
.quote { margin: 12px 0 14px; }
.trade-msg { margin: 10px 0 0; padding: 10px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.5; }
.trade-msg { background: var(--raised); color: var(--ink); }
.trade-msg.ok::before, .trade-msg.warn::before, .trade-msg.err::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--up); }
.trade-msg.warn::before { background: var(--warn); }
.trade-msg.err::before { background: var(--down-text); }

/* ---------- Create ---------- */
.create-page { max-width: 1000px; padding-top: 44px; padding-bottom: 64px; }
.create-heading { margin-bottom: 36px; }
.create-heading h1 { margin: 0 0 10px; font-size: 38px; line-height: 1.15; letter-spacing: -0.04em; }
.create-heading p { margin: 0; color: var(--ink-3); font-size: 15px; }
.create-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 64px; }
.create-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-width: 0; }
.create-details { display: grid; gap: 18px; }
.create-section-title { margin: 0; color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.create-section-head, .create-overview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.create-section-head > span, .create-overview-head > span { font-size: 12px; color: var(--ink-3); }
.create-target { padding-top: 22px; border-top: 1px solid var(--line); }
.create-section-copy { margin: 6px 0 14px; color: var(--ink-3); font-size: 13px; }
.create-name-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.create-form .input, .create-form .textarea, .create-form .input-affix { border-radius: 10px; box-shadow: none; }

.create-form :focus-visible { outline-color: var(--accent); }
.create-form .field-label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.create-form .field-error:empty { display: none; }
.create-select { position: relative; }
.create-select select { appearance: none; height: 54px; padding-left: 50px; padding-right: 38px; cursor: pointer; }
.create-select select:has(option:checked[value='']) { color: var(--ink-3); }
.create-select > .icon { position: absolute; top: 19px; right: 14px; pointer-events: none; color: var(--ink-3); }
.create-selected-icon { position: absolute; top: 14px; left: 13px; width: 26px; height: 26px; display: grid; place-items: center; color: var(--ink-3); pointer-events: none; }
.coin-upload { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; min-height: 112px; padding: 16px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--surface); color: var(--muted); text-align: left; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.coin-upload:hover, .coin-upload.is-over { background: var(--raised); border-color: var(--muted); }
.coin-upload > .icon { color: var(--ink-3); }
.coin-upload b { display: block; font-size: 14px; font-weight: 500; color: var(--ink); }
.coin-upload small { display: block; margin-top: 5px; color: var(--ink-3); font-size: 12px; line-height: 1.5; }
.coin-upload img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; }
.coin-upload.has-img { border-style: solid; }
.field.is-invalid .coin-upload { border-color: var(--down-text); }
.create-extras summary { display: flex; align-items: center; gap: 8px; width: fit-content; list-style: none; color: var(--ink-2); font-size: 13px; cursor: pointer; }
.create-extras summary::-webkit-details-marker { display: none; }
.create-extras summary:hover { color: var(--ink); }
.create-extras summary > .icon { transition: transform 0.2s; }
.create-extras[open] summary > .icon { transform: rotate(45deg); }
.create-extra-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding-top: 18px; }
.create-extra-fields .input { font-size: 12px; padding-inline: 10px; }
.create-details .field-label { justify-content: flex-start; gap: 5px; }
.create-details .opt, .create-extras .opt { opacity: .6; }
.asset-trigger { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:58px; padding:12px 14px; border:1px solid var(--line-2); border-radius:10px; background:var(--surface); color:var(--ink); cursor:pointer; text-align:left; font:500 14px var(--font); }
.asset-trigger:hover { background:var(--raised); }
.asset-trigger-content, .asset-identity { display:flex; align-items:center; gap:12px; min-width:0; }
.asset-trigger-content small { display:block; color:var(--ink-3); font-size:11px; margin-top:3px; }
.modal.asset-modal { width:min(440px,calc(100vw - 28px)); padding:0; border:1px solid var(--line-2); border-radius:18px; background:#111; overflow:hidden; }
.asset-modal-head { margin:0; padding:18px 18px 14px; border-bottom:1px solid var(--line); }
.asset-modal .asset-modal-head h2 { font-size:15px; letter-spacing:-.02em; }
.asset-search-wrap { position:relative; margin:14px 14px 10px; }
.asset-search-wrap > .icon { position:absolute; left:12px; top:13px; color:var(--ink-3); }
.asset-search-wrap .input { height:42px; padding-left:36px; border:1px solid var(--line-2); border-radius:8px; background:transparent; font-size:13px; }
.asset-results { max-height:min(530px,65vh); overflow-y:auto; overscroll-behavior:contain; padding:0 8px 8px; scrollbar-width:thin; }
.asset-result { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; padding:11px 10px; border:0; border-radius:9px; background:transparent; color:var(--ink); text-align:left; cursor:pointer; font-family:var(--font); }
.asset-result:hover, .asset-result:focus-visible, .asset-result.is-selected { background:var(--raised); }
.asset-result:focus-visible { outline:1px solid var(--ink-3); outline-offset:-1px; }
.asset-identity > span { min-width:0; }
.asset-identity b { display:block; font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:210px; }
.asset-identity small, .asset-stats small { display:block; margin-top:4px; color:var(--ink-3); font-size:11px; }
.asset-stats { text-align:right; flex-shrink:0; font-variant-numeric:tabular-nums; }
.asset-stats b { font-size:13px; font-weight:600; }
.asset-image { border-radius:50%; object-fit:contain; flex-shrink:0; }
.logo.asset-logo { background:transparent; border:0; border-radius:0; box-shadow:none; }
.logo.asset-logo svg { width:100%; height:100%; }
.asset-monogram { display:grid; place-items:center; width:36px; height:36px; flex-shrink:0; background:transparent; border:0; font-size:12px; color:var(--ink-2); }
.asset-load-more { display:block; width:100%; padding:14px; color:var(--ink-2); font-size:12px; }
.asset-empty { padding:32px 16px; text-align:center; font-size:13px; color:var(--ink-3); }
@media(max-width:420px) { .asset-identity b { max-width:150px; } .asset-stats small { font-size:10px; } .create-extra-fields { gap:6px; } }
.create-submit { display: grid; gap: 10px; margin-top: 4px; }
.create-submit .btn { border-radius: 12px; box-shadow: none; }
.create-submit p { margin: 0; text-align: center; color: var(--ink-3); font-size: 12px; }
.create-success { display: flex; align-items: center; gap: 14px; margin: 24px 0 16px; }
.create-success b { display: block; font-size: 18px; }
.create-success span { display: block; color: var(--ink-3); margin-top: 4px; }
.flow-preview { max-width: 1080px; padding-top: 36px; }
.flow-preview h1 { margin: 0; font-size: 24px; }
.flow-preview-notice { padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.flow-preview-description { color: var(--ink-3); line-height: 1.65; margin: 20px 0; }
.flow-preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px; margin: 28px 0; }
.flow-preview-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; }
.flow-preview-card h2 { font-size: 15px; margin: 0 0 20px; }
.flow-preview-card strong { font-size: 16px; }
.flow-preview-card p { font-size: 13px; color: var(--ink-3); line-height: 1.65; }
.flow-preview-card .flow-example-label { font-size: 12px; margin-top: 24px; }
.flow-account { display: block; overflow-wrap: anywhere; font-size: 12px; line-height: 1.7; margin: 14px 0; }
.create-overview { position: sticky; top: 100px; min-width: 0; }
.create-overview-head { margin-bottom: 18px; }
.launch-preview-card { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.launch-preview-identity { display: flex; align-items: center; gap: 14px; }
.launch-preview-identity > div { min-width: 0; }
.launch-preview-identity h3 { margin: 0 0 4px; font-size: 20px; line-height: 1.2; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.launch-preview-identity div > span { color: var(--ink-3); font-size: 13px; }
.launch-preview-image { display: grid; place-items: center; flex: none; width: 68px; height: 68px; border: 0; border-radius: 18px; background: var(--raised); color: var(--muted); }
.launch-preview-description { margin: 18px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.launch-preview-venue { display: flex; align-items: center; gap: 9px; margin: 22px 0; color: var(--ink-3); font-size: 12px; }
.launch-preview-venue span + span::before { content: '·'; margin-right: 9px; }
.launch-preview-target { padding-top: 18px; border-top: 1px solid var(--line); }
.launch-preview-label { color: var(--ink-3); font-size: 11px; }
.launch-preview-target > div { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.launch-preview-target > div > div { flex: 1; min-width: 0; }
.launch-preview-target b { display: block; font-size: 14px; font-weight: 600; }
.launch-preview-target div span:not(.logo) { display: block; margin-top: 2px; font-size: 11px; color: var(--ink-3); }
.launch-preview-target > div > .icon { color: var(--ink-3); }
.launch-target-empty { display: grid !important; place-items: center; flex: none; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--fill-1); }
.launch-mechanics { margin-top: 26px; }
.launch-mechanics h3 { margin: 0 0 14px; font-size: 13px; font-weight: 600; }
.launch-mechanics dl { display: grid; gap: 12px; margin: 0; font-size: 12px; }
.launch-mechanics dl > div { display: flex; justify-content: space-between; gap: 12px; }
.launch-mechanics dt { color: var(--ink-3); }
.launch-mechanics dd { margin: 0; color: var(--ink-2); font-weight: 500; }
.launch-mechanics p { margin: 18px 0 12px; font-size: 12px; line-height: 1.65; color: var(--ink-3); }
.launch-how { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--ink-2); font-size: 12px; cursor: pointer; }
.launch-how:hover { color: var(--ink); }
@media (max-width: 900px) {
  .create-workspace { grid-template-columns: minmax(0, 1fr) 290px; gap: 32px; }
  .launch-preview-card { padding: 20px; }
}
@media (max-width: 740px) {
  .create-page { max-width: 600px; }
  .create-workspace { display: flex; flex-direction: column; gap: 32px; }
  .create-form, .create-overview { width: 100%; }
  .create-overview { position: static; }
}
@media (max-width: 640px) {
  .create-page { padding-top: 32px; }
  .create-heading { margin-bottom: 24px; }
  .create-heading h1 { font-size: 30px; }
  .create-form { gap: 22px; }
  .coin-upload { gap: 12px; min-height: 116px; padding: 16px; }
  .coin-upload small { max-width: 220px; }
  .create-name-row { gap: 12px; }
}
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; min-width: 0; }
.field-label { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field-label .count, .field-label .opt, .opt { font-weight: 500; color: var(--ink-3); }
.input, .textarea, .input-affix {
  width: 100%; min-width: 0; height: 46px; padding: 0 14px; border-radius: 14px; outline: 0;
  background: var(--raised); border: 1px solid transparent; color: var(--ink); font: 500 15px var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder, .input-affix input::placeholder { color: var(--ink-3); }
.input:focus, .textarea:focus, .input-affix:focus-within { border-color: var(--line-2); }
.input-affix { display: flex; align-items: center; gap: 3px; }
.input-affix > span { color: var(--ink-3); font-weight: 600; }
.input-affix input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: inherit; font: 600 15px var(--font); letter-spacing: 0.04em; }
.field.is-invalid .input, .field.is-invalid .input-affix { border-color: rgba(255, 69, 58, 0.6); }
.field-error { font-size: 12px; color: var(--down-text); }
.field-hint { font-size: 12px; color: var(--ink-3); }
.field-warn { font-size: 12px; color: var(--warn); }

/* ---------- Rewards ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { position: relative; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.kpi-k { font-size: 12px; font-weight: 500; color: var(--muted); }
.kpi-v { margin: 6px 0 3px; font-size: 26px; line-height: 1.1; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.kpi-n { font-size: 12px; color: var(--ink-3); }
.stack-v { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.connect-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 24px; padding: 18px; }
.persona-list { display: grid; gap: 10px; }
.persona {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 18px; cursor: pointer; text-align: left;
  background: var(--raised); border: 1px solid transparent; color: var(--ink); font: inherit; transition: background 0.2s, border-color 0.2s, transform 0.35s var(--spring);
}
.persona:hover { background: var(--selected); }
.persona:active { transform: scale(0.98); }
.persona[aria-current='true'] { border-color: var(--line-2); }
.persona-text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.persona-text b { font-size: 14px; }
.persona-text span { font-size: 12.5px; color: var(--ink-3); }
.persona .icon { color: var(--ink-3); }
.mini-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 16px 18px 16px; }
.mini-kpis .kpi-v { font-size: 22px; }
.wallet-head { display: flex; align-items: center; gap: 10px; }
.wallet-head b { display: block; font-size: 13px; }

/* ---------- Docs: sidebar, article, on-this-page ---------- */
.docs-page { display: grid; grid-template-columns: 230px minmax(0, 1fr) 200px; gap: 48px; align-items: start; }
.docs-side, .docs-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; }
.docs-menu { display: none; }
.docs-group { margin-bottom: 22px; }
.docs-group p { margin: 0 0 8px; padding: 0 12px; font-size: 12px; font-weight: 600; color: var(--muted); }
.docs-nav a { display: block; padding: 7px 12px; border-radius: 10px; font-size: 14px; color: var(--muted); transition: background 0.2s, color 0.2s; }
.docs-nav a:hover { color: var(--ink); }
.docs-nav a[aria-current='page'] { color: var(--ink); background: var(--raised); font-weight: 600; }
.docs-main { min-width: 0; max-width: 720px; }
.docs-crumb { margin: 4px 0 8px; font-size: 13px; font-weight: 500; color: var(--brand-coral); }
.docs-title { margin: 0; font-size: clamp(32px, 4vw, 42px); line-height: 1.08; font-weight: 700; letter-spacing: -0.04em; }
.docs-lede { margin: 14px 0 0; font-size: 18px; line-height: 1.55; color: var(--muted); }
.docs-body { margin-top: 12px; font-size: 15.5px; line-height: 1.7; color: #d6d6d6; }
.docs-body p { margin: 14px 0; }
.docs-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.docs-body a:hover { text-decoration-color: var(--ink); }
.docs-body b { color: var(--ink); }
.docs-body .mono { padding: 2px 6px; border-radius: 6px; background: var(--raised); font-size: 0.85em; color: var(--ink); }
.docs-h2 { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 22px; font-weight: 650; letter-spacing: -0.025em; color: var(--ink); scroll-margin-top: 100px; }
.docs-body > .docs-h2:first-child { margin-top: 24px; }
.docs-callout { display: flex; gap: 12px; margin: 18px 0; padding: 14px 16px; border-radius: 14px; background: var(--raised); font-size: 14.5px; line-height: 1.6; }
.docs-callout > .icon { flex: none; margin-top: 3px; color: var(--muted); }
.docs-callout.warn > .icon { color: var(--brand-coral); }
.docs-steps { display: grid; margin: 18px 0; padding: 0; list-style: none; }
.docs-steps li { position: relative; display: flex; gap: 16px; padding-bottom: 18px; }
.docs-steps li:not(:last-child)::before { content: ''; position: absolute; left: 14px; top: 32px; bottom: 4px; width: 1px; background: var(--line-2); }
.docs-step-n { flex: none; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--raised); font-size: 13px; font-weight: 650; color: var(--ink); }
.docs-steps b { display: block; margin-top: 3px; font-size: 15.5px; }
.docs-steps p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.docs-table { margin: 18px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.docs-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.docs-table th { padding: 11px 14px; text-align: left; font-size: 12.5px; font-weight: 500; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--line); }
.docs-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.docs-table tr:last-child td { border-bottom: 0; }
.docs-code { margin: 18px 0; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; font: 13.5px/1.6 var(--mono); color: var(--ink); }
.docs-tree { margin: 18px 0; padding: 10px 0; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.dt-row { display: grid; grid-template-columns: calc(230px - var(--d) * 20px) minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 5px 18px 5px calc(18px + var(--d) * 20px); font-size: 13.5px; line-height: 1.5; }
.dt-row:hover { background: var(--raised); }
.dt-name { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); white-space: nowrap; }
.dt-name .mono { padding: 0; background: none; font-size: 13px; }
.dt-ic { flex: none; color: var(--muted); align-self: center; }
.dt-row.is-dir .dt-name { font-weight: 600; }
.dt-row.is-dir .dt-ic { color: var(--brand-coral); }
.dt-desc { font-size: 13px; color: var(--muted); }
.docs-stocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.docs-stock { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); line-height: 1.3; }
.docs-stock > div { flex: 1; min-width: 0; }
.docs-stock b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.docs-stock div span { font-size: 12.5px; color: var(--muted); }
.docs-stock > .tabular { font-size: 14px; font-weight: 600; color: var(--ink); }
.docs-glossary { display: grid; margin: 18px 0; }
.docs-glossary > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.docs-glossary dt { font-weight: 600; color: var(--ink); }
.docs-glossary dd { margin: 0; color: var(--muted); }
.docs-faq { border-bottom: 1px solid var(--line); }
.docs-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; list-style: none; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--ink); }
.docs-faq summary::-webkit-details-marker { display: none; }
.docs-faq summary .icon { flex: none; color: var(--muted); transition: transform 0.25s var(--ease); }
.docs-faq[open] summary .icon { transform: rotate(180deg); }
.docs-faq p { margin: 0 0 16px; color: var(--muted); }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; }
.docs-pager a { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); transition: border-color 0.2s, background 0.2s; }
.docs-pager a:hover { border-color: var(--line-2); background: var(--surface); }
.docs-pager a.next { text-align: right; grid-column: 2; }
.docs-pager span { font-size: 12.5px; color: var(--muted); }
.docs-pager b { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.docs-pager a.next b { justify-content: flex-end; }
.docs-toc p { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.docs-toc button { display: block; width: 100%; padding: 5px 0 5px 12px; border: 0; border-left: 1px solid var(--line); background: none; text-align: left; font: 500 13px/1.45 var(--font); color: var(--muted); cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.docs-toc button:hover { color: var(--ink); }
.docs-toc button.on { color: var(--ink); border-left-color: var(--ink); }
@media (max-width: 1180px) {
  .docs-page { grid-template-columns: 210px minmax(0, 1fr); gap: 40px; }
  .docs-toc { display: none; }
}
@media (max-width: 860px) {
  .docs-page { display: block; }
  .docs-side { position: sticky; top: 76px; z-index: 5; max-height: none; overflow: visible; margin-bottom: 20px; }
  .docs-nav-wide { display: none; }
  .docs-menu { display: block; position: relative; }
  .docs-menu summary { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line); list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; }
  .docs-menu summary::-webkit-details-marker { display: none; }
  .docs-menu summary span { flex: 1; }
  .docs-menu summary .icon { color: var(--muted); }
  .docs-menu[open] summary .icon:last-child { transform: rotate(180deg); }
  .docs-menu .docs-nav { position: absolute; left: 0; right: 0; top: calc(100% + 8px); max-height: 65vh; overflow: auto; padding: 14px 6px 0; border-radius: 16px; background: var(--raised); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
  .docs-menu .docs-nav a[aria-current='page'] { background: var(--selected); }
}
@media (max-width: 640px) {
  .docs-lede { font-size: 16.5px; }
  .docs-body { font-size: 15px; }
  .dt-row { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: calc(14px + var(--d) * 14px); }
  .dt-desc { padding-left: 23px; font-size: 12.5px; }
  .docs-stocks { grid-template-columns: minmax(0, 1fr); }
  .docs-glossary > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .docs-pager { grid-template-columns: minmax(0, 1fr); }
  .docs-pager a.next { grid-column: 1; }
}

/* ---------- Modals, palette, menu, toasts ---------- */
.glass-sheet { background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.95); }
.modal-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.65); opacity: 0; transition: opacity 0.25s; }
.modal {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto; padding: 24px; border-radius: 30px;
  opacity: 0; transform: translateY(14px) scale(0.97); transition: opacity 0.25s, transform 0.5s var(--spring);
}
.modal-wrap.open .modal-backdrop { opacity: 1; }
.modal-wrap.open .modal { opacity: 1; transform: none; }
.modal-wrap.closing .modal { opacity: 0; transform: scale(0.98); transition-duration: 0.18s; }
.modal-sm { width: min(470px, 100%); }
.modal-lg { width: min(780px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head h2 { margin: 0; font-size: 21px; letter-spacing: -0.03em; }
.modal-sub { margin: 8px 0 18px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.modal-h3 { margin: 22px 0 4px; font-size: 14px; letter-spacing: -0.01em; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.how-step { padding: 16px; border-radius: var(--r-md); background: var(--raised); }
.how-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--ink); color: var(--accent-ink); font-size: 13px; font-weight: 750; }
.how-step h3 { margin: 12px 0 6px; font-size: 15px; letter-spacing: -0.015em; }
.how-step p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.src-list { display: grid; gap: 6px; }
.src-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--raised); }
.src-row > div { flex: 1; display: grid; gap: 1px; min-width: 0; }
.src-row b { font-size: 14px; }
.src-row span { font-size: 12.5px; color: var(--ink-3); }
.src-at { flex: none; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.launch-steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.launch-steps li { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 16px; background: var(--fill-1); transition: opacity 0.3s; }
.ls-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--fill-2); color: var(--ink-3); }
.launch-steps li.done .ls-icon { background: var(--up-bg); color: var(--up); }
.launch-steps li.active .ls-icon { background: var(--accent-bg); color: var(--accent); }
.launch-steps li.pending { opacity: 0.5; }
.launch-steps b { display: block; font-size: 14px; }
.launch-steps li > span:last-child > span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.success { display: grid; justify-items: center; gap: 10px; text-align: center; }
.success h2 { margin: 4px 0 0; font-size: 28px; letter-spacing: -0.04em; }
.success p { margin: 0; max-width: 380px; color: var(--ink-2); line-height: 1.55; }
.success .kv { width: 100%; margin-top: 8px; text-align: left; }
.art-glow { box-shadow: 0 0 0 1px var(--line-2); }

.modal-palette { align-self: start; width: min(640px, 100%); margin-top: 9vh; padding: 0; }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.palette-input input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: 500 17px var(--font); }
.palette-input input::placeholder { color: var(--ink-3); }
.palette-list { max-height: 52vh; overflow: auto; padding: 8px; }
.palette-group { padding: 10px 12px 6px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.palette-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 16px; border: 0; background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.palette-item[aria-selected='true'] { background: var(--raised); }
.palette-item.is-disabled { opacity: 0.5; cursor: default; }
.pi-main { flex: 1; display: grid; min-width: 0; }
.pi-main b { font-size: 14px; }
.pi-main span { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi-end { font-weight: 650; font-variant-numeric: tabular-nums; }
.palette-foot { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.palette-foot kbd { margin-right: 4px; }
.palette-empty { padding: 30px; text-align: center; color: var(--ink-3); }

.menu { position: absolute; right: 0; top: calc(100% + 12px); z-index: 60; width: 270px; padding: 8px; border-radius: 22px; animation: menuIn 0.4s var(--spring); transform-origin: top right; }
@keyframes menuIn { from { opacity: 0; transform: scale(0.94) translateY(-6px); } }
.menu-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); }
.menu-head b { display: block; font-size: 14px; }
.menu-head span { display: block; font-size: 12px; color: var(--ink-3); }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-radius: 13px; background: none; color: var(--ink-2); font: 500 13.5px var(--font); text-align: left; cursor: pointer; }
.menu-item:hover, .menu-item:focus-visible { outline: 0; background: var(--raised); color: var(--ink); }

#toast-root { position: fixed; left: 50%; bottom: 24px; z-index: 120; display: grid; justify-items: center; gap: 8px; transform: translateX(-50%); pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 550;
  background: var(--raised); border: 1px solid var(--line-2); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.85);
  opacity: 0; transform: translateY(14px) scale(0.95); transition: opacity 0.25s, transform 0.5s var(--spring);
}
.toast.in { opacity: 1; transform: none; }
.toast .icon { color: var(--up); }
.toast-warn .icon { color: var(--warn); }

/* ---------- Footer, tab bar ---------- */
/* Brand gradient fading up out of the black, the white mark centred, black links along the bottom. */
.site-footer { margin-top: 8px; isolation: isolate; overflow: hidden; }
.site-footer::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 6% 105%, #ffad67, transparent 58%), radial-gradient(ellipse at 100% 15%, #ff2d83, transparent 64%), linear-gradient(125deg, #ff6452, #ff443e 48%, #ff754b);
  /* Eased fade (many stops) so the colour eases out of the black instead of ramping in a straight line. */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.02) 12%, rgba(0,0,0,0.07) 22%, rgba(0,0,0,0.15) 32%, rgba(0,0,0,0.27) 42%, rgba(0,0,0,0.42) 52%, rgba(0,0,0,0.58) 62%, rgba(0,0,0,0.74) 72%, rgba(0,0,0,0.88) 83%, #000 95%); mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.02) 12%, rgba(0,0,0,0.07) 22%, rgba(0,0,0,0.15) 32%, rgba(0,0,0,0.27) 42%, rgba(0,0,0,0.42) 52%, rgba(0,0,0,0.58) 62%, rgba(0,0,0,0.74) 72%, rgba(0,0,0,0.88) 83%, #000 95%);
}
.footer-inner { position: relative; display: grid; justify-items: center; align-content: end; gap: 36px; min-height: 380px; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter) 28px; }
.footer-mark { display: block; line-height: 0; }
.footer-mark .brand-mark { width: 96px; height: 96px; }
.footer-mark .brand-mark.spin { animation: markSpin 1.65s cubic-bezier(0.3, 1.25, 0.4, 1); }
@keyframes markSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.footer-top { position: relative; z-index: 1; display: flex; justify-content: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
.footer-links a, .footer-links button { padding: 0; border: 0; background: none; cursor: pointer; font: 600 13.5px var(--font); letter-spacing: -0.01em; color: #121212; transition: opacity 0.2s; }
.footer-links a:hover, .footer-links button:hover { opacity: 0.6; }
.tabbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .search-btn { width: 38px; padding: 0; justify-content: center; }
  .search-btn span, .search-btn kbd { display: none; }
  .coin-layout { grid-template-columns: minmax(0, 1fr) 330px; }
  .hero { gap: 36px; }
}
@media (max-width: 1024px) {
  .wallet-btn .addr-text { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 44px; }
  .hero-stage { justify-items: stretch; }
  .stack { margin: 0 auto; }
  .coin-layout { display: flex; flex-direction: column; align-items: stretch; }
  .coin-main, .coin-rail { display: contents; }
  .o-market { order: 1; } .o-trade { order: 2; } .o-dist { order: 3; } .o-strat { order: 4; } .o-pay { order: 5; }
  .o-rewards { order: 6; } .o-details { order: 7; }
  .o-late { order: 8; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connect-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .topbar-inner { grid-template-columns: auto 1fr; }
  .wallet-btn .addr-text { display: inline; }
  .nav-seg { display: none; }
  .footer-nav { display: none; } /* the tab bar already has these */
  /* Run the gradient under the tab bar instead of stopping above it. */
  .site-footer { margin-bottom: calc(-76px - env(safe-area-inset-bottom)); }
  .footer-inner { min-height: 280px; gap: 26px; padding-bottom: calc(44px + env(safe-area-inset-bottom)); }
  .footer-mark .brand-mark { width: 76px; height: 76px; }
  .footer-links { gap: 8px 28px; }
  .footer-links a, .footer-links button { padding: 6px 0; font-size: 14px; }
  .search-btn { display: none; }
  .icon-btn.top-search { display: inline-grid; }
  /* Tab bar: a slim flat pill; the current section is simply brighter, with a short line above its icon. */
  .tabbar {
    position: fixed; z-index: 45; left: 16px; right: 16px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(4, 1fr); height: 56px; padding: 0 4px; border-radius: 20px;
    background: rgba(17, 17, 17, 0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid var(--line-2); box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.9);
    transition: transform 0.35s var(--ease), opacity 0.25s;
  }
  .tabbar.is-away { transform: translateY(calc(100% + 24px + env(safe-area-inset-bottom))); opacity: 0; pointer-events: none; }
  .tabbar a, .tabbar button {
    position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; border: 0; cursor: pointer;
    background: none; color: var(--muted); font: 500 10.5px/1 var(--font); transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar .icon { width: 20px; height: 20px; }
  .tabbar [aria-current='page'] { color: var(--ink); font-weight: 600; }
  .tabbar [aria-current='page']::before { content: ''; position: absolute; top: 0; left: 50%; width: 18px; height: 2px; margin-left: -9px; border-radius: 0 0 2px 2px; background: var(--ink); }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  #toast-root { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .ch-top { grid-template-columns: auto minmax(0, 1fr); }
  .ch-price { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: 12px; }
  .ch-price .sub { margin: 0; }
  .ch-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .ch-strip > div:nth-child(4) { padding-left: 0; border-left: 0; }
  .mini-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .topbar { padding-top: 8px; }
  .topbar-inner { height: 56px; border-radius: 20px; padding: 0 8px 0 12px; }
  .hero { padding: 32px var(--gutter) 32px; gap: 32px; }
  .hero-sub { font-size: 16px; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 380px; gap: 20px 24px; }
  .hero-stats > div + div { padding-left: 0; border-left: 0; }
  .hero-stats > div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line-2); }
  .hero-stats dt { font-size: 11px; }
  .hero-stats dd { font-size: 19px; }
  .fcard { padding: 18px; }
  .fcard-price b { font-size: 34px; }
  .catalog-search { flex-basis: 100%; }
  .catalog-tools { width: 100%; justify-content: space-between; gap: 12px; }
  .catalog-tools .catalog-tabs { gap: 12px; }
  .catalog-views { padding-left: 8px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .coin-hero { gap: 18px; padding: 16px; }
  .ch-top { grid-template-columns: auto minmax(0, 1fr); row-gap: 14px; gap: 14px; }
  .ch-top > .art { width: 56px; height: 56px; border-radius: 16px; }
  .ch-name-row { flex-wrap: nowrap; }
  .ch-name { font-size: 24px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ch-name-row .badge { display: none; }
  .ch-more { display: block; }
  .ch-links { display: none; }
  .ch-meta { margin-top: 4px; font-size: 12.5px; }
  .ch-price .big { font-size: 32px; }
  .ch-strip { padding-top: 16px; }
  .ch-strip > div { padding: 0 0 0 12px; }
  .ch-strip dd { font-size: 15px; }
  .ch-meta > span:nth-of-type(2) { display: none; }
  /* Stat line on phones: the short on its own row, then figures in two tidy columns. */
  .stat-line { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
  .stat-line > .short-pill { grid-column: 1 / -1; justify-self: start; max-width: 100%; }
  .stat-line > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .sl-sep { display: none; }
  /* Four-figure strips go two by two instead of leaving one figure alone. */
  .ch-strip.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .ch-strip.cols-4 > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .ch-strip.cols-4 > div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .ch-target.cols-4 > div:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  /* Phones: the stock on its own line, then its figures two by two. */
  .ch-target { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; padding-top: 16px; }
  .ch-target > .cht-id { grid-column: 1 / -1; }
  .ch-target > div { padding: 0 0 0 14px; }
  .ch-target > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .ch-target dd { font-size: 15px; }
  .tv { height: 320px; margin-left: 6px; margin-right: 6px; }
  .tv-strat { height: 320px; }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-left: 14px; margin-right: 14px; }
  .mini-kpis { margin-left: 14px; margin-right: 14px; }
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-v { font-size: 22px; }
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .modal-wrap { align-items: end; padding: 10px; }
  .modal { border-radius: 24px; padding: 20px; max-height: calc(100dvh - 20px); }
  .fold summary { padding: 14px 16px; }
  .fold > :not(summary) { margin: 0 16px 12px; }
  .tape-group { gap: 28px; padding: 10px 14px; }
  .modal-palette { align-self: start; margin-top: 4vh; }
  .page-title { font-size: 34px; }
  .panel-head { padding: 14px 16px 0; }
  .panel-body { padding: 12px 16px 16px; }
  .chart-controls { padding: 12px 14px 0; }
  .readout { padding: 10px 14px 4px; }
  .chart-legend { padding: 2px 14px 12px; }
}
@media (max-width: 420px) {
  .hide-xs { display: none; }
  .wallet-btn .addr-text { display: none; }
  .wallet-connect .lbl-long { display: none; }
  .wallet-connect { width: 38px; padding: 0; }
  .ch-strip dd { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .tape { overflow-x: auto; }
  .tape-track { animation: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .live-dot.is-live { box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.25); }
}

/* ---------- Launched coin: creator panel ---------- */
.brand-tile { display: inline-block; flex: none; width: 20px; height: 20px; line-height: 0; }
.brand-tile svg { width: 100%; height: 100%; }
.brand-tile img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Liquid-glass action: translucent, lit from the top edge, the venue logo on the left. */
.btn-liquid {
  display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 16px 0 14px; border-radius: 16px;
  color: var(--ink); font: 600 15px/1 var(--font); letter-spacing: -0.01em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 10px 30px -14px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  transition: background 0.25s, border-color 0.25s, transform 0.35s var(--spring);
}
.btn-liquid:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07)); border-color: rgba(255, 255, 255, 0.22); }
.btn-liquid:active { transform: scale(0.98); }
.btn-liquid > span { flex: 1; }
.btn-liquid > .icon { color: var(--muted); }
.btn-liquid .brand-tile { width: 26px; height: 26px; }
.btn-liquid.quiet { height: 48px; font-size: 14px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.btn-liquid.quiet .brand-tile { width: 22px; height: 22px; }
.about-text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink); opacity: 0.85; overflow-wrap: anywhere; }
.how-steps { display: grid; gap: 14px; margin: 0; padding: 14px 18px 18px; list-style: none; counter-reset: step; }
.how-steps li { position: relative; display: grid; gap: 3px; padding-left: 34px; counter-increment: step; }
.how-steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--raised); font-size: 12px; font-weight: 650; }
.how-steps b { font-size: 14px; font-weight: 600; }
.how-steps span { font-size: 13px; line-height: 1.5; color: var(--muted); }
.venue-btn { gap: 6px; padding-left: 7px; }
.venue-btn .brand-tile { width: 16px; height: 16px; }
.dev-actions .panel-body { display: grid; gap: 10px; padding-top: 16px; }
.venue-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.venue-row > span { margin-right: 2px; }
.venue { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 6px; border-radius: 999px; background: var(--raised); color: var(--ink); font-size: 12.5px; font-weight: 600; transition: background 0.2s; }
.venue:hover { background: var(--selected); }
.venue .brand-tile { width: 18px; height: 18px; }
.dev-hello b { display: block; font-size: 16px; margin-bottom: 6px; }
.dev-hello .btn { margin-top: 14px; }
.dev-links { display: grid; padding: 6px 8px 8px; }
.dev-link { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; transition: background 0.2s; }
.dev-link:hover { background: var(--raised); }
.dev-mark { flex: none; display: block; width: 28px; height: 28px; }
.dev-mark svg { display: block; width: 100%; height: 100%; }
.dev-link span { flex: 1; min-width: 0; }
.dev-link b { display: block; font-size: 14px; font-weight: 600; }
.dev-link small { display: block; font-size: 12px; color: var(--muted); }
.dev-link > .icon { color: var(--muted); }

/* ---------- Launched coin: chart toolbar, live wallet card, holders ---------- */
.chart-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 14px 18px 4px; }
.chart-bar .readout { flex: 1 1 320px; min-height: 0; padding: 0; }
.ch-desc { margin: 10px 0 0; max-width: 560px; font-size: 13px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.live-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--up); animation: livePulse 2.2s ease-out infinite; }
.live-rows { display: grid; padding: 8px 8px 0; }
.live-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; align-items: center; gap: 10px; padding: 11px 10px; border-radius: 12px; transition: background 0.2s; }
.live-row:hover { background: var(--raised); }
.live-row em { display: block; font-style: normal; font-size: 13.5px; font-weight: 600; }
.live-row small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-row b { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.live-row b.up { color: var(--up); }
.live-row b.down { color: var(--down-text); }
.live-row b.dim { color: var(--muted); font-weight: 500; }
.live-row > .icon { color: var(--muted); }
.live-note { margin: 4px 18px 16px; font-size: 12px; color: var(--muted); }
#holders-panel .panel-head { padding-bottom: 10px; }
.holder-table td, .holder-table th { padding-top: 10px; padding-bottom: 10px; }
.holder-table .rank { width: 40px; }
.wallet-link { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.wallet-link .icon { color: var(--muted); opacity: 0; transition: opacity 0.2s; }
.wallet-link:hover .icon, tr:hover .wallet-link .icon { opacity: 1; }
.wallet-link.up { color: var(--up); font-weight: 600; }
.curve-row td { color: var(--muted); }
.curve-name { display: block; color: var(--ink); font-weight: 500; }
.curve-row small { display: block; font-size: 11.5px; }

/* ---------- Launched coin: fee flywheel ---------- */
.fw-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 14px 18px 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.fw-flow > div { min-width: 0; padding: 0 14px; border-left: 1px solid var(--line); }
.fw-flow > div:first-child { padding-left: 0; border-left: 0; }
.fw-flow dt { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-flow dd { margin: 4px 0 0; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-split { display: grid; gap: 8px; margin: 14px 18px 0; }
.fw-bar { display: block; height: 6px; border-radius: 99px; background: rgba(255, 137, 118, 0.35); overflow: hidden; }
.fw-bar i { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.fw-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 12.5px; color: var(--muted); }
.fw-legend b { color: var(--ink); font-weight: 650; }
.fw-legend span:last-child b { color: var(--brand-coral); }
.fw-note { margin: 10px 18px 0; }
.fw-list { margin: 12px 0 0; padding: 0 8px 8px; list-style: none; }
.fw-list li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.fw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.fw-dot.confirmed { background: var(--up); }
.fw-dot.pending, .fw-dot.burned { background: var(--warn); }
.fw-dot.failed, .fw-dot.attention { background: var(--down-text); }
.fw-what { min-width: 0; }
.fw-what b { display: block; font-weight: 600; }
.fw-what small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-state { font-size: 12px; color: var(--muted); white-space: nowrap; }
.fw-state.attention, .fw-state.failed { color: var(--down-text); }
.fw-when { font-size: 12px; color: var(--muted); white-space: nowrap; }
.fw-proof { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.fw-proof:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .fw-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; margin: 12px 14px 0; }
  .fw-flow > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fw-split, .fw-note { margin-left: 14px; margin-right: 14px; }
  .fw-list li { grid-template-columns: 8px minmax(0, 1fr) auto; }
  .fw-when { display: none; }
  .fw-state { grid-column: 3; }
  .fw-proof { grid-column: 2 / -1; }
}
