/* wm-fluid-tabs: a pill slides to the chosen tab. Adapted from Watermelon UI (MIT), fluid-tabs (layoutId
   "active-pill", spring 280 / 25, mass 0.8; active tab scale 1.03) and continuous-tabs. Vanilla port by SilverLion.
   Colours come from the host: --wm-tabs-pill (pill), --wm-tabs-on (active text). */
.wm-tabs { position: relative; display: inline-flex; gap: 2px; isolation: isolate; }
.wm-tabs-pill { position: absolute; left: 0; top: 0; z-index: -1; border-radius: var(--wm-tabs-radius, 999px);
  background: var(--wm-tabs-pill, color-mix(in oklab, currentColor 12%, transparent));
  transform: translate3d(var(--x, 0), var(--y, 0), 0); width: var(--w, 0); height: var(--h, 0);
  transition: transform 0.5s var(--wm-spring, cubic-bezier(0.34, 1.3, 0.64, 1)), width 0.5s var(--wm-spring, cubic-bezier(0.34, 1.3, 0.64, 1)); }
.wm-tabs-pill.wm-now { transition: none; }
.wm-tabs > [role="tab"] { position: relative; transition: color 0.2s ease, transform 0.3s var(--wm-spring, ease); }
.wm-tabs > [role="tab"][aria-selected="true"] { color: var(--wm-tabs-on, inherit); }
.wm-tabs > [role="tab"]:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) { .wm-tabs-pill, .wm-tabs > [role="tab"] { transition: none; } }
