.voice-dialog { box-sizing: border-box; width: min(820px, calc(100% - 32px)); max-height: calc(100dvh - 40px); border: 1px solid var(--line); border-radius: 24px; padding: 30px; background: var(--panel, #141725); color: var(--tx); box-shadow: 0 24px 90px #0007; font-family: Manrope, sans-serif; overscroll-behavior: contain; }
.voice-dialog::backdrop { background: #030716b8; backdrop-filter: blur(5px); }
.voice-dialog :is(input,textarea,select) { box-sizing: border-box; max-width: 100%; font-family: inherit; }
.voice-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.voice-eyebrow { font-size: 10px; letter-spacing: .15em; color: var(--br2); }
.voice-head h2 { margin: 8px 0 0; font-size: clamp(23px,4vw,32px); font-weight: 600; line-height: 1.2; letter-spacing: -.035em; }
.voice-intro { font-size: 13px; line-height: 1.7; color: var(--tx2); max-width: 640px; margin: 15px 0 22px; }
.voice-example { border: 1px solid var(--line); border-radius: 15px; padding: 15px 18px; background: color-mix(in srgb, var(--br1) 6%, transparent); }
.voice-example > span { font-size: 10px; text-transform: uppercase; color: var(--tx2); letter-spacing: .1em; }
.voice-example p { font-size: 13px; line-height: 1.7; margin: 6px 0; }
.voice-example button { font: 500 11px Manrope,sans-serif; color: var(--br2); background: none; border: 0; padding: 5px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.voice-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }
.voice-toolbar p { flex: 1; min-width: 150px; font-size: 12px; line-height: 1.5; margin: 0; color: var(--tx2); }
#voiceRecord.is-listening { background: #b52642; color: #fff; border-color: #e57683; }
.voice-privacy,.voice-hint { font-size: 11px; line-height: 1.65; color: var(--tx2); margin: 10px 0 18px; }
.voice-label { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; margin-bottom: 8px; font-weight: 600; }
.voice-label span { color: var(--tx2); font-weight: 400; }
#voiceTranscript { display: block; width: 100%; min-height: 115px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; background: var(--field, #0c0f1a); color: var(--tx); padding: 13px 15px; font-size: 15px; line-height: 1.65; }
#voiceTranscript:read-only { opacity: .8; }
.voice-interim { font-size: 13px; line-height: 1.5; color: var(--br2); overflow-wrap: anywhere; margin: 7px 0; }
.voice-options { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 20px 0 10px; }
.voice-options label { display: grid; gap: 7px; font-size: 11px; color: var(--tx2); }
.voice-options select { width: 100%; min-width: 0; padding: 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--field, #0c0f1a); color: var(--tx); font-size: 12px; }
.voice-change { font-size: 11px; line-height: 1.6; color: var(--tx2); }
.voice-review-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-top: 24px; }
.voice-review-head h3 { font-size: 16px; font-weight: 600; margin: 0 0 13px; }
.voice-review-head span { font-size: 11px; color: var(--tx2); }
.voice-review { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.voice-day { min-width: 0; border: 1px solid var(--line); border-radius: 13px; padding: 13px; }
.voice-day h4 { margin: 0 0 12px; font-size: 12px; font-weight: 600; color: var(--br2); }
.voice-day label { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 6px; align-items: center; margin: 6px 0; font-size: 11px; color: var(--tx2); }
.voice-day input { width: 100%; min-width: 0; border: 1px solid var(--line); background: color-mix(in srgb, var(--br1) 5%, transparent); color: var(--tx); border-radius: 7px; padding: 9px; font-size: 13px; }
.voice-day p,.voice-empty { font-size: 12px; line-height: 1.7; color: var(--tx2); }
.voice-empty { grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: 12px; padding: 20px; margin: 0; }
.voice-issue { margin: 0 0 10px; font-size: 12px; line-height: 1.6; color: var(--tx2); overflow-wrap: anywhere; }
.voice-issue.error { color: #ff9caa; }
.voice-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.voice-foot p { font-size: 11px; color: var(--tx2); }
.voice-dialog button:disabled { opacity: .5; cursor: not-allowed; }
.voice-undo { padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--p1); color: var(--tx2); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12px; }
.voice-undo[hidden] { display: none; }
.site-light .voice-dialog { background: #fff; }
.site-light :is(#voiceTranscript,.voice-options select) { background: #f6f7fb; }
.site-light .voice-issue.error { color: #a52640; }
@media(max-width:600px) { .voice-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); padding: 20px 16px; border-radius: 18px; }.voice-options,.voice-review { grid-template-columns: 1fr; }.voice-foot .btn { width: 100%; }.voice-foot p { margin: 0; }.voice-toolbar .btn { width: 100%; }.voice-dialog input,.voice-dialog textarea,.voice-dialog select { font-size: 16px; }.voice-toolbar { gap: 10px; }.voice-undo { padding: 10px; } }
@media print { .voice-dialog,.voice-undo { display: none!important; } }
