/* Neutral, data-first look for a prediction market. Dark by default, light follows the system. */
:root {
  --bg: #12161c;
  --surface: #1a2028;
  --surface-2: #232b36;
  --line: #2b3440;
  --line-strong: #3d4958;
  --text: #e9edf2;
  --muted: #8e99a8;
  --primary: #4d8dff;
  --primary-btn: #2563eb;
  --on-primary: #ffffff;
  --yes: #2ebd85;
  --yes-bg: rgba(46, 189, 133, 0.14);
  --on-yes: #04261a;
  --no: #f0616d;
  --no-bg: rgba(240, 97, 109, 0.14);
  --on-no: #33070b;
  --warn: #e0a53a;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f2f4f7;
    --line: #e2e6eb;
    --line-strong: #c5ccd6;
    --text: #131820;
    --muted: #626d7c;
    --primary: #1d5fe0;
    --primary-btn: #1d5fe0;
    --yes: #0b8259;
    --yes-bg: rgba(11, 130, 89, 0.1);
    --on-yes: #ffffff;
    --no: #cf3341;
    --no-bg: rgba(207, 51, 65, 0.09);
    --on-no: #ffffff;
    --warn: #9a6400;
    --shadow: 0 6px 24px rgba(20, 30, 50, 0.1);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); font-variant-numeric: tabular-nums; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
p, h1, h2, ol, figure { margin: 0; }
.t-yes { color: var(--yes); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ------------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 8px 22px; max-width: 1240px; min-height: 60px; margin: 0 auto; padding: 8px 20px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; border-radius: 6px; }
.brand__mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--primary-btn); color: var(--on-primary); font-size: 16px; }
.nav__links { display: flex; gap: 18px; }
.nav__links a { padding: 6px 0; font-weight: 500; color: var(--muted); text-decoration: none; border-radius: 4px; white-space: nowrap; }
.nav__links a:hover, .nav__links a.is-on { color: var(--text); }
.search { flex: 1; max-width: 440px; }
.search input { width: 100%; height: 38px; padding: 0 14px; border: 1px solid transparent; border-radius: 10px; background: var(--surface-2); }
.search input::placeholder { color: var(--muted); }
.search input:focus-visible { outline: none; border-color: var(--primary); }
.acct { display: flex; align-items: center; gap: 8px; margin-left: auto; white-space: nowrap; }
.acct__label { font-size: 13px; color: var(--muted); }
.acct b { font-weight: 600; }
.badge { padding: 2px 7px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

.demo { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.demo__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 20px; max-width: 1240px; margin: 0 auto; padding: 7px 20px; }
.demo b { color: var(--warn); font-weight: 600; }
.demo__actions { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.link { padding: 0; border: 0; background: none; color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; border-radius: 3px; }
.link:hover { text-decoration-color: currentColor; }

/* ------------------------------------------------------------------ page */
.page { max-width: 1240px; margin: 0 auto; padding: 24px 20px 56px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
h1 { font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.empty { padding: 32px 0; color: var(--muted); }
.foot { border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; max-width: 1240px; margin: 0 auto; padding: 10px 20px; }
.foot__note { max-width: 1240px; margin: 0 auto; padding: 0 20px 14px; }
.price b { font-weight: 600; color: var(--text); }
.social { display: flex; gap: 2px; margin-right: -8px; }
.social__i { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.social__i:hover { color: var(--text); background: var(--surface-2); }
.social__i svg { width: 15px; height: 15px; fill: currentColor; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 34px; padding: 5px 14px; border: 0; border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 500; color: var(--muted); }
.pill:hover { color: var(--text); }
.pill.is-on { background: var(--text); color: var(--bg); }
.pill--sm { min-height: 30px; padding: 3px 11px; font-size: 13px; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--muted); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--betting { color: var(--yes); }
.chip--watching, .chip--awaiting { color: var(--warn); }
.chip--proposed { color: var(--primary); }
.chip--disputed { color: var(--no); }

/* ----------------------------------------------------------------- cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.grid > .empty { grid-column: 1 / -1; }
.mcard { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color 0.12s, box-shadow 0.12s; }
.mcard:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.mcard__head { display: flex; justify-content: space-between; gap: 14px; min-height: 63px; text-decoration: none; border-radius: 6px; }
.mcard__title { font-size: 15.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mcard__head:hover .mcard__title { text-decoration: underline; text-underline-offset: 3px; }
.mcard__pct { flex-shrink: 0; text-align: right; line-height: 1.15; }
.mcard__pct b { display: block; font-size: 22px; font-weight: 700; }
.mcard__pct small { font-size: 11.5px; color: var(--muted); }
.is-yes { color: var(--yes); }
.is-no { color: var(--no); }
.is-void { color: var(--warn); }

.pbar { display: block; height: 4px; border-radius: 2px; background: var(--no); overflow: hidden; }
.pbar span { display: block; height: 100%; background: var(--yes); border-right: 2px solid var(--surface); }
.pbar--empty { background: var(--line); }

.mcard__buy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.buy { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border-radius: 8px; font-size: 14.5px; font-weight: 600; text-decoration: none; transition: background-color 0.12s, color 0.12s; }
.buy span { font-weight: 500; opacity: 0.8; }
.buy--yes { background: var(--yes-bg); color: var(--yes); }
.buy--no { background: var(--no-bg); color: var(--no); }
.buy--yes:hover { background: var(--yes); color: var(--on-yes); }
.buy--no:hover { background: var(--no); color: var(--on-no); }
.mcard__state { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px; background: var(--surface-2); }
.mcard__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 12.5px; color: var(--muted); }
.mcard__mine { margin-top: -4px; font-size: 12.5px; font-weight: 600; color: var(--primary); }

/* ----------------------------------------------------------- market page */
.mpage { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
.mpage__side { position: sticky; top: 84px; display: grid; gap: 14px; }
.back { display: inline-block; margin-bottom: 14px; font-size: 14px; color: var(--muted); text-decoration: none; border-radius: 4px; }
.back:hover { color: var(--text); }
.mpage h1 { font-size: 27px; text-wrap: balance; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.prob { margin: 22px 0 6px; }
.prob b { font-size: 34px; font-weight: 700; line-height: 1; color: var(--primary); }
.prob b.is-yes { color: var(--yes); }
.prob b.is-no { color: var(--no); }
.prob b.is-void { color: var(--warn); }
.prob span { font-size: 15px; color: var(--muted); }

.chart figcaption { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 12.5px; color: var(--muted); }
.chart__plot { position: relative; height: 200px; margin: 14px 40px 8px 0; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart__grid line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.chart__line { fill: none; stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart__area { fill: var(--primary); opacity: 0.1; }
.chart__dot { position: absolute; right: -5px; width: 10px; height: 10px; margin-top: -5px; border: 2px solid var(--bg); border-radius: 50%; background: var(--primary); }
.chart__labels span { position: absolute; right: -40px; width: 32px; transform: translateY(-50%); font-size: 11.5px; text-align: right; color: var(--muted); }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 26px; padding: 0; list-style: none; }
.timeline li { padding-top: 9px; border-top: 2px solid var(--line); color: var(--muted); }
.timeline b { display: block; font-size: 13.5px; font-weight: 600; }
.timeline span { font-size: 12.5px; }
.timeline .is-done { border-top-color: var(--line-strong); }
.timeline .is-current { border-top-color: var(--primary); }
.timeline .is-current b { color: var(--text); }

.section { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.section h2 { margin-bottom: 10px; font-size: 18px; font-weight: 700; }
.section p + p { margin-top: 8px; }
.verdict { font-size: 20px; font-weight: 700; }
.fine { font-size: 13px; color: var(--muted); }
.callout { margin-top: 12px !important; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); font-size: 14px; }
.dispute { display: grid; gap: 12px; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.dispute .btn { justify-self: start; width: auto; }
.rules { padding-left: 20px; color: var(--muted); font-size: 14.5px; }
.rules li + li { margin-top: 8px; }
.rules li::marker { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------ trade panel */
.box { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.box__title { margin-bottom: 8px; font-size: 16px; font-weight: 700; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.sidebtn { min-height: 46px; border: 0; border-radius: 10px; background: var(--surface-2); font-size: 15.5px; font-weight: 600; color: var(--muted); transition: background-color 0.12s, color 0.12s; }
.sidebtn span { font-weight: 500; opacity: 0.8; }
.sidebtn:hover { color: var(--text); }
.sidebtn--yes.is-on { background: var(--yes); color: var(--on-yes); }
.sidebtn--no.is-on { background: var(--no); color: var(--on-no); }
.label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.amount { position: relative; }
.amount input { width: 100%; height: 52px; padding: 0 56px 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); font-size: 22px; font-weight: 600; }
.amount input::placeholder { color: var(--muted); opacity: 0.6; }
.amount input:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.amount span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 500; color: var(--muted); pointer-events: none; }
.adds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; font-size: 14px; }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; text-align: right; }
.kv--big { margin-top: 12px; }
.kv--big b { font-size: 20px; color: var(--yes); }
.hint { min-height: 20px; margin: 2px 0 12px; font-size: 13px; color: var(--muted); }
.hint--error { color: var(--no); }
.box .btn { margin-top: 10px; }
.box .hint + .btn { margin-top: 0; }
.box .btn + .fine, .box .kv + .fine { margin-top: 10px; }

.btn { display: block; width: 100%; min-height: 48px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; font-size: 15.5px; font-weight: 600; transition: background-color 0.12s, border-color 0.12s; }
.btn--primary { background: var(--primary-btn); color: var(--on-primary); }
.btn--primary:hover:not(:disabled) { filter: brightness(1.1); }
.btn--ghost { background: none; border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text); }
.btn:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }

/* ----------------------------------------------------------------- table */
.group { margin: 26px 0 10px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.page-head + .group { margin-top: 0; }
.table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.trow { display: grid; grid-template-columns: minmax(0, 2.4fr) 1.3fr 1.2fr 1.3fr; gap: 16px; align-items: center; padding: 13px 16px; font-size: 14px; text-decoration: none; background: var(--surface); }
.trow + .trow { border-top: 1px solid var(--line); }
a.trow:hover { background: var(--surface-2); }
.trow--head { padding: 9px 16px; background: var(--surface-2); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.trow__q { font-weight: 600; }

/* ---------------------------------------------------------------- toasts */
#toasts { position: fixed; z-index: 30; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 14.5px; font-weight: 600; box-shadow: var(--shadow); animation: toast-in 0.18s ease-out; }
.toast--error { background: var(--no); color: var(--on-no); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------------------------------------------------------------- mobile */
@media (max-width: 900px) {
  /* One column: the bet panel sits right under the chart, before the long text. */
  .mpage { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .mpage__main { display: contents; }
  .mpage__side { position: static; order: 2; margin-top: 24px; }
  .mpage .back { align-self: flex-start; }
  .mpage .timeline, .mpage .section { order: 3; }
  .mpage h1 { font-size: 23px; }
}
@media (max-width: 720px) {
  .nav__in { flex-wrap: wrap; padding: 10px 16px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .acct__label { display: none; }
  .demo__in, .page { padding-left: 16px; padding-right: 16px; }
  .foot__in, .foot__note { padding-left: 16px; padding-right: 16px; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 14px 8px; }
  .trow--head { display: none; }
  .trow { grid-template-columns: 1fr; gap: 4px; }
  .trow span[data-label] { display: flex; justify-content: space-between; gap: 12px; }
  .trow span[data-label]::before { content: attr(data-label); color: var(--muted); }
}
@media (max-width: 420px) {
  .nav__links { gap: 14px; }
  .brand { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Preview mode: wallet button in the header */
.connect { min-height: 36px; padding: 6px 14px; border: 0; border-radius: 9px; background: var(--primary-btn); color: var(--on-primary); font-size: 14px; font-weight: 600; }
.connect:hover { filter: brightness(1.1); }

/* Connected wallet in the header */
.addr { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 13.5px; }
.addr b { font-weight: 600; }
.addr span { color: var(--muted); }
.iconbtn { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.iconbtn:hover { color: var(--text); background: var(--surface-2); }
.iconbtn svg { width: 16px; height: 16px; fill: currentColor; }

/* Keep the page at least one screen tall so the footer sits at the bottom */
#app { display: flex; flex-direction: column; min-height: 100vh; }
.page { flex: 1; width: 100%; }
@media (max-width: 720px) {
  .addr .badge { display: none; }
}

/* How it works page */
.how { max-width: 820px; }
.how__lead { margin-top: 10px; font-size: 17px; color: var(--muted); text-wrap: pretty; }
.how__steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; padding: 0; list-style: none; }
.how__steps li { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.how__steps b { display: block; margin-bottom: 6px; font-size: 15.5px; font-weight: 700; }
.how__steps span { font-size: 14.5px; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { padding: 13px 28px 13px 0; font-weight: 600; cursor: pointer; list-style: none; position: relative; border-radius: 4px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 28px 14px 0; font-size: 14.5px; color: var(--muted); }
.how__cta { margin-top: 28px; }
.how__cta .connect { display: inline-flex; align-items: center; text-decoration: none; }
@media (max-width: 720px) {
  .how__steps { grid-template-columns: 1fr; }
  .nav__links { gap: 14px; }
}

/* Phone header: logo and wallet on one row, links below, and it scrolls away with the page */
@media (max-width: 720px) {
  .nav { position: static; }
  .acct { order: 2; }
  .nav__links { order: 3; flex-basis: 100%; }
  .mpage__side { top: auto; }
}

/* ------------------------------------------------------------- home page */
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 40px; align-items: center; padding: 18px 0 36px; }
.hero__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.hero h1 { margin-top: 10px; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.hero__lead { max-width: 52ch; margin-top: 14px; font-size: 17px; color: var(--muted); text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero__cta .btn { display: inline-flex; align-items: center; justify-content: center; width: auto; padding: 10px 22px; text-decoration: none; }
.hero__points { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.hero__points li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--yes); vertical-align: 2px; }

.featured { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.featured__top { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--muted); }
.featured__label { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.featured__q { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; line-height: 1.3; text-decoration: none; border-radius: 6px; }
.featured__q:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.featured__pct { display: flex; align-items: baseline; gap: 8px; }
.featured__pct b { font-size: 30px; font-weight: 700; line-height: 1; color: var(--primary); }
.featured__pct span { font-size: 13.5px; color: var(--muted); }
.featured__vol { margin-left: auto; }
.spark { display: block; width: 100%; height: 70px; }

.tile { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.tile .ico { width: 20px; height: 20px; }
.tile--crypto { background: rgba(240, 180, 41, 0.16); color: #d99a1c; }
.tile--tesla { background: rgba(240, 97, 109, 0.15); color: var(--no); }
.tile--spacex { background: rgba(77, 141, 255, 0.16); color: var(--primary); }
.tile--ai { background: rgba(160, 120, 255, 0.17); color: #9a7bf0; }
.tile--politics { background: rgba(46, 189, 133, 0.15); color: var(--yes); }
.mcard__head { align-items: flex-start; }
.mcard__title { flex: 1; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 12px; scroll-margin-top: 76px; }
.toolbar h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.toolbar__sel { display: flex; flex-wrap: wrap; gap: 10px; }
.sel { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.sel select { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.sel select:hover { border-color: var(--line-strong); }

.tabs { display: flex; gap: 4px; margin-bottom: 18px; padding-bottom: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 12px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 14.5px; font-weight: 500; white-space: nowrap; color: var(--muted); }
.tab:hover { color: var(--text); }
.tab.is-on { color: var(--text); border-bottom-color: var(--primary); }
.tab.is-on .ico { color: var(--primary); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 6px; }
}
@media (max-width: 720px) {
  .toolbar { scroll-margin-top: 12px; }
  .hero__lead { font-size: 16px; }
}

/* Bar fixed to the bottom of the screen: SOL price and social links, always visible */
.dock { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line); background: var(--bg); font-size: 13px; color: var(--muted); }
.dock__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1240px; min-height: 40px; margin: 0 auto; padding: 0 20px; }
#app { padding-bottom: 41px; }
#toasts { bottom: 56px; }
.foot__in { justify-content: flex-start; }
.foot__copy { margin: 0; }
@media (max-width: 720px) {
  .dock__in { padding: 0 16px; }
}

/* ------------------------------------------------- fuller interface pass */
.hero { position: relative; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: -60px -20px auto auto; width: 520px; height: 360px; background: radial-gradient(closest-side, rgba(77, 141, 255, 0.16), transparent); pointer-events: none; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 30px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.stats div { padding: 14px 18px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dt { font-size: 12.5px; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }

.home { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.home__main { min-width: 0; }
.home .grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.rail { display: grid; gap: 14px; position: sticky; top: 76px; }
.panel { padding: 14px 8px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.panel h3 { margin: 0 8px 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.mini { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 9px; background: none; text-align: left; text-decoration: none; font-size: 14px; }
.mini:hover { background: var(--surface-2); }
.mini__q { flex: 1; min-width: 0; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini__r { flex-shrink: 0; text-align: right; line-height: 1.2; }
.mini__r b { display: block; font-size: 14.5px; font-weight: 700; }
.mini__r small { font-size: 11.5px; color: var(--muted); }
.tile--sm { width: 30px; height: 30px; border-radius: 8px; }
.tile--sm .ico { width: 16px; height: 16px; }
.tile--lg { width: 48px; height: 48px; border-radius: 12px; }
.tile--lg .ico { width: 24px; height: 24px; }

.tag { display: inline-block; margin-right: 8px; padding: 1px 6px; border-radius: 5px; background: var(--surface-2); font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em; color: var(--warn); vertical-align: 1px; }

/* market page */
.mhead { display: flex; align-items: center; gap: 14px; }
.chart figcaption { align-items: center; }
.segs { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--surface-2); }
.seg { min-width: 38px; height: 26px; padding: 0 8px; border: 0; border-radius: 6px; background: none; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.seg:hover { color: var(--text); }
.seg.is-on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 0; }
.tiles div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tiles dt { font-size: 12.5px; color: var(--muted); }
.tiles dd { margin: 3px 0 0; font-size: 17px; font-weight: 700; }

.dtable { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dtable div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; padding: 10px 14px; font-size: 14.5px; }
.dtable div + div { border-top: 1px solid var(--line); }
.dtable div:nth-child(odd) { background: var(--surface); }
.dtable dt { color: var(--muted); }
.dtable dd { margin: 0; font-weight: 500; }
.dtable a { color: var(--primary); text-decoration: none; }
.dtable a:hover { text-decoration: underline; }

.box--list { padding: 14px 8px 8px; }
.box--list .box__title { margin: 0 8px 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* empty state */
.blank { display: grid; justify-items: center; gap: 10px; padding: 56px 20px; border: 1px dashed var(--line-strong); border-radius: 16px; text-align: center; }
.blank h2 { font-size: 20px; font-weight: 700; }
.blank p { max-width: 44ch; color: var(--muted); }
.blank .connect { display: inline-flex; align-items: center; margin-top: 6px; text-decoration: none; }

/* footer */
.foot { margin-top: 24px; background: var(--surface); }
.foot__top { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr; gap: 32px; max-width: 1240px; margin: 0 auto; padding: 32px 20px 24px; }
.foot__brand p { max-width: 44ch; margin-top: 10px; font-size: 14px; }
.foot__col { display: grid; gap: 8px; align-content: start; }
.foot__col h3 { margin: 0 0 2px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.foot__col a { font-size: 14px; color: var(--muted); text-decoration: none; border-radius: 3px; }
.foot__col a:hover { color: var(--text); }
.foot__in { justify-content: flex-start; border-top: 1px solid var(--line); max-width: none; padding-left: max(20px, calc((100% - 1240px) / 2 + 20px)); padding-right: max(20px, calc((100% - 1240px) / 2 + 20px)); }
.foot__copy { margin: 0; }

@media (max-width: 1100px) {
  .home { grid-template-columns: 1fr; }
  .rail { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
}
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .tiles { grid-template-columns: 1fr 1fr; }
  .dtable div { grid-template-columns: 1fr; gap: 2px; }
  .foot__top { grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px 16px 20px; }
  .foot__brand { grid-column: 1 / -1; }
  .foot__in { padding-left: 16px; padding-right: 16px; }
  .tile--lg { width: 40px; height: 40px; }
}

/* The side panels are taller than a screen, so they scroll with the page instead of sticking */
.rail { position: static; }

/* Logo mark and picture tiles */
svg.brand__mark { display: block; width: 28px; height: 28px; border-radius: 0; background: none; flex-shrink: 0; }
.tile { overflow: hidden; }
.tile__img { width: 100%; height: 100%; object-fit: cover; }

/* Generated pictures: logo file and picture tiles */
img.brand__mark { display: block; width: 28px; height: 28px; border-radius: 0; background: none; flex-shrink: 0; }
.tile:has(.tile__img) { background: none; }
.tile__img { transform: scale(1.04); }

/* Section pictures: small on tabs, full size inside tiles */
img.ico--img { width: 22px; height: 22px; object-fit: cover; stroke: none; }
.tile img.ico--img { width: 100%; height: 100%; transform: scale(1.04); }
.tile:has(.ico--img) { background: none; }
