/* Neon Plan · motion follows an action; financial amounts are never tweened. */
:root{
 --np-motion-quick:140ms;
 --np-motion-enter:240ms;
 --np-motion-ease:cubic-bezier(.2,.75,.25,1);
}

/* Replace the older stagger/blur and growing financial bars. The stable #view
   owns entry, so replacing its contents during a normal render cannot replay it. */
#view.enter :is(.hero,.card,.bk,.pgroup,.cc,.sec-title,.sumbar>div,.rangesum),
#view.enter :is(.meter .fill,.bar .fill,.split i,.cc .limbar i){animation:none}
.hero::before,#topNew::after,.dot:not(.off)::after{animation:none}
#topNew::after,.dot:not(.off)::after{opacity:0}

@media(prefers-reduced-motion:no-preference){
 #view.enter{animation:npMotionPage var(--np-motion-enter) var(--np-motion-ease)}

 /* Individual translate leaves existing chart, toast and close transforms intact. */
 #drawerSlot .drawer:not(.closing){animation:npMotionDrawer var(--np-motion-enter) var(--np-motion-ease)!important}
 #drawerSlot>.scrim,.sheet-scrim,.wz-over{animation:npMotionFade 160ms ease-out}
 #menuSlot .np-menu.pop,.np-date-popover{animation:npMotionSurface 180ms var(--np-motion-ease)}
 #moreSlot .sheet:not(.closing),#menuSlot .sheet:not(.closing){animation:npMotionSheet var(--np-motion-enter) var(--np-motion-ease)}
 #wizSlot .cfbox{animation:npMotionSurface 180ms var(--np-motion-ease)}
 #toastSlot .toast{animation:npMotionSurface 180ms var(--np-motion-ease)}
 .np-hf-point-tip,.np-chart-tooltip{animation:npMotionFade 110ms ease-out}

 :is(.btn,.iconbtn,.np-action-trigger,.np-drawer-back,.np-profile-menu>button,.np-menu .mi,.np-proj-month){
  transition:background-color var(--np-motion-quick) ease,border-color var(--np-motion-quick) ease,color var(--np-motion-quick) ease,box-shadow var(--np-motion-quick) ease,translate var(--np-motion-quick) var(--np-motion-ease);
 }
 :is(.btn,.iconbtn,.np-action-trigger,.np-drawer-back,.np-proj-month):active:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]){translate:0 1px}
 .np-credit-tile,.np-pot-card,.np-bank-account{transition:border-color 180ms ease,box-shadow 180ms ease}
 .np-credit-tile:focus-within,.np-pot-card:focus-within,.np-bank-account:focus-within{box-shadow:0 0 0 1px color-mix(in srgb,var(--peak,#00bc77) 22%,transparent)}
 .np-profile-menu>button>.i:last-child,.np-hf-card-head button>.i:last-child{transition:translate var(--np-motion-quick) var(--np-motion-ease)}

 @media(hover:hover) and (pointer:fine){
  .np-credit-tile:hover,.np-pot-card:hover,.np-bank-account:hover{box-shadow:0 6px 20px -14px color-mix(in srgb,var(--ink,#0b0e0d) 45%,transparent)}
  .np-profile-menu>button:hover>.i:last-child,.np-hf-card-head button:hover>.i:last-child{translate:2px 0}
 }
 @media(max-width:760px){
  #drawerSlot .drawer:not(.closing){animation-name:npMotionSheet!important}
 }
}

@keyframes npMotionPage{from{opacity:.88;translate:0 6px}to{opacity:1;translate:none}}
@keyframes npMotionDrawer{from{opacity:.8;translate:14px 0}to{opacity:1;translate:none}}
@keyframes npMotionSheet{from{opacity:.8;translate:0 14px}to{opacity:1;translate:none}}
@keyframes npMotionSurface{from{opacity:.7;translate:0 5px}to{opacity:1;translate:none}}
@keyframes npMotionFade{from{opacity:.25}to{opacity:1}}

/* Include generated icon layers and native scrolling; never hide feedback. */
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after,#drawerSlot .drawer{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
