.app-loading:not([open]) {
  display: none;
}

.app-loading {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 22, 25, 0.62);
  backdrop-filter: blur(3px);
}

.app-loading::backdrop {
  background: transparent;
}

.app-loading-panel {
  display: grid;
  justify-items: center;
  min-width: min(280px, calc(100vw - 40px));
  padding: 28px 34px;
  border: 1px solid #d5d9de;
  border-radius: 7px;
  background: #fff;
  color: #242629;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.app-loading-spinner {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border: 4px solid #e3e5e8;
  border-top-color: #d00000;
  border-radius: 50%;
  animation: app-loading-spin 700ms linear infinite;
}

.app-loading-panel strong {
  font-size: 1rem;
  letter-spacing: 0;
}

.app-loading-panel > span:last-child {
  margin-top: 4px;
  color: #626871;
  font-size: 0.82rem;
}

body.is-app-loading {
  overflow: hidden;
  cursor: wait;
}

@keyframes app-loading-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .app-loading-spinner {
    animation-duration: 1.4s;
  }
}