/* Flowscope. Sticky top bar (brand, coin search, market-mood pill), coin rail, mood + signal gauges,
   then titled sections of panels on an auto-fit grid. Dark-first; light theme via data-theme or OS preference. */
:root {
  color-scheme: dark;
  --page: #0a0c11;
  --page-2: #0d1017;
  --surface: rgba(20, 24, 33, 0.78);
  --surface-solid: #141821;
  --surface-2: #1b202b;
  --surface-3: #232937;
  --ink: #eef1f7;
  --ink-2: #b4bccb;
  --muted: #7d8699;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --grid: rgba(255, 255, 255, 0.06);
  --axis: rgba(255, 255, 255, 0.18);
  --accent: #8b7cf6;
  --accent-2: #22d3a6;
  --coin: #8b7cf6;
  --buy: #2ecc8f;
  --sell: #f2596b;
  --up: #2ecc8f;
  --down: #f2596b;
  --warn: #f2b33d;
  --g0: #a78bfa; --g1: #4f9cf9; --g2: #2cc4b6; --g3: #e8b04a;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  --blur: saturate(140%) blur(14px);
}
:root[data-theme="light"] {
  color-scheme: light;
  --page: #f4f5f9; --page-2: #eef0f6; --surface: rgba(255, 255, 255, 0.86); --surface-solid: #ffffff; --surface-2: #f1f3f8; --surface-3: #e7eaf2;
  --ink: #12151c; --ink-2: #464d5c; --muted: #737b8c; --line: rgba(18, 21, 28, 0.08); --line-2: rgba(18, 21, 28, 0.14);
  --grid: rgba(18, 21, 28, 0.06); --axis: rgba(18, 21, 28, 0.22); --accent: #6a58e8; --accent-2: #0fa982;
  --buy: #12a46c; --sell: #e0384f; --up: #12a46c; --down: #e0384f; --warn: #c98a12;
  --g0: #7c5ce6; --g1: #2f7fe6; --g2: #0f9f93; --g3: #c98a12;
  --shadow: 0 1px 2px rgba(18, 21, 28, 0.04), 0 18px 40px -22px rgba(18, 21, 28, 0.25);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --page: #f4f5f9; --page-2: #eef0f6; --surface: rgba(255, 255, 255, 0.86); --surface-solid: #ffffff; --surface-2: #f1f3f8; --surface-3: #e7eaf2;
    --ink: #12151c; --ink-2: #464d5c; --muted: #737b8c; --line: rgba(18, 21, 28, 0.08); --line-2: rgba(18, 21, 28, 0.14);
    --grid: rgba(18, 21, 28, 0.06); --axis: rgba(18, 21, 28, 0.22); --accent: #6a58e8; --accent-2: #0fa982;
    --buy: #12a46c; --sell: #e0384f; --up: #12a46c; --down: #e0384f; --warn: #c98a12;
    --g0: #7c5ce6; --g1: #2f7fe6; --g2: #0f9f93; --g3: #c98a12;
    --shadow: 0 1px 2px rgba(18, 21, 28, 0.04), 0 18px 40px -22px rgba(18, 21, 28, 0.25);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { scroll-padding-top: 84px; }
body { background: var(--page); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, select, input { font: inherit; color: inherit; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* coin-coloured ambient glow behind the page */
.glow { position: fixed; inset: -20vh -10vw auto; height: 70vh; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 60% at 20% 20%, color-mix(in srgb, var(--coin) 22%, transparent), transparent 70%),
              radial-gradient(50% 50% at 85% 10%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 70%);
  transition: background 0.6s ease; }

/* ---------------- top bar ---------------- */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--page) 72%, transparent); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1320px; margin: 0 auto; padding: 10px max(16px, 2.5vw); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { text-decoration: none; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.logo svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.search { position: relative; flex: 1; max-width: 460px; margin-inline: auto; }
.search input { width: 100%; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); padding: 0 40px 0 38px; outline: none; transition: border-color .15s, background .15s; }
.search input:focus { border-color: color-mix(in srgb, var(--accent) 60%, var(--line-2)); background: var(--surface-solid); }
.search input::-webkit-search-cancel-button { display: none; }
.search-ic { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.kbd { position: absolute; right: 10px; top: 50%; translate: 0 -50%; font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; pointer-events: none; }
.q-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: var(--surface-solid); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.55); max-height: 60vh; overflow: auto; }
.q-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.q-list li[aria-selected="true"], .q-list li:hover { background: var(--surface-2); }
.q-list .qn { font-weight: 700; } .q-list .qs { color: var(--muted); font-size: 12px; }
.q-list .qp { text-align: right; font-family: var(--mono); font-size: 12.5px; }
.q-list .empty { display: block; color: var(--muted); text-align: center; padding: 14px; cursor: default; }
.top-right { display: flex; align-items: center; gap: 10px; flex: none; }
.mood-pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.mp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.live { background: var(--up); animation: pulse 2s infinite; }
.dot.warn { background: var(--warn); } .dot.err { background: var(--down); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linejoin: round; }
@media (max-width: 860px) { .live { display: none; } }
@media (max-width: 640px) {
  .topbar-in { flex-wrap: wrap; gap: 10px; }
  .brand-name { display: none; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .top-right { margin-left: auto; }
}

/* ---------------- layout ---------------- */
.wrap { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: 18px max(16px, 2.5vw) 56px; display: flex; flex-direction: column; gap: 22px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); min-width: 0; }
.section { display: flex; flex-direction: column; gap: 12px; }
.section[hidden] { display: none; }
h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.015em; }
h3 { margin: 0; font-size: 14.5px; font-weight: 700; letter-spacing: -0.005em; }
.note { margin: 0; font-size: 12.5px; color: var(--muted); max-width: 88ch; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.bar.tight { gap: 6px 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); gap: 14px; }
.card { padding: 18px 20px; display: flex; flex-direction: column; gap: 9px; }
.card.wide { grid-column: 1 / -1; }
.stamp { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.tag { font-family: var(--mono); font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }

/* ---------------- coin rail ---------------- */
.rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.rail-item { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 11px 13px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; overflow: hidden; transition: border-color .15s, transform .15s, background .15s; color: inherit; text-decoration: none; }
.rail-item:hover { border-color: var(--line-2); transform: translateY(-1px); text-decoration: none; }
.rail-item[aria-current="true"] { border-color: color-mix(in srgb, var(--c) 65%, transparent); background: linear-gradient(140deg, color-mix(in srgb, var(--c) 16%, var(--surface-solid)), var(--surface-solid) 70%); box-shadow: 0 10px 30px -14px color-mix(in srgb, var(--c) 70%, transparent); }
.rail-item .ri-logo { grid-row: 1 / 3; }
.rail-item .ri-name { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-item .ri-sym { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-item .ri-px { font-family: var(--mono); font-size: 13px; text-align: right; }
.rail-item .ri-ch { font-family: var(--mono); font-size: 11.5px; text-align: right; }
.rail-item.ext .ri-ch { color: var(--muted); font-family: var(--font); }
.coin-logo, .ri-logo, .q-logo { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; overflow: hidden; flex: none; background: var(--c, var(--accent)); font-size: 13px; }
.coin-logo img, .ri-logo img, .q-logo img { width: 100%; height: 100%; object-fit: cover; display: block; background: #fff; }
.q-logo { width: 28px; height: 28px; font-size: 11px; }

/* ---------------- gauges (market mood + coin signals) ---------------- */
.mood, .signals { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.mood-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.mood-body { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 820px) { .mood-body { grid-template-columns: 1fr; } }
.gauge-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.gauge { width: 100%; max-width: 260px; }
.gauge svg { display: block; width: 100%; height: auto; overflow: visible; }
.gauge .g-score { font-family: var(--mono); font-weight: 600; font-size: 30px; fill: var(--ink); }
.gauge .g-label { font-weight: 800; font-size: 14px; }
.gauge .g-tick { fill: var(--muted); font-size: 10.5px; }
.gauge-sum { margin: 0; text-align: center; font-size: 12.5px; color: var(--ink-2); max-width: 34ch; }
.sig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.sig { display: flex; flex-direction: column; gap: 4px; padding: 11px 13px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.sig::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--muted); opacity: 0.6; }
.sig.pos::before { background: var(--up); opacity: 1; } .sig.neg::before { background: var(--down); opacity: 1; } .sig.neu::before { background: var(--warn); opacity: 0.8; }
.sig-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sig-name { font-size: 12px; color: var(--muted); font-weight: 600; }
.chipv { font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.sig.pos .chipv { background: color-mix(in srgb, var(--up) 18%, transparent); color: var(--up); }
.sig.neg .chipv { background: color-mix(in srgb, var(--down) 18%, transparent); color: var(--down); }
.sig.neu .chipv { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.sig-val { font-family: var(--mono); font-size: 18px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sig-txt { font-size: 12px; color: var(--ink-2); line-height: 1.45; }
.sig-spark { height: 26px; margin-top: 2px; }
.sig-spark svg { display: block; width: 100%; height: 26px; overflow: visible; }

/* ---------------- hero ---------------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr); gap: 14px; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; } }
.hero-main { padding: 18px 20px 12px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; }
.hero-main::after { content: ""; position: absolute; inset: auto -30% -60% 30%; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--coin) 22%, transparent), transparent); pointer-events: none; }
.coin-id { display: flex; align-items: center; gap: 12px; }
.coin-id .coin-logo { width: 44px; height: 44px; font-size: 16px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--coin) 30%, transparent); }
.coin-name h1 { margin: 0; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.price { font-size: clamp(32px, 4.4vw, 46px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.changes { display: flex; gap: 6px; flex-wrap: wrap; }
.changes span { font-size: 12px; padding: 3px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--mono); white-space: nowrap; }
.changes em { font-style: normal; color: var(--muted); margin-right: 4px; font-family: var(--font); }
.spark { height: 96px; position: relative; z-index: 1; }
.spark svg { display: block; overflow: visible; }
.spark-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); position: relative; z-index: 1; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 13px 15px; display: flex; flex-direction: column; gap: 3px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.stat .k { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.stat .v { font-family: var(--mono); font-size: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .s { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flash-up { animation: fu 0.9s ease-out; } .flash-down { animation: fd 0.9s ease-out; }
@keyframes fu { from { color: var(--up); text-shadow: 0 0 18px color-mix(in srgb, var(--up) 60%, transparent); } to { color: inherit; } }
@keyframes fd { from { color: var(--down); text-shadow: 0 0 18px color-mix(in srgb, var(--down) 60%, transparent); } to { color: inherit; } }

.pulse { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--coin); border-radius: 14px; padding: 13px 18px; }
.pulse:empty { display: none; }
.pulse b { font-family: var(--mono); font-weight: 600; }

/* ---------------- controls ---------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); flex-wrap: wrap; }
.seg button { background: none; border: 0; padding: 5px 12px; border-radius: 9px; cursor: pointer; color: var(--muted); font-size: 12.5px; font-weight: 600; transition: background .15s, color .15s; }
.seg.small button { padding: 4px 9px; font-size: 12px; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface-solid); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 0 0 1px var(--line-2); }
.ghost { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 5px 11px; cursor: pointer; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.ghost:hover { color: var(--ink); }
.ghost[aria-pressed="true"] { background: color-mix(in srgb, var(--warn) 18%, var(--surface-2)); color: var(--ink); }
.mini { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.mini select { background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 4px 6px; color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.sw.buy { background: var(--buy); } .sw.sell { background: var(--sell); }

/* ---------------- charts ---------------- */
.chart { position: relative; min-height: 210px; }
.chart.tall { min-height: 320px; }
.chart svg { display: block; overflow: visible; }
.chart text, .spark text, .sig-spark text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .lbl { fill: var(--ink); font-size: 12.5px; font-weight: 600; }
.chart .val { fill: var(--ink); font-size: 11.5px; font-family: var(--mono); font-weight: 500; }
.chart .domain { display: none; }
.chart .tick line { stroke: var(--grid); }
.empty { color: var(--muted); font-size: 13px; padding: 30px 0; text-align: center; }
.cover { font-size: 11.5px; }
.cover:empty { display: none; }

/* ---------------- tables + lists ---------------- */
.tablewrap { overflow: auto; max-height: 380px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-solid); }
.tablewrap.tall { max-height: 520px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tbl th { position: sticky; top: 0; background: var(--surface-solid); z-index: 1; color: var(--muted); font-weight: 600; font-size: 11.5px; text-align: right; padding: 9px 11px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { text-align: right; padding: 7px 11px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl .l { text-align: left; }
.tbl td.num, .tbl .num { font-family: var(--mono); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl tr.new td { animation: rowin 1.3s ease-out; }
.tbl tr.big td { font-weight: 600; }
@keyframes rowin { from { background: color-mix(in srgb, var(--coin) 22%, transparent); } to { background: transparent; } }
.side { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 12px; }
.side::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.side.B { color: var(--buy); } .side.S { color: var(--sell); }
.grp { display: inline-flex; align-items: center; gap: 6px; }
.gdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.venue { font-size: 11.5px; color: var(--ink-2); }
.venue.d { color: var(--accent-2); }
.addr { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
a.addr:hover { color: var(--accent); }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow: auto; }
.list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; font-size: 12.5px; background: var(--surface-2); }
.list li .rk { color: var(--muted); font-family: var(--mono); font-size: 11.5px; min-width: 2ch; }
.list li .mid { min-width: 0; display: flex; flex-direction: column; }
.list li .mid small { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list li .amt { font-family: var(--mono); font-weight: 600; text-align: right; }
.list li.empty-row { display: block; border: 0; background: none; color: var(--muted); text-align: center; padding: 22px 0; }
.split { display: flex; height: 34px; border-radius: 10px; overflow: hidden; font-size: 12px; font-weight: 700; }
.split div { display: flex; align-items: center; padding: 0 12px; color: #fff; white-space: nowrap; min-width: 0; }
.split .b { background: var(--buy); } .split .s { background: var(--sell); justify-content: flex-end; }
.pools { display: flex; flex-wrap: wrap; gap: 6px; }
.pools a { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); }
.hide-sm { }
@media (max-width: 640px) { .hide-sm { display: none; } .card { padding: 15px 14px; } }

.foot { color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.foot p { margin: 0; max-width: 110ch; }
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--surface-solid); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font-size: 12px; box-shadow: 0 16px 40px -14px rgba(0,0,0,.55); max-width: 280px; }
.tip b { font-family: var(--mono); font-weight: 600; }
.tip .t-h { font-weight: 700; margin-bottom: 3px; }
.tip .t-r { display: flex; justify-content: space-between; gap: 14px; }
.skeleton { color: transparent !important; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* PONS extras */
.full-link { margin-left: auto; align-self: center; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--coin) 50%, var(--line-2)); background: color-mix(in srgb, var(--coin) 14%, var(--surface-2)); color: var(--ink); white-space: nowrap; position: relative; z-index: 1; }
.full-link:hover { text-decoration: none; background: color-mix(in srgb, var(--coin) 24%, var(--surface-2)); }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.trio > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trio .k { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.trio .v { font-family: var(--mono); font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trio .s { font-size: 11.5px; color: var(--ink-2); }
@media (max-width: 560px) { .trio { grid-template-columns: 1fr; } }

/* smart money */
.sm-star { color: var(--warn); }
.sm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.sm-insight { border-left-color: var(--warn); }
.sm-sub { margin-top: 6px; }
.badge-sm { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; margin-right: 6px; font-size: 11px; color: #1a1300; background: var(--warn); vertical-align: middle; }
.tbl tr.sm-row td { background: color-mix(in srgb, var(--warn) 7%, transparent); }
.wr { font-family: var(--mono); font-weight: 700; }
.mini-label { display: block; font-size: 11px; color: var(--muted); font-family: var(--font); }
