/* Keep course actions visible independently of unit count and laptop height. */
@media (min-width:768px) {
 html body .student-course-page .student-course-main { min-height:0; overflow:hidden; padding-block:12px!important; }
 html body .student-course-page .student-course-shell { flex:1 1 0%; display:flex; flex-direction:column; min-height:0; height:auto; margin-block:0!important; padding-block:0!important; overflow:hidden; }
 html body .student-course-page .student-course-intro { flex:none; margin-bottom:10px!important; }
 html body .student-course-page .student-course-picker { flex:1 1 0%; min-height:0; display:flex; overflow:hidden; }
 html body .student-course-page .student-course-picker-grid { flex:1 1 0%; min-width:0; min-height:0; grid-template-columns:minmax(180px,1fr) 150px minmax(120px,1fr)!important; grid-template-rows:auto minmax(0,1fr)!important; }
 html body .student-course-page .student-course-picker-grid>[aria-label="选择册次"] { grid-column:auto!important; min-width:0; }
 html body .student-course-page .student-course-units { min-height:0!important; height:100%!important; align-self:stretch; display:flex; flex-direction:column; overflow:hidden; }
 html body .student-course-page .student-course-unit-groups { flex:1 1 0%; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:4px 4px 8px; }
 html body .student-course-page .student-course-shell>div:has(>.student-course-start) { flex:0 0 auto; min-width:0; margin-top:10px!important; }
 html body .student-course-page .student-course-start { min-height:40px; }
}

/* Multiple editions/volumes must scroll within the cover area, not grow the row. */
@media (min-width:768px) {
 html body .student-course-page .student-course-picker-grid>[aria-label="选择册次"] { max-height:clamp(90px,24vh,220px); overflow-y:auto; overscroll-behavior:contain; padding:4px 6px 8px!important; }
}
