/* Speaking uses one spacing and sizing system across video, practice and results. */
.speaking-app{--speech-line:#c8daeb;--speech-radius:22px;--speech-shadow:0 5px 0 #c1d8ea}
.speaking-topbar{gap:32px}
.mode-nav{display:flex;align-items:center;gap:4px}
.mode-nav a{padding:8px 14px;text-decoration:none;font-size:15px;font-weight:800;border-radius:12px;color:var(--muted);white-space:nowrap}
.mode-nav a[aria-current]{background:#dceaff;color:var(--blue-dark)}
.speaking-header-actions{display:flex;align-items:center;gap:12px;margin-left:auto}
.star-counter{display:inline-flex;align-items:center;justify-content:center;min-height:40px;background:#fff0b0;border:2px solid #e9c64c;border-radius:12px;padding:5px 12px;font-weight:900;color:#725118;white-space:nowrap}
.speaking-header-actions .icon-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;height:40px;font-size:14px}
.speaking-header-actions .mode-link{padding:0 12px}
.speaking-header-actions button.icon-button{width:40px;padding:0;font-size:17px}
.speaking-shell{max-width:1680px;margin:0 auto;padding:24px clamp(24px,2.3vw,40px) 36px}
.mission-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px;min-height:44px}
.mission-heading>div{display:flex;align-items:center;gap:16px;min-width:0}
.mission-heading h1{font-size:30px;line-height:1.4;word-break:keep-all;margin:0;min-width:0}
.mission-heading>.micro{flex-shrink:0;font-size:16px;font-weight:700;font-variant-numeric:tabular-nums}
.chapter-switch{display:inline-flex;align-items:center;justify-content:center;gap:10px;flex-shrink:0;min-height:52px;padding:9px 18px;border:2px solid #a6c4e5;border-radius:12px;background:white;color:var(--blue-dark);font-size:18px;font-weight:900;box-shadow:0 3px 0 #c4d9e9;white-space:nowrap}
.chapter-switch:hover{background:#edf5ff}
.chapter-switch>span{font-size:16px;line-height:1}
/* A compact lesson path stays beside the single learning stage. */
.speaking-layout{display:grid;grid-template-columns:252px minmax(0,1fr);align-items:start;gap:clamp(24px,3vw,48px)}
.lesson-progress{display:flex;flex-direction:column;min-width:0;height:var(--lesson-stage-height,auto);margin-top:var(--lesson-stage-offset,0px);overflow:hidden;border:2px solid var(--speech-line);border-radius:20px;background:#fff;box-shadow:var(--speech-shadow)}
.lesson-sidebar-toggle{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-shrink:0;width:100%;min-height:44px;padding:8px 12px;border:0;border-bottom:1px solid #deebf5;background:#fbfdff;color:#526f8d;font-size:13px;font-weight:800;line-height:1.4}
.lesson-sidebar-toggle:hover{background:#e4f0fb;color:var(--blue-dark)}
.lesson-sidebar-toggle:focus-visible{outline:3px solid var(--blue);outline-offset:-4px}
.lesson-sidebar-toggle svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.lesson-path-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow-y:auto;padding:12px 8px;scrollbar-width:thin;scrollbar-color:#c6d8e7 transparent}
.lesson-path-toggle{display:none}
.mission-map{display:flex;flex-direction:column;flex-shrink:0;gap:0;margin-block:auto;padding:0 4px 4px;isolation:isolate}
.map-group{position:relative;display:grid;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:12px;min-height:102px;width:100%;padding:8px 6px;border:0;border-radius:16px;background:transparent;color:#647d92;text-align:left;line-height:1.5}
.map-group:nth-child(even){padding-left:22px;padding-right:0}
.map-group::before{content:"";position:absolute;z-index:-1;left:34px;top:50%;width:4px;height:100%;border-radius:4px;background:#d3e1eb;transform:rotate(-9deg);transform-origin:top center;pointer-events:none}
.map-group:nth-child(even)::before{left:50px;transform:rotate(9deg)}
.map-group:last-child::before{display:none}
.path-node{position:relative;display:grid;place-items:center;width:56px;height:56px;border:3px solid #d2e0eb;border-radius:50%;background:#fff;box-shadow:0 5px 0 #dce7f0;font-size:20px;font-weight:900;color:#8196a9;transition:transform .15s ease,background .15s ease}
.path-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:2px}
.path-copy strong{font-size:16px;line-height:1.45;word-break:keep-all;overflow-wrap:break-word}
.path-status{font-size:12px;font-weight:700;line-height:1.5;color:#8196a9}
.path-stars{font-size:12px;line-height:1.5;color:#8196a9;font-weight:800;font-variant-numeric:tabular-nums}
.map-group:hover .path-node{transform:translateY(-2px);background:#fff}
.map-group:hover .path-copy strong{color:var(--ink)}
.map-group.finished .path-node{background:#65bf8a;border-color:#55a978;box-shadow:0 5px 0 #419a66;color:white}
.map-group.finished::before{background:#a7d8ba}
.map-group.finished .path-copy strong,.map-group.finished .path-stars{color:#32835b}
.map-group.active .path-node{background:var(--blue);border-color:var(--blue-dark);box-shadow:0 5px 0 var(--blue-dark),0 0 0 6px #dce9ff;color:white}
.map-group.active .path-copy strong,.map-group.active .path-status{color:var(--blue-dark)}
.map-group.active .path-stars{color:#5a79a4}
.map-group:focus-visible{outline:3px solid #92b5f4;outline-offset:1px}
.video-lesson,.practice-column{min-width:0}
.mission-pills{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;overflow-x:auto;padding:1px 1px 5px;margin:0 0 16px;scrollbar-width:thin}
.mission-pill{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex-shrink:0;min-height:48px;padding:8px 16px;border:2px solid #c8dced;border-radius:11px;background:#f6fbff;color:#506981;font-size:17px;font-weight:800;line-height:1.5;white-space:nowrap;box-shadow:0 2px 0 #d1e2ef}
.mission-pill:hover{background:white}
.mission-pill.current{background:var(--blue);border-color:var(--blue-dark);color:white;box-shadow:0 2px 0 var(--blue-dark)}
.mission-pill.cleared:not(.current){background:#e5f6e9;border-color:#abd5b5;color:#25663f}
.clip-work{display:grid;grid-template-columns:minmax(0,1fr);width:min(100%,1120px,var(--solo-video-width,960px));margin-inline:auto;align-items:stretch}
.clip-work>.clip-panel,.clip-work>.practice-column{grid-area:1 / 1}
.clip-work.practice-open>.clip-panel{visibility:hidden}
.clip-work.practice-open>.practice-column{z-index:1}
.clip-work.practice-hidden>.practice-column{display:none}
.practice-column{display:grid}
.mobile-practice-hide{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:6px 12px;border:1px solid #dbe7f1;border-radius:10px;background:#f7faff;color:var(--muted);font-size:14px;font-weight:700;line-height:1.4;white-space:nowrap}
.mobile-practice-hide:hover:not(:disabled){background:#eaf2ff;color:var(--blue-dark)}
.speaking-app .mobile-practice-open{display:inline-flex}
.clip-panel,.video-lesson .talk-card{min-width:0;border:2px solid var(--speech-line);border-radius:var(--speech-radius);background:white;box-shadow:var(--speech-shadow);overflow:hidden}
.clip-panel{display:flex;flex-direction:column}
.clip-heading,.talk-heading{display:flex;align-items:center;gap:14px;min-height:68px;padding:15px 24px;border-bottom:1px solid #e3edf5;text-align:left}
.talk-heading{justify-content:space-between}
.clip-heading h2{font-size:19px;line-height:1.5;word-break:keep-all}
.clip-label{display:inline-flex;align-items:center;flex-shrink:0;min-height:30px;padding:4px 9px;border-radius:8px;background:#e8f0ff;color:var(--blue-dark);font-size:16px;font-weight:900;line-height:1.5;white-space:nowrap}
.speak-label{background:#fff0b0;color:#745414}
#lesson-video{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;object-position:center;background:#f3f6fa}
.lesson-video-frame{position:relative;isolation:isolate;overflow:hidden;flex-shrink:0}
.clip-footer{padding:14px 20px;margin-top:auto}
.clip-controls{display:flex;align-items:center;justify-content:center;gap:10px}
.clip-note{margin:0 0 12px;text-align:center;color:var(--muted);font-size:14px;line-height:1.6;word-break:keep-all}
.clip-note:empty{display:none}
.speaking-app .clip-controls .button{flex:0 1 auto;width:auto;min-width:144px;background:#f7faff;border-color:#dbe7f1;color:var(--muted);box-shadow:none}
.speaking-app .clip-controls .mobile-practice-open{min-width:0;background:var(--blue);border-color:var(--blue-dark);color:white;box-shadow:0 3px 0 var(--blue-dark)}
.speaking-app .clip-controls .button:hover:not(:disabled){background:#eaf2ff;border-color:#afc8e5;color:var(--blue-dark)}
.speaking-app .button{min-height:52px;padding:11px 20px;border-radius:14px;font-size:18px;line-height:1.5}
.speaking-app .button.primary{min-height:58px}
.speaking-app .button.quiet{min-height:48px;padding:9px 16px;font-size:16px}
.speaking-app .clip-footer .clip-controls .button{height:48px;min-height:48px;padding-block:8px}
.video-lesson .talk-card{height:auto;min-height:0;padding:0;text-align:center;display:flex;flex-direction:column}
.talk-content{flex:1;min-width:0;display:flex;flex-direction:column;align-items:stretch;justify-content:center;padding:clamp(24px,2.2vw,36px)}
.video-lesson .target-text,.video-lesson .earned-phrase{font-size:clamp(36px,3vw,44px);font-weight:900;line-height:1.4;letter-spacing:-.4px;word-break:normal;overflow-wrap:break-word;margin:0}
.video-lesson .target-text.word,.video-lesson .earned-phrase.word{font-size:64px;line-height:1.25}
.video-lesson .target-meaning{font-size:20px;line-height:1.6;color:var(--muted);margin:8px 0 0;word-break:keep-all}
.video-lesson .listen-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:12px 0 0}
.video-lesson .listen-row .button.quiet{border-color:#dbe7f1;background:#f7faff;box-shadow:none}
.video-lesson .practice-tip{font-size:16px;line-height:1.65;color:var(--muted);word-break:keep-all;margin:12px 0 20px}
.listen-status{font-size:14px;line-height:1.6;color:#295e43;margin:0 0 16px}
.listen-status:empty{display:none}
.record-zone{border-top:1px solid #e0eaf3;margin-top:0;padding-top:20px}
.record-button{width:100%;min-width:0}
.record-zone>.hint-trigger{display:block;min-height:44px;margin:8px auto 0;padding:10px 0;font-size:16px}
.record-zone>.micro{margin:0 0 16px;font-size:14px;line-height:1.6}
.record-status,.manual-label{font-size:18px;font-weight:800;line-height:1.6;margin:0 0 12px;word-break:keep-all}
.record-error{padding:12px;background:#fff1e9;color:#8d4229;border-radius:12px;font-size:14px;line-height:1.6;margin-bottom:16px;word-break:keep-all}
.recording-label{display:block;color:#bd4933;font-size:22px;font-weight:900;margin:0 0 12px}
.mic-waveform{display:block;width:100%;height:80px;background:#eef6ff;border:1px solid #c7dcf4;border-radius:12px;margin:0 0 8px;overflow:hidden}
.mic-waveform path{fill:none;stroke:#397beb;stroke-width:2.5;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.input-status{font-size:16px;color:#476b91;min-height:22px;margin:0 0 4px}
#record-time{display:block;font-variant-numeric:tabular-nums;margin:0 0 16px}
.practice-note{font-size:14px;color:var(--muted);line-height:1.6;margin:10px 0 0}
.practice-note:empty{display:none}
.microphone-choice{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin-bottom:16px;font-size:14px}
.microphone-choice:empty{display:none}
.microphone-choice select{font:inherit;max-width:100%;width:100%;padding:8px;border:1px solid #c7dcf4;border-radius:10px;background:#eef6ff;color:var(--ink)}
.stt-status{background:#f2f7fc;border-radius:12px;padding:14px;margin:0 0 16px;font-size:14px}
.stt-status>p:first-child{font-weight:700;margin:0}
.stt-status .micro{margin-top:8px;font-size:13px;line-height:1.6}
.stt-status .hint-trigger{font-size:14px}
.retry-count{display:inline-block;background:#fff0b0;color:#71510c;border:1px solid #e4c365;padding:5px 10px;border-radius:9px;font-size:14px;font-weight:800;margin:0 0 16px}
.spoken-word.heard{color:#187343}
.spoken-word.missing{color:#bf283e;text-decoration:underline dotted;text-decoration-thickness:2px;text-underline-offset:.16em}
.talk-card.capturing .practice-tip,.talk-card.capturing .listen-status,.talk-card.reviewing .practice-tip,.talk-card.reviewing .listen-status{display:none}
.talk-card.capturing .record-zone,.talk-card.reviewing .record-zone{margin-top:20px}
.earned-card .talk-content{justify-content:center;gap:12px}
.earned-card h2{font-size:30px;line-height:1.4;margin:0}
.video-lesson .earned-card .target-meaning,.video-lesson .earned-card .practice-tip,.video-lesson .earned-card .listen-row{margin:0}
.speaking-star{font-size:48px;line-height:1;color:#e9b124;text-shadow:0 3px 0 #f8d65f}
.speaking-layout .storage-error{font-size:14px;margin-top:16px}
/* Completion badges keep equal widths instead of leaving one oversized last tile. */
.speaking-ending{max-width:1100px;margin:8px auto 0;text-align:center}
.speaking-ending>img{display:block;width:112px;height:112px;border-radius:24px;margin:0 auto 16px;mix-blend-mode:multiply}
.speaking-ending h1{font-size:36px;margin:16px 0 0}
.ending-phrase{font-size:40px;font-weight:900;color:var(--blue-dark);line-height:1.4;margin:16px 0 0;overflow-wrap:break-word}
.speaking-badges{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0}
.speaking-badges>div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:118px;padding:16px 12px;background:white;border:2px solid #ead17e;border-radius:18px;box-shadow:0 3px 0 #ead17e}
.speaking-badges span{font-size:28px;line-height:1;color:#cf9d25}
.speaking-badges strong{font-size:18px;word-break:keep-all}
.speaking-badges .micro{font-size:14px}
.speaking-ending>.ending-actions{margin-top:24px}
.speaking-ending>p:not(.ending-phrase){color:var(--muted);font-size:14px;line-height:1.7}
/* Lesson and speech settings dialogs use the same card and control rhythm. */
.speaking-app dialog{border-color:var(--speech-line);background:#f5faff;padding:24px;border-radius:22px}
.speaking-app .modal-head{margin-bottom:24px;align-items:center}
.speaking-app .modal-head h2{font-size:22px}
.speaking-app .close{width:40px;height:40px;flex-basis:40px}
.lesson-chapter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.chapter-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-width:0;min-height:148px;padding:18px 12px;border:2px solid #b5cfe9;border-radius:16px;background:white;color:#234e88;box-shadow:0 3px 0 #c4d9eb}
.chapter-option strong{font-size:24px;line-height:1.3}
.chapter-option>span{font-size:15px;font-weight:800;line-height:1.5;word-break:keep-all}
.chapter-option small{font-size:14px;font-weight:700;line-height:1.4}
.chapter-option.available:hover{background:#e9f3ff;border-color:var(--blue)}
.chapter-option.current{background:var(--blue);color:white;border-color:var(--blue-dark);box-shadow:0 3px 0 var(--blue-dark)}
.chapter-option.current:hover{background:#285fd5}
.chapter-picker-note{margin:20px 0 0;color:var(--muted);font-size:14px;line-height:1.7;word-break:keep-all}
.speech-model-settings{padding:18px;background:#edf5ff;border:1px solid #c7dcf4;border-radius:16px;margin-bottom:20px}
.speech-model-settings label{display:block;font-size:16px;font-weight:800;margin-bottom:10px}
.speech-model-settings select{width:100%;font:inherit;font-size:16px;padding:10px 12px;min-height:44px;border:2px solid #9cbfe7;border-radius:10px;background:white;color:var(--ink)}
.speech-model-settings p{font-size:14px;line-height:1.7;margin-top:10px;color:var(--muted)}
.speech-model-settings #speech-model-status{color:var(--blue-dark);font-weight:700}
.speaking-app .learning-note{font-size:14px;line-height:1.7;margin:16px 0;word-break:keep-all}
@media(max-width:1100px){
 .speaking-shell{padding:24px}
 .speaking-layout{grid-template-columns:236px minmax(0,1fr);gap:24px}
 .mission-heading h1{font-size:26px}
}
@media(max-width:800px){
 .clip-heading,.talk-heading{min-height:56px;padding:12px 18px}
 .clip-heading h2{font-size:16px}
 .record-zone{margin-top:0}
 .video-lesson .target-text,.video-lesson .earned-phrase{font-size:32px}
 .video-lesson .target-text.word,.video-lesson .earned-phrase.word{font-size:52px}
 .talk-content{padding:22px}
}
@media(max-width:760px){
 .speaking-topbar{height:64px;padding:0 16px;gap:16px}
 .speaking-topbar .wordmark{font-size:30px}
 .mode-nav a{font-size:14px;padding:7px 10px}
 .speaking-header-actions{gap:8px}
 .star-counter{font-size:14px;min-height:44px;padding:4px 8px}
 .speaking-header-actions .icon-button{height:44px;font-size:13px}
 .speaking-header-actions .mode-link{padding:0 10px}
 .speaking-header-actions button.icon-button{width:44px;font-size:16px;padding:0}
 .speaking-shell{padding:20px 16px 28px}
 .mission-heading{gap:12px;margin-bottom:20px;align-items:flex-start}
 .mission-heading>div{gap:12px;align-items:flex-start}
 .mission-heading h1{font-size:19px;line-height:1.5;padding-top:6px}
 .mission-heading>.micro{padding-top:10px;font-size:13px}
 .chapter-switch{font-size:16px;min-height:44px;padding:7px 10px;gap:8px}
 .mission-pill{min-height:44px;padding:7px 12px;font-size:16px}
 .clip-heading,.talk-heading{padding:12px 16px;gap:10px}
 .clip-panel,.video-lesson .talk-card{border-radius:18px}
 .talk-content{padding:20px}
 .video-lesson .listen-row{gap:8px}
 .speaking-ending{margin-top:4px}
 .speaking-ending>img{width:88px;height:88px}
 .speaking-ending h1{font-size:24px}
 .ending-phrase{font-size:26px}
 .speaking-badges{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0}
 .speaking-badges>div{min-height:108px;padding:14px 10px}
 .speaking-badges strong{font-size:14px}
 .speaking-ending>.ending-actions{flex-direction:column;align-items:stretch}
 .speaking-app dialog{padding:20px}
 .lesson-chapter-grid{gap:8px}
 .chapter-option{padding:16px 8px;min-height:136px;gap:8px}
 .chapter-option strong{font-size:22px}
 .chapter-option>span,.chapter-option small{font-size:14px}
}
@media(max-width:390px){
 .speaking-topbar{gap:10px;padding-inline:12px}
 .mode-nav a{padding-inline:7px}
 .speaking-header-actions{gap:6px}
 .star-counter{padding-inline:6px;font-size:13px}
 .mission-heading h1{font-size:18px}
 .clip-heading{flex-wrap:wrap;gap:8px}
 .lesson-chapter-grid{grid-template-columns:minmax(0,1fr)}
 .chapter-option{flex-direction:row;justify-content:flex-start;min-height:72px;gap:16px;padding:16px}
 .chapter-option strong{white-space:nowrap}
 .chapter-option>span{text-align:left;flex:1}
 .chapter-option small{white-space:nowrap}
}
@media(max-width:360px){
 .speaking-topbar{gap:6px;padding-inline:10px}
 .speaking-topbar .wordmark{font-size:28px}
 .mode-nav a{padding-inline:6px}
}


.lesson-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;min-width:0}
.lesson-toolbar .mission-pills{flex:0 1 auto;min-width:0;margin:0}
.current-lesson{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:19px;min-width:0}
.current-lesson strong{min-width:0;overflow-wrap:break-word}
.lesson-phase{flex-shrink:0;font-size:15px;font-weight:800;color:var(--blue-dark);background:#e5eeff;padding:4px 8px;border-radius:7px}
.lesson-phase.speaking{color:#745414;background:#fff0b0}
.practice-skip{margin-top:14px;padding-top:14px;border-top:1px solid #e0eaf3}
.practice-skip p{margin-top:7px;font-size:12px;line-height:1.5;color:var(--muted)}
.speaking-header-actions .icon-button{min-height:44px}
.speaking-header-actions button.icon-button{min-width:44px}
@media(max-width:800px){
 .speaking-app .button{min-height:48px;font-size:17px;padding:10px 16px}
 .speaking-app .button.primary{min-height:54px}
 .speaking-app .button.quiet{min-height:44px;font-size:16px;padding:8px 13px}
 .video-lesson .target-meaning{font-size:18px}
 .mic-waveform{height:64px}
}
@media(max-width:760px){
 .speaking-layout{display:block}
 .lesson-progress{display:block;height:auto;overflow:visible;padding:0;margin:0 0 16px;border:0;border-radius:0;background:transparent;box-shadow:none}
 .lesson-sidebar-toggle{display:none}
 .lesson-path-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;padding:10px 14px;border:2px solid #c8dced;border-radius:12px;background:#f8fcff;color:var(--ink);font-size:15px;font-weight:800;line-height:1.5;text-align:left;box-shadow:0 3px 0 #d1e2ef}
 .lesson-path-toggle span{min-width:0;overflow-wrap:break-word}
 .lesson-path-toggle::after{content:"⌄";font-size:18px;color:var(--muted);flex-shrink:0;line-height:1}
 .path-open .lesson-path-toggle::after{transform:rotate(180deg)}
 .lesson-path-body{display:none;padding:0}
 .path-open .lesson-path-body{display:flex;max-height:340px;overflow-y:auto;margin-top:10px;padding:8px 14px 14px;border:1px solid #d7e5f1;border-radius:16px;background:#fff}
 .lesson-progress .map-group{max-width:340px;margin-inline:auto;min-height:88px}
 .lesson-progress .map-group::before{transform:rotate(-10deg)}
 .lesson-progress .map-group:nth-child(even)::before{transform:rotate(10deg)}
 .path-copy strong{font-size:16px}
 .lesson-toolbar{flex-wrap:wrap;gap:12px;margin-bottom:12px}
 .current-lesson{width:100%;justify-content:space-between;font-size:17px}
 .lesson-toolbar .mission-pills{flex-basis:100%}
 .lesson-toolbar .mission-pill:first-child{margin-left:auto}
 .lesson-toolbar .mission-pill:last-child{margin-right:auto}
 .clip-work{width:100%}
 .speaking-app .clip-controls .button{min-width:0;flex:1 1 0;max-width:200px;padding-inline:10px;font-size:15px}
 .mobile-practice-hide{font-size:13px;padding-inline:10px}
 .clip-footer{padding:12px 16px}
}
@media(min-width:761px){
 .speaking-layout.sidebar-collapsed{grid-template-columns:56px minmax(0,1fr)}
 .sidebar-collapsed .lesson-progress{height:56px;border-radius:14px}
 .sidebar-collapsed .lesson-sidebar-toggle{height:52px;padding:0;justify-content:center;border-bottom:0}
 .sidebar-collapsed .lesson-sidebar-toggle span,.sidebar-collapsed .lesson-path-body{display:none}
 .sidebar-collapsed .sidebar-arrow{transform:rotate(180deg);transform-origin:14.5px 12px}
}
/* Short laptops keep the video, controls and compact path in the viewport. */
@media(min-width:761px) and (max-height:820px){
 .speaking-topbar{height:64px}
 .speaking-shell{padding-top:16px;padding-bottom:24px}
 .mission-heading{margin-bottom:14px;min-height:44px}
 .mission-heading h1{font-size:28px}
 .chapter-switch{min-height:44px;padding:7px 16px}
 .lesson-path-body{padding-block:8px}
 .map-group{min-height:68px;padding-block:4px;grid-template-columns:48px minmax(0,1fr)}
 .path-node{width:48px;height:48px;font-size:18px}
 .path-copy{gap:1px}
 .path-copy strong{font-size:15px}
 .path-status{font-size:11px}
 .map-group::before{left:30px;transform:rotate(-13deg)}
 .map-group:nth-child(even)::before{left:46px;transform:rotate(13deg)}
 .lesson-toolbar{margin-bottom:12px}
 .mission-pill{min-height:44px;padding-block:7px}
 .clip-heading,.talk-heading{min-height:56px;padding:10px 20px}
 .clip-heading h2{font-size:18px}
 .clip-footer{padding:10px 20px}
 .speaking-app .clip-footer .clip-controls .button{height:44px;min-height:44px;padding-block:7px}
 .talk-content{padding:24px}
}
@media(prefers-reduced-motion:reduce){.path-node{transition:none}}
