/* Voice input (see voice-input.js). Colours follow the page's tokens, with fallbacks. */
.vi { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.vi[hidden] { display: none; }
.vi-mic {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--line, #e6e1ee); border-radius: 50%; background: var(--panel, #fff); color: var(--ink-2, #5f5873); cursor: pointer;
}
.vi-mic svg { width: 16px; height: 16px; }
.vi-mic:hover:not(:disabled) { color: var(--brand, #4b009e); border-color: var(--brand, #4b009e); }
.vi-mic:disabled { opacity: .5; cursor: not-allowed; }
.vi-mic[aria-pressed="true"] { color: #fff; background: #c62828; border-color: #c62828; animation: vi-pulse 1.4s ease-in-out infinite; }
@keyframes vi-pulse { 50% { box-shadow: 0 0 0 4px rgba(198, 40, 40, .25); } }
@media (prefers-reduced-motion: reduce) { .vi-mic[aria-pressed="true"] { animation: none; } }
.vi-note { font-size: 11.5px; color: var(--ink-3, #6f6a7d); white-space: nowrap; }
.vi-interim { font-size: 12.5px; color: var(--ink-3, #6f6a7d); font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.vi-interim.vi-error { color: var(--warn, #b3261e); font-style: normal; }
