/* PWA (installed app) styles. Loaded after style.css. See docs/PWA.md. */

/* Installed on a phone with a notch: keep the top bar and bottom nav clear of it.
   index.html already sets viewport-fit=cover. */
@media (max-width: 860px) {
  .pwa-standalone .topbar { padding-top: env(safe-area-inset-top); height: calc(54px + env(safe-area-inset-top)); }
  .pwa-standalone .dropdown, .pwa-standalone .actions .dropdown { top: calc(58px + env(safe-area-inset-top)); }
}
/* Installed apps don't need text selection on chrome, and should not bounce-scroll the page. */
.pwa-standalone body { overscroll-behavior: none; }

.pwa-banner {
  position: fixed; left: 10px; right: 10px; z-index: 900;
  bottom: calc(66px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel-2); color: var(--text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35); font-size: 13px; font-weight: 600;
  animation: pwa-in .25s var(--ease);
}
.pwa-banner span { flex: 1; }
.pwa-banner img { border-radius: 7px; }
@keyframes pwa-in { from { transform: translateY(12px); opacity: 0; } }

.pwa-sheet {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, .5); padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
}
.pwa-sheet-card {
  width: 100%; max-width: 420px; padding: 20px; border-radius: 18px;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--text);
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.pwa-sheet-card img { border-radius: 11px; }
.pwa-sheet-card h3 { margin: 0; font-size: 17px; }
.pwa-sheet-card ol { margin: 0; padding-left: 20px; line-height: 1.6; color: var(--text-2); font-size: 14px; }
.pwa-sheet-card .btn { align-self: stretch; justify-content: center; height: 42px; }
