/* Full viewport layout. Content scrolls independently of the fixed actor stage. */
html:has(body.classroom-page),body.classroom-page{width:100%;height:100dvh;overflow:hidden;background:#fff}
.classroom-page .review-layout{display:block;width:100%;height:100dvh;min-height:0;padding:0}
.classroom-page .review-panel{display:none}
.classroom-page .device-wrap{display:block;width:100%;height:100%}
.classroom-page .phone{--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--side:clamp(22px,3.5vw,48px);width:100%;height:100dvh;min-height:0;max-width:none;border-radius:0;box-shadow:none;zoom:1}
.classroom-page .top{left:var(--side);right:var(--side);top:calc(var(--safe-top) + 12px)}
.classroom-page .lesson-body{left:0;right:0;top:calc(var(--safe-top) + 76px);bottom:calc(var(--safe-bottom) + 270px)}
.classroom-page .lesson-sheet{height:auto;min-height:100%;padding:4px var(--side) 22px;display:flex;flex-direction:column;gap:22px}
.classroom-page .phone .verses{position:relative;inset:auto;max-height:none;overflow:visible;width:100%;gap:14px}
.classroom-page .phone .verses .verse{height:auto;min-height:64px;flex-shrink:0}
.classroom-page .phone .verses .unit{width:clamp(27px,7.3vw,42px)}
.classroom-page .phone .verses .hz{font-size:clamp(26px,7vw,34px);line-height:1.3}
.classroom-page .phone .verses .py{font-size:clamp(10px,2.8vw,13px);line-height:1.5;margin-bottom:5px}
.classroom-page .phone .verses .punct{font-size:27px;line-height:1.3;width:12px}
.classroom-page .phone .verses .comma{margin-right:8px}
.classroom-page .phone .verse.current{background:transparent;box-shadow:none}
.classroom-page .phone .verse.current .hz{box-shadow:none}
.classroom-page .phone .focused-verse{position:sticky;inset:auto;top:0;z-index:2;display:flex;flex-wrap:wrap;flex-shrink:0;align-items:flex-end;justify-content:center;width:100%;height:auto;min-height:102px;padding:16px 12px 18px;row-gap:9px;border:1px solid #e4dfd7;border-radius:18px;background:#fff;box-shadow:0 3px 16px #54452d04;color:var(--accent)}
.classroom-page .phone .focused-verse .unit{width:clamp(29px,7.9vw,48px)}
.classroom-page .phone .focused-verse .hz{font-size:clamp(28px,7.5vw,40px);line-height:1.25;font-weight:600}
.classroom-page .phone .focused-verse .py{font-size:clamp(11px,2.8vw,14px);line-height:1.5;margin-bottom:5px}
.classroom-page .phone .focused-verse .punct{font-size:clamp(26px,7vw,34px);line-height:1.4;width:12px}
.classroom-page .phone .focused-verse .comma{margin-right:8px}
.classroom-page .phone[data-mode="read"] .focused-verse,.classroom-page .phone[data-mode="teach"] .focused-verse{display:none}
.classroom-page .phone .conversation{position:relative;inset:auto;width:100%}
.classroom-page .phone .speaker-row{margin-bottom:20px}
.classroom-page .phone[data-mode="listen"] .lesson-sheet{gap:14px}
.classroom-page .phone[data-mode="listen"] .speaker-row{margin-bottom:12px}
.classroom-page.ipad-draft .phone[data-mode="listen"] .lesson-sheet{gap:12px}
.classroom-page.ipad-draft .phone[data-mode="listen"] .speaker-row{margin-bottom:10px}
@media(min-width:1000px) and (max-height:760px){
 .classroom-page .phone[data-mode="listen"] .focused-verse{min-height:88px;padding-block:10px}
 .classroom-page .phone[data-mode="listen"] .focused-verse .hz{font-size:32px}
 .classroom-page .phone[data-mode="listen"] .focused-verse .py{font-size:12px;margin-bottom:4px}
 .classroom-page .phone[data-mode="listen"] .speech-content{row-gap:10px}
 .classroom-page .phone[data-mode="listen"] .speech-content .unit{width:28px}
 .classroom-page .phone[data-mode="listen"] .speech-content .hz{font-size:22px}
 .classroom-page .phone[data-mode="listen"] .speech-content .py{font-size:11px}
}
.classroom-page .phone .speech-content{max-width:none;row-gap:12px}
.classroom-page .phone .speech-content .unit{width:clamp(26px,3.6vw,34px)}
.classroom-page .phone .speech-content .hz{font-size:clamp(21px,2.6vw,27px);line-height:1.4;font-weight:500}
.classroom-page .phone .speech-content .py{font-size:clamp(11px,1.5vw,13px);line-height:1.5;margin-bottom:4px}
.classroom-page .phone .speech-content .punct{font-size:21px;line-height:1.8;width:11px}
.classroom-page .phone .reading-gloss{position:relative;inset:auto;align-self:center;margin:10px 0}
.classroom-page .phone .learning-illustration{position:relative;inset:auto!important;align-self:center;flex-shrink:0;transform:none;width:min(100%,var(--lesson-art-width,376px))!important;height:var(--lesson-art-height,180px)!important;margin:6px auto 0}
.classroom-page .phone .interaction{position:relative;inset:auto;flex-direction:column;gap:20px}
.classroom-page .phone[data-mode="respond"] .interaction{display:flex}
.classroom-page .phone .question{position:relative;inset:auto;max-height:none;overflow:visible;justify-content:flex-start;row-gap:9px}
.classroom-page .phone .choices{position:relative;inset:auto;width:100%}
.classroom-page .phone .text-choices .choice{height:auto;min-height:94px;padding:18px 48px 18px 34px}
.classroom-page .phone .text-choices .choice-name{row-gap:7px}
.classroom-page .phone .text-choices .unit{width:22px}
.classroom-page .phone .text-choices .hz{font-size:18px;line-height:1.45}
.classroom-page .phone .text-choices .py{font-size:10px;line-height:1.5}
.classroom-page .phone .text-choices .choice-letter{top:34px}
.classroom-page .phone .feedback{position:relative;inset:auto;max-height:none;overflow:visible}
.classroom-page .phone .teacher-view{left:var(--side);right:var(--side);top:4px;bottom:0}
.classroom-page .phone[data-mode="teach"] .lesson-sheet{height:100%;min-height:100%;padding:0}
.classroom-page .phone .stage{top:auto;left:var(--side);right:var(--side);bottom:calc(var(--safe-bottom) + 148px);height:108px}
.classroom-page .phone .player{left:var(--side);right:var(--side);bottom:calc(var(--safe-bottom) + 29px);height:100px}
.classroom-page .phone .progress{position:relative;inset:auto;width:100%}
.classroom-page .phone .transport{position:relative;inset:auto;transform:none;width:min(320px,100%);margin:auto;padding:12px 18px 0;gap:30px}
.classroom-page .phone .time{position:static;margin-top:6px;width:100%;font-size:10px}
.classroom-page .home-indicator{display:none}
.classroom-page #menu{position:fixed;left:0;right:0;bottom:0;width:100%;max-width:520px;margin:0 auto;max-height:85dvh}
.classroom-page .audio-error{left:var(--side);right:var(--side)}
.classroom-page.ipad-draft .phone .stage{height:120px}
.classroom-page.ipad-draft .original-panel{left:var(--side);right:var(--side);top:calc(var(--safe-top) + 76px);bottom:calc(var(--safe-bottom) + 270px);width:auto;border:0;padding:0}
.classroom-page.ipad-draft .original-panel .book-title{left:0;top:0}
.classroom-page.ipad-draft .phone .original-panel .verses{position:absolute;left:0;right:0;top:70px;bottom:0;overflow-y:auto;max-height:none;padding:4px;gap:22px}
.classroom-page.ipad-draft .original-panel .reading-gloss{display:none!important}
.classroom-page.ipad-draft .phone[data-mode="read"] .lesson-body{display:none}
@media(max-width:999px){.classroom-page.ipad-draft .phone:not([data-mode="read"]) .original-panel{display:none}}
@media(min-width:1000px){
 .classroom-page.ipad-draft .original-panel{left:56px;right:auto;top:112px;bottom:164px;width:390px;border-right:1px solid var(--line);padding-right:30px}
 .classroom-page.ipad-draft .phone .original-panel .verses{right:30px;top:88px;padding:10px 4px}
 .classroom-page.ipad-draft .lesson-body{left:clamp(440px,44vw,526px);right:clamp(32px,5.2vw,62px)}
 .classroom-page.ipad-draft .lesson-sheet{padding-inline:0}
 .classroom-page.ipad-draft .phone .teacher-view{left:0;right:0}
 .classroom-page.ipad-draft .phone .stage{left:min(47.25vw,564px);right:min(8.38vw,100px);bottom:calc(var(--safe-bottom) + 155px)}
 .classroom-page.ipad-draft .phone .verses .unit{width:35px}
 .classroom-page.ipad-draft .phone .verses .hz{font-size:30px}
 .classroom-page.ipad-draft .phone .verses .py{font-size:11px}
 .classroom-page.ipad-draft .phone .verses .punct{font-size:25px}
 .classroom-page.ipad-draft .phone .verses .comma{margin-right:5px}
 .classroom-page.ipad-draft .phone .focused-verse .unit{width:clamp(31px,3.2vw,44px)}
 .classroom-page.ipad-draft .phone .focused-verse .hz{font-size:clamp(29px,3vw,38px)}
 .classroom-page.ipad-draft .phone .focused-verse .py{font-size:12px}
}
@media(max-height:700px){
 .classroom-page .lesson-body,.classroom-page.ipad-draft .original-panel{bottom:calc(var(--safe-bottom) + 240px)}
 .classroom-page .phone .stage{bottom:calc(var(--safe-bottom) + 130px)}
 .classroom-page .phone .player{bottom:calc(var(--safe-bottom) + 12px)}
}
/* Focus the small thumb, never frame the entire playback bar. */
.classroom-page .phone .progress,.classroom-page .phone .progress:focus-visible{border:0;outline:none;box-shadow:none}
.classroom-page .progress:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 3px var(--accent-focus)}
.classroom-page .progress:focus-visible::-moz-range-thumb{box-shadow:0 0 0 3px var(--accent-focus)}
