/* PWA install toast — matches DS4K coral/indigo, no layout takeover */
.ds4k-pwa-toast {
  position: fixed;
  z-index: 9999;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 420px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.ds4k-pwa-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ds4k-pwa-toast-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  border: 2px solid rgba(79, 70, 229, 0.25);
  box-shadow: 0 16px 40px rgba(26, 43, 73, 0.18);
}

.ds4k-pwa-toast-icon {
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #4f46e5;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}

.ds4k-pwa-toast-title {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: #1a2b49;
  line-height: 1.3;
}

.ds4k-pwa-toast-desc {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.45;
}

.ds4k-pwa-toast-actions {
  grid-column: 2;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.ds4k-pwa-toast-install,
.ds4k-pwa-toast-dismiss {
  appearance: none;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 14px;
  cursor: pointer;
}

.ds4k-pwa-toast-install {
  background: #4f46e5;
  color: #fff;
}

.ds4k-pwa-toast-dismiss {
  background: #f1f5f9;
  color: #475569;
}

@media (prefers-reduced-motion: reduce) {
  .ds4k-pwa-toast {
    transition: none;
  }
}
