.voice-dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 40px);margin:auto;padding:0;border:0;border-radius:14px;background:var(--surface);color:var(--paper);overflow:hidden;box-shadow:0 28px 90px rgba(0,0,0,.5);font:400 14px/1.6 var(--body)}
.voice-dialog::backdrop{background:rgba(7,8,9,.82)}
body.voice-open{overflow:hidden}
.voice-shell{display:flex;flex-direction:column;max-height:calc(100dvh - 40px)}
.voice-top{display:flex;justify-content:space-between;align-items:center;padding:22px 26px 0;gap:15px}
.voice-status{display:flex;align-items:center;gap:8px;color:var(--bone);font-size:12px}
.voice-status-dot{width:6px;height:6px;border-radius:50%;background:#A6A39F}
.voice-dialog.is-connected .voice-status-dot{background:var(--paper)}
.voice-close{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:8px;background:none;color:var(--paper);cursor:pointer;margin:-6px -8px -6px 0}
.voice-close:hover{background:#333438}
.voice-dialog svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.voice-content{overflow:auto;overscroll-behavior:contain;padding:30px 26px 20px;min-height:0}
.voice-content h2{font-size:32px;line-height:1.12;letter-spacing:.025em;text-wrap:balance;margin-bottom:12px;max-width:15ch}
.voice-intro{font-size:13px;color:var(--bone);max-width:43ch}
.voice-wave{display:flex;align-items:center;justify-content:center;gap:4px;height:96px;margin:16px 0 10px;overflow:hidden}
.voice-wave span{display:block;width:3px;height:3px;border-radius:3px;background:#D9D6D1;transition:height .12s ease-out;opacity:.65}
.voice-timer{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.voice-captions{min-height:46px;max-height:185px;overflow:auto;font-size:13px;line-height:1.7;margin-bottom:16px}
.voice-captions p{margin-top:13px;overflow-wrap:anywhere}
.voice-captions small{display:block;font-size:10px;color:var(--muted);margin-bottom:3px}
.voice-captions .is-user{color:var(--muted)}
.voice-draft{border-top:1px solid var(--field-line);padding-top:16px;margin-top:14px}
.voice-draft h3{font:500 14px/1.5 var(--body);margin-bottom:10px}
.voice-draft dl>div{display:grid;grid-template-columns:65px minmax(0,1fr);gap:12px;font-size:12px;margin-top:9px}
.voice-draft dt{color:var(--muted)}
.voice-draft dd{color:var(--bone);overflow-wrap:anywhere}
.voice-draft .voice-draft-price{padding-top:10px;margin-top:12px;border-top:1px solid var(--field-line)}
.voice-error{color:#FFB8B0;font-size:12px;padding:10px 0}
.voice-footer{padding:17px 26px 22px;border-top:1px solid var(--field-line)}
.voice-start,.voice-review{display:flex;justify-content:center;align-items:center;gap:12px;width:100%;min-height:50px;border:0;border-radius:8px;background:var(--purple);color:white;font:500 13px/1.4 var(--body);cursor:pointer;transition:background-color .2s,transform .2s}
.voice-start:hover:not(:disabled),.voice-review:hover{background:var(--purple-deep);transform:translateY(-1px)}
.voice-start:disabled{opacity:.65;cursor:wait}
.voice-review{margin-top:12px}
.voice-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.voice-controls button{min-height:46px;display:flex;align-items:center;justify-content:center;gap:8px;background:#2D2E32;border:1px solid #56575B;border-radius:8px;font:400 12px/1.4 var(--body);color:var(--paper);cursor:pointer;transition:background-color .2s}
.voice-controls button:hover{background:#3B3C41}
.voice-controls .voice-end{color:#FFD1CD;border-color:#87514F;background:#402728}
.voice-footer p{font-size:10px;line-height:1.7;color:var(--muted);margin-top:12px}
.voice-direct{display:inline-block;font-size:11px;color:var(--bone);text-underline-offset:4px;margin-top:12px}
@media(max-width:600px){.voice-dialog{max-height:calc(100dvh - 24px)}.voice-shell{max-height:calc(100dvh - 24px)}.voice-content{padding-top:25px}.voice-content h2{font-size:29px}.voice-wave{height:76px}.voice-captions{max-height:145px}}
@media(prefers-reduced-motion:reduce){.voice-dialog *{transition:none!important;animation:none!important}}
