/* Enkart motion base, shared by the Enkart panel and Ekonomize (01/11, option A approved by Luiz):
   three speeds, one curve, and the line-drawn flyer that builds itself while the server works.
   Only stroke offsets, transforms and opacity move, and everything stops under reduced motion. */
:root{--mv-fast:140ms;--mv-base:240ms;--mv-slow:420ms;--mv-ease:cubic-bezier(.2,.7,.2,1);--mv-ease-out:cubic-bezier(.16,1,.3,1)}

/* Waiting area: empty for the first 0.3 s, then the flyer at one size until the answer comes. */
.mv-wait{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:32px 16px;text-align:center;color:inherit}
.mv-wait[data-stage="quiet"]{visibility:hidden}
.mv-wait-text{font-size:14px;line-height:1.5;max-width:36ch}

/* The flyer: one colour (the text colour around it), lines only. */
.mv-flyer{display:block;flex:none;color:inherit;overflow:visible}
.mv-flyer .mv-d{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1}
.mv-flyer .mv-thin{stroke-width:1}
.mv-flyer.mv-small .mv-d,.mv-flyer.mv-small .mv-pin{stroke-width:7}
.mv-in-button .mv-flyer.mv-small .mv-d,.mv-in-button .mv-flyer.mv-small .mv-pin{stroke-width:10}
.mv-flyer .mv-pin{fill:var(--mv-pin-fill,#fff);stroke:currentColor;stroke-width:1.5;transform:scale(0);transform-box:fill-box;transform-origin:center}
.mv-flyer.mv-run .mv-d{stroke-dashoffset:0;transition:stroke-dashoffset .5s cubic-bezier(.4,0,.2,1) calc(var(--mv-i,0) * 110ms)}
.mv-flyer.mv-run .mv-pin{transform:scale(1);transition:transform .28s cubic-bezier(.3,1.7,.5,1) calc(var(--mv-i,0) * 110ms + 380ms)}
.mv-flyer.mv-out{opacity:0;transition:opacity .35s ease}

/* Inside a button that is sending something. */
.mv-in-button{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.mv-in-button .mv-flyer{width:15px;height:20px}

/* A screen coming in (enter() in motion.js): forward from the right, back from the left, tabs fading. */
.mv-enter-fwd{animation:mv-in-fwd var(--mv-slow) var(--mv-ease-out)}
.mv-enter-back{animation:mv-in-back var(--mv-slow) var(--mv-ease-out)}
.mv-enter-fade{animation:mv-in-fade var(--mv-base) var(--mv-ease)}
@keyframes mv-in-fwd{from{opacity:0;transform:translateX(28px)}to{opacity:1;transform:none}}
@keyframes mv-in-back{from{opacity:0;transform:translateX(-28px)}to{opacity:1;transform:none}}
@keyframes mv-in-fade{from{opacity:0}to{opacity:1}}

@media (prefers-reduced-motion:reduce){
  .mv-enter-fwd,.mv-enter-back,.mv-enter-fade{animation:none}
  .mv-flyer .mv-d{stroke-dashoffset:0;transition:none!important}
  .mv-flyer .mv-pin{transform:scale(1);transition:none!important}
  .mv-flyer.mv-out{opacity:1;transition:none}
}
