body.study-frame-active{overflow:hidden;}
#view-home.study-frame.active{display:flex;flex-direction:column;height:calc(var(--study-viewport-height,100vh) - var(--study-header-height,72px));min-height:0;overflow:hidden;}
#view-home.study-frame .coursebar{flex:0 0 auto;box-sizing:border-box;min-height:104px;margin:12px auto;padding:16px 24px;width:calc(100% - 40px);border-radius:16px;}
#view-home.study-frame .study-hero-motto{display:grid;gap:9px;text-align:center;white-space:nowrap;}
#view-home.study-frame .study-hero-motto .hero-eyebrow{display:flex;justify-content:center;margin:0;font-size:9px;}
#view-home.study-frame .study-hero-motto .hero-subline{display:block;margin:0;font-size:11px;}
#view-home.study-frame .course-picker{margin:0;gap:12px;}
#view-home.study-frame .course-picker small{font-size:12px;margin:0 0 4px;}
#view-home.study-frame .course-picker strong{font-size:25px;line-height:1.25;}
#view-home.study-frame .period-status{margin:0;padding:12px 16px;}
#view-home.study-frame .workspace{flex:1 1 auto;min-height:0;width:calc(100% - 40px);margin:0 auto 12px;align-items:stretch;}
#view-home.study-frame .sidebar{min-height:0;max-height:100%;overflow-y:auto;overscroll-behavior:contain;align-self:stretch;}
#view-home.study-frame .sidebar{padding:10px;}
#view-home.study-frame .sidebar .side-title{padding:8px 12px;margin-bottom:6px;}
#view-home.study-frame .sidebar .side-btn{padding:10px 12px;margin:0 0 2px;line-height:20px;}
#view-home.study-frame .sidebar .package-card{margin-top:12px;padding:16px;min-height:0;}
#view-home.study-frame .sidebar .package-card strong{font-size:18px;}
#view-home.study-frame .content{display:flex;min-height:0;max-height:100%;padding:20px;overflow:hidden;}
#view-home.study-frame #moduleContent{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;overflow:hidden;}
#view-home.study-frame #moduleContent>.stats{flex:0 0 auto;margin-bottom:18px;}
#view-home.study-frame .stats .stat{min-height:0;padding:12px 16px;}
#view-home.study-frame .stats .stat span{font-size:12px;}
#view-home.study-frame .stats .tip{min-height:0;padding:12px 16px;font-size:12px;}
#view-home.study-frame .stats .stat strong{font-size:32px;margin-top:5px;line-height:1.2;}
#view-home.study-frame .study-list-scroll{flex:1 1 auto;min-height:0;min-width:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;touch-action:pan-y;}
#view-home.study-frame .study-list-scroll:focus-visible{outline:2px solid #246bfe;outline-offset:2px;}
#view-home.study-frame .study-list-scroll>.section-head{position:sticky;top:0;z-index:3;margin:0;padding:5px 1px 16px;background:#fff;}
#view-home.study-frame .study-list-scroll .list-head{position:static;}
#loginDialog .auth-tabs button{white-space:nowrap;}
.sms-recovery-tabs{display:flex;gap:6px;margin:12px 0;}
.sms-recovery-tabs button{flex:1;}
@media(max-width:800px){
 #view-home.study-frame .study-hero-motto{display:none;}
 #view-home.study-frame .coursebar{width:calc(100% - 20px);margin:8px auto;min-height:90px;padding:12px 16px;}
 #view-home.study-frame .workspace{display:flex;flex-direction:column;gap:8px;width:calc(100% - 20px);margin:0 auto 8px;}
 #view-home.study-frame .sidebar{display:flex;flex:0 0 auto;flex-direction:row;max-height:none;overflow-x:auto;overflow-y:hidden;padding:5px;margin:0;border-radius:12px;}
 #view-home.study-frame .sidebar .side-btn{flex:0 0 auto;margin:0;padding:9px 11px;white-space:nowrap;}
 #view-home.study-frame .sidebar .side-title,#view-home.study-frame .sidebar .package-card{display:none;}
 #view-home.study-frame .content{flex:1 1 auto;min-height:0;padding:12px;}
 #view-home.study-frame #moduleContent>.stats{gap:6px;margin-bottom:10px;}
 #view-home.study-frame .stats .stat{min-height:0;padding:10px 12px;}
 #view-home.study-frame .stats .stat strong{font-size:24px;line-height:1.2;margin-top:3px;}
 #view-home.study-frame .stats .stat span{font-size:11px;}
 #view-home.study-frame .stats .tip{min-height:0;padding:7px 10px;font-size:11px;line-height:1.4;}
 #view-home.study-frame .section-head{margin-bottom:10px;}
 #view-home.study-frame .study-list-scroll>.section-head{padding-bottom:10px;}
}
@media(max-width:670px){
 #view-home.study-frame .coursebar{display:flex;flex-wrap:wrap;align-items:center;gap:9px;min-height:104px;padding:10px 12px;}
 #view-home.study-frame .course-hero-copy{min-width:0;flex:1 1 100%;}
 #view-home.study-frame .course-picker{padding:0;gap:6px;width:100%;}
 #view-home.study-frame .course-picker strong{font-size:18px;line-height:1.3;}
 #view-home.study-frame .course-picker small{font-size:10px;}
 #view-home.study-frame .course-picker .chevron{width:23px;height:23px;flex:0 0 23px;font-size:13px;}
 #view-home.study-frame .period-status{flex:1 1 100%;display:flex;min-width:0;max-width:100%;padding:0;border:0;background:none;gap:6px;}
 #view-home.study-frame .period-status small{display:none;}
 #view-home.study-frame .period-status strong{font-size:11px;line-height:1.4;white-space:normal;}
 #view-home.study-frame .period-status .days{font-size:9px;padding-left:5px;}
 #view-home.study-frame .period-status .days b{font-size:16px;line-height:1.2;}
 #view-home.study-frame .agency-mobile-entry{flex:0 0 auto;min-height:0;margin:0 10px 8px;padding:7px 12px;}
 #view-home.study-frame .agency-mobile-entry strong{font-size:12px;}
 #view-home.study-frame .agency-mobile-entry span{font-size:10px;margin-top:2px;}
 #view-home.study-frame .stats{grid-template-columns:repeat(3,minmax(0,1fr));}
 #view-home.study-frame .stats .tip{grid-column:1/-1;}
}
