.voice-settings__toggle {
  display: flex;
  min-height: 32px;
  align-items: center;
  color: var(--text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  gap: 7px;
}

.voice-settings__toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.voice-settings__selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.voice-settings__selects .field select {
  width: 100%;
}

.voice-settings__profiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.voice-exchange-profile {
  display: grid;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: color-mix(in srgb, var(--surface-alt) 88%, var(--surface));
  gap: 7px;
}

.voice-exchange-profile__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.voice-exchange-profile__title {
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.voice-exchange-profile__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 7px;
}

.voice-exchange-profile__controls .field,
.voice-exchange-profile__controls select {
  min-width: 0;
  width: 100%;
}

.voice-exchange-profile__preview {
  min-height: 32px;
  white-space: nowrap;
}

.voice-exchange-profile__previews {
  display: flex;
  gap: 5px;
}

.voice-settings__ranges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.voice-range {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.voice-range__label {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  gap: 4px;
  text-transform: uppercase;
}

.voice-range output {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: none;
}

.voice-range input[type="range"] {
  width: 100%;
  min-height: 24px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.voice-settings__support {
  min-height: 14px;
}

.voice-settings__runtime {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.voice-settings__activate {
  flex: 0 0 auto;
}

.voice-audio-activate {
  flex: 0 0 auto;
  pointer-events: auto;
  color: #e8ad3a;
  border-color: color-mix(in srgb, currentColor 58%, transparent);
  animation: voice-audio-attention 1.4s ease-in-out infinite;
}

@keyframes voice-audio-attention {
  0%, 100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 0%, transparent);
  }

  50% {
    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
  }
}

@media (max-width: 430px) {
  .voice-settings__selects,
  .voice-settings__profiles,
  .voice-settings__ranges {
    grid-template-columns: 1fr;
  }

  .voice-exchange-profile__controls {
    grid-template-columns: 1fr;
  }
}
