/* The loading screen (shared/loading-screen.js): the desktop and the phone
   until the first page is drawn, and the student page while it opens a
   link. The fallbacks are for the student page, which doesn't load
   teacher/styles.css. */
.app-loading {
  position: fixed;
  inset: 0;
  z-index: var(--z-popover, 1000);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bg, var(--sp-bg, #f5f5f7));
  transition: opacity 0.2s ease;
}
/* Inside a page's own screen rather than over the whole window. */
.app-loading--inline {
  position: static;
  inset: auto;
  z-index: auto;
  padding: 32px 0;
  background: transparent;
}
.app-loading.is-done {
  opacity: 0;
  pointer-events: none;
}
.app-loading-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.app-loading-logo {
  width: 64px;
  height: 64px;
  overflow: visible;
}
/* The four bars dip and rise one after another, never past their full height
   (no bounce: docs/design.md, Motion). The logo itself stays still. */
.app-loading-bar {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: app-loading-grow 1.2s ease-in-out infinite;
}
.app-loading-bar:nth-of-type(3) {
  animation-delay: 0.12s;
}
.app-loading-bar:nth-of-type(4) {
  animation-delay: 0.24s;
}
.app-loading-bar:nth-of-type(5) {
  animation-delay: 0.36s;
}
.app-loading-shadow {
  width: 44px;
  height: 6px;
  border-radius: 50%;
  background: var(--overlay-pressed, rgba(0, 0, 0, 0.08));
}
.app-loading-title {
  font-family: var(--font-base);
  font-size: var(--text-2xl, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text, var(--sp-text, #1d1d1f));
}
.app-loading-text {
  min-height: 1.4em;
  font-family: var(--font-base);
  font-size: var(--text-sm, 0.8125rem);
  font-weight: 500;
  color: var(--text-3, var(--sp-text-2, #58585d));
  transition: opacity 0.2s ease;
}
.app-loading-text.is-swapping {
  opacity: 0;
}
@keyframes app-loading-grow {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.55);
  }
}
@media print {
  .app-loading {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .app-loading-bar {
    animation: none;
  }
}
