.lead.dark { color: var(--muted); }
.notice { padding: 14px 18px; margin: 22px 0; background: var(--cream); border-left: 4px solid var(--gold); }
.notice.error { border-color: var(--danger); }
.availability-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 36px; margin: 30px 0 16px; padding: clamp(22px, 4vw, 34px); background: white; border: 1px solid var(--line); border-top: 6px solid var(--forest); box-shadow: 0 15px 36px rgba(36,76,59,.08); }
.availability-search-copy, .booking-step-heading { display: flex; align-items: center; gap: 16px; }
.availability-search-copy h2, .booking-step-heading h2 { margin: 1px 0 0; font-size: clamp(1.7rem, 3vw, 2.35rem); }
.availability-search-copy p:last-child { margin: 4px 0 0; color: var(--muted); }
.step-number { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: white; font-size: 1.15rem; font-weight: 700; }
.date-search { display: flex; width: 100%; min-width: 0; max-width: 100%; align-items: end; gap: 10px; margin: 0; }
.date-search label { width: 100%; min-width: 210px; max-width: 100%; contain: inline-size; }
.date-search input[type="date"] { display: block; box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; min-height: 50px; font-size: 1.05rem; font-weight: 600; }
.date-search .button { min-height: 50px; white-space: nowrap; }
.selected-programme { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 20px 24px; border: 1px solid var(--line); background: var(--cream); }
.selected-programme.featured { border-left: 6px solid var(--gold); background: linear-gradient(110deg, #fff 0%, var(--cream) 100%); }
.selected-programme.standard { border-left: 6px solid var(--sage); }
.selected-programme-copy { display: flex; align-items: flex-start; gap: 14px; }
.selection-check { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; margin-top: 2px; border-radius: 50%; background: var(--forest); color: white; font-weight: 700; }
.selected-programme h2 { margin: 2px 0 3px; font-size: 1.55rem; }
.selected-programme-copy p:last-child { margin: 0; color: var(--muted); }
.selected-programme-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.selected-programme-meta > span { display: inline-flex; white-space: nowrap; padding: 6px 10px; background: white; font-size: .8rem; font-weight: 700; }
.selected-programme-meta > .date-badge { display: inline-flex; white-space: nowrap; background: var(--forest); color: white; padding: 7px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.selected-programme-meta .instructor-available { background: var(--sage); }
.programme-shortcuts { margin: 28px 0 34px; }
.shortcut-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 12px; }
.shortcut-heading h2 { margin: 1px 0 0; font-size: 1.55rem; }
.shortcut-heading > p { max-width: 460px; margin: 0; color: var(--muted); font-size: .9rem; }
.shortcut-scroll-hint { display: none; }
.setup-shortcut-list { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; scroll-padding-inline: 2px; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; scrollbar-width: auto; scrollbar-color: var(--forest) var(--line); }
.setup-shortcut-list::-webkit-scrollbar { height: 8px; }
.setup-shortcut-list::-webkit-scrollbar-track { background: var(--line); border-radius: 999px; }
.setup-shortcut-list::-webkit-scrollbar-thumb { background: var(--forest); border-radius: 999px; }
.setup-shortcut { position: relative; flex: 0 0 220px; min-height: 120px; display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); background: white; color: var(--ink); text-decoration: none; scroll-snap-align: start; scroll-snap-stop: always; transition: transform .15s ease, border-color .15s ease, background-color .15s ease; }
.setup-shortcut:hover { transform: translateY(-1px); border-color: var(--forest); }
.setup-shortcut strong { margin-top: 4px; font-size: 1rem; }
.setup-shortcut small { margin-top: auto; color: var(--muted); font-weight: 700; }
.setup-shortcut.selected { border-color: var(--forest); background: var(--forest); color: white; box-shadow: 0 8px 20px rgba(36,76,59,.18); }
.setup-shortcut.selected .setup-dates, .setup-shortcut.selected small { color: white; }
.setup-dates { color: var(--forest); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.viewing-label { position: absolute; right: 10px; bottom: 10px; padding: 3px 7px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.booking-step-heading { padding-bottom: 4px; }
.booking-step-heading .eyebrow { margin: 0; }
.slot-fieldset { display: block; }
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.slot { display: block; text-align: center; padding: 13px 8px; background: white; border: 1px solid var(--line); cursor: pointer; }
.slot input { width: auto; margin-right: 5px; }
.slot span { display: inline; font-weight: 700; }
.slot small { display: block; color: var(--muted); }
.slot:has(input:checked) { outline: 2px solid var(--forest); background: #e0e8df; }
.slot.unavailable { opacity: .45; cursor: not-allowed; }
.slot.own-payment-hold { border: 2px solid var(--gold); background: #fff8eb; cursor: default; }
.slot.own-payment-hold > small { color: #744800; font-weight: 700; }
.slot-hold-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.slot-hold-actions .button { width: 100%; min-width: 0; padding: 8px 7px; font-size: .78rem; line-height: 1.2; white-space: normal; }
.choice > strong { margin-left: auto; white-space: nowrap; }
.instructor-choice { display: block; }
.featured-choice { border-left: 5px solid var(--sage); }
.basket { border: 1px solid var(--line); background: white; margin: 30px 0; }
.basket > div { display: flex; justify-content: space-between; gap: 24px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.basket > div span { color: var(--muted); }
.basket-total { background: var(--cream); font-size: 1.25rem; }
.checkout-prompt { background: var(--cream); padding: 28px; border-top: 4px solid var(--gold); }
.checkout-prompt .actions { margin-top: 18px; }
.checkout-button { width: 100%; }
.back-link { display: inline-block; margin-top: 28px; }
.schedule-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.schedule-admin-card { background: var(--cream); padding: clamp(24px, 4vw, 38px); border-top: 5px solid var(--forest); }
.schedule-admin-card.instructor-admin-card { border-top-color: var(--sage); }
.schedule-admin-card h2 { margin: 4px 0 8px; }
.schedule-admin-card > p:not(.eyebrow) { color: var(--muted); }
.stack-form { display: grid; gap: 16px; margin-top: 24px; }
.setup-addon-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.setup-addon-picker legend, .setup-addon-editor legend { width: 100%; margin-bottom: 8px; font-weight: 700; }
.setup-addon-picker .fine-print { grid-column: 1 / -1; }
.setup-addon-option { display: flex; align-items: center; gap: 9px; margin: 0; padding: 11px 12px; border: 1px solid var(--line); background: white; cursor: pointer; }
.setup-addon-option input { flex: 0 0 auto; width: auto; margin: 0; }
.setup-addon-option > span { min-width: 0; margin: 0; }
.setup-addon-option b, .setup-addon-option small { display: block; }
.setup-addon-option small { color: var(--muted); font-weight: 500; }
.published-schedule { margin-top: 44px; }
.schedule-list { border: 1px solid var(--line); background: white; }
.schedule-list article { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.schedule-list article:last-child { border-bottom: 0; }
.schedule-list strong, .schedule-list span { display: block; }
.schedule-list span, .empty-inline { color: var(--muted); }
.setup-schedule-item { align-items: flex-start !important; }
.setup-schedule-main { flex: 1 1 auto; min-width: 0; }
.setup-addon-editor { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.setup-addon-editor fieldset { display: flex; flex-wrap: wrap; gap: 8px; }
.setup-addon-option.compact { padding: 7px 9px; font-size: .85rem; }
.setup-addon-editor .button { flex: 0 0 auto; white-space: nowrap; }
.danger-link { color: var(--danger); font-weight: 700; }
.booking-history-section { margin-top: 46px; }
.booking-history-section:first-of-type { margin-top: 26px; }
.booking-history-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 14px; }
.booking-history-heading h2 { margin: 0; font-size: 2rem; }
.booking-history-heading span { color: var(--muted); font-weight: 700; }
.status.paymentprocessing { background: #fff0d5; color: #744800; }
.status.paymentfailed { color: var(--danger); }
@media (max-width: 760px) {
    .slot-grid { grid-template-columns: repeat(2, 1fr); }
    .slot-hold-actions { grid-template-columns: 1fr; }
    .availability-search { grid-template-columns: 1fr; gap: 20px; }
    .date-search { width: 100%; min-width: 0; max-width: 100%; align-items: stretch; flex-direction: column; overflow: hidden; }
    .date-search label { display: block; width: 100%; min-width: 0; max-width: 100%; overflow: hidden; }
    .date-search input[type="date"], .date-search .button { display: block; width: 100%; min-width: 0; max-width: 100%; }
    .selected-programme { grid-template-columns: 1fr; gap: 14px; }
    .selected-programme-meta { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
    .shortcut-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
    .shortcut-scroll-hint { display: flex; align-items: center; gap: 7px; margin: 2px 0 8px; color: var(--forest); font-size: .85rem; font-weight: 700; }
    .shortcut-scroll-hint span { font-size: 1.1rem; line-height: 1; }
    .setup-shortcut { flex-basis: 190px; }
    .schedule-admin-grid { grid-template-columns: 1fr; }
    .schedule-list article { align-items: flex-start; }
    .setup-addon-picker { grid-template-columns: 1fr; }
    .setup-addon-editor { align-items: stretch; flex-direction: column; }
    .setup-addon-editor .button { width: 100%; }
    .responsive-table-wrap { overflow: visible; border: 0; }
    .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td { display: block; width: 100%; }
    .responsive-table thead { display: none; }
    .responsive-table { background: transparent; }
    .responsive-table tbody { display: grid; gap: 14px; }
    .responsive-table tr { padding: 14px 16px; border: 1px solid var(--line); background: white; box-shadow: 0 8px 22px rgba(36,76,59,.06); }
    .responsive-table td { display: grid; grid-template-columns: minmax(92px, 34%) minmax(0, 1fr); gap: 12px; align-items: start; padding: 9px 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
    .responsive-table td + td { border-top: 1px solid #edf0ec; }
    .responsive-table td::before { content: attr(data-label); color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
    .responsive-table td form, .responsive-table td .admin-booking-actions { min-width: 0; }
    .responsive-table td .button { width: 100%; white-space: normal; }
    .responsive-table td[data-label="Actions"], .responsive-table td[data-label="Cancellation"] { grid-template-columns: 1fr; }
    .responsive-table td[data-label="Actions"]::before, .responsive-table td[data-label="Cancellation"]::before { margin-bottom: 2px; }
}

@supports (-webkit-touch-callout: none) {
    .date-search input[type="date"] { width: -webkit-fill-available; max-width: -webkit-fill-available; }
}