/* YNY CHAT VOICE — existing MIC button becomes a two-way conversation toggle. */
#micBtn.yny-voice-active {
  position:relative;
  background:color-mix(in srgb,var(--bubble-user,#876dff) 60%,var(--bg,#181720));
  color:var(--text,#fff);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--bubble-user,#876dff) 37%,transparent);
  font-weight:800;font-size:12px;
}
#micBtn.yny-voice-active.yny-voice-listening::after {
  content:"";position:absolute;inset:-5px;border-radius:inherit;
  border:2px solid var(--bubble-user,#9f7dfa);
  animation:ynyMicWave 1.8s ease-out infinite;
  pointer-events:none;
}
#micBtn.yny-voice-active.yny-voice-speaking {background:color-mix(in srgb,#53c5b1 28%,var(--bg,#181720));}
#micBtn.yny-voice-active.yny-voice-processing {opacity:.78;}
.yny-voice-status {
  position:absolute;
  right:12px;bottom:calc(100% + 4px);
  display:none;max-width:min(430px,calc(100vw - 24px));
  padding:8px 12px;border-radius:12px;
  border:1px solid var(--border,#45434e);
  background:var(--bg,#1b1925);color:var(--text,#fff);
  font:500 12px/1.4 system-ui,sans-serif;
  box-shadow:0 5px 18px #0002;
  z-index:1100;
}
.yny-voice-status[data-visible="true"]{display:block;}
@keyframes ynyMicWave{
  0%{transform:scale(.95);opacity:.75}
  100%{transform:scale(1.32);opacity:0}
}
@media (prefers-reduced-motion:reduce){
  #micBtn.yny-voice-active.yny-voice-listening::after{animation:none;}
}
