.pwa-install {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 10050;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #1c1c1e;
  font-family: var(--font-sf, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif);
  animation: pwaInstallIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

html.dark .pwa-install,
[data-theme="dark"] .pwa-install {
  background: rgba(28, 28, 30, 0.94);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f5f5f7;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.pwa-install img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
}

.pwa-install-copy {
  min-width: 0;
  flex: 1;
}

.pwa-install-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pwa-install-copy span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: #6e6e73;
}

html.dark .pwa-install-copy span,
[data-theme="dark"] .pwa-install-copy span {
  color: #a1a1aa;
}

.pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pwa-install-btn {
  border: 0;
  border-radius: 999px;
  height: 36px;
  padding: 0 14px;
  background: #007aff;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.pwa-install-later {
  border: 0;
  background: transparent;
  color: #6e6e73;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 8px;
}

@keyframes pwaInstallIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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