/* Hide protected content until the synchronous home-screen guard authorises it. */
@media (display-mode: standalone) {
  html:not([data-vf-unlocked]) body.dashboard-body { display:none !important; pointer-events:none !important; }
}
html[data-vf-locked] body { display:none !important; pointer-events:none !important; }
html[data-vf-locked] { background:#fff !important; overflow:hidden !important; }
html[data-vf-locked]::after {
  content:'Connexion requise. Retouchez l’écran pour réessayer.';
  position:fixed; inset:0; display:grid; place-content:center;
  padding:2rem; text-align:center; font:16px system-ui,sans-serif;
  color:#17243c; background:#fff; z-index:2147483647;
}

/* iPhone UX: 16px prevents Safari/Web App automatic zoom when a field receives focus. */
.login-form input { font-size:16px !important; }

/* The menu closes by tapping the backdrop or a destination; keep the logo area clean. */
.drawer-close { display:none !important; }
