/* Loaded by the HTML so the first paint does not depend on JavaScript or fonts. */
.startup-screen {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 24px;
  background: var(--color-bg-app, #f5f7f9);
  color: var(--color-text-primary, #27374d);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] .startup-screen {
  background: #111923;
  color: #dde6ed;
}

.startup-screen__content {
  width: min(100%, 310px);
  display: grid;
  justify-items: center;
  gap: 20px;
}
.startup-screen__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1;
}
.startup-screen__brand svg {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}
.startup-screen__status {
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.startup-screen__status--error { align-items: flex-start; }
.startup-screen__spinner, .startup-screen__error-mark {
  display: block;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid rgba(157, 178, 191, .3);
  border-radius: 50%;
}
.startup-screen__spinner {
  border-top-color: #809aaa;
  animation: startup-spin .85s linear infinite;
}
.startup-screen__error-mark {
  border-color: currentColor;
  font-size: 11px;
  line-height: 12px;
  font-weight: 600;
  text-align: center;
}
.startup-screen__message {
  margin: 0;
  color: inherit;
  font-size: 12px;
  line-height: 1.45;
  opacity: .72;
}
.startup-screen button {
  padding: 9px 16px;
  border: 0;
  border-radius: 9px;
  background: #526d82;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.startup-screen button:hover { background: #465f73; }
.startup-screen button:focus-visible { outline: 3px solid #9db2bf; outline-offset: 4px; }
.startup-content { display: contents; }
.startup-content--pending { visibility: hidden; pointer-events: none; }
.startup-content--pending * { visibility: hidden !important; }
@keyframes startup-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .startup-screen__spinner { animation: none; }
}
