/* Modul Cloud — motion
   ---------------------------------------------------------------------------
   Motion here exists to explain a change of state, never to decorate one.
   Three durations cover the product: 120ms for anything under the cursor,
   160ms for a state change, 200–240ms for a whole panel arriving. Nothing
   springs, bounces or scales, and no element animates on page load.

   Every duration is a token, and the tokens go to zero both when the user
   turns animation off and when the operating system asks for reduced motion —
   so switching motion off needs no second stylesheet. */

/* Tab and view swaps: a plain cross-fade, short enough not to be noticed as
   an animation and long enough to stop the content snapping. */
.tab-panel, [role='tabpanel'] {
	animation: mt-fade-in var(--mt-duration) var(--mt-ease);
}

@keyframes mt-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* The details sidebar is the one panel large enough to deserve a slide. */
.app-sidebar, #app-sidebar-vue {
	animation: mt-slide-in var(--mt-duration-panel) var(--mt-ease);
}

@keyframes mt-slide-in {
	from { transform: translateX(12px); opacity: 0; }
	to { transform: translateX(0); opacity: 1; }
}

/* Progress tracks are genuinely pill-shaped. */
progress, .progress-bar {
	border-radius: var(--mt-radius-pill) !important;
	overflow: hidden;
}

/* Skeletons while something loads: a slow sweep, no colour. */
.mt-loading,
.icon-loading::after {
	opacity: 0.85;
}

@keyframes mt-skeleton {
	from { background-position: 200% 0; }
	to { background-position: -200% 0; }
}

.mt-skeleton {
	background: linear-gradient(
		90deg,
		var(--mt-surface-sunken) 25%,
		var(--mt-surface-inset) 37%,
		var(--mt-surface-sunken) 63%
	);
	background-size: 200% 100%;
	animation: mt-skeleton 1.4s linear infinite;
	border-radius: var(--mt-radius-xs);
}

/* There is no click ripple. It was Material Design flavour on a product that
   is not Material, it cost a DOM node and a permanent `overflow: hidden` on
   every row and panel that was ever clicked, and a button that ripples is not
   more responsive than one that changes colour in 120ms. */
