/* AI 成本账 · neo-brutalist theme. Light = cream paper, dark = charcoal with white ink edges. */
:root {
  --bg: #fff8e7;
  --bg-2: #ffffff;
  --ink: #111111;
  --ink-2: #3a3a3a;
  --ink-3: #6b6b6b;
  --edge: #111111;
  --soft: #e9dfc6;
  --y: #ffe14d;
  --p: #ff7eb6;
  --b: #5b8cff;
  --g: #3ddc97;
  --o: #ff9f43;
  --good: #11804a;
  --paper: #ffffff;
  --paper-ink: #111111;
  --hover: #fff1c2;
  --sh: 5px 5px 0 var(--edge);
  --sh-sm: 3px 3px 0 var(--edge);
  --sh-lg: 8px 8px 0 var(--edge);
  --t-text: var(--y); --t-image: var(--p); --t-video: var(--o); --t-tts: var(--b); --t-stt: var(--g); --t-voice: #c9a7ff; --t-embedding: #cfcfcf;
  --mono: "JetBrains Mono", "SF Mono", Consolas, Menlo, monospace;
  --sans: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --r: 12px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #161616;
  --bg-2: #222222;
  --ink: #f5f5f5;
  --ink-2: #cfcfcf;
  --ink-3: #9a9a9a;
  --edge: #f5f5f5;
  --soft: #3a3a3a;
  --good: #3ddc97;
  --hover: #2d2a1f;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .3s, color .3s;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 12%, transparent) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
}
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--b); outline-offset: 3px; }

/* chunky parts */
.btn, .chip, .toggle, .theme-btn, .panel, .card, .sub-card, .table-wrap, .search, select, .receipt, .tabs, .results, .logo {
  border: 3px solid var(--edge);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px;
  background: var(--bg-2); border-radius: var(--r); box-shadow: var(--sh); font-weight: 900; font-size: 16px;
  text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-lg); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--edge); }
.btn.primary { background: var(--b); color: #fff; }
:root[data-theme="dark"] .btn.primary { background: var(--y); color: #111; }
.btn.wide { width: 100%; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; background: var(--bg-2);
  font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: var(--sh-sm); transition: transform .12s, box-shadow .12s;
}
.chip:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--edge); }
.chip.on { background: var(--ink); color: var(--bg); }
.chip[data-t]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--edge); background: var(--c); }
.label { font-family: var(--mono); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.search, select { width: 100%; background: var(--bg-2); border-radius: var(--r); padding: 12px 14px; outline: none; font-weight: 600; box-shadow: var(--sh-sm); }
.search:focus, select:focus { box-shadow: 5px 5px 0 var(--b); }
select { width: auto; cursor: pointer; }
[data-t="text"] { --c: var(--t-text); } [data-t="image"] { --c: var(--t-image); } [data-t="video"] { --c: var(--t-video); }
[data-t="tts"] { --c: var(--t-tts); } [data-t="stt"] { --c: var(--t-stt); } [data-t="voice"] { --c: var(--t-voice); } [data-t="embedding"] { --c: var(--t-embedding); }
[data-t="all"] { --c: var(--bg-2); }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px clamp(16px, 4vw, 48px); background: var(--bg); border-bottom: 3px solid var(--edge);
}
.logo {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; font-size: 18px;
  background: var(--y); color: #111; padding: 5px 12px; border-radius: 10px; box-shadow: var(--sh-sm); transform: rotate(-2deg);
}
.logo-mark { font-family: var(--mono); font-size: 13px; background: #111; color: var(--y); padding: 2px 6px; border-radius: 5px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.updated { font-family: var(--mono); font-size: 12px; color: var(--ink-3); font-weight: 700; }
.updated b { color: var(--ink); }
.toggle { display: inline-flex; border-radius: 10px; overflow: hidden; box-shadow: var(--sh-sm); background: var(--bg-2); }
.toggle button { background: none; border: 0; padding: 5px 11px; cursor: pointer; font-weight: 900; font-size: 14px; min-width: 36px; }
.toggle button + button { border-left: 3px solid var(--edge); }
.toggle button.on { background: var(--ink); color: var(--bg); }
.theme-btn { width: 40px; height: 34px; border-radius: 10px; background: var(--bg-2); box-shadow: var(--sh-sm); cursor: pointer; display: grid; place-items: center; }
.theme-btn svg { width: 18px; height: 18px; }
:root[data-theme="light"] .theme-btn .moon, :root[data-theme="dark"] .theme-btn .sun { display: none; }

/* sections */
section { padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 48px); max-width: 1320px; margin: 0 auto; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; font-weight: 900;
  letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: var(--bg); padding: 5px 12px; border-radius: 999px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--g); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(32px, 5vw, 64px); line-height: 1.05; letter-spacing: -.03em; font-weight: 900; margin-top: 16px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; min-height: calc(100vh - 66px); }
.hero-title { font-size: clamp(48px, 7.4vw, 104px); line-height: 1.02; letter-spacing: -.035em; font-weight: 900; margin: 22px 0 26px; }
.hero-title .line { display: block; }
.hero-title .accent {
  display: inline-block; margin-top: 10px; background: var(--p); color: #111; padding: 0 .18em; border: 4px solid var(--edge);
  box-shadow: var(--sh-lg); border-radius: 14px; transform: rotate(-2deg); font-size: .7em; white-space: nowrap;
}
.hero-title .char { display: inline-block; opacity: 0; transform: translateY(.45em) scale(.8); animation: pop .5s cubic-bezier(.3,1.6,.5,1) forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }
.hero-sub { font-size: clamp(16px, 1.5vw, 20px); font-weight: 600; color: var(--ink-2); max-width: 32em; }
.hero-actions { display: flex; gap: 16px; margin: 30px 0 38px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, auto); gap: 10px; justify-content: start; }
.stats > div { background: var(--bg-2); border: 3px solid var(--edge); border-radius: 12px; padding: 8px 14px; box-shadow: var(--sh-sm); }
.stats > div:nth-child(1) { background: var(--y); color: #111; } .stats > div:nth-child(2) { background: var(--g); color: #111; }
.stats > div:nth-child(3) { background: var(--p); color: #111; }
.stats dt { font-family: var(--mono); font-size: clamp(20px, 2.2vw, 28px); font-weight: 900; }
.stats dd { font-size: 12px; font-weight: 800; opacity: .75; }

/* sticker cards */
.stack { position: relative; height: 520px; }
.card {
  position: absolute; width: min(320px, 78%); background: var(--bg-2); color: var(--ink); padding: 20px 22px; border-radius: 16px;
  box-shadow: var(--sh-lg); text-decoration: none; transition: transform .25s cubic-bezier(.3,1.5,.5,1);
}
.card h4 { font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.card .n { font-family: var(--mono); font-size: clamp(32px, 3.6vw, 48px); font-weight: 900; letter-spacing: -.03em; margin: 6px 0 2px; white-space: nowrap; }
.card b { font-weight: 800; font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c1 { top: 10px; left: 4%; background: var(--y); color: #111; transform: rotate(-5deg); }
.c2 { top: 165px; right: 2%; background: var(--g); color: #111; transform: rotate(4deg); }
.c3 { top: 320px; left: 10%; transform: rotate(-1.5deg); width: min(360px, 84%); }
.card:hover { transform: rotate(0) scale(1.04); z-index: 3; }
.c2.bump { animation: bump .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 0% { transform: rotate(4deg) scale(1); } 40% { transform: rotate(-2deg) scale(1.08); } 100% { transform: rotate(4deg) scale(1); } }
.sticker {
  position: absolute; top: -18px; right: -14px; background: var(--p); color: #111; font-weight: 900; font-size: 13px; padding: 6px 12px;
  border: 3px solid #111; border-radius: 999px; transform: rotate(10deg); box-shadow: 3px 3px 0 #111;
}
#ct-lines div, .ct-total { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 14px; padding: 6px 0; border-bottom: 2px dashed var(--edge); }
#ct-lines div span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-total { border: 0; font-size: 20px; font-weight: 900; padding-top: 8px; }
.ct-empty { font-weight: 700; color: var(--ink-3); padding: 10px 0; }

/* ticker */
.ticker { contain: paint; max-width: 100vw; background: #111; border-block: 3px solid #111; transform: rotate(-1.2deg) scale(1.02); margin: 10px 0; }
.ticker-track { display: flex; gap: 34px; width: max-content; padding: 14px 0; animation: marquee 55s linear infinite; font-weight: 900; font-size: 18px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { color: #f5f5f5; white-space: nowrap; }
.ticker-track span::after { content: "★"; color: var(--p); margin-left: 34px; }
.ticker-track b { color: var(--y); }
.ticker-track i { font-style: normal; color: var(--g); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* calculator */
.calc-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 3vw, 44px); align-items: start; }
.panel { background: var(--bg-2); border-radius: 18px; padding: 22px; box-shadow: var(--sh-lg); }
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.presets .chip:nth-of-type(1) { background: var(--y); color: #111; } .presets .chip:nth-of-type(2) { background: var(--g); color: #111; }
.presets .chip:nth-of-type(3) { background: var(--p); color: #111; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border-radius: 12px; overflow: hidden; margin-bottom: 18px; box-shadow: var(--sh-sm); }
.tab { background: var(--bg-2); border: 0; padding: 12px; cursor: pointer; font-weight: 900; }
.tab + .tab { border-left: 3px solid var(--edge); }
.tab.on { background: var(--ink); color: var(--bg); }
.type-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.results { list-style: none; margin-top: 14px; max-height: 300px; overflow: auto; border-radius: 12px; background: var(--bg-2); }
.results:empty { display: none; }
.results li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 10px 14px; cursor: pointer; border-bottom: 2px solid var(--soft); }
.results li > div { min-width: 0; }
.results li:hover, .results li.on { background: var(--hover); }
.results .m { font-family: var(--mono); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.results .p { color: var(--ink-3); font-size: 12px; font-weight: 700; }
.results .v { font-family: var(--mono); font-weight: 900; white-space: nowrap; }
.picked { margin-top: 18px; border-top: 3px dashed var(--edge); padding-top: 18px; }
.picked-name { font-family: var(--mono); font-weight: 900; font-size: 18px; word-break: break-all; }
.picked-price { color: var(--ink-2); font-size: 14px; font-weight: 600; margin: 4px 0 14px; }
.usage { display: grid; gap: 14px; margin-bottom: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 800; }
.field-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.field input[type="range"] { accent-color: var(--b); width: 100%; }
.field input[type="number"] { width: 120px; background: var(--bg); border: 3px solid var(--edge); border-radius: 10px; padding: 7px 10px; font-family: var(--mono); font-weight: 800; text-align: right; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair input { width: 100% !important; }
.sub-pick { display: grid; gap: 10px; max-height: 480px; overflow: auto; padding: 2px 6px 6px 2px; }
.sub-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border: 3px solid var(--edge); border-radius: 12px; background: var(--bg-2); }
.sub-row .n { font-weight: 900; }
.sub-row .n small { color: var(--ink-3); font-weight: 700; margin-left: 6px; }
.sub-row .v { font-family: var(--mono); font-weight: 900; }
.add-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 3px solid #111; background: var(--y); color: #111; cursor: pointer;
  font-size: 20px; font-weight: 900; line-height: 1; box-shadow: 3px 3px 0 #111; transition: transform .12s, box-shadow .12s;
}
.add-btn:hover { transform: translate(-1px, -1px) rotate(90deg); }
.add-btn:active { transform: translate(3px, 3px); box-shadow: none; }

/* receipt */
.receipt-wrap { position: sticky; top: 90px; }
.printer { height: 22px; background: #111; border: 3px solid var(--edge); border-radius: 12px 12px 4px 4px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; }
.printer .slot { width: 86%; height: 5px; background: #444; border-radius: 3px; }
.receipt {
  position: relative; width: 90%; margin: -3px auto 0; background: var(--paper); color: var(--paper-ink); border-top: 0;
  font-family: var(--mono); font-size: 13.5px; padding: 22px 20px 26px; border-radius: 0 0 14px 14px; box-shadow: var(--sh-lg);
  transform: rotate(1deg); transform-origin: top; animation: feed .6s ease-out;
}
@keyframes feed { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -20px 0); } }
.r-head { text-align: center; border-bottom: 2px dashed #111; padding-bottom: 12px; margin-bottom: 10px; }
.r-brand { font-weight: 900; }
.r-meta { font-size: 11.5px; color: #555; margin-top: 4px; }
.r-lines { list-style: none; }
.r-lines li { padding: 8px 0; border-bottom: 2px dotted #bbb; animation: print .45s steps(6) both; }
@keyframes print { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.r-line-top { display: flex; justify-content: space-between; gap: 10px; }
.r-line-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; }
.r-line-sub { font-size: 11.5px; color: #555; display: flex; justify-content: space-between; gap: 8px; }
.r-del { background: none; border: 0; color: #d6336c; cursor: pointer; font-weight: 900; }
.r-empty { color: #555; padding: 18px 0; text-align: center; font-family: var(--sans); font-weight: 700; }
.r-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 3px solid #111; margin-top: 12px; padding-top: 12px; font-weight: 900; }
.r-total b { font-size: clamp(30px, 3.2vw, 40px); background: var(--y); padding: 0 8px; border: 3px solid #111; border-radius: 8px; transform: rotate(-2deg); display: inline-block; }
.r-sub { display: flex; justify-content: space-between; font-size: 12.5px; color: #333; margin-top: 10px; font-weight: 700; }
.r-tips { margin-top: 12px; display: grid; gap: 6px; }
.r-tips p { font-size: 12.5px; background: #e6fff3; padding: 7px 9px; border: 2px solid #111; border-radius: 8px; font-family: var(--sans); font-weight: 700; }
.barcode { height: 36px; margin: 16px 6px 6px; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 12px); }
.r-foot { text-align: center; font-size: 11px; color: #555; letter-spacing: .12em; font-weight: 700; }
.receipt-actions { display: flex; gap: 14px; justify-content: center; margin-top: 24px; }

/* market */
.market-controls { display: grid; gap: 14px; margin-bottom: 18px; }
.market-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; }
.table-wrap { border-radius: 16px; overflow: auto; max-height: 720px; background: var(--bg-2); box-shadow: var(--sh-lg); }
table.prices { width: 100%; border-collapse: collapse; font-size: 14px; }
.prices th { position: sticky; top: 0; z-index: 1; background: #111; color: var(--y); text-align: left; font-family: var(--mono); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; padding: 12px 14px; }
.prices td { padding: 10px 14px; border-bottom: 2px solid var(--soft); white-space: nowrap; font-weight: 600; }
.prices tbody tr:hover { background: var(--hover); }
.prices .num { text-align: right; font-family: var(--mono); font-weight: 800; }
.prices td.model { font-family: var(--mono); font-weight: 700; max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.prices td.free { color: var(--good); }
.prices .tag { font-size: 12px; font-weight: 900; border: 2px solid #111; border-radius: 999px; padding: 2px 9px; background: var(--c); color: #111; }
.bar { display: inline-block; height: 8px; background: var(--b); border: 2px solid var(--edge); border-radius: 4px; margin-left: 8px; vertical-align: middle; }
.market-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; font-family: var(--mono); font-size: 13px; font-weight: 800; color: var(--ink-3); }

/* subscriptions */
.subs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.sub-card { position: relative; border-radius: 16px; padding: 20px; background: var(--bg-2); box-shadow: var(--sh); transition: transform .15s, box-shadow .15s; }
.sub-card:hover { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: var(--sh-lg); }
.sub-card[data-cat="chat"] { background: var(--y); color: #111; } .sub-card[data-cat="coding"] { background: var(--b); color: #fff; }
.sub-card[data-cat="image"] { background: var(--p); color: #111; } .sub-card[data-cat="video"] { background: var(--o); color: #111; }
.sub-card[data-cat="audio"] { background: var(--g); color: #111; }
.sub-card .cat { font-family: var(--mono); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; display: inline-block; background: #111; color: #fff; padding: 2px 8px; border-radius: 6px; }
.sub-card h3 { font-size: 22px; font-weight: 900; margin: 12px 0 0; }
.sub-card .plan { font-weight: 800; opacity: .8; }
.sub-card .price { font-family: var(--mono); font-size: 34px; font-weight: 900; margin: 14px 0 6px; letter-spacing: -.02em; }
.sub-card .price small { font-size: 13px; font-weight: 800; opacity: .75; }
.sub-card .src { font-size: 12px; font-weight: 700; opacity: .8; }
.sub-card .add-btn { position: absolute; top: 16px; right: 16px; background: #fff; }

/* free api */
.api-sub { font-size: 18px; font-weight: 600; color: var(--ink-2); margin-top: 14px; max-width: 40em; }
.api-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: start; }
.api-endpoints { display: grid; gap: 12px; }
.ep {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; text-decoration: none; padding: 12px 14px;
  background: var(--bg-2); border: 3px solid var(--edge); border-radius: 12px; box-shadow: var(--sh-sm); transition: transform .12s, box-shadow .12s;
}
.ep:hover { transform: translate(-2px, -2px); box-shadow: var(--sh); }
.ep .get { grid-row: span 2; font-family: var(--mono); font-weight: 900; font-size: 12px; background: var(--g); color: #111; border: 2px solid #111; border-radius: 6px; padding: 3px 7px; }
.ep code { font-family: var(--mono); font-weight: 800; font-size: 14px; overflow-wrap: anywhere; }
.ep small { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.api-code pre {
  background: #111; color: #f5f5f5; border: 3px solid var(--edge); border-radius: 16px; box-shadow: var(--sh-lg);
  padding: 20px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.7;
}
.api-code .c { color: var(--y); }
.api-terms { margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--ink-2); }

/* footer, toast */
.footer { border-top: 3px solid var(--edge); padding: 36px clamp(16px, 4vw, 48px) 60px; max-width: 1320px; margin: 0 auto; color: var(--ink-2); font-size: 13px; font-weight: 600; display: grid; gap: 8px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 40px); opacity: 0; z-index: 50; pointer-events: none;
  background: var(--y); color: #111; border: 3px solid #111; box-shadow: 4px 4px 0 #111; padding: 10px 18px; border-radius: 999px; font-weight: 900; transition: all .25s cubic-bezier(.3,1.6,.5,1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) rotate(-2deg); }

/* scroll reveal */
@supports (animation-timeline: view()) {
  .section-head, .panel, .receipt-wrap, .table-wrap, .sub-card { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  @keyframes reveal { from { opacity: 0; transform: translateY(50px) rotate(-2deg); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-title .char { opacity: 1; transform: none; }
}

/* responsive */
.hero > *, .calc-grid > *, .panel, .tab-body { min-width: 0; }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .stack { height: 470px; }
  .calc-grid, .api-grid { grid-template-columns: 1fr; }
  .receipt-wrap { position: static; }
  .stats { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 600px) {
  .updated { display: none; }
  .topbar-right { gap: 6px; }
  .market-row { grid-template-columns: 1fr 1fr; }
  .market-row .search { grid-column: 1 / -1; }
  .stack { height: 440px; }
  .card { padding: 16px; }
  .c2 { top: 150px; }
  .c3 { top: 290px; left: 4%; }
}
