.voices-dialog {
  --v-paper:#fffefa; --v-ink:#273e31; --v-mute:#53675b; --v-line:#d3dfd1; --v-accent:#25654b; --v-tint:#eef5ed;
  color:var(--v-ink); background:var(--v-paper); border:1px solid var(--v-line); border-radius:20px; margin:auto;
  width:min(29rem,calc(100% - 24px)); max-height:85vh; max-height:85dvh; overflow:auto; padding:clamp(16px,4vw,26px); box-sizing:border-box;
}
.voices-dialog::backdrop { background:#142e2373; }
.voices-dialog header,.voice-row,.voice-row label { display:flex; align-items:center; gap:10px; }
.voices-dialog header { justify-content:space-between; }
.voices-dialog h2 { margin:0; font-size:1.35rem; color:inherit; }
.voices-dialog .voices-close,.voices-dialog .voices-sample { min-width:44px; min-height:44px; border-radius:10px; padding:5px 12px; color:var(--v-accent); background:var(--v-tint); font-size:.94rem; font-weight:650; }
.voices-intro,.voices-status,.voices-help p { font-size:.96rem; line-height:1.6; color:var(--v-mute); }
.voices-intro { margin:10px 0; }
.voices-status:empty { display:none; }
.voices-list { max-height:min(38vh,290px); overflow-y:auto; overscroll-behavior:contain; }
.voice-row { min-height:56px; padding:4px 1px; border-bottom:1px solid var(--v-line); }
.voice-row label { flex:1; align-self:stretch; min-width:0; cursor:pointer; }
.voice-row input { width:18px; height:18px; margin:0 2px; accent-color:var(--v-accent); flex:none; }
.voice-row label span { display:grid; min-width:0; overflow-wrap:anywhere; }
.voice-row label strong { color:var(--v-ink); font-size:1rem; line-height:1.4; }
.voice-row small { color:var(--v-mute); font-size:.85rem; }
.voices-dialog .voices-sample { flex:none; }
.voices-dialog :is(button,input,summary):focus-visible { outline:2px solid var(--v-accent); outline-offset:1px; }
.voices-help summary { width:fit-content; color:var(--v-accent); cursor:pointer; padding:12px 0; min-height:44px; font-size:.92rem; font-weight:600; }
.voices-help p { margin:0; }
@media(prefers-color-scheme:dark) { .voices-dialog { --v-paper:#233028; --v-ink:#e7f3e7; --v-mute:#c0d1c2; --v-line:#4a5f4e; --v-accent:#b8e1be; --v-tint:#334639; } }
.voices-dialog h3 { margin:18px 0 4px; color:var(--v-ink); font-size:1.03rem; }
.voices-dialog .voice-note,.voices-dialog .voices-intro { margin:3px 0 4px; color:var(--v-mute); line-height:1.55; font-size:.9rem; }
.voices-dialog [hidden] { display:none !important; }
.voices-dialog .family-voices { margin-block:8px 0; }
.voices-tempo { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:16px; color:var(--v-ink); }
.voices-tempo select { min-height:44px; max-width:55%; border:1px solid var(--v-line); border-radius:8px; padding:4px 9px; color:var(--v-ink); background:var(--v-paper); font:inherit; }
