/* Installed app (Home Screen) full height. Load LAST.
   iOS 26 standalone WebKit with viewport-fit=cover + black-translucent reports 100dvh, 100% and inset:0 short by the
   top safe-area inset, so a blank band shows under the dock / sign-in. The large viewport (100lvh) is the whole
   screen there. Browsers (non-standalone) are untouched. While the keyboard is open the visual-viewport heights
   (--app-height / --auth-height, set in app.js / cinematic-entry.js) still win. */
@media (display-mode: standalone) {
  html { height: 100vh; height: 100lvh; }

  /* sign-in and intro */
  body[data-public-page="login"] { height: var(--auth-height, 100vh); }
  @supports (height: 100lvh) { body[data-public-page="login"] { height: var(--auth-height, 100lvh); } }
  html body.public-body:has(.public-page.active[data-page="login"]) #public-shell { height: 100%; }
  #cinematic-entry,
  .boot-screen,
  .first-login-overlay { bottom: auto; height: 100vh; height: 100lvh; }

  /* authenticated shell: dock on the physical bottom edge */
  body.app-body,
  body.app-body:not(.keyboard-open) #app { bottom: auto; height: 100vh; height: 100lvh; }
}
