.managed-page #courtSchedules { max-width: 1200px; }
.schedule-eyebrow { color: #287761; font-size: .8rem; font-weight: 700; letter-spacing: .15em; }
.schedule-booking-link { border: 1px solid #b5c6c0; border-radius: 12px; padding: 16px; margin: 20px 0; }
.schedule-booking-link p { font-size: .9rem; }
.schedule-sheet { display: block; box-sizing: border-box; width: 100%; min-width: 0; height: 600px; height: clamp(360px, 70vh, 760px); border: 1px solid #b5c6c0; border-radius: 8px; background: white; }
.schedule-booking-link a { display: inline-flex; align-items: center; box-sizing: border-box; min-height: 44px; max-width: 100%; padding: 10px 16px; border-radius: 8px; background: #176d55; color: white; text-decoration: none; overflow-wrap: anywhere; }
.schedule-booking-link a:hover { text-decoration: underline; }
.schedule-booking-link a:focus-visible { outline: 3px solid #287761; outline-offset: 3px; }
.dark .schedule-booking-link a:focus-visible { outline-color: #8bd7b8; }
#courtSchedules h1 { margin: 8px 0; }
#courtSchedules button:disabled { opacity: .6; cursor: wait; }
.schedule-controls { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; margin: 24px 0 12px; }
.schedule-controls label { display: grid; gap: 8px; }
#scheduleWeekday:not(:empty) { display: inline-block; padding: 2px 8px; border-radius: 6px; font-weight: 600; font-size: .88em; }
#scheduleWeekday[data-day="0"] { background: #fee2e2; color: #991b1b; }
#scheduleWeekday[data-day="1"] { background: #fef3c7; color: #854d0e; }
#scheduleWeekday[data-day="2"] { background: #fce7f3; color: #9d174d; }
#scheduleWeekday[data-day="3"] { background: #dcfce7; color: #166534; }
#scheduleWeekday[data-day="4"] { background: #ffedd5; color: #9a3412; }
#scheduleWeekday[data-day="5"] { background: #dbeafe; color: #1e40af; }
#scheduleWeekday[data-day="6"] { background: #f3e8ff; color: #6b21a8; }
.dark #scheduleWeekday { box-shadow: 0 0 0 1px #ffffff26; }
.schedule-controls input, .schedule-controls select, #courtSchedules .schedule-controls button { box-sizing: border-box; height: 44px; min-height: 44px; margin: 0; font: inherit; line-height: 1.2; padding: 10px 14px; border: 1px solid #8b9997; border-radius: 8px; }
.schedule-controls select { background: inherit; color: inherit; }
.schedule-count { display: inline-block; margin-inline-start: 12px; font-size: .85rem; font-weight: 600; }
.schedule-slot-count { font-weight: bold; }
#courtSchedules .schedule-controls button { margin: 0; background: #176d55; color: white; cursor: pointer; }
.schedule-note, .schedule-updated { font-size: .88rem; opacity: .8; }
.schedule-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .85rem; margin: 20px 0; align-items: center; }
.legend-free, .legend-busy { padding: 5px 9px; border-radius: 6px; }
.legend-free, .slot-free { background: #a8e4bf; color: #14523a; }
.legend-busy, .slot-busy { background: #f3b3b8; color: #78333c; }
#courtSchedules .schedule-venue { border: 1px solid #b5c6c0; border-radius: 12px; padding: 20px; margin: 16px 0; }
.schedule-venue > summary { cursor: pointer; }
.schedule-venue > summary:focus-visible { outline: 2px solid #287761; outline-offset: 6px; }
#courtSchedules h2 { display: inline; margin: 0; font-size: 1.25rem; }
.schedule-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #b5c6c0; border-radius: 8px; }
.schedule-table { width: 100%; border-collapse: collapse; font-size: .85rem; white-space: nowrap; }
.schedule-table th, .schedule-table td { padding: 10px 12px; border: 1px solid #c4cecb; text-align: center; }
.schedule-table th { background: #eef4f1; color: #243c34; }
.schedule-table th:first-child { position: sticky; left: 0; z-index: 1; }
.schedule-table td { min-width: 24px; }
.schedule-table .schedule-booking { border-top: 2px solid #78333c; border-bottom: 2px solid #78333c; vertical-align: middle; font-size: .8rem; }
.dark .schedule-table .schedule-booking { border-top-color: #ffced4; border-bottom-color: #ffced4; }
.slot-unknown { background: #e1e5e3; }
.schedule-error { color: #a72f3e; }
.dark .schedule-error { color: #ffadb5; }
.dark .schedule-eyebrow { color: #8bd7b8; }
.dark .schedule-table th { background: #263b34; color: #e7f3ed; }
.dark .slot-free, .dark .legend-free { background: #286e48; color: #c1f3d5; }
.dark .slot-busy, .dark .legend-busy { background: #873c47; color: #ffced4; }
.dark .slot-unknown { background: #444d49; }
.dark .schedule-controls input, .dark .schedule-controls select { background: #25332e; color: #edf6f0; color-scheme: dark; }
@media (max-width: 600px) { .managed-page #courtSchedules { padding: 16px; } #courtSchedules .schedule-venue { padding: 12px; } .schedule-controls label { flex: 1; min-width: 160px; } .schedule-controls input { min-width: 0; } .schedule-table th, .schedule-table td { padding: 9px; } }
.schedule-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
#courtSchedules .schedule-tabs button { background: #176d55; color: white; border: 0; border-radius: 9px; padding: 12px 18px; font: inherit; cursor: pointer; }
#courtSchedules .schedule-tabs button[aria-pressed="false"] { background: #e1eae5; color: #18342e; }
.schedule-date-nav { display: flex; align-items: center; gap: 8px; min-width: 0; }
.schedule-date-nav input { flex: 1; min-width: 0; width: 160px; }
.schedule-legend[hidden] { display: none; }
.dark #courtSchedules .schedule-tabs button[aria-pressed="false"] { background: #25332e; color: #edf6f0; }
@media (max-width: 600px) { .schedule-controls > label:first-child { flex-basis: 100%; } .schedule-date-nav input { width: 0; } }
