/* AI Studio motion system (spec §3). One set, used everywhere. Transform and opacity only. */
:root { --m-fast: 140ms; --m-base: 220ms; --m-slow: 360ms; --m-ease: cubic-bezier(.2, .8, .2, 1); --m-exit: cubic-bezier(.4, 0, 1, 1); }
@keyframes m-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes m-slide-r { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes m-slide-l { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes m-slide-b { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes m-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.m-in { animation: m-in var(--m-base) var(--m-ease) both; }
.m-fade { animation: m-fade var(--m-base) var(--m-ease) both; }
.m-pop { animation: m-pop var(--m-base) var(--m-ease) both; }
.m-slide-r { animation: m-slide-r var(--m-base) var(--m-ease) both; }
.m-slide-l { animation: m-slide-l var(--m-base) var(--m-ease) both; }
.m-slide-b { animation: m-slide-b var(--m-slow) var(--m-ease) both; }
.m-stag > * { animation: m-in var(--m-base) var(--m-ease) both; animation-delay: calc(min(var(--i, 0), 5) * 30ms); }
@media (prefers-reduced-motion: reduce) {
  :root { --m-fast: 1ms; --m-base: 1ms; --m-slow: 1ms; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .loop__dot, .m-travel { display: none !important; }
}

/* r3fb 2026-11-24 (Rijul): nav icon buttons (tutorials, settings, notifications) have no grey hover circle; the icon turns brand-100. Keyboard focus keeps the orange ring. */
.ds-topnav-actions .ds-navicon { transition: color 150ms ease; }
.ds-topnav-actions .ds-navicon:hover, .ds-topnav-actions .ds-navicon[aria-expanded="true"]:hover { background: transparent; color: var(--brand-100); }
/* notes: action sits at the right, vertically centred with the text */
.ds-note.ais-note { align-items: center; }
.ds-note.ais-note::before { margin-top: 0; }
.ds-note.ais-note .ais-note__act { display: inline-flex; align-items: center; gap: 8px; }
/* r3fb3 (Rijul): error and warning notices are filled (tokens from the DS); text dark, action WP blue. Same rules as prod-list/css/r3fb.css. */
.ds-note.error { background: color-mix(in srgb, var(--red-10) 45%, #fff); border-color: var(--red-50); color: var(--type-primary); }
.ds-note.error::before { background: var(--red-100); }
.ds-note.warn, .ds-note.ais-note:not(.error):not(.info):not(.brand):not(.success):not(.neutral) { background: color-mix(in srgb, var(--yellow-10) 45%, #fff); border-color: color-mix(in srgb, var(--yellow-100) 35%, #fff); color: var(--type-primary); --note-tile: var(--yellow-100); }
.ds-note.warn::before { background: var(--yellow-100); }
/* a modal opened by mouse shows no focus ring on its first control (keyboard focus still does) */
.tpldialog:focus, .tpldialog :focus:not(:focus-visible) { outline: none; }
