/* Phase G13 — the Google Fonts @import was previously here. It's been
 * removed: @import is render-blocking (the browser must fetch and
 * parse the imported file before any subsequent rules apply), and
 * the buyer-experience perf budget in docs/plans/2026-05-02 says we
 * should leave Inter as a graceful fallback to system. The font-
 * family on body now leads with Inter so installed copies (most
 * macOS/iOS/Windows users have it) still get the brand glyphs, and
 * everyone else gets a near-indistinguishable system stack. */

:root {
  --blue: #0b63b6;
  --blue-dark: #084a8f;
  --blue-soft: #eaf3ff;
  --ink: #172033;
  --muted: #657083;
  --line: #dbe2ea;
  --line-strong: #c9d3df;
  --panel: #ffffff;
  --page: #f6f8fb;
  --green: #16805f;
  --green-soft: #e8f6f1;
  --yellow: #9a6b00;
  --yellow-soft: #fff6df;
  --red: #b42318;
  --red-soft: #fff0ee;

  /* Phase G12 — canonical type + space scale.
   * --fs-* and --space-N (px-numeric) are the buyer-experience tokens
   * called for in the plan. New rules SHOULD use these. The existing
   * admin design system tokens below use a different (1..7) ordinal
   * naming and are preserved for the admin board. */
  --fs-12: 12px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-24: 24px;
  --fs-32: 32px;
  --fs-48: 48px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;

  /* Admin design system tokens (Phase 0.2) — ordinal scale for the
   * admin board. Renamed from --space-N to --admin-space-N to avoid
   * collision with the buyer-experience canonical scale above (where
   * --space-4 means 4px, not 16px). */
  --admin-space-1: 4px;
  --admin-space-2: 8px;
  --admin-space-3: 12px;
  --admin-space-4: 16px;
  --admin-space-5: 24px;
  --admin-space-6: 32px;
  --admin-space-7: 48px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --font-title: 28px;
  --font-section: 16px;
  --font-body: 14px;
  --font-meta: 12.5px;
  --line-tight: 1.25;
  --line-comfy: 1.55;
  --pill-info-bg: var(--blue-soft);
  --pill-info-fg: var(--blue-dark);
  --pill-success-bg: var(--green-soft);
  --pill-success-fg: var(--green);
  --pill-warning-bg: var(--yellow-soft);
  --pill-warning-fg: var(--yellow);
  --pill-danger-bg: var(--red-soft);
  --pill-danger-fg: var(--red);
  --pill-neutral-bg: #eef1f6;
  --pill-neutral-fg: var(--muted);
  --sidebar-bg: #1e2532;
  --sidebar-fg: #e6ecf2;
  --sidebar-fg-muted: #9fa9bb;
  --sidebar-active-fg: #ffffff;
  --sidebar-active-line: var(--blue);
  --sidebar-divider: #2c3548;
}

/* Admin design system utility classes (Phase 0.2) */
.board-shell .chip {
  display: inline-flex;
  align-items: center;
  gap: var(--admin-space-1);
  padding: 2px var(--admin-space-2);
  border-radius: var(--radius-sm);
  font-size: var(--font-meta);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.board-shell .chip-neutral { background: var(--pill-neutral-bg); color: var(--pill-neutral-fg); }
.board-shell .chip-success { background: var(--pill-success-bg); color: var(--pill-success-fg); }
.board-shell .chip-warning { background: var(--pill-warning-bg); color: var(--pill-warning-fg); }
.board-shell .chip-danger  { background: var(--pill-danger-bg);  color: var(--pill-danger-fg); }
.board-shell .chip-info    { background: var(--pill-info-bg);    color: var(--pill-info-fg); }

.board-shell .mode-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--admin-space-1);
  padding: 4px var(--admin-space-3);
  border-radius: var(--radius-sm);
  font-size: var(--font-meta);
  font-weight: 600;
  background: var(--pill-neutral-bg);
  color: var(--pill-neutral-fg);
  transition: background-color .2s ease, color .2s ease;
}
.board-shell .mode-pill[data-tone="info"]    { background: var(--pill-info-bg);    color: var(--pill-info-fg); }
.board-shell .mode-pill[data-tone="success"] { background: var(--pill-success-bg); color: var(--pill-success-fg); }
.board-shell .mode-pill[data-tone="warning"] { background: var(--pill-warning-bg); color: var(--pill-warning-fg); }
.board-shell .mode-pill[data-tone="danger"]  { background: var(--pill-danger-bg);  color: var(--pill-danger-fg); }
.board-shell .mode-pill[hidden] { display: none; }

/* Auth gate cards rendered into .board-shell by gateAdminAccess. */
.board-shell .auth-gate-card {
  margin: 80px auto;
  max-width: 520px;
  padding: var(--admin-space-6) var(--admin-space-5);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: center;
}
.board-shell .auth-gate-card h2 {
  margin: 0 0 var(--admin-space-3);
  font-size: 24px;
  color: var(--ink);
}
.board-shell .auth-gate-card p {
  margin: 0 0 var(--admin-space-4);
  color: var(--muted);
  font-size: var(--font-body);
  line-height: var(--line-comfy);
}
.auth-gate-form {
  display: flex;
  gap: var(--admin-space-2);
  justify-content: center;
  margin-top: var(--admin-space-5);
  flex-wrap: wrap;
}
.auth-gate-form input {
  flex: 1;
  min-width: 220px;
  padding: 10px var(--admin-space-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font-size: var(--font-body);
}
.auth-gate-status {
  margin-top: var(--admin-space-3);
  font-size: 12px;
  color: var(--muted);
}
.auth-gate-debug {
  margin-top: var(--admin-space-4);
  text-align: left;
  font-size: var(--font-meta);
  color: var(--muted);
}
.auth-gate-debug summary { cursor: pointer; }
.auth-gate-debug pre {
  background: var(--page);
  padding: 10px;
  border-radius: var(--radius-md);
  margin-top: var(--admin-space-2);
  white-space: pre-wrap;
}

* {
  box-sizing: border-box;
}

/* Phase G12 — tabular numerals for any element that renders numbers
 * which must not jitter as digits change (countdown timers, currency
 * fields, bid counts, status pill counts, watcher counts). "tnum"
 * forces equal-width digits without changing the visible glyph
 * outside of digit slots. Each numeric class is listed explicitly so
 * a future rename doesn't silently lose tabular alignment. */
.bid,
.retail,
.next-bid-hint,
.countdown,
.invoice-total,
.lot-time,
.bid-count,
.bid-pill .count,
.header-status-pill .count,
.watch-heart__count,
.watch-count,
.notif-badge,
.cart-count,
.price-block .price-label,
.modal-total,
.amazon-badges,
[data-countdown],
[data-sr-countdown] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

html {
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--ink);
  background: var(--page);
}

body {
  margin: 0;
  /* Phase G12 — Inter first, then platform system fonts. Inter's
   * widely installed; users without it fall through to the
   * indistinguishable system stack (San Francisco / Segoe UI / Roboto)
   * so we get brand consistency without paying the CDN tax. */
  font-family:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    system-ui, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

/* =========================================================================
 * Phase G2 — two-tier header.
 * Tier 1 `.topbar-utility`: thin row with logo · search · status · cart ·
 * bell · account. Tier 2 `.nav-rail`: 5 primary nav links flush left.
 * Replaces the previous single-row `.topbar` that crammed nav, quick-filter
 * chips, status pills, cart, bell, sign-in, and register into one strip
 * (and wrapped awkwardly at 1440px).
 * ========================================================================= */
.topbar {
  position: relative;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

/* Phase G2 backward-compat — secondary pages (about/locations/faqs/
 * contact/account) still mark up the simpler one-row header
 * (`.topbar` > `.brand` + `.nav` + `.header-actions`). When the page
 * doesn't have a `.topbar-utility`, fall back to the original flex
 * row so those pages don't stack into a column. */
.topbar:not(:has(.topbar-utility)) {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 68px;
  padding: 0 max(32px, calc((100vw - 1480px) / 2 + 32px));
}

.topbar:not(:has(.topbar-utility)) .nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
}

.topbar:not(:has(.topbar-utility)) .nav a {
  position: relative;
  color: #475164;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.topbar:not(:has(.topbar-utility)) .nav a.active {
  color: var(--blue);
}

.topbar:not(:has(.topbar-utility)) .header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-utility {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  min-height: 56px;
  padding: 10px max(24px, calc((100vw - 1480px) / 2 + 24px));
}

.brand {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  gap: 1px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.brand strong {
  color: var(--blue);
  font-weight: 900;
}

/* Primary search lives in the utility bar so it's the first thing the
 * eye lands on. The same `#searchInput` (previously buried inside
 * `.toolbar`) is the authoritative handle — the toolbar copy was
 * removed to avoid a duplicate id. */
.utility-search {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  max-width: 640px;
  height: 38px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.utility-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(11 99 182 / 14%);
}

.utility-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.utility-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

.utility-search input::placeholder {
  color: var(--muted);
}

.utility-actions {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex: 0 0 auto;
}

.utility-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.utility-icon:hover {
  border-color: var(--line-strong);
  background: var(--page);
}

.utility-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.utility-icon .cart-count,
.utility-icon .notif-badge {
  top: -3px;
  right: -3px;
}

/* Status pills — three always-visible pills (Winning / Losing /
 * Watching) sitting in the header utility bar. Each pill self-hides
 * at zero; the row container hides when all three are zero so fresh
 * users don't see flash of "0 / 0 / 0". Replaces the older collapsed
 * "{N} active" dropdown badge while keeping the same data-status-row
 * selectors (so the polling loop works without changes). */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-badge[hidden] {
  display: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: filter .15s ease, transform .15s ease;
}

.status-pill:hover {
  filter: brightness(.97);
}

.status-pill[hidden] {
  display: none;
}

.status-pill.is-winning {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.status-pill.is-losing {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.status-pill.is-watching {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.status-pill__count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: inherit;
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  border: 1px solid currentColor;
}

@media (max-width: 768px) {
  .status-badge { display: none; }
}

.status-badge__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transition: border-color .15s ease, background .15s ease;
}

.status-badge__trigger:hover {
  border-color: var(--line-strong);
  background: var(--page);
}

.status-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgb(22 128 95 / 18%);
}

.status-badge__chevron {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.status-badge__popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: grid;
  gap: 2px;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgb(23 32 51 / 16%);
}

.status-badge__popover[hidden] {
  display: none;
}

.status-badge__row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.status-badge__row[hidden] {
  display: none;
}

.status-badge__row:hover {
  background: var(--page);
}

.status-badge__row-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge__row.is-winning { color: var(--green); }
.status-badge__row.is-losing { color: var(--red); }
.status-badge__row.is-watching { color: var(--yellow); }

.status-badge__row-count {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

/* Account dropdown — keeps the chrome consistent for unauth ("Sign in /
 * Register") and signed-in ("Account / Sign out") and waitlist ("Get
 * notified") states. The `data-auth-actions*` groups are toggled by
 * `refreshAuthChrome()` in app.js. */
.account-menu {
  position: relative;
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transition: border-color .15s ease, background .15s ease;
}

.account-trigger:hover {
  border-color: var(--line-strong);
  background: var(--page);
}

.account-trigger > svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.account-trigger__chevron {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.account-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 240px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgb(23 32 51 / 16%);
}

.account-popover[hidden] {
  display: none;
}

.account-popover__group {
  display: grid;
  gap: 2px;
}

.account-popover__group[hidden] {
  display: none;
}

.account-popover__email {
  margin: 0 0 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  word-break: break-all;
}

.account-popover__item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.account-popover__item:hover {
  background: var(--page);
  color: var(--blue-dark);
}

.account-popover__item.is-primary {
  background: var(--blue);
  color: #fff;
}

.account-popover__item.is-primary:hover {
  background: var(--blue-dark);
  color: #fff;
}

/* Tier 2 — primary nav rail. */
.nav-rail {
  display: flex;
  align-items: center;
  gap: var(--space-24);
  min-height: 42px;
  padding: 0 max(24px, calc((100vw - 1480px) / 2 + 24px));
  border-top: 1px solid var(--line);
  background: #fff;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-rail::-webkit-scrollbar {
  display: none;
}

.nav-rail a {
  position: relative;
  color: #475164;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  padding: 12px 0;
  transition: color .15s ease;
}

.nav-rail a:hover {
  color: var(--blue);
}

.nav-rail a.active {
  color: var(--blue);
}

.nav-rail a.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
}

/* Mobile-only assets are display:none on desktop. */
.menu-toggle,
.mobile-menu {
  display: none;
}

.text-button,
.primary-button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}

.text-button {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--blue);
}

.primary-button {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
}

/* Phase G3 — single hero. Total height capped to keep the lot grid
 * partially visible above the fold on a 1440×900 viewport. */
.intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 240px;
  max-height: 320px;
  margin: 16px auto 12px;
  width: min(calc(100% - 64px), 1480px);
  padding: 28px 56px;
  overflow: hidden;
  color: #fff;
  background: #1b1d22;
  border-radius: 16px;
  box-shadow: 0 18px 55px rgb(23 32 51 / 12%);
}

.intro > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 590px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #7fc1ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro h1 {
  margin: 0;
  max-width: 620px;
  color: #fff;
  font-size: clamp(34px, 3.6vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

.intro p:not(.eyebrow) {
  max-width: 540px;
  margin: 14px 0 0;
  color: rgb(255 255 255 / 82%);
  font-size: 15px;
  line-height: 1.5;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-top: 18px;
  padding: 0 22px 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgb(11 99 182 / 22%);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.hero-cta:hover {
  background: var(--blue-dark);
  box-shadow: 0 10px 24px rgb(11 99 182 / 30%);
  transform: translateY(-1px);
}

.hero-cta svg {
  width: 22px;
  height: 22px;
}

.hero-art {
  position: relative;
  align-self: stretch;
  min-height: 220px;
}

.hero-orb {
  position: absolute;
  right: -96px;
  bottom: -140px;
  width: min(580px, 58vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(255 255 255 / 6%);
}

.hero-art > svg {
  position: absolute;
  right: -22px;
  bottom: -72px;
  z-index: 1;
  width: min(620px, 50vw);
  height: auto;
}

.hero-art path,
.hero-art rect,
.hero-art circle {
  stroke: rgb(0 0 0 / 22%);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hero-art text {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  stroke: none;
}

.hero-art .auction-card,
.hero-art .pallet-stack,
.hero-art .bid-bubble {
  transform-box: fill-box;
  transform-origin: center;
}

.hero-art .auction-card {
  filter: drop-shadow(0 22px 24px rgb(0 0 0 / 24%));
  animation: heroFloat 6s ease-in-out infinite;
}

.hero-art .card-a {
  animation-delay: -1.4s;
}

.hero-art .card-b {
  animation-delay: -3s;
}

.hero-art .card-c {
  animation-delay: -4.5s;
}

.hero-art .pallet-stack {
  filter: drop-shadow(0 18px 20px rgb(0 0 0 / 28%));
  animation: heroLift 7s ease-in-out infinite;
}

.hero-art .bid-bubble {
  filter: drop-shadow(0 12px 16px rgb(0 0 0 / 24%));
  animation: bidPulse 3.4s ease-in-out infinite;
}

.hero-art .bubble-two {
  animation-delay: -1.7s;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

@keyframes heroLift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

@keyframes bidPulse {
  0%,
  100% {
    opacity: 0.82;
    transform: translateY(0) scale(1);
  }

  50% {
    opacity: 1;
    transform: translateY(-10px) scale(1.04);
  }
}

/* Phase G3 — slim trust strip. Sits as a thin one-line strip directly
 * above the marketplace grid. Muted on purpose so the lot grid wins
 * focus the moment the hero ends. Visual weight reduced from a card
 * (border + radius + 16px font) to a hairline rule (12px font, no
 * border, ghost background) so it reads as a transition between hero
 * and grid rather than a 4th band. */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--admin-space-5);
  width: min(calc(100% - 64px), 1480px);
  margin: 0 auto var(--admin-space-3);
  padding: 8px var(--admin-space-4);
  border: 0;
  border-top: 1px solid transparent;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--admin-space-2);
  white-space: nowrap;
}

.trust-item svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--blue-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 720px) {
  .trust-strip {
    gap: var(--admin-space-3);
    padding: var(--admin-space-2) var(--admin-space-3);
    font-size: 12px;
  }

  .trust-item svg {
    width: 16px;
    height: 16px;
  }
}

.status-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px max(32px, calc((100vw - 1480px) / 2 + 32px));
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.status-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.status-right {
  margin-left: auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #4a5568;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.pill.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.pill span {
  color: var(--muted);
  font-weight: 900;
}

.bid-pill {
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 600;
}

.bid-pill[data-count="0"] span {
  color: #94a3b8;
  font-weight: 700;
}

.bid-pill:not([data-count="0"]).winning {
  border-color: #b9ddcf;
  background: var(--green-soft);
  color: var(--green);
}

.bid-pill:not([data-count="0"]).losing {
  border-color: #f2bbb5;
  background: var(--red-soft);
  color: var(--red);
}

.bid-pill:not([data-count="0"]).watching {
  border-color: #efd9a0;
  background: var(--yellow-soft);
  color: var(--yellow);
}

.bid-pill:not([data-count="0"]) span {
  color: currentColor;
}

.marketplace {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 24px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px 32px 48px;
}

.filters {
  position: sticky;
  top: 18px;
  align-self: start;
  max-height: calc(100vh - 36px);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  scrollbar-gutter: stable;
}

.filter-state {
  position: sticky;
  top: -18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -16px -16px 0;
  padding: 16px 16px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.filter-state strong {
  font-size: 18px;
}

.filter-state button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.filters section {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.filters section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.2;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  min-height: 32px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
}

.chip::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: transparent;
}

.chip:hover {
  border-color: var(--line-strong);
  background: #f9fafb;
}

.chip.appears::before,
.chip.gently::before { background: var(--green); }

.chip.used::before,
.chip.heavy::before,
.chip.easy::before { background: var(--yellow); }

.chip.major::before { background: var(--red); }

.chip.mixed::before { background: #94a3b8; }

.chip.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.chip.active::before { background: rgba(255, 255, 255, 0.6); }

.quick-actions {
  display: grid;
  gap: 8px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.quick-action .icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.quick-action.active {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.checklist {
  display: grid;
  gap: 10px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #344054;
  font-size: 14px;
  line-height: 1.25;
}

.check-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--blue);
}

.count {
  margin-left: auto;
  min-width: 42px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f4f8;
  color: #5b6678;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.content {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 88px 178px;
  gap: 12px;
  margin-bottom: 16px;
}

/* Phase G2 — when the search input lives in the utility bar (the
 * primary case on the homepage now), the toolbar carries the
 * pickup-location filter, view-toggle, and sort. Layout pushes sort
 * to the right and lets the pickup filter take the remaining space. */
.toolbar.toolbar-no-search {
  grid-template-columns: minmax(220px, 1fr) 88px 178px;
  align-items: center;
  justify-content: end;
}

.toolbar.toolbar-no-search .sort-wrap {
  justify-self: end;
}

.pickup-filter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: #475569;
}

.pickup-filter[hidden] {
  display: none;
}

.pickup-filter__label {
  font-weight: 700;
  white-space: nowrap;
}

.pickup-filter__select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.pickup-filter__pin {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  color: #d61e7d;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pickup-filter select {
  padding: 6px 28px 6px 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  appearance: none;
  cursor: pointer;
}

.pickup-filter__chev {
  position: absolute;
  right: 0;
  width: 14px;
  height: 14px;
  pointer-events: none;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 768px) {
  .pickup-filter {
    width: 100%;
  }
  .toolbar.toolbar-no-search {
    grid-template-columns: 1fr;
  }
}

.search input,
.view-toggle,
.sort {
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
}

.search input {
  width: 100%;
  padding: 0 14px;
  color: var(--ink);
  font-size: 14px;
  outline: 0;
}

.search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(11 99 182 / 12%);
}

.view-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.view-toggle button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #a2acb9;
}

.view-toggle .selected {
  background: var(--blue-soft);
  color: var(--blue);
}

.sort {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.sort-wrap {
  position: relative;
}

.sort-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 10;
  width: 246px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 38px rgb(23 32 51 / 14%);
}

.sort-menu::before {
  position: absolute;
  top: -7px;
  right: 28px;
  width: 13px;
  height: 13px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  background: #fff;
  content: "";
  transform: rotate(45deg);
}

.sort-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  text-align: left;
}

.sort-menu button:hover,
.sort-menu button.active {
  background: #eef6ff;
  color: var(--blue-dark);
}

.sort-menu hr {
  height: 1px;
  margin: 4px 8px;
  border: 0;
  background: #eef2f7;
}

.results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.results-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
}

.results-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

#resultCount {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.auction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.filters::-webkit-scrollbar,
.auction-grid::-webkit-scrollbar {
  width: 10px;
}

.filters::-webkit-scrollbar-track,
.auction-grid::-webkit-scrollbar-track {
  background: #eef2f7;
  border-radius: 999px;
}

.filters::-webkit-scrollbar-thumb,
.auction-grid::-webkit-scrollbar-thumb {
  background: #b7c4d3;
  border: 2px solid #eef2f7;
  border-radius: 999px;
}

.filters::-webkit-scrollbar-thumb:hover,
.auction-grid::-webkit-scrollbar-thumb:hover {
  background: #8fa3ba;
}

.card {
  overflow: hidden;
  min-height: 390px;
  background: #fff;
  border: 1px solid #d6e0ec;
  border-radius: 16px;
  box-shadow: none;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.card:hover {
  border-color: #96bde8;
  box-shadow: 0 16px 36px rgb(23 32 51 / 12%);
  transform: translateY(-2px);
}

.card.is-watching {
  border-color: #fbbf24;
  box-shadow: 0 0 0 1px #fde68a inset;
}

.card-watching-pill {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #1f2937;
  color: #fde68a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-watching-pill::before {
  content: "★";
  color: #fbbf24;
}

.product-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 190px;
  padding: 32px 12px 12px;
  background: #fff;
}

.product-art svg {
  width: min(94%, 260px);
  height: 145px;
  stroke-width: 1.7;
}

.product-art img {
  width: min(96%, 270px);
  height: 145px;
  object-fit: contain;
}

.product-art .fill {
  fill: currentColor;
  stroke: none;
}

.art-wood {
  color: #9a7652;
}

.art-black {
  color: #282a2e;
}

.art-red {
  color: #c34444;
}

.art-tan {
  color: #b88b5f;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 0;
  padding: 4px 8px;
  border: 1px solid rgb(11 99 182 / 18%);
  border-radius: 999px;
  background: #eef6ff;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 6px 14px rgb(23 32 51 / 8%);
}

.badge.gently {
  border-color: rgb(22 128 95 / 18%);
  background: var(--green-soft);
  color: var(--green);
}

.badge.used,
.badge.heavy {
  border-color: rgb(154 107 0 / 18%);
  background: var(--yellow-soft);
  color: var(--yellow);
}

.badge.mixed {
  border-color: rgb(11 99 182 / 18%);
  background: #f1f6fc;
  color: #35506e;
}

.badge.demo {
  position: static;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 3px 8px;
  border-color: rgb(180 35 24 / 28%);
  background: #fff1ee;
  color: #b42318;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: none;
}

.demo-banner {
  margin: 12px 16px 0;
  padding: 10px 14px;
  border: 1px solid rgb(180 35 24 / 28%);
  border-radius: 10px;
  background: #fff5f3;
  color: #6b1a13;
  font-size: 12px;
  line-height: 1.5;
}

.demo-banner strong {
  color: #b42318;
}

.bid-cta-waitlist {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid rgb(180 35 24 / 35%);
  border-radius: 10px;
  background: #b42318;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.bid-cta-waitlist:hover {
  background: #9b1c12;
}

.card-body {
  padding: 0 12px 12px;
}

.lot-meta {
  margin-bottom: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.title {
  display: -webkit-box;
  min-height: 54px;
  margin: 0 0 10px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #172033;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.34;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0;
  border: 0;
}

.amz-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -2px 0 10px;
}

.amz-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
}

.amz-pill.amz-verified {
  background: #eaf3ff;
  color: #0b63b6;
  border: 1px solid #c6dcf3;
}

.amz-pill.amz-prime {
  background: #00a8e1;
  color: #fff;
  border: 1px solid #0089b5;
}

.amz-pill.amz-discount {
  background: #fff0e6;
  color: #b94a08;
  border: 1px solid #f3c8aa;
}

.price-block {
  display: grid;
  gap: 3px;
}

.price-label {
  display: none;
}

.bid {
  color: var(--blue);
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.retail {
  color: #8a8f99;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: line-through;
}

.login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  padding: 0 10px;
  border: 1px solid #bdd9fb;
  border-radius: 8px;
  background: linear-gradient(180deg, #f4f9ff 0%, #e8f3ff 100%);
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.login svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 10px;
  color: #4b5565;
  font-size: 12px;
  font-weight: 850;
}

.meta .tag {
  margin-left: auto;
}

.tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
}

/* "You're winning" / "You've been outbid" ribbon. Pinned to the top-left
   of .product-art so it sits beside the existing condition badge without
   colliding with it (badge is left:10px). Only renders when
   item.myStatus is set, so anonymous and never-bid lots are unchanged. */
.lot-status {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 14px rgb(23 32 51 / 10%);
  white-space: nowrap;
}

.lot-status.winning {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgb(22 128 95 / 22%);
}

.lot-status.outbid {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgb(180 35 24 / 22%);
}

/* Price-anchor: % off retail next to the strikethrough retail value. */
.discount-badge {
  display: inline-block;
  margin-top: 2px;
  padding: 2px var(--admin-space-2);
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Social proof bid count on the meta line. */
.bid-count {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.bid-count.empty {
  color: var(--muted);
  font-weight: 800;
}

/* Time-left urgency colors. data-urgency is set on .lot-time at render
   time and refreshed on every countdown tick. */
.lot-time[data-urgency="amber"] {
  color: var(--yellow);
  font-weight: 900;
}

.lot-time[data-urgency="red"] {
  color: var(--red);
  font-weight: 900;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% { opacity: 1; }
  50%  { opacity: 0.55; }
}

.empty {
  grid-column: 1 / -1;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 18px;
  text-align: center;
}

.auction-grid.compact {
  grid-template-columns: 1fr;
}

.auction-grid.compact .card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 0;
}

.auction-grid.compact .product-art {
  height: 100%;
  min-height: 220px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.modal-open {
  overflow: hidden;
}

.modal[hidden],
.how-modal[hidden],
.product-modal[hidden] {
  display: none;
}

.modal,
.how-modal,
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(10 18 32 / 58%);
}

.how-modal {
  padding: 32px;
  overflow-y: auto;
  background: rgb(10 18 32 / 62%);
}

.product-modal {
  padding: 32px;
  overflow-y: auto;
  background: rgb(10 18 32 / 62%);
}

.modal-card {
  position: relative;
  width: min(100%, 430px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgb(0 0 0 / 28%);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #5f6b7a;
  font-size: 28px;
  line-height: 1;
}

.modal-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
}

.modal-card p:not(.modal-kicker) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

/* Phase A6 — onboarding gate dialog. Native <dialog>, mirrors the
   admin cancelLotDialog pattern: borderless, rounded, soft shadow,
   tinted backdrop. Inputs reuse the auth-form sizing so the form
   feels familiar to anyone who's hit the auth modal. */
.onboarding-dialog {
  width: min(100%, 460px);
  padding: 24px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 70px rgb(0 0 0 / 28%);
}
.onboarding-dialog::backdrop { background: rgb(10 18 32 / 58%); }
.onboarding-title { margin: 0 0 6px; font-size: 20px; }
.onboarding-note { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.onboarding-form { display: grid; gap: 12px; }
.onboarding-form label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.onboarding-form label > span { font-weight: 600; }
.onboarding-form input[type="text"],
.onboarding-form input[type="tel"] {
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
.onboarding-fieldset {
  display: grid;
  gap: 8px;
  margin: 4px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.onboarding-fieldset legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.onboarding-row {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.8fr;
  gap: 8px;
}
.onboarding-terms {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
}
.onboarding-terms input { margin-top: 2px; }
.onboarding-status {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  min-height: 1.2em;
}
.onboarding-status.is-error { color: #b91c1c; }
.onboarding-status.is-success { color: #047857; }
.onboarding-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.onboarding-form [data-onboarding-missing] input,
.onboarding-form [data-onboarding-missing] {
  /* Visual nudge for fields the server flagged as missing. The data
     attribute is toggled on by app.js when the 412 details payload
     names that field — so the buyer's eye lands on what's actually
     blocking the bid rather than scanning every field. */
  outline: 2px solid #fcd34d;
  outline-offset: 2px;
  border-radius: 6px;
}

.how-dialog {
  width: min(100%, 1320px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 26px 80px rgb(0 0 0 / 30%);
}

.how-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.how-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.05;
}

.how-close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: #475164;
  font-size: 32px;
  line-height: 1;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.how-step {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  align-items: center;
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.how-art {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 150px;
  color: var(--ink);
}

.how-art svg {
  width: 220px;
  height: 150px;
  stroke: currentColor;
  stroke-width: 2;
}

.step-dot {
  width: 22px;
  height: 22px;
  margin: 10px 0 14px;
  border-radius: 50%;
  background: var(--blue);
}

.how-step h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.how-step p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.how-footnote {
  margin-top: auto;
  padding-top: 18px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.how-footnote--accent {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fdf2f8;
  color: #be185d;
  font-weight: 700;
}

.how-footnote--accent::before {
  content: "✓";
  font-weight: 900;
}

.product-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(340px, 1.2fr);
  gap: 32px;
  width: min(100%, 960px);
  padding: 44px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 26px 80px rgb(0 0 0 / 30%);
}

.product-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: #475164;
  font-size: 32px;
  line-height: 1;
}

.product-media {
  display: grid;
  align-content: center;
  gap: 34px;
  min-width: 0;
}

.product-main-image {
  display: grid;
  place-items: center;
  min-height: 430px;
  border-radius: 8px;
  background: #fff;
}

.product-main-image svg {
  width: min(100%, 430px);
  height: auto;
}

.product-main-image img {
  width: min(100%, 460px);
  max-height: 430px;
  object-fit: contain;
}

.product-thumbs {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.thumb {
  display: grid;
  place-items: center;
  width: 86px;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  opacity: 0.72;
}

.thumb.active {
  border-color: var(--blue);
  opacity: 1;
}

.thumb svg {
  width: 62px;
  height: 62px;
}

.thumb img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.product-info {
  min-width: 0;
  padding: 0;
}

.product-info h2 {
  margin: 0 48px 14px 0;
  color: #1f2937;
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 700;
  line-height: 1.25;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  color: #667085;
  font-size: 14px;
}

.product-tags span + span {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.detail-condition {
  padding: 4px 10px;
  border: 1px solid #b9ddcf;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.detail-condition.used,
.detail-condition.heavy {
  border-color: #efd9a0;
  background: var(--yellow-soft);
  color: var(--yellow);
}

.detail-condition.mixed {
  border-color: var(--line-strong);
  background: #eef2f7;
  color: #5f6b7a;
}

.product-size {
  margin: 14px 0 0;
  color: #64748b;
  font-size: 14px;
}

.pickup-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 16px;
  color: #475164;
  font-size: 14px;
}

.pickup-line svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
  flex: 0 0 auto;
}

.detail-accordion {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.detail-accordion details {
  border-bottom: 1px solid var(--line);
}

.detail-accordion details:last-child {
  border-bottom: 0;
}

.detail-accordion summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 16px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  color: #1f2937;
}

.detail-accordion summary::-webkit-details-marker { display: none; }

.detail-accordion summary:hover {
  background: #f8fafc;
}

.detail-accordion summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.detail-accordion summary span {
  color: #1f2937;
  font-size: 16px;
  font-weight: 600;
}

.detail-accordion summary small {
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-accordion summary svg {
  width: 18px;
  height: 18px;
  color: #94a3b8;
  transition: transform .2s ease;
}

.detail-accordion details[open] > summary svg {
  transform: rotate(180deg);
}

.detail-accordion .detail-body {
  padding: 0 16px 16px;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}

.bid-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  max-height: 320px;
  overflow-y: auto;
}

.bid-history-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 14px;
}

.bid-history-row.is-winning {
  background: #ecfdf5;
  outline: 1px solid #a7f3d0;
}

.bid-history-bidder {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1f2937;
  font-weight: 600;
}

.bid-history-proxy {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e0e7ff;
  color: #4338ca;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.bid-history-amount {
  color: #0f172a;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bid-history-row.is-winning .bid-history-amount {
  color: #047857;
}

.bid-history-when {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.detail-bid-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 24px;
  border-radius: 10px;
  background: linear-gradient(115deg, var(--blue), #0a4f99);
  color: #fff;
}

.detail-bid-card div {
  display: grid;
  gap: 6px;
}

.detail-bid-card span {
  font-size: 16px;
  font-weight: 850;
}

.detail-bid-card strong {
  font-size: 48px;
  line-height: 1;
}

.detail-bid-card small {
  color: rgb(255 255 255 / 72%);
  font-size: 16px;
  text-decoration: line-through;
}

.detail-register {
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid #fff;
  border-radius: 6px;
  background: #fff;
  color: var(--blue-dark);
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.help-center {
  max-width: 980px;
  margin: 0 auto;
  padding: 64px 32px 80px;
}

.faq-clean .help-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 0 28px;
  text-align: center;
}

.faq-clean .help-hero .eyebrow {
  color: var(--blue);
}

.faq-clean .help-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 70px);
  line-height: 0.98;
}

.faq-clean .help-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.faq-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 6px auto 34px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 14px 34px rgb(23 32 51 / 8%);
  backdrop-filter: blur(14px);
}

.faq-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  color: #475164;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.faq-tabs a:hover {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.help-articles {
  display: grid;
  gap: 16px;
}

.faq-section {
  scroll-margin-top: 96px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(23 32 51 / 5%);
}

.faq-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 24px 12px;
}

.faq-section-title span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 950;
}

.faq-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
}

.faq-section details {
  border-top: 1px solid var(--line);
}

.faq-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 0 24px;
  color: #263245;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
  cursor: pointer;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3f6fa;
  color: var(--blue);
  font-size: 18px;
  content: "+";
}

.faq-section details[open] summary {
  color: var(--blue-dark);
}

.faq-section details[open] summary::after {
  content: "-";
}

.faq-section p {
  max-width: 760px;
  margin: -4px 64px 20px 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.faq-section a {
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}

.faq-section a:hover {
  text-decoration: underline;
}

.link-section {
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.help-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 24px 24px;
}

.help-link-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.help-link-grid a:hover {
  border-color: #a9bfd7;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.site-footer {
  max-width: 1480px;
  margin: 36px auto 0;
  padding: 0 32px 34px;
  color: #475164;
}

.footer-shell {
  border-top: 1px solid var(--line);
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding: 34px 0 26px;
}

.footer-brand-block {
  flex: 0 1 450px;
}

.footer-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
}

.footer-brand strong {
  color: var(--blue);
}

.footer-brand-block p,
.footer-contact p {
  max-width: 410px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.footer-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #475164;
  font-size: 12px;
  font-weight: 900;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 1;
  max-width: 760px;
  gap: 34px;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 11px;
}

.footer-column h2 {
  margin: 0 0 4px;
  color: #8a94a6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-column a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--blue);
}

.footer-contact {
  padding: 0;
  border: 0;
  background: transparent;
}

.footer-contact p {
  margin-top: 0;
}

.footer-contact p + p {
  margin-top: 8px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 0;
  background: transparent;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.basic-page {
  max-width: 980px;
  min-height: 56vh;
  margin: 0 auto;
  padding: 70px 32px 80px;
}

.basic-page .eyebrow {
  color: var(--blue);
}

.basic-page h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
}

.basic-lead {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.basic-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.basic-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.basic-card h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
}

.basic-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.contact-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 32px 84px;
}

.contact-hero {
  max-width: 820px;
  margin: 0 auto 46px;
  text-align: center;
}

.contact-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(54px, 8vw, 92px);
  line-height: 0.95;
}

.contact-hero p {
  margin: 26px auto 0;
  color: #475164;
  font-size: 24px;
  line-height: 1.45;
}

.contact-form {
  display: grid;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
  padding: 58px 64px 62px;
  background: #fff;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 42px;
}

.contact-form label {
  display: grid;
  gap: 12px;
  color: #263245;
  font-size: 18px;
  font-weight: 850;
}

.contact-form label strong {
  color: var(--red);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  outline: 0;
  background: #f8fafc;
  color: var(--ink);
  font-size: 16px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.contact-form input,
.contact-form select {
  height: 58px;
  padding: 0 24px;
}

.contact-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #263245 50%),
    linear-gradient(135deg, #263245 50%, transparent 50%);
  background-position:
    calc(100% - 28px) 52%,
    calc(100% - 18px) 52%;
  background-size:
    10px 10px,
    10px 10px;
  background-repeat: no-repeat;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
  border-radius: 28px;
  padding: 16px 24px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgb(11 99 182 / 12%);
}

.contact-hours {
  margin-top: 12px;
  color: #063b57;
}

.contact-hours h2 {
  margin: 0 0 16px;
  color: #063b57;
  font-size: 20px;
  line-height: 1.25;
}

.contact-hours p {
  margin: 3px 0;
  font-size: 20px;
  line-height: 1.25;
}

.form-consent {
  margin: -2px 0 0;
  color: #063b57;
  font-size: 16px;
  line-height: 1.45;
}

.contact-submit {
  justify-self: start;
  min-height: 48px;
  padding: 0 24px;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.admin-page {
  display: grid;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  padding: 68px 32px 84px;
}

.admin-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgb(23 32 51 / 6%);
}

.admin-panel .eyebrow {
  color: var(--blue);
}

.admin-panel h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
}

.admin-panel h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 24px;
}

.admin-panel p {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.upload-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  margin-top: 28px;
}

.upload-box {
  display: grid;
  gap: 8px;
  flex: 1 1 360px;
  color: #263245;
  font-size: 14px;
  font-weight: 850;
}

.upload-box input {
  width: 100%;
  min-height: 46px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #f8fafc;
}

.upload-result {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #475164;
  font-weight: 800;
}

.upload-result.success {
  border-color: #b9ddcf;
  background: var(--green-soft);
  color: var(--green);
}

.upload-result.error {
  border-color: #f2bbb5;
  background: var(--red-soft);
  color: var(--red);
}

.upload-result a,
.sample-panel a {
  color: var(--blue);
  font-weight: 900;
}

.sample-panel pre {
  overflow-x: auto;
  margin: 16px 0;
  padding: 16px;
  border-radius: 8px;
  background: #f3f6fa;
  color: #263245;
  font-size: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .topbar-utility {
    gap: 12px;
    padding: 8px 20px;
  }

  .nav-rail {
    padding: 0 20px;
  }

  .nav-rail a.active::after {
    display: none;
  }

  .intro {
    grid-template-columns: 1fr;
    min-height: 0;
    max-height: none;
    padding: 32px 36px;
  }

  .hero-art {
    min-height: 260px;
  }

  .hero-art > svg {
    right: 0;
    width: min(640px, 82vw);
  }

  .hero-orb {
    right: 0;
    width: min(560px, 82vw);
  }

  .marketplace {
    grid-template-columns: 260px minmax(0, 1fr);
    padding: 20px;
  }

  .toolbar {
    grid-template-columns: 1fr 88px;
  }

  .sort,
  .sort-wrap {
    grid-column: 1 / -1;
  }

  .auction-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Keep all 4 steps on one row at the medium breakpoint too — only
     the very narrow rule below collapses to 1 column. BuyWander's
     storefront uses the same single-row layout. */
  .how-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-dialog {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 44px 24px 28px;
  }

  .product-info {
    padding-top: 0;
  }

  .help-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 92px;
  }

  /* Phase G2 mobile (≤820px). Topbar collapses to two stacked rows:
   *  Row 1: brand + status badge + cart + bell + hamburger.
   *  Row 2: full-width search input.
   * The nav rail is hidden — its links move into the mobile flyout
   * alongside status entries and account actions. */
  .topbar {
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .topbar-utility {
    flex-wrap: wrap;
    gap: 8px;
    min-height: 0;
    padding: 8px 14px;
  }

  .brand {
    font-size: 24px;
  }

  .utility-search {
    order: 3;
    flex: 1 0 100%;
    max-width: none;
    height: 40px;
  }

  .utility-actions {
    flex: 0 0 auto;
    margin-left: auto;
    gap: 6px;
  }

  /* Hide desktop-only utility chrome on mobile — surfaces in flyout. */
  .account-menu {
    display: none;
  }

  .nav-rail {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
  }

  .menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 14px;
    left: 14px;
    z-index: 31;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 42px rgb(23 32 51 / 16%);
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu-section {
    display: grid;
    gap: 4px;
  }

  .mobile-menu-section + .mobile-menu-section {
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .mobile-menu-section[hidden] {
    display: none;
  }

  .mobile-menu-section__label {
    margin: 2px 0 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .mobile-menu-section a {
    padding: 12px 12px;
    border-radius: 9px;
    color: #263245;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-menu-section a:hover {
    background: var(--blue-soft);
    color: var(--blue-dark);
  }

  .mobile-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .mobile-status-row[hidden] {
    display: none;
  }

  .mobile-status-row.is-winning { color: var(--green); }
  .mobile-status-row.is-losing { color: var(--red); }
  .mobile-status-row.is-watching { color: var(--yellow); }

  .mobile-status-row__count {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--page);
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
  }

  .mobile-menu-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .mobile-menu-actions .text-button,
  .mobile-menu-actions .primary-button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }

  .intro h1 {
    font-size: 32px;
  }

  .intro {
    width: calc(100% - 28px);
    margin: 12px auto;
    padding: 24px 20px;
  }

  .intro p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-cta {
    width: 100%;
    justify-content: center;
  }

  .hero-art {
    min-height: 190px;
  }

  .hero-art > svg {
    right: -38px;
    bottom: -48px;
    width: 420px;
  }

  .status-strip {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 14;
    padding: 12px 10px calc(12px + env(safe-area-inset-bottom));
    overflow: visible;
    background: rgb(255 255 255 / 96%);
    border-top: 1px solid var(--line);
    border-bottom: 0;
    box-shadow: 0 -12px 30px rgb(23 32 51 / 13%);
  }

  .status-right {
    margin-left: 0;
  }

  .status-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .pill {
    justify-content: space-between;
    min-width: 0;
    min-height: 48px;
    gap: 6px;
    padding: 0 10px;
    font-size: 12px;
  }

  .pill span {
    display: grid;
    place-items: center;
    min-width: 28px;
    height: 26px;
    border: 2px solid currentColor;
    border-radius: 999px;
    font-size: 16px;
  }

  .marketplace {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 14px 10px 16px;
  }

  .filters {
    display: none;
  }

  .content {
    display: block;
  }

  .toolbar {
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 10px;
    margin: 0 -10px 12px;
    padding: 12px 10px;
    background: linear-gradient(110deg, var(--blue), #0a4f99);
  }

  /* Phase G2 — toolbar lost the in-toolbar search; on mobile, just
   * keep the sort control flush right. */
  .toolbar.toolbar-no-search {
    grid-template-columns: 52px;
    justify-content: end;
    background: transparent;
    padding: 0;
    margin: 0 0 12px;
  }

  .search {
    min-width: 0;
  }

  .search input {
    height: 52px;
    border-radius: 999px;
    padding: 0 16px;
    font-size: 16px;
  }

  .view-toggle {
    display: none;
  }

  .sort-wrap {
    grid-column: auto;
  }

  .sort {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    color: var(--blue-dark);
    box-shadow: 0 8px 20px rgb(10 18 32 / 18%);
  }

  .sort span {
    display: none;
  }

  .sort svg {
    width: 24px;
    height: 24px;
  }

  .sort-menu {
    position: fixed;
    top: 118px;
    right: 12px;
    z-index: 18;
    width: min(248px, calc(100vw - 24px));
    max-height: calc(100vh - 228px);
    overflow-y: auto;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgb(10 18 32 / 18%);
  }

  .sort-menu::before {
    top: -7px;
    right: 22px;
    width: 14px;
    height: 14px;
  }

  .sort-menu button {
    min-height: 34px;
    padding: 8px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 850;
  }

  .sort-menu hr {
    margin: 4px 8px;
    background: #eef2f7;
  }

  .results-heading {
    display: none;
  }

  #resultCount {
    display: inline-block;
    margin-top: 8px;
  }

  .auction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding-right: 0;
  }

  .card {
    min-height: 0;
    border-radius: 8px;
  }

  .card:hover {
    transform: none;
  }

  .product-art {
    height: 165px;
    padding: 28px 12px 10px;
  }

  .product-art svg {
    width: 100%;
    height: 124px;
  }

  .product-art img {
    width: 100%;
    height: 124px;
  }

  .badge {
    top: 0;
    left: 0;
    border-top-left-radius: 7px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    font-size: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .title {
    min-height: 44px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.35;
  }

  .price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 0;
    border: 0;
  }

  .price-label {
    display: none;
  }

  .bid {
    color: var(--blue);
    font-size: 24px;
  }

  .retail {
    color: #8a8f99;
    font-size: 16px;
    text-decoration: line-through;
  }

  .login {
    height: 50px;
    margin-top: 10px;
    border-color: #b9d7ff;
    background: var(--blue-soft);
    color: #1d5fd7;
    font-size: 16px;
    line-height: 1.2;
  }

  .meta {
    margin-top: 10px;
    font-size: 12px;
  }

  .tag {
    display: none;
  }

  .how-modal {
    padding: 16px;
  }

  .how-dialog {
    padding: 24px;
  }

  .how-header h2 {
    font-size: 32px;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .how-step {
    min-height: 0;
  }

  .product-modal {
    padding: 14px;
  }

  .product-dialog {
    min-height: 0;
    padding: 54px 16px 20px;
  }

  .product-main-image {
    min-height: 260px;
  }

  .product-info h2 {
    margin-right: 0;
    font-size: 24px;
  }

  .product-tags {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-tags span + span {
    padding-left: 0;
    border-left: 0;
  }

  .pickup-line {
    align-items: flex-start;
    font-size: 18px;
  }

  .detail-accordion summary {
    grid-template-columns: 1fr auto;
    padding: 12px 14px;
  }

  .detail-accordion summary small {
    grid-column: 1 / -1;
  }

  .detail-bid-card {
    align-items: stretch;
    flex-direction: column;
  }

  .help-center {
    padding: 38px 16px 58px;
  }

  .faq-clean .help-hero {
    padding: 10px 0 24px;
    text-align: left;
  }

  .faq-clean .help-hero h1 {
    font-size: 32px;
  }

  .faq-clean .help-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .faq-tabs {
    position: static;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    margin-bottom: 24px;
    border-radius: 12px;
  }

  .faq-section {
    border-radius: 10px;
  }

  .faq-section-title {
    padding: 16px 16px 10px;
  }

  .faq-section h2 {
    font-size: 24px;
  }

  .faq-section summary {
    align-items: flex-start;
    min-height: 58px;
    padding: 14px 16px;
    font-size: 16px;
  }

  .faq-section p {
    margin: -2px 56px 16px 16px;
  }

  .help-link-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 16px;
  }

  .site-footer {
    display: block;
    padding: 28px 16px 34px;
  }

  .footer-main {
    flex-direction: column;
    gap: 28px;
    padding: 28px 0;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-contact {
    padding: 0;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0 0;
  }

  .basic-page {
    padding: 46px 16px 58px;
  }

  .basic-card-grid {
    grid-template-columns: 1fr;
  }

  .contact-page {
    padding: 42px 16px 58px;
  }

  .contact-hero {
    margin-bottom: 30px;
    text-align: left;
  }

  .contact-hero h1 {
    font-size: 48px;
  }

  .contact-hero p {
    margin-top: 16px;
    font-size: 16px;
  }

  .contact-form {
    gap: 24px;
    padding: 26px 16px 30px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-form label {
    font-size: 16px;
  }

  .contact-form input,
  .contact-form select {
    height: 52px;
  }

  .contact-hours h2 {
    font-size: 18px;
  }

  .contact-hours p,
  .form-consent {
    font-size: 16px;
  }

  .contact-submit {
    width: 100%;
  }

  .admin-page {
    padding: 38px 16px 58px;
  }

  .admin-panel {
    padding: 24px 16px;
  }

  .upload-form {
    display: grid;
  }
}

/* Auth + bid (Phase 1) */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.auth-form input[type="email"] {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d2dbe6;
  font-size: 16px;
  font-family: inherit;
}

.auth-form input[type="email"]:focus {
  outline: none;
  border-color: #0b63b6;
  box-shadow: 0 0 0 3px rgba(11, 99, 182, 0.18);
}

.auth-status {
  font-size: 14px;
  color: #5b6776;
  min-height: 1.2em;
  margin: 0;
}

.auth-status.is-error {
  color: #b42318;
}

.auth-status.is-success {
  color: #16805f;
}

/* Sign Up modal — full Create Account form. Replaces the old
   3-input waitlist capture. BuyWander-style two-col first/last name,
   stacked email/phone/handle/location, two checkboxes, big primary
   button. */
.signup-modal .signup-card {
  width: min(100%, 520px);
  padding: 32px 32px 28px;
}

.signup-modal {
  align-items: flex-start;
  padding-top: 56px;
  padding-bottom: 56px;
  overflow-y: auto;
}

.signup-title {
  margin: 0;
  text-align: center;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.signup-subtitle {
  margin: 10px 0 22px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.signup-form {
  display: grid;
  gap: 16px;
}

.signup-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.signup-field {
  display: grid;
  gap: 6px;
}

.signup-label {
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
}

.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="tel"],
.signup-form select {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d2dbe6;
  background: #fff;
  font-size: 16px;
  font-family: inherit;
  color: #0f172a;
}

.signup-form input:focus,
.signup-form select:focus {
  outline: none;
  border-color: #0b63b6;
  box-shadow: 0 0 0 3px rgba(11, 99, 182, 0.18);
}

.signup-help {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}

.signup-phone {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: stretch;
  border: 1px solid #d2dbe6;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.signup-phone-prefix {
  display: grid;
  place-items: center;
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  border-right: 1px solid #d2dbe6;
}

.signup-phone input[type="tel"] {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.signup-phone:focus-within {
  border-color: #0b63b6;
  box-shadow: 0 0 0 3px rgba(11, 99, 182, 0.18);
}

.signup-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.45;
}

.signup-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #d61e7d;
}

.signup-checkbox a {
  color: #0b63b6;
  font-weight: 700;
  text-decoration: underline;
}

.signup-submit {
  margin-top: 4px;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, #ec4899, #d61e7d);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}

.signup-submit:hover {
  filter: brightness(1.05);
}

.signup-submit:active {
  transform: translateY(1px);
}

.signup-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
}

@media (max-width: 520px) {
  .signup-modal .signup-card {
    padding: 24px 20px;
  }
  .signup-row {
    grid-template-columns: 1fr;
  }
  .signup-title {
    font-size: 26px;
  }
}

.auth-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-actions[hidden] {
  display: none !important;
}

.auth-email {
  font-size: 14px;
  color: #172033;
  font-weight: 600;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bid-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: stretch;
  margin-top: 8px;
}

.bid-form input[type="number"] {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #d2dbe6;
  font-size: 16px;
  font-family: inherit;
  min-width: 0;
}

.bid-form input[type="number"]:focus {
  outline: none;
  border-color: #0b63b6;
  box-shadow: 0 0 0 3px rgba(11, 99, 182, 0.18);
}

.bid-form button {
  padding: 8px 14px;
  border-radius: 10px;
  border: 0;
  background: #0b63b6;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.bid-form button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.bid-feedback {
  font-size: 12px;
  margin: 4px 0 0;
  min-height: 1em;
  color: #5b6776;
}

.bid-feedback.is-error {
  color: #b42318;
}

.bid-feedback.is-success {
  color: #16805f;
}

/* Proxy ("Set max bid") field — rendered inside the lot detail dialog only.
   The .bid-form grid is `1fr auto`; spanning both columns lets the field
   tuck cleanly under the existing amount input + submit button without
   disturbing card layouts that don't render this block. */
.bid-form .bid-proxy-field {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.bid-form .bid-proxy-field .bid-proxy-label {
  font-size: var(--font-meta);
  color: var(--muted);
  font-weight: 500;
}

.bid-form .bid-proxy-field input[type="number"] {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #d2dbe6;
  font-size: 16px;
  font-family: inherit;
  min-width: 0;
  width: 100%;
}

.bid-form .bid-proxy-field input[type="number"]:focus {
  outline: none;
  border-color: #0b63b6;
  box-shadow: 0 0 0 3px rgba(11, 99, 182, 0.18);
}

.bid-form .bid-proxy-field .bid-proxy-help {
  font-size: var(--font-meta);
  color: var(--muted);
  line-height: 1.4;
}

.bid-proxy-status {
  font-size: var(--font-meta);
  margin: 4px 0 0;
  color: #16805f;
  font-weight: 500;
}

/* ================= JaxBid GCP/Firebase additions ================= */

/* Phase G3 — the legacy `.how-strip` markup was removed from index.html
 * (the 4-step "How JaxBid works" stepper is now a one-time dismissible
 * toast, `.welcome-stepper`, see below). The selector remains here as
 * a safety net so any cached HTML on staging still hides cleanly. */
.how-strip { display: none; }

/* Filter-rail quick-filter chips. Phase G2 moved these into the filter
 * sidebar as the first row above "Filters / Clear all". */
.quick-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 var(--admin-space-3);
  padding: 0;
}
.quick-chips button {
  border: 1px solid var(--line); background: #fff; color: #475164;
  border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.quick-chips button:hover {
  border-color: var(--line-strong); color: var(--ink); background: #f9fafb;
}
.quick-chips button.active {
  background: var(--blue); color: #fff; border-color: var(--blue);
}

/* Phase G3 — first-visit welcome stepper. Replaces the persistent
 * `.how-strip` band that previously sat above the hero. Shipped as a
 * dismissible toast anchored bottom-left so it never pushes the hero
 * out of the above-fold; persisted dismissal via
 * `localStorage.jaxbidWelcomeStepperDismissed=1`. */
.welcome-stepper {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 95;
  width: min(360px, calc(100vw - 32px));
  padding: 16px 18px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgb(23 32 51 / 18%);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}

.welcome-stepper.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.welcome-stepper[hidden] { display: none; }

.welcome-stepper__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.welcome-stepper__title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.welcome-stepper__close {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.welcome-stepper__close:hover {
  background: var(--page);
  color: var(--ink);
}

.welcome-stepper__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.welcome-stepper__steps li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.welcome-stepper__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.welcome-stepper__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.welcome-stepper__actions button {
  flex: 1;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.welcome-stepper__actions button.is-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

@media (max-width: 480px) {
  .welcome-stepper {
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
  }
}

/* Cart + bell buttons */
.cart-button, .bell-button {
  position: relative; padding: 6px 10px; font-size: 16px;
}
.cart-count, .notif-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  padding: 0 4px; border-radius: 8px; background: #b42318; color: #fff;
  font-size: 12px; line-height: 18px; text-align: center;
}

/* Footer legal row */
.footer-legal {
  border-top: 1px solid #2a3340; padding: 14px 0; display: flex;
  gap: 16px; justify-content: center; font-size: 12px;
}
.footer-legal a { color: #b9c4d3; text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }

/* Cookie consent banner — G4 redesign.
   Anchored bottom-right with max-width: 360px so it sits clear of the
   storefront grid + the lot detail modal's sticky bid panel. Vertical
   layout fits the smaller footprint comfortably; the dismiss X lets
   users hide it mid-flow without picking accept/reject. */
.cookie-banner {
  position: fixed; bottom: 16px; right: 16px; left: auto;
  max-width: 360px;
  background: #fff; border: 1px solid #cbd5e1; border-radius: 12px;
  padding: 16px 16px 14px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .18);
  display: flex; flex-direction: column; gap: 12px;
  z-index: 100;
}
.cookie-banner[hidden] { display: none; }

/* When any dialog is open the body carries .modal-open. Hide the
   cookie banner in that state so it never sits on top of the bid
   panel CTA on phones. The banner reappears when the modal closes. */
body.modal-open .cookie-banner { display: none; }
.cookie-banner > p {
  margin: 0;
  padding-right: 24px;
  font-size: 12px;
  line-height: 1.45;
  color: #334155;
}
.cookie-dismiss {
  position: absolute; top: 6px; right: 8px;
  width: 28px; height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.cookie-dismiss:hover { background: #f1f5f9; color: #1f2937; }
.cookie-dismiss:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 480px) {
  .cookie-banner {
    left: 12px; right: 12px; max-width: none;
  }
}

/* Mobile filter drawer (sticky bottom-sheet under 768px) */
@media (max-width: 768px) {
  .filters {
    position: fixed; left: 0; right: 0; bottom: 0;
    background: #fff; max-height: 70vh; overflow-y: auto;
    transform: translateY(calc(100% - 56px)); transition: transform .25s ease;
    border-top: 1px solid #cbd5e1; box-shadow: 0 -10px 30px rgba(15,23,42,.18);
    z-index: 50;
  }
  .filters.open { transform: translateY(0); }
  .filter-state { position: sticky; top: 0; background: #fff; }
}

/* Card flame badge + 60s flash */
.auction-card.is-hot::before {
  content: "🔥"; position: absolute; top: 8px; left: 8px;
  background: #fff7ed; border: 1px solid #f59e0b; padding: 2px 6px;
  border-radius: 999px; font-size: 12px;
}
.auction-card.is-final-minute .countdown {
  color: #b42318; font-weight: 700; animation: flashRed 1s steps(2) infinite;
}
@keyframes flashRed { 50% { color: #ef4444; } }

/* ----- Buyer pickup card (account → orders) ---------------------------
 * Renders inside each <li data-order-row> for orders where the server has
 * minted a pickup token. Additive only — never restyles the parent <li>. */
.pickup-card {
  width: 100%;
  margin-top: var(--admin-space-3);
  padding: var(--admin-space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: var(--admin-space-3);
}
.pickup-code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  word-break: break-all;
}
.pickup-qr {
  max-width: 240px;
  padding: var(--admin-space-2);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.pickup-qr canvas {
  display: block;
  width: 100%;
  height: auto;
}
.pickup-qr-fallback {
  margin: 0;
  font-size: var(--font-meta);
}
.pickup-location {
  margin: 0;
  font-size: var(--font-meta);
}
.pickup-actions {
  display: flex;
  flex-direction: row;
  gap: var(--admin-space-2);
  flex-wrap: wrap;
}
.pickup-pickedup {
  display: inline-flex;
  align-items: center;
  gap: var(--admin-space-1);
  color: var(--green);
  font-size: var(--font-meta);
  font-weight: 500;
}

/* Loop 3 — bid-activity pills now live in the global header so a
   returning bidder sees Winning / Losing / Watching without scrolling.
   Each pill ships with the `hidden` attribute and the JS pill-updater
   only un-hides it when the matching count > 0. */
.header-status-pills {
  display: flex;
  align-items: center;
  gap: var(--admin-space-2);
}

.header-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  background: var(--pill-neutral-bg);
  color: var(--pill-neutral-fg);
  white-space: nowrap;
  transition: filter 120ms ease;
}

.header-status-pill:hover { filter: brightness(0.97); }

.header-status-pill .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

.header-status-pill .count {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.header-status-pill.is-winning {
  background: var(--pill-success-bg);
  color: var(--pill-success-fg);
}

.header-status-pill.is-losing {
  background: var(--pill-danger-bg);
  color: var(--pill-danger-fg);
}

.header-status-pill.is-watching {
  background: var(--pill-info-bg);
  color: var(--pill-info-fg);
}

@media (max-width: 640px) {
  /* On narrow viewports the header is already crowded with the cart,
     bell, and auth actions — drop the text labels and keep just the
     dot + count so the pills stay glanceable without overflowing. */
  .header-status-pill .label { display: none; }
  .header-status-pill { padding: 4px 8px; }
}

@media (max-width: 480px) {
  /* On very narrow phones, hide the pill row entirely — the account
     page surfaces the same data in a roomier layout. */
  .header-status-pills { display: none; }
}

/* Loop 3 — anti-snipe helper text under the lot countdown. flex-basis
   forces a new line inside the wrapping .meta flex container so the
   subtitle sits directly below .lot-time instead of running inline
   beside .bid-count. Only rendered when the lot is in the final 5
   minutes so the average lot doesn't carry persistent meta noise. */
.countdown-helper {
  display: block;
  flex-basis: 100%;
  width: 100%;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}

/* ===========================================================================
 * Phase G — buyer experience polish
 * G1 real images, G5 card redesign, G6 modal redesign, G8 countdown
 * urgency, G9 skeleton/empty/error, G14 a11y. Kept at the bottom of the
 * file so cascade-order overrides earlier rules without touching them.
 * =========================================================================== */

/* --- G1 real product images ---------------------------------------------- */

.product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* LQIP — solid neutral background fades to transparent once the photo
     decodes and we set data-loaded on the <img>. */
  background-color: #eef2f7;
  transition: background-color 200ms ease;
}
.product-image[data-loaded="1"] { background-color: transparent; }
.product-image[data-failed="1"] { opacity: 0.3; }

/* Card thumbnail tile — the .product-art frame already constrains size.
   We drop the inner padding when a real photo is rendered so the image
   fills the tile cleanly. */
.product-art:has(.product-image) {
  padding: 28px 8px 8px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 60%);
}
.product-art .product-image {
  width: 100%;
  max-width: 280px;
  height: 150px;
  margin: 0 auto;
}

/* --- G5 card redesign ---------------------------------------------------- */

.card-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475164;
}
.card-meta-row .card-category {
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--blue-dark);
}
.card-meta-row .card-format { color: #64748b; }

.next-bid-hint {
  margin-top: 2px;
  color: #475164;
  font-size: 12px;
  font-weight: 800;
}

.quick-bid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  padding: 0 12px;
  border: 1px solid #b7d1ee;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    transform 100ms ease;
}
.quick-bid:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.quick-bid:active { transform: scale(0.98); }
.quick-bid--guest {
  background: #fff;
  color: var(--blue);
  border-style: dashed;
}

.watcher-count {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

/* Card hover lift — replaces the existing transform:translateY rule */
.card { transform-origin: center bottom; }
.card:hover .product-image { transform: scale(1.02); transition: transform 220ms ease; }
.card .product-image { transition: transform 220ms ease; }

/* --- G8 countdown urgency tokens + flash --------------------------------- */

:root {
  --urgency-cold: #475164;
  --urgency-warm: #0b63b6;
  --urgency-hot:  #b45309;
  --urgency-urgent: #b42318;
}

.lot-time[data-countdown-state="cold"]   { color: var(--urgency-cold); font-weight: 700; }
.lot-time[data-countdown-state="warm"]   { color: var(--urgency-warm); font-weight: 800; }
.lot-time[data-countdown-state="hot"]    { color: var(--urgency-hot);  font-weight: 900; }
.lot-time[data-countdown-state="urgent"] {
  color: var(--urgency-urgent);
  font-weight: 950;
  animation: pulse-urgent 1.2s ease-in-out infinite;
}

@keyframes pulse-urgent {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

/* Anti-snipe extension flash. Triggered by data-just-extended=true on
   the card; clears after 2s in JS so the keyframe runs once. */
.card[data-just-extended="true"] {
  animation: just-extended-flash 2s ease-out 1;
}
@keyframes just-extended-flash {
  0%   { box-shadow: 0 0 0 3px #16805f; border-color: #16805f; }
  100% { box-shadow: 0 16px 36px rgb(23 32 51 / 12%); border-color: #d6e0ec; }
}

/* --- G9 skeleton / empty / error ----------------------------------------- */

.card-skeleton {
  cursor: default;
  pointer-events: none;
}
.skeleton {
  background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 50%, #eef2f7 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s linear infinite;
  border-radius: 6px;
}
.skeleton-image {
  height: 190px;
  border-radius: 16px 16px 0 0;
}
.skeleton-body {
  display: grid;
  gap: 10px;
  padding: 14px 12px 16px;
}
.skeleton-line { height: 12px; }
.skeleton-line--short { width: 32%; }
.skeleton-line--mid   { width: 60%; }
.skeleton-line--long  { width: 100%; }
@keyframes skeleton-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.state-empty,
.state-error {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 60px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: center;
}
.state-empty h3,
.state-error h3 {
  margin: 0;
  color: #1f2937;
  font-size: 20px;
  font-weight: 800;
}
.state-empty p,
.state-error p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  max-width: 480px;
}
.state-illustration {
  width: 64px;
  height: 64px;
  color: #94a3b8;
}

/* --- G6 modal redesign --------------------------------------------------- */

/* Two-column layout at desktop widths; gallery left, sticky bid panel right.
   The existing .product-dialog rule handles the fallback single-column
   stack on narrow viewports — we override at >=1024px to add a third
   column for the bid panel. */
@media (min-width: 1024px) {
  .product-dialog {
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr) minmax(280px, 0.9fr);
    gap: 28px;
    width: min(100%, 1180px);
  }
  .product-bid-panel {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    position: sticky;
    top: 16px;
  }
}

.product-bid-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 12px 28px rgb(23 32 51 / 8%);
}
.bid-panel-countdown {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.bid-panel-countdown .lot-time {
  font-size: 18px;
}
.bid-panel-current {
  display: grid;
  gap: 4px;
}
.bid-panel-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bid-panel-amount {
  color: var(--blue);
  font-size: 32px;
  font-weight: 950;
  line-height: 1;
}
.bid-panel-min {
  color: #475164;
  font-size: 12px;
}
.bid-panel-min strong { color: #1f2937; }

/* Title clamp — show 2 lines, then offer a Show more toggle. */
.product-title-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.product-title-clamp.is-expanded {
  -webkit-line-clamp: unset;
  display: block;
}
.title-show-more {
  margin: 4px 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.title-show-more:hover { text-decoration: underline; }

/* MSRP triple-card. Shrinks to a stack under 600px. */
.msrp-block {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 16px;
}
@media (max-width: 600px) { .msrp-block { grid-template-columns: 1fr; } }
.msrp-card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}
.msrp-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.msrp-value {
  color: #1f2937;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}
.msrp-source {
  color: #94a3b8;
  font-size: 12px;
}

/* Gallery main image keyboard focus state — the click-to-zoom area. */
.product-main-image[role="button"] { cursor: zoom-in; }
.product-main-image[role="button"]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.product-thumbs .thumb {
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  background: #fff;
  transition: border-color 140ms ease, transform 140ms ease;
}
.product-thumbs .thumb:hover { transform: translateY(-1px); }

/* Pickup details inside the modal accordion */
.pickup-details .muted { color: #64748b; font-size: 12px; }
.pickup-details .pickup-line { margin-bottom: 8px; }

/* Proxy bid explainer popover */
.proxy-explain-trigger {
  margin-top: -4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
.proxy-explain-popover {
  margin-top: -8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  color: #475164;
  font-size: 12px;
  line-height: 1.5;
}
.proxy-explain-popover[hidden] { display: none; }
.proxy-explain-popover p { margin: 0; }

/* --- G1 lightbox --------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.86);
  padding: 32px;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #1f2937;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 999px;
}

/* --- G5 quick-bid popover ----------------------------------------------- */

.quick-bid-popover {
  position: absolute;
  z-index: 200;
  width: 280px;
  padding: 16px 16px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgb(15 23 42 / 18%);
}
.quick-bid-close {
  position: absolute;
  top: 4px; right: 6px;
  width: 26px; height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 24px;
  cursor: pointer;
}
.quick-bid-close:hover { background: #f1f5f9; color: #1f2937; }
.quick-bid-title {
  margin: 0 0 4px;
  color: #1f2937;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.quick-bid-current {
  margin: 0 0 10px;
  color: #475164;
  font-size: 12px;
}
.quick-bid-current strong { color: var(--blue); font-size: 16px; }
.quick-bid-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.quick-bid-form input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
}

/* --- G14 a11y helpers --------------------------------------------------- */

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Reduced-motion respect ---------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .lot-time[data-countdown-state="urgent"] { animation: none; }
  .skeleton { animation: none; }
  .card[data-just-extended="true"] { animation: none; }
  .card .product-image,
  .card:hover .product-image { transition: none; transform: none; }
}


/* ============================================================
 * Phase B — Toast surface + Watch heart
 * ============================================================
 * Toast root sits fixed bottom-right on desktop, bottom-center on
 * mobile. Each .toast slides in from the bottom with a 150ms
 * transform/opacity transition; the .toast--leaving class plays
 * the same transition in reverse before removal. Reduced-motion
 * is honored at the bottom of this section so motion-sensitive
 * users still see the toast appear (just without the slide).
 *
 * Color tokens reuse the existing pill scale so the toast palette
 * matches the rest of the storefront — no new variables needed.
 */
.toast-root {
  position: fixed;
  z-index: 1000;
  right: var(--admin-space-4);
  bottom: var(--admin-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--admin-space-2);
  pointer-events: none;
  max-width: 380px;
}
@media (max-width: 640px) {
  .toast-root {
    left: var(--admin-space-3);
    right: var(--admin-space-3);
    bottom: var(--admin-space-3);
    max-width: none;
    align-items: stretch;
  }
}
.toast {
  pointer-events: auto;
  background: var(--panel);
  color: var(--ink);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  padding: var(--admin-space-3) var(--admin-space-4);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--admin-space-2);
  align-items: center;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 150ms ease, transform 150ms ease;
}
.toast--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.toast--leaving {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
}
.toast__title {
  grid-column: 1 / 2;
  font-weight: 700;
  font-size: var(--font-body);
  color: var(--ink);
  line-height: var(--line-tight);
}
.toast__body {
  grid-column: 1 / 2;
  font-size: var(--font-meta);
  color: var(--muted);
  line-height: var(--line-comfy);
  margin-top: 2px;
}
.toast__action {
  grid-column: 2 / 3;
  grid-row: 1 / span 2;
  align-self: center;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.toast__action:hover { background: var(--blue-dark); }
.toast__close {
  grid-column: 3 / 4;
  grid-row: 1 / span 2;
  align-self: start;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
}
.toast__close:hover { color: var(--ink); }
.toast--info {
  border-left: 4px solid var(--blue);
}
.toast--success {
  border-left: 4px solid var(--green);
  background: var(--green-soft);
}
.toast--warning {
  border-left: 4px solid var(--yellow);
  background: var(--yellow-soft);
}
.toast--error {
  border-left: 4px solid var(--red);
  background: var(--red-soft);
}
@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: opacity 50ms linear;
    transform: none;
  }
  .toast--visible { transform: none; }
  .toast--leaving { transform: none; }
}

/* ----------- Watch heart toggle ------------------------------ */
.watch-heart {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-size: var(--font-meta);
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  transition: color 120ms ease, transform 120ms ease;
}
.watch-heart:hover {
  color: var(--red);
  transform: scale(1.05);
}
.watch-heart:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.watch-heart__icon {
  font-size: 16px;
  line-height: 1;
}
.watch-heart.is-watching {
  color: var(--red);
}
.watch-heart.is-watching .watch-heart__icon {
  color: var(--red);
}
.watch-heart__count {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  min-width: 12px;
  text-align: left;
}
.watch-heart__count:empty {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .watch-heart, .watch-heart:hover { transition: none; transform: none; }
}

/* --- Phase D/E: return modal + appointment actions --------------------- */

.return-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.return-modal {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  max-height: 90vh;
  overflow-y: auto;
}

.return-modal h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.return-modal textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  margin: 12px 0;
}

.return-photo-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}

.return-photo-dropzone.drag-active {
  border-color: #0b63b6;
  background: #eff6ff;
}

.return-photo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.return-photo-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
}

.return-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.return-photo-thumb button {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.return-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

.return-error {
  color: #b91c1c;
  margin-top: 8px;
}

.appointment-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* Phase G12 — mobile tap targets (≤720px). Per WCAG 2.5.5 / Apple HIG
 * /Material, every interactive control needs a 44×44px hit area on
 * touch. We only enforce on mobile (where touch is dominant) so the
 * desktop card UI keeps its denser meta-row buttons. Compact form
 * controls (search, type=email/text/tel/number) get bumped via
 * min-height; icon-only buttons get a min-width to match.
 *
 * .visually-hidden and aria-hidden controls are excluded — they're
 * read-only and shouldn't grow phantom hit boxes. */
@media (max-width: 720px) {
  button,
  a.text-button,
  a.primary-button,
  .text-button,
  .primary-button,
  input[type="email"],
  input[type="text"],
  input[type="tel"],
  input[type="search"],
  input[type="number"],
  input[type="password"],
  select,
  textarea {
    min-height: 44px;
  }
  button:not(.visually-hidden):not([aria-hidden="true"]) {
    min-width: 44px;
  }
  /* Skip min-width for text-bearing primary controls — text content
   * already pushes them well past 44px and a forced min-width creates
   * awkward gaps in flex toolbars. */
  button.text-button,
  button.primary-button,
  button.hero-cta,
  button.quick-bid {
    min-width: auto;
  }
}
