.app-install-prompt {
  position: fixed;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 14px;
  z-index: 90;
  display: none;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid rgba(207, 234, 223, 0.34);
  border-radius: 18px;
  background: rgba(16, 32, 33, 0.96);
  color: #fff;
  box-shadow: 0 22px 70px rgba(10, 25, 26, 0.34);
  padding: 13px;
  padding-bottom: calc(13px + env(safe-area-inset-bottom));
  backdrop-filter: blur(18px);
}

.app-install-prompt.show {
  display: grid;
}

.app-install-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  background: #fffdf8;
}

.app-install-icon img {
  width: 36px;
  height: 36px;
  display: block;
}

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

.app-install-body h2 {
  margin: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
}

.app-install-body p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.5;
}

.app-install-steps {
  display: none;
  margin-top: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px;
}

.app-install-prompt.expanded .app-install-steps {
  display: block;
}

.app-install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.app-install-actions button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  padding: 9px 13px;
}

.app-install-primary {
  background: #e6ad30;
  color: #251a00;
}

.app-install-secondary {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.app-install-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

@media (min-width: 821px) {
  .app-install-prompt.show {
    display: none;
  }
}

@media (max-width: 720px) {
  body {
    -webkit-text-size-adjust: 100%;
  }

  header nav {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  header nav a,
  header nav button,
  button,
  input,
  select,
  textarea {
    touch-action: manipulation;
  }
}
