.schedule-page{min-width:0;max-width:none!important}.schedule-header{display:flex;align-items:flex-start;justify-content:space-between;gap:32px;margin-bottom:24px}.schedule-header>div{max-width:620px}.schedule-header h1{font-size:clamp(38px,4vw,62px);margin:0 0 8px}.schedule-header p{margin:0}.schedule-publish{min-width:305px;flex-shrink:0}.schedule-layout{display:block}.schedule-board{border:1px solid var(--line);background:var(--surface);min-width:0;overflow-x:auto;overflow-y:hidden}.schedule-week-grid{display:grid;grid-template-columns:58px repeat(7,minmax(112px,1fr));min-width:842px}.schedule-corner,.schedule-day-heading{position:sticky;top:0;z-index:5;background:var(--surface);border-bottom:1px solid var(--line);min-height:64px}.schedule-day-heading{padding:9px 6px;text-align:center;border-left:1px solid var(--line);border-radius:0}.schedule-day-heading strong,.schedule-day-heading small{display:block}.schedule-day-heading small{color:var(--muted);font-size:13px}.schedule-day-heading.today{box-shadow:inset 0 -4px var(--lemon)}.schedule-time-axis{position:relative;border-right:1px solid var(--line)}.schedule-hour{position:absolute;left:0;right:7px;transform:translateY(-50%);text-align:right;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.schedule-day-track{position:relative;border-right:1px solid var(--line);background-image:linear-gradient(to bottom,transparent calc(100% - 1px),var(--line) 1px);background-size:100% var(--schedule-hour-height,64px)}.schedule-day-track:last-child{border-right:0}.schedule-event{position:absolute;z-index:2;min-width:0;padding:5px 6px;--event-border:color-mix(in srgb,var(--event-color) 65%,var(--line-strong));--event-stripe:var(--event-color);--event-ink:var(--ink);border:1px solid var(--event-border);border-left:4px solid var(--event-stripe);border-radius:4px;--event-fill:color-mix(in srgb,var(--event-color) 14%,var(--surface));background:var(--event-fill);color:var(--event-ink);text-align:left;overflow:hidden;line-height:1.15}.schedule-event.edge-segment{padding-top:2px;padding-bottom:2px}.schedule-event.edge-segment .schedule-event-title,.schedule-event.edge-segment .schedule-event-state{display:none}/* Neither hover nor selection changes a lesson's fill (colour, dashed draft, hatched cancellation):
   the selected lesson only gets a thin ink outline. */
.schedule-event.selected{z-index:4;outline:2px solid var(--ink);outline-offset:2px}.schedule-event-time{display:block;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}.schedule-event-title{display:block;margin-top:3px;font-size:13px;font-weight:700;overflow:hidden;text-overflow:ellipsis}.schedule-event-state{display:block;margin-top:4px;font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis}.schedule-event.compact{padding:5px 3px;border-left-width:3px}.schedule-event.compact .schedule-event-time{font-size:10px}.schedule-event.compact .schedule-event-title{font-size:11px;white-space:nowrap}.schedule-event.compact .schedule-event-state{display:none}.schedule-overload{font-size:11px;color:var(--muted);padding:8px;text-align:center;border-top:1px solid var(--line)}.schedule-inspector{position:static;margin-top:18px;border-top:5px solid var(--lemon);padding:18px;background:var(--surface-muted);min-height:0}.schedule-inspector h2{margin:0 0 8px;font-size:25px}.schedule-inspector dl{display:grid;grid-template-columns:86px 1fr;gap:8px 12px;margin:18px 0}.schedule-inspector dt{color:var(--muted)}.schedule-inspector dd{margin:0}.schedule-inspector .row{flex-wrap:wrap}.schedule-empty{padding:32px;text-align:center;color:var(--muted)}.schedule-agenda{display:none}.schedule-agenda-day{border-top:1px solid var(--line);padding:18px 0}.schedule-agenda-day h2{margin:0 0 12px}.schedule-agenda-item{display:grid;grid-template-columns:76px minmax(0,1fr);gap:14px;width:100%;padding:14px 4px;text-align:left;border-bottom:1px solid var(--line);border-radius:0}.schedule-agenda-item time{font-variant-numeric:tabular-nums;font-weight:700}.schedule-agenda-item strong,.schedule-agenda-item small{display:block}.schedule-agenda-item small{color:var(--muted);margin-top:3px}.schedule-dialog{width:min(620px,calc(100vw - 32px));max-height:90vh;overflow:auto;border:0;border-top:6px solid var(--lemon);padding:28px;background:var(--surface);color:var(--ink)}.schedule-dialog::backdrop{background:#1118}.schedule-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:20px}.schedule-dialog-header h2{margin:0}.schedule-dialog-close{font-size:24px}.schedule-choice-list{display:grid;gap:8px;margin:12px 0 20px}.schedule-choice{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line)}.schedule-choice input{width:18px;height:18px}.schedule-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.schedule-preview{padding:16px;margin:18px 0;background:var(--surface-muted)}.schedule-published{color:var(--success-ink)}.schedule-partial,.schedule-changed{color:var(--warning-ink)}.schedule-unpublished{color:var(--muted)}
.schedule-week-grid.focused{grid-template-columns:58px minmax(520px,1fr);min-width:620px}.app-sidebar .brand{font-size:42px;letter-spacing:-1.5px}
@media(max-width:1150px){.schedule-layout{grid-template-columns:1fr}.schedule-inspector{position:static}.schedule-week-grid{grid-template-columns:54px repeat(7,minmax(96px,1fr))}.schedule-week-grid.focused{grid-template-columns:54px minmax(520px,1fr)}}
@media(max-width:900px){.schedule-header{display:block}.schedule-header .schedule-publish{width:100%;margin-top:18px;justify-content:space-between}.schedule-board{display:none}.schedule-layout{display:block}.schedule-agenda{display:block}.schedule-inspector-slot{display:none}.schedule-form-grid{grid-template-columns:1fr}.schedule-dialog{padding:20px}.schedule-detail-dialog{width:100vw;max-width:none;max-height:88vh;margin:auto 0 0;border-top-width:5px}.schedule-detail-dialog .schedule-inspector{margin:0;padding:0;background:transparent;border:0}.schedule-header h1{font-size:38px}.app-sidebar .brand{font-size:30px;letter-spacing:-.5px}}
@media(min-width:1700px){.schedule-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}.schedule-inspector{position:sticky;top:24px;margin-top:0;min-height:180px}}
.schedule-day-heading.dense:after{content:'';position:absolute;top:10px;right:10px;width:7px;height:7px;border-radius:50%;background:#dc6558;box-shadow:var(--danger-glow)}
.schedule-event.compact .schedule-event-time{display:none}.schedule-event.compact .schedule-event-title{margin-top:0}
.schedule-cleanup{color:var(--muted)}.schedule-rule-summary{padding:10px 0 18px}.schedule-rule-create{margin:8px 0 24px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:16px 0}.schedule-rule-create>summary{font-size:18px;margin-bottom:16px}.schedule-rule-create>label{margin:14px 0}.schedule-weekdays{display:grid;grid-template-columns:repeat(7,minmax(42px,1fr));gap:6px;margin:8px 0 16px}.schedule-weekdays label{display:flex;align-items:center;justify-content:center;gap:5px;padding:8px 4px;border:1px solid var(--line)}.schedule-weekdays input{width:16px;height:16px}.schedule-series-preview{margin:12px 0 0;padding-left:24px;columns:2}.schedule-series-preview li{break-inside:avoid;padding:3px 0}.schedule-series-preview li.conflict{color:var(--danger-ink)}.schedule-overlap-confirm,.schedule-delete-confirm{margin:12px 0;background:var(--danger-soft);border-color:var(--danger-line);box-shadow:var(--danger-glow)}.schedule-protected{color:var(--warning-ink)}
.schedule-block-cancelled{color:var(--danger-ink)}.schedule-block-held{color:var(--success-ink)}
/* Draft outline: 2px dashes 6px long with 5px gaps (a CSS dashed border cannot set the dash
   length), drawn as four background lines over a transparent 2px border. The same outline is
   used by the legend swatch. */
.schedule-event.schedule-sync-draft,.schedule-color-swatch.draft{--draft-dash:var(--muted);--draft-outline:repeating-linear-gradient(90deg,var(--draft-dash) 0 6px,transparent 6px 11px) left top/100% 2px no-repeat border-box,repeating-linear-gradient(90deg,var(--draft-dash) 0 6px,transparent 6px 11px) left bottom/100% 2px no-repeat border-box,repeating-linear-gradient(180deg,var(--draft-dash) 0 6px,transparent 6px 11px) left top/2px 100% no-repeat border-box,repeating-linear-gradient(180deg,var(--draft-dash) 0 6px,transparent 6px 11px) right top/2px 100% no-repeat border-box}
.schedule-event.schedule-sync-draft{--event-fill:var(--draft-outline),var(--surface);--event-border:transparent;--event-stripe:transparent;border:2px solid transparent;background:var(--event-fill);color:var(--ink)}.schedule-event.schedule-sync-pending{--event-fill:var(--warning-soft);--event-border:var(--warning-line);--event-stripe:var(--warning-line);border-color:var(--warning-line);border-left-color:var(--warning-line);background:var(--event-fill);color:var(--ink)}.schedule-rescheduled{border-left:4px solid var(--lemon);padding-left:10px}
.schedule-request-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;border-color:var(--accent-line);background:var(--accent-soft)}.schedule-request-button:hover{border-color:var(--accent-line);background:color-mix(in srgb,var(--accent-soft) 90%,var(--ink))}.schedule-request-button.has-new{border-color:var(--danger-line);background:var(--danger-soft);box-shadow:inset 4px 0 var(--danger-line),var(--danger-glow);color:var(--danger-ink);font-weight:750}.schedule-request-button.has-new:hover{border-color:var(--danger-line);background:color-mix(in srgb,var(--danger-soft) 90%,var(--ink))}.schedule-request-count{display:inline-grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border-radius:999px;background:#c24f43;color:#fff;font-size:12px;font-weight:800;line-height:1;box-shadow:var(--danger-glow)}.schedule-request-state{display:inline-block;margin:0 0 12px;padding:5px 9px;background:var(--info-soft);color:var(--ink);font-size:13px;font-weight:700}.schedule-request-message{margin:14px 0;padding:12px 14px;border-left:4px solid var(--lemon);background:var(--surface-muted)}.schedule-request-message p{margin:6px 0 0}.schedule-request-policy{margin:4px 0 28px;padding-bottom:24px;border-bottom:1px solid var(--line)}.schedule-request-policy h3{margin-top:0}.schedule-request-policy>label{margin:12px 0}.schedule-request-policy input[type=number]{max-width:130px}.schedule-request-list{display:grid;gap:8px}.schedule-request-card{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:14px;text-align:left;border-radius:0;border:1px solid var(--line);background:transparent}.schedule-request-card.open{border-left:5px solid var(--danger-line);background:var(--danger-soft);box-shadow:var(--danger-glow)}.schedule-request-card strong,.schedule-request-card small{display:block}.schedule-request-card small{margin-top:4px;color:var(--muted)}.schedule-request-slot{margin:14px 0;padding:14px;background:var(--surface-muted)}.schedule-request-action{min-width:0}.schedule-inspector .schedule-request-button{width:100%;max-width:100%;white-space:normal;line-height:1.3;text-align:center}.schedule-request-unavailable{margin:12px 0 0;font-size:13px}
.schedule-request-slot-box{margin:14px 0}.schedule-request-slots{display:grid;gap:10px}.schedule-request-slot{margin:0}.schedule-slot-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.schedule-remove-slot,.schedule-add-slot{padding:7px 10px}.schedule-add-slot{margin-top:10px}.schedule-request-options{margin:14px 0;padding:12px 14px;background:var(--surface-muted)}.schedule-request-options p{margin:6px 0 0}.schedule-request-option-list{display:grid;gap:8px;margin:12px 0}.schedule-request-option{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid var(--line);background:var(--surface-muted);cursor:pointer}.schedule-request-option input{width:18px;height:18px}.schedule-request-option strong,.schedule-request-option small{display:block}.schedule-request-option small{margin-top:3px;color:var(--muted)}
.schedule-field-error{margin:-6px 0 14px;padding:10px 12px;border-left:4px solid var(--danger-line);background:var(--danger-soft);color:var(--danger-ink);font-weight:700;box-shadow:var(--danger-glow)}.schedule-dialog textarea[aria-invalid="true"]{border-color:var(--danger-line);box-shadow:var(--danger-glow)}
.schedule-quota-note{margin:12px 0;padding:10px 12px;border-left:4px solid var(--lemon);background:var(--accent-soft)}.schedule-quota-note.exhausted{border-left-color:var(--danger-line);background:var(--danger-soft);color:var(--danger-ink);box-shadow:var(--danger-glow)}
.schedule-policy-dialog{width:min(1040px,calc(100vw - 32px))}.schedule-center-tabs{display:flex;gap:4px;margin:0 0 20px;border-bottom:1px solid var(--line)}.schedule-center-tab{border-radius:0;padding:11px 14px;border-bottom:3px solid transparent}.schedule-center-tab.active{border-bottom-color:var(--ink);font-weight:750}.schedule-policy-panel>input[type=search]{width:100%;margin:8px 0 14px}.schedule-matrix-toggle,.schedule-infinity{display:inline-flex;align-items:center;gap:6px;margin:0}.schedule-matrix-toggle input,.schedule-infinity input{width:18px;height:18px}.schedule-request-panel h3{margin-top:0}
.schedule-agenda-intro{display:flex;align-items:baseline;justify-content:space-between;padding:0 0 12px;border-bottom:3px solid var(--ink)}.schedule-agenda-empty{margin:0}.schedule-inspector-slot{scroll-margin-top:16px}
@media(max-width:900px){.schedule-weekdays{grid-template-columns:repeat(4,1fr)}.schedule-series-preview{columns:1}}
@media(max-width:900px){.schedule-agenda-day{padding:14px 0}.schedule-agenda-day.today{border-left:4px solid var(--lemon);padding-left:10px}.schedule-agenda-day h2{font-size:19px;text-transform:capitalize}.schedule-agenda-item{min-height:70px}.schedule-agenda-empty{padding:6px 0 10px}}
.schedule-header-actions{display:flex;align-items:stretch;justify-content:flex-end;gap:10px;max-width:none!important;flex-shrink:0}.schedule-header-actions .schedule-publish{min-width:210px}.schedule-send-digest{white-space:nowrap}.schedule-notify-choice{display:flex;align-items:flex-start;gap:12px;margin:18px 0;padding:14px;border:1px solid var(--line);background:var(--panel)}.schedule-notify-choice input{width:18px;height:18px;margin-top:2px}.schedule-notify-choice strong,.schedule-notify-choice small{display:block}.schedule-notify-choice small{margin-top:3px;color:var(--muted)}
@media(max-width:900px){.schedule-header-actions{display:grid;grid-template-columns:1fr;margin-top:18px}.schedule-header-actions .schedule-publish,.schedule-header-actions .schedule-send-digest{width:100%;margin:0}.schedule-header-actions .schedule-publish{justify-content:space-between}}
@media(max-width:900px){.schedule-request-card{min-height:64px}.schedule-request-policy{margin-bottom:20px}}
@media(max-width:720px){.schedule-policy-dialog{width:100vw;max-width:none;margin:auto 0 0;padding:18px}}
.schedule-template-status{padding:4px 0 10px;font-weight:600;color:var(--ink)}.schedule-suggestions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.schedule-suggestion-option{font-size:13px;padding:6px 10px}.schedule-make-default{white-space:nowrap}
.schedule-dialog-header{position:sticky;top:-28px;z-index:20;margin:-28px -28px 20px;padding:22px 28px 14px;background:var(--surface);border-bottom:1px solid var(--line)}
.schedule-dialog-close{display:grid;place-items:center;flex:0 0 36px;width:36px;min-width:36px;height:36px;min-height:36px;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--ink);line-height:1}
.schedule-dialog-close:hover{border-color:var(--line);background:var(--surface-hover)}
.dialog-feedback{margin:0 0 18px;padding:11px 13px;border-left:4px solid var(--warning-line);background:var(--warning-soft);color:var(--warning-ink);font-weight:650}.dialog-feedback[hidden]{display:none}.dialog-feedback[data-tone="error"]{border-left-color:var(--danger-line);background:var(--danger-soft);color:var(--danger-ink);box-shadow:var(--danger-glow)}.schedule-placement-modes{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.schedule-placement-mode{border:1px solid var(--line);background:transparent}.schedule-placement-mode.active{border-color:var(--ink);box-shadow:inset 0 -3px var(--lemon);font-weight:700}.schedule-placement-custom{display:grid;gap:14px;margin:18px 0;padding:16px;background:var(--surface-muted)}
.schedule-placement-custom>label,.schedule-placement-custom>.schedule-form-grid{margin:0}
.schedule-choice-action{width:100%;text-align:left;border:1px solid var(--line);background:transparent}
.schedule-block-history-pending{color:var(--warning-ink);font-weight:700}.schedule-history-button{border-color:var(--warning-line)}.schedule-history-dialog[open]{display:flex;flex-direction:column;width:min(680px,calc(100vw - 32px));height:min(820px,calc(100vh - 32px));max-height:calc(100vh - 32px);overflow:hidden}.schedule-history-content{min-height:0;overflow:auto;padding:0 6px 18px 0;scrollbar-gutter:stable}.schedule-history-target{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 14px;padding:14px;border:1px solid var(--line);background:var(--surface-muted)}.schedule-history-target>.schedule-form-grid{grid-column:1/-1;margin-top:8px}.schedule-history-cancellation,.schedule-history-reschedule{margin:14px 0;padding:14px;border-left:4px solid var(--lemon);background:var(--surface-muted)}.schedule-history-reschedule h3{margin-top:0}.schedule-fixed-value{display:flex;align-items:center;min-height:42px;padding:9px 11px;border:1px solid var(--line);background:var(--surface);font-weight:700}.schedule-month-usage{margin:14px 0;padding:12px 14px;border:1px solid var(--line);background:var(--surface-muted)}.schedule-month-usage>strong{display:block;margin-bottom:8px;text-transform:capitalize}.schedule-month-usage>span:not(.muted){display:grid;grid-template-columns:1fr 1fr;gap:12px}.schedule-month-usage>span>span{display:block;font-weight:700}.schedule-month-usage small{display:block;margin-top:3px;color:var(--muted);font-weight:400}.schedule-delete-panel{margin:18px 0 0;padding:16px;border:1px solid var(--danger-line);border-left:5px solid var(--danger-line);background:var(--danger-soft);box-shadow:var(--danger-glow)}.schedule-delete-panel h3{margin:0 0 8px}.schedule-delete-panel>label{margin:12px 0}.schedule-delete-panel .row{justify-content:flex-end}.schedule-history-footer{flex:none;display:flex;justify-content:flex-end;gap:10px;margin:0;padding:14px 0 0;border-top:1px solid var(--line);background:var(--surface)}.schedule-cancellation-cause{padding:8px 10px;background:color-mix(in srgb,#e69b2e 12%,transparent);font-size:14px}.schedule-reschedule-history{margin:12px 0}.schedule-reschedule-history summary{cursor:pointer;font-weight:700}.schedule-reschedule-step{display:grid;gap:4px;margin-top:8px;padding:10px 12px;border-left:3px solid var(--lemon);background:var(--surface-muted)}.schedule-reschedule-step>*{display:block}.schedule-reschedule-step small{color:var(--muted)}
.schedule-inspector-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:16px}.schedule-inspector-actions>button{flex:0 0 auto}.schedule-draft-delete{margin-left:auto}
.schedule-draft-prepared{margin:0 0 14px;padding:10px 12px;border-left:4px solid var(--line-strong);background:var(--surface-muted);color:var(--muted)}.schedule-draft-warning{display:flex;align-items:center;gap:7px;flex:0 0 100%;margin-top:8px}.schedule-draft-warning[hidden]{display:none}.schedule-draft-warning-button{min-height:30px;padding:4px 8px;border-color:var(--danger-line);background:var(--warning-soft);color:var(--danger-ink);font-size:13px;font-weight:750;box-shadow:var(--danger-glow)}.schedule-draft-warning small{color:var(--muted);font-size:12px}.schedule-lesson-homework-summary{margin-top:12px}.schedule-lesson-homeworks{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.schedule-lesson-homeworks summary{padding:10px 0;cursor:pointer;font-weight:750}.schedule-lesson-homework-items{display:flex;gap:6px;flex-wrap:wrap;padding:0 0 10px}.schedule-homework-button{margin-top:10px}
.schedule-homework-unavailable{display:block;margin-top:10px;padding:9px 10px;border-left:3px solid var(--line-strong);background:var(--panel)}
@media(max-width:620px){.schedule-history-target{grid-template-columns:1fr}.schedule-history-target>.schedule-form-grid{grid-column:1}.schedule-history-footer button{flex:1}.schedule-month-usage>span:not(.muted){grid-template-columns:1fr}}
.inline-check{display:inline-flex!important;align-items:center;justify-content:flex-start!important;gap:9px;width:auto!important}
.inline-check input{width:18px!important;height:18px!important;margin:0!important;flex:0 0 18px}
.student-connection{display:grid!important;place-items:center;flex:0 0 18px!important;width:18px;height:18px;border:1px solid var(--line-strong);border-radius:4px;color:var(--muted);font:800 12px/1 Manrope,sans-serif}
.student-connection.connected{border-color:var(--success-line);background:var(--success-soft);color:var(--success-ink)}.student-connection.not-connected{background:transparent;color:var(--muted);font-weight:600}
.regular-slots>.row{justify-content:flex-start;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}.regular-slots>.row .danger{margin-left:auto}
/* Lesson contents and geometry live only in lesson-card.css; schedule owns placement. */
.schedule-inspector{justify-self:start}



.schedule-help{position:relative;display:inline-grid;place-items:center;flex:0 0 18px;width:18px;min-width:18px;height:18px;min-height:18px;padding:0;border:1px solid currentColor;border-radius:50%;font:700 12px/1 Manrope,sans-serif;cursor:default;outline-offset:3px}
.schedule-event{min-height:0}
.schedule-event.edge-segment{padding:1px 4px}
.schedule-event.micro-segment .schedule-event-time{display:none}
.schedule-heading-note{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.schedule-color-help{position:relative;flex:0 0 auto}.ui-tooltip .schedule-color-legend{display:grid;gap:9px;margin:8px 0 0;padding:0;list-style:none}.ui-tooltip .schedule-color-legend li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;align-items:start}.schedule-color-legend li strong,.schedule-color-legend li small{display:block}.schedule-color-legend li small{margin-top:2px;line-height:1.35}.schedule-color-swatch{display:block;width:22px;height:16px;margin-top:2px;border:1px solid var(--line-strong);border-left-width:4px;border-radius:3px}.schedule-color-swatch.draft{border:2px solid transparent;background:var(--draft-outline),var(--surface)}.schedule-color-swatch.published{background:linear-gradient(90deg,color-mix(in srgb,#5b7cfa 22%,var(--surface)),color-mix(in srgb,#8b6fd6 22%,var(--surface)),color-mix(in srgb,#3fa7c0 22%,var(--surface)));border-color:var(--info-line)}.schedule-color-swatch.changed{background:var(--warning-soft);border-color:var(--warning-line)}.schedule-color-swatch.conflict{background:var(--surface);border-left-color:var(--danger-line)}.schedule-header p{margin:0}
.schedule-heading-note{display:block}.schedule-heading-note>.muted{display:inline}.schedule-color-help{display:inline-grid;margin-left:6px;vertical-align:-4px}.schedule-event.condensed{padding:2px 5px}.schedule-event.condensed .schedule-event-state{display:none}.schedule-event.has-student-initial .schedule-event-time{padding-right:18px}.schedule-event-initial{position:absolute;right:4px;top:3px;display:grid;place-items:center;width:15px;height:15px;border-radius:50%;background:var(--event-color);color:#fff;font-size:9px;font-weight:800;line-height:1}.schedule-event.condensed .schedule-event-initial{top:2px}.schedule-event.micro-segment .schedule-event-initial{display:none}.schedule-event.condensed .schedule-event-time{font-size:10px}.schedule-event.condensed .schedule-event-title{margin-top:1px;font-size:11px;line-height:1.05}.schedule-event.edge-segment .schedule-event-initial{top:1px;width:12px;height:12px;font-size:8px}
.schedule-request-allowances{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.schedule-request-allowances:empty{display:none}.schedule-request-allowance{position:relative;padding:3px 0;border-bottom:1px dotted currentColor;color:var(--muted);font-size:12px;font-weight:700;cursor:help;outline-offset:3px;white-space:nowrap}@media(max-width:900px){.schedule-request-allowances{grid-column:1/-1}}

/* Dialogs may be tall, but no dialog content is allowed to create a useless
   horizontal scroll track. Actions wrap inside the available width. */
.schedule-dialog{overflow-x:hidden;overflow-y:auto}
.schedule-inspector-actions>button{flex:0 1 auto;max-width:100%;white-space:normal}
.schedule-dialog{--schedule-dialog-pad:28px}
.schedule-dialog-header{top:calc(-1 * var(--schedule-dialog-pad));margin:calc(-1 * var(--schedule-dialog-pad)) calc(-1 * var(--schedule-dialog-pad)) 20px;padding:22px var(--schedule-dialog-pad) 14px}
@media(max-width:900px){.schedule-dialog{--schedule-dialog-pad:20px}}
.schedule-header>.schedule-heading-copy{max-width:760px}.schedule-heading-copy .schedule-heading-note{display:flex;align-items:center;flex-wrap:nowrap;gap:6px}.schedule-heading-copy .schedule-heading-note>.muted{white-space:nowrap}.schedule-heading-copy .schedule-color-help{margin-left:0;vertical-align:initial}
.schedule-heading-copy .schedule-color-help{top:5px}
@media(max-width:900px){.schedule-header>.schedule-heading-copy{max-width:100%}.schedule-heading-copy .schedule-heading-note{display:flex;align-items:center;flex-wrap:nowrap}.schedule-heading-copy .schedule-heading-note>.muted{white-space:normal}.schedule-heading-copy .schedule-color-help{margin-left:0;vertical-align:initial}}
@media(max-width:600px){.schedule-heading-copy .schedule-heading-note{flex-wrap:wrap}.schedule-draft-warning{align-items:flex-start;flex-wrap:wrap}.schedule-draft-warning-button{width:100%;justify-content:flex-start}.schedule-lesson-homework-items .button{width:100%}}
.schedule-digest-dialog[open]{width:min(760px,calc(100vw - 24px))}
.schedule-digest-preview{display:grid;gap:10px;max-height:52vh;overflow:auto;overscroll-behavior:contain}
.schedule-digest-preview>p{margin:0}
.schedule-digest-list{display:grid;gap:0;border-top:1px solid var(--line)}
.schedule-digest-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}
.schedule-digest-choice{display:flex;align-items:center;gap:8px;grid-column:1/-1}
.schedule-digest-choice input{width:18px;height:18px;margin:0}
.schedule-digest-card>small{grid-column:1/-1}.schedule-channel-connected{color:var(--success-ink)}.schedule-channel-missing{color:var(--warning-ink)}
.schedule-digest-card details{min-width:0;margin:0}
.schedule-digest-card details[open]{grid-column:1/-1}
.schedule-digest-text{width:100%;min-height:190px;margin-top:8px;resize:vertical;white-space:pre-wrap;font:14px/1.55 Manrope,sans-serif}
.schedule-digest-footer{position:sticky;bottom:0;display:flex;justify-content:flex-end;padding-top:10px;background:var(--panel)}
@media(max-width:600px){.schedule-digest-card{grid-template-columns:1fr}.schedule-digest-card>button{width:100%}.schedule-digest-footer button{width:100%}}

/* Direct dialog actions must never touch the fields or content above them.
   Forms already have their own grid gap; this covers dialogs assembled from
   standalone controls and keeps future actions consistent as well. */
.schedule-dialog>button,.schedule-dialog>.row{margin-top:14px}
.schedule-month-usage>strong{text-transform:none}

/* Student pickers stay usable with a large roster; the dialog itself no
   longer grows to the height of the whole list. */
.schedule-choice-list{max-height:min(360px,42vh);padding-right:5px;overflow-y:auto;scrollbar-gutter:stable}
.checklist-picker{display:grid;gap:8px;margin:10px 0 18px}.checklist-picker>input{width:100%;margin:0}.checklist-picker-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.checklist-picker-toolbar>div{display:flex;gap:6px;flex-wrap:wrap}.checklist-picker-count{white-space:nowrap;color:var(--muted)}.checklist-picker .schedule-choice-list{margin:0}

/* Compact SVG chevrons keep the period readable in the narrow schedule column. */
.schedule-header{flex-wrap:wrap}.schedule-header-actions{flex:1 1 520px}

.schedule-week-navigation{display:grid;grid-template-columns:max-content minmax(0,1fr) max-content;align-items:stretch;flex:1 1 300px;min-width:280px;overflow:hidden;border:1px solid var(--line);border-radius:6px;background:var(--panel)}
.schedule-week-navigation strong{display:flex;align-items:center;justify-content:center;min-width:0;padding:8px 12px;border-inline:1px solid var(--line);text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap;overflow-wrap:normal}
.schedule-week-navigation button{min-width:0;padding:8px 12px;border:0;border-radius:0;background:transparent;font-size:14px;white-space:nowrap}
.schedule-week-navigation button .ui-icon{display:block;width:21px;height:21px;stroke-width:2.4}
.schedule-week-navigation button:hover{background:var(--surface-muted)}
@media(max-width:900px){.schedule-week-navigation{grid-column:1/-1}}
@media(max-width:560px){.schedule-week-navigation{grid-template-columns:1fr 1fr;min-width:0}.schedule-week-navigation strong{grid-column:1/-1;grid-row:1;min-width:0;border:0;border-bottom:1px solid var(--line);white-space:normal}.schedule-week-navigation button{grid-row:2}.schedule-week-navigation button+button{border-left:1px solid var(--line)}}

/* The calendar toolbar has three jobs: choose a week,surface pending requests{display:grid;grid-template-columns:minmax(460px,1fr) auto;align-items:center;gap:18px;padding:12px 0}











/* Shared modal frame. The parent widget owns header, scrollable body and a
   persistent footer so long rosters never hide the primary action. */
.schedule-dialog[open]{display:flex;box-sizing:border-box;max-height:calc(100dvh - 24px);padding:0;overflow:hidden;flex-direction:column}
.schedule-dialog .schedule-dialog-header{position:static;top:auto;margin:0;padding:22px var(--schedule-dialog-pad) 14px;background:var(--surface);border-bottom:1px solid var(--line)}
.schedule-dialog>.dialog-feedback{margin:12px var(--schedule-dialog-pad) 0}
.schedule-dialog-body{min-height:0;padding:20px var(--schedule-dialog-pad) 28px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;flex:1 1 auto}
.schedule-dialog .schedule-dialog-header,.schedule-dialog>.dialog-feedback,.schedule-dialog-footer{flex:0 0 auto}
.schedule-dialog-footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;padding:14px var(--schedule-dialog-pad);border-top:1px solid var(--line);background:var(--surface);box-shadow:0 -8px 22px #171a2010}
.schedule-dialog-footer .dialog-save-status{align-self:center;margin-right:auto;color:var(--muted)}
.schedule-dialog-footer[hidden]{display:none}.schedule-dialog-footer button{margin:0}
@media(max-width:600px){.schedule-dialog-footer>*{flex:1 1 100%;width:100%}}

/* One control system for the schedule header and toolbar.  Keep the hierarchy
   identical at every width instead of letting several historic flex rules
   compete with each other. */
.schedule-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:20px 28px;margin-bottom:22px}
.schedule-header>.schedule-heading-copy{min-width:0;max-width:none}
.schedule-heading-copy .schedule-heading-note{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:7px 9px;max-width:760px}
.schedule-heading-copy .schedule-heading-note>.muted{min-width:0;white-space:normal;line-height:1.45}
.schedule-heading-copy .schedule-color-help{top:2px;margin:0}
.schedule-draft-warning{grid-column:1/-1;display:flex;align-items:center;gap:8px;width:100%;margin:3px 0 0}
.schedule-header-actions{display:grid;grid-template-columns:minmax(170px,auto) minmax(260px,320px);align-items:stretch;gap:8px;max-width:none;flex:none}
.schedule-header-actions>button{min-height:48px;margin:0}
.schedule-header-actions .schedule-send-digest{padding:10px 15px;border:1px solid var(--line);border-radius:5px;background:transparent}
.schedule-header-actions .schedule-send-digest:hover{background:var(--surface-muted)}
.schedule-header-actions .schedule-publish{width:100%;min-width:0}









@media(max-width:1180px){
  .schedule-header{grid-template-columns:1fr;align-items:start}
  .schedule-header-actions{grid-template-columns:minmax(0,1fr) minmax(280px,1.25fr);width:min(760px,100%)}
}

@media(max-width:700px){
  .schedule-header{gap:15px;margin-bottom:18px}
  .schedule-header h1{font-size:36px}
  .schedule-header-actions{grid-template-columns:1fr 1.3fr;width:100%;margin:0}
  .schedule-header-actions .schedule-publish,.schedule-header-actions .schedule-send-digest{width:100%;margin:0}
  .schedule-week-navigation{grid-column:1;min-width:0}
}

@media(max-width:520px){
  .schedule-heading-copy .schedule-heading-note{grid-template-columns:auto minmax(0,1fr)}
  .schedule-draft-warning{align-items:stretch;flex-direction:column}
  .schedule-draft-warning-button{width:100%;justify-content:flex-start}
  .schedule-header-actions{grid-template-columns:1fr}
  .schedule-header-actions>button{min-height:44px}
  .schedule-week-navigation{grid-template-columns:48px minmax(0,1fr) 48px}
  .schedule-week-navigation strong{grid-column:auto;grid-row:auto;border-top:0;border-bottom:0;border-inline:1px solid var(--line);white-space:normal}
  .schedule-week-navigation button{grid-row:auto}
  .schedule-week-navigation button+button{border-left:0}
}
/* Lesson price (tutor): a row in the inspector; the calendar block shows it only in its tooltip. */
.schedule-price-value{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
/* Schedule toolbar — the ONLY rules for this panel (do not add overrides elsewhere).
   One row: week navigation, then square icon buttons in small groups. Every icon
   button has a tooltip (data-tip) and an aria-label. Icons are narrow, so the row
   fits down to ~760px; below that the icons move under the week as one row. */
.schedule-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:18px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.schedule-period,.schedule-actions{display:flex;align-items:center;gap:10px;min-width:0}
.schedule-period .schedule-week-navigation{flex:0 1 auto;min-width:min(100%,300px)}
.schedule-tool-group{display:flex;align-items:center;gap:6px;padding:4px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}
.schedule-tool{position:relative;display:inline-grid;place-items:center;width:40px;height:40px;min-width:40px;min-height:40px;padding:0;border:1px solid var(--line);border-radius:7px;background:var(--surface-muted);color:var(--ink)}
.schedule-tool .ui-icon{width:21px;height:21px}
.schedule-tool-label{display:none}
.schedule-tool:hover,.schedule-tool:focus-visible{border-color:var(--line-strong);background:var(--surface-hover)}
/* The main toolbar action differs only by its fill: the outline is the same as every tool button. */
.schedule-tool--primary{background:var(--lemon);color:var(--on-accent)}
.schedule-tool--primary:hover,.schedule-tool--primary:focus-visible{border-color:var(--line-strong);background:var(--lemon);filter:brightness(1.06)}
.schedule-tool--alert{border-color:var(--danger-line);background:var(--danger-soft);color:var(--danger-ink);box-shadow:var(--danger-glow)}
.schedule-tool--danger:hover,.schedule-tool--danger:focus-visible{border-color:var(--danger-line);color:var(--danger-ink);box-shadow:var(--danger-glow)}
.schedule-tool-count{position:absolute;top:-7px;right:-7px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#c9483c;color:#fff;font-size:11px;font-weight:800;line-height:1;box-shadow:var(--danger-glow)}
@media(max-width:760px){
  /* Phone: the week takes its own row, all icon groups share the next one. */
  .schedule-toolbar{justify-content:space-between;gap:10px 6px}
  .schedule-period,.schedule-actions{display:contents}
  .schedule-period .schedule-week-navigation{flex:1 1 100%;min-width:0}
  .schedule-tool-group{gap:5px;padding:0;border:0;background:none}
  .schedule-tool{width:36px;height:36px;min-width:36px;min-height:36px}
}


/* Price of a new lesson: one picker per selected student (name · list · own sum). */
.schedule-price-field{display:grid;gap:6px}.schedule-price-field>small{margin:0}.schedule-price-panel{display:grid;gap:8px}.schedule-price-row{display:grid;grid-template-columns:minmax(0,160px) minmax(0,1fr) auto;align-items:center;gap:8px}.schedule-price-row>[hidden]{display:none}.schedule-price-student{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.schedule-price-row>input{width:140px}.schedule-price-panel--single .schedule-price-row{grid-template-columns:minmax(0,1fr) auto}.schedule-price-panel--single .schedule-price-student{display:none}
@media(max-width:760px){.schedule-price-row,.schedule-price-panel--single .schedule-price-row{grid-template-columns:minmax(0,1fr)}.schedule-price-row>input{width:100%}}

/* «?» next to «Расписание»: the drafts → check → publish pipeline above the colour legend. */


/* Student/parent change request: the tutor's rules stand out in red above the form. */
.schedule-policy-alert{display:grid;gap:6px;margin:4px 0 14px;padding:12px 14px;border:1px solid var(--danger-line);border-left:5px solid var(--danger-line);border-radius:6px;background:var(--danger-soft);color:var(--ink);box-shadow:var(--danger-glow)}
.schedule-policy-alert strong{color:var(--danger-ink);font-size:15px}
.schedule-policy-alert p{margin:0;white-space:pre-line;line-height:1.45}
.schedule-policy-alert .schedule-policy-deadline{font-weight:700}
.schedule-when-row{grid-template-columns:repeat(auto-fit,minmax(118px,1fr));margin-bottom:10px}
.schedule-placement-price-box{display:grid;gap:6px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-muted)}
.schedule-placement-prices{display:grid;gap:4px}
.schedule-placement-price{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}

/* Draft — transparent with a dashed outline. Cancelled — grey hatching, struck-through title. */
.schedule-event.schedule-block-cancelled{--event-border:var(--line-strong);--event-stripe:var(--line-strong);--event-ink:var(--muted);border:1px solid var(--line-strong);border-left:4px solid var(--line-strong);--event-fill:repeating-linear-gradient(135deg,var(--surface-hover) 0 6px,var(--surface) 6px 12px);background:var(--event-fill);color:var(--muted)}
.schedule-event.schedule-block-cancelled .schedule-event-title{text-decoration:line-through}
.schedule-event.schedule-block-cancelled .schedule-event-state{color:var(--muted)}

/* Overlap: a red piece of the lesson's left stripe, only on the overlapping minutes. */
.schedule-event-clash,.schedule-color-swatch.conflict::before{--clash-glow:var(--danger-glow)}
.schedule-event-clash{position:absolute;z-index:5;width:4px;border-radius:2px;background:var(--danger-line);pointer-events:none;box-shadow:var(--clash-glow)}
/* The legend swatch shows the same glowing stripe. */
.schedule-color-swatch.conflict{position:relative;border-left-color:transparent}
.schedule-color-swatch.conflict::before{content:'';position:absolute;left:-4px;top:-1px;bottom:-1px;width:4px;border-radius:2px;background:var(--danger-line);box-shadow:var(--clash-glow)}

/* A lesson looks the same whatever the pointer does: the generic button:hover / button.selected
   rules (grey fill, transparent border, other text colour) never apply to it. Each lesson type
   sets only the --event-* variables; the selected lesson additionally gets its ink outline. */
.schedule-event:is(:hover,:focus,:active,.selected){border-color:var(--event-border);border-left-color:var(--event-stripe);background:var(--event-fill);color:var(--event-ink)}
.schedule-inspector{padding:16px;border-radius:8px;font-size:14px;line-height:1.45}
.schedule-inspector>p{margin:10px 0;font-size:13px;line-height:1.5}
.schedule-inspector dl{margin:14px 0;gap:6px 12px;font-size:14px}
.schedule-inspector>button,.schedule-inspector-actions>button,.schedule-report-summary>button{font-size:14px;min-height:36px;padding:8px 12px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}
.schedule-inspector .schedule-student-card-link{margin:4px 0 10px;text-align:left}
.schedule-inspector .schedule-report-summary{margin-top:12px;padding-top:12px;gap:8px}
.schedule-inspector .schedule-lesson-homeworks{padding:10px 0;margin:10px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.schedule-inspector .schedule-report-state{font-size:13px}
.schedule-inspector{width:100%;max-width:480px;justify-self:start}
.schedule-inspector>.schedule-student-card-link{text-align:left}
.schedule-inspector>.schedule-student-card-link{display:flex;justify-content:flex-start}
.schedule-inspector .schedule-reschedule-history:empty{display:none}
.schedule-inspector .schedule-lesson-homeworks summary{padding:4px 0;font-size:14px;line-height:1.4}
.schedule-inspector .schedule-card-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px 0;border-block:1px solid var(--line)}
.schedule-card-fact{min-width:0;display:grid;gap:4px;align-content:start}
.schedule-card-fact dt{font-size:12px}.schedule-card-fact dd{font-size:14px;margin:0;line-height:1.35}
.schedule-card-fact--wide{grid-column:1/-1}
.schedule-inspector .schedule-card-secondary{grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--line);padding-top:12px;margin-top:12px}
.schedule-inspector .ui-icon{width:18px;height:18px;flex:0 0 18px}
.schedule-inspector :is(.schedule-homework-button,.schedule-report-button,.schedule-student-card-link){display:flex;align-items:center;justify-content:center;gap:8px}
.schedule-inspector .schedule-card-explanation{margin:8px 0;font-size:12px;color:var(--muted)}
.schedule-card-explanation summary{padding:4px 0;cursor:pointer;line-height:1.4}
.schedule-card-explanation p{margin:8px 0;line-height:1.5}
@container(max-width:270px){.schedule-inspector .schedule-card-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.schedule-inspector .schedule-card-secondary{grid-template-columns:minmax(0,1fr)}}

/* Calendar and chronological list are explicit alternatives on every device.
   Mobile uses the very same tracks and lesson styling, with three narrower days. */
.schedule-layout{display:block}
.schedule-week-grid .schedule-event{display:block;text-decoration:none}
.schedule-week-grid .schedule-day-heading{display:block}
.schedule-calendar-host[data-view="calendar"] .schedule-board{display:block}
.schedule-calendar-host[data-view="calendar"] .schedule-agenda{display:none}
.schedule-calendar-host[data-view="list"] .schedule-board{display:none}
.schedule-calendar-host[data-view="list"] .schedule-agenda{display:block}
.schedule-calendar-host{min-width:0}
.schedule-week-navigation{border-radius:9px;min-height:44px;grid-template-columns:40px minmax(0,1fr) 40px}
.schedule-week-navigation>.schedule-week-step{grid-row:1}
.schedule-week-navigation>.schedule-week-step:first-child{grid-column:1}
.schedule-week-navigation>.schedule-week-step:last-child{grid-column:3}
.schedule-center-picker{position:relative;display:flex!important;align-items:center;justify-content:center;min-width:0;min-height:44px;margin:0!important;border-inline:1px solid var(--line);cursor:pointer}
.schedule-week-navigation .schedule-period-title{border:0;padding:8px 10px}
.schedule-center-date{position:absolute;inset:0;width:100%;height:100%;min-width:0;margin:0!important;opacity:0;cursor:pointer}
.schedule-center-picker:focus-within{box-shadow:inset 0 0 0 2px var(--accent-line)}
.schedule-period--list .schedule-center-picker{flex-direction:column;align-items:stretch;justify-content:center;padding:3px 10px;gap:0}
.schedule-feed-start-label{font-size:11px;line-height:15px;font-weight:400;color:var(--muted);white-space:nowrap}
.schedule-period--list input.schedule-center-date{position:static;inset:auto;opacity:1;display:block;height:26px;min-height:26px;width:100%;padding:0 24px 0 0;border:0;border-radius:0;background-color:transparent;background-position:right center;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;text-align:left}
.schedule-period--list .schedule-center-date::-webkit-date-and-time-value{text-align:left}
.schedule-view-tabs{flex:0 0 auto;margin:0!important;border:0!important}
.schedule-view-tabs.ui-tabbar--adaptive{width:var(--ui-tabbar-intrinsic-width,200px);flex:0 1 var(--ui-tabbar-intrinsic-width,200px);max-width:100%}
.schedule-toolbar{gap:10px 14px}
.schedule-period{flex:0 0 auto;max-width:100%}
.schedule-period .schedule-week-navigation{flex:0 1 300px;width:300px;max-width:320px;min-width:0}
.schedule-period--list .schedule-week-navigation{grid-template-columns:minmax(0,1fr);flex:0 0 180px;width:180px;max-width:100%}
.schedule-period--list .schedule-center-picker{border-inline:0}
.schedule-actions{flex:0 0 auto;flex-wrap:nowrap;max-width:100%;margin-left:auto}
.schedule-toolbar[data-actions-row="separate"] .schedule-actions{flex-basis:100%;margin-left:0;justify-content:flex-start}
.schedule-secondary-tools[hidden],.schedule-extra-tools[hidden]{display:none}
.schedule-extra-tools{position:relative}
.schedule-extra-tools>summary{position:relative;display:flex;align-items:center;justify-content:center;gap:5px;min-height:40px;padding:8px 10px;margin:0;font-size:13px;border:1px solid var(--line);border-radius:7px;cursor:pointer;background:var(--surface);white-space:nowrap;list-style:none}
.schedule-extra-tools>summary::-webkit-details-marker{display:none}
.schedule-extra-tools>summary>.ui-icon{width:15px;height:15px;transform:rotate(90deg)}
.schedule-extra-tools[open]>summary>.ui-icon{transform:rotate(270deg)}
.schedule-extra-tools-panel{position:absolute;z-index:15;right:0;top:calc(100% + 6px);display:grid;grid-template-columns:minmax(0,1fr);width:300px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 150px);overflow-y:auto;overscroll-behavior:contain;padding:5px 10px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 28px #17202b18}
.schedule-extra-tools:not([open])>.schedule-extra-tools-panel{display:none}
.schedule-menu-section{display:grid;gap:4px;min-width:0;padding:10px 0;border-top:1px solid var(--line)}
.schedule-menu-section:first-child{border-top:0}
.schedule-menu-section>h3{margin:0 0 3px;padding:0 10px;font-size:11px;line-height:1.4;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.schedule-extra-tools-panel .schedule-tool{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-width:0;height:auto;min-height:40px;padding:8px 10px;border:0;border-radius:6px;background:transparent;text-align:left}
.schedule-extra-tools-panel .schedule-tool>.ui-icon{flex:0 0 20px;width:20px;height:20px}
.schedule-extra-tools-panel .schedule-tool-label{display:block;font-size:13px;line-height:1.35;font-weight:500;white-space:normal}
.schedule-extra-tools-panel .schedule-tool:hover{background:var(--surface-hover)}
.schedule-extra-tools-panel .schedule-tool--primary{background:var(--lemon);color:var(--on-accent)}
.schedule-extra-tools-panel .schedule-tool--alert{background:var(--danger-soft);color:var(--danger-ink);box-shadow:var(--danger-glow);box-shadow:var(--danger-surface-glow)}
.schedule-extra-tools-panel .schedule-tool--danger{color:var(--danger-ink)}
.schedule-extra-tools-panel .schedule-tool--danger:hover,.schedule-extra-tools-panel .schedule-tool--danger:focus-visible{box-shadow:none}
.schedule-extra-tools-panel .schedule-tool-count{position:static;flex:0 0 auto;margin-left:auto;min-width:20px;height:20px;box-shadow:var(--danger-glow)}
.schedule-extra-tools-panel .schedule-forecast-settings{display:grid;gap:8px;margin:0;padding:4px 10px;border:0}
.schedule-extra-tools-panel .schedule-template-toggle{align-items:flex-start;white-space:normal;font-size:12px;line-height:1.4}
.schedule-extra-tools-panel .schedule-template-toggle input{margin-top:1px!important}
.schedule-extra-tools-panel .schedule-holidays-button{width:100%;min-height:36px;padding:7px 0;text-align:left;justify-content:flex-start;font-size:13px;white-space:normal}
.schedule-extra-tools-panel .schedule-hours-toggle{display:flex!important;align-items:center;gap:9px;margin:0!important;padding:8px 10px;font-size:13px;line-height:1.35}
.schedule-extra-tools-panel .schedule-hours-toggle input{width:17px!important;height:17px!important;margin:0!important;flex:0 0 17px}
.schedule-extra-tools-panel .ui-help{justify-self:start;margin-left:10px}
.schedule-extra-tools-panel .schedule-menu-help{display:flex;align-items:center;gap:10px;width:100%;height:auto;min-height:40px;margin:0;padding:8px 10px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:13px;font-weight:400;line-height:1.35;text-align:left}
.schedule-extra-tools-panel .schedule-menu-help:hover{background:var(--surface-hover)}
.schedule-menu-help-icon{display:grid;place-items:center;flex:0 0 20px;width:20px;height:20px;border:1px solid currentColor;border-radius:50%;font-size:12px}
.schedule-menu-drafts{width:100%;min-height:36px;padding:8px 10px;border:1px dashed var(--line);font-size:12px;text-align:left;justify-content:flex-start}
.schedule-menu-drafts[hidden]{display:none}
.schedule-publish-compact{width:100%;font-size:13px;min-height:40px}
.schedule-more-count{position:absolute;top:-5px;right:-5px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border:1px solid var(--line);border-radius:999px;font-size:10px;font-weight:700;color:var(--muted);background:var(--surface)}
.schedule-more-count[hidden]{display:none}
.schedule-forecast-settings{display:flex;align-items:center;justify-content:space-between;gap:8px 18px;flex-wrap:wrap;margin:0 0 12px}
.schedule-template-toggle{display:flex!important;align-items:center;gap:8px;margin:0!important;font-size:13px;color:var(--muted);cursor:pointer}
.schedule-template-toggle input{width:17px!important;height:17px!important;margin:0!important;flex:0 0 17px;accent-color:var(--ink)}
.schedule-holidays-button{padding:7px 10px;font-size:13px;white-space:nowrap;background:transparent}
.schedule-template-notice{margin:0 0 12px;font-size:12px;line-height:1.4;max-width:760px}
.schedule-template-notice[hidden]{display:none}
.schedule-event.schedule-sync-template{--event-border:color-mix(in srgb,var(--line-strong) 60%,transparent);--event-stripe:var(--event-border);--event-fill:var(--surface);--event-ink:var(--muted);border:1px dashed var(--event-border);background:var(--event-fill);color:var(--event-ink);opacity:.7}
.schedule-event.schedule-event-paused{--event-fill:repeating-linear-gradient(135deg,var(--surface) 0 5px,var(--surface-muted) 5px 8px);background:var(--event-fill)}
.schedule-event-pause{position:absolute;right:4px;bottom:3px;font-size:11px;font-weight:700;color:var(--muted)}
.schedule-lesson-list{display:grid;gap:16px;min-width:0}
.schedule-lesson-list-day{display:grid;gap:7px}
.schedule-lesson-list-day>h2{margin:0 0 3px;font-size:15px;font-weight:650;text-transform:capitalize}
.schedule-list-card{position:relative;display:grid!important;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;min-height:70px;padding:11px 14px;line-height:1.35;text-decoration:none}
.schedule-list-time{display:grid;gap:3px;text-align:left;font-variant-numeric:tabular-nums}
.schedule-list-time strong{font-size:14px}
.schedule-list-time small{font-size:11px;color:var(--muted)}
.schedule-list-copy{display:grid;gap:3px;min-width:0}
.schedule-list-copy>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.schedule-list-state,.schedule-list-program{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.schedule-list-pause{grid-column:3;grid-row:1;font-size:17px;color:var(--muted)}
.schedule-work-indicators{display:flex;align-items:center;gap:5px;align-self:center}
.schedule-work-marker{display:grid;place-items:center;flex:0 0 auto;width:28px;height:28px;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--muted)}
/* Work status uses the shared neutral palette, not an amber button treatment.
   Missing work is solid; future requirements stay quiet; drafts retain a dash. */
.schedule-work-marker.pending{background:var(--surface);color:var(--ink)}
.schedule-work-marker.draft{background:var(--surface);border-color:var(--line-strong);border-style:dashed}
.schedule-work-marker.required{background:transparent;color:var(--muted)}
.schedule-work-marker:hover{background:var(--surface-hover);color:var(--ink)}
.schedule-work-marker:focus-visible{outline:2px solid var(--info-line);outline-offset:2px}
.schedule-work-marker .ui-icon{width:18px;height:18px}
.schedule-feed-tail{display:flex;align-items:center;justify-content:center;gap:10px;min-height:40px;padding:8px 0;color:var(--muted);font-size:12px;line-height:1.4}
.schedule-feed-error{margin:0 0 12px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;color:var(--muted);background:var(--surface-muted);font-size:13px;line-height:1.4}
.schedule-list-empty{padding:22px 0;margin:0;font-size:14px}
.schedule-detail-dialog{width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;}
.schedule-detail-dialog .schedule-inspector{max-width:none;margin:0;padding:0;background:transparent;border:0;font-size:14px}
.schedule-detail-dialog .schedule-inspector dl{margin-top:0}
.schedule-virtual-detail{display:grid;gap:14px}
.schedule-virtual-detail p{margin:0}
.schedule-virtual-facts{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px;margin:0;font-size:14px}
.schedule-virtual-facts dt{color:var(--muted)}
.schedule-virtual-facts dd{margin:0}
.schedule-template-explanation,.schedule-template-pause{padding:12px 14px;border:1px dashed var(--line);border-radius:8px;background:var(--surface-muted);font-size:13px;line-height:1.45;color:var(--muted)}
@media(max-width:900px){
  html:has(.schedule-detail-dialog[open]),body:has(.schedule-detail-dialog[open]){overflow:hidden}
  .schedule-detail-dialog[open]{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;}
  .schedule-dialog.curriculum-viewer.learning-view-lesson[open]{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;}
  .workspace-content:has(.schedule-page){padding-top:10px}
  .ui-page:has(.schedule-page)>header.ui-page__header{display:none}
  .ui-page:has(.schedule-page) .ui-page__title{font-size:27px}
  .ui-page:has(.schedule-page) .ui-page__description{display:none}
  .ui-page:has(.schedule-page) .ui-page__meta{display:none}
  .schedule-draft-warning{display:flex;flex-direction:row;align-items:center;gap:7px;margin:0}
  .schedule-draft-warning-button{width:auto;min-height:28px;padding:4px 7px;white-space:nowrap;font-size:11px;flex:0 0 auto;box-shadow:var(--danger-glow)}
  .schedule-draft-warning small{min-width:0;font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
  .schedule-calendar-host[data-view="calendar"] .schedule-board{display:block;overflow-x:hidden}
  .schedule-week-grid.schedule-mobile-grid{grid-template-columns:38px repeat(3,minmax(0,1fr));min-width:0}
  .schedule-week-grid.schedule-mobile-grid.focused{grid-template-columns:38px minmax(0,1fr);min-width:0}
  .schedule-mobile-grid .schedule-corner,.schedule-mobile-grid .schedule-day-heading{min-height:52px}
  .schedule-mobile-grid .schedule-day-heading{padding:8px 2px}
  .schedule-mobile-grid .schedule-day-heading strong{font-size:13px}
  .schedule-mobile-grid .schedule-day-heading small{font-size:12px}
  .schedule-mobile-grid .schedule-day-heading.dense:after{top:5px;right:4px;width:4px;height:4px;box-shadow:var(--danger-glow)}
  .schedule-mobile-grid .schedule-hour{right:4px;font-size:10px}
  .schedule-mobile-grid .schedule-event{display:block;padding:4px 3px;border-left-width:3px;min-height:0;text-decoration:none}
  .schedule-mobile-grid .schedule-event-time{display:block;font-size:11px;line-height:1.05;padding-right:0}
  .schedule-mobile-grid .schedule-event.has-student-initial .schedule-event-time{padding-right:0}
  .schedule-mobile-grid .schedule-event-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:12px;line-height:1.12;margin-top:3px;white-space:normal;overflow-wrap:normal}
  .schedule-mobile-grid .schedule-event.condensed .schedule-event-time{font-size:11px}
  .schedule-mobile-grid .schedule-event.condensed .schedule-event-title{font-size:12px;line-height:1.12;margin-top:3px}
  .schedule-mobile-grid .schedule-event.compact:not(.micro-segment) .schedule-event-time{display:block}
  .schedule-mobile-grid:not(.focused) .schedule-event-state{display:none}
  .schedule-mobile-grid .schedule-event-initial{display:none}
  .schedule-mobile-grid.focused .schedule-event-title{font-size:13px}
  .schedule-mobile-grid.focused .schedule-event-state{font-size:10px;margin-top:2px}
  .schedule-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;padding:0 0 7px;margin-bottom:8px;border-top:0}
  .schedule-period{display:flex;grid-column:1/-1;gap:8px}
  .schedule-period .schedule-week-navigation{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;flex:1 1 auto;width:auto;max-width:none;min-width:0;grid-column:auto}
  .schedule-week-navigation button{grid-row:1;padding:8px;min-height:44px}
  .schedule-week-navigation .schedule-center-picker{grid-column:2;grid-row:1}
  .schedule-week-navigation .schedule-period-title{display:none}
  .schedule-week-navigation input.schedule-center-date{position:static;opacity:1;display:block;width:100%;height:44px;min-height:44px;padding:7px 23px 7px 4px;border:0;border-radius:0;background-color:transparent;background-position:right 4px center;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;text-align:center}
  .schedule-center-date::-webkit-date-and-time-value{text-align:center}
  .schedule-center-date::-webkit-calendar-picker-indicator{margin:0 0 0 3px;padding:2px;width:17px}
  .schedule-period .schedule-tool-group{display:flex;gap:4px;flex:none}
  .schedule-period .schedule-tool{width:36px;min-width:36px;height:40px;min-height:40px}
  .schedule-view-tabs{grid-column:1;min-width:0;justify-self:start}
  .schedule-view-tabs.ui-tabbar{gap:12px}
  .schedule-actions{display:flex;grid-column:2;justify-content:flex-end;gap:5px}
  .schedule-actions .schedule-tool-group{display:flex;gap:4px}
  .schedule-actions .schedule-tool{width:40px;min-width:40px;height:40px;min-height:40px}
  .schedule-actions .schedule-tool .ui-icon{width:18px;height:18px}
  .schedule-extra-tools>summary{position:relative;min-height:40px;padding:7px 10px;margin:0;font-size:13px}
  .schedule-extra-tools-panel .schedule-tool{width:100%;min-width:0;height:auto;min-height:40px}
  .schedule-view-tabs.ui-tabbar>.ui-tabbar__tab{padding:9px 8px;font-size:12px}
  .schedule-forecast-settings{display:grid;gap:7px;margin:0;padding:7px 0;border-block:1px solid var(--line)}
  .schedule-template-toggle{font-size:12px;gap:6px;font-weight:500}
  .schedule-holidays-button{font-size:12px;padding:7px 8px;text-align:left;justify-content:flex-start}
  .schedule-template-notice{font-size:11px;margin-bottom:10px}
  .schedule-detail-dialog{width:100vw;max-width:none;height:100dvh;max-height:100dvh;margin:0;border-top-width:4px}
  .schedule-detail-dialog .schedule-dialog-header{padding:16px 18px 12px}
  .schedule-detail-dialog .schedule-dialog-header h2{font-size:20px}
  .schedule-detail-dialog .schedule-dialog-body{padding:16px 18px 22px}
  .schedule-list-card{grid-template-columns:48px minmax(0,1fr) auto;gap:9px;padding:10px;min-height:70px}
  .schedule-work-marker{width:25px;height:25px}
  .schedule-work-indicators{gap:4px}
  .schedule-period--list .schedule-week-navigation{grid-template-columns:minmax(0,1fr);flex:0 1 180px;width:180px}
  .schedule-period--list .schedule-center-picker{grid-column:1}
  .schedule-page .schedule-agenda-intro{justify-content:flex-start;padding-bottom:6px;border-bottom:1px solid var(--line);font-size:12px}
  .schedule-page .schedule-agenda-intro>strong{display:none}
  .schedule-page .schedule-agenda-intro>span{font-size:12px;line-height:1.4}
}
@media(max-width:360px){
  .schedule-week-navigation input.schedule-center-date{font-size:13px}
  .schedule-actions>.schedule-tool-group>.schedule-tool{width:40px;min-width:40px}
  .schedule-actions .schedule-tool-group{gap:3px}
  .schedule-extra-tools>summary{padding-inline:6px}
}
/* Mobile calendar occupies the remaining screen, not a capped miniature.
   Long/full-day ranges scroll inside it; the day headings stay visible. */
@media(max-width:900px){
  .workspace-content:has(.schedule-calendar-host[data-view="calendar"]){padding-bottom:8px}
  .workspace-content>.ui-page:has(.schedule-calendar-host[data-view="calendar"]){margin-bottom:0}
  .schedule-calendar-host[data-view="calendar"] .schedule-board.schedule-mobile-fit{box-sizing:border-box;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-width:thin;touch-action:pan-y}
  .schedule-calendar-host[data-view="calendar"] .schedule-board.schedule-mobile-fit .schedule-empty{position:absolute;inset:70px 16px auto 54px;margin:0;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:12px;line-height:1.45}
  .schedule-calendar-host[data-view="calendar"] .schedule-board.schedule-mobile-fit{position:relative}
  .schedule-mobile-fit .schedule-hour:first-child{transform:translateY(0)}
  .schedule-mobile-fit .schedule-hour:last-child{transform:translateY(-100%)}
}

/* One lesson workspace. Settings replace its body, never stack a second editor. */
.schedule-detail-dialog .schedule-lesson-workspace .lesson-card__facts{margin:14px 0 0;padding:14px 0;gap:16px}
.schedule-lesson-workspace .lesson-card__meta{padding-bottom:2px}
.schedule-lesson-workspace .schedule-student-card-link{margin:0}
.schedule-lesson-workspace .lesson-card__notes{border-bottom:0;padding-bottom:0}
.schedule-lesson-workspace .schedule-card-explanation{margin:0;font-weight:400}
.schedule-lesson-learning-section{align-items:flex-start}
.schedule-lesson-program{display:block;font-size:14px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.schedule-lesson-topic-state{display:block;margin-top:2px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.schedule-lesson-learning{height:108px;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;min-width:0}
.schedule-lesson-topics{display:flex;flex-wrap:wrap;align-content:flex-start;gap:4px 14px;margin-top:2px;min-height:0;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain}
.schedule-lesson-topic{display:inline-flex;align-items:center;gap:6px;font-size:13px;line-height:18px;min-width:0;max-width:100%}
.schedule-lesson-topic>span:nth-child(2){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.schedule-lesson-topic>span:first-child{color:var(--topic-color,var(--muted));flex:0 0 auto}
.schedule-lesson-topic.is-passed>span:first-child{color:var(--success-ink)}
.schedule-lesson-topic small{font-size:10px;color:var(--muted)}
.schedule-lesson-workspace.lesson-card .schedule-lesson-progress-link{justify-content:flex-start;display:inline-flex;min-height:22px;margin-top:2px;padding:0;border:0;border-radius:0;color:var(--muted);font-size:12px;text-decoration:underline;text-underline-offset:3px;background:transparent}
.schedule-lesson-workspace .schedule-lesson-homework-summary small{font-size:13px}
.schedule-lesson-workspace .schedule-lesson-homeworks{border:0;margin:4px 0;padding:0}
.schedule-lesson-workspace .schedule-lesson-homeworks summary{font-weight:400}
.schedule-lesson-editing .schedule-dialog-body{overflow:auto}
.schedule-editor-content{overflow:visible;padding:0;scrollbar-gutter:auto}
.schedule-editor-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin-bottom:18px}
.schedule-editor-heading small{font-size:12px}
.schedule-editor-intent{margin-bottom:16px}
.schedule-editor-section{padding:16px 0;border-top:1px solid var(--line);margin:0}
.schedule-editor-section h3{font-size:15px;margin:0 0 12px}
.schedule-editor-time-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:12px}
.schedule-editor-content label{min-width:0;font-size:13px;margin:0}
.schedule-editor-content :is(input,select,textarea){width:100%;min-width:0;font-size:14px}
.schedule-editor-content input[type=date]{min-height:42px;padding-inline:8px}
.schedule-editor-intent-hint{display:block;margin:0 0 16px;font-size:12px;line-height:1.45}
.schedule-editor-content>.schedule-history-cancellation,.schedule-editor-content>.schedule-history-reschedule{border-left-width:2px;margin:12px 0;padding:14px;border-radius:6px}
.schedule-cancellation-fields{border-left:0;background:var(--surface-muted);border-radius:6px}
.schedule-cancellation-fields>.schedule-form-grid{align-items:start}
.schedule-cancellation-accounting{display:grid;gap:0;margin-top:12px;border-top:1px solid var(--line)}
.schedule-cancellation-accounting>.schedule-cancellation-choice{margin:0;padding:12px 0;border:0;border-bottom:1px solid var(--line);background:transparent;cursor:pointer}
.schedule-cancellation-accounting>.schedule-cancellation-choice:last-child{border-bottom:0;padding-bottom:2px}
.schedule-cancellation-choice input{flex:0 0 18px;accent-color:var(--ink)}
.schedule-cancellation-choice>span{min-width:0}
.schedule-editor-program{margin-top:16px}
.schedule-editor-program .progress-binding-fields{gap:12px}
.schedule-editor-program .progress-binding-fields>h3{margin:0}
.schedule-editor-program .progress-plan-location{font-size:12px;line-height:1.45}
.schedule-editor-more{border-top:1px solid var(--line);padding:12px 0 0;margin-top:0}
.schedule-editor-more>summary{cursor:pointer;color:var(--muted);font-size:12px;padding:6px 0}
.schedule-editor-more>label{display:block;margin-top:12px}
.schedule-editor-more>.danger{margin-top:12px;font-size:12px}
.schedule-lesson-editing .schedule-dialog-header{order:0}
.schedule-lesson-editing .dialog-feedback{order:1}
.schedule-lesson-editing .schedule-dialog-footer{order:2;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:0;border-bottom:1px solid var(--line);background:var(--surface-muted)}
.schedule-lesson-editing .schedule-dialog-body{order:3}
.schedule-editor-save-state{flex:1;min-width:0;color:var(--muted);font-size:12px}
.schedule-editor-save-state.is-dirty{color:var(--ink);font-weight:600}
.schedule-history-dialog .schedule-dialog-body{min-height:0;overflow:auto}
.schedule-history-dialog .schedule-dialog-footer{display:flex;justify-content:space-between}
@media(max-width:900px){
  .schedule-detail-dialog .schedule-lesson-workspace .lesson-card__facts{grid-template-columns:1.4fr 1fr;gap:10px 16px}
  .schedule-detail-dialog .schedule-lesson-workspace .lesson-card__fact:nth-child(3){grid-column:1/-1}
  .schedule-detail-dialog .schedule-lesson-workspace .lesson-card__work{gap:8px}
  .schedule-detail-dialog .schedule-lesson-workspace .lesson-card__work>.lesson-card__section{padding:12px;flex-wrap:nowrap}
  .schedule-detail-dialog .schedule-lesson-workspace .lesson-card__work .lesson-card__section-copy{flex-basis:0}
  .schedule-detail-dialog .schedule-lesson-workspace .lesson-card__work button{max-width:48%;min-height:40px;font-size:12px;padding:7px 9px}
  .schedule-editor-time-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .schedule-editor-content input[type=date]{min-width:0;width:100%;font-size:14px}
  .schedule-lesson-editing .schedule-dialog-footer button{min-height:44px;flex:0 1 auto;width:auto}
  .schedule-lesson-editing .schedule-dialog-footer button.primary{flex:1 1 120px;max-width:65%}
  .schedule-lesson-editing .schedule-editor-save-state{display:none}
  .schedule-history-dialog[open]{width:100vw;height:100dvh;max-height:100dvh;margin:0;}
  .schedule-lesson-learning-section{gap:8px}
  .schedule-lesson-learning-section>.schedule-lesson-topic-action{font-size:12px}
}
/* Keep the four-digit date and the shared picker-arrow gutter on small phones.
   The same two rows and control heights remain; only column proportions change. */
@media(max-width:390px){
  .schedule-editor-time-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
}
