/* The video and the current sentence share one visual surface. */
.lesson-page[data-mode=shorts]{--fused-bg:#090c0e;--fused-fg:#fafafa;--fused-fade:linear-gradient(transparent,#090c0e);--fused-hit-bg:#19402d;--fused-hit-fg:#c4f4d6;--fused-heard:#efbd77;--fused-extra-bg:#3a2a1b}
.lesson-page[data-mode=shorts][data-fused-theme=light]{--fused-bg:#fff;--fused-fg:#252b29;--fused-fade:linear-gradient(transparent,#fff);--fused-hit-bg:#dff2e6;--fused-hit-fg:#166145;--fused-heard:#955716;--fused-extra-bg:#fbeddc}
.lesson-page[data-mode=shorts] .lesson-workspace,
.lesson-page[data-mode=shorts].video-landscape .lesson-workspace{display:flex;flex-direction:column;gap:0;max-width:780px;margin-inline:auto;align-items:stretch}
.lesson-page[data-mode=shorts] .fused-lesson-tools{order:0;display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:0 0 10px}
.lesson-page[data-mode=shorts] .fused-lesson-tools .section-title{margin:0;gap:8px}
.lesson-page[data-mode=shorts] .fused-lesson-tools .section-title h2,
.lesson-page[data-mode=shorts] .fused-lesson-tools #full-word-count,
.lesson-page[data-mode=shorts] .fused-lesson-tools #toggle-full-text,
.lesson-page[data-mode=shorts] .fused-lesson-tools #vocab-guide{display:none}
.lesson-page[data-mode=shorts] .fused-lesson-tools .vocab-toolbar{display:flex;align-items:center;flex-wrap:wrap;margin:0;gap:8px}
.lesson-page[data-mode=shorts] .fused-lesson-tools #mobile-transcript-toggle{display:inline-flex;align-items:center;min-height:38px;padding:6px 9px;font-size:12px}
.lesson-page[data-mode=shorts] .fused-lesson-tools #translate-current-btn{min-height:38px;padding:6px 10px;font-size:12px}
.lesson-page[data-mode=shorts] .fused-lesson-tools #report-issue{display:block;margin:8px 0;font-size:12px}
.lesson-page[data-mode=shorts] .fused-lesson-tools #fused-theme-toggle{min-height:38px;border:1px solid #cbd2ce;background:#fff;color:#323d37;border-radius:8px;padding:7px 11px;font-size:12px;font-weight:600}
.lesson-page[data-mode=shorts] .fused-word-legend{position:relative;font-size:11px;color:#6e766f}
.lesson-page[data-mode=shorts] .fused-word-legend>summary{cursor:pointer;padding:9px 2px;list-style:none}
.lesson-page[data-mode=shorts] .fused-word-legend>summary::-webkit-details-marker{display:none}
.lesson-page[data-mode=shorts] .fused-word-legend[open]{background:white;border:1px solid #dfe4df;border-radius:8px;padding:0 8px}
.lesson-page[data-mode=shorts] .fused-word-legend .word-status-key{margin:0 0 8px}
.lesson-page[data-mode=shorts] .fused-lesson-tools .video-column>.section-title{margin:0}
.lesson-page[data-mode=shorts] .video-column,
.lesson-page[data-mode=shorts].video-landscape .video-column{order:1;position:relative;top:auto;width:100%;max-width:none;margin:0;background:var(--fused-bg);border-radius:18px 18px 0 0;overflow:hidden}
.lesson-page[data-mode=shorts] .video-column>.small{display:none}
.lesson-page[data-mode=shorts] .video-column::after{content:"";position:absolute;z-index:2;left:0;right:0;bottom:0;height:12px;background:var(--fused-fade);pointer-events:none}
.lesson-page[data-mode=shorts] .video-wrap:not(:fullscreen),
.lesson-page[data-mode=shorts].video-landscape .video-wrap:not(:fullscreen){width:100%;height:auto;max-height:min(60dvh,620px);aspect-ratio:var(--video-ratio,16/9);margin:0;border-radius:0;background:#090909}
.lesson-page[data-mode=shorts]:not(.video-landscape) .video-wrap:not(:fullscreen){height:min(40dvh,340px);max-height:none;aspect-ratio:auto}
.lesson-page[data-mode=shorts] .native-video video{width:100%;height:100%;max-height:none;object-fit:contain}
.lesson-page[data-mode=shorts] .practice-column{order:2;width:100%;min-width:0}
.lesson-page[data-mode=shorts] .full-transcript-panel{padding:0 20px 22px;margin:0 0 16px;border:0;border-radius:0 0 18px 18px;background:var(--fused-bg);color:var(--fused-fg)}
.lesson-page[data-mode=shorts] .full-transcript{margin:0;padding:18px 6px 12px;min-height:118px;max-height:none;overflow:visible;color:var(--fused-fg);font-size:clamp(22px,2.6vw,29px);font-weight:560;line-height:1.5;text-align:center;letter-spacing:-.025em}
.lesson-page[data-mode=shorts] .full-transcript:not(.mobile-show-all) .sentence-option:not(.selected){display:none}
.lesson-page[data-mode=shorts] .full-transcript .sentence-option.selected{display:block;max-width:100%;padding:0;border:0;background:transparent;color:inherit;cursor:default}
.lesson-page[data-mode=shorts] .full-transcript .sentence-option.selected:hover{background:transparent}
.lesson-page[data-mode=shorts] .full-transcript .sentence-option>.sentence-flow{padding:0;background:transparent;overflow:visible;line-height:2.15}
.lesson-page[data-mode=shorts] .full-transcript.mobile-show-all{max-height:min(45dvh,420px);overflow-y:auto;text-align:left;font-size:19px}
.lesson-page[data-mode=shorts] .full-transcript.mobile-show-all .sentence-option{cursor:pointer}
.lesson-page[data-mode=shorts] .transcript-actions,.lesson-page[data-mode=shorts] .transcript-instruction{display:none}
.lesson-page[data-mode=shorts] .inline-assessment{display:none}
.lesson-page[data-mode=shorts][data-fused-theme=dark] .full-transcript .transcript-word.recognized,
.lesson-page[data-mode=shorts][data-fused-theme=dark] .sentence-flow .transcript-word.recognized{color:#81dfb5}
.lesson-page[data-mode=shorts][data-fused-theme=dark] .sentence-flow{
  --flow-fill:linear-gradient(to bottom,#315d4a,#244b3a 42%,#1b3c2e);
  --flow-rim:inset 0 1px #a8e9c750,inset 0 -2px #0a211b9c;
  --flow-glint:#baf3d5;
  --flow-lock:#77c79e;
  --flow-uncertain-ink:#b5c8be;
}
.lesson-page[data-mode=shorts] #full-transcript .sentence-option>.sentence-flow .transcript-word.recognized::before{bottom:-.15em}
.lesson-page[data-mode=shorts] .sentence-option>.sentence-flow .transcript-word.flow-reveal::after{inset-block:18%}
.lesson-page[data-mode=shorts] .sentence-option>.sentence-flow.flow-bam .flow-finish-target::after{inset-block:-1px auto}
.lesson-page[data-mode=shorts] .sentence-option>.sentence-flow .transcript-word.recognized{background:transparent;color:var(--fused-hit-fg);border-radius:4px;box-shadow:none}
.lesson-page[data-mode=shorts] .sentence-option>.sentence-flow .transcript-word.recognized .transcript-letters{color:var(--fused-hit-fg)}
.lesson-page[data-mode=shorts] .sentence-option>.sentence-flow.sentence-complete{padding:0}
.lesson-page[data-mode=shorts] .sentence-option>.sentence-flow .transcript-word.flow-reveal{animation:none}
.lesson-page[data-mode=shorts] .sentence-option>.sentence-flow .transcript-word{display:inline-block;vertical-align:baseline;line-height:1;margin:0;padding-top:0}
.lesson-page[data-mode=shorts] .sentence-option>.sentence-flow .transcript-word.has-heard{position:relative;min-width:var(--heard-min-width,0);vertical-align:baseline;margin:0 2px;line-height:1;white-space:nowrap}
.lesson-page[data-mode=shorts] .sentence-option>.sentence-flow .learner-heard{position:absolute;top:auto;bottom:calc(100% + 5px);left:50%;transform:translateX(-50%);width:max-content;height:auto;min-height:0;max-width:none;margin:0;padding:0 2px;line-height:1.2;font-size:.62em;z-index:3}
.lesson-page[data-mode=shorts] .sentence-option>.sentence-flow .number-feedback{display:inline-block;position:relative;vertical-align:baseline;margin:0;padding:0;line-height:1}
.lesson-page[data-mode=shorts] .sentence-option>.sentence-flow .number-reference{display:inline;line-height:1}
.lesson-page[data-mode=shorts] .sentence-option>.sentence-flow .heard-other{color:var(--fused-heard);background:transparent;border-bottom:1px dotted currentColor}
.lesson-page[data-mode=shorts] .sentence-option>.sentence-flow .heard-extra{display:inline-block;position:relative;vertical-align:baseline;max-width:100%;margin:0 3px;padding:0 3px;border:0;border-radius:4px;background:var(--fused-extra-bg);color:var(--fused-heard);font-size:.68em;line-height:1.55;white-space:normal;overflow-wrap:anywhere}
.lesson-page[data-mode=shorts] .sentence-option>.sentence-flow .heard-extra .extra-sign{position:relative;z-index:4;margin-right:3px;opacity:.85}
.lesson-page[data-mode=shorts][data-fused-theme=dark] .full-transcript .transcript-word.vocab-new{background:#263750;color:#bbd3ff;box-shadow:inset 0 -2px #729bd8}
.lesson-page[data-mode=shorts][data-fused-theme=dark] .full-transcript .transcript-word.vocab-unsure{background:#4d401d;color:#ffe7a2;box-shadow:inset 0 -2px #d1a94a}
.lesson-page[data-mode=shorts][data-fused-theme=dark] .full-transcript .transcript-word.vocab-unknown{background:#4b2734;color:#ffc7db;box-shadow:inset 0 -2px #d780a2}
.lesson-page[data-mode=shorts][data-fused-theme=dark] .full-transcript .transcript-word.speaking .transcript-letters{color:#161b1d;background:#fff;box-shadow:0 0 0 2px #fff}
.lesson-page[data-mode=shorts][data-fused-theme=dark] .full-transcript .transcript-word.vocab-new .transcript-letters{color:#bbd3ff;background:transparent}
.lesson-page[data-mode=shorts][data-fused-theme=dark] .full-transcript .transcript-word.vocab-unsure .transcript-letters{color:#ffe7a2;background:transparent}
.lesson-page[data-mode=shorts][data-fused-theme=dark] .full-transcript .transcript-word.vocab-unknown .transcript-letters{color:#ffc7db;background:transparent}
.lesson-page[data-mode=shorts][data-fused-theme=dark] .full-transcript .transcript-word.vocab-known .transcript-letters{color:#fff}
.lesson-page[data-mode=shorts][data-fused-theme=dark] .full-transcript .heard-other{color:#f4c177}
.lesson-page[data-mode=shorts][data-fused-theme=dark] .sentence-translation{background:#173229;color:#e6f5e9;border-color:#78cba0}
.lesson-page[data-mode=shorts][data-fused-theme=dark] .sentence-translation-label,.lesson-page[data-mode=shorts][data-fused-theme=dark] .sentence-translation small{color:#addac0}
.lesson-page[data-mode=shorts] .native-video-controls{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s ease-out}
.lesson-page[data-mode=shorts] .native-video.controls-visible .native-video-controls,
.lesson-page[data-mode=shorts] .native-video:fullscreen .native-video-controls{opacity:1;visibility:visible;pointer-events:auto}
.lesson-page[data-mode=shorts] .video-overlay-play{z-index:1}
@media(max-width:640px){
 .lesson-page[data-mode=shorts] .fused-lesson-tools{gap:4px 8px;padding-bottom:8px}
 .lesson-page[data-mode=shorts] .fused-lesson-tools .vocab-toolbar{order:2;width:100%}
 .lesson-page[data-mode=shorts] .fused-lesson-tools #fused-theme-toggle{margin-left:auto}
 .lesson-page[data-mode=shorts] .full-transcript-panel{padding:0 14px 15px}
 .lesson-page[data-mode=shorts] .full-transcript{padding:15px 1px 10px;min-height:108px;font-size:clamp(20px,6vw,25px)}
 .lesson-page[data-mode=shorts] .video-wrap:not(:fullscreen),.lesson-page[data-mode=shorts].video-landscape .video-wrap:not(:fullscreen){max-height:min(50dvh,500px)}
}
@media(prefers-reduced-motion:reduce){.lesson-page[data-mode=shorts] .native-video-controls{transition:none}}
