#app-loading-screen {
  display: none;
}

html[data-app-loading] body {
  overflow: hidden;
}

html[data-app-loading] body > :not(#app-loading-screen):not(dialog) {
  display: none !important;
}

html[data-app-loading] #app-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 24px;
  background: #f5f6f8;
  color: #0b1726;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-loading-card {
  width: min(100%, 440px);
  padding: 36px 28px;
  border: 1px solid #e5e8ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 40px #0b172608;
  text-align: center;
}

.app-loading-brand {
  display: block;
  width: 154px;
  height: 54px;
  margin: 0 auto 24px;
  object-fit: contain;
}

.app-loading-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 24px;
  border: 3px solid #eee8dc;
  border-top-color: #b38b45;
  border-radius: 50%;
  animation: app-loading-turn 1s linear infinite;
}

.app-loading-card h1 {
  margin: 0 0 12px;
  color: #0b1726;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -.03em;
}

.app-loading-card p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.65;
}

#app-loading-actions:not([hidden]) {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

#app-loading-actions button {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 9px;
  background: #d1b675;
  color: #0b1726;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

#app-loading-actions a {
  color: #344054;
  font-size: 14px;
}

#app-loading-actions :focus-visible {
  outline: 3px solid #b38b45;
  outline-offset: 4px;
}

html[data-app-loading-error] .app-loading-spinner {
  animation: none;
  border-color: #f3d2cf;
  border-top-color: #b54740;
}

@keyframes app-loading-turn {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .app-loading-spinner { animation: none; }
}
