/* Fit the login surface to the viewport; scroll only overflowing panels on desktop.
   Narrow windows use normal document flow so zoom, keyboard and touch remain usable. */
html,body{min-width:0;min-height:100%;margin:0}
.signin-scene{--edge:clamp(8px,1.5vmin,24px);--panel-space:clamp(14px,2vmin,28px);min-height:100svh;min-height:100dvh;padding:var(--edge)}
.signin-layout{width:100%;max-width:1600px;height:calc(100svh - 2 * var(--edge));height:calc(100dvh - 2 * var(--edge));min-height:0;grid-template-columns:minmax(0,1.22fr) minmax(0,1fr);gap:var(--edge)}
.workspace-panel,.signin-panel{min-width:0;min-height:0;max-height:100%;border-radius:clamp(14px,2vmin,26px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.workspace-panel{display:flex;flex-direction:column}
.intro-panel{padding:var(--panel-space);flex-shrink:0}
.workspace-picker{padding:var(--panel-space);min-height:0;flex-shrink:0}
.workspace-footer{margin-top:auto;padding:14px var(--panel-space);gap:10px;font-size:11px}
.signin-panel{padding:var(--panel-space);align-items:flex-start}
.signin-content{min-width:0;margin-block:auto}
.wordmark{gap:12px}.wordmark>div{min-width:0}.wordmark strong{font-size:clamp(22px,2.2vw,29px)}
.wordmark img{width:clamp(42px,6.5vh,60px);height:clamp(42px,6.5vh,60px);flex-shrink:0}
.school-branded .intro-panel h1{font-size:clamp(23px,3.4vh,32px);margin:clamp(12px,2.5vh,28px) 0 10px}
.intro-panel>p{line-height:1.6}.edition{margin-top:12px}
.module-strip{margin-top:16px;gap:8px}.module-icon{width:clamp(34px,5vh,50px);height:clamp(34px,5vh,50px);font-size:24px;border-radius:10px}
.workspace-picker fieldset{min-width:0;margin-bottom:18px}.workspace-picker>p{margin-bottom:16px}.workspace-picker .workspace-hint{margin-top:0}
.choice{min-width:0;max-width:100%;min-height:40px;padding:10px;gap:8px;line-height:1.3}.choice input{padding:0;flex-shrink:0}.choice-grid{gap:7px}
.school-identity{padding:12px;gap:14px;margin-bottom:12px}.school-identity strong{font-size:clamp(16px,1.5vw,19px)}.school-badge{width:clamp(48px,7vh,72px);height:clamp(58px,8.5vh,88px)}
.portal-choices{gap:8px;margin-bottom:10px}.portal{padding:12px 10px;gap:8px}.portal>div{min-width:0}.portal small{overflow-wrap:anywhere}
.auth-tabs{margin-bottom:10px}.auth-tabs a{min-width:0;padding:10px 3px}
.portal-hero{height:clamp(110px,20vh,218px)}.portal-hero h2{font-size:clamp(23px,3vh,30px)}
.feature-pills{margin:8px 0;font-size:11px;gap:8px}.feature-pills span{font-size:21px}
.credential{margin:8px 0}.credential input{padding:11px 14px}.credential>span{padding:10px 12px}
.signin-options{margin:8px 0;flex-wrap:wrap}.signin-submit{padding:12px}.new-staff{margin:10px 0 14px}
.signin-credit{overflow-wrap:anywhere}.school-identity strong,.workspace-footer span,.workspace-hint{overflow-wrap:anywhere}
@media(min-width:901px) and (max-height:820px){
 .signin-scene{--panel-space:14px}.edition{margin-top:8px;padding:5px 10px}.school-branded .intro-panel h1{margin-top:12px;font-size:25px;line-height:1.2}.intro-panel>p{font-size:12px;line-height:1.5}
 .module-strip{margin-top:12px}.module-strip small{font-size:8px}.module-icon{margin-bottom:5px}
 .workspace-picker h2{font-size:18px}.workspace-picker>p{margin:3px 0 12px}.workspace-picker fieldset{margin-bottom:12px}.workspace-picker legend{margin-bottom:7px;font-size:12px}.choice{padding:8px;font-size:11px;min-height:36px}.workspace-picker .workspace-hint{font-size:10px;padding:6px 8px}.workspace-footer{padding-block:10px}
 .school-identity{padding:9px 12px;gap:12px;margin-bottom:9px}.school-badge{width:48px;height:58px}.school-identity small{margin-top:3px;font-size:11px}
 .portal{padding:9px 8px}.portal small{margin-top:2px}.portal-choices{margin-bottom:8px}.auth-tabs{padding:3px;margin-bottom:8px}.auth-tabs a{padding:8px 3px;font-size:12px}
 .portal-hero{height:clamp(90px,16vh,130px)}.portal-hero>div{bottom:10px}.portal-hero h2{font-size:24px}.school-branded .portal-hero p{font-size:12px}
 .feature-pills{margin:6px 0;font-size:10px}.feature-pills span{font-size:18px}.credential input{padding:9px 12px}.credential>span{padding:9px 12px}.signin-options{font-size:10px;margin:7px 0}.signin-submit{padding:10px}.new-staff{font-size:12px;margin:8px 0 10px}.signin-credit{font-size:9px}
}
@media(max-width:900px){
 .signin-layout{display:flex;flex-direction:column;height:auto;max-width:680px;gap:var(--edge)}
 .workspace-panel,.signin-panel{max-height:none;overflow:visible;overscroll-behavior:auto}
 .signin-panel{order:-1;padding:clamp(16px,4vw,28px)}.signin-content{margin:0}
 .workspace-panel{overflow:hidden}.workspace-picker{min-height:0}.school-identity strong{font-size:18px}.portal-hero{height:clamp(120px,25vh,200px)}
 .module-strip{grid-template-columns:repeat(7,minmax(0,1fr))}.module-strip small{font-size:9px}.intro-panel,.workspace-picker{padding:clamp(16px,4vw,28px)}
 .credential input{font-size:16px}.wordmark strong{font-size:26px}.school-branded .intro-panel h1{font-size:28px}
}
@media(max-width:480px){
 .signin-scene{--edge:8px}.signin-panel{padding:14px}.school-identity{padding:10px;gap:12px}.school-identity strong{font-size:16px}.school-identity small{font-size:11px}.school-badge{width:52px;height:64px}
 .portal{padding:11px 7px}.portal>span:first-child{display:none}.portal b{font-size:12px}.portal small{font-size:9px}.portal-choices{gap:6px}.auth-tabs a{font-size:12px}
 .credential>span{flex-basis:80px;font-size:12px}.credential input{padding-inline:10px}.signin-options{font-size:10px}
 .module-strip{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:14px}.choice{flex:1 1 135px;font-size:11px;min-height:42px}.choice-grid{gap:8px}.workspace-footer{flex-direction:column;gap:6px}
 .wordmark{gap:10px}.wordmark strong{font-size:23px}.wordmark small{font-size:11px}.edition{font-size:10px}.school-branded .intro-panel h1{font-size:25px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.signin-content .portal{color:#246bfd;text-decoration:none;border-radius:13px}.signin-content .portal.student{color:#ef4444}.signin-content .portal.parent{color:#0e9f6e}.signin-content .portal.active{outline:2px solid currentColor;outline-offset:-2px;box-shadow:none}.signin-content .portal:hover{text-decoration:none;filter:brightness(.97)}.student-context{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:8px}.student-context label{font-size:11px;gap:4px}.student-context input{padding:8px;width:100%}.community-page{max-width:1000px;margin:auto;padding:clamp(16px,4vw,36px)}.community-page header{display:flex;flex-wrap:wrap;gap:16px;align-items:center}.community-page .sidebar-platform{margin:0}.community-page p{line-height:1.6}.portal-availability{padding:16px;border-radius:8px;background:#f5faff}

.workspace-empty{font-size:12px;color:#617793;margin:0;padding:10px 12px;background:#eef3fa;border-radius:8px}.signin-submit:disabled{background:#94a3b8;cursor:not-allowed}.workspace-picker .error{font-size:12px;line-height:1.6}.workspace-picker .error a{color:inherit;font-weight:600}

button.department-switch{color:#10264c;font-weight:400;font-family:inherit;text-align:left}.department-switch[aria-pressed=true]{background:color-mix(in srgb,var(--tone) 15%,white);box-shadow:inset 0 0 0 1px var(--tone)}.department-switch:focus-visible{outline:2px solid var(--tone);outline-offset:3px}.department-switch:hover{filter:brightness(.97)}
.access-steps{padding-left:22px;color:#10264c;font-size:13px;line-height:1.5}.access-steps li{padding:6px 0 10px 5px}.access-steps span{display:block;color:#617793;margin-top:4px}.temporary-label{font-size:11px;color:#8a4a07;background:#fff7e6;padding:7px 10px;border-radius:6px;margin:8px 0}.student-details-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;margin-bottom:12px}.student-details-grid label{font-size:11px;gap:4px;min-width:0}.student-details-grid input{width:100%;padding:8px 10px}.student-dashboard{max-width:1250px;margin:0 auto;padding:clamp(14px,3vw,32px)}.dashboard-heading{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap}.dashboard-context{display:flex;gap:14px;flex-wrap:wrap;padding:16px;background:#f5faff;border-radius:10px;color:#365374;margin:20px 0}.summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.summary-card{background:white;border:1px solid #dde8f4;border-radius:13px;padding:20px;min-width:0}.summary-card h2{font-size:14px;color:#617793;margin:0 0 12px}.summary-card strong{display:block;font-size:22px;color:#10264c;overflow-wrap:anywhere}.summary-card p{font-size:13px;line-height:1.6;margin-bottom:0}.summary-card.unavailable{background:#f8fafc}.dashboard-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.dashboard-toolbar a{font-size:13px;color:#246bfd}.dashboard-notice{font-size:12px;line-height:1.6;background:#fff7e6;border:1px solid #f4d9a1;padding:12px 16px;border-radius:8px;color:#79500e}.student-dashboard .sidebar-platform{margin:0}.student-dashboard>header{display:flex;flex-wrap:wrap;gap:18px;align-items:center}.student-dashboard .school-identity{max-width:600px}.student-dashboard h1{font-size:clamp(22px,3vw,30px)}@media(max-width:800px){.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.student-details-grid input{font-size:16px}}@media(max-width:480px){.summary-grid{grid-template-columns:1fr}.student-details-grid{gap:9px}.student-details-grid label:nth-child(2){grid-column:1/-1}.access-steps{font-size:12px}.summary-card{padding:16px}}
.student-details-grid select{font:inherit;color:#10264c;border:1px solid #bdd0e5;border-radius:6px;background:white;width:100%;min-width:0;padding:8px 10px;min-height:34px}.student-details-grid select:focus{outline:2px solid #205dce}@media(max-width:800px){.student-details-grid select{font-size:16px}}
