/* The microphone inside a text field (27/10): speak instead of typing; red and pulsing while it listens. */
.voice-field{position:relative}
.voice-field>textarea,.voice-field>input{padding-right:56px}
.voice-field>.faro-text{margin-bottom:6px}
.voice-mic{position:absolute;right:10px;bottom:14px;display:grid;place-items:center;width:38px;height:38px;padding:0;border-radius:50%;border:1px solid #e2dbea;background:#f6f1fb;color:var(--brand,#2a1b63);cursor:pointer;transition:background .15s,color .15s}
.voice-field>input~.voice-mic{bottom:50%;transform:translateY(50%);width:32px;height:32px;right:6px}
.voice-mic:hover{background:#ece3f8}
.voice-mic:focus-visible{outline:2px solid var(--brand,#2a1b63);outline-offset:2px}
.voice-mic[data-state=listening]{background:#dc2626;border-color:#dc2626;color:#fff;animation:voice-pulse 1.4s ease-out infinite}
.voice-mic:disabled{opacity:.45;cursor:not-allowed}
.voice-status{margin:0 0 12px;font-size:12px;line-height:1.4}
.voice-status:empty{display:none}
@keyframes voice-pulse{0%{box-shadow:0 0 0 0 rgb(220 38 38/.45)}100%{box-shadow:0 0 0 12px rgb(220 38 38/0)}}
@media (prefers-reduced-motion:reduce){.voice-mic[data-state=listening]{animation:none}}
[data-theme=dark] .voice-mic{background:var(--surface,#1f1b2e);border-color:var(--line,#3a3450);color:var(--text,#f1eef8)}
[data-theme=dark] .voice-mic[data-state=listening]{background:#dc2626;border-color:#dc2626;color:#fff}
/* 24/11: the microphone of every box of text (mic.js), over its corner, never inside it. */
.mic-float{position:fixed;left:0;top:0;z-index:2147483000;display:flex;align-items:center;justify-content:flex-end;width:30px;height:30px;pointer-events:none}
.mic-float[hidden]{display:none}
.mic-float-button{flex:none;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:#f1edfb;color:#5b46c0;cursor:pointer;pointer-events:auto;box-shadow:0 0 0 2px #fff}
.mic-float-button:hover{background:#e6dffa}
.mic-float-button[data-state=listening]{background:#dc2626;color:#fff;animation:voice-pulse 1.4s ease-out infinite}
.mic-float-status{position:absolute;right:38px;max-width:min(320px,60vw);padding:5px 10px;border-radius:8px;background:#2b2a35;color:#fff;font:500 12px/1.4 Inter,system-ui,sans-serif;white-space:normal}
.mic-float-status:empty{display:none}
@media (prefers-reduced-motion:reduce){.mic-float-button[data-state=listening]{animation:none}}
[data-theme=dark] .mic-float-button{background:#37314d;color:#d8ccff;box-shadow:0 0 0 2px #242424}
[data-theme=dark] .mic-float-button[data-state=listening]{background:#dc2626;color:#fff}
