html.pwa-help-open,
body.pwa-help-open {
  overflow: hidden !important;
}

.pwa-install-sheet {
  max-height: calc(100dvh - 36px);
  overflow: auto;
  overscroll-behavior: contain;
}

.pwa-ios-steps {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.pwa-ios-steps li {
  min-height: 54px;
  padding: 8px 14px 8px 10px;
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 9px;
  border: 1px solid #ffffff16;
  border-radius: 14px;
  background: #ffffff0a;
}

.pwa-ios-steps li > b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #d8ff3e17;
  color: var(--lime, #d8ff3e);
}

.pwa-ios-steps li > span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pwa-ios-steps svg {
  flex: 0 0 20px;
  color: var(--lime, #d8ff3e);
}

.pwa-ios-note {
  margin-top: 16px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}

@media (max-width: 700px) {
  .pwa-install-card {
    bottom: calc(88px + env(safe-area-inset-bottom));
    min-height: 72px;
    padding: 8px 54px 8px 8px;
    grid-template-columns: 48px minmax(0, 1fr) 44px;
    gap: 9px;
    border-radius: 18px;
  }

  .pwa-install-card > img {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .pwa-install-copy small { font-size: 10px; }
  .pwa-install-copy strong { font-size: 14px; }

  .pwa-install-action {
    grid-column: 3;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border-radius: 13px;
  }

  .pwa-install-action span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .pwa-install-close {
    top: -14px;
    right: -4px;
    width: 36px;
    height: 36px;
    border: 1px solid #ffffff14;
    background: #222820;
  }

  .pwa-install-backdrop {
    align-items: end;
    height: 100dvh;
    max-height: 100dvh;
    padding: calc(8px + env(safe-area-inset-top)) 8px calc(8px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  .pwa-install-sheet {
    flex: 0 0 auto;
    max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    margin: 0;
    padding: 18px;
    border-radius: 24px;
    scroll-padding-top: 68px;
    touch-action: pan-y;
  }

  .pwa-install-sheet > img {
    width: 58px;
    height: 58px;
    border-radius: 17px;
  }

  .pwa-install-sheet > small { margin-top: 13px; }
  .pwa-install-sheet h2 { font-size: 24px; }
  .pwa-install-sheet p { font-size: 15px; }
}

@media (max-width: 430px) and (max-height: 740px) {
  .pwa-install-sheet {
    padding: 14px 16px 16px;
  }

  .pwa-install-sheet > img {
    width: 48px;
    height: 48px;
  }

  .pwa-install-sheet > small {
    margin-top: 8px;
  }

  .pwa-install-sheet h2 {
    margin: 5px 48px 7px 0;
    font-size: 21px;
  }

  .pwa-install-sheet p {
    font-size: 13px;
    line-height: 1.45;
  }

  .pwa-ios-steps {
    gap: 7px;
    margin-top: 12px;
  }

  .pwa-ios-steps li {
    min-height: 48px;
    padding-block: 6px;
  }
}
