.install-prompt {
  position: fixed;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 8;
  width: min(440px, calc(100vw - 30px));
  min-height: 76px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 12px;
  padding: 12px 10px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(23, 49, 39, .16);
}

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

.install-app-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-size: 21px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.install-prompt-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.install-prompt-copy strong {
  font-size: 14px;
}

.install-prompt-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.install-prompt-close {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.install-guide-card {
  width: min(100%, 430px);
}

.install-guide-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}

.install-guide-heading h2 {
  margin: 2px 0 0;
  font-size: 22px;
}

.install-guide-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.install-steps {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: install-step;
}

.install-steps li {
  position: relative;
  min-height: 40px;
  padding: 9px 10px 9px 45px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7f9f7;
  color: var(--ink);
  font-size: 13px;
  counter-increment: install-step;
}

.install-steps li::before {
  position: absolute;
  left: 10px;
  top: 8px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-2);
  font-size: 12px;
  font-weight: 800;
  content: counter(install-step);
}

@media (max-width: 520px) {
  .install-prompt {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    grid-template-columns: 42px minmax(0, 1fr) auto 28px;
    gap: 9px;
    padding-left: 11px;
  }

  .install-prompt .install-app-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .install-prompt-copy span {
    max-width: 145px;
  }

  .install-prompt .btn {
    padding: 8px 10px;
  }
}

@media (max-width: 390px) {
  .install-prompt-copy span {
    display: none;
  }
}

@media (display-mode: standalone) {
  .install-prompt {
    display: none;
  }
}
