.schedule-navigation {padding:22px 26px;}
.schedule-date-row {display:flex;justify-content:space-between;align-items:center;gap:18px;}
.schedule-date-title {text-align:center;min-width:200px;}
.schedule-date-title>span:first-child {font-size:.78rem;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);}
.schedule-date-title h2 {font-size:1.45rem;margin:5px 0;}
.schedule-date-row .row {gap:8px;}.schedule-date-row .btn {font-size:.7rem;padding:11px 13px;}
.schedule-date-bottom {--schedule-control-height:56px;display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:18px;margin-top:18px;}
.schedule-date-bottom>.btn,.schedule-date-bottom>input,.schedule-week-strip button {height:var(--schedule-control-height);min-height:var(--schedule-control-height);box-sizing:border-box;}
.schedule-date-bottom>.btn {padding:9px 16px;flex-shrink:0;}
.schedule-date-bottom>input {width:160px;min-width:0;flex-shrink:0;font-size:.8rem;}
.schedule-week-strip {display:flex;gap:8px;flex:1;justify-content:flex-end;}
.schedule-week-strip button {border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--muted);padding:9px 16px;display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:86px;font-size:.68rem;}
.schedule-week-strip button.active {background:var(--brand);border-color:var(--brand);color:#fff;}.schedule-week-strip button.current:not(.active) {color:var(--brand);border-color:#e6bed0;}
.room-board-scroll {overflow:auto;border-radius:18px;}
.room-board {min-width:max(920px,calc(60px + var(--room-count) * 190px));background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;}
.room-board-head,.room-board-body {display:grid;grid-template-columns:60px repeat(var(--room-count),minmax(0,1fr));}
.room-board-head {background:#fbfafc;border-bottom:1px solid var(--line);}
.room-board-head h3 {margin:0;padding:18px 9px;text-align:center;font-size:.65rem;letter-spacing:.055em;border-top:4px solid var(--room-colour);color:var(--room-colour);border-right:1px solid var(--line);}
.room-board-head small {display:block;font-size:.6rem;font-weight:400;letter-spacing:0;margin-top:5px;}
.room-board-head h3:last-child,.room-time-column.last-column {border-right:0;}
.room-board-head .room-time-title {border-top-color:transparent;color:var(--muted);font-size:.6rem;padding-left:2px;padding-right:2px;}
.room-timeline {--time-step-height:5px;grid-template-rows:repeat(var(--time-steps),var(--time-step-height));position:relative;isolation:isolate;}
.room-time-axis {grid-column:1;position:relative;min-height:0;border-right:1px solid var(--line);background:#fbfafc;}
.room-time-tick {position:absolute;left:0;right:0;text-align:center;transform:translateY(-50%);font-size:.6rem;color:var(--muted);line-height:1.4;}
.room-time-tick.first {transform:none;}.room-time-tick.last {transform:translateY(-100%);}
.room-time-grid {background:repeating-linear-gradient(to bottom,#e8e2ec 0 1px,transparent 1px calc(var(--time-step-height) * 30)),repeating-linear-gradient(to bottom,#f3eff5 0 1px,transparent 1px calc(var(--time-step-height) * 5));pointer-events:none;}
.room-time-column {border-right:1px solid #eeeaf0;pointer-events:none;}
.room-board-cell {min-width:0;min-height:0;padding:0 9px;z-index:1;width:calc(100% / var(--lanes));margin-left:calc(100% * var(--lane) / var(--lanes));}
.room-board-cell>.room-lesson {height:100%;min-height:0;overflow:hidden;}
.room-now-line {position:absolute;left:60px;right:0;height:2px;background:var(--brand);z-index:4;pointer-events:none;box-shadow:0 0 0 1px #fff8;}
.room-now-line[hidden] {display:none;}.room-now-line i {position:absolute;left:-5px;top:-4px;width:10px;height:10px;border-radius:50%;background:var(--brand);}
.room-time-gap {min-height:0;pointer-events:none;}
.room-gap {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;height:100%;padding:4px;text-align:center;color:var(--muted);font-size:.65rem;}
.room-gap strong {font-size:.72rem;font-weight:650;}.room-gap small {font-size:.6rem;}
.room-lesson {position:relative;overflow:hidden;padding:14px 12px 18px;border:1px solid color-mix(in srgb,var(--room-colour) 35%,white);border-left:3px solid var(--room-colour);border-radius:12px;background:color-mix(in srgb,var(--room-colour) 8%,white);height:100%;display:flex;flex-direction:column;gap:7px;min-width:0;transition:background .2s;}
.room-trial-badge {position:absolute;top:0;right:12px;max-width:calc(100% - 24px);padding:0 6px;border-radius:0 0 5px 5px;background:var(--brand);color:#fff;font-size:.6rem;line-height:1.25;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.room-lesson-time {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px;}.room-lesson-time>strong {font-size:.85rem;}
.room-lesson h3 {font-size:.74rem;margin:0;font-weight:750;line-height:1.5;overflow-wrap:anywhere;}.room-roster {font-size:.7rem;font-weight:650;line-height:1.6;}
.room-lesson p {margin:0;}.room-teacher {font-size:.61rem;font-weight:550;color:#686270;line-height:1.55;}.room-lesson small {font-size:.6rem;color:var(--muted);line-height:1.5;}
.room-lesson-content {flex:1 1 auto;min-height:0;min-width:0;overflow:clip;display:flex;flex-direction:column;gap:7px;}
.room-lesson-actions {display:flex;flex-direction:column;align-items:flex-start;flex:0 0 auto;gap:5px;margin-top:auto;padding-top:3px;}.room-lesson-actions .btn {font-size:.61rem;padding:7px 8px;min-height:30px;max-width:100%;min-width:0;white-space:normal;justify-content:flex-start;text-align:left;line-height:1.4;}.room-lesson-actions .btn>span {min-width:0;overflow-wrap:anywhere;}
.room-progress {position:absolute;left:0;right:0;bottom:0;height:3px;background:color-mix(in srgb,var(--room-colour) 13%,white);}.room-progress span {display:block;height:100%;background:var(--room-colour);}
.room-lesson.live {border-color:var(--room-colour);box-shadow:0 0 0 1px color-mix(in srgb,var(--room-colour) 25%,transparent);background:color-mix(in srgb,var(--room-colour) 14%,white);}
.schedule-live {font-size:.58rem;color:var(--room-colour);font-weight:750;}.schedule-live[hidden] {display:none;}
.room-lesson.past {--room-colour:#929096!important;background:#f1f0f2;border-color:#dddbe0;color:#817b86;}.room-lesson.past .room-teacher,.room-lesson.past .room-roster {color:#939099;}.room-lesson.past .btn {color:#807b87;}
.room-lesson.cancelled {opacity:.6;}.room-board-empty {text-align:center;padding:70px;color:var(--muted);}
.room-lesson.absent {--room-colour:#929096!important;background:#f1f0f2;border-color:#dddbe0;color:#817b86;}
.room-absence {font-weight:650;}
.schedule-lesson-summary {padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:#faf5f8;margin-bottom:22px;}
.schedule-lesson-summary h3 {font-size:.88rem;margin:0 0 9px;line-height:1.6;}.schedule-lesson-summary p {margin:0;line-height:1.6;}
.schedule-lesson-options {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;}
.schedule-lesson-options>.btn {white-space:nowrap;}
@media(max-width:760px){
  .schedule-lesson-options {flex-direction:column;align-items:stretch;}
  .schedule-lesson-options>.btn {width:100%;min-width:0;}
}
.schedule-new-time {min-height:44px;display:flex;align-items:center;font-size:1.05rem;color:var(--wine);}
.schedule-following {border:1px solid var(--line);border-radius:14px;padding:18px 20px;}
.schedule-following summary {font-size:.85rem;font-weight:700;cursor:pointer;line-height:1.6;}.schedule-following>.meta {margin:14px 0;line-height:1.65;}.schedule-following>.check {font-size:.8rem;}
.schedule-move-list {margin-top:14px;}.schedule-move-row {padding:14px 0;border-top:1px solid var(--line);gap:12px;min-width:0;font-size:.8rem;}
.schedule-move-row>span:first-of-type {flex:1;min-width:0;}.schedule-move-row strong {display:block;font-size:.8rem;line-height:1.5;}.schedule-move-row small {display:block;font-weight:450;color:var(--muted);font-size:.72rem;line-height:1.5;margin-top:4px;}.schedule-move-target {font-size:.77rem;color:var(--brand);white-space:nowrap;}
.schedule-absence-row {display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:18px 0;}.schedule-absence-row:first-of-type {margin-top:18px;}.schedule-absence-row:last-child {padding-bottom:0;}.schedule-absence-row strong {font-size:.85rem;}.schedule-absence-row p {margin:7px 0;font-size:.77rem;line-height:1.6;}.schedule-absence-row small {font-size:.73rem;color:var(--muted);}.schedule-absence-row>.row {flex-shrink:0;}
@media(max-width:650px){.schedule-lesson-summary,.schedule-following {padding:16px;}.schedule-move-row {flex-wrap:wrap;}.schedule-move-row>span:first-of-type {flex-basis:calc(100% - 38px);}.schedule-move-target {margin-left:30px;}.schedule-absence-row {flex-direction:column;align-items:flex-start;gap:12px;}}
.schedule-personal-scroll {border-radius:0;padding:4px;}
.schedule-personal-week {display:grid;grid-template-columns:repeat(var(--day-count),minmax(190px,1fr));gap:14px;min-width:calc(var(--day-count) * 204px - 14px);}
@media(max-width:650px){
  .schedule-week-heading {flex-direction:column;align-items:stretch;gap:12px;}
  .schedule-week-heading>.row {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;}
  .schedule-week-heading [data-schedule-action="weekly-pdf"] {grid-column:1 / -1;justify-content:center;}
  .schedule-week-heading [data-schedule-action="week"] {min-width:0;padding-left:4px;padding-right:4px;justify-content:center;}
}
.schedule-personal-day {min-width:0;display:flex;flex-direction:column;gap:10px;align-items:stretch;}.schedule-personal-day>h3 {font-size:.72rem;font-weight:700;display:flex;justify-content:space-between;margin:0 0 5px;padding-bottom:12px;border-bottom:2px solid var(--line);}.schedule-personal-day.today>h3 {color:var(--brand);border-color:var(--brand);}.schedule-personal-day .room-lesson {height:auto;min-height:145px;}
@media(max-width:760px){
  .schedule-personal-scroll {overflow:visible;padding:0;}
  .schedule-personal-week {grid-template-columns:minmax(0,1fr);min-width:0;gap:22px;}
  .schedule-personal-day>h3 {gap:12px;}
  .schedule-personal-day .room-lesson {min-height:0;overflow-wrap:anywhere;}
}
.schedule-staff-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}.schedule-staff {padding:22px;border:1px solid var(--line);border-radius:17px;background:#fcfbfd;min-width:0;}.schedule-staff h3 {font-size:.88rem;line-height:1.5;margin:0 0 12px;}.schedule-staff p {font-size:.73rem;line-height:1.6;overflow-wrap:anywhere;}.schedule-staff .row {margin-top:18px;}
.schedule-subjects {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}.schedule-subjects>div {padding:15px;border:1px solid var(--line);border-radius:12px;font-size:.78rem;font-weight:650;}.schedule-subjects small {display:block;color:var(--muted);margin-top:6px;font-size:.65rem;font-weight:450;}
.schedule-subjects>div {display:flex;flex-direction:column;min-width:0;}
.schedule-course-note {margin-bottom:20px;}
.schedule-journal-area {margin:18px 0 0;padding-top:14px;border-top:1px solid var(--line);font-size:.72rem;font-weight:500;}
.schedule-journal-area>span {font-weight:650;}
.schedule-journal-area .popup-select-trigger {font-size:.74rem;min-height:44px;line-height:1.5;}
.schedule-series-list>div {display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid var(--line);}.schedule-series-list strong {font-size:.8rem;}.schedule-series-list p {margin:7px 0 0;font-size:.72rem;}.schedule-series-list .meta {font-size:.68rem;}
.schedule-series-list>[hidden] {display:none;}
.schedule-panel>.card-title {min-height:43px;}
.schedule-panel .schedule-series-search {margin:0;max-width:580px;}
.schedule-series-count {margin:14px 0 20px;}
.schedule-staff[hidden] {display:none;}.schedule-list-controls {display:flex;align-items:end;gap:24px;}.schedule-list-controls>.field {flex:1;max-width:580px;}.schedule-list-controls>.check {min-height:44px;white-space:nowrap;font-size:.8rem;}
.schedule-list-count {margin:14px 0 20px;}.schedule-group-name {font-weight:700;color:var(--wine);}
.schedule-management {display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:24px;}.schedule-management>.btn {flex:none;white-space:nowrap;}.schedule-management>a {margin-left:auto;}
.schedule-staff>.btn {margin-top:18px;}.schedule-staff-heading {display:flex;align-items:center;gap:12px;margin-bottom:12px;}.schedule-staff-heading h3 {margin:0;}.schedule-staff-photo {width:48px;height:48px;object-fit:cover;border-radius:12px;flex-shrink:0;}
.schedule-access-sent {display:inline-flex;align-items:center;gap:.35rem;margin-top:.65rem;max-width:100%;white-space:normal;}
.schedule-access-sent[hidden] {display:none;}
.schedule-access-sent svg {width:1rem;height:1rem;flex:none;}
.schedule-form-section {padding:20px;border:1px solid var(--line);border-radius:14px;margin-bottom:20px;}
.schedule-form-section>h3 {font-size:.9rem;margin:0 0 18px;}.schedule-form-section>.meta {margin:0 0 18px;line-height:1.65;}
[data-schedule-form] .field {font-size:.85rem;font-weight:700;gap:9px;}
[data-schedule-form] .form-grid {align-items:start;gap:20px 24px;}
.schedule-form-section .form-grid {margin:0;}.schedule-form-section [data-rotation-controls] {margin-top:20px;}
.schedule-form-section [data-series-individual],.schedule-form-section [data-series-group] {margin-top:20px;}
.schedule-series-form fieldset {min-width:0;}.schedule-series-form fieldset legend {font-size:.85rem;font-weight:700;color:var(--wine);padding:0 8px;}
.schedule-rotation-preview {margin:18px 0 0;padding:12px 14px;border-radius:10px;background:#faf5f8;font-size:.76rem;color:var(--wine);line-height:1.6;}
.schedule-photo-editor {display:flex;align-items:center;gap:20px;padding:18px;border:1px solid var(--line);border-radius:14px;margin-bottom:22px;}
.schedule-photo-preview {width:96px;height:96px;flex-shrink:0;border-radius:20px;background:var(--brand-light,#f6eaf1);display:grid;place-items:center;color:var(--wine);}
.schedule-photo-preview img {width:100%;height:100%;object-fit:cover;border-radius:inherit;}.schedule-photo-editor>.field {flex:1;}.schedule-photo-editor .meta {font-size:.73rem;}
.schedule-check-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px;max-height:380px;overflow:auto;padding:4px;}.schedule-check-list .check {font-size:.76rem;display:flex;gap:10px;align-items:center;line-height:1.5;}.schedule-check-list small {margin-left:auto;font-size:.62rem;color:var(--muted);}
.schedule-roster-choice {margin-top:14px;padding:14px;border:1px solid var(--line);border-radius:12px;}.schedule-roster-choice summary {cursor:pointer;font-size:.75rem;}
.time-native {position:absolute!important;width:1px!important;height:1px!important;clip-path:inset(50%);opacity:0;pointer-events:none;}
.time-picker {display:flex;align-items:center;gap:7px;min-width:0;}.time-picker>.popup-select {flex:1;min-width:0;}.time-picker>select {flex:1;min-width:0;}.time-picker .popup-select-trigger {padding-left:12px;padding-right:12px;}.time-picker .popup-select-trigger::after {flex-shrink:0;}.time-picker.invalid .popup-select-trigger {border-color:var(--red);}
[data-schedule-form] [hidden] {display:none!important;}.schedule-day-editor .trial-slot {margin-top:20px;}.schedule-day-editor .trial-slot legend {line-height:1.6;max-width:100%;font-size:.75rem;}
@media(min-width:1800px){.room-lesson {padding:18px 15px 22px;}.room-lesson h3 {font-size:.8rem;}.room-roster {font-size:.76rem;}.room-teacher {font-size:.67rem;}.room-board-head h3 {font-size:.75rem;}}
@media(max-width:1200px){.schedule-date-row .btn span {display:none;}.schedule-staff-grid {grid-template-columns:repeat(2,minmax(0,1fr));}.schedule-week-strip button {min-width:65px;padding:9px 8px;}.schedule-week-strip button span {max-width:62px;overflow:hidden;}.schedule-week-strip {justify-content:start;overflow:auto;}}
@media(max-width:650px){.schedule-navigation {padding:18px;}.schedule-date-title {min-width:0;}.schedule-date-title h2 {font-size:1rem;}.schedule-date-row {gap:8px;}.schedule-date-row .row {gap:3px;}.schedule-date-row .btn {padding:8px;}.schedule-staff-grid,.schedule-subjects,.schedule-check-list {grid-template-columns:1fr;}.schedule-management {gap:14px;}.schedule-date-bottom {flex-wrap:wrap;}.schedule-week-strip {flex-basis:100%;}.schedule-form-section {padding:16px;}.schedule-photo-editor {flex-wrap:wrap;}.schedule-photo-editor>.field {flex-basis:calc(100% - 116px);}}

@media(max-width:650px){.schedule-panel>.card-title {flex-direction:column;align-items:flex-start;gap:14px;}.schedule-list-controls {align-items:stretch;flex-direction:column;gap:12px;}.schedule-list-controls>.check {padding:0;white-space:normal;}.schedule-management>a {margin-left:0;}}

.schedule-access-separate{margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}.schedule-access-separate .meta{margin:10px 0 18px;line-height:1.6}
.schedule-view-switch{display:flex;align-items:center;gap:10px;flex-wrap:wrap;max-width:100%;}
.schedule-view-switch>.btn{white-space:normal;justify-content:center;}
.schedule-overview-notice{display:flex;align-items:center;gap:14px;}
.schedule-overview-notice>span{flex:1;min-width:0;}
.schedule-overview-access{font-weight:700;color:var(--wine);}
.schedule-overview-summary dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;margin:20px 0 0;}
.schedule-overview-summary dl>div{min-width:0;}
.schedule-overview-summary dt{font-size:.74rem;color:var(--muted);margin-bottom:5px;}
.schedule-overview-summary dd{margin:0;font-size:.85rem;font-weight:650;overflow-wrap:anywhere;}
.schedule-overview-tile{padding:10px 8px 11px;gap:8px;}
.schedule-overview-content{flex:1 1 auto;min-height:0;min-width:0;overflow:clip;display:flex;flex-direction:column;gap:7px;padding-right:2px;}
.room-corner-badges{position:relative;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:3px;flex:0 0 auto;margin:-14px 0 2px;align-self:stretch;}
.room-corner-badges>.room-trial-badge{position:static;max-width:100%;flex:0 1 auto;}
.room-corner-badges>.room-shift-badge{background:var(--wine);}
.room-corner-badges>.room-makeup-badge{background:#866628;}
.room-corner-badges:empty{display:none;}
.schedule-overview-actions{flex:0 0 auto;min-width:0;margin-top:0;padding-top:0;}
.schedule-overview-actions>.btn{width:100%;max-width:100%;min-width:0;white-space:normal;justify-content:flex-start;text-align:left;line-height:1.4;padding:6px 4px;}
@media(max-width:760px){.schedule-view-switch{margin-top:14px;}}
@media(max-width:650px){.schedule-view-switch{gap:8px;}.schedule-view-switch>.btn{min-width:0;flex:1;}.schedule-overview-notice{align-items:flex-start;flex-wrap:wrap;}.schedule-overview-notice>.btn{margin-left:auto;}.schedule-overview-summary dl{grid-template-columns:1fr;gap:16px;}}
@media(max-width:650px){.schedule-week-strip{padding-bottom:8px}}
[data-schedule-form="group"] details>summary{cursor:pointer;color:var(--wine);font-weight:650}[data-schedule-form="group"] details>summary:focus-visible{outline:2px solid var(--wine);outline-offset:5px}
