/* cryptodash. Tokens first; light and dark are each chosen, not flipped. */
:root {
  color-scheme: light;
  --bg: #f4f4f1;
  --surface: #fcfcfb;
  --surface-2: #f0efeb;
  --line: #e1e0d9;
  --border: rgba(11, 11, 11, 0.10);
  --text: #0b0b0b;
  --text-2: #52514e;
  --muted: #6b6a66;
  --up: #006300;
  --down: #c62f2f;
  --accent: #2a78d6;
  --accent-ink: #1c5cab;
  --accent-soft: #e3eefc;
  --heat-track: #e7e6e1;
  --good: #0a8f0a;
  --warn: #9a6700;
  --serious: #b9532b;
  --chip: #ebeae5;
  --on-bg: #2a78d6;
  --on-text: #ffffff;
  --row-hover: #f3f6fb;
  --focus: #2a78d6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #222220;
    --line: #2c2c2a;
    --border: rgba(255, 255, 255, 0.10);
    --text: #f0efec;
    --text-2: #c3c2b7;
    --muted: #8f8d87;
    --up: #2fbf4f;
    --down: #e66767;
    --accent: #3987e5;
    --accent-ink: #86b6ef;
    --accent-soft: #16304f;
    --heat-track: #2c2c2a;
    --good: #0ca30c;
    --warn: #fab219;
    --serious: #ec835a;
    --chip: #2a2a28;
    --on-bg: #3987e5;
    --on-text: #ffffff;
    --row-hover: #20242b;
    --focus: #86b6ef;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #222220;
  --line: #2c2c2a;
  --border: rgba(255, 255, 255, 0.10);
  --text: #f0efec;
  --text-2: #c3c2b7;
  --muted: #8f8d87;
  --up: #2fbf4f;
  --down: #e66767;
  --accent: #3987e5;
  --accent-ink: #86b6ef;
  --accent-soft: #16304f;
  --heat-track: #2c2c2a;
  --good: #0ca30c;
  --warn: #fab219;
  --serious: #ec835a;
  --chip: #2a2a28;
  --on-bg: #3987e5;
  --on-text: #ffffff;
  --row-hover: #20242b;
  --focus: #86b6ef;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, select, input { font: inherit; color: inherit; }
a { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, td.n, th.n { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--text-2); }
.muted { color: var(--muted); }
.sub { color: var(--text-2); font-size: 12.5px; margin: 2px 0 10px; }

/* top bar */
.top {
  display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.brand { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px; letter-spacing: 0.04em; }
.logo { width: 20px; height: 20px; border-radius: 5px; background: url("favicon.svg") center / cover; }
.statuspill {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); background: var(--surface-2);
  border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--text-2); cursor: pointer; margin-right: auto; max-width: 100%;
}
.statuspill:hover { border-color: var(--accent); }
.statuspill .st-main { color: var(--text); font-weight: 600; white-space: nowrap; }
.statuspill .st-next { white-space: nowrap; }
.statuspill .st-warn { color: var(--warn); font-weight: 600; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot.ok { background: var(--good); }
.dot.busy { background: var(--accent); }
.dot.err { background: var(--down); }
.dot.paused { background: var(--warn); }
.top-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn {
  border: 1px solid var(--border); background: var(--surface-2); border-radius: 8px; padding: 6px 12px; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.ghost { background: transparent; }
.btn.small { padding: 3px 9px; font-size: 12.5px; }
select, input[type="search"], input[type="number"] {
  border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 5px 8px; max-width: 100%;
}
.when select { max-width: 200px; }
.banner { background: var(--accent-soft); color: var(--text); padding: 8px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* market strip */
.market {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px;
  background: var(--line); border-bottom: 1px solid var(--line);
}
.tile { background: var(--surface); padding: 9px 16px; min-width: 0; }
.tile .k { color: var(--text-2); font-size: 12px; }
.tile .v { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile .s { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* tabs */
.tabs { display: flex; gap: 2px; padding: 8px 16px 0; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--bg); }
.tabs button {
  border: 0; background: transparent; padding: 8px 12px; border-radius: 8px 8px 0 0; cursor: pointer; color: var(--text-2); white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
main { padding: 16px; }
.foot { padding: 4px 16px 28px; padding-bottom: max(28px, env(safe-area-inset-bottom)); color: var(--muted); font-size: 12px; display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: baseline; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.card h2 { margin: 0; font-size: 15px; }
.card + .card { margin-top: 16px; }
.head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.head .count { color: var(--text-2); font-size: 12.5px; }
.head .right { margin-left: auto; }
/* scanner layout: one column on phones (guide, setups, narratives, coins, trending); a side column on wide screens */
.scanner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.scanner > div { min-width: 0; }
@media (min-width: 1180px) {
  .scanner {
    grid-template-columns: 360px minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas: "guide guide" "setups setups" "narr main" "trend main";
    align-items: start;
  }
  .area-guide { grid-area: guide; }
  .area-setups { grid-area: setups; }
  .area-narr { grid-area: narr; }
  .area-main { grid-area: main; }
  .area-trend { grid-area: trend; }
}

/* the first-visit guide */
.guide { border-color: var(--accent); }
.guide-list { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; }
.guide-list .lights { vertical-align: middle; }

/* top setups */
.setups { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 12px; }
.setup {
  border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface-2); cursor: pointer;
  display: grid; gap: 9px; align-content: start; transition: border-color 0.12s;
}
.setup:hover { border-color: var(--accent); }
.setup-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.setup-top .coin { min-width: 0; max-width: none; }
.setup-price { text-align: right; flex: none; }
.setup-price .num { font-size: 13px; color: var(--text-2); }
.big { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.setup-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.setup-since { font-size: 12.5px; color: var(--text-2); }
.tf { display: flex; gap: 5px; flex-wrap: wrap; }
.tfc {
  display: inline-flex; gap: 5px; align-items: baseline; border: 1px solid var(--border); border-radius: 7px; padding: 2px 7px;
  font-size: 12.5px; font-variant-numeric: tabular-nums; background: var(--surface);
}
.tfc .tfl { color: var(--muted); font-weight: 600; font-size: 11px; }
.tfc.on { border-color: var(--on-bg); box-shadow: inset 0 0 0 1px var(--on-bg); }
.tfc.on .tfl { color: var(--accent-ink); }
.badge { display: inline-block; font-size: 11.5px; padding: 2px 7px; border-radius: 999px; background: var(--chip); color: var(--text-2); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.badge.hot { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.badge.trend { color: var(--serious); font-weight: 600; }
.badge.vol { color: var(--accent-ink); }
.badge.on { background: var(--on-bg); color: var(--on-text); font-weight: 600; }
.badge.warn { color: var(--warn); border: 1px solid var(--warn); background: transparent; }
.small { font-size: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.grid2 .card + .card { margin-top: 0; }
.empty { color: var(--text-2); padding: 18px 4px; }
.note { color: var(--text-2); font-size: 12.5px; }
.callout { border-left: 3px solid var(--accent); padding: 6px 10px; background: var(--accent-soft); border-radius: 0 8px 8px 0; margin: 8px 0 12px; font-size: 13px; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 10px 0 10px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; flex-wrap: wrap; }
.seg button { border: 0; background: var(--surface); padding: 5px 10px; cursor: pointer; border-right: 1px solid var(--border); white-space: nowrap; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--on-bg); color: var(--on-text); }
.more-filters { padding: 10px 12px; margin-top: 0; background: var(--surface-2); border-radius: 10px; }
input.search { min-width: 150px; }
.field { display: inline-flex; gap: 6px; align-items: center; color: var(--text-2); font-size: 13px; }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--text-2); cursor: pointer; }
.chipx {
  display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--text); border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 13px;
}
.chipx button { border: 0; background: transparent; cursor: pointer; padding: 0 6px; font-size: 15px; line-height: 1; color: var(--text-2); }
.linkish { border: 0; background: none; padding: 0; color: var(--accent-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* tables */
.table-wrap { overflow: auto; max-height: 72vh; border: 1px solid var(--line); border-radius: 10px; }
table.grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.grid th {
  position: sticky; top: 0; z-index: 2; background: var(--surface-2); color: var(--text-2); font-weight: 600; font-size: 12px;
  text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; user-select: none;
}
.grid th.sortable { cursor: pointer; }
.grid th.sortable:hover { color: var(--text); }
.grid th .arrow { font-size: 9px; margin-left: 3px; }
.grid td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.grid tbody tr:hover td { background: var(--row-hover); }
.grid tr.click { cursor: pointer; }
.grid tr.click:focus-visible td { background: var(--row-hover); }
/* the coin column stays in view while the table scrolls sideways */
.grid th.sticky, .grid td.sticky { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.grid th.sticky { z-index: 3; background: var(--surface-2); }
.grid tbody tr:hover td.sticky { background: var(--row-hover); }
.stack { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.coin { display: flex; align-items: center; gap: 8px; min-width: 150px; max-width: 240px; }
.coin img, .coin .ph { width: 22px; height: 22px; border-radius: 50%; flex: none; background: var(--chip); }
.coin.big img, .coin.big .ph { width: 32px; height: 32px; }
.coin.big .sym { font-size: 18px; }
.coin .nm { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.coin .sym { font-weight: 650; }
.coin .full { color: var(--text-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag {
  display: inline-block; background: var(--chip); color: var(--text-2); border-radius: 6px; padding: 1px 6px; font-size: 11.5px; margin: 1px 3px 1px 0;
  white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; border: 0; cursor: pointer;
}
.tag:hover { color: var(--text); }
.tag.hot { background: var(--accent-soft); color: var(--accent-ink); }
.trend { display: inline-block; font-size: 11px; font-weight: 600; color: var(--serious); margin-left: 4px; }
.lights { display: inline-flex; gap: 3px; }
.lights i {
  font-style: normal; font-size: 10.5px; font-weight: 600; padding: 1px 5px; border-radius: 5px; border: 1px solid var(--border); color: var(--muted);
}
.lights i.on { background: var(--on-bg); border-color: var(--on-bg); color: var(--on-text); }
.since { white-space: nowrap; }
.since .age { color: var(--text-2); }
.volx { font-size: 11.5px; color: var(--text-2); }
.volx.hi { color: var(--accent-ink); font-weight: 650; }
svg.spark { display: block; overflow: visible; }
svg.spark path.line { fill: none; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
svg.spark path.line.up { stroke: var(--up); }
svg.spark path.line.down { stroke: var(--down); }
svg.spark path.line.acc { stroke: var(--accent); }
svg.spark line.base { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 2; }
.heat { display: inline-flex; align-items: center; gap: 6px; }
.heat .bar { width: 56px; height: 6px; border-radius: 3px; background: var(--heat-track); overflow: hidden; }
.heat .bar span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.phase { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; white-space: nowrap; }
.phase::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.phase.running::before { background: var(--good); }
.phase.pausing::before { background: var(--accent); }
.phase.turning::before { background: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.phase.cooling::before { background: var(--serious); }
.phase.bouncing::before { background: var(--warn); }
.rankmove { font-size: 11px; margin-left: 4px; }
.more { margin-top: 10px; }

/* hot narratives list */
.nlist { list-style: none; margin: 0; padding: 0; }
.nlist li { border-top: 1px solid var(--line); }
.nlist li:first-child { border-top: 0; }
.nlist button {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 2px 8px; width: 100%; text-align: left;
  border: 0; background: transparent; padding: 8px 4px; cursor: pointer; border-radius: 8px; align-items: center;
}
.nlist button:hover, .nlist button[aria-pressed="true"] { background: var(--row-hover); }
.nlist .rk { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; grid-row: span 2; align-self: start; padding-top: 1px; }
.nlist .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nlist .meta { grid-column: 2 / 4; display: flex; gap: 10px; align-items: center; color: var(--text-2); font-size: 12px; flex-wrap: wrap; }
.nlist .hv { display: flex; align-items: center; gap: 6px; }

/* trending list */
.tlist { list-style: none; margin: 0; padding: 0; }
.tlist li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; padding: 7px 4px; border-top: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.tlist li:first-child { border-top: 0; }
.tlist li:hover { background: var(--row-hover); }
.tlist .rk { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.tlist .meta { grid-column: 2 / 4; display: flex; gap: 8px; flex-wrap: wrap; color: var(--text-2); font-size: 12px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* changes and signals */
.clist { list-style: none; margin: 0; padding: 0; }
.clist li { display: flex; gap: 8px; align-items: center; padding: 6px 2px; border-top: 1px solid var(--line); cursor: pointer; }
.clist li:first-child { border-top: 0; }
.clist li:hover { background: var(--row-hover); }
.clist .coin { flex: 1 1 auto; max-width: none; }
.clist .nums { display: flex; gap: 10px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.meter { height: 8px; background: var(--heat-track); border-radius: 4px; overflow: hidden; margin-top: 4px; max-width: 360px; }
.meter span { display: block; height: 100%; background: var(--accent); }
pre.log { background: var(--surface-2); border-radius: 8px; padding: 10px; font-size: 12px; overflow: auto; max-height: 340px; margin: 8px 0 0; white-space: pre-wrap; }
.sumtable td { min-width: 120px; vertical-align: top; }
.cellnum { font-variant-numeric: tabular-nums; }
.cellnum .big { font-weight: 650; }
.cellnum .small { display: block; font-size: 11.5px; color: var(--text-2); }
code { background: var(--surface-2); padding: 1px 5px; border-radius: 5px; font-size: 12.5px; }

/* sign-in page */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login { width: 100%; max-width: 360px; }
.login .card { padding: 24px; }
.login .brand { margin-bottom: 14px; }
.login h1 { font-size: 20px; margin: 0 0 12px; }
.login form { display: grid; gap: 8px; margin: 4px 0 12px; }
.login label { color: var(--text-2); font-size: 13px; }
.login input[type="password"] { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 9px 10px; font-size: 15px; width: 100%; }
.btn.primary { background: var(--on-bg); border-color: var(--on-bg); color: var(--on-text); padding: 9px 12px; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.login-msg { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: var(--accent-soft); font-size: 13px; }
.login-msg.bad { color: var(--down); background: transparent; border: 1px solid var(--down); }

/* coins on phones: one tappable row each */
.citems { list-style: none; margin: 0; padding: 0; }
.citem { display: grid; gap: 6px; padding: 11px 4px; border-top: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.citem:first-child { border-top: 0; }
.citem:hover, .citem:focus-visible { background: var(--row-hover); }
.ci-a { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ci-a .coin { min-width: 0; max-width: none; flex: 1 1 auto; }
.ci-p { text-align: right; flex: none; }
.ci-p .num { font-size: 12.5px; color: var(--text-2); }
.ci-c { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ci-c:empty { display: none; }
.nums.col { flex-direction: column; align-items: flex-end; gap: 2px; }

/* coin details: a panel from the right (full screen on phones) */
#panel { position: fixed; inset: 0; z-index: 50; }
.backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.sheet {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--surface); overflow-y: auto;
  padding: 16px 18px 28px; padding-top: max(16px, env(safe-area-inset-top)); padding-bottom: max(28px, env(safe-area-inset-bottom));
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.25); border-left: 1px solid var(--border); animation: slidein 0.18s ease-out;
}
@keyframes slidein { from { transform: translateX(24px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
body.locked { overflow: hidden; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sheet-head .coin { max-width: none; }
.close { font-size: 22px; line-height: 1; padding: 4px 12px; }
.sheet-price { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 4px; }
.pbig { font-size: 26px; font-weight: 700; }
.sheet-sec { margin-top: 18px; }
.sheet-sec h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-2); margin: 0 0 8px; }
.lrow { display: grid; grid-template-columns: 110px 70px minmax(0, 1fr); gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.lrow:first-of-type { border-top: 0; }
.lrow .lname { color: var(--text-2); }
.lrow .lval { font-variant-numeric: tabular-nums; font-weight: 650; text-align: right; }
.lrow .lstate { font-size: 12.5px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; }
.facts dt { color: var(--text-2); font-size: 12px; }
.facts dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.sheet-links { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.sheet-links .btn { text-decoration: none; color: var(--text); }
.chartbox { position: relative; }
svg.bigchart { display: block; width: 100%; height: 150px; touch-action: pan-y; cursor: crosshair; }
svg.bigchart path.line { fill: none; stroke-width: 2; }
svg.bigchart path.line.up { stroke: var(--up); }
svg.bigchart path.line.down { stroke: var(--down); }
svg.bigchart path.area { stroke: none; opacity: 0.12; }
svg.bigchart path.area.up { fill: var(--up); }
svg.bigchart path.area.down { fill: var(--down); }
svg.bigchart line.cross { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 3 3; }
.axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 2px; }
.readout { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); margin-top: 6px; min-height: 18px; }
.readout b { color: var(--text); }

@media (max-width: 760px) {
  .top { position: static; gap: 8px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); }
  .brand { font-size: 15px; }
  .statuspill { order: 3; flex-basis: 100%; margin-right: 0; justify-content: flex-start; }
  .statuspill .st-next { display: none; }
  .top-actions { margin-left: auto; gap: 6px; }
  .top-actions .btn { padding: 5px 10px; }
  .when select { max-width: 120px; }
  .tabs { position: sticky; top: 0; z-index: 15; padding: 6px 8px 0; }
  .tabs button { padding: 8px 10px; }
  .market { grid-template-columns: 1fr 1fr; }
  .tile { padding: 8px 12px; }
  .tile .v { font-size: 16px; }
  .tile .s { white-space: normal; }
  main { padding: 12px; }
  .card { padding: 12px; }
  .seg.scroll { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .seg.scroll::-webkit-scrollbar { display: none; }
  .filters { gap: 8px; }
  .filters select, input.search { flex: 1 1 140px; min-width: 0; }
  /* setups swipe sideways on phones so the coin list starts sooner */
  .setups { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
  .setups::-webkit-scrollbar { display: none; }
  .setup { scroll-snap-align: start; }
  .lrow { grid-template-columns: 96px 64px minmax(0, 1fr); }
  .clist .nums { gap: 8px; font-size: 12px; }
  .clist li { flex-wrap: wrap; }
}
