/* 拍探 PAITAN: French auctions for buyers in Asia (prototype).
   Light by default, dark on request. Phone first: a two-column feed and a tab bar, the way Dewu,
   Xiaohongshu or SNKRDUNK read; four to five columns on a desk. Vermilion for what earns money (in
   China red is the colour that rises), gold for the VIP grade, no green. System CJK faces only:
   Google Fonts does not load in mainland China. */
:root {
  --bg: #f5f4f0; --surface: #ffffff; --surface-2: #f8f7f4; --ink: #151515; --ink-2: #4a4a4a; --muted: #8a8a8a;
  --line: #ebe9e4; --accent: #e3402c; --accent-ink: #ffffff; --accent-soft: #fdece8; --gold: #b8892b; --gold-soft: #f8efdc;
  --blue: #3b6fd8; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 18px rgba(0,0,0,.05); --radius: 14px; --header: rgba(245,244,240,.86);
  --sans-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
  --sans-hk: "PingFang HK", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", "Source Han Sans TC", system-ui, sans-serif;
  --sans-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", system-ui, sans-serif;
  --sans-latin: -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --num: "DIN Alternate", "Bahnschrift", "SF Pro Display", "Roboto", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
  --cols: 2;
}
:root[data-theme="dark"] {
  --bg: #0e0e10; --surface: #18181b; --surface-2: #1f1f23; --ink: #f3f3f3; --ink-2: #c9c9cc; --muted: #8c8c93;
  --line: #2a2a2f; --accent: #ff5a46; --accent-ink: #ffffff; --accent-soft: rgba(255,90,70,.14); --gold: #e3b65a; --gold-soft: rgba(227,182,90,.14);
  --blue: #6f9bff; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); --header: rgba(14,14,16,.82);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans-cn); -webkit-font-smoothing: antialiased; overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
:lang(zh-HK) body, body:lang(zh-HK) { font-family: var(--sans-hk); }
:lang(ja) body, body:lang(ja) { font-family: var(--sans-ja); }
:lang(en) body, body:lang(en), :lang(fr) body, body:lang(fr) { font-family: var(--sans-latin); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.wrap { max-width: 1480px; margin: 0 auto; padding: 0 clamp(12px, 2.6vw, 32px); }
body.locked { overflow: hidden; }

/* header */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: var(--header); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 56px; }
.logo { display: flex; align-items: baseline; gap: 8px; }
.logo b { font-size: 22px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.logo b i { font-style: normal; color: var(--accent); }
.logo small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.logo { min-width: 0; }
.top nav { display: none; gap: 4px; margin-left: 18px; }
.top nav a { padding: 6px 12px; border-radius: 999px; color: var(--ink-2); font-size: 14px; }
.top nav a.on { background: var(--ink); color: var(--bg); }
.top .grow { flex: 1; }
.search { display: none; align-items: center; gap: 8px; height: 38px; padding: 0 14px; width: clamp(180px, 22vw, 320px); border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: 14px; white-space: nowrap; }
.pill.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.pill.gold { background: linear-gradient(135deg, #e9c46a, #b8892b); color: #2a1d05; border: 0; font-weight: 700; }
.tier { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.tier.pro { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tier.vip { background: linear-gradient(135deg, #f3d98b, #c99a35); color: #2a1d05; border: 0; }

/* hero for a visitor */
.hero { position: relative; overflow: hidden; margin: 14px 0 6px; padding: 26px 20px 22px; border-radius: 22px; color: #fff;
  background: radial-gradient(circle at 85% 10%, rgba(255,120,90,.55), transparent 45%), radial-gradient(circle at 10% 100%, rgba(227,182,90,.35), transparent 50%),
    linear-gradient(135deg, #1b1b1f, #2b1a17 70%, #3a1d16); }
.hero .kicker { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 12px; letter-spacing: .04em; }
.hero h1 { margin: 12px 0 8px; font-size: 27px; line-height: 1.28; font-weight: 800; white-space: pre-line; letter-spacing: .01em; }
.hero p { margin: 0 0 16px; max-width: 46ch; color: rgba(255,255,255,.78); font-size: 14px; }
.hero .stats { display: flex; gap: 22px; margin: 4px 0 18px; }
.hero .stats b { display: block; font: 700 26px/1 var(--num); }
.hero .stats span { font-size: 12px; color: rgba(255,255,255,.7); }
.hero .cta { display: flex; gap: 10px; }
.hero .pill { height: 42px; padding: 0 20px; font-size: 15px; }
.hero .pill:not(.primary) { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.hero .mosaic { display: none; }

/* section heads and chips */
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 0 10px; }
.sec h2 { margin: 0; font-size: 19px; font-weight: 800; }
.sec h2 small { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 14px; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.chip.asia { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent); }
.chip.asia.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.sorts { display: flex; gap: 16px; margin: 2px 0 12px; font-size: 14px; color: var(--muted); }
.sorts button { padding: 0; border: 0; background: none; color: inherit; }
.sorts button.on { color: var(--ink); font-weight: 700; }

/* the feed: two columns on a phone */
.feed { position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 10px; transition: opacity .15s; }
.feed.busy { opacity: .55; }
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
  cursor: pointer; transition: transform .15s ease; }
.card:active { transform: scale(.985); }
.card .ph { position: relative; aspect-ratio: 4 / 5; background: #f0eee9; overflow: hidden; }
:root[data-theme="dark"] .card .ph { background: #222226; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
/* below Pro: the server's blurred copy, softened a little more (see `blur` in site.js) */
img.blur { filter: blur(18px) saturate(.85); clip-path: inset(0); -webkit-user-drag: none; user-select: none; }
.card .ph img.blur { transform: scale(1.15); }
.sale .thumbs img.blur { filter: blur(5px) saturate(.85); }
img.failed { visibility: hidden; }
.card .ph:has(img.failed)::after { content: "◇"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 28px; }
.card .ph .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 28px; }
.badge { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 7px; font-size: 12px; font-weight: 700; color: #fff; background: var(--accent);
  box-shadow: 0 2px 8px rgba(227,64,44,.35); }
.badge.watch { background: rgba(20,20,20,.72); box-shadow: none; }
.heart { position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.88); color: #222; font-size: 16px; }
.heart.on { color: var(--accent); }
/* the lot's page at the auction site: top right of a card, of a lot's window */
.card .src { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.88); color: #222; font-size: 15px; font-weight: 700; text-decoration: none; }
.card .src:hover { background: #fff; color: var(--accent); }
.sheet .bar-r { display: flex; align-items: center; gap: 8px; }
.src-pill { text-decoration: none; height: 38px; }
/* top right of the header: the theme and the language */
.prefs { display: flex; gap: 6px; }
.prefs .icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit; font-size: 17px; line-height: 1; cursor: pointer; }
.prefs .icon.lang { font-size: 15px; font-weight: 700; }
.prefs .icon:active { transform: scale(.95); }
/* the privacy page */
.legal { max-width: 760px; }
.legal h3 { margin: 22px 0 6px; font-size: 16px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; font-size: 14px; }
.legal ul { padding-left: 20px; margin: 4px 0; }
.legal small { color: var(--muted); }
.consent { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.consent a { color: inherit; text-decoration: underline; }
.foot { margin: 36px 0 12px; text-align: center; font-size: 12px; color: var(--muted); }
.foot a { color: inherit; text-decoration: underline; }
.timer { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 7px; font-size: 12px; color: #fff; background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px); }
.timer.hot { background: rgba(227,64,44,.88); }
.card .bd { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 9px 10px 11px; }
.card .bd .tags { min-height: 18px; }  /* a card without a tag keeps its last line level with the others' */
.card .bd .where { margin-top: auto; }
.card .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.4; min-height: 2.8em; }
.card .est { font-size: 12px; color: var(--muted); }
.card .est b { color: var(--ink-2); font-weight: 600; }
.card .row { display: grid; gap: 1px; }
.card .row small { font-size: 11px; color: var(--muted); }
.winline { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.money { font: 700 19px/1.1 var(--num); color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.money small { font: 500 11px var(--sans-cn); color: var(--muted); margin-right: 3px; }
.odds { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.odds b { font-family: var(--num); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { padding: 1px 6px; border-radius: 5px; font-size: 11px; color: var(--accent); background: var(--accent-soft); }
.tag.gold { color: var(--gold); background: var(--gold-soft); }
.tag.grey { color: var(--muted); background: var(--surface-2); }
.where { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lock { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--gold); font-weight: 600; white-space: nowrap; }
.lock .blur { filter: blur(5px); color: var(--ink-2); font: 700 15px var(--num); user-select: none; }
.bar { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #ff9a7a, var(--accent)); }

/* skeleton cards while the first answer comes */
.skel .card { cursor: default; }
.skel .ph, .skel .ln { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%); background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite; }
.skel .ln { height: 12px; border-radius: 6px; }
.skel .ln.short { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* walls: sign up, upgrade */
.wall { position: relative; margin-top: -170px; padding: 140px 18px 26px; text-align: center;
  background: linear-gradient(to bottom, transparent, var(--bg) 120px); }
.wall h3 { margin: 0 0 6px; font-size: 19px; }
.wall p { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.wall .pill { height: 44px; padding: 0 26px; font-size: 15px; }
.wall.upgrade h3 { color: var(--gold); }

/* a visitor sees the first screen, then this */
.gate { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 110px 14px calc(16px + env(safe-area-inset-bottom)); text-align: center;
  background: linear-gradient(to bottom, transparent, var(--bg) 96px); pointer-events: none; }
.gate-in { pointer-events: auto; max-width: 460px; margin: 0 auto; padding: 18px 18px 20px; border-radius: 20px; background: var(--surface); box-shadow: 0 10px 40px rgba(0,0,0,.18);
  border: 1px solid var(--line); }
.gate-in h3 { margin: 0 0 4px; font-size: 18px; }
.gate-in p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.gate-in .pill { height: 44px; padding: 0 22px; font-size: 15px; }

/* calendar, watchlist, me */
.day { margin: 18px 0 8px; font-weight: 800; font-size: 16px; }
.day small { margin-left: 8px; color: var(--muted); font-weight: 500; font-size: 13px; }
.sale { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 4px 12px; padding: 12px 14px; margin-bottom: 8px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.sale b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.sale .meta { grid-column: 1; color: var(--muted); font-size: 12.5px; min-width: 0; }
.sale .meta span { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.sale .meta span:not(:last-child)::after { content: "·"; margin: 0 6px; }  /* a wrapped part starts its line clean */
.sale .right { grid-row: 1 / span 2; grid-column: 2; text-align: right; align-self: center; }
.sale .thumbs { grid-column: 1 / -1; display: flex; gap: 6px; margin-top: 6px; }
.sale .thumbs img, .sale .thumbs .noimg { width: 54px; height: 54px; border-radius: 9px; object-fit: cover; background: var(--surface-2);
  outline: 1px solid var(--line); outline-offset: -1px; }
.sale .thumbs .noimg { display: grid; place-items: center; color: var(--muted); }
.sale { content-visibility: auto; contain-intrinsic-size: auto 150px; }
.more { margin: 18px 0; text-align: center; }
.empty .pill { margin-top: 14px; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); }
.panel { padding: 16px; margin-bottom: 12px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.member { position: relative; overflow: hidden; padding: 20px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #26262b, #3b3b44); }
.member.vip { background: linear-gradient(135deg, #2b2112, #6b4f1d 55%, #c99a35); }
.member.pro { background: linear-gradient(135deg, #1d1d22, #43181a); }
.member small { color: rgba(255,255,255,.7); }
.member b { display: block; margin: 4px 0 12px; font-size: 24px; }
.benefits { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.benefits th, .benefits td { padding: 9px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.benefits th:first-child, .benefits td:first-child { text-align: left; color: var(--ink-2); }
.benefits td.yes { color: var(--accent); font-weight: 700; }
.benefits td.no { color: var(--muted); }
.benefits th.vip { color: var(--gold); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-size: 13px; }
.seg button.on { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }

/* the tab bar */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(6, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--header); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabs a { display: grid; justify-items: center; gap: 2px; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.tabs a i { font-style: normal; font-size: 20px; line-height: 1.1; }
.tabs a.on { color: var(--accent); font-weight: 700; }
main { display: flow-root; padding-bottom: 90px; }  /* its first block's margin stays inside: no jump when the page replaces the skeleton */

/* a lot: a sheet on a phone, a two-column window on a desk */
.sheet { position: fixed; inset: 0; z-index: 40; overflow-y: auto; background: var(--bg); animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(24px); opacity: .5; } }
.sheet .bar-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px;
  background: var(--header); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.round { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 18px; }
.gal { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: #f0eee9; scrollbar-width: none; }
:root[data-theme="dark"] .gal { background: #1c1c20; }
.gal::-webkit-scrollbar { display: none; }
.gal img { flex: none; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; scroll-snap-align: center; background: #fff; }
:root[data-theme="dark"] .gal img { background: #111; }
.dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.25); }
.dots i.on { background: var(--accent); }
.lot { display: grid; gap: 12px; padding: 14px; }
.lot > * { min-width: 0; }  /* a row of comparables must scroll, not widen the sheet */
.lot h1 { margin: 0; font-size: 21px; line-height: 1.35; }
.lot .desc { margin: 10px 0 0; font-size: 15px; line-height: 1.7; white-space: normal; }
.lot .specs { width: 100%; margin: 12px 0 0; border-collapse: collapse; table-layout: fixed; font-size: 13px; line-height: 1.45; }
.lot .specs th, .lot .specs td { padding: 7px 8px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.lot .specs tr:last-child th, .lot .specs tr:last-child td { border-bottom: 1px solid var(--line); }
.lot .specs th { width: 18%; color: var(--muted); font-weight: 500; }
.lot .specs td { width: 32%; }
@media (max-width: 480px) {
  .lot .specs th, .lot .specs td { padding: 7px 4px; }
  .lot .specs th { width: 24%; white-space: nowrap; }
  .lot .specs td { width: 26%; }
}
.lot .orig { font-size: 13px; color: var(--muted); }
.lot .orig button { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--blue); font-size: 13px; }
.ai { padding: 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); }
.ai .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ai .head b { font-size: 16px; }
.ai .verdict { padding: 4px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; }
.ai .verdict.watch { background: var(--ink); color: var(--bg); }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.fig > span { display: block; font-size: 12px; color: var(--muted); }
.fig b { display: block; margin-top: 3px; font: 700 23px/1.1 var(--num); }
.fig b.acc { color: var(--accent); }
.fig small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.ladder svg { display: block; width: 100%; height: auto; }
.ladder text { font: 12px var(--num); fill: var(--muted); }
.ladder text.lab { font: 700 12.5px var(--sans-cn); }
.ladder .lab { fill: var(--ink-2); }
.costs { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.costs td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.costs td:last-child { text-align: right; font-family: var(--num); }
.costs tr.sum td { border-bottom: 1px solid var(--line); font-weight: 700; }
.costs tr.gain td { color: var(--accent); font-weight: 800; font-size: 15px; border: 0; }
.locked-box { position: relative; overflow: hidden; border-radius: 12px; }
.locked-box > .inner { filter: blur(6px); pointer-events: none; user-select: none; }
.locked-box > .cover { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center;
  background: color-mix(in srgb, var(--surface) 55%, transparent); }
.locked-box > .cover b { color: var(--gold); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.note { font-size: 12.5px; color: var(--muted); }
.actions { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--header);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.actions .pill { flex: 1; justify-content: center; height: 44px; }
h3.h { margin: 6px 0 8px; font-size: 16px; }

/* comparables: what such lots fetched lately */
.comps { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.comps::-webkit-scrollbar { display: none; }
.comp { flex: none; width: 140px; display: grid; gap: 3px; align-content: start; font-size: 12px; }
.comp .cph { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.comp .cph img { width: 100%; height: 100%; object-fit: cover; }
.comp b { font: 700 16px/1.2 var(--num); color: var(--ink); }
.comp small { color: var(--muted); font-size: 11px; }
.comp .ct { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-2); font-size: 12px; line-height: 1.35; }
.comps-sum { margin: -2px 0 10px; font-size: 13px; color: var(--ink-2); }
.comps-sum b { color: var(--ink); }

/* the sign-up window */
.scrim { position: fixed; inset: 0; z-index: 50; display: grid; place-items: end center; background: rgba(0,0,0,.45); }
.modal { width: min(440px, 100%); padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--surface); animation: up .2s ease-out; }
.modal h2 { margin: 0 0 4px; font-size: 21px; }
.modal p { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.field { display: block; width: 100%; height: 46px; padding: 0 14px; margin-bottom: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); font: inherit; }
.field:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.modal .pill { width: 100%; justify-content: center; height: 46px; font-size: 15px; }
.linkish { display: block; margin: 12px auto 0; padding: 6px; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.msg { margin: 0 0 10px; font-size: 13px; }
.msg.bad { color: var(--accent); }
.msg.ok { color: var(--ink-2); }

/* the owner's preview panel */
.dev { position: fixed; right: 12px; bottom: 78px; z-index: 60; font: 12px var(--sans-latin); }
.dev > button { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.dev .box { position: absolute; right: 0; bottom: 38px; display: grid; gap: 8px; width: 230px; padding: 12px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); }
.dev label { display: grid; gap: 3px; color: var(--muted); }
.dev select { height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); }

@media (max-width: 430px) {  /* a visitor's two buttons need the tagline's place */
  .top:has(#who .pill + .pill) .logo small { display: none; }
  .top .wrap { gap: 10px; }
  .top .pill { padding: 0 12px; }
}
@media (min-width: 600px) { :root { --cols: 3; } }
@media (min-width: 760px) {
  html { scrollbar-gutter: stable; }  /* a page locked under the sign-up wall keeps its width */
  .top nav { display: flex; }
  .tabs { display: none; }
  main { padding-bottom: 40px; }
  .feed { gap: 16px; }
  .hero { padding: 40px 40px 34px; }
  .hero h1 { font-size: 38px; }
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 30px; align-items: center; }
  .hero .mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 150px 150px auto; gap: 10px; }
  .hero .mosaic figure { position: relative; margin: 0; min-height: 0; }
  .hero .mosaic figure:first-child { grid-row: span 2; }
  .hero .mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
  .hero .mosaic figcaption { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.62); color: #fff; font: 600 12px/1.6 var(--num); }
  .hero .hero-room { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.85); }
  .hero .hero-next { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
  .hero .hero-next:hover { background: rgba(255,255,255,.25); }
  .hero.welcome { grid-template-columns: minmax(0, 1fr); padding: 30px 40px 26px; }
  .hero.welcome h1 { font-size: 30px; }
  .sheet { background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 28px; }
  .sheet > .win { width: min(1180px, 100%); max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px); overflow: auto; border-radius: 22px; background: var(--bg); }
  .scrim { place-items: center; }
  .modal { border-radius: 22px; }
  .dev { bottom: 16px; }
}
@media (min-width: 900px) { :root { --cols: 4; } }
@media (min-width: 1000px) {
  .search { display: block; } .msearch { display: none; }
  .sheet .grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .sheet .gal { position: sticky; top: 58px; align-self: start; }
}
@media (max-width: 1099px) { .top .logo small { display: none; } }
@media (min-width: 1100px) {
  .sales { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin-bottom: 8px; }
  .sales .sale { margin: 0; }
}
@media (min-width: 1200px) { :root { --cols: 5; } }
@media (min-width: 1700px) { :root { --cols: 6; } .card .t { font-size: 15px; } }

@media (prefers-reduced-motion: reduce) { .sheet, .modal, .skel .ph, .skel .ln { animation: none; } .card, .feed { transition: none; } }

/* ---------- the welcome page: the big sales, each category's showcase ---------- */
.hero.welcome h1 { white-space: normal; }
.bigsales { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.bigsale { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; }
.bigsale .thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.bigsale .thumbs img, .bigsale .thumbs .noimg { width: 100%; aspect-ratio: 1; border-radius: 10px; object-fit: cover; background: var(--surface-2); outline: 1px solid var(--line); outline-offset: -1px; }
.bigsale .thumbs .noimg { display: grid; place-items: center; color: var(--muted); }
.bigsale b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.bigsale .meta { color: var(--muted); font-size: 12.5px; }
.bigsale .meta span:not(:last-child)::after { content: "·"; margin: 0 6px; }
.bigsale .row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 6px; }
.bigsale .money { font-size: 16px; }
@media (min-width: 760px) { .bigsales { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .bigsales { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.note.rule { margin: -4px 0 6px; color: var(--muted); font-size: 12.5px; }
.shelf { margin: 14px 0 6px; }
.shelf-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.shelf-h h3 { margin: 0; font-size: 16px; font-weight: 800; }
.shelf-h h3 small { margin-left: 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.more-link { color: var(--accent); font-size: 13.5px; font-weight: 600; white-space: nowrap; text-decoration: none; }

/* ---------- the lots: a Pro reader's filters ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin: 0 0 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.filters.off { opacity: .75; }
.filters.off select, .filters.off input { cursor: not-allowed; }
.fsel { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.fsel select { height: 32px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; font-size: 13px; }
.fbox { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.fbox input { accent-color: var(--accent); width: 16px; height: 16px; }
.pill.small { height: 30px; padding: 0 12px; font-size: 12.5px; text-decoration: none; }
sup.count { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 10.5px/1 var(--num); vertical-align: 2px; }
.tabs a { position: relative; }
.tabs sup.count { position: absolute; top: -2px; left: 56%; margin: 0; }

/* ---------- motion: light and quick, none for a reader who asks for less ---------- */
.wrap.enter { animation: enter .26s cubic-bezier(.2,.7,.2,1); }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
body.loading::before { content: ""; position: fixed; top: 0; left: 0; z-index: 60; height: 2px; width: 100%; background: var(--accent);
  transform-origin: left; animation: load 1.2s cubic-bezier(.2,.7,.2,1) infinite; }
@keyframes load { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(.85); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.pill, .chip, .seg button, .sorts button, .top nav a, .tabs a, .heart, .more-link, .bigsale {
  transition: transform .12s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease; }
.pill:active, .chip:active, .seg button:active, .top nav a:active, .tabs a:active, .heart:active, .bigsale:active { transform: scale(.95); }
.sorts button:active { transform: scale(.92); }
@media (hover: hover) {
  .card:hover, .bigsale:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 14px 32px rgba(0,0,0,.10); }
  .card { transition: transform .2s ease, box-shadow .2s ease; }
  .pill:hover { filter: brightness(1.05); }
  .chip:not(.on):hover { border-color: var(--ink-2); }
}
.card .ph img, .gal img, .sale .thumbs img, .bigsale .thumbs img, .hero .mosaic img { opacity: 0; transition: opacity .35s ease, filter .35s ease; }
.card .ph img.in, .gal img.in, .sale .thumbs img.in, .bigsale .thumbs img.in, .hero .mosaic img.in { opacity: 1; }
.heart.pop { animation: pop .38s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .wrap.enter, .heart.pop, body.loading::before { animation: none; }
  .pill, .chip, .seg button, .sorts button, .top nav a, .tabs a, .heart, .bigsale, .card { transition: none; }
  .card:hover, .bigsale:hover { transform: none; }
  .card .ph img, .gal img, .sale .thumbs img, .bigsale .thumbs img, .hero .mosaic img { transition: none; }
}
.chip[data-unsale] { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* ---------- a row of lots that slides: five on a desk, two and a peek on a phone ---------- */
.rail { position: relative; --row: 2.15; --gap: 10px; }
.rail .track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--row) - 1) * var(--gap)) / var(--row)); gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding: 6px 2px 12px; margin: -6px -2px 0; }
.rail .track::-webkit-scrollbar { display: none; }
.rail .card { scroll-snap-align: start; }
.rail-btn { position: absolute; top: calc(50% - 40px); z-index: 3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: 0 4px 16px rgba(0,0,0,.16); font-size: 26px; line-height: 1; padding: 0 0 3px; }
.rail-btn.next { right: -12px; } .rail-btn.prev { left: -12px; }
.rail-btn:hover { color: var(--accent); }
@media (max-width: 599px) { .rail-btn { width: 34px; height: 34px; font-size: 21px; } .rail-btn.next { right: -6px; } .rail-btn.prev { left: -6px; } }
@media (min-width: 600px) { .rail { --row: 3; --gap: 14px; } }
@media (min-width: 900px) { .rail { --row: 4; --gap: 16px; } }
@media (min-width: 1100px) { .rail { --row: 5; } }
@media (hover: none) { .rail-btn.prev { display: none; } }  /* a finger swipes back */

/* ---------- the lots' filters: on the page on a desk, in the panel on a phone ---------- */
.fbasic { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 26px; flex: 1 1 560px; min-width: 0; }
.factions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fgroup { display: grid; gap: 6px; min-width: 0; }
.fgroup.boxes { display: flex; gap: 14px; padding-bottom: 4px; }
.flabel { font-size: 12px; color: var(--muted); white-space: nowrap; }
.flabel b { margin-left: 4px; color: var(--ink); font: 700 13px var(--num); }
.fgroup .seg button { height: 28px; padding: 0 11px; font-size: 12.5px; }
.dual { position: relative; width: 240px; height: 24px; }
.dual::before, .dual::after { content: ""; position: absolute; top: 10px; height: 4px; border-radius: 4px; }
.dual::before { left: 0; right: 0; background: var(--line); }
.dual::after { left: calc(var(--lo) * 100%); right: calc((1 - var(--hi)) * 100%); background: var(--accent); }
.dual input, .winr input { -webkit-appearance: none; appearance: none; margin: 0; background: none; height: 24px; }
.dual input { position: absolute; inset: 0; width: 100%; pointer-events: none; z-index: 1; }
.dual input::-webkit-slider-runnable-track, .winr input::-webkit-slider-runnable-track { height: 24px; background: none; }
.dual input::-moz-range-track { background: none; }
.dual input::-webkit-slider-thumb, .winr input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent); box-shadow: 0 1px 5px rgba(0,0,0,.22); cursor: grab; }
.dual input::-moz-range-thumb, .winr input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); cursor: grab; }
.winr input { width: 170px; }
.winr input::-webkit-slider-runnable-track { background: linear-gradient(var(--line), var(--line)) center / 100% 4px no-repeat; }
.winr input::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line); }
.winr input::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
.more-f sup.count { margin-left: 2px; }
.chip small { margin-left: 3px; opacity: .6; font: 500 12px var(--num); }
.chips.subs { padding-top: 0; }
.chips.picked { padding: 0 0 12px; flex-wrap: wrap; overflow: visible; }
.chips.picked .chip { height: 30px; padding: 0 12px; font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips.wrapped { flex-wrap: wrap; overflow: visible; padding: 0; }
.msearch { margin: 0 0 10px; height: 42px; border-radius: 999px; }
@media (max-width: 759px) {
  .fbasic { display: none; }  /* a phone: the panel holds them */
  .filters { padding: 8px; border: 0; background: none; margin-bottom: 6px; }
  .factions { width: 100%; } .factions .pill { flex: 1; justify-content: center; height: 40px; }
  .factions .chip { flex: none; }
}

/* the panel from the left: a room's finer filters (a phone: every filter) */
.drawer-scrim { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.42); animation: fade .2s ease-out; }
.drawer { position: absolute; left: 0; top: 0; bottom: 0; width: min(410px, 92vw); display: flex; flex-direction: column; background: var(--bg);
  box-shadow: 12px 0 40px rgba(0,0,0,.25); animation: slidein .26s cubic-bezier(.2,.7,.2,1); }
@keyframes slidein { from { transform: translateX(-100%); } }
@keyframes fade { from { opacity: 0; } }
.dr-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid var(--line); }
.dr-h b { font-size: 17px; }
.dr-b { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 18px; }
.dr-f { display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.dr-f .pill { flex: 1; justify-content: center; height: 46px; font-size: 15px; }
.dbasic { display: grid; gap: 16px; padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.dbasic .dual, .dbasic .winr input { width: 100%; }
.dbasic .fgroup.boxes { padding: 0; }
@media (min-width: 760px) { .dbasic { display: none; } }
.fk { padding: 12px 0; border-bottom: 1px solid var(--line); }
.fk-h { margin-bottom: 10px; font-weight: 700; font-size: 15px; }
.fk summary { display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; font-weight: 700; font-size: 15px; padding: 2px 0; }
.fk summary::-webkit-details-marker { display: none; }
.fk summary::after { content: "+"; margin-left: auto; color: var(--muted); font: 400 20px/1 var(--sans-latin); }
.fk[open] summary::after { content: "−"; }
.fvals { display: grid; gap: 1px; margin-top: 8px; }
.fvals.clip .fv.extra { display: none; }
.fv { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 9px; font-size: 14px; cursor: pointer; }
.fv span { overflow-wrap: anywhere; }
.fv:hover { background: var(--surface-2); }
.fv input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.fv small { color: var(--muted); font: 500 12px var(--num); }
.fv.none { opacity: .5; }
.fsearch { height: 38px; margin: 10px 0 0; font-size: 14px; }
.fk .linkish { margin: 6px 0 0; padding: 4px 6px; }

/* alerts */
.sec .pill.small { flex: none; }
.shelf.alert { padding: 14px 14px 4px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.shelf.alert .note { margin: -4px 0 10px; }
.alert-act { display: flex; align-items: center; gap: 14px; }
button.more-link { padding: 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--accent); cursor: pointer; }
.alert-act .linkish { margin: 0; padding: 0; color: var(--muted); }
.empty.small { padding: 20px; }
.toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 70; transform: translateX(-50%); max-width: calc(100vw - 32px);
  padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 14px; box-shadow: var(--shadow); animation: fade .2s ease-out; }
@media (min-width: 760px) { .toast { bottom: 28px; } }

/* a phone: the header's and the welcome page's sizes */
@media (max-width: 599px) {
  .prefs .icon { width: 34px; height: 34px; }
  .hero { padding: 22px 16px 18px; border-radius: 18px; }
  .hero h1 { font-size: 24px; }
  .hero .stats { gap: 16px; flex-wrap: wrap; }
  .hero .stats b { font-size: 22px; }
  .hero .cta { flex-wrap: wrap; }
  .shelf-h { flex-wrap: wrap; }
  .shelf-h h3 small { display: block; margin: 2px 0 0; }
  .sec { flex-wrap: wrap; gap: 8px; }
  .card .bd { padding: 8px 9px 10px; gap: 5px; }
  .money { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-scrim, .toast { animation: none; } }
/* a phone: the big sales slide sideways, the categories' rows come sooner */
@media (max-width: 759px) {
  .bigsales { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain; scrollbar-width: none; padding: 2px 2px 8px; margin: 0 -2px; }
  .bigsales::-webkit-scrollbar { display: none; }
  .bigsale { scroll-snap-align: start; }
}
/* a desk: the rows' photos square, a row of five fits the screen with its words */
@media (min-width: 900px) { .rail .card .ph { aspect-ratio: 1; } }
.card .est b.up { color: var(--accent); } .card .est b.down { color: var(--muted); }

/* ---------- the heart's count, the lot's window, the zoom, the calendar, back to the top ---------- */
.heart .favn { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent);
  color: #fff; font: 700 11px/18px var(--num); text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.heart-top { position: relative; color: var(--ink); font-size: 18px; }
.heart-top.on { color: var(--accent); }
.heart-top .favn { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent);
  color: #fff; font: 700 11px/18px var(--num); }
.sheet .galbox { position: relative; }
.sheet .galbox .dots { bottom: 10px; }
.sheet .gal img { cursor: zoom-in; }
.lot { align-content: start; }
.lot .tags { align-self: start; }
.lot .specs td.none { color: var(--muted); }
/* a phone: the photo, the lot's words and numbers, then its costs and its sale */
@media (max-width: 999px) {
  .sheet .grid { display: flex; flex-direction: column; }
  .sheet .side { display: contents; }
  .sheet .galbox { order: 0; } .sheet .lot { order: 1; }
  .sheet .side > section { order: 2; margin: 0 14px 14px; }
}
/* a desk: the costs and the sale under the photo, the lot's words beside them */
@media (min-width: 1000px) {
  .sheet .grid { align-items: start; }
  .sheet .side .gal { position: relative; top: auto; }
  .sheet .side > section { margin: 16px 16px 0; }
  .sheet .side { padding: 0 0 20px 0; }
}
.zoom { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(8,8,10,0); transition: background .26s ease; }
.zoom.on { background: rgba(8,8,10,.9); }
.zoom img { width: min(94vw, 1400px); height: 86vh; object-fit: contain; filter: drop-shadow(0 20px 50px rgba(0,0,0,.5));
  transform: translate(var(--zx, 0), var(--zy, 0)) scale(var(--zs, .6)); opacity: 0; transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .22s ease; }
.zoom.on img { transform: none; opacity: 1; }
.zoom img.blur { filter: blur(6px); }
.zoom .zclose { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; background: rgba(255,255,255,.92); color: #111; border: 0; }
.zoom .znav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85);
  color: #111; font-size: 26px; cursor: pointer; }
.zoom .znav.prev { left: 12px; } .zoom .znav.next { right: 12px; }
.zoom .zcount { position: absolute; bottom: calc(14px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font: 600 13px var(--num); }
.totop { position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 20px; box-shadow: 0 6px 18px rgba(0,0,0,.18); cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.totop.on { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 760px) { .totop { bottom: 24px; right: 24px; } }
body.locked .totop { display: none; }
.hero .mosaic figure.hero-lot { cursor: pointer; }
.hero .mosaic { transition: opacity .35s ease; }
.hero .mosaic.out { opacity: 0; }
.hero .mosaic.in { animation: heroin .45s ease; }
@keyframes heroin { from { opacity: 0; } to { opacity: 1; } }
.tag.live { color: #fff; background: #d93025; font-weight: 700; }
.livedot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: #d93025; vertical-align: middle; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.bigsales.scroll { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(280px, 32%); overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
@media (max-width: 759px) { .bigsales.scroll { grid-auto-columns: 86%; } }
/* the calendar */
.calbar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.calbar .chips { flex: 1 1 420px; min-width: 0; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(34px, 1fr); gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 4px 0 8px; padding-bottom: 2px; }
.strip::-webkit-scrollbar { display: none; }
.dcell { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 2px 5px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); cursor: pointer; font: inherit; }
.dcell small { font-size: 10.5px; color: var(--muted); }
.dcell b { font: 700 13px var(--num); }
.dcell .bar { width: 8px; height: 34px; display: flex; align-items: flex-end; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.dcell .bar i { width: 100%; background: color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 4px; }
.dcell em { font: 600 10.5px var(--num); font-style: normal; color: var(--muted); min-height: 13px; }
.dcell u { position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.dcell.lit { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.dcell.lit .bar i { background: var(--accent); }
.dcell.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dcell.on small, .dcell.on em { color: var(--bg); }
.dcell.on .bar i { background: var(--gold); }
.dcell:disabled { opacity: .45; cursor: default; }
.sale.star { border: 1px solid color-mix(in srgb, var(--gold) 70%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 18%, transparent); }
.startag { margin-right: 6px; color: var(--gold); font-size: 12px; font-weight: 700; }
.sale .zones { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12.5px; color: var(--ink-2); }
.sale .zones b, .facts .zones b { color: var(--muted); font-weight: 500; margin-right: 2px; }
.facts .zones { display: grid; gap: 2px; }
