/* Voice dock: only the state dot animates; status text remains steady. */
#voice-jarvis {
  --tone: #a1c2d1;
  position: fixed;
  left: 34px;
  bottom: 64px;
  width: min(320px, calc(100vw - 420px));
  max-width: 320px;
  max-height: calc(100vh - 136px);
  padding: 12px;
  z-index: 34;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: rgba(12, 27, 38, .78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #a1c2d1;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .04em;
  color-scheme: dark;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #527e90 #0c1b26;
}
body.chat-bar #voice-jarvis { bottom: 150px; max-height: calc(100vh - 222px); }
#voice-jarvis, #voice-jarvis * { box-sizing: border-box; }
#voice-jarvis * { border-radius: 0; box-shadow: none; }
#voice-jarvis [hidden] { display: none !important; }
#voice-jarvis :focus-visible { outline: 2px solid #ecfaff; outline-offset: 2px; }
#voice-jarvis .vj-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
#voice-jarvis .vj-controls { flex-wrap: wrap; margin-top: 8px; }
#voice-jarvis button { min-height: 28px; padding: 4px 8px; border: 0; background: #102532; color: #a1c2d1; font: inherit; font-size: 11px; letter-spacing: .04em; cursor: pointer; }
#voice-jarvis button:hover:not(:disabled) { background: #193342; }
#voice-jarvis button:disabled { opacity: .4; cursor: not-allowed; }
#voice-jarvis .vj-state { display: inline-flex; flex: none; align-items: center; gap: 8px; color: var(--tone); font-size: 11px; letter-spacing: .1em; }
#voice-jarvis .vj-state::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
#voice-jarvis .vj-state[data-state=off] { --tone: #527e90; }
#voice-jarvis .vj-state[data-state=idle] { --tone: #a1c2d1; }
#voice-jarvis .vj-state[data-state=wake] { --tone: #e5aa63; }
#voice-jarvis .vj-state[data-state=listening] { --tone: #69d9ff; }
#voice-jarvis .vj-state[data-state=thinking] { --tone: #a5e8ff; }
#voice-jarvis .vj-state[data-state=speaking] { --tone: #9be7a8; }
#voice-jarvis .vj-state[data-state=unavailable] { --tone: #e5aa63; border: 1px solid #e5aa63; }
#voice-jarvis .vj-state[data-state=wake]::before { animation: vj-wake-dot 1.6s ease-in-out infinite; }
#voice-jarvis .vj-state[data-state=listening]::before { animation: vj-listening-dot 1s ease-in-out infinite; }
#voice-jarvis #vj-wake.on, #voice-jarvis #vj-wake[aria-pressed=true] { background: #69d9ff; color: #04131c; }
#voice-jarvis #vj-wake.on:hover:not(:disabled) { background: #91e4ff; }
#voice-jarvis .vj-hint { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #a1c2d1; font-size: 11px; }
#voice-jarvis #vj-avail, #voice-jarvis #vj-log { margin: 8px 0 0; padding: 8px; list-style: none; background: #0c1b26; overflow-wrap: anywhere; font-size: 11px; }
#voice-jarvis #vj-avail li + li, #voice-jarvis #vj-log li + li { margin-top: 4px; }
#voice-jarvis #vj-avail li[data-ok=false] { color: #e5aa63; }
#voice-jarvis #vj-avail li[data-ok=unknown] { color: #527e90; }
#voice-jarvis #vj-avail li[data-ok=true] { color: #9be7a8; }
#voice-jarvis #vj-log li { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 4px; color: #a1c2d1; font-size: 11px; }
#voice-jarvis #vj-log li::before { content: '▸'; color: #527e90; }
#voice-jarvis.collapsed { width: max-content; max-width: calc(100vw - 68px); }
#voice-jarvis.collapsed .vj-controls, #voice-jarvis.collapsed #vj-avail, #voice-jarvis.collapsed #vj-log, #voice-jarvis.collapsed .vj-hint { display: none; }
#voice-jarvis [data-status=unavailable] { border-left: 3px solid #e5aa63; color: #e5aa63; }
#voice-jarvis [data-status=demo] { border: 1px dotted #527e90; }
#voice-jarvis [data-status=empty] { color: #527e90; }
@keyframes vj-wake-dot { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes vj-listening-dot { 0%, 100% { opacity: .6; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }
@media (prefers-reduced-motion: reduce) {
  #voice-jarvis .vj-state::before { animation: none; }
}
@media (max-width: 760px) {
  #voice-jarvis { left: 8px; width: min(320px, calc(100vw - 16px)); }
  #voice-jarvis.collapsed { max-width: calc(100vw - 16px); }
}
@media (max-width: 760px), (pointer: coarse) {
  #voice-jarvis button { min-width: 40px; min-height: 40px; }
}
