/* Motion for the CLI view. Kept in its own sheet so the terminal palette and
   layout rules in cli-view.css stay flat declarations only.
   Blink and spin are opt-in: they run only when reduced motion is off. */

@media (prefers-reduced-motion: no-preference) {
  :root[data-view="cli"] .cli-prompt:not(.is-focused) .cli-caret {
    display: block;
    animation: cli-caret-blink 1.1s steps(1) infinite;
  }

  :root[data-view="cli"] .cli-live-caret {
    animation: cli-caret-blink 1s steps(1) infinite;
  }

  :root[data-view="cli"] .cli-spinner {
    animation: cli-spin 1.1s linear infinite;
  }
}

@keyframes cli-caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes cli-spin {
  to { transform: rotate(360deg); }
}
