/* Motion across the apps (the couples' planner, the planner portal, the vendor space and the console): the design system's motion. Presses scale to
   .97 in 100ms; things that appear rise and fade on the default spring (~0.35s, no overshoot); sheets and dialogs scale in from .98 over a
   fading backdrop; the bell's rows settle in a short stagger. Everything is
   :where() (no specificity), so a screen's own rule always wins. prefers-reduced-motion: a 200ms cross-fade at most, no slides or scale. */
:root{--spring:cubic-bezier(.22,.8,.26,1);--t-press:100ms;--t-in:.35s}

@media (prefers-reduced-motion:no-preference){
  /* press: buttons, links styled as buttons, tiles and rows */
  :where(button,.btn,a.btn,[role=button],.hm-tile,.li[data-t],.card[data-t]):where(:not(:disabled,[aria-disabled=true])){transition:transform var(--t-press) ease-out,background-color .2s,border-color .2s,box-shadow .25s,color .2s,opacity .2s}
  :where(button,.btn,a.btn,[role=button],.hm-tile,.li[data-t],.card[data-t]):where(:not(:disabled,[aria-disabled=true])):where(:active){transform:scale(.97)}
  :where(.npanel .nitem):active{transform:none}

  /* dialogs and sheets: in from .98 with the backdrop fading (open and close, where the browser animates display) */
  :where(dialog[open]){animation:fl-pop var(--t-in) var(--spring)}
  :where(dialog[open])::backdrop{animation:fl-fade .3s ease-out}
  @media (max-width:859px){:where(dialog.sheet[open],dialog.sph[open],dialog.sphd[open]){animation:fl-up .38s var(--spring)}}

  /* the bell's panel, the account menu and popovers: drop in from where they open */
  :where(.npanel:not([hidden]),.acctm:not([hidden]),#acctm:not([hidden]),.pop:not([hidden])){animation:fl-drop .28s var(--spring);transform-origin:top right}
  /* toasts and the install card: up from the bottom edge */
  :where(.ntoast:not([hidden]),.ninst){animation:fl-toast .38s var(--spring)}
  /* the bell's badge when its count changes (notify.js adds .bump) */
  :where(.nbadge.bump){animation:bump .45s var(--spring)}
  /* the bell's rows as the panel opens (notify.js adds .nfresh for a moment; a refresh while it is open never replays it): a short stagger */
  :where(.npanel.nfresh .ngrp>*){animation:fl-rise .32s var(--spring) backwards}
  :where(.npanel.nfresh .ngrp>*:nth-child(2)){animation-delay:30ms}:where(.npanel.nfresh .ngrp>*:nth-child(3)){animation-delay:60ms}:where(.npanel.nfresh .ngrp>*:nth-child(4)){animation-delay:90ms}:where(.npanel.nfresh .ngrp>*:nth-child(n+5)){animation-delay:120ms}
  :where(.nbun-b:not([hidden])){animation:fl-open .3s var(--spring)}
  /* a card dismissed with its ×: out before Home redraws */
  :where(.hm-wait.out){animation:fl-out .22s ease-in forwards}
  /* focus rings glide instead of jumping */
  :where(:focus-visible){transition:outline-offset .15s ease-out}
}
@media (prefers-reduced-motion:reduce){
  :where(dialog[open],.npanel:not([hidden]),.ntoast:not([hidden]),.hm-wait){animation:fl-fade .2s ease-out}
}

@keyframes fl-fade{from{opacity:0}}
@keyframes fl-pop{from{opacity:0;transform:scale(.98)}}
@keyframes fl-up{from{opacity:.6;transform:translateY(40px)}}
@keyframes fl-drop{from{opacity:0;transform:translateY(-8px)}}
@keyframes fl-toast{from{opacity:0;translate:0 16px}}
@keyframes fl-rise{from{opacity:0;transform:translateY(8px)}}
@keyframes fl-open{from{opacity:0;transform:translateY(-4px)}}
@keyframes fl-out{to{opacity:0;transform:translateY(-6px) scale(.98)}}

/* Home's "waiting on you" card (public/couple.js waitCard): an icon, two lines, its one action, and a quiet × in the corner */
.hm-wait{position:relative;display:flex;align-items:center;gap:12px;margin:0 0 12px;padding:14px 14px 14px 14px;border-radius:14px;background:var(--surface);border:1px solid var(--line)}
.hm-wic{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--ui-tinted,var(--soft));color:var(--accent-ink)}
.hm-wic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.hm-wtx{flex:1;min-width:0;display:grid;gap:2px;padding-right:34px}
.hm-wtx b{color:var(--ink);font-weight:600;font-size:.95rem;line-height:1.3}
.hm-wtx span{color:var(--mute);font-size:.84rem;line-height:1.3}
html body .card.hm-wait .hm-wgo{flex:none;min-height:36px;padding:.35rem .95rem;font-size:.86rem;border-radius:999px}
html body #app .card.hm-wait>button.hm-wx,html body .card.hm-wait>button.hm-wx{position:absolute;top:0;right:0;width:44px;height:44px;min-height:44px;padding:0;border:0;background:none;color:var(--mute);font-size:1.05rem;line-height:1;border-radius:50%}
html body #app .card.hm-wait>button.hm-wx:hover,html body .card.hm-wait>button.hm-wx:hover{background:var(--soft);color:var(--ink)}
html body #app .card.hm-wait>button.hm-wx{background:none}
@media (max-width:420px){html body .card.hm-wait{display:grid;grid-template-columns:40px 1fr;row-gap:10px}html body .card.hm-wait .hm-wgo{grid-column:2;justify-self:start;min-height:40px}}
