/* Lesson pages give the book and the current action the whole screen. */
.in-lesson{background:#fff}
.lesson-focus{min-height:100dvh;background:#fff;color:#302c38}
.lesson-focus .activity-wrap{max-width:790px;padding:28px 34px 46px;min-height:100dvh}
.lesson-focus .lesson-head{margin-bottom:28px;gap:20px}
.lesson-focus .lesson-head .iconbtn{border:0;color:#99909a;font-size:30px;background:transparent;box-shadow:none}
.lesson-focus .lesson-head .progress{height:10px;background:#f0ecef}
.lesson-focus .lesson-head small{font-size:12px;color:#8b818c}
.lesson-focus .activity>.eyebrow{display:none}
.lesson-focus .activity h2{font-size:25px;line-height:1.5;margin-top:22px;margin-bottom:28px}
.lesson-focus .activity{min-height:calc(100dvh - 236px)}
.lesson-focus .bottom-action{position:sticky;bottom:0;z-index:3;background:#fff;padding:18px 0 12px;border-color:#eee8ed;margin-top:24px}
.lesson-focus .bottom-action .btn{min-width:160px}
.lesson-focus .footnote{display:none}
.textbook-wrap{max-width:1110px;margin:auto;padding:24px 38px 0}
.textbook-heading{display:flex;justify-content:space-between;align-items:center;margin:22px 0 22px;gap:18px}
.textbook-heading span{font-size:13px;color:#8d828b}
.textbook-heading h1{font-size:30px;line-height:1.25;margin:5px 0 0;letter-spacing:-.4px}
.book-section{align-self:flex-end;white-space:nowrap;padding-bottom:4px}
.book-spread{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:44px;align-items:start}
.book-player{position:sticky;top:18px;min-width:0}
.book-video-frame{position:relative;border:1px solid #ede8ed;border-radius:17px;background:#fff;overflow:hidden}
.book-video-frame video{display:block;width:100%;height:min(64vh,620px);object-fit:contain;background:white}
.book-play-overlay{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border:1px solid #e4a2bf;background:#fff6fbeF;color:#c2447a;border-radius:50%;width:90px;height:90px;box-shadow:0 5px 30px #4f23351c;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.book-play-overlay svg{width:28px;height:28px;fill:currentColor}
.book-play-overlay span{font-size:12px;font-weight:700}
.book-is-playing .book-play-overlay{display:none}
.book-enlarge{position:absolute;right:8px;top:8px;width:32px;height:32px;display:grid;place-items:center;border:1px solid #eee5eb;border-radius:9px;background:#fffffff0;color:#70616e;font-size:21px}
.book-transport{display:flex;align-items:center;gap:10px;padding:13px 0 3px}
.book-transport-play{width:35px;height:35px;border:0;background:#fbedf3;color:#c0477c;border-radius:50%;flex-shrink:0;display:grid;place-items:center}
.book-transport-play svg{width:18px;height:18px;fill:currentColor}
.book-transport input{min-width:25px;flex:1;accent-color:#dd6297;height:20px;cursor:pointer}
.book-transport output{font:11px Arial,sans-serif;color:#8c7d87;white-space:nowrap;font-variant-numeric:tabular-nums}
.book-speed{border:1px solid #ece3e8;border-radius:8px;background:#fff;color:#796472;width:46px;height:32px;font-size:12px;flex-shrink:0}
.book-restart{width:27px;height:30px;padding:0;border:0;background:white;font-size:21px;color:#a3788e;flex-shrink:0}
.book-play-status{font-size:12px;color:#80737c;min-height:36px;line-height:1.5;margin:8px 0 0}
.book-mode-tabs{display:flex;gap:26px;border-bottom:1px solid #ece5ea;margin-bottom:12px;padding:0 4px}
.book-mode-tabs button{border:0;background:none;color:#9a8c96;padding:12px 2px;font-size:15px;font-weight:700;border-bottom:3px solid transparent;min-width:46px}
.book-mode-tabs button[aria-selected=true]{color:#c1457d;border-bottom-color:#f0a8b0}
.book-text-tools{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#a3909c;padding:12px 4px 8px}
.book-text-tools button{background:none;border:0;color:#b97b87;font-size:12px;padding:6px 0}
.book-sentences{display:flex;flex-direction:column;gap:5px}
.book-sentence{width:100%;text-align:left;display:flex;align-items:flex-start;gap:12px;border:1px solid transparent;background:white;border-radius:13px;padding:13px 12px;color:#47404b}
.book-sentence.is-selected{background:#fff2f8;border-color:#f4d1e1}
.book-sentence:hover{background:#fff7fa}
.book-cue-icon{width:27px;height:27px;flex:0 0 27px;border-radius:50%;display:grid;place-items:center;background:#fae9f1;color:#c35383;font-size:14px;margin-top:3px}
.book-cue-icon svg{width:15px;height:15px;fill:currentColor}
.book-sentence>span:last-child{flex:1;min-width:0}
.book-speaker{display:block;font-size:10px;color:#a58a9b;margin-bottom:4px;letter-spacing:.2px}
.book-sentence b{display:block;font-family:Arial,sans-serif;font-size:18px;line-height:1.5;font-weight:500}
.book-sentence small{display:block;font-size:12px;line-height:1.6;color:#806d79;margin-top:4px}
.book-panel-intro{font-size:14px;color:#88747f;line-height:1.8;margin:18px 5px}
.book-chapters>button{border:1px solid #eee2e9;background:white;border-radius:13px;display:flex;align-items:center;gap:12px;padding:14px;width:100%;margin:12px 0;text-align:left;color:#584a56;font-size:14px}
.book-chapters>button small{margin-left:auto;color:#a18b97}
.book-notes{padding:5px 8px}
.book-notes section{padding:15px 0;border-bottom:1px solid #f0e7ed}
.book-notes h2{font-size:15px;margin:0 0 8px;color:#61505d}
.book-notes p{font-size:14px;line-height:1.95;color:#8d7b87}
.book-word-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.book-word-chips button{display:flex;align-items:center;gap:5px;border:1px solid #efdce6;background:#fff9fc;border-radius:10px;padding:9px 10px;color:#aa5680;font-size:13px}
.book-word-chips svg{width:14px;height:14px;fill:currentColor}
.book-word-chips small{color:#9d8793}
.book-read{text-align:center;padding:20px 8px}
.book-read-step{display:flex;justify-content:space-between;align-items:center;color:#aa94a3;font-size:12px;margin-bottom:42px}
.book-read-step button{width:32px;height:32px;border:1px solid #ede1e8;border-radius:50%;background:white;color:#b26b8d;font-size:24px}
.book-read-en{font:500 25px/1.6 Arial,sans-serif;color:#4c3c49;margin-bottom:12px}
.book-read-cn{font-size:14px;line-height:1.7;color:#aa8e9e;margin-bottom:40px}
.book-read-controls{display:flex;gap:30px;align-items:center;justify-content:center}
.book-demo{border:0;background:white;color:#b78b9f;font-size:12px;display:flex;flex-direction:column;align-items:center;gap:7px;min-width:48px}
.book-demo svg{width:22px;height:22px;fill:currentColor}
.book-record{border:0;width:72px;height:72px;flex-shrink:0;border-radius:50%;background:#f0a8b0;color:white;box-shadow:0 4px 0 #bc3d74;display:grid;place-items:center;font-size:24px}
.book-record svg{width:28px;height:28px;fill:currentColor}
.book-record.is-recording{background:#d74771;animation:pulse 1s infinite}
.book-rec-status{font-size:13px;color:#a08695;min-height:24px;margin:25px 0 15px}
.book-assessment-note{font-size:12px;color:#ac96a3;line-height:1.8;margin-bottom:15px}
.book-loop{border:1px solid #eaddE5;background:white;color:#ad8b9e;border-radius:10px;padding:9px 13px;font-size:12px}
.book-loop.is-selected{color:#d78796;background:#fff1f8;border-color:#eebbd2}
.textbook-bottom{position:sticky;bottom:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:22px;padding:20px 0 25px;background:#fff;border-top:1px solid #eee6ec}
.textbook-bottom>span{font-size:12px;color:#82717d}
.textbook-bottom .btn{min-width:160px}
.lesson-focus button:disabled{opacity:.42;cursor:default;transform:none;box-shadow:none}
.lesson-focus button:focus-visible,.lesson-focus input:focus-visible{outline:3px solid #e9a6c6;outline-offset:3px}
.book-catalog{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:28px}
.book-catalog-card{text-align:left;padding:14px;background:white;border:1px solid #eee2e9;border-radius:18px;overflow:hidden;color:#51464e}
.book-catalog-card img,.book-practice-cover{width:100%;height:190px;object-fit:contain;background:#fffafc;border-radius:9px;margin-bottom:16px}
.book-practice-cover{display:grid;place-items:center;color:#cb6792;font-size:20px;background:#fff2f8}
.book-catalog-card small{color:#99818f;font-size:11px}
.book-catalog-card h3{font-size:15px;line-height:1.6;margin-top:5px}
@media(max-width:820px){
 .book-catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .book-catalog-card{padding:11px}.book-catalog-card img,.book-practice-cover{height:155px}
 .textbook-wrap{padding:16px 23px 0;max-width:600px}
 .textbook-wrap .lesson-head{margin-bottom:12px;gap:13px}
 .textbook-heading{margin:14px 0 17px}
 .textbook-heading h1{font-size:26px}
 .textbook-heading span{font-size:11px}
 .book-section{max-width:50%;font-size:10px!important}
 .book-spread{grid-template-columns:1fr;gap:4px}
 .book-player{position:static}
 .book-video-frame video{height:clamp(290px,49dvh,460px)}
 .book-play-overlay{width:76px;height:76px}
 .book-play-overlay svg{width:24px;height:24px}
 .book-play-overlay span{font-size:11px}
 .book-play-status{font-size:11px;min-height:22px;margin:7px 0 0}
 .book-transport{gap:8px;padding-top:11px}
 .book-mode-tabs{gap:32px;margin-top:7px;margin-bottom:5px}
 .book-mode-tabs button{font-size:14px;padding-top:10px;padding-bottom:10px}
 .book-sentence{padding:12px 10px}
 .book-sentence b{font-size:18px}
 .book-text-tools{font-size:11px;padding-top:7px}
 .textbook-bottom{margin-top:18px;padding:15px 0 calc(15px + env(safe-area-inset-bottom));gap:12px}
 .textbook-bottom>span{max-width:45%;font-size:11px;line-height:1.7}
 .textbook-bottom .btn{min-width:148px;font-size:13px}
 .book-read{padding:15px 5px}
 .book-read-step{margin-bottom:24px}
 .book-read-en{font-size:24px}
 .book-read-cn{margin-bottom:27px}
 .lesson-focus .activity-wrap{padding:18px 23px 25px}
 .lesson-focus .activity{min-height:calc(100dvh - 210px)}
 .lesson-focus .activity h2{font-size:23px}
 .lesson-focus .bottom-action{padding-bottom:calc(14px + env(safe-area-inset-bottom))}
 .lesson-focus .bottom-action .btn{min-width:140px}
 .lesson-focus .bottom-action .sub{max-width:40%;font-size:12px}
}
@media(prefers-reduced-motion:reduce){.lesson-focus *{animation:none!important;scroll-behavior:auto!important}}
