/* Install bar, update bar and the offline notes (rung 34). Quiet: no animation, nothing modal. */
.pwa-bar, .pwa-update { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 900; max-width: calc(100vw - 32px); box-sizing: border-box; }
.pwa-bar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; background: var(--panel); color: var(--ink); border: 2px solid var(--edge); border-radius: var(--pill); box-shadow: var(--shadow); font-size: 15px; font-weight: 700; }
.pwa-face { width: 30px; height: 30px; flex: none; }
.pwa-msg { min-width: 0; }
.pwa-go { font: inherit; font-weight: 800; padding: 6px 14px; border-radius: var(--pill); border: 2px solid var(--edge); background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.pwa-x { font: inherit; font-size: 20px; line-height: 1; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.pwa-go:focus-visible, .pwa-x:focus-visible, .pwa-update:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pwa-update { font: inherit; font-weight: 800; font-size: 15px; padding: 10px 18px; border-radius: var(--pill); border: 2px solid var(--edge); background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); cursor: pointer; }
.pwa-offline { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: var(--foam); border: 2px dashed var(--edge); color: var(--ink); font-size: 14px; font-weight: 700; }
.pwa-mapnap { position: absolute; left: 12px; bottom: 36px; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: var(--pill); background: color-mix(in srgb, var(--canvas) 92%, transparent); border: 2px dashed var(--edge); color: var(--muted); font-size: 13px; font-weight: 700; pointer-events: none; }
.pwa-mapnap svg { width: 34px; height: 34px; flex: none; }
.offline #map { background: var(--canvas); }
#ios-install { color: var(--muted); }
@media (max-width: 640px) { .pwa-bar { width: calc(100vw - 24px); } .pwa-msg { flex: 1; font-size: 14px; } }
/* design 2026-11-23: the install bar stays off a card that is open (it sat on top of the card's photo and text) */
body.card-open .pwa-bar, body:has(.mm-pop) .pwa-bar, body:has(#sheet:not([hidden])) .pwa-bar { display: none; }
