/* Inspira UI NeuralBg — full-screen site background */
html:has(body.monite-portal),
html:has(body.dash-page),
html:has(body.monite-staff) {
  min-height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  background-color: #0a0b0e;
}

.page-neural-backdrop {
  position: fixed;
  top: calc(-1 * env(safe-area-inset-top, 0px));
  right: calc(-1 * env(safe-area-inset-right, 0px));
  bottom: calc(-1 * env(safe-area-inset-bottom, 0px));
  left: calc(-1 * env(safe-area-inset-left, 0px));
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: #0a0b0e;
  transform: translateZ(0);
}

.monite-neural-backdrop {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  background: #0a0b0e !important;
  transform: translateZ(0);
}

body.monite-staff .page-neural-backdrop,
body.monite-staff .monite-neural-backdrop,
html.monite-staff-root .monite-neural-backdrop {
  z-index: 0 !important;
}

.monite-neural-backdrop__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.monite-neural-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at 50% 45%, transparent 0 36%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
}

.page-neural-backdrop__canvas {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 1;
}

.page-neural-backdrop--fallback {
  background:
    radial-gradient(circle at 50% 45%, transparent 0 36%, rgba(0, 0, 0, 0.18) 100%),
    url('../img/monite-neural-reference.png') center center / cover no-repeat,
    #0a0b0e;
}

body.monite-portal {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  background-color: #000000 !important;
}

body.dash-page {
  background-color: #030712;
}

body.monite-staff {
  min-height: 100vh;
  min-height: 100dvh;
  /* Must stay transparent so .monite-neural-backdrop (z-index:0) is visible */
  background-color: transparent !important;
  background-image: none !important;
}

body.dash-page .page-neural-backdrop {
  z-index: -1;
}

body.aurora-page > :not(.page-neural-backdrop):not(.page-aurora-backdrop):not(.page-stars-backdrop):not(.xa-login-boot-cover):not(.sign-in-viewport) {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .page-neural-backdrop__canvas {
    opacity: 0.85;
  }
}