/* IOVO motion: tokens and the CSS half of the effects (iovo-motion.js loads this sheet and glow.css).
   Compositor-friendly: sweeps move by transform, halos by opacity. Reduced motion: everything holds still. */
:root{--iom-accent:#3ee6d3;--iom-accent2:#29b6f6;--iom-glow:rgba(62,230,211,.28);--iom-sheen:rgba(232,255,255,.22);--iom-bed:rgba(62,230,211,.08);
  --iom-m1:#e8ffff;--iom-m2:#3ee6d3;--iom-m3:#0b6f86;--iom-m4:#29b6f6}
:root[data-theme="light"]{--iom-accent:#0a8fb0;--iom-accent2:#38bdf8;--iom-glow:rgba(10,143,176,.22);--iom-sheen:rgba(255,255,255,.75);--iom-bed:rgba(10,143,176,.07);
  --iom-m1:#ffffff;--iom-m2:#0a8fb0;--iom-m3:#9fb6c2;--iom-m4:#38bdf8}
:root[data-theme="dark"]{--iom-accent:#f47920;--iom-accent2:#ffa24c;--iom-glow:rgba(244,121,32,.28);--iom-sheen:rgba(255,190,120,.18);--iom-bed:rgba(244,121,32,.07);
  --iom-m1:#fff4ea;--iom-m2:#f47920;--iom-m3:#3a1a06;--iom-m4:#ffa24c}

/* ---------- A. AQUIS overlay canvas (sits exactly on the drop) ---------- */
.iom-aquis-fx{position:absolute;pointer-events:none;z-index:1}
#wl-aquis .iom-aquis-fx{pointer-events:none}

/* ---------- B. calm card loading: liquid shimmer sweep + tiny thinking orb ---------- */
/* The sweep is an injected child (.iom-sweep); the host's own ::before/::after, position and overflow stay its own. */
.iom-sweep{position:absolute;inset:0;overflow:hidden;border-radius:inherit;pointer-events:none;z-index:1}
.iom-sweep::after,
[data-office-next] .iox-skeleton__row::after,
[data-shell] .mf-kpi__skel::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(100deg,transparent 0%,var(--iom-bed) 30%,var(--iom-sheen) 46%,rgba(255,255,255,.04) 52%,var(--iom-bed) 62%,transparent 80%);
  transform:translateX(-100%);animation:iom-sweep 2.2s cubic-bezier(.45,.05,.35,1) infinite;will-change:transform}
/* The existing grey skeleton bars (empty placeholders) become the liquid sweep (task B). */
html [data-office-next] .iox-skeleton__row,html [data-shell] .mf-kpi__skel{position:relative;overflow:hidden;animation:none;
  background:linear-gradient(90deg,var(--iom-bed),color-mix(in srgb,var(--iom-accent) 10%,transparent),var(--iom-bed))}
@keyframes iom-sweep{to{transform:translateX(100%)}}
.iom-think{display:inline-block;width:16px;height:16px;margin-inline-start:8px;vertical-align:-2px;border-radius:50%;
  box-shadow:0 0 10px var(--iom-glow)}
.iom-think canvas,.iom-wave canvas{display:block}

/* ---------- C. live states (injected .iom-ring / .iom-wave / .iom-halo children) ---------- */
@property --iom-a{syntax:"<angle>";inherits:false;initial-value:0deg}
/* AquaWorld sync: liquid-metal ring while syncing (ref 3). */
.iom-ring{position:absolute;inset:-2px;border-radius:inherit;padding:2px;pointer-events:none;
  background:conic-gradient(from var(--iom-a),var(--iom-m1),var(--iom-m2) 18%,var(--iom-m3) 34%,var(--iom-m1) 50%,var(--iom-m4) 68%,var(--iom-m3) 84%,var(--iom-m1));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;
  filter:drop-shadow(0 0 4px var(--iom-glow));animation:iom-spin 2.4s linear infinite}
@keyframes iom-spin{to{--iom-a:360deg}}
/* Live AI verification: waveform ring drawn by the script into .iom-wave. */
.iom-wave{display:inline-block;width:18px;height:18px;margin-inline-end:6px;vertical-align:-4px}
/* Needs your decision: a soft halo that breathes by opacity only. */
.iom-halo{position:absolute;inset:-4px;border-radius:inherit;pointer-events:none;
  box-shadow:0 0 0 1px var(--iom-accent),0 0 18px 4px var(--iom-glow);opacity:.35;animation:iom-halo 2.8s ease-in-out infinite;will-change:opacity}
@keyframes iom-halo{50%{opacity:1}}

@media (prefers-reduced-motion: reduce){
  .iom-sweep::after,[data-office-next] .iox-skeleton__row::after,[data-shell] .mf-kpi__skel::after{animation:none;transform:none;opacity:.5}
  .iom-ring{animation:none}
  .iom-halo{animation:none;opacity:.8}
}
