/* CuttaCalc design system. Colors, type and spacing are tokens; light mode swaps the tokens. */
/* Scoreboard: night background, lime for the brand and "you lead", orange for "outbid".
   Dark is the default; light (for phones in sunlight) is the person's choice, kept in the browser.
   --brand fills primary buttons in both modes (dark text on lime); --accent is the ink for links,
   tabs and pills, lime on dark and a deep green on light so it stays readable outdoors. */
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('/fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('/fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url('/fonts/barlow-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-display: swap; src: url('/fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); }

:root {
  --bg: #0b0f14;
  --surface: #121821;
  --surface-2: #18202b;
  --surface-3: #1f2933;
  --text: #e8edf2;
  --heading: #f2f5f8;
  --muted: #9aa7b4;
  --line: #1f2933;
  --line-strong: #3a4757;
  --accent: #c6f432;
  --accent-hover: #ddff6e;
  --accent-text: #0b0f14;
  --accent-soft: #1b2410;
  --brand: #c6f432;
  --brand-hover: #ddff6e;
  --brand-text: #0b0f14;
  --good: #c6f432;
  --good-soft: #1b2410;
  --warn: #f2bd4b;
  --warn-soft: #36290b;
  --outbid: #ff8a3d;
  --outbid-soft: #3a1d0b;
  --danger: #ff6b6b;
  --danger-soft: #3c1418;
  --flash: #2c3a12;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: none;
  --shadow-pop: 0 8px 28px rgb(0 0 0 / 50%);
  --font: 'Barlow', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Barlow Condensed', 'Barlow', ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --tap: 44px;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f4f6f1;
  --surface: #ffffff;
  --surface-2: #eef1ea;
  --surface-3: #e3e8dc;
  --text: #0b0f14;
  --heading: #0b0f14;
  --muted: #4f5b66;
  --line: #d9dfd2;
  --line-strong: #b9c2ae;
  --accent: #3d6600;
  --accent-hover: #2f5000;
  --accent-text: #ffffff;
  --accent-soft: #ebf5cf;
  --good: #2f6b00;
  --good-soft: #e5f3cc;
  --warn: #8a5a00;
  --warn-soft: #fff3d6;
  --outbid: #c2410c;
  --outbid-soft: #ffeadc;
  --danger: #c0262d;
  --danger-soft: #fde7e7;
  --flash: #f1fbc9;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 2px 8px rgb(16 24 40 / 5%);
  --shadow-pop: 0 8px 28px rgb(16 24 40 / 16%);
  color-scheme: light;
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { flex: 1; }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; font-family: var(--display); font-weight: 700; color: var(--heading); letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 .75em; }
img, svg { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.num, .money { font-variant-numeric: tabular-nums; }
.money { font-weight: 650; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 16px; }
.narrow { max-width: 480px; }
.medium { max-width: 760px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.spacer { flex: 1; }

/* ---- header / footer ---- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; min-height: 60px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.45rem; text-transform: uppercase; letter-spacing: .02em; color: var(--heading); text-decoration: none; min-height: var(--tap); }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--brand); color: var(--brand-text); display: inline-grid; place-items: center; flex: none; font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: 0; }
.brand-mark::after { content: 'CC'; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 10px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: 550; cursor: pointer; }
.nav-link:hover { background: var(--surface-2); }
.icon-btn { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: var(--radius-sm); border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem; }
.user-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: 6px; display: grid; }
.menu-pop a, .menu-pop .link-btn { display: flex; align-items: center; min-height: var(--tap); padding: 0 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font: inherit; background: none; border: 0; text-align: left; cursor: pointer; }
.menu-pop a:hover, .menu-pop .link-btn:hover { background: var(--surface-2); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; margin-top: 32px; }
.site-footer .wrap { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; }

/* ---- surfaces ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card.tight { padding: 14px; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; }
.section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 0 0 8px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

/* ---- buttons ---- */
button, .button {
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--tap); padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s, transform .06s;
}
button:hover:not(:disabled), .button:hover { background: var(--surface-2); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: not-allowed; }
.primary { background: var(--brand) !important; border-color: var(--brand) !important; color: var(--brand-text) !important; }
.primary:hover { background: var(--brand-hover) !important; border-color: var(--brand-hover) !important; }
.primary:hover:not(:disabled) { background: var(--accent-hover) !important; }
.danger { color: var(--danger) !important; }
.danger.solid { background: var(--danger) !important; border-color: var(--danger) !important; color: #fff !important; }
.ghost { background: transparent; border-color: transparent; }
.ghost:hover:not(:disabled) { background: var(--surface-2); }
.block { width: 100%; }
.small-btn { min-height: 36px; padding: 0 12px; font-size: .875rem; }
.link-btn { background: none; border: 0; color: var(--accent); padding: 0; min-height: var(--tap); font-weight: 600; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- forms ---- */
label, .label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.invite-note { background: var(--accent-soft); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; font-size: .92rem; }
#code { text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); }
#code::placeholder { text-transform: none; letter-spacing: normal; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface); width: 100%;
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; min-height: var(--tap);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input[aria-invalid='true'] { border-color: var(--danger); }
input[type='checkbox'], input[type='radio'] { width: 22px; height: 22px; min-height: 0; accent-color: var(--accent); margin: 0; flex: none; }
textarea { min-height: 140px; font-family: var(--mono); font-size: .875rem; line-height: 1.45; }
.field { margin-bottom: 14px; }
.field-error { color: var(--danger); font-size: .85rem; margin: 6px 0 0; }
.form-error { background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-weight: 550; }
.form-ok { background: var(--good-soft); color: var(--good); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-weight: 550; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .95rem; cursor: pointer; min-height: var(--tap); padding-top: 10px; }
.check input { margin-top: 1px; }
.fields { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.money-input { position: relative; }
.money-input::before { content: '$'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.money-input input { padding-left: 24px; font-variant-numeric: tabular-nums; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 2px; top: 0; min-height: var(--tap); border: 0; background: none; color: var(--accent); font-size: .85rem; padding: 0 12px; }
.pw-toggle:hover:not(:disabled) { background: none; }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .75rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
td.r, th.r { text-align: right; }
tbody tr:last-child td { border-bottom: 0; }
tr.dim td { color: var(--muted); }

/* ---- pills, status ---- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.pill.open, .pill.good { background: var(--good-soft); color: var(--good); }
.pill.upcoming, .pill.info { background: var(--accent-soft); color: var(--accent); }
.pill.paused, .pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.closed { background: var(--surface-3); color: var(--muted); }
.pill.bad { background: var(--danger-soft); color: var(--danger); }
.health { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.health .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.health.live { background: var(--good-soft); color: var(--good); }
.health.live .dot { animation: pulse 2s infinite; }
.health.bad { background: var(--danger-soft); color: var(--danger); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.banner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius); font-weight: 550; border: 1px solid transparent; }
.banner.info { background: var(--accent-soft); color: var(--accent); }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.bad { background: var(--danger-soft); color: var(--danger); }
.banner.good { background: var(--good-soft); color: var(--good); }
.banner .grow { min-width: 200px; }
.empty { text-align: center; color: var(--muted); padding: 32px 16px; }

/* ---- stats ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.stat { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; }
.stat .k { font-size: .75rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.stat .v { font-size: 1.35rem; font-weight: 750; font-variant-numeric: tabular-nums; }

/* ---- toasts ---- */
#toasts { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); display: grid; gap: 8px; justify-items: center; z-index: 60; pointer-events: none; }
.toast { background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; max-width: 520px; box-shadow: var(--shadow-pop); font-weight: 550; animation: toast-in .18s ease-out; transition: opacity .3s, transform .3s; }
.toast.error { background: var(--danger); color: #fff; }
.toast.outbid { background: var(--outbid); color: #0b0f14; font-weight: 650; }
.toast.good { background: var(--good); color: #fff; }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---- tabs ---- */
.tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; color: var(--muted); padding: 0 14px; flex: none; }
.tabs button:hover:not(:disabled) { background: none; color: var(--text); }
.tabs button[aria-selected='true'] { color: var(--accent); border-bottom-color: var(--accent); }
.segmented { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; }
.segmented button { border: 0; background: transparent; min-height: 38px; padding: 0 12px; font-size: .875rem; color: var(--muted); }
.segmented button[aria-pressed='true'] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* ---- auth pages ---- */
.auth { display: grid; place-items: start center; padding: 32px 16px 48px; }
.auth .card { width: 100%; max-width: 440px; padding: 28px; }
.auth h1 { font-size: 1.6rem; }
.auth .alt { text-align: center; margin-top: 16px; color: var(--muted); font-size: .95rem; }

/* ---- home ---- */
.hero { padding: 40px 0 24px; }
.hero h1 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.8rem); max-width: 18ch; }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 52ch; }
.auction-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.auction-card { display: block; color: inherit; text-decoration: none; transition: border-color .12s, transform .12s; }
.auction-card:hover { border-color: var(--accent); }
.auction-card h3 { font-size: 1.15rem; margin: 8px 0 4px; }
.auction-card .count { font-size: 1.6rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.steps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); counter-reset: step; }
.steps li { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.steps li::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.steps { padding: 0; }

/* ---- auction (user page) ---- */
.auction-hero { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .auction-hero { grid-template-columns: 1fr auto; } }
.countdown-box { text-align: center; background: var(--surface-2); border-radius: var(--radius); padding: 12px 20px; min-width: 220px; }
.countdown-box .label { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.countdown { font-size: 2.4rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; letter-spacing: -0.02em; }
.countdown.soon { color: var(--danger); }
.countdown-box .sub { font-size: .8rem; color: var(--muted); }
.extended { animation: extended 1.6s ease-out; }
@keyframes extended { 0% { background: var(--flash); } 100% { background: var(--surface-2); } }

/* Phones: my bids, then the teams, then the compact leaderboard. Wide screens: teams | side panel. */
.layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'mine' 'teams' 'mini'; }
.teams-col { grid-area: teams; min-width: 0; }
.side-col { display: contents; }
.side-col > .card { margin-top: 0; }
#mine { grid-area: mine; }
#mini { grid-area: mini; }
@media (min-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: 'teams side'; align-items: start; }
  .side-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; grid-area: side; min-width: 0; position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; }
  #mine, #mini { grid-area: auto; }
}
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar input[type='search'] { flex: 1; min-width: 160px; }

.team-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.team { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); transition: border-color .2s; }
.team.winning { border-color: color-mix(in srgb, var(--good) 60%, var(--line)); box-shadow: inset 4px 0 0 var(--good); }
.team.outbid { border-color: color-mix(in srgb, var(--outbid) 60%, var(--line)); box-shadow: inset 4px 0 0 var(--outbid); }
.team-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; }
.team-name { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.team-meta { font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.team-high { text-align: right; }
.team-high .amount { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.team-high .who { font-size: .85rem; color: var(--muted); }
.team-high .who.me { color: var(--good); font-weight: 650; }
.team-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.team-actions button { flex: 1 1 auto; min-width: 0; }
.bid-btn { font-variant-numeric: tabular-nums; }
.bid-btn.confirm { background: var(--warn) !important; border-color: var(--warn) !important; color: #fff !important; }
.team-more { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .money-input { flex: 1 1 140px; }
.flash { animation: flash 1.4s ease-out; }
@keyframes flash { 0% { background: var(--flash); } 100% { background: var(--surface); } }

.panel-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.panel-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); }
.panel-row.outbid { background: var(--outbid-soft); }
.panel-row.winning { background: var(--good-soft); }
.panel-row .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-board { width: 100%; }
.mini-board td { padding: 7px 6px; font-size: .9rem; }
.mini-board td.team-cell { max-width: 0; width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-board tr.flash td { animation: flash-td 1.4s ease-out; }
@keyframes flash-td { 0% { background: var(--flash); } 100% { background: transparent; } }

/* ---- leaderboard (TV) ---- */
.board-body { background: var(--bg); }
.board { max-width: 1600px; margin: 0 auto; padding: 16px clamp(16px, 2vw, 40px) 40px; }
.board-top { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: center; text-align: center; padding: 8px 0 20px; }
@media (min-width: 900px) { .board-top { grid-template-columns: 1fr auto 1fr; text-align: left; } .board-top .board-right { justify-self: end; text-align: right; } }
.board-title { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.6rem); font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.big-countdown { font-size: clamp(3.2rem, 2rem + 7vw, 8.5rem); font-weight: 850; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; text-align: center; }
.big-countdown.soon { color: var(--danger); }
.big-label { text-align: center; color: var(--muted); font-size: clamp(.9rem, .8rem + .4vw, 1.3rem); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.pot { font-size: clamp(1.6rem, 1.2rem + 2vw, 3rem); font-weight: 800; font-variant-numeric: tabular-nums; }
.board-table { font-size: clamp(1rem, .7rem + 1.1vw, 1.9rem); }
.board-table th { font-size: clamp(.75rem, .6rem + .4vw, 1rem); }
.board-table td { padding: clamp(8px, .4rem + .5vw, 18px) 10px; }
.board-table td.rank { color: var(--muted); width: 3ch; font-variant-numeric: tabular-nums; }
.board-table td.amount { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.board-table td.bidder { color: var(--muted); }
.board-table tr.flash td { animation: flash-td 1.6s ease-out; }
.board-table .team-sub { display: block; font-size: .6em; color: var(--muted); }
.board-closed { font-size: clamp(2rem, 1.4rem + 4vw, 5rem); font-weight: 850; text-align: center; letter-spacing: -0.02em; }
.qr { background: #fff; padding: 8px; border-radius: 10px; width: 120px; display: inline-block; }
.qr img { display: block; width: 100%; height: auto; }
.board-tools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; }
@media (max-width: 640px) { .board-table .hide-sm { display: none; } }

/* ---- admin ---- */
.admin-shell { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .admin-shell { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } }
.side-list { display: grid; gap: 6px; }
.side-item { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid transparent; background: none; text-align: left; width: 100%; min-height: var(--tap); font-weight: 500; justify-items: start; white-space: normal; }
.side-item[aria-current='true'] { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.side-item .t { font-weight: 650; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; }
.team-edit { display: grid; gap: 8px; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.team-edit:last-child { border-bottom: 0; }
.order-btns { display: flex; flex-direction: column; gap: 2px; }
.order-btns button { min-height: 22px; height: 22px; padding: 0 8px; font-size: .7rem; border-radius: 6px; }
@media (pointer: coarse) { .order-btns button { min-height: var(--tap); height: var(--tap); } .order-btns { flex-direction: row; } }
.payout-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.payout-row .place { width: 4ch; color: var(--muted); font-weight: 650; }
.payout-row input { max-width: 120px; }
.audit-detail { font-family: var(--mono); font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.balance-ok { color: var(--good); font-weight: 700; }
.balance-bad { color: var(--danger); font-weight: 700; }
dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); padding: 20px; max-width: min(520px, calc(100vw - 32px)); box-shadow: var(--shadow-pop); }
dialog::backdrop { background: rgb(0 0 0 / 40%); }

/* ---- prose (terms) ---- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }

@media (max-width: 520px) {
  .card { padding: 16px; }
  .countdown { font-size: 2rem; }
  .wrap { padding: 12px 16px; }
  .user-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
#mine .stats { grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; }
#mine .stat { padding: 10px 12px; }
#mine .stat .v { font-size: 1.15rem; }
.side-item { display: grid; justify-content: stretch; text-align: left; }
#panel-head .row.between > .grow { flex: 1 1 260px; }
@media (max-width: 899px) { .board-top .row { justify-content: center; } }
@media (max-width: 640px) { #join-box { display: none; } }

/* Invitations (admin) */
.invite-code { font-family: var(--mono); font-size: 1.05rem; font-weight: 700; letter-spacing: .06em; }
.invite-link { overflow-wrap: anywhere; }
.invite-email { overflow-wrap: break-word; }
label.button { cursor: pointer; }
@media (max-width: 480px) { .invite-table th, .invite-table td { padding-left: 6px; padding-right: 6px; } }

/* Testing Feedback: the banner (every page but the gate) and its editor dialog */
.fb-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 12px;
  padding: 6px 16px; background: var(--warn-soft); color: var(--text);
  border-bottom: 1px solid color-mix(in srgb, var(--warn) 30%, var(--line));
  font-size: .875rem; line-height: 1.3; text-align: center;
}
.fb-banner-text { min-width: 0; overflow-wrap: anywhere; }
.fb-banner-btn {
  position: relative; min-height: 32px; padding: 0 12px; font-size: .85rem; font-weight: 650; border-radius: 8px;
  background: var(--surface); border-color: color-mix(in srgb, var(--warn) 45%, var(--line-strong)); color: var(--text);
}
/* A 44 px tap target inside a slim strip. */
.fb-banner-btn::after { content: ''; position: absolute; inset: -6px -4px; }
:root:fullscreen .fb-banner { display: none; }
@media (max-width: 420px) { .fb-banner { font-size: .8rem; padding: 4px 12px; gap: 2px 8px; } }
.fb-dialog { width: min(600px, calc(100vw - 24px)); max-width: min(600px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 16px 20px 20px; }
.fb-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.fb-head h2 { margin: 0; flex: 1; }
.fb-form .field { margin-bottom: 12px; }
.fb-form select { width: 100%; }
.fb-toolbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 4px; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--surface-2); }
.fb-toolbar button { min-width: var(--tap); min-height: var(--tap); padding: 0 10px; border: 0; background: transparent; color: var(--text); font-size: 1rem; }
.fb-toolbar button:hover:not(:disabled) { background: var(--surface-3); }
.fb-toolbar .fb-i { font-family: Georgia, 'Times New Roman', serif; font-weight: 600; }
.fb-toolbar .fb-preview-btn { font-size: .875rem; font-weight: 600; }
.fb-toolbar .fb-preview-btn[aria-pressed='true'] { background: var(--accent-soft); color: var(--accent); }
.fb-form textarea { width: 100%; border-radius: 0 0 10px 10px; font-family: var(--font); font-size: 1rem; min-height: 150px; resize: vertical; }
.fb-preview { margin-top: 8px; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--surface-2); max-height: 220px; overflow: auto; }
.fb-preview::before { content: 'Preview'; display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.fb-under { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.fb-under p { margin: 0; }
.fb-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fb-count.warn { color: var(--warn); font-weight: 700; }
.fb-actions { justify-content: flex-end; }
.fb-thanks { font-size: 1.1rem; font-weight: 650; color: var(--good); margin: 12px 0 16px; }
.fb-text { overflow-wrap: anywhere; }
.fb-text p, .fb-preview p { margin: 0 0 .5em; }
.fb-text ul, .fb-text ol, .fb-preview ul, .fb-preview ol { margin: 0 0 .5em; padding-left: 1.4em; }
/* Admin → Feedback */
.tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 750; }
.fb-item { border-top: 1px solid var(--line); padding: 14px 0; }
.fb-item:first-child { border-top: 0; }
.fb-item.is-new { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
.fb-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: .85rem; margin-bottom: 6px; }
.fb-meta code { font-size: .8rem; overflow-wrap: anywhere; }
.fb-note { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; margin-top: 8px; }
.fb-note textarea { flex: 1 1 220px; min-height: var(--tap); height: var(--tap); font-family: var(--font); font-size: .9rem; resize: vertical; }
.fb-filters { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; margin-bottom: 8px; }
.fb-filters input[type='search'], .fb-filters button { grid-column: 1 / -1; }
@media (min-width: 760px) { .fb-filters { grid-template-columns: 160px 200px 1fr auto; } .fb-filters input[type='search'], .fb-filters button { grid-column: auto; } }

/* The bidder guide (/guide) and its pop-out links */
.guide-link-icon { flex: none; }
@media (max-width: 520px) { .guide-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .site-nav .guide-link { padding: 0 8px; } }
.guide { max-width: 760px; }
.guide-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.guide-bar .button, .guide-bar button { min-height: var(--tap); }
.guide-head { margin: 4px 0 16px; }
.guide-head h1 { margin-bottom: 4px; }
.guide-toc { margin-bottom: 24px; }
.guide-toc ol { margin: 0; padding-left: 1.4em; columns: 2 220px; column-gap: 24px; }
.guide-toc li { break-inside: avoid; }
.guide-toc a { display: inline-flex; align-items: center; min-height: 36px; font-weight: 550; }
@media (pointer: coarse) { .guide-toc a { min-height: var(--tap); } }
.guide-body-text section { scroll-margin-top: 76px; }
.guide-body-text h2 { scroll-margin-top: 76px; margin-top: 28px; padding-bottom: 6px; border-bottom: 2px solid var(--accent); }
.guide-body-text h2:focus { outline: none; }
.guide-body-text section:first-child h2 { margin-top: 0; }
.guide-body-text ol, .guide-body-text ul { padding-left: 1.4em; margin: 0 0 1em; }
.guide-body-text li { margin-bottom: .45em; }
.guide-body-text b { font-weight: 650; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; white-space: nowrap; }
.guide-note { border: 1px solid var(--line-strong); background: var(--accent-soft); border-radius: var(--radius-sm); padding: 12px 14px; margin: 12px 0; }
.guide-note.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.guide-table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: .95rem; }
.guide-table th, .guide-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.guide-table th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.guide-foot { margin-top: 28px; }
/* In the pop-out window: a little tighter, and the bar stays in reach. */
.guide-popup .guide-bar { position: sticky; top: 60px; z-index: 20; background: var(--bg); padding: 6px 0; }
.guide-popup .wrap { padding-top: 8px; }
.guide-popup .guide-body-text section, .guide-popup .guide-body-text h2 { scroll-margin-top: 128px; }

/* Teams with no bids in the last two hours of bidding. */
.team.no-bids .team-meta, .team.no-bids .who { color: var(--text); }
.team.no-bids { border-color: color-mix(in srgb, var(--warn) 70%, var(--line)); box-shadow: inset 4px 0 0 var(--warn); background: color-mix(in srgb, var(--warn-soft) 55%, var(--surface)); }
.board-table tr.no-bids td { background: color-mix(in srgb, var(--warn-soft) 70%, transparent); }
.board-table tr.no-bids td:first-child { box-shadow: inset 4px 0 0 var(--warn); }
.pill.no-bid-pill { background: var(--warn-soft); color: var(--warn); font-size: .72em; vertical-align: middle; }

/* Payment methods: shown after the close and on the admin page. */
.pay-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-top: 12px; background: var(--surface); }
.pay-methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pay-methods li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pay-handle { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
#dlg-text { white-space: pre-wrap; }

/* ---- Usability pass (2026-11-24) ---- */
/* Status bar on the auction page: time left, pot, my position, once the big clock scrolls away. */
.status-bar {
  position: sticky; top: 60px; z-index: 25;
  display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; white-space: nowrap;
  padding: 8px max(16px, env(safe-area-inset-left)); min-height: 44px;
  background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
.status-bar .sb-clock { font-weight: 750; font-size: 1.05rem; }
.status-bar.soon .sb-clock { color: var(--danger); }
.status-bar .sb-mine { margin-left: auto; font-weight: 650; text-decoration: none; color: var(--text); min-height: 44px; display: inline-flex; align-items: center; }
.status-bar .sb-outbid { color: var(--outbid); }
#mine { scroll-margin-top: 120px; }
.desc.clamped { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 641px) { .desc.clamped { display: block; -webkit-line-clamp: unset; } }
.link-btn { background: none; border: 0; padding: 0; min-height: 44px; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
/* Phones: teams first, then My bids (the status bar links to it). */
@media (max-width: 999px) { .layout { grid-template-areas: 'teams' 'mine' 'mini'; } }

/* Bid buttons in a fixed grid, so arming one changes its color and label but never its size. */
.team-actions.bid-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-actions.bid-grid .custom-btn { grid-column: 1 / -1; }
.bid-grid .bid-btn { min-height: 48px; white-space: normal; line-height: 1.15; padding: 4px 6px; }
.outbid-tag { color: var(--outbid); font-weight: 700; }

/* Touch targets: 44 px on touch screens. */
@media (pointer: coarse) {
  .segmented button, .small-btn, button, .button, .tabs button { min-height: 44px; }
}

/* Phone header: the logo's name gives way so Guide keeps its label and nothing wraps. */
.site-nav .nav-link { white-space: nowrap; }
@media (max-width: 520px) { .guide-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; } }
@media (max-width: 430px) { .brand > span:not(.brand-mark) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

/* Testing banner: one slim line on phones. */
@media (max-width: 520px) { .fb-banner .fb-banner-text { display: none; } .fb-banner { padding: 4px 12px; } }

/* Leaderboard: Place a bid (phones, where the QR code is hidden) and the latest-bids rail (wide screens). */
.bid-link { margin-top: 10px; display: none; }
@media (max-width: 640px) { .bid-link { display: inline-flex; } }
.board-main { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.recent { display: none; }
@media (min-width: 1200px) { .board-main { grid-template-columns: minmax(0, 1fr) 300px; } .recent:not([hidden]) { display: block; } }
.recent ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.recent li { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.recent li:last-child { border-bottom: 0; }
.recent .r-amt { font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; grid-row: span 2; align-self: center; }
.recent .r-team { font-weight: 650; overflow-wrap: anywhere; }
.recent .r-who { color: var(--muted); font-size: .85rem; }

/* Notices with an action (Undo). */
.toast.has-action { pointer-events: auto; display: flex; align-items: center; gap: 12px; }
.toast-action { background: transparent; color: inherit; border: 1px solid currentColor; min-height: 36px; padding: 0 12px; border-radius: 8px; font-weight: 700; }

/* Admin: stage groups and sections, control bar, close-out checklist, auction picker. */
.subtabs { margin: -6px 0 16px; flex-wrap: wrap; }
.tabs .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); vertical-align: middle; margin-left: 4px; }
.control-bar { display: grid; gap: 12px; }
.control-buttons { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.control-buttons .close-now { margin-left: auto; }
.checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checklist li { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.checklist .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: inline-grid; place-items: center; font-size: .8rem; flex: none; }
.checklist li.done .tick { background: var(--good); border-color: var(--good); color: #fff; }
.checklist li.done .grow { color: var(--muted); }
.auction-picker summary { cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 36px; list-style: none; }
.auction-picker summary::-webkit-details-marker { display: none; }
.auction-picker summary::after { content: '▾'; margin-left: auto; color: var(--muted); }
.auction-picker:not([open]) summary::after { content: '▸'; }
.auction-picker[open] .picker-current { display: none; }
@media (max-width: 640px) {
  /* Admin team controls as stacked rows: team and price on top, bidder below, buttons under that. */
  .ctl-table { min-width: 0; }
  .ctl-table thead, .ctl-table .hide-sm { display: none; }
  .ctl-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .ctl-table tr[hidden] { display: none; }
  .ctl-table td { display: block; padding: 0; border: 0; }
  .ctl-table td:nth-child(3) { grid-column: 1; color: var(--muted); font-size: .875rem; }
  .ctl-table td:last-child { grid-column: 1 / -1; text-align: left; margin-top: 6px; }
  /* The auction header: four small stats in one row. */
  #panel-head .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  #panel-head .stat { padding: 8px; }
  #panel-head .stat .k { font-size: .65rem; }
  #panel-head .stat .v { font-size: 1rem; }
}

/* Terms checklists (sign-up, accept-terms, organizer) */
.consent-list { border: 0; padding: 0; margin: 0; min-width: 0; }
.consent-list legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.consent-list .checks { display: grid; gap: 2px; margin-top: 6px; }
.check.consent { font-weight: 400; font-size: .92rem; line-height: 1.4; padding: 8px 0; border-top: 1px solid var(--line); }
.check.consent:first-child { border-top: 0; }
.check.consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; }

/* Organizations, join codes, My auctions */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.side-group { margin: 10px 0 2px; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 640px) { .site-nav .hide-sm { display: none; } }
.join-box { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.join-box input { flex: 1 1 160px; max-width: 220px; text-transform: uppercase; letter-spacing: .12em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.member-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line, #8883); }
.member-row:first-child { border-top: 0; }

/* ---- Scoreboard type: clocks, pots and prices in the condensed face ---- */
.countdown, .big-countdown, .pot, .stat .v, .board-title, .board-closed, .count, .team-head .money, .board-table .money {
  font-family: var(--display); letter-spacing: .01em;
}
.board-title, .board-closed { text-transform: uppercase; }
.pot { color: var(--accent); }
.countdown.soon { color: var(--outbid); }
.label, .stat .k, .section-title, .big-label { letter-spacing: .08em; }

/* ---- Home (signed out): app first ---- */
.home-hero { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding: 24px 0 48px; }
.home-hero .pitch { flex: 1 1 340px; display: flex; flex-direction: column; gap: 18px; }
.home-hero h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.5rem); line-height: .95; margin: 0; }
.home-hero h1 .hl { color: var(--accent); }
.home-hero .lede { font-size: 1.15rem; color: var(--muted); margin: 0; }
.join-hero { display: flex; flex-wrap: wrap; gap: 10px; }
.join-hero input { flex: 1 1 200px; min-height: 52px; font-size: 1.1rem; letter-spacing: .1em; text-transform: uppercase; }
.join-hero button { min-height: 52px; padding: 0 26px; font-size: 1.05rem; }
.live-preview { flex: 1.3 1 440px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.live-preview .lp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.live-preview .lp-kicker { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.live-preview .lp-name { font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--heading); display: block; }
.live-preview .lp-figs { display: flex; gap: 20px; }
.live-preview .lp-fig { display: flex; flex-direction: column; align-items: flex-end; }
.live-preview .lp-fig .k { font-size: .75rem; color: var(--muted); }
.live-preview .lp-fig .v { font-family: var(--display); font-size: 1.9rem; font-weight: 800; color: var(--heading); line-height: 1; }
.live-preview .lp-fig .v.pot { color: var(--accent); }
.live-preview table { width: 100%; border-collapse: collapse; }
.live-preview th { text-align: left; padding: 10px 20px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.live-preview td { padding: 12px 20px; border-top: 1px solid var(--line); }
.live-preview td.r, .live-preview th.r { text-align: right; }
.live-preview td.price { font-family: var(--display); font-size: 1.35rem; font-weight: 700; }
.live-preview .lp-foot { padding: 12px 20px; border-top: 1px solid var(--line); }
.band { background: var(--brand); color: var(--brand-text); margin-inline: calc(50% - 50vw); }
.band .inner { max-width: 1180px; margin: 0 auto; padding: 48px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band h2 { color: var(--brand-text); font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 800; text-transform: uppercase; margin: 0 0 8px; }
.band p { margin: 0; font-size: 1.1rem; max-width: 52ch; }
.band .button { background: var(--brand-text); color: #f2f5f8; border-color: var(--brand-text); font-weight: 700; min-height: 52px; padding: 0 26px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; padding: 48px 0; }
.features .card h3 { text-transform: uppercase; margin-bottom: 6px; }
.features .card p { color: var(--muted); margin: 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan { border: 1px solid var(--line-strong); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.plan.featured { border: 2px solid var(--accent); }
.plan .name { font-weight: 600; color: var(--muted); }
.plan.featured .name { color: var(--accent); }
.plan .price { font-family: var(--display); font-size: 3.4rem; font-weight: 800; color: var(--heading); line-height: 1; }
.plan .price small { font-size: 1.4rem; color: var(--muted); }
.plan ul { margin: 6px 0 0; padding-left: 1.1em; color: var(--muted); }
.home-section-title { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); font-weight: 800; text-transform: uppercase; }
.features > .card, .plans > .plan, .auction-list > .card { margin-top: 0; }
.live-preview .lp-head > div:first-child { min-width: 0; }
.join-code { font-family: var(--display); font-size: 1.5em; letter-spacing: .12em; color: var(--accent); }

/* ---- Plans ---- */
.plan-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.plan-line.full { border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); }
.plan-card { margin: 8px 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.plan-name { font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--heading); text-transform: uppercase; line-height: 1.1; }

/* ---- Superadmin tabs: grouped at the far right, in orange, apart from the organizer tabs ---- */
.tabs .staff-tabs { display: flex; align-items: stretch; gap: 2px; margin-left: auto; padding: 0 4px 0 10px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--outbid-soft); flex: none; }
.tabs .staff-tabs[hidden] { display: none; }
.staff-label { align-self: center; font-family: var(--display); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--outbid); padding-right: 6px; border-right: 1px solid color-mix(in srgb, var(--outbid) 40%, transparent); margin-right: 4px; }
.tabs .staff-tabs button { color: color-mix(in srgb, var(--outbid) 75%, var(--muted)); }
.tabs .staff-tabs button:hover:not(:disabled) { color: var(--outbid); }
.tabs .staff-tabs button[aria-selected='true'] { color: var(--outbid); border-bottom-color: var(--outbid); }
.tabs .staff-tabs .tab-count { background: var(--outbid); color: #0b0f14; }
