.school-calendar,.school-public-plan,.school-library-shelf,.school-library-hero{font-family:Arial,Helvetica,sans-serif;color:#244d40;max-width:1440px;margin:0 auto 2rem;padding:1.25rem}.school-calendar{padding:0;max-width:none}
/* Teams-style school calendar: one toolbar, fixed day headers and a scrolling time grid. */
.school-calendar-page-title{font:700 25px/1.3 Arial,Helvetica,sans-serif;margin:0 0 18px}
.sc-calendar{font:15px/1.4 Arial,Helvetica,sans-serif;color:#294b40}
.sc-toolbar,.sc-navigation,.sc-filters{display:flex;align-items:center;gap:8px;min-width:0}
.sc-toolbar{justify-content:space-between;flex-wrap:wrap;margin-bottom:12px}
.sc-navigation{flex:1 1 auto}.sc-filters{flex:0 1 auto}
.sc-toolbar h2{font-size:17px;line-height:1.4;letter-spacing:0;margin:0 8px;font-weight:600;white-space:normal}
.sc-toolbar button,.sc-toolbar .select-trigger{font-size:14px;line-height:1.3;min-height:38px;padding:8px 12px;margin:0;white-space:nowrap}
.sc-toolbar [data-move]{font-size:25px;width:34px;padding:0;min-height:38px}
.sc-toolbar label,.sc-toolbar .select-control{margin:0;min-width:92px}.sc-toolbar label:last-of-type{min-width:140px;max-width:200px}
.sc-toolbar .select-trigger{text-overflow:ellipsis;overflow:hidden;max-width:200px}
.sc-time-scroll,.sc-month-scroll{overflow:auto;background:#fff;border:1px solid #d5e0db;border-radius:8px}
.sc-time-canvas{--sc-days:7;min-width:760px}.sc-calendar:has([data-view] option[value=day]:checked) .sc-time-canvas{min-width:300px}
.sc-day-heads,.sc-allday-row{display:grid;grid-template-columns:52px repeat(var(--sc-days),minmax(0,1fr))}
.sc-day-heads{background:#fafcfb;border-bottom:1px solid #d5e0db}
.sc-zone-label{font-size:11px;align-self:end;text-align:center;color:#73847b;padding-bottom:8px}
.sc-day-head{padding:10px 12px;border-left:1px solid #d5e0db;min-width:0;box-shadow:inset 0 3px transparent}
.sc-day-head strong{display:block;font-size:24px;font-weight:500;line-height:1.2;color:#386a54}.sc-day-head span{display:block;font-size:13px;text-transform:capitalize;color:#687f72;margin-top:3px}
.sc-day-head.sc-today{box-shadow:inset 0 3px #287655}.sc-day-head.sc-today strong{font-weight:700;color:#17623e}
.sc-day-heads,.sc-term-rows{margin-right:var(--sc-scrollbar,0px)}
.sc-term-row{display:grid;grid-template-columns:52px 1fr;min-height:28px;background:#f9fbfa;border-bottom:1px solid #e0e7e3}
.sc-term-track{position:relative;border-left:1px solid #d5e0db;min-height:27px}
.sc-term-band{position:absolute;top:4px;height:20px;background:#e1eee8;color:#3e6652;border-left:3px solid #6c9b83;padding:1px 8px;border-radius:3px;font-size:12px;line-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}
.sc-allday-row{background:#fafcfb;border-bottom:1px solid #d5e0db}.sc-allday-row>span{font-size:11px;padding:8px 3px;color:#687f72}.sc-allday-row>div{border-left:1px solid #d5e0db;min-width:0;padding:3px}
.sc-hours-scroll{max-height:min(65vh,650px);min-height:300px;overflow-y:auto;scrollbar-gutter:stable}
.sc-hours-body{display:grid;grid-template-columns:52px repeat(var(--sc-days),minmax(0,1fr));height:1536px}
.sc-time-labels{position:relative;background:#fafcfb}.sc-time-labels>span{position:absolute;right:10px;font-size:12px;line-height:16px;color:#718076;transform:translateY(1px)}
.sc-time-day{position:relative;border-left:1px solid #d5e0db;min-width:0;background:repeating-linear-gradient(to bottom,transparent 0,transparent 31px,#edf1ee 31px,#edf1ee 32px,transparent 32px,transparent 63px,#dce4de 63px,#dce4de 64px)}
.sc-time-day.sc-today{background-color:#f9fcfa}
.sc-time-slot{display:block;width:100%;height:64px;min-height:0!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0;box-shadow:none!important}
.sc-time-slot:hover{background:#e7f2eb!important}.sc-time-slot:focus-visible{outline:2px solid #5b9676;outline-offset:-2px}
.sc-event{display:flex!important;flex-direction:column;align-items:flex-start;justify-content:flex-start!important;gap:2px;min-width:0;min-height:0!important;width:100%;background:#dcefdc!important;color:#284f37!important;border:1px solid #cee2ce!important;border-left:4px solid #77ac78!important;border-radius:4px;box-shadow:none!important;padding:5px 7px!important;margin:0!important;white-space:normal!important;text-align:left!important;overflow:hidden;font:13px/1.35 Arial,Helvetica,sans-serif!important}
.sc-event strong{font-size:13px;line-height:1.35;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;width:100%;overflow-wrap:anywhere}
.sc-event span,.sc-event small{font-size:11px;line-height:1.3;flex-shrink:0;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.sc-positioned{position:absolute;z-index:2}
.sc-personal{background:#e2eff6!important;border-color:#cfe3ef!important;border-left-color:#77aec7!important;color:#305466!important}
.sc-busy{background:repeating-linear-gradient(135deg,#f5e3e5,#f5e3e5 7px,#f9edef 7px,#f9edef 14px)!important;border-color:#ebd5da!important;border-left-color:#c9919e!important;color:#754951!important}
.sc-library{background:#fbf0d8!important;border-color:#eddfbd!important;border-left-color:#ccb16f!important;color:#68582f!important}
.sc-event:focus-visible{outline:2px solid #225d42;outline-offset:1px;z-index:4}.sc-event:hover{filter:brightness(.97);z-index:3}
.sc-now{position:absolute;height:2px;width:100%;background:#33795a;z-index:5;pointer-events:none}.sc-now:before{content:'';position:absolute;left:-5px;top:-4px;width:10px;height:10px;background:#33795a;border:2px solid white;border-radius:50%}
.sc-all-day-event{max-height:48px}.sc-all-day-event>span{display:none}
.sc-month{min-width:680px}.sc-month-weekdays,.sc-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.sc-month-weekdays{background:#f7faf8;border-bottom:1px solid #d5e0db}.sc-month-weekdays span{font-size:13px;font-weight:600;padding:10px;text-align:center}
.sc-month-day{min-height:120px;border-right:1px solid #d5e0db;border-bottom:1px solid #d5e0db;padding:5px;min-width:0}.sc-month-day:nth-child(7n){border-right:0}.sc-month-day.sc-other-month{background:#f7faf8;color:#94a097}.sc-month-day.sc-today{background:#f1f8f3}
.sc-day-number{display:grid;place-items:center;background:transparent!important;color:inherit!important;border:0!important;border-radius:50%;min-height:28px!important;width:28px;padding:0!important;margin:0 0 5px!important;font:14px Arial,Helvetica,sans-serif!important;box-shadow:none!important}.sc-today .sc-day-number{background:#347956!important;color:white!important}
.sc-month-event{margin:3px 0!important;padding:3px 5px!important}.sc-month-event strong{font-size:12px}.sc-month-event small{display:none}.sc-month-term{display:block;background:#e6f0e9;color:#56715e;font-size:11px;padding:2px 4px;border-radius:3px;margin-bottom:3px}
.sc-footnote{font-size:12px!important;line-height:1.5;margin:10px 0 0;color:#6b7d71}
.sc-dialog{width:min(570px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;font:15px/1.5 Arial,Helvetica,sans-serif;color:#244d40;padding:24px;border:1px solid #cbded1;border-radius:12px}.sc-dialog::backdrop{background:#153b3266}
.sc-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.sc-dialog-heading h2{font-size:21px;margin:0;line-height:1.35}.sc-dialog-heading button{margin:0;white-space:nowrap}.sc-dialog label{font-size:14px}.sc-dialog input,.sc-dialog textarea,.sc-dialog .select-trigger{font:15px/1.4 Arial,Helvetica,sans-serif}.sc-dialog .actions{flex-wrap:wrap}.sc-form-dates{display:grid;grid-template-columns:1fr 1fr;gap:14px}.sc-form-dates .field{min-width:0}.sc-form-error{color:#9b3c3c;font-size:14px}.sc-dialog .helper{font-size:13px;line-height:1.5}
@media(max-width:1100px){.sc-toolbar{align-items:flex-start}.sc-filters{margin-left:auto}.sc-toolbar h2{font-size:16px}}
@media(max-width:650px){.sc-navigation{flex-wrap:wrap}.sc-toolbar h2{flex-basis:100%;order:5;margin:6px 0}.sc-filters{width:100%;flex-wrap:wrap;justify-content:flex-start;margin:0}.sc-toolbar label:last-of-type{min-width:120px;flex:1}.sc-toolbar .select-trigger{max-width:none}.sc-hours-scroll{max-height:60vh}.sc-form-dates{grid-template-columns:1fr}}

.school-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.school-term{margin:1rem 0;padding:1.25rem;border:1px solid #bfd4c8;border-radius:12px;background:#fbfdfb}.school-term legend{font-weight:bold;font-size:1.15rem}.school-term textarea{width:100%;font:inherit}.school-planned-courses{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.school-planned-courses>div{border-top:1px solid #d1e0d7;padding-top:1rem}.school-library-hero{background:linear-gradient(135deg,#edf6ef,#f8f6ed);border-radius:18px;padding:2rem;margin-top:1.5rem}.school-library-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1rem}.school-recording{display:block;background:linear-gradient(135deg,#315f50,#183e33);border-radius:14px;color:white;text-decoration:none;padding:1.5rem;min-height:210px}.school-recording-play{display:grid;place-items:center;width:42px;height:42px;border:1px solid #bed4c7;border-radius:50%;margin-bottom:1rem}.school-recording h3{font-size:1.2rem;color:inherit;line-height:1.4}.school-recording p,.school-recording span{font-size:1rem}.school-recording:hover,.school-recording:focus-visible{outline:3px solid #91b4a1;outline-offset:3px}.school-student-shortcuts{display:flex;flex-wrap:wrap;gap:1.5rem;max-width:1320px;margin:1.5rem auto;padding:0 1.25rem}.school-student-shortcuts a{font-size:1.05rem;font-weight:700}.school-bot-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}@media(max-width:850px){.school-calendar-grid{grid-template-columns:1fr}.school-calendar-day{min-height:100px}.school-calendar-week .school-calendar-day{min-height:120px}.school-library-tiles{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}}@media(prefers-reduced-motion:reduce){.school-calendar *{scroll-behavior:auto}}
.school-plain-message{white-space:pre-wrap;overflow-wrap:anywhere}.school-inquiry{max-width:760px;margin:1rem auto}.school-inquiry textarea{width:100%;font:inherit;min-height:120px}.school-event-dialog textarea{width:100%;font:inherit}.school-calendar-day.school-calendar-grid{padding:0;border-radius:12px}
@media(max-width:900px){.lr-student-header{display:flex;flex-direction:column;align-items:stretch;gap:.6rem;padding:1rem}.lr-student-header>a{align-self:flex-start}.lr-student-header nav{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:1.15rem;overflow-x:auto;max-width:100%;padding:.35rem 0;scrollbar-width:thin}.lr-student-header nav>a,.lr-student-header nav>button{flex:0 0 auto;min-height:44px;padding:.55rem .1rem;font-size:1rem;white-space:nowrap}}
[data-term-plan]{position:relative;z-index:1}.school-calendar-day h4 time{text-transform:capitalize}
/* One workspace for periods, courses and publishing. */
.school-planner{color:#244d40;font-family:Arial,Helvetica,sans-serif;font-size:15px;line-height:1.5}
.school-planner button,.sp-dialog button{font-family:inherit;font-size:14px;line-height:1.4;min-height:40px}
.school-planner label,.sp-dialog label{font-size:14px;line-height:1.4}
.school-planner input,.school-planner textarea,.school-planner .select-trigger,.sp-dialog input,.sp-dialog textarea{font-family:inherit;font-size:15px;line-height:1.5}
.school-planner .helper{font-size:13px;line-height:1.6}
.sp-intro,.sp-section-toolbar,.sp-period-heading,.sp-course-heading,.sp-save-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.sp-intro{margin-bottom:1rem}.sp-intro p{margin:0;max-width:740px}
.sp-areas{display:flex;gap:1.25rem;flex-wrap:wrap;border-bottom:1px solid #d3e2d9;margin-bottom:1.5rem}
.sp-areas button{border:0;border-bottom:3px solid transparent;border-radius:0;margin:0;padding:.8rem .15rem;font-size:1rem}
.sp-areas [aria-current=page]{border-bottom-color:#237455;color:#18583f;font-weight:700}
.sp-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;align-items:start}
.sp-periods{background:#f0f6f1;border:1px solid #d0e0d5;border-radius:12px;padding:1rem}
.sp-period-filters{display:grid;grid-template-columns:1fr;gap:.6rem;margin-bottom:.75rem}
.sp-period-filters input,.sp-period-filters .select-trigger{min-height:40px;font-size:.95rem;padding:.5rem}
.sp-period-choice{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;margin:0 0 .6rem;background:white!important;border:1px solid #d0dfd5!important;color:#284c3d!important;text-align:left;white-space:normal;padding:12px;border-radius:9px;font:inherit;font-weight:400}
.sp-period-choice[aria-pressed=true]{background:#e0eee4!important;border-color:#438867!important;box-shadow:inset 3px 0 #438867}
.sp-period-choice strong{font-size:16px;line-height:1.4}.sp-period-choice span,.sp-period-choice small{font-size:13px;line-height:1.4}
.sp-period-status{font-size:.92rem;color:#52715f;font-weight:600}
.sp-workspace{min-width:0}.sp-period-heading{margin:0 0 1.25rem}.sp-period-heading h2{font-size:22px;line-height:1.25;margin:.35rem 0}.sp-period-heading p{margin:0}
.sp-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #d0dfd5;border-radius:10px;overflow:hidden;margin-bottom:1.25rem}
.sp-steps button{display:flex;align-items:center;gap:.6rem;text-align:left;white-space:normal;background:#fbfdfb!important;color:#244d40!important;border:0;border-radius:0;padding:12px 14px;min-height:46px;margin:0;font:inherit;justify-content:center}
.sp-steps button+button{border-left:1px solid #d0dfd5}.sp-steps [aria-current=step]{background:#e5f0e8!important;box-shadow:inset 0 -3px #307b55}
.sp-step-number{display:none;place-items:center;flex:0 0 28px;height:28px;border:1px solid #9cbda8;border-radius:50%;font-weight:bold}
.sp-steps strong,.sp-steps small{display:block;line-height:1.4}.sp-steps strong{font-size:14px}.sp-steps small{display:none}
.sp-panel,.sp-course{background:white;border:1px solid #d3e2d8;border-radius:12px;padding:1.25rem;margin-bottom:1rem}
.sp-panel h2,.sp-panel h3,.sp-section-toolbar h3{margin:0 0 .6rem}.sp-panel p{max-width:860px}.sp-panel summary{cursor:pointer;font-weight:700;font-size:1.05rem}
.sp-section-toolbar{margin-bottom:1rem}.sp-section-toolbar h3{font-size:1.25rem}.sp-section-toolbar p{margin:0}.sp-section-toolbar .actions{margin:0;gap:.5rem}
.sp-course-heading h4{margin:4px 0;font-size:17px;line-height:1.4}.sp-preview-state{font-size:13px;color:#557361}
.sp-course-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:16px 0;margin:0}.sp-course-facts dt{font-size:.92rem;color:#5a7467;margin-bottom:.4rem}.sp-course-facts dd{margin:0;font-size:14px;font-weight:400;line-height:1.5}
.sp-course .actions{margin:.4rem 0 0;gap:.6rem}.sp-next{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;border-top:1px solid #d6e3db;padding-top:1rem;margin-top:1.25rem}.sp-next p{margin:0;max-width:580px}
.sp-empty{border:1px dashed #acc9b6;border-radius:12px;padding:2rem;background:#f7faf5;max-width:100%}.sp-empty h2,.sp-empty h4{margin-top:0}.sp-empty ol{line-height:1.9;padding-left:1.4rem}
.sp-programme-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 0;border-top:1px solid #dce7df}.sp-programme-row>label:last-child{max-width:145px;margin:0;font-size:.92rem}.sp-programme-row input[type=number]{width:100%;min-height:40px}.sp-programme-row .check{margin:0}
.sp-publish-checks{padding-left:1.25rem;line-height:1.7}.sp-save-bar{padding:.9rem 0}.sp-save-bar span,.sp-save-bar p{font-size:.95rem;margin:0;max-width:700px}
.sp-dialog{width:min(660px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #b6cfc0;border-radius:16px;padding:1.5rem;color:#244d40;font-family:Arial,Helvetica,sans-serif}
.sp-dialog::backdrop{background:#173c3366}.sp-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.sp-dialog-heading h2{margin:0;font-size:1.45rem}.sp-dialog textarea{width:100%;font:inherit}.sp-dialog fieldset{border:1px solid #d4e2da;border-radius:8px;padding:1rem;margin:1rem 0}.sp-dialog form>button{margin-top:1rem}
.sp-return{display:block;margin:0 0 1rem;color:#2b6a4b;font-size:1rem;font-weight:600}
@media(max-width:1100px){.sp-layout{grid-template-columns:225px minmax(0,1fr);gap:1rem}.sp-course-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.sp-steps button{padding:10px;font-size:14px}}
@media(max-width:760px){.sp-layout{grid-template-columns:1fr}.sp-periods{padding:.75rem}.sp-periods [data-period-list]{display:flex;gap:.6rem;overflow:auto}.sp-period-choice{flex:0 0 225px;margin:0}.sp-periods>.helper{margin-bottom:0}.sp-steps{grid-template-columns:repeat(3,minmax(0,1fr))}.sp-steps button{padding:.65rem;align-items:flex-start}.sp-steps button+button{border-top:0;border-left:1px solid #d0dfd5}.sp-step-number{display:none}.sp-steps small{display:none}.sp-steps strong{font-size:.95rem}.sp-section-toolbar .actions{width:100%}.sp-programme-row{align-items:flex-start}.sp-panel,.sp-course{padding:1rem}}

/* Course tools stay within the selected period. */
.sp-editor-title{font-size:21px;margin:0 0 18px}
.sp-inline-editor{min-width:0}
.sp-inline-editor .card{padding:20px}
.sp-inline-editor .course-basics,.sp-inline-editor .school-form-grid{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))}
.sp-inline-editor .wp-tabs{flex-wrap:wrap}
.sp-inline-editor .group-card{min-width:0}
@media(max-width:760px){.sp-inline-editor .card{padding:14px}.sp-editor-title{font-size:21px}}

.sp-inline-editor h2{font-size:21px;line-height:1.35}.sp-inline-editor h3{font-size:18px;line-height:1.4}.sp-inline-editor h4{font-size:16px;line-height:1.4}
.sp-inline-editor .field{min-width:0}.sp-inline-editor .course-status-bar{gap:12px;flex-wrap:wrap}
.sp-course-heading{align-items:flex-start}.sp-preview-state{max-width:230px;line-height:1.5}
.sp-section-toolbar{align-items:flex-start}.sp-section-toolbar .actions{align-items:center;flex-wrap:wrap}
.sp-steps button:focus-visible,.sp-period-choice:focus-visible,.sp-course-return button:focus-visible{outline:3px solid #68a68a;outline-offset:-3px}
@media(min-width:1500px){.sp-course-facts{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.sp-period-filters{grid-template-columns:minmax(0,1fr) 100px}.sp-steps strong{font-size:13px}.sp-preview-state{max-width:none}.sp-course-heading{gap:6px}.sp-steps button{min-height:48px}.sp-course-facts{gap:12px}}

.sp-inline-editor .tabs[aria-label=Kurshantering] button{font-size:14px;padding:10px 14px;min-height:42px}
.sp-inline-editor .course-status-bar{font-size:13px;margin:8px 0 12px;padding:4px 0}
.sp-inline-editor .course-status-bar button{font-size:13px}
.sp-inline-editor .lr-workspace{grid-template-columns:minmax(160px,.65fr) minmax(0,1.35fr);gap:16px}
@media(max-width:1100px){.sp-inline-editor .lr-workspace{grid-template-columns:1fr}.sp-inline-editor .lr-outline{max-height:280px;overflow:auto}}

/* Match the planner to the calendar's compact heading and field scale. */
.sp-page-title{font:700 25px/1.3 Arial,Helvetica,sans-serif;margin:0 0 18px}
.sp-course-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}
.sp-course-heading>div{min-width:0}.sp-course-heading h4{overflow-wrap:anywhere}
.sp-preview-state{text-align:right;max-width:190px}.sp-course-facts dt{font-size:13px;margin-bottom:4px}
.sp-course .actions>button{min-height:40px;font-size:14px}
.sp-section-toolbar{gap:12px}.sp-section-toolbar h3{font-size:18px;margin-bottom:5px}
.sp-section-toolbar p,.sp-next p{font-size:14px;line-height:1.5}.sp-intro p{font-size:14px}
.sp-areas button{font-size:14px}.sp-period-heading p{font-size:14px}
@media(max-width:850px){.sp-course-heading{grid-template-columns:1fr;gap:4px}.sp-preview-state{text-align:left;max-width:none}}

.sp-course .actions{justify-content:flex-start}
.sp-panel h2,.sp-empty h2{font-size:21px;line-height:1.35}.sp-panel h3,.sp-empty h4{font-size:18px;line-height:1.4}
.sp-dialog-heading h2{font-size:21px;line-height:1.35}

.pdf-upload-dialog{font:15px/1.5 Arial,Helvetica,sans-serif}.pdf-upload-dialog h3{font-size:17px;margin:0 0 8px}.pdf-upload-dialog .pdf-file-name{font-weight:600;overflow-wrap:anywhere}.pdf-optimization{border:1px solid #d3e2d8;border-radius:9px;padding:16px;background:#f6faf7;margin:16px 0}.pdf-optimization p{font-size:14px;line-height:1.5}.pdf-upload-dialog .actions{justify-content:flex-start;flex-wrap:wrap;gap:10px}.pdf-upload-dialog button{font-size:14px}.pdf-upload-dialog a{font-size:14px}
/* Microsoft calendar setup stays secondary to the calendar's compact toolbar. */
.ms-calendar-dialog{width:min(1050px,94vw);max-width:1050px}.ms-calendar-dialog code{overflow-wrap:anywhere;font-size:14px}.ms-source{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,1.2fr);gap:20px;padding:18px 0;border-bottom:1px solid #d3e2d8}.ms-source h4{margin:0;font-size:17px;line-height:1.4}.ms-source p{font-size:15px;line-height:1.6}.ms-source select{width:100%;max-width:100%}.ms-calendar-warning{padding:12px 16px;background:#fff4df;border-left:3px solid #9b7222;color:#53421f}.ms-source button{margin-top:10px}@media(max-width:700px){.ms-source{grid-template-columns:1fr;gap:8px}}
.school-busy-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #d3e2d8;padding:8px 0}.school-busy-row p{margin:0;font-size:15px;line-height:1.5}

/* Keep period navigation spare; details belong to the selected workspace. */
.sp-layout{grid-template-columns:200px minmax(0,1fr);gap:20px}
.sp-periods{padding:12px}
.sp-period-choice{padding:10px 12px;margin-bottom:6px;min-height:42px;justify-content:center}
.sp-period-choice strong{font-size:14px;font-weight:600}
.sp-period-heading{gap:10px;margin-bottom:14px;align-items:center}
.sp-period-summary{display:flex;align-items:baseline;gap:6px 16px;flex-wrap:wrap}
.sp-period-heading .sp-period-summary h2{font-size:20px;margin:0;line-height:1.35}
.sp-period-summary p,.sp-period-summary .sp-period-status{font-size:13px;line-height:1.5}
.sp-period-heading .actions button{min-height:36px;padding:7px 12px;font-size:13px}
@media(max-width:760px){.sp-layout{grid-template-columns:1fr}.sp-period-choice{flex:0 0 auto;max-width:220px}.sp-period-heading{align-items:flex-start}.sp-period-summary{gap:4px}}

.sc-time-slot{user-select:none;touch-action:pan-y}
.sc-selection{position:absolute;left:3px;right:3px;z-index:5;background:#cce6d9cf;border:1px solid #34765c;border-left:4px solid #34765c;border-radius:3px;padding:4px 6px;pointer-events:none;font:12px Arial,Helvetica,sans-serif;color:#244b3a}

.sc-filters{flex-wrap:wrap;justify-content:flex-end}

/* Public term programmes are reading pages, not narrow comparison columns. */
.school-term-programme{--programme-size:18px;--programme-leading:1.75;max-width:1100px;padding:clamp(20px,4vw,48px) clamp(18px,3vw,40px);font-size:var(--programme-size);line-height:var(--programme-leading)}
.school-programme-size-16{--programme-size:16px}.school-programme-size-20{--programme-size:20px}
.school-programme-spacing-compact{--programme-leading:1.6}.school-programme-spacing-airy{--programme-leading:1.9}
.school-programme-intro{max-width:78ch;margin-bottom:32px}.school-programme-intro h2{font-size:clamp(28px,3vw,36px);line-height:1.2;margin:0 0 20px}.school-programme-intro p{font-size:1em;line-height:inherit;white-space:pre-line;margin:0}
.school-term-programme .school-programme-term{padding:clamp(22px,4vw,44px);margin:0}
.school-programme-term-heading{margin:0 0 36px;max-width:78ch}
.school-programme-term-heading h3{font-size:1.5em;line-height:1.3;margin:10px 0 20px}
.school-term-programme .school-programme-dates{font-size:1em;line-height:inherit;margin:0;font-weight:500}
.school-term-programme .school-programme-registration{font-size:1em;line-height:inherit;margin:24px 0 0}
.school-term-programme .school-planned-courses{display:flex;flex-direction:column;gap:40px}
.school-programme-course{border-top:1px solid #d1e0d7;padding:32px 0 0;min-width:0}
.school-programme-course h4{font-size:1.15em;line-height:1.4;margin:0 0 20px}
.school-programme-description{max-width:78ch;overflow-wrap:anywhere}
.school-term-programme .school-programme-description p,.school-term-programme .school-programme-description li{font-size:1em;line-height:var(--programme-leading)}
.school-programme-description p{margin:0 0 1.1em}.school-programme-description p:last-child{margin-bottom:0}
.school-programme-description h1,.school-programme-description h2{font-size:1.4em;line-height:1.35;margin:1.3em 0 .7em}
.school-programme-description h3,.school-programme-description h4{font-size:1.15em;line-height:1.4;margin:1.3em 0 .7em}
.school-programme-description ul,.school-programme-description ol{padding-left:1.5em;margin:1em 0}.school-programme-description li+li{margin-top:.4em}
.school-term-programme .school-programme-action{font-size:1em;line-height:inherit;margin:24px 0 0}.school-programme-action a{font-weight:600}
@media(max-width:600px){.school-term-programme{padding:24px 16px}.school-term-programme .school-programme-term{padding:22px 18px}.school-programme-description{max-width:100%}}

.school-programme-description .iti-size-small{font-size:.89em}.school-programme-description .iti-size-normal{font-size:1em}.school-programme-description .iti-size-large{font-size:1.125em}.school-programme-description .iti-size-xlarge{font-size:1.3em}.school-programme-description .iti-size-title{font-size:1.6em}

/* Focused event editor with an adjustable day preview. */
.sc-dialog.sc-event-editor{width:min(1120px,96vw);max-width:1120px;max-height:92vh;padding:0;overflow:auto;border-radius:12px}
.sc-event-editor>.sc-dialog-heading{padding:18px 22px;margin:0;border-bottom:1px solid #dce5df;background:#f5f8f6}
.sc-event-editor .sc-dialog-heading h2{font-size:20px;margin:0}
.sc-editor-toolbar{display:flex;align-items:center;gap:18px;padding:12px 22px;border-bottom:1px solid #dce5df;background:#fff;flex-wrap:wrap}
.sc-editor-toolbar label{margin:0}.sc-editor-toolbar select{min-width:160px}.sc-editor-toolbar>button{margin-left:auto}
.sc-editor-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr)}
.sc-editor-details{padding:24px;min-width:0}.sc-editor-details input[name=title]{font-size:22px;line-height:1.4;border-width:0 0 2px;border-radius:0;background:transparent;padding:8px 0;margin-bottom:24px}
.sc-editor-details textarea{min-height:170px;resize:vertical}.sc-editor-details .sc-form-dates{margin-bottom:18px}
.sc-editor-preview{padding:20px;border-left:1px solid #dce5df;background:#fafcfa;min-width:0}
.sc-editor-preview>header{display:flex;align-items:center;justify-content:space-between;gap:8px}.sc-editor-preview h3{font-size:15px;line-height:1.4;margin:0}.sc-editor-preview>header>div{display:flex;gap:4px}.sc-editor-preview>header button{padding:5px 10px;min-height:32px}
.sc-editor-day-scroll{height:400px;max-height:50vh;overflow:auto;border:1px solid #d7e1da;background:white;border-radius:6px}
.sc-editor-day-canvas{position:relative;margin-left:48px;border-left:1px solid #dce5df}
.sc-editor-hour{position:absolute;left:0;right:0;border-top:1px solid #dce5df;background:linear-gradient(transparent calc(50% - 1px),#edf2ee calc(50% - 1px),#edf2ee 50%,transparent 50%)}.sc-editor-hour>span{position:absolute;left:-46px;top:-9px;font-size:11px;color:#65796e;background:white;padding:0 3px}
.sc-editor-existing,.sc-editor-selected{position:absolute;left:5px;right:6px;border-radius:4px;padding:5px 8px;font-size:12px;line-height:1.4;overflow:hidden}
.sc-editor-existing{background:#edf0ed;color:#66776d;border-left:3px solid #b6c8bb;right:14px}
.sc-editor-selected{background:#d8eee2e8;color:#214d3a;border:1px solid #4b936f;border-left:4px solid #4b936f;z-index:2;overflow:visible}.sc-editor-selected strong,.sc-editor-selected span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.sc-editor-selected button{position:absolute;right:8px;width:14px;height:14px;min-height:14px!important;padding:0!important;border:2px solid #4b936f;border-radius:50%;background:#fff;cursor:ns-resize;touch-action:none}.sc-resize-start{top:-8px}.sc-resize-end{bottom:-8px}
@media(max-width:800px){.sc-editor-grid{grid-template-columns:1fr}.sc-editor-preview{border-left:0;border-top:1px solid #dce5df}.sc-editor-toolbar{gap:10px;padding:12px 16px}.sc-editor-details{padding:20px}.sc-editor-day-scroll{max-height:40vh}}

.sp-panel[data-category-row]{display:grid;grid-template-columns:minmax(180px,1fr) minmax(150px,.7fr) minmax(180px,1fr);align-items:center;gap:16px;padding:12px;margin-bottom:8px}
.sp-panel[data-category-row] label,.sp-panel[data-category-row] .helper{margin:0}
.sp-panel[data-category-row] .helper{font-size:13px;line-height:1.4}
@media(max-width:900px){.sp-panel[data-category-row]{grid-template-columns:1fr 1fr}.sp-panel[data-category-row] .helper{grid-column:1/-1}}
@media(max-width:550px){.sp-panel[data-category-row]{grid-template-columns:1fr}}

/* Compact term banners shared by the website and participant term overview. */
.public-term-programme{max-width:none;padding:24px 0 0}.public-term-banner{position:relative;isolation:isolate;overflow:hidden;border-radius:18px;margin:24px 0;color:white;background:#214d3d}.public-term-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.public-term-banner:after,.public-course-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,#0c2f25ed,#173e30a8);z-index:-1}.season-autumn:after{background:linear-gradient(110deg,#3c291ded,#4f3a25a8)}.season-winter:after{background:linear-gradient(110deg,#172a39ed,#233e52b8)}.public-term-content{padding:30px}.public-term-content h3{font-size:30px;color:inherit;margin:6px 0}.public-term-dates{font-size:15px;margin:0}.public-term-intro{max-width:700px;white-space:pre-line;line-height:1.5;margin:12px 0 18px}.public-term-cards{display:flex;gap:16px;overflow:auto;scroll-snap-type:x mandatory;padding:12px 0 6px}.public-term-card{flex:1 0 220px;max-width:320px;min-height:155px;scroll-snap-align:start;border-radius:12px;padding:20px;background:#fffffff2;color:#244a3b;display:flex;flex-direction:column;gap:8px;text-decoration:none;transition:transform .15s,background .15s}.public-term-card:hover,.public-term-card:focus-visible{transform:translateY(-3px);background:white;outline:3px solid #7ec59d}.public-term-card h4{font-size:21px;line-height:1.25;margin:0}.public-term-card span,.public-term-card time{font-size:14px}.public-term-card strong{margin-top:auto;padding-top:12px;font-size:15px}
@media(max-width:680px){.public-term-content{padding:22px}.public-term-content h3{font-size:25px}.public-term-card{flex-basis:210px;max-width:270px;padding:17px}}
/* Course-page wording stays compact even when every label is available. */
.sp-dialog .course-page-wording{margin:20px 0;border-top:1px solid #dbe5df;padding-top:16px}
.sp-dialog .course-page-wording summary{font-weight:600;min-height:44px;display:list-item;padding:10px 0;cursor:pointer}
.sp-dialog .course-page-wording textarea{min-height:70px;height:auto;line-height:1.5}
.sp-dialog:has(.course-page-wording) textarea[name=pageIntro]{min-height:100px}

/* Keep browsing visible even on systems that auto-hide native scrollbars. */
.public-term-navigation{position:absolute;inset:0 10px;z-index:2;display:flex;align-items:center;justify-content:space-between;pointer-events:none}
.public-term-navigation button{display:grid;place-items:center;width:52px;height:52px;min-width:52px;min-height:52px;padding:0;pointer-events:auto;border:1px solid #ffffff80;border-radius:50%;background:white;color:#195f54;font-size:42px;line-height:1;box-shadow:0 2px 8px #123a3030}
.public-term-navigation button:hover:not(:disabled){background:#def3e7;transform:scale(1.06)}
.public-term-navigation button:disabled{opacity:.45;cursor:default}
.public-term-cards{overflow-x:scroll;overflow-y:hidden;scrollbar-width:auto;scrollbar-color:#8db6a4 #ffffff35;padding:12px 3px 16px;scroll-padding-inline:3px}
.public-term-cards::-webkit-scrollbar{height:12px}.public-term-cards::-webkit-scrollbar-track{background:#ffffff35;border-radius:8px}.public-term-cards::-webkit-scrollbar-thumb{background:#8db6a4;border-radius:8px;border:2px solid transparent;background-clip:padding-box}
.public-term-card{min-width:0;flex:0 0 250px;max-width:320px;overflow:hidden}
.public-term-card-picture{width:calc(100% + 40px);max-width:none;height:140px;object-fit:cover;margin:-20px -20px 6px;flex:none}
.public-term-card time{line-height:1.5;margin-top:4px}
@media(max-width:680px){.public-term-card{flex-basis:230px}.public-term-card-picture{width:calc(100% + 34px);margin:-17px -17px 6px;height:130px}}

.public-term-navigation button:focus-visible{outline:3px solid #7ec59d;outline-offset:3px}.public-term-navigation button{transition:transform .15s,background .15s,box-shadow .15s}.public-term-navigation button:hover:not(:disabled){box-shadow:0 5px 18px #123a3055}@media(prefers-reduced-motion:reduce){.public-term-navigation button{transition:none}}

/* Three generous course cards fill the available desktop row. */
@media(min-width:951px){.public-term-card{flex-basis:calc((100% - 32px)/3);max-width:none}.public-term-card-picture{height:auto;aspect-ratio:16/9}}
@media(min-width:681px) and (max-width:950px){.public-term-card{flex-basis:calc((100% - 16px)/2);max-width:none}.public-term-card-picture{height:auto;aspect-ratio:16/9}}

.sp-programme-row{flex-wrap:wrap}.sp-weekly-plan{flex:1 0 100%;grid-column:1/-1;width:100%}.sp-weekly-plan summary{cursor:pointer;padding:10px 0;font-weight:600}.sp-weekly-slot{display:grid;grid-template-columns:minmax(120px,1fr) minmax(100px,1fr) 44px;gap:12px;align-items:end;margin:12px 0}.sp-weekly-slot button{min-width:44px;min-height:44px}.public-course-card-facts{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:14px;line-height:1.5;margin:4px 0 8px}.public-course-card-facts time{margin:0}.public-course-card-facts>span{font-weight:600}@media(max-width:480px){.sp-weekly-slot{gap:6px;grid-template-columns:minmax(100px,1fr) minmax(85px,1fr) 44px}}

.sp-programme-row>label:not(.check){flex:0 1 165px;margin:0;font-size:15px}.sp-programme-row>.check{flex:1 1 240px}.public-course .course-body .public-course-card-facts time{margin:0}

.sp-course-return{display:flex;align-items:center;margin:0 0 12px;padding:4px 0 10px;border-bottom:1px solid #d5e4dd}.sp-course-return button{font-size:15px;text-align:left}

/* Secondary course actions stay in one compact, keyboard-accessible row menu. */
.sp-course-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;white-space:nowrap}
.sp-course-row-actions>button{margin:0;flex:0 0 auto}
.sp-course-more.text-button{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:50%;font-size:20px;letter-spacing:2px;color:#60786d;background:transparent;box-shadow:none}
.sp-course-more:hover,.sp-course-more[aria-expanded=true]{background:#e4eee8;color:#174f3a}
.sp-course-more:focus-visible{outline:2px solid #168252;outline-offset:2px}
.sp-course-menu{position:fixed;inset:auto;margin:0;box-sizing:border-box;max-width:calc(100vw - 24px);padding:6px;border:1px solid #d7e3dc;border-radius:12px;background:#fff;box-shadow:0 8px 28px #193c2d2b;color:#244d40;z-index:1000}
.sp-course-menu[hidden]{display:none}
.sp-course-menu button{display:block;width:100%;min-height:44px;padding:11px 12px;margin:0;border:0;border-radius:7px;background:transparent;color:#285a44;text-align:left;white-space:normal;font-size:15px;line-height:1.4;box-shadow:none}
.sp-course-menu button:hover,.sp-course-menu button:focus-visible{background:#edf4ef;outline:0}

/* One compact Teams action panel, including readable retry details. */
.course-teams-dialog{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}
.course-teams-dialog .sc-dialog-heading{padding:18px 22px}
.course-teams-dialog .sc-dialog-heading h2{font-size:1.35rem;margin:0}
.course-teams-content{padding:20px 22px;overflow:auto}
.course-teams-status{margin:0 0 16px;font-size:1rem}
.course-teams-list{list-style:none;padding:0;margin:0}
.course-teams-list li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid #dce5df}
.course-teams-list li>div{min-width:0;overflow-wrap:anywhere}
.course-teams-list strong{font-size:1rem}
.course-teams-list a{font-size:1rem;white-space:nowrap}
.course-teams-list p,.course-teams-list details{font-size:.95rem;margin:6px 0}
.course-teams-content>[data-run]{margin-top:16px}
@media(max-width:480px){.course-teams-list li{align-items:flex-start;flex-direction:column;gap:8px}}

/* Keep the course identity visible even in a short, fixed-height lesson block. */
.sc-event>strong{display:block;flex:0 0 auto;min-height:1.35em;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.sc-event>.sc-event-details{display:block;flex:0 0 auto;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sc-month-event>strong,.sc-all-day-event>strong{display:-webkit-box;white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical}

.single-lab-editor .lr-workspace{grid-template-columns:minmax(0,1fr)}
.single-lab-editor .lr-outline[hidden]{display:none}

.school-library-tiles .school-recording{display:block;background:#fff;color:inherit;padding:0;min-height:0;border-radius:0;text-decoration:none}
.school-library-tiles .lr-course-card{overflow:hidden}
.school-library-tiles .lr-course-art{display:block;aspect-ratio:16/9;height:auto;overflow:hidden;background:#edf4ef}
.school-library-tiles .lr-card-cover{display:block;width:100%;height:100%;object-fit:cover}
.school-library-tiles .lr-course-card-body h2{font-size:1.15rem;line-height:1.35;margin:0}
.school-library-tiles .lr-course-card-body p{margin:0;color:#586e63}
.school-library-tiles .school-recording:hover,.school-library-tiles .school-recording:focus-visible{outline:0}
.school-library-tiles .lr-course-card:focus-within{outline:3px solid var(--io-card-focus);outline-offset:3px}
