/* App view — sits on top of styles.css tokens */

body { min-height: 100vh; }

[hidden] { display: none !important; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(7, 16, 9, 0.86);
  backdrop-filter: blur(14px);
}

.app-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}

.app-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.app-user__link {
  font-size: 0.82rem;
  color: var(--muted);
}
.app-user__link:hover { color: var(--ink); }

.app-user__name {
  font-size: 0.82rem;
  color: var(--ink);
  max-width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-user__pic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  object-fit: cover;
}

.app-user form { margin: 0; }

.app-section { padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }

.app-head { max-width: 720px; margin-bottom: 32px; }
.app-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.app-head .lede { margin-top: 16px; }

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.82rem;
  color: var(--muted);
}
.back-link:hover { color: var(--ink); }

/* ---------- dashboard ---------- */

.signin-card {
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 8% 0%, rgba(44, 122, 78, 0.4), transparent 62%),
    linear-gradient(180deg, rgba(17, 45, 29, 0.95), rgba(8, 22, 13, 0.98));
  max-width: 640px;
}
.signin-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.signin-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.app-panel {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(242, 238, 225, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  min-width: 0;
}
.app-panel--wide { margin-top: 16px; }
.app-panel--quiet { background: rgba(0, 0, 0, 0.18); }

.app-panel h2 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 16px;
}
.app-panel h3 { font-size: 1.2rem; margin-bottom: 8px; }

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.panel-head h2, .panel-head h3 { margin-bottom: 0; }
.panel-head--tight { margin-top: 20px; }

.stack { display: grid; gap: 12px; }

.field {
  display: grid;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(242, 238, 225, 0.14);
  background: rgba(0, 0, 0, 0.32);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}
.field input::placeholder { color: #5f7267; }

.form-hint {
  margin-top: 10px;
  font-size: 0.74rem;
  color: var(--muted-2);
  min-height: 1.1em;
}
.form-hint.is-error { color: #ffb4a2; }

.empty { font-size: 0.8rem; color: var(--muted-2); }

.auction-list { display: grid; gap: 10px; }
.auction-list--grid { grid-template-columns: repeat(3, 1fr); }

.auction-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid rgba(242, 238, 225, 0.08);
  background: rgba(0, 0, 0, 0.2);
}
.auction-item__id { min-width: 0; }
.auction-item__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.2;
  display: block;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.auction-item__meta { font-size: 0.72rem; color: var(--muted-2); margin-top: 3px; }
.auction-item .btn { flex: none; padding: 8px 14px; font-size: 0.76rem; border-radius: 9px; }

.status-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(242, 238, 225, 0.14);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: 2px;
  margin-left: 6px;
}
.status-tag--live { color: #b8f3cd; border-color: rgba(110, 231, 160, 0.35); background: rgba(110, 231, 160, 0.1); }
.status-tag--ended { color: #d8c6a4; border-color: rgba(224, 181, 103, 0.3); background: rgba(224, 181, 103, 0.08); }
.status-tag--draft { color: var(--muted); }

/* ---------- room ---------- */

.room-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.room-head__id { min-width: 0; }
.room-head .eyebrow { margin-bottom: 12px; }
.room-head .eyebrow.is-live,
.room-head .eyebrow.is-closed {
  display: inline-flex;
  align-items: center;
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}
.room-head .eyebrow.is-live {
  border: 1px solid rgba(122, 191, 154, 0.45);
  background: rgba(60, 138, 100, 0.18);
  color: #b9dcc7;
}
.room-head .eyebrow.is-closed {
  border: 1px solid rgba(242, 238, 225, 0.26);
  background: rgba(242, 238, 225, 0.07);
  color: #cfc9ba;
}
.room-head h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.room-head__meta { color: var(--muted-2); font-size: 0.82rem; margin-top: 8px; }

.room-head__aside {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-end;
  gap: 12px;
}

.room-totals {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 168px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.room-totals__title {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
}
.room-totals__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.room-totals__row .micro { font-size: 0.58rem; }
.room-totals__row b {
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.room-totals__row--mine b { color: var(--brass-strong); }

.room-code-card {
  flex: none;
  display: grid;
  justify-items: end;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(224, 181, 103, 0.05);
}
.room-code-card b {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.16em;
  color: var(--brass-strong);
  line-height: 1;
}
.room-code-card .form-hint { margin: 0; text-align: right; }

.room-page { padding: clamp(20px, 3vw, 32px) 0 clamp(56px, 8vw, 88px); }
.room-page > .wrap { max-width: 1320px; }

.room-page__grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.room-page__grid.is-live { grid-template-columns: 640px minmax(0, 1fr); }
.room-page__grid.is-ended { grid-template-columns: minmax(0, 1fr); }

.room-main { display: grid; gap: 16px; min-width: 0; }

.lots-rail {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 104px);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(242, 238, 225, 0.08);
  background: rgba(0, 0, 0, 0.24);
}

.lots-rail .panel-head { margin-bottom: 8px; }

.lots-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.lots-rail__list li {
  border-bottom: 1px dashed rgba(242, 238, 225, 0.06);
}
.lots-rail__list li:last-child { border-bottom: none; }
.lots-rail__list li.is-open .l-state { color: var(--live); }
.lots-rail__list li.is-sold { opacity: 0.72; }
.lots-rail__list li.is-sold .l-state { color: var(--brass); }
.lots-rail__list li.is-selected { background: rgba(224, 181, 103, 0.12); }
.lots-rail__list li.is-selected .l-name { color: var(--brass-strong); }

.lot-pick {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 10px 9px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lot-pick:hover { background: rgba(255, 255, 255, 0.05); }
.lot-pick:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }

.lots-rail .l-no {
  font-size: 0.66rem;
  color: #63766a;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.lots-rail .l-body { min-width: 0; }
.lots-rail .l-name {
  display: block;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lots-rail .l-state {
  display: block;
  margin-top: 2px;
  font-size: 0.64rem;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

/* live player table: name, Fargo, current bid, leading bidder */
.lots-rail__head {
  display: grid;
  grid-template-columns: minmax(0, 200px) 60px minmax(0, 1fr);
  gap: 8px;
  padding: 0 9px 8px;
  border-bottom: 1px solid rgba(242, 238, 225, 0.1);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.lots-rail__sort {
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.lots-rail__sort:nth-child(n + 2) { text-align: right; }
.lots-rail__sort:hover { color: var(--ink); }
.lots-rail__sort:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.lots-rail__sort.is-active { color: var(--brass); }
.lots-rail__sort[data-dir="asc"]::after { content: " \25B2"; font-size: 0.5rem; }
.lots-rail__sort[data-dir="desc"]::after { content: " \25BC"; font-size: 0.5rem; }

.lot-pick--live {
  grid-template-columns: minmax(0, 200px) 60px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  padding: 10px 9px;
  font-size: 0.76rem;
}
.lot-pick--live .l-who { display: grid; gap: 1px; min-width: 0; }
.lot-pick--live .l-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lot-pick--live .l-clock {
  font-size: 0.62rem;
  line-height: 1.2;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.lot-pick--live .l-clock.is-low { color: #ffb4a2; }
.lot-pick--live .l-clock.is-done { color: #63766a; }
.lot-pick--live .l-fargo {
  text-align: right;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.lot-pick--live .l-bid {
  text-align: right;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}
.lot-pick--live .l-leader {
  text-align: right;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lots-rail .l-state.is-low { color: #ffb4a2; }
.lots-rail .l-state.is-low::before { content: "\25cf  "; font-size: 0.55em; vertical-align: 1px; }

.room-missing { margin-top: 24px; }

.lot-panel { position: relative; }
.lot-name { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; }
.lot-meta { font-size: 0.78rem; color: var(--muted-2); margin-top: 4px; }

.lot-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lot-clock {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--live);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 160, 0.3);
  background: rgba(110, 231, 160, 0.08);
}
.lot-clock.is-low {
  color: #ffb4a2;
  border-color: rgba(255, 180, 162, 0.35);
  background: rgba(255, 180, 162, 0.08);
}

.lot-note {
  margin-top: 12px;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--muted-2);
}
.lot-note:empty { display: none; }

.lot-line {
  display: flex;
  gap: 36px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.lot-line b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.lot-leader { font-size: 1.05rem; }
.lot-leader.is-you { color: var(--live); }

.bid-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.bid-field { flex: 1 1 130px; }
.bid-row .btn { padding: 11px 16px; font-size: 0.82rem; border-radius: 10px; }
.bid-row .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.signin-inline {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}

.bid-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  max-height: 260px;
  overflow-y: auto;
}
.bid-history li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(242, 238, 225, 0.07);
  font-size: 0.8rem;
  color: var(--muted);
}
.bid-history li:last-child { border-bottom: none; }
.bid-history .b-amount { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.bid-history li.is-mine .b-amount,
.bid-history li.is-mine .b-name { color: var(--brass-strong); }
.bid-history .b-time { font-size: 0.68rem; color: #63766a; }

.owner-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.owner-actions .btn { padding: 10px 16px; font-size: 0.8rem; border-radius: 10px; }

.lot-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.open-form {
  margin-top: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.room-head .micro { display: block; }

/* end-of-auction settlement */
.settle__head,
.settle__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 90px 100px;
  gap: 12px;
  align-items: start;
}
.settle__head {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.settle__head span:nth-child(3),
.settle__head span:nth-child(4) { text-align: right; }
.settle__row {
  padding: 12px 0;
  border-bottom: 1px dashed rgba(242, 238, 225, 0.08);
}
.settle__row:last-child { border-bottom: none; }
.settle__who { color: var(--ink); font-weight: 600; }
.settle__items,
.settle__costs { display: grid; gap: 4px; }
.settle__items span { color: var(--brass); }
.settle__costs span {
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.settle__total {
  text-align: right;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.settle-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.settle-actions .micro { margin: 0; }
.settle__row--unsold { border-top: 1px solid var(--line-soft); }
.settle__row--unsold .settle__who { color: var(--muted); font-weight: 500; }
.settle__row--unsold .settle__items span { color: var(--muted-2); }
.settle__row--unsold .settle__costs span { color: var(--muted-2); }

@media (max-width: 640px) {
  .settle__head { display: none; }
  .settle__row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding: 12px 0;
  }
  .settle__who { grid-column: 1 / -1; }
  .settle__items { grid-column: 1; }
  .settle__costs { grid-column: 2; }
  .settle__total { grid-column: 1 / -1; }
}

.status-chip {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 2px 8px;
}
.status-chip.is-connected { color: #b8f3cd; border-color: rgba(110, 231, 160, 0.35); }
.status-chip.is-connecting { color: var(--chalk); border-color: rgba(126, 200, 255, 0.3); }
.status-chip.is-error { color: #ffb4a2; border-color: rgba(255, 180, 162, 0.3); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 80;
  max-width: min(92vw, 420px);
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 26, 16, 0.96);
  color: var(--ink);
  font-size: 0.8rem;
  box-shadow: 0 20px 40px -20px #000;
}
.toast.is-error { border-color: rgba(255, 180, 162, 0.4); color: #ffd7cd; }

/* ---------- responsive ---------- */

@media (max-width: 1240px) {
  .room-page__grid { grid-template-columns: 260px minmax(0, 1fr); }
  .room-page__grid.is-live { grid-template-columns: 520px minmax(0, 1fr); }
}

@media (max-width: 1024px) {
  .auction-list--grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .room-page__grid { grid-template-columns: 1fr; }
  .room-page__grid.is-live { grid-template-columns: 1fr; }
  .lots-rail { position: static; max-height: 300px; }
  .lots-rail__head,
  .lot-pick--live { grid-template-columns: minmax(0, 1fr) 60px minmax(0, 80px); }
}

@media (max-width: 760px) {
  .app-grid { grid-template-columns: 1fr; }
  .auction-list--grid { grid-template-columns: 1fr; }
  .room-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .room-head__aside { width: 100%; justify-content: flex-start; }
  .room-totals,
  .room-code-card { flex: 1 1 150px; width: auto; }
  .room-code-card { justify-items: start; }
  .room-code-card .form-hint { text-align: left; }
  .app-user__name { display: none; }
  .app-user__link { display: none; }
  .auction-item { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .lot-line { gap: 24px; }
  .bid-row .btn { flex: 1 1 100%; }
  .app-header__inner { height: 60px; }
}

/* ---------- account page ---------- */

.auth-wrap { max-width: 600px; }

.auth-card {
  padding: clamp(24px, 4vw, 38px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 8% 0%, rgba(44, 122, 78, 0.35), transparent 62%),
    linear-gradient(180deg, rgba(17, 45, 29, 0.95), rgba(8, 22, 13, 0.98));
}
.auth-card h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.auth-card .lede { margin-top: 10px; font-size: 0.92rem; }

.auth-forgot { margin: 14px 0 0; text-align: center; }

.auth-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-link:hover { color: var(--brass-strong); }

.auth-tabs {
  display: flex;
  gap: 4px;
  margin: 22px 0 20px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.24);
}
.auth-tabs button {
  flex: 1;
  padding: 9px 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
}
.auth-tabs button.is-active { background: rgba(224, 181, 103, 0.16); color: var(--brass-strong); }
.auth-tabs button:hover { color: var(--ink); }

.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.auth-signed { display: grid; gap: 12px; margin-top: 18px; justify-items: start; }
.auth-signed__line { color: var(--muted); font-size: 0.92rem; }
.auth-signed__line b { color: var(--ink); }
.auth-signed form { margin: 0; }

@media (max-width: 520px) {
  .auth-grid { grid-template-columns: 1fr; }
}

/* password reveal */

.password-field { position: relative; display: block; }
.password-field input { padding-right: 46px; }

.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
}
.password-toggle:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.password-toggle:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
.password-toggle svg { width: 18px; height: 18px; }
.password-toggle .eye-off { display: none; }
.password-toggle.is-on .eye { display: none; }
.password-toggle.is-on .eye-off { display: block; }

/* password strength */

.password-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: -4px;
}
.password-meter span {
  height: 4px;
  border-radius: 999px;
  background: rgba(242, 238, 225, 0.12);
  transition: background 0.2s var(--ease);
}
.password-meter.is-1 span:nth-child(-n+1) { background: #ff8f7a; }
.password-meter.is-2 span:nth-child(-n+2) { background: #e0b567; }
.password-meter.is-3 span:nth-child(-n+3) { background: #7ec8ff; }
.password-meter.is-4 span:nth-child(-n+4) { background: #6ee7a0; }

.password-hint {
  margin-top: -2px;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted-2);
}
.password-hint.is-strong { color: #b8f3cd; }

/* ---------- dashboard head + create dialog ---------- */

.app-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}
.app-head--row .app-head__copy { max-width: 640px; }
.app-head--row .btn { flex: none; }

.signin-card--compact {
  max-width: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  padding: 18px 22px;
  margin-bottom: 16px;
}
.signin-card--compact h2 { font-size: 1.15rem; margin: 0; }
.signin-card--compact p { margin: 0; flex: 1 1 280px; font-size: 0.86rem; }

.create-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 45, 29, 0.99), rgba(8, 22, 13, 0.99));
  color: var(--ink);
  box-shadow: 0 40px 90px -30px #000;
}
.create-dialog::backdrop { background: rgba(3, 8, 5, 0.72); backdrop-filter: blur(4px); }
.create-dialog form { padding: 24px; }
.create-dialog h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.dialog-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.dialog-close:hover { color: var(--ink); border-color: var(--line); }

@media (max-width: 760px) {
  .app-head--row { flex-direction: column; align-items: flex-start; }
  .app-head--row .btn { width: 100%; }
}

/* auction search */

.panel-head--search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.panel-head--search h2 { margin: 0; }

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 220px;
  max-width: 320px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted-2);
}
.search-field:focus-within { border-color: var(--brass); }
.search-field svg { width: 16px; height: 16px; flex: none; }
.search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  outline: none;
}
.search-field input::placeholder { color: #5f7267; }

/* segmented filter */

.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.28);
}
.segmented__btn {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-2);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}
.segmented__btn:hover { color: var(--ink); }
.segmented__btn.is-active { background: rgba(216, 177, 106, 0.16); color: var(--brass); }
.segmented__btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
/* filter tooltips */

.segmented__btn { position: relative; }

.segmented__tip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, -4px);
  width: max-content;
  max-width: 210px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: #0b1f14;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
  text-align: left;
  white-space: normal;
  box-shadow: 0 14px 30px -14px #000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 30;
}
.segmented__btn:first-child .segmented__tip { left: 0; transform: translate(0, -4px); }
.segmented__btn:last-child .segmented__tip { left: auto; right: 0; transform: translate(0, -4px); }

.segmented__btn.is-tip-open .segmented__tip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.segmented__btn:first-child.is-tip-open .segmented__tip,
.segmented__btn:last-child.is-tip-open .segmented__tip { transform: translate(0, 0); }


/* pagers */

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.pager__btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.pager__btn:hover:not(:disabled) { border-color: var(--brass); color: var(--brass); }
.pager__btn:disabled { opacity: 0.35; cursor: default; }
.pager__status {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.field textarea {
  width: 100%;
  min-height: 120px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(242, 238, 225, 0.14);
  background: rgba(0, 0, 0, 0.32);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  line-height: 1.5;
  resize: vertical;
}
.field textarea::placeholder { color: #5f7267; }
/* remove a player from a draft auction (X appears on hover) */

.lots-rail__list li { position: relative; }
.lots-rail__list li.has-remove .lot-pick { padding-right: 30px; }

.lot-remove {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.3);
  color: var(--muted-2);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.lots-rail__list li:hover .lot-remove,
.lots-rail__list li:focus-within .lot-remove { opacity: 1; }
.lot-remove:hover { border-color: #c9705f; color: #e6988a; }
.lot-remove:focus-visible { opacity: 1; outline: 2px solid var(--brass); outline-offset: 1px; }

@media (hover: none) {
  .lot-remove { opacity: 1; }
}

.confirm-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 24px;
}

.confirm-dialog .confirm-copy {
  margin: 4px 0 18px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .dialog-actions { flex-direction: column; }
  .dialog-actions .btn { width: 100%; }
}

/* add-players mode switch */

.add-mode {
  display: flex;
  align-items: center;
  gap: 10px;
}
.add-mode__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.switch {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.switch__track {
  display: block;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.switch__thumb {
  display: block;
  width: 16px;
  height: 16px;
  margin: 2px;
  border-radius: 50%;
  background: var(--muted-2);
  transition: transform 0.15s ease, background 0.15s ease;
}
.switch input:checked + .switch__track {
  border-color: rgba(216, 177, 106, 0.6);
  background: rgba(216, 177, 106, 0.25);
}
.switch input:checked + .switch__track .switch__thumb {
  transform: translateX(16px);
  background: var(--brass);
}
.switch input:focus-visible + .switch__track {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}



/* rules editor + display */

.rte {
  border: 1px solid rgba(242, 238, 225, 0.14);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
  overflow: hidden;
}
.rte__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-bottom: 1px solid rgba(242, 238, 225, 0.1);
  background: rgba(255, 255, 255, 0.04);
}
.rte__block {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(242, 238, 225, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font: inherit;
  font-size: 0.76rem;
}
.rte__btn {
  min-width: 30px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid rgba(242, 238, 225, 0.12);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rte__btn:hover { color: var(--ink); border-color: rgba(242, 238, 225, 0.3); }
.rte__btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }

.rte__area {
  width: 100%;
  min-height: 170px;
  max-height: 420px;
  overflow-y: auto;
  padding: 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.55;
  outline: none;
  cursor: text;
}
.rte__area:empty::before { content: attr(data-placeholder); color: var(--muted-2); pointer-events: none; }
.rte__area p, .rte__area div { margin: 0 0 0.55em; }
.rte__area p:last-child, .rte__area div:last-child { margin-bottom: 0; }
.rte__area h3 { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 0.4em; }
.rte__area blockquote { margin: 0 0 0.55em; padding-left: 10px; border-left: 2px solid rgba(224, 181, 103, 0.5); color: var(--muted); }
.rte__area ul, .rte__area ol { margin: 0 0 0.55em; padding-left: 1.2em; }
.rte__area li { margin-bottom: 0.2em; }
.rte__area small { font-size: 0.78em; }
.rte__area a { color: var(--brass); }
.rte__area img { max-width: 100%; height: auto; border-radius: 8px; }

.rules-body {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted);
}
.rules-body > :first-child { margin-top: 0; }
.rules-body > :last-child { margin-bottom: 0; }
.rules-body p, .rules-body ul, .rules-body ol, .rules-body blockquote,
.rules-body h3, .rules-body h4 { margin: 0 0 10px; }
.rules-body h3, .rules-body h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
}
.rules-body ul, .rules-body ol { padding-left: 20px; }
.rules-body li { margin-bottom: 4px; }
.rules-body blockquote {
  padding-left: 12px;
  border-left: 2px solid var(--brass);
  color: var(--ink);
  font-style: italic;
}
.rules-body a { color: var(--brass); }
.rules-body img { max-width: 100%; height: auto; border-radius: 8px; }
.rules-body small { font-size: 0.78em; }

/* password gate */

.gate-card {
  max-width: 460px;
  margin: 0 auto;
}
.gate-copy {
  margin: 8px 0 18px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

/* start date + time picker */

.start-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.time-parts {
  display: inline-flex;
  gap: 6px;
}
.time-parts select {
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid rgba(242, 238, 225, 0.14);
  background: rgba(0, 0, 0, 0.32);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}
.time-parts select:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }

@media (max-width: 480px) {
  .start-picker { grid-template-columns: 1fr; }
}

.panel-head--state { align-items: center; }
.panel-head--state .lot-clock { font-size: 1rem; }

/* calendar button inside the start date field */

.date-field {
  position: relative;
  display: block;
  width: 100%;
}
.date-field input {
  width: 100%;
  padding-right: 42px;
}
.date-field input::-webkit-calendar-picker-indicator {
  opacity: 0;
  pointer-events: none;
}
.date-field__btn {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
}
.date-field__btn:hover {
  color: var(--brass);
  background: rgba(255, 255, 255, 0.07);
}
.date-field__btn:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}

/* collapsible panel corner button */

.panel-toggle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(242, 238, 225, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted-2);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.panel-toggle:hover {
  color: var(--brass);
  border-color: rgba(224, 181, 103, 0.45);
  background: rgba(0, 0, 0, 0.32);
}
.panel-toggle:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
.panel-toggle svg {
  transition: transform 0.18s ease;
}
.panel-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* ---------- mobile room ---------- */
.rail-sort { display: none; }
.bidbar { display: none; }

@media (max-width: 760px) {
  .room-page { padding-bottom: 96px; }
  .room-head { margin-bottom: 14px; gap: 12px; }
  .room-head h1 { font-size: 1.5rem; }
  .room-head__meta { font-size: 0.72rem; margin-top: 4px; }

  .room-head__aside { width: 100%; gap: 8px; }
  .room-totals {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 16px;
    min-width: 0;
    padding: 8px 12px;
  }
  .room-totals__title { flex: 1 1 100%; font-size: 0.6rem; margin-bottom: 2px; }
  .room-totals__row { flex: 1 1 auto; gap: 6px; }
  .room-totals__row b { font-size: 1.02rem; }
  .room-code-card { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
  .room-code-card b { font-size: 1rem; }
  .room-code-card .micro { display: none; }
  .room-copy { width: 30px; height: 30px; padding: 0; justify-content: center; }
  .room-copy__label { display: none; }

  .lots-rail { padding: 14px; max-height: none; }
  .lots-rail__head { display: none !important; }
  .rail-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-2);
  }
  .rail-sort select {
    flex: 1;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid rgba(242, 238, 225, 0.16);
    background: rgba(0, 0, 0, 0.35);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.82rem;
    letter-spacing: 0;
    text-transform: none;
  }

  .lot-pick--live {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "name name clock"
      "fargo bid leader";
    align-items: center;
    gap: 3px 8px;
    padding: 11px 10px;
  }
  .lot-pick--live .l-who { display: contents; }
  .lot-pick--live .l-name { grid-area: name; font-size: 0.95rem; color: var(--ink); }
  .lot-pick--live .l-clock {
    grid-area: clock;
    justify-self: end;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(242, 238, 225, 0.14);
    font-size: 0.62rem;
    line-height: 1.35;
    color: var(--muted);
  }
  .lot-pick--live .l-clock.is-low { color: #ffb4a2; border-color: rgba(255, 180, 162, 0.42); }
  .lot-pick--live .l-clock.is-done { color: #63766a; }
  .lot-pick--live .l-fargo { grid-area: fargo; justify-self: start; font-size: 0.66rem; }
  .lot-pick--live .l-fargo::before { content: "Fargo "; opacity: 0.65; }
  .lot-pick--live .l-bid { grid-area: bid; justify-self: start; font-size: 0.82rem; }
  .lot-pick--live .l-leader { grid-area: leader; justify-self: end; font-size: 0.7rem; }

  .bid-row { display: none; }

  .bidbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(242, 238, 225, 0.12);
    background: rgba(9, 20, 14, 0.97);
    backdrop-filter: blur(10px);
  }
  .bidbar[hidden] { display: none; }
  .bidbar__info { display: grid; gap: 2px; min-width: 0; }
  .bidbar__name {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .bidbar__meta { display: flex; align-items: baseline; gap: 8px; font-size: 0.72rem; color: var(--muted-2); }
  .bidbar__meta b { color: var(--brass); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
  .bidbar__clock { font-variant-numeric: tabular-nums; }
  .bidbar__clock.is-low { color: #ffb4a2; }
  .bidbar__go { flex: none; min-height: 46px; padding: 0 20px; }
}

@media (max-width: 760px) {
  .settle-panel .panel-head { flex-wrap: wrap; align-items: center; gap: 6px 12px; }
  .settle-actions { flex: 1 1 100%; justify-content: space-between; }
  .settle-actions .micro { text-align: left; }
}

/* rail tabs */
.rail-tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  margin-bottom: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
}
.rail-tab {
  flex: 1;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-2);
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.rail-tab.is-active {
  background: rgba(242, 238, 225, 0.1);
  color: var(--ink);
}
.rail-tabs[hidden] { display: none; }
.rail-tab[hidden] { display: none; }
.rail-pane[hidden] { display: none; }

.rail-tabs:not([hidden]) ~ .rail-pane[data-rail-pane="players"] .panel-head h2 { display: none; }
.rail-tabs:not([hidden]) ~ .rail-pane[data-rail-pane="players"] .panel-head { justify-content: flex-end; }

/* keep the tab panes inside the rail's max height */
.lots-rail .rail-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.lots-rail .rail-pane[hidden] { display: none; }
.lots-rail .rail-pane[data-rail-pane="rules"] { overflow-y: auto; }

@media (max-width: 760px) {
  .rail-tab { padding: 7px 10px; font-size: 0.6rem; }
}

/* per-player bid button in the players list */
.lots-rail__head { grid-template-columns: minmax(0, 200px) 60px minmax(0, 1fr) 86px; }
.lots-rail__spacer { display: block; }
.lot-row {
  display: grid;
  grid-template-columns: minmax(0, 200px) 60px minmax(0, 1fr) 86px;
  align-items: center;
  gap: 8px;
  padding: 10px 9px;
}
.lot-row .lot-pick--live {
  grid-column: 1 / 4;
  width: 100%;
  padding: 0;
}
.l-bidgo {
  grid-column: 5;
  justify-self: end;
  width: 100%;
  padding: 7px 6px;
  border: 1px solid rgba(224, 181, 103, 0.5);
  border-radius: 8px;
  background: rgba(224, 181, 103, 0.16);
  color: #f0d197;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
}
.l-bidgo:hover:not(:disabled) { background: rgba(224, 181, 103, 0.26); }
.l-bidgo:disabled { opacity: 0.45; cursor: default; }
.l-bidgo.is-mine {
  border-color: rgba(122, 191, 154, 0.45);
  background: rgba(60, 138, 100, 0.18);
  color: #b9dcc7;
}
.l-bidgo[hidden] { display: none; }

@media (max-width: 760px) {
  .lot-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 11px 10px;
  }
  .lot-row .lot-pick--live { grid-column: 1; padding: 0; }
  .l-bidgo { grid-column: 2; width: auto; padding: 9px 12px; font-size: 0.72rem; }
}

/* signed-out: no bid column at all */
.lots-rail:not(.can-bid) .lots-rail__head { grid-template-columns: minmax(0, 200px) 60px minmax(0, 1fr); }
.lots-rail:not(.can-bid) .lots-rail__spacer { display: none; }
.lots-rail:not(.can-bid) .lot-row { grid-template-columns: minmax(0, 200px) 60px minmax(0, 1fr); }
@media (max-width: 760px) {
  .lots-rail:not(.can-bid) .lot-row { grid-template-columns: minmax(0, 1fr); }
}

/* Players list: clock pills with a live dot, money set in the display face */
.lot-pick--live .l-clock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 160, 0.28);
  background: rgba(110, 231, 160, 0.08);
  color: var(--live);
  font-variant-numeric: tabular-nums;
  font-size: 0.58rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.lot-pick--live .l-clock::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px rgba(110, 231, 160, 0.75);
}
.lot-pick--live .l-clock.is-low {
  color: #ffb4a2;
  border-color: rgba(255, 180, 162, 0.4);
  background: rgba(255, 180, 162, 0.08);
}
.lot-pick--live .l-clock.is-low::before { box-shadow: 0 0 7px rgba(255, 180, 162, 0.75); }
.lot-pick--live .l-clock.is-done {
  color: var(--muted-2);
  border-color: var(--line-soft);
  background: none;
}
.lot-pick--live .l-clock.is-done::before { display: none; }

.lot-pick--live .l-name {
  font-size: 1.05rem;
  line-height: 1.25;
}

.lot-pick--live .l-bid {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
  color: var(--brass-strong);
}

@media (max-width: 760px) {
  .lot-pick--live .l-clock { font-size: 0.55rem; padding: 2px 7px; gap: 4px; }
  .lot-pick--live .l-name { font-size: 1.08rem; }
  .lot-pick--live .l-bid { font-size: 1rem; }
}

.lot-pick--live .l-clock { justify-self: start; width: fit-content; }
@media (max-width: 760px) {
  .lot-pick--live .l-clock { justify-self: end; }
}

/* Fargo sits right beside the player name, the way the demo board shows it */
.lot-pick--live .l-who {
  display: grid;
  grid-template-columns: minmax(0, max-content) auto;
  column-gap: 8px;
  align-items: baseline;
  min-width: 0;
}
.lot-pick--live .l-name { grid-column: 1; min-width: 0; }
.lot-pick--live .l-fargo {
  grid-column: 2;
  text-align: left;
  white-space: nowrap;
  font-size: 0.68rem;
  line-height: 1.2;
  color: var(--muted-2);
}
.lot-pick--live .l-fargo::before { content: "Fargo "; opacity: 0.65; }
.lot-pick--live .l-clock { grid-column: 1 / -1; }

.lots-rail:not(.can-bid) .lot-row .lot-pick--live { grid-column: 1 / 4; }

@media (max-width: 760px) {
  .lot-pick--live .l-who { display: contents; }
  .lot-pick--live .l-fargo { font-size: 0.68rem; }
}

/* Player and Fargo share the first header cell so both stay sortable */
.lots-rail__headcell {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.lots-rail__headcell .lots-rail__sort { flex: none; }

/* Row actions: bid plus that player's history, and the history view itself */
.lots-rail__head { grid-template-columns: minmax(0, 200px) 60px minmax(0, 1fr) 172px; }
.lot-row { grid-template-columns: minmax(0, 200px) 60px minmax(0, 1fr) 172px; }
.l-actions {
  grid-column: 4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.l-actions .l-bidgo { width: auto; }
.l-history {
  padding: 7px 8px;
  border: 1px solid rgba(242, 238, 225, 0.16);
  border-radius: 8px;
  background: rgba(242, 238, 225, 0.05);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.l-history:hover { color: var(--ink); border-color: rgba(242, 238, 225, 0.3); }
.lots-rail:not(.can-bid) .lot-row { grid-template-columns: minmax(0, 200px) 60px minmax(0, 1fr) 172px; }

.rail-history { padding: 2px 0 0; }
.rail-history__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.rail-history__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 400;
  color: var(--ink);
}

/* No side panel left during a live auction, so the players list takes the width */
.room-page__grid.is-live { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 760px) {
  .lot-row { grid-template-columns: minmax(0, 1fr) auto; }
  .l-actions { grid-column: 2; flex-direction: column; align-items: stretch; }
  .lots-rail:not(.can-bid) .lot-row { grid-template-columns: minmax(0, 1fr); }
}

/* The list is full width now, so the name and bidder columns share the space */
.lots-rail__head,
.lot-row { grid-template-columns: minmax(0, 1.3fr) 72px minmax(0, 1fr) 172px; }
@media (max-width: 760px) {
  .lots-rail__head,
  .lot-row { grid-template-columns: minmax(0, 1fr) auto; }
}

/* Inner row grid mirrors the header so Bid and Bidder line up column to column */
.lot-row .lot-pick--live { grid-template-columns: minmax(0, 1.3fr) 72px minmax(0, 1fr); }
.lot-pick--live .l-bid { font-size: 1.16rem; }
.lots-rail__sort[data-sort="bid"] { text-align: right; }

@media (max-width: 760px) {
  .lot-row .lot-pick--live { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); }
  .lot-pick--live .l-bid { font-size: 1rem; }
}

/* The row inherits the header's tracks so every cell lines up exactly (desktop only) */
@media (min-width: 761px) {
  @supports (grid-template-columns: subgrid) {
    .lot-row .lot-pick--live { grid-template-columns: subgrid; }
  }
}

/* Keep the header column tracks identical to the scrolling rows beneath */
.lots-rail__head { margin-right: var(--rail-sb, 0px); }

/* Fargo rating: calm monospace, muted grey like the reference */
.lot-pick--live .l-fargo {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.005em;
  color: #9aa79d;
}
.lot-pick--live .l-fargo::before { opacity: 1; color: #8b968d; }

@media (max-width: 760px) {
  .lot-pick--live .l-fargo { font-size: 0.7rem; }
}

/* Phones keep the card's own areas; the desktop placements above must not leak down */
@media (max-width: 760px) {
  .lot-pick--live .l-fargo { grid-area: fargo; }
  .lot-pick--live .l-clock { grid-area: clock; }
}

@media (max-width: 760px) {
  .lot-pick--live {
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 12px;
  }
  .lot-pick--live .l-bid { justify-self: start; }
  .lot-pick--live .l-leader { justify-self: end; }
}

@media (max-width: 760px) {
  .lot-pick--live .l-name { grid-area: name; }
}

/* Columns hug the player name; the bid buttons stay pinned right */
.lots-rail__head,
.lot-row { grid-template-columns: minmax(0, 250px) 72px minmax(0, 1fr) 172px; }

/* Room code under the auction name, copied with the icon */
.room-code-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 2px;
  min-height: 30px;
}
.room-code-inline b {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--brass-strong);
}
.room-copy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(242, 238, 225, 0.18);
  background: rgba(242, 238, 225, 0.05);
  color: var(--muted);
  cursor: pointer;
}
.room-copy-icon:hover { color: var(--ink); border-color: rgba(242, 238, 225, 0.32); }
.room-code-hint { font-size: 0.68rem; color: var(--muted-2); }
.room-code-hint:empty { display: none; }

@media (max-width: 760px) {
  .lot-row { grid-template-columns: minmax(0, 1fr) auto; }
  .room-code-inline b { font-size: 1.15rem; }
}

/* Long rule sets stay readable: comfortable measure, generous leading */
.rules-body { max-width: 72ch; font-size: 0.92rem; line-height: 1.62; }
.rules-body p, .rules-body li { line-height: 1.62; }

/* Reading long rules: let the rail grow and the page scroll instead of a short pane */
.lots-rail:has(.rail-pane[data-rail-pane="rules"]:not([hidden])) {
  max-height: none;
  position: static;
}
.lots-rail .rail-pane[data-rail-pane="rules"] { overflow: visible; }

/* Bidder sits beside the bid, set in the same display face as the money */
@media (min-width: 761px) {
  .lots-rail .lot-pick--live .l-leader {
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.02rem;
    color: var(--ink);
  }
}

/* A little breathing room between the money and the bidder, header follows the data */
@media (min-width: 761px) {
  .lots-rail .lot-pick--live .l-leader { padding-left: 16px; }
  .lots-rail__sort[data-sort="bidder"] { padding-left: 16px; }
}

@media (min-width: 761px) {
  .lots-rail__sort[data-sort="bidder"] { text-align: left; }
}

/* Final spacing pass: bidder a touch closer, buttons a touch further apart */
@media (min-width: 761px) {
  .lots-rail .lot-pick--live .l-leader { padding-left: 6px; }
  .lots-rail__sort[data-sort="bidder"] { padding-left: 6px; }
}
.l-actions { gap: 10px; }

/* Bid history view: labelled, roomier, with a larger player name */
.rail-history__head { margin-bottom: 16px; }
.rail-history__eyebrow {
  margin: 0 0 4px;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.rail-history__title {
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 0 0 12px;
}

.rail-history__fargo {
  margin: -6px 0 12px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  color: #9aa79d;
}

/* Name and Fargo share one line in the bid history */
.rail-history__heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 12px;
}
.rail-history__heading .rail-history__title { margin: 0; }
.rail-history__heading .rail-history__fargo { margin: 0; font-size: 0.8rem; }

.rail-tabs[hidden] { display: none !important; }

/* While a history is open the players pane header steps aside too */
.lots-rail.is-history .rail-pane[data-rail-pane="players"] .panel-head { display: none; }

/* Grid rows are read-only; nothing to select or hover */
.lots-rail__list .lot-pick { cursor: default; }
.lots-rail__list .lot-pick:hover { background: none; }
.lots-rail__list li.is-selected { background: none; }
.lots-rail__list li.is-selected .l-name { color: inherit; }

/* The players list is one long page now — no inner scrollbar, the page scrolls */
.lots-rail {
  max-height: none;
  position: static;
  overflow: visible;
}
.lots-rail__list {
  overflow: visible;
  max-height: none;
  flex: none;
  min-height: 0;
}
.rail-pane[data-rail-pane="players"] { overflow: visible; }

/* Bid confirmation: name, the exact amount, and what the bid does */
.bid-confirm { width: min(430px, calc(100vw - 32px)); }
.bid-confirm::backdrop { background: rgba(3, 8, 5, 0.72); backdrop-filter: blur(5px); }
.bid-confirm__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}
.bid-confirm__head .eyebrow { margin: 0; }
.bid-confirm__name {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}
.bid-confirm__amount {
  margin: 2px 0 6px;
  font-family: var(--font-display);
  font-size: 2.9rem;
  line-height: 1.05;
  color: var(--brass-strong);
  font-variant-numeric: tabular-nums;
}
.bid-confirm .confirm-copy { margin-top: 0; }
.bid-confirm .form-hint:empty { display: none; }
.bid-confirm .form-hint { margin-top: 10px; color: #ffb4a2; }

/* Name and Fargo on one line in the bid confirmation */
.bid-confirm__heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 6px 0 0;
}
.bid-confirm__heading .bid-confirm__name { margin: 0; }
.bid-confirm__fargo {
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  color: #9aa79d;
  white-space: nowrap;
}

/* "Only my players" filter chip in the players panel */
.rail-filter {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(242, 238, 225, 0.16);
  background: rgba(242, 238, 225, 0.04);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.rail-filter:hover { color: var(--ink); border-color: rgba(242, 238, 225, 0.3); }
.rail-filter.is-on {
  border-color: rgba(224, 181, 103, 0.55);
  background: rgba(224, 181, 103, 0.16);
  color: var(--brass-strong);
}
.rail-filter[hidden] { display: none; }

/* Players filter as a labelled switch: All players <-> Only my players */
.rail-filter-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.rail-filter__label { transition: color 0.15s ease; }
.rail-filter-switch:has(input:checked) .rail-filter__label { color: var(--brass-strong); }
.rail-filter-switch[hidden] { display: none; }

.rail-filter-switch.is-on .rail-filter__label { color: var(--brass-strong); }

/* Smart bid: a third action on each player row, brass while it is armed */
@media (min-width: 761px) {
  .lots-rail__head,
  .lot-row { grid-template-columns: minmax(0, 250px) 72px minmax(0, 1fr) 236px; }
}
.l-smart {
  padding: 7px 8px;
  border: 1px dashed rgba(224, 181, 103, 0.45);
  border-radius: 8px;
  background: rgba(224, 181, 103, 0.06);
  color: var(--brass-strong);
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.l-smart:hover { background: rgba(224, 181, 103, 0.14); }
.l-smart.is-on { border-style: solid; background: rgba(224, 181, 103, 0.2); }

/* Smart bid dialog: two clear actions, then a quiet way out of an armed bid */
.auto-actions { margin-top: 18px; }
.auto-actions .btn {
  min-width: 132px;
  padding: 12px 20px;
  font-size: 0.86rem;
}
.auto-off {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(242, 238, 225, 0.12);
  text-align: left;
}
.auto-off__btn {
  padding: 0;
  border: 0;
  background: none;
  color: #e09b9b;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.auto-off__btn:hover { color: #f3b9b9; text-decoration: underline; }
.auto-off__note {
  margin: 6px 0 0;
  font-size: 0.72rem;
  color: var(--muted-2);
}
.auto-off[hidden] { display: none; }
@media (max-width: 480px) {
  .auto-actions { flex-direction: column; }
  .auto-actions .btn { width: 100%; }
}

/* Bid history is one long page too: no inner scrollbar, the window scrolls */
.bid-history {
  max-height: none;
  overflow: visible;
}

/* Players filter: small outlined pill, same shape as the back control */
.rail-filter-pill { text-transform: none; letter-spacing: 0.02em; }
.rail-filter-pill.is-on {
  color: var(--brass-strong);
  border-color: rgba(224, 181, 103, 0.5);
  background: rgba(224, 181, 103, 0.12);
}
.rail-filter-pill[hidden] { display: none; }

/* Filtered view: back pill above a larger "Investments" heading */
.rail-pane[data-rail-pane="players"] .panel-head.is-filtered {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.rail-pane[data-rail-pane="players"] .panel-head.is-filtered h2 {
  font-size: 1.5rem;
  line-height: 1.15;
}
.rail-head-back { align-self: flex-start; }
.rail-head-back[hidden] { display: none; }

/* The filtered heading outranks the player names in size */
.rail-pane[data-rail-pane="players"] .panel-head.is-filtered h2 {
  font-size: 2rem;
  letter-spacing: 0;
}
@media (max-width: 760px) {
  .rail-pane[data-rail-pane="players"] .panel-head.is-filtered h2 { font-size: 1.75rem; }
}

/* Investments view closes with the running total of those bids */
.rail-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(242, 238, 225, 0.14);
}
.rail-total[hidden] { display: none; }
.rail-total__label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.rail-total__value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--brass-strong);
  font-variant-numeric: tabular-nums;
}

/* Total lines up under the bid column, not the row's right edge */
@media (min-width: 761px) {
  .rail-total {
    display: grid;
    grid-template-columns: minmax(0, 250px) 72px minmax(0, 1fr) 236px;
    gap: 8px;
    align-items: baseline;
    padding: 14px 9px 0;
  }
  .rail-total__label { grid-column: 1; }
  .rail-total__value { grid-column: 2; justify-self: start; }
}

/* "All auctions" back control wears the same outlined pill as the other back links */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(242, 238, 225, 0.16);
  border-radius: 999px;
  background: rgba(242, 238, 225, 0.05);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.back-link:hover {
  color: var(--ink);
  border-color: rgba(242, 238, 225, 0.3);
}

/* Panel-wide warning: how many players you have already lost */
.rail-outbid-note {
  margin: 0 0 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f0b3a8;
}
.rail-outbid-note[hidden] { display: none; }

/* Outbid flag: its own column on desktop, an inline chip on phones */
.l-outbid {
  display: none;
  padding: 2px 7px;
  border: 1px solid rgba(240, 179, 168, 0.4);
  border-radius: 999px;
  color: #f0b3a8;
  font-family: var(--font-body);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (min-width: 761px) {
  .lots-rail.can-bid .lots-rail__head,
  .lots-rail.can-bid .lot-row {
    grid-template-columns: minmax(0, 250px) 72px minmax(0, 1fr) 92px 236px;
  }
  .lots-rail.can-bid .lot-row .lot-pick--live { grid-column: 1 / 4; }
  .lots-rail.can-bid .l-actions { grid-column: 5; }
  .l-flag { grid-column: 4; display: flex; align-items: center; }
  .l-flag .l-outbid { display: inline-block; }
}
@media (max-width: 760px) {
  .l-flag { display: none; }
  .l-leader .l-outbid { display: inline-block; margin-left: 6px; }
}

/* Flag hugs the bidder instead of drifting toward the buttons */
@media (min-width: 761px) {
  .lots-rail.can-bid .lots-rail__head,
  .lots-rail.can-bid .lot-row {
    grid-template-columns: minmax(0, 250px) 72px minmax(0, 210px) 92px minmax(0, 1fr) 236px;
  }
  .lots-rail.can-bid .lots-rail__spacer { grid-column: 5; }
  .lots-rail.can-bid .l-flag { grid-column: 4; }
  .lots-rail.can-bid .l-actions { grid-column: 6; }
}

/* FLAG header starts where the OUTBID chips' text starts */
.lots-rail__head [data-sort="outbid"] {
  text-align: left;
  padding-left: 7px;
}

/* No outbid players: the FLAG column folds away completely */
@media (min-width: 761px) {
  .lots-rail.can-bid.no-flag .lots-rail__head,
  .lots-rail.can-bid.no-flag .lot-row {
    grid-template-columns: minmax(0, 250px) 72px minmax(0, 1fr) 236px;
  }
  .lots-rail.can-bid.no-flag .lots-rail__head [data-sort="outbid"] { display: none; }
  .lots-rail.can-bid.no-flag .lots-rail__spacer { grid-column: 4; }
  .lots-rail.can-bid.no-flag .l-flag { display: none; }
  .lots-rail.can-bid.no-flag .l-actions { grid-column: 4; }
}

/* The total's right edge lines up with the right-aligned bid numbers above it */
@media (min-width: 761px) {
  .rail-total__value { justify-self: end; }
}

/* Auction rooms: the three lists live in one tabbed panel */
.app-tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.25);
  overflow-x: auto;
}
.app-tab {
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.app-tab:hover { color: var(--ink); }
.app-tab.is-active {
  background: rgba(242, 238, 225, 0.12);
  color: var(--ink);
}
[data-tab-panel][hidden] { display: none !important; }
.app-panel--wide > .panel-head--search { justify-content: flex-end; }
@media (max-width: 560px) {
  .app-tabs { width: 100%; }
  .app-tab { flex: 1 1 0; padding: 9px 10px; font-size: 0.74rem; }
}

/* My auctions head holds a search field and the filter chips */
.app-panel--wide > .panel-head--search.panel-head--split {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Search sits on the left of every panel header */
.app-panel--wide > .panel-head--search { justify-content: flex-start; }

/* Each tab carries its own section title above the search row */
.panel-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

/* Section titles read as headings, not the small uppercase panel label */
.app-panel .panel-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  color: var(--ink);
}

/* Page title picks up the brass accent used by the header button */
.app-head h1 {
  color: var(--brass-strong);
}

/* Section titles match the page title: bigger and brass */
.app-panel .panel-title {
  margin: 0 0 16px;
  font-size: 1.9rem;
  color: var(--brass-strong);
}

/* Section titles a step larger again */
.app-panel .panel-title {
  font-size: 2.4rem;
  line-height: 1.15;
}
@media (max-width: 560px) {
  .app-panel .panel-title { font-size: 2rem; }
}

/* Player rail heading */
.lots-rail .panel-head h2.rail-title {
  color: var(--brass-strong);
}

/* Auctioneer controls heading in brass, like the other section titles */
[data-owner-panel] .panel-head h2 {
  color: var(--brass-strong);
}

/* Auction setup wizard */
.wizard__count {
  font: 600 0.62rem/1 var(--sans, inherit);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.wizard__dots {
  display: flex;
  gap: 8px;
  margin: 14px 0 22px;
  padding: 0;
  list-style: none;
}

.wizard__dots li {
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 160ms ease;
}

.wizard__dots li.is-done { background: rgba(224, 181, 103, 0.45); }
.wizard__dots li.is-active { background: var(--brass-strong); }

.wizard__pane h3 {
  margin: 0 0 14px;
  font-size: 1.5rem;
  color: var(--brass-strong);
}

.wizard__pane .open-form { margin-top: 0; }

.wizard__summary {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.wizard__finish .btn { width: 100%; text-align: center; }

.wizard__nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.wizard__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* The wizard supplies its own spacing, so the old form divider goes */
.wizard__pane .open-form {
  padding-bottom: 0;
  border-bottom: 0;
}

.wizard__lede {
  margin: -6px 0 18px;
  max-width: 46ch;
}

/* Mascot giving the step's description below the field */
.wizard__tip {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.wizard__mascot {
  flex: 0 0 auto;
  width: 62px;
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.wizard__bubble {
  position: relative;
  margin: 0 0 8px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.wizard__bubble::before {
  content: "";
  position: absolute;
  left: -6px;
  bottom: 14px;
  width: 10px;
  height: 10px;
  background: inherit;
  border-left: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  transform: rotate(45deg);
}

.wizard__mascot { width: 72px; }

/* The forward action is the loud one */
.wizard__next {
  padding: 14px 34px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(224, 181, 103, 0.22);
}

.wizard__next:hover { box-shadow: 0 14px 30px rgba(224, 181, 103, 0.3); }

@media (max-width: 560px) {
  .wizard__next { width: 100%; padding: 14px 20px; }
}

.wizard__next {
  padding: 16px 44px;
  font-size: 1.05rem;
  min-width: 148px;
}

/* Step question reads louder */
.wizard__pane h3 {
  font-size: 1.9rem;
  line-height: 1.2;
}

/* No spinner arrows on the wizard's number fields */
.wizard__pane input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.wizard__pane input[type="number"]::-webkit-outer-spin-button,
.wizard__pane input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

@media (max-width: 560px) {
  .wizard__pane h3 { font-size: 1.55rem; }
}

.wizard__tip--top { margin: 0 0 20px; }

/* Delete sits beside Open room, quiet until the pointer is on it. */
.auction-item__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.auction-item__delete:hover,
.auction-item__delete:focus-visible {
  color: #ffb4a2;
  border-color: rgba(255, 180, 162, 0.4);
}
