.pwa-startup-overlay {
  display: none;
}

html.viewora-app-starting .pwa-startup-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  background: #0f172a;
  color: #fff;
}

.pwa-startup-content {
  display: grid;
  justify-items: center;
  gap: 18px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.pwa-startup-app-icon {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .28);
  object-fit: cover;
}

.pwa-startup-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, .2);
  border-top-color: #67e8f9;
  border-radius: 50%;
  animation: pwa-startup-spin .75s linear infinite;
}

@keyframes pwa-startup-spin {
  to { transform: rotate(360deg); }
}

.pwa-offline-notice[hidden] {
  display: none !important;
}

.pwa-offline-notice {
  position: fixed;
  z-index: 10001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .62);
  backdrop-filter: blur(7px);
}

.pwa-offline-card {
  width: min(100%, 390px);
  padding: 30px 24px;
  border: 1px solid #e4e9f2;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .2);
  text-align: center;
}

.pwa-offline-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin: 0 auto 17px;
  border-radius: 20px;
  background: #eff6ff;
  color: #2563eb;
}

.pwa-offline-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.pwa-offline-card h2 {
  margin: 0;
  color: #0f172a;
  font-family: 'Manrope', sans-serif;
  font-size: 23px;
  letter-spacing: -.03em;
}

.pwa-offline-card p {
  margin: 10px 0 21px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.pwa-offline-retry {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border: 0;
  border-radius: 13px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.pwa-offline-retry:hover {
  background: #1d4ed8;
}

.pwa-offline-retry:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}

.pwa-offline-retry:disabled {
  cursor: progress;
  opacity: .8;
}

.pwa-offline-retry svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.pwa-offline-retry[aria-busy="true"] svg {
  animation: pwa-startup-spin .8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .pwa-startup-spinner,
  .pwa-offline-retry[aria-busy="true"] svg {
    animation: none;
  }
}