html,
body,
#root {
  --boot-background: #f7f7f8;
  --boot-accent: #17181b;
  --boot-foreground-on-accent: #ffffff;
  --color-browser-chrome: #ffffff;
  min-height: 100%;
  margin: 0;
  color-scheme: light;
  background: var(--boot-background);
}

:root[data-theme='dark'],
:root[data-theme='dark'] body,
:root[data-theme='dark'] #root {
  --boot-background: #0d0d0f;
  --boot-accent: #f3f3f4;
  --boot-foreground-on-accent: #111214;
  --color-browser-chrome: #141416;
  color-scheme: dark;
  background: var(--boot-background);
}

:root[data-theme='ink'],
:root[data-theme='ink'] body,
:root[data-theme='ink'] #root {
  --boot-background: #000000;
  --boot-accent: #f5f5f6;
  --boot-foreground-on-accent: #050506;
  --color-browser-chrome: #000000;
  color-scheme: dark;
  background: var(--boot-background);
}

:root[data-theme='midnight'],
:root[data-theme='midnight'] body,
:root[data-theme='midnight'] #root {
  --boot-background: #07101d;
  --boot-accent: #edf4fb;
  --boot-foreground-on-accent: #08111d;
  --color-browser-chrome: #0c1726;
  color-scheme: dark;
  background: var(--boot-background);
}

:root[data-theme='cobalt'],
:root[data-theme='cobalt'] body,
:root[data-theme='cobalt'] #root {
  --boot-background: #071a33;
  --boot-accent: #edf6ff;
  --boot-foreground-on-accent: #071a33;
  --color-browser-chrome: #0c2444;
  color-scheme: dark;
  background: var(--boot-background);
}

:root[data-theme='soft'],
:root[data-theme='soft'] body,
:root[data-theme='soft'] #root {
  --boot-background: #dedfdc;
  --boot-accent: #232824;
  --boot-foreground-on-accent: #ffffff;
  --color-browser-chrome: #e9eae7;
  color-scheme: light;
  background: var(--boot-background);
}

:root[data-theme='mist'],
:root[data-theme='mist'] body,
:root[data-theme='mist'] #root {
  --boot-background: #e4eef8;
  --boot-accent: #102943;
  --boot-foreground-on-accent: #ffffff;
  --color-browser-chrome: #f8fbff;
  color-scheme: light;
  background: var(--boot-background);
}

:root[data-theme='ivory'],
:root[data-theme='ivory'] body,
:root[data-theme='ivory'] #root {
  --boot-background: #f3eadb;
  --boot-accent: #33291e;
  --boot-foreground-on-accent: #ffffff;
  --color-browser-chrome: #fffaf0;
  color-scheme: light;
  background: var(--boot-background);
}

.app-boot-fallback {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 24px;
  background: inherit;
}

.app-boot-fallback-content {
  display: grid;
  justify-items: center;
}

.app-boot-fallback-logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  animation: app-boot-pulse 1800ms ease-in-out infinite;
}

.app-boot-fallback button {
  display: none;
  min-height: 44px;
  margin-top: 16px;
  padding: 0 16px;
  border: 1px solid var(--boot-accent);
  border-radius: 10px;
  background: var(--boot-accent);
  color: var(--boot-foreground-on-accent);
  font: 14px/1.5 Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  cursor: pointer;
}

.app-boot-fallback.is-delayed button {
  display: inline-flex;
  align-items: center;
}

@keyframes app-boot-pulse {
  0%,
  100% {
    transform: scale(.94);
    opacity: .72;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-boot-fallback-logo {
    animation: none;
  }
}
