.booking-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.booking-toolbar .booking-tabs { width: min(100%, 280px); margin-bottom: 0; }
.booking-tabs > .tab { min-height: 44px; }
.booking-feedback { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.6; }
.booking-feedback:not(:empty) { margin-bottom: 16px; }
.booking-feedback.sr-only { margin: -1px; }
.booking-feedback.is-error, #bookingConfirmFeedback { color: var(--danger); }
.booking-feedback.is-loading::before { content: ''; display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; vertical-align: -2px; margin-inline-end: 8px; animation: booking-spin 850ms linear infinite; }
@keyframes booking-spin { to { transform: rotate(360deg); } }
.facility-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.facility-card { display: flex; align-items: center; gap: 16px; min-height: 120px; padding: 22px; text-align: start; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; color: var(--ink); box-shadow: var(--shadow); }
.facility-card > .facility-card-copy { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.facility-chevron { flex: 0 0 auto; color: var(--subtle); font-size: 22px; }
.facility-card-title { display: block; font-size: 16px; font-weight: var(--device-title-weight); line-height: 1.4; }
.facility-card small { display: block; color: var(--muted); margin-top: 8px; font-size: 13px; font-weight: 400; }
.facility-card > svg { width: 18px; flex: 0 0 18px; color: var(--subtle); }
.booking-glyph { color: var(--primary); background: var(--primary-soft); width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 44px; }
.booking-glyph svg, #refreshBookingsButton svg { width: 22px; height: 22px; }
#bookingsView svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.booking-connect { display: grid; gap: 14px; }
.booking-connect-sheet .detail-sheet-head { margin-bottom: 18px; gap: 12px; }
.booking-connect-sheet .detail-sheet-head h2 { margin: 0; font-size: 20px; }
.booking-connect h3, .booking-connect p { margin: 0; }
.booking-connect p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.booking-connect label { margin-top: 4px; }
.booking-connect input { min-width: 0; }
#facilityModal > .booking-sheet { display: flex; flex-direction: column; }
#facilityModal .detail-sheet-head { flex: 0 0 auto; margin: 0; padding: 24px 24px 20px; }
#facilityModal .detail-sheet-head h2 { flex: 1; min-width: 0; font-size: 20px; line-height: 1.35; overflow-wrap: anywhere; }
.booking-sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px 20px; display: grid; align-content: start; gap: 16px; }
.booking-sheet-body label { margin: 0; }
#facilityDatePicker { max-width: none; margin-top: 10px; }
#facilityDatePicker summary[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.facility-rule-images { display: grid; gap: 12px; margin-top: 16px; }
.facility-rule-images:empty { display: none; }
.facility-rule-images a { display: block; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; }
.facility-rule-images img { display: block; width: 100%; height: auto; min-height: 100px; background: var(--surface-soft); object-fit: contain; }
.facility-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.facility-slot { min-height: 76px; border: 1px solid var(--border); border-radius: 16px; padding: 12px; text-align: start; color: var(--ink); background: var(--surface-soft); }
.facility-slot strong { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.facility-slot small { display: block; color: var(--muted); margin-top: 5px; font-size: 12px; }
.facility-slot[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-strong); }
.facility-slot:disabled { opacity: .55; cursor: not-allowed; }
.booking-skeleton { display: flex; align-items: center; gap: 16px; min-width: 0; min-height: 120px; padding: 22px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); }
.booking-skeleton-icon { flex: 0 0 44px; height: 44px; border-radius: 14px; background: var(--surface-soft); }
.booking-skeleton-copy { flex: 1; min-width: 0; }
.booking-skeleton .task-skeleton-line { width: 76%; }
.booking-skeleton .task-skeleton-line + .task-skeleton-line { width: 48%; }
.booking-skeleton-slot { min-height: 76px; padding: 12px; border-radius: 16px; background: var(--surface-soft); }
#facilityRules { margin-top: 4px; border-top: 1px solid var(--border); padding-top: 14px; }
#facilityRules summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--muted); font-size: 14px; }
#facilityRules summary::after { content: '+'; margin-inline-start: auto; }
#facilityRules[open] summary::after { content: '−'; }
#facilityRulesText { white-space: pre-line; color: var(--muted); font-size: 13px; line-height: 1.7; margin: 8px 0 0; }
#facilityRulesText:has(> *) { white-space: normal; overflow-wrap: anywhere; }
#facilityRulesText p, #facilityRulesText div { margin: 0 0 .75em; }
#facilityRulesText :last-child { margin-bottom: 0; }
#facilityRulesText h1, #facilityRulesText h2, #facilityRulesText h3, #facilityRulesText h4 { font-size: 15px; line-height: 1.5; color: var(--ink); margin: 1em 0 .5em; }
#facilityRulesText strong, #facilityRulesText b { color: var(--ink); }
#facilityRulesText ol, #facilityRulesText ul { padding-inline-start: 1.7em; margin: .5em 0 1em; }
#facilityRulesText li { padding-inline-start: .2em; margin-bottom: .45em; }
#facilityRulesText a[href] { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
#facilityRulesText blockquote { margin: .75em 0; padding-inline-start: 12px; border-inline-start: 2px solid var(--border); }
#facilityRulesText pre { white-space: pre-wrap; }
#facilityRulesText table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
#facilityRulesText th, #facilityRulesText td { padding: 6px; border: 1px solid var(--border); }
.booking-sheet-footer { flex: 0 0 auto; padding: 16px 24px max(24px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.booking-sheet-footer button { width: 100%; }
.booking-list { display: grid; gap: 12px; }
.facility-grid, .booking-list { position: relative; }
.booking-record { display: flex; align-items: center; gap: 16px; padding: 22px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); }
.booking-record-copy { flex: 1; min-width: 0; }
.booking-record h3 { font-size: 16px; margin: 0 0 8px; }
.booking-record p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.65; }
.booking-record .booking-status { margin-top: 6px; color: var(--primary); }
.booking-record.is-cancelled .booking-status { color: var(--muted); }
.booking-record .text-button { flex: 0 0 auto; color: var(--danger); min-height: 44px; }
.booking-record-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: flex-end; }
.booking-record-copy { overflow-wrap: anywhere; }
.booking-record-actions [data-booking-action="calendar"] { color: var(--link); }
.booking-result-sheet { position: relative; }
.booking-result-sheet .detail-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding-right: 44px; }
.booking-result-sheet #closeBookingResult { position: absolute; top: 20px; right: 20px; }
.booking-result-sheet .detail-sheet-head h2 { margin: 0; font-size: 22px; }
.booking-result-mark { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--primary-soft); color: var(--primary-strong); margin: 0 0 20px; }
.booking-result-mark svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.booking-result-summary { display: grid; gap: 16px; }
.booking-result-summary h3 { margin: 0; font-size: 16px; font-weight: var(--device-title-weight); overflow-wrap: anywhere; }
.booking-result-summary p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.booking-calendar-options, .booking-google-links { display: grid; gap: 10px; }
.booking-calendar-options { margin-top: 24px; }
.booking-calendar-options button, .booking-calendar-link { min-height: 48px; width: 100%; }
.booking-calendar-link { display: flex; align-items: center; justify-content: center; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; color: var(--ink); background: var(--surface-soft); font-size: 14px; font-weight: 500; text-decoration: none; text-align: center; overflow-wrap: anywhere; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: transform var(--motion-press) var(--ease-out), background-color var(--motion-fast) ease; }
.booking-calendar-link:active { transform: scale(.985); }
.booking-calendar-note { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.booking-result-sheet .booking-feedback { margin-top: 12px; }
.booking-result-sheet .booking-feedback:empty { display: none; }
#bookingResultModal.calendar-open .confirm-actions { grid-template-columns: 1fr; }
@media (prefers-reduced-motion: reduce) { .booking-calendar-link { transition: none; transform: none; } }
@media (max-width: 700px) {
  .booking-record { flex-wrap: wrap; }
  .booking-record-copy { flex-basis: calc(100% - 60px); }
  .booking-record-actions { width: 100%; justify-content: flex-start; padding-inline-start: 60px; }
}
#bookingConfirmDescription { white-space: pre-line; }
#bookingConfirmModal .confirm-sheet { min-width: 0; }
@media (max-width: 700px) {
  .facility-grid { gap: 12px; }
  .facility-card { min-height: 100px; padding: 18px; border-radius: 22px; }
  .booking-skeleton-facility { min-height: 100px; padding: 18px; }
  .booking-sheet-body { padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
  .booking-record { padding: 18px; align-items: flex-start; }
  .booking-record > .booking-glyph { display: none; }
  .booking-skeleton-record > .booking-skeleton-icon { display: none; }
}
@media (max-width: 767px) {
  #facilityModal { align-items: end; padding: 0; }
  #facilityModal .detail-sheet-head { padding: 4px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) { .booking-feedback.is-loading::before { animation: none; } }
