/* Workspace proportions taken from Aufgaben Ready and NumaDesk; Farsino palette retained. */
body :is(.header-tools,.demo-top) .teacher-notification{display:inline-flex;position:relative;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;padding:10px;border:1px solid #ded6c8;border-radius:50%;background:#f8f0e2;color:#173333;margin:0}
.teacher-notification svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.teacher-notification-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.teacher-notification.has-new::after{content:attr(data-count-label);position:absolute;inset-block-start:-3px;inset-inline-end:-3px;min-width:19px;height:19px;padding-inline:3px;display:grid;place-items:center;border-radius:10px;background:#b94f35;color:#fff;font-size:11px;font-weight:700;line-height:1}
.teaching-form .assignment-activity-grid{gap:12px;border:0;padding:0}
.assignment-activity-intro{grid-column:1/-1;margin:0;color:#52645a;line-height:1.65}
.assignment-activity-option{min-width:0;padding:16px;border:1px solid #ded6c8;border-radius:14px;background:#fffaf2;display:flex;flex-direction:column;gap:12px}
.assignment-activity-option:has(input:checked){border-color:#214e43;background:#e8f2eb}
.assignment-activity-option .teaching-check{align-items:flex-start;gap:12px;margin:0;flex:1}
.assignment-activity-option input{margin-top:5px}
.assignment-activity-copy{display:grid;gap:6px;min-width:0}
.assignment-activity-copy strong{font-size:1rem;line-height:1.5}
.assignment-activity-copy small{font-size:.9rem;line-height:1.65;color:#52645a}
.assignment-activity-option .account-button{align-self:flex-start;min-height:44px;margin:0}
.assignment-activity-summary{padding:12px 16px;border:1px solid #ded6c8;border-radius:12px}
.assignment-activity-summary summary{cursor:pointer;font-weight:600;line-height:1.65;min-height:44px;display:flex;align-items:center}
.assignment-activity-summary[open]>strong{display:block;margin-top:12px}
.dashboard-mobile-dock{display:none}
.dashboard-refresh-icon{display:none}
.dashboard-sidebar .dashboard-navigation,.dashboard-sidebar .teacher-nav-tabs{display:flex;flex-direction:column;grid-template-columns:minmax(0,1fr);flex-wrap:nowrap;align-items:stretch;width:100%;min-width:0}
.dashboard-sidebar .dashboard-navigation{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin}
.dashboard-sidebar .teacher-nav-tabs button,.dashboard-sidebar .admin-navigation button{flex:0 0 auto;width:100%;text-align:start;justify-content:flex-start;white-space:normal}
.dashboard-sidebar{overflow:hidden}
.dashboard-sidebar>:not(.dashboard-navigation){flex-shrink:0}
#account.classroom-active .account-layout{width:100%;max-width:none;margin:0;gap:0;display:block}
#account.classroom-active .account-intro{display:none}
#account.classroom-active .account-card{background:transparent;border:0;border-radius:0;box-shadow:none;width:100%;margin:0;min-width:0}
.modern-dashboard details,.classroom-active :is(.family-hub,.family-child-card,.teacher-connection-tools,.family-child-progress){background:#f8f0e2}
#account.classroom-active:has(.dashboard-frame){animation:none;transform:none}
body:has(#account.classroom-active.active .dashboard-frame) .topbar:has(.account-header-menu[open]){z-index:90}
body:is(:has(#account.classroom-active.active .dashboard-frame),:has(#demo-workspace .dashboard-frame)){min-height:100vh;min-height:100dvh;background:linear-gradient(90deg,rgba(41,89,79,.035) 1px,transparent 1px) 0 0 / 78px 78px,linear-gradient(rgba(41,89,79,.025) 1px,transparent 1px) 0 0 / 78px 78px,radial-gradient(circle at 4% 1%,#f8d5a5 0 7%,transparent 24%),radial-gradient(circle at 96% 24%,#cde5db 0 8%,transparent 25%),#f4efe5;background-repeat:repeat,repeat,no-repeat,no-repeat}
body:is(:has(#account.classroom-active.active .dashboard-frame),:has(#demo-workspace .dashboard-frame))::before{display:none}
body:has(#account.classroom-active.active .dashboard-frame) .app-shell{width:calc(100% - 244px);max-width:none;margin:0;margin-inline-start:244px}
body:has(#account.classroom-active.active .dashboard-frame) .topbar{height:68px;min-height:68px;position:sticky;top:0;z-index:40;margin:0;padding:10px 32px;border:0;border-bottom:1px solid #ded6c8;border-radius:0;box-shadow:none;background:#f8f0e2}
body:has(#account.classroom-active.active .dashboard-frame) .topbar>.brand{display:none}
body:has(#account.classroom-active.active .dashboard-frame) .header-tools{display:flex;justify-content:flex-end;align-items:center;width:100%;gap:12px;margin:0}
body:has(#account.classroom-active.active .dashboard-frame) .account-view{padding:0!important}
body:has(#account.classroom-active.active .dashboard-frame) .account-layout{width:100%;max-width:none;margin:0;display:block}
body:has(#account.classroom-active.active .dashboard-frame) .account-card{padding:28px 32px!important}
.dashboard-frame{display:block}.dashboard-content{max-width:1220px;margin-inline:auto;gap:24px}
.dashboard-sidebar{position:fixed;inset-block:0;inset-inline-start:0;width:244px;max-height:100dvh;height:100dvh;padding:24px 16px 16px;display:flex;flex-direction:column;gap:0;overflow:auto;border:0;border-inline-end:1px solid #ded6c8;border-radius:0;background:#f8f0e2;box-shadow:none;z-index:60;overscroll-behavior:contain}
.dashboard-brand{display:flex;align-items:center;gap:11px;min-height:44px;padding:0 8px;color:#173333;text-decoration:none;font-size:1.16rem;letter-spacing:-.02em}
.dashboard-brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#b94f35;color:#f8f0e2;font-size:1.55rem;font-weight:800;box-shadow:3px 3px 0 #e9b06d}
.dashboard-workspace-card{display:flex;align-items:center;gap:10px;margin:28px 4px 0;padding:13px 11px;border:1px solid #ded6c8;border-radius:9px;background:#f4efe5;font-size:.78rem;line-height:1.6}.dashboard-workspace-card svg{width:22px;height:22px;fill:none;stroke:#667372;stroke-width:1.6;flex:none}
.dashboard-sidebar-caption{margin:26px 12px 12px;font-size:.68rem;letter-spacing:.04em;color:#667372;font-weight:600}
.modern-dashboard .dashboard-navigation{gap:4px;flex:none}.dashboard-navigation .teacher-nav-tabs{gap:4px}
.modern-dashboard .dashboard-navigation button{min-height:44px;padding:10px 12px;border-radius:8px;font-size:.84rem;gap:11px;font-weight:500;color:#667372}
.modern-dashboard .dashboard-navigation button[aria-pressed=true]{color:#173333;background:#e8f2ed;font-weight:800;box-shadow:inset 3px 0 0 #173333}
[dir=rtl] .modern-dashboard .dashboard-navigation button[aria-pressed=true]{box-shadow:inset -3px 0 0 #173333}
.dashboard-navigation svg{width:18px;height:18px;stroke-width:1.7}.dashboard-identity{display:flex;align-items:center;gap:10px;margin-top:auto;padding:20px 6px 4px;font-size:.76rem;line-height:1.7;border-top:1px solid #ded6c8}.dashboard-avatar{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:50%;background:#e8f2ed;font-size:1rem;font-weight:700}
.dashboard-content>.teaching-heading{padding:0 0 21px;row-gap:6px;border-bottom:0}.modern-dashboard .teaching-heading h1{font-size:1.6rem;letter-spacing:-.025em;line-height:1.5}.dashboard-context{font-size:.76rem;color:#667372}
.modern-dashboard .account-button{border-radius:7px;font-size:.82rem;padding:8px 13px;box-shadow:0 1px 2px #17333305}.modern-dashboard .account-button.primary{box-shadow:0 2px 5px #17333312}
.modern-dashboard :is(.admin-card,.teacher-learner-card,.teaching-assignment,.teacher-activity-row,.profile-lesson-card){border-radius:10px;border-color:#ded6c8;padding:20px;box-shadow:0 2px 7px #17333304}
.dashboard-stats{gap:16px}.dashboard-stat{padding:22px 24px;border-radius:10px;box-shadow:0 2px 7px #17333304;border-color:#ded6c8}.dashboard-stat strong{font-size:2rem;font-weight:700;line-height:1.4;letter-spacing:-.03em}.dashboard-stat span{display:block;font-size:.76rem;margin-top:5px;font-weight:500}
.dashboard-welcome,.dashboard-next{padding:26px;border-radius:10px;box-shadow:0 2px 7px #17333304}.dashboard-next{border-inline-start:3px solid #b94f35}.dashboard-next>.primary{margin-block:6px 18px}.dashboard-quick-actions{padding-top:16px;border-top:1px solid #ded6c8;gap:8px}.dashboard-welcome h2,.dashboard-next h2{font-size:1.1rem}
.modern-dashboard .teacher-activity>.teaching-heading{padding:8px 0 0;margin-bottom:14px}.modern-dashboard .teacher-activity>p.account-note{font-size:.8rem;margin:0 0 16px}.modern-dashboard .teacher-activity .teacher-activity-list{margin-top:16px}.modern-dashboard .teacher-activity .teacher-activity-row{padding:18px 20px}
.modern-dashboard .teaching-form{padding:20px;border:1px solid #ded6c8;border-radius:10px;background:#f8f0e2}.modern-dashboard :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-radius:7px;font-size:.88rem;border-color:#b8cfc3;padding:10px 12px}.modern-dashboard .teaching-field>span{font-size:.78rem;font-weight:600}
.modern-dashboard .teacher-quick-select{padding:16px 18px;background:#f8f0e2;border:1px solid #ded6c8;border-radius:9px;max-width:540px}.modern-dashboard .profile-lesson-grid{gap:16px}.modern-dashboard .profile-lesson-card .teaching-heading{margin:0;display:flex;align-items:center;justify-content:space-between}.profile-lesson-letter{width:42px;border-radius:8px}.modern-dashboard .profile-lesson-card h3{font-size:.98rem}
#demo-app{width:calc(100% - 244px);margin:0;margin-inline-start:244px;max-width:none;padding:0}.demo-top{height:68px;min-height:68px;margin:0;padding:10px 32px;position:sticky;top:0;z-index:40;border-bottom:1px solid #ded6c8;background:#f8f0e2;gap:16px}.demo-top>.demo-brand{display:none}.demo-top>.account-actions{margin-inline-start:auto}.demo-roles{display:none!important}#demo-workspace{padding:28px 32px}.demo-bottom{padding:18px 32px;margin:0;border-top:1px solid #ded6c8;font-size:.75rem;background:#f8f0e2}.demo-bottom p{font-size:.73rem;max-width:85ch;line-height:1.8}.demo-workspace-picker{display:flex;align-items:center;gap:10px;font-size:.72rem;color:#667372;font-weight:600}.demo-workspace-picker select{min-height:40px;padding:8px 28px 8px 10px;border:1px solid #ded6c8;background:#f4efe5;border-radius:7px;color:#173333;font:inherit;font-size:.82rem;max-width:160px}.demo-top .account-button{min-height:40px;font-size:.76rem;padding:8px 10px;border-radius:7px}
@media(max-width:1000px) and (min-width:701px){#demo-workspace,body:has(#account.classroom-active.active .dashboard-frame) .account-card{padding:24px!important}.demo-top,body:has(#account.classroom-active.active .dashboard-frame) .topbar{padding-inline:24px}.demo-workspace-picker>span{display:none}}
@media(max-width:700px){
 body:has(#account.classroom-active.active .dashboard-frame) .app-shell,#demo-app{width:100%;margin:0}.dashboard-sidebar{display:none;inset-block:0;inset-inline-start:0;width:min(284px,calc(100vw - 44px));height:100dvh;max-height:100dvh;border-radius:0;padding:20px 16px;z-index:102}.dashboard-menu-open .dashboard-sidebar{display:flex}.dashboard-menu-close{margin-bottom:8px;align-self:flex-end}.dashboard-brand{padding:0 8px}.dashboard-workspace-card{margin-top:18px}.dashboard-sidebar-caption{margin-top:20px}.dashboard-identity{padding-bottom:10px}
 .demo-top{height:auto;min-height:64px;padding:10px 16px;flex-wrap:wrap;gap:8px}.demo-workspace-picker{gap:6px}.demo-workspace-picker>span{display:none}.demo-workspace-picker select{max-width:130px;min-height:44px}.demo-top .account-actions{gap:3px}.demo-top .account-button{padding:8px 6px;min-height:44px;font-size:.72rem}#demo-workspace{padding:0 16px 24px}.demo-bottom{padding:18px 16px;align-items:flex-start;flex-wrap:wrap}
 .dashboard-mobilebar{top:0;margin:0 -16px 22px;padding:10px 16px;border:0;border-bottom:1px solid #ded6c8;border-radius:0;box-shadow:none;background:#f8f0e2;min-height:60px;z-index:65}.dashboard-mobilebar strong{font-size:.84rem}.dashboard-menu-button{font-size:.76rem;border-radius:7px;min-height:44px}.dashboard-content{gap:20px}.dashboard-content>.teaching-heading{padding:0;gap:10px}.modern-dashboard .teaching-heading h1{font-size:1.4rem}.modern-dashboard .teaching-heading .account-actions{gap:6px}.modern-dashboard .account-button{font-size:.78rem;padding:9px 12px}
 .dashboard-stat{padding:16px 11px}.dashboard-stat strong{font-size:1.6rem}.dashboard-stat span{font-size:.69rem;line-height:1.7}.dashboard-stats{gap:8px}.dashboard-welcome,.dashboard-next{padding:20px}.modern-dashboard .teacher-quick-select{max-width:none}.modern-dashboard .dashboard-subnavigation{margin-top:12px}
 body:has(#account.classroom-active.active .dashboard-frame) .topbar{height:auto;min-height:64px;padding:10px 16px;position:relative;flex-wrap:wrap}.topbar>.brand{display:flex!important}body:has(#account.classroom-active.active .dashboard-frame) .account-card{padding:0 16px 24px!important}body:has(#account.classroom-active.active .dashboard-frame) .header-tools{flex-wrap:wrap;width:auto}
}
.dashboard-stat{position:relative;padding-inline-end:78px}.dashboard-stat>svg{position:absolute;inset-inline-end:20px;top:22px;width:42px;height:42px;padding:10px;fill:none;stroke:#173333;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;border-radius:9px;background:#e8f2ed}.modern-dashboard .dashboard-stat>strong{font-size:2rem;line-height:1.4}.modern-dashboard .dashboard-stat p{font-size:.76rem;margin:3px 0 0}
.modern-dashboard .teacher-activity-row{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;row-gap:5px;align-items:start}.teacher-activity-row>h3,.teacher-activity-row>p{grid-column:1;margin:0}.teacher-activity-row>h3{font-size:.85rem}.teacher-activity-row>.activity-title{font-weight:700;font-size:.94rem}.teacher-activity-row>strong{grid-column:2;grid-row:1;padding:4px 9px;border-radius:6px;font-size:.7rem;color:#b94f35;background:#fff6e9;justify-self:end}.teacher-activity-row>.account-button{grid-column:2;grid-row:3 / span 2;align-self:end;justify-self:end}.teacher-activity-row>.account-note,.teacher-activity-row>p:last-of-type{font-size:.74rem;color:#667372}
@media(max-width:700px){.dashboard-stat{padding:14px 10px}.dashboard-stat>svg{position:static;display:block;margin-bottom:10px;width:32px;height:32px;padding:7px;border-radius:7px}.modern-dashboard .dashboard-stat>strong{font-size:1.6rem}.modern-dashboard .teacher-activity-row{grid-template-columns:1fr;gap:9px;padding:18px}.teacher-activity-row>strong,.teacher-activity-row>.account-button{grid-column:1;grid-row:auto;justify-self:start}.teacher-activity-row>.account-button{margin-top:7px}}

/* Mobile workspace: persistent destinations, one compact toolbar, readable cards. */
@media(max-width:700px){
 body:has(.dashboard-frame){scroll-padding-bottom:96px}
 .modern-dashboard:not(.dashboard-embedded){padding-bottom:86px}
 .modern-dashboard .dashboard-mobile-dock{position:fixed;inset-inline:0;bottom:0;z-index:80;display:flex;align-items:stretch;padding:6px 8px calc(6px + env(safe-area-inset-bottom));gap:4px;background:#f8f0e2;border-top:1px solid #ded6c8;box-shadow:0 -4px 18px #17333308}
 .dashboard-mobile-dock button{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:56px;padding:6px 3px;border:0;border-radius:10px;background:transparent;color:#667372;font:inherit;font-size:.7rem;line-height:1.5;cursor:pointer}
 .dashboard-mobile-dock svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 .dashboard-mobile-dock button[aria-current=page]{background:#e8f2ed;color:#173333;font-weight:800}
 .dashboard-mobile-dock .dashboard-menu-button[aria-expanded=true]{background:#e8f2ed;color:#173333}
 .modern-dashboard .dashboard-mobilebar{position:static;min-height:0;padding:0;margin:0 0 8px;border:0;background:transparent;box-shadow:none;gap:8px;font-size:.72rem;color:#667372}
 .dashboard-mobilebar strong{display:none}.dashboard-mobile-workspace{font-size:.74rem}
 .modern-dashboard .dashboard-content{gap:16px}
 .modern-dashboard .dashboard-content>.teaching-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:0 0 16px;margin:0;border-bottom:1px solid #ded6c8}
 .modern-dashboard .dashboard-content>.teaching-heading>.dashboard-context{display:none}
 .modern-dashboard .dashboard-content>.teaching-heading h1{font-size:1.5rem;line-height:1.5;flex:1;min-width:0}
 .modern-dashboard .dashboard-content>.teaching-heading h1{flex-basis:100%;font-size:1.4rem}
 .modern-dashboard .dashboard-content>.teaching-heading:has(>.account-actions>button:only-child) h1{flex:1 1 0}
 .modern-dashboard .dashboard-refresh{min-width:44px;width:44px;height:44px;padding:8px}
 .dashboard-refresh-icon{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 .dashboard-refresh-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .modern-dashboard .dashboard-content>.teaching-heading>.account-actions{flex:0 1 auto}
 .modern-dashboard .dashboard-content>.teaching-heading .account-button{width:auto;font-size:.75rem}
 .modern-dashboard .dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .modern-dashboard .admin-grid:has(>.dashboard-stat){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .modern-dashboard .dashboard-stat{padding:14px;border-radius:14px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px}
 .modern-dashboard .dashboard-stat>svg{grid-column:2;grid-row:1/3;margin:0}
 .modern-dashboard .dashboard-stat>strong{grid-column:1;grid-row:1;font-size:1.7rem}
 .modern-dashboard .dashboard-stat>span{grid-column:1;grid-row:2;margin:0;font-size:.78rem}
 .modern-dashboard .dashboard-stat>p{grid-column:1;grid-row:2;margin:0;font-size:.78rem}
 .modern-dashboard :is(.admin-card,.teacher-learner-card,.teaching-assignment,.profile-lesson-card){padding:16px;border-radius:14px}
 .modern-dashboard .admin-person{display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:center}
 .modern-dashboard .admin-person>h3{grid-column:1;margin:0;font-size:1rem}
 .modern-dashboard .admin-person>p{grid-column:1;margin:0;font-size:.78rem;overflow-wrap:anywhere}
 .modern-dashboard .admin-person>.account-button{grid-column:2;grid-row:1/3;min-width:74px;font-size:.75rem}
 .modern-dashboard .admin-person>.account-button:last-child{grid-row:3/5;background:transparent;border-color:#ded6c8}
 .modern-dashboard :is(.teaching-form,.teaching-editor){padding:16px;gap:16px;border-radius:14px}
 .modern-dashboard :is(input:not([type=checkbox]):not([type=radio]),select,textarea){min-height:48px;font-size:16px;border-radius:10px}
 .modern-dashboard .teaching-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .modern-dashboard .teaching-tabs .account-button{font-size:.78rem;padding:8px;min-width:0}
 .modern-dashboard .teaching-inline-form{display:flex;flex-wrap:wrap;gap:10px;align-items:end}
 .modern-dashboard .teaching-inline-form>.teaching-field{flex:1 1 180px}
 .modern-dashboard .teaching-inline-form>.account-button{flex:0 0 auto}
 #demo-app .demo-top{height:60px;min-height:60px;flex-wrap:nowrap;padding:8px 16px;gap:8px;position:sticky;top:0}
 #demo-app .demo-top>.account-actions{display:flex;flex-wrap:nowrap;gap:3px;min-width:0}
 #demo-app .demo-top>.account-actions>a{display:none}
 #demo-app .demo-top [data-locale]{min-height:44px;padding:6px;font-size:.72rem;border-color:transparent;background:transparent}
 #demo-app .demo-top [data-locale][aria-pressed=true]{background:#173333;color:#f8f0e2}
 #demo-app .demo-workspace-picker select{max-width:112px;min-height:44px;padding:6px;font-size:.78rem}
 #demo-app #demo-workspace{padding:20px 16px 8px}
 #demo-app .demo-bottom{padding:18px 16px 96px}
 .dashboard-embedded .dashboard-content>.teaching-heading{padding-bottom:12px}
 .dashboard-embedded .dashboard-content>.teaching-heading h1{display:none}
 .modern-dashboard:has(.teacher-quick-select) .teaching-class-list{display:flex;align-items:center;gap:12px;padding:12px;max-height:none}
 .modern-dashboard:has(.teacher-quick-select) .teaching-class-list>.teaching-class-button{display:none}
 .modern-dashboard:has(.teacher-quick-select) .teaching-class-list>h2{display:none}
 .modern-dashboard:has(.teacher-quick-select) .teaching-class-list>.teaching-field{width:100%}
 .dashboard-menu-open .dashboard-sidebar{box-shadow:8px 0 40px #17333322}
 body:has(.dashboard-menu-open){overflow:hidden}
}

/* One workspace shell on the live site and demo, with a scrollable single-column rail. */
.modern-dashboard .dashboard-sidebar .dashboard-navigation{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;position:static;top:auto}
.modern-dashboard .dashboard-sidebar .teacher-nav-tabs{display:flex;flex-direction:column;flex-wrap:nowrap;grid-template-columns:minmax(0,1fr)}
.modern-dashboard .dashboard-sidebar{overflow:hidden}
@media(max-width:700px){
 body:has(#account.classroom-active.active .dashboard-frame) .topbar>.brand{display:flex!important;flex:0 0 auto;min-width:34px}
 body:has(#account.classroom-active.active .dashboard-frame) .topbar>.brand .brand-copy{display:none!important}
 body:has(#account.classroom-active.active .dashboard-frame) .topbar{height:60px;min-height:60px;padding:8px 12px;position:sticky;top:0;flex-wrap:nowrap;gap:8px}
 body:has(#account.classroom-active.active .dashboard-frame) .header-tools{width:auto;margin-inline-start:auto;flex-wrap:nowrap;gap:8px}
 body:has(#account.classroom-active.active .dashboard-frame) .account-card{padding:0 16px 24px!important}
 .dashboard-sidebar .dashboard-navigation button{min-height:44px;flex-shrink:0}
}

/* Teacher workspaces share one hierarchy: context, actions, then content. */
.teacher-space .teacher-search{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding:0 14px;border:1px solid var(--dash-line);border-radius:14px;background:var(--dash-paper)}
.teacher-space .teacher-search input{border:0;background:transparent;min-width:0}.teacher-space :is(.teacher-search,.class-hero-identity,.class-picker,.teaching-tabs) svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.teacher-space .teaching-layout{grid-template-columns:minmax(0,1fr);gap:16px}.teacher-space .class-picker{display:block;max-height:none;padding:0;background:var(--dash-paper);border-radius:16px;overflow:visible}
.teacher-space .class-picker>summary{padding:12px 16px;gap:10px;list-style:none}.class-picker>summary strong{margin-inline-start:auto;max-width:55%;overflow-wrap:anywhere}.class-picker>summary::after{content:'';width:8px;height:8px;border-inline-end:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-inline-start:6px}.class-picker[open]>summary::after{transform:rotate(225deg)}
.teacher-space .class-picker-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px;padding:16px;border-top:1px solid var(--dash-line);max-height:340px;overflow:auto}.class-picker-options>.teaching-field{grid-column:1/-1;max-width:260px}.teacher-space .teaching-class-button{display:grid;grid-template-columns:24px 1fr;text-align:start;justify-content:start;padding:14px}.teaching-class-button small{grid-column:2;color:inherit;opacity:.8}
.teacher-space .class-hero{display:grid;grid-template-columns:1fr auto;gap:14px;padding:22px;border:1px solid var(--dash-line);border-radius:20px;background:var(--dash-paper)}.class-hero-identity{display:flex;align-items:center;gap:12px;min-width:0}.class-hero-identity>svg{box-sizing:content-box;padding:12px;background:#e8f2ed;border-radius:14px}.class-hero-metrics{display:flex;flex-wrap:wrap;gap:8px;grid-column:1/-1}.class-hero-metrics span{padding:5px 10px;border-radius:8px;background:#f4efe5;font-size:.8rem}.class-settings{position:relative}.class-settings>summary{font-size:.8rem;padding:8px}.class-settings .account-actions{padding-block:10px}
.teacher-space .teaching-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:5px;border:1px solid var(--dash-line);border-radius:14px;background:var(--dash-paper);margin-block:16px}.teacher-space .teaching-tabs .account-button{border:0;background:transparent;padding:10px 6px;min-width:0;font-size:.8rem}.teacher-space .teaching-tabs [aria-pressed=true]{background:var(--dash-ink);color:#fff}
.teacher-space .learner-avatar{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;background:#e8f2ed;border-radius:14px;color:var(--dash-ink);font-size:1.1rem}.teacher-space .teacher-learner-card>summary strong{flex:1;min-width:0;overflow-wrap:anywhere}.teacher-space .teacher-learner-card{padding:16px;border-radius:18px}.teacher-space .teacher-learners{align-items:start}.teacher-space .teacher-learners>h2{display:none}
.teacher-space .extra-practice{padding-block:0;border:0}.worksheet-library-tabs{display:flex;gap:4px;padding:5px;border:1px solid var(--dash-line);border-radius:14px;background:var(--dash-paper);margin-block:18px}.worksheet-library-tabs .account-button{flex:1;border:0}.teacher-space .extra-template{background:var(--dash-paper);border-color:var(--dash-line);border-radius:18px;padding:20px;box-shadow:none}.teacher-space .extra-template .account-actions{padding-top:14px;border-top:1px solid var(--dash-line)}.teacher-space .extra-template .account-actions>:first-child{background:var(--dash-ink);color:#fff}.teacher-space .teaching-form{padding:20px;border-radius:18px;background:var(--dash-paper)}
@media(max-width:700px){.teacher-space .class-hero{padding:16px;grid-template-columns:minmax(0,1fr)}.teacher-space .class-settings{justify-self:start}.teacher-space .teaching-tabs .account-button{flex-direction:column;gap:5px;min-height:66px;font-size:.72rem}.teacher-space .class-picker-options{grid-template-columns:1fr}.teacher-space .teaching-class-detail>.account-button.primary{width:100%;margin-block:0 12px}.teacher-space .teaching-form{padding:16px}.teacher-space .extra-template{padding:16px}.teacher-space .extra-template .account-actions{display:grid;grid-template-columns:1fr 1fr}.teacher-space .extra-template .account-actions>:first-child{grid-column:1/-1}}

.teacher-space .teacher-form-options{padding:10px 14px;border:1px solid var(--dash-line);border-radius:12px}.teacher-space .teacher-form-options>summary{font-size:.85rem}.teacher-space .teacher-form-options[open] .teaching-field{margin-top:12px}

.teacher-space .class-settings>summary{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--dash-line);border-radius:12px;list-style:none}.class-settings>summary svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}
@media(max-width:700px){.teacher-space .class-hero{grid-template-columns:minmax(0,1fr) auto}.teacher-space .class-settings{justify-self:end}.teacher-space .class-hero-identity h2{font-size:1.05rem}.teacher-space .class-hero-identity>svg{padding:9px}}

/* Class settings belong to the class name, with an anchored action menu. */
.teacher-space .class-hero-identity{grid-column:1/-1}.teacher-space .class-settings{flex:none;align-self:center;margin:0}.teacher-space .class-settings>summary{border:0;background:transparent;border-radius:10px;color:var(--dash-muted);padding:10px}.teacher-space .class-settings>summary:hover,.teacher-space .class-settings[open]>summary{background:#e8f2ed;color:var(--dash-ink)}.teacher-space .class-settings>summary::-webkit-details-marker{display:none}.teacher-space .class-settings>summary svg{box-sizing:border-box;width:22px;height:22px;padding:0;background:none;border-radius:0}.teacher-space .class-settings .account-actions{position:absolute;inset-inline-end:0;top:calc(100% + 6px);z-index:25;display:grid;gap:6px;width:220px;max-width:70vw;padding:8px;border:1px solid var(--dash-line);border-radius:12px;background:var(--dash-paper);box-shadow:0 8px 24px #17333312}.teacher-space .class-settings .account-button{width:100%;justify-content:flex-start}
.teacher-space details.class-settings{padding:0;border:0;background:transparent;box-shadow:none}

/* Anchor the menu to the bounded class card, independent of name length. */
.teacher-space .class-hero{position:relative}.teacher-space details.class-settings{position:static}.teacher-space .class-settings .account-actions{inset-inline-end:16px;inset-inline-start:auto;top:64px;width:220px;max-width:calc(100% - 32px)}.teacher-space .class-hero-identity h2{min-width:0;overflow-wrap:anywhere}.teacher-space .class-hero-identity>svg{flex-shrink:0}

.modern-dashboard .admin-person-open{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;width:100%;min-height:64px;padding:8px 0;text-align:start;border:0;background:transparent;color:var(--dash-ink);font:inherit;cursor:pointer}.admin-person-open strong{font-size:1rem}.admin-person-open :is(span,small){grid-column:1;color:var(--dash-muted);font-size:.8rem;overflow-wrap:anywhere}.admin-person-open::after{content:'';grid-column:2;grid-row:1 / span 3;align-self:center;width:8px;height:8px;margin-inline:8px;border-inline-end:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}.admin-person-open[aria-expanded=true]::after{transform:rotate(225deg)}.admin-person:has(>.admin-profile-detail){grid-column:1/-1}.modern-dashboard .admin-person>.admin-profile-detail{border:0;border-top:1px solid var(--dash-line);border-radius:0;padding:18px 0 0;margin-top:14px;box-shadow:none}.admin-person>.admin-profile-detail>h2{display:none}
.modern-dashboard .admin-person{grid-template-columns:minmax(0,1fr) auto}.modern-dashboard .admin-person>.admin-person-open{grid-column:1;grid-row:1}.modern-dashboard .admin-person>.account-button:last-child{grid-column:2;grid-row:1;align-self:start}.modern-dashboard .admin-person>.admin-profile-detail{grid-column:1/-1;min-width:0;width:100%}

@media(max-width:700px){.demo-top>.demo-brand{display:flex;align-items:center;flex:0 0 auto;gap:0}.demo-top>.demo-brand :is(.demo-brand-name,.dashboard-demo-label){display:none}.demo-top>.demo-brand .dashboard-brand-mark{width:34px;height:34px;box-shadow:none}}

/* Class conversation: compact controls and consistent participant rows. */
.class-chat>.teaching-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;padding:0;border:0}
.class-chat>.teaching-heading h2{margin:0;font-size:1.2rem;line-height:1.5}
.class-chat>.account-status:empty{display:none}
.class-chat .chat-icon-button,.class-chat .chat-settings>summary{display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:44px;padding:10px;border:1px solid #ded6c8;border-radius:12px;background:#f8f0e2;color:#214e43;cursor:pointer;list-style:none}
.class-chat svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.chat-settings{position:relative;padding:0!important;border:0!important;background:transparent!important}
.chat-settings>summary::-webkit-details-marker{display:none}
.chat-settings>.account-button{position:absolute;inset-inline-end:0;top:52px;width:max-content;max-width:min(260px,70vw);margin:0;padding:12px 16px;z-index:4;box-shadow:0 12px 28px #17333318;background:#f8f0e2}
.class-chat .chat-member-panel{margin:0;border:1px solid #ded6c8;border-radius:16px;background:#f8f0e2;padding:0;overflow:hidden}
.class-chat .chat-member-panel>summary{padding:14px 16px;min-height:52px;box-sizing:border-box;font-size:.9rem}
.class-chat .chat-member-list{list-style:none;margin:0;padding:0 16px 8px;display:grid;gap:0;max-height:320px;overflow:auto}
.chat-member-list .chat-member-row{display:flex;align-items:center;gap:12px;min-height:68px;margin:0;padding:10px 0;border-top:1px solid #ded6c8;box-sizing:border-box}
.chat-member-avatar{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:50%;background:#e8f2ed;color:#214e43;font-weight:700}
.chat-member-identity{display:grid;gap:3px;flex:1;min-width:0}.chat-member-identity strong{font-size:.95rem;overflow-wrap:anywhere}.chat-member-identity small{color:#667372;font-size:.78rem}
html[dir=rtl] .chat-member-identity strong{text-align:right}html[dir=ltr] .chat-member-identity strong{text-align:left}
.class-chat .chat-member-row .chat-icon-button{margin:0;color:#b94f35;background:transparent;border-color:transparent}
.class-chat .chat-icon-button:hover,.chat-settings>summary:hover{background:#e8f2ed}
.class-chat .chat-icon-button:focus-visible,.chat-settings>summary:focus-visible{outline:2px solid #b94f35;outline-offset:2px}
.class-chat .class-chat-messages{background:#f8f0e2;margin:16px 0;padding:16px;border-radius:16px;min-height:160px;max-height:440px}
.class-chat-messages>.teaching-empty{display:grid;place-items:center;min-height:126px;margin:0;padding:16px;border:0!important;background:transparent!important;text-align:center;color:#667372;font-size:.95rem;box-sizing:border-box}
.class-chat .teaching-form{max-width:none;margin:0;padding:16px;border:1px solid #ded6c8;border-radius:16px;background:#f8f0e2;gap:12px}
.modern-dashboard .class-chat .teaching-form textarea{min-height:88px;border-radius:12px;background:#fff8ee;padding:12px;font-size:16px}
.class-chat .teaching-form>.primary{justify-self:end;min-height:44px;width:auto;margin:0;padding:10px 20px;border-radius:12px}
.class-chat>div>.account-note:last-child{font-size:.75rem;line-height:1.6;margin:12px 4px;color:#667372}
/* One compact notification surface across every workspace and locale. */
.dashboard-notifications{display:flex;align-items:center;flex:none}
body:not(.learning-shell):has(#account:not(.active)) .header-tools .dashboard-notifications{display:none}
.notification-panel{position:fixed;z-index:1000;box-sizing:border-box;padding:0;background:#fffcf5;color:#173333;border:1px solid #ded6c8;border-radius:20px;box-shadow:0 18px 60px #17333326;overflow:auto;overscroll-behavior:contain;text-align:start}
.notification-panel[hidden]{display:none}
.notification-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #e6dfd2;position:sticky;top:0;background:#fffcf5;z-index:1}
body .notification-heading h2{font-size:18px;line-height:1.5;margin:0}
body :is(.notification-close,.notification-settings-button){display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:10px;border:0;border-radius:50%;background:#f3eddf;color:#173333;cursor:pointer}
.dashboard-notifications svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
body .notification-item{display:flex;align-items:flex-start;gap:12px;width:100%;min-height:72px;box-sizing:border-box;margin:0;padding:16px;border:0;border-bottom:1px solid #e6dfd2;border-radius:0;background:transparent;color:inherit;font:inherit;text-align:start;cursor:pointer}
.notification-item:hover{background:#e9f2eb}
.notification-item:focus-visible,.notification-close:focus-visible,.notification-settings-button:focus-visible,.teacher-notification:focus-visible{outline:3px solid #b94f35;outline-offset:-3px}
.notification-icon{display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:12px;background:#e5eee7;color:#215549}
.notification-copy{display:grid;gap:3px;flex:1;min-width:0;overflow-wrap:anywhere}
.notification-copy small{font-size:12px;color:#536b61}
.notification-copy strong{font-size:15px;line-height:1.6}
.notification-copy>span{font-size:14px;line-height:1.6}
.notification-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#536b61}
.notification-count{display:grid;place-items:center;min-width:24px;height:24px;padding-inline:3px;border-radius:50%;background:#b94f35;color:white;font-size:12px;flex:none}
.notification-status:not(:empty){padding:20px 16px 0;margin:0;font-weight:600}
.notification-empty{padding:4px 16px 24px;margin:0;color:#536b61;font-size:14px}
.notification-panel>.account-button{margin:16px}
.notification-header-actions{display:flex;gap:6px;flex:none}
.notification-settings{margin:12px 16px;padding:0;border:0;min-width:0}
.notification-settings[hidden]{display:none}
.notification-settings legend{font-weight:600;font-size:14px;padding:0 0 8px}
.notification-setting{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:6px 0;border-bottom:1px solid #e6dfd2;font-size:14px;cursor:pointer}
.notification-setting input{appearance:none;width:40px;height:24px;flex:0 0 40px;border:1px solid #82938a;border-radius:20px;background:#e1e5df;position:relative;cursor:pointer;margin:0}
.notification-setting input::after{content:'';position:absolute;width:16px;height:16px;top:3px;left:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #17333340}
.notification-setting input:checked{background:#214e43;border-color:#214e43}
.notification-setting input:checked::after{left:19px}
.notification-setting input:focus-visible{outline:3px solid #b94f35;outline-offset:3px}
.notification-setting:has(input:disabled){opacity:.55;cursor:default}
.notification-setting-note{font-size:12px;color:#536b61;line-height:1.6;margin:12px 0 0}
.teacher-notification.is-muted svg{opacity:.5}
.notification-source-picker{margin-top:14px;border-top:1px solid #ded6c8;padding-top:8px}
.notification-source-picker summary{min-height:44px;cursor:pointer;font-weight:600;font-size:14px;align-content:center}
.notification-source-search{display:flex;align-items:center;gap:8px;border:1px solid #82938a;border-radius:12px;padding:8px;margin:12px 0}
.notification-source-search svg{flex:none}
body .notification-source-search input{min-width:0;width:100%;border:0;background:transparent;padding:4px;font:inherit;font-size:14px;outline-offset:4px}
.notification-source-list{max-height:240px;overflow:auto;overscroll-behavior:contain;scroll-padding:8px}
.notification-source-list .notification-setting>span{min-width:0;display:grid;gap:3px;overflow-wrap:anywhere}
.notification-source-list strong{font-size:14px;line-height:1.5}
.notification-source-list small{font-size:12px;color:#536b61;line-height:1.5}

/* Education navigation belongs to the single administration workspace. */
.dashboard-embedded .dashboard-embedded-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:0}
.dashboard-subnavigation-label{font-size:1rem;line-height:1.6}
.dashboard-embedded .dashboard-subnavigation{padding:6px;border:1px solid #ded6c8;border-radius:12px;background:#fffaf0}
.dashboard-embedded .dashboard-subnavigation button{min-height:44px;border:0;border-radius:8px;background:transparent;color:#475e58;font:inherit;padding:10px 12px}
.dashboard-embedded .dashboard-subnavigation button[aria-pressed=true]{background:#b94f35;color:#fff}
.dashboard-embedded .dashboard-subnavigation .teacher-nav-tabs{display:flex;flex-wrap:wrap;gap:4px}
@media(max-width:700px){.dashboard-embedded .dashboard-embedded-heading{flex-wrap:wrap}.dashboard-embedded .dashboard-subnavigation .teacher-nav-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto}.dashboard-embedded .dashboard-subnavigation button{flex:0 0 auto}}
