/* Shared Schedules refresh and viewport-sized month calendar. */
.sched-page.sched-refresh{padding:clamp(16px,2.5cqi,36px);gap:20px;max-width:1500px;margin-inline:auto;container-type:inline-size;color:var(--text);font-family:var(--font-ui)}
.sched-refresh .sched-topcard{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;gap:20px;align-items:center;flex-direction:row;min-height:0}
.sched-refresh .sched-top-left{gap:12px;text-align:left}
.sched-refresh .sched-top-ico{display:none}
.sched-refresh .sched-title{font-size:clamp(22px,2.5cqi,30px);letter-spacing:-.04em;font-weight:750;line-height:1.2}
.sched-refresh .sched-sub{color:var(--muted);font-size:12px;margin-top:5px}
.sched-refresh .sched-top-right{gap:16px;flex-wrap:nowrap;flex-direction:row;align-items:center}
.sched-refresh .sched-preview-group{display:flex;align-items:center;flex-direction:row}
.sched-refresh .sched-preview-days{width:auto;flex-wrap:nowrap;gap:4px;padding:4px;border:1px solid var(--stroke2);border-radius:12px;background:var(--surface-1)}
.sched-refresh .sched-preview-btn{min-width:42px;height:34px;padding:0 11px;border:1px solid transparent;background:transparent;color:var(--muted);font-family:inherit;font-size:12px;letter-spacing:0;font-weight:650;box-shadow:none;transform:none}
.sched-refresh .sched-preview-btn:hover{background:var(--surface-3);color:var(--text)}
.sched-refresh .sched-preview-btn.is-active{background:rgba(92,151,218,.17);border-color:rgba(92,151,218,.35);color:#c5def6}
.sched-refresh .sched-day-short{display:none}
.sched-refresh .sched-type-badge{padding:8px 11px;gap:7px;border-radius:10px;border:1px solid rgba(79,169,131,.19);background:rgba(79,169,131,.075);box-shadow:none;white-space:nowrap;color:#b4d5c5}
.sched-refresh .sched-type-ico{width:22px;height:22px;border:0;border-radius:0;background:transparent;color:#73bea0}
.sched-refresh .sched-type-text{font-size:12px;font-weight:650;letter-spacing:0}
.sched-refresh .sched-people-strip{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;padding:1px 1px 8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.sched-refresh .sched-person-card{width:auto;max-width:190px;flex:0 0 auto;min-height:48px;padding:8px 12px 8px 8px;gap:9px;border:1px solid transparent;border-radius:12px;color:var(--muted);background:transparent;box-shadow:none;transform:none}
.sched-refresh .sched-person-card:hover{border-color:var(--stroke2);background:var(--surface-2);color:var(--text)}
.sched-refresh .sched-person-card.is-selected{border-color:rgba(92,151,218,.28);background:rgba(92,151,218,.11);color:var(--text)}
.sched-refresh .sched-person-card:focus-visible,.sched-refresh .sched-preview-btn:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.sched-refresh .sched-avatar{width:30px;height:30px;border-radius:50%;border:1px solid var(--stroke2);background:var(--surface-3)}
.sched-refresh .sched-person-name{font-size:12px;font-weight:650;max-width:130px}
.sched-refresh .sched-bells-icon{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;color:#9bbddc;background:var(--surface-3)}
.sched-refresh .sched-card{padding:0;border:1px solid var(--stroke2);border-radius:16px;background:var(--surface-2);overflow:hidden;box-shadow:none}
.sched-refresh .sched-card-title{margin:0;padding:18px 22px;border-bottom:1px solid var(--stroke2);font-size:14px;letter-spacing:-.01em;font-weight:700}
.sched-refresh .sched-times,.sched-refresh .sched-grid{width:100%;min-width:0;overflow:hidden;border:0;border-radius:0;background:transparent}
.sched-refresh .sched-times-head,.sched-refresh .sched-grid-head{display:none}
.sched-refresh .sched-times-row{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(0,1.4fr) 80px;align-items:center;gap:20px;min-height:58px;padding:13px 22px;border:0;border-top:1px solid var(--stroke);background:transparent}
.sched-refresh .sched-times-row:first-of-type{border-top:0}
.sched-refresh .sched-times-period{grid-column:2;grid-row:1;font-size:13px;font-weight:650}
.sched-refresh .sched-times-time{grid-column:1;grid-row:1;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.sched-refresh .sched-times-dur{grid-column:3;grid-row:1;color:var(--muted2);text-align:right;font-size:11px}
.sched-refresh .sched-times-row:hover,.sched-refresh .sched-grid-row:hover{background:rgba(145,171,201,.035)}
.sched-refresh .sched-times-row.is-active,.sched-refresh .sched-grid-row.is-active{background:rgba(79,169,131,.075);box-shadow:inset 3px 0 #5eb692}
.sched-refresh .sched-times-row.is-active .sched-times-period,.sched-refresh .sched-grid-row.is-active .sched-cell-period{color:#8bcfb0}
.sched-refresh .sched-view-head{display:flex;gap:10px;min-height:66px;margin:0;padding:14px 22px;border:0;border-bottom:1px solid var(--stroke2);border-radius:0}
.sched-refresh .sched-person-title{font-size:14px;font-weight:700;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;min-width:0}
.sched-refresh .sched-person-actions{margin-left:auto;display:flex;gap:8px;flex-shrink:0}
.sched-refresh .sched-person-actions .btn{font-size:11px;padding:7px 10px;white-space:nowrap}
.sched-refresh .sched-grid-row{display:grid;grid-template-columns:minmax(145px,.65fr) minmax(0,1.4fr) minmax(65px,.35fr);grid-template-rows:auto auto;gap:5px 20px;align-items:center;padding:13px 22px;min-height:64px;border:0;border-top:1px solid var(--stroke);font-size:13px;line-height:1.3;background:transparent}
.sched-refresh .sched-grid-row:first-of-type{border-top:0}
.sched-refresh .sched-cell{min-width:0;max-width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.sched-refresh .sched-cell-period{grid-column:1;grid-row:1;font-size:12px;font-weight:650}
.sched-refresh .sched-cell-time{grid-column:1;grid-row:2;font-size:11px;color:var(--muted2);font-variant-numeric:tabular-nums}
.sched-refresh .sched-cell-class{grid-column:2;grid-row:1;font-weight:650;font-size:13px;color:var(--text)}
.sched-refresh .sched-class-label{max-width:100%;vertical-align:top}
.sched-refresh .sched-cell-teacher{grid-column:2;grid-row:2;color:var(--muted);font-size:11px}
.sched-refresh .sched-cell-room{grid-column:3;grid-row:1;text-align:right;font-size:11px;color:var(--muted)}
.sched-refresh .sched-cell-room:not(:empty)::before{content:'Room ';color:var(--muted2)}
.sched-refresh .sched-cell-duration{grid-column:3;grid-row:2;text-align:right;font-size:10px;color:var(--muted2)}
.sched-refresh .sched-grid-empty{display:block;padding:32px 22px}
.sched-refresh .sched-cell-empty,.sched-refresh .sched-empty-state{padding:0;color:var(--muted);font-size:13px;text-align:center}
.sched-refresh .sched-empty-state{padding:40px 22px}
@container content-pane (max-width:760px){
 .sched-page.sched-refresh{padding:18px 14px;gap:15px}
 .sched-refresh .sched-topcard{flex-wrap:wrap;gap:15px}
 .sched-refresh .sched-top-left{width:100%;flex:1 0 100%}
 .sched-refresh .sched-top-right{width:100%;justify-content:space-between;gap:8px}
 .sched-refresh .sched-preview-btn{min-width:36px;height:32px;padding:0 9px;font-size:11px}
 .sched-refresh .sched-type-badge{padding:7px 9px}
 .sched-refresh .sched-times-row{grid-template-columns:minmax(125px,1fr) minmax(0,1fr) 70px;gap:10px;padding:13px 16px}
 .sched-refresh .sched-card-title,.sched-refresh .sched-view-head{padding:14px 16px}
 .sched-refresh .sched-grid-row{grid-template-columns:minmax(125px,.8fr) minmax(0,1.1fr) 64px;gap:5px 10px;padding:12px 16px}
}
@container content-pane (max-width:450px){
 .sched-refresh .sched-day-short{display:inline}
 .sched-refresh .sched-day-long{display:none}
 .sched-refresh .sched-preview-btn{min-width:29px;padding:0 7px}
 .sched-refresh .sched-type-badge{padding:7px;gap:4px}
 .sched-refresh .sched-type-text{font-size:11px}
 .sched-refresh .sched-times-row{grid-template-columns:116px minmax(0,1fr) 63px;gap:8px;padding:12px}
 .sched-refresh .sched-times-time{font-size:10px}
 .sched-refresh .sched-times-period{font-size:12px}
 .sched-refresh .sched-times-dur{font-size:10px}
 .sched-refresh .sched-grid-row{grid-template-columns:116px minmax(0,1fr) 52px;gap:5px 8px;padding:12px}
 .sched-refresh .sched-cell-time,.sched-refresh .sched-cell-duration,.sched-refresh .sched-cell-room{font-size:9px}
 .sched-refresh .sched-cell-class{font-size:12px}
 .sched-refresh .sched-view-head{flex-wrap:wrap;padding:12px;gap:8px}
 .sched-refresh .sched-person-actions{margin-left:auto;gap:6px}
 .sched-refresh .sched-person-actions .btn{padding:6px 8px;font-size:10px}
}
/* Keep the normal nine-period agenda visible in the compact workspace. */
@container content-pane (max-width:900px){
 .sched-refresh .sched-grid-row{min-height:48px;padding-block:8px;row-gap:4px}
 .sched-refresh .sched-times-row{min-height:46px;padding-block:10px}
 .sched-refresh .sched-view-head{min-height:56px;padding-block:10px}
}
/* The month itself occupies the visible workspace. Editors below it retain page scrolling. */
.calendar-page.calendar-month-page .calendar-month-card{height:var(--calendar-height);min-height:0;gap:clamp(8px,1.4cqi,16px)}
.calendar-month-page .calendar-toolbar{padding-top:clamp(10px,1.4cqi,18px)}
.calendar-month-page .calendar-month-grid-card{min-height:0}
.calendar-month-page .calendar-day{padding:clamp(3px,calc(var(--calendar-height)/90),10px);gap:clamp(2px,calc(var(--calendar-height)/110),8px)}
.calendar-month-page .calendar-day-top{min-height:0}
.calendar-month-page .calendar-day-number{line-height:clamp(16px,calc(var(--calendar-height)/30),24px)}
.calendar-month-page .calendar-day-preview{flex:0 1 auto;max-height:none;min-height:0}
.calendar-month-page .calendar-day-count{flex:none}
.calendar-month-page.calendar-compact .calendar-month-heading h2{font-size:20px}
.calendar-month-page.calendar-compact .calendar-toolbar{padding-top:8px;gap:8px}
.calendar-month-page.calendar-compact .calendar-day-count{display:none}
.calendar-month-page.calendar-compact .calendar-day-number{font-size:11px;line-height:16px}
.calendar-month-page.calendar-compact .calendar-note-preview{font-size:9px;padding:1px 3px}
.calendar-month-page.calendar-tight .calendar-toolbar{padding-top:3px;gap:4px;flex-wrap:nowrap}
.calendar-month-page.calendar-tight .calendar-month-heading h2{font-size:15px}
.calendar-month-page.calendar-tight .calendar-day{padding:1px 3px;gap:0}
.calendar-month-page.calendar-tight .calendar-day-number{font-size:10px;line-height:14px}
.calendar-month-page.calendar-tight .calendar-day-preview{display:none}
.calendar-month-page.calendar-tight .calendar-controls{width:auto;flex:1;justify-content:flex-end;gap:4px}
.calendar-month-page.calendar-tight .calendar-controls .custom-select-dd{max-width:120px}
.calendar-month-page.calendar-tight .calendar-day-reminder{font-size:8px}
@container content-pane (max-width:620px){
 .calendar-month-page .calendar-day{padding-inline:3px}
 .calendar-month-page .calendar-day-number{font-size:11px}
 .calendar-month-page .calendar-note-preview{font-size:9px;padding:1px 3px}
 .calendar-month-page .calendar-day-count{font-size:8px}
 .calendar-month-page.calendar-compact .calendar-month-heading h2{font-size:17px}
 .calendar-month-page.calendar-tight .calendar-month-heading h2{font-size:12px}
}
