/* Animations switch (assets/js/tenant-lab-motion.js) and the Vault Boy article transition (assets/js/vault-boy.js). */
html.lab-motion-off,
html.lab-motion-off *,
html.lab-motion-off *::before,
html.lab-motion-off *::after {
  animation-duration: .01ms !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
}
html.lab-motion-off[data-bs-theme='light'] #sidebar #avatar { background-image:url('/assets/img/brand-avatar-vault.svg?v=2#static'); }

/* Same look as Chirpy's theme button in the sidebar footer. */
#sidebar .sidebar-bottom #motion-toggle {
  width:1.75rem; height:1.75rem; margin:0 0 .5rem; padding:0; border-radius:50%; /* row spacing: tenant-lab-theme.css */
  display:flex; align-items:center; justify-content:center;
  color:var(--sidebar-btn-color); background-color:var(--sidebar-btn-bg);
}
#sidebar .sidebar-bottom #motion-toggle:not(:focus-visible) { box-shadow:var(--sidebar-border-color) 0 0 0 1px; }
#sidebar .sidebar-bottom #motion-toggle:hover { background-color:var(--sidebar-hover-bg); }
#motion-toggle .motion-icon-off,
html.lab-motion-off #motion-toggle .motion-icon-on { display:none; }
html.lab-motion-off #motion-toggle .motion-icon-off { display:inline; }

/* Vault Boy clip laid over the clicked card; feet on the card's bottom edge. */
.vault-boy-actor { position:absolute; z-index:1040; pointer-events:none; }
.vault-boy-actor video, .vault-boy-actor img { display:block; width:100%; height:100%; }
#post-list .card-wrapper.is-vault-boy-target { box-shadow:0 0 0 2px var(--lab-accent, var(--link-color)); }
#post-list .card-wrapper.is-vault-boy-target .lab-preview-media { opacity:.35; transition:opacity .25s; }
/* Confirmation after the animations switch (tenant-lab-motion.js), styled like the update toast: Vault-Tec blue with
   gold, or graphite with amber. Above the sticky bars and the open menu, below the cookie banner (1100); raised above
   the menu's footer buttons so the switch itself stays visible. Centred with auto margins, not left:50%, which would
   leave it only half the screen to fit in. */
.lab-toast {
  --lab-toast-bg: #21496b; --lab-toast-text: #fff5d6; --lab-toast-muted: #e2e8e6; --lab-toast-rule: #e9c44c;
  --lab-toast-icon-bg: #efd067; --lab-toast-icon: #21496b;
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  width: max-content;
  margin: 0 auto;
  z-index: 1095;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 2rem);
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--lab-toast-rule);
  border-radius: 999px;
  background: var(--lab-toast-bg);
  color: var(--lab-toast-text);
  box-shadow: 0 10px 28px #00000040;
  font-size: 0.85rem;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
:root[data-bs-theme='dark'] .lab-toast {
  --lab-toast-bg: #1d2023; --lab-toast-text: #f4f1ea; --lab-toast-muted: #b9b8b0; --lab-toast-rule: #efbb65;
  --lab-toast-icon-bg: #efbb65; --lab-toast-icon: #151719;
}
.lab-toast.is-visible { opacity: 1; transform: none; }
.lab-toast > i {
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  height: 32px;
  border-radius: 50%;
  background: var(--lab-toast-icon-bg);
  color: var(--lab-toast-icon);
}
.lab-toast span { display: flex; flex-direction: column; min-width: 0; color: var(--lab-toast-muted); }
.lab-toast strong { color: var(--lab-toast-text); font-weight: 700; }
