.pwa-install-dialog {
  width: min(92vw, 420px);
  max-width: 420px;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  border: 0;
  border-radius: 22px;
  padding: 0;
  color: #22345c;
  box-shadow: 0 20px 60px #15356b44;
}
.pwa-install-dialog::backdrop { background: #13254b77; }
.pwa-install-dialog.pwa-install-fallback[open] {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  margin: 0; z-index: 99999; box-shadow: 0 0 0 100vmax #13254b77, 0 20px 60px #15356b44;
}
.pwa-install-card { padding: 28px; text-align: center; background: white; }
.pwa-install-icon { width: 72px; height: 72px; border-radius: 16px; }
.pwa-install-card h2 { margin: 16px 0 8px; font-size: 22px; line-height: 1.35; }
.pwa-install-card p { margin: 0 0 22px; line-height: 1.6; }
.pwa-install-card ol { text-align: left; line-height: 1.7; padding-left: 24px; margin: 18px 0 24px; }
.pwa-install-card li + li { margin-top: 6px; }
.pwa-guide-card { text-align: left; }
.pwa-guide-top { display: flex; align-items: flex-start; justify-content: space-between; }
.pwa-guide-card .pwa-install-icon { width: 58px; height: 58px; }
.pwa-guide-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eef3fc; color: #5d6b83; font: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
.pwa-guide-progress { display: inline-block; margin-top: 10px; color: #2874df; font-size: 13px; font-weight: 700; }
.pwa-guide-card h2 { margin: 8px 0 12px; }
.pwa-guide-card .pwa-guide-instruction { margin: 0 0 16px; font-size: 16px; font-weight: 600; }
.pwa-guide-card .pwa-guide-caption { margin: 12px 0 20px; color: #526582; font-size: 13px; }
.pwa-guide-demo { overflow: hidden; border: 1px solid #dce7f8; border-radius: 15px; background: #f6f9ff; }
.pwa-guide-page { display: flex; align-items: center; justify-content: center; height: 76px; color: #4282d8; font-weight: 700; background: linear-gradient(135deg, #eaf4ff, #d7eaff); }
.pwa-guide-toolbar { display: flex; align-items: center; justify-content: space-around; min-height: 66px; background: #fff; color: #33445f; font-size: 26px; }
.pwa-guide-toolbar > span, .pwa-guide-toolbar > strong { display: flex; align-items: center; justify-content: center; min-width: 43px; }
.pwa-guide-target { color: #1368d5; background: #fff4bd; box-shadow: inset 0 0 0 2px #e6ae26; border-radius: 10px; }
.pwa-guide-toolbar .pwa-guide-target { flex-direction: column; min-height: 54px; font-size: 29px; }
.pwa-guide-target small { font-size: 10px; line-height: 1; }
.pwa-guide-safari .pwa-guide-address { padding: 9px; background: #fff; text-align: center; color: #38506f; }
.pwa-guide-safari .pwa-guide-toolbar { color: #2874df; }
.pwa-guide-safari svg { width: 25px; height: 25px; }
.pwa-guide-menu, .pwa-guide-share { padding: 14px; }
.pwa-guide-menu-title, .pwa-guide-share-title { margin-bottom: 10px; color: #526582; font-size: 13px; }
.pwa-guide-menu-items { display: grid; gap: 7px; }
.pwa-guide-menu-items > *, .pwa-guide-share-row { display: block; padding: 10px 13px; border-radius: 9px; background: #fff; font-size: 15px; font-weight: 500; }
.pwa-guide-menu-items .pwa-guide-target, .pwa-guide-share-row.pwa-guide-target { font-weight: 700; }
.pwa-guide-share-row + .pwa-guide-share-row { margin-top: 8px; }
.pwa-install-actions { display: flex; gap: 10px; justify-content: center; }
.pwa-install-actions button, .pwa-account-install button {
  border: 0; border-radius: 10px; padding: 11px 17px; font: inherit; font-weight: 700;
  color: white; background: #2874df; cursor: pointer;
}
.pwa-install-actions .pwa-install-secondary { background: #eef3fc; color: #304469; }
.pwa-account-install {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px; margin: 24px 0; border-radius: 16px;
  background: #eef5ff; color: #24395e;
}
.pwa-account-install h2 { margin: 0 0 5px; font-size: 20px; }
.pwa-account-install p { margin: 0; }
@media (max-width: 600px) {
  .pwa-guide-card { padding: 20px; }
  .pwa-install-actions, .pwa-account-install { flex-direction: column; }
  .pwa-install-actions button, .pwa-account-install button { width: 100%; }
}
