/* A quiet ambient layer behind the app gives the navigation glass depth.
   Keep .shell free of a stacking context so its sidebar retains the existing
   ordering with the mobile dimmer, bottom navigation, and floating controls. */
#app {
  isolation: isolate;
}

.ambient-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 0% 14%, rgba(99, 46, 137, .24), transparent 52%),
    radial-gradient(ellipse at 6% 92%, rgba(116, 38, 91, .16), transparent 48%),
    var(--bg-app, #08070e);
}

.shell .sidebar {
  background: rgba(12, 11, 20, .7);
  -webkit-backdrop-filter: blur(32px);
  backdrop-filter: blur(32px);
  border-right: 1px solid rgba(255, 255, 255, .06);
}

/* Maintain contrast when the browser cannot blur content behind the drawer. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .shell .sidebar {
    background: rgba(12, 11, 20, .96);
  }
}
