#shell{--rail-width:15rem}
#shell>.sidebar{top:0;width:var(--rail-width);height:100dvh}
#shell .main-content{margin-left:var(--rail-width);min-width:0;min-height:100vh}
#shell .topbar{gap:.75rem;justify-content:flex-start}
#shell .classroom-brand{display:flex;align-items:center;gap:.5rem;flex:none}
#shell .classroom-logo{color:var(--color-text);font-weight:750;text-decoration:none}
#shell #sidebar-toggle,#shell .topbar-user:has(#header-avatar),#shell .mobile-menu{display:none}
#shell #toggle-navigation{display:none}
#shell .header-account{position:relative}
#shell .header-account summary{display:grid;place-items:center;cursor:pointer;min-width:44px;min-height:44px;list-style:none}
#shell .header-account-menu{position:absolute;right:0;top:100%;min-width:12rem;background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:.5rem;padding:.65rem;display:grid;gap:.4rem}
#shell .sidebar-nav{display:block}
#shell .sidebar-nav button,#shell .sidebar-nav a,#shell #wire-secondary-nav button{width:100%;display:flex;align-items:center;justify-content:flex-start;min-height:44px;gap:.55rem;text-align:left}
#shell .ui-icon{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}
#shell #classroom-nav{margin-block:1rem;padding-block:.5rem;border-top:1px solid var(--color-border)}
#shell #classroom-nav>p{font-size:.8rem;color:var(--color-text-secondary);margin:.4rem 0}
#shell .class-shortcut small{display:block;color:var(--color-text-secondary)}
#shell #main{max-width:84rem;margin-inline:auto;padding:1.25rem clamp(.75rem,3vw,2rem);min-width:0}
#shell .class-tabs{display:flex;gap:.35rem;flex-wrap:wrap;padding:.25rem;border-bottom:1px solid var(--color-border);border-radius:0}
#shell .class-tabs button{min-height:44px;padding:.55rem .75rem;background:transparent;color:var(--color-text-secondary);border:0;border-bottom:2px solid transparent}
#shell .class-tabs button.selected{border-bottom-color:var(--color-brand);color:var(--color-text);font-weight:700}
#shell .class-breadcrumb{display:flex;align-items:center;gap:.6rem;margin-block:.7rem}
#shell .class-banner{display:block;min-height:0;height:auto;background:var(--color-bg-elevated);color:var(--color-text);padding:1.25rem;border:1px solid var(--color-border);margin-bottom:1rem}
#shell .class-banner h1{color:var(--color-text);margin:0;font-size:clamp(1.6rem,4vw,2.2rem)}
#shell .class-banner p{color:var(--color-text-secondary);margin:.35rem 0 0}
#shell .banner-books,#shell .class-banner small{display:none}
#shell .stream-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem}
#shell .stream-layout:has(.stream-rail){grid-template-columns:minmax(10rem,14rem) minmax(0,1fr)}
#shell .stream-feed,#shell .stream-rail{min-width:0}
#shell .stream-post,#shell .upcoming-panel{background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:.55rem;padding:1rem;margin-bottom:1rem;overflow-wrap:anywhere}
#shell .stream-post-heading,#shell .announce-prompt,#shell .stream-attachments{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
#shell .stream-post-heading small{display:block;color:var(--color-text-secondary)}
#shell .stream-post .stream-text,#shell .comment-prompt,#shell .stream-attachments{margin-top:.65rem}
#shell .announce-prompt{margin-bottom:1rem;min-height:44px;text-align:left}
#shell .stream-post button{white-space:normal;text-align:left}
#shell .stream-post img{max-width:100%}
@media(max-width:800px){
 #shell .main-content{margin-left:0}
 #shell #toggle-navigation{display:inline-grid;place-items:center;min-height:44px;min-width:44px}
 #shell .stream-layout:has(.stream-rail){grid-template-columns:minmax(0,1fr)}
 #shell .sidebar{z-index:110}
 #shell .sidebar-overlay{z-index:105}
}
body.office-open #shell .main-content{margin:0}
body.office-open #shell #main{padding:0;max-width:none}

#shell .topbar>.flex-1{flex:1;min-width:0} #shell .topbar .eyebrow,#shell #role-tag{display:none}
#shell #group-filter{width:min(100%,18rem)!important;min-width:0!important}
@media(max-width:800px){#shell .topbar>.flex-1{display:none}}
#shell .sidebar-nav{min-width:0;overflow-x:hidden}
#shell #wire-secondary-nav{display:grid;grid-template-columns:minmax(0,1fr);gap:.2rem}
#shell .sidebar-footer{display:none}
#shell .class-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#shell .classwork-tools{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem;margin-block:1rem}
#shell .classwork-tools input{max-width:100%;min-height:44px;padding:.5rem .75rem;background:var(--color-bg-elevated);color:var(--color-text);border:1px solid var(--color-border);border-radius:.45rem}
#shell .classwork-layout{display:grid;grid-template-columns:minmax(8rem,11rem) minmax(0,1fr);align-items:start;gap:1rem}
#shell .topic-list{display:grid;gap:.25rem}
#shell .topic-list button{text-align:left;min-height:44px}
#shell .topic-list .active{background:var(--color-brand-light);color:var(--color-brand-dark)}
#shell .topic-section h2{display:flex;align-items:baseline;gap:.65rem;flex-wrap:wrap;border-bottom:1px solid var(--color-border);padding-bottom:.55rem}
#shell .topic-section h2 small,#shell .topic-section h2 span{font-size:.85rem;color:var(--color-text-secondary)}
#shell .classwork-row{display:flex;gap:.6rem;align-items:center;border-bottom:1px solid var(--color-border);background:var(--color-bg-elevated)}
#shell .classwork-open{display:flex;align-items:center;gap:.65rem;flex:1;min-width:0;flex-wrap:wrap;padding:.7rem;text-align:left}
#shell .classwork-open strong,#shell .classwork-open small,#shell .resource-attachment strong,#shell .resource-attachment small{display:block;overflow-wrap:anywhere}
#shell .classwork-open small,#shell .resource-attachment small{font-size:.85rem;color:var(--color-text-secondary)}
#shell .resource-attachment,#shell .class-create>summary{display:flex;align-items:center;gap:.65rem;border:1px solid var(--color-border);border-radius:.45rem;padding:.5rem .75rem;min-height:44px;background:var(--color-bg-elevated);color:var(--color-text);cursor:pointer;max-width:100%}
#shell .attachment-kind{display:grid;place-items:center;min-width:2rem;min-height:2rem;border-radius:.4rem;background:var(--color-brand-light);color:var(--color-brand-dark);font-weight:700}
#shell .file-menu,#shell .class-create{position:relative}
#shell .file-menu summary{list-style:none;cursor:pointer;padding:.5rem;min-height:44px}
#shell .file-menu summary::-webkit-details-marker,#shell .class-create summary::-webkit-details-marker{display:none}
#shell .file-menu-items,#shell .class-create-menu{position:absolute;z-index:10;right:0;min-width:11rem;background:var(--color-bg-elevated);border:1px solid var(--color-border);border-radius:.45rem;padding:.4rem}
#shell .class-create-menu{left:0;right:auto}
@media(max-width:650px){#shell .classwork-layout{grid-template-columns:minmax(0,1fr)}#shell .topic-list{display:flex;flex-wrap:wrap}}
body.office-open #shell>.sidebar,body.office-open #shell .topbar,body.office-open #shell .landing-footer,body.office-open #shell .sidebar-overlay{display:none!important}
body.office-open #shell .main-content{margin:0;padding:0}
body.office-open #shell #main{margin:0;padding:0;height:100dvh;max-width:none}
body.office-open .office-layout{display:flex;width:100%;height:100%;min-height:0}
body.office-open .office-surface{flex:1;min-width:0;height:100%;overflow:hidden}
body.office-open #office-editor,body.office-open .office-surface>iframe{display:block;width:100%;height:100%;border:0}
#shell .classroom-brand{flex:0 1 auto;min-width:0}
#shell .classroom-logo{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#shell .classroom-logo span{overflow:hidden;text-overflow:ellipsis}
@media(max-width:800px){
 #shell .topbar{gap:.3rem;padding-inline:.5rem}
 #shell .topbar-actions{flex:0 0 auto;gap:.25rem}
 #shell .student-filters,#shell .student-profile-layout{display:grid;grid-template-columns:minmax(0,1fr)}
 #shell .student-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
 #shell .student-table-wrap{max-width:100%;min-width:0;overflow:auto}
 #shell .student-table{width:100%;table-layout:fixed}
 #shell .student-table thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
 #shell .student-table tr{display:grid;border-bottom:1px solid var(--color-border);padding:.75rem}
 #shell .student-table td{display:block;min-width:0;overflow-wrap:anywhere}
}
#shell .page-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;width:100%;margin:0 0 1.25rem;text-align:left}
#shell .page-title h1,#shell .work-area-heading h1{font-size:clamp(1.55rem,4vw,2rem);margin:0 0 .3rem;letter-spacing:-.025em}
#shell .page-title p{margin:0;color:var(--color-text-secondary)}
#shell .btn.primary{background:var(--color-brand);color:#fff;border-radius:6px;padding:.4rem .75rem;min-height:32px}
#shell .stream-layout:has(.stream-rail){grid-template-columns:minmax(0,1fr) minmax(10rem,14rem)}
#shell .class-banner{border:0;border-radius:0;border-bottom:1px solid var(--color-border);background:transparent;padding:.6rem 0}
#shell .course-card.work-area-row{border-radius:0;padding:.65rem 1rem}
#shell .work-area-row .work-area-title{padding:0;color:var(--color-brand);font-size:1rem}
#shell .work-area-row p{font-size:.86rem;margin-top:.25rem}
#shell .wire-session{border-radius:6px;padding:.9rem}
#shell .announce-prompt{border:1px solid var(--color-border);border-radius:6px;background:var(--color-bg-elevated);padding:.65rem;width:100%;justify-content:flex-start}
#shell .main-content{display:flex;flex-direction:column}
#shell .landing-footer{margin-top:auto;color:var(--color-text-secondary);padding:.75rem}
#shell .post-excerpt{overflow-wrap:anywhere}
dialog.modal-overlay[open]{opacity:1;visibility:visible;padding:0;width:min(35rem,calc(100% - 2rem));max-height:calc(100dvh - 2rem);margin:auto;background:transparent;border:0;overflow:auto}
dialog.modal-overlay[open] .modal{transform:none;color:var(--color-text)}
@media(max-width:800px){#shell .stream-layout:has(.stream-rail){grid-template-columns:minmax(0,1fr)}}

#shell .student-back{margin-bottom:.75rem}
#shell .student-profile-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:1rem;margin-top:1rem}
#shell .student-profile-layout>section,#shell .student-profile-aside{display:grid;align-content:start;gap:1rem;min-width:0}
#shell .student-profile-aside{position:static;width:auto;height:auto;padding:0;border:0;background:transparent}
#shell .student-profile-layout .student-panel{padding:1rem;border:1px solid var(--color-border);background:var(--color-bg-elevated);border-radius:8px;min-width:0}
#shell .student-section-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.85rem}
#shell .student-section-heading h2{margin:0}
#shell .student-account{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:.55rem 1rem;margin:0 0 1rem}
#shell .student-account dt{color:var(--color-text-secondary)}
#shell .student-account dd{margin:0;overflow-wrap:anywhere}
#shell .student-profile-layout .actions,#shell .work-area-actions{display:flex;flex-wrap:wrap;gap:.5rem}
#shell .student-profile-layout .field-help{margin-top:.55rem}
#shell .student-class,#shell .student-session{display:grid;gap:.3rem;padding:.75rem 0;border-top:1px solid var(--color-border)}
#shell .student-class button{justify-self:start}
#shell .student-note{white-space:pre-wrap;overflow-wrap:anywhere}
#shell .student-badge{display:inline-block;background:var(--color-bg-muted);border:1px solid var(--color-border);border-radius:100px;padding:.2rem .55rem;font-size:.85rem}
#shell .work-area-heading button+button{margin-inline-start:.5rem}
#shell .class-banner .work-area-manage{margin-top:.6rem}
.archive-action{margin-top:1rem;padding-top:.8rem;border-top:1px solid var(--color-border)}
.archive-action p{margin:0 0 .65rem;color:var(--color-text-secondary)}
.student-danger{color:var(--color-error)!important}
.archived-area-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.6rem;padding:.65rem 0;border-top:1px solid var(--color-border)}
.archived-area-row small{display:block;color:var(--color-text-secondary)}
@media(max-width:900px){#shell .student-profile-layout{grid-template-columns:minmax(0,1fr)}}
