.speech-settings-dialog{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow-y:auto;padding:26px;border:1px solid var(--ink);color:var(--ink);background:var(--paper-2,#f8f5ed);box-shadow:8px 8px 0 rgba(231,255,89,.6)}
.speech-settings-dialog::backdrop{background:rgba(7,23,33,.65)}
.speech-settings-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}
.speech-settings-head h2{font:700 26px/1.3 Georgia,"Songti SC",serif;margin:0}
.speech-settings-head button{flex:none;width:36px;height:36px;border:1px solid var(--line);background:#fff;font-size:23px;color:var(--ink);cursor:pointer}
.speech-settings-dialog label{display:block;font-size:13px;font-weight:700;margin:0 0 10px}
.speech-settings-dialog select{width:100%;min-height:46px;padding:10px;border:1px solid var(--ink);background:#fff;color:var(--ink);font:inherit;font-size:14px}
.speech-settings-help{margin:12px 0;color:var(--muted);font-size:11px;line-height:1.9}
.speech-settings-current{padding:12px;border-left:3px solid var(--ink);background:#edf3df;font-size:12px;line-height:1.8;margin:18px 0 26px}
.speech-rate-head{display:flex;justify-content:space-between;align-items:center}
.speech-rate-head label{margin-bottom:0}
.speech-rate-head output{font:800 17px/1.5 monospace;color:var(--ink)}
.speech-settings-dialog input[type=range]{display:block;width:100%;margin:14px 0 10px;accent-color:var(--ink)}
.speech-rate-scale{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted)}
.speech-settings-actions{display:flex;gap:10px;margin-top:24px}
.speech-settings-actions button{flex:1;min-height:44px;padding:10px;border:1px solid var(--ink);font:inherit;font-size:12px;font-weight:700;cursor:pointer}
#preview-speech-settings{background:#fff;color:var(--ink)}
#done-speech-settings{background:var(--ink);color:#fff}
.speech-settings-storage{margin:16px 0 0;font-size:10px;color:var(--muted);text-align:center}
.speech-settings-dialog button:focus-visible,.speech-settings-dialog select:focus-visible,.speech-settings-dialog input:focus-visible{outline:3px solid var(--sky);outline-offset:3px}
@media(max-width:380px){.practice-brand b{display:none}.speech-settings-dialog{padding:20px}.speech-settings-head h2{font-size:23px}}
