.voice-mic {
  background: #222;
  color: #fff;
  border: none;
  border-radius: 50%;            /* full circle */
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  cursor: pointer;
  transition:
    background 0.2s,
    box-shadow 0.25s cubic-bezier(.22,1,.36,1),
    transform 0.18s cubic-bezier(.22,1,.36,1);
  outline: none;
  user-select: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1001;
  padding: 0;
}

.voice-mic .mic-img {
  width: 64px;
  height: 64px;
  display: block;
  border-radius: 50%;
  object-fit: contain;
  background: #232a40;
  transition: opacity 0.2s;
}

.voice-mic .mic-label {
  display: none; /* Hide label for clean circle FAB look; set to block for debug */
}

/* Hover/focus states */
.voice-mic:hover, .voice-mic:focus-visible {
  background: #232a40;
  transform: translateY(-6px) scale(1.07);
  box-shadow: 0 10px 32px 0 rgba(32,127,255,0.18), 0 2px 10px rgba(48,48,48,0.08);
  outline: none;
}

/* Listening (active) state */
.voice-mic.listening {
  background: #1a73e8;
  box-shadow: 0 0 32px 8px #60a5fa, 0 2px 10px rgba(48,48,48,0.12);
  animation: glow 1.1s infinite alternate;
  transform: translateY(-6px) scale(1.07);
}

@keyframes glow {
  from { box-shadow: 0 0 16px #60a5fa, 0 2px 10px rgba(48,48,48,0.12);}
  to   { box-shadow: 0 0 40px #1e40af, 0 2px 10px rgba(48,48,48,0.12);}
}

.voice-mic:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* --- Voice Command List Popup --- */
.voice-command-list {
  font-family: inherit;
  font-size: 1.08em;
  background: #232a40;
  color: #fff;
  padding: 1.05em 1.6em 1.15em 1.6em;
  border-radius: 1.2em;
  box-shadow: 0 4px 24px rgba(32,64,160,0.19);
  position: fixed;
  bottom: 130px;
  right: 24px;
  z-index: 1002;
  min-width: 190px;
  max-width: 280px;
  line-height: 1.46;
  letter-spacing: 0.01em;
  display: none;
}

.voice-command-list__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .6em;
  font-size: 1.09em;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.voice-command-list__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3em;
  cursor: pointer;
  padding: 0 .25em;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.14s;
}
.voice-command-list__close:hover,
.voice-command-list__close:focus {
  opacity: 1;
}

.voice-command-list__ul {
  margin: 0;
  padding: 0 0 0 1em;
  list-style: disc;
}
.voice-command-list__ul li {
  margin: 0.17em 0;
  letter-spacing: 0.01em;
  font-size: 1.01em;
}
.voice-command-list__ul code {
  background: rgba(255,255,255,0.09);
  border-radius: .4em;
  padding: 0.09em 0.45em;
  font-size: .97em;
  font-family: inherit;
}

@media (max-width: 540px) {
  .voice-mic {
    width: 66px;
    height: 66px;
    bottom: 50px;
    right: 16px;
  }
  .voice-mic .mic-img { width: 38px; height: 38px; }
  .voice-command-list {
    padding: 0.65em 1em 0.85em 1em;
    min-width: 120px;
    font-size: 0.99em;
    bottom: 85px;
    right: 12px;
    border-radius: 0.85em;
  }
}