.td-voice-settings { margin: 10px 0; color: #243449; font-size: 14px; }
.td-voice-settings__toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 9px 12px; border: 1px solid #d5deeb; border-radius: 10px; background: #f8fafc; }
.td-voice-settings__summary { min-width: 0; overflow-wrap: anywhere; }
.td-voice-settings.is-ready .td-voice-settings__summary { color: #166534; }
.td-voice-settings button { min-height: 40px; padding: 8px 13px; border: 1px solid #bcc9dc; border-radius: 8px; background: #fff; color: inherit; font: inherit; cursor: pointer; }
.td-voice-settings button.td-voice-button-primary { border-color: #2455db; background: #2455db; color: #fff; font-weight: 600; }
.td-voice-settings [hidden] { display: none !important; }
.td-voice-settings :disabled { opacity: .55; cursor: default; }
.td-voice-settings :focus-visible { outline: 2px solid #377dff; outline-offset: 3px; }
.td-voice-dialog { position: fixed; inset: 0; box-sizing: border-box; width: min(540px, calc(100% - 24px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #d5deeb; border-radius: 16px; background: #fff; color: #243449; box-shadow: 0 20px 70px #0f172a33; font-size: 14px; }
.td-voice-dialog:not([open]) { display: none; }
.td-voice-dialog::backdrop { background: #0f172a99; }
.td-voice-dialog.is-fallback[open] { z-index: 2147483000; box-shadow: 0 0 0 100vmax #0f172a99; }
.td-voice-dialog__header { padding: 22px 22px 16px; border-bottom: 1px solid #e2e8f0; }
.td-voice-dialog__header h2 { margin: 0 0 8px; font: inherit; font-size: 20px; line-height: 1.4; font-weight: 700; }
.td-voice-dialog__header p { margin: 0; color: #52647a; line-height: 1.6; }
.td-voice-settings__body { display: grid; gap: 14px; padding: 18px 22px; }
.td-voice-settings__body label { display: grid; gap: 6px; margin: 0; font-weight: 500; }
.td-voice-settings__body select { width: 100%; min-width: 0; max-width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #bcc9dc; border-radius: 8px; background: #fff; color: inherit; font: inherit; appearance: auto; -webkit-appearance: auto; cursor: pointer; }
.td-voice-settings__body .td-voice-settings__toggle { display: flex; align-items: flex-start; gap: 8px; }
.td-voice-settings__toggle input { margin-top: 3px; }
.td-voice-settings__body p { margin: 0; overflow-wrap: anywhere; line-height: 1.6; }
.td-voice-settings__hint { color: #52647a; font-size: 12px; line-height: 1.6; }
.td-voice-settings__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.td-voice-settings__body :disabled { opacity: .6; cursor: default; }
.td-voice-settings__body audio { width: 100%; min-width: 0; }
.td-voice-dialog__capture, .td-voice-dialog__permission, .td-voice-dialog__advanced-body { display: grid; gap: 12px; min-width: 0; }
.td-voice-dialog__permission button { justify-self: start; }
.td-voice-dialog__device-name { font-weight: 600; }
.td-voice-dialog__meter { height: 8px; overflow: hidden; border-radius: 8px; background: #e2e8f0; }
.td-voice-dialog__meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: #16a34a; transition: width .1s; }
.td-voice-dialog__advanced { border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; }
.td-voice-dialog__advanced summary { cursor: pointer; font-weight: 500; }
.td-voice-dialog__advanced-body { padding-top: 12px; }
.td-voice-dialog__status { padding: 10px 12px; border-radius: 8px; background: #eff6ff; color: #1e40af; }
.td-voice-dialog__footer { position: sticky; bottom: 0; display: grid; gap: 12px; padding: 16px 22px 20px; border-top: 1px solid #e2e8f0; background: #fff; }
.td-voice-dialog__footer p { margin: 0; }
.td-voice-dialog__footer .td-voice-settings__actions { justify-content: flex-end; }
html.dark .td-voice-settings, html.dark .td-voice-dialog { color: #e2e8f0; }
html.dark .td-voice-settings__toolbar, html.dark .td-voice-dialog, html.dark .td-voice-dialog__footer, html.dark .td-voice-settings select, html.dark .td-voice-settings button:not(.td-voice-button-primary) { background: #182234; border-color: #40516a; }
html.dark .td-voice-settings.is-ready .td-voice-settings__summary { color: #86efac; }
html.dark .td-voice-dialog__header p, html.dark .td-voice-settings__hint { color: #b5c3d5; }
html.dark .td-voice-dialog__status { background: #21375e; color: #bfdbfe; }
html.dark .td-voice-dialog__header, html.dark .td-voice-dialog__footer, html.dark .td-voice-dialog__advanced { border-color: #40516a; }
@media (max-width: 480px) { .td-voice-dialog__header, .td-voice-dialog__footer { padding: 16px; } .td-voice-settings__body { padding: 16px; } .td-voice-dialog__footer .td-voice-settings__actions { flex-wrap: nowrap; } .td-voice-dialog__footer button { flex: 1; } }
