.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;
}

.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;
}

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

  50% {
    opacity: 1;
  }
}
