:root {
  color-scheme: light;
  --bg: #f2f0eb;
  --surface: #ffffff;
  --surface-2: #f5f4f0;
  --ink: #121316;
  --ink-2: #4a4d55;
  --ink-3: #85878e;
  --line: #e5e2db;
  --accent: #2b5cff;
  --accent-ink: #ffffff;
  --accent-soft: #e8edff;
  --good: #11804a;
  --good-soft: #e3f4ea;
  --bad: #c4321c;
  --flag: #b42318;
  --flag-soft: #fdebe7;
  --warn-soft: #fff3d6;
  --warn-ink: #7a5300;
  --shadow: 0 1px 2px rgba(18,19,22,.04), 0 6px 24px -8px rgba(18,19,22,.10);
  --s-ranked: #2a78d6;
  --s-watch: #eb6834;
  --s-red: #1baf7a;
  --grid: #ebe8e1;
  --hero-bg: #0d0e10;
  --hero-ink: #f4f3ef;
  --hero-ink-2: #a3a6ae;
  --hero-line: rgba(255,255,255,.12);
  --hero-card: rgba(255,255,255,.06);
  --hero-accent: #7f99ff;
  --f-display: "Bricolage Grotesque", "Avenir Next", sans-serif;
  --f-ui: "Schibsted Grotesk", "Helvetica Neue", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;
  --r: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0e10; --surface: #17191c; --surface-2: #1f2226; --ink: #f2f1ed; --ink-2: #b6b8bf; --ink-3: #7c7f87;
    --line: #272a2f; --accent: #7390ff; --accent-ink: #0d0e10; --accent-soft: #1c2442;
    --good: #46c983; --good-soft: #12291d; --bad: #ff7a64; --flag: #ff8a78; --flag-soft: #3a1915;
    --warn-soft: #3a2e0f; --warn-ink: #f2cf7a;
    --shadow: 0 0 0 1px rgba(255,255,255,.04);
    --s-ranked: #3987e5; --s-watch: #d95926; --s-red: #199e70; --grid: #24272b;
    --hero-bg: #121417; --hero-card: rgba(255,255,255,.05);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0e10; --surface: #17191c; --surface-2: #1f2226; --ink: #f2f1ed; --ink-2: #b6b8bf; --ink-3: #7c7f87;
  --line: #272a2f; --accent: #7390ff; --accent-ink: #0d0e10; --accent-soft: #1c2442;
  --good: #46c983; --good-soft: #12291d; --bad: #ff7a64; --flag: #ff8a78; --flag-soft: #3a1915;
  --warn-soft: #3a2e0f; --warn-ink: #f2cf7a;
  --shadow: 0 0 0 1px rgba(255,255,255,.04);
  --s-ranked: #3987e5; --s-watch: #d95926; --s-red: #199e70; --grid: #24272b;
  --hero-bg: #121417; --hero-card: rgba(255,255,255,.05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--f-ui); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
h2 { font: 700 20px/1.15 var(--f-display); letter-spacing: -.01em; margin: 0; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background-color: var(--hero-bg); color: var(--hero-ink); padding: max(14px, env(safe-area-inset-top)) 0 20px;
  background-image: radial-gradient(120% 90% at 100% 0%, rgba(43,92,255,.32), transparent 55%), radial-gradient(80% 60% at 0% 100%, rgba(43,92,255,.10), transparent 60%); }
.hero-x { position: absolute; right: -10%; top: -14%; width: min(560px, 92vw); height: auto; opacity: .07; pointer-events: none; }
.hero-x path { stroke: #fff; stroke-width: 9; stroke-linecap: round; fill: none; }
.topbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font: 800 17px/1 var(--f-display); letter-spacing: -.01em; }
.brand span { color: var(--hero-accent); }
.run-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--hero-line); background: var(--hero-card); color: var(--hero-ink);
  border-radius: 999px; padding: 7px 12px 7px 10px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.run-pill.past { border-color: var(--hero-accent); }
.run-pill svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; opacity: .7; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #46c983; box-shadow: 0 0 0 3px rgba(70,201,131,.18); }
.dot.stale { background: #f2b33d; box-shadow: 0 0 0 3px rgba(242,179,61,.2); }
.dot.old { background: #8a8c93; box-shadow: none; }

.hero-main { position: relative; display: grid; gap: 18px; margin-top: 24px; }
.kicker { display: flex; align-items: center; gap: 8px; color: var(--hero-ink-2); font-size: 13px; font-weight: 500; }
.big { display: flex; align-items: flex-end; gap: 12px; margin-top: 4px; }
.big > span { font: 800 clamp(88px, 26vw, 132px)/.84 var(--f-display); letter-spacing: -.05em; }
.big small { font: 600 17px/1.15 var(--f-display); color: var(--hero-ink-2); padding-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--hero-card); border: 1px solid var(--hero-line); color: var(--hero-ink); }
.chip.good { color: #7ee2a8; } .chip.bad { color: #ffa08f; }

.pick { background: var(--hero-card); border: 1px solid var(--hero-line); border-radius: var(--r); padding: 16px; }
.pick-label { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hero-accent); }
.pick-label span { color: var(--hero-ink-2); letter-spacing: .02em; text-transform: none; font-weight: 500; }
.pick-title { font: 700 20px/1.2 var(--f-display); margin-top: 8px; }
.pick-sub { color: var(--hero-ink-2); font-size: 13.5px; margin-top: 2px; }
.pick-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 14px; }
.pick-price { font: 800 32px/1 var(--f-display); letter-spacing: -.02em; }
.pick-price small { display: block; font: 500 12.5px var(--f-ui); color: var(--hero-ink-2); letter-spacing: 0; margin-top: 4px; }
.pick-rate { text-align: right; font-size: 12px; color: var(--hero-ink-2); }
.pick-rate b { display: block; font: 700 20px/1.1 var(--f-display); color: var(--hero-ink); }
.pick .meter { margin-top: 14px; }
.pick .meter-track { background: rgba(255,255,255,.12); }
.pick .meter-fill { background: var(--hero-accent); }
.pick .meter-label, .pick .meter-label b { color: var(--hero-ink-2); }
.pick-cta { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 14px; background: var(--hero-ink); color: #0d0e10;
  text-decoration: none; font-weight: 600; font-size: 14px; border-radius: 12px; padding: 12px; }

.stats { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 18px; background: var(--hero-line); border: 1px solid var(--hero-line); border-radius: 14px; overflow: hidden; }
.stat { background: var(--hero-bg); padding: 11px 13px; }
.stat-l { font-size: 11.5px; color: var(--hero-ink-2); font-weight: 500; }
.stat-v { font: 700 21px/1.2 var(--f-display); margin-top: 2px; }
.stat-d { font-size: 11.5px; color: var(--hero-ink-2); }
.stat-d.good { color: #7ee2a8; } .stat-d.bad { color: #ffa08f; }

/* ---------- info button ---------- */
.info { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; opacity: .55; cursor: pointer;
  font: italic 700 12px/1 Georgia, serif; display: inline-grid; place-items: center; padding: 0; }
.info:hover, .info:focus-visible { opacity: 1; }

/* ---------- list bar ---------- */
.listbar { position: sticky; top: 0; z-index: 5; margin: 0 -16px; padding: 10px 16px 8px; background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid transparent; transition: border-color .2s; }
.listbar.stuck { border-bottom-color: var(--line); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 3px; gap: 3px; }
.tabs button { border: 0; background: transparent; border-radius: 11px; padding: 9px 2px; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.tabs button b { font-weight: 600; color: var(--ink-3); margin-left: 3px; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tabs button[aria-selected="true"] b { color: inherit; opacity: .6; }
.tabs .tab-flag { color: var(--flag); }
.tabs .tab-flag[aria-selected="true"] { background: var(--flag); color: #fff; }
.sortbar { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.sort { flex: 1; display: flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; min-width: 0; position: relative; }
.sort::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); flex: none; pointer-events: none; }
.sort svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sort select { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 500 14px var(--f-ui); padding: 10px 0; appearance: none; -webkit-appearance: none; cursor: pointer; }
.sort select:focus { outline: none; }
.sort:focus-within { border-color: var(--accent); }
.dir { width: 42px; height: 40px; flex: none; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 16px; font-weight: 600; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 6px 0 4px; }
.card { min-width: 0; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 14px 10px; animation: rise .35s cubic-bezier(.2,.7,.3,1) both; animation-delay: calc(var(--i, 0) * 25ms); }
.card.thin .card-top, .card.thin .card-mid { opacity: .62; }
.card-top { display: flex; align-items: flex-start; gap: 10px; }
.rank { flex: none; min-width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); font: 700 15px/1 var(--f-display); }
.rank.best { background: var(--accent); color: var(--accent-ink); }
.rank.flagged { background: var(--flag-soft); color: var(--flag); font-size: 17px; }
.title { flex: 1; min-width: 0; }
.title b { display: block; font: 700 16.5px/1.2 var(--f-display); }
.title span { display: block; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { text-align: right; flex: none; }
.price b { display: block; font: 700 20px/1.1 var(--f-display); letter-spacing: -.01em; }
.price span { font-size: 12px; color: var(--ink-3); }
.price span.over { color: var(--bad); font-weight: 600; }
.card-mid { display: flex; align-items: flex-end; gap: 14px; margin-top: 12px; }
.card-mid .meter { flex: 1; min-width: 0; }
.rate { flex: none; text-align: right; font-size: 11.5px; color: var(--ink-3); line-height: 1.2; }
.rate b { display: block; font: 700 17px/1.1 var(--f-display); color: var(--ink); }
.meter-track { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 99px; background: var(--accent); }
.meter-fill.low { background: var(--ink-3); }
.meter-fill.hi { background: #e0a21b; }
.meter-fill.over { background: var(--bad); }
.meter-label { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.meter-label b { color: var(--ink-2); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.tags:empty { display: none; }
.tag { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); }
.tag.new { background: var(--accent-soft); color: var(--accent); }
.tag.drop { background: var(--good-soft); color: var(--good); }
.tag.rise { background: var(--flag-soft); color: var(--bad); }
.tag.hw-doc { background: var(--good-soft); color: var(--good); }
.tag.hw-likely { background: var(--accent-soft); color: var(--accent); }
.tag.warn { background: var(--warn-soft); color: var(--warn-ink); }
.flagline { margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--flag); }
.flagline::first-letter { text-transform: uppercase; }
.note { font-size: 13.5px; color: var(--ink-2); margin-top: 10px; }
.note.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.open .note.clamp { -webkit-line-clamp: unset; display: block; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.more-btn { border: 0; background: none; padding: 8px 0; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.more-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s; }
.card.open .more-btn svg { transform: rotate(180deg); }
.listing { font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; padding: 8px 0; }
.detail { display: none; margin: 4px 0 6px; font-size: 13.5px; color: var(--ink-2); }
.card.open .detail { display: grid; gap: 12px; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 7px 14px; margin: 0; }
.dl dt { color: var(--ink-3); font-size: 12.5px; padding-top: 1px; }
.dl dd { margin: 0; }
.vin { font: 500 12.5px var(--f-mono); letter-spacing: .02em; word-break: break-all; }
.spark { width: 100%; height: 52px; display: block; overflow: visible; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.spark text { fill: var(--ink-3); font: 10.5px var(--f-ui); }
.empty { text-align: center; color: var(--ink-3); padding: 28px 12px; background: var(--surface); border-radius: var(--r); }

/* ---------- panels ---------- */
.panel { min-width: 0; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; margin-top: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--ink-2); }
.panel-head h2 { color: var(--ink); }
.since { font: 500 13px var(--f-ui); color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.chg { border-top: 1px solid var(--line); }
.chg:first-child { border-top: 0; }
.chg > button { width: 100%; display: flex; align-items: flex-start; gap: 10px; text-align: left; background: none; border: 0; padding: 11px 0; cursor: pointer; }
.chg-area { flex: none; width: 76px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.chg-area.flag { color: var(--flag); }
.chg-txt { flex: 1; min-width: 0; font-weight: 500; }
.chg-txt::first-letter { text-transform: uppercase; }
.chg-detail { display: none; font-size: 13.5px; color: var(--ink-2); padding: 0 0 12px 86px; }
.chg.open .chg-detail { display: block; }
.chg-more { width: 100%; border: 0; border-top: 1px solid var(--line); background: none; padding: 11px 0; font-weight: 600; font-size: 13.5px; color: var(--accent); cursor: pointer; text-align: left; }
.unchanged { font-size: 12.5px; color: var(--ink-3); padding-top: 10px; border-top: 1px solid var(--line); }

.market { display: grid; gap: 20px; }
figure { margin: 0; min-width: 0; }
figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.legend { display: inline-flex; gap: 10px; font-weight: 500; color: var(--ink-3); font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend svg { width: 10px; height: 10px; }
.trends { display: grid; gap: 16px; }
.chart { width: 100%; height: 250px; position: relative; touch-action: pan-y; }
.chart-sm { height: 120px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.axis text { fill: var(--ink-3); font: 10.5px var(--f-ui); }
.gridline { stroke: var(--grid); stroke-width: 1; }
.base { stroke: var(--line); }
.capline { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.caplabel { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; fill: var(--ink-2); font: 600 10.5px var(--f-ui); }
.mk { stroke: var(--surface); stroke-width: 2; cursor: pointer; }
.mk.ranked { fill: var(--s-ranked); } .mk.watch { fill: var(--s-watch); } .mk.redflag { fill: var(--s-red); }
.mk.sel { stroke: var(--ink); stroke-width: 2.5; }
.bar { fill: var(--accent); opacity: .3; } .bar.cur { opacity: 1; }
.line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.ldot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.vlabel { paint-order: stroke; stroke: var(--surface); stroke-width: 3px; fill: var(--ink-2); font: 600 11px var(--f-ui); }
.hit { fill: transparent; cursor: pointer; }

.acc { border-top: 1px solid var(--line); }
.acc:first-child { border-top: 0; }
.acc summary { list-style: none; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 10px 26px 10px 0; cursor: pointer; position: relative; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; position: absolute; right: 0; top: 8px; font: 400 22px/1 var(--f-ui); color: var(--ink-3); }
.acc[open] summary::after { content: "–"; }
.acc h2 { font-size: 17px; }
.acc-sub { font-size: 12.5px; color: var(--ink-3); }
.mini { font-variant-numeric: tabular-nums; width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 12px; }
.mini th { text-align: right; font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding: 4px 0 6px; }
.mini th:first-child, .mini td:first-child { text-align: left; }
.mini td { text-align: right; padding: 8px 0; border-top: 1px solid var(--line); }
.src { border-top: 1px solid var(--line); }
.src:first-child { border-top: 0; }
.src > button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 0; text-align: left; border: 0; background: none; cursor: pointer; font-size: 13.5px; }
.src .sd { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--good); }
.src .sd.partial { background: #e0a21b; } .src .sd.bad { background: var(--bad); } .src .sd.na { background: var(--ink-3); }
.src-name { flex: 1; min-width: 0; font-weight: 500; }
.src-name small { display: block; color: var(--ink-3); font-size: 12px; font-weight: 400; }
.src-n { font-weight: 600; }
.src-detail { display: none; font-size: 13px; color: var(--ink-2); padding: 0 0 10px 18px; }
.src.open .src-detail { display: block; }
.foot { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-3); padding: 22px 2px max(28px, env(safe-area-inset-bottom)); }

/* ---------- sheet ---------- */
dialog#sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 84vh; background: var(--surface); color: var(--ink);
  border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.25); overflow: hidden; flex-direction: column; }
dialog#sheet[open] { display: flex; animation: sheet-up .28s cubic-bezier(.2,.8,.3,1); }
dialog#sheet::backdrop { background: rgba(8,9,10,.5); }
.sheet-grip { width: 38px; height: 4px; border-radius: 4px; background: var(--line); margin: 8px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px 4px; flex: none; }
.sheet-head h3 { margin: 0; font: 700 20px/1.2 var(--f-display); }
.sheet-x { flex: none; border: 0; background: var(--surface-2); width: 34px; height: 34px; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }
.sheet-body { overflow-y: auto; padding: 4px 18px max(24px, env(safe-area-inset-bottom)); font-size: 14.5px; color: var(--ink-2); }
.sheet-body p { margin: 8px 0; }
.sheet-body ul { margin: 8px 0; padding-left: 18px; }
.sheet-body li { margin: 5px 0; }
.sheet-body b { color: var(--ink); }
.run-day { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin: 14px 0 6px; }
.run-day:first-child { margin-top: 6px; }
.run-opt { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; border: 0; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin-bottom: 4px; cursor: pointer; font-weight: 600; }
.run-opt.cur { background: var(--ink); color: var(--bg); }
.run-opt span { font-size: 12.5px; font-weight: 500; opacity: .65; }
@media (min-width: 720px) {
  dialog#sheet { margin: auto; border-radius: 22px; }
  .sheet-grip { display: none; }
}

.tip { position: fixed; z-index: 20; pointer-events: none; max-width: 240px; background: var(--ink); color: var(--bg); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; line-height: 1.4; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.tip b { font-weight: 700; }
.tip .tk { opacity: .65; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
  .listbar { flex-direction: row; align-items: center; }
  .tabs { flex: 1.4; }
  .sortbar { flex: 1; }
  .trends { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .hero { padding-bottom: 28px; }
  .hero-main { grid-template-columns: 1fr 400px; align-items: end; gap: 32px; margin-top: 34px; }
  .big > span { font-size: 156px; }
  .market { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .trends { grid-template-columns: 1fr; }
  .chart { height: 290px; }
  .chart.chart-sm { height: 125px; }
}
