.pwa-install-prompt {
  display: none;
  position: fixed;
  bottom: calc(96px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 1039;
  width: min(90%, 400px);
  padding: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateX(-50%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, .12), 0 8px 10px -6px rgba(15, 23, 42, .08);
  font-family: inherit;
  animation: slideUpPwa .5s cubic-bezier(.16, 1, .3, 1);
}

.pwa-install-prompt[hidden] { display: none !important; }
.pwa-content { display: flex; min-width: 0; flex: 1; align-items: center; gap: 12px; }
.pwa-icon { width: 45px; height: 45px; flex: 0 0 45px; border-radius: 10px; }
.pwa-text { min-width: 0; }
.pwa-text h6 { margin: 0; color: #0f172a; font-size: 1rem; font-weight: 700; }
.pwa-text p { margin: 0; color: #64748b; font-size: .8rem; font-weight: 500; line-height: 1.4; }
.pwa-actions { display: flex; align-items: center; gap: 6px; }
.btn-pwa-install {
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: #007a33;
  color: #fff;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-pwa-close {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}
.btn-pwa-install:focus-visible,
.btn-pwa-close:focus-visible { outline: 3px solid rgba(0, 122, 51, .3); outline-offset: 2px; }

@keyframes slideUpPwa {
  from { opacity: 0; transform: translate(-50%, 24px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 420px) {
  .pwa-install-prompt { bottom: calc(20px + env(safe-area-inset-bottom)); padding: 12px; }
  body.layout-fixed .pwa-install-prompt { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .pwa-actions { gap: 2px; }
  .btn-pwa-install { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .pwa-install-prompt { animation: none; }
}