.install-prompt-open {
  overflow: hidden;
}

.install-prompt-modal {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 12px calc(env(safe-area-inset-bottom, 0px) + 12px);
  background: rgba(8, 10, 18, 0.72);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.install-prompt-modal[hidden] {
  display: none !important;
}

.install-prompt-sheet {
  width: min(100%, 440px);
  position: relative;
  max-height: min(calc(100svh - 28px - env(safe-area-inset-bottom, 0px)), 760px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(167, 197, 255, 0.18);
  background: rgba(14, 18, 30, 0.96);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.56);
  -webkit-overflow-scrolling: touch;
}

.install-prompt-sheet .dashboard-action-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.install-prompt-sheet .dashboard-action-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: #f5f9ff;
}

.install-prompt-sheet .dashboard-action-desc {
  margin: 6px 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(205, 222, 255, 0.78);
}

.install-prompt-sheet .dashboard-action-highlight {
  margin: 12px 0 0;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(119, 174, 255, 0.22);
  background: linear-gradient(160deg, rgba(17, 28, 57, 0.94), rgba(11, 19, 40, 0.98));
}

.install-prompt-sheet .dashboard-action-kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(122, 208, 255, 0.88);
}

.install-prompt-sheet .dashboard-action-copy {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.55;
  color: rgba(230, 239, 255, 0.9);
}

.app-install-close {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(201, 225, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(228, 239, 255, 0.82);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}

.install-prompt-modal[data-blocking="true"] .app-install-close {
  display: none;
}

.app-install-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.app-install-hero img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.app-install-meta {
  min-width: 0;
}

.app-install-meta strong {
  display: block;
  font-size: 1rem;
  color: #f5f9ff;
}

.app-install-meta span {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  color: rgba(194, 214, 255, 0.72);
}

.app-install-benefits {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.app-install-benefit {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid rgba(172, 204, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.app-install-benefit strong {
  font-size: 0.82rem;
  color: #f0f6ff;
}

.app-install-benefit span {
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(198, 217, 255, 0.72);
}

.app-install-steps {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: rgba(230, 239, 255, 0.92);
}

.app-install-steps[hidden] {
  display: none !important;
}

.app-install-steps li {
  padding-left: 4px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.app-install-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.app-install-btn {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.app-install-btn:hover {
  filter: brightness(1.04);
}

.app-install-btn:active {
  transform: translateY(1px);
}

.app-install-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, rgba(78, 227, 255, 0.98), rgba(56, 105, 255, 0.98));
  box-shadow: 0 16px 34px rgba(40, 98, 240, 0.34);
}

.app-install-btn-secondary {
  color: rgba(207, 222, 255, 0.76);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(198, 216, 255, 0.12);
  box-shadow: none;
}

@media (max-width: 680px) {
  .install-prompt-modal {
    padding: 16px 12px calc(env(safe-area-inset-bottom, 0px) + 12px);
  }

  .install-prompt-sheet {
    width: 100%;
  }
}
