#dashboard-bootstrap-loader[hidden] {
  display: none !important;
}

#dashboard-bootstrap-loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  box-sizing: border-box;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  background: #ffffff;
  color: #0f172a;
  padding: max(40px, env(safe-area-inset-top)) 20px max(40px, env(safe-area-inset-bottom));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dashboard-bootstrap-panel {
  width: 100%;
  max-width: 448px;
}

.dashboard-bootstrap-brand {
  margin: 0 0 40px;
  text-align: center;
}

.dashboard-bootstrap-mascot {
  display: block;
  width: 76px;
  height: auto;
  margin: 0 auto 14px;
  object-fit: contain;
}

.dashboard-bootstrap-brand strong {
  display: block;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.dashboard-bootstrap-brand span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.dashboard-bootstrap-title {
  margin: 0 0 24px;
  color: #334155;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.dashboard-bootstrap-list {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-bootstrap-row-label {
  display: flex;
  min-height: 24px;
  align-items: center;
  margin-bottom: 8px;
  color: #1e293b;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.dashboard-bootstrap-track {
  position: relative;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.dashboard-bootstrap-progress {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 40%;
  background: #2872a1;
  opacity: 0;
  animation: dashboard-bootstrap-sequence 5s ease-in-out infinite;
}

.dashboard-bootstrap-failure {
  display: grid;
  gap: 16px;
  color: #475569;
  font-size: 14px;
  line-height: 1.5;
}

.dashboard-bootstrap-failure p {
  margin: 0;
}

.dashboard-bootstrap-failure button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: #2872a1;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
}

.dashboard-bootstrap-list li:nth-child(2) .dashboard-bootstrap-progress { animation-delay: 1s; }
.dashboard-bootstrap-list li:nth-child(3) .dashboard-bootstrap-progress { animation-delay: 2s; }
.dashboard-bootstrap-list li:nth-child(4) .dashboard-bootstrap-progress { animation-delay: 3s; }
.dashboard-bootstrap-list li:nth-child(5) .dashboard-bootstrap-progress { animation-delay: 4s; }

@keyframes dashboard-bootstrap-sequence {
  0% {
    opacity: 1;
    transform: translateX(-110%);
  }
  15% {
    opacity: 1;
    transform: translateX(95%);
  }
  19% {
    opacity: 0;
    transform: translateX(260%);
  }
  20%,
  100% {
    opacity: 0;
    transform: translateX(260%);
  }
}

@keyframes dashboard-bootstrap-sequence-reduced {
  0%,
  19.999% {
    opacity: 1;
    transform: none;
  }
  20%,
  100% {
    opacity: 0;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-bootstrap-progress {
    width: 100%;
    background: #2872a1;
    opacity: 0;
    transform: none;
    animation-name: dashboard-bootstrap-sequence-reduced;
    animation-duration: 5s;
    animation-timing-function: steps(1, end);
    animation-iteration-count: infinite;
  }
}

@media (max-width: 390px) and (max-height: 820px) {
  #dashboard-bootstrap-loader {
    padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  }

  .dashboard-bootstrap-panel,
  .dashboard-preparation-react-panel {
    max-width: 343px;
  }

  .dashboard-bootstrap-brand {
    margin: 0 0 24px;
  }

  .dashboard-bootstrap-mascot {
    width: 68px;
    margin-bottom: 10px;
  }

  .dashboard-bootstrap-brand strong {
    font-size: 22px;
  }

  .dashboard-bootstrap-brand span {
    font-size: 12px;
  }

  .dashboard-bootstrap-title {
    margin: 0 0 16px;
    font-size: 14px;
  }

  .dashboard-bootstrap-list {
    gap: 14px;
  }

  .dashboard-bootstrap-row-label {
    min-height: 20px;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.35;
  }
}
