#task-completed-section { scroll-margin-top: 96px; }
.admin-bar #task-completed-section { scroll-margin-top: 128px; }
#mission-section .ai-demo-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 56%;
  background: #fff;
  transform: rotate(-45deg);
  transition: background-color .5s ease, color .5s ease, transform .5s ease;
}
#mission-section .mission-details:hover .ai-demo-trigger {
  background: #0077fd;
  color: #fff;
  transform: rotate(0deg);
}
#mission-section .mission-details-action > :focus-visible,
.ai-demo__close:focus-visible { outline: 2px solid #0054b4; outline-offset: 4px; }
.ai-demo {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(960px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 24px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: #242424;
  overflow: auto;
}
.ai-demo::backdrop { background: rgb(0 0 0 / 75%); }
.ai-demo__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.ai-demo__header h2 { font-size: 24px; line-height: 1.3; font-weight: 500; }
.ai-demo__close { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: #e6f1ff; }
.ai-demo__video { display: block; width: 100%; max-height: 72dvh; background: #000; border-radius: 12px; }
.ai-demo [hidden] { display: none; }
.ai-demo__status { padding: 24px 0; line-height: 1.5; }
@media (max-width: 767px) {
  .ai-demo { padding: 16px; border-radius: 16px; }
  .ai-demo__header h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #mission-section .ai-demo-trigger { transition: none; }
}
