/* CapTicker: dark-first, vivid accents, data set in tabular figures. */
:root {
  --bg: #f5f7fb; --bg2: #eef2f9; --panel: #ffffff; --panel2: #f8faff; --fg: #0d1421; --muted: #616e85; --muted2: #a6b0c3; --line: #e5e9f2; --hover: #f2f5fc;
  --accent: #3861fb; --accent2: #8b5cf6; --brand: linear-gradient(135deg, #3861fb 0%, #8b5cf6 55%, #ec4899 100%);
  --up: #16c784; --down: #ea3943; --up-bg: rgba(22, 199, 132, .12); --down-bg: rgba(234, 57, 67, .12);
  --est: #b26a00; --est-bg: #fff4e0; --warn: #d9822b;
  --fng-0: #ea3943; --fng-1: #ea8c00; --fng-2: #f3d42f; --fng-3: #93d900; --fng-4: #16c784;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e17; --bg2: #0f1320; --panel: #131828; --panel2: #171d30; --fg: #eef1f8; --muted: #8a94ab; --muted2: #4b5570; --line: #222a3f; --hover: #1a2135;
    --accent: #5b7cff; --accent2: #a78bfa;
    --up: #20d38f; --down: #ff4d5e; --up-bg: rgba(32, 211, 143, .13); --down-bg: rgba(255, 77, 94, .13);
    --est: #f3b55f; --est-bg: #2c2214; --warn: #f3a54b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { letter-spacing: -.01em; text-wrap: balance; }
.num, td.r, .big, .big2 { font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); } .muted { color: var(--muted); } .warn { color: var(--warn); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 10px 24px; background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--fg); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .word span { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand); box-shadow: 0 4px 14px rgba(91, 124, 255, .45); }
.nav { display: flex; gap: 2px; }
@media (max-width: 1280px) {
  .topbar { flex-wrap: wrap; row-gap: 6px; }
  .nav { order: 10; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav a { white-space: nowrap; }
}
.nav a { color: var(--muted); font-weight: 600; font-size: 14px; padding: 7px 11px; border-radius: 8px; }
.nav a:hover { color: var(--fg); background: var(--hover); text-decoration: none; }
.nav a.on { color: var(--fg); background: var(--hover); }
.nav .new { font-size: 10px; font-weight: 700; color: #fff; background: var(--brand); border-radius: 6px; padding: 1px 5px; margin-left: 3px; vertical-align: 2px; }
.searchbox { position: relative; margin-left: auto; }
.searchbox input { width: 300px; padding: 9px 36px 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); color: var(--fg); font: inherit; transition: border-color .15s, width .2s; }
.searchbox input:focus { border-color: var(--accent); outline: none; width: 360px; }
.searchbox kbd { position: absolute; right: 9px; top: 8px; font: 11px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.search-results { position: absolute; right: 0; top: calc(100% + 8px); width: 380px; max-height: 440px; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 30; padding: 6px; }
.search-results a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: var(--fg); border-radius: 8px; }
.search-results a:hover, .search-results a.sel { background: var(--hover); text-decoration: none; }
.search-results .r { margin-left: auto; text-align: right; font-size: 12px; }
.iconbtn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px; border-radius: 10px; color: var(--fg); background: var(--bg2); border: 1px solid var(--line); cursor: pointer; font-weight: 600; }
.iconbtn:hover { border-color: var(--accent); text-decoration: none; }
.count:empty { display: none; }
.count { font: 700 11px var(--sans); color: #fff; background: var(--accent); border-radius: 9px; padding: 1px 6px; }
.btn { font: 600 13px var(--sans); padding: 8px 14px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); border-radius: 10px; cursor: pointer; transition: border-color .15s, transform .05s; }
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: #fff; border: 0; box-shadow: 0 4px 14px rgba(91, 124, 255, .35); }
.btn.ghost { background: transparent; }
.btn.up { color: var(--up); background: var(--up-bg); border-color: transparent; }
.btn.down { color: var(--down); background: var(--down-bg); border-color: transparent; }

main { max-width: 1400px; margin: 0 auto; padding: 20px 24px 28px; }
.foot { max-width: 1400px; margin: 0 auto; padding: 10px 24px 40px; color: var(--muted); font-size: 12px; display: grid; gap: 4px; }
.statusbar { position: sticky; bottom: 0; display: flex; gap: 20px; flex-wrap: wrap; padding: 8px 24px; font-size: 12px; color: var(--muted); background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); z-index: 10; }
.statusbar b { color: var(--fg); font: 600 12px var(--sans); font-variant-numeric: tabular-nums; }
.feeds i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin: 0 4px 0 10px; background: var(--down); box-shadow: 0 0 0 3px var(--down-bg); }
.feeds i.on { background: var(--up); box-shadow: 0 0 0 3px var(--up-bg); }
.toast { position: fixed; bottom: 54px; left: 50%; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 13px; z-index: 40; box-shadow: var(--shadow); }

/* ---------- shared bits ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.panel h2 { font-size: 15px; margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tablewrap { overflow-x: auto; }
.empty { padding: 44px; text-align: center; color: var(--muted); }
.note { padding: 14px; color: var(--muted); font-size: 13px; }
.insight { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.pill { display: inline-block; font: 700 11px var(--sans); padding: 3px 8px; border-radius: 999px; background: var(--hover); color: var(--muted); }
.pill.up { color: var(--up); background: var(--up-bg); } .pill.down { color: var(--down); background: var(--down-bg); } .pill.neutral, .pill.warn { color: var(--warn); background: var(--est-bg); }
.tag { font: 600 10.5px var(--sans); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.tag.est { color: var(--est); border-color: color-mix(in srgb, var(--est) 50%, transparent); cursor: help; }
.tag.hot { color: #fff; background: linear-gradient(135deg, #ff7a18, #ff3d71); border: 0; }
.chip { display: inline-block; font: 600 11px var(--sans); padding: 3px 8px; border-radius: 6px; background: var(--hover); color: var(--muted); margin-right: 4px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; flex-wrap: wrap; }
.seg button { font: 600 12.5px var(--sans); padding: 6px 11px; border: 0; background: transparent; color: var(--muted); border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--fg); box-shadow: var(--shadow); }
.logo { --h: 220; position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: hsl(var(--h) 60% 50% / .18); color: hsl(var(--h) 70% 55%); font: 700 9.5px var(--sans); overflow: hidden; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: var(--panel); }
.exlogo { border-radius: 8px; font-size: 11px; }
.chaindot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; vertical-align: 1px; }
.seg .chaindot { margin: 0; }
.ch-ethereum { background: #627eea; } .ch-solana { background: linear-gradient(135deg, #9945ff, #14f195); } .ch-bsc { background: #f0b90b; } .ch-base { background: #0052ff; } .ch-arbitrum { background: #28a0f0; } .ch-optimism { background: #ff0420; } .ch-polygon { background: #8247e5; } .ch-avalanchec { background: #e84142; }
.star { background: none; border: 0; cursor: pointer; font-size: 17px; color: var(--muted2); padding: 0 2px; line-height: 1; transition: transform .1s; }
.star:hover { color: #f5b300; transform: scale(1.15); }
.star.on { color: #f5b300; }

/* ---------- home ---------- */
.today { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 14px; border-radius: 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, var(--panel)), var(--panel)); border: 1px solid var(--line); font-size: 14px; }
.today:empty { display: none; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.cards.compact { display: none; }
@media (max-width: 1200px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .searchbox input { width: 170px; } .searchbox input:focus { width: 200px; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--brand); opacity: .85; }
.card header { display: flex; justify-content: space-between; align-items: baseline; }
.card h3 { margin: 0; font-size: 14px; font-weight: 700; }
.card header a { font-size: 12px; font-weight: 600; }
.card .k { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.card .big { font: 700 22px var(--sans); letter-spacing: -.02em; }
.split2 { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.gauge-mini { text-align: center; }
.gauge-mini .glabel { font: 700 11px var(--sans); margin-top: -4px; }
.gval { font: 700 20px var(--sans); fill: var(--fg); }
.breadthbar, .altbar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--hover); }
.breadthbar i { display: block; height: 100%; }
.altbar { position: relative; background: linear-gradient(90deg, #f7931a, #f3d42f 50%, #3861fb); overflow: visible; height: 6px; }
.altbar i { position: absolute; top: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--panel); border: 3px solid var(--fg); transform: translateX(-50%); }
.kv { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.kv b { color: var(--fg); font-weight: 700; }
ol.mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
ol.mini li a, ol.mini li { display: flex; align-items: center; gap: 9px; padding: 5px 4px; border-radius: 8px; color: var(--fg); font-size: 13px; }
ol.mini li a:hover { background: var(--hover); text-decoration: none; }
ol.mini .nm { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ol.mini .r { margin-left: auto; font-weight: 600; }
.minibars { display: flex; align-items: flex-end; gap: 2px; height: 42px; }
.minibars span { flex: 1; display: flex; flex-direction: column-reverse; gap: 1px; height: 100%; }
.minibars i { display: block; border-radius: 2px; min-height: 0; }
.dropcta { display: grid; gap: 2px; padding: 12px; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 7%, transparent); cursor: pointer; font-size: 12.5px; color: var(--muted); }
.dropcta b { color: var(--fg); font-size: 13.5px; }
.dropcta:hover { border-color: var(--accent); }
.answers { margin-bottom: 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.qchip { display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--sans); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); cursor: pointer; box-shadow: var(--shadow); transition: border-color .15s; }
.qchip:hover, .qchip.on { border-color: var(--accent); }
.qchip.on { background: color-mix(in srgb, var(--accent) 10%, var(--panel)); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted2); }
.dot.up { background: var(--up); } .dot.down { background: var(--down); } .dot.warn { background: var(--fng-1); }
.answer { margin-top: 12px; padding: 16px 18px; display: grid; gap: 10px; }
.verdict-l { font: 700 18px var(--sans); letter-spacing: -.01em; }
.verdict-l.up { color: var(--up); } .verdict-l.down { color: var(--down); }
.answer ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--fg); }
.evid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.evid div { background: var(--bg2); border-radius: 10px; padding: 8px 10px; display: grid; }
.evid span { font-size: 11.5px; color: var(--muted); } .evid b { font-size: 15px; } .evid small { font-size: 11px; color: var(--muted); }

/* ---------- lists ---------- */
.tabs { display: flex; gap: 2px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; align-items: center; margin: 6px 0 10px; border-bottom: 1px solid var(--line); }
.tabs a { white-space: nowrap; padding: 10px 12px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--fg); text-decoration: none; }
.tabs a.on { color: var(--fg); border-bottom-color: var(--accent); }
.tabs .sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; }
.filters { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.filters .explain { margin: 0; color: var(--muted); font-size: 13px; max-width: 70ch; }
.fgroup { display: flex; gap: 8px; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { font-size: 12px; color: var(--muted); font-weight: 600; position: sticky; top: 0; background: var(--panel); z-index: 1; }
td.r, th.r { text-align: right; }
tbody tr:last-child td { border-bottom: 0; }
table.rank tbody tr { cursor: pointer; transition: background .1s; }
table.rank tbody tr:hover { background: var(--hover); }
.namecell { min-width: 200px; }
.coin { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.coin:hover { text-decoration: none; }
.coin b { font-weight: 600; }
.nmwrap { display: grid; line-height: 1.25; }
.tick { color: var(--muted); font-size: 12px; font-weight: 500; }
.pp { display: inline-block; font: 600 12.5px var(--sans); font-variant-numeric: tabular-nums; padding: 2px 7px; border-radius: 6px; }
.pp.up { color: var(--up); background: var(--up-bg); } .pp.down { color: var(--down); background: var(--down-bg); }
td small { display: block; font-size: 11px; }
.why { font-size: 12.5px; color: var(--muted); white-space: normal; min-width: 200px; max-width: 300px; }
.why b { color: var(--fg); }
.sparkcell { width: 130px; }
.sparkcell svg { display: block; }
.tradebtn { font: 700 12px var(--sans); padding: 5px 11px; border-radius: 8px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.tradebtn:hover { text-decoration: none; background: var(--accent); color: #fff; }
.sbar { width: 90px; height: 6px; border-radius: 3px; background: var(--down-bg); overflow: hidden; margin-left: auto; }
.sbar i { display: block; height: 100%; background: var(--up); }
.sbar.big { width: 100%; height: 10px; border-radius: 5px; margin: 8px 0 4px; }
.lsbar { width: 90px; height: 5px; border-radius: 3px; background: var(--down); margin: 4px 0 0 auto; overflow: hidden; }
.lsbar i { display: block; height: 100%; background: var(--up); }
.sharebar { width: 120px; height: 6px; border-radius: 3px; background: var(--hover); overflow: hidden; }
.sharebar i { display: block; height: 100%; background: var(--brand); }
.foot-note { font-size: 12px; margin-top: 10px; }
.flash-up { animation: fu .9s; } .flash-down { animation: fd .9s; }
@keyframes fu { from { background: var(--up-bg); } to { background: transparent; } }
@keyframes fd { from { background: var(--down-bg); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .flash-up, .flash-down { animation: none; } }

/* ---------- pages ---------- */
.pagehead { margin-bottom: 16px; }
.pagehead h1 { font-size: 28px; margin: 4px 0 6px; }
.pagehead p { margin: 0; color: var(--muted); max-width: 90ch; }
.back { font-size: 13px; font-weight: 600; }
.toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar h1 { font-size: 26px; margin: 0; }
.toolbar p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 16px; box-shadow: var(--shadow); }
.stats > div { background: var(--panel); padding: 12px 16px; }
.stats span { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.stats b { font: 700 17px var(--sans); display: block; font-variant-numeric: tabular-nums; }
.stats small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.supnote { padding: 10px 14px; border-radius: 10px; background: var(--est-bg); color: var(--est); font-size: 13px; margin: 0 0 16px; }
.panel + .panel, .panel.supply, #c-where, #c-derivs { margin-bottom: 16px; }

/* coin page */
.coinhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.coinhead h1 { margin: 6px 0 0; font-size: 26px; display: flex; align-items: center; gap: 10px; }
.coinhead .logo { width: 40px; height: 40px; font-size: 12px; }
.bigprice { font: 700 34px var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bigchg { font: 700 16px var(--sans); margin-left: 10px; }
.coingrid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; margin-bottom: 16px; }
@media (max-width: 900px) { .coingrid { grid-template-columns: 1fr; } }
.qread { margin: 0; padding: 12px 16px 14px 32px; display: grid; gap: 6px; font-size: 14px; }
#c-vote { padding-bottom: 14px; }
#c-vote > *:not(h2) { margin-left: 16px; margin-right: 16px; }
.votebtns { display: flex; gap: 8px; margin-top: 14px !important; }
.chartbox { padding: 10px; margin-bottom: 16px; }
.charttools { display: flex; gap: 6px; align-items: center; padding: 2px 4px 10px; flex-wrap: wrap; }
.charttools button { font: 600 12px var(--sans); padding: 5px 11px; border: 1px solid var(--line); background: transparent; color: var(--fg); border-radius: 8px; cursor: pointer; }
.charttools button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.charttools .src { margin-left: auto; font-size: 12px; color: var(--muted); }
#chart { height: 440px; }
.cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } #chart { height: 340px; } }
.tape { max-height: 420px; overflow-y: auto; }
.tape td { padding: 6px 12px; font-size: 12.5px; }
.excluded td { opacity: .45; }
.verdict { font-size: 15px; line-height: 1.55; padding: 12px 16px; }
.cmpbars { padding: 4px 16px 16px; display: grid; grid-template-columns: 200px 1fr 80px; gap: 9px 12px; align-items: center; font-size: 13px; }
.cmpbar { position: relative; height: 10px; background: var(--hover); border-radius: 5px; }
.cmpbar i { position: absolute; top: 0; height: 100%; border-radius: 5px; }
.cmpbar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--muted); }
.calc { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 14px 16px; font-size: 13px; }
.calc span { display: block; font-size: 11.5px; color: var(--muted); }
.calc b { font-weight: 600; }
#c-where .insight { padding: 10px 16px 0; }

/* exchanges, launchpad, developers */
.lpgrid, .devgrid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .lpgrid, .devgrid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 10px; padding: 14px 16px 16px; }
.form label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.form input, .form textarea, .dt { font: inherit; color: var(--fg); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.form input:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.err { color: var(--down); font-size: 13px; margin: 0; }
.lpform > p { padding: 12px 16px 0; margin: 0; }
#lp-subs { padding: 0 16px 16px; }
#lp-subs h3 { font-size: 13px; }
.docs { padding-bottom: 6px; margin-bottom: 16px; }
.docs > p, .docs > h3, .docs > pre { margin-left: 16px; margin-right: 16px; }
.docs h3 { font-size: 13px; margin-top: 14px; }
pre { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; font: 12.5px/1.55 var(--mono); }
code { font-family: var(--mono); font-size: 12.5px; }
.eps td { white-space: normal; vertical-align: top; }
.eps code { font-weight: 600; }
.method { font: 700 10.5px var(--mono); padding: 3px 7px; border-radius: 5px; }
.method.get { color: var(--up); background: var(--up-bg); } .method.post { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.keybox { position: sticky; top: 76px; }
.keybox > h3, .keybox > p, #key-out { margin: 0 16px 12px; }
.keybox > h3 { font-size: 13px; margin-top: 8px; }

/* ETF and sentiment pages (shared classes) */
table.grid td, table.grid th { padding: 7px 10px; font-size: 12.5px; }
.fng-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; margin-bottom: 16px; }
@media (max-width: 900px) { .fng-top { grid-template-columns: 1fr; } }
.gauge { padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gauge svg { width: 100%; max-width: 320px; height: auto; }
.gauge .big { font: 700 46px var(--sans); line-height: 1; }
.gauge .lbl { font-size: 18px; font-weight: 700; }
.gauge .cmp { display: flex; gap: 18px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.gauge .cmp b { display: block; font: 700 15px var(--sans); color: var(--fg); }
.bar { height: 8px; background: var(--hover); border-radius: 4px; overflow: hidden; min-width: 120px; }
.bar i { display: block; height: 100%; border-radius: 4px; }
.method h2 { padding-left: 0 !important; }
.method p { margin: 0 0 8px; max-width: 80ch; }
.panel.method { padding: 14px 16px; font-size: 13px; color: var(--muted); }
.banner { padding: 12px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 12px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: var(--shadow); }

/* ---------- questions ---------- */
.dropzone { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(4px); }
.dropzone div { padding: 36px 48px; border-radius: 20px; border: 2px dashed var(--accent); background: var(--panel); font: 700 18px var(--sans); box-shadow: var(--shadow); }
.reading { padding: 48px; text-align: center; max-width: 640px; margin: 40px auto; }
.reading h2 { border: 0; font-size: 20px; }
.spinner { width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 50%; border: 4px solid var(--hover); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.qhead { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 16px; }
.qhead h1 { font-size: 26px; margin: 4px 0 0; max-width: 34ch; }
.qactions { display: flex; gap: 8px; flex-wrap: wrap; }
.qgrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .qgrid { grid-template-columns: 1fr; } }
.qevidence { padding: 12px; }
.shot { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.shot img { display: block; width: 100%; height: auto; }
.hl { position: absolute; border: 2px solid rgba(245, 179, 0, .85); background: rgba(245, 179, 0, .12); border-radius: 4px; cursor: pointer; padding: 0; transform: scale(1.15); }
.hl.used { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.hl.sel { box-shadow: 0 0 0 4px #f5b300; }
.figs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip.fig { cursor: pointer; border: 1px solid transparent; }
.chip.fig.used { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.chip.fig.sel { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.figmath { font-size: 13px; background: var(--bg2); border-radius: 10px; padding: 10px 12px; }
.srctext { margin: 0; padding: 12px; background: var(--bg2); border-radius: 10px; white-space: pre-wrap; }
.qanswer { padding: 18px; display: grid; gap: 12px; }
.headline { font: 700 21px/1.35 var(--sans); letter-spacing: -.01em; }
.headline.sm { font-size: 15px; }
.sentences { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.qchart { width: 100%; height: auto; display: block; }
.qchart .ax { font: 11px var(--sans); fill: var(--muted); }
.qchart .val { font: 600 12px var(--sans); fill: var(--fg); }
.assume { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--bg2); }
.arow { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.arow .seg { background: var(--panel); }
.askbox { display: flex; gap: 8px; }
.askbox input { flex: 1; font: inherit; color: var(--fg); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.askbox input:focus { border-color: var(--accent); outline: none; }
.needtime h2 { border: 0; padding: 0; font-size: 20px; }
.followgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 14px 16px; }
ol.steps { margin: 0; padding: 12px 16px 14px 36px; display: grid; gap: 8px; font-size: 13.5px; }
ol.steps li.cur { font-weight: 600; }

/* derivatives dashboards */
.fd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.fd-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fd-grid .panel { margin: 0 !important; }
.fd-list { display: grid; }
.fd-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--fg); text-decoration: none; font-size: 13px; }
.fd-item:first-child { border-top: 0; }
.fd-item:hover { background: var(--hover); }
.fd-item .muted { font-size: 12px; margin-top: 2px; }
.fd-table td.fd-cell { font-size: 12px; }
.lq-chart { display: flex; align-items: flex-end; gap: 4px; height: 220px; padding: 16px 16px 30px; position: relative; }
.lq-bar { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; position: relative; min-width: 0; }
.lq-bar i { display: block; width: 100%; border-radius: 3px 3px 0 0; }
.lq-bar i.l, .lq-legend i.l { background: var(--down); }
.lq-bar i.s, .lq-legend i.s { background: var(--up); }
.lq-bar i + i { border-radius: 3px 3px 0 0; margin-bottom: 1px; }
.lq-bar span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--muted); }
.lq-legend { position: absolute; top: 8px; right: 16px; display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.lq-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
@media (max-width: 1000px) { .fd-grid, .fd-grid.two { grid-template-columns: 1fr; } }
.chip.open { color: var(--up); background: var(--up-bg); }
.tk-read { font-size: 12px; color: var(--muted); white-space: normal; max-width: 36ch; margin-top: 6px; line-height: 1.4; }

/* market view */
.mv { padding: 16px 18px; margin-bottom: 14px; }
.mv:empty { display: none; }
.mv-head { display: flex; gap: 14px; align-items: flex-start; }
.mv-head > div { flex: 1; min-width: 0; }
.mv-reg { font-size: 13px; padding: 6px 12px; }
.mv-more { font-size: 13px; font-weight: 600; white-space: nowrap; }
.mv-meter { position: relative; height: 6px; border-radius: 6px; margin-top: 10px; background: linear-gradient(90deg, var(--down), #8b93a7 50%, var(--up)); max-width: 420px; }
.mv-meter i { position: absolute; top: -4px; width: 4px; height: 14px; border-radius: 2px; background: var(--fg); transform: translateX(-2px); box-shadow: 0 0 0 2px var(--panel); }
.mv-scale { display: flex; justify-content: space-between; max-width: 420px; font-size: 11px; color: var(--muted); margin-top: 3px; }
.mv-qs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin: 14px 0 4px; }
.mv-q { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
.mv-n { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--sans); color: #fff; background: linear-gradient(135deg, #3861fb, #8b5cf6); }
.mv-qq { font-size: 12px; color: var(--muted); font-weight: 600; }
.mv-a { font-size: 13.5px; margin-top: 3px; font-weight: 600; }
.mv-atts { display: grid; gap: 6px; margin-top: 6px; }
.mv-att { display: flex; gap: 8px; align-items: flex-start; color: var(--fg); text-decoration: none; font-size: 12.5px; }
.mv-att .muted { font-size: 11.5px; }
.mv-sig { margin-top: 12px; }
.mv-sig tr.stale { opacity: .55; }
.lean { font-size: 12px; font-weight: 700; } .lean.up { color: var(--up); } .lean.down { color: var(--down); } .lean.flat { color: var(--muted); }
.mv-track { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.mv-track b { color: var(--fg); }
.mv-days { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.mv-day { font: 600 11px var(--mono); padding: 3px 6px; border-radius: 6px; background: var(--hover); }
.mv-day.ok { background: var(--up-bg); color: var(--up); } .mv-day.bad { background: var(--down-bg); color: var(--down); }
.mv-qs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mv-q:nth-child(3) { grid-column: span 2; }
.mv-qs .mv-q:nth-child(3) .mv-atts { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
@media (min-width: 1100px) { .mv-qs { grid-template-columns: 1fr 1fr 2fr 1fr 1.3fr; } .mv-q:nth-child(3) { grid-column: auto; } }
@media (max-width: 1099px) { .mv-qs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mv-qs { grid-template-columns: 1fr; } .mv-q:nth-child(3) { grid-column: auto; } }

/* community */
.cm-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.cm-grid > aside { display: grid; gap: 14px; position: sticky; top: 120px; }
.cm-side h2 { font-size: 14px; }
.cm-how ul { margin: 0; padding: 12px 16px 14px 30px; font-size: 12.5px; color: var(--muted); display: grid; gap: 6px; }
.cm-feed { display: grid; gap: 10px; }
.cm-tr, .cm-lb { display: flex; gap: 10px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line); color: var(--fg); text-decoration: none; font-size: 13px; }
.cm-tr:first-child, .cm-lb:first-child { border-top: 0; }
.cm-tr:hover, .cm-lb:hover { background: var(--hover); }
.grow { flex: 1; min-width: 0; }
.crowd { height: 4px; border-radius: 4px; background: var(--down); margin: 4px 0 2px; overflow: hidden; max-width: 120px; }
.crowd i { display: block; height: 100%; background: var(--up); }
.post { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.post.sys { border-color: color-mix(in srgb, #8b5cf6 45%, var(--line)); }
.post-h { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.post-h a { color: var(--fg); text-decoration: none; }
.post-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--sans); color: #fff; background: linear-gradient(135deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 60) 70% 45%)); text-decoration: none; }
.post-av.big { width: 64px; height: 64px; font-size: 26px; }
.post-b { margin: 10px 0 0 44px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.post-b .tick { font-weight: 600; }
.post-f { display: flex; gap: 6px; align-items: center; margin: 10px 0 0 44px; flex-wrap: wrap; }
.pa { font: 600 12px var(--sans); border: 0; background: transparent; color: var(--muted); padding: 4px 8px; border-radius: 8px; cursor: pointer; text-decoration: none; }
.pa:hover { background: var(--hover); color: var(--fg); }
.pa.on { color: #ec4899; }
.pa.sub { margin-left: auto; font-weight: 500; opacity: .7; }
.chip.sys { color: #a78bfa; background: rgba(139, 92, 246, .14); }
.chip.rec.up { color: var(--up); background: var(--up-bg); } .chip.rec.down { color: var(--down); background: var(--down-bg); }
.callbox { margin: 10px 0 0 44px; border: 1px solid var(--line); border-left: 3px solid #8b5cf6; border-radius: 10px; padding: 10px 12px; font-size: 13px; background: var(--bg2); display: grid; gap: 5px; }
.callbox.ok { border-left-color: var(--up); } .callbox.bad { border-left-color: var(--down); }
.cb-tag { font: 700 10.5px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: #a78bfa; }
.cb-line { color: var(--muted); font-size: 12.5px; } .cb-line span { font-weight: 700; color: var(--fg); margin-right: 6px; }
.cb-out { font-weight: 700; } .cb-out.ok { color: var(--up); } .cb-out.bad { color: var(--down); }
.cb-live { color: var(--muted); font-size: 12.5px; }
.composer, .cm-join { padding: 14px 16px; margin-bottom: 12px; display: grid; gap: 10px; }
.cm-join h3 { margin: 0; font-size: 15px; } .cm-join p { margin: 0; font-size: 13px; }
.composer-top { display: flex; gap: 10px; }
.composer textarea, .composer input, .composer select, .cm-join input { width: 100%; font: 14px var(--sans); color: var(--fg); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; resize: vertical; }
.composer textarea:focus, .composer input:focus, .cm-join input:focus { outline: none; border-color: var(--accent); }
.composer-opts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.composer-opts .cm-coin { width: 90px; text-transform: uppercase; }
.composer-opts select { width: auto; padding: 6px 8px; }
.cm-callt { font-size: 12.5px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.cm-callt input { width: auto; }
.composer-call { display: grid; gap: 8px; } .composer-call p { margin: 0; font-size: 12px; }
.cm-row { display: flex; gap: 8px; }
.cm-narrow { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.cm-rh { font-size: 14px; margin: 6px 0 0; }
.cm-prof { padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.cm-prof h1 { margin: 0; font-size: 22px; } .cm-prof p { margin: 4px 0 0; font-size: 13px; }
.cm-stats, .cc-sum { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.cm-stats div, .cc-sum div { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.cm-stats b, .cc-sum b { font-size: 17px; } .cm-stats span, .cc-sum span { font-size: 11.5px; color: var(--muted); }
.cc-sum { padding: 14px 16px; }
#c-community { margin-bottom: 16px; }
#toast.show { opacity: 1; }
@media (max-width: 1150px) { .cm-grid { grid-template-columns: minmax(0, 1fr) 280px; } .cm-grid > aside:first-child { display: none; } }
@media (max-width: 820px) { .cm-grid { grid-template-columns: 1fr; } .cm-grid > aside { position: static; } .post-b, .post-f, .callbox { margin-left: 0; } }

/* coin insight */
#c-why, #c-perf, #c-dev { margin-bottom: 16px; }
#c-why h2 { display: flex; gap: 10px; align-items: center; }
.wy-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; padding: 14px 16px 16px; }
.wy-verdict { margin: 0 0 8px; font-size: 15px; font-weight: 600; line-height: 1.45; }
.wy-bar { display: grid; grid-template-columns: 150px 1fr 64px; gap: 8px; align-items: center; font-size: 12.5px; margin-bottom: 6px; }
.wy-bar > span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wy-bar > b { text-align: right; font-family: var(--mono); font-size: 12px; }
.wy-track { position: relative; height: 10px; background: var(--bg2); border-radius: 5px; }
.wy-track::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line); }
.wy-track i { position: absolute; top: 0; bottom: 0; border-radius: 5px; }
.wy-track i.up { background: var(--up); } .wy-track i.down { background: var(--down); }
.wy-track i.own { background-image: repeating-linear-gradient(45deg, transparent 0 4px, rgba(255,255,255,.25) 4px 6px); }
.wy-split .evid { margin-top: 10px; }
.pf-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 2fr); gap: 10px; padding: 14px 16px; }
.pf-grid > div { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; align-content: start; }
.pf-grid span { font-size: 11.5px; color: var(--muted); } .pf-grid b { font-size: 15px; } .pf-grid small { font-size: 11px; color: var(--muted); }
.pf-venues { display: grid; gap: 3px; margin-top: 6px; font-size: 12px; }
.pf-venues div { display: grid; grid-template-columns: 70px 1fr auto; gap: 6px; }
.pf-venues b { font-size: 12px; } .pf-venues span { font-size: 12px; color: var(--fg); }
.cv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; padding: 14px 16px 16px; align-items: start; }
.cv { display: flex; gap: 10px; align-items: center; }
.cv label { flex: 1; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); overflow: hidden; }
.cv input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: 600 15px var(--mono); padding: 10px 12px; }
.cv input:focus { outline: none; }
.cv label span { padding: 0 12px; font-weight: 700; font-size: 12px; color: var(--muted); }
.apisnip pre { margin: 6px 0; padding: 10px 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; font: 12px var(--mono); overflow-x: auto; }
.apisnip a { font-size: 12.5px; font-weight: 600; }
@media (max-width: 1100px) { .pf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pf-depth { grid-column: 1 / -1; } }
@media (max-width: 820px) { .wy-body, .cv-grid { grid-template-columns: 1fr; } .wy-bar { grid-template-columns: 110px 1fr 58px; } .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* news */
.nw-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.nw-grid > aside { display: grid; gap: 14px; position: sticky; top: 120px; }
.nw-list { display: grid; gap: 8px; }
.nw-item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.nw-item.moved { border-left: 3px solid #f59e0b; }
.nw-meta { font-size: 12px; }
.nw-title { color: var(--fg); font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.nw-title:hover { color: var(--accent); }
.nw-coins { display: flex; gap: 6px; flex-wrap: wrap; }
.nw-coin { display: inline-flex; gap: 6px; align-items: baseline; font-size: 12px; padding: 3px 8px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.nw-coin small { color: var(--muted); font-size: 10.5px; }
#c-news { margin-bottom: 16px; }
#c-news .nw-item { background: var(--bg2); }
@media (max-width: 960px) { .nw-grid { grid-template-columns: 1fr; } .nw-grid > aside { position: static; } }

/* ask */
#ask-thread { display: grid; gap: 12px; }
.ask-turn { display: grid; gap: 8px; }
.ask-q { justify-self: end; max-width: 80%; background: linear-gradient(135deg, #3861fb, #8b5cf6); color: #fff; padding: 10px 14px; border-radius: 14px 14px 4px 14px; font-size: 14px; }
.ask-a { padding: 14px 16px; display: grid; gap: 10px; }
.ask-body p { margin: 0 0 6px; font-size: 14px; line-height: 1.55; } .ask-body ul { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.55; }
.ask-ev { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 12px; }
.ask-check { font-size: 12px; padding: 6px 10px; border-radius: 8px; } .ask-check.ok { background: var(--up-bg); color: var(--up); } .ask-check.warn { background: var(--est-bg); color: var(--warn); }
.ask-foot { font-size: 11.5px; }
#ask-chips { gap: 6px; } #ask-chips .qchip { font-size: 12px; }

/* nav dropdowns */
.dd { position: relative; display: inline-flex; }
.dd > a::after { content: "▾"; font-size: 9px; margin-left: 4px; opacity: .6; }
.dd-menu { position: absolute; top: 100%; left: 0; z-index: 60; min-width: 320px; padding: 8px; display: none; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.dd-menu.right { left: auto; right: 0; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: grid; }
.dd-menu a { display: grid !important; gap: 1px; padding: 9px 12px !important; border-radius: 9px; text-decoration: none; color: var(--fg) !important; white-space: normal; }
.dd-menu a:hover { background: var(--hover); }
.dd-menu b { font-size: 13.5px; font-weight: 650; } .dd-menu span { font-size: 12px; color: var(--muted); font-weight: 450; }
.btn.pro { background: linear-gradient(135deg, #3861fb, #8b5cf6 60%, #ec4899); color: #fff; border: 0; text-decoration: none; white-space: nowrap; }
.btn.pro:hover { filter: brightness(1.08); }
#acct-btn { text-decoration: none; white-space: nowrap; }
.bell { position: relative; }

/* pricing & account */
.hero { text-align: center; max-width: 820px; margin: 8px auto 22px; display: grid; gap: 12px; justify-items: center; }
.hero h1 { font-size: 34px; letter-spacing: -.02em; margin: 0; line-height: 1.15; background: linear-gradient(120deg, var(--fg), #a78bfa 60%, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.pr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.pr-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow); }
.pr-card.featured { border-color: transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, linear-gradient(135deg, #3861fb, #8b5cf6, #ec4899) border-box; border: 2px solid transparent; }
.pr-card h3 { margin: 0; font-size: 18px; } .pr-card p { margin: 0; font-size: 13px; }
.pr-badge { position: absolute; top: -11px; right: 18px; font: 700 11px var(--sans); padding: 4px 10px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.pr-price { font: 800 38px var(--sans); letter-spacing: -.02em; } .pr-price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.pr-card ul { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 7px; font-size: 13.5px; }
.pr-card ul li::before { content: "✓"; color: var(--up); font-weight: 800; margin-right: 8px; }
.pr-card .btn { justify-self: stretch; text-align: center; padding: 11px; font-size: 14px; }
.pr-table { margin-bottom: 18px; }
.faq { max-width: 820px; margin: 0 auto 24px; display: grid; gap: 8px; } .faq h2 { font-size: 18px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; } .faq summary { cursor: pointer; font-weight: 650; } .faq p { color: var(--muted); font-size: 13.5px; margin: 8px 0 0; }
.nt-list { display: grid; } .nt { display: grid; gap: 2px; padding: 10px 16px; border-top: 1px solid var(--line); text-decoration: none; color: var(--fg); font-size: 13px; } .nt:first-child { border-top: 0; } .nt.unread { background: rgba(139, 92, 246, .08); } .nt span { color: var(--muted); }
.al-form { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 16px 6px; }
.al-form select, .al-form input, #ac-body .cm-row input { font: 13.5px var(--sans); color: var(--fg); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.al-form input[name=base] { width: 120px; } .al-form input[name=value] { width: 110px; } .al-form input[name=target] { flex: 1; min-width: 200px; }
.ak-row { font-size: 13px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.keyshow { display: grid; gap: 4px; padding: 10px 12px; background: var(--bg2); border: 1px dashed var(--accent); border-radius: 10px; } .keyshow code { word-break: break-all; }
#ac-body { display: grid; gap: 14px; } #ac-body .cm-row input { flex: 1; }
.btn.sm { font-size: 12px; padding: 5px 10px; vertical-align: middle; }
@media (max-width: 900px) { .pr-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 26px; } }

/* widgets builder */
.wg-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.wg-grid > div { display: grid; gap: 14px; }
.wg-types { display: grid; gap: 6px; padding: 12px; }
.wg-type { text-align: left; display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--fg); cursor: pointer; font: inherit; }
.wg-type span { font-size: 12px; color: var(--muted); } .wg-type.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.wg-opts { display: grid; gap: 10px; padding: 4px 16px 16px; } .wg-opts label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.wg-opts input { font: 14px var(--sans); color: var(--fg); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.wg-stage { padding: 26px; border-radius: 0 0 16px 16px; background: repeating-conic-gradient(rgba(127,127,127,.06) 0% 25%, transparent 0% 50%) 50% / 22px 22px; }
.wg-stage.light { background-color: #f1f5f9; }
.wg-stage iframe { max-width: 460px; margin: 0 auto; }
.wg-code { margin: 0; padding: 14px 16px; font: 12.5px var(--mono); white-space: pre-wrap; word-break: break-all; }
@media (max-width: 960px) { .wg-grid { grid-template-columns: 1fr; } }

/* ETF */
.etf-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); gap: 14px; margin-bottom: 14px; }
.etf-grid .panel { margin: 0 !important; }
.etf-grid #chart { height: 360px; }
.etf-share { padding: 14px 16px; display: grid; gap: 9px; }
.es-row { display: grid; grid-template-columns: 110px 1fr 48px; gap: 10px; align-items: center; font-size: 13px; }
.es-t { display: grid; } .es-t small { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-bar { height: 10px; border-radius: 5px; background: var(--bg2); overflow: hidden; } .es-bar i { display: block; height: 100%; border-radius: 5px; }
.es-row .num { text-align: right; font-weight: 600; }
table.heat td { font-size: 12px; }
#etf-cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (max-width: 1000px) { .etf-grid { grid-template-columns: 1fr; } }

/* developers */
.hero-cta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; } .hero-cta .btn { text-decoration: none; padding: 10px 16px; }
.hero-stats { display: flex; gap: 28px; justify-content: center; margin-top: 4px; } .hero-stats div { display: grid; text-align: center; } .hero-stats b { font-size: 22px; } .hero-stats span { font-size: 12px; color: var(--muted); }
.dev-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.dev-nav { position: sticky; top: 120px; max-height: calc(100vh - 140px); overflow: auto; padding: 10px; }
.dev-nav input { width: 100%; font: 13px var(--sans); color: var(--fg); background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; margin-bottom: 6px; }
.dev-g { font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 6px 4px; }
.dev-ep { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; border: 0; background: transparent; color: var(--fg); padding: 6px 8px; border-radius: 8px; cursor: pointer; font: inherit; }
.dev-ep:hover { background: var(--hover); } .dev-ep.on { background: rgba(139, 92, 246, .14); } .dev-ep code { font-size: 12px; }
.dev-main { display: grid; gap: 14px; }
.dev-head { padding: 16px 16px 4px; } .dev-head p { color: var(--muted); margin: 6px 0 0; font-size: 13.5px; } .dev-path { font-size: 15px; }
.dev-params { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; padding: 10px 16px; }
.dev-params label { display: grid; gap: 4px; font-size: 12.5px; } .dev-params label.wide { grid-column: 1 / -1; }
.dev-params input, .dev-params textarea, .dev-run input { font: 13px var(--mono); color: var(--fg); background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.dev-run { display: flex; gap: 8px; padding: 4px 16px 12px; } .dev-run input { flex: 1; }
.dev-code { margin: 10px 16px; padding: 12px 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; font: 12.5px var(--mono); white-space: pre-wrap; word-break: break-all; }
.dev-resp { padding: 0 16px 16px; } .dev-meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; margin-bottom: 6px; }
.dev-json { margin: 0; max-height: 420px; overflow: auto; padding: 12px 14px; background: #070b18; color: #c9d3ee; border-radius: 10px; font: 12px var(--mono); }
.dev-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .dev-cards .panel { margin: 0 !important; } .dev-cards #mcp { grid-column: 1 / -1; }
@media (max-width: 1000px) { .dev-grid, .dev-cards { grid-template-columns: 1fr; } .dev-nav { position: static; max-height: none; } }
.dev-main, .dev-main > .panel { min-width: 0; } .dev-json { white-space: pre-wrap; word-break: break-word; }

/* launchpad */
.lp-tabs { margin: 4px 0 12px; }
.lp-apply { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 14px; margin: 16px 0; align-items: start; }
.lp-apply .panel { margin: 0 !important; }
.lp-formgrid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 16px; } .lp-formgrid .wide { grid-column: 1 / -1; }
.lp-checks { margin: 0; padding: 12px 16px 6px 16px; list-style: none; display: grid; gap: 8px; font-size: 13px; } .lp-checks b { display: inline-block; width: 28px; color: #a78bfa; }
.lp-apps { display: grid; gap: 10px; padding: 14px 16px; } .lp-app { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg2); }
.lp-mini { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; } .lp-mini small { color: var(--muted); }
.lp-mini .ok { color: var(--up); } .lp-mini .bad { color: var(--down); } .lp-mini .na { color: var(--muted); } .lp-mini li b, .lp-mini li span { color: var(--fg); }
@media (max-width: 960px) { .lp-apply, .lp-formgrid { grid-template-columns: 1fr; } }

.ask-trust { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 12.5px; color: var(--up); }
.ask-foot { display: flex; gap: 6px; align-items: center; font-size: 11.5px; flex-wrap: wrap; }

/* footer */
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.foot-grid h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.foot-grid a, .foot-grid span { display: block; font-size: 13px; color: var(--fg); text-decoration: none; padding: 3px 0; } .foot-grid span { color: var(--muted); }
.foot-grid a:hover { color: var(--accent); }
.foot-brand p { font-size: 13px; color: var(--muted); max-width: 34ch; } .foot-brand .word { font-size: 18px; }
.foot-bottom { font-size: 12px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
/* server-rendered content (visible until the app takes over, and to crawlers) */
.ssr { max-width: 980px; margin: 0 auto; padding: 8px 0 30px; line-height: 1.6; }
.ssr h1 { font-size: 28px; margin: 0 0 8px; } .ssr h2 { font-size: 18px; margin: 22px 0 6px; } .ssr h3 { font-size: 15px; margin: 14px 0 4px; }
.ssr-lead { font-size: 16px; color: var(--muted); } .ssr table { width: 100%; border-collapse: collapse; font-size: 13px; } .ssr td, .ssr th { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.ssr-links { columns: 2; }

/* =====================================================================
   Design v2: denser, calmer, data-first. Neutral surfaces, one accent,
   gradient only for the brand mark and primary calls to action.
   ===================================================================== */
:root {
  --bg: #ffffff; --bg2: #f8fafd; --panel: #ffffff; --panel2: #fafbfd; --fg: #0d1421; --muted: #58667e; --muted2: #a6b0c3; --line: #eff2f5; --hover: #f8fafd;
  --accent: #3861fb; --up: #16c784; --down: #ea3943; --up-bg: rgba(22,199,132,.1); --down-bg: rgba(234,57,67,.1);
  --shadow: none; --radius: 12px; --hdr: 60px;
}
:root[data-theme="dark"], :root:not([data-theme="light"]) {
  /* dark is the default; light when the visitor picks it */
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0b0e13; --bg2: #11151c; --panel: #11151c; --panel2: #151a22; --fg: #eaedf3; --muted: #8a93a5; --muted2: #3d4555; --line: #1c222c; --hover: #161b24;
  --accent: #4f7cff; --up: #16c784; --down: #ea3943; --up-bg: rgba(22,199,132,.12); --down-bg: rgba(234,57,67,.12); color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0b0e13; --bg2: #11151c; --panel: #11151c; --panel2: #151a22; --fg: #eaedf3; --muted: #8a93a5; --muted2: #3d4555; --line: #1c222c; --hover: #161b24;
  --accent: #4f7cff; --up: #16c784; --down: #ea3943; --up-bg: rgba(22,199,132,.12); --down-bg: rgba(234,57,67,.12); color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }
html, body { font-size: 14px; line-height: 1.45; }
main { max-width: 1440px; padding: 14px 20px 24px; }

/* header: one line, compact */
.topbar { height: var(--hdr); padding: 0 20px; gap: 14px; flex-wrap: nowrap; background: color-mix(in srgb, var(--bg) 92%, transparent); }
.brand { font-size: 17px; flex: none; } .mark { width: 28px; height: 28px; border-radius: 8px; box-shadow: none; }
.nav { gap: 0; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav > a, .nav .dd > a { font-size: 14px; font-weight: 600; padding: 8px 10px; white-space: nowrap; color: var(--fg); opacity: .82; }
.nav > a:hover, .nav .dd > a:hover, .nav a.on { opacity: 1; background: transparent; color: var(--accent); }
.nav .new { background: var(--accent); }
.dd-menu { top: calc(100% + 6px); }
.nav .dd { position: static; } .nav { overflow: visible; }
.searchbox input { width: 220px; padding: 8px 32px 8px 12px; border-radius: 8px; background: var(--bg2); font-size: 13px; }
.searchbox input:focus { width: 300px; }
.iconbtn { padding: 7px 9px; border-radius: 8px; background: transparent; }
.topbar .btn { padding: 7px 12px; font-size: 13px; border-radius: 8px; white-space: nowrap; }
#share { display: none; }
.theme-btn { font-size: 15px; line-height: 1; }
@media (max-width: 1360px) { .searchbox kbd { display: none; } .searchbox input { width: 170px; } #go-pro { display: none; } }
@media (max-width: 1180px) {
  .topbar { height: auto; flex-wrap: wrap; padding: 8px 14px; row-gap: 4px; }
  .nav { order: 10; width: 100%; overflow-x: auto; } .nav .dd-menu { display: none !important; }
}

/* surfaces */
.panel, .card { border-radius: var(--radius); box-shadow: none; border-color: var(--line); }
.card::before { display: none; }
.card { padding: 14px 16px; gap: 8px; }
.card h3, .panel h2 { font-size: 14px; font-weight: 700; }
.card header a, .panel h2 a { font-size: 12.5px; }
.card .big { font-size: 20px; }
.cards { gap: 12px; margin-bottom: 12px; }
.today { border-radius: var(--radius); padding: 9px 14px; margin-bottom: 12px; font-size: 13.5px; background: var(--panel); }
.toolbar h1, .pagehead h1 { font-size: 24px; letter-spacing: -.02em; }
.toolbar p, .pagehead p { font-size: 13.5px; max-width: 900px; }
.hero h1 { font-size: 30px; }
.insight { font-size: 12.5px; color: var(--muted); margin: 0; }

/* home market view card */
.mvc-top { display: flex; gap: 10px; align-items: center; }
.mvc-meter { position: relative; flex: 1; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--down), var(--muted2) 50%, var(--up)); }
.mvc-meter i { position: absolute; top: -4px; width: 4px; height: 14px; border-radius: 2px; background: var(--fg); transform: translateX(-2px); }
dl.mvc { margin: 0; display: grid; gap: 7px; } dl.mvc dt { font-size: 11.5px; color: var(--muted); } dl.mvc dd { margin: 0; font-size: 13px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* tables: CMC-like density */
th, td { padding: 10px 10px; }
th { font-size: 12px; font-weight: 700; color: var(--fg); background: var(--panel); border-bottom: 1px solid var(--line); }
table.rank td { font-size: 14px; }
table.rank tbody tr:hover { background: var(--hover); }
.pp { background: transparent !important; padding: 0; font-weight: 600; font-size: 13.5px; }
.tabs { gap: 2px; margin-bottom: 8px; }
.tabs a { font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 8px; }
.tabs a.on { background: var(--hover); color: var(--accent); }
.filters { margin-bottom: 10px; } .explain { font-size: 12.5px; }
.qchip { font-size: 12.5px; padding: 6px 11px; }
.seg { border-radius: 8px; } .seg button { padding: 5px 10px; font-size: 12.5px; border-radius: 6px; }
.pill { font-size: 11px; }
:root[data-theme="light"] {
  --bg: #ffffff; --bg2: #f8fafd; --panel: #ffffff; --panel2: #fafbfd; --fg: #0d1421; --muted: #58667e; --muted2: #a6b0c3; --line: #eff2f5; --hover: #f8fafd;
  --accent: #3861fb; --up: #16c784; --down: #ea3943; --up-bg: rgba(22,199,132,.1); --down-bg: rgba(234,57,67,.1);
  --est: #b26a00; --est-bg: #fff4e0; --warn: #d9822b;
}
.nav > a, .nav .dd > a { padding: 8px 9px; font-size: 13.5px; }
.searchbox { flex: none; }
@media (max-width: 1500px) { .searchbox input { width: 180px; } .searchbox input:focus { width: 260px; } }
@media (max-width: 1320px) { .nav > a[data-nav="questions"] { display: none; } }

/* coin page v2: sidebar + main */
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; } .crumbs a { color: var(--muted); } .crumbs span { margin: 0 4px; }
.coin-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.coin-side { position: sticky; top: calc(var(--hdr) + 12px); display: grid; gap: 12px; max-height: calc(100vh - var(--hdr) - 24px); overflow-y: auto; scrollbar-width: thin; }
.coin-main { display: grid; gap: 14px; min-width: 0; }
.coin-main > .panel, .coin-main > .coingrid, .coin-main > .cols, .coin-side > .panel { margin: 0 !important; }
.cs-head { padding: 16px; display: grid; gap: 6px; }
.cs-title { display: flex; align-items: center; gap: 8px; } .cs-title h1 { font-size: 20px; margin: 0; }
.cs-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .cs-price .bigprice { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.cs-actions { display: flex; gap: 6px; margin-top: 6px; } .cs-actions .btn { flex: 1; }
.cs-stats .stats { display: grid; grid-template-columns: 1fr; gap: 0; padding: 4px 14px; margin: 0; background: none; border: 0; }
.cs-stats .stats > div { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); background: none; border-radius: 0; }
.cs-stats .stats > div:last-child { border-bottom: 0; }
.cs-stats .stats span { font-size: 12.5px; color: var(--muted); } .cs-stats .stats b { text-align: right; font-size: 13.5px; } .cs-stats .stats small { grid-column: 1 / -1; text-align: right; font-size: 11px; }
.coin-main #chart { height: 420px; }
.coin-side .cv-grid { grid-template-columns: 1fr; } .coin-side .apisnip pre { font-size: 11px; }
@media (max-width: 1100px) { .coin-layout { grid-template-columns: 1fr; } .coin-side { position: static; max-height: none; } }
.coin-side { grid-template-columns: minmax(0, 1fr); } .coin-side > *, .coin-side .stats > div { min-width: 0; }
.coin-side .stats b, .coin-side .stats small { white-space: normal; overflow-wrap: anywhere; }
@keyframes fu { from { background: color-mix(in srgb, var(--up) 14%, transparent); } to { background: transparent; } }
@keyframes fd { from { background: color-mix(in srgb, var(--down) 14%, transparent); } to { background: transparent; } }
.flash-up, .flash-down { animation-duration: .7s; }

/* ---------- mega menus (v3): no hover gap, delayed close, icons ---------- */
.topbar { align-items: stretch; } .topbar > * { align-self: center; }
.nav { align-self: stretch !important; display: flex; align-items: stretch; overflow: visible; }
.nav > a { display: flex; align-items: center; }
.nav .dd { position: relative; display: flex; align-items: stretch; }
.nav .dd > a { display: flex; align-items: center; }
.dd-menu, .dd-menu.mega { top: 100% !important; margin: 0; display: grid !important; grid-auto-flow: column; grid-auto-columns: minmax(220px, max-content); gap: 6px 18px; padding: 16px 18px; min-width: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); pointer-events: none; transition: opacity .14s ease, transform .14s ease, visibility 0s linear .22s; border-radius: 0 0 14px 14px; border-top: 0; }
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.dd:hover > .dd-menu, .dd:focus-within > .dd-menu { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
.dd-menu.right { left: auto; right: 0; }
.mcol { display: grid; align-content: start; gap: 2px; }
.mcol h6, .mlive h6 { margin: 0 0 6px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.dd-menu a { display: flex !important; gap: 12px; align-items: center; padding: 8px 10px !important; border-radius: 10px; }
.mi { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.mi svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dd-menu a:hover .mi { background: var(--c); color: #fff; }
.mt { display: grid; gap: 1px; } .mt b { font-size: 13.5px; } .mt span { font-size: 12px; color: var(--muted); }
.mlive { width: 250px; padding: 4px 0 0 18px; border-left: 1px solid var(--line); }
.ml-body { display: grid; gap: 8px; padding: 0 0 0 10px; font-size: 13px; }
.ml-row { display: flex; justify-content: space-between; gap: 8px; } .ml-row span:first-child { color: var(--muted); }

.ml-regime { display: grid !important; gap: 4px; padding: 0 !important; } .ml-regime span:last-child { font-weight: 600; font-size: 13px; }
a.ml-row { padding: 0 !important; display: flex !important; } a.ml-row:hover { background: none !important; color: var(--accent) !important; }

/* full-width layout on desktop: content uses the whole screen with even gutters */
main { max-width: none !important; padding: 14px 24px 24px !important; }
.foot { max-width: none !important; padding-left: 24px; padding-right: 24px; }
.topbar { padding: 0 24px; }
@media (min-width: 1800px) { main, .foot { padding-left: 40px !important; padding-right: 40px !important; } .topbar { padding: 0 40px; } }
.mlive { width: 270px; padding-right: 4px; } .ml-row b { text-align: right; white-space: nowrap; }
.dd-menu { background: var(--panel); box-shadow: 0 24px 60px rgba(0,0,0,.45); }

/* ---------- anomaly fixes (audit) ---------- */
.foot-brand .word, .foot-brand .word span { display: inline !important; padding: 0 !important; }
main { min-height: calc(100vh - var(--hdr) - 40px); }
.logo.exl { position: relative; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--hover); overflow: hidden; flex: none; vertical-align: middle; }
.logo.exl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--panel); }
.logo.exl span { font: 700 10px var(--sans); color: var(--muted); }
.coin .logo.exl { margin-right: 8px; } .vh { display: inline-flex; align-items: center; gap: 5px; } .vh .logo.exl { width: 16px; height: 16px; border-radius: 4px; }
.pricing-wrap, .pr-grid, .pr-table, .faq { max-width: 1180px; margin-left: auto !important; margin-right: auto !important; }
.coin-side .cv { flex-direction: column; align-items: stretch; } .coin-side .cv > .muted { display: none; } .coin-side .cv label { width: 100%; }
.fd-grid .empty, .panel .empty { padding: 22px 16px; font-size: 13px; }
/* questions landing */
.q-drop { display: grid; justify-items: center; gap: 8px; text-align: center; max-width: 900px; margin: 0 auto 18px; padding: 36px 20px; border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 18px; background: color-mix(in srgb, var(--accent) 5%, var(--panel)); cursor: pointer; transition: border-color .15s, background .15s; }
.q-drop:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--panel)); }
.q-drop b { font-size: 17px; } .q-drop-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--brand); } .q-drop-ic svg { width: 28px; height: 28px; }
.q-drop-btns { display: flex; gap: 8px; margin-top: 8px; }
.q-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 1180px; margin: 0 auto 16px; }
.q-steps .panel { padding: 16px; margin: 0 !important; display: grid; gap: 6px; align-content: start; } .q-steps p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.q-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--sans); color: #fff; background: var(--accent); }
.q-list { margin: 0; padding: 12px 16px 14px 34px; display: grid; gap: 6px; }
/* ask layout */
.ask-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; max-width: 1240px; margin: 0 auto; align-items: start; }
.ask-main { display: grid; gap: 12px; min-width: 0; }
.ask-side { display: grid; gap: 12px; position: sticky; top: calc(var(--hdr) + 14px); } .ask-side .panel { margin: 0 !important; }
.ask-src { list-style: none; margin: 0; padding: 10px 14px 14px; display: grid; gap: 10px; } .ask-src li { display: flex; gap: 10px; align-items: center; }
.ask-src li > span:last-child { display: grid; } .ask-src small { color: var(--muted); font-size: 12px; } .ask-src .mi svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ask-why { margin: 0; padding: 10px 16px 14px 30px; display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
/* account signed-out */
.cm-narrow.auth-wide { max-width: 1060px; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.auth-benefits { padding: 18px 20px; display: grid; gap: 12px; } .auth-benefits h2 { padding: 0; border: 0; font-size: 17px; }
.auth-benefits ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; } .auth-benefits li { display: grid; padding-left: 26px; position: relative; }
.auth-benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--up); font-weight: 800; } .auth-benefits li span { font-size: 12.5px; color: var(--muted); }
.auth-benefits .btn { justify-self: start; text-decoration: none; } .auth-forms { display: grid; gap: 12px; } .auth-forms .panel { margin: 0 !important; }
@media (max-width: 1000px) { .q-steps { grid-template-columns: 1fr 1fr; } .ask-layout, .auth-grid { grid-template-columns: 1fr; } .ask-side { position: static; } }
.logo.exl img { background: #fff; padding: 2px; border-radius: inherit; }
.logo.exl::after { content: attr(data-i); font: 700 10px var(--sans); color: var(--muted); }
.logo.exl img { z-index: 1; }

/* =================== coin page v3 =================== */
.cp-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; padding: 18px 20px; margin-bottom: 12px !important; align-items: center; }
.cp-id { display: grid; gap: 6px; min-width: 0; }
.cp-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .cp-title h1 { margin: 0; font-size: 24px; display: flex; align-items: baseline; gap: 8px; }
.cp-title .logo { width: 32px; height: 32px; }
.cp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; } .cp-price .bigprice { font-size: 38px; font-weight: 800; letter-spacing: -.025em; } .cp-price .bigchg { font-size: 17px; font-weight: 700; padding: 3px 9px; border-radius: 8px; }
.cp-price .bigchg.up { background: var(--up-bg); } .cp-price .bigchg.down { background: var(--down-bg); }
.cp-windows { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; } .cp-w { display: inline-flex; gap: 5px; align-items: baseline; } .cp-w small { color: var(--muted); font-size: 11.5px; }
.cp-asof { font-size: 11.5px; }
.cp-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; } .cp-actions .btn { text-decoration: none; } .cp-actions .star { font-size: 18px; }
.cp-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cp-tiles > div { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
.cp-tiles span { font-size: 12px; color: var(--muted); } .cp-tiles b { font-size: 19px; letter-spacing: -.01em; } .cp-tiles small { font-size: 11.5px; color: var(--muted); }
.cp-supbar { height: 5px; border-radius: 5px; background: var(--line); margin-top: 4px; overflow: hidden; } .cp-supbar i { display: block; height: 100%; background: var(--accent); }
.cp-today { display: flex; gap: 10px; align-items: center; padding: 11px 16px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, var(--panel)), var(--panel)); margin-bottom: 10px; font-size: 14px; }
.cp-today b { font-weight: 600; } .cp-today a { margin-left: auto; white-space: nowrap; font-weight: 600; font-size: 13px; }
.cp-tabs { position: sticky; top: var(--hdr); z-index: 15; display: flex; gap: 2px; padding: 6px 0; margin-bottom: 12px; background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.cp-tabs a { padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--muted); white-space: nowrap; text-decoration: none; }
.cp-tabs a:hover { color: var(--fg); } .cp-tabs a.on { color: var(--accent); background: var(--hover); }
.cp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; scroll-margin-top: 120px; }
.cp-main, .cp-side { display: grid; gap: 14px; min-width: 0; } .cp-main > .panel, .cp-side > .panel, .cp-sec > .panel, .cp-sec > .cols { margin: 0 !important; }
.cp-sec { display: grid; gap: 14px; margin-top: 14px; scroll-margin-top: 120px; }
.cp-chart { padding: 12px 14px 8px; }
.cp-ctools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.cp-vs { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.cp-csum { font-size: 13px; color: var(--muted); } .cp-csum b { font-size: 14px; }
.cp-chart #chart { height: 420px; } .cp-csrc { font-size: 11px; margin-top: 4px; }
.cp-perf table { margin: 0; } .cp-perf td, .cp-perf th { padding: 10px 14px; }
.cp-rverdict { margin: 0; padding: 10px 16px 4px; font-weight: 600; font-size: 13.5px; }
.cp-rlist { list-style: none; margin: 0; padding: 6px 16px 10px; display: grid; }
.cp-rlist li { display: grid; grid-template-columns: 12px 1fr auto; gap: 2px 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cp-rlist li:last-child { border-bottom: 0; } .cp-rlist .rl { font-size: 13px; } .cp-rlist b { font-size: 12.5px; text-align: right; }
.cp-rlist small { grid-column: 2 / -1; font-size: 11.5px; color: var(--muted); }
.cp-rlist .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted2); }
.lv-ok .dot { background: var(--up); } .lv-watch .dot { background: #f59e0b; } .lv-risk .dot { background: var(--down); } .lv-risk b { color: var(--down); } .lv-watch b { color: #f59e0b; }
.cp-suplist { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 14px 16px; }
.cp-suplist > div { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.cp-suplist span, .cp-suplist small { font-size: 11.5px; color: var(--muted); } .cp-suplist b { font-size: 15px; }
.cp-apigrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 14px 16px 16px; }
.cp-side #c-dev .cv-grid { grid-template-columns: 1fr; } .cp-side #c-dev .apisnip { display: none; }
@media (max-width: 1200px) { .cp-head { grid-template-columns: 1fr; } .cp-grid { grid-template-columns: 1fr; } .cp-suplist { grid-template-columns: repeat(2, 1fr); } .cp-apigrid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cp-tiles { grid-template-columns: 1fr 1fr; } .cp-price .bigprice { font-size: 30px; } .cp-chart #chart { height: 300px; } .cp-today { flex-wrap: wrap; } }

/* modal (alerts) */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(5, 8, 14, .62); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; animation: fadein .12s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(520px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: grid; gap: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.modal header { display: flex; justify-content: space-between; align-items: center; } .modal h3 { margin: 0; font-size: 17px; }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; }
.al-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 6px; }
.al-kinds button { text-align: left; display: grid; gap: 1px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); color: var(--fg); cursor: pointer; font: inherit; }
.al-kinds button b { font-size: 13px; } .al-kinds button span { font-size: 11px; color: var(--muted); } .al-kinds button.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.al-val { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.al-val input, .al-val select, #al-target, .al-join input { font: 15px var(--sans); color: var(--fg); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; width: 100%; }
.al-quick { display: flex; gap: 6px; flex-wrap: wrap; } .al-quick button { font: 600 12px var(--sans); padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; }
.al-quick button:hover { border-color: var(--accent); }
.al-join { display: grid; gap: 6px; padding: 10px 12px; border: 1px dashed var(--accent); border-radius: 10px; font-size: 13px; }
.cp-side, .cp-main, .cp-sec { grid-template-columns: minmax(0, 1fr); } .cp-side > *, .cp-main > *, .cp-sec > * { min-width: 0; }
.cp-rlist li > * { min-width: 0; } .cp-rlist small { overflow-wrap: anywhere; }
.cp-side .cv { flex-direction: column; align-items: stretch; } .cp-side .cv > .muted { display: none; } .cp-side .cv label { width: 100%; min-width: 0; } .cp-side .cv input { min-width: 0; width: 100%; }
.cp-side .cv-grid { padding: 12px 14px 14px; }
.cp-rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; padding: 6px 16px 14px; }
.cp-rcard { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; background: var(--bg2); }
.cp-rtop { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); } .cp-rtop .pill { margin-left: auto; }
.cp-rcard .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted2); } .cp-rcard b { font-size: 17px; } .cp-rcard p { margin: 0; font-size: 12.5px; color: var(--muted); }
.cp-rcard.lv-risk { border-color: color-mix(in srgb, var(--down) 40%, var(--line)); } .cp-rcard.lv-watch { border-color: color-mix(in srgb, #f59e0b 40%, var(--line)); }
.cp-sec[hidden], .cp-grid[hidden] { display: none !important; }
.cp-sec, .cp-grid { margin-top: 0; }
/* account security */
.sec-warn { margin: 12px 16px 0; padding: 10px 12px; border-radius: 10px; background: var(--down-bg); color: var(--fg); font-size: 13px; }
.sec-rows { display: grid; padding: 4px 16px 10px; }
.sec-row { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sec-row:last-child { border-bottom: 0; } .sec-row > div { flex: 1; min-width: 0; } .sec-row p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); } .sec-row > .btn { flex: none; }
.sec-item { font-size: 13px; margin-top: 6px; } .codes { display: grid; grid-template-columns: repeat(5, max-content); gap: 6px 14px; margin: 10px 0 4px; } .codes code { font-size: 14px; letter-spacing: .04em; }
.ac-alt { font-size: 13px; } .ac-alt summary { cursor: pointer; color: var(--muted); padding: 4px 0; } .ac-alt form { margin-top: 6px; }
.cm-join .btn.pro { justify-self: stretch; text-align: center; }
@media (max-width: 700px) { .codes { grid-template-columns: repeat(2, max-content); } .sec-row { flex-direction: column; } }

/* market view v2 */
.mv2 { display: grid; gap: 12px; }
.mv2-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px; gap: 20px; align-items: center; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(110deg, color-mix(in srgb, var(--accent) 8%, var(--panel)), var(--panel) 60%); }
.mv2-dialbox { display: grid; justify-items: center; gap: 6px; } .mv2-dial { width: 190px; height: auto; } .mv2-reg { font-size: 12.5px; padding: 4px 12px; }
.mv2-q { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.mv2-a { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 10px; line-height: 1.15; } .mv2-a.down { color: var(--down); } .mv2-a.up { color: var(--up); } .mv2-a.warn { color: #f59e0b; }
.mv2-tally { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--line); max-width: 520px; gap: 2px; }
.mv2-tally i, .mv2-legend i { display: block; } .mv2-tally .off, .mv2-legend .off { background: var(--down); } .mv2-tally .neu, .mv2-legend .neu { background: #8b93a7; } .mv2-tally .on, .mv2-legend .on { background: var(--up); }
.mv2-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; margin-top: 7px; } .mv2-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: 0; }
.mv2-track { display: grid; gap: 3px; padding-left: 18px; border-left: 1px solid var(--line); } .mv2-track b { font-size: 22px; } .mv2-track span { font-size: 12.5px; } .mv2-track a { font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.mv2-dots { display: flex; gap: 3px; margin-top: 4px; } .mv2-dots i { width: 10px; height: 10px; border-radius: 3px; background: var(--line); } .mv2-dots i.ok { background: var(--up); } .mv2-dots i.bad { background: var(--down); }
.mv2-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mv2-card { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 14px 16px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.mv2-card h4 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.mv2-list, .mv2-sigs, .mv2-att { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mv2-trow { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; } .mv2-trow span { font-size: 12.5px; white-space: nowrap; }
.mv2-tbar { height: 6px; border-radius: 6px; background: var(--line); margin: 6px 0 4px; overflow: hidden; } .mv2-tbar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), #8b5cf6); }
.mv2-tnum span { color: var(--muted); font-size: 12px; }
.mv2-sigs li { display: flex; gap: 10px; align-items: flex-start; } .mv2-sigs .lean { font-size: 12px; margin-top: 2px; } .mv2-sigs div { display: grid; gap: 1px; min-width: 0; }
.mv2-sigs b { font-size: 13.5px; } .mv2-sigs span:not(.lean) { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mv2-att a { display: flex; gap: 8px; align-items: center; color: var(--fg); text-decoration: none; padding: 6px 8px; margin: -6px -8px; border-radius: 10px; flex-wrap: wrap; } .mv2-att a:hover { background: var(--hover); }
.mv2-att .chip { margin: 0; font-size: 11.5px; } .mv2-more { font-size: 12.5px; font-weight: 600; } .mv2-stale { font-size: 12px; margin: 0; }
@media (max-width: 1100px) { .mv2-hero { grid-template-columns: 1fr; text-align: left; } .mv2-dialbox { justify-items: start; } .mv2-track { padding-left: 0; border-left: 0; } .mv2-grid { grid-template-columns: 1fr; } }
.mvc-q { font-size: 12px; color: var(--muted); font-weight: 600; } .mvc-a { font-size: 17px; font-weight: 800; letter-spacing: -.01em; } .mvc-a.down { color: var(--down); } .mvc-a.up { color: var(--up); }
.mvc-leg { font-size: 12px; } .mvc-flip { font-size: 12.5px; border-top: 1px solid var(--line); padding-top: 8px; }

/* ---------- Ask dock (desktop) ---------- */
.ask-dock { position: fixed; left: 50%; bottom: 46px; transform: translateX(-50%); z-index: 35; width: min(720px, calc(100vw - 48px)); display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(14px); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: 0 12px 40px rgba(0,0,0,.35), 0 0 0 4px color-mix(in srgb, var(--accent) 8%, transparent); }
.ask-dock[hidden] { display: none; }
.ask-dock-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; flex: none; }
.ask-dock-ic svg, .tb-ask-btn svg { width: 15px; height: 15px; fill: currentColor; }
.ask-dock input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: 14px var(--sans); outline: none; }
.ask-dock-chip { font: 600 12px var(--sans); color: var(--muted); background: var(--hover); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; cursor: pointer; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.ask-dock-chip:hover { color: var(--fg); border-color: var(--accent); }
.ask-dock-k { font: 11px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.ask-dock-go { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-weight: 800; cursor: pointer; flex: none; }
.ask-dock:focus-within { border-color: var(--accent); }
main { padding-bottom: 110px !important; }
.toast { bottom: 110px; }
@media (max-width: 1100px) { .ask-dock-sug, .ask-dock-k { display: none; } }

/* ---------- mobile: app-like shell ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  .topbar { height: 56px !important; padding: 0 12px !important; flex-wrap: nowrap !important; gap: 8px; }
  .topbar .nav, #share, #theme-btn, #go-pro, .topbar label.iconbtn, .topbar .wl, .searchbox kbd { display: none !important; }
  .searchbox { flex: 1; min-width: 0; } .searchbox input, .searchbox input:focus { width: 100% !important; }
  .brand .word { display: none; }
  #acct-btn { padding: 6px 10px; }
  .statusbar, .ask-dock { display: none !important; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--panel) 96%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; color: var(--muted); text-decoration: none; font: 600 10.5px var(--sans); }
  .tabbar a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.on { color: var(--accent); }
  .tb-ask-btn { width: 46px; height: 46px; margin-top: -18px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--brand); box-shadow: 0 6px 18px rgba(79,124,255,.45); border: 3px solid var(--bg); }
  .tb-ask-btn svg { width: 20px !important; height: 20px !important; fill: #fff !important; stroke: none !important; }
  main { padding: 10px 12px 90px !important; }
  .toast { bottom: 84px; }
  .foot { padding-bottom: 80px; }
  /* home: swipeable cards like an app */
  .cards { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -12px 12px; padding: 0 12px; scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .cards > .card { flex: 0 0 86%; scroll-snap-align: start; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .tabs a { white-space: nowrap; }
  .filters .fgroup, .explain { display: none; }
  .answers .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  /* coin list as app rows: logo + name | price + change */
  #ranktable thead { display: none; }
  #ranktable tbody tr { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
  #ranktable tbody td { display: none; padding: 0; border: 0; }
  #ranktable tbody td:nth-child(2), #ranktable tbody td.namecell, #ranktable tbody td[data-k="p"], #ranktable tbody td[data-k="c"] { display: block; }
  #ranktable td[data-k="p"] { font-weight: 600; } #ranktable .nmwrap b { font-size: 14px; }
  .panel.tablewrap { border-radius: 12px; }
  /* coin page */
  .cp-tabs { top: 56px; }
  .cp-head { padding: 14px; }
  .toolbar h1, .hero h1 { font-size: 22px !important; }
}
@media (max-width: 760px) { .answers .chips .qchip { white-space: nowrap; flex: none; } .answers .chips { padding-bottom: 4px; } }

/* ---------- Portfolio, compare, alerts ---------- */
.pf-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pf-actions label.btn { cursor: pointer; }
.pf-sum { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; margin-bottom: 16px; }
.pf-sum .panel { padding: 18px 20px; min-width: 0; }
.pf-total { display: flex; flex-direction: column; gap: 6px; }
.pf-big { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.pf-alloc { display: flex; gap: 18px; align-items: center; }
.pf-donut { width: 120px; height: 120px; flex: none; }
.pf-alloc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 13px; flex: 1; min-width: 0; }
.pf-alloc li { display: flex; align-items: center; gap: 8px; }
.pf-alloc li i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.pf-alloc li b { margin-left: auto; font-weight: 600; }
.pf-ins h3 { margin: 0 0 8px; font-size: 15px; }
.pf-ins p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.5; }
.pf-empty { text-align: center; padding: 48px 20px; }
.pf-empty h2 { margin: 0 0 8px; }
.pf-empty p { max-width: 520px; margin: 0 auto 18px; }
td small, .rank td small { display: block; font-size: 11.5px; }
.nowrap { white-space: nowrap; }
.cmp-pick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 14px; }
.cmp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font-weight: 600; }
.cmp-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.cmp-chip button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 0 0 2px; font-size: 12px; }
#cmp-add, #alp-coin, #pf-coin { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--fg); font: inherit; min-width: 150px; }
#cmp-table td:first-child { color: var(--muted); }
.sec-h { font-size: 18px; margin: 28px 0 10px; }
.al-feed { display: grid; }
.al-feed a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.al-feed a:last-child { border-bottom: 0; }
.al-feed a span { grid-column: 1; color: var(--muted); font-size: 13px; }
.al-feed a small { grid-row: 1; grid-column: 2; }
.al-feed a.unread { background: var(--hover); }
.list-h1 { font-size: 22px; margin: 4px 0 2px; letter-spacing: -.01em; }
.list-sub { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
@media (max-width: 980px) { .pf-sum { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .pf-big { font-size: 28px; }
  .pf-actions .btn { padding: 7px 10px; font-size: 13px; }
  .cmp-pick .seg { margin-left: 0 !important; }
  #cmp-chart { height: 280px !important; }
}
/* Mobile overflow fixes: single-column grids must allow shrinking below content width. */
@media (max-width: 1000px) { .dev-grid, .dev-cards { grid-template-columns: minmax(0, 1fr); } .dev-grid > * { min-width: 0; } .dev-main pre, .dev-main code { max-width: 100%; overflow-x: auto; } }
@media (max-width: 820px) { .cm-grid { grid-template-columns: minmax(0, 1fr); } .cm-grid > * { min-width: 0; } }
.cp-tabs { max-width: 100%; min-width: 0; }
#cp-perf { max-width: 100%; overflow-x: auto; }
.cur-wrap { position: relative; }
.cur-btn { font-weight: 700; font-size: 12.5px; letter-spacing: .02em; min-width: 46px; }
.cur-menu { position: absolute; right: 0; top: calc(100% + 6px); width: 280px; max-height: 380px; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16,24,40,.14); z-index: 60; overflow: hidden; }
.cur-menu[hidden] { display: none; }
.cur-menu input { margin: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); color: var(--fg); font: inherit; }
.cur-list { overflow-y: auto; padding: 0 6px 6px; }
.cur-list button { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; width: 100%; padding: 8px 10px; border: 0; background: none; color: var(--fg); text-align: left; border-radius: 8px; cursor: pointer; font: inherit; font-size: 13.5px; }
.cur-list button:hover, .cur-list button.on { background: var(--hover); }
.cur-list button.on b { color: var(--accent); }
.cur-list button span { color: var(--muted); }
.cur-list button i { font-style: normal; color: var(--muted); }
.cur-list button[hidden] { display: none; }
.cv-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto minmax(0, 1.4fr); gap: 12px; align-items: end; padding: 20px; margin-bottom: 16px; }
.cv-box label { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cv-box input, .cv-box select { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); color: var(--fg); font: inherit; font-size: 15px; min-width: 0; width: 100%; }
.cv-swap { height: 44px; width: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--accent); font-size: 18px; cursor: pointer; }
.cv-swap:hover { background: var(--hover); }
.cv-out { grid-column: 1 / -1; display: grid; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.cv-out b { font-size: 26px; letter-spacing: -.01em; word-break: break-word; }
.cv-tables { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.cv-pop { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-pop a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--fg); text-decoration: none; }
.cv-pop a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 760px) { .cv-box { grid-template-columns: minmax(0, 1fr); } .cv-swap { justify-self: center; } .cv-tables { grid-template-columns: minmax(0, 1fr); } .cv-out b { font-size: 21px; } }

/* ---------- Coin page v4: 24h range, waterfall, about ---------- */
.cp-range24 { display: grid; grid-template-columns: auto auto minmax(80px, 220px) auto auto; align-items: center; gap: 8px; font-size: 12.5px; margin: 8px 0 2px; }
.cp-range24 b { font-weight: 600; font-size: 12.5px; }
.cp-rbar { position: relative; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--down), #f3d42f, var(--up)); opacity: .85; }
.cp-rbar i { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 2px solid var(--fg); transform: translate(-50%, -50%); }
.wf { display: grid; gap: 8px; margin: 4px 0 10px; }
.wf-row { display: grid; grid-template-columns: minmax(130px, 1.1fr) minmax(0, 1.4fr) 64px; gap: 10px; align-items: center; font-size: 13.5px; }
.wf-row span { display: flex; flex-direction: column; line-height: 1.25; }
.wf-row small { color: var(--muted); font-size: 11.5px; }
.wf-row b { text-align: right; font-variant-numeric: tabular-nums; }
.wf-track { position: relative; height: 14px; background: linear-gradient(90deg, transparent calc(50% - .5px), var(--line) calc(50% - .5px), var(--line) calc(50% + .5px), transparent calc(50% + .5px)); }
.wf-track i { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.wf-track i.up { background: var(--up); } .wf-track i.down { background: var(--down); }
.wf-total { padding-top: 8px; border-top: 1px dashed var(--line); font-weight: 700; }
.wf-read { margin: 0 0 6px; font-size: 13.5px; }
.cp-about { padding: 18px 20px; }
.cp-about h2 { margin: 0 0 10px; }
.ab-desc p { margin: 0 0 10px; line-height: 1.6; font-size: 14px; color: var(--fg); }
.ab-desc details summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.ab-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 12px 0; }
.ab-stats > div { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: var(--bg2); border-radius: 10px; min-width: 0; }
.ab-stats span:first-child { font-size: 12px; color: var(--muted); }
.ab-stats b { font-size: 16px; }
.ab-stats small { font-size: 12px; color: var(--muted); }
.ab-cats div { display: flex; flex-wrap: wrap; gap: 4px; }
.ab-cats .chip { font-size: 11.5px; padding: 2px 8px; }
.ab-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.ab-links a { display: flex; flex-direction: column; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--fg); min-width: 0; max-width: 220px; }
.ab-links a:hover { border-color: var(--accent); }
.ab-links small { font-size: 11px; color: var(--muted); }
.ab-links b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-contracts { display: grid; gap: 4px; }
.ab-ca { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.ab-ca:last-child { border-bottom: 0; }
.ab-ca span { color: var(--muted); }
@media (max-width: 760px) { .cp-range24 { grid-template-columns: auto auto minmax(40px, 1fr) auto auto; font-size: 11.5px; } .wf-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 56px; font-size: 12.5px; } }
.cp-about h2 { padding: 0 !important; border: 0 !important; }
/* ---------- Global charts and categories ---------- */
.gl-kpis, .cat-hl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.cat-hl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gl-kpis .panel, .cat-hl .panel { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; min-width: 0; }
.gl-kpis span, .cat-hl span:first-child { font-size: 12.5px; color: var(--muted); }
.gl-kpis b, .cat-hl b { font-size: 22px; letter-spacing: -.01em; }
.gl-kpis small { font-size: 12.5px; color: var(--muted); }
.gl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.gl-wide { grid-column: 1 / -1; }
.gl-card { padding: 14px 16px; min-width: 0; }
.gl-card h2 { margin: 0 0 8px; font-size: 15px; padding: 0 !important; border: 0 !important; }
.gl-card h2 .muted { font-weight: 500; font-size: 12.5px; }
.gl-chart { height: 280px; }
.gl-wide .gl-chart { height: 340px; }
.gl-legend { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.gl-legend i { width: 10px; height: 3px; border-radius: 2px; margin-left: 6px; }
.cat-logos { display: inline-flex; }
.cat-logos a { margin-right: -6px; }
.cat-logos .logo { border: 2px solid var(--panel); }
.cat-br { width: 90px; height: 6px; border-radius: 3px; background: var(--down-bg); overflow: hidden; }
.cat-br i { display: block; height: 100%; background: var(--up); }
tr[data-href] { cursor: pointer; }
@media (max-width: 900px) { .gl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gl-grid { grid-template-columns: minmax(0, 1fr); } .gl-chart, .gl-wide .gl-chart { height: 240px; } }
@media (max-width: 560px) { .cat-hl { grid-template-columns: minmax(0, 1fr); } .gl-kpis b { font-size: 18px; } }
