
/* Google Calendar-like, compact visual booking picker */
.time-choice{margin:18px 0;padding:17px;border:1px solid #dce7f4;border-radius:16px;background:#fafcff;box-shadow:0 6px 23px #28578e0b}
.time-choice-head{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.time-choice-head h3{margin:0;font-size:17px;color:#253b57}
.quick-days{display:flex;align-items:center;gap:6px}
.quick-days button{width:auto;border:1px solid #cbdaf0;background:#fff;color:#3262a0;border-radius:9px;padding:7px 14px;min-height:36px;font-weight:700}
.date-choice{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:14px 0}
.date-choice label{min-width:200px;max-width:280px}
.date-choice input{min-height:44px;border-radius:10px;border:1px solid #cbdaf0;font-weight:680;color:#274567}
.day-toggle{display:flex;align-items:center;justify-content:space-between;background:#fff;padding:12px 13px;border:1px solid #e1e8f4;border-radius:12px;gap:12px;font-weight:750}
.day-toggle input{appearance:none;width:46px;height:26px;border-radius:20px;background:#cbd5e4;position:relative;flex-shrink:0;cursor:pointer}
.day-toggle input:before{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:white;box-shadow:0 2px 4px #0002;transition:transform .2s}
.day-toggle input:checked{background:#2e6dd0}.day-toggle input:checked:before{transform:translateX(20px)}
.visual-range{font-size:22px;font-weight:820;letter-spacing:-.03em;margin:15px 0 9px;color:#255fbe}
.day-grid-help{font-size:12px;color:#73859e;margin:0 0 10px}
.time-scroll{max-height:330px;overflow-y:auto;border:1px solid #dce6f2;border-radius:12px;background:white}
.time-lane{display:grid;grid-template-columns:1fr;user-select:none;touch-action:pan-y}
.time-slot{display:flex;align-items:center;gap:13px;width:100%;height:34px;border:0;border-bottom:1px solid #edf1f7;border-radius:0;padding:0 14px;text-align:left;color:#6f8298;background:white;cursor:pointer;touch-action:pan-y}
.time-slot:nth-child(2n+1){border-top:1px solid #dbe6f3}
.time-slot .slot-hour{min-width:59px;font-size:12px;font-weight:760}
.time-slot .slot-empty{flex:1;height:2px;border-radius:99px;background:#e6edf8}
.time-slot:hover:not(:disabled){background:#eaf3ff}
.time-slot.in-range{background:#dceafd;color:#2057ae}
.time-slot.range-first{background:#256bd4;color:white}
.time-slot.in-range .slot-empty{background:#90b5f0}
.time-slot.range-first .slot-empty{background:#fff8}
.time-slot.is-past{opacity:.32;cursor:not-allowed}
.booking-alert{margin:8px 0;color:#a52b34;font-weight:740}
.booking-alert[hidden],.recurrence-box[hidden],.repeat-until[hidden],.visual-time-pane[hidden]{display:none!important}
.recurrence-panel{margin:14px 0 0;border:1px solid #e0e9f6;border-radius:12px;padding:12px;background:#fff}
.recurrence-head{display:flex;align-items:center;gap:9px;cursor:pointer;font-weight:770}
.recurrence-head input{accent-color:#2169d2;width:19px;height:19px}
.repeat-weekdays{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0 5px}
.repeat-weekdays label{position:relative;display:inline-flex;cursor:pointer}
.repeat-weekdays input{position:absolute;opacity:0;width:1px;height:1px}
.repeat-weekdays span{display:grid;place-items:center;width:39px;height:39px;border-radius:50%;background:#f3f7fd;border:1px solid #dce6f5;color:#4a688c;font-weight:800}
.repeat-weekdays input:checked+span{background:#2169d2;color:white;border-color:#2169d2}
.repeat-weekdays input:focus-visible+span{outline:3px solid #8cb8ef}
.repeat-until{display:flex;align-items:center;gap:12px;margin-top:12px;font-size:13px;color:#627d9a}
.repeat-until input{max-width:220px}
.v2-step .time-choice input[type=hidden]{display:none}
@media(max-width:580px){.time-choice{padding:12px}.quick-days button{padding:6px 10px}.visual-range{font-size:19px}.time-scroll{max-height:270px}}

/* Availability is read from actual selected D1 room/date; colors indicate status. */
.time-status-legend{display:flex;flex-wrap:wrap;gap:12px;margin:7px 0 12px;font-size:12px;color:#61728b}
.time-status-legend span{display:flex;align-items:center;gap:5px}
.time-status-legend i{width:11px;height:11px;border-radius:3px;background:#edf5ff;border:1px solid #c5d9ef}
.time-status-legend .taken i{background:#e6e9ee;border:1px solid #a5b3c5}
.time-status-legend .waiting i{background:#ffebc6;border:1px solid #e5bd6d}
.time-slot.is-booked,.time-slot.is-booked:disabled{background:#e6e9ee!important;color:#758399!important;opacity:.8;cursor:not-allowed}
.time-slot.is-booked .slot-empty{background:#9da9ba}
.time-slot.is-pending:not(.in-range):not(.range-first){background:#fff2d7;color:#8f650e}
.time-slot.is-pending .slot-empty{background:#e6c37e}

.recurrence-exceptions{border-top:1px solid #e7e3f0;margin-top:13px;padding-top:13px}
.recurrence-exceptions[hidden]{display:none!important}
.recurrence-exceptions strong{font-size:13px;color:#3e3956}
.recurrence-exceptions .day-grid-help{margin:4px 0 10px}
.recurrence-dates{display:flex;flex-wrap:wrap;gap:7px;max-height:180px;overflow:auto;padding:3px 0}
.recurrence-chip{min-width:58px;padding:7px 10px;border-radius:30px;font-size:12px;font-weight:760;white-space:nowrap}
.recurrence-chip.is-included{background:#e6efff;border:1px solid #abc9ef;color:#2c5b99}
.recurrence-chip.is-excluded{background:#f5f3f5;border:1px dashed #b7aebb;color:#998e9d;text-decoration:line-through}
.recurrence-chip:focus-visible{outline:3px solid #689cdb;outline-offset:2px}

.request-extra-panel{margin:12px 0;padding:14px;border:1px solid #dce6f2;border-radius:12px;background:#fff}
.request-extra-panel h3{font-size:15px;margin:0 0 8px}
.request-extra-panel summary{cursor:pointer;font-weight:750;color:#375477}
.booking-whole{display:flex!important;align-items:center;gap:8px;font-weight:700}
.booking-whole input{width:18px;height:18px}
.booking-room-checks,.equipment-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:9px;margin-top:12px}
.booking-room-checks label{display:flex;align-items:center;gap:7px;padding:7px;border:1px solid #e4eaf1;border-radius:8px}
.equipment-items label{display:grid;gap:4px;font-size:13px}
.equipment-items input{width:100%;min-height:36px;padding:5px;box-sizing:border-box}
[hidden]{display:none!important}

/* Direct room checkboxes: one choice or several, no hidden second step. */
.room-picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.room-picker-head h3{font-size:16px;margin:0}
.room-picker-actions{display:flex;gap:8px;flex:none}
.room-picker-actions button{min-width:48px;min-height:40px;border:1px solid #c5d8ef;background:#eff6ff;color:#255a98;border-radius:9px;padding:6px 10px;font-size:13px;font-weight:800}
.room-selection-summary{font-size:13px;color:#47719e;margin-top:10px;line-height:1.5;overflow-wrap:anywhere}
.room-pick{display:flex;align-items:center;gap:10px;padding:11px!important;border:1px solid #dce5f0;border-radius:11px;min-height:48px;background:white;font-size:14px;font-weight:650}
.room-pick.selected{background:#eaf3ff;border-color:#6ea6ed;color:#215a9e}
.room-pick input{flex:none;width:21px;height:21px;accent-color:#2468d9}
.suggested-times{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 14px}
.suggestion-chip{min-height:43px;padding:9px 12px;border:1px solid #b5d3ed;background:#f0f7ff;border-radius:10px;color:#255d99;font-size:13px;font-weight:800}
@media(max-width:580px){
 .time-slot{min-height:44px;height:44px;padding:0 16px;touch-action:pan-y}
 .time-scroll{max-height:340px}
 .booking-room-checks{grid-template-columns:repeat(2,minmax(0,1fr))}
 .room-pick{min-height:52px}
}

/* Direct half-hour duration selection and accessible required-field feedback. */
.time-adjust{display:flex;flex-wrap:wrap;gap:9px;margin:10px 0 14px}
.time-adjust button{min-height:46px;border:1px solid #c4d8ef;border-radius:10px;background:#fff;color:#255a9d;padding:10px 14px;font-weight:800;font-size:14px}
.time-adjust button:hover{background:#edf5ff}
.time-slot[aria-pressed="true"]{font-weight:760}
.form-errors{background:#fff0f0;border:2px solid #db5050;color:#9a252f;border-radius:12px;padding:14px 17px;margin:14px 0;line-height:1.5}
.form-errors[hidden]{display:none!important}
.form-errors strong{font-size:15px}
.form-errors ul{margin:8px 0 0;padding-left:25px}
.form-errors li{margin:4px 0;font-size:14px}
.v3-booking .v2-step .field-invalid,
.v3-booking .v2-step select.field-invalid,
.v3-booking .v2-step input.field-invalid{border:2px solid #d83c48!important;background:#fff2f2!important;outline:2px solid #f7b9bd!important}
.v3-booking .room-picker .booking-room-checks.field-invalid,
.v3-booking .time-lane.field-invalid{border:2px solid #d83c48!important;border-radius:10px;background:#fff7f7}
.required-star{color:#c82f3e;font-weight:900;font-size:16px}
.required-note{display:inline-flex;align-items:center;gap:4px;color:#a13b40;margin-left:7px;font-size:13px}
.v3-booking .v2-help-box.v2-danger-alert{background:#fff0f0!important;border:2px solid #e0a7aa!important;border-left:5px solid #c93b48!important;color:#932c35!important;padding:16px!important}
.v3-booking .v2-help-box.v2-danger-alert strong{font-size:15px}
@media(max-width:580px){.time-adjust button{flex:1;min-width:0}}


/* Owner visual-first refinement: scannable form, fewer competing headings, usable touch targets. */
.v3-booking .v2-form-lead{margin:5px 0 14px;font-size:13px;color:#516d86}
.v3-booking .v2-stepper{margin-bottom:16px}
.v3-booking .v2-stepper-item{border-radius:12px;padding:10px 8px}
.v3-booking .v2-step{padding:clamp(15px,3vw,25px)}
.v3-booking .v2-step-desc{color:#526d85}
.v3-booking .request-extra-panel a{color:#215eaf;text-decoration:underline}
.v3-booking .notice-accordion{margin-top:20px}
.v3-booking .v2-actions button{min-height:46px}
@media(max-width:440px){
  .v3-booking .v2-stepper-item{font-size:12px}
  .v3-booking .v2-step h2{font-size:19px}
}

/* Reuse the public booking flow in the Admin calendar overlay, on demand. */
body.booking-admin-embedded{background:#f6faf7}
.booking-admin-embedded .v2-topbar,.booking-admin-embedded .v3-back-link,
.booking-admin-embedded .v2-site-footer,.booking-admin-embedded .notice-accordion{display:none!important}
.booking-admin-embedded .v2-container{max-width:100%;padding:12px 16px 20px;margin:0;box-sizing:border-box}
.booking-admin-embedded .v2-form-title{font-size:clamp(22px,4vw,28px);margin-top:5px}
.booking-admin-embedded .v2-stepper{position:sticky;top:0;z-index:3;background:#f6faf7;padding-block:8px}
@media(max-width:600px){.booking-admin-embedded .v2-container{padding-inline:10px}.booking-admin-embedded .v2-stepper{padding-block:5px}}

/* KISS69: only Admin-assisted entry displays the extra claimed operator field. */
#booking-admin-operator-row[hidden]{display:none!important}
#booking-admin-operator-row:not([hidden]){min-width:0}

/* UX76 — compact five-field intake and actual venue/room context. */
.v3-booking .ux76-step2 .ux76-booking-context{margin:8px 0 15px;padding:10px 14px;background:#f1f7f3;border:1px solid #d4e6da;border-radius:12px;color:#1d4c34}
.v3-booking .ux76-booking-context p{display:flex;align-items:center;gap:8px;margin:4px 0;line-height:1.45;font-size:14px}
.v3-booking .ux76-booking-context span[aria-hidden]{font-size:18px;flex:0 0 19px;color:#36845f}
.v3-booking .ux76-required-note{margin:8px 0;color:#61756a;font-size:12px}
.v3-booking .ux76-required-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;max-width:600px}
.v3-booking .ux76-required-fields label{display:flex;flex-direction:column;gap:5px;min-width:0;margin:0;font-weight:700;font-size:14px;color:#263e31}
.v3-booking .ux76-required-fields input:not([type=hidden]){display:block;min-height:44px;max-width:100%;width:100%;min-width:0;border:1px solid #c4d4c9;background:#fff;border-radius:9px;padding:9px 12px;box-sizing:border-box;font-size:16px}
.v3-booking .ux76-step2 .ux76-onsite{border:1px solid #d9e6db;background:#f7faf8;padding:13px 14px;border-radius:12px;margin:16px 0}
.v3-booking .ux76-step2 .ux76-onsite h3{font-size:15px;color:#194a34;margin:0 0 10px}
.v3-booking .ux76-step2 .ux76-onsite label:not(.ux72-onsite-attest){font-size:14px;font-weight:700}
.v3-booking .ux76-step2 .ux76-onsite input[type=text],
.v3-booking .ux76-step2 .ux76-onsite #onsite-staff{display:block;width:100%;min-width:0;box-sizing:border-box;border:1px solid #c4d4c9;border-radius:9px;background:#fff;min-height:44px;font-size:16px;padding:9px 12px;margin:5px 0 11px}
.v3-booking .ux76-step2 .ux72-onsite-attest{display:flex;align-items:flex-start;gap:9px;margin:10px 0 0;font-size:14px;line-height:1.45;font-weight:650}
.v3-booking .ux76-step2 .ux72-onsite-attest input{width:20px;height:20px;min-width:20px;accent-color:#216e48}
.v3-booking .ux76-step2 .request-extra-panel{margin-top:15px}
.v3-booking .ux76-step2 .ux76-notes{display:flex;flex-direction:column;gap:5px;margin:16px 0 0;font-size:14px;font-weight:700}
.v3-booking .ux76-step2 .ux76-notes textarea{display:block;width:100%;max-width:100%;border:1px solid #c4d4c9;border-radius:9px;box-sizing:border-box;padding:9px 12px;font-size:16px}
.v3-booking .ux76-step2 .ux76-onsite[hidden],
.v3-booking .ux76-step2 #staff-rule-panel[hidden]{display:none!important}
@media(max-width:580px){
 .v3-booking .ux76-step2 .ux76-booking-context{padding:10px 12px}
 .v3-booking .ux76-step2 .ux76-booking-context p{font-size:13px}
 .v3-booking .ux76-required-fields{gap:10px}
}
/* UX77: five D1-driven venue choices are identical across Safari and Chrome. */
.v3-booking .ux77-venue-select{min-width:0;grid-column:1/-1}
.v3-booking .ux77-venue-heading{font-size:14px;font-weight:750;margin:0 0 8px;color:#263e31}
.v3-booking .ux77-venue-native{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;clip-path:inset(50%);pointer-events:none}
.v3-booking .ux77-venue-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.v3-booking .ux77-venue-choice{min-height:48px;min-width:0;padding:10px 8px;border:1px solid #b6d0bf;border-radius:10px;background:#fff;color:#214634;font:inherit;font-size:14px;font-weight:750;cursor:pointer}
.v3-booking .ux77-venue-choice.selected{border:2px solid #28774a;background:#e6f5eb;color:#16512e}
.v3-booking .ux77-venue-choice:focus-visible{outline:3px solid #8ac6a2;outline-offset:2px}
.v3-booking .ux77-venue-choices.field-invalid{border:2px solid #c82f3e;border-radius:10px;padding:4px}
.v3-booking .ux76-required-fields .ux77-field-label{display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap;line-height:1.5}
.v3-booking .ux77-booking-context{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px!important}
.v3-booking .ux77-booking-context .ux77-context-item{display:flex;flex-direction:column;gap:2px;min-width:0;border-radius:9px;background:#fff;padding:9px 11px}
.v3-booking .ux77-booking-context .ux77-context-label{font-size:12px;color:#50735d;font-weight:700}
.v3-booking .ux77-booking-context strong{font-size:14px;color:#1c4d31;overflow-wrap:anywhere;line-height:1.4}
@media(max-width:580px){.v3-booking .ux77-venue-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.v3-booking .ux77-venue-choice{min-height:48px;font-size:14px}}
