/* Auction X stylesheet. One file, organised top to bottom: tokens, base, chrome, components, views, portal.
   Layout: dark brand chrome (header, hero, footer) framing a light working catalogue; 1200px content column. */
:root {
  --chrome: #14171b; --chrome-2: #1e2227; --chrome-line: #30353c; --chrome-text: #eceae4; --chrome-muted: #a5a9ae;
  --gold: #d4a64a; --gold-strong: #e0b75e; --gold-ink: #8c6720; --gold-tint: #f6ecd6;
  --bg: #f2f2ef; --surface: #ffffff; --surface-2: #f7f7f4; --line: #dedfd9; --line-strong: #c9cac3;
  --text: #1b1e22; --muted: #5c6168; --faint: #868b91;
  --good: #23744a; --good-bg: #e3f2e9; --bad: #b3261e; --bad-bg: #fbe7e5; --warn: #946200; --warn-bg: #fdf1d8;
  --shadow: 0 1px 2px rgba(20,23,27,.06), 0 6px 24px rgba(20,23,27,.06);
  --font-display: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1200px; --r: 6px; --r-lg: 10px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --chrome: #0c0e10; --chrome-2: #15181b; --chrome-line: #2a2e33; --chrome-text: #eceae4; --chrome-muted: #9fa4aa;
  --gold: #d4a64a; --gold-strong: #e3bb63; --gold-ink: #e2b85c; --gold-tint: #2b2416;
  --bg: #111316; --surface: #191c20; --surface-2: #1e2126; --line: #2c3036; --line-strong: #3a3f46;
  --text: #e8e9ea; --muted: #a2a8af; --faint: #7d838a;
  --good: #5cc387; --good-bg: #16291e; --bad: #f2867d; --bad-bg: #331a18; --warn: #e6b54f; --warn-bg: #2f2510;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.25); color-scheme: dark;
} }
:root[data-theme="dark"] {
  --chrome: #0c0e10; --chrome-2: #15181b; --chrome-line: #2a2e33; --chrome-text: #eceae4; --chrome-muted: #9fa4aa;
  --gold: #d4a64a; --gold-strong: #e3bb63; --gold-ink: #e2b85c; --gold-tint: #2b2416;
  --bg: #111316; --surface: #191c20; --surface-2: #1e2126; --line: #2c3036; --line-strong: #3a3f46;
  --text: #e8e9ea; --muted: #a2a8af; --faint: #7d838a;
  --good: #5cc387; --good-bg: #16291e; --bad: #f2867d; --bad-bg: #331a18; --warn: #e6b54f; --warn-bg: #2f2510;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.25); color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--chrome); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.015em; }
p { margin: 0; }
a { color: var(--gold-ink); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: .86em; letter-spacing: .02em; }
.eyebrow { font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons, inputs, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r); border: 1px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-gold { background: var(--gold); color: #17140c; }
.btn-gold:hover { background: var(--gold-strong); }
.btn-dark { background: var(--chrome); color: var(--chrome-text); }
.btn-dark:hover { background: var(--chrome-2); }
.btn-line { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-line:hover { border-color: var(--gold); }
.btn-ghost { background: transparent; color: var(--gold-ink); padding: 0 6px; min-height: 36px; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.on-chrome .btn-line { border-color: var(--chrome-line); color: var(--chrome-text); }

label.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
label.field > span { color: var(--muted); font-weight: 600; }
.input, select.input, textarea.input { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); font-size: 16px; }
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); }
.input-money { position: relative; }
.input-money::before { content: "£"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.input-money .input { padding-left: 26px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.chip-live { background: var(--good-bg); color: var(--good); border-color: transparent; }
.chip-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
.chip-bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.chip-warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.chip-good { background: var(--good-bg); color: var(--good); border-color: transparent; }
.chip-gold { background: var(--gold-tint); color: var(--gold-ink); border-color: transparent; }
@keyframes pulse { 50% { opacity: .35; } }
.lotref { font-family: var(--font-mono); font-weight: 600; font-size: 12.5px; letter-spacing: .04em; padding: 2px 7px; border-radius: 4px; background: var(--gold-tint); color: var(--gold-ink); white-space: nowrap; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.timer.ending { color: var(--bad); }

/* ---------- site chrome ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--chrome); color: var(--chrome-text); border-bottom: 1px solid var(--chrome-line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: block; flex: none; }
.brand img { height: 34px; width: auto; }
.site-nav { display: flex; gap: 4px; align-items: center; flex: 1; }
.site-nav a { color: var(--chrome-text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 11px; border-radius: var(--r); }
.site-nav a:hover { background: var(--chrome-2); }
.site-nav a.active { color: var(--gold-strong); }
.site-nav .nav-end { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.acct-pill { display: inline-flex; align-items: center; gap: 8px; color: var(--chrome-text); text-decoration: none; font-weight: 600; font-size: 14px; padding: 6px 12px; border: 1px solid var(--chrome-line); border-radius: 999px; }
.acct-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.acct-pill.verified i { background: #4fbf7e; }
#nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--chrome-line); color: var(--chrome-text); border-radius: var(--r); min-height: 40px; padding: 0 12px; font-weight: 700; }
.demo-band { background: var(--chrome-2); color: var(--chrome-muted); font-size: 13px; }
.demo-band .wrap { padding-block: 7px; display: flex; gap: 10px; flex-wrap: wrap; }
.demo-band strong { color: var(--gold-strong); font-weight: 700; letter-spacing: .08em; font-size: 12px; }
@media (max-width: 900px) {
  #nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--chrome); border-bottom: 1px solid var(--chrome-line); flex-direction: column; align-items: stretch; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .site-nav .nav-end { margin: 8px 0 0; flex-wrap: wrap; }
  .brand img { height: 28px; }
}

.site-footer { background: var(--chrome); color: var(--chrome-muted); margin-top: 72px; font-size: 14px; }
.site-footer .wrap { padding-block: 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer img { height: 28px; width: auto; margin-bottom: 14px; }
.site-footer h4 { color: var(--chrome-text); font-family: var(--font-body); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.site-footer a { color: var(--chrome-text); text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--gold-strong); }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--chrome-line); padding-top: 18px; font-size: 13px; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > div:first-child { grid-column: 1 / -1; } }

/* ---------- toasts ---------- */
#toasts { position: fixed; z-index: 80; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--chrome); color: var(--chrome-text); padding: 14px 16px; border-radius: var(--r-lg); box-shadow: 0 10px 30px rgba(0,0,0,.3); font-size: 14.5px; border-left: 4px solid var(--gold); transition: opacity .4s, transform .4s; }
.toast a { color: var(--gold-strong); font-weight: 700; }
.toast-warn { border-left-color: #e5675d; }
.toast-good { border-left-color: #4fbf7e; }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- hero ---------- */
.hero { background: var(--chrome); color: var(--chrome-text); position: relative; overflow: hidden; }

.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 48px; padding-block: 64px 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 600; letter-spacing: -.025em; line-height: 1.05; margin: 0 0 14px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lede { color: var(--chrome-muted); font-size: 18px; max-width: 34em; }
.searchbar { display: flex; gap: 8px; margin-top: 28px; background: #fff; padding: 6px; border-radius: var(--r-lg); max-width: 620px; }
.searchbar input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 12px; font-size: 16px; color: #1b1e22; min-height: 46px; }
.searchbar input::placeholder { color: #7d8288; }
.searchbar input:focus { outline: none; }
.next-sale { background: var(--chrome-2); border: 1px solid var(--chrome-line); border-radius: var(--r-lg); overflow: hidden; }
.next-sale .ns-head { padding: 18px 20px 14px; display: grid; gap: 6px; }
.next-sale .ns-head h2 { font-size: 30px; text-transform: uppercase; }
.next-sale .ns-clock { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 0 20px 16px; }
.next-sale .ns-clock .timer { font-family: var(--font-display); font-size: 38px; line-height: 1; color: var(--gold-strong); }
.next-sale .ns-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--chrome-line); }
.next-sale .ns-strip a { position: relative; display: block; aspect-ratio: 4/3; background: #222; overflow: hidden; }
.next-sale .ns-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.next-sale .ns-strip a:hover img { transform: scale(1.05); }
.next-sale .ns-strip span { position: absolute; left: 6px; bottom: 6px; font-family: var(--font-mono); font-size: 11px; background: rgba(12,14,16,.82); color: #f0d89c; padding: 1px 6px; border-radius: 3px; }
.next-sale .ns-foot { padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 40px; gap: 32px; } }

.catbar { background: var(--chrome-2); border-top: 1px solid var(--chrome-line); }
.catbar .wrap { display: flex; overflow-x: auto; gap: 0; scrollbar-width: none; }
.catbar a { flex: 1 0 auto; display: flex; align-items: center; gap: 10px; padding: 16px 20px; color: var(--chrome-text); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; }
.catbar a:hover { border-bottom-color: var(--gold); }
.catbar svg { width: 30px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 1.6; flex: none; }
.catbar small { color: var(--chrome-muted); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- sections ---------- */
.section { padding-block: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(24px, 2.8vw, 32px); }
.section-head p { color: var(--muted); max-width: 40em; margin-top: 8px; }
.page-head { background: var(--chrome); color: var(--chrome-text); }
.page-head .wrap { padding-block: 36px 32px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); margin-top: 6px; letter-spacing: -.025em; }
.page-head p { color: var(--chrome-muted); margin-top: 10px; max-width: 42em; }
.page-head .eyebrow { color: var(--gold); }
.crumbs { font-size: 14px; color: var(--chrome-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--chrome-text); text-decoration: none; }
.crumbs a:hover { color: var(--gold-strong); }

/* ---------- lot cards (home) ---------- */
.lot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.lot-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.lot-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.lot-card .ph { position: relative; aspect-ratio: 4/3; background: var(--surface-2); }
.lot-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.lot-card .ph .lotref { position: absolute; left: 10px; top: 10px; }
.lot-card .ph .chip { position: absolute; right: 10px; top: 10px; }
.lot-card .bd { padding: 14px 16px 16px; display: grid; gap: 8px; flex: 1; }
.lot-card h3 { font-size: 19px; }
.lot-card .spec { color: var(--muted); font-size: 14px; }
.lot-card .ft { display: flex; justify-content: space-between; align-items: end; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.lot-card .ft .price { font-size: 24px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.lot-card .ft .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.lot-card .ft .r { text-align: right; }

/* steps & features */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.steps > div { padding: 24px 22px; border-left: 1px solid var(--line); }
.steps > div:first-child { border-left: 0; }
.steps .n { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--gold-ink); line-height: 1; width: 30px; height: 30px; display: grid; place-items: center; border: 1.5px solid var(--gold); border-radius: 50%; }
.steps h3 { font-size: 18px; margin: 14px 0 6px; }
.steps p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .steps > div:nth-child(3) { border-left: 0; } .steps > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .steps > div { border-left: 0; border-top: 1px solid var(--line); } .steps > div:first-child { border-top: 0; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--r-lg); width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-tint); box-shadow: inset 0 0 0 5px var(--gold-tint), inset 0 0 0 9px var(--gold); }
.ticks strong { display: block; }
.ticks span { color: var(--muted); font-size: 15px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 24px; } }

.band-cta { background: var(--chrome); color: var(--chrome-text); border-radius: var(--r-lg); padding: 36px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band-cta h2 { font-size: clamp(24px, 3vw, 34px); }
.band-cta p { color: var(--chrome-muted); margin-top: 6px; }

/* ---------- browse ---------- */
.sale-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-top: 22px; scrollbar-width: thin; }
.sale-tab { flex: none; text-decoration: none; color: var(--chrome-text); border: 1px solid var(--chrome-line); border-radius: var(--r); padding: 10px 14px; display: grid; gap: 2px; min-width: 190px; }
.sale-tab strong { font-size: 15px; }
.sale-tab small { color: var(--chrome-muted); font-size: 13px; }
.sale-tab.active { border-color: var(--gold); background: var(--chrome-2); }
.sale-tab.active strong { color: var(--gold-strong); }
.browse { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; margin-top: 28px; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 14px; position: sticky; top: calc(104px + env(safe-area-inset-top, 0px)); }
.filters h3 { font-family: var(--font-body); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.filters summary { display: none; }
@media (max-width: 900px) {
  .browse { grid-template-columns: 1fr; }
  .filters { position: static; padding: 0; }
  .filters summary { display: flex; justify-content: space-between; padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; }
  .filters summary::-webkit-details-marker { display: none; }
  .filters .filters-body { padding: 0 16px 16px; display: grid; gap: 14px; }
  .filters h3 { display: none; }
}
@media (min-width: 901px) { .filters .filters-body { display: grid; gap: 14px; } }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.results-head strong { font-size: 18px; }
.lot-rows { display: grid; gap: 14px; }
.lot-row { display: grid; grid-template-columns: 240px minmax(0, 1fr) 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.lot-row:hover { border-color: var(--line-strong); }
.lot-row .ph { position: relative; background: var(--surface-2); min-height: 170px; }
.lot-row .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lot-row .ph .count { position: absolute; right: 8px; bottom: 8px; background: rgba(12,14,16,.8); color: #fff; font-size: 12px; padding: 2px 7px; border-radius: 4px; font-weight: 600; }
.lot-row .mid { padding: 16px 20px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.lot-row .mid h3 { font-size: 21px; }
.lot-row .mid h3 a { color: inherit; text-decoration: none; }
.lot-row .mid h3 a:hover { color: var(--gold-ink); }
.lot-row .variant { color: var(--muted); font-size: 15px; margin-top: -4px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px 18px; font-size: 14px; }
.facts div { display: grid; }
.facts dt { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.facts dd { margin: 0; font-weight: 600; }
.lot-row .side { padding: 16px 18px; border-left: 1px solid var(--line); display: grid; gap: 10px; align-content: start; background: var(--surface-2); }
.lot-row .side .price { font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-weight: 700; text-align: right; }
.watch { background: none; border: 1px solid var(--line-strong); border-radius: var(--r); min-height: 36px; padding: 0 10px; cursor: pointer; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.watch svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.watch.on { border-color: var(--gold); color: var(--gold-ink); }
.watch.on svg { fill: var(--gold); stroke: var(--gold); }
@media (max-width: 1000px) { .lot-row { grid-template-columns: 200px minmax(0, 1fr); } .lot-row .side { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); grid-template-columns: 1fr 1fr; align-items: center; } }
@media (max-width: 600px) { .lot-row { grid-template-columns: 1fr; } .lot-row .ph { aspect-ratio: 4/3; min-height: 0; } .lot-row .side { grid-template-columns: 1fr; } }
.empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); padding: 36px 24px; text-align: center; color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.empty strong { color: var(--text); font-size: 18px; }

/* ---------- lot page ---------- */
.lot-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 28px; margin-top: 28px; align-items: start; }
@media (max-width: 960px) { .lot-top { grid-template-columns: 1fr; } }
.gallery { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.gallery .main { position: relative; aspect-ratio: 4/3; background: #0e1012; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.gallery .main button { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(12,14,16,.7); color: #fff; font-size: 22px; cursor: pointer; display: grid; place-items: center; }
.gallery .main .prev { left: 10px; } .gallery .main .next { right: 10px; }
.gallery .main .zoom { top: auto; bottom: 10px; right: 10px; transform: none; width: auto; border-radius: var(--r); padding: 0 12px; font-size: 14px; font-weight: 600; height: 36px; }
.gallery .main .pos { position: absolute; left: 10px; bottom: 10px; background: rgba(12,14,16,.7); color: #fff; padding: 3px 9px; border-radius: 4px; font-size: 13px; font-variant-numeric: tabular-nums; }
.gallery .thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.gallery .thumbs button { flex: none; width: 88px; aspect-ratio: 4/3; padding: 0; border: 2px solid transparent; border-radius: 5px; overflow: hidden; cursor: pointer; background: var(--surface-2); }
.gallery .thumbs button.on { border-color: var(--gold); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery .lowres { padding: 0 12px 12px; font-size: 13px; color: var(--muted); }

.bidbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; position: sticky; top: calc(104px + env(safe-area-inset-top, 0px)); }
@media (max-width: 960px) { .bidbox { position: static; } }
.bidbox .bb-head { background: var(--chrome); color: var(--chrome-text); padding: 16px 18px; display: grid; gap: 10px; }
.bidbox .bb-head .lbl { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--chrome-muted); font-weight: 700; }
.bidbox .bb-price { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -.025em; }
.bidbox .bb-clock { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.bidbox .bb-clock .timer { font-size: 24px; color: var(--gold-strong); }
.bidbox .bb-clock .timer.ending { color: #ff8a80; }
.bidbox .bb-status { padding: 12px 18px; font-weight: 700; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.bidbox .bb-status.lead { background: var(--good-bg); color: var(--good); }
.bidbox .bb-status.out { background: var(--bad-bg); color: var(--bad); }
.bidbox .bb-status.none { background: var(--surface-2); color: var(--muted); }
.bidbox .bb-body { padding: 16px 18px 18px; display: grid; gap: 14px; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick button { min-height: 42px; border: 1px solid var(--line-strong); background: var(--surface-2); border-radius: var(--r); font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.quick button:hover { border-color: var(--gold); }
.bid-mode { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; }
.bid-mode button { border: 0; background: transparent; min-height: 40px; font-weight: 700; cursor: pointer; color: var(--muted); }
.bid-mode button.on { background: var(--chrome); color: var(--chrome-text); }
.bid-help { font-size: 13.5px; color: var(--muted); }
.bid-error { color: var(--bad); font-size: 14px; font-weight: 600; }
.confirm { border: 2px solid var(--gold); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; background: var(--gold-tint); }
.confirm .kv span:first-child { color: var(--text); }
.feebreak { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; font-size: 14px; }
.feebreak .kv.total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; font-size: 16px; }
.history { max-height: 260px; overflow-y: auto; border-top: 1px solid var(--line); }
.history table { width: 100%; border-collapse: collapse; font-size: 14px; }
.history td { padding: 8px 18px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.history td:last-child { text-align: right; font-weight: 700; }
.history tr.you td { color: var(--gold-ink); }
.history .auto { font-size: 11.5px; color: var(--faint); font-weight: 600; }

.lot-details { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 28px; margin-top: 28px; align-items: start; }
@media (max-width: 960px) { .lot-details { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.panel h2 { font-size: 26px; margin-bottom: 14px; }
.panel h3 { font-size: 20px; margin-bottom: 10px; }
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 20px; }
.highlights div { background: var(--surface-2); padding: 12px 14px; }
.highlights small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.highlights strong { font-size: 18px; }
@media (max-width: 560px) { .highlights { grid-template-columns: 1fr 1fr; } }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 600; width: 44%; padding-right: 12px; }
.spec-table td { font-weight: 600; }
.spec-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
@media (max-width: 640px) { .spec-cols { grid-template-columns: 1fr; } }
.callout { border-left: 4px solid var(--gold); background: var(--gold-tint); padding: 12px 14px; border-radius: 0 var(--r) var(--r) 0; font-size: 15px; }
.callout.bad { border-left-color: var(--bad); background: var(--bad-bg); }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8,9,10,.94); display: grid; grid-template-rows: auto 1fr auto; padding: calc(12px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); color: #fff; }
.lightbox .lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lightbox .lb-img { display: grid; place-items: center; min-height: 0; position: relative; }
.lightbox .lb-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: var(--r); min-height: 44px; min-width: 44px; padding: 0 14px; cursor: pointer; font-weight: 700; font-size: 16px; }
.lightbox .lb-nav { display: flex; justify-content: center; gap: 12px; }

/* ---------- fees ---------- */
.fees-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 28px; align-items: start; }
@media (max-width: 860px) { .fees-grid { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line-strong); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; }
table.data td { padding: 10px 14px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr.hit td { background: var(--gold-tint); font-weight: 700; }
table.data td.r, table.data th.r { text-align: right; }
.fee-result { display: grid; gap: 8px; margin-top: 18px; }
.fee-result .kv { font-size: 16px; padding: 4px 0; }
.fee-result .kv.total { border-top: 2px solid var(--text); padding-top: 10px; font-size: 20px; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.faq summary { padding: 16px 20px; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-ink); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); max-width: 62ch; }

/* register */
.reg { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; margin-top: 28px; align-items: start; }
@media (max-width: 860px) { .reg { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.progress { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.progress li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 0; position: relative; }
.progress li::before { content: ""; position: absolute; left: 16px; top: 44px; bottom: -6px; width: 2px; background: var(--line); }
.progress li:last-child::before { display: none; }
.progress .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 15px; background: var(--surface-2); border: 2px solid var(--line-strong); color: var(--muted); }
.progress li.done .dot { background: var(--gold); border-color: var(--gold); color: #17140c; }
.progress li.now .dot { border-color: var(--gold); color: var(--gold-ink); }
.progress strong { display: block; }
.progress span { color: var(--muted); font-size: 14.5px; }

/* ================= management portal ================= */
.portal { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.portal-side { background: var(--chrome); color: var(--chrome-text); padding: calc(18px + env(safe-area-inset-top, 0px)) 14px 24px max(14px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.portal-side img { height: 26px; width: auto; margin: 4px 8px 6px; }
.portal-side .tag { margin: 0 8px 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--chrome-muted); font-weight: 700; }
.portal-side a { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--chrome-text); text-decoration: none; padding: 10px 12px; border-radius: var(--r); font-weight: 600; font-size: 15px; }
.portal-side a:hover { background: var(--chrome-2); }
.portal-side a.active { background: var(--chrome-2); color: var(--gold-strong); box-shadow: inset 3px 0 0 var(--gold); }
.portal-side a .count { background: var(--gold); color: #17140c; font-size: 12px; border-radius: 999px; padding: 0 7px; font-weight: 800; }
.portal-side .group { margin: 16px 8px 4px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--chrome-muted); font-weight: 700; }
.portal-side .planned { color: var(--chrome-muted); padding: 7px 12px; font-size: 14px; display: flex; justify-content: space-between; }
.portal-side .planned em { font-style: normal; font-size: 11px; border: 1px solid var(--chrome-line); border-radius: 999px; padding: 0 7px; }
.portal-side .back { margin-top: auto; color: var(--gold-strong); }
.portal-main { padding: calc(24px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) 48px 28px; min-width: 0; }
.portal-top { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.portal-top h1 { font-size: 32px; letter-spacing: -.02em; }
.portal-top p { color: var(--muted); margin-top: 4px; }
.portal-mobile-nav { display: none; }
@media (max-width: 900px) {
  .portal { grid-template-columns: 1fr; }
  .portal-side { display: none; }
  .portal-mobile-nav { display: flex; gap: 6px; overflow-x: auto; background: var(--chrome); padding: calc(10px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); position: sticky; top: 0; z-index: 40; }
  .portal-mobile-nav a { flex: none; color: var(--chrome-text); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: var(--r); border: 1px solid var(--chrome-line); }
  .portal-mobile-nav a.active { border-color: var(--gold); color: var(--gold-strong); }
  .portal-main { padding: 20px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); }
}
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; text-decoration: none; color: inherit; display: grid; gap: 4px; }
.kpi:hover { border-color: var(--gold); }
.kpi small { color: var(--muted); font-weight: 600; font-size: 14px; }
.kpi strong { font-size: 32px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi span { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .kpis { grid-template-columns: 1fr 1fr; } }
.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .two { grid-template-columns: 1fr; } }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.toolbar label.field { min-width: 150px; flex: 1; max-width: 240px; }
.toolbar .grow { flex: 2; max-width: 360px; }
table.data td .t { font-weight: 700; white-space: normal; min-width: 180px; display: block; }
table.data td .s { color: var(--muted); font-size: 13px; white-space: normal; }
table.data .thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; background: var(--surface-2); }
.actions { display: flex; gap: 6px; }
.agenda { display: grid; gap: 10px; }
.agenda .item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.agenda .item:last-child { border-bottom: 0; }
.agenda .date { text-align: center; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 6px 0; }
.agenda .date b { display: block; font-size: 22px; font-weight: 600; line-height: 1.1; }
.agenda .date small { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.attention { display: grid; gap: 8px; }
.attention a { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: inherit; font-size: 15px; }
.attention a:hover { border-color: var(--gold); }

dialog.sheet { border: 0; padding: 0; border-radius: var(--r-lg); width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 40px); background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
dialog.sheet::backdrop { background: rgba(10,12,14,.6); }
dialog.sheet form { display: grid; grid-template-rows: auto 1fr auto; max-height: calc(100vh - 40px); }
dialog.sheet header, dialog.sheet footer { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
dialog.sheet header { border-bottom: 1px solid var(--line); }
dialog.sheet header h2 { font-size: 26px; }
dialog.sheet footer { border-top: 1px solid var(--line); justify-content: flex-end; flex-wrap: wrap; }
dialog.sheet .sheet-body { padding: 18px 20px; overflow-y: auto; display: grid; gap: 14px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- fixes from review ---------- */
.lot-top > *, .lot-details > *, .browse > *, .fees-grid > *, .reg > *, .two > *, .split > *, .hero .wrap > * { min-width: 0; }
.lot-card .ph { overflow: hidden; }
.lot-card .ph img { position: absolute; inset: 0; }
.portal-side .planned em { flex: none; white-space: nowrap; align-self: center; }
.next-sale .ns-strip.n1 { grid-template-columns: 1fr; }
.next-sale .ns-strip.n1 a { aspect-ratio: 16/9; }
.next-sale .ns-strip.n2 { grid-template-columns: 1fr 1fr; }
.hero h1 { font-size: clamp(40px, 5.6vw, 70px); }


/* ================= refined home (v3) ================= */
.hero { background: var(--chrome); }
.hero .wrap.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 40px; padding-block: 44px 40px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero .lede { color: var(--chrome-muted); font-size: 17px; max-width: 34em; }
.finder { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--chrome-2); border: 1px solid var(--chrome-line); border-radius: var(--r-lg); padding: 16px; }
.finder .full { grid-column: 1 / -1; }
.finder label.field > span { color: var(--chrome-muted); }
.finder .input { background: #fff; color: #1b1e22; border-color: transparent; }
.finder .btn { width: 100%; min-height: 48px; font-size: 16px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; font-size: 14px; color: var(--chrome-muted); }
.hero-facts b { color: var(--chrome-text); font-variant-numeric: tabular-nums; }
.showcase { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: #0e1012; }
.showcase .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; color: #fff; text-decoration: none; pointer-events: none; }
.showcase .slide.on { opacity: 1; pointer-events: auto; }
.showcase .slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); transition: transform 7s ease-out; }
.showcase .slide.on img { transform: scale(1); }
.showcase .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 18px; background: linear-gradient(180deg, transparent, rgba(10,12,14,.88) 55%); display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.showcase .cap-l { display: grid; gap: 4px; min-width: 0; }
.showcase .cap-l .lotref { justify-self: start; background: rgba(12,14,16,.75); color: #f0d89c; }
.showcase .cap-l h2 { font-size: clamp(22px, 2.6vw, 30px); color: #fff; }
.showcase .cap-l .sub { color: rgba(255,255,255,.78); font-size: 14px; }
.showcase .cap-r { display: grid; gap: 2px; text-align: right; }
.showcase .cap-r .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.7); font-weight: 600; }
.showcase .cap-r .price { font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.showcase .cap-r .small { color: rgba(255,255,255,.8); }
.showcase .cap-r .timer { color: #f0d89c; }
.sc-nav { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; z-index: 2; }
.sc-nav button { width: 22px; height: 4px; border: 0; border-radius: 2px; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.sc-nav button.on { background: var(--gold); }
@media (max-width: 900px) { .hero .wrap.hero-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 28px 32px; } .showcase { order: -1; } }
@media (max-width: 480px) { .finder { grid-template-columns: 1fr; } .showcase .cap-r { text-align: left; } }

.calendar { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.cal { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: inherit; transition: border-color .15s; }
.cal:hover { border-color: var(--gold); }
.cal-date { text-align: center; border-right: 1px solid var(--line); padding-right: 12px; }
.cal-date b { display: block; font-size: 24px; font-weight: 600; line-height: 1.1; }
.cal-date small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.cal-body { display: grid; gap: 2px; min-width: 0; }
.cal-body strong { font-size: 16px; }

.lot-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.lot-card .ph .alt { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.lot-card:hover .ph .alt { opacity: 1; }
.lot-card .ph .count { position: absolute; right: 10px; bottom: 10px; background: rgba(12,14,16,.78); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.lot-card .ph .chip { position: absolute; right: 10px; top: 10px; }
.lot-card:hover { transform: none; box-shadow: var(--shadow); }

.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why > div { padding: 26px 24px 26px 0; }
.why > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.why h3 { font-size: 18px; margin-bottom: 8px; }
.why p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .why { grid-template-columns: 1fr; } .why > div, .why > div + div { padding: 20px 0; border-left: 0; } .why > div + div { border-top: 1px solid var(--line); } }

.catbar a { justify-content: center; font-size: 15px; }
.eyebrow { letter-spacing: .12em; }

.hero .catbar .wrap { display: flex; padding-block: 0; gap: 0; }
.hero .catbar a { padding-block: 14px; }
.sc-nav { background: rgba(12,14,16,.6); padding: 7px 9px; border-radius: 999px; }
.hero h1 { font-size: clamp(32px, 3.5vw, 46px); }
@media (max-width: 480px) { .showcase .cap { padding: 44px 14px 12px; } .showcase .cap-r .price { font-size: 26px; } }
.site-nav a.btn-gold, .site-nav a.btn-gold:hover { color: #17140c; background: var(--gold); }

/* ---------- sale calendar ---------- */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
.week .day { display: grid; gap: 2px; align-content: start; padding: 10px 10px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; min-width: 0; position: relative; transition: transform .2s, border-color .2s, box-shadow .2s; }
.week .day small { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.week .day b { font-size: 24px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.week .day .day-none { font-size: 12px; color: var(--faint); }
.week .day .day-sale { font-size: 12px; font-weight: 600; color: var(--gold-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week .day.has { border-color: var(--gold); background: var(--gold-tint); }
.week .day.has::after { content: ""; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(212,166,74,.6); animation: daypulse 2.4s ease-out infinite; }
.week a.day:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.week .day.today { background: var(--chrome); border-color: var(--chrome); color: var(--chrome-text); }
.week .day.today small { color: var(--gold); }
.week .day.today .day-none { color: var(--chrome-muted); }
.week .day.today.has .day-sale { color: var(--gold-strong); }
@keyframes daypulse { 0% { box-shadow: 0 0 0 0 rgba(212,166,74,.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(212,166,74,0); } }
@media (max-width: 700px) {
  .week { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 92px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
}

.sale-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
@media (max-width: 420px) { .sale-cards { grid-template-columns: 1fr; } }
.sale-card { display: grid; grid-template-columns: 96px minmax(0, 1fr) 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s; animation: cardin .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 90ms); }
@keyframes cardin { from { opacity: 0; transform: translateY(12px); } }
.sale-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.sale-card.is-live { border-left: 0; }
.sc-date { background: var(--chrome); color: var(--chrome-text); display: grid; align-content: center; justify-items: center; gap: 2px; padding: 14px 8px; text-align: center; position: relative; }
.sale-card.is-live .sc-date { background: linear-gradient(180deg, var(--chrome), #2a2416); }
.sc-date b { font-size: 40px; font-weight: 600; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.sc-date small { font-size: 11.5px; font-weight: 600; color: var(--chrome-muted); text-transform: uppercase; letter-spacing: .08em; }
.sc-main { padding: 14px 16px; display: grid; gap: 10px; min-width: 0; }
.sc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.sc-top strong { font-size: 17px; }
.sc-thumbs { display: flex; align-items: center; min-height: 46px; }
.sc-thumbs img, .sc-thumbs .ph, .sc-thumbs .more { width: 62px; height: 46px; object-fit: cover; border-radius: 6px; border: 2px solid var(--surface); margin-left: -10px; box-shadow: 0 2px 6px rgba(0,0,0,.12); transition: transform .3s cubic-bezier(.2,.8,.2,1); background: var(--surface-2); flex: none; }
.sc-thumbs > :first-child { margin-left: 0; }
.sale-card:hover .sc-thumbs img:nth-child(2) { transform: translateX(6px); }
.sale-card:hover .sc-thumbs img:nth-child(3) { transform: translateX(12px); }
.sale-card:hover .sc-thumbs img:nth-child(4) { transform: translateX(18px); }
.sc-thumbs .ph { display: block; background: repeating-linear-gradient(-45deg, var(--surface-2) 0 6px, var(--line) 6px 7px); }
.sc-thumbs .more { display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--muted); }
.sc-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--muted); }
.sc-meta b { color: var(--text); font-variant-numeric: tabular-nums; }
.sc-clock { margin-left: auto; }
.sc-clock .timer { color: var(--gold-ink); }
.sc-bar { height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.sc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-strong)); border-radius: 2px; transform-origin: left; animation: barin 1.2s .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes barin { from { transform: scaleX(0); } }
.sc-go { display: grid; place-items: center; color: var(--faint); font-size: 18px; transition: color .2s, transform .2s; }
.sale-card:hover .sc-go { color: var(--gold-ink); transform: translateX(3px); }
.section-head p { color: var(--muted); margin-top: 4px; font-size: 15px; }

/* hero: chevron background (option B) */
.hero { position: relative; overflow: hidden; }
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--chrome) 0%, rgba(20,23,27,.85) 32%, rgba(20,23,27,.15) 70%, rgba(20,23,27,0) 100%); }
.hero .wrap.hero-grid { position: relative; z-index: 1; grid-template-columns: minmax(0, 560px); padding-block: 64px 56px; }
.hero .catbar { position: relative; z-index: 1; background: rgba(30,34,39,.92); }
.finder { background: rgba(30,34,39,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (max-width: 900px) { .hero .wrap.hero-grid { grid-template-columns: 1fr; padding-block: 40px 36px; } .hero-shade { background: linear-gradient(0deg, rgba(20,23,27,.88) 0%, rgba(20,23,27,.5) 55%, rgba(20,23,27,.2) 100%); } }

/* pinned header: stays at the top while scrolling; demo note folds away once you scroll */
#site-chrome { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; }
.site-header { position: relative; top: auto; transition: box-shadow .25s; }
.site-header .wrap { min-height: 84px; gap: 28px; }
.brand img { height: 44px; }
.site-nav a { font-size: 16px; padding: 10px 12px; }
#site-chrome.scrolled .site-header { box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.demo-band { overflow: hidden; max-height: 60px; transition: max-height .3s ease, opacity .3s ease; }
#site-chrome.scrolled .demo-band { max-height: 0; opacity: 0; }
@media (max-width: 900px) { .site-header .wrap { min-height: 70px; } .brand img { height: 36px; } .site-nav a { font-size: 17px; } }

/* UK-style number plate */
.plate { display: inline-block; font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 600; font-size: 13.5px; letter-spacing: .06em; color: #111; background: #f6d33c; border: 1px solid #1b1e22; border-radius: 4px; padding: 2px 8px 2px 8px; white-space: nowrap; box-shadow: inset 4px 0 0 #1f4fa3; padding-left: 12px; }

/* staff +£10 bid sheet */
.sb-price { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.sb-price small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.sb-price b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sb-price b.gold { color: var(--gold-ink); }
.sb-price .s { font-size: 13px; color: var(--muted); }
.sb-arrow { font-size: 22px; color: var(--muted); }
.sb-modes { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.sb-mode { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); cursor: pointer; }
.sb-mode:has(input:checked) { border-color: var(--gold); background: var(--gold-tint); }
.sb-mode input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); }
.sb-mode strong { display: block; }
.sb-mode .s { display: block; font-size: 13.5px; color: var(--muted); }
.sb-mode.off { opacity: .55; cursor: not-allowed; }
.btn.armed { background: var(--chrome); color: var(--gold-strong); border-color: var(--gold); min-width: 112px; }
table.data .thumb { max-width: none; min-width: 64px; display: block; }
table.data td .s { display: block; }
/* portal tables: keep the action buttons in view when the table scrolls sideways */
.portal-main table.data td:last-child, .portal-main table.data th:last-child { position: sticky; right: 0; background: var(--surface); box-shadow: -10px 0 10px -10px rgba(0,0,0,.25); z-index: 1; }
.portal-main table.data th:last-child { background: var(--surface-2); z-index: 2; }

/* buyer accounts */
table.data.buyers tr.b-row { cursor: pointer; }
table.data.buyers tr.b-row:hover td { background: var(--surface-2); }
.checkpips { display: inline-flex; gap: 4px; }
.checkpips i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.checkpips i.on { background: var(--good); border-color: var(--good); }
dialog.sheet.wide { width: min(900px, calc(100vw - 24px)); }
dialog.sheet h3 { font-size: 15px; margin-bottom: 8px; color: var(--text); }
dialog.sheet section + section { border-top: 1px solid var(--line); padding-top: 14px; }
dialog.sheet .s { font-size: 13px; color: var(--muted); }
.acct-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.acct-stats div { background: var(--surface-2); padding: 12px 14px; }
.acct-stats small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.acct-stats b { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.acct-stats b.sm { font-size: 16px; display: block; margin-top: 6px; }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kvlist { margin: 0; display: grid; gap: 8px; }
.kvlist div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; font-size: 14.5px; }
.kvlist dt { color: var(--muted); }
.kvlist dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.check-row { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); cursor: pointer; }
.check-row:has(input:checked) { border-color: var(--good); background: var(--good-bg); }
.check-row input { width: 18px; height: 18px; accent-color: var(--good); margin-top: 1px; }
.check-row strong { display: block; font-size: 14px; }
.notes { display: grid; gap: 8px; }
.note { border-left: 3px solid var(--line-strong); padding: 2px 0 2px 10px; }
.note p { font-size: 14.5px; }
@media (max-width: 700px) { .acct-stats { grid-template-columns: 1fr 1fr; } .acct-grid, .checks { grid-template-columns: 1fr; } .kvlist div { grid-template-columns: 110px minmax(0, 1fr); } }
dialog.sheet .sheet-body { grid-auto-rows: max-content; align-content: start; }
@media (min-width: 701px) { dialog.sheet .acct-grid section + section { border-top: 0; padding-top: 0; } }

/* buyer documents and editing */
.sec-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: -6px; }
.edit-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.doc { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); cursor: pointer; color: inherit; font: inherit; }
.doc:hover { border-color: var(--gold); }
.doc-text { display: grid; min-width: 0; }
.doc-text strong { font-size: 14.5px; }
.doc-text .s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-icon { width: 46px; height: 56px; border-radius: 4px; display: grid; place-items: center; font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600; color: #fff; background: #5b6f8a; }
.doc-icon.pdf { background: #b3261e; }
.doc-icon.big { width: 72px; height: 90px; font-size: 15px; margin: 0 auto 12px; }
.doc-add { margin-top: 12px; align-items: flex-end; }
.doc-add label.field { min-width: 220px; }
.doc-add .is-off { opacity: .45; pointer-events: none; }
.doc-viewer { z-index: 100; }
.doc-viewer .pdf-box { text-align: center; color: #fff; display: grid; gap: 10px; justify-items: center; }
.doc-viewer p { color: #ddd; }
.doc-viewer .lb-img { overflow: auto; padding-block: 10px; }
.doc-viewer .lb-img img { max-width: min(100%, 1000px); max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 6px; background: #fff; }

/* invoices */
.portal-side a .count.bad { background: var(--bad); color: #fff; }
.kpi.kpi-bad strong { color: var(--bad); }
table.data.invoices tr.i-row { cursor: pointer; }
table.data.invoices tr.i-row:hover td { background: var(--surface-2); }
.invoice-doc { background: #fff; color: #1b1e22; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.inv-head { background: #14171b; color: #eceae4; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; }
.inv-head img { height: 30px; width: auto; }
.inv-head div { text-align: right; display: grid; }
.inv-head b { font-size: 20px; font-weight: 600; }
.inv-head span { color: #d4a64a; font-size: 14px; }
.inv-meta { display: grid; grid-template-columns: 1.2fr 1.2fr .8fr; gap: 18px; padding: 18px 20px; border-bottom: 1px solid #e4e4df; font-size: 14px; }
.inv-meta > div { display: grid; gap: 3px; align-content: start; min-width: 0; }
.inv-meta small { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #6b7077; font-weight: 600; margin-bottom: 2px; }
.inv-meta strong { font-size: 15px; }
.inv-meta span { color: #3b4047; overflow-wrap: anywhere; }
.inv-lines { width: 100%; border-collapse: collapse; font-size: 15px; }
.inv-lines td { padding: 9px 20px; border-bottom: 1px solid #efefea; font-variant-numeric: tabular-nums; }
.inv-lines td.r { text-align: right; }
.inv-lines tr.total td { font-weight: 700; border-top: 2px solid #1b1e22; font-size: 16px; }
.inv-lines tr.paid td { color: #23744a; }
.inv-lines tr.due td { font-weight: 700; font-size: 18px; background: #f6ecd6; border-bottom: 0; }
.inv-pay { padding: 14px 20px 18px; display: grid; gap: 4px; font-size: 13.5px; color: #3b4047; background: #fafaf7; border-top: 1px solid #efefea; }
.inv-pay small { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #6b7077; font-weight: 600; }
.pay-form { display: grid; grid-template-columns: 1fr 1fr 1.3fr auto; gap: 10px; align-items: end; margin-top: 12px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); }
@media (max-width: 760px) { .inv-meta { grid-template-columns: 1fr; } .pay-form { grid-template-columns: 1fr 1fr; } .pay-form .btn { grid-column: 1 / -1; } .inv-lines td { padding: 8px 14px; } }

/* vehicles purchased + PDF viewer */
.buy-sum { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 10px; font-size: 14.5px; color: var(--muted); }
.buy-sum b { color: var(--text); font-variant-numeric: tabular-nums; }
.buy-sum .owed b { color: var(--bad); }
.pdf-viewer .lb-img { place-items: start center; }
.pdf-viewer .pdf-page { width: min(760px, 100%); background: #fff; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.pdf-viewer .pdf-page .invoice-doc { border: 0; }
.pdf-viewer button.gold { background: var(--gold); color: #17140c; }
.pdf-viewer button[disabled] { opacity: .45; cursor: wait; }
.pdf-viewer .lb-top .row { flex-wrap: wrap; justify-content: flex-end; }
.portal-side .side-reset { margin-top: auto; color: var(--chrome-muted); justify-content: flex-start; padding: 8px 12px; }
.portal-side .side-reset + .back { margin-top: 0; }
.doc-viewer .inv-head img, .pdf-viewer .inv-head img { height: 30px; max-height: 30px; width: auto; max-width: none; background: none; border-radius: 0; }
.inv-head span { white-space: nowrap; }
dialog.sheet table.data td:last-child, dialog.sheet table.data th:last-child { position: sticky; right: 0; background: var(--surface); box-shadow: -10px 0 10px -10px rgba(0,0,0,.25); }
dialog.sheet table.data th:last-child { background: var(--surface-2); }
table.data.purchases td .t { min-width: 150px; }
dialog.sheet .sheet-body { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 520px) { .inv-head { flex-wrap: wrap; padding: 14px; } .inv-head img { height: 22px; max-height: 22px; } .inv-head div { text-align: left; } .invoice-doc { overflow: visible; } }
table.data.invoices .inv-chip { display: block; margin-top: 4px; }
table.data td.nw { white-space: nowrap; }
table.data td.nw .s { white-space: nowrap; }
table.data td.prices span { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); min-width: 130px; }
table.data td.prices b { color: var(--text); font-weight: 600; }
table.data td.wrap { white-space: normal; min-width: 140px; max-width: 190px; }
table.data td .s .lotref { display: inline-block; margin-top: 6px; }

/* vehicle stock: status tabs, inline prices, bulk process */
.stock-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line-strong); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.stock-tabs button { flex: none; background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font: inherit; font-weight: 600; font-size: 14.5px; color: var(--muted); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; margin-bottom: -1px; }
.stock-tabs button span { font-size: 12px; font-variant-numeric: tabular-nums; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; color: var(--muted); }
.stock-tabs button:hover { color: var(--text); }
.stock-tabs button.on { color: var(--text); border-bottom-color: var(--gold); }
.stock-tabs button.on span { background: var(--gold); border-color: var(--gold); color: #17140c; }
table.data.stock th.ck, table.data.stock td.ck { width: 36px; padding-right: 0; }
table.data.stock td.ck input, table.data.stock th.ck input { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; }
table.data.stock tr.picked td { background: var(--gold-tint); }
table.data td.prices label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
table.data td.prices .input-money::before { left: 8px; font-size: 13px; }
table.data td.prices input.pin { width: 92px; min-height: 30px; padding: 3px 8px 3px 20px; font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }
table.data td.prices input.pin.saved { animation: savedflash 1.2s ease; }
@keyframes savedflash { 0% { border-color: var(--good); box-shadow: 0 0 0 3px var(--good-bg); } }
.bulk-bar { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 5; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; background: var(--chrome); color: var(--chrome-text); padding: 10px 12px; border-radius: var(--r-lg); box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: toastin .25s ease; }
.bulk-bar strong { margin-right: 6px; }
.bulk-bar label.field { min-width: 240px; flex: 1 1 240px; max-width: 360px; }
.bulk-bar .btn-line { color: var(--chrome-text); border-color: var(--chrome-line); }
.bulk-bar .btn-ghost { color: var(--chrome-muted); }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } }
.bulk-bar select.input { color: var(--text); background: var(--surface); }

/* ---------- reports ---------- */
:root { --c-sold: #b07f22; --c-unsold: #3f76b5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --c-sold: #b5871f; --c-unsold: #5a8fd0; } }
:root[data-theme="dark"] { --c-sold: #b5871f; --c-unsold: #5a8fd0; }
.rep-filters label.field { max-width: 300px; }
.rep-filters .rep-date { min-width: 140px; max-width: 170px; flex: 0 1 170px; }
.rep-scope { font-weight: 700; margin: -2px 0 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rep-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rep-kpis .kpi strong { font-size: 28px; }
@media (max-width: 1180px) { .rep-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rep-kpis { grid-template-columns: 1fr 1fr; } .rep-kpis .kpi strong { font-size: 24px; } }
.rep-sec { margin-bottom: 26px; min-width: 0; }
.rep-sec h2, .rep-chart h2 { font-size: 20px; margin-bottom: 10px; }
.rep-sec-head { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 12px; }
.rep-sec-head h2 { margin: 0 6px 0 0; }
.rep-sec-head .rep-q { flex: 1 1 240px; max-width: 360px; margin-left: auto; }
.rep-re { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.rep-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
@media (max-width: 900px) { .rep-two { grid-template-columns: minmax(0, 1fr); } }
.portal-main table.data.plain td:last-child, .portal-main table.data.plain th:last-child { position: static; box-shadow: none; z-index: auto; }
table.data tr.i-row { cursor: pointer; }
table.data tr.i-row:hover td { background: var(--surface-2); }
table.data tr.rep-total td { background: var(--surface-2); border-top: 1px solid var(--line-strong); }
table.rep-lots td .t { min-width: 200px; }

.rep-chart { margin-bottom: 26px; padding: 18px 20px 14px; }
.rep-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.rep-chart-head h2 { margin: 0; }
.legend { display: flex; gap: 16px; font-size: 13.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex: none; }
.sw-sold { background: var(--c-sold); } .sw-unsold { background: var(--c-unsold); }
.bars { display: grid; grid-template-columns: 28px minmax(0, 1fr); height: 230px; padding-bottom: 24px; }
.bars .y { position: relative; }
.bars .y span { position: absolute; right: 8px; transform: translateY(50%); font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.bars .plot { position: relative; display: flex; align-items: stretch; gap: 2px; }
.bars .gl { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line); pointer-events: none; }
.bars .gl:first-child { border-top-color: var(--line-strong); }
.bars .col { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; justify-content: center; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 4px; }
.bars .col:hover, .bars .col.on { background: color-mix(in srgb, var(--text) 5%, transparent); }
.bars .stack { width: min(28px, 64%); display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 1; }
.bars .seg { display: block; flex-basis: 0; min-height: 2px; }
.bars .seg:first-child { border-radius: 4px 4px 0 0; }
.seg-sold { background: var(--c-sold); } .seg-unsold { background: var(--c-unsold); }
.bars .xl { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.bars .col.nolabel .xl { visibility: hidden; }
.bars .tip { position: absolute; top: 0; z-index: 3; background: var(--chrome); color: var(--chrome-text); border-radius: var(--r); padding: 9px 12px; font-size: 13px; display: grid; gap: 2px; min-width: 170px; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.bars .tip .s { color: var(--chrome-muted, #a5a9ae); }
.bars .tip span { display: flex; align-items: center; gap: 6px; }

@media print {
  #site-chrome, .demo-band, .site-footer, .portal-side, .portal-mobile-nav, .portal-main > .callout, .portal-top .row, .rep-filters, #r-out, .rep-q, .rep-re, #r-more-wrap, #toasts { display: none !important; }
  body, .portal-main { background: #fff; }
  .portal { display: block; }
  .portal-main { padding: 0; }
  .table-wrap { overflow: visible; border: 0; }
  table.data th { position: static; }
  .rep-sec, .rep-chart { break-inside: avoid; }
  .bars .tip { display: none; }
}
.bars .tip[hidden] { display: none; }
table.rep-lots td .t { min-width: 170px; }
table.rep-lots td:last-child { white-space: normal; min-width: 150px; }
.portal-main table.data tr.rep-total td, .portal-main table.data tr.hit td { background: var(--surface-2); }
.rep-filters .rep-period { max-width: none; flex: 0 0 auto; }
.rep-period > span { color: var(--muted); font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; }
.seg-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.seg-btns .btn { min-height: 44px; }

/* ---------- staff ---------- */
.input.input-sm { min-height: 38px; padding: 6px 10px; font-size: 14.5px; width: auto; min-width: 170px; }
table.data th.c, table.data td.c { text-align: center; }
table.perms th.c { min-width: 112px; }
table.perms th .s { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--faint); font-size: 12px; margin-top: 2px; }
table.perms td .t { min-width: 220px; }
.tick { display: inline-grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.tick input { position: absolute; opacity: 0; width: 44px; height: 44px; margin: 0; cursor: pointer; }
.tick span { width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; }
.tick input:checked + span { background: var(--good); border-color: var(--good); }
.tick input:checked + span::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.tick input:disabled + span { opacity: .55; }
.tick input:disabled { cursor: default; }
.tick input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.tick { position: relative; }
.lock-note { max-width: 640px; }
@media (max-width: 640px) {
  table.staff thead { display: none; }
  table.staff, table.staff tbody { display: block; }
  table.staff tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.staff tr:last-child { border-bottom: 0; }
  .portal-main table.staff td, .portal-main table.staff td:last-child { padding: 0; border: 0; position: static; box-shadow: none; background: none; white-space: normal; }
  table.staff td:nth-child(1) { grid-column: 1 / -1; }
  table.staff td:nth-child(1) .t { min-width: 0; }
  table.staff td:nth-child(3) { align-self: center; }
  table.staff td:nth-child(4) { color: var(--muted); font-size: 14px; }
  table.staff td:nth-child(4)::before { content: "Last signed in: "; }
  table.staff td:nth-child(4), table.staff td:nth-child(5) { grid-column: 1 / -1; }
  table.staff td:nth-child(5):has(.actions:empty) { display: none; }
  table.staff .input-sm { width: 100%; min-width: 0; }
  table.perms th.c { min-width: 84px; white-space: normal; }
  table.perms td .t { min-width: 150px; }
}

/* ---------- buyer: my account ---------- */
.acct-pill .acct-sub { color: var(--chrome-muted); font-weight: 500; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) { .acct-pill .acct-sub { display: none; } }
.acct { padding-block: 22px 56px; }
.acct-empty { max-width: 640px; margin-block: 28px 56px; }
.acct-who { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; margin-bottom: 16px; }
.acct-who .s { color: var(--muted); font-size: 14px; }
.acct-who #acct-out { margin-left: auto; }
.acct-warn { margin-bottom: 16px; }
.acct-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.acct-tile { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; display: grid; gap: 2px; cursor: pointer; color: inherit; font: inherit; }
.acct-tile:hover { border-color: var(--gold); }
.acct-tile small { color: var(--muted); font-weight: 600; font-size: 14px; }
.acct-tile strong { font-size: 26px; font-weight: 600; line-height: 1.15; }
.acct-tile span { font-size: 13px; color: var(--muted); }
.acct-tile.due strong { color: var(--gold-ink); }
.acct-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-strong); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.acct-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 14px 10px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; min-height: 44px; }
.acct-tabs button span { font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; margin-left: 4px; color: var(--muted); }
.acct-tabs button.on { color: var(--text); border-bottom-color: var(--gold); }
.acct-list { display: grid; gap: 10px; }
.acct-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 16px 12px 12px; text-decoration: none; color: inherit; }
a.acct-row:hover { border-color: var(--gold); }
.acct-row.inv { grid-template-columns: minmax(0, 1fr) auto auto; padding-left: 16px; }
.acct-row img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--surface-2); display: block; }
.acct-row .ar-main { display: grid; gap: 4px; min-width: 0; text-decoration: none; color: inherit; }
.acct-row .ar-title { font-weight: 700; }
.acct-row .s { color: var(--muted); font-size: 13.5px; }
.acct-row .s.bad { color: var(--bad); font-weight: 600; }
.acct-row .ar-fig { display: grid; justify-items: end; text-align: right; gap: 1px; }
.acct-row .ar-fig b { font-size: 18px; }
.acct-row .ar-end { display: grid; justify-items: end; gap: 6px; min-width: 120px; }
.acct-none { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 34px 22px; }
.acct-none p { color: var(--muted); }
.acct-pay { margin-bottom: 12px; }
.acct-pay div { display: grid; gap: 2px; }
.acct-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.acct-details .sec-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.acct-details .sec-row h3 { margin: 0; }
.acct-details [hidden] { display: none !important; }
.acct-docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.acct-docs li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
@media (max-width: 760px) {
  .acct-sum { grid-template-columns: 1fr 1fr; }
  .acct-sum .acct-tile:first-child { grid-column: 1 / -1; }
  .acct-details { grid-template-columns: minmax(0, 1fr); }
  .acct-row { grid-template-columns: 72px minmax(0, 1fr); gap: 8px 12px; }
  .acct-row img { width: 72px; height: 54px; }
  .acct-row .ar-fig, .acct-row .ar-end { grid-column: 2; justify-items: start; text-align: left; min-width: 0; }
  .acct-row .ar-end { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .acct-row.inv { grid-template-columns: minmax(0, 1fr); }
  .acct-row.inv .ar-fig, .acct-row.inv .ar-end { grid-column: 1; }
  .acct-row .ar-fig { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
}
.acct-details .check-row + .check-row { margin-top: 8px; } .acct-details .check-row .s { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.acct-details .panel > h3 { margin-bottom: 12px; } .acct-details p.s { font-size: 14px; color: var(--muted); }
.nav-signin { color: var(--chrome-text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 11px; border-radius: var(--r); } .nav-signin:hover { background: var(--chrome-2); }
label.field[hidden], .field[hidden] { display: none; }
.seg-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-pick label { position: relative; cursor: pointer; }
.seg-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-pick span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); font-weight: 600; font-size: 15px; color: var(--text); }
.seg-pick input:checked + span { border-color: var(--gold); background: var(--gold-tint); color: var(--gold-ink); box-shadow: inset 0 0 0 1px var(--gold); }
.seg-pick input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
div.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; } div.field > span:first-child { color: var(--muted); }

/* ---------- live sign-in (stage 1) ---------- */
.staff-gate { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--chrome); }
.staff-gate .sg-wrap { width: min(440px, 100%); display: grid; gap: 18px; }
.staff-gate h1 { font-size: 26px; margin: 0 0 4px; }
.staff-gate .sg-brand { display: grid; gap: 6px; justify-items: start; }
.staff-gate .sg-brand img { width: 200px; height: auto; }
.staff-gate .sg-brand span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold); }
.staff-gate .sg-links { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.staff-gate .sg-back { font-size: 14px; color: var(--chrome-muted); }
.mfa-qr { width: 180px; height: 180px; background: #fff; padding: 8px; border-radius: var(--r); border: 1px solid var(--line); }
.mfa-code { font-family: var(--font-mono); font-size: 24px; letter-spacing: .3em; max-width: 220px; }
.mfa-steps { margin: 0; padding-left: 20px; color: var(--text); }
.live-me { display: grid; gap: 2px; color: var(--chrome-text); font-size: 14px; }
.live-me span { color: var(--chrome-muted); }
.live-me .btn { justify-self: start; padding-left: 0; }
.live-wait { margin-block: 28px 56px; max-width: 640px; }
.live-narrow { max-width: 520px; margin-block: 28px 56px; }
