/* Zol. Style: achromatic ledger (tasteskill app sheet, seed 850446044).
   Money and counts in ink; the one hue (--hue) marks the lowest price. Logical properties throughout for RTL. */
/* Fonts are served by Zol itself (web/fonts, SIL Open Font License 1.1), so no font service sees
   visitors' addresses. */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/geist-sans-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/geist-sans-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/geist-sans-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Noto Sans Hebrew'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/noto-sans-hebrew-hebrew-400-normal.woff2') format('woff2'); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: 'Noto Sans Hebrew'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/noto-sans-hebrew-hebrew-500-normal.woff2') format('woff2'); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
@font-face { font-family: 'Noto Sans Hebrew'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/noto-sans-hebrew-hebrew-700-normal.woff2') format('woff2'); unicode-range: U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F; }
:root {
  --ground: #f2f4f7;   /* face: a blue-grey ledger ground */
  --surface: #ffffff;
  --raised: #eceef2;
  --active: #e4e7ec;
  --border: #e3e6ea;
  --rule: #edf0f3;
  --control: #c9ced6;
  --text: #0a0a0a;
  --muted: #5d6168;
  --hue: #1d5fbf;      /* the one chart hue: lowest price */
  --hue-soft: #e6eefa;
  --primary: #141414; --primary-ink: #ffffff;
  --secondary: #e5e5e5;
  --positive: #2e7d32; --negative: #c4242a; --warning: #92400e;
  --pill-positive-bg: #dcfae5; --pill-positive-ink: #04250e;
  --pill-negative-bg: #ffedea; --pill-negative-ink: #831c1e;
  --pill-warning-bg: #fffbeb; --pill-warning-ink: #92400e;
  --pill-neutral-bg: #eeeeee; --pill-neutral-ink: #3d3d3d;
  --radius-card: 12px; --radius-control: 6px;
  --lift: 0 1px 2px rgb(16 24 40 / 0.04), 0 12px 32px -18px rgb(16 24 40 / 0.18); /* cards rest slightly above the ground */
  --row-height: 44px; --sidebar-width: 256px; --gap: 12px; --pad: 32px; --control-height: 36px;
  --fs-display: clamp(34px, 5.2vw, 64px);
  --fs-title: 24px; --fs-section: 16px; --fs-kpi: 30px; --fs-body: 14px; --fs-small: 12px;
  --font: "Geist", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --stage: #ffffff; /* the light behind the 3D product card */
  --photo-bg: #ffffff; /* product photos are shot on white */
  --card-edge: #c9ced6;
  color-scheme: light;
}
:root[lang="he"] { --font: "Noto Sans Hebrew", "Geist", system-ui, sans-serif; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ground: #0b0c0e; --surface: #15171a; --raised: #1f2226; --active: #262a2f; --border: #23262b; --rule: #1c1f23; --control: #3a3f46; --text: #f4f5f6; --muted: #a6abb3; --hue: #6ea2ff; --hue-soft: #17233a; --primary: #f4f5f6; --primary-ink: #0b0c0e; --secondary: #2a2e34; --positive: #4cc06a; --negative: #ff6b6b; --warning: #e5a93b; --pill-positive-bg: #12301b; --pill-positive-ink: #7fe39a; --pill-negative-bg: #3a1a1a; --pill-negative-ink: #ff9d9d; --pill-warning-bg: #33280f; --pill-warning-ink: #f2c26b; --pill-neutral-bg: #262a2f; --pill-neutral-ink: #cfd3d8; --stage: #3a4049; --lift: none; --photo-bg: #f4f5f6; --card-edge: #4a5059; color-scheme: dark; }
}
:root[data-theme="dark"] { --ground: #0b0c0e; --surface: #15171a; --raised: #1f2226; --active: #262a2f; --border: #23262b; --rule: #1c1f23; --control: #3a3f46; --text: #f4f5f6; --muted: #a6abb3; --hue: #6ea2ff; --hue-soft: #17233a; --primary: #f4f5f6; --primary-ink: #0b0c0e; --secondary: #2a2e34; --positive: #4cc06a; --negative: #ff6b6b; --warning: #e5a93b; --pill-positive-bg: #12301b; --pill-positive-ink: #7fe39a; --pill-negative-bg: #3a1a1a; --pill-negative-ink: #ff9d9d; --pill-warning-bg: #33280f; --pill-warning-ink: #f2c26b; --pill-neutral-bg: #262a2f; --pill-neutral-ink: #cfd3d8; --stage: #3a4049; --lift: none; --photo-bg: #f4f5f6; --card-edge: #4a5059; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 var(--fs-body)/1.5 var(--font); font-variant-numeric: tabular-nums; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--hue); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -40px; background: var(--primary); color: var(--primary-ink); padding: 8px 12px; border-radius: var(--radius-control); z-index: 50; }
.skip:focus { top: 8px; }

/* ---------- shell: open plane ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 28px 16px 20px; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand svg { width: 28px; height: 28px; }
.nav a { display: flex; align-items: center; justify-content: space-between; height: 32px; margin-block-end: 2px; padding: 0 10px; border-radius: 8px; text-decoration: none; color: var(--muted); transition: background var(--t, 150ms) var(--ease), color 150ms var(--ease); }
.nav a:hover { color: var(--text); background: var(--raised); }
.nav a[aria-current="page"] { color: var(--text); background: var(--active); font-weight: 500; }
.nav .count { font-size: var(--fs-small); color: var(--muted); }
.side-group { margin-block-start: auto; display: grid; gap: 10px; padding: 0 8px; }
.side-group label { display: grid; gap: 4px; font-size: var(--fs-small); color: var(--muted); }
.demo-note { font-size: var(--fs-small); color: var(--muted); padding: 10px 8px 0; line-height: 1.45; }
.canvas { padding: 32px var(--pad) 64px; min-width: 0; }
.has-cmpbar .canvas { padding-block-end: 104px; }
.topbar { display: none; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--control-height); padding: 0 14px; border-radius: var(--radius-control); border: 1px solid var(--control); background: var(--surface); color: var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; font-weight: 500; transition: background 150ms var(--ease), transform 120ms var(--ease), border-color 150ms var(--ease); }
.btn:hover { background: var(--raised); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn.primary:hover { background: color-mix(in srgb, var(--primary) 85%, var(--ground)); }
.btn.secondary { background: var(--secondary); border-color: var(--secondary); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--raised); }
.btn.on { color: var(--text); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn.big { height: 52px; padding: 0 22px; font-size: 16px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.field, select.field { height: var(--control-height); padding: 0 10px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--surface); width: 100%; min-width: 0; }
.field:focus { outline: 2px solid var(--hue); outline-offset: 0; border-color: var(--hue); }
.check { display: flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; flex: none; }
.check .n { margin-inline-start: auto; color: var(--muted); font-size: var(--fs-small); }
.link { background: none; border: 0; padding: 0; color: var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: var(--fs-small); font-weight: 500; white-space: nowrap; }
.pill.pos { background: var(--pill-positive-bg); color: var(--pill-positive-ink); }
.pill.neg { background: var(--pill-negative-bg); color: var(--pill-negative-ink); }
.pill.warn { background: var(--pill-warning-bg); color: var(--pill-warning-ink); }
.pill.neutral { background: var(--pill-neutral-bg); color: var(--pill-neutral-ink); }
.notice { background: var(--pill-warning-bg); color: var(--pill-warning-ink); border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent); border-radius: var(--radius-control); padding: 8px 12px; font-size: var(--fs-small); }
.card { background: var(--surface); border-radius: var(--radius-card); border: 1px solid var(--border); box-shadow: var(--lift); }

/* ---------- home ---------- */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 8px 24px; }
.home-hero h1 { font-size: var(--fs-display); line-height: 0.98; letter-spacing: -0.035em; font-weight: 700; max-width: 11ch; }
.home-hero .lead { font-size: 18px; line-height: 1.5; margin-block: 24px 28px; max-width: 34ch; }
.searchbar { display: flex; gap: 8px; max-width: 620px; }
.searchbar .field { height: 52px; font-size: 17px; padding: 0 16px; border-radius: 8px; }
.tries { margin-block-start: 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; color: var(--muted); }
.tries button { background: none; border: 0; padding: 4px 0; color: var(--text); cursor: pointer; text-decoration: underline; text-decoration-color: var(--control); text-underline-offset: 4px; }
.tries button:hover { text-decoration-color: var(--text); }
.hero-board { padding: 20px 22px 8px; }
.hero-board h2 { font-size: var(--fs-section); font-weight: 500; }
.hero-board .lead2 { color: var(--muted); font-size: var(--fs-small); margin-block: 2px 8px; }
.spread { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding-block: 12px; border-block-start: 1px solid var(--rule); text-decoration: none; }
.spread:first-of-type { border-block-start: 0; }
.spread .thumb { width: 44px; height: 33px; border-radius: 6px; background: radial-gradient(120% 90% at 50% 38%, var(--stage), var(--raised) 75%); overflow: hidden; grid-row: span 2; }
.spread .nm { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spread .pr { font-weight: 700; grid-row: span 2; text-align: end; }
.spread .pr small { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-small); }
.spread:hover .nm { text-decoration: underline; }
.home-section { margin-block-start: 96px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.home-section h2 { font-size: var(--fs-title); letter-spacing: -0.01em; font-weight: 700; }
.home-section .lead2 { color: var(--muted); margin-block-start: 8px; max-width: 36ch; }

/* ---------- ladder: every offer on one price axis ---------- */
.ladder { position: relative; height: 18px; min-width: 120px; }
.ladder::before { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--rule); border-radius: 2px; }
.ladder i { position: absolute; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--muted); opacity: 0.55; }
.ladder i.low { background: var(--hue); opacity: 1; width: 10px; height: 10px; margin: -5px 0 0 -5px; }
[dir="rtl"] .ladder i { margin: -4px -4px 0 0; }
[dir="rtl"] .ladder i.low { margin: -5px -5px 0 0; }
.ladder-full { padding: 8px 0 4px; }
.ladder-full .rail { position: relative; height: 56px; }
.ladder-full .rail::before { content: ""; position: absolute; inset-inline: 0; top: 18px; height: 2px; background: var(--rule); }
.ladder-full .dot { position: absolute; top: 12px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
[dir="rtl"] .ladder-full .dot { transform: translateX(50%); }
.ladder-full .dot.first { transform: none; align-items: flex-start; }
.ladder-full .dot.last { transform: translateX(-100%); align-items: flex-end; }
[dir="rtl"] .ladder-full .dot.first { transform: none; }
[dir="rtl"] .ladder-full .dot.last { transform: translateX(100%); }
.ladder-full .dot b { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); }
.ladder-full .dot.low b { background: var(--hue); width: 14px; height: 14px; }
.ladder-full .dot span { font-size: var(--fs-small); color: var(--muted); white-space: nowrap; }
.ladder-full .dot.low span { color: var(--text); font-weight: 500; }
.ladder-full .dot:nth-child(even) span { margin-block-start: 14px; }
.ladder-full .axis { display: flex; justify-content: space-between; color: var(--muted); font-size: var(--fs-small); margin-block-start: 6px; }
.price-low { color: var(--hue); }

/* ---------- results: table with a filter column ---------- */
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.title-row h1 { font-size: var(--fs-title); font-weight: 700; letter-spacing: -0.01em; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-block: 20px 8px; flex-wrap: wrap; }
.toolbar form { display: flex; gap: 8px; flex: 1 1 320px; max-width: 520px; }
.toolbar .count { color: var(--muted); margin-inline-start: auto; }
.toolbar .sort { display: flex; align-items: center; gap: 8px; }
.toolbar .sort select { width: auto; }
.results-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 40px; margin-block-start: 16px; align-items: start; }
.filters { display: grid; gap: 22px; position: sticky; top: 16px; max-height: calc(100dvh - 32px); overflow: auto; padding-inline-end: 6px; padding-block-end: 20px; }
:is(.filters, .sheet-body) fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
:is(.filters, .sheet-body) legend { font-weight: 500; margin-block-end: 6px; padding: 0; }
:is(.filters, .sheet-body) .range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
:is(.filters, .sheet-body) .range label { display: grid; gap: 4px; font-size: var(--fs-small); color: var(--muted); }
:is(.filters, .sheet-body) .range .btn { grid-column: 1 / -1; }
:is(.filters, .sheet-body) .more { margin-block-start: 4px; }
:is(.filters, .sheet-body) .sub { padding-inline-start: 26px; }
.filters-head { display: none; }
.rows { display: grid; }
.row { display: grid; grid-template-columns: 92px minmax(0, 1.8fr) minmax(130px, 1fr) 150px auto; gap: 18px; align-items: center; padding-block: 14px; border-block-start: 1px solid var(--rule); animation: rise 360ms var(--ease) both; }
.row:first-child { border-block-start: 0; }
.row .thumb { width: 92px; height: 69px; border-radius: 10px; background: radial-gradient(120% 90% at 50% 38%, var(--stage), var(--raised) 75%); overflow: hidden; }
.row .who a { font-weight: 500; text-decoration: none; }
.row .who a:hover { text-decoration: underline; }
.row .who .meta { color: var(--muted); font-size: var(--fs-small); margin-block-start: 2px; }
.row .spreadcol .small { margin-block-start: 6px; color: var(--muted); }
.row .money { text-align: end; }
.row .money strong { display: block; font-size: 18px; font-weight: 700; }
.row .money .small { color: var(--muted); }
.row .acts { display: flex; gap: 6px; justify-content: flex-end; }
.save-compare { display: flex; gap: 2px; margin-block-start: 6px; margin-inline-start: -10px; }
.save-compare .btn { height: 30px; padding: 0 10px; font-size: 13px; }
#main:focus { outline: none; }
.rating { white-space: nowrap; }
.list-end { display: flex; justify-content: center; padding-block: 24px; }
.empty { border: 1px dashed var(--control); border-radius: var(--radius-card); padding: 28px; display: grid; gap: 6px; }
.empty h2 { font-size: var(--fs-section); }
.skeleton { display: block; background: var(--raised); border-radius: 4px; }
.errorbox { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 16px; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--border); }
.errorbox::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--negative); }
.comparebar { position: fixed; inset-block-end: 16px; inset-inline-end: 16px; display: flex; align-items: center; gap: 12px; background: var(--primary); color: var(--primary-ink); border-radius: 10px; padding: 8px 8px 8px 16px; box-shadow: 0 8px 28px rgba(0,0,0,0.18); /* taste-skill-ignore: floating sticky bar */ z-index: 20; animation: rise 240ms var(--ease) both; }
[dir="rtl"] .comparebar { padding: 8px 16px 8px 8px; }
.comparebar .btn { background: var(--primary-ink); color: var(--primary); border-color: var(--primary-ink); }
.comparebar .btn.ghost { background: transparent; color: var(--primary-ink); border-color: transparent; }

/* ---------- product detail ---------- */
.backrow { margin-block-end: 16px; }
.backbtn { color: var(--text); border-color: var(--border); background: var(--surface); padding-inline: 8px 14px; max-width: 100%; }
.backbtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.backbtn svg { flex: none; }
[dir="rtl"] .backbtn svg { transform: scaleX(-1); }
.obj { display: grid; grid-template-columns: 340px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 32px; row-gap: 16px; padding: 20px 28px 20px 20px; align-items: end; }
/* The photo spans both rows; the name sits above the actions, so the buttons never squeeze the title. */
.obj > .herobox { grid-row: 1 / span 2; align-self: center; }
.obj > .acts { grid-column: 2; align-self: start; }
[dir="rtl"] .obj { padding: 20px 20px 20px 28px; }
.obj .thumb { width: 220px; height: 165px; background: var(--raised); border-radius: 6px; overflow: hidden; }
.herobox { display: grid; gap: 6px; justify-items: center; }
.artnote { text-align: center; }

/* ---------- the product object in 3D (web/stage3d.js) ----------
   Slices of the drawing stacked along Z give it real thickness; the parent's perspective turns it. */
.obj .thumb.hero3d { width: 340px; height: 255px; overflow: visible; border-radius: 10px; cursor: grab; touch-action: pan-y;
  background: radial-gradient(120% 90% at 50% 38%, var(--stage), var(--raised) 70%); }
.hero3d:active { cursor: grabbing; }
.hero3d:focus-visible { outline: 2px solid var(--hue); outline-offset: 3px; }
.o3 { position: relative; width: 100%; height: 100%; perspective: 1100px; }
.o3-turn { position: absolute; inset: 5% 6% 9%; transform-style: preserve-3d; transform: rotateX(8deg) rotateY(-18deg); }
.o3-slice { position: absolute; inset: 0; border-radius: 12px; transform: translateZ(calc(var(--z) * var(--depth, 16px))); }
.o3-front { background: var(--photo-bg); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; display: grid; }
.o3-front > * { grid-area: 1 / 1; }
.o3-side { background: var(--card-edge); }
.o3-back { background: var(--raised); box-shadow: inset 0 0 0 1px var(--border); }
.o3-shadow { position: absolute; inset-inline: 22%; bottom: 4%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / 0.22), transparent); }
.hero3d.awake:not(.manual) .o3-turn { animation: o3-sway 7s ease-in-out infinite alternate; }
@keyframes o3-sway { from { transform: rotateX(8deg) rotateY(-18deg); } to { transform: rotateX(4deg) rotateY(16deg); } }

/* The flight from a card into the product page: a fixed overlay that never takes clicks. */
.flying #pbody .hero3d { visibility: hidden; }
.fly { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.fly-backdrop { position: absolute; inset: 0; opacity: 0; background: radial-gradient(70% 60% at 50% 46%, color-mix(in srgb, var(--stage) 92%, transparent), color-mix(in srgb, var(--ground) 96%, transparent)); }
.fly-obj { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
/* Then the page around the object: the heading first, then each panel in turn. */
#pbody.reveal .obj > :not(.herobox), #pbody.reveal > :not(.obj):not(.grid6), #pbody.reveal .grid6 > * { animation: rise 460ms var(--ease) both; }
#pbody.reveal .obj > :nth-child(2) { animation-delay: 40ms; } #pbody.reveal .obj > :nth-child(3) { animation-delay: 90ms; }
#pbody.reveal .grid6 > :nth-child(1) { animation-delay: 120ms; } #pbody.reveal .grid6 > :nth-child(2) { animation-delay: 170ms; }
#pbody.reveal .grid6 > :nth-child(3) { animation-delay: 220ms; } #pbody.reveal .grid6 > :nth-child(4) { animation-delay: 260ms; }
#pbody.reveal .grid6 > :nth-child(n+5) { animation-delay: 300ms; }
.chart-one { padding: 14px 16px; border: 1px dashed var(--control); border-radius: var(--radius-control); display: grid; gap: 10px; }
.chart-one ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.chart-one li { display: flex; justify-content: space-between; gap: 12px; }
.chgline { margin-block-start: 4px; } .chg { white-space: nowrap; }
.obj h1 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.obj .meta { color: var(--muted); margin-block-start: 4px; }
.obj .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; }
.grid6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-block-start: 14px; }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; } .span4 { grid-column: span 4; } .span6 { grid-column: 1 / -1; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px; min-width: 0; box-shadow: var(--lift); }
.panel h2 { font-size: var(--fs-section); font-weight: 500; margin-block-end: 12px; }
.kpi { font-size: clamp(30px, 2.8vw, 38px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.best { display: grid; gap: 6px; align-content: start; border-block-start: 3px solid var(--hue); }
.best .btn { margin-block-start: 10px; }
table.data { width: 100%; border-collapse: collapse; }
table.data th { text-align: start; font-weight: 400; color: var(--muted); font-size: 13px; padding: 0 12px 8px 0; white-space: nowrap; }
[dir="rtl"] table.data th, [dir="rtl"] table.data td { padding-inline: 0 12px; }
table.data td { padding: 10px 12px 10px 0; border-block-start: 1px solid var(--rule); vertical-align: middle; }
table.data .num { text-align: end; white-space: nowrap; }
table.data tr.gone td { color: var(--muted); }
.specs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding-block: 9px; border-block-start: 1px solid var(--rule); }
.specs dt { color: var(--muted); } .specs dd { margin: 0; text-align: end; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: var(--fs-small); color: var(--muted); margin-block-start: 8px; }
.chart .legend i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-inline-end: 6px; background: var(--muted); }
.chart .legend i.low { background: var(--hue); height: 3px; }
.best .alerts form { flex-direction: column; align-items: stretch; }
.best .alerts label.inline { flex: none; }
.alerts form { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.alerts label.inline { display: grid; gap: 4px; flex: 1 1 160px; color: var(--muted); font-size: var(--fs-small); }
.similar { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.mini { text-decoration: none; display: grid; gap: 6px; }
.mini .thumb { aspect-ratio: 4 / 3; background: radial-gradient(120% 90% at 50% 38%, var(--stage), var(--raised) 75%); border-radius: 10px; overflow: hidden; }
.mini:hover .nm { text-decoration: underline; }
/* A drawing that opens a product turns slightly toward you on hover: the object it becomes is 3D. */
.row .thumb, .spread .thumb, .mini .thumb { perspective: 500px; }
.row .thumb > *, .spread .thumb > *, .mini .thumb > * { transition: transform 360ms var(--ease); transform-origin: 50% 60%; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .row:hover .thumb > *, .spread:hover .thumb > *, .mini:hover .thumb > * { transform: rotateY(-16deg) rotateX(6deg) scale(1.06); }
  [dir="rtl"] .row:hover .thumb > *, [dir="rtl"] .spread:hover .thumb > *, [dir="rtl"] .mini:hover .thumb > * { transform: rotateY(16deg) rotateX(6deg) scale(1.06); }
}
.mini .nm { font-weight: 500; line-height: 1.35; }

/* ---------- compare ---------- */
.cmp-wrap { overflow-x: auto; margin-block-start: 20px; }
table.cmp { border-collapse: collapse; min-width: 640px; width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
table.cmp th, table.cmp td { padding: 12px 16px; border-block-start: 1px solid var(--rule); text-align: start; vertical-align: top; }
table.cmp thead th { border-block-start: 0; vertical-align: bottom; }
table.cmp tbody th { color: var(--muted); font-weight: 400; width: 160px; }
table.cmp .thumb { width: 120px; height: 90px; background: var(--raised); border-radius: 6px; overflow: hidden; margin-block-end: 8px; }
table.cmp .best { color: var(--hue); font-weight: 700; }

/* ---------- help ---------- */
.help { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-block-start: 20px; max-width: 1100px; }
.help .panel { display: grid; gap: 12px; align-content: start; }
.help label { display: grid; gap: 4px; color: var(--muted); font-size: var(--fs-small); }
.provider { display: flex; justify-content: space-between; gap: 12px; padding-block: 8px; border-block-start: 1px solid var(--rule); }
.provider:first-of-type { border-block-start: 0; }

/* ---------- tour ---------- */
.tour-spot { position: fixed; z-index: 60; border-radius: 10px; box-shadow: 0 0 0 4px var(--hue), 0 0 0 9999px rgba(10, 12, 16, 0.62); /* taste-skill-ignore: tour spotlight overlay */ pointer-events: none; transition: opacity 200ms var(--ease); }
.tour-tip { position: fixed; z-index: 61; width: min(340px, calc(100vw - 32px)); background: var(--surface); color: var(--text); border-radius: 10px; padding: 18px; box-shadow: 0 12px 40px rgba(0,0,0,0.3); /* taste-skill-ignore: tour dialog */ display: grid; gap: 8px; }
.tour-tip h2 { font-size: var(--fs-section); }
.tour-tip .row-btns { display: flex; gap: 8px; align-items: center; margin-block-start: 6px; }
.tour-tip .row-btns .grow { margin-inline-start: auto; display: flex; gap: 8px; }
.tour-block { position: fixed; inset: 0; z-index: 59; }

/* ---------- sheet (phone menu and filters) ---------- */
.sheet { position: fixed; inset: 0; z-index: 40; background: var(--ground); display: flex; flex-direction: column; animation: rise 220ms var(--ease) both; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 16px; border-block-end: 1px solid var(--border); flex: none; }
.sheet-body { overflow: auto; padding: 16px; flex: 1; display: grid; gap: 18px; align-content: start; }
.sheet-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-block-start: 1px solid var(--border); display: flex; gap: 8px; flex: none; }
.sheet-foot .btn { flex: 1; height: 48px; }
.phonebar { display: none; }

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

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .row { grid-template-columns: 80px minmax(0, 1fr) 140px auto; }
  .row .thumb { width: 80px; height: 60px; }
  .row .spreadcol { display: none; }
  .home-hero { grid-template-columns: 1fr; min-height: 0; gap: 36px; }
  .home-section { grid-template-columns: 1fr; gap: 16px; }
  .grid6 .span2 { grid-column: span 3; } .grid6 .span4 { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --pad: 20px; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { display: flex; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; height: 52px; align-items: center; gap: 10px; padding: 0 12px 0 16px; background: var(--ground); border-block-end: 1px solid var(--border); }
  [dir="rtl"] .topbar { padding: 0 16px 0 12px; }
  .topbar .brand { padding: 0; font-size: 16px; }
  .topbar .screen { color: var(--muted); }
  .topbar .btn { margin-inline-start: auto; height: 44px; min-width: 44px; }
  .loc-btn { min-height: 44px; }
  .canvas { padding: 20px var(--pad) 96px; }
  .results-layout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .phonebar { display: flex; position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 25; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ground); border-block-start: 1px solid var(--border); }
  .phonebar .btn, .phonebar select { flex: 1; height: 46px; }
  .comparebar { inset-block-end: 80px; inset-inline: 16px; justify-content: space-between; }
  .has-cmpbar .canvas { padding-block-end: 168px; }
  .obj { grid-template-columns: 220px minmax(0, 1fr); }
  .obj .thumb { width: 120px; height: 90px; }
  .obj .thumb.hero3d { width: 220px; height: 165px; }
  .obj .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .help { grid-template-columns: 1fr; }
}
/* ---------- phone ---------- */
@media (max-width: 600px) {
  :root { --pad: 16px; --fs-display: 40px; }
  .home-hero .lead { font-size: 16px; }
  .searchbar { flex-direction: column; }
  .searchbar .btn { height: 52px; }
  .row { grid-template-columns: 72px minmax(0, 1fr); gap: 8px 12px; align-items: start; }
  .row .thumb { width: 72px; height: 54px; }
  .row .money { grid-column: 2; text-align: start; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
  .row .money strong { display: inline; font-size: 18px; }
  .row .money .small { display: inline; }
  .row .acts { grid-column: 1 / -1; justify-content: stretch; }
  .row .acts .btn { height: 44px; flex: 1; }
  .save-compare .btn { height: 44px; }
  .toolbar form { flex-basis: 100%; max-width: none; }
  .toolbar .sort { display: none; }
  .toolbar .count { margin-inline-start: 0; }
  .grid6 { grid-template-columns: 1fr; }
  .grid6 > * { grid-column: 1 / -1 !important; }
  .specs { grid-template-columns: 1fr; }
  .obj .acts .btn { flex: 1; height: 44px; }
  .obj { grid-template-columns: 1fr; }
  .obj > .herobox, .obj > .acts { grid-row: auto; grid-column: auto; }
  .obj h1 { font-size: 20px; }
  table.data .hide-s { display: none; }
  table.data .go .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.data .go { width: 40px; padding: 0; }
  .similar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-section { margin-block-start: 56px; }
  .ladder-full .dot span { display: none; }
  .ladder-full .dot.low span { display: block; }
}

/* ---------- saved, alerts, sellers (enhancements; same tokens) ---------- */
.saved-section { margin-block-start: 28px; }
.saved-section > .title-row h2, .saved-section > h2 { font-size: var(--fs-section); font-weight: 500; margin-block-end: 8px; }
.seller-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-block-start: 4px; }
.row .money .seller-pills { justify-content: flex-end; }
.store-line { margin-block: 12px 0; }
.shortcut-row { margin-block-start: 6px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.target-set { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.target-acts, .row-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.row-acts { justify-content: flex-end; }
.alerts-table { margin-block-start: 8px; }
.alerts-table td { vertical-align: middle; }
#notify-box { margin-block-start: 12px; }
.inline-edit { display: flex; gap: 6px; justify-content: flex-end; }
.inline-edit .field { width: 110px; }
@media (max-width: 600px) {
  .obj { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .obj > .herobox, .obj > .acts { grid-row: auto; grid-column: auto; }
  .obj .thumb.hero3d { width: min(100%, 300px); height: auto; aspect-ratio: 4 / 3; }
  .row .money .seller-pills { justify-content: flex-start; }
  .alerts-table th:nth-child(2), .alerts-table td:nth-child(2) { display: none; }
}

/* ---------- platform features: totals, history, advice, follow-ups, vehicles, sources ---------- */
.total-line { display: inline-block; color: var(--text); }
.total-line.muted { color: var(--muted); }
.est { color: var(--muted); font-size: var(--fs-small); font-weight: 400; }
.breakdown { margin: 12px 0 4px; display: grid; gap: 0; }
.breakdown div { display: flex; justify-content: space-between; gap: 12px; padding-block: 6px; border-block-start: 1px solid var(--rule); font-size: 13px; }
.breakdown dt { color: var(--muted); } .breakdown dd { margin: 0; text-align: end; }
.breakdown .sum dt, .breakdown .sum dd { color: var(--text); font-weight: 600; }
.metrics { margin-block: -4px 10px; }
.table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data.offers td.num .small { white-space: normal; max-width: 220px; margin-inline-start: auto; }
.seg { display: inline-flex; gap: 4px; margin-block-end: 8px; flex-wrap: wrap; }
.seg .btn.on { background: var(--active); border-color: var(--control); }
.pchart { width: 100%; height: auto; touch-action: pan-y; cursor: crosshair; border-radius: 4px; }
.chart-readout { min-height: 1.5em; color: var(--muted); }
.chart-table { margin-block-start: 8px; }
.chart-table summary, details summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.chart-table table { margin-block-start: 8px; }
.advice-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-block-end: 8px; font-size: 16px; }
.advice h3 { font-size: 13px; font-weight: 600; margin-block: 12px 4px; color: var(--muted); }
.advice-list { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; font-size: 13px; }
.fu-form { flex-direction: column; align-items: stretch !important; }
.saved-item { border-block-end: 1px solid var(--rule); }
.saved-item .row { border-block-end: 0; }
.saved-report { display: grid; gap: 4px; padding: 0 0 14px; margin-inline-start: calc(64px + 16px); }
.saved-report p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.diffs { display: flex; flex-wrap: wrap; gap: 4px; }
table.cmp tr.differs th, table.cmp tr.differs td { background: var(--hue-soft); }
.tries.cats { margin-block-start: 6px; }
.status-counts { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
@media (max-width: 900px) {
  .saved-report { margin-inline-start: 0; padding-inline: 4px; }
  table.data.offers td.num .small { max-width: 140px; }
}
/* The offers table keeps "Go to store" as an icon button with its text for screen readers, so the
   button is never cut off beside the total column. */
table.data.offers .go { width: 40px; padding: 0; justify-content: center; }
table.data.offers .go .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 900px) {
  .grid6 { grid-template-columns: minmax(0, 1fr); }
  /* Offers become stacked rows on phones: store, then stock and total, then item price and the store link. */
  table.data.offers thead { display: none; }
  table.data.offers, table.data.offers tbody { display: block; }
  table.data.offers tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; padding-block: 12px; border-block-start: 1px solid var(--rule); }
  table.data.offers td { display: block; border: 0; padding: 0 !important; }
  table.data.offers td:nth-child(1) { grid-column: 1 / -1; }
  table.data.offers td:nth-child(2) { grid-column: 1; grid-row: 2; }
  table.data.offers td.c-total { grid-column: 2; grid-row: 2 / span 2; text-align: end; }
  table.data.offers td.c-price { grid-column: 1; grid-row: 3; text-align: start; }
  table.data.offers td:nth-child(5) { grid-column: 2; grid-row: 4; justify-self: end; }
  table.data.offers td.c-price::before, table.data.offers td.c-total::before { content: attr(data-label); display: block; font-size: var(--fs-small); color: var(--muted); font-weight: 400; }
  table.data.offers td.num .small { max-width: none; }
}
.total-line .tl-amount { font-weight: 600; }

/* ---------- search: nothing in the catalogue ---------- */
.nomatch { gap: 10px; }
.nomatch h3 { font-size: var(--fs-body); font-weight: 600; margin-block-start: 8px; }
.storelinks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.storelinks a { display: inline-flex; align-items: center; gap: 6px; text-underline-offset: 3px; }
.storelinks svg { width: 14px; height: 14px; }

/* ---------- product pictures: a licensed photo, or an honest "no photo" state ---------- */
.thumb { display: grid; text-decoration: none; }
.thumb > * { grid-area: 1 / 1; }
.pimg { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--photo-bg); padding: 6%; box-sizing: border-box; }
.nophoto { display: grid; place-items: center; align-content: center; gap: 2px; width: 100%; height: 100%; color: var(--muted); text-align: center; }
.nophoto svg { width: min(34%, 44px); height: auto; opacity: 0.8; }
.np-t { font-size: 11px; line-height: 1.2; }
.spread .np-t, table.cmp .np-t { display: none; }
.hero3d .nophoto svg { width: 22%; max-width: 64px; }
.hero3d .np-t { font-size: var(--fs-small); }

/* ---------- legal pages ---------- */
.legal { max-width: 72ch; display: grid; gap: 16px; }
.legal h1 { font-size: var(--fs-title); letter-spacing: -0.01em; }
.legal h2 { font-size: var(--fs-section); font-weight: 600; margin-block-end: 6px; }
.legal p { line-height: 1.65; }
.legal section { display: grid; gap: 8px; }
.legal-index { display: grid; gap: 8px; padding-inline-start: 20px; }
.legal a { text-underline-offset: 3px; }
.legal .lead2 { margin: 0; }
.contact-card { padding: 16px 18px; }
.contact-card p { margin: 0; }
.contact-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-topics li { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px; }
.contact-topics h3 { font-size: var(--fs-body); font-weight: 600; margin: 0; }
.contact-topics p { margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 10px 8px 0; }
.legal-links a { color: var(--muted); text-underline-offset: 3px; }
.legal-links a:hover { color: var(--text); }

/* ---------- location selector, where offers are, stores searched ---------- */
.loc-btn { gap: 6px; max-width: 100%; }
.loc-btn svg { width: 16px; height: 16px; flex: none; }
.loc-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-loc { margin-block-end: 10px; }
.loc-list { display: grid; gap: 2px; max-height: 50vh; overflow: auto; margin-block-start: 6px; }
.where { margin-block-start: 4px; }
.loc-notice { margin-block-end: 8px; }
.coverage { margin-block-start: 18px; }
.coverage summary { cursor: pointer; }
.coverage-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }

/* ---------- what was understood from the query: removable parts and narrower kinds ---------- */
.intent { display: grid; gap: 8px; margin-block: 4px 12px; }
.intent .chips, .intent .choices { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--hue-soft); color: var(--text); font-size: 13px; font-weight: 500; }
.chip-x { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; min-width: 24px; min-height: 24px; border-radius: 50%; }
.chip-x:hover { background: var(--active); }
.btn.choice { height: 30px; padding: 0 12px; border-radius: 999px; font-weight: 400; }
.btn.choice .n { color: var(--muted); font-size: var(--fs-small); margin-inline-start: 4px; }

/* ---------- product cards (search results) ---------- */
.brandline { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); min-height: 14px; }
.pcard .plabel { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: var(--fs-small); flex-wrap: wrap; }
.pcard .money .offers-n { white-space: nowrap; }
.pcard .acts .go, .pcard .acts .aff-mark { display: none; } /* result cards lead to the product page, where store links and their labels are */
.cartadd svg, .cart-link svg { width: 18px; height: 18px; flex: none; }
.cartadd.on { background: var(--hue-soft); border-color: var(--hue); color: var(--text); }
.btn.cartadd.primary.on { background: var(--hue-soft); color: var(--text); }
@media (min-width: 601px) {
  #res-body .rows { grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 16px; }
  #res-body .pcard { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: box-shadow 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease); }
  #res-body .pcard:first-child { border-block-start: 1px solid var(--border); }
  #res-body .pcard:hover { border-color: var(--control); box-shadow: var(--lift); }
  #res-body .pcard .thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 10px; }
  /* No photo: a slim strip instead of an empty 4:3 frame, so a page of results shows more products. */
  #res-body .pcard .thumb:has(> .nophoto) { aspect-ratio: auto; height: 52px; }
  #res-body .pcard .thumb > .nophoto { grid-auto-flow: column; justify-content: center; gap: 8px; }
  #res-body .pcard .thumb > .nophoto svg { width: 22px; }
  #res-body .pcard .who a { font-size: 15px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
  #res-body .pcard .who .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #res-body .pcard .spreadcol { display: none; }
  #res-body .pcard .money { text-align: start; margin-block-start: auto; display: grid; gap: 2px; }
  #res-body .pcard .money strong { font-size: 24px; letter-spacing: -.01em; }
  #res-body .pcard .money .seller-pills { justify-content: flex-start; }
  #res-body .pcard .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  #res-body .pcard .acts .btn { height: 40px; padding: 0 8px; font-size: 13px; white-space: nowrap; }
}
@media (max-width: 600px) {
  #res-body .rows { gap: 12px; }
  #res-body .pcard { padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; grid-template-columns: 96px minmax(0, 1fr); }
  #res-body .pcard:first-child { border-block-start: 1px solid var(--border); }
  #res-body .pcard .thumb { width: 96px; height: 96px; border-radius: 10px; grid-row: span 2; }
  #res-body .pcard .who a { font-weight: 600; line-height: 1.3; }
  #res-body .pcard .money { display: grid; gap: 1px; }
  #res-body .pcard .money strong { font-size: 22px; }
  #res-body .pcard .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  #res-body .pcard .acts .btn { height: 44px; font-size: 14px; }
}

/* ---------- cart ---------- */
.topbar .cart-link { margin-inline-start: auto; position: relative; width: 44px; padding: 0; }
.topbar .cart-link + .btn { margin-inline-start: 0; }
.cart-link .count { position: absolute; inset-block-start: 2px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--hue); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.cart-link .count:empty { display: none; }
.cart-note { margin-block: 4px 16px; max-width: 70ch; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto auto; grid-template-areas: "img main qty price" "img main acts acts"; gap: 8px 16px; align-items: start; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.cart-line .thumb { grid-area: img; width: 88px; height: 88px; border-radius: 10px; overflow: hidden; background: radial-gradient(120% 90% at 50% 38%, var(--stage), var(--raised) 75%); }
.cl-main { grid-area: main; display: grid; gap: 6px; min-width: 0; }
.cl-main p { margin: 0; }
.cl-name { font-weight: 600; text-decoration: none; }
.cl-name:hover { text-decoration: underline; }
.cl-store { display: grid; gap: 2px; max-width: 340px; }
.cl-qty { grid-area: qty; display: flex; align-items: center; gap: 4px; }
.cl-qty .btn { width: 36px; height: 36px; padding: 0; font-size: 18px; }
.cl-qty output { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.cl-price { grid-area: price; text-align: end; min-width: 96px; display: grid; }
.cl-price strong { font-size: 18px; }
.cl-acts { grid-area: acts; display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.cart-sum { position: sticky; top: 16px; display: grid; gap: 10px; }
.cart-sum dl { margin: 0; display: grid; gap: 8px; }
.cart-sum dl > div { display: flex; justify-content: space-between; gap: 12px; }
.cart-sum dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; }
.cart-sum .grand { border-block-start: 1px solid var(--rule); padding-block-start: 10px; font-size: 18px; font-weight: 700; }
.cart-sum p { margin: 0; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } .cart-sum { position: static; } }
@media (max-width: 600px) {
  .cart-line { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "img main" "qty price" "acts acts"; }
  .cart-line .thumb { width: 72px; height: 72px; }
  .cl-qty .btn { width: 44px; height: 44px; }
  .cl-acts { justify-content: space-between; }
  .cl-acts .btn { height: 44px; }
}

/* ---------- first visit ---------- */
.onboard { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--ground) 82%, transparent); backdrop-filter: blur(6px); }
.ob-card { width: min(420px, 100%); display: grid; gap: 14px; justify-items: center; text-align: center; padding: 28px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 20px 60px rgb(0 0 0 / .18); }
.ob-card > svg { width: 44px; height: 44px; }
.ob-card h2 { margin: 0; font-size: 22px; }
.ob-card p { margin: 0; color: var(--muted); }
.ob-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.ob-btns.col { grid-template-columns: 1fr; }
.ob-btns .btn { height: auto; min-height: 52px; padding: 8px 14px; flex-direction: column; gap: 0; font-size: 16px; }
.ob-btns .btn small { font-size: 12px; font-weight: 400; opacity: .8; }

/* ---------- detailed comparison ---------- */
.dc-open { margin-block: 12px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.dc { margin-block-start: 16px; display: grid; gap: 12px; }
.dc h3 { margin: 8px 0 0; font-size: 15px; }
.dc ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; }
.dc p { margin: 0; }
.dc-table td.best { font-weight: 700; color: var(--positive, #0a7a3d); }
.dc-table tr[data-kind="missing"] td, .dc-table tr[data-kind="nodata"] td { color: var(--muted); }
.dc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dc-verdict { font-size: 16px; font-weight: 600; padding: 12px 14px; border-radius: 10px; background: var(--raised); }
@media (max-width: 700px) { .dc-cols { grid-template-columns: 1fr; } }
/* Screen-reader-only text inside a sideways-scrolling table must stay inside it, or the whole page
   becomes wider than the phone screen. */
.cmp-wrap, .table-scroll { position: relative; }
@media (max-width: 700px) {
  .dc-table { table-layout: fixed; width: 100%; }
  .dc-table th, .dc-table td { padding: 8px 6px; overflow-wrap: anywhere; font-size: 13px; }
  .dc-table th:last-child, .dc-table td:last-child:not([colspan]) { display: none; }
}

/* ---------- demo mode ---------- */
.notice.demo-on { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-block-end: 12px; }
.demo-offer { margin-block-start: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); display: grid; gap: 8px; justify-items: start; max-width: 640px; }
.demo-offer h3 { margin: 0; font-size: 15px; }
.demo-offer p { margin: 0; }

/* ---------- stage 1: reduced motion, pause control, disabled quantity steps ---------- */
/* The card's lift on hover is movement: only when motion is allowed. Its border and shadow change stay. */
@media (min-width: 601px) and (prefers-reduced-motion: no-preference) {
  #res-body .pcard:hover { transform: translateY(-2px); }
}
/* (Selector as specific as the rule that starts the sway, so the pause is not overridden by it.) */
.hero3d.awake.paused:not(.manual) .o3-turn { animation-play-state: paused; }
.hero-pause { height: 32px; padding: 0 10px; font-size: 13px; color: var(--muted); }
.hero-pause svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 900px) { .hero-pause { height: 44px; } }
.btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

/* ---------- home (stage A): search + link tool, picks, calculator, coupons, stores, how it works ---------- */
.zh-hero { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 40px; align-items: center; padding-block: 8px 8px; }
.zh-kicker { display: inline-block; font-size: var(--fs-small); font-weight: 600; letter-spacing: .02em; color: var(--hue); background: var(--hue-soft); padding: 4px 10px; border-radius: 999px; margin-block-end: 16px; }
.zh-hero h1 { max-width: 12ch; }
.zh-hero .lead { margin-block: 18px 0; max-width: 40ch; color: var(--muted); }
.zh-tool { padding: 18px; display: grid; gap: 14px; }
.zh-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--raised); border-radius: 12px; }
.zh-tabs [role="tab"] { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; transition: background 160ms var(--ease), color 160ms var(--ease); }
.zh-tabs [role="tab"] svg { width: 18px; height: 18px; flex: none; }
.zh-tabs [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(16 24 40 / .08); }
.zh-tabs [role="tab"]:focus-visible { outline: 2px solid var(--hue); outline-offset: 2px; }
.zh-pane { display: grid; gap: 10px; }
.zh-pane[hidden] { display: none; }
.zh-pane .searchbar .field { height: 48px; font-size: 16px; }
.zh-pane .tries { margin-block-start: 2px; }
.zh-trust { list-style: none; margin: 0; padding: 12px 0 0; border-block-start: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px 18px; }
.zh-trust li { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--muted); }
.zh-trust svg { width: 16px; height: 16px; color: var(--positive); flex: none; }

.zh-result { margin-block-start: 6px; padding: 14px; border-radius: 12px; background: var(--raised); display: grid; gap: 10px; }
.zh-result-title { margin: 0; font-weight: 700; }
.zh-result p { margin: 0; }
.zh-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.zh-facts li { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-small); }
.zh-facts li span { color: var(--muted); }
.zh-facts strong { font-weight: 600; overflow-wrap: anywhere; text-align: end; }

.zh-sec { margin-block-start: 72px; }
.zh-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-block-end: 16px; }
.zh-head h2, .zh-sec > h2, .zh-calc h2, .zh-coupons h2 { font-size: var(--fs-title); letter-spacing: -0.01em; font-weight: 700; margin: 0; }
.zh-head p { margin: 4px 0 0; }

.zh-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.zh-picks .spread { grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto; gap: 4px 12px; padding: 12px; border: 1px solid var(--border); border-block-start: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease); }
.zh-picks .spread:hover { border-color: var(--control); box-shadow: var(--lift); }
.zh-picks .spread .thumb { width: 56px; height: 56px; border-radius: 10px; grid-row: span 2; }
.zh-picks .spread .pr { grid-row: auto; text-align: start; font-size: 18px; }
.zh-picks .spread .pr small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }

.zh-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.zh-split.solo { grid-template-columns: minmax(0, 760px); }
.zh-calc, .zh-coupons { padding: 22px; display: grid; gap: 12px; }
.zh-calc p, .zh-coupons p { margin: 0; }
.zh-calc fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.zh-calc legend { font-weight: 600; margin-block-end: 8px; padding: 0; }
.zh-amount { display: grid; gap: 6px; font-weight: 600; }
.zh-amount-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; }
.zh-amount-row .field { height: 44px; font-size: 16px; }
.zh-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.zh-rule { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 40px; gap: 8px; align-items: center; }
.zh-rule .field { height: 40px; }
.zh-rule-mid { font-size: var(--fs-small); color: var(--muted); white-space: nowrap; }
.zh-rm { width: 40px; height: 40px; padding: 0; font-size: 18px; }
.zh-addrow { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 8px; }
.zh-calc-out { border-radius: 12px; background: var(--raised); padding: 14px; display: grid; gap: 10px; min-height: 52px; }
.zh-best { display: grid; gap: 2px; }
.zh-best span { font-size: var(--fs-small); color: var(--muted); }
.zh-best strong { font-size: 17px; }
.zh-sum { margin: 0; display: grid; gap: 6px; }
.zh-sum > div { display: flex; justify-content: space-between; gap: 12px; }
.zh-sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.zh-sum .pos { color: var(--positive); font-weight: 600; }
.zh-sum .grand { border-block-start: 1px solid var(--rule); padding-block-start: 8px; font-weight: 700; font-size: 18px; }
.zh-next { font-size: var(--fs-small); }

.zh-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-small); color: var(--muted); }
.zh-empty { padding: 16px; border: 1px dashed var(--control); border-radius: 12px; display: grid; gap: 6px; }
.zh-cp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.zh-cp { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; background: var(--surface); }
.zh-cp.expired { background: var(--raised); border-style: dashed; } /* no opacity: the text keeps full contrast */
.zh-cp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.zh-cp-title { font-weight: 600; }
.zh-cp.reported { border-style: dashed; }
.zh-cp-facts { display: grid; gap: 4px; margin: 0; font-size: var(--fs-small); }
.zh-cp-facts > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; }
.zh-cp-facts dt { color: var(--muted); }
.zh-cp-facts dd { margin: 0; }
.zh-cp-expired { margin-top: 12px; }
.zh-cp-expired > summary { cursor: pointer; color: var(--muted); font-size: var(--fs-small); min-height: 44px; display: flex; align-items: center; }
.zh-cp-expired .zh-cp-list { margin-top: 8px; }
.zh-cp-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.zh-cp-acts code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.zh-cp-code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin: 8px 0; border: 1px dashed var(--rule); border-radius: var(--radius-control); background: var(--raised, var(--surface)); }
.zh-cp-code code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.25rem; font-weight: 700; letter-spacing: .08em; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }

.zh-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.zh-cat { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; text-align: start; cursor: pointer; transition: border-color 160ms var(--ease), background 160ms var(--ease); }
.zh-cat:hover { border-color: var(--control); background: var(--raised); }
.zh-arrow { width: 16px; height: 16px; flex: none; color: var(--muted); }
[dir="rtl"] .zh-arrow { transform: scaleX(-1); }

.zh-stores th[scope="row"] { font-weight: 600; white-space: nowrap; }
.zh-stores td { white-space: nowrap; }

.zh-how { padding: 24px; border-radius: 16px; background: var(--raised); }
.zh-how-list { margin: 16px 0 12px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: zh; }
.zh-how-list li { display: grid; gap: 6px; counter-increment: zh; }
.zh-how-list li::before { content: counter(zh); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); font-weight: 700; color: var(--hue); }
.zh-how-list span { color: var(--muted); }

@media (max-width: 900px) {
  .zh-hero { grid-template-columns: 1fr; gap: 20px; }
  .zh-split { grid-template-columns: 1fr; }
  .zh-how-list { grid-template-columns: 1fr; }
  .zh-sec { margin-block-start: 48px; }
}
@media (max-width: 600px) {
  .zh-tool { padding: 12px; }
  .zh-pane .searchbar { display: grid; grid-template-columns: 1fr; }
  .zh-pane .searchbar .btn { width: 100%; height: 48px; }
  .zh-rule { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; }
  .zh-rule-mid { grid-column: 1 / -1; order: -1; }
  .zh-rm { width: 44px; height: 44px; }
  .zh-addrow .btn { height: 44px; flex: 1; }
  .zh-calc, .zh-coupons { padding: 16px; }
  .zh-picks { grid-template-columns: 1fr; }
  .zh-cats { grid-template-columns: 1fr 1fr; }
  .zh-tabs [role="tab"] { min-height: 46px; }
  .zh-cp-acts .btn { min-height: 44px; }
}

/* ---------- stores page ---------- */
.st-sec { display: grid; gap: 12px; margin-block-start: 24px; }
.st-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.st-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--surface); display: grid; gap: 6px; align-content: start; min-width: 0; }
.st-card.not_connected { background: transparent; border-style: dashed; }
.st-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.st-top .small { flex-basis: 100%; }
.st-card code { font-size: 12px; overflow-wrap: anywhere; }
.st-perms { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: var(--fs-small); color: var(--muted); }
.st-perms > span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- admin panel (web/admin.js) ---------- */
.adm { margin-top: 16px; }
.adm-auth { max-width: 440px; margin-inline: auto; }
.adm-form { display: grid; gap: 12px; }
.adm-form h2 { margin: 0; }
.adm-wide { margin-block: 12px; }
.adm-field { display: grid; gap: 4px; align-content: start; min-width: 0; }
.adm-field > label { font-size: var(--fs-small); font-weight: 600; }
.adm-field .field, .adm-field textarea { width: 100%; box-sizing: border-box; }
.adm-field p { margin: 0; }
.adm-err { color: var(--negative); font-weight: 600; margin: 0; }
.adm-err[hidden] { display: none; }
.adm-qr { width: 200px; height: 200px; background: #fff; padding: 8px; border-radius: var(--radius-control); border: 1px solid var(--rule); }
.adm-qr svg { width: 100%; height: 100%; display: block; }
.adm-key { word-break: break-all; font-size: 1rem; letter-spacing: .05em; }
.adm-codes { columns: 2; gap: 24px; padding-inline-start: 24px; margin: 0; font-size: 1rem; }
.adm-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-top p { margin: 0; }
.adm-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--rule); margin-block: 12px 16px; scrollbar-width: thin; }
.adm-tabs button { flex: none; background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; min-height: 44px; font: inherit; color: var(--muted); cursor: pointer; }
.adm-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--primary); font-weight: 600; }
.adm-tabs button:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.adm-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 12px; }
.adm-toolbar .adm-field { flex: 1 1 160px; }
.adm-toolbar > .btn { flex: none; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.adm-fieldset { border: 1px solid var(--rule); border-radius: var(--radius-control); padding: 12px; margin: 0; display: grid; gap: 8px; }
.adm-fieldset legend { font-weight: 600; padding-inline: 4px; }
.adm-rule { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-rule .field { flex: 1 1 120px; width: auto; }
.adm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.adm-item { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--radius-control); background: var(--surface); }
.adm-item-main { flex: 1 1 260px; min-width: 0; }
.adm-item-main p { margin: 4px 0 0; overflow-wrap: anywhere; }
.adm-item-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.adm-item-acts .field { width: auto; }
.adm-empty { padding: 16px 0; }
.adm-sys { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.adm-sys .panel { min-width: 0; }
.adm-dialog { border: 1px solid var(--rule); border-radius: var(--radius-card); padding: 20px; max-width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--text); }
.adm-dialog::backdrop { background: rgb(0 0 0 / .45); }
.btn.danger { color: var(--negative); }
@media (max-width: 600px) {
  .adm-codes { columns: 1; }
  .adm-item-acts { width: 100%; }
  .adm-item-acts .btn { flex: 1 1 auto; }
}
.adm textarea.field, .adm-dialog textarea.field { height: auto; min-height: var(--control-height); padding: 8px 10px; resize: vertical; }

/* admin content screens (web/admin-content.js) */
.adm-note { padding: 10px 12px; border-inline-start: 3px solid var(--warning); background: var(--pill-warning-bg); color: var(--pill-warning-ink); border-radius: var(--radius-control); margin: 0 0 12px; }
.adm-legend { margin: 0 0 12px; }
.adm-h { font-size: var(--fs-section); margin: 16px 0 8px; }
.adm-checks { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.adm-table td { vertical-align: top; }
.adm-table td .adm-item-acts { justify-content: flex-start; }
.adm-table code { overflow-wrap: anywhere; }
.adm-history ol { max-height: 60vh; overflow: auto; }
@media (max-width: 760px) {
  .adm-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .adm-table, .adm-table tbody, .adm-table tr, .adm-table td { display: block; width: 100%; box-sizing: border-box; }
  .adm-table tr { border: 1px solid var(--rule); border-radius: var(--radius-control); margin-bottom: 10px; padding: 6px 10px; background: var(--surface); }
  .adm-table td { border: 0; padding: 6px 0; text-align: start !important; }
  .adm-table td::before { content: attr(data-label); display: block; font-size: var(--fs-small); color: var(--muted); font-weight: 600; }
  .adm-table td .btn { flex: 1 1 auto; }
}
.zh-cp-facts dd { white-space: pre-line; }

/* Short "Affiliate link" label next to a store button (links to the affiliate disclosure). */
.aff-mark { font-size: var(--fs-small); color: var(--muted); text-underline-offset: 3px; align-self: center; white-space: nowrap; }
.aff-mark:hover { color: var(--text); }

/* Compare by link */
.lk-lead { max-width: 68ch; margin-block: 4px 16px; }
.lk-add form { display: grid; gap: 12px; }
.lk-field { display: grid; gap: 4px; min-width: 0; }
.lk-field > span { font-size: var(--fs-small); font-weight: 500; }
.lk-err { color: var(--negative); }
.lk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lk-list { margin-block-start: 20px; display: grid; gap: 12px; }
.lk-best { padding: 14px 16px; border-radius: var(--radius-card); background: var(--pill-positive-bg); color: var(--pill-positive-ink); }
.lk-best.none { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
.lk-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lk-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr) auto; gap: 12px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.lk-row.best { border-color: var(--positive); box-shadow: inset 0 0 0 1px var(--positive); }
.lk-main { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.lk-rank { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); font-size: var(--fs-small); }
.lk-name { overflow-wrap: anywhere; }
.lk-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }
.lk-nums dt { font-size: var(--fs-small); color: var(--muted); }
.lk-nums dd { margin: 0; }
.lk-nums .grand dd { font-weight: 600; }
.lk-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.link-cta { margin-block: 16px 8px; padding: 14px 16px; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 6px; }
@media (max-width: 900px) {
  .lk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lk-row { grid-template-columns: 1fr; }
  .lk-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lk-acts .btn { flex: 1; height: 44px; }
}

/* AliExpress promo code / deal for a pasted link */
.ae-box { margin-block-start: 12px; padding-block-start: 12px; border-block-start: 1px solid var(--border); display: grid; gap: 8px; }
.ae-box .pill { justify-self: start; }
.ae-terms { margin: 0; padding-inline-start: 20px; display: grid; gap: 2px; }
