/*
 * Andy Web Service client area motion, second version (2026-11-29), in the motion language of the
 * 「台」 bento console (auth.shota.sg): hardware-panel springs, tiles that click into their slots,
 * split-flap digits, a scan beam, tile pings, circular reveals.
 * Loaded by includes/hooks/andy_motion.php only while the motion2 gate is on (cookie
 * andy_motion_preview=1 or includes/hooks/andy_motion2.LIVE); it then replaces andy-motion.css.
 * Behaviour: templates/lagom2/andy/andy-motion2.js (+ the small inline boot in andy_motion.php).
 * Everything is scoped to html.aw-m2. html.aw-calm = the visitor asked for reduced motion: only fades remain.
 */

/* ---------- vocabulary (same names as the bento console's motion.ts / Motion UI theme) ----------
   snap 0.15 s critically damped (1200/70): presses, toggles, segment indicators
   ui 0.30 s critically damped (320/34): rows, form items, popover contents (default)
   gentle 0.50 s slight overshoot (240/27): large surface morphs, grid reflow
   lively 0.30 s clear bounce (420/25): landing and celebration, flip digits, checks
   ambient 0.80 s (43/13): breathing, scanning, status lights
   -spring = the spring compiled to linear() by Motion's own generator; -spring-duration = its settle time. */
html.aw-m2 {
  --motion-ui-transition-snap: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-ui-transition-snap-duration: 0.15s;
  --motion-ui-transition-snap-spring: linear(0, 0.0506, 0.161, 0.2904, 0.4172, 0.5314, 0.6291, 0.71, 0.7755, 0.8275, 0.8683, 0.9, 0.9244, 0.9431, 0.9573, 0.968, 0.9761, 0.9822, 0.9868, 0.9902, 0.9927, 0.9946, 0.996, 0.997, 0.9978, 0.9984, 0.9988, 0.9991, 1, 1);
  --motion-ui-transition-snap-spring-duration: 0.3s;
  --motion-ui-transition-ui: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-ui-transition-ui-duration: 0.3s;
  --motion-ui-transition-ui-spring: linear(0, 0.0149, 0.0532, 0.107, 0.1701, 0.2381, 0.3076, 0.3762, 0.4422, 0.5046, 0.5626, 0.6159, 0.6644, 0.7081, 0.7472, 0.782, 0.8126, 0.8396, 0.8632, 0.8837, 0.9014, 0.9167, 0.9299, 0.9412, 0.9508, 0.959, 0.9659, 0.9718, 0.9767, 0.9809, 0.9843, 0.9872, 0.9896, 0.9916, 0.9932, 0.9946, 0.9957, 0.9966, 0.9973, 0.9979, 0.9984, 0.9988, 0.9991, 0.9993, 1);
  --motion-ui-transition-ui-spring-duration: 0.45s;
  --motion-ui-transition-gentle: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-ui-transition-gentle-duration: 0.5s;
  --motion-ui-transition-gentle-spring: linear(0, 0.0115, 0.042, 0.0862, 0.1398, 0.1994, 0.2621, 0.326, 0.3892, 0.4506, 0.5092, 0.5644, 0.6159, 0.6634, 0.7068, 0.7461, 0.7815, 0.8132, 0.8413, 0.8661, 0.8879, 0.9068, 0.9232, 0.9374, 0.9495, 0.9598, 0.9684, 0.9757, 0.9818, 0.9868, 0.9908, 0.9941, 0.9967, 0.9988, 1.0004, 1.0016, 1.0025, 1.0031, 1.0035, 1);
  --motion-ui-transition-gentle-spring-duration: 0.4s;
  --motion-ui-transition-lively: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-ui-transition-lively-duration: 0.3s;
  --motion-ui-transition-lively-spring: linear(0, 0.02, 0.073, 0.1497, 0.2417, 0.3421, 0.4451, 0.5462, 0.642, 0.73, 0.8086, 0.8768, 0.9344, 0.9816, 1.0189, 1.047, 1.0671, 1.08, 1.087, 1.0891, 1.0873, 1.0825, 1.0757, 1.0675, 1.0586, 1.0494, 1.0404, 1.0318, 1.024, 1.017, 1.0109, 1.0058, 1.0016, 0.9983, 0.9958, 0.994, 0.9929, 0.9922, 0.9921, 0.9922, 0.9926, 0.9933, 0.994, 0.9948, 0.9956, 0.9964, 0.9972, 0.9979, 0.9985, 0.999, 0.9995, 0.9999, 1.0002, 1, 1);
  --motion-ui-transition-lively-spring-duration: 0.55s;
  --motion-ui-transition-ambient: cubic-bezier(0.65, 0, 0.35, 1);
  --motion-ui-transition-ambient-duration: 0.8s;
  --motion-ui-stagger-tight: 0.04s;
  --motion-ui-stagger-base: 0.07s;
  --motion-ui-stagger-relaxed: 0.12s;
  --motion-ui-travel-hover: 4px;
  --motion-ui-travel-enter: 20px;
  --motion-ui-travel-section: 40px;
  /* short names used below */
  --m-snap: var(--motion-ui-transition-snap-spring); --m-snap-t: var(--motion-ui-transition-snap-spring-duration);
  --m-ui: var(--motion-ui-transition-ui-spring); --m-ui-t: var(--motion-ui-transition-ui-spring-duration);
  --m-gentle: var(--motion-ui-transition-gentle-spring); --m-gentle-t: var(--motion-ui-transition-gentle-spring-duration);
  --m-lively: var(--motion-ui-transition-lively-spring); --m-lively-t: var(--motion-ui-transition-lively-spring-duration);
  --m-out: cubic-bezier(0.22, 1, 0.36, 1);
  --m-scan: #1062fe;
}

/* ---------- 1. pages: cross-document View Transitions ---------- */
@view-transition { navigation: auto; }
/* 11-29:过渡名只在切换页面期间挂(html.aw-vt-on)。常驻会让 .main-body 自成一层,里面的 Lagom 弹窗被 body 上的遮罩盖住(购物车 Remove 全糊) */
html.aw-m2.aw-vt-on .app-nav { view-transition-name: aw-nav; }
html.aw-m2.aw-vt-on .main-body { view-transition-name: aw-main; }
html.aw-m2::view-transition-group(aw-nav), html.aw-m2::view-transition-old(aw-nav), html.aw-m2::view-transition-new(aw-nav) { animation: none; }
html.aw-m2::view-transition-old(aw-nav) { display: none; }
html.aw-m2::view-transition-group(aw-main) { animation: none; }
/* out, then in: the old page is (nearly) gone before the new one starts, so no frame shows both pages at once */
html.aw-m2::view-transition-old(aw-main) { animation: aw-vt-out 0.12s cubic-bezier(0.4, 0, 1, 1) both; }
html.aw-m2::view-transition-new(aw-main) { animation: aw-vt-in var(--m-ui-t) var(--m-ui) 0.1s both, aw-fade-in 0.2s ease-out 0.1s both; }
html.aw-m2::view-transition-old(root) { animation: aw-fade-out 0.12s ease-in both; }
html.aw-m2::view-transition-new(root) { animation: aw-fade-in 0.2s ease-out 0.1s both; }
@keyframes aw-vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes aw-vt-in { from { transform: translateY(var(--motion-ui-travel-enter)); } }
@keyframes aw-fade-in { from { opacity: 0; } }
@keyframes aw-fade-out { to { opacity: 0; } }
/* nav ink slides to the new item */
html.aw-m2::view-transition-group(aw-ink) { animation-duration: var(--m-gentle-t); animation-timing-function: var(--m-gentle); }
/* shared elements: a row / card morphs into the next page's header (names set just for that navigation) */
html.aw-m2::view-transition-group(aw-hero) { animation-duration: var(--m-ui-t); animation-timing-function: var(--m-ui); }
/* only the new header travels: it starts where the clicked row / card was and slides into place at its own size
   (no stretching, no zoomed text, no two titles on top of each other); the old row leaves with its page */
html.aw-m2::view-transition-old(aw-hero) { display: none; }
html.aw-m2::view-transition-new(aw-hero) { width: auto; height: auto; inset: 0 auto auto 0; animation: aw-fade-in 0.12s ease-out both; }
/* the rest of the page comes in as the header lands, so the travelling title never crosses visible content */
html.aw-m2.aw-vt-hero::view-transition-new(aw-main) { animation-delay: 0.18s; }
/* login → dashboard: no snapshot pairs at all. The new page shows at once under the old one (the login card with
   its check), which fades off the top; the real dashboard tiles start as a miniature of themselves inside the
   card's outline and fly to their slots (inline boot, gentle spring, 70 ms apart, lively landing); the rest of
   the page fades in after them. Nothing is stretched because the tiles only translate and scale uniformly. */
html.aw-m2.aw-vt-shatter :is(.main-body, .aw-ink) { view-transition-name: none !important; }
html.aw-m2.aw-vt-shatter::view-transition-new(root) { animation: none; }
html.aw-m2.aw-vt-shatter::view-transition-old(root) { animation: aw-fade-out 0.12s ease-in both; z-index: 1; }
/* primary CTA: the next page grows out of the clicked button, from blur to focus (vt-grow + vt-focus) */
html.aw-m2.aw-vt-cta { view-transition-name: root; }
html.aw-m2.aw-vt-cta :is(.app-nav, .main-body, .aw-ink, [data-aw-hero]) { view-transition-name: none !important; }
html.aw-m2.aw-vt-cta::view-transition-old(root) { animation: none; }
html.aw-m2.aw-vt-cta::view-transition-new(root) {
  animation: vt-grow 0.7s cubic-bezier(0.22, 1, 0.36, 1) both, vt-focus 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
  box-shadow: 0 0 0 64px var(--vt-edge, oklch(98.2% 0.004 262));
}
@keyframes vt-grow { from { clip-path: circle(0px at var(--vt-x) var(--vt-y)); } to { clip-path: circle(var(--vt-r) at var(--vt-x) var(--vt-y)); } }
@keyframes vt-focus { from { filter: blur(8px); } to { filter: blur(0px); } }
/* no cross-document View Transitions (Safari < 18.2, Firefox): a plain fade-in */
html.aw-m2.aw-novt .main-body { animation: aw-fade-in 0.28s ease-out both; }

/* ---------- 2. header: magic ink, menus, drawer ---------- */
html.aw-m2 .app-nav-menu .menu { position: relative; }
html.aw-m2 .aw-ink { position: absolute; left: 0; bottom: 0; width: 100px; height: 2px; border-radius: 2px 2px 0 0; background: var(--aw-accent); transform-origin: 0 0; transform: translateX(var(--ink-x, 0px)) scaleX(var(--ink-w, 0)); opacity: var(--ink-o, 0); pointer-events: none; view-transition-name: aw-ink; transition: transform var(--m-ui-t) var(--m-ui), opacity 0.18s ease; }
html.aw-m2 .aw-ink.is-hover { transition: transform var(--m-snap-t) var(--m-snap), opacity 0.12s ease; }
html.aw-m2 .aw-ink.aw-ink--still { transition: none; }
html.aw-m2.andy-rd3 .app-nav-menu .menu > li:not(.nav-item-btn) > a::after { display: none; }
@media (max-width: 1198px) { html.aw-m2 .aw-ink { display: none; } }
@media (min-width: 1199px) {
  /* menus scale out of their trigger (ui spring), items follow 28 ms apart; closing is quicker */
  html.aw-m2.andy-rd3 .app-nav .dropdown-menu, html.aw-m2.andy-rd3 .main-footer .dropdown-menu { transform-origin: 24px 0; transform: translateY(-4px) scale(0.96); transition: opacity 0.12s ease-in, transform 0.12s ease-in, visibility 0s linear 0.12s; }
  html.aw-m2.andy-rd3 .app-nav :is(.dropdown-menu-right, .is-right > .dropdown-menu, .top-nav .dropdown-menu) { transform-origin: calc(100% - 24px) 0; }
  html.aw-m2.andy-rd3 .main-footer .dropdown-menu { transform-origin: calc(100% - 24px) 100%; transform: translateY(4px) scale(0.96); }
  html.aw-m2.andy-rd3 .app-nav .show > .dropdown-menu, html.aw-m2.andy-rd3 .app-nav .dropdown-menu.show, html.aw-m2.andy-rd3 .main-footer .show > .dropdown-menu { transform: none; transition: opacity 0.16s ease-out, transform var(--m-ui-t) var(--m-ui), visibility 0s; }
  html.aw-m2 .app-nav .show > .dropdown-menu :is(li, .dropdown-menu-item), html.aw-m2 .main-footer .show > .dropdown-menu .dropdown-menu-item { animation: aw-item-in var(--m-ui-t) var(--m-ui) both; animation-delay: calc(var(--i, 0) * 28ms + 30ms); }
}
@keyframes aw-item-in { from { opacity: 0; transform: translateY(-6px); } }
/* phone drawer: keep Lagom's push; the page lags a touch behind (parallax) and dims under a scrim, items slide in */
@media (max-width: 1198px) {
  html.aw-m2 .app-main { position: relative; }
  html.aw-m2 .app-main::after { content: ""; position: absolute; inset: 0; z-index: 50; background: oklch(18% 0.02 262 / 0.16); opacity: 0; pointer-events: none; transition: opacity 0.24s ease; }
  html.aw-m2 body.menu-open .app-main::after { opacity: 1; }
  html.aw-m2 body.menu-open .app-main { transition: transform 0.36s var(--m-ui) !important; }
  html.aw-m2 body.menu-open #main-menu .menu > li { animation: aw-drawer-in var(--m-ui-t) var(--m-ui) both; animation-delay: calc(var(--i, 0) * 40ms + 60ms); }
}
@keyframes aw-drawer-in { from { opacity: 0; transform: translateX(-20px); } }
/* brand mark drawn on the first view of a session (overlay that ends identical to the logo underneath) */
html.aw-m2 .aw-logo-draw { position: absolute; left: 0; top: 50%; pointer-events: none; overflow: visible; }

/* ---------- 3. data ---------- */
/* split-flap digits: two leaves (upper one a touch lighter), no seam line through the glyph */
html.aw-m2 .aw-flip { display: inline-block; position: relative; perspective: 240px; font-variant-numeric: tabular-nums; border-radius: 6px; background: linear-gradient(to bottom, color-mix(in oklab, var(--aw-surface-muted) 70%, #fff) 50%, var(--aw-surface-muted) 50%); box-shadow: inset 0 0 0 1px oklch(0% 0 0 / 0.04); transition: background-color 0.3s ease, box-shadow 0.3s ease; }
html.aw-m2 .aw-flip.is-set { background: transparent; box-shadow: none; transition: background 0.4s ease, box-shadow 0.4s ease; }
html.aw-m2 .aw-flip > span { display: inline-block; transform-origin: 50% 50%; backface-visibility: hidden; }
html.aw-m2 :is(.aw-stat-v, .panel-summary .price-amount, .aw-figure, #totalDueToday) { font-variant-numeric: tabular-nums; }
/* traffic bars: fill from 0 with the gentle spring (JS), colour shifts to orange from 80 %, red from 95 % */
html.aw-m2 .aw-bar > i { animation: none; position: relative; }
html.aw-m2 .aw-bar.is-warn > i { background: var(--aw-accent); }
html.aw-m2 :is(.aw-bar > i, .hrk-tr-fill)::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: oklch(70% 0.17 55); opacity: 0; transition: opacity 0.5s ease 0.15s; }
html.aw-m2 :is(.aw-bar > i, .hrk-tr-fill).aw-crit::after { background: oklch(60% 0.2 25); }
html.aw-m2 :is(.aw-bar > i, .hrk-tr-fill):is(.aw-warn, .aw-crit).is-lit::after { opacity: 1; }
html.aw-m2 .hrk-tr-fill { position: relative; transition: none !important; transform-origin: 0 50%; background: var(--aw-accent) !important; }
html.aw-m2 .aw-bar > i { transform-origin: 0 50%; }
/* andy-billing's notice block arrives as a cross-fade when the totals are redrawn */
html.aw-m2 .abp.aw-in { animation: aw-fade-in 0.3s ease-out both; }
html.aw-m2 .aw-ghost { position: absolute; pointer-events: none; margin: 0 !important; z-index: 3; animation: aw-fade-out 0.24s ease-in both; }
/* alerts and banners spring in (lively), several in a row stack 40 ms apart */
html.aw-m2 .main-body :is(.aw-banner, .aw-note, .alert:not(.hidden):not(.w-hidden):not(.checkout-security-msg)) { animation: aw-drop-in var(--m-lively-t) var(--m-lively) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes aw-drop-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
html.aw-m2 .apk-toast.is-on { transition: opacity 0.2s ease, transform var(--m-lively-t) var(--m-lively), visibility 0s; }

/* ---------- 4. delight ---------- */
/* tile ping: an expanding ring flash on something that just changed */
html.aw-m2 .aw-ping { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5; animation: tile-ping 0.42s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes tile-ping {
  0% { opacity: 1; box-shadow: inset 0 0 0 2px var(--aw-accent), 0 0 0 0 color-mix(in oklab, var(--aw-accent) 55%, transparent); }
  100% { opacity: 0; box-shadow: inset 0 0 0 2px var(--aw-accent), 0 0 0 14px color-mix(in oklab, var(--aw-accent) 0%, transparent); }
}
/* scan beam with a trailing glow (eSIM QR waiting + reveal) */
html.aw-m2 .aw-beam { position: absolute; left: 4%; right: 4%; height: 2px; top: 6%; border-radius: 999px; background: var(--m-scan); box-shadow: 0 0 14px 2px color-mix(in oklab, var(--m-scan) 60%, transparent); z-index: 2; }
html.aw-m2 .aw-beam::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--trail, 40px); background: linear-gradient(to top, color-mix(in oklab, var(--m-scan) 24%, transparent), transparent); }
html.aw-m2 .aw-beam[data-sweep] { animation: sweep 2s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes sweep { 0%, 100% { top: 6%; } 50% { top: 94%; } }
html.aw-m2 .aw-qrskel { position: relative; width: 168px; height: 168px; margin: 4px auto 14px; border-radius: 14px; background-color: var(--aw-surface); background-image: radial-gradient(oklch(80% 0.01 262) 1px, transparent 1.4px); background-size: 9px 9px; box-shadow: inset 0 0 0 1px var(--aw-border); overflow: hidden; animation: aw-fade-in 0.3s ease-out both; }
html.aw-m2 .aw-qrskel i { position: absolute; width: 38px; height: 38px; border: 6px solid oklch(82% 0.012 262); border-radius: 9px; }
html.aw-m2 .aw-qrskel i:nth-child(1) { left: 12px; top: 12px; } html.aw-m2 .aw-qrskel i:nth-child(2) { right: 12px; top: 12px; } html.aw-m2 .aw-qrskel i:nth-child(3) { left: 12px; bottom: 12px; }
html.aw-m2 .esg-working:has(.aw-qrskel) .esg-spin { display: none; }
html.aw-m2 .aw-qr-revealing { position: relative; }
html.aw-m2 .aw-qr-revealing .esg-qr__img { clip-path: inset(0 0 100% 0); }
html.aw-m2 .aw-calm-in { animation: aw-fade-in 0.4s ease-out both; }
/* success burst canvas */
html.aw-m2 .aw-burst { position: fixed; inset: 0; z-index: 2000; pointer-events: none; }
/* buttons: press spring (snap); primary buttons get one soft sheen per hover entry (pointer only) */
html.aw-m2 :is(.aw-btn, .btn, .apk-btn, .esg-btn, .aw-seg > button, .aw-action) { transition-property: background-color, border-color, color, box-shadow, opacity, transform, clip-path; transition-duration: 0.15s, 0.15s, 0.15s, 0.15s, 0.15s, var(--m-snap-t), var(--m-ui-t); transition-timing-function: ease, ease, ease, ease, ease, var(--m-snap), var(--m-ui); }
html.aw-m2 :is(.aw-btn, .btn, .apk-btn, .esg-btn, .aw-seg > button):active:not([disabled]) { transform: scale(0.97); }
html.aw-m2 :is(.aw-btn-primary, .btn-primary, .btn-checkout, .apk-btn--primary, .esg-btn--primary):not(.dropdown-toggle) { position: relative; overflow: hidden; isolation: isolate; }
@media (hover: hover) and (pointer: fine) {
  html.aw-m2 :is(.aw-btn-primary, .btn-primary, .btn-checkout, .apk-btn--primary, .esg-btn--primary):not(.dropdown-toggle)::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; z-index: 1; pointer-events: none; background: linear-gradient(105deg, transparent 20%, rgb(255 255 255 / 0.28) 50%, transparent 80%); transform: translateX(-120%); }
  html.aw-m2 :is(.aw-btn-primary, .btn-primary, .btn-checkout, .apk-btn--primary, .esg-btn--primary):not(.dropdown-toggle):hover::after { animation: aw-sheen 0.75s var(--m-out) 1; }
}
@keyframes aw-sheen { to { transform: translateX(240%); } }
/* submit buttons that post or navigate fold into a spinner circle; ajax ones flip to a check */
html.aw-m2 .aw-busy { pointer-events: none; clip-path: inset(0 calc(50% - var(--aw-h, 44px) / 2) round 999px); }
html.aw-m2 .aw-busy > * , html.aw-m2 .aw-busy { color: transparent !important; }
html.aw-m2 .aw-busy::before { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid rgb(255 255 255 / 0.9); border-right-color: transparent; border-radius: 50%; animation: ring-spin 0.8s linear infinite; z-index: 2; }
html.aw-m2 :is(.aw-btn-secondary, .btn-default, .aw-btn-ghost).aw-busy::before { border-color: var(--aw-accent); border-right-color: transparent; }
html.aw-m2 .aw-busy { position: relative; }
html.aw-m2 .aw-busy.aw-busy--lg::before { display: none; }
/* signed in: the folded button keeps its circle, the spinner becomes a check (static, it is what the frozen frame shows) */
html.aw-m2 .aw-busy.aw-busy--ok::before { display: none; }
html.aw-m2 .aw-busy.aw-busy--ok, html.aw-m2 .aw-busy.aw-busy--ok > * { color: #fff !important; }
html.aw-m2 .aw-busy.aw-busy--lg > .loader { color: #fff !important; }
html.aw-m2 .aw-busy-spin { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid rgb(255 255 255 / 0.9); border-right-color: transparent; border-radius: 50%; animation: ring-spin 0.8s linear infinite, aw-fade-in 0.15s ease-out; pointer-events: none; z-index: 3; }
html.aw-m2.aw-calm .aw-busy-spin { animation: aw-fade-in 0.15s ease-out; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
html.aw-m2 .aw-done-check { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; z-index: 2; }
html.aw-m2 .aw-done-check svg { width: 20px; height: 20px; animation: aw-check-in var(--m-lively-t) var(--m-lively) both; }
@keyframes aw-check-in { from { opacity: 0; transform: scale(0.4) rotate(-20deg); } }
/* cards: a faint spotlight follows the pointer (radial gradient from CSS variables), pointer only */
@property --aw-spot { syntax: "<number>"; inherits: false; initial-value: 0; }
@media (hover: hover) and (pointer: fine) {
  html.aw-m2 .aw-card:not(.is-primary):not(.aw-auth-card) { background-image: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 50%), rgb(16 98 254 / calc(0.055 * var(--aw-spot))), transparent 70%); transition: --aw-spot 0.3s ease, transform 200ms var(--aw-ease), box-shadow 200ms ease, border-color 200ms ease; }
  html.aw-m2 .aw-card:not(.is-primary):not(.aw-auth-card):hover { --aw-spot: 1; }
}
/* ambient: status lights breathe */
html.aw-m2 :is(.aw-chip-ok, .esg-status--ok)::before { animation: led-breathe 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes led-breathe { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

/* ---------- reduced motion: the calm policy, only fades remain ---------- */
html.aw-m2.aw-calm::view-transition-group(*) { animation-duration: 0s !important; }
html.aw-m2.aw-calm::view-transition-new(aw-main), html.aw-m2.aw-calm::view-transition-new(root) { animation: aw-fade-in 0.2s ease-out both !important; }
html.aw-m2.aw-calm::view-transition-old(aw-main), html.aw-m2.aw-calm::view-transition-old(root) { animation: aw-fade-out 0.12s ease-in both !important; }
html.aw-m2.aw-calm .aw-ink { transition: none; }
html.aw-m2.aw-calm :is(.aw-btn, .btn, .apk-btn, .esg-btn, .aw-seg > button):active { transform: none; }
html.aw-m2.aw-calm :is(.aw-chip-ok, .esg-status--ok)::before, html.aw-m2.aw-calm .aw-beam[data-sweep], html.aw-m2.aw-calm .aw-busy::before { animation: none !important; }
html.aw-m2.aw-calm :is(.aw-btn-primary, .btn-primary, .btn-checkout, .apk-btn--primary, .esg-btn--primary)::after { display: none !important; }
html.aw-m2.aw-calm .main-body :is(.aw-banner, .aw-note, .alert) { animation-name: aw-fade-in !important; animation-timing-function: ease-out !important; animation-duration: 0.2s !important; }
html.aw-m2.aw-calm .app-nav .dropdown-menu, html.aw-m2.aw-calm .app-nav .show > .dropdown-menu { transform: none !important; }
html.aw-m2.aw-calm :is(.app-nav .dropdown-menu li, #main-menu .menu > li, .apk-item--new) { animation-name: aw-fade-in !important; }
html.aw-m2.aw-calm .aw-card { transition: none !important; --aw-spot: 0 !important; }
html.aw-m2.aw-calm body.menu-open .app-main { transition-duration: 0.01s !important; }
/* dashboard reached by an ordinary navigation: the tiles drop in themselves, so the page only fades */
html.aw-m2.aw-vt-drop::view-transition-new(aw-main) { animation: aw-fade-in 0.18s ease-out 0.1s both; }
