:root{color-scheme:light;--ink:#202b2a;--muted:#64716f;--red:#c8253c;--red-dark:#a71930;--line:#e1e6e3;--sage:#eef4ef;--green:#187342;--green-bg:#eaf7ee;--orange:#92510c;--orange-bg:#fff4e5;font-family:ui-rounded,"Nunito","Avenir Next",system-ui,-apple-system,"Segoe UI",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#f4f5f1}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #3276aa;outline-offset:4px}button{touch-action:manipulation}a{color:var(--red)}[hidden]{display:none!important}.app{max-width:920px;margin:0 auto;min-height:100svh;background:#fff;display:flex;flex-direction:column}.topbar{width:100%;max-width:700px;margin:0 auto;padding:20px 28px 12px;display:flex;align-items:center;gap:14px;flex-shrink:0}.icon-button{width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:12px;background:transparent;color:#77827e}.icon-button:hover{background:#f1f4f1}.icon{width:22px;height:22px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.progress-wrap{flex:1;display:flex}.progress-wrap progress{width:100%;height:11px;border:0;border-radius:20px;appearance:none;background:#e9ede9;overflow:hidden}.progress-wrap progress::-webkit-progress-bar{background:#e9ede9;border-radius:20px}.progress-wrap progress::-webkit-progress-value{background:var(--red);border-radius:20px;transition:width .25s ease}.progress-wrap progress::-moz-progress-bar{background:var(--red);border-radius:20px}.counter{font-size:13px;font-weight:700;color:var(--muted);min-width:32px;font-variant-numeric:tabular-nums}.language{font-size:12px;min-width:40px;height:40px;font-weight:750;border:1px solid var(--line);border-radius:12px;background:#fff}.language:hover{background:var(--sage)}#screen{width:100%;max-width:560px;margin:0 auto;flex:1;padding:20px 26px 24px;outline:none}.eyebrow{display:flex;gap:7px;align-items:center;font-size:11px;line-height:1.5;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:var(--red);margin:0 0 10px}.eyebrow .icon{width:16px;height:16px}h1{font-size:clamp(25px,3.8vw,32px);line-height:1.2;letter-spacing:-.035em;margin:0 0 18px;font-weight:780}h2{line-height:1.25;letter-spacing:-.025em}.helper{font-size:15px;line-height:1.5;color:var(--muted);margin:0 0 18px}.scene{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:22px;background:#f0ebe2}.scene.compact{aspect-ratio:2.5;object-position:50% 41%;margin:0 0 18px}.intro .scene{margin:4px 0 23px}.intro h1{font-size:clamp(31px,5vw,40px);margin-bottom:10px}.intro .helper{max-width:420px;font-size:16px}.intro-badges{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0 0}.pill{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border-radius:9px;background:#f2f5f1;color:#465b51;font-size:12px;font-weight:650}.pill .icon{width:16px;height:16px}.brand{display:flex;align-items:center;gap:8px;color:var(--ink);font-size:14px;font-weight:800;margin-bottom:18px;letter-spacing:-.02em}.brand-mark{display:grid;place-items:center;width:27px;height:29px;background:var(--red);color:white;border-radius:8px;font-size:19px;font-weight:850}.preview-tag{margin-left:auto;padding:4px 8px;border-radius:7px;color:var(--muted);background:#f2f4f2;font-size:10px;font-weight:650;letter-spacing:.04em}.phrase-card{margin-top:18px;padding:18px 20px;background:var(--sage);border-radius:18px;border:1px solid #dde9df}.phrase-top{display:flex;gap:15px;align-items:center}.play-round{width:48px;height:48px;flex-shrink:0;border:0;border-radius:50%;background:var(--red);color:white;display:grid;place-items:center;box-shadow:0 3px 0 var(--red-dark)}.play-round:hover{background:var(--red-dark)}.phrase-pl{font-size:25px;font-weight:750;line-height:1.3;margin:0;letter-spacing:-.025em}.phrase-uk{font-size:16px;line-height:1.5;color:#536c5e;margin:5px 0 0}.phrase-tip{margin:16px 0 0;font-size:14px;color:var(--muted);line-height:1.5}.audio-row{display:flex;align-items:center;gap:12px;margin:18px 0}.audio-bar{flex:1;display:flex;align-items:center;gap:12px;border:1px solid #edcbd1;border-bottom-width:3px;border-radius:15px;padding:13px 17px;background:#fff5f6;color:var(--red);font-weight:750;font-size:15px;text-align:left;min-height:54px}.audio-bar:hover{background:#ffedf0}.audio-bars{height:25px;display:flex;align-items:center;gap:3px;margin-left:auto}.audio-bars span{width:3px;background:currentColor;border-radius:8px;height:30%}.audio-bars span:nth-child(3n){height:90%}.audio-bars span:nth-child(3n+1){height:55%}.audio-bar.playing .audio-bars span{animation:pulse .7s ease-in-out infinite alternate}.audio-bars span:nth-child(even){animation-delay:.3s}.speed{min-width:46px;height:46px;border:1px solid var(--line);border-radius:12px;background:white;font-size:13px;font-weight:700}.audio-error{font-size:13px;line-height:1.4;color:#9e3b2c;margin:5px 0 12px}.audio-caption{font-size:13px;color:var(--muted);line-height:1.4}.options{display:grid;gap:10px;margin:18px 0 0}.option{width:100%;min-height:56px;padding:13px 16px;display:flex;align-items:center;gap:12px;text-align:left;background:white;border:2px solid var(--line);border-bottom-width:4px;border-radius:15px;font-weight:650;font-size:17px;line-height:1.35;transition:background .15s,border-color .15s,transform .15s}.option:not(:disabled):hover{border-color:#c4cfc7;background:#fafbf9}.option.selected{background:#eceeef;border-color:#889095;color:#30363a}.option.correct{border-color:#26834d;background:var(--green-bg);color:#155d36}.option.incorrect{border-color:#c88a43;background:var(--orange-bg);color:#7c450c}.choice-letter{width:25px;height:25px;display:grid;place-items:center;flex-shrink:0;border:1px solid #dce2dd;border-radius:7px;font-size:11px;font-weight:750;color:#7b8981}.option.selected .choice-letter{border-color:#b7bdc1;color:#4b5358}.option.correct .choice-letter{border-color:#b4d8c0;color:var(--green)}.option .answer-icon{margin-left:auto;width:20px;height:20px;flex-shrink:0}.tokens-chosen{display:flex;align-content:flex-start;gap:8px;flex-wrap:wrap;border-bottom:2px solid var(--line);min-height:74px;padding:12px 0;margin:10px 0 22px}.tokens-chosen .placeholder{font-size:15px;color:#86928c;align-self:center}.tokens-bank{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin:18px 0}.token{padding:12px 16px;background:white;border:2px solid var(--line);border-bottom-width:4px;border-radius:12px;font-size:18px;font-weight:650;min-height:50px}.token:not(:disabled):hover{border-color:#889095;background:#eceeef}.token.used{color:transparent;background:#e9eeea;border-color:#e9eeea;user-select:none}.tokens-chosen .token{border-color:#889095;color:#30363a;background:#eceeef}.tokens-chosen.correct .token{border-color:#26834d;color:#155d36;background:var(--green-bg)}.tokens-chosen.correct{border-color:var(--green)}.tokens-chosen.incorrect{border-color:#c88a43}.token-hint{font-size:13px;color:var(--muted);text-align:center;line-height:1.4}.sentence{font-size:25px;font-weight:650;line-height:1.7;text-align:center;margin:25px 0 14px}.blank{display:inline-block;min-width:130px;border-bottom:3px dashed #bcc9bf;color:#30363a;padding:0 8px;margin:0 3px}.dialogue-row{display:flex;gap:12px;align-items:center;margin:20px 0}.avatar{width:58px;height:58px;flex-shrink:0;border-radius:50%;object-fit:cover;background:#f3eadb}.avatar.leader{object-position:19% 24%;object-fit:none;/* background crop defined below */}.portrait{width:58px;height:58px;flex-shrink:0;border-radius:50%;background-image:url('images/repeat.webp');background-size:210px 140px;background-position:-15px -6px;box-shadow:0 0 0 4px #f2f5ef}.portrait.worker{background-position:-124px -5px}.speech{background:var(--sage);border:1px solid #e1e8df;border-radius:17px;padding:15px 18px;font-size:18px;font-weight:600;line-height:1.4;position:relative}.dialogue-row.reverse{flex-direction:row-reverse}.dialogue-row.reverse .speech{background:white;border:2px dashed #d7ded8;color:var(--muted);min-width:155px;text-align:center}.action-area{position:sticky;bottom:0;background:#fff;border-top:1px solid #edf0ec;padding:15px 26px max(18px,env(safe-area-inset-bottom));z-index:3;margin-top:auto}.action-inner{max-width:508px;margin:0 auto}.primary{display:flex;justify-content:center;align-items:center;gap:9px;width:100%;border:0;border-bottom:4px solid var(--red-dark);border-radius:15px;background:var(--red);color:white;min-height:54px;padding:12px 16px;font-size:16px;font-weight:750;letter-spacing:.005em;transition:background .15s,transform .15s}.primary:hover:not(:disabled){background:#b62036}.primary:active:not(:disabled){transform:translateY(2px);border-bottom-width:2px}.primary:disabled{background:#e6ebe6;border-color:#dbe2dc;color:#8a968d}.demo-note{margin:10px 0 0;font-size:11px;line-height:1.4;text-align:center;color:#78847b}.demo-note:empty{display:none}.feedback:empty{display:none}.feedback{margin:0 0 14px}.feedback h2{display:flex;align-items:center;gap:8px;font-size:20px;margin:0 0 5px}.feedback p{font-size:14px;line-height:1.45;margin:0;max-width:460px}.action-area[data-result="correct"]{background:var(--green-bg);border-color:#c8e9d0}.action-area[data-result="correct"] .feedback{color:#185a32}.action-area[data-result="correct"] .primary{background:var(--green);border-color:#10512e}.action-area[data-result="incorrect"]{background:var(--orange-bg);border-color:#ead3b6}.action-area[data-result="incorrect"] .feedback{color:#7c460e}.action-area[data-result="incorrect"] .primary{background:#936014;border-color:#69430a}.summary{text-align:center}.summary .eyebrow{justify-content:center}.summary h1{font-size:34px}.achievement{display:grid;place-items:center;width:94px;height:94px;margin:12px auto 20px;border-radius:28px;background:#edf5e9;transform:rotate(-7deg);color:#4a773a}.achievement .icon{width:53px;height:53px;transform:rotate(7deg);stroke-width:1.7}.summary-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0;text-align:center}.stat{padding:17px 8px;border:1px solid var(--line);border-radius:16px}.stat strong{display:block;font-size:27px;letter-spacing:-.04em;margin-bottom:3px}.stat span{font-size:12px;color:var(--muted)}.summary-list{text-align:left;background:var(--sage);border-radius:18px;padding:17px 20px}.summary-list h2{margin:0 0 13px;font-size:16px}.summary-phrase{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #dce7dd;padding:10px 0;font-size:16px;font-weight:600}.summary-phrase:first-of-type{border-top:0}.summary-phrase button{background:white;border:1px solid #dce5db;border-radius:10px;min-width:40px;min-height:40px;color:var(--red)}.summary .helper{margin:12px 0}.quiet-button{display:block;margin:12px auto 0;padding:12px 18px;background:transparent;border:0;border-radius:10px;color:var(--muted);font-size:14px;text-align:center;text-decoration:underline;text-underline-offset:3px}.quiet-button:hover{background:#f4f6f2}.paused{padding-top:40px;text-align:center}.paused h1{margin-top:22px}.storage-note{font-size:12px;line-height:1.5;color:var(--muted);margin:15px 0}.no-script{padding:30px;max-width:560px;margin:auto}dialog{border:1px solid var(--line);border-radius:24px;width:min(370px,calc(100vw - 36px));padding:0;color:var(--ink);box-shadow:0 25px 80px #152b2830}dialog::backdrop{background:#16232177;backdrop-filter:blur(3px)}.dialog-inner{padding:28px;text-align:center}.dialog-inner h2{margin:17px 0 10px;font-size:26px}.dialog-inner p{font-size:15px;line-height:1.5;color:var(--muted);margin:0 0 24px}.dialog-symbol{width:55px;height:55px;display:grid;place-items:center;border-radius:16px;background:#fff0f2;color:var(--red);font-size:27px;font-weight:800;margin:auto}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes pulse{to{height:40%}}@keyframes arrive{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.screen-content{animation:arrive .2s ease-out}
@media(min-width:760px){.app{min-height:min(900px,100svh);box-shadow:0 0 0 1px #e4e8e1}.topbar{padding-top:26px}#screen{padding-top:25px}.scene{max-height:280px}.scene.compact{max-height:190px}.action-area{padding-top:19px;padding-bottom:24px}}
@media(max-width:480px){.topbar{padding:10px 15px 6px;gap:9px}#screen{padding:17px 23px 22px}.intro .scene{margin-bottom:20px}.scene{border-radius:18px}.scene.compact{aspect-ratio:2.2;margin-bottom:16px}.phrase-pl{font-size:23px}.phrase-card{padding:16px}.action-area{padding:13px 23px max(16px,env(safe-area-inset-bottom))}.intro h1{font-size:34px}.brand{margin-bottom:14px}.option{font-size:16px;min-height:55px}.eyebrow{font-size:10px}h1{font-size:27px}.summary h1{font-size:30px}}
@media(max-height:730px) and (max-width:600px){#screen{padding-top:10px;padding-bottom:15px}.scene{max-height:190px}.scene.compact{max-height:130px}.intro .scene{margin-bottom:15px}.intro h1{font-size:30px}.intro .helper{font-size:15px}.intro-badges{margin-top:12px}.phrase-card{margin-top:13px}.option{min-height:49px;padding:10px 13px}.options{gap:8px;margin-top:13px}.action-area{padding-top:10px;padding-bottom:12px}.feedback h2{font-size:18px}.feedback p{font-size:13px}.feedback{margin-bottom:10px}.achievement{width:72px;height:72px;margin-top:4px;margin-bottom:12px}}
.app{height:100svh;overflow:hidden}#screen{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.action-area{position:relative;flex-shrink:0}.audio-bar{min-width:0}.audio-bar>span:first-child{flex-shrink:0}.audio-bars{min-width:12px;max-width:92px;flex:1;overflow:hidden}.audio-bars span{flex:0 0 3px}.speed{flex-shrink:0}.feedback h2 .icon{flex-shrink:0}.option.selected:not(:disabled):hover{border-color:#889095;background:#eceeef}.option>span:nth-child(2){min-width:0;overflow-wrap:anywhere}.summary .achievement{width:60px;height:60px;border-radius:19px;margin:0 auto 16px}.summary .achievement .icon{width:36px;height:36px}.summary .summary-stats{margin:16px 0}.summary .stat{padding:12px 8px}.summary .stat strong{font-size:25px}.summary .summary-list{padding:12px 17px}.summary .summary-phrase{padding:5px 0;font-size:15px}.summary .summary-list h2{margin-bottom:7px}.summary .quiet-button{font-size:12px;margin-top:8px;padding:8px}.demo-note{color:#647168}.choice-letter{color:#5f7066}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Full module additions; selection stays neutral until grading. */
.module-hub{max-width:650px;margin:auto;padding:34px 24px 60px;background:#fff;min-height:100svh}.module-hub .brand{text-decoration:none;margin-bottom:32px}.module-hub h1{font-size:clamp(32px,6vw,44px)}.module-count{font-weight:700;font-size:14px;color:#52675a;margin:24px 0 12px}.lesson-path{display:grid;gap:12px;margin:16px 0 28px}.lesson-tile{display:flex;align-items:center;gap:16px;padding:19px 17px;border:2px solid var(--line);border-bottom-width:4px;border-radius:18px;text-decoration:none;color:var(--ink);background:#fff}.lesson-tile:hover{background:#f6f8f5;border-color:#b8c3ba}.lesson-tile>span:nth-child(2){flex:1}.lesson-tile strong{display:block;font-size:18px}.lesson-tile small{display:block;margin-top:5px;font-size:13px;color:var(--muted)}.lesson-number{font-size:18px;font-weight:800;border-radius:14px;background:#f1f3f0;min-width:46px;height:46px;display:grid;place-items:center}.lesson-tile.done .lesson-number{background:var(--green-bg);color:var(--green)}.text-help{margin:18px 0;padding:14px 16px;border:1px solid var(--line);border-radius:14px;line-height:1.5}.text-help summary{cursor:pointer;color:#55645b;font-size:14px;font-weight:650}.text-help[open] summary{margin-bottom:15px}.text-help .phrase-pl{font-size:21px}.text-help .phrase-uk{font-size:16px}.scene.task-image{object-fit:contain;aspect-ratio:auto;max-height:235px;border:1px solid var(--line);margin:12px 0;background:#f8faf7}.speech p{margin:7px 0}.speech small{font-size:12px;line-height:1.5;display:block;color:#53695b;font-weight:500}.audio-wave{margin-left:auto;white-space:nowrap;font-size:19px}.speaking-symbol{font-size:90px;line-height:1.5;text-align:center;color:#b5cbb8}.achievement{font-size:40px;font-weight:800}.conversation{border:0;padding:0}.conversation .dialogue-row.other{flex-direction:row-reverse}.conversation .speech{font-size:17px}.conversation .portrait{width:44px;height:44px}.summary-phrase small{display:block;font-size:13px;color:#637369;font-weight:400;margin-top:5px}.primary{text-decoration:none}.icon-button{font-size:32px}.sentence{overflow-wrap:anywhere}.text-help img{max-width:100%}.option:disabled{opacity:1}.option.correct{background:var(--green-bg)!important;border-color:#26834d!important;color:#155d36}.option.incorrect{background:var(--orange-bg)!important;border-color:#c88a43!important}.blank{max-width:100%;overflow-wrap:anywhere}.feedback p{max-height:100px;overflow-y:auto}.scene.compact{max-height:165px}.phrase-pl{overflow-wrap:anywhere}
@media(max-width:360px){#screen{padding-left:17px;padding-right:17px}.action-area{padding-left:17px;padding-right:17px}.option{font-size:15px}.audio-wave{display:none}.phrase-pl{font-size:22px}.token{font-size:16px;padding:10px 12px}}
/* Module navigation shares the neutral selection palette of lesson answers. */
.hub-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:18px}.hub-heading .brand{margin:0}.hub-heading .language{display:grid;place-items:center;text-decoration:none;color:var(--ink);min-width:44px}.module-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 30px}.module-tabs a{display:block;text-decoration:none;border:2px solid var(--line);border-radius:14px;padding:14px;color:var(--ink);font-size:14px;line-height:1.35;overflow-wrap:anywhere}.module-tabs a[aria-current]{background:#eceeef;border-color:#889095}.module-tabs small{display:block;color:var(--muted);font-size:11px;margin-bottom:5px}.module-tabs span{font-weight:700}.module-finished{padding:16px;border:1px solid #c8e9d0;border-radius:14px;background:var(--green-bg);color:var(--green);font-weight:700}
.lesson-tile>span:nth-child(2){min-width:0}.lesson-tile strong{overflow-wrap:anywhere}.lesson-number,.lesson-tile>span:last-child{flex-shrink:0}.module-tabs{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}

/* Full course progress; LMS completion remains the source of truth. */
.course-progress{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:16px 18px;background:#f5f7f3;border-radius:14px;margin:24px 0;font-size:14px;color:#52675a}.course-progress progress{width:100%;height:10px;border:0;border-radius:8px;overflow:hidden;accent-color:#26834d}.course-progress progress::-webkit-progress-bar{background:#dce4db}.course-progress progress::-webkit-progress-value{background:#26834d;border-radius:8px}.course-progress progress::-moz-progress-bar{background:#26834d}.course-finished p{font-size:15px;line-height:1.5;font-weight:400;margin:10px 0 0}
.module-tabs{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-bottom:24px}.module-tabs a{text-align:center;padding:10px 3px}.module-tabs small{font-size:10px;margin-bottom:3px}.module-tabs span{font-size:20px}

/* Six construction modules remain comfortable to tap on small screens. */
.module-tabs[data-count="6"]{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(min-width:640px){.module-tabs[data-count="6"]{grid-template-columns:repeat(6,minmax(0,1fr))}}

.review-label{display:block;margin:18px 0 8px;font-weight:700}#review-search,#review-select{width:100%;min-width:0;min-height:48px;border:2px solid var(--line);border-radius:12px;padding:10px;font:inherit;background:white;color:var(--ink)}#review-select{font-size:16px}#review-phrase{margin-top:18px}

/* Desktop lessons use the available width. Phone layout and reading order are unchanged. */
.lesson-layout,.lesson-context,.lesson-response{display:contents}
@media(min-width:1000px){
  .app{max-width:1200px}
  .topbar{max-width:1100px;padding:16px 32px 10px}
  #screen{max-width:1100px;padding:18px 32px 20px}
  #screen>h1,#screen>.eyebrow,#screen>.helper{max-width:960px}
  #screen>h1{font-size:28px;margin-bottom:20px}
  #screen>.options,#screen>#tokens,#screen>.audio-row,#screen>.text-help,#screen>.practice-facts,#screen>.speech{max-width:760px;margin-left:auto;margin-right:auto}
  .lesson-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:36px;align-items:start}
  .lesson-context,.lesson-response{display:block;min-width:0}
  .lesson-layout .scene,.lesson-layout .scene.compact,.lesson-layout .scene.task-image{margin:0;width:100%;max-height:300px;object-fit:contain}
  .lesson-layout .options,.lesson-layout .phrase-card{margin-top:0}
  .options.many-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lesson-context>:first-child,.lesson-response>:first-child{margin-top:0}
  .intro .brand{margin-bottom:24px}
  .intro h1{font-size:34px}
  .intro .helper{max-width:none}
  .intro .text-help{margin-bottom:0}
  .intro .text-help .scene{max-height:150px;margin-top:12px}
  .action-area{padding:14px 32px 12px}
  .action-inner{max-width:1036px;display:grid;grid-template-columns:minmax(0,1fr) 310px;column-gap:32px;align-items:center}
  .action-inner>.primary{grid-column:2;grid-row:1}
  .feedback{grid-column:1;grid-row:1;margin:0}
  .feedback p{max-width:none}
  .demo-note{grid-column:1 / -1;margin-top:8px;text-align:right}
  .speaking-symbol{font-size:64px;line-height:1.2;margin:10px 0}
  .paused{padding-top:20px;max-width:760px;margin:auto}
  .summary{max-width:960px;margin:auto}
  .summary>.helper{max-width:650px;margin-left:auto;margin-right:auto}
  .summary>.summary-stats{max-width:560px;margin-left:auto;margin-right:auto}
  .summary .lesson-layout{gap:40px}
  .summary .lesson-context .eyebrow{justify-content:center}
  .summary-list{max-height:350px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
  #review-phrase{margin-top:0}
  .conversation[open]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px}
  .conversation[open]>summary{grid-column:1 / -1;margin-bottom:0}
  .conversation .dialogue-row{margin:0;align-items:flex-start}
  .conversation .speech{flex:1}
  .conversation .dialogue-row.other{flex-direction:row}
}
/* Laptop browser windows: reduce empty space, keeping readable text and generous controls. */
@media(min-width:1000px) and (max-height:800px){
  .topbar{padding-top:10px;padding-bottom:6px}
  #screen{padding-top:12px;padding-bottom:14px}
  #screen>h1{font-size:25px;margin-bottom:16px}
  .eyebrow{margin-bottom:7px}
  .intro .brand{margin-bottom:16px}
  .intro h1{font-size:30px}
  .lesson-layout .scene,.lesson-layout .scene.compact,.lesson-layout .scene.task-image{max-height:250px}
  .option{min-height:50px;padding:10px 14px;font-size:16px}
  .options{gap:8px;margin-top:12px}
  .text-help{margin:12px 0;padding:10px 14px}
  .text-help[open] summary{margin-bottom:10px}
  .lesson-response>.text-help p{margin:6px 0}
  .audio-row{margin:12px 0}
  .helper{margin-bottom:12px}
  .speech{padding:12px 15px;font-size:17px}
  .dialogue-row{margin:12px 0}
  .sentence{font-size:23px;margin:12px 0}
  .tokens-chosen{margin:0 0 12px;min-height:64px}
  .tokens-bank{gap:8px;margin:12px 0}
  .token{font-size:17px;padding:10px 13px;min-height:46px}
  .action-area{padding-top:10px;padding-bottom:10px}
  .primary{min-height:50px;padding:10px 16px}
  .feedback h2{font-size:18px}
  .summary-list{max-height:280px}
  .paused{padding-top:10px}
}

/* A standalone specialist course has one complete 15-lesson module. */
.module-tabs[data-count="1"]{display:none}
/* Long specialist names, including Ukrainian, stay inside the phone viewport. */
.module-hub h1{overflow-wrap:anywhere}
