/* Keep the foreground dots readable even during overlapping dim phases and
 * positive phase delays. Duration, easing and per-dot delay remain shared. */
@keyframes ai-typing-indicator-chase {
  0%,
  60%,
  100% {
    opacity: 0.6;
  }
  30% {
    opacity: 1;
  }
}

[data-slot="ai-typing-indicator"] .ai-typing-dot {
  opacity: 0.6;
}

@media (prefers-reduced-motion: no-preference) {
  [data-slot="ai-typing-indicator"] .ai-typing-dot {
    animation-name: ai-typing-indicator-chase;
  }
}
@keyframes ai-scroll-button-arrival {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.ai-scroll-button-arrival {
  animation: ai-scroll-button-arrival 140ms
    var(--ease-decelerate, cubic-bezier(0, 0, 0.2, 1));
}

@media (prefers-reduced-motion: reduce) {
  .ai-scroll-button-arrival {
    animation: none;
  }
}
@keyframes ai-context-indicator-dot-chase {
  0%,
  100% {
    opacity: 0.87;
  }

  33.333% {
    opacity: 0.25;
  }

  66.667% {
    opacity: 0.5;
  }
}

.ai-context-indicator-dot {
  animation: ai-context-indicator-dot-chase 1200ms linear infinite;
}

.ai-context-indicator-dot:nth-of-type(1) {
  opacity: 0.87;
}

.ai-context-indicator-dot:nth-of-type(2) {
  opacity: 0.5;
  animation-delay: -800ms;
}

.ai-context-indicator-dot:nth-of-type(3) {
  opacity: 0.25;
  animation-delay: -400ms;
}

@keyframes ai-context-indicator-check-fade {
  from {
    opacity: 0;
  }
}

.ai-context-indicator-check-fade {
  animation: ai-context-indicator-check-fade var(--motion-duration-fast, 120ms)
    ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .ai-context-indicator-dot,
  .ai-context-indicator-check-fade {
    animation: none;
  }
}
/* Fill expands left->right, empties from left, expands right->left, empties from right.
 * Uses left/right to resize the container so inner rounded-full elements form concentric ovals.
 * Layout cost is negligible: element is absolute-positioned with will-change, subtree is 3 nodes.
 * translateX offsets push the ovals off-screen at the start/end of each phase.
 * MOT-323: this is the only loader motion; label, timer and container never animate. */
@keyframes thinking-grow-empty {
  0% {
    left: 0;
    right: 100%;
    transform: translateX(-80px);
  }
  25% {
    left: 0;
    right: 0;
    transform: translateX(0);
  }
  50% {
    left: 100%;
    right: 0;
    transform: translateX(80px);
  }
  75% {
    left: 0;
    right: 0;
    transform: translateX(0);
  }
  100% {
    left: 0;
    right: 100%;
    transform: translateX(-80px);
  }
}
/*$vite$:1*/