/* Quiet, local feedback. Loaded after the legacy interaction styles. */
:root {
  --motion-quick: 100ms;
  --motion-enter: 180ms;
  --motion-settle: cubic-bezier(.2,.75,.25,1);
}
@media (prefers-reduced-motion: no-preference) {
  body.site-shell main form .button:not(:disabled):not([aria-disabled="true"]):active {
    transform: scale(.985);
    transition: transform var(--motion-quick) var(--motion-settle);
  }
  /* One entrance, no looping or per-message stagger. Layout is already final. */
  body.site-shell .flash-stack .flash:not(.is-dismissing) {
    animation: csm-notice-appear var(--motion-enter) var(--motion-settle) both;
  }
  body.site-shell .flash-stack .flash {
    transition: opacity 140ms ease, transform 140ms var(--motion-settle);
  }
  body.site-shell .flash-stack .flash.is-dismissing {
    transform: translateY(4px);
    filter: none;
  }
}
@keyframes csm-notice-appear {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  body.site-shell main form .button:not(:disabled):not([aria-disabled="true"]):active {
    transform: none;
    transition: none;
  }
  body.site-shell .flash-stack .flash {
    animation: none !important;
    transition: none !important;
  }
  body.site-shell .flash-stack .flash.is-dismissing {
    transform: none !important;
    filter: none !important;
  }
}
