/* Lucent CSS */

:root {
  --background: hsl(218, 81%, 6%);
  --text: hsl(96, 71%, 99%);
  --text-error: hsl(351, 70%, 70%);
}

@media (prefers-color-scheme: light) {
  :root {
    --background: hsl(96, 71%, 99%);
    --text: hsl(218, 81%, 6%);
    --text-error:hsl(351, 50%, 40%);
  }
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
}

.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.boot-overlay[hidden] {
  display: none;
}

.boot-overlay h3 {
  margin: 0;
  font-weight: 600;
}

.boot-overlay progress {
  width: min(400px, 80vw);
  height: 0.85rem;
}

.boot-overlay--error #status {
  color: var(--text-error);
}

.app-layout {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
}

.app-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: none;
}
