/* Fix37: interactive teacher responsiveness. Scoped; no changes to the normal lab. */
#v183Teacher.open{grid-template-rows:auto minmax(0,1fr)!important}
#v183Teacher .v183Top{max-width:100%;min-width:0;box-sizing:border-box}
#v183Teacher .v183Stage{min-height:0;min-width:0;align-self:stretch;box-sizing:border-box}
#v183Teacher #v183LabMount{min-width:0;box-sizing:border-box;overscroll-behavior:contain}
#v183Teacher #v183LabMount .abframe{margin-inline:auto!important;max-width:none!important}
@media(max-width:650px){
 #v183Teacher .v183Top{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;gap:4px!important;padding:5px!important}
 #v183Teacher .v183Info{grid-column:2;min-width:0!important;overflow:hidden;text-overflow:ellipsis}
 #v183Teacher .v183Top>button:last-of-type{display:none!important} /* back button remains */
 #v183Teacher #v294BeadSoundBtn{grid-column:3}
 #v183Teacher .v183Nav{grid-column:1/-1!important;min-width:0;gap:4px;max-width:100%;justify-content:center}
 #v183Teacher .v183Nav button,#v183Teacher .v183Nav select{min-height:30px!important;font-size:clamp(10px,2.8vw,12px)!important}
 #v183Teacher .v183Stage{padding:3px 4px 4px!important}
 #v183Teacher .v183LessonStrip{min-height:29px;margin-bottom:3px!important;padding:3px 5px!important}
 #v183Teacher #v183LabMount{padding:3px!important;border-radius:13px}
}
@media(orientation:landscape) and (max-height:540px){
 #v183Teacher .v183Top{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;min-height:0!important;padding:2px 7px!important;gap:3px!important}
 #v183Teacher .v183Info{display:none!important}
 #v183Teacher .v183Top>button:first-child{grid-column:1;grid-row:1}
 #v183Teacher #v294BeadSoundBtn{grid-column:3;grid-row:1}
 #v183Teacher .v183Top>button:last-of-type{display:none!important}
 #v183Teacher .v183Nav{grid-column:2;grid-row:1;display:flex!important;flex-wrap:wrap!important;justify-content:center!important;max-height:64px;overflow:hidden;gap:3px!important}
 #v183Teacher .v183Nav button,#v183Teacher .v183Nav select,#v183Teacher .v183Nav input{min-height:29px!important;max-height:32px;font-size:11px!important}
 #v183Teacher .v183Current{height:30px!important;font-size:16px!important}
 #v183Teacher .v183Stage{grid-template-rows:min-content minmax(0,1fr)!important}
 #v183Teacher .v183LessonStrip{min-height:25px!important;max-height:30px;overflow:hidden}
 #v183Teacher #v183LabMount>#abacus .abstage{max-height:calc(100dvh - 85px)!important}
}
