#na-voice-root {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 99999;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, sans-serif;
}
#na-voice-fab {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(145deg, #0ea5e9, #0369a1);
  color: #fff;
  box-shadow: 0 8px 24px rgba(3, 105, 161, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  position: relative;
}
#na-voice-fab:hover,
#na-voice-fab:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 10px 28px rgba(3, 105, 161, 0.55);
  outline: 2px solid #fff;
  outline-offset: 2px;
}
#na-voice-fab .na-voice-icon-stop { display: none; }
#na-voice-root[data-session="on"] #na-voice-fab .na-voice-icon-mic { display: none; }
#na-voice-root[data-session="on"] #na-voice-fab .na-voice-icon-stop { display: block; }
#na-voice-fab[data-state="listening"] {
  background: linear-gradient(145deg, #f43f5e, #be123c);
  animation: na-voice-pulse 1.2s ease-in-out infinite;
}
#na-voice-fab[data-state="thinking"] {
  background: linear-gradient(145deg, #f59e0b, #b45309);
  animation: none;
}
#na-voice-fab[data-state="speaking"] {
  background: linear-gradient(145deg, #8b5cf6, #5b21b6);
  animation: na-voice-speak 1.4s ease-in-out infinite;
}
@keyframes na-voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.55); }
  50% { box-shadow: 0 0 0 14px rgba(244, 63, 94, 0); }
}
@keyframes na-voice-speak {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(139, 92, 246, 0); }
}
#na-voice-fab svg { width: 28px; height: 28px; fill: currentColor; }
#na-voice-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: min(340px, calc(100vw - 32px));
  background: rgba(8, 28, 48, 0.96);
  color: #e8f4ff;
  border: 1px solid rgba(148, 197, 233, 0.35);
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  display: none;
}
#na-voice-panel.open { display: block; }
#na-voice-panel h2 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 650;
  color: #fff;
}
#na-voice-panel .na-voice-hint {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #a9c7de;
}

#na-voice-lang {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 8px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(148, 197, 233, 0.3);
}
.na-voice-lang-btn {
  border: none;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  background: transparent;
  color: #a9c7de;
}
.na-voice-lang-btn.is-on,
.na-voice-lang-btn[aria-pressed="true"] {
  background: #0ea5e9;
  color: #042f4a;
}
#na-voice-status {
  font-size: 12px;
  min-height: 1.2em;
  margin-bottom: 8px;
  color: #7dd3fc;
}
#na-voice-level {
  height: 4px;
  background: rgba(125, 211, 252, 0.15);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
#na-voice-level span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #f472b6);
  transition: width 0.05s linear;
}
#na-voice-transcript,
#na-voice-reply {
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 8px;
  white-space: pre-wrap;
  word-break: break-word;
}
#na-voice-transcript strong,
#na-voice-reply strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7dd3fc;
  margin-bottom: 2px;
}
#na-voice-controls {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
#na-voice-talk,
#na-voice-close {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
#na-voice-talk {
  background: #0ea5e9;
  color: #042f4a;
}
#na-voice-talk.is-active {
  background: #f43f5e;
  color: #fff;
}
#na-voice-talk:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
#na-voice-close {
  background: transparent;
  color: #cfe7f8;
  border: 1px solid rgba(148, 197, 233, 0.35);
}
@media (max-width: 480px) {
  #na-voice-root { right: 14px; bottom: 16px; }
}
