/* Teacher workspace: readable controls, compact context, stable save actions. */
body.teacher-workspace165{font-size:16px;--muted:#64758a}
.teacher-workspace165 [hidden]{display:none!important}
.teacher-workspace165 .d67-header{flex-wrap:wrap;gap:10px 16px}
.teacher-workspace165 .d67-header h1{white-space:nowrap;font-size:26px}
.teacher-workspace165 .d67-header-actions{flex-wrap:wrap;gap:8px}
.teacher-workspace165 .d67-header-actions>a{display:none}
.teacher-workspace165 :is(.d67-button,.d67-tools-button,.d67-modes button,.d67-filters>button,.d67-checkchoices button){font-size:14px;min-height:44px}
.teacher-workspace165 :is(input,select,textarea){font-size:16px;min-height:44px}
.teacher-workspace165 :is(.d67-date input,.d67-search input){font-size:14px;min-height:44px}
.teacher-workspace165 .d67-icon{min-width:44px;height:44px}
.teacher-workspace165 .d67-listhead p,.teacher-workspace165 .d67-name span{font-size:13px;color:#64758a}
.teacher-workspace165 .d67-listhead h2{font-size:18px}
.teacher-workspace165 .d67-search input{width:148px}
.teacher-workspace165 th{font-size:13px;color:#64758a}
.teacher-workspace165 :is(.d67-att,.d67-homework){font-size:14px;min-height:44px}
.teacher-workspace165 :is(.d67-notefields label,.d67-field,.d67-checkchoices legend){font-size:15px}
.teacher-workspace165 :is(.d67-notefields textarea,.d67-field textarea){font-size:16px}
.teacher-workspace165 :is(.d67-panelhint,.d67-studentpager,.d67-past,.d67-history-item,.d67-savebar b){font-size:14px}
.teacher-workspace165 .d67-savebar small{font-size:12px}
.teacher-workspace165 .d67-studentpager .d67-button{font-size:14px;min-height:44px}
.teacher-workspace165 .d67-panelhead .d67-icon{width:44px;min-width:44px;height:44px}
.teacher-workspace165 :is(.d67-panelhead,.d67-studentpager){flex-shrink:0}
.teacher-workspace165 .d67-savebar>div{min-width:0}
.teacher-workspace165 .d67-savebar b{line-height:1.4}
.teacher-workspace165 .d67-history-card{font-size:15px}
.teacher-workspace165 .d67-directory summary{min-height:44px}
.teacher-workspace165 .l68{padding-bottom:12px}
.teacher-workspace165 :is(.l68-field,.l68-meta summary,.l68-list-title,.l68-help,.l68-item small,.l68-item span){font-size:14px}
.teacher-workspace165 .l68 :is(input,select,textarea){font-size:16px}
.teacher-workspace165 .l68 .l68-memo{font-size:14px!important}
.teacher-workspace165 .l68-score small{font-size:13px}
.teacher-workspace165 .l68-name{min-height:44px}
.teacher-workspace165 .l68-detail-head>span{font-size:13px}
.teacher-workspace165 #l68-dock button{font-size:14px;min-height:44px}
.teacher-workspace165 #l68-dock-state{font-size:14px}
.teacher-workspace165 .l69-filter select{font-size:14px}
.teacher-workspace165 .l68-detail-head{flex-wrap:wrap;gap:0 12px}
.teacher-workspace165 #body67:has(.l68-layout){overflow:hidden;display:flex}
.teacher-workspace165 #content67:has(.l68-layout){overflow:auto;display:block;scroll-padding-block:12px}
.teacher-workspace165 .l68-top{margin:0 0 8px;justify-content:flex-end}
.teacher-workspace165 .l68-top>div{display:none}
.teacher-workspace165 .l68-top button{font-size:14px;min-height:44px}
.teacher-workspace165 .l68-tabs{gap:8px;margin-bottom:12px}
.teacher-workspace165 .l68-tabs button{font-size:15px;min-height:48px;border-radius:11px;box-shadow:none}
.teacher-workspace165 .l68-tabs [aria-selected=true]{background:#edf3ff;border-color:#7099eb}
.teacher-workspace165 .l68-list{border-radius:14px}
.teacher-workspace165 .l68-detail{border-radius:14px}
.teacher-workspace165 .l68-history article{font-size:15px}
.teacher-workspace165 #toast67{font-size:14px;line-height:1.5}
/* These teacher-only reminders share the same renderer in the lesson and weekly pages. */
.weekly-reminder94.teacher-reminder165{padding:0;margin:0;border-radius:12px;background:#fff;border:1px solid #dfe5ed;flex-shrink:0}
.weekly-reminder94.teacher-reminder165>summary{display:flex;align-items:center;gap:8px;padding:12px 14px;list-style:none;font-size:14px;line-height:1.5;min-height:44px}
.teacher-reminder165>summary::-webkit-details-marker{display:none}
.teacher-reminder165>summary strong{font-size:14px;white-space:nowrap}
.teacher-reminder165>summary span{font-size:13px;color:#64758a}
.teacher-reminder165>summary::after{content:'⌄';margin-left:auto;color:#64758a}
.teacher-reminder165[open]>summary::after{content:'⌃'}
.teacher-reminder165 .reminder-content165{border-top:1px solid #edf0f4;padding:12px 14px;max-height:180px;overflow:auto}
.teacher-reminder165 .reminder-content165 p,.teacher-reminder165 .reminder-content165 small{font-size:14px;line-height:1.6;margin:0}
.teacher-reminder165 .reminder-content165 small{display:block;margin-top:6px}
.teacher-reminder165 .reminder-content165 .reminder-start94{margin-top:10px}
.weekly-reminder94.teacher-reminder165.overdue{border-color:#dcbd82;background:#fffaf0}
#weekly-inbox94{flex-shrink:0}
.teacher-workspace165 #weekly-inbox94{order:0}
/* Outer teacher shell: teacher and academy stay readable without squeezing the toolbar. */
.ot-teacher .top-in .who{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.ot-teacher .top-in #whoMe{font-size:17px;font-weight:750;color:#253b50;margin:0}
.ot-teacher .top-in #whoAc{font-size:13px;color:#65748a;margin:0;overflow-wrap:anywhere}
@media(max-width:880px){
 .ot-teacher .top-in{padding:10px 14px;gap:7px;flex-wrap:nowrap;min-height:72px}
 .ot-teacher .top-in .who{min-width:72px}
 .ot-teacher .top-in .role{display:none}
 .ot-teacher .top-in #whoMe{font-size:16px}
 .ot-teacher .top-in #whoAc{font-size:12px;max-width:100%;line-height:1.4}
 .ot-teacher .top-in button{min-height:44px;font-size:14px;white-space:nowrap}
 .ot-teacher .nav-btn .label{font-size:12px}
 .teacher-desk67 #app{padding:10px 10px 0}
}
@media(max-width:850px){
 .teacher-workspace165 .d67-app{gap:10px}
 .teacher-workspace165 .d67-header{gap:10px}
 .teacher-workspace165 .d67-header h1{font-size:24px}
 .teacher-workspace165 .d67-header:has(#tools-button67:not([hidden])){display:grid;grid-template-columns:1fr}
 .teacher-workspace165 .d67-header-actions{gap:8px;flex-wrap:nowrap}
 .teacher-workspace165 .d67-header:has(#tools-button67:not([hidden])) .d67-date{flex:1;min-width:0}
 .teacher-workspace165 .d67-date input{width:100%;font-size:16px;padding:8px}
 .teacher-workspace165 .d67-classbar{flex-wrap:wrap;gap:8px}
 .teacher-workspace165 .d67-classselect{min-width:190px;max-width:none}
 .teacher-workspace165 .d67-classselect select{font-size:15px;height:44px}
 .teacher-workspace165 .d67-modes button{padding:6px 10px;min-height:40px}
 .teacher-workspace165 .d67-previous{font-size:14px}
 .teacher-workspace165 .d67-listhead{padding:12px 12px 8px}
 .teacher-workspace165 .d67-listhead h2{font-size:17px}
 .teacher-workspace165 .d67-search input{width:116px;font-size:14px}
 .teacher-workspace165 .d67-filters{padding:0 10px 8px;gap:5px}
 .teacher-workspace165 .d67-filters>button{font-size:13px;padding:7px;min-height:40px}
 .teacher-workspace165 .d67-filters .d67-bulk{font-size:13px;margin-left:0}
 .teacher-workspace165 th{font-size:12px;line-height:1.4;height:38px}
 .teacher-workspace165 th:nth-child(2),.teacher-workspace165 th:nth-child(3){width:83px}
 .teacher-workspace165 td{height:76px;padding:8px 10px}
 .teacher-workspace165 td:nth-child(2),.teacher-workspace165 td:nth-child(3){padding:8px 4px}
 .teacher-workspace165 .d67-name strong{font-size:19px}
 .teacher-workspace165 :is(.d67-att,.d67-homework){font-size:13px}
 .teacher-workspace165 .d67-savebar{flex-wrap:wrap;gap:6px 10px;padding:10px 12px}
 .teacher-workspace165 .d67-savebar>div{width:100%}
 .teacher-workspace165 .d67-savebar b{max-width:none;font-size:13px}
 .teacher-workspace165 .d67-savebar .d67-button{font-size:14px;min-height:44px;flex:1}
 .teacher-workspace165 #sheet67{max-height:calc(100dvh - 12px)}
 .teacher-workspace165 #sheet-content67{padding:18px}
 .teacher-workspace165 .d67-panel-save{position:static;min-height:48px}
 .teacher-workspace165 .l68-detail{padding:16px}
 .teacher-workspace165 .l68-detail h3{margin-bottom:12px}
 .teacher-workspace165 .l68-list{padding:10px}
 .teacher-workspace165 .l68-layout{gap:10px}
 .teacher-workspace165 .l68-top{margin-bottom:6px}
 .teacher-workspace165 .l68-meta summary{padding:12px;gap:8px}
 .teacher-workspace165 .l69-filter{flex-wrap:wrap}
 .teacher-workspace165 .l69-filter input{min-width:140px}
 .teacher-workspace165 .l69-filter select{width:120px}
 .teacher-workspace165 #l68-dock{padding:9px 12px}
 .teacher-workspace165 #l68-dock small{display:block;min-width:0;line-height:1.4;font-size:0}
 .teacher-workspace165 #l68-dock small br,.teacher-workspace165 #l68-dock small br+span{display:none}
 .teacher-workspace165 #l68-dock-state{font-size:13px}
 .weekly-reminder94.teacher-reminder165>summary{flex-wrap:wrap;gap:4px 8px;padding:10px 12px}
}

/* Short windows and the reduced area while a virtual keyboard is open. */
@media(max-height:540px){
 .teacher-workspace165 .d67-app{display:block;overflow:auto;scroll-padding-block:10px 96px}
 .teacher-workspace165 .d67-app>*,.teacher-workspace165 .d67-classbar{margin-bottom:10px}
 .teacher-workspace165 #body67,.teacher-workspace165 #body67:has(.l68-layout){display:block;overflow:visible}
 .teacher-workspace165 #content67,.teacher-workspace165 #content67:has(.l68-layout){display:block;overflow:visible}
 .teacher-workspace165 .d67-workspace{min-height:320px;max-height:440px;margin-bottom:12px}
 .teacher-workspace165 .d67-savebar,.teacher-workspace165 #l68-dock{position:sticky;bottom:0;z-index:5}
}
