/* Keep inputs stable while typing — no motion stealing focus or cursor. */

body.yal-user-typing input,
body.yal-user-typing textarea,
body.yal-user-typing select,
body.yal-user-typing [contenteditable="true"] {
  scroll-margin: 80px;
}

body.yal-user-typing .x-compose,
body.yal-user-typing .x-share-modal,
body.yal-user-typing .x-share-body,
body.yal-user-typing .yal-chat-root,
body.yal-user-typing .yal-chat-composer,
body.yal-user-typing .x-search,
body.yal-user-typing .yal-explore-search,
body.yal-user-typing .ym-chat-input-wrap,
body.yal-user-typing .ym-landing-input-wrap {
  animation: none !important;
}

body.yal-user-typing .x-shell button:hover,
body.yal-user-typing .x-auth-wrap button:hover,
body.yal-user-typing .x-compose-actions-icons button:hover {
  transform: none !important;
}

body.yal-user-typing .x-auth-wrap .x-auth-card.yal-login-card-3d {
  transform: none !important;
  transition: none !important;
}

body.yal-user-typing .x-auth-wrap.yal-login-enhanced::before,
body.yal-user-typing .x-auth-wrap.yal-login-enhanced::after,
body.yal-user-typing .yal-login-aurora,
body.yal-user-typing .yal-login-orbit,
body.yal-user-typing .x-auth-wrap .x-auth-title,
body.yal-user-typing .yal-login-tagline,
body.yal-user-typing .yal-login-monica-hero,
body.yal-user-typing .yal-login-monic-logo-wrap,
body.yal-user-typing .yal-login-monic-icon,
body.yal-user-typing .yal-login-flying-note,
body.yal-user-typing .yal-login-logo-wave {
  animation-play-state: paused !important;
}

body.yal-user-typing .yal-login-monica-hero {
  transform: none !important;
}

body.yal-user-typing .yal-login-monic-logo-wrap {
  transform: scale(1) !important;
  transition: none !important;
}

body.yal-user-typing .yal-login-fx {
  opacity: 0.45;
}

@media (prefers-reduced-motion: reduce) {
  body.yal-user-typing .yal-login-fx {
    opacity: 0.35;
  }
}
