/* Install prompt shell */
.pwa-install {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(7, 13, 22, 0.34);
  backdrop-filter: blur(2px);
}

.pwa-install.show {
  display: flex;
}

.pwa-install-card {
  width: min(100%, 420px);
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(10, 20, 30, 0.08);
  box-shadow: 0 20px 50px rgba(10, 20, 30, 0.22);
  overflow: hidden;
}

.pwa-install-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #2f5f80, #244b68);
  color: #fff;
}

.pwa-install-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0;
}

.pwa-install-body,
.pwa-install-note {
  padding: 12px 14px 0;
  color: #1f2937;
}

.pwa-install-note {
  font-size: 0.94rem;
  color: #4b5563;
}

.pwa-install-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px;
}

/* App-like look in installed mode */
@media (display-mode: standalone) {
  html,
  body {
    height: 100%;
    overscroll-behavior: none;
  }

  body {
    min-height: 100dvh;
  }
}

html.is-standalone body,
body.is-standalone {
  min-height: 100dvh;
  overscroll-behavior: none;
}

html.is-standalone .pwa-install,
body.is-standalone .pwa-install {
  display: none !important;
}
