/* Theme-aware logo: black in light mode, white in dark mode. */
.grid-theme-logo {
  filter: brightness(0);
}

html[data-theme="dark"] .grid-theme-logo,
body[data-theme="dark"] .grid-theme-logo {
  filter: brightness(0) invert(1);
}

/* Full-viewport Grid logo splash while waiting on network / auth. */
.grid-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1.5rem;
  border: 0;
  background: #FFFFFF;
  color: #000000;
}

.grid-splash[hidden],
.grid-splash[aria-hidden="true"]:not(.is-visible) {
  display: none !important;
}

.grid-splash.is-visible {
  display: flex !important;
}

html[data-theme="dark"] .grid-splash,
body[data-theme="dark"] .grid-splash {
  background: #000000;
  color: #FFFFFF;
}

.grid-splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.grid-splash-logo {
  display: block;
  width: auto;
  height: 6.5rem;
  max-width: min(240px, 60vw);
  object-fit: contain;
}

.grid-splash-message {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #000000;
}

html[data-theme="dark"] .grid-splash-message,
body[data-theme="dark"] .grid-splash-message {
  color: #FFFFFF;
}
