/* Shared rhythm practice controls and the approved syllable lexicon. */
body.syllables-prototype-page{padding-bottom:82px}.syllables-prototype-page .header-label,.syllables-prototype-page .site-home{display:none}.syllable-prototype-banner{display:flex;align-items:center;gap:16px;padding:12px max(22px,calc((100vw - 1224px)/2));background:#633b29;color:#fff4dc;font-size:12px;font-weight:800}.syllable-prototype-banner span{font-weight:400;color:#f3d9b4}.syllable-prototype-banner button{margin-left:auto;background:#fff1cd;color:#633b29;border:0;border-radius:8px;padding:9px 12px;font-weight:800;white-space:nowrap}.intro{min-height:150px}.practice-mode-switch{display:flex;gap:5px;border:1px solid #f2d39c;background:#ffedbd;padding:5px;border-radius:14px;margin:18px auto 4px;max-width:490px}.practice-mode-switch button{flex:1;display:grid;grid-template-columns:30px 1fr;gap:2px 8px;align-items:center;text-align:left;border:1px solid transparent;background:transparent;color:#94683e;padding:12px;border-radius:10px}.practice-mode-switch button[aria-pressed=true]{background:#fffaf0;border-color:#efc48a;color:#a1412d;box-shadow:0 3px 0 #dca85b30}.practice-mode-switch button>span{grid-row:span 2;font-size:21px;font-weight:900}.practice-mode-switch b{font-size:13px}.practice-mode-switch small{font-size:9px;line-height:1.5}.stage{height:345px}#speakingTeacher{position:relative;height:250px;width:250px;flex-shrink:0;text-align:center}#speakingTeacher img{width:200px;height:200px;object-fit:cover;object-position:50% 25%;border-radius:50%;border:6px solid #ffdf8b;box-shadow:0 8px 25px #9e5a2320}.teacher-photo-label{display:block;font-size:9px;color:#9b6c42;margin-top:7px}#currentSyllable{position:absolute;bottom:39px;left:50%;transform:translateX(-50%);white-space:nowrap;min-width:90px;padding:8px 16px;background:#fff9e9;border:2px solid #efb96a;border-radius:14px;color:#b44830;font-size:25px;box-shadow:0 4px 0 #e6c99555}#prototypeScoreHeader{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:center;margin:17px 0 10px;font-size:11px;color:#9a693b}#prototypeScoreHeader label{display:flex;align-items:center;gap:6px;font-weight:700;color:#844c2a}#prototypeScoreHeader input{accent-color:#e95543}#prototypeFigureLabel{font-size:10px}#prototypeVoiceNote{font-size:10px;line-height:1.7;color:#976740;max-width:530px;margin:12px auto;text-align:center}.prototype-syllable{fill:#966238}.prototype-syllable.active{fill:#e64935;font-weight:900;text-decoration:underline}#score svg{height:145px}.prototype-variant-switch{position:fixed;z-index:50;bottom:18px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;max-width:calc(100vw - 24px);padding:7px;background:#543326;color:#fff6e2;border:1px solid #f2cf9366;box-shadow:0 7px 25px #46210e35;border-radius:99px;font-size:11px}.prototype-variant-switch button{flex-shrink:0;width:34px;height:34px;border:0;border-radius:50%;background:#ffdfa2;color:#61391e;font-size:19px}.prototype-variant-switch span{text-align:center;min-width:210px;line-height:1.5}dialog{border:1px solid #eed19c;border-radius:20px;padding:25px;background:#fffaf0;color:#633b29;width:min(760px,calc(100vw - 30px));max-height:85vh}dialog::backdrop{background:#39211688;backdrop-filter:blur(3px)}.vocabulary-heading{display:flex;justify-content:space-between;align-items:center}.vocabulary-heading small{font-size:9px;letter-spacing:1.5px;color:#b46e37}.vocabulary-heading h2{font-size:25px;margin:8px 0}.vocabulary-heading button{border:0;background:#ffe8bf;color:#784825;border-radius:50%;width:34px;height:34px}dialog p{font-size:12px;line-height:1.6}dialog table{width:100%;border-collapse:collapse;font-size:12px}dialog td,dialog th{padding:12px 8px;border-bottom:1px solid #efdcbc;text-align:left}dialog th{font-size:10px;color:#a36b36}dialog td:nth-child(2){font-weight:800;color:#ad4833}dialog td button{border:1px solid #efc38b;background:#ffedcb;color:#90532d;border-radius:7px;padding:7px;font-size:10px}
/* B: a side-by-side choice panel and stage, with the score spanning both. */
body[data-prototype-variant=B] .practice{display:grid;grid-template-columns:minmax(150px,1fr) minmax(210px,1.3fr);column-gap:20px;align-content:start}body[data-prototype-variant=B] .practice>*{grid-column:1/-1}body[data-prototype-variant=B] #practiceModeSwitch{grid-column:1;grid-row:4;flex-direction:column;margin:20px 0;align-self:center;background:transparent;border:0;padding:0;gap:12px}body[data-prototype-variant=B] #practiceModeSwitch button{border:1px solid #ebcc99;min-height:100px;background:#fff7e4;grid-template-columns:35px 1fr}body[data-prototype-variant=B] #practiceModeSwitch button[aria-pressed=true]{border:2px solid #ed8b68;background:#ffe7ca}body[data-prototype-variant=B] .stage{grid-column:2;grid-row:4}body[data-prototype-variant=B] .stage .spark{display:none}
/* C: score first, compact choice beside the note captions, small teacher below. */
body[data-prototype-variant=C] .practice{display:flex;flex-direction:column}body[data-prototype-variant=C] .practice-top{order:0}body[data-prototype-variant=C] #practiceModeSwitch{order:1;margin:22px 0 0;max-width:none;align-self:flex-start;background:transparent;padding:0;border:0;gap:8px}body[data-prototype-variant=C] #practiceModeSwitch button{display:flex;flex:initial;gap:8px;padding:9px 14px;border:1px solid #ebcd9e;border-radius:99px}body[data-prototype-variant=C] #practiceModeSwitch small{display:none}body[data-prototype-variant=C] #practiceModeSwitch span{font-size:16px}body[data-prototype-variant=C] #prototypeScoreHeader{order:2}body[data-prototype-variant=C] .score-wrap{order:3}body[data-prototype-variant=C] .stage{order:4;height:285px;margin-top:12px}body[data-prototype-variant=C] .hand-preview{order:5}body[data-prototype-variant=C] #prototypeVoiceNote{order:6}body[data-prototype-variant=C] .metronome-option{order:7}body[data-prototype-variant=C] .controls{order:8}body[data-prototype-variant=C] .feedback{order:9}body[data-prototype-variant=C] .mic-info{order:10}body[data-prototype-variant=C] #speakingTeacher{height:195px}body[data-prototype-variant=C] #speakingTeacher img{height:150px;width:150px}
@media(max-width:1000px){.syllable-prototype-banner span{display:none}body[data-prototype-variant=B] .practice{display:block}body[data-prototype-variant=B] #practiceModeSwitch{flex-direction:row}body[data-prototype-variant=B] #practiceModeSwitch button{min-height:100px;display:flex;flex-direction:column;text-align:center}.practice-mode-switch button{padding:10px 7px}.practice-mode-switch small{font-size:8px}}
@media(max-width:550px){.syllable-prototype-banner{font-size:10px;padding:10px 14px;gap:8px}.syllable-prototype-banner button{font-size:10px;padding:8px}.intro{min-height:140px}.practice-mode-switch b{font-size:12px}.practice-mode-switch small{display:none}.practice-mode-switch button{display:flex;justify-content:center}.practice-mode-switch button>span{font-size:18px}.prototype-variant-switch{bottom:10px;gap:6px;font-size:9px}.prototype-variant-switch span{min-width:180px}dialog{padding:15px}dialog table{font-size:10px}dialog td,dialog th{padding:9px 4px}#prototypeFigureLabel{line-height:1.6}}

.speech-assessment{font-size:12px;line-height:1.7;color:#9f4937;margin:0 auto;max-width:650px}.speech-assessment:empty{display:none}.speech-missing-list{display:flex;flex-wrap:wrap;gap:7px}.speech-missing-list button{padding:7px 10px;border:1px solid #e7a194;border-radius:8px;background:#fff0e8;color:#99402c;font-size:11px}.prototype-syllable.hit{fill:#27845a}.prototype-syllable.miss{fill:#bc3c34;text-decoration:underline;text-decoration-style:wavy}body[data-prototype-variant=C] .speech-assessment{order:10}

.practice-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;color:#9b6b3d;font-size:11px}.practice-tools button{border:1px solid #ebbb75;border-radius:10px;background:#fff0cc;color:#8d4b25;font-size:12px;font-weight:800;padding:11px 15px}.practice-tools button:hover{background:#ffe3a0}.practice-mode-switch{width:100%;max-width:560px}.practice-mode-switch button{min-height:63px;touch-action:manipulation}.practice-mode-switch button[aria-pressed=true]{border-color:#e98e62}.practice-tools{order:0}body[data-prototype-variant=C] .practice-tools{order:1}dialog #lexiconTitle{color:#7f4427}@media(max-width:550px){.practice-tools{align-items:flex-start;flex-direction:column;gap:8px}.practice-tools button{width:100%}}

.recorded-voice-panel{border:1px solid #edcd96;border-radius:12px;background:#fff7e2;padding:13px 16px;margin-top:15px}.voice-source-row{display:flex;align-items:center;gap:12px;font-size:12px;font-weight:800}.voice-source-row select{font:inherit;padding:7px 11px;border:1px solid #deb77b;border-radius:8px;color:#764329;background:#fffdf5}.recorded-voice-panel p{font-size:11px;line-height:1.6;color:#9a6534;margin:8px 0}.voice-examples{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:10px}.voice-examples button{font-size:10px;color:#995030;background:#fffdf5;border:1px solid #e5c28d;padding:7px 9px;border-radius:7px}body[data-prototype-variant=C] #recordedVoicePanel{order:4}

.lesson-picker-toggle{display:none}.recorded-play{min-height:44px;padding:10px 16px;border:1px solid #cf4934;border-radius:9px;background:#e95a43;color:#fff;font-family:inherit;font-size:12px;font-weight:700;margin:3px 0 12px}.recorded-play:disabled{opacity:.5}
@media(max-width:800px){.syllables-prototype-page .intro{display:none}.syllables-prototype-page main{padding-top:16px}.syllables-prototype-page .workspace{gap:12px}.syllables-prototype-page aside{padding:10px 14px}.syllables-prototype-page aside>:not(#lessonPickerToggle){display:none}.syllables-prototype-page.lessons-open aside>:not(#lessonPickerToggle){display:revert}.lesson-picker-toggle{display:block;width:100%;min-height:44px;border:0;border-radius:9px;background:#ffe4a0;color:#87532d;font-weight:800}.voice-examples button{min-height:44px;flex:1 1 calc(50% - 8px);font-size:12px}.voice-examples span{flex-basis:100%}.voice-source-row select{min-height:44px;max-width:100%}.recorded-voice-panel{padding:12px}.recorded-play{width:100%}}

.voice-original{min-height:44px;padding:8px 12px;border:1px solid #dfbb84;border-radius:9px;background:#fffdf5;color:#915331;font:inherit;font-size:11px;margin:0 0 12px}.voice-original:disabled{opacity:.5}@media(max-width:800px){.voice-original{width:100%}}
