/* Private scheduling stays readable on phones without altering the public header. */
.schedule-workspace { padding-block: 2.5rem; }
.schedule-heading { margin-block: 1.5rem; }
.schedule-heading h1 { overflow-wrap: anywhere; }
.weekday-picker { margin-block: 1.5rem; padding: 1.5rem;
    background: #f5f8fc; border: 1px solid #dce3eb; border-radius: 1rem; color: #172434; }
.weekday-picker__heading h2 { margin: 0 0 .35rem; font-size: 1.35rem; color: #172434; }
.weekday-picker__heading p { margin: 0; color: #475569; line-height: 1.5; }
.weekday-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem; margin-block: 1.25rem; }
.weekday-tabs a.weekday-tabs__link { display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: .35rem; min-width: 0;
    min-height: 108px; padding: .9rem .4rem; border: 1px solid #cbd5e1;
    border-radius: .75rem; background: #fff; color: #153766;
    text-align: center; text-decoration: none; line-height: 1.4; }
.weekday-tabs a.weekday-tabs__link:hover { background: #edf3fb; border-color: #153766; }
.weekday-tabs a.weekday-tabs__link.is-empty { background: #f8fafc; color: #526175; }
.weekday-tabs a.weekday-tabs__link.is-selected { background: #153766; color: #fff;
    border-color: #153766; box-shadow: inset 0 -4px 0 #f5ce49; }
.weekday-tabs__link:focus-visible { outline: 3px solid #b68b00; outline-offset: 3px; }
.weekday-tabs__day { font-size: 1rem; font-weight: 800; }
.weekday-tabs__count { font-size: .9rem; }
.weekday-tabs__state { font-size: .75rem; font-weight: 800; }
.weekday-tabs__hint { margin: 0; color: #475569; font-size: .85rem; line-height: 1.6; }
@media (min-width: 1200px) {
    .weekday-tabs { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .weekday-picker { padding: 1rem; }
    .weekday-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .weekday-tabs a.weekday-tabs__link { min-height: 96px; }
}
.schedule-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
    margin-block: 1rem; }
.schedule-search { max-width: 42rem; margin-bottom: 2rem; }
.schedule-search input { flex: 1 1 12rem; min-width: 0; }
.schedule-grid { display: grid; gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
    margin-block: 1.5rem; }
.schedule-card { padding: 1.5rem; background: #fff; color: #172434;
    border: 1px solid #dce3eb; border-top: 4px solid #153766;
    border-radius: 1rem; overflow-wrap: anywhere; }
.schedule-card h2 { font-size: 1.4rem; }
.schedule-time { font-weight: 800; font-size: 1.2rem; }
.classroom-notice { margin-block: 1.25rem; padding: 1.25rem 1.5rem;
    border: 1px solid #e4cc78; border-left: 6px solid #d5a91e;
    border-radius: .75rem; background: #fff8df; color: #172434;
    overflow-wrap: anywhere; }
.classroom-notice p { margin: 0; line-height: 1.6; }
.classroom-notice p + p { margin-top: .65rem; }
.classroom-notice strong { font-weight: 800; }
.lesson-when { display: flex; flex-wrap: wrap; justify-content: space-between;
    gap: 1rem; margin-block: 1rem; padding-block: 1rem;
    border-block: 1px solid #dce3eb; }
.lesson-when__date { flex: 1 1 8.5rem; }
.lesson-when__time { flex: 1 1 8rem; }
.lesson-when p { margin: .25rem 0; }
.lesson-when__label { font-size: .8rem; font-weight: 800;
    text-transform: uppercase; color: #475569; }
.lesson-when__zone, .lesson-when__end { font-size: .9rem; color: #475569; }
.lesson-when__time .schedule-time { white-space: nowrap; }
.timezone-search { margin-bottom: .5rem; }
.timezone-search-status { display: block; margin-top: .4rem; font-size: .9rem;
    color: #475569; }
@media (max-width: 480px) {
    .lesson-when { flex-direction: column; }
    .lesson-when__date, .lesson-when__time { flex-basis: auto; }
}
.schedule-form { max-width: 48rem; }
.schedule-field { margin-block: 1.25rem; }
.schedule-field label { display: block; font-weight: 800; margin-bottom: .4rem; }
.schedule-field input, .schedule-field select, .schedule-field textarea {
    max-width: 100%; min-width: 0; }
.schedule-form .errorlist, .schedule-form [role="alert"] { color: #a21d28; }

/* Compact filters keep upcoming lessons closer to the heading on wide screens. */
@media (min-width: 768px) {
    .schedule-filters { display: grid; grid-template-columns: repeat(2, 1fr);
        gap: 1rem; max-width: none; }
    .schedule-filters .schedule-field { margin: 0; }
    .schedule-filters > .errorlist { grid-column: 1 / -1; }
    .schedule-filters > button { justify-self: start; }
}
