.auth-layout{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr;background:#fff}.auth-story{background:var(--green);color:#fff;padding:clamp(32px,6vw,100px);display:flex;flex-direction:column;justify-content:center;gap:24px}.auth-story .brand{color:white;padding:0}.auth-story h1{font-size:clamp(30px,3.5vw,52px);line-height:1.2;letter-spacing:-1.5px;max-width:570px;margin:16px 0}.auth-story p{font-size:16px;line-height:1.8;max-width:520px;color:#d6e9e0}.auth-points{display:grid;gap:16px;font-size:14px}.auth-points span{display:flex;gap:12px;align-items:center}.auth-form-wrap{padding:40px 28px;display:grid;place-items:center}.auth-form{max-width:420px;width:100%}.auth-form h2{font-size:28px;margin:0 0 12px}.auth-form form{display:grid;gap:18px}.auth-form .field{font-size:13px}.auth-form input{padding:13px}.auth-form .help-text{margin-bottom:26px}.auth-form .btn{justify-content:center}.auth-form .error:empty{display:none}.platform-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.institute-card{padding:23px;display:flex;flex-direction:column;gap:14px}.institute-card h3{font-size:18px;margin:0}.institute-card p{margin:0}.institute-card .actions{margin-top:auto;flex-wrap:wrap}.theme-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.theme-choice{border:2px solid var(--border);background:white;border-radius:10px;padding:14px;text-align:left;color:var(--ink)}.theme-choice.selected{border-color:var(--green)}.theme-swatch{display:flex;gap:4px;margin-bottom:10px}.theme-swatch i{height:24px;width:28px;border-radius:5px}.branding-preview{padding:24px;border-radius:12px;border:1px solid var(--border);margin:22px 0}.branding-preview h3{margin-top:0}.branding-preview .preview-nav{display:flex;gap:12px;margin:15px 0}.branding-preview .preview-nav span{padding:8px 12px;border-radius:6px}.branding-preview .preview-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.branding-preview .preview-cards div{background:white;border:1px solid #ddd;border-radius:9px;padding:16px}.template-toolbar{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:20px}.template-toolbar input{flex:1;min-width:180px}.template-card .category-line{display:flex;justify-content:space-between;gap:8px}.provider-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.provider-block{padding:20px;border:1px solid var(--border);border-radius:10px}.provider-block .field{margin-bottom:15px}.provider-block h3{margin-top:0}.pill.blue{background:#eaf2ff;color:#31568c}.pill.red{background:#fceeee;color:#b24e4e}.pill.purple{background:#f0ebfa;color:#735699}.status-line{display:flex;justify-content:space-between;gap:12px;font-size:12px;align-items:center;margin:12px 0}.brand-icon img{width:24px;height:24px;object-fit:contain}.save-state{font-size:11px;color:var(--muted)}.save-state.dirty{color:#9d6500}.account-bar{display:flex;gap:7px;align-items:center}.topbar .account-bar .btn{padding:7px 10px;font-size:11px}.batch-stats{display:flex;gap:8px;flex-wrap:wrap}.metric-list{display:grid;gap:12px}.metric-list .metric{display:flex;gap:12px;align-items:center}.metric .track{flex:1;height:8px;border-radius:20px;background:#eaf0e9;overflow:hidden}.metric .track i{display:block;height:100%;background:var(--green)}.metric label{width:86px;font-size:12px}.metric b{min-width:24px;font-size:12px}.dialog-foot{flex-wrap:wrap}.read-only .mutating{display:none}.onboarding-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.onboarding-step{padding:15px;background:#f2f6ed;border-radius:10px;font-size:12px;line-height:1.7}.onboarding-step b{display:block;color:var(--green)}.brand{overflow-wrap:anywhere}.sidebar .brand{font-size:18px}.school-switch{min-width:0}.school-switch span:nth-child(2){min-width:0;overflow-wrap:anywhere}.theme-choice:focus-visible,.institute-card button:focus-visible{outline:2px solid var(--green)}.provider-list small{display:block;overflow-wrap:anywhere}.full-width{grid-column:1/-1}.consent-box{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.6}.consent-box input{margin-top:4px}.sync-warning{margin-bottom:18px;background:#fff3d9;color:#805719;border:1px solid #eed39e;border-radius:9px;padding:12px;line-height:1.7;font-size:12px}.account-menu{display:flex;gap:8px}.empty-institute{padding:40px;text-align:center}.empty-institute h2{font-size:26px}.section-divider{margin:25px 0;border:0;border-top:1px solid var(--border)}
.brand,.page-head h1,.panel h2,.panel h3,.section-title,.template-card h3,.dialog-head h2{font-family:inherit}.nav button.active,.settings-nav button.active{background:color-mix(in srgb,var(--green) 10%,white);color:var(--green)}.btn.primary,.brand-icon{background:var(--green)}.school-initial,.preview-message,.notice,.onboarding-step{background:color-mix(in srgb,var(--green) 5%,white)}.variable{color:var(--green);background:color-mix(in srgb,var(--accent) 25%,white)}.language-switch{max-width:125px;padding:6px 8px!important;font-size:12px}.panel{min-width:0}.stat-foot{line-height:1.5}.theme-choice strong{display:block}.nav button.active{border-left:3px solid var(--green)}.radio-card:has(input:checked){border-color:var(--green);background:color-mix(in srgb,var(--green) 6%,white)}
@media(max-width:1100px){.platform-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.onboarding-steps{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){.auth-layout{grid-template-columns:1fr}.auth-story{padding:32px 24px}.auth-story h1{font-size:30px;margin:0}.auth-story p{margin:0;font-size:14px}.auth-points{display:none}.auth-form-wrap{padding:32px 24px}.provider-grid{grid-template-columns:1fr}.account-bar .save-state{display:none}.platform-grid{grid-template-columns:1fr}.theme-grid{grid-template-columns:repeat(2,1fr)}.topbar .account-bar .btn{padding:7px}.topbar .breadcrumb{min-width:0}.breadcrumb b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(max-width:480px){.branding-preview .preview-cards{grid-template-columns:1fr}.branding-preview{padding:16px}.account-bar .user-name{display:none}.onboarding-steps{grid-template-columns:1fr 1fr}.theme-choice{padding:10px}.provider-block{padding:14px}.dialog-foot .btn{flex:1}.auth-story .brand{padding:0}.auth-story h1{font-size:27px}}
#academic-form table{min-width:520px}#academic-form td:first-child{width:90px}#academic-form select{min-width:175px}#academic-form td:last-child input{min-width:120px}
#academic-error:empty,#promotion-error:empty{display:none}
.auth-recovery-link{width:100%;margin-top:14px}.recovery-methods{margin-bottom:20px;flex-wrap:wrap}.recovery-methods .btn{flex:1}.recovery-codes{width:100%;min-height:250px;font-family:monospace;line-height:1.9;white-space:pre;resize:vertical}.dialog-body #recovery-form,.dialog-body #reset-link-form{display:grid;gap:16px}.sidebar .profile .icon-btn{margin-left:auto;flex-shrink:0}.topbar .top-right{flex-wrap:wrap}@media(max-width:800px){.password-shortcut span{display:none}.topbar .account-bar .password-shortcut{padding:7px}.recovery-methods .btn{min-width:125px;white-space:normal}}
.selected-bar{flex-wrap:wrap}.selected-bar>span{min-width:0}@media(max-width:600px){.selected-bar>span{flex:0 0 100%}.selected-bar .btn{white-space:normal;max-width:100%;flex:1 1 auto}}
.btn.primary,.brand-icon,.auth-story{color:var(--on-primary,#fff)}.auth-story p{color:inherit;opacity:.85}.page-head h1,.page-head p,.eyebrow,.bottom-note{color:var(--page-ink,#233c36)}.page-head p,.bottom-note{opacity:.7}.nav button.active,.settings-nav button.active,.text-btn,.school-initial{color:var(--brand-ink,var(--green))}.nav button.active{border-left-color:var(--accent)} @media print{.page-head h1,.page-head p,.eyebrow,.bottom-note{color:#000!important}}

:root{--muted:#596960}.nav button,.nav-label{color:var(--muted)}.skip-link{position:fixed;left:12px;top:-100px;z-index:1000;background:#fff;color:#174f43;padding:12px 18px;border:2px solid #174f43;border-radius:6px}.skip-link:focus{top:12px}:focus-visible{outline:3px solid #145b87;outline-offset:3px}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

@media(max-width:800px){.topbar{height:auto;min-height:65px;padding-block:12px}.top-right{justify-content:flex-end}.page-head .actions{max-width:100%;flex-wrap:wrap}.page-head .actions .btn{min-width:0;white-space:normal;flex:1 1 140px}.filters .control{min-width:0;max-width:100%;flex:1 1 130px}.account-bar{flex-wrap:wrap;justify-content:flex-end}}
/* Spreadsheet mapping wizard */
.dialog.import-dialog{max-width:1100px;width:calc(100% - 24px)}.import-hero{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px}.import-hero h3{font-size:22px;margin:0}.import-hero p{margin:5px 0;color:#596960}.import-hero>.btn{margin-left:auto}.import-mark{background:#174f43;color:white;padding:16px;border-radius:14px}.import-steps{display:grid;grid-template-columns:repeat(4,1fr);padding:18px;gap:12px;list-style:none;background:#f5faf7;border:1px solid #dbe7e0;border-radius:14px}.import-steps li{display:flex;gap:9px;align-items:center;font-size:13px;color:#596960}.import-steps li span{display:grid;place-items:center;background:white;border:1px solid #b9ccc2;border-radius:50%;width:30px;height:30px;flex-shrink:0}.import-steps li.current{font-weight:700;color:#174f43}.import-steps li.current span,.import-steps li.done span{background:#174f43;color:white}.import-card{padding:22px;border:1px solid #dbe7e0;border-radius:14px;margin-top:18px}.import-options{display:flex;gap:15px;flex-wrap:wrap}.import-options>.field{flex:1;min-width:200px}.import-summary{display:flex;gap:12px;flex-wrap:wrap;margin:15px 0}.import-summary>div{background:#f1f7f3;border-radius:10px;padding:16px;flex:1;min-width:130px;font-size:13px}.import-summary strong{display:block;font-size:25px}.import-map select{min-width:240px}.import-map td{max-width:350px;white-space:normal;overflow-wrap:anywhere}.import-check{display:flex;align-items:center;gap:10px;margin:18px 0}.import-check input{width:18px;height:18px}@media(max-width:600px){.import-steps{grid-template-columns:1fr 1fr}.import-card{padding:14px}.import-hero h3{font-size:18px}.import-hero>.btn{margin-left:0}.dialog.import-dialog{width:100%}}
/* Capacity/mobile audit: readable status text, keyboard scroll regions and touch targets. */
.pill{color:#37633f}.pill.gray{color:#526259}.pill.amber{color:#79591d}.pill.red{color:#9c3434}.setup-card p{color:#52633f}.avatar{color:#725638}th{color:#596960}.positive{color:#376b3d}.icon-btn{color:#526259}.text-btn{min-height:32px}.table-wrap:focus-visible{outline-offset:-3px}.mobile-nav-close{display:none}
@media(max-width:800px){.mobile-nav-close{display:flex;margin-bottom:16px;min-height:44px}.sidebar{overflow-y:auto;overscroll-behavior:contain}.sidebar .brand{padding-bottom:18px}.sidebar .school-switch{margin-bottom:18px}.sidebar .setup-card{margin-top:18px}.sidebar .profile{padding-bottom:12px}.icon-btn{min-width:44px;min-height:44px}.control:not([type=checkbox]):not([type=radio]),.btn{min-height:44px;font-size:16px}.text-btn{min-height:44px}.checkbox,input[type=checkbox],input[type=radio]{min-width:24px;min-height:24px}.topbar{flex-wrap:wrap}.topbar .breadcrumb{flex:1}.topbar .top-right{width:100%;justify-content:space-between}.dialog-head h2,.dialog-body,.field,.form-grid>*{min-width:0;overflow-wrap:anywhere}.dialog-foot{flex-wrap:wrap}.dialog-foot .btn{white-space:normal}.import-options>.field{min-width:0;flex-basis:100%}.import-summary>div{min-width:0;flex-basis:100%}.import-steps{padding:12px;gap:8px}.import-steps li{font-size:12px}.page-head,.bottom-note{overflow-wrap:anywhere}.form-grid{min-width:0}}
.student-avatar{color:#456137}
.notice{color:#53613c}
.step-no{color:#416332}.table-bottom{flex-wrap:wrap;gap:12px}
.control,.checkbox{border-color:#7b8d81}
.sidebar{overflow-y:auto;overscroll-behavior:contain}
.setup-card button,.demo-banner button{min-height:32px}@media(max-width:800px){.setup-card button,.demo-banner button{min-height:44px}}
input[type=checkbox],input[type=radio],.checkbox{min-width:24px;min-height:24px}
