/* ------------------------------------------------------------------ tokens */
:root {
  --night: #1c2541;
  --night-2: #2a3560;
  --paper: #f3f4f1;
  --white: #ffffff;
  --ink: #1f2233;
  --ink-2: #5b6072;
  --line: #d6d9e0;
  --red: #c42d2d;
  --red-2: #a02222;
  --straw: #f1c453;
  --ok: #2c7a4b;
  --font-display:
    "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui,
    sans-serif;
  --font-body:
    "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 6px;
  --bidbar-h: 84px;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
}
body.has-bidbar {
  padding-bottom: calc(var(--bidbar-h) + env(safe-area-inset-bottom));
}
a {
  color: var(--night);
}
img {
  max-width: 100%;
  display: block;
}
button {
  font: inherit;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.inline {
  display: inline;
}
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
}
.page-title {
  font-size: 40px;
  margin: 20px 0 12px;
}
.section-title {
  font-size: 26px;
  margin: 28px 0 10px;
}
.section {
  margin-bottom: 8px;
}
.lede {
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0 0 16px;
}
.hint {
  color: var(--ink-2);
  font-size: 14px;
  margin: -6px 0 14px;
  max-width: 60ch;
}
.aside {
  color: var(--ink-2);
  margin-top: 18px;
}
.crumb {
  color: var(--ink-2);
  font-size: 14px;
  margin: 14px 0 0;
}
.narrow {
  max-width: 560px;
}
/* Form pages (sign in, create account, account, help, sell) sit centred on
   wide screens. Admin pages keep the column under the admin nav, left-aligned. */
main > .narrow {
  margin-left: auto;
  margin-right: auto;
}
.subnav ~ .narrow {
  margin-left: 0;
}
.page-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.page-head .page-title,
.page-head .section-title {
  flex: 1 1 auto;
}

/* ------------------------------------------------------------------ header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, #24325c 0%, var(--night) 100%);
  color: var(--white);
  border-bottom: 1px solid rgb(241, 0, 0);
  box-shadow: 0 2px 12px rgba(28, 37, 65, 0.28);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: 6px 16px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 27px;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--straw);
  flex: 0 0 auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px 13px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  background: transparent;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}
.nav-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-weight: 600;
}
.nav-live.is-live {
  background: var(--red);
  color: var(--white);
  font-weight: 600;
}
.nav-live.is-live:hover,
.nav-live.is-live[aria-current="page"] {
  background: var(--red-2);
}
.nav-live.is-live .dot {
  background: var(--white);
  margin: 0;
}
.nav-cta {
  border-color: rgba(255, 255, 255, 0.45);
  margin-left: 6px;
}
.nav-cta:hover,
.nav-cta[aria-current="page"] {
  background: var(--white);
  color: var(--night);
  border-color: var(--white);
}
.nav-signout {
  color: rgba(255, 255, 255, 0.55);
}
.nav-link[hidden] {
  display: none;
}
.nav-install {
  color: var(--straw);
}
/* Install prompts are for phones and tablets. A device with hover and a fine
   pointer is being driven by a mouse, so it's a desktop or laptop: the
   browser already offers install in its own address bar there. */
@media (hover: hover) and (pointer: fine) {
  .install,
  .nav-install {
    display: none !important;
  }
}

/* ----------------------------------------------------------- install nudge */
.install {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--straw);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0 0;
}
.install[hidden] {
  display: none;
}
.install-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex: 0 0 auto;
}
.install-body {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
  color: var(--ink-2);
}
.install-body b {
  color: var(--ink);
  font-size: 16px;
}
.install-actions {
  display: flex;
  gap: 6px;
}
.install[data-mode="ios"] [data-install],
.install[data-mode="ios"] [data-install-text="prompt"] {
  display: none;
}
.install[data-mode="prompt"] [data-install-text="ios"] {
  display: none;
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 6px;
  vertical-align: 1px;
}

/* Hamburger (phones only). Three bars that fold into an X when open. */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  background: transparent;
  color: var(--white);
  flex: 0 0 auto;
  transition: background-color 0.15s ease;
}
.nav-toggle:hover,
.topbar.is-open .nav-toggle {
  background: rgba(255, 255, 255, 0.12);
}
.bun {
  position: relative;
  display: block;
  width: 24px;
  height: 18px;
  margin: 0 auto;
}
.bun span {
  position: absolute;
  left: 0;
  height: 3px;
  width: 24px;
  border-radius: 3px;
  background: currentColor;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1.2),
    top 0.22s ease,
    width 0.22s ease,
    opacity 0.18s ease,
    background-color 0.2s ease;
}
.bun span:nth-child(1) {
  top: 0;
}
.bun span:nth-child(2) {
  top: 7.5px;
  width: 17px;
}
.bun span:nth-child(3) {
  top: 15px;
}
.nav-toggle:hover .bun span:nth-child(2) {
  width: 24px;
}
.topbar.is-open .bun span:nth-child(1) {
  top: 7.5px;
  transform: rotate(45deg);
  background: var(--straw);
}
.topbar.is-open .bun span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}
.topbar.is-open .bun span:nth-child(3) {
  top: 7.5px;
  transform: rotate(-45deg);
  background: var(--straw);
}
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(12, 16, 32, 0.5);
  backdrop-filter: blur(1.5px);
}
.nav-scrim[hidden] {
  display: none;
}
@keyframes nav-in {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 759px) {
  .brand {
    font-size: 24px;
  }
  .brand-mark {
    width: 26px;
    height: 26px;
  }
  .topbar-inner {
    flex-wrap: nowrap;
  }
  .nav-toggle {
    display: block;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 31;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 0 8px;
    background: var(--night);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.18s ease,
      transform 0.18s ease,
      visibility 0s linear 0.18s;
  }
  .topbar.is-open .nav {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }
  /* Every row is a full-width band; rows alternate lighter and darker so
     each tab reads as its own stripe, with a thin line between them. */
  .nav > * {
    display: block;
    animation: nav-in 0.28s ease both;
    animation-play-state: paused;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav > :nth-child(odd) {
    background: rgba(255, 255, 255, 0.11);
    border-bottom: 1px solid rgba(255, 0, 0, 0.473);
  }
  .nav > :nth-child(even) {
    background: rgba(36, 86, 109, 0.22);
    border-bottom: 1px solid rgba(255, 0, 0, 0.473);
  }
  .topbar.is-open .nav > * {
    animation-play-state: running;
  }
  .nav > :nth-child(2) {
    animation-delay: 0.04s;
  }
  .nav > :nth-child(3) {
    animation-delay: 0.08s;
  }
  .nav > :nth-child(4) {
    animation-delay: 0.12s;
  }
  .nav > :nth-child(5) {
    animation-delay: 0.16s;
  }
  .nav > :nth-child(6) {
    animation-delay: 0.2s;
  }
  .nav > :nth-child(7) {
    animation-delay: 0.24s;
  }
  .nav > :nth-child(8) {
    animation-delay: 0.28s;
  }
  .nav-link {
    justify-content: flex-start;
    font-size: 19px;
    min-height: 54px;
    padding: 12px 20px;
    border-radius: 0;
    border: 0;
    width: 100%;
    color: var(--white);
    background: transparent;
  }
  .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
  }
  .nav-link[aria-current="page"] {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 5px 0 0 var(--straw);
  }
  .nav-live.is-live {
    background: var(--red);
  }
  .nav-form {
    margin: 0;
    padding: 0;
  }
  .nav-cta {
    justify-content: flex-start;
    margin: 0;
    color: var(--straw);
    font-weight: 600;
  }
  .nav-cta:hover,
  .nav-cta[aria-current="page"] {
    background: rgba(255, 255, 255, 0.16);
    color: var(--straw);
  }
  .nav-signout {
    color: rgba(255, 255, 255, 0.75);
  }
  body.nav-open {
    overflow: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bun span,
  .nav,
  .nav-toggle {
    transition: none;
  }
  .nav > * {
    animation: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .is-live .dot,
  .hero-live .dot,
  .panel-live .dot {
    animation: pulse 1.6s ease-in-out infinite;
  }
  @keyframes pulse {
    50% {
      opacity: 0.35;
    }
  }
}

/* ----------------------------------------------------------------- flashes */
.flashes {
  margin-top: 12px;
}
.flash {
  padding: 10px 14px;
  border-left: 4px solid var(--night);
  background: var(--white);
  margin-bottom: 8px;
}
.flash-ok {
  border-color: var(--ok);
}
.flash-error {
  border-color: var(--red);
}
.flash-warn {
  border-color: var(--straw);
}

/* -------------------------------------------------------------------- hero */
.hero {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.hero-kicker {
  color: var(--ink-2);
  margin: 0 0 6px;
  font-weight: 500;
}
.hero-title {
  font-size: clamp(38px, 8vw, 64px);
  max-width: 16ch;
}
.hero-sub {
  color: var(--ink-2);
  max-width: 52ch;
  margin: 12px 0 18px;
}
.hero-clock {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 9vw, 56px);
  margin: 8px 0 0;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.hero-clock:empty {
  display: none;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-live {
  background: var(--night);
  color: var(--white);
  margin: 0 -16px;
  padding: 24px 16px 28px;
  border: 0;
}
.hero-live .hero-kicker,
.hero-live .hero-sub {
  color: rgba(255, 255, 255, 0.75);
}

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
}
.btn-red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-red:hover {
  background: var(--red-2);
  border-color: var(--red-2);
}
.btn-navy {
  background: var(--night);
  color: var(--white);
  border-color: var(--night);
}
.btn-ghost {
  background: transparent;
  color: var(--night);
  border-color: var(--line);
}
.hero-live .btn-ghost,
.board .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-big {
  min-height: 52px;
  font-size: 19px;
  padding: 10px 24px;
}
.btn-small {
  min-height: 34px;
  font-size: 14px;
  padding: 4px 12px;
}
.btn-block {
  width: 100%;
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.linklike:focus-visible {
  outline: 3px solid var(--straw);
  outline-offset: 2px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ------------------------------------------------------------------- chips */
.chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: middle;
}
.chip-live,
.chip-sold {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.chip-pending_accept {
  background: var(--straw);
  border-color: var(--straw);
  color: var(--ink);
}
.chip-queued,
.chip-scheduled {
  border-color: var(--night);
  color: var(--night);
}
.chip-passed,
.chip-withdrawn,
.chip-finished {
  background: var(--line);
  border-color: var(--line);
}
.chip-awaiting_payment {
  border-color: var(--straw);
  color: var(--ink);
}
.chip-cancelled,
.chip-paused {
  background: var(--line);
  border-color: var(--line);
  text-decoration: line-through;
}
.chip-paused {
  text-decoration: none;
}
.chip-next {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.muted {
  color: var(--ink-2);
  font-weight: 400;
}

/* -------------------------------------------------------- next-auction board */
.next-board {
  background: var(--night);
  color: var(--white);
  margin: 12px -16px 0;
  padding: 22px 16px 26px;
}
.next-board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.next-board-kicker {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
}
.next-board .chip-night {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.next-board-title {
  font-size: clamp(36px, 8vw, 62px);
  margin: 8px 0 16px;
  max-width: 24ch;
}
.next-board-at {
  display: block;
  color: var(--straw);
  font-size: 0.62em;
  margin-top: 2px;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 560px;
}
.cd-unit {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 12px 4px 10px;
  text-align: center;
  min-width: 0;
}
.cd-unit b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 9vw, 60px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd-unit span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 6px;
}
.countdown.is-now .cd-unit b {
  color: var(--straw);
}
.countdown-now {
  color: var(--straw);
  font-weight: 600;
  margin: 12px 0 0;
}
.next-board-sub {
  color: rgba(255, 255, 255, 0.75);
  max-width: 54ch;
  margin: 18px 0 18px;
}
.next-board .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ------------------------------------------------------------- dashboard */
.dash-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  align-items: start;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.card-title {
  font-size: 24px;
  margin: 0 0 10px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.card-title-note {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.card-foot {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--ink-2);
}
.card-foot a {
  font-weight: 600;
}

/* ---------------------------------------------------------------- listings */
.night {
  margin-top: 26px;
}
.night-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}
.night-head-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.night-title {
  font-size: 26px;
  margin: 0;
}
.night-empty {
  color: var(--ink-2);
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sched-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sched-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.sched-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.sched-day {
  flex: 0 0 58px;
  text-align: center;
  background: var(--paper);
  border-radius: 8px;
  padding: 6px 0 7px;
  line-height: 1.05;
}
.sched-day b {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}
.sched-day i {
  display: block;
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  margin: 1px 0;
}
.sched-day small {
  display: block;
  font-size: 12px;
  color: var(--ink-2);
}
.sched-row.is-next .sched-day {
  background: var(--night);
  color: var(--white);
}
.sched-row.is-next .sched-day b,
.sched-row.is-next .sched-day small {
  color: rgba(255, 255, 255, 0.75);
}
.sched-row.is-live .sched-day {
  background: var(--red);
  color: var(--white);
}
.sched-row.is-live .sched-day b,
.sched-row.is-live .sched-day small {
  color: rgba(255, 255, 255, 0.8);
}
.sched-row.is-cancelled {
  opacity: 0.6;
}
.sched-row.is-cancelled .sched-title {
  text-decoration: line-through;
}
.sched-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.sched-title {
  font-weight: 600;
  text-decoration: none;
}
a.sched-title:hover {
  text-decoration: underline;
}
.sched-meta {
  color: var(--ink-2);
  font-size: 15px;
}
.rhythm {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ink-2);
  font-size: 15px;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.rhythm-mark {
  font-size: 18px;
  color: var(--red);
  line-height: 1;
}
.rules {
  margin: 0;
  display: grid;
  gap: 8px;
}
.rules div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.rules div:first-child {
  border-top: 0;
  padding-top: 0;
}
.rules dt {
  color: var(--ink-2);
  flex: 0 0 auto;
}
.rules dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

/* ------------------------------------------------------- schedule form */
.schedule-panel {
  max-width: 640px;
}
.schedule-panel .card-title {
  margin-bottom: 14px;
}
fieldset.field {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
  min-width: 0;
}
fieldset.field legend {
  font-weight: 600;
  margin-bottom: 6px;
  padding: 0;
}
.day-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.day-toggle {
  position: relative;
}
.day-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.day-toggle span {
  display: inline-flex;
  min-width: 58px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  background: var(--white);
  user-select: none;
}
.day-toggle input:checked + span {
  background: var(--night);
  border-color: var(--night);
  color: var(--white);
}
.day-toggle input:focus-visible + span {
  outline: 3px solid var(--straw);
  outline-offset: 2px;
}
.switch {
  align-items: flex-start;
}
.switch input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  flex: 0 0 auto;
}
.switch small {
  color: var(--ink-2);
  font-size: 14px;
}

/* ------------------------------------------------------------------ board */
.live {
  margin: 0 -16px;
}
.live > .section,
.live > .lot-info {
  padding: 0 16px;
}
/* A compact strip: lot info and bid on the left, the clock on the right, so
   the photos start within the first screen. */
.board {
  background: var(--night);
  color: var(--white);
  padding: 12px 16px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "info clock" "bid clock";
  column-gap: 14px;
  row-gap: 6px;
  align-items: center;
}
.board-info {
  grid-area: info;
  min-width: 0;
}
.board-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
}
.board-lotnum {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}
.board .chip-status {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  font-size: 12px;
  padding: 1px 8px;
}
.board[data-status="pending_accept"] .chip-status {
  background: var(--straw);
  border-color: var(--straw);
  color: var(--ink);
}
.board[data-status="between"] .chip-status,
.board[data-status="sold"] .chip-status,
.board[data-status="passed"] .chip-status {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.board-title {
  font-size: clamp(24px, 6vw, 32px);
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}
.board-clockwrap {
  grid-area: clock;
  text-align: right;
}
.board-clock {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 17vw, 84px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.board[data-urgent="1"] .board-clock {
  color: var(--straw);
}
.board[data-status="pending_accept"] .board-clock {
  color: var(--straw);
}
.board-clock-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  margin-top: 2px;
}
.board-bid {
  grid-area: bid;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  min-width: 0;
}
.board-bid-label {
  color: rgba(255, 255, 255, 0.7);
  flex-basis: 100%;
  font-weight: 500;
  font-size: 13px;
}
.board-bid-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
}
.board-bid-meta {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}
.board-you {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--red);
  font-weight: 600;
  font-size: 14px;
}
.board-you[hidden] {
  display: none;
}
.board-you[data-tone="ok"] {
  background: var(--ok);
}
.board-you[data-tone="warn"] {
  background: var(--straw);
  color: var(--ink);
}

/* ----------------------------------------------------------------- gallery */
.gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}
.gallery-item {
  flex: 0 0 86%;
  max-width: 560px;
  scroll-snap-align: center;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.lot-page .gallery {
  margin: 12px -16px 4px;
}

/* ------------------------------------------------------------------- facts */
.lot-info {
  padding-top: 14px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 16px;
  margin: 12px 0;
}
.facts div {
  border-top: 2px solid var(--line);
  padding-top: 6px;
}
.facts dt {
  color: var(--ink-2);
  font-size: 14px;
}
.facts div {
  min-width: 0;
}
.facts dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
/* Account page: one row per detail, so long emails never crowd the phone. */
.facts-rows {
  display: grid;
  grid-template-columns: 5.5em minmax(0, 1fr);
  gap: 8px 14px;
  margin: 12px 0 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts-rows dt {
  color: var(--ink-2);
}
.facts-rows dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.facts dd.big {
  font-family: var(--font-display);
  font-size: 30px;
}
.lot-desc {
  white-space: pre-line;
  max-width: 62ch;
}
.lot-page-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-card {
  background: var(--white);
  border: 2px solid var(--night);
  border-radius: 8px;
  padding: 16px;
  margin: 18px 0;
}
.contact-card h2 {
  font-size: 26px;
  margin-bottom: 6px;
}
.contact-card p {
  margin: 6px 0;
}

/* ------------------------------------------------------------------- lists */
.lot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lot-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  align-items: flex-start;
}
.lot-row:last-child {
  border-bottom: 1px solid var(--line);
}
.lot-row.is-current {
  background: rgba(196, 45, 45, 0.06);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
}
.lot-row-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink-2);
  min-width: 28px;
  line-height: 1.2;
}
.lot-row-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
  flex: 0 0 64px;
}
.lot-row-thumb-empty {
  background: var(--line);
  display: block;
}
.lot-row-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.lot-row-title {
  font-weight: 600;
  text-decoration: none;
  font-size: 18px;
}
.lot-row-title:hover {
  text-decoration: underline;
}
.lot-row-meta {
  color: var(--ink-2);
  font-size: 15px;
}
.lot-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
/* A whole row as one link (listings): the entire card is the tap target. */
.lot-list > li > .lot-row-link {
  border-top: 1px solid var(--line);
}
.lot-list > li:last-child > .lot-row-link {
  border-bottom: 1px solid var(--line);
}
.lot-row-link {
  text-decoration: none;
  color: inherit;
  align-items: center;
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: var(--radius);
  transition: background-color 0.12s ease;
}
.lot-row-link:hover,
.lot-row-link:focus-visible {
  background: var(--white);
}
.lot-row-link:hover .lot-row-title {
  text-decoration: underline;
}
.lot-row-link .lot-row-thumb {
  width: 84px;
  height: 84px;
  flex-basis: 84px;
}
.lot-row-go {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  color: var(--ink-2);
}
.lot-row-go svg {
  width: 100%;
  height: 100%;
}

/* ------------------------------------------------------------ photo viewer */
.viewer {
  margin: 12px 0 4px;
}
.viewer-stage {
  position: relative;
  background: var(--night);
  border-radius: 10px;
  overflow: hidden;
}
.viewer-main {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.viewer-main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
  background: #0f1426;
}
.viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  padding: 0;
  background: rgba(255, 255, 255, 0.88);
  color: var(--night);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.viewer-nav:hover {
  background: var(--white);
}
.viewer-nav[hidden] {
  display: none;
}
.viewer-nav svg {
  width: 24px;
  height: 24px;
}
.viewer-prev {
  left: 10px;
}
.viewer-next {
  right: 10px;
}
.viewer-count {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.viewer-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.viewer-thumb {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.12s ease;
}
.viewer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.viewer-thumb:hover {
  opacity: 1;
}
.viewer-thumb.is-active {
  border-color: var(--red);
  opacity: 1;
}
.live-photos {
  padding: 12px 16px 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 16, 32, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] {
  display: none;
}
.lightbox img {
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
}
.lightbox .viewer-nav {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  width: 52px;
  height: 52px;
}
.lightbox .viewer-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}
.lightbox .viewer-prev {
  left: 14px;
}
.lightbox .viewer-next {
  right: 14px;
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}
.lightbox .viewer-count {
  bottom: 16px;
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  font-size: 15px;
}
body.has-lightbox {
  overflow: hidden;
}
.plain-list {
  padding-left: 18px;
  color: var(--ink-2);
}
.row-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.row-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.row-list li:last-child {
  border-bottom: 1px solid var(--line);
}
.row-list li > span:last-child {
  color: var(--ink-2);
  font-size: 15px;
}
.row-form {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.row-form input {
  min-height: 38px;
  font-size: 16px;
}
.row-form input.short {
  width: 70px;
}

.bid-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bid-list li {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.bid-list li:last-child {
  border-bottom: 1px solid var(--line);
}
.bid-list li span:first-child {
  font-weight: 600;
}
.bid-list li span:last-child {
  color: var(--ink-2);
}
.bid-list li.mine {
  color: var(--red);
}
.bid-list li.empty {
  display: block;
  color: var(--ink-2);
}

/* -------------------------------------------------------------------- bidbar */
.bidbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 18px rgba(28, 37, 65, 0.1);
}
.bidbar-bidder {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.btn-quick {
  flex: 1 1 auto;
  font-size: 19px;
}
.bidbar-custom {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}
.bidbar-custom input {
  width: 110px;
  min-height: 44px;
  font-size: 17px;
  padding: 6px 10px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}
.bidbar-msg {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--ink-2);
  min-height: 1.2em;
}
.bidbar-msg[data-tone="error"] {
  color: var(--red);
}
.bidbar-msg[data-tone="ok"] {
  color: var(--ok);
}
.bidbar-note {
  margin: 0 0 8px;
}
.bidbar-actions {
  display: flex;
  gap: 8px;
}
.bidbar-actions .btn {
  flex: 1 1 auto;
}
.bidbar-signin {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.bidbar-signin span {
  flex: 1 1 100%;
  color: var(--ink-2);
  font-size: 15px;
}

/* -------------------------------------------------------------------- forms */
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}
.field input:not([type="checkbox"]):not([type="file"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  font: inherit;
  font-size: 17px;
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input[type="file"] {
  font-size: 16px;
}
.field.has-error input,
.field.has-error select {
  border-color: var(--red);
}
.field .error {
  color: var(--red);
  font-size: 14px;
  margin: 4px 0 0;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
}
.agree .check {
  align-items: flex-start;
  margin-bottom: 6px;
}
.agree input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  flex: 0 0 auto;
}
.agree span {
  font-size: 15px;
}
.agree.has-error input {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}

/* ------------------------------------------------------- results fold */
.dash-col {
  display: grid;
  gap: 12px;
  align-content: start;
}
.results-fold summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 4px 10px;
  flex-wrap: wrap;
}
.results-fold .lot-row-thumb {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
}
.results-fold summary::-webkit-details-marker {
  display: none;
}
.results-fold summary::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 2px;
  align-self: center;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}
.results-fold[open] summary::before {
  transform: rotate(45deg);
}
.results-fold-link {
  font-weight: 600;
  color: var(--night);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.results-fold summary:hover .results-fold-link {
  color: var(--red);
}
.results-fold summary .muted {
  font-size: 15px;
}
.results-fold .lot-list {
  margin-top: 12px;
}

/* ------------------------------------------------------------------- terms */
.terms {
  max-width: 70ch;
}
.terms p,
.terms li {
  line-height: 1.55;
}
.terms > p:first-of-type {
  color: var(--ink-2);
  font-size: 15px;
}
.terms ul {
  padding-left: 22px;
  margin: 8px 0 14px;
}
.terms li {
  margin: 5px 0;
}
.terms .section-title {
  font-size: 24px;
  margin-top: 24px;
}
.footer a {
  color: var(--ink-2);
}
.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.photo-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}
.photo-preview img:first-child {
  outline: 3px solid var(--red);
}

/* -------------------------------------------------------------------- admin */
.subnav {
  display: flex;
  gap: 4px 18px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding: 10px 0 8px;
  font-weight: 500;
}
.subnav a {
  text-decoration: none;
  color: var(--ink-2);
  padding: 4px 0;
}
.subnav a[aria-current="page"] {
  color: var(--red);
  border-bottom: 3px solid var(--red);
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
}
.panel-live {
  border: 2px solid var(--red);
}
.panel h2 {
  font-size: 24px;
  margin-bottom: 6px;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.stat {
  border-top: 2px solid var(--night);
  padding-top: 6px;
}
.stat-link {
  text-decoration: none;
  color: inherit;
  border-top-color: var(--red);
}
.stat-link:hover .stat-label {
  text-decoration: underline;
}
.badge {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
  vertical-align: 1px;
}

/* ---------------------------------------------------------------- messages */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.msg {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 10px 0;
}
.msg.is-handled {
  opacity: 0.7;
}
.msg-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  font-size: 15px;
  color: var(--ink-2);
}
.msg-from b {
  color: var(--ink);
}
.msg-when {
  margin-left: auto;
}
.msg-lot {
  color: var(--ink-2);
  font-size: 15px;
  margin: 8px 0 0;
}
.msg-body {
  white-space: pre-line;
  margin: 10px 0 12px;
  max-width: 72ch;
}
.chip-topic-report {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.chip-topic-suggestion {
  border-color: var(--night);
  color: var(--night);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
}
.stat-label {
  color: var(--ink-2);
  font-size: 14px;
}
details.section summary {
  cursor: pointer;
  font-weight: 600;
  margin: 12px 0;
}

/* ------------------------------------------------------------------- footer */
.footer {
  margin-top: 40px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

/* ----------------------------------------------------------------- desktop */
@media (min-width: 760px) {
  .live {
    margin: 0;
  }
  .live > .section,
  .live > .lot-info {
    padding: 0;
  }
  .board {
    border-radius: 10px;
    padding: 16px 28px;
    margin-top: 16px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "info bid clock";
    column-gap: 32px;
  }
  .board-bid {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-width: 150px;
  }
  .board-bid-label {
    flex-basis: auto;
  }
  .board-bid-amount {
    font-size: 40px;
  }
  .board-clock {
    font-size: 84px;
  }
  .board-title {
    font-size: 34px;
  }
  .gallery {
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-top: 12px;
    padding: 12px;
  }
  .gallery-item {
    flex-basis: 48%;
  }
  .live-photos {
    padding: 0;
  }
  .viewer-main img {
    aspect-ratio: 16 / 10;
  }
  .viewer-thumb {
    flex-basis: 92px;
    width: 92px;
    height: 92px;
  }
  .hero-live {
    margin: 0;
    border-radius: 10px;
    padding: 32px;
    margin-top: 16px;
  }
  .next-board {
    margin: 16px 0 0;
    border-radius: 10px;
    padding: 30px 32px 32px;
  }
  .dash-grid {
    grid-template-columns: 3fr 2fr;
  }
  .card {
    padding: 20px;
  }
  .bidbar .wrap {
    max-width: 1040px;
  }
  .bidbar-custom input {
    width: 160px;
  }
  .field-row {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}
