.pwa-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 1090;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 16px;
  color: #f9fafb;
  background: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  animation: pwa-banner-in 0.25s ease-out;
}

.pwa-banner__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.pwa-banner__body {
  flex: 1 1 180px;
  min-width: 0;
}

.pwa-banner__body strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.pwa-banner__body p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(249, 250, 251, 0.7);
}

.pwa-banner__share {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin: 0 2px;
  vertical-align: -0.2em;
  color: #60a5fa;
}

.pwa-banner__actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.pwa-banner__btn {
  padding: 8px 16px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--bs-primary, #0d6efd);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.pwa-banner__btn--ghost {
  color: rgba(249, 250, 251, 0.8);
  background: transparent;
}

.pwa-banner__btn:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

@keyframes pwa-banner-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

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

.pwa-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 1091;
  max-width: min(420px, calc(100vw - 24px));
  padding: 10px 16px;
  color: #f9fafb;
  background: #1f2937;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  font: 0.875rem/1.4 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: center;
  transform: translateX(-50%);
}

.pwa-toast[hidden] {
  display: none;
}
