/* Keep the teaching workspace comfortable on a large monitor. */
body>header,.app{width:100%;max-width:1320px;margin-inline:auto}
body>header{height:auto;min-height:64px;flex-wrap:wrap;padding:10px 20px;gap:8px 16px}
.header-right{flex-wrap:wrap;justify-content:flex-end;gap:3px;min-width:0}
.header-right button{font-size:13px}
main{min-width:0}
.room,.list-wrap{height:clamp(480px,calc(100dvh - 260px),620px);min-height:480px}
.desk-top{font-size:14px}
.room-footer{gap:12px;flex-wrap:wrap}
.activitybar{gap:10px;flex-wrap:wrap}
#search[hidden]{display:none!important}
.classroom-status{flex-wrap:wrap}
.student-row{min-width:0}
.student-row .name{flex-shrink:0}
.student-row .row-meta{min-width:0;overflow-wrap:anywhere}
.history{max-height:calc(100dvh - 130px);overflow:auto}
dialog{max-height:min(780px,calc(100dvh - 40px));padding:22px;overflow-wrap:anywhere}
.dialog-top{gap:16px;align-items:flex-start}
.dialog-top h2{line-height:1.35}
.dialog-top .close{flex:none}
#feedbackDialog{width:min(1000px,calc(100vw - 32px));height:min(820px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);padding:22px;overflow:hidden}
#feedbackDialog[open]{display:flex;flex-direction:column}
#feedbackDialog>.dialog-top{position:static;flex:none;padding:0 0 12px}
#feedbackDialog>p,#feedbackDialog>a,#feedbackDialog>details{flex:none}
#feedbackDialog>details{max-height:180px;overflow:auto}
.feedback-workspace{flex:1;min-height:0;grid-template-rows:minmax(0,1fr);margin-top:16px;gap:24px}
.feedback-roster{position:static;align-self:stretch;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}
#feedbackPanel{min-height:0;overflow:auto;overscroll-behavior:contain;padding-right:10px;scroll-padding-top:12px}
#feedbackStatus{margin:8px 0 0;min-height:0;font-size:12px}
#reviewDialog.semester-overview{height:min(780px,calc(100dvh - 48px));max-height:calc(100dvh - 48px)}
#criteriaDialog{width:min(850px,calc(100vw - 32px))}
@media(max-width:1150px){
 body>header{display:flex;height:auto;min-height:64px}
 .header-right{width:100%;margin-left:0;justify-content:flex-start}
 .room,.list-wrap{height:clamp(480px,calc(100dvh - 280px),620px)}
}
@media(max-width:750px){
 body>header{padding:10px 14px}
 .header-right{gap:2px 4px}
 .header-right button{padding:8px 6px}
 .room{min-width:650px;height:510px;min-height:510px}
 .desk-top{font-size:13px}
 .room-scroll{max-width:100%;overflow:auto;padding-bottom:6px}
 .list-wrap{height:510px;min-height:0;margin-left:0;width:100%;padding-inline:12px}
 .student-row{gap:8px}
 .student-row .name{width:100px}
 .student-row .row-rate{padding-inline:4px}
 .room-footer{padding-inline:4px}
 .classroom-status{justify-content:flex-end}
 .popover{max-height:calc(100dvh - 24px)}
}
@media(max-width:650px){
 dialog{padding:16px;max-height:calc(100dvh - 24px)}
 #feedbackDialog{padding:16px;width:calc(100vw - 24px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}
 .feedback-workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:130px minmax(0,1fr);gap:14px}
 .feedback-roster{max-height:none;padding-right:0;padding-bottom:8px}
 #feedbackPanel{padding-right:4px}
 #reviewDialog.semester-overview{height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}
 .overview-workspace{grid-template-rows:130px minmax(0,1fr)}
 .schedule-row{grid-template-columns:minmax(0,1fr) 90px 90px;gap:6px;font-size:12px}
 .overview-record-head{flex-wrap:wrap;gap:4px}
 .overview-comparison{grid-template-columns:1fr}
 .overview-timeline-head{flex-wrap:wrap}
}
