/* Scoped speech footer and shared manuscript editor. */
.presentation-speech{flex:0 0 auto;min-width:0;width:100%;padding:13px 24px 14px;border-top:1px solid #31474a;background:#10242a;color:#eaf1ed;box-shadow:0 -8px 24px #07161c15}
.speech-topline{display:flex;align-items:center;gap:9px;min-width:0;margin-bottom:7px}
.speech-heading{color:#f4d678;font-size:10px;font-weight:800;letter-spacing:1.8px;line-height:1.4}
.speech-language{color:#a0c6bb;font-size:10px;line-height:1.4}
.speech-position{color:#88a4a3;font-size:10px;line-height:1.4;font-variant-numeric:tabular-nums}
.presentation-speech button{border:1px solid #3e5d5d;border-radius:7px;background:#173237;color:#dceae4;font-size:11px;line-height:1.25;padding:7px 10px;font-weight:650;min-height:32px}
.presentation-speech button:hover{background:#23464a;border-color:#688681}
.presentation-speech button:disabled{opacity:.42;cursor:default}
.presentation-speech .speech-edit{margin-left:auto;padding:4px 8px;min-height:26px;border-color:transparent;background:transparent;color:#a9c9bf;font-size:10px}
.presentation-speech .speech-edit:hover{background:#244047;color:#eaf1ed}
.speech-subtitle-wrap{display:flex;align-items:center;min-height:48px;max-width:1100px;margin:0 0 9px}
.speech-subtitle{margin:0;font-size:clamp(15px,1.55vw,20px);font-weight:500;line-height:1.5;letter-spacing:.05px;color:#f3f5e9;text-wrap:pretty;overflow-wrap:anywhere;text-decoration-color:transparent;text-decoration-thickness:2px;text-underline-offset:5px}
.speech-subtitle.is-speaking{color:#fff2ad;text-decoration-line:underline;text-decoration-color:#f2cb63}
.speech-subtitle.is-paused{color:#dacfa3}
.speech-controls{display:flex;align-items:center;gap:12px;min-width:0}
.speech-transport{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.presentation-speech .speech-play{min-width:91px;background:#a7dec5;border-color:#a7dec5;color:#102d27}
.presentation-speech .speech-play:hover{background:#c0eedb;border-color:#c0eedb}
.presentation-speech .speech-step{min-width:29px;padding:3px 8px;font-size:21px;font-weight:500;line-height:1}
.speech-pace{display:flex;align-items:center;gap:5px;font-size:10px;color:#a6bfb6;white-space:nowrap}
.speech-pace select{padding:5px 6px;min-height:30px;border:1px solid #3e5d5d;border-radius:6px;background:#142f34;color:#daeae2;font-size:11px;line-height:1.3}
.speech-status{margin:0;max-width:560px;font-size:11px;line-height:1.4;color:#d5bf91}
.presentation-speech button:focus-visible,.presentation-speech select:focus-visible{outline:2px solid #f3d47b;outline-offset:2px}
.speech-editor-dialog{width:min(820px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:calc(100svh - 30px);margin:auto;padding:0;border:1px solid #cbd9cf;border-radius:13px;background:#f8faf6;color:#243e30;box-shadow:0 24px 90px #11251b66;overflow:auto}
.speech-editor-dialog::backdrop{background:#0b1718b8;backdrop-filter:blur(3px)}
.speech-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 20px;border-bottom:1px solid #dce4d9;background:#fff}
.speech-editor-heading h2{margin:0;font-size:18px;font-weight:650;line-height:1.4}
.speech-editor-heading button{border:0;background:transparent;padding:0 8px;font-size:25px;line-height:1.3}
.speech-editor-body{padding:15px 20px 2px}
.speech-editor-intro{margin:0 0 15px;color:#64766a;font-size:12px;line-height:1.5}
.speech-editor-body>label{display:block;margin:0 0 16px}
.speech-editor-body>label>span{display:block;margin-bottom:7px;font-size:12px;font-weight:700}
.speech-editor-body textarea{width:100%;min-height:135px;font-size:14px;line-height:1.6;resize:vertical}
.speech-editor-error{margin:0 0 12px;color:#a42e3a;font-size:12px;line-height:1.5}
.speech-editor-error:empty{display:none}
.speech-editor-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:5px 20px 18px}
.speech-editor-actions button,.speech-reload{font-size:12px}
.speech-reload{margin-bottom:14px}
.speech-editor-actions .speech-save{background:#245b47;color:#fff;border-color:#245b47}
@media(max-width:720px){.presentation-speech{padding:10px 13px 12px}.speech-topline{gap:7px;margin-bottom:5px}.speech-heading{font-size:9px;letter-spacing:1.3px}.speech-language,.speech-position{font-size:9px}.speech-subtitle-wrap{min-height:44px;margin-bottom:9px}.speech-subtitle{font-size:15px;line-height:1.45}.speech-controls{flex-wrap:wrap;gap:8px 10px}.speech-status{flex:1 0 100%;font-size:10px}.speech-transport{gap:5px}.presentation-speech button{padding:6px 8px;min-height:31px;font-size:11px}.presentation-speech .speech-play{min-width:83px}.presentation-speech .speech-step{min-width:25px;padding:3px 6px;font-size:21px}.speech-pace{margin-left:auto}.speech-pace select{min-height:30px}.speech-editor-heading{padding:12px 14px}.speech-editor-body{padding:13px 14px 0}.speech-editor-actions{padding:4px 14px 15px}}
@media(max-width:370px){.speech-topline{flex-wrap:wrap;gap:4px 7px}.speech-position{font-size:8px}.speech-pace>span{display:none}.speech-transport{gap:4px}.presentation-speech .speech-play{min-width:76px}}
