/* Global base styles: keep minimal (reset + tokens only). */

:root {
  color-scheme: light;
}

html, body {
  margin: 0;
  padding: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button, input, select, textarea {
  font: inherit;
}

/* === AudioLeadWidget animations (extracted from Svelte <style> to fix Vite parse error) === */
@keyframes gentle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--audio-lead-pulse-rgb, 124, 58, 237), 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(var(--audio-lead-pulse-rgb, 124, 58, 237), 0); }
}
@keyframes recording-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes recording-wave {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.25); opacity: 0; }
}
.widget-pulse {
  animation: gentle-pulse 2s ease-in-out infinite;
}
.audio-lead-island,
.audio-lead-glass-panel {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.audio-lead-island {
  color: var(--audio-lead-accent, #7c3aed);
}
.audio-lead-mic-chip {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.recording-send-button {
  position: relative;
  isolation: isolate;
}
.recording-send-button::before,
.recording-send-button::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 9999px;
  pointer-events: none;
}
.recording-send-button::before {
  border: 1px solid rgba(var(--audio-lead-pulse-rgb, 124, 58, 237), 0.18);
  border-top-color: rgba(var(--audio-lead-pulse-rgb, 124, 58, 237), 0.6);
  animation: recording-orbit 2s linear infinite;
}
.recording-send-button::after {
  border: 1px solid rgba(var(--audio-lead-pulse-rgb, 124, 58, 237), 0.45);
  animation: recording-wave 1.6s ease-out infinite;
}
@media (prefers-color-scheme: dark) {
  .audio-lead-island,
  .audio-lead-glass-panel {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
  }
}
