/* A translucent iOS status bar lets the app repaint its background on theme changes.
   Mid-grey in the light theme keeps native light status glyphs readable. */
:root { --app-status-background: #757575; }
html[data-theme=dark] { --app-status-background: #101318; }
@media (display-mode: standalone) {
  body::before,
  dialog.notification-drawer::after {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: env(safe-area-inset-top, 0px);
    background: var(--app-status-background);
    pointer-events: none;
    z-index: 10000;
  }
  body .topbar { top: env(safe-area-inset-top, 0px); }
  body.app-home-page .topbar { top: auto; }
}
