/* Worth It 1.5.1, a calm grid with one bold moment per screen.

   Order: one type scale, one spacing scale, one radius, two text colours.
   Every product photo sits in the same square frame; app.js fits each one
   so products of every shape look the same size. Tiles and rows have
   slots in a fixed order (photo, figure, name, facts, price), each as tall
   as its lines of text, so a row of tiles lines up whatever the text and
   grows with it when the text is zoomed. No outlines, offset shadows or
   tilts on content.

   The one bold moment: Home's best deal is a tile at full size with its
   figure set big in heavy Inter, a deal's offer card has its band in the
   deal's orange, and Drops' countdowns are ink cards. Everything else is
   ink on white. The display face is for the WORTH IT wordmark only, so every
   other word matches.

   Every colour, size and space comes from the tokens below; the design
   tokens test (tests/test_design_tokens.py) holds the file to them. The
   rules and the anatomy of each component are in DESIGN.md. */

@font-face { font-family: "Anton"; src: url("/static/fonts/anton-latin-400.woff2") format("woff2"); font-weight: 400; font-display: optional; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-latin-variable.woff2") format("woff2"); font-weight: 100 900; font-display: optional; }

:root {
  color-scheme: light;
  /* colour: nine values; the rest is mixed from them. One orange for a
     deal, whatever the genre (the genre colours went in 1.5.6). */
  --bg: #fff; --photo: #f4f4f4; --line: #e6e6e6; --line-2: #8a8a8a;
  --ink: #111; --ink-2: #5f5f5f; --warn: #b3123b; --good: #0f7a3c; --deal: #ff7a1a;
  --photo-2: color-mix(in srgb, var(--photo), var(--ink) 5%);
  --on-ink: var(--bg); --on-ink-2: color-mix(in srgb, var(--bg) 70%, var(--ink));
  --on-ink-fill: color-mix(in srgb, var(--bg) 12%, transparent);
  --on-ink-line: color-mix(in srgb, var(--bg) 18%, transparent);
  --glass: color-mix(in srgb, var(--bg) 94%, transparent);
  --soft: 0 8px 24px color-mix(in srgb, var(--ink) 14%, transparent);
  --knob: 0 1px 2px color-mix(in srgb, var(--ink) 30%, transparent);
  /* type: Inter everywhere; the display face only for the WORTH IT wordmark */
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --s1: 12px; --l1: 16px;
  --s2: 14px; --l2: 20px;
  --s3: 16px; --l3: 24px;
  --s4: 20px; --l4: 28px;
  --s5: 28px; --l5: 32px;
  --s6: 40px; --l6: 44px;
  /* reading text's line: Inter's zero (what ch measures) is wider than its
     average letter, so 54ch holds about 73 letters (65 to 75 reads best) */
  --measure: 54ch;
  /* space: 4 8 12 16 24 32 48 64 */
  --sp1: 4px; --sp2: 8px; --sp3: 12px; --sp4: 16px; --sp5: 24px; --sp6: 32px; --sp7: 48px; --sp8: 64px;
  --gutter: var(--sp4); --gap: var(--sp3); --section: var(--sp7);
  --r: 8px; --pill: 999px;
  --top: 56px; --top-height: var(--top);
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* motion (Emil Kowalski's curves): strong ease-out for anything that answers
     the reader, ease-in-out for things that move on screen */
  --ease-out: cubic-bezier(.23, 1, .32, 1); --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  /* a page change: iOS's drawer curve */
  --ease-page: cubic-bezier(.32, .72, 0, 1);
}
@media (min-width: 768px) {
  :root { --gutter: var(--sp6); --gap: var(--sp4); --section: var(--sp8); --top: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-height) + var(--sp4)); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 400 var(--s2)/var(--l2) var(--text); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; font-weight: inherit; font-size: inherit; line-height: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.launch :focus-visible, .toast :focus-visible { outline-color: var(--on-ink); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* An estimate keeps a quiet mark: a dotted underline; its title says "Estimated". */
.est { text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: currentColor; }
::placeholder { color: var(--ink-2); opacity: 1; }
.skip { position: absolute; left: var(--sp4); top: calc(-1 * var(--sp8)); z-index: 100; padding: var(--sp2) var(--sp4); background: var(--ink); color: var(--on-ink); font-weight: 600; }
.skip:focus { top: var(--sp2); }
/* The page's sides keep clear of a phone's notch and rounded corners in
   landscape (the pages are viewport-fit=cover): the gutter, or the safe
   area where that is wider. */
.wrap {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-spark { fill: currentColor; stroke: none; }
.muted { color: var(--ink-2); }
.mp, .pre { white-space: nowrap; }

/* titles: the display face for a page's name, Inter for its sections */
.h1, .name { font: 800 var(--s5)/var(--l5) var(--text); letter-spacing: -.02em; overflow-wrap: break-word; }
.h2 { font: 800 var(--s4)/var(--l4) var(--text); letter-spacing: -.01em; }

/* ------------------------------------------------------------ photos
   One square frame. A photo stays hidden until app.js has fitted it, so it
   never jumps (without scripts, a <noscript> style shows it at once). No
   fade: many blended photos fading at once can paint late. */
.ph {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; isolation: isolate;
  border-radius: var(--r); background: var(--photo); color: var(--line-2);
}
.ph img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply;
  opacity: 0; transform: translate(var(--ph-x, 0%), var(--ph-y, 0%)) scale(var(--ph-s, 1));
}
.ph--loaded img { opacity: 1; }
/* A photo on its own light grey or coloured background (app.js): the frame, and
   the hero's stage around it, take that colour and the photo isn't blended, so
   no square shows (owner, 25 Oct: the Eccellenza box). Over every hover. */
.ph-own { background: var(--ph-own) !important; }
.ph-own img { mix-blend-mode: normal; }
/* A list row's photo: 64 px, 72 on a wider screen (owner, 2026-10-21: "make items a bit
   larger so the image can be a bit larger"); a toast keeps a small one. */
.ph--row { width: 64px; flex: none; }
.ph--row .ico { width: 24px; height: 24px; }
.toast .ph--row { width: 48px; }
.ph--big { width: 100%; }
.ph--big .ico { width: 48px; height: 48px; }
@media (min-width: 768px) { .ph--row { width: 72px; } .toast .ph--row { width: 48px; } }

/* ------------------------------------------------------------ buttons */
.buy {
  display: inline-flex; align-items: center; justify-content: space-between; gap: var(--sp4);
  min-height: 48px; padding: var(--sp2) var(--sp5); border-radius: var(--r); background: var(--ink); color: var(--on-ink);
  font: 600 var(--s2)/var(--l2) var(--text); transition: opacity .15s, transform .16s var(--ease-out);
}
/* The shop's name is never cut: with large text it wraps (Master's audit, 25 Oct). */
.buy > span { min-width: 0; overflow-wrap: break-word; }
.buy:hover { opacity: .88; }
.buy .ico { width: 20px; height: 20px; }
.btn-2 {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp2); min-height: 40px; padding: 0 var(--sp4);
  border-radius: var(--r); background: var(--photo); font: 600 var(--s2)/var(--l2) var(--text); white-space: nowrap; transition: background-color .15s, transform .16s var(--ease-out);
}
.btn-2:hover { background: var(--photo-2); }
.btn-2 .ico { width: 16px; height: 16px; }
.btn-2[disabled] { opacity: .5; cursor: default; }
.btn-2--quiet { background: transparent; color: var(--ink-2); }
.btn-solid, .btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp2); min-height: 44px; padding: 0 var(--sp5);
  border-radius: var(--r); background: var(--ink); color: var(--on-ink); font: 600 var(--s2)/var(--l2) var(--text);
  transition: opacity .15s, transform .16s var(--ease-out);
}
.btn-solid:hover, .btn-danger:hover { opacity: .88; }
/* Pressing anything gives a little, so the page answers the finger at once. */
.chip, .seg a, .nav a, .star, .tabbar a, .menu > summary { transition: background-color .15s, color .15s, transform .16s var(--ease-out); }
.buy:active, .btn-2:active, .btn-solid:active, .btn-danger:active, .chip:active, .seg a:active, .nav a:active, .star:active, .tabbar a:active, .menu > summary:active, .scan__btn:active { transform: scale(.97); }
.btn-danger { background: var(--warn); }

/* ------------------------------------------------------------ a deal's one figure, and what it is against */
.fig { display: inline-flex; align-items: baseline; gap: var(--sp2); color: var(--ink); white-space: nowrap; }
.fig b { font: 600 var(--s4)/var(--l4) var(--text); }
.fig small { font: 400 var(--s1)/var(--l1) var(--text); color: var(--ink-2); }
/* a warning: crimson, the only red on the site, in the line it sits in */
.over { font: 600 var(--s1)/var(--l1) var(--text); color: var(--warn); white-space: nowrap; }
.warn { font-weight: 600; color: var(--warn); white-space: nowrap; }
/* learned about a shop: muted, marked with the spark */
.smart { display: inline-flex; align-items: center; gap: var(--sp1); font: 400 var(--s1)/var(--l1) var(--text); color: var(--ink-2); }
.smart .ico { width: 12px; height: 12px; }
.smart--hurry { color: var(--ink); font-weight: 600; }
.state { font: 600 var(--s1)/var(--l1) var(--text); color: var(--ink-2); }
.state--live { color: var(--ink); }
/* shipping beside a price: a truck and what it costs */
.ship { display: inline-flex; align-items: center; gap: var(--sp1); font: 400 var(--s1)/var(--l1) var(--text); color: var(--ink-2); white-space: nowrap; }
.ship .ico { width: 14px; height: 14px; stroke-width: 1.75; }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.dot--live { position: relative; }
.dot--live { animation: breathe 2.4s var(--ease-in-out) infinite; }
.dot--live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ripple 2.4s var(--ease-out) infinite; }
.count--live { gap: var(--sp1); }
.count--live .dot { width: 6px; height: 6px; }
.live { display: inline-flex; align-items: center; gap: var(--sp2); color: var(--ink); font-weight: 600; }
.genre { display: inline-flex; align-items: center; height: 24px; padding: 0 var(--sp2); border-radius: var(--pill); background: var(--photo); font: 600 var(--s1)/var(--l1) var(--text); color: var(--ink); white-space: nowrap; }

/* ------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 30; background: var(--glass); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
/* With large text the header takes a second line rather than pushing the
   bell and Settings off a phone's screen (Master's audit, 25 Oct). */
.top__in { min-height: var(--top); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp1) var(--sp6); padding-block: var(--sp1); }
.brand { display: inline-flex; align-items: center; gap: var(--sp2); font: 400 var(--s4)/var(--l4) var(--display); letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; }
.brand__mark { width: 22px; height: 22px; flex: none; fill: currentColor; }
/* The menu is the site's segmented control, as Shops' sort: a grey track and
   the current page in ink (owner, 2026-10-21: "better tab design to match
   theme"). The live count stays a pill, white on the track. */
.nav { display: flex; gap: var(--sp1); padding: var(--sp1); border-radius: var(--pill); background: var(--photo); }
.nav a { display: inline-flex; align-items: center; gap: var(--sp2); height: 32px; padding: 0 var(--sp4); border-radius: var(--pill); font: 600 var(--s2)/var(--l2) var(--text); color: var(--ink-2); white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--on-ink); }
.nav .count { background: var(--bg); }
.nav a[aria-current="page"] .count { background: var(--on-ink-fill); color: var(--on-ink); }
.nav a[aria-current="page"] .dot { background: var(--on-ink); }
.count { display: inline-flex; align-items: center; height: 20px; padding: 0 var(--sp2); border-radius: var(--pill); background: var(--photo); color: var(--ink); font: 600 var(--s1)/var(--l1) var(--text); }
.top__end { margin-left: auto; display: flex; align-items: center; gap: var(--sp2); }
.scan { display: inline-flex; align-items: center; gap: var(--sp2); height: 40px; padding: 0 var(--sp1) 0 var(--sp3); border-radius: var(--pill); background: var(--photo); }
.scan__txt { display: flex; align-items: center; gap: var(--sp2); }
.scan__say { font: 400 var(--s2)/var(--l2) var(--text); color: var(--ink-2); white-space: nowrap; }
.scan__time { font-weight: 600; color: var(--ink); }
/* A narrow tablet fits the brand, the menu and the pill, its live dot
   included, in one row. */
@media (min-width: 768px) and (max-width: 899px) {
  .top__in { gap: var(--sp4); }
  .nav a { padding: 0 var(--sp3); }
  .top__end { gap: var(--sp1); }
}
/* "Updated 4 mins ago" where the header has room; a phone under 390 px and a
   tablet beside the menu read "4 mins ago", the verb kept for screen readers. */
@media (max-width: 389px), (min-width: 768px) and (max-width: 1079px) {
  .scan__verb { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.scan--solo { padding-right: var(--sp3); }
/* The live dot breathes while the autopilot reads the shops, and pulses once
   each time the page hears from it (app.js adds scan--ping). */
.scan__dot { display: none; position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.scan--live .scan__dot { display: block; animation: breathe 2.4s var(--ease-in-out) infinite; }
.scan--live .scan__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ripple 2.4s var(--ease-out) infinite; }
.scan--live.scan--ping .scan__dot { animation: ping .5s var(--ease-out), breathe 2.4s var(--ease-in-out) .5s infinite; }
@keyframes breathe { 50% { opacity: .5; transform: scale(.82); } }
@keyframes ripple { from { transform: scale(1); opacity: .45; } 70%, to { transform: scale(2.6); opacity: 0; } }
@keyframes ping { from { transform: scale(1.6); } }
.scan--stale .scan__time { color: var(--warn); }
.scan__btn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--on-ink); transition: transform .3s var(--ease-out); }
@media (hover: hover) { .scan__btn:hover { transform: rotate(90deg); } }
.scan__btn .ico { width: 16px; height: 16px; }
.scan__btn--busy .ico { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn, .menu.bell summary { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; background: transparent; }
.icon-btn:hover, .menu.bell summary:hover { background: var(--photo); }
.bell summary { position: relative; }
.bell__n { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 var(--sp1); border-radius: var(--pill); background: var(--ink); color: var(--on-ink); font: 600 var(--s1)/var(--l1) var(--text); text-align: center; }
.bell__n--crit { background: var(--warn); }
.bell__panel { width: min(360px, calc(100vw - 32px)); padding: var(--sp2); }
.bell__head { padding: var(--sp2) var(--sp3) var(--sp1); font: 600 var(--s1)/var(--l1) var(--text); color: var(--ink-2); }
.note { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: var(--sp3); padding: var(--sp3); }
.note + .note { border-top: 1px solid var(--line); }
.note b { display: block; font-weight: 600; }
.note span span { display: block; margin-top: 2px; font: 400 var(--s1)/var(--l1) var(--text); color: var(--ink-2); }
.note__dot { width: 8px; height: 8px; margin-top: var(--sp1); border-radius: 50%; background: var(--line-2); }
.note--crit .note__dot { background: var(--warn); }
.note--crit b { color: var(--warn); }
.tabbar { display: none; }

/* ------------------------------------------------------------ page and sections */
main { padding-bottom: var(--sp8); }
/* The app's pages end in their footer, after main (its own landmark), which
   keeps main's room below it. */
#main { padding-bottom: 0; }
.page-head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp3) var(--sp5); padding-top: var(--sp6); }
.page-head .h1 { margin-right: auto; }
.section { margin-top: var(--section); }
/* A page's title introduces its first section: no full section gap between. */
.page-head + .section { margin-top: var(--sp6); }
.section__head { display: flex; align-items: baseline; gap: var(--sp2); margin-bottom: var(--sp4); }
.section__head .n { font: 600 var(--s2)/var(--l2) var(--text); color: var(--ink-2); }
.section__head .count { align-self: center; }
.section__note { margin-left: auto; font: 400 var(--s2)/var(--l2) var(--text); color: var(--ink-2); }
.section__head .more { margin-left: auto; display: inline-flex; align-items: center; gap: var(--sp1); font: 600 var(--s2)/var(--l2) var(--text); position: relative; }
/* Small controls keep their look and get a 44+ px tap area (audit, 22 Oct). */
.section__head .more::after, .nav a::after, .seg a::after, .icon-btn::after, .menu.bell summary::after, .scan__btn::after {
  content: ""; position: absolute; inset: calc(-1 * var(--sp3)) calc(-1 * var(--sp1));
}
.nav a, .seg a, .icon-btn, .scan__btn { position: relative; }
/* So do the wordmark, the footer's links, a shop's name on Shops and the
   Settings fold-outs: 40+ px to tap, the look unchanged (audit, 24 Oct). */
.brand, footer.foot nav a, .srow__link, .scard__edit > summary, details.more > summary { position: relative; }
.brand::after, .srow__link::after { content: ""; position: absolute; inset: calc(-1 * var(--sp2)) 0; }
footer.foot nav a::after, details.more > summary::after { content: ""; position: absolute; inset: calc(-1 * var(--sp3)) calc(-1 * var(--sp1)); }
.scard__edit > summary::after { content: ""; position: absolute; inset: calc(-1 * var(--sp1)) 0; }
.section__head .more .ico { width: 16px; height: 16px; }
.section__head .more:hover { text-decoration: underline; text-underline-offset: 3px; }
.empty { padding: var(--sp5); border-radius: var(--r); background: var(--photo); color: var(--ink-2); }
.steps { display: flex; flex-wrap: wrap; gap: var(--sp2); margin-top: var(--sp5); }

/* ------------------------------------------------------------ the hero: Home's one bold moment, the best deal as a tile at
   full size (the owner's pick, 2026-10-21: A: Tile). The box on its grey tile, its figure on an orange discount tag in the
   tile's corner (the mark's cut corner and punched hole; owner: "put like a discount price tag orange on the product
   corner"); beside it, on white, the name, the shop's price with its shipping, and Buy. No frame. */
/* Equal halves, the name set large, so the text balances the tile (owner, 2026-10-21: "the image and text on
   desktop view does not balance left right"). The text is as tall as the tile: the name level with its top,
   the price and Buy level with its bottom, Buy as wide as the column (owner, 25 Oct: "more balanced hero"). */
.hero { margin-top: var(--sp5); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp7); align-items: stretch; }
.hero__media { position: relative; }
.hero__stage { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r); background: var(--photo); overflow: hidden; }
.hero__stage:hover, .hero__stage:hover .ph { background: var(--photo-2); }
/* The box keeps clear of the tag: a little smaller than a tile's, centred. */
.hero__ph { position: absolute; inset: 0; margin: auto; height: 84%; border-radius: 0; }
.hero__tag {
  --cut: var(--sp4);
  --hole: radial-gradient(circle at calc(var(--cut) * .9) calc(var(--cut) * .9), transparent calc(var(--cut) * .2), var(--ink) calc(var(--cut) * .22));
  position: absolute; top: var(--sp3); left: var(--sp3); max-width: calc(100% - 2 * var(--sp3)); padding: var(--sp2) var(--sp4) var(--sp2) var(--sp5);
  border-radius: var(--r); background: var(--deal); color: var(--ink);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); -webkit-mask: var(--hole); mask: var(--hole);
}
.hero__tag .fig { flex-direction: column; align-items: flex-start; gap: 0; }
.hero__tag .fig b { font: 800 var(--s5)/var(--l5) var(--text); letter-spacing: -.03em; }
.hero__tag .fig small { font: 600 var(--s1)/var(--l1) var(--text); color: var(--ink); white-space: normal; }
.hero__tag .fig--word b { font-size: var(--s4); line-height: var(--l4); letter-spacing: -.02em; }
.hero__info { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hero__name { font: 600 var(--s6)/var(--l6) var(--text); letter-spacing: -.02em; text-wrap: balance; }
.hero__name a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hero__facts { margin-top: var(--sp2); font: 400 var(--s3)/var(--l3) var(--text); color: var(--ink-2); }
.hero__price { margin-top: auto; padding-top: var(--sp4); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp1) var(--sp3); }
.hero__price b { font: 600 var(--s5)/var(--l5) var(--text); }
.hero__price span { font: 400 var(--s3)/var(--l3) var(--text); color: var(--ink-2); }
.hero .buy { margin-top: var(--sp5); width: 100%; min-height: 56px; font-size: var(--s3); line-height: var(--l3); }
/* Narrower screens: a square tile, the box a little smaller still, so the tag stays clear of it. */
@media (max-width: 1079px) {
  .hero__stage { aspect-ratio: 1; }
  .hero__ph { height: 78%; }
}
@media (min-width: 768px) and (max-width: 1079px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp6); }
}
@media (min-width: 768px) and (max-width: 899px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--sp5); }
  .hero__stage { aspect-ratio: 2 / 1; }
  .hero__name { font-size: var(--s5); line-height: var(--l5); }
}
.hero--none { display: block; padding: var(--sp6); border: 0; background: var(--photo); }
.hero--none .name { font: 600 var(--s5)/var(--l5) var(--text); letter-spacing: -.01em; }
.hero--none .btn-2 { min-height: 44px; background: var(--bg); }
.hero--none .btn-2:hover { background: var(--photo-2); }

/* ------------------------------------------------------------ tiles: photo, figure, name, facts, price */
.tiles, .live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp5) var(--gap); }
@media (min-width: 768px) { .tiles, .live-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.tile { display: flex; flex-direction: column; min-width: 0; }
.tile__ph { width: 100%; }
/* The figure and price slots are one line of their own type (1lh), as the
   name's and facts' are: a row of tiles lines up, and the slots grow with
   zoomed text; what no longer fits beside the figure or price wraps under it
   instead of being cut. */
.tile__fig { min-height: 1lh; margin-top: var(--sp3); display: flex; align-items: center; gap: var(--sp2); overflow: hidden; line-height: var(--l4); }
.tile__fig .fig { flex-wrap: wrap; row-gap: 0; }
/* A grid without a single deal has no figure slot at all. */
.tiles:not(:has(.fig)) .tile__fig { display: none; }
.tiles:not(:has(.fig)) .tile__name { margin-top: var(--sp3); }
.tile__name {
  height: 2lh; margin-top: var(--sp1); font: 600 var(--s2)/var(--l2) var(--text); overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.tile__facts, .tile__rrp { height: 1lh; margin-top: var(--sp1); font: 400 var(--s1)/var(--l1) var(--text); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__price { min-height: 1lh; margin-top: var(--sp1); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--sp2); white-space: nowrap; overflow: hidden; line-height: var(--l3); }
.tile__price b { font: 600 var(--s3)/var(--l3) var(--text); }
a.tile:hover .tile__name, .tile__name:hover { text-decoration: underline; text-underline-offset: 3px; }
a.tile:hover .ph, .tile__link:hover .ph { background: var(--photo-2); }
.tile--quiet .ph img { filter: grayscale(1); }
.tile--quiet .tile__name, .tile--quiet .tile__price b { color: var(--ink-2); }
/* Home's More deals: whole rows only (owner, 2026-10-21: "empty space");
   its count and All say there are more. */
@media (max-width: 767px) {
  .tiles--home > :last-child:nth-child(odd):not(:first-child) { display: none; }
}
@media (min-width: 768px) and (max-width: 1079px) {
  .tiles--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles--home:not(:has(> :nth-child(8))) > :nth-child(n+5), .tiles--home > :nth-child(n+9) { display: none; }
}
@media (min-width: 1080px) {
  .tiles--home { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tiles--home:not(:has(> :nth-child(10))) > :nth-child(n+6) { display: none; }
}
/* An in-stock drop: no "In stock" on the card, its section says so. */
.tile__info { display: flex; flex-direction: column; min-width: 0; }
.tile--live .tile__name { margin-top: var(--sp3); }
.tile--live .buy { margin-top: var(--sp3); min-height: 44px; }
/* Wide screens: in-stock drops are wide cards, two to a row (photo left,
   the facts and Buy beside it, centred on it), so two drops never leave the
   row half empty. */
@media (min-width: 1080px) {
  .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp5) var(--sp7); }
  .tile--live { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; column-gap: var(--sp5); }
  .tile--live .tile__name { height: auto; margin-top: 0; }
  .tile--live .tile__rrp:empty { display: none; }
  .tile--live .buy { align-self: flex-start; min-width: 200px; }
}

/* ------------------------------------------------------------ rows: photo, name over facts, figure, price, actions */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-auto-flow: column; grid-auto-columns: auto;
  align-items: center; column-gap: var(--sp4); min-height: 88px; padding: var(--sp2) 0; border-bottom: 1px solid var(--line);
}
.row__main { display: grid; min-width: 0; }
/* A long name wraps to a second line rather than losing its end. */
.row__name { font: 600 var(--s3)/var(--l3) var(--text); overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row__facts { font: 400 var(--s1)/var(--l1) var(--text); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__fig, .row__price { display: grid; justify-items: end; text-align: right; min-width: 112px; }
.row__fig:empty, .row__price:empty { display: none; }
.rows--market .row__fig:empty { display: grid; }
.row .fig { flex-direction: column; align-items: flex-end; gap: 0; }
.row .fig b { font-size: var(--s3); line-height: var(--l3); }
.row__price b { font: 600 var(--s3)/var(--l3) var(--text); }
.row__price .was { font: 400 var(--s1)/var(--l1) var(--text); color: var(--ink-2); white-space: nowrap; }
/* A product page's own Latest: the shop leads, with no photo the page shows. */
.rows--own .row { grid-template-columns: minmax(0, 1fr); min-height: 56px; }
.row__acts { display: flex; gap: var(--sp2); justify-content: flex-end; align-items: center; color: var(--ink-2); }
a.row:hover .row__name, .row__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.row--quiet .row__name, .row--quiet .row__price b { color: var(--ink-2); }
.row--quiet .ph img { filter: grayscale(1); }
/* Sold out recedes a little more (owner, 2026-10-21: "drop a bit opacity for
   sold out ones"); pointing at one brings it back. Stock we don't know stays. */
.row--sold, .tile--sold, .ls--sold { opacity: .6; transition: opacity .15s var(--ease-out); }
/* Its text is ink before the fade, so it lands at #707070 (4.9:1), still readable; grey text at
   60% read 2.6:1 (audit, 22 Oct). */
.row--sold .row__name, .row--sold .row__facts, .row--sold .row__price b, .row--sold .was, .row--sold .ship, .row--sold .kind,
.tile--sold .tile__name, .tile--sold .tile__facts, .tile--sold .tile__price b, .tile--sold .ship { color: var(--ink); }
.launch .ls--sold .state, .launch .ls--sold .ls__shop small { color: var(--on-ink); }  /* 7.6:1 on ink after the fade */
.row--sold:hover, .row--sold:focus-visible, .row--sold:focus-within, .tile--sold:hover, .tile--sold:focus-visible, .ls--sold:hover, .ls--sold:focus-within { opacity: 1; }
.kind { font-weight: 600; color: var(--ink); }
/* Wide screens: long lists run in two columns, top to bottom then across,
   so no row is a name on the left, a price on the right and air between. */
@media (min-width: 1080px) {
  .rows--market, .rows--catalog, .rows--watch, .rows--changes, .rows--soon, .rows--live { columns: 2; column-gap: var(--sp7); }
  .rows--market .row, .rows--catalog .row, .rows--watch .row, .rows--changes .row, .rows--soon .row, .rows--live .row { break-inside: avoid; }
  .rows--market .row__fig, .rows--market .row__price, .rows--catalog .row__price, .rows--watch .row__price, .rows--changes .row__price, .rows--live .row__price { min-width: 88px; }
}
.kind--quiet { color: var(--ink-2); }

/* ------------------------------------------------------------ filters */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp3) var(--sp5); margin-top: var(--sp5); }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp2); }
.chip { display: inline-flex; align-items: center; gap: var(--sp2); height: 40px; padding: 0 var(--sp4); border-radius: var(--pill); background: var(--photo); font: 600 var(--s2)/var(--l2) var(--text); white-space: nowrap; }
.chip:hover { background: var(--photo-2); }
.chip[aria-current="true"] { background: var(--ink); color: var(--on-ink); }
.chip small { font-size: var(--s1); opacity: .7; }
.chip--empty { background: transparent; color: var(--ink-2); border: 1px solid var(--line); cursor: default; }
.chip--empty:hover { background: transparent; }
.chip--empty:active { transform: none; }
.switch { display: inline-flex; align-items: center; gap: var(--sp2); height: 40px; font: 600 var(--s2)/var(--l2) var(--text); white-space: nowrap; }
/* An off track reads at 3:1 on white and on the grey cards. */
.switch__track { position: relative; width: 40px; height: 24px; border-radius: var(--pill); background: var(--line-2); transition: background-color .15s; }
.switch__knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); box-shadow: var(--knob); transition: transform .15s var(--ease); }
.switch[aria-checked="true"] .switch__track { background: var(--ink); }
.switch[aria-checked="true"] .switch__knob { transform: translateX(16px); }
/* Settings → Categories: a row each, the switch at the end; a tap saves. */
.cats { display: grid; }
.cats form + form { border-top: 1px solid var(--line); }
.cats .switch { width: 100%; height: 44px; flex-direction: row-reverse; justify-content: space-between; color: var(--ink); }
.cats .switch__track { transition: background-color .15s, transform 160ms var(--ease-out); }
.cats .switch:active .switch__track { transform: scale(.94); }
.switch[aria-disabled="true"] { cursor: default; }
/* Dimmed, but still darker than an off track: it is on, just locked. */
.switch[aria-disabled="true"] .switch__track { opacity: .6; }
.seg { display: inline-flex; gap: var(--sp1); padding: var(--sp1); border-radius: var(--pill); background: var(--photo); }
.seg a { display: inline-flex; align-items: center; height: 32px; padding: 0 var(--sp4); border-radius: var(--pill); font: 600 var(--s2)/var(--l2) var(--text); color: var(--ink-2); white-space: nowrap; }
.seg a[aria-current="true"] { background: var(--ink); color: var(--on-ink); }
.seg a:not([aria-current="true"]):hover { color: var(--ink); }
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: var(--sp2); height: 40px; padding: 0 var(--sp3) 0 var(--sp4);
  border-radius: var(--pill); background: var(--photo); font: 600 var(--s2)/var(--l2) var(--text); white-space: nowrap;
}
.menu summary .ico { width: 16px; height: 16px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary .ico-chevron { transform: rotate(180deg); }
.menu__list { position: absolute; right: 0; top: calc(100% + var(--sp2)); z-index: 20; min-width: 200px; padding: var(--sp1); border-radius: var(--r); background: var(--bg); box-shadow: var(--soft); display: grid; }
.menu__list a, .menu__list button:not([class]) { display: block; width: 100%; padding: var(--sp3); border-radius: var(--r); text-align: left; font: 400 var(--s2)/var(--l2) var(--text); }
.menu__list a:hover, .menu__list button:not([class]):hover { background: var(--photo); }
.menu__list a[aria-current="true"] { font-weight: 600; }
.menu__list a[aria-current="true"]::before { content: "✓ "; }
.menu__list form { display: block; }
.menu__list--form { width: 300px; padding: var(--sp4); }
.menu__title { font: 600 var(--s3)/var(--l3) var(--text); }
.menu__list--form .form { margin-top: var(--sp3); }
.menu__list--form button.btn-solid { width: 100%; justify-content: center; text-align: center; }
.menu__list--form button.btn-solid:hover { background: var(--ink); }
.search { display: flex; flex-wrap: wrap; gap: var(--sp2); margin-top: var(--sp5); }
.search input[type=search] { flex: 1 1 260px; height: 44px; padding: 0 var(--sp4); border: 1px solid var(--line-2); border-radius: var(--pill); background: var(--bg); font: 400 var(--s3)/var(--l3) var(--text); color: var(--ink); }
.search select { height: 44px; border: 1px solid var(--line); border-radius: var(--pill); }
.search input:focus-visible, .search select:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.show-more { margin-top: var(--sp4); }

/* ------------------------------------------------------------ countdowns: Coming up rows and Drops' launches */
.cd__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp2); }
.cd__date { font: 600 var(--s1)/var(--l1) var(--text); color: var(--ink-2); white-space: nowrap; }
.clock { display: flex; gap: var(--sp2); }
/* The quiet countdown in a row: "1d 10h", ticking in place. */
.clock--text { display: inline-block; font: 600 var(--s3)/var(--l3) var(--text); letter-spacing: -.01em; }
.clock--text.clock--done { color: var(--good); }
/* A list's countdown: a clock and the time left, no words (as the truck
   stands for shipping); the clock goes once it is on sale. */
.until { display: inline-flex; align-items: center; gap: var(--sp2); }
.until .ico { width: 16px; height: 16px; stroke-width: 1.75; color: var(--ink-2); }
.until:has(.clock--done) .ico { display: none; }
/* A release's date where a row's photo goes. */
.datetile { display: grid; align-content: center; justify-items: center; gap: 0; background: var(--photo); }
.datetile b { font: 800 var(--s4)/var(--l4) var(--text); color: var(--ink-2); }
.datetile small { font: 600 var(--s1)/var(--l1) var(--text); color: var(--ink-2); }
.clock__unit { display: flex; flex-direction: column; align-items: center; gap: var(--sp1); }
.clock__val { min-width: 56px; padding: var(--sp2); border-radius: var(--r); background: var(--bg); text-align: center; font: 800 var(--s5)/var(--l5) var(--text); letter-spacing: -.02em; }
.clock__lbl { font: 400 var(--s1)/var(--l1) var(--text); color: var(--ink-2); }
.clock__val { overflow: hidden; }
.clock__num { display: block; }
.clock--done .clock__val { background: var(--ink); color: var(--on-ink); }
/* Drops: each launch is an ink card with big digits. */
.launch { background: var(--ink); color: var(--on-ink); }
.launch .cd__date, .launch .clock__lbl { color: var(--on-ink-2); }
.launch .genre { background: var(--on-ink-fill); color: var(--on-ink); }
.launch .clock__val { background: var(--on-ink-fill); color: var(--on-ink); font-size: var(--s6); line-height: var(--l6); }
.launch .clock--done .clock__val { background: var(--on-ink); color: var(--ink); }
.launches { display: grid; gap: var(--gap); }
.launch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp6); padding: var(--sp5); border-radius: var(--r); }
.launch__main { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "ph text" "clock clock"; gap: var(--sp4); align-items: center; align-content: start; }
.launch__ph { grid-area: ph; width: 96px; background: var(--bg); }
.launch__text { grid-area: text; display: grid; gap: var(--sp2); min-width: 0; }
.launch .clock, .launch__main > .state { grid-area: clock; }
.launch__name { font: 600 var(--s4)/var(--l4) var(--text); }
.launch__shops li a { display: grid; grid-template-columns: minmax(0, 1fr) auto 96px; gap: var(--sp4); align-items: center; min-height: 44px; border-bottom: 1px solid var(--on-ink-line); }
.launch__shops li:last-child a { border-bottom: 0; }
.launch__shops li a:hover .ls__shop { text-decoration: underline; text-underline-offset: 3px; }
.launch .state, .launch .muted, .ls__shop small { color: var(--on-ink-2); }
.launch .state--live { color: var(--on-ink); }
.ls__shop { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls__shop small { margin-left: var(--sp2); font: 400 var(--s1)/var(--l1) var(--text); }
.ls__price { text-align: right; font-weight: 600; }

/* ------------------------------------------------------------ product page */
.back { display: inline-flex; align-items: center; gap: var(--sp1); padding-top: var(--sp5); font: 600 var(--s2)/var(--l2) var(--text); color: var(--ink-2); }
.back:hover { color: var(--ink); }
.back .ico { width: 16px; height: 16px; }
/* The product page (the owner's picks, 26 Oct: mockup A, then "no huge number
   and small text", "spacing"): the photo, a deal's figure on its tag; beside it
   (under it on a phone) the name, where it is cheapest delivered and what it
   costs there, one line, Buy, the other shops; then the last 30 days as one
   line; the rest folded. Three text sizes: 28 the price, 20 the name and
   titles, 16 the rest. Ink, greys and the deal's orange only. Space: 4 inside
   a group, 16 to 24 between groups, 32 between sections (48 on a wide screen). */
.pp { margin-top: var(--sp3); display: grid; gap: var(--sp4); }
.pp__media .hero__stage { aspect-ratio: 4 / 3; }
.pp__media .hero__ph { height: 80%; }
.pp__media .hero__tag .fig b { font: 800 var(--s4)/var(--l4) var(--text); letter-spacing: -.02em; }
.pp__media .hero__tag .fig small { font: 600 var(--s3)/var(--l3) var(--text); }
.pp__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp3); }
.pp__name { font: 600 var(--s4)/var(--l4) var(--text); letter-spacing: -.01em; text-wrap: balance; }
.pp__facts { margin-top: var(--sp1); font: 400 var(--s3)/var(--l3) var(--text); color: var(--ink-2); }
.pp__deal { margin-top: var(--sp5); }
.pp__where { font: 400 var(--s3)/var(--l3) var(--text); color: var(--ink-2); }
.pp__where--none { font: 600 var(--s4)/var(--l4) var(--text); }
.pp__price { margin-top: var(--sp1); font: 600 var(--s5)/var(--l5) var(--text); letter-spacing: -.01em; }
.pp__note { margin-top: var(--sp2); font: 400 var(--s3)/var(--l3) var(--text); }
.pp__note .warn, .pp__note .verdict { color: var(--ink); font-weight: 600; }
.pp__buy { margin-top: var(--sp4); width: 100%; justify-content: center; gap: var(--sp2); font-size: var(--s3); line-height: var(--l3); }
.pp__buy .ico { width: 18px; height: 18px; }
.pp__sec { margin-top: var(--sp6); }
.pp__h { font: 600 var(--s4)/var(--l4) var(--text); letter-spacing: -.01em; }
.pp__shops { margin-top: var(--sp3); border-top: 1px solid var(--line); }
.pp__shop { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp4); padding: var(--sp3) 0; border-bottom: 1px solid var(--line); font: 400 var(--s3)/var(--l3) var(--text); }
.pp__shop:hover > span { text-decoration: underline; text-underline-offset: 3px; }
.pp__shop b { font-weight: 600; white-space: nowrap; }
.pp__shop small { font: inherit; color: var(--ink-2); }
.pp__sold > summary { display: flex; align-items: center; gap: var(--sp1); min-height: 44px; font: 400 var(--s3)/var(--l3) var(--text); color: var(--ink-2); cursor: pointer; list-style: none; }
.pp__sold > summary::-webkit-details-marker { display: none; }
.pp__sold > summary .ico { width: 16px; height: 16px; }
.pp__sold[open] > summary .ico-chevron { transform: rotate(180deg); }
.pp__sold p { padding-bottom: var(--sp3); font: 400 var(--s3)/var(--l3) var(--text); color: var(--ink-2); }
.pp__sold a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.pp__plot { height: 64px; margin-top: var(--sp4); padding-left: 0; }
.pp__caption { margin-top: var(--sp3); font: 400 var(--s3)/var(--l3) var(--text); color: var(--ink-2); }
.pp__folds { margin-top: var(--sp6); border-top: 1px solid var(--line); }
.pp__fold { border-bottom: 1px solid var(--line); }
.pp__fold > summary { display: flex; justify-content: space-between; align-items: center; min-height: 56px; font: 600 var(--s3)/var(--l3) var(--text); cursor: pointer; list-style: none; }
.pp__fold > summary::-webkit-details-marker { display: none; }
.pp__fold > summary .ico { width: 16px; height: 16px; }
.pp__fold[open] > summary .ico-chevron { transform: rotate(180deg); }
.pp__fold-body { padding-bottom: var(--sp5); }
.pp__fold-body > .pp__caption { margin: 0 0 var(--sp4); }
@media (min-width: 768px) {
  .pp { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0 var(--sp7); align-items: start; }
  .pp__media { position: sticky; top: calc(var(--top-height) + var(--sp4)); }
  .pp__media .hero__stage { aspect-ratio: 1; }
  .pp__buy { width: auto; min-width: 280px; }
  .pp__trend, .pp__folds { margin-top: var(--sp7); }
}
/* On a phone, once Buy scrolls away, the price and Buy stay above the tab bar
   (app.js; the owner's pick, 26 Oct). */
.buybar { display: none; }
@media (max-width: 767px) {
  .buybar {
    position: fixed; z-index: 25; left: var(--gutter); right: var(--gutter); bottom: calc(72px + env(safe-area-inset-bottom) + var(--sp2));
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp3); padding: var(--sp2) var(--sp2) var(--sp2) var(--sp4);
    border-radius: var(--r); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--soft);
    opacity: 0; visibility: hidden; transform: translateY(var(--sp4)); transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility .2s;
  }
  .buybar--on { opacity: 1; visibility: visible; transform: none; }
  .buybar__price { display: flex; align-items: baseline; gap: var(--sp2); min-width: 0; }
  .buybar__price b { font: 600 var(--s4)/var(--l4) var(--text); }
  .buybar__price > span { font: 400 var(--s2)/var(--l2) var(--text); color: var(--ink-2); }
  .buybar .buy { width: auto; min-height: 44px; margin: 0; padding-inline: var(--sp4); gap: var(--sp2); }
  main:has(.buybar) { padding-bottom: calc(var(--sp8) + var(--sp7) + var(--sp8)); }
}
.star { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--photo); color: var(--ink); flex: none; }
.star:hover { background: var(--photo-2); }
.star[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.star[aria-pressed="true"] .ico { fill: currentColor; }
/* Star, Mute and I bought it behind one ⋯; the button shows a star when
   starred and "Muted" while muted. */
.more-menu { flex: none; }
.menu.more-menu > summary { justify-content: center; gap: var(--sp1); min-width: 44px; height: 44px; padding: 0 var(--sp3); }
.more-menu > summary:hover { background: var(--photo-2); }
.more-menu > summary .ico { width: 20px; height: 20px; }
.more-menu > summary .ico-star { width: 16px; height: 16px; fill: currentColor; }
.more-menu__list { width: 288px; max-width: calc(100vw - 2 * var(--gutter)); padding: var(--sp2); }
.more-menu__list hr { margin: var(--sp1) 0; border: 0; border-top: 1px solid var(--line); }
.more-menu__list .menu__title { padding: var(--sp2) var(--sp3) 0; font: 600 var(--s2)/var(--l2) var(--text); color: var(--ink-2); }
.more-menu__list button:not([class]) { display: flex; align-items: center; gap: var(--sp2); }
.more-menu__list button[aria-pressed="true"] .ico { fill: currentColor; }
.menu .more-menu__buy > summary { display: flex; justify-content: space-between; width: 100%; height: auto; padding: var(--sp3); border-radius: var(--r); background: none; font: 400 var(--s2)/var(--l2) var(--text); }
.menu .more-menu__buy > summary:hover { background: var(--photo); }
.menu .more-menu__buy:not([open]) > summary .ico-chevron { transform: none; }
.more-menu__buy .form { padding: 0 var(--sp3) var(--sp3); }
.more-menu__buy button.btn-solid { width: 100%; justify-content: center; }
/* what to judge the price by: a label and its value, one per row */
.refs { display: grid; align-self: stretch; align-content: center; }
.ref { display: flex; align-items: center; justify-content: space-between; gap: var(--sp4); min-height: 40px; }
.ref + .ref { border-top: 1px solid var(--line); }
.ref dt { font: 400 var(--s2)/var(--l2) var(--text); color: var(--ink-2); }
.ref dd { display: inline-flex; align-items: baseline; gap: var(--sp2); font: 600 var(--s3)/var(--l3) var(--text); }
.ref dd small { font: 400 var(--s1)/var(--l1) var(--text); color: var(--ink-2); }
/* Home (the owner's pick, 26 Oct: mockup A, "the same way" as the product
   page): the best deal as the top of its product page, centred beside a 4:3
   photo on a wider screen; then rows: the other deals (each its figure on
   orange and what it costs delivered), and beside them what is in stock now
   and what is coming up. Three text sizes, ink and greys with the orange. */
.pp--home { margin-top: var(--sp4); }
.pp__name a { color: inherit; }
.pp__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hm-sec { margin-top: var(--sp6); }
.hm-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp3); }
.hm-all { display: inline-flex; align-items: center; gap: var(--sp1); min-height: 44px; font: 600 var(--s3)/var(--l3) var(--text); color: var(--ink-2); }
.hm-all:hover { color: var(--ink); }
.hm-all .ico { width: 16px; height: 16px; }
.hm-rows { margin-top: var(--sp2); border-top: 1px solid var(--line); }
.hm-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: var(--sp3); padding: var(--sp3) 0; border-bottom: 1px solid var(--line); }
.hm-row:hover .hm-row__name { text-decoration: underline; text-underline-offset: 3px; }
.hm-row .ph--row { width: 56px; }
.hm-row .datetile { display: grid; place-content: center; text-align: center; aspect-ratio: 1; border-radius: var(--r); background: var(--photo); }
.hm-row .datetile b { font: 600 var(--s4)/var(--l4) var(--text); }
.hm-row .datetile small { font: 400 var(--s3)/var(--l3) var(--text); color: var(--ink-2); }
.hm-row__main { display: grid; min-width: 0; }
.hm-row__name { font: 400 var(--s3)/var(--l3) var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hm-row__sub { font: 400 var(--s3)/var(--l3) var(--text); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-row__end { display: grid; justify-items: end; gap: var(--sp1); }
.hm-row__end b { font: 600 var(--s3)/var(--l3) var(--text); white-space: nowrap; }
.hm-row__end--soft, .hm-row__end .clock--text { font: 400 var(--s3)/var(--l3) var(--text); color: var(--ink-2); }
.hm-chip { padding: 2px var(--sp2); border-radius: var(--r); background: var(--deal); color: var(--ink); font: 800 var(--s3)/var(--l2) var(--text); }
@media (min-width: 768px) {
  .pp--home { align-items: center; }
  .pp--home .pp__media { position: relative; top: auto; }
  .pp--home .pp__media .hero__stage { aspect-ratio: 4 / 3; }
  .hm-cols { margin-top: var(--sp7); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--sp7); align-items: start; }
  .hm-cols > .hm-sec:first-child, .hm-cols > div > .hm-sec:first-child { margin-top: 0; }
  .hm-cols .hm-row--extra { display: none; }
}
/* The last 30 days (`_trend`): one line that keeps its weight however the
   drawing stretches, a dot where it ends, and a day's price on a hover, tap or
   arrow key (app.js). */
.chart__plot { position: relative; }
.chart { width: 100%; height: 100%; display: block; overflow: visible; }
.chart line, .chart polyline { vector-effect: non-scaling-stroke; }
.chart .end { stroke-width: 7; stroke-linecap: round; }
.chart__plot[data-days] .chart { cursor: crosshair; }
.chart__guide { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink); pointer-events: none; }
.chart__tip { position: absolute; top: 0; z-index: 2; display: grid; grid-template-columns: auto auto; gap: 0 var(--sp3); padding: var(--sp2) var(--sp3); border-radius: var(--r); background: var(--ink); color: var(--on-ink); box-shadow: var(--soft); font: 400 var(--s2)/var(--l2) var(--text); white-space: nowrap; pointer-events: none; }
.chart__tip p { grid-column: 1 / -1; font-weight: 600; }
.chart__tip span { color: var(--on-ink-2); }
.chart__tip b { text-align: right; font-weight: 600; }
.chart__guide[hidden], .chart__tip[hidden] { display: none; }
.s-low { stroke: var(--ink); stroke-width: 2.5; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: var(--sp3) var(--sp4); font: 600 var(--s1)/var(--l1) var(--text); color: var(--ink-2); }
.table td { padding: var(--sp3) var(--sp4); border-top: 1px solid var(--line); vertical-align: middle; }
.table .r { text-align: right; }
.table-card { overflow-x: auto; }
.cards-inside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp5); max-width: 560px; margin-bottom: var(--sp5); }
.cards-inside .ref { display: grid; align-content: start; gap: var(--sp1); min-height: 0; }
.cards-inside .ref + .ref { border-top: 0; }
.cards-inside .ref dd { display: grid; gap: 0; }
details.more > summary { display: inline-flex; align-items: center; gap: var(--sp2); cursor: pointer; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary .ico-chevron { transform: rotate(180deg); }

/* ------------------------------------------------------------ shops: one ranked table */
.shoptable { border-top: 1px solid var(--line); }
.srow { display: grid; grid-template-columns: minmax(0, 1.3fr) 104px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) 112px; gap: var(--sp5); align-items: center; min-height: 72px; padding: var(--sp3) 0; border-bottom: 1px solid var(--line); }
.srow--head { min-height: 40px; padding: var(--sp2) 0; font: 600 var(--s1)/var(--l1) var(--text); color: var(--ink-2); }
.srow__name { min-width: 0; }
.srow__name h2 { font: 600 var(--s3)/var(--l3) var(--text); overflow-wrap: anywhere; }
.srow__link { display: inline-flex; align-items: center; gap: var(--sp1); border-radius: var(--r); }
.srow__link .ico { color: var(--ink-2); transition: transform .2s var(--ease); }
@media (hover: hover) { .srow__link:hover { text-decoration: underline; text-underline-offset: 3px; } .srow__link:hover .ico { transform: translate(2px, -2px); color: var(--ink); } }
.srow__genres { display: flex; flex-wrap: wrap; gap: var(--sp1); margin-top: var(--sp1); }
.level b { font: 600 var(--s4)/var(--l4) var(--text); }
.meter { display: grid; gap: var(--sp1); }
.meter b { font: 600 var(--s2)/var(--l2) var(--text); }
.meter__bar { height: 4px; border-radius: var(--pill); background: var(--line); overflow: hidden; }
.meter__bar i { display: block; height: 100%; border-radius: var(--pill); background: var(--ink); }
/* A learned fact in its own column: plain text, bold only when it sells out fast. */
.sfact b { font: 400 var(--s2)/var(--l2) var(--text); color: var(--ink); }
.sfact--none b { color: var(--ink-2); }
.sfact--hurry b { font-weight: 600; }

/* ------------------------------------------------------------ settings */
.settings { max-width: 860px; }
/* Settings in two groups: the owner's admin, then other people. */
.sgroup + .sgroup { margin-top: var(--sp7); padding-top: var(--sp5); border-top: 1px solid var(--line); }
.sgroup__title { margin: var(--sp5) 0 var(--sp3); font: 800 var(--s4)/var(--l4) var(--text); letter-spacing: -.01em; }
.sgroup + .sgroup .sgroup__title { margin-top: 0; }
.sgrid { margin-top: var(--sp5); display: grid; gap: var(--sp4); }
/* Wide screens: the cards run in two columns, like the long lists, so no
   side of the page is left empty. */
@media (min-width: 1080px) {
  .settings { max-width: none; }
  .sgrid { display: block; columns: 2; column-gap: var(--sp4); }
  .sgrid > .scard { break-inside: avoid; margin-bottom: var(--sp4); }
}
.scard { display: grid; gap: var(--sp3); padding: var(--sp5); border-radius: var(--r); background: var(--photo); }
.scard__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp3); }
.scard__head :is(h2, h3) { font: 800 var(--s4)/var(--l4) var(--text); letter-spacing: -.01em; }
.scard__sum { color: var(--ink-2); }
.scard__sum b { color: var(--ink); font-weight: 600; }
.scard__acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp2); }
/* On a grey card, a button is white so it still reads as one. */
.scard .btn-2:not(.btn-2--quiet) { background: var(--bg); }
.scard .btn-2:not(.btn-2--quiet):hover { background: var(--line); }
.scard__acts:empty { display: none; }
/* A second step for what can't be undone: tap Remove, then confirm by name. */
.confirm { display: inline-flex; align-items: center; gap: var(--sp2); }
.confirm > summary { list-style: none; cursor: pointer; }
.confirm > summary::-webkit-details-marker { display: none; }
.confirm[open] > summary { color: var(--ink); }
.scard__sub, .scard__edit { display: grid; gap: var(--sp3); padding-top: var(--sp3); border-top: 1px solid var(--line); }
.scard__edit > summary { display: inline-flex; align-items: center; gap: var(--sp1); min-height: 32px; cursor: pointer; list-style: none; font: 600 var(--s2)/var(--l2) var(--text); color: var(--ink-2); }
.scard__edit > summary::-webkit-details-marker { display: none; }
.scard__edit[open] > summary .ico-chevron { transform: rotate(180deg); }
.scard__edit .btn-solid { justify-self: start; }
/* A healthy state is quiet; only a problem is loud (one loud thing). */
.state-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 var(--sp2); border-radius: var(--pill); background: var(--bg); color: var(--ink); font: 600 var(--s1)/var(--l1) var(--text); white-space: nowrap; }
.state-tag--off { background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); }
.state-tag--warn { background: var(--warn); color: var(--on-ink); }
.stats { display: flex; flex-wrap: wrap; gap: var(--sp6); }
.stats div { display: grid; gap: var(--sp1); }
.stats b { font: 600 var(--s4)/var(--l4) var(--text); }
.stats span { font: 400 var(--s1)/var(--l1) var(--text); color: var(--ink-2); }
.slist li { display: flex; align-items: center; justify-content: space-between; gap: var(--sp3); padding: var(--sp3) 0; border-top: 1px solid var(--line); }
.slist li:first-child { border-top: 0; }
.slist li > span:first-child { display: grid; gap: 2px; min-width: 0; }
.slist .lbl { font: 400 var(--s1)/var(--l1) var(--text); color: var(--ink-2); }
.slist .learned { font: 400 var(--s1)/var(--l1) var(--text); color: var(--ink-2); }
.notes { display: grid; gap: var(--sp2); color: var(--ink-2); }
.notes li { position: relative; padding-left: var(--sp4); text-wrap: pretty; }
.notes li::before { content: ""; position: absolute; left: 0; top: var(--sp2); width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.reveal { display: grid; gap: var(--sp2); padding: var(--sp4); border-radius: var(--r); background: var(--bg); }
.reveal__value { width: 100%; height: 44px; padding: 0 var(--sp3); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); font: 400 var(--s2)/var(--l2) var(--text); }
.setup { display: grid; gap: var(--sp4); margin-top: var(--sp5); }
.setup textarea { width: 100%; min-height: 66vh; padding: var(--sp4); border: 1px solid var(--line-2); border-radius: var(--r); font: 400 var(--s1)/var(--l1) ui-monospace, "SF Mono", Menlo, monospace; tab-size: 2; resize: vertical; }
.setup .btn-solid { justify-self: start; }
.setup__msg { margin-top: var(--sp4); padding: var(--sp3) var(--sp4); border-radius: var(--r); background: var(--photo); font-weight: 600; }
.setup__msg--error { color: var(--warn); }

/* ------------------------------------------------------------ forms */
.form { margin-top: var(--sp3); display: grid; gap: var(--sp3); }
.form label { display: grid; gap: var(--sp2); font: 600 var(--s1)/var(--l1) var(--text); color: var(--ink-2); }
.form input, .form select { width: 100%; height: 44px; padding: 0 var(--sp3); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); font: 400 var(--s3)/var(--l3) var(--text); color: var(--ink); }
.form input:focus-visible, .form select:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.search select, .form select {
  appearance: none; -webkit-appearance: none; padding: 0 calc(var(--sp6) + var(--sp3)) 0 var(--sp4); cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right var(--sp4) center / 14px;
}
.form .row2 { display: grid; grid-template-columns: 1fr 96px; gap: var(--sp3); }
.money-in { position: relative; display: block; }
.money-in::before { content: "€"; position: absolute; left: var(--sp3); top: 50%; transform: translateY(-50%); color: var(--ink-2); }
.money-in input { padding-left: calc(var(--sp3) + var(--sp4)); }
.form label.check, .check { display: flex; align-items: center; gap: var(--sp2); font: 400 var(--s2)/var(--l2) var(--text); color: var(--ink); }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }

/* ------------------------------------------------------------ FAQ, Privacy, Terms: a reading column */
.narrow { max-width: 760px; }
.error__acts { margin-top: var(--sp5); }
.faq { margin-top: var(--sp5); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: var(--sp4); padding: var(--sp4) 0; cursor: pointer; list-style: none; font: 600 var(--s3)/var(--l3) var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { flex: none; width: 16px; height: 16px; margin-top: var(--sp1); color: var(--ink-2); transition: transform .2s var(--ease-out); }
.faq details[open] > summary .ico-chevron { transform: rotate(180deg); }
/* Reading text: one measure, and no word alone on a last line. */
.faq .a { max-width: var(--measure); padding: 0 0 var(--sp4); color: var(--ink-2); line-height: var(--l3); text-wrap: pretty; }
.faq .a p + p { margin-top: var(--sp2); }
.doc { margin-top: var(--sp5); }
.doc section + section { margin-top: var(--sp6); }
.doc h2 { font: 600 var(--s3)/var(--l3) var(--text); }
.doc p { max-width: var(--measure); margin-top: var(--sp2); color: var(--ink-2); line-height: var(--l3); text-wrap: pretty; }
.doc-page { padding-top: var(--sp7); padding-bottom: var(--sp8); }

/* ------------------------------------------------------------ sign in, join, forgot, reset */
.login { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: var(--sp5); padding: var(--sp5); }
.panel { width: min(400px, 100%); display: grid; gap: var(--sp4); padding: var(--sp6); border-radius: var(--r); background: var(--photo); }
.panel h1 { font: 800 var(--s5)/var(--l5) var(--text); letter-spacing: -.02em; }
.panel p { color: var(--ink-2); }
.panel .form { margin-top: 0; }
.panel .btn-solid { width: 100%; height: 48px; }
.door__msg { color: var(--ink-2); }
.panel .door__msg--error { color: var(--warn); font-weight: 600; }
.door__link { justify-self: center; font: 600 var(--s2)/var(--l2) var(--text); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.door__legal { display: flex; justify-content: center; gap: var(--sp5); font: 400 var(--s2)/var(--l2) var(--text); color: var(--ink-2); }
.door__legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ toasts and footer */
.toasts { position: fixed; right: max(var(--sp5), env(safe-area-inset-right)); top: calc(var(--top-height) + var(--sp4)); z-index: 50; display: grid; gap: var(--sp3); width: min(360px, calc(100vw - 32px)); }
.toast { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: var(--sp3); align-items: center; padding: var(--sp3); border-radius: var(--r); background: var(--ink); color: var(--on-ink); box-shadow: var(--soft); }
.toast { --toast-from: -8px; transition: opacity .24s var(--ease-out), transform .24s var(--ease-out); }
@starting-style { .toast { opacity: 0; transform: translateY(var(--toast-from)) scale(.98); } }
.toast--out { opacity: 0; transform: translateY(var(--toast-from)) scale(.98); transition-duration: .16s; }
.toast__x .ico { width: 16px; height: 16px; }
.toast__x { display: grid; place-items: center; min-width: 44px; min-height: 44px; margin: calc(-1 * var(--sp3)); }
.toast .ph { background: var(--bg); }
.toast__k { font: 600 var(--s1)/var(--l1) var(--text); color: var(--on-ink-2); }
.toast__n { font: 600 var(--s2)/var(--l2) var(--text); }
.toast__p { font: 400 var(--s1)/var(--l1) var(--text); color: var(--on-ink-2); }
.toast__x { padding: var(--sp1); color: var(--on-ink-2); font-size: var(--s4); }
.toast a.btn-2 { grid-column: 2 / -1; justify-self: start; background: var(--bg); color: var(--ink); }
.toast--status { grid-template-columns: auto minmax(0, 1fr); animation: toast-out .3s ease 6s forwards; }
/* What didn't work stays until it is closed. */
.toast--keep { grid-template-columns: auto minmax(0, 1fr) auto; animation: none; }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); visibility: hidden; } }
footer.foot { margin-top: var(--sp8); padding-top: var(--sp5); padding-bottom: calc(var(--sp6) + var(--sp8)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp4); font: 400 var(--s1)/var(--l1) var(--text); color: var(--ink-2); }
.foot__brand { display: inline-flex; align-items: center; gap: var(--sp2); }
.foot__brand .brand__mark { width: 14px; height: 14px; }
footer.foot nav { display: flex; gap: var(--sp5); }
footer.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ phone */
@media (max-width: 767px) {
  html { scroll-padding-bottom: calc(var(--sp8) + env(safe-area-inset-bottom)); }
  .top__in { gap: var(--sp2); }
  .steps { display: grid; grid-template-columns: 1fr; }
  .nav { display: none; }
  .scan { height: 36px; padding-left: var(--sp2); }
  .scan--solo { padding-right: var(--sp2); }
  .scan__btn { width: 28px; height: 28px; }
  .top__end { gap: var(--sp1); }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 0 max(var(--sp2), env(safe-area-inset-right)) env(safe-area-inset-bottom) max(var(--sp2), env(safe-area-inset-left));
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: var(--sp2) 0; font: 600 var(--s1)/var(--l1) var(--text); color: var(--ink-2); }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  /* The current tab is a pill too, as in the desktop menu, not colour alone (WCAG 1.4.1). */
  .tabbar__ico { isolation: isolate; }
  .tabbar a[aria-current="page"] .tabbar__ico::before {
    content: ""; position: absolute; inset: calc(-1 * var(--sp1)) calc(-1 * var(--sp4)); z-index: -1; border-radius: var(--pill); background: var(--photo-2);
  }
  .tabbar .ico { width: 22px; height: 22px; }
  .tabbar__ico { position: relative; display: inline-grid; }
  /* How many drop pages are in stock now, on the Drops icon. */
  .tabbar__live { position: absolute; top: -6px; left: 14px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 var(--sp1); border-radius: var(--pill); background: var(--ink); color: var(--on-ink); font: 600 var(--s1)/var(--l1) var(--text); font-variant-numeric: tabular-nums; }
  main { padding-bottom: calc(var(--sp8) + var(--sp7)); }
  footer.foot { padding-bottom: calc(var(--sp6) + var(--sp8) + var(--sp7)); }  /* room for the tab bar */
  .page-head { padding-top: var(--sp5); }

  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--sp4); margin-top: var(--sp4); }
  .hero__name { font-size: var(--s5); line-height: var(--l5); letter-spacing: -.01em; }
  .hero__price { padding-top: var(--sp2); }
  .hero .buy { margin-top: var(--sp4); }

  .row, .rows--market .row { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "ph main price" "ph main fig"; grid-auto-flow: row; column-gap: var(--sp3); min-height: 80px; }
  .row > .ph { grid-area: ph; }
  .row__main { grid-area: main; }
  .row__price { grid-area: price; align-self: end; min-width: 0; }
  .row__fig { grid-area: fig; align-self: start; min-width: 0; }
  .rows--market .row__fig:empty, .row__fig:empty { display: none; }
  .row:not(:has(.fig)) { grid-template-areas: "ph main price"; }
  .row:not(:has(.fig)) .row__price { align-self: center; }
  /* After the rule above, which it matches as strongly: no photo column. */
  .rows--own .row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main price"; min-height: 56px; }
  .row .fig { flex-direction: row; align-items: baseline; gap: var(--sp1); }
  .row__acts { grid-column: 2 / -1; justify-content: flex-start; padding-top: var(--sp2); }
  a.row .row__acts { display: none; }  /* the whole row is the link */
  .row--acts { grid-template-areas: "ph main price" "ph acts acts"; }
  .row--acts .row__acts { grid-area: acts; }

  .launch { grid-template-columns: 1fr; gap: var(--sp4); padding: var(--sp4); }
  .launch__main { grid-template-columns: 72px minmax(0, 1fr); }
  .launch__ph { width: 72px; }
  .launch__shops li a { grid-template-columns: minmax(0, 1fr) auto 80px; }


  .srow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "name name" "cheap stock" "restock sells"; gap: var(--sp3) var(--sp5); padding: var(--sp4) 0; }
  .srow:not(:has(.sfact:not(.sfact--none))) { grid-template-areas: "name name" "cheap stock"; }  /* nothing learned: no empty third line */
  .srow--head { display: none; }
  /* The name has the whole row, its figure kept on the right beside it, with
     room held for it in em, so both grow with zoomed text (Master's audit,
     25 Oct: in half a row, long names broke mid-word). */
  .srow__name { grid-area: name; padding-right: 6.5em; }
  .srow > .level { grid-area: name; justify-self: end; align-self: start; text-align: right; }
  .meter--cheap { grid-area: cheap; }
  .meter--stock { grid-area: stock; }
  .sfact { display: grid; gap: var(--sp1); }
  .sfact--restock { grid-area: restock; }
  .sfact--sells { grid-area: sells; }
  .sfact--none { display: none; }
  .meter::before, .sfact::before { content: attr(data-label); font: 600 var(--s1)/var(--l1) var(--text); color: var(--ink-2); }
  .level::after { content: "vs other shops"; display: block; font: 400 var(--s1)/var(--l1) var(--text); color: var(--ink-2); }

  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-block: var(--sp1); margin-block: calc(-1 * var(--sp1)); }
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }  /* scrolls rather than clips under larger text spacing */
  .chips::-webkit-scrollbar { display: none; }
  /* Compact on a phone, so the four categories fit without scrolling. */
  .chip { padding: 0 var(--sp3); gap: var(--sp1); }
  .toolbar .chips { flex: 1 1 100%; }
  .toolbar .menu__list { left: 0; right: auto; }
  /* Menus open within the row they sit in, so none runs off a phone's edge. */
  .toolbar { position: relative; }
  .toolbar > .menu { position: static; }
  .toolbar .menu__list { left: 0; right: auto; max-width: 100%; }
  .bell__panel { position: fixed; left: max(var(--sp4), env(safe-area-inset-left)); right: max(var(--sp4), env(safe-area-inset-right)); top: calc(var(--top-height) + var(--sp2)); width: auto; max-height: calc(100dvh - var(--top-height) - var(--sp2) - 96px); overflow-y: auto; }
  .toasts { top: auto; right: max(var(--sp4), env(safe-area-inset-right)); bottom: calc(72px + env(safe-area-inset-bottom)); }
  .toast { --toast-from: 8px; }
  .sgrid { gap: var(--sp4); }
  .scard { padding: var(--sp4); }
}

/* A phone on its side: the photo beside the name, price and Buy, all within
   the screen's height (Master's audit, 25 Oct: stacked, they fell below the
   fold). After the phone rules, which it overrides. */
@media (orientation: landscape) and (max-height: 500px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp5); }
  .hero__stage { aspect-ratio: 4 / 3; max-height: calc(100dvh - var(--top-height) - var(--sp7)); }
  .hero__name { font-size: var(--s5); line-height: var(--l5); }
  .hero .buy { width: auto; min-width: 0; margin-top: var(--sp4); }
}

/* Pages slide like an iPhone app's (owner, 25 Oct: "smoother, more motion
   design, not fade in fade out"): a new page comes in from the right over the
   last, which eases left; Back, a tab further left or the browser's back
   (app.js sets data-slide="back") slides it away to the right. The top bar and
   the tab bar stay put, and a product's photo glides between the list and its
   page (app.js names all three for the change). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation: .32s var(--ease-page) both; mix-blend-mode: normal; }
::view-transition-old(root) { animation-name: page-out; }
::view-transition-new(root) { animation-name: page-in; box-shadow: var(--soft); }
:root[data-slide="back"]::view-transition-old(root) { z-index: 1; animation-name: page-out-back; box-shadow: var(--soft); }
:root[data-slide="back"]::view-transition-new(root) { animation-name: page-in-back; box-shadow: none; }
::view-transition-group(top), ::view-transition-group(tabbar), ::view-transition-new(top), ::view-transition-new(tabbar) { animation: none; }
::view-transition-old(top), ::view-transition-old(tabbar) { display: none; }
::view-transition-group(photo) { animation-duration: .32s; animation-timing-function: var(--ease-page); }
@keyframes page-in { from { transform: translateX(100%); } }
@keyframes page-out { to { transform: translateX(-25%); } }
@keyframes page-in-back { from { transform: translateX(-25%); } }
@keyframes page-out-back { to { transform: translateX(100%); } }

/* A tap's note on a phone (app.js): what a pointer's hover shows. It grows
   from what was tapped and leaves faster than it came. */
.tip { position: absolute; z-index: 60; max-width: min(280px, calc(100vw - 16px)); padding: var(--sp2) var(--sp3); border-radius: var(--r); background: var(--ink); color: var(--on-ink); font: 400 var(--s1)/var(--l1) var(--text); box-shadow: var(--soft); pointer-events: none; transition: opacity .15s var(--ease-out), transform .15s var(--ease-out); }
@starting-style { .tip { opacity: 0; transform: scale(.96); } }
.tip--out { opacity: 0; transform: scale(.96); transition-duration: .1s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* Still leaves on time, without moving. */
  .toast--status:not(.toast--keep) { animation: toast-out 1ms 6s forwards !important; }
  @view-transition { navigation: none; }
}

/* Numbers keep equal-width digits, so prices, figures and times line up and
   countdowns don't jitter. Every `font:` shorthand above resets this, so it is
   set here, last, on the numbers only: in Inter it also widens hyphens, so
   names ("2025-26 Prizm") and prose keep proportional figures. */
.fig b, .fig small, .hero__tag .fig b, .hero__price b, .pp__price, .pp__shop b, .hm-row__end b, .hm-chip, .row__price b, .row__price .was, .tile__price b, .ship,
.ref dd, .clock__val, .clock__num, .clock--text, .datetile b, .scan__time, .count, .chip small, .level b, .meter b,
.stats b, .table td, .chart__tip b, .buybar__price b, .toast__p, .price-row b { font-variant-numeric: tabular-nums; }
/* A word figure ("30-day low") is a word: proportional, so its hyphen sits tight. */
.fig.fig--word b { font-variant-numeric: normal; }

/* Narrow phones: the sort tabs fit. */
@media (max-width: 359px) { .seg a { padding: 0 var(--sp2); } }

/* The narrowest phones (320 px): Drops' Buy now keeps its words, and the
   header keeps "4 min ago" on one line by showing the mark without the name. */
@media (max-width: 359px) {
  .tile--live .buy { padding: 0 var(--sp4); gap: var(--sp2); }
  .top .brand__name { display: none; }
}
