/* Canonical teacher layout: one shell, one content scroller, no overlapping header rows. */
#teacherWorkspacePage {padding:0!important;box-sizing:border-box!important;height:100dvh!important}
#teacherWorkspacePage:not(.active) {display:none!important}
#teacherWorkspacePage > .tm-shell {margin:0!important;max-width:none!important}
#teacherWorkspacePage .tm-content {width:100%!important;max-width:none!important;min-width:0!important;min-height:0!important;box-sizing:border-box!important;margin:0!important;flex:1 1 auto!important;overflow:auto!important}
#teacherWorkspacePage .tm-route {width:100%!important;min-width:0!important;margin-inline:auto!important;box-sizing:border-box!important}
#teacherWorkspacePage .tm-topbar {grid-template-columns:minmax(0,1fr) minmax(220px,1fr)!important;grid-template-rows:auto!important;height:auto!important;min-height:88px!important;padding:16px 24px!important;gap:12px!important;isolation:isolate}
#teacherWorkspacePage .etq232-welcome {display:none!important}
#teacherWorkspacePage .etq232-userbox,#teacherWorkspacePage .etq232-search-wrap {min-width:0!important;max-width:100%!important}
#teacherWorkspacePage .etq232-userbox>div:not(.etq232-avatar) {min-width:0}
#teacherWorkspacePage #etq232TopName {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px!important}

#teacherWorkspacePage .etq264-account-layout {grid-template-columns:minmax(230px,280px) minmax(0,1fr)!important;align-items:start!important}
#teacherWorkspacePage .etq264-account-aside {grid-column:1!important;grid-row:1!important;position:static!important;min-width:0!important;box-sizing:border-box!important}
#teacherWorkspacePage .etq264-account-main {grid-column:2!important;grid-row:1!important;min-width:0!important}
#teacherWorkspacePage .etq264-form-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important}
#teacherWorkspacePage .etq264-form-grid input {min-width:0}
@media(max-width:1100px) {
 #teacherWorkspacePage .etq264-account-layout {grid-template-columns:1fr!important}
 #teacherWorkspacePage .etq264-account-aside,#teacherWorkspacePage .etq264-account-main {grid-column:1!important;grid-row:auto!important}
 #teacherWorkspacePage .etq264-account-aside {display:flex!important}
}
@media(max-width:760px) {
 #teacherWorkspacePage .tm-topbar {grid-template-columns:minmax(0,1fr)!important;padding:12px!important;gap:10px!important;min-height:0!important}
 #teacherWorkspacePage .etq232-userbox {width:100%;justify-content:flex-start;flex-wrap:nowrap}
 #teacherWorkspacePage .etq232-search-wrap {width:100%}
 #teacherWorkspacePage .tm-main {height:100dvh!important}
 #teacherWorkspacePage .tm-content {padding:16px 12px 32px!important}
 #teacherWorkspacePage .tm-sidebar {height:100dvh!important}
 #teacherWorkspacePage .etq264-form-grid {grid-template-columns:1fr!important}
}
/* The shared schedule must use the browser top layer above every workspace. */
dialog.e300-dialog {margin:0;box-sizing:border-box;width:100%;height:100dvh;max-width:none;max-height:none;border:0;color:#18243b}
dialog.e300-dialog:not([open]) {display:none}
dialog.e300-dialog>section {box-sizing:border-box}
/* Legacy teacher editors mounted under body must clear the fixed workspace. */
.etq269-overlay,.qb118-overlay,.clean-modal,.v227-modal,.qb-v116 .modal {z-index:2147483000!important}
#teacherWorkspacePage a.etq232-brand {display:block;text-decoration:none;cursor:pointer;color:inherit}
#teacherWorkspacePage a.etq232-brand:focus-visible {outline:2px solid #e6bd72;outline-offset:3px;border-radius:8px}
