.leoRealtimeBox {
  width: min(520px, 100%);
  margin: 16px auto 8px;
  padding: 14px;
  border: 1px solid rgba(0, 190, 255, 0.35);
  border-radius: 18px;
  text-align: center;
}

.leoRealtimeControls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.leoRealtimePrimaryControl {
  display: grid;
  width: min(420px, 100%);
  margin: 0 auto;
}

.leoRealtimePrimaryButton {
  grid-area: 1 / 1;
  width: 100%;
  min-width: 0;
  min-height: 62px;
}

.leoRealtimeStopButton {
  background: linear-gradient(135deg, #a92447, #e24968);
  box-shadow: 0 0 26px rgba(226, 73, 104, 0.28);
}

.leoRealtimePrimaryButton[hidden] {
  display: none;
}

.leoRealtimeHint {
  margin: 0 0 12px;
  opacity: 0.8;
  line-height: 1.4;
}

#realtimeState {
  margin-top: 12px;
  min-height: 24px;
}

#realtimeState[data-state="listening"] {
  font-weight: 700;
}

#realtimeState[data-state="thinking"] {
  animation: leoRealtimePulse 1.1s infinite;
}

#realtimeState[data-state="speaking"] {
  font-weight: 700;
}

#realtimeState[data-state="error"] {
  font-weight: 700;
}

.leoRealtimePrivacyState {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(0, 229, 255, 0.38);
  border-radius: 999px;
  color: #d7f8ff;
  background: rgba(0, 126, 167, 0.2);
  font-size: 0.82rem;
  line-height: 1.25;
}

.leoRealtimePrivacyState::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #19f59b;
  box-shadow: 0 0 10px rgba(25, 245, 155, 0.85);
  content: "";
}

.leoRealtimePrivacyState[hidden] {
  display: none;
}

@keyframes leoRealtimePulse {
  0%, 100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}
