﻿.mobile-study-hint{display:none}
@media(max-width:900px){
 body.mobile-study-layout{overflow:hidden}
 body.mobile-study-layout #studyView{position:fixed;inset:0;z-index:30;display:flex;flex-direction:column;background:#f5f6f0;height:100vh;height:100dvh;padding:0 max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));overflow:hidden}
 body.mobile-study-layout .study-heading{flex:none;min-height:52px;gap:10px;align-items:center;padding:8px 0;flex-wrap:nowrap}
 body.mobile-study-layout .study-heading>div{min-width:0;flex:1}
 body.mobile-study-layout .study-heading h1{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.mobile-study-layout .study-heading .eyebrow,body.mobile-study-layout .study-heading>span{display:none}
 body.mobile-study-layout .study-heading>button{white-space:nowrap;min-height:40px;padding:8px 10px;font-size:13px}
 body.mobile-study-layout .workspace{--mobile-video-height:min(calc((100vw - 24px)*.5625),32vh);--mobile-video-height:min(calc((100vw - 24px)*.5625),32svh);display:flex;flex-direction:column;gap:10px;min-height:0;flex:1;overflow-y:auto;overflow-x:hidden;isolation:isolate;scroll-padding-top:calc(var(--mobile-video-height) + 12px);padding-bottom:18px}
 body.mobile-study-layout .workspace>.left{display:none}
 body.mobile-study-layout .workspace .player{order:0;position:sticky;top:0;z-index:10;flex:none;width:100%;height:var(--mobile-video-height);min-height:0;aspect-ratio:auto;border-radius:10px;box-shadow:0 6px 12px #172c2520;background:#172c25}
 body.mobile-study-layout .player video{object-fit:contain}
 body.mobile-study-layout .workspace .toolbar{order:1;position:static;flex:none;margin:0;padding:0;gap:6px}
 body.mobile-study-layout .toolbar button{min-height:40px;font-size:12px;padding:8px 10px}
 body.mobile-study-layout .toolbar label{font-size:12px}
 body.mobile-study-layout .workspace>.subtitles{order:2;flex:none;min-height:0!important;max-height:none;overflow:visible;padding-top:14px}
 body.mobile-study-layout .subtitles>.section-head{padding:0 14px}
 body.mobile-study-layout .subtitles>.section-head h2{font-size:16px}
 body.mobile-study-layout .mobile-study-hint{display:block;font-size:11px;line-height:1.5;color:#526e5c;margin:6px 14px 0}
 body.mobile-study-layout .learning-tool-nav{padding-top:6px}
 body.mobile-study-layout .panel-tabs{margin-top:0}
 body.mobile-study-layout #sentences{height:max(190px,calc(100vh - var(--mobile-video-height) - 265px));height:max(190px,calc(100dvh - var(--mobile-video-height) - 265px));max-height:600px;min-height:190px;flex:none;overflow:auto;overscroll-behavior-y:auto;padding-bottom:12px;scroll-padding:8px}
 body.mobile-study-layout #cards{max-height:55vh;overflow:auto}
 body.mobile-study-layout .workspace .description{order:3;flex:none;margin-bottom:0}
 body.mobile-study-layout .workspace .practice{order:4;flex:none;margin-bottom:0}
 body.mobile-study-layout .study-footer{display:none}
 body.mobile-study-layout .sentence{padding:12px}
 body.mobile-study-layout .exercise-panel{scroll-margin-top:calc(var(--mobile-video-height) + 12px)}
}
@media print{body.mobile-study-layout #studyView{position:static;height:auto;overflow:visible}body.mobile-study-layout .workspace{overflow:visible}.mobile-study-hint{display:none!important}}

@media(max-width:900px){body.mobile-study-layout .workspace>.left>.hint{display:none}}


@media(max-width:900px){body.mobile-study-layout .workspace>.player{display:flex;flex-shrink:0;min-height:96px}body.mobile-study-layout .workspace>.player video{width:100%;height:100%;max-height:100%;object-fit:contain}body.mobile-study-layout #studyView{background:#edf5ff}}

/* Fallback for Safari without aspect-ratio support. */
@supports not (aspect-ratio:16/9){#studyView .player{height:0;padding-top:56.25%}#studyView .player>video,#studyView .player>#empty{position:absolute;top:0;left:0;width:100%;height:100%}body.mobile-study-layout #studyView .player{padding-top:0;min-height:96px}}
