.speech-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}

.speech-trigger-btn--ghost {
  background: #f8fafc;
}

.speech-trigger-btn--icon {
  padding: 0.25rem;
  border-radius: 0.55rem;
}

.speech-trigger-btn__icon {
  width: 1rem;
  height: 1rem;
}

.speech-trigger-btn--icon .speech-trigger-btn__icon {
  width: 0.9rem;
  height: 0.9rem;
}

.speech-input__card {
  max-width: 960px;
  width: 90vw;
}

.speech-input__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.speech-input__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.speech-input__toggle {
  position: relative;
  overflow: hidden;
}

.speech-input__wave-wrap {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  opacity: 0.35;
  display: block;
}

.speech-input__toggle-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.speech-input__target {
  font-size: 0.85rem;
  color: #4b5563;
}

.speech-input__status {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.speech-input__status[data-tone="error"] {
  color: #b91c1c;
}

.speech-input__status[data-tone="success"] {
  color: #15803d;
}

.speech-input__status[data-tone="recording"] {
  color: #b45309;
}

.speech-input__wave {
  width: 100%;
  height: 36px;
  display: block;
}

.speech-input__fields {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.speech-input__fields textarea {
  width: 100%;
  min-height: 280px;
}

.speech-input__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.speech-input__actions-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.speech-input__hint {
  font-size: 0.8rem;
  color: #6b7280;
}

.speech-input__translate-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #374151;
}

.speech-preprompt__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.speech-preprompt__body textarea {
  min-height: 180px;
}
