#step2Recording{width:min(92vw,520px);padding:24px;border:1px solid #ead6c6;border-radius:22px;background:#fffdfa;color:#493a30}
#step2Recording::backdrop{background:#30231c88}
#step2Recording header{display:flex;align-items:center;justify-content:space-between;gap:12px}
#step2Recording h2{font-size:19px;margin:0}
#recordSentence{font:700 27px/1.5 Quicksand,sans-serif;overflow-wrap:anywhere;margin:24px 0}
#routine-record-status{font-size:13px;line-height:1.7;min-height:3em}
#routine-playback{width:100%;margin:10px 0}
.record-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}
#routine-file-info{font-size:12px;color:#947b6c}
#step2Recording button{min-height:44px}
/* Keep a story's first lines visible together with its picture on laptops. */
.story-illustration{width:min(100%,63dvh);margin:0 auto;flex-shrink:0}
.story-copy{padding:18px 24px}
/* Clear, consistent audio controls, with accessible labels preserved. */
.dialogue-audio,.inline-record,#storyAudio{width:44px;min-width:44px;min-height:44px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:50%}
.dialogue-audio svg,#storyAudio svg{width:23px;height:23px}
.sent-card .inline-record,#routine-record{font-size:0}
.inline-record::before,#routine-record::before{content:"";display:block;width:24px;height:24px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='9' y='2' width='6' height='13' rx='3' fill='black'/%3E%3Cpath d='M5 10v2a7 7 0 0 0 14 0v-2M12 19v3M8 22h8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
#routine-record{width:54px;height:54px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:50%}
#routine-record[aria-pressed="true"]::before{mask:none;width:20px;height:20px;border-radius:3px}
#wordBank[hidden]{display:none!important}
#reviewListen{min-width:48px;width:48px;height:48px;flex-shrink:0}
#reviewInstructionAudio{min-width:40px;width:40px;height:40px;flex-shrink:0}
.review-build-row{display:flex;align-items:center;justify-content:center;gap:12px;margin:27px auto;max-width:100%}
.review-build-row .sentence-slots{margin:0;min-width:0}
#reviewTitle{font-size:clamp(23px,4vw,32px);line-height:1.35}
.book-auto{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px}
.book-auto small{font-size:10px;font-weight:800;letter-spacing:.5px}

/* Give each sentence its own reading space without splitting a quotation. */
#storyHeading{white-space:normal;max-width:38ch;margin:0 auto;font-size:clamp(23px,3.1vw,31px);line-height:1.6;letter-spacing:0;word-break:normal;overflow-wrap:normal;hyphens:none;text-wrap:pretty}
#storyHeading .story-sentence{display:block}
#storyHeading .story-sentence+.story-sentence{margin-top:.45em}
.story-copy{padding:22px clamp(20px,4vw,38px) 28px}
.story-tools{justify-content:center}
.book-complete{padding:42px 24px;text-align:center}
.book-complete-mark{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 20px;border-radius:50%;background:#eef4e8;color:#577b3d;font-size:30px}
.book-complete h2{font-size:clamp(23px,4vw,30px);line-height:1.4;margin:0 0 26px;color:#3d3535}
.book-complete-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;max-width:520px;margin:0 auto 14px}
.book-complete-actions button{flex:1 1 180px;min-height:58px;font-size:16px;border-radius:18px}
#continueBookTwo{background:#fdf1e5;color:#ac4e24;border-color:#e8c2a8}
@media(max-width:480px){.book-complete{padding:34px 20px}.book-complete-actions{flex-direction:column}.book-complete-actions button{flex:none;width:100%}#storyHeading{font-size:23px;line-height:1.55}}
#fullVideoNote{margin:0 20px 20px;padding:0 16px;background:#fff3e9;border:1px solid #f0dbc9;border-radius:14px}
#fullVideoNote summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;list-style:none;cursor:pointer;font-size:14px;font-weight:700;color:#74472e}
#fullVideoNote summary::-webkit-details-marker{display:none}
#fullVideoNote summary:focus-visible{outline:3px solid #117a91;outline-offset:3px;border-radius:8px}
.full-video-toggle{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:28px;height:28px;border:1px solid #ead4c2;border-radius:50%;background:#fffdfa;font-size:22px;line-height:1;font-weight:500}
.full-video-toggle::before{content:'+'}
#fullVideoNote[open] .full-video-toggle::before{content:'−'}
#fullVideoNote p{font-size:13px;line-height:1.7;margin:0;padding:0 0 16px;color:#876b59}
.player-top h2{min-width:0;flex:1}
.player-top-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;flex-shrink:0}
#fullVideoLink{background:#fffdfa;font-size:12px;white-space:nowrap}
@media(max-width:560px){.player-top{flex-wrap:wrap;gap:12px;padding:16px}.player-top h2{flex-basis:100%}.player-top-actions{width:100%;justify-content:space-between}#fullVideoNote{margin:0 14px 14px}}
