/* Admin-only motion layer. Applies only when <html class="ma-admin-ui"> is set,
   which the token limits component does for accounts that receive admin_token_windows. */


/* Quick request buttons under the composer: lift on hover, icon reacts */
.ma-admin-ui .ma-home-shortcuts button {
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), background-color .18s ease, border-color .18s ease;
}
.ma-admin-ui .ma-home-shortcuts button:hover {
  transform: translateY(-2px);
}
.ma-admin-ui .ma-home-shortcuts button:active {
  transform: translateY(0) scale(.98);
}
.ma-admin-ui .ma-home-shortcuts button x-icon {
  display: inline-block;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}
.ma-admin-ui .ma-home-shortcuts button:hover x-icon {
  transform: scale(1.14);
}
.ma-admin-ui .ma-home-shortcuts button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Slow ambient drift of the welcome glow (transform only, cheap to composite) */
@keyframes ma-bg-drift {
  from { transform: translate3d(-1.2%, -0.8%, 0) scale(1.03); }
  to   { transform: translate3d(1.2%, 0.8%, 0) scale(1.07); }
}
.ma-admin-ui .welcome-container::before {
  animation: ma-bg-drift 36s ease-in-out infinite alternate;
  will-change: transform;
}

/* Secondary text in the limits panel: a bit more contrast */
.ma-admin-ui .ma-quota-detail,
.ma-admin-ui .ma-quota-details p {
  color: color-mix(in srgb, var(--text) 74%, transparent);
}

/* Chat: only the newest message animates in, so re-rendered history stays still */
@keyframes ma-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.ma-admin-ui .message:last-child {
  animation: ma-msg-in .24s cubic-bezier(.2, .8, .2, 1) both;
}

/* Sidebar chat list: soft hover feedback */
.ma-admin-ui .chat-list-button {
  transition: background-color .18s ease, transform .18s cubic-bezier(.2, .8, .2, 1);
}
.ma-admin-ui .chat-list-button:hover {
  transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
  .ma-admin-ui *,
  .ma-admin-ui *::before,
  .ma-admin-ui *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
