.teacher-portal .shell{width:100%;max-width:1100px;padding:22px clamp(14px,4vw,28px) 40px;padding-top:max(18px,env(safe-area-inset-top));padding-bottom:max(32px,env(safe-area-inset-bottom));padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}
.teacher-portal .shell *{min-width:0}
.teacher-portal :is(h1,h2,h3,p,strong,small,label,summary,dt,dd,.pill){overflow-wrap:anywhere}
.teacher-portal h2{font-size:clamp(23px,4vw,30px);line-height:1.25}
.teacher-portal :is(button,input,select,textarea){font-size:16px;max-width:100%}
.teacher-portal :is(button,input,select){min-height:44px}
.teacher-portal input[type=date]{width:100%;max-width:100%;min-width:0;display:block}
.teacher-portal button{white-space:normal;line-height:1.4}
.teacher-portal .card{padding:clamp(16px,3vw,24px);max-width:100%}
.teacher-portal .grid2{grid-template-columns:repeat(2,minmax(0,1fr))}
.teacher-portal .weekly-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.teacher-portal .schedule-item{align-items:flex-start;flex-wrap:wrap}
.teacher-portal .schedule-item>div{flex:1 1 130px}
.teacher-portal .schedule-time{flex:0 0 auto}
.teacher-portal .toolbar{gap:10px}
.teacher-portal .history-actions .btn{flex:1 1 140px}
.teacher-portal .history-pagination{gap:12px;flex-wrap:wrap}
.teacher-portal .history-pagination span{text-align:center;flex:1 1 130px}
.teacher-portal .roster-students li{flex-wrap:wrap;align-items:flex-start}
.teacher-portal .roster-students li>span:first-child{flex:1 1 170px}
.teacher-portal .roster-students .pill{max-width:100%;flex-shrink:1}
.teacher-portal .pill{white-space:normal}
.teacher-portal summary{min-height:44px;padding-block:6px}
.teacher-portal textarea{min-height:120px;line-height:1.55}
.teacher-portal .log-entry{padding:14px}
.teacher-portal #teacherAccountIdentity{font-size:clamp(19px,3vw,24px);font-family:var(--brand-heading);margin-bottom:12px}
.teacher-portal #teacherResetForm label+label{margin-top:14px}
@media(min-width:1050px){.teacher-portal .weekly-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.teacher-portal .grid2,.teacher-portal .weekly-grid{grid-template-columns:minmax(0,1fr)}.teacher-portal .teacher-heading{align-items:flex-start}.teacher-portal #app>.toolbar .btn{flex:1 1 120px}.teacher-portal .history-pagination .btn{flex:1 1 90px}.teacher-portal .history-pagination span{order:3;flex-basis:100%}}
@media(max-width:359px){.teacher-portal .card{padding:14px}.teacher-portal .schedule-day{padding:12px}.teacher-portal .history-actions{width:100%}.teacher-portal .history-actions .btn{flex-basis:100%}}
