.role-shell-navigation{display:grid;gap:5px;margin:25px 0 auto}.role-shell-navigation button{text-align:left;border:0;border-radius:13px;min-height:44px;padding:12px 14px;color:#bdbdb9;background:transparent;font:inherit;font-size:.875rem;line-height:1.35;cursor:pointer}.role-shell-navigation button:hover{background:#292929;color:#fff}.role-shell-navigation button:focus-visible{outline:3px solid #dcfc73;outline-offset:2px}.role-shell-navigation .role-shell-home{margin-bottom:12px}.role-shell-return{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 25px;color:var(--muted);font-size:.8rem}.role-shell-return button{border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--ink);padding:9px 15px;font:inherit;cursor:pointer}.role-shell-active .sidebar>.nav{display:none}.role-shell-active .workspace-menu{display:none}.role-shell-active .workspace-layout{display:block}.role-shell-active [data-gps-open],.role-shell-active [data-teacher-tab="teacherWhiteboardPanel"]{display:none!important}.role-shell-active #mobilebar>button{display:none}.role-shell-active #mobilebar>[data-role-home]:not([hidden]),.role-shell-active #mobilebar>[data-view="studentProfileView"]:not([hidden]),.role-shell-active #mobilebar>.mobile-signout:not([hidden]){display:inline-flex}.role-shell-active #roleWorkspaceView{max-width:1250px;margin-inline:auto}.role-shell-active #classHubView .home-classes{width:100%;max-width:1100px;margin-top:24px}.role-shell-active #classHubView .home-class-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:15px}@media(max-width:900px){.role-shell-return{margin-bottom:15px}.role-shell-return span{display:none}}

/* A section keeps its resource navigation above the real, existing app view. */
.role-shell-section{max-width:1250px;margin:0 auto 24px;padding:22px 24px;border:1px solid var(--line,#d9d8d2);border-radius:22px;background:var(--paper,#f9f8f3);color:var(--ink,#161616)}
.role-shell-section[hidden],.role-shell-bottom-sections[hidden]{display:none!important}
.role-shell-active .main .role-shell-section h2{font-family:SpaceCore,"De Fonte Plus",HelveticaM,Helvetica,Arial,sans-serif;font-size:clamp(1.6rem,3vw,2.25rem);font-weight:400;line-height:1.15;letter-spacing:-.025em;margin:0 0 18px}
.role-shell-section__nav{display:flex;flex-wrap:wrap;gap:8px}
.role-shell-section__nav button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 15px;border:1px solid var(--line,#d9d8d2);border-radius:12px;background:transparent;color:var(--ink,#161616);font:inherit;font-size:.86rem;text-align:left;cursor:pointer}
.role-shell-section__nav button[aria-current=page]{background:#292929;color:#dcfc73;border-color:#414141;font-weight:700}
.role-shell-section__nav button[aria-disabled=true]{color:var(--muted,#66666d);cursor:default}
.role-shell-section__nav small{font-size:.65rem;line-height:1.35;border:1px solid currentColor;border-radius:6px;padding:3px 5px;white-space:nowrap}
.role-shell-section__nav button:not([aria-disabled=true]):hover{border-color:#054ff0}
.role-shell-section__nav button:focus-visible,.role-shell-section h2:focus-visible{outline:3px solid #054ff0;outline-offset:3px}
.role-shell-section__status{margin:14px 0 0;font-size:.85rem;color:var(--muted,#66666d)}
.role-shell-section__status:empty{display:none}
.role-shell-navigation{position:relative;z-index:1;flex-shrink:0}
.role-shell-navigation [aria-current=location]{background:#333;color:#fff;box-shadow:inset 3px 0 0 #dcfc73}
.role-shell-navigation .role-shell-home:not([aria-current]){background:transparent;color:#bdbdb9}
.role-shell-navigation [data-role-section]{display:flex;align-items:center;justify-content:space-between;gap:8px}
.role-shell-navigation [aria-busy=true],.role-shell-section__nav [aria-busy=true],.role-shell-bottom-sections [aria-busy=true]{cursor:progress;opacity:.72}
.role-shell-bottom-sections{display:none}
@media(max-width:700px){
 .role-shell-active #mobilebar{align-items:stretch;justify-content:flex-start;gap:3px;overflow:visible;padding:6px;bottom:max(8px,env(safe-area-inset-bottom));max-width:calc(100vw - 16px)}
 .role-shell-active #mobilebar>.role-shell-bottom-sections{display:flex;flex:1 1 auto;min-width:0;gap:3px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#777 transparent;scroll-padding-inline:4px;order:1}
 .role-shell-active #mobilebar>.role-shell-bottom-sections::-webkit-scrollbar{display:block;height:3px}
 .role-shell-active #mobilebar>.role-shell-bottom-sections::-webkit-scrollbar-thumb{background:#777;border-radius:3px}
 .role-shell-active #mobilebar button{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:0 0 auto;min-width:64px;min-height:48px;padding:9px 10px;white-space:nowrap;font-size:.75rem;font-weight:700;border-radius:10px}
 .role-shell-active #mobilebar>button{display:none}
 .role-shell-active #mobilebar>[data-role-home]:not([hidden]){display:inline-flex;order:0}
 .role-shell-active #mobilebar>[data-view="studentProfileView"]:not([hidden]){display:inline-flex;order:2;border-left:1px solid #555;border-radius:0 10px 10px 0}
 .role-shell-active #mobilebar>.mobile-signout:not([hidden]){display:inline-flex;order:3;position:static;box-shadow:none;min-width:0;padding-inline:10px}
 .role-shell-active #mobilebar [data-role-section][aria-current=location],.role-shell-active #mobilebar>[data-role-home][aria-current=location]{background:#333;color:#dcfc73}
 .role-shell-active #mobilebar button:focus-visible{outline:2px solid #dcfc73;outline-offset:-2px}
 .role-shell-active #mobilebar [data-messages-unread]:not(:empty){min-width:20px;min-height:20px;padding:1px 5px;font-size:.67rem;background:#dcfc73;color:#161616}
 .role-shell-active .main{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
 .role-shell-section{padding:18px 16px;margin-bottom:20px;border-radius:18px}
 .role-shell-section h2{margin-bottom:14px}
 .role-shell-section__nav{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;padding:3px 3px 8px;margin-inline:-3px;scrollbar-width:thin}
 .role-shell-section__nav button{flex:0 0 auto;white-space:nowrap}
}
@media(min-width:701px) and (max-width:980px){
 .role-shell-active .app-shell{grid-template-columns:180px minmax(0,1fr)}
 .role-shell-navigation button{font-size:.85rem;padding:10px 9px;overflow-wrap:anywhere}
}

/* Native account actions and original teacher overview remain directly on Home. */
.role-home-account{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin:20px 0 0;padding-top:18px;border-top:1px solid var(--line);order:5}
.role-home-account[hidden],.role-home-teacher-overview[hidden]{display:none!important}
.role-home-account button{min-height:44px;padding:10px 15px;border:1px solid var(--line);border-radius:12px;background:transparent;color:var(--ink);font:inherit;font-size:.85rem}
.role-home-account button:focus-visible{outline:3px solid #054ff0;outline-offset:3px}
.role-home-teacher-overview{order:0;min-width:0;margin-bottom:24px}
.role-shell-teacher-home .role-workspace__header{display:none}
.role-home-teacher-overview #teacherOverviewWhiteboard{display:none!important}

/* The role section already supplies the single guarded Create capsule action. */
.role-shell-active #capsulePublisherToggle{display:none!important}
