:root {
  --ink: #101828;
  --muted: #667085;
  --paper: #f6f7f9;
  --white: #ffffff;
  --line: #e4e7ec;
  --accent: #e43d30;
  --accent-dark: #b92820;
  --navy: #111827;
  --green: #168568;
  --amber: #b96a05;
  --radius: 18px;
  --shadow: 0 18px 60px rgba(16, 24, 40, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--paper); }
button, input { font: inherit; }
a { color: inherit; }

.topbar {
  min-height: 68px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; color: var(--white); background: var(--navy); position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); transform: rotate(-3deg); }
.header-nav { display: flex; align-items: center; gap: 20px; font-size: .92rem; }
.header-nav a, .back-link, .link-button { color: #fff; text-decoration: none; opacity: .86; }
.header-nav form { display: inline; }
.link-button { background: none; border: 0; padding: 0; cursor: pointer; }
.header-nav a:hover, .link-button:hover { opacity: 1; }

.shell { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 72px; }
.wide-shell { width: min(1400px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 72px; }
.eyebrow { color: var(--accent); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.lead { color: var(--muted); line-height: 1.6; }
.page-heading { margin-bottom: 26px; }
.page-heading h1 { margin: 6px 0 0; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.05em; }
.admin-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }

.flash-stack { position: fixed; top: 82px; right: 20px; z-index: 50; width: min(360px, calc(100% - 40px)); }
.flash { padding: 13px 16px; border-radius: 12px; box-shadow: var(--shadow); background: #fff; border-left: 4px solid var(--navy); margin-bottom: 8px; }
.flash-success { border-left-color: var(--green); }
.flash-error { border-left-color: var(--accent); }

.auth-page { background: radial-gradient(circle at top, #253047, #111827 58%); }
.auth-page .topbar { background: transparent; }
.auth-page .shell { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 36px 0; }
.auth-card { width: min(480px, 100%); background: #fff; border-radius: 24px; box-shadow: 0 30px 100px rgba(0,0,0,.28); padding: clamp(28px, 7vw, 52px); }
.auth-card h1 { margin: 8px 0 6px; font-size: clamp(2.2rem, 8vw, 3.6rem); line-height: .98; letter-spacing: -.06em; }
.stack-form { display: grid; gap: 18px; margin-top: 28px; }
label { display: grid; gap: 7px; font-size: .86rem; font-weight: 750; color: #344054; }
input { width: 100%; border: 1px solid #cfd4dc; border-radius: 11px; padding: 12px 14px; background: #fff; color: var(--ink); outline: none; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(228,61,48,.12); }
.subtle-link { display: block; text-align: center; margin-top: 24px; color: var(--muted); font-size: .9rem; }

.registration-page {
  --forms-red: #c70c0f;
  --forms-red-dark: #98080b;
  --forms-blush: #f2e6e6;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(255,255,255,.24) 0 8%, transparent 31%),
    radial-gradient(circle at 88% 72%, rgba(255,210,210,.27), transparent 35%),
    linear-gradient(145deg, #790609 0%, var(--forms-red) 50%, #e47c7e 100%);
}
.registration-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, transparent 48%, rgba(255,255,255,.16) 76%, transparent 76.2%);
  pointer-events: none;
}
.registration-page .topbar { background: transparent; position: relative; z-index: 1; }
.registration-page .brand-mark { background: #fff; color: var(--forms-red); }
.registration-shell { position: relative; z-index: 1; width: min(1080px, calc(100% - 36px)); margin: 0 auto; padding: 28px 0 64px; }
.registration-card { overflow: hidden; background: rgba(255,255,255,.98); border-radius: 22px; box-shadow: 0 34px 100px rgba(74,0,2,.32); }
.registration-intro { padding: clamp(30px, 6vw, 58px); color: #fff; background: linear-gradient(118deg, var(--forms-red-dark), var(--forms-red)); }
.registration-kicker { display: block; margin-bottom: 11px; font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; opacity: .82; }
.registration-intro h1 { max-width: 760px; margin: 0; font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -.055em; }
.registration-intro p { margin: 24px 0 7px; font-weight: 750; }
.cause-list { margin: 0; padding-left: 22px; line-height: 1.65; }
.access-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.access-panel { position: relative; padding: clamp(26px, 4vw, 46px); }
.access-panel + .access-panel { border-left: 1px solid #e8d7d7; }
.access-panel-new { background: var(--forms-blush); }
.panel-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--forms-red); color: #fff; font-size: .8rem; font-weight: 850; }
.panel-heading h2 { margin: 15px 0 5px; font-size: clamp(1.35rem, 3vw, 1.8rem); letter-spacing: -.035em; }
.panel-heading p { min-height: 44px; margin: 0; color: var(--muted); line-height: 1.5; }
.access-panel .stack-form { margin-top: 24px; }
.access-panel label { min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.required-note { color: var(--forms-red); font-size: .72rem; font-weight: 700; }
.registration-note { color: var(--muted); line-height: 1.45; text-align: center; }
.registration-footer { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px clamp(26px, 4vw, 46px); border-top: 1px solid #eadede; color: var(--muted); background: #fff; font-size: .82rem; }
.registration-footer .subtle-link { margin: 0; color: var(--forms-red-dark); font-weight: 750; }
.registration-single { width: min(760px, 100%); margin: 0 auto; }
.registration-single .registration-intro h1 { max-width: 620px; }
.fee-alert { display: grid; gap: 4px; margin-bottom: 24px; padding: 18px 20px; border: 2px solid #d5a529; border-radius: 15px; background: #fff8df; }
.fee-alert > span { color: #795900; font-size: .75rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.fee-alert > strong { color: #8d250d; font-size: 2.4rem; line-height: 1; }
.fee-alert p { margin: 3px 0 0; color: #694d1c; }
.choice-card, .consent-check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; padding: 15px; border: 1px solid #d8d3ce; border-radius: 13px; background: #fff; cursor: pointer; }
.choice-card input, .consent-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--forms-red); }
.choice-card span { display: grid; gap: 3px; }
.choice-card small { color: var(--muted); font-weight: 500; line-height: 1.4; }
.consent-box { display: grid; gap: 11px; padding: 18px; border: 3px solid var(--forms-red); border-radius: 15px; background: #fff3f3; }
.consent-box > strong { color: var(--forms-red-dark); font-size: 1.05rem; text-transform: uppercase; }
.consent-check { border-color: #e7c8c8; line-height: 1.45; }
.separate-route { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.success-panel { text-align: center; }
.success-check { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto; border-radius: 50%; color: #fff; background: var(--green); font-size: 2rem; font-weight: 900; }
.success-panel .fee-alert { margin-top: 20px; text-align: left; }
.leave-warning { padding: 15px; border-left: 5px solid var(--forms-red); color: #7d1719; background: #fff1f1; font-weight: 800; line-height: 1.45; text-align: left; }
.family-registration { width: min(900px, 100%); margin: 0 auto; }
.family-registration .registration-intro h1 { max-width: 780px; }
.form-section { display: grid; gap: 16px; padding: 22px; border: 1px solid #eadede; border-radius: 16px; background: #fff; }
.form-section-heading { display: grid; gap: 7px; }
.form-section-heading > div { display: flex; align-items: center; gap: 10px; }
.form-section-heading h2 { margin: 0; font-size: 1.3rem; letter-spacing: -.025em; }
.form-section-heading p { margin: 0; color: var(--muted); line-height: 1.5; }
.step-number { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--forms-red); font-size: .78rem; font-weight: 900; }
.family-members { display: grid; gap: 10px; }
.public-footer { padding: 0 20px 28px; text-align: center; font-size: .85rem; }
.registration-page .public-footer { color: #fff; }
.terms-content { line-height: 1.7; }
.terms-list { margin: 28px 0; padding-left: 26px; }
.terms-list > li { padding-left: 8px; margin: 0 0 24px; }
.terms-content h2 { font-size: 1.15rem; line-height: 1.4; margin: 0 0 8px; }
.terms-content p { margin: 8px 0; }
.terms-notice { border: 1px solid #eadede; border-radius: 12px; padding: 18px; background: #fffafa; }
.family-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: end; gap: 10px; padding: 13px; border-radius: 13px; background: #f7f5f2; }
.member-number { width: 32px; height: 43px; display: grid; place-items: center; color: var(--forms-red-dark); font-weight: 900; }
.remove-member { margin-bottom: 8px; border: 0; color: #8b1c1f; background: transparent; font-size: .78rem; font-weight: 800; cursor: pointer; }
.add-member { justify-self: start; }
.board-holder-options { display: grid; gap: 9px; }
.customer-type-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.company-fields { display: grid; gap: 14px; margin: 0; padding: 18px; border: 1px solid #eadede; border-radius: 12px; background: #fffafa; min-width: 0; }
.company-fields legend { font-weight: 750; padding: 0 6px; }
.company-fields p, .company-fields small { margin: 0; color: var(--muted); line-height: 1.5; }
.board-holder-option { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px; padding: 14px; border: 2px solid #e0d9d5; border-radius: 13px; background: #fff; cursor: pointer; }
.board-holder-option:has(input:checked) { border-color: var(--forms-red); background: #fff4f4; }
.board-holder-option input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--forms-red); }
.board-holder-option span { display: grid; gap: 3px; }
.board-holder-option small, .board-note { color: var(--muted); font-weight: 500; line-height: 1.4; }
.board-note { margin: 0; padding: 11px 13px; border-radius: 10px; background: #fff4df; }
.registration-total { display: grid; gap: 3px; padding: 22px; border-radius: 16px; color: #fff; background: var(--navy); }
.registration-total > span { color: #cbd2dc; font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.registration-total strong { font-size: clamp(2.5rem, 7vw, 4.2rem); line-height: 1; letter-spacing: -.05em; }
.registration-total small { color: #d3d7de; }
.settlement-consent[hidden], .board-note[hidden] { display: none; }
.registered-names { display: grid; gap: 7px; margin: 18px 0; padding: 0; list-style: none; text-align: left; }
.registered-names li { padding: 10px 13px; border-radius: 9px; background: #f5f2ef; font-weight: 750; }
.board-confirmation { display: grid; gap: 3px; margin: 20px 0; padding: 20px; border-radius: 16px; color: #fff; background: var(--navy); }
.board-confirmation > span { color: #cbd2dc; font-size: .76rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.board-confirmation > strong { color: #fff; font-size: 3.6rem; line-height: 1; }
.board-confirmation p { margin: 3px 0 0; }

.button { appearance: none; border: 0; border-radius: 11px; padding: 11px 16px; font-weight: 820; cursor: pointer; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 8px; transition: transform .12s ease, background .12s ease; }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .55; cursor: wait; }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { background: var(--navy); color: #fff; }
.button-danger { background: #921d18; color: #fff; }
.button-quiet { background: #eef1f5; color: var(--ink); }
.button-large { min-height: 54px; font-size: 1.05rem; }

.bidder-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; margin-bottom: 16px; padding: 0 4px; }
.auction-card { position: relative; overflow: hidden; background: #fff; border-radius: 26px; box-shadow: var(--shadow); padding: clamp(24px, 6vw, 48px); }
.auction-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--accent); }
.lot-kicker { display: flex; align-items: center; gap: 7px; color: var(--accent); text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 800; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(228,61,48,.12); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(228,61,48,0); } }
.auction-card h1 { font-size: clamp(2rem, 7vw, 4.5rem); line-height: 1.02; letter-spacing: -.055em; margin: 22px 0 12px; max-width: 13ch; }
.donor { color: var(--muted); margin-bottom: 28px; }
.price-panel { display: grid; padding: 22px; color: #fff; background: var(--navy); border-radius: 17px; }
.price-panel > span { color: #aab2c0; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.price-panel strong { font-size: clamp(2.2rem, 9vw, 4.6rem); letter-spacing: -.06em; line-height: 1.05; margin: 5px 0; }
.price-panel small { color: #d3d7de; }
.leading-banner { margin: 14px 0 -2px; padding: 11px 15px; border-radius: 10px; background: #e9f8f2; color: #0c6c53; font-weight: 800; text-align: center; }
.bid-controls { display: grid; gap: 12px; margin-top: 18px; }
.bid-button { min-height: 62px; font-size: 1.18rem; }
.custom-bid summary { cursor: pointer; text-align: center; color: var(--muted); font-size: .9rem; padding: 8px; }
.custom-bid form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; padding-top: 10px; }
.money-input { display: flex; align-items: center; border: 1px solid #cfd4dc; border-radius: 11px; background: #fff; overflow: hidden; }
.money-input span { padding-left: 13px; color: var(--muted); }
.money-input input { border: 0; box-shadow: none; }
.bid-message { min-height: 22px; text-align: center; font-size: .9rem; font-weight: 700; margin: 14px 0 0; color: var(--muted); }
.bid-message.success { color: var(--green); }
.bid-message.error { color: var(--accent); }
.is-waiting { text-align: center; min-height: 470px; display: grid; place-content: center; }
.is-waiting h1 { max-width: 15ch; margin-inline: auto; }
.waiting-icon { color: var(--accent); font-size: 2rem; animation: pulseText 1.5s infinite; }
@keyframes pulseText { 50% { opacity: .25; } }
.progress-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 6px; color: var(--muted); font-size: .88rem; }
.progress-strip strong { color: var(--ink); }

.result-list { display: grid; gap: 12px; }
.result-card { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.result-card h2 { font-size: 1rem; margin: 3px 0 0; }
.lot-label { color: var(--muted); font-size: .75rem; font-weight: 800; }
.result-amount { display: grid; text-align: right; }
.result-amount span { color: var(--muted); font-size: .72rem; }
.status { min-width: 105px; padding: 7px 10px; border-radius: 999px; text-align: center; font-size: .76rem; font-weight: 800; }
.status-won, .status-leading { color: #0c6c53; background: #e5f7f1; }
.status-lost, .status-outbid { color: #8d2922; background: #fff0ee; }
.empty-state { text-align: center; background: #fff; border: 1px dashed #cfd4dc; border-radius: 16px; padding: 60px 24px; color: var(--muted); }

.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 12px; }
.stats-grid > div { display: grid; gap: 5px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stats-grid span { color: var(--muted); font-size: .77rem; text-transform: uppercase; letter-spacing: .07em; }
.stats-grid strong { font-size: 1.8rem; letter-spacing: -.04em; }
.admin-lots { display: grid; gap: 10px; }
.admin-lot { display: grid; grid-template-columns: 120px minmax(280px, 1fr) 190px 210px; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 16px 18px; }
.admin-lot.status-active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(228,61,48,.09); }
.lot-index { display: grid; gap: 6px; }
.lot-index > strong { font-size: 1.1rem; }
.status-pill { width: fit-content; padding: 4px 8px; border-radius: 999px; background: #eef1f5; color: var(--muted); font-size: .67rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.status-active .status-pill { color: #fff; background: var(--accent); }
.status-closed .status-pill { color: #0c6c53; background: #e5f7f1; }
.lot-copy h2 { margin: 0 0 4px; font-size: 1rem; }
.lot-copy p { margin: 0; color: var(--muted); font-size: .78rem; }
.lot-bid { display: grid; }
.lot-bid > span, .lot-bid small { color: var(--muted); font-size: .74rem; }
.lot-bid strong { font-size: 1.25rem; }
.lot-actions { display: grid; grid-template-columns: 1fr auto; gap: 7px; align-items: center; }
.lot-actions .button { width: 100%; font-size: .8rem; }
.settings-popover { position: relative; }
.settings-popover > summary { list-style: none; cursor: pointer; color: var(--muted); font-size: .75rem; padding: 9px 3px; }
.settings-popover > summary::-webkit-details-marker { display: none; }
.settings-popover form { position: absolute; z-index: 10; right: 0; top: 42px; width: 230px; display: grid; gap: 11px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }

.participant-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.participant-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.participant-table th, .participant-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.participant-table th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.participant-table tr:last-child td { border-bottom: 0; }
.payment-toggle { border: 0; border-radius: 999px; padding: 7px 11px; font-weight: 800; font-size: .75rem; cursor: pointer; color: #8b4c00; background: #fff1d6; }
.payment-toggle.is-paid { color: #0c6c53; background: #e5f7f1; }
.payment-toggle.is-empty { color: var(--muted); background: #eef1f5; display: inline-block; }
.connection-note { margin: 0 0 20px; color: var(--muted); font-size: .78rem; }
.connection-note.is-offline { color: var(--accent); font-weight: 800; }

.screen-label { color: #cbd2dc; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.public-screen { background: #0b1220; color: #fff; }
.screen-shell { width: min(1500px, calc(100% - 64px)); margin: 0 auto; padding: 40px 0 60px; }
.screen-card { min-height: calc(100vh - 168px); display: grid; align-content: center; position: relative; overflow: hidden; border-radius: 30px; padding: clamp(36px, 7vw, 100px); background: radial-gradient(circle at 80% 20%, #28344b, #151d2d 55%, #111827); box-shadow: 0 40px 120px rgba(0,0,0,.35); }
.screen-card::after { content: ""; position: absolute; inset: 0 0 auto; height: 9px; background: var(--accent); }
.screen-connection { position: absolute; z-index: 2; top: 26px; right: 26px; padding: 12px 16px; border-radius: 10px; background: #f9d8d4; color: #8d2922; font-weight: 800; }
.screen-lot-meta { display: flex; align-items: center; gap: 14px; color: #d7dce4; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .1em; }
.screen-lot-meta strong { color: #fff; }
.screen-card h1 { max-width: 15ch; margin: 26px 0 14px; font-size: clamp(3.6rem, 7vw, 8rem); line-height: .95; letter-spacing: -.065em; }
.screen-card > p { margin: 0 0 36px; color: #aeb7c7; font-size: clamp(1rem, 2vw, 1.6rem); }
.screen-price { display: grid; width: min(680px, 100%); padding: 28px 34px; border-radius: 20px; background: #fff; color: var(--ink); }
.screen-price > span { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.screen-price strong { color: var(--accent); font-size: clamp(4rem, 9vw, 8rem); line-height: 1; letter-spacing: -.07em; }
.screen-price small { color: var(--muted); font-size: 1.05rem; }

@media (max-width: 900px) {
  .access-grid { grid-template-columns: 1fr; }
  .access-panel + .access-panel { border-left: 0; border-top: 1px solid #e8d7d7; }
  .panel-heading p { min-height: auto; }
  .admin-lot { grid-template-columns: 80px 1fr 150px; }
  .lot-actions { grid-column: 2 / -1; grid-template-columns: auto auto; justify-content: start; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

:focus-visible { outline: 3px solid #f79086; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

@media (max-width: 620px) {
  .topbar { padding: 0 16px; min-height: 60px; }
  .brand span:last-child { display: none; }
  .header-nav { gap: 12px; font-size: .8rem; }
  .shell, .wide-shell { width: min(100% - 22px, 760px); padding-top: 18px; }
  .registration-shell { width: calc(100% - 18px); padding: 8px 0 30px; }
  .registration-card { border-radius: 16px; }
  .registration-intro, .access-panel { padding: 26px 21px; }
  .field-row { grid-template-columns: 1fr; }
  .registration-footer { align-items: flex-start; flex-direction: column; padding: 19px 21px; }
  .registration-footer .subtle-link { text-align: left; }
  .separate-route { align-items: stretch; flex-direction: column; }
  .form-section { padding: 16px; }
  .family-row { grid-template-columns: 30px minmax(0, 1fr); }
  .family-row .remove-member { grid-column: 2; justify-self: start; margin: 0; padding: 2px 0; }
  .auction-card { border-radius: 20px; }
  .custom-bid form { grid-template-columns: 1fr; }
  .progress-strip { align-items: flex-start; }
  .result-card { grid-template-columns: 1fr auto; }
  .result-amount { grid-column: 1; text-align: left; }
  .status { grid-column: 2; grid-row: 1 / span 2; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .admin-lot { grid-template-columns: 70px 1fr; gap: 12px; }
  .lot-bid, .lot-actions { grid-column: 2; }
  .stats-grid strong { font-size: 1.35rem; }
  .screen-shell { width: calc(100% - 22px); padding-top: 14px; }
  .screen-card { border-radius: 20px; min-height: calc(100vh - 96px); }
}

/* Fysieke Flevo Boys-zaalbeleving */
:root {
  --fb-red: #b40212;
  --fb-red-dark: #87000b;
  --fb-ink: #1e1e1c;
  --fb-paper: #f7f5f2;
  --fb-blush: #f4e4e5;
  --accent: var(--fb-red);
  --accent-dark: var(--fb-red-dark);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Segoe UI", sans-serif;
}
.brand-mark { overflow: hidden; background: #fff; transform: none; }
.brand-mark img { width: 28px; height: 30px; object-fit: contain; mix-blend-mode: multiply; }
select { width: 100%; border: 1px solid #cfd4dc; border-radius: 11px; padding: 12px 14px; background: #fff; color: var(--ink); font: inherit; }

/* Zaalweergave */
.public-screen { overflow: hidden; background: var(--fb-paper); color: var(--fb-ink); }
.public-screen .topbar { min-height: 88px; padding-block: 7px; background: var(--fb-ink); }
.public-screen .brand { gap: 15px; font-size: clamp(1.2rem, 1.55vw, 1.65rem); }
.public-screen .brand-mark { width: 70px; height: 70px; flex: 0 0 70px; border: 2px solid rgba(255,255,255,.88); border-radius: 50%; box-shadow: 0 0 0 3px rgba(180,2,18,.32); }
.public-screen .brand-mark img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.screen-shell { width: 100%; height: calc(100vh - 88px); padding: 0; }
.floor-stage { height: 100%; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; position: relative; overflow: hidden; background: radial-gradient(circle, rgba(180,2,18,.09) 1.4px, transparent 1.5px) 0 0 / 15px 15px, var(--fb-paper); }
.stage-masthead { min-height: 15vh; display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; padding: 2.2vh 5vw 2.8vh; color: #fff; background: linear-gradient(105deg, var(--fb-red-dark), var(--fb-red) 70%); }
.stage-masthead::after { content: ""; position: absolute; bottom: 0; left: 5vw; width: clamp(150px, 19vw, 310px); height: 5px; background: rgba(255,255,255,.92); }
.stage-kicker { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.stage-masthead h1 { margin: .15rem 0 0; font: 900 clamp(3rem, 6.5vw, 7.2rem)/.84 var(--display); letter-spacing: .025em; text-transform: uppercase; transform: skew(-4deg); }
.auction-mark { display: grid; place-items: center; gap: 5px; min-width: 160px; padding: 11px 25px 13px; border: 3px solid rgba(255,255,255,.78); border-radius: 999px; font: 900 clamp(1.3rem, 2vw, 2.25rem)/1 var(--display); text-transform: uppercase; }
.auction-gavel { width: clamp(36px, 3.3vw, 54px); height: clamp(36px, 3.3vw, 54px); fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.auction-gavel .gavel-fill { fill: currentColor; stroke: none; }
.stage-lot { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, .8fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding: 3vh 5vw; }
.lot-photo-wrap { min-width: 0; min-height: 0; height: 100%; display: grid; place-items: center; }
.lot-photo { width: 100%; height: 100%; max-height: 56vh; object-fit: cover; border: 9px solid #fff; outline: 3px solid var(--fb-red); border-radius: 24px; box-shadow: 0 22px 60px rgba(30,30,28,.24); }
.lot-photo-placeholder { display: grid; place-content: center; gap: 14px; text-align: center; color: #fff; background: linear-gradient(135deg, var(--fb-red-dark), var(--fb-red)); }
.lot-photo-placeholder span { font: 900 clamp(4rem, 8vw, 9rem)/.8 var(--display); }
.lot-photo-placeholder strong { font-size: clamp(1rem, 2vw, 2rem); letter-spacing: .16em; text-transform: uppercase; }
.lot-sheet { position: relative; min-width: 0; padding: clamp(24px, 3vw, 52px); border-radius: 0 26px 26px 26px; background: #fff; box-shadow: 0 20px 50px rgba(30,30,28,.17); }
.lot-pill { display: inline-flex; align-items: center; gap: 9px; padding: .42em 1.45em; border-radius: 999px; color: #fff; background: var(--fb-ink); font: 900 1rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.lot-number { display: block; margin: .12em 0 .05em; color: var(--fb-red); font: 900 clamp(6rem, 11vw, 12rem)/.78 var(--display); letter-spacing: -.02em; }
.rough-rule { width: 100%; height: 4px; margin: 18px 0; background: var(--fb-ink); transform: rotate(-.5deg); opacity: .85; }
.lot-sheet h2 { margin: 0; font: 900 clamp(2.2rem, 4vw, 5rem)/.95 var(--display); letter-spacing: .015em; text-transform: uppercase; }
.lot-sheet.has-long-title h2 { font-size: clamp(1.75rem, 3.1vw, 3.7rem); line-height: .98; }
.lot-detail { font-size: clamp(1rem, 1.7vw, 1.65rem); line-height: 1.35; }
.donor-block { display: grid; gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 3px solid var(--fb-ink); }
.donor-block span, .result-label { color: #64615e; font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.donor-block strong { font: 900 clamp(1.6rem, 2.6vw, 3rem)/1 var(--display); text-transform: uppercase; }
.donor-block img { max-width: 240px; max-height: 80px; object-fit: contain; }
.stage-dashboard { min-height: 10vh; display: grid; grid-template-columns: repeat(3, auto) minmax(340px, 1fr); align-items: center; gap: 0; color: #fff; background: var(--fb-ink); }
.stage-dashboard > div { display: grid; gap: 3px; min-width: 170px; padding: 1.5vh 2.3vw; border-right: 1px solid rgba(255,255,255,.16); }
.stage-dashboard span { color: #bfbdb8; font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.stage-dashboard strong { overflow: hidden; font-size: clamp(1.1rem, 1.8vw, 2rem); text-overflow: ellipsis; white-space: nowrap; }
.stage-dashboard .next-up { border-right: 0; }
.stage-dashboard.without-next { grid-template-columns: repeat(3, 1fr); }
.stage-dashboard.without-next > div:last-child { border-right: 0; }
.stage-dashboard.without-revenue { grid-template-columns: repeat(2, auto) minmax(340px, 1fr); }
.stage-dashboard.without-revenue.without-next { grid-template-columns: repeat(2, 1fr); }
.result-masthead { background: linear-gradient(105deg, #730008, var(--fb-red)); }
.result-sheet { display: grid; gap: 9px; }
.result-price { color: var(--fb-red); font: 900 clamp(5rem, 9vw, 10rem)/.85 var(--display); }
.winner-board { margin-top: 10px; font: 800 clamp(1.6rem, 2.5vw, 3rem)/1 var(--display); text-transform: uppercase; }
.winner-board strong { color: var(--fb-red); font-size: 1.5em; }
.unsold-title { color: var(--fb-red); font: 900 clamp(4rem, 8vw, 9rem)/.85 var(--display); text-transform: uppercase; }
.stage-welcome { display: grid; place-items: center; align-content: center; gap: 14px; padding: 5vh; text-align: center; }
.stage-welcome img { width: min(18vw, 230px); aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.stage-welcome h1 { max-width: 12ch; margin: 0; color: var(--fb-red); font: 900 clamp(4rem, 8vw, 9rem)/.85 var(--display); text-transform: uppercase; }
.stage-welcome p { max-width: 760px; margin: 0; font-size: clamp(1.2rem, 2vw, 2rem); }
.stage-finished { min-height: 0; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 5vw; padding: 4vh 7vw; }
.final-total { display: grid; gap: 10px; }
.final-total > span { color: var(--muted); font-size: 1rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.final-total > strong { color: var(--fb-red); font: 900 clamp(6rem, 12vw, 13rem)/.8 var(--display); }
.final-total p { font-size: clamp(1.25rem, 2vw, 2.1rem); }
.club-heroes { padding: clamp(24px, 4vw, 48px); border-radius: 24px; color: #fff; background: var(--fb-ink); box-shadow: var(--shadow); }
.club-heroes .stage-kicker { color: #ff8991; }
.club-heroes ol { display: grid; gap: 0; margin: 22px 0 0; padding: 0; list-style: none; }
.club-heroes li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid #44413d; font-size: clamp(1rem, 1.6vw, 1.5rem); }
.club-heroes li span { color: #beb9b4; }
.screen-connection { position: absolute; z-index: 10; top: 18px; right: 22px; padding: 10px 14px; border-radius: 9px; color: #7c1114; background: #fff4d7; font-weight: 800; }

/* Deelnemersscherm */
.bidder-pass { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 18px 22px; border-radius: 18px; color: #fff; background: linear-gradient(110deg, var(--fb-ink), #33322f); box-shadow: var(--shadow); }
.bidder-pass > div { display: grid; }
.bidder-pass span { color: #d1ceca; font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.bidder-pass strong { font: 900 3.2rem/.9 var(--display); }
.bidder-pass p { margin: 0; text-align: right; }
.bidder-pass small { color: #d1ceca; }
.mobile-event { overflow: hidden; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.mobile-event .connection-note { margin: 0; padding: 10px 18px; color: #66615e; background: #f2efeb; }
.mobile-masthead { display: flex; align-items: center; justify-content: space-between; padding: 20px; color: #fff; background: var(--fb-red); }
.mobile-lot-no { font: 900 2.8rem/.8 var(--display); }
.mobile-lot-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 0; border-radius: 0; }
.mobile-lot-copy { padding: 25px; }
.mobile-lot-copy h1, .mobile-result h1, .mobile-welcome h1 { margin: 0 0 10px; font: 900 clamp(2.4rem, 10vw, 4.2rem)/.92 var(--display); text-transform: uppercase; }
.mobile-lot-copy p { color: var(--muted); line-height: 1.5; }
.opening-price { display: inline-block; margin-top: 8px; padding: 8px 12px; border-radius: 999px; color: var(--fb-red-dark); background: var(--fb-blush); font-weight: 850; }
.floor-instruction { display: grid; gap: 6px; margin: 0 20px 24px; padding: 17px; border-left: 5px solid var(--fb-red); background: #f7f3ef; line-height: 1.45; }
.floor-instruction b { color: var(--fb-red); }
.mobile-result, .mobile-welcome { padding: clamp(28px, 7vw, 52px); }
.mobile-result { color: #fff; background: linear-gradient(135deg, var(--fb-red-dark), var(--fb-red)); }
.mobile-result .eyebrow, .mobile-result p { color: rgba(255,255,255,.8); }
.mobile-result.is-mine { background: linear-gradient(135deg, #087057, #159276); }
.mobile-price { display: block; margin: 12px 0; font: 900 clamp(4rem, 18vw, 7rem)/.85 var(--display); }
.mobile-result h2 { margin-top: 28px; }
.mobile-next { display: grid; gap: 4px; padding: 20px 24px; border-top: 1px solid #eadfda; background: var(--fb-paper); }
.mobile-next span { color: var(--fb-red); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.mobile-next small { color: var(--muted); }
.mobile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.mobile-stats > div { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.mobile-stats span { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.mobile-stats strong { font-size: 1.25rem; }

/* Backoffice */
.floor-admin { background: var(--fb-paper); }
.floor-admin .topbar { background: var(--fb-ink); }
.floor-stats { grid-template-columns: repeat(5, 1fr); }
.floor-stats small { color: var(--muted); }
.admin-cockpit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr); gap: 0; overflow: hidden; margin: 22px 0 42px; border: 2px solid var(--fb-red); border-radius: 22px; background: #fff; box-shadow: 0 24px 70px rgba(30,30,28,.14); }
.cockpit-lot { padding: 28px; background: #faf8f5; }
.cockpit-photo { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; margin: 22px 0; border-radius: 15px; }
.cockpit-lot h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -.04em; }
.cockpit-lot p { color: var(--muted); }
.lot-facts { display: flex; gap: 28px; margin: 20px 0 0; }
.lot-facts div { display: grid; gap: 3px; }
.lot-facts dt { color: var(--muted); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.lot-facts dd { margin: 0; font-size: 1.3rem; font-weight: 850; }
.result-console { padding: clamp(28px, 4vw, 52px); color: #fff; background: var(--fb-ink); }
.result-console .eyebrow { color: #ff7b83; }
.result-console h2 { margin: 8px 0 0; font-size: clamp(2rem, 4vw, 3.8rem); line-height: .95; letter-spacing: -.05em; }
.legacy-warning { display: grid; gap: 4px; margin-top: 20px; padding: 13px 15px; border-left: 4px solid #f1b637; color: #fff7df; background: #3c3525; font-size: .84rem; line-height: 1.45; }
.result-form { display: grid; gap: 18px; margin-top: 30px; }
.result-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.result-console label { color: #e8e4df; }
.result-preview { min-height: 70px; display: grid; align-items: center; padding: 15px 17px; border: 1px solid #54514c; border-radius: 12px; color: #fff; background: #2a2927; font-weight: 800; line-height: 1.4; }
.console-alternatives { display: flex; gap: 10px; margin-top: 14px; }
.console-alternatives .button { color: #fff; background: #383633; }
.admin-ready { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 22px 0 42px; padding: clamp(26px, 4vw, 44px); border-left: 8px solid var(--fb-red); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.admin-ready h2 { margin: 7px 0; font-size: clamp(1.6rem, 3vw, 2.8rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 34px 0 15px; }
.section-heading h2 { margin: 5px 0 0; font-size: 2rem; }
.section-heading > span { color: var(--muted); }
.floor-lot-list { display: grid; gap: 9px; }
.floor-lot-row { display: grid; grid-template-columns: 100px minmax(260px, 1fr) minmax(180px, .45fr) minmax(250px, .55fr); align-items: center; gap: 18px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.floor-lot-row.status-active { border-color: var(--fb-red); box-shadow: 0 0 0 2px rgba(180,2,18,.08); }
.floor-result { display: grid; gap: 3px; }
.floor-result span { color: var(--muted); font-size: .75rem; }
.floor-result strong { font-size: 1.1rem; }
.floor-actions { grid-template-columns: 1fr; }
.result-editor { position: relative; }
.result-editor > summary { cursor: pointer; color: var(--fb-red-dark); font-size: .8rem; font-weight: 800; }
.compact-result-form { position: absolute; z-index: 12; right: 0; top: 32px; width: 260px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }

@media (max-width: 1050px) {
  .admin-cockpit { grid-template-columns: 1fr; }
  .floor-lot-row { grid-template-columns: 85px 1fr 170px; }
  .floor-actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; }
  .stage-lot { grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: 24px; }
  .stage-dashboard { grid-template-columns: repeat(3, 1fr); }
  .stage-dashboard .next-up { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.16); }
  .stage-finished { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .floor-stats { grid-template-columns: repeat(2, 1fr); }
  .result-fields { grid-template-columns: 1fr; }
  .admin-ready { align-items: stretch; flex-direction: column; }
  .floor-lot-row { grid-template-columns: 68px 1fr; }
  .floor-result, .floor-actions { grid-column: 2; }
  .compact-result-form { position: fixed; inset: 8vh 14px auto; width: auto; max-height: 84vh; overflow: auto; }
  .bidder-pass { align-items: flex-start; }
  .bidder-pass p { font-size: .86rem; }
}

/* Operationele verfijningen */
[hidden] { display: none !important; }
.registration-settings { margin-bottom: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.registration-settings summary { cursor: pointer; font-weight: 700; }
.board-person { display: grid; gap: 10px; }
.board-person > label:not(.board-holder-option), .board-person > small { margin-inline: 12px; }
.registration-settings .stack-form { max-width: 440px; margin: 18px 0; }
.admin-heading-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.admin-heading-actions form { margin: 0; }
.admin-heading-actions form { display: flex; align-items: center; gap: 8px; }
.admin-heading-actions select { width: auto; padding-block: 10px; }
.preflight-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 18px; margin: 16px 0 8px; padding: 13px 16px; border: 1px solid #ead7d8; border-radius: 13px; background: #fff; color: var(--muted); font-size: .82rem; }
.preflight-strip strong { color: var(--ink); }
.preflight-strip .needs-attention { color: #8b4c00; font-weight: 800; }
.lot-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) 210px; gap: 12px; margin-bottom: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.lot-toolbar label { grid-template-columns: auto minmax(130px, 1fr); align-items: center; }
.connection-note.has-update { padding: 10px 13px; border-left: 4px solid #b96a05; color: #744504; background: #fff3d8; font-weight: 800; }
.admin-next-cue { display: grid; gap: 3px; margin-top: 15px; padding: 12px 14px; border-left: 4px solid #ff7b83; background: #2a2927; }
.admin-next-cue span { color: #c8c4bf; font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.correction-preview { min-height: 36px; color: var(--muted); font-size: .78rem; line-height: 1.35; }

.my-summary, .settlement-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 18px; }
.attendance-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.attendance-summary > div { display: grid; gap: 5px; padding: 18px; border-radius: 14px; color: #fff; background: var(--fb-ink); }
.attendance-summary span { color: #c9c5c0; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.attendance-summary strong { font-size: 1.65rem; }
.my-summary > div, .settlement-summary > div { display: grid; gap: 5px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.my-summary span, .settlement-summary span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.my-summary strong, .settlement-summary strong { font-size: 1.35rem; }
.settlement-summary .has-credit { border-color: #e5a63b; background: #fff8e9; }
.text-warning { color: #9a5700; }
.my-result-card { grid-template-columns: 84px minmax(0, 1fr) auto auto; }
.result-thumb { width: 84px; height: 68px; object-fit: cover; border-radius: 10px; }
.result-thumb.lot-photo-placeholder { border: 0; outline: 0; }
.result-thumb.lot-photo-placeholder span { font-size: 1.25rem; }
.settlement-note { margin-top: 18px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.danger-zone { margin-top: 42px; border: 1px solid #e5b4b0; border-radius: 14px; background: #fff; }
.danger-zone > summary { padding: 16px 18px; color: #8d2922; font-weight: 850; cursor: pointer; }
.danger-zone-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr); gap: 24px; padding: 0 18px 18px; border-top: 1px solid #f0d8d6; }
.danger-zone-body p { margin-bottom: 0; color: var(--muted); line-height: 1.5; }
.danger-zone-body form { display: grid; align-content: end; gap: 10px; padding-top: 16px; }

.mobile-pause { display: grid; gap: 12px; padding: clamp(32px, 9vw, 58px); background: linear-gradient(145deg, #fff, var(--fb-blush)); }
.mobile-pause h1 { margin: 0; color: var(--fb-red); font: 900 clamp(2.7rem, 12vw, 4.7rem)/.9 var(--display); text-transform: uppercase; }
.mobile-pause p { margin: 0; color: var(--muted); line-height: 1.5; }
.pause-last { display: grid; gap: 4px; margin-top: 12px; padding: 15px; border-left: 5px solid var(--fb-red); background: #fff; }
.pause-last span { color: var(--muted); font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.pause-countdown { display: block; color: var(--fb-red); font: 900 clamp(4rem, 9vw, 8rem)/.85 var(--display); letter-spacing: .04em; }
.mobile-result-photo { float: right; width: min(42%, 220px); max-height: 210px; margin: 0 0 18px 18px; border: 5px solid rgba(255,255,255,.9); border-radius: 14px; object-fit: cover; }
.mobile-donor-logo { display: block; max-width: 170px; max-height: 58px; margin-top: 16px; padding: 7px; border-radius: 9px; background: #fff; object-fit: contain; }
.stage-pause { min-height: 0; display: grid; grid-template-columns: minmax(220px, .6fr) minmax(0, 1.4fr); place-items: center; gap: 5vw; padding: 5vh 9vw; }
.stage-pause img { width: min(24vw, 300px); max-height: 38vh; object-fit: contain; mix-blend-mode: multiply; }
.stage-pause h2 { margin: 10px 0 20px; color: var(--fb-red); font: 900 clamp(3rem, 6.5vw, 7rem)/.88 var(--display); text-transform: uppercase; }
.stage-pause p { max-width: 850px; font-size: clamp(1.15rem, 2vw, 2rem); line-height: 1.35; }
.result-donor { margin-top: 8px; padding-top: 10px; }
.cockpit-donor-logo { display: block; max-width: 220px; max-height: 76px; margin: 12px 0; object-fit: contain; }
.admin-ready-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.auctioneer-console { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); overflow: hidden; border: 2px solid var(--fb-red); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.auctioneer-console.is-read-only { grid-template-columns: 1fr; }
.auctioneer-lot { padding: clamp(26px, 4vw, 52px); }
.auctioneer-lot h2 { margin: 24px 0 10px; font: 900 clamp(2.5rem, 5vw, 5.2rem)/.92 var(--display); text-transform: uppercase; }
.auctioneer-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.auctioneer-prices div { display: grid; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--fb-paper); }
.auctioneer-prices dt { color: var(--muted); font-size: .74rem; font-weight: 850; text-transform: uppercase; }
.auctioneer-prices dd { margin: 0; color: var(--fb-red); font: 900 2.4rem/1 var(--display); }
.multi-guide { display: grid; gap: 5px; padding: 16px; border-left: 5px solid #b96a05; background: #fff4dc; line-height: 1.45; }

@media (max-height: 820px) and (min-width: 721px) {
  .public-screen .topbar { min-height: 64px; height: 64px; }
  .public-screen .brand-mark { width: 50px; height: 50px; flex-basis: 50px; }
  .screen-shell { height: calc(100vh - 64px); }
  .stage-masthead { min-height: 96px; padding: 12px 4vw 16px; }
  .stage-masthead h1 { font-size: clamp(2.7rem, 5.3vw, 4.8rem); }
  .auction-mark { min-width: 130px; padding: 7px 20px 9px; }
  .stage-lot { gap: 28px; padding: 18px 4vw; }
  .lot-photo-wrap { overflow: hidden; }
  .lot-photo { display: block; min-height: 0; height: 100%; max-height: 100%; border-width: 6px; border-radius: 18px; }
  .lot-sheet { max-height: 100%; padding: 19px 24px; overflow: hidden; }
  .lot-number { font-size: clamp(4.8rem, 8vw, 7.2rem); }
  .rough-rule { margin: 10px 0; }
  .lot-sheet h2 { font-size: clamp(1.8rem, 3.1vw, 3.2rem); }
  .lot-sheet.has-long-title h2 { font-size: clamp(1.45rem, 2.45vw, 2.45rem); line-height: .95; }
  .lot-detail { margin: 10px 0; font-size: clamp(.9rem, 1.35vw, 1.2rem); }
  .donor-block { gap: 5px; margin-top: 10px; padding-top: 9px; }
  .donor-block strong { font-size: clamp(1.3rem, 2vw, 2rem); }
  .donor-block img { max-height: 55px; }
  .stage-dashboard { min-height: 70px; }
  .stage-dashboard > div { padding-block: 10px; }
  .stage-welcome { gap: 8px; padding: 2vh; }
  .stage-welcome img { width: min(15vw, 145px); }
  .stage-welcome h1 { font-size: clamp(3.3rem, 7vw, 6rem); }
  .stage-pause { padding-block: 2vh; }

  .wide-shell { padding-top: 16px; }
  .admin-heading { margin-bottom: 10px; }
  .admin-heading h1 { font-size: 2.35rem; }
  .admin-heading .lead { margin: 4px 0 0; line-height: 1.35; }
  .floor-stats > div { padding: 11px 14px; }
  .floor-stats strong { font-size: 1.4rem; }
  .connection-note { margin-bottom: 8px; }
  .admin-cockpit { margin: 9px 0 28px; }
  .cockpit-lot { padding: 18px; }
  .cockpit-photo { max-height: 120px; margin: 12px 0; }
  .cockpit-lot h2 { font-size: 1.55rem; }
  .cockpit-lot p, .lot-facts { margin-block: 8px; }
  .result-console { padding: 20px 24px; }
  .result-console h2 { font-size: 2.25rem; }
  .result-form { gap: 11px; margin-top: 16px; }
  .result-preview { min-height: 48px; padding: 10px 13px; }
  .button-large { min-height: 46px; }
}

@media (max-width: 720px) {
  .admin-heading-actions, .admin-heading-actions .button, .admin-heading-actions form { width: 100%; }
  .lot-toolbar { grid-template-columns: 1fr; }
  .lot-toolbar label { grid-template-columns: 1fr; }
  .my-summary, .settlement-summary, .attendance-summary { grid-template-columns: 1fr 1fr; }
  .my-result-card { grid-template-columns: 68px minmax(0, 1fr) auto; gap: 12px; }
  .result-thumb { width: 68px; height: 62px; }
  .my-result-card .result-amount { grid-column: 2; }
  .my-result-card .status { grid-column: 3; grid-row: 1 / span 2; }
  .participant-table-wrap { overflow: visible; border: 0; background: transparent; }
  .participant-table { min-width: 0; }
  .participant-table thead { display: none; }
  .participant-table tbody { display: grid; gap: 12px; }
  .participant-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  .participant-table td { display: grid; gap: 3px; padding: 0; border: 0; }
  .participant-table td::before { content: attr(data-label); color: var(--muted); font-size: .67rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
  .participant-table td[data-label="Naam"], .participant-table td[data-label="Entree betaald"], .participant-table td[data-label="Saldo-status"] { grid-column: 1 / -1; }
  .mobile-result-photo { width: 38%; max-height: 150px; }
  .stage-pause { grid-template-columns: 1fr; text-align: center; }
  .danger-zone-body { grid-template-columns: 1fr; }
  .auctioneer-console { grid-template-columns: 1fr; }
}
:root .demo-banner {
  padding: 8px 16px;
  background: #fff0ba;
  color: #533900;
  text-align: center;
  font: 600 14px/1.4 system-ui, sans-serif;
}

.invoice-actions { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.invoice-paper { padding: clamp(20px, 4vw, 48px); background: #fff; border: 1px solid var(--line); border-radius: 12px; color: #202020; }
.invoice-heading { display: flex; justify-content: space-between; gap: 24px; }
.invoice-heading h1 { margin: 8px 0; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.invoice-heading p { margin: 6px 0; }
.invoice-draft-note { padding: 14px; margin: 24px 0; border: 1px solid #d2ac49; background: #fff7dc; line-height: 1.5; }
.invoice-addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0; }
.invoice-addresses h2 { font-size: .8rem; text-transform: uppercase; color: #656565; letter-spacing: .06em; }
.invoice-addresses p { line-height: 1.5; overflow-wrap: anywhere; }
.invoice-lines-wrap { overflow-x: auto; }
.invoice-lines { width: 100%; border-collapse: collapse; font-size: .9rem; }
.invoice-lines th, .invoice-lines td { padding: 12px 8px; text-align: left; border-bottom: 1px solid #ddd; vertical-align: top; }
.invoice-lines th { background: #f5f5f5; }
.invoice-lines td:last-child, .invoice-lines th:last-child { text-align: right; white-space: nowrap; }
.invoice-lines small { display: block; color: #656565; margin-top: 4px; }
.invoice-totals { max-width: 360px; margin: 24px 0 24px auto; }
.invoice-totals div { display: flex; justify-content: space-between; gap: 24px; padding: 9px 0; }
.invoice-totals dd { margin: 0; font-weight: 750; white-space: nowrap; }
.invoice-totals div:last-child { border-top: 2px solid #222; font-weight: 750; }
.invoice-tax-note, .invoice-footer { font-size: .85rem; line-height: 1.5; }
.invoice-footer { margin-top: 28px; padding-top: 16px; border-top: 1px solid #ddd; color: #656565; }
@media (max-width: 600px) {
  .invoice-heading { flex-direction: column; gap: 8px; }
  .invoice-addresses { grid-template-columns: 1fr; gap: 12px; }
}
@media print {
  @page { size: A4; margin: 16mm; }
  .invoice-page { background: #fff; }
  .invoice-page .topbar, .invoice-actions, .invoice-page .flash-stack { display: none; }
  .invoice-page .shell { width: 100%; max-width: none; margin: 0; padding: 0; }
  .invoice-paper { border: 0; border-radius: 0; padding: 0; }
  .invoice-heading { flex-direction: row; }
  .invoice-addresses { grid-template-columns: 1fr 1fr; }
  .invoice-lines-wrap { overflow: visible; }
  .invoice-lines thead { display: table-header-group; }
  .invoice-lines tr, .invoice-addresses, .invoice-totals { break-inside: avoid; }
  .invoice-draft-note { border-color: #555; background: #fff; }
}

/* Registration journey: readable at narrow widths and enlarged text. */
[hidden] { display: none !important; }
.registration-page { overflow-x: visible; }
.registration-page .public-footer { overflow-wrap: anywhere; }
.registration-page .topbar { flex-wrap: wrap; gap: 1rem; padding: 1rem; }
.registration-page .brand { min-width: 0; }
.registration-page .brand > span:last-child { display: inline; overflow-wrap: anywhere; }
.registration-page .registration-intro h1 { line-height: 1.15; letter-spacing: -.025em; }
.registration-page p, .registration-page label, .registration-page input, .registration-page select,
.registration-page button, .registration-page .button { font-size: 1rem; line-height: 1.5; }
.registration-page small, .registration-page .required-note, .registration-page .board-note,
.registration-page .registration-kicker, .registration-page .fee-alert > span { font-size: .875rem; line-height: 1.5; }
.registration-page input, .registration-page select { min-width: 0; max-width: 100%; }
.registration-page select { width: 100%; padding: .75rem; border: 1px solid #667085; border-radius: .65rem; background: #fff; color: #101828; }
.registration-page .button-primary { background: #b40212; color: #fff; }
.registration-page .button { white-space: normal; text-align: center; min-height: 2.75rem; }
.registration-page .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.registration-page .customer-type-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.registration-page .family-row { grid-template-columns: 2rem minmax(0, 1fr); align-items: start; }
.registration-page .remove-member { grid-column: 2; justify-self: start; margin: 0; min-height: 2.75rem; }
.registration-page .registration-card, .registration-page .form-section, .registration-page .board-person,
.registration-page .group-person, .registration-page .consent-check { min-width: 0; overflow-wrap: anywhere; }
.registration-page .flash-stack { position: relative; top: auto; right: auto; margin: 1rem auto; width: min(900px, calc(100% - 2rem)); }
.registration-page .flash { line-height: 1.5; }
.registration-page .fee-alert > strong { line-height: 1.25; }
.registration-page .form-section-heading > div { align-items: flex-start; }
.registration-page .group-members { display: grid; gap: 1rem; margin-block: 1.5rem; }
.registration-page .group-person { padding: 1.25rem; border: 1px solid #d0d5dd; border-radius: 1rem; background: #fff; }
.registration-page .group-person h2 { margin-top: 0; font-size: 1.25rem; }
.registration-page .group-person dl { display: grid; gap: .75rem; }
.registration-page .group-person dt { font-weight: 700; }
.registration-page .group-person dd { margin: .2rem 0 0; }
.registration-page :focus-visible { outline: 3px solid #155eef; outline-offset: 3px; }
@media (max-width: 640px) {
 .registration-shell { width: calc(100% - 1rem); padding-top: 1rem; }
 .registration-page .access-panel, .registration-page .registration-intro { padding: min(1.25rem, 20px); }
 .registration-single .registration-intro h1 { font-size: 1.8rem; }
 .registration-page .form-section { padding: min(.9rem, 14px); }
 .registration-page .field-row, .registration-page .customer-type-options { grid-template-columns: minmax(0, 1fr); }
 .registration-page .family-row { padding: min(.75rem, 12px); gap: .5rem; }
 .registration-page .consent-box { padding: min(.75rem, 12px); }
 .registration-page .registration-footer { flex-wrap: wrap; padding: 1.25rem; }
}

@media (max-width: 420px) {
 .registration-page .family-row { grid-template-columns: minmax(0, 1fr); }
 .registration-page .member-number { height: auto; justify-self: start; }
 .registration-page .remove-member { grid-column: 1; }
}

/* Shared layout review: readable navigation, metadata and long content. */
.topbar { flex-wrap: wrap; padding-block: .75rem; }
.brand { min-width: 0; }
.brand-mark { flex-shrink: 0; }
.header-nav { min-width: 0; flex-wrap: wrap; gap: .5rem 1.25rem; }
.header-nav a, .header-nav button { padding-block: .5rem; overflow-wrap: anywhere; }
.public-footer { position: relative; z-index: 1; display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem 1.5rem; padding: 1.25rem max(1rem, env(safe-area-inset-left)); color: #fff; background: #790609; font-size: .875rem; line-height: 1.5; }
.public-footer a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .25rem 0; text-underline-offset: .2em; }
label > span > .required-note { margin-inline-start: .3rem; font-weight: 500; }
.registration-total small { line-height: 1.55; }
.registration-total small + small { margin-top: .65rem; }
.registration-summary .registration-intro { padding: clamp(1.5rem, 4vw, 2.5rem); }
.registration-summary .registration-intro h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); }
.registration-summary .registration-intro p { margin-top: 1rem; font-weight: 500; }
.registration-summary .group-person { padding: 1rem 1.25rem; }
.registration-summary .group-person dl { margin-bottom: 0; }
.registration-summary .group-person h2 { margin-bottom: .75rem; }
.registration-summary .group-person form { margin-top: .75rem; }
@media (min-width: 700px) {
 .registration-summary .group-person dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
 .topbar { gap: .5rem 1rem; }
 .header-nav { flex: 1 1 14rem; font-size: .875rem; justify-content: flex-start; }
 .public-footer { gap: .25rem 1rem; }
}
.invoice-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: .75rem; }
.invoice-actions form { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; min-width: 0; }
.invoice-actions p { margin: 0; overflow-wrap: anywhere; }
.invoice-paper, .invoice-addresses > section { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
 .invoice-actions { align-items: stretch; }
 .invoice-actions > *, .invoice-actions form { flex: 1 1 100%; }
 .invoice-actions form .button { width: 100%; }
}

.topbar .brand > span:last-child { display: inline; overflow-wrap: anywhere; }
.topbar .brand { max-width: 100%; }
.registration-page .field-error { display: block; color: #9c1723; font-weight: 650; font-size: .875rem; line-height: 1.5; }
.registration-page input[aria-invalid="true"] { border-color: #b40212; border-width: 2px; }
.invoice-scroll-hint { display: none; color: var(--muted); font-size: .875rem; }
.invoice-lines th, .invoice-lines td:first-child { overflow-wrap: normal; word-break: normal; }
@media (max-width: 600px) {
 .invoice-lines { min-width: 30rem; }
 .invoice-scroll-hint { display: block; }
}
@media (max-width: 420px) {
 .my-result-card { grid-template-columns: 60px minmax(0, 1fr); }
 .my-result-card .status { grid-column: 2; grid-row: auto; justify-self: start; }
 .my-result-card .result-amount { grid-column: 2; text-align: left; }
}
@media print { .invoice-scroll-hint { display: none; } }

/* Let narrow operator panels shrink within their grid instead of clipping. */
.cockpit-lot, .result-console, .auctioneer-lot { min-width: 0; }
.cockpit-lot h2, .result-console h2, .auctioneer-lot h2 { overflow-wrap: anywhere; }
.auctioneer-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auctioneer-prices > div { min-width: 0; }
.auctioneer-prices dd { overflow-wrap: anywhere; }
.console-alternatives { flex-wrap: wrap; }
@media (max-width: 420px) {
  .auctioneer-lot { padding: 18px; }
  .auctioneer-lot h2 { font-size: clamp(1.6rem, 7vw, 2rem); line-height: 1.06; hyphens: auto; }
  .auctioneer-prices { gap: 8px; }
  .auctioneer-prices div { padding: 12px; }
  .auctioneer-prices dd { font-size: 1.8rem; }
  .result-console { padding: 22px 18px; }
}
