/* A compact workspace: the next action stays beside the learner's words. */
.voice-page [hidden]{display:none!important}
.voice-page main{max-width:1080px;padding:0 28px}
.voice-page .public-header{padding-block:20px}
.voice-page .public-header .header-learn{font:inherit;cursor:pointer;padding:12px 18px}
.voice-page .voice-heading{padding:26px 0 18px}
.voice-page .voice-heading h1{font-size:38px;letter-spacing:-1.5px;margin:0 0 8px}
.voice-page .voice-heading p{font-size:16px;margin:0;color:#59695d}
.practice-settings{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:620px}
.voice-page label{font-size:14px;font-weight:600}
.voice-page select{display:block;width:100%;min-height:44px;padding:9px 12px;margin-top:6px;background:#fffdf6;border:1px solid #aab7a4;border-radius:8px;color:inherit;font:inherit;font-size:16px}
.voice-page .practice-cue{font-size:16px;line-height:1.5;margin:14px 0 20px;max-width:740px}
.voice-workspace{display:grid;grid-template-columns:.9fr 1.1fr;gap:20px;align-items:start}
.voice-page .voice-card{min-width:0;padding:24px;border:1px solid #c4cdbd;border-radius:18px;background:#fffdf6}
.voice-page .voice-recorder{background:#e9eddf}
.voice-page .voice-card h2{font-size:25px;letter-spacing:-.6px;margin:0;line-height:1.2}
.recorder-heading,.words-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.voice-page .voice-timer{font:30px Georgia,serif;font-variant-numeric:tabular-nums;white-space:nowrap;margin:0}
.voice-page .voice-timer small{font:13px sans-serif;color:#657368}
.voice-page .voice-recorder progress{display:block;width:100%;height:7px;accent-color:#a6533d}
.voice-controls,.ai-buttons{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0 10px}
.voice-page button{font:inherit}
.voice-controls button,.ai-buttons button,.translation-controls>button,#voiceAuthSubmit{min-height:46px;padding:11px 18px;border:1px solid #254b3b;border-radius:8px;background:#254b3b;color:#fff;cursor:pointer;font-size:16px}
.voice-controls #clearRecording,.ai-buttons #aiCancel,.ai-buttons #aiTextCancel{background:transparent;color:#254b3b}
.voice-controls #stopRecording{background:#a6533d;border-color:#a6533d}
.voice-page button:disabled{opacity:.45;cursor:not-allowed}
.voice-page .voice-status{font-size:14px;line-height:1.5;min-height:0;margin:10px 0;color:#485c4e;overflow-wrap:anywhere}
.voice-page .voice-status:empty{display:none}
.voice-page .voice-consent{display:flex;align-items:flex-start;gap:10px;font-weight:400;font-size:14px;line-height:1.5;margin:16px 0 0}
.voice-consent input{width:18px;height:18px;flex:0 0 18px;margin-top:1px;accent-color:#254b3b}
.transcription-actions{margin-top:18px;border-top:1px solid #cad2bf;padding-top:1px}
.voice-page .voice-recorder audio{width:100%;height:40px;margin:12px 0 5px}
.voice-page .text-link,.voice-page .account-text-button{font-size:14px;color:#254b3b}
.voice-page .account-text-button{border:0;background:transparent;padding:6px 0;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.voice-page textarea{display:block;font-family:inherit;font-size:18px;line-height:1.5;min-height:126px;width:100%;padding:12px;border:1px solid #b4c0ab;border-radius:8px;background:#fffefa;color:inherit;resize:vertical}
.voice-page .feedback-actions{margin:14px 0 0}
.voice-page .quiet{font-size:13px;line-height:1.5;color:#657368}
.voice-feedback{margin:18px 0 0;padding:20px 0 0;border-top:1px solid #d8ddce;outline-offset:5px}
.voice-page .voice-feedback h2{font-size:24px;margin:0 0 16px}
#aiFeedbackBody{display:grid;gap:15px;margin:0 0 16px}
#aiFeedbackBody h3{font-size:14px;color:#92543b;margin:0 0 5px}
#aiFeedbackBody p{font-size:18px;line-height:1.5;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.voice-page #aiFeedback .quiet{margin:12px 0}
.voice-translation{border-top:1px solid #d8ddce;margin-top:20px;padding-top:16px}
.voice-page summary{font-size:15px;cursor:pointer;line-height:1.5}
.translation-controls{display:flex;align-items:end;gap:10px;margin:14px 0}
.translation-controls label{flex:1;min-width:0}
#aiTranslationText{font-size:20px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
#aiTranslation .eyebrow{display:none}
.voice-extras{margin:20px 0 36px}
.voice-options{padding:14px 0;border-bottom:1px solid #ccd4c4}
.options-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding-top:16px}
.voice-import input{display:block;max-width:100%;margin:10px 0;font-size:14px}
.voice-import small{font-size:12px;font-weight:400;color:#657368}
.browser-transcript-option .voice-consent{margin-top:0}
.browser-transcript-option p{margin:6px 0}
.voice-allowance{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0}
.voice-allowance p{margin:0}
.voice-allowance a{white-space:nowrap}
.ai-privacy{margin:14px 0}
.ai-privacy p{font-size:13px;line-height:1.6;max-width:850px}
#voiceLanguageNote{color:#854227}
.voice-page .public-footer{padding-block:24px}
.voice-page .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#voiceAuthDialog{max-width:480px;width:calc(100% - 32px);border:1px solid #b3bfac;border-radius:20px;padding:32px;background:#fcfaf3;color:#233d31}
#voiceAuthDialog::backdrop{background:#192e2a99}
#voiceAuthClose{float:right;border:0;background:none;font-size:30px;cursor:pointer}
#voiceAuthDialog h2{font:32px Georgia,serif}
#voiceAuthForm{display:grid;gap:10px;margin:24px 0}
#voiceAuthForm input{font:inherit;padding:12px;border:1px solid #9dad9c;border-radius:6px}
#voiceAuthMessage{color:#913d28}
@media(max-width:700px){
 .voice-page main{padding:0 18px}
 .voice-page .public-header{padding:16px 18px}
 .voice-page .public-header .header-learn{display:block;font-size:13px;padding:9px 12px}
 .voice-page .voice-heading{padding:20px 0 16px}
 .voice-page .voice-heading h1{font-size:32px}
 .voice-page .voice-heading p{font-size:14px}
 .practice-settings{gap:12px}
 .voice-page .practice-cue{font-size:14px;margin:12px 0 16px}
 .voice-workspace{grid-template-columns:1fr;gap:14px}
 .voice-page .voice-card{padding:18px}
 .voice-page textarea{min-height:106px}
 .options-grid{grid-template-columns:1fr}
 .voice-page .voice-card h2{font-size:24px}
 .voice-page .voice-allowance{align-items:flex-start}
 .voice-page .public-footer{margin-top:10px}
}
