/* motion.css - every keyframe of the client pages, plus the reduced-motion switch. One-shot entrances and short loops only. */
@keyframes rise{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes dpop{from{opacity:0;transform:translateY(-14px) scale(.96)}to{opacity:1;transform:none}}
@keyframes pop{0%{transform:scale(.4)}60%{transform:scale(1.3)}100%{transform:scale(1)}}
@keyframes shake{20%{transform:translateX(-5px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(3px)}}
@keyframes slidein{from{opacity:0;transform:translateX(-10px)}}
@keyframes toast{from{opacity:0;transform:translateY(18px) scale(.96)}to{opacity:1;transform:none}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes ripple{to{transform:scale(1);opacity:0}}
@keyframes fldpulse{0%{box-shadow:0 0 0 0 var(--glow)}100%{box-shadow:0 0 0 12px transparent}}
@keyframes sweep{0%{transform:translateX(-130%) skewX(-18deg)}100%{transform:translateX(230%) skewX(-18deg)}}
@keyframes okflash{0%{box-shadow:0 0 0 0 rgba(23,128,61,.55)}100%{box-shadow:0 0 0 14px rgba(23,128,61,0)}}
@keyframes grow{from{transform:scaleX(0)}}
@keyframes stripe{to{background-position:28px 0}}

/* page entrance: the children of main rise one after another (no filter, no lingering transform) */
main>*{animation:rise .5s var(--ease) backwards}
main>*:nth-child(2){animation-delay:.05s}main>*:nth-child(3){animation-delay:.1s}main>*:nth-child(4){animation-delay:.15s}
main>*:nth-child(5){animation-delay:.2s}main>*:nth-child(n+6){animation-delay:.25s}
.top{animation:fade .4s ease backwards}
.todo,.fileli,.card.in,.dtable tbody tr{animation:slidein .4s var(--ease) backwards}
.todo:nth-child(2),.dtable tbody tr:nth-child(2){animation-delay:.05s}.todo:nth-child(3),.dtable tbody tr:nth-child(3){animation-delay:.1s}
.todo:nth-child(4),.dtable tbody tr:nth-child(4){animation-delay:.15s}.todo:nth-child(n+5),.dtable tbody tr:nth-child(n+5){animation-delay:.2s}
.pill{animation:pop .35s var(--spring) backwards}
.err,.okmsg,.info{animation:shake .4s ease,fade .25s ease}
.okmsg,.info{animation:fade .3s ease}
.empty .ic.big{animation:pop .5s var(--spring) backwards .1s}
.fld:not(.plain):not(.done){animation:fldpulse 1.6s ease-out 3}
.btn.busy .ic{animation:spin .7s linear infinite}
.btn.ok{animation:okflash .6s ease-out}
.btn.ok .ic{animation:pop .5s var(--spring)}
.ripple{position:absolute;border-radius:50%;background:currentColor;opacity:.25;transform:scale(0);pointer-events:none;animation:ripple .6s ease-out forwards}
dialog[open]{animation:dpop .28s var(--ease)}
dialog[open]::backdrop{animation:fade .25s ease}
.toast{animation:toast .3s var(--spring)}

@media (prefers-reduced-motion:reduce){
 *,*::before,*::after{animation-duration:.001ms!important;animation-delay:0s!important;animation-iteration-count:1!important;transition-duration:.001ms!important;transition-delay:0s!important;scroll-behavior:auto!important}
}
