/* Generated by brand/scripts/build-components.mjs from brand/components/. Do not edit. Load public/tokens/tokens.css first. */

/* Motion (nuevauno/nu#315): only what changes moves. A new row comes in and keeps a soft orange for a moment, a panel
   slides from the side, a saved check snaps. Durations and curves come from the motion tokens; with reduced motion
   nothing moves and the result is shown at once. */
.nu-new {
  animation:
    nu-new-in var(--nu-motion-base) var(--nu-motion-ease-out) both,
    nu-new-fade calc(var(--nu-motion-count) + var(--nu-motion-slow)) var(--nu-motion-base) var(--nu-motion-ease-in-out) both;
}

.nu-slide-in {
  animation: nu-slide-in var(--nu-motion-slow) var(--nu-motion-ease-out) both;
}

.nu-fade-in {
  animation: nu-fade-in var(--nu-motion-base) var(--nu-motion-ease-out) both;
}

.nu-saved {
  display: inline-flex;
  align-items: center;
  gap: var(--nu-space-6);
  font-family: var(--nu-font-family-mono);
  font-size: var(--nu-size-label-block);
  color: var(--nu-color-muted);
}

.nu-saved::before {
  width: var(--nu-control-mark);
  height: var(--nu-control-mark);
  flex: none;
  background: var(--nu-color-success);
  content: "";
  animation: nu-saved-snap var(--nu-motion-base) var(--nu-motion-ease-snap) both;
}

@keyframes nu-new-in {
  from { opacity: 0; transform: translateY(calc(-1 * var(--nu-space-6))); background-color: var(--nu-color-accent-soft); }
  to { opacity: 1; transform: none; background-color: var(--nu-color-accent-soft); }
}

@keyframes nu-new-fade {
  from { background-color: var(--nu-color-accent-soft); }
  to { background-color: transparent; }
}

@keyframes nu-slide-in {
  from { opacity: 0; transform: translateX(var(--nu-space-24)); }
  to { opacity: 1; transform: none; }
}

@keyframes nu-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes nu-saved-snap {
  from { transform: scale(0); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nu-new,
  .nu-slide-in,
  .nu-fade-in,
  .nu-saved::before {
    animation: none;
  }
}
