/* Essence - PWA: offline status pill + installed-app (standalone) behaviour.
   Flat 2.0: solid fill, 1px border, no shadow/gradient/transform. Dark mode via html.dark. */
.pwa-bar {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 8px);
    left: 50%;
    z-index: 9000;
    max-width: calc(100vw - 24px);
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #e8c9bf;
    background: #fdf2f0;
    color: #8a3f2d;
    font: 600 12.5px/1.3 Poppins, system-ui, sans-serif;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    translate: -50% 0;
    transition: opacity .2s ease, visibility .2s ease;
}
.pwa-bar.on { opacity: 1; visibility: visible; }
.pwa-bar.ok { border-color: #c5dbb8; background: #f0f7ec; color: #3f6b2a; }
html.dark .pwa-bar { border-color: #5a3a32; background: #2a1d1a; color: #f0b3a3; }
html.dark .pwa-bar.ok { border-color: #3a4f2e; background: #1c2618; color: #b5d9a0; }
@media (prefers-reduced-motion: reduce) { .pwa-bar { transition: none; } }

/* Installed app: no pull-to-refresh / rubber-band that could drop unsaved work, and no tap flash. */
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
    html, body { overscroll-behavior-y: none; }
    body { -webkit-tap-highlight-color: transparent; }
}
