.voice-search-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 5px;
}

.voice-search-shell .search {
  min-width: 0;
  margin: 0;
}

.voice-search-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  min-height: 48px;
  padding: 0;
  border: 1px solid rgba(118, 239, 231, 0.32);
  border-radius: 15px;
  color: #dffefa;
  background: linear-gradient(145deg, rgba(18, 53, 61, 0.94), rgba(7, 24, 31, 0.96));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.voice-search-button svg {
  width: 22px;
  height: 22px;
  overflow: visible;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.voice-search-button svg path:first-child { stroke: none; }
.voice-search-button:active { transform: scale(0.94); }

.voice-search-button:focus-visible {
  outline: 2px solid #77f2e9;
  outline-offset: 2px;
}

.voice-search-button.is-listening {
  color: #fff;
  border-color: rgba(255, 112, 126, 0.85);
  background: linear-gradient(145deg, #a9283b, #5e1422);
  animation: voice-listening-pulse 1.15s ease-in-out infinite;
}

.voice-search-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.voice-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.voice-search-status {
  min-height: 20px;
  margin: 0 4px 7px;
  color: rgba(211, 239, 239, 0.72);
  font-size: 11.5px;
  line-height: 1.55;
  text-align: right;
}

@keyframes voice-listening-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 83, 103, 0.28); }
  50% { box-shadow: 0 0 0 7px rgba(255, 83, 103, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .voice-search-button.is-listening { animation: none; }
}
