@media (forced-colors: none) {
  html:root .vai-shell.vai-shell--focused.vai-shell--glass .vai-composer.vai-composer--capsule {
    background: #1f1f1f;
    border: 1px solid #41434a;
    border-radius: 32px;
    box-shadow: 0 -8px 52px -9px color-mix(in srgb, var(--vai-aura-primary, #678fff) 25%, transparent);
  }
  html:root .vai-shell.vai-shell--focused.vai-shell--glass .vai-composer.vai-composer--capsule textarea {
    background: transparent;
    color: #f3f4fa;
    caret-color: #a8beff;
  }
  html:root .vai-shell.vai-shell--focused.vai-shell--glass :is(.vai-drawer[open], .vai-message-options[open] > div),
  html:root .app-shell #sidebar.open {
    background: #1f1f1f;
  }
  html:root .vai-shell.vai-shell--focused.vai-shell--glass .vai-chat,
  html:root .vai-voice-surface,
  html:root .vad-demo {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #000;
  }
  html:root .vai-shell.vai-shell--focused.vai-shell--glass .vai-messages {
    background-color: transparent;
  }
}

/* The light belongs to the viewport. Scrolling the transcript leaves it in place. */
@media screen and (forced-colors: none) and (not (prefers-reduced-transparency: reduce)) {
  :is(.vai-shell--glass .vai-chat, .vai-voice-surface, .vad-demo)::before,
  :is(.vai-shell--glass .vai-chat, .vai-voice-surface, .vad-demo)::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
    inset: -12% -12% 19%;
    transform-origin: 50% 25%;
  }
  :is(.vai-shell--glass .vai-chat, .vai-voice-surface, .vad-demo)::before {
    background:
      radial-gradient(ellipse 60% 47% at 69% 23%, color-mix(in srgb, var(--vai-aura-primary, #678fff) 43%, transparent), transparent 100%),
      radial-gradient(ellipse 51% 38% at 18% 16%, color-mix(in srgb, var(--vai-aura-secondary, #5574d1) 34%, transparent), transparent 100%);
  }
  :is(.vai-shell--glass .vai-chat, .vai-voice-surface, .vad-demo)::after {
    inset: -9% -12% 14%;
    background:
      radial-gradient(ellipse 58% 38% at 46% 2%, transparent 19%, color-mix(in srgb, var(--vai-aura-accent, #879fff) 20%, transparent) 62%, transparent 100%),
      radial-gradient(ellipse 39% 42% at 29% 42%, color-mix(in srgb, var(--vai-aura-primary, #678fff) 15%, transparent), transparent);
  }
  @media (prefers-reduced-motion: no-preference) {
    :is(.vai-shell--glass .vai-chat, .vai-voice-surface, .vad-demo)::before {
      animation: vai-wave-swell 10s ease-in-out infinite alternate;
    }
    :is(.vai-shell--glass .vai-chat, .vai-voice-surface, .vad-demo)::after {
      animation: vai-wave-return 8s -3s ease-in-out infinite alternate;
    }
    .vad-demo:is(.vad-paused, [data-stage="complete"])::before,
    .vad-demo:is(.vad-paused, [data-stage="complete"])::after {
      animation-play-state: paused;
    }
  }
}

@keyframes vai-wave-swell {
  from { transform: translate3d(-4%, -3%, 0) rotate(-4deg) scale(1.02); }
  to { transform: translate3d(5%, 6%, 0) rotate(4deg) scale(1.09, 1.04); }
}
@keyframes vai-wave-return {
  from { transform: translate3d(6%, -2%, 0) rotate(6deg); opacity: .7; }
  to { transform: translate3d(-5%, 5%, 0) rotate(-5deg); opacity: 1; }
}
