/* PWA : bannière « nouvelle version », invitation à installer, carte des notifications */
.update-banner {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar) + var(--safe-b) + 12px); z-index: 70;
  max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 16px; border-radius: var(--r-lg); background: #071f43; color: #fff; box-shadow: var(--shadow-lg);
  animation: up .2s ease-out;
}
.update-banner p { flex: 1; margin: 0; font-weight: 600; font-size: .95rem; }
.update-banner .btn { min-height: 42px; padding: 0 16px; font-size: .95rem; }
.update-banner .close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; font-size: 1.1rem; }
.update-banner .close:hover { background: rgba(255,255,255,.12); }
body:has(.login) .update-banner { bottom: calc(var(--safe-b) + 16px); }

.install-card {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar) + var(--safe-b) + 12px); z-index: 65;
  max-width: 560px; margin: 0 auto; padding: 18px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: up .2s ease-out;
}
.install-card .head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.install-card .head img { width: 52px; height: 52px; border-radius: var(--r-md); }
.install-card h2 { font-size: 1.15rem; }
.install-card p { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.install-card .steps { margin: 0 0 14px; padding-left: 20px; color: var(--text); }
.install-card .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.install-card .actions .btn { flex: 1 1 auto; min-height: 44px; font-size: .95rem; }
.install-card .link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .85rem; text-decoration: underline; padding: 6px 2px; width: 100%; }

.push-card { display: flex; gap: 14px; align-items: center; margin: 14px 0 4px; padding: 14px 16px; }
.push-card .bell { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--secret-bg); color: var(--action); }
.push-card .bell svg { width: 22px; height: 22px; }
.push-card p { flex: 1; margin: 0; font-size: .95rem; }
.push-card .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.push-card .btn { min-height: 40px; padding: 0 14px; font-size: .9rem; }

.device-list { display: grid; gap: 8px; }
.device { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.device:first-child { border-top: 0; }
.device span { flex: 1; }
.device .btn { min-height: 38px; padding: 0 12px; font-size: .85rem; }
