/* OnlyShows 0.13.4: one PWA launch surface and keyboard-aware database controls. */

@media (max-width: 719px) {
  :root { --mobile-keyboard-gap: 0px; }

  /* Android may dismiss the IME without blurring the input. Only hide the
     filters while the visual viewport proves that the keyboard is visible. */
  html body.mobile-database-input-active > #mobileWorkspaceDock {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  html body.mobile-database-keyboard-open > #mobileWorkspaceDock {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  html body.mobile-database-input-active .mobile-bottom-shell .mobile-database-actions {
    transform: translateY(calc(
      -1 * var(--mobile-keyboard-height)
      + var(--mobile-keyboard-search-offset)
      - var(--mobile-keyboard-gap)
    )) !important;
  }

  /* The installed app already receives a platform launch surface. Avoid a
     second web splash before the locally rendered library is ready. */
  html.standalone-app:not(.app-ready)::after { display: none !important; }
}
