/* Keep the usable app surface outside notches and the system gesture area. */
@media (max-width: 48rem), (max-width: 64rem) and (pointer: coarse) {
  :root {
    --header-height: calc(50px + env(safe-area-inset-top, 0px));
  }

  body > .app-header {
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: max(0.6rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.6rem, env(safe-area-inset-right, 0px));
  }

  body .app-modal,
  body .app-modal-scheda {
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - max(12px, var(--mobile-safe-bottom)));
  }

  body .app-modal {
    margin-bottom: max(12px, var(--mobile-safe-bottom));
  }

  .app-sidebar-drawer {
    padding-bottom: max(12px, var(--mobile-safe-bottom));
  }
}
