.pwa-tools { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.pwa-tools [hidden] { display:none !important; }
.pwa-install,.pwa-update,.pwa-dialog button { font:inherit; font-size:12px; font-weight:600; color:#16794f; background:#edf7f1; border:1px solid #bcd9ca; border-radius:12px; min-height:44px; padding:10px 14px; cursor:pointer; }
.pwa-update { color:#b42318; background:#fff1ef; border-color:#f4c8c2; }
.pwa-connection { color:#9a410c; font-size:12px; max-width:240px; }
.pwa-dialog { width:min(420px,calc(100% - 32px)); box-sizing:border-box; padding:24px; border:1px solid #d9e1df; border-radius:20px; color:#0f1729; font-family:inherit; }
.pwa-dialog::backdrop { background:rgb(15 23 41 / 45%); }
.pwa-dialog h2 { font-size:20px; }.pwa-dialog p { line-height:1.6; }
@media(max-width:760px) {
 .topbar-right { min-width:0; flex-wrap:wrap; gap:8px; }
 .pwa-tools { justify-content:flex-end; }
 input,select,textarea { font-size:max(16px,1em); }
 .pwa-dialog button { width:100%; }
 .pwa-page-update { position:fixed; z-index:80; right:14px; bottom:calc(94px + env(safe-area-inset-bottom)); max-width:calc(100vw - 28px); box-shadow:0 8px 24px rgb(15 23 41 / 28%); }
}
@media(display-mode:standalone) { html { overscroll-behavior-y:contain; } }
