.voice-button.voice-input-enhanced {
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 88px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid rgba(82, 98, 91, 0.24);
  border-radius: 999px;
  color: #29483a;
  background: #ffffff;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out;
}

.voice-button.voice-input-enhanced svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.voice-button.voice-input-enhanced:hover:not(:disabled) {
  border-color: #84968b;
  background: #f2f5f2;
}

.voice-button.voice-input-enhanced:focus-visible {
  outline: 3px solid rgba(41, 72, 58, 0.22);
  outline-offset: 2px;
}

.voice-button.voice-input-enhanced.is-listening {
  border-color: #29483a;
  color: #ffffff;
  background: #29483a;
}

.voice-button.voice-input-enhanced.is-transcribing {
  cursor: progress;
  color: #29483a;
  background: #e9eeea;
}

.voice-input-status {
  min-height: 20px;
  margin: 8px 2px 0;
  color: #596861;
  font-size: 13px;
  line-height: 1.5;
}

.voice-input-status[data-kind="active"] {
  color: #29483a;
  font-weight: 650;
}

.voice-input-status[data-kind="success"] {
  color: #355f4b;
}

.voice-input-status[data-kind="muted"] {
  color: #4f5c56;
}

@media (max-width: 720px) {
  .voice-button.voice-input-enhanced,
  .voice-button.voice-input-enhanced:not(.is-listening) {
    right: 8px;
    bottom: 8px;
    width: auto;
    min-width: 76px;
    height: 44px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(82, 98, 91, 0.24);
    border-radius: 999px;
    font-size: 12px;
    overflow: visible;
  }

  .voice-button.voice-input-enhanced::before,
  .voice-button.voice-input-enhanced:not(.is-listening)::before {
    display: none;
    content: none;
  }

  .voice-button.voice-input-enhanced svg {
    width: 20px;
    height: 20px;
  }

  .voice-button.voice-input-enhanced.is-listening {
    color: #ffffff;
    background: #29483a;
  }

  .voice-input-status {
    margin-top: 7px;
    padding: 0 2px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voice-button.voice-input-enhanced {
    transition: none;
  }
}
