/* ACE visual language. Every rule is scoped so staff, teacher and sign-in layouts retain their own styles. */
body.admin-workspace{--navy:#033071;--teal:#0a3c91;--ink:#153747;--muted:#526478;--line:#dce5ed;--bg:#f3f7f7;background:var(--bg)}
.admin-workspace #app>aside{width:240px;padding:30px 22px 20px;background:#033071;color:#eef5ff;z-index:20;overflow-y:auto;overscroll-behavior:contain}
.admin-workspace .admin-brand-row{display:flex;justify-content:center;align-items:center;flex-shrink:0}
.admin-workspace .admin-roji-logo{display:block;width:112px;height:auto;max-width:100%}
.admin-workspace .school{margin:24px auto 20px;padding:13px 0;width:100%;text-align:center;border-block:1px solid #d8e9ed40;color:#eef5ff;letter-spacing:2px;font-size:0.6875rem;line-height:1.7}
.admin-workspace .school small{display:block;letter-spacing:.25px;font-size:0.625rem;color:#c4d6ed;margin-top:5px}
.admin-workspace #dashboard-navigation{display:grid;gap:3px}
.admin-workspace #dashboard-navigation button,.admin-workspace .asidebottom button{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;text-align:left;margin:0;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:#e0edff;font-size:0.9375rem;font-weight:650;line-height:1.35}
.admin-workspace #dashboard-navigation button.active{background:#ffffff24;color:#fff}
.admin-workspace #dashboard-navigation button:hover,.admin-workspace .asidebottom button:hover{background:#ffffff18;filter:none}
.admin-workspace .admin-menu-icon{width:25px;height:27px;min-width:25px;flex-shrink:0;color:#ffd16a;filter:drop-shadow(0 1px 0 #06265c)}
.admin-workspace #dashboard-navigation .nav-label,.admin-workspace .asidebottom .nav-label{display:inline;width:auto}
.admin-workspace .student-subnavigation{margin:3px 0 8px 25px;padding-left:8px;border-color:#ffffff40}
.admin-workspace #dashboard-navigation .student-subnavigation button{min-height:40px;font-size:0.8125rem;padding:8px;gap:9px}
.admin-workspace .student-subnavigation .admin-menu-icon{width:19px;height:21px;min-width:19px}
.admin-workspace .asidebottom{margin-top:auto;padding:18px 0 0;border-color:#ffffff30;color:#d2e2f5;font-size:0.75rem;overflow-wrap:anywhere}
.admin-workspace .asidebottom p{margin:12px 0 0}
.admin-workspace .workspace{margin-left:240px;padding:28px 32px;min-width:0}
.admin-workspace .workspace>header{max-width:1400px;margin:auto;align-items:flex-start;gap:20px}
.admin-workspace h1{font-size:2.25rem;line-height:1.2;letter-spacing:-1px;margin:5px 0 14px;color:#153747}
.admin-workspace h2{font-size:1.375rem;line-height:1.3;letter-spacing:-.4px;color:#153747}
.admin-workspace h3{color:#153747}
.admin-workspace .eyebrow{color:#46678e;letter-spacing:1.7px;font-size:0.625rem}
.admin-workspace .toptools{gap:10px;flex-wrap:wrap;justify-content:flex-end;align-items:center;padding-top:4px}
.admin-workspace .pill{background:#eaf3ff;color:#0a3c91;border:1px solid #c8ddf7;padding:5px 11px}
.admin-workspace .demobar{max-width:1400px;margin:0 auto 24px;padding-bottom:18px;border-color:#dce5ed;color:#526478}
.admin-workspace #main{max-width:1400px;margin:auto;min-width:0}
.admin-workspace .card{background:#fff;border:1px solid #dce5ed;border-radius:12px;padding:24px;box-shadow:none;min-width:0}
.admin-workspace .stats{gap:18px;margin:22px 0 26px}
.admin-workspace .stats .card{border-top:4px solid #0a3c91}
.admin-workspace .metric{font-size:2.25rem;line-height:1.2;color:#0a3c91;margin:10px 0}
.admin-workspace .grid{gap:22px;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}
.admin-workspace button{border-radius:10px;border-color:#c7d8eb;min-height:40px}
.admin-workspace button.primary{background:#0a3c91;border-color:#0a3c91;color:white}
.admin-workspace button.primary:hover{background:#164fa6;filter:none}
.admin-workspace button.link{min-height:0;border-radius:3px;color:#0a3c91;line-height:1.6;text-align:left}
.admin-workspace select,.admin-workspace input,.admin-workspace textarea{border-color:#b9ccdf;border-radius:8px;min-height:42px;max-width:100%;accent-color:#0a3c91}
.admin-workspace input[type=checkbox],.admin-workspace input[type=radio]{min-height:0}
.admin-workspace button:focus-visible,.admin-workspace a:focus-visible,.admin-workspace input:focus-visible,.admin-workspace select:focus-visible,.admin-workspace textarea:focus-visible,.admin-workspace summary:focus-visible{outline:3px solid #2676c9;outline-offset:3px}
.admin-workspace #dashboard-navigation button:focus-visible,.admin-workspace .asidebottom button:focus-visible,.admin-workspace .admin-menu-toggle:focus-visible{outline-color:#ffd16a}
.admin-workspace .scroll{max-width:100%;overflow:auto;border-radius:10px}
.admin-workspace table{width:100%;border-collapse:collapse;font-size:0.875rem}
.admin-workspace th{background:#edf4fb;color:#274e78;font-size:0.6875rem;letter-spacing:.5px;padding:14px 12px}
.admin-workspace td{padding:15px 12px;border-color:#e5edf4;vertical-align:top}
.admin-workspace tbody tr:nth-child(even){background:#fcf8f0}
.admin-workspace .notice{background:#eaf3ff;border:1px solid #c8ddf7;border-radius:10px;color:#274e78;padding:14px}
.admin-workspace .drill-alert{background:#fffdf4;border-color:#e2d4a7}
.admin-workspace .settingsrow{border-color:#dce5ed}
.admin-workspace footer{max-width:1400px;margin:24px auto 0;color:#526478;gap:16px}
.admin-workspace #dialog{border:1px solid #c7d8eb;border-radius:16px;padding:26px;color:#153747;max-height:90dvh;overflow:auto}
.admin-workspace #dialog::backdrop{background:#15374780}
.admin-workspace .iep-overview{background:#edf4fb}
.admin-workspace .admin-menu-toggle{display:none}
@media(max-width:1100px){.admin-workspace .grid{grid-template-columns:minmax(0,1fr)}.admin-workspace .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-workspace .toptools{flex-direction:column;align-items:flex-end}.admin-workspace .workspace{padding:24px}}
@media(max-width:700px){
 .admin-workspace #app>aside{position:relative;inset:auto;width:100%;padding:16px 20px;overflow:visible}
 .admin-workspace .admin-brand-row{justify-content:space-between}
 .admin-workspace .admin-roji-logo{width:90px}
 .admin-workspace .admin-menu-toggle{display:block;background:#ffffff18;color:#fff;border:1px solid #ffffff60;padding:9px 14px;min-height:44px}
 .admin-workspace .school{margin:14px 0 0;padding:10px 0 0;border-bottom:0;font-size:0.625rem;text-align:left}
 .admin-workspace .school small{display:inline;margin-left:12px}
 .admin-workspace #dashboard-navigation{display:none;margin-top:14px;overflow:visible}
 .admin-workspace.admin-menu-open #dashboard-navigation{display:grid}
 .admin-workspace .student-navigation{width:100%}
 .admin-workspace #dashboard-navigation button{width:100%;white-space:normal;font-size:0.875rem;min-height:44px}
 .admin-workspace #dashboard-navigation button span{display:inline;width:auto}
 .admin-workspace .asidebottom{display:none}
 .admin-workspace.admin-menu-open .asidebottom{display:block;margin-top:14px}
 .admin-workspace .workspace{margin:0;padding:20px 16px}
 .admin-workspace .workspace>header{flex-direction:column;gap:0}
 .admin-workspace h1{font-size:1.875rem}
 .admin-workspace .toptools{flex-direction:row;justify-content:flex-start;align-items:center;margin-bottom:16px}
 .admin-workspace .stats{gap:12px}
 .admin-workspace .stats .card{padding:16px}
 .admin-workspace .metric{font-size:1.8125rem}
 .admin-workspace .card{padding:18px}
 .admin-workspace h2{font-size:1.25rem}
 .admin-workspace .roster-controls .formfield{min-width:0;flex-basis:100%}
 .admin-workspace footer{display:grid}
 .admin-workspace #dialog{padding:18px}
}
@media(prefers-reduced-motion:reduce){.admin-workspace *{scroll-behavior:auto!important}}

.admin-workspace .overview-roster-controls{display:grid;grid-template-columns:minmax(180px,1.1fr) minmax(150px,.8fr) minmax(200px,1.2fr) auto;gap:14px;align-items:end;margin:20px 0}
.admin-workspace .overview-roster-controls .formfield{margin:0;min-width:0}
.admin-workspace .overview-roster-controls select,.admin-workspace .overview-roster-controls input{width:100%}
.admin-workspace .overview-roster-group{border:1px solid #dce5ed;border-radius:12px;margin-top:14px;overflow:hidden}
.admin-workspace .overview-roster-group>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 18px;cursor:pointer;background:#edf4fb;list-style:none}
.admin-workspace .overview-roster-group>summary::-webkit-details-marker{display:none}
.admin-workspace .overview-roster-group>summary::before{content:'▸';color:#0a3c91;flex-shrink:0}
.admin-workspace .overview-roster-group[open]>summary::before{content:'▾'}
.admin-workspace .overview-roster-group>summary>span:first-of-type{flex:1;min-width:0}
.admin-workspace .overview-roster-group summary strong{display:block;font-size:1rem;color:#153747}
.admin-workspace .overview-roster-group summary small{display:block;margin-top:4px;overflow-wrap:anywhere}
.admin-workspace .overview-roster-count{white-space:nowrap;color:#0a3c91;font-size:0.75rem;font-weight:650}
.admin-workspace .overview-roster-group caption{text-align:left;padding:12px;font-size:0.75rem;color:#526478}
@media(max-width:1150px){.admin-workspace .overview-roster-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-workspace #overview-support-clear{justify-self:start}}
@media(max-width:600px){.admin-workspace .overview-roster-controls{grid-template-columns:minmax(0,1fr)}.admin-workspace .overview-roster-group>summary{padding:14px 12px;gap:8px}.admin-workspace .overview-roster-group summary strong{font-size:0.9375rem}}
.admin-workspace .admin-summary-card{text-align:left;width:100%;color:#526478;font-weight:400;cursor:pointer;transition:background-color .15s,border-color .15s}
.admin-workspace .admin-summary-card>span:first-child{display:block;font-size:0.8125rem}
.admin-workspace .admin-summary-card .metric{display:block;font-weight:700}
.admin-workspace .admin-summary-card small{display:block}
.admin-workspace .admin-summary-card:hover{background:#edf4fb;border-color:#0a3c91;filter:none}
.admin-workspace .admin-summary-card:focus-visible{outline:3px solid #2676c9;outline-offset:4px}
.admin-workspace .alert-status-controls{margin-bottom:20px}
.admin-workspace .alert-status-controls .formfield{max-width:320px}
.admin-workspace .alert-settings-disclosure{margin-top:24px;border:1px solid #dce5ed;border-radius:10px}
.admin-workspace .alert-settings-disclosure>summary{cursor:pointer;padding:16px;background:#edf4fb;border-radius:10px;color:#0a3c91}
.admin-workspace .alert-settings-disclosure>summary h2{display:inline;margin:0;font-size:1.25rem}
.admin-workspace .alert-settings-disclosure[open]>summary{border-radius:10px 10px 0 0;border-bottom:1px solid #dce5ed}
.admin-workspace .alert-settings-disclosure>form{padding:0 18px 18px}

.admin-roji-launch{position:fixed;right:22px;bottom:22px;z-index:80;display:flex;align-items:center;gap:8px;background:#153570;color:white;border-radius:30px;padding:8px 18px;box-shadow:0 4px 20px #1234}.admin-roji-launch img{width:52px;height:52px;object-fit:contain}.admin-roji-panel{position:fixed;z-index:81;right:20px;bottom:100px;width:min(390px,calc(100vw - 24px));max-height:calc(100dvh - 130px);overflow:auto;background:white;border:1px solid #ccd6e2;border-radius:18px;box-shadow:0 8px 36px #1234;padding:18px}.admin-roji-panel[hidden]{display:none}.admin-roji-panel header{display:flex;justify-content:space-between;align-items:center}.admin-roji-log{height:230px;overflow:auto;overscroll-behavior:contain}.admin-roji-log p{padding:10px;background:#edf4fb;border-radius:10px;white-space:pre-wrap}.admin-roji-controls{display:flex;flex-wrap:wrap;gap:6px}.admin-roji-panel button:focus-visible,.admin-roji-launch:focus-visible{outline:3px solid #d29310;outline-offset:3px}.admin-roji-panel textarea{width:100%}@media(max-width:600px){.admin-roji-panel{right:12px;bottom:90px}.admin-roji-launch{right:12px;bottom:12px}.admin-roji-log{height:180px}}

/* Keep Roji visible while only the conversation scrolls. */
.admin-roji-panel{box-sizing:border-box;display:flex;flex-direction:column;gap:8px;height:min(760px,calc(100dvh - 130px));overflow:hidden}
.admin-roji-panel header,.admin-roji-panel form,.admin-roji-controls,.admin-roji-status,.admin-roji-panel>.muted{flex-shrink:0}
.admin-roji-panel header h2{margin:0}.admin-roji-panel>.muted{font-size:0.75rem;margin:0}
.admin-roji-mascot{flex:0 0 150px;display:flex;justify-content:center;align-items:center;min-height:0}
.admin-roji-mascot img{display:block;width:150px;height:150px;object-fit:contain}
.admin-roji-log{flex:1;min-height:65px;height:auto;overflow-y:auto}.admin-roji-status:empty{display:none}.admin-roji-status{margin:0;font-size:0.75rem}
.admin-roji-panel textarea{box-sizing:border-box;min-height:56px;max-height:100px}.admin-roji-panel form{margin:0}
@media(max-height:700px){.admin-roji-mascot{flex-basis:95px}.admin-roji-mascot img{width:95px;height:95px}.admin-roji-panel{bottom:82px;height:calc(100dvh - 94px);max-height:calc(100dvh - 94px);padding:12px}.admin-roji-panel .formfield{margin:0}}

.admin-workspace .parent-roji-brand{display:flex;justify-content:center;width:100%;box-sizing:border-box}
