.live-tts-widget {
  margin-top: 10px;
}

.live-tts-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.live-tts-controls-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
}

.live-tts-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.live-tts-field--language {
  flex: 0.95;
}

.live-tts-field--mode {
  flex: 1.35;
}

.live-tts-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.live-tts-select {
  width: 100%;
  height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.live-tts-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(31, 122, 140, 0.14);
}

.live-tts-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  background: var(--bg);
}

.live-tts-mode-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.live-tts-mode-button:hover {
  color: var(--text);
}

.live-tts-mode-button.active {
  background: var(--accent);
  color: #ffffff;
}

.live-tts-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

@media (max-width: 900px) {
  .live-tts-controls-row {
    gap: 6px;
  }

  .live-tts-field--language {
    flex: 1;
  }

  .live-tts-field--mode {
    flex: 1;
  }

  .live-tts-select,
  .live-tts-mode-toggle {
    height: 30px;
  }

  .live-tts-mode-button {
    font-size: 0.8rem;
    padding: 0 4px;
  }
}
