.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%; }
}

.pwa-guide-selector { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.pwa-guide-selector select { width: 100%; min-height: 42px; padding: 8px; border: 1px solid #cddbec; border-radius: 8px; background: white; color: #22345c; font: inherit; }
.pwa-guide-card .pwa-guide-steps { list-style: none; padding: 0; margin: 0 0 24px; }
.pwa-guide-steps li + li { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e6edf7; }
.pwa-guide-steps h3 { margin: 0 0 8px; font-size: 16px; color: #2874df; }
.pwa-guide-card .pwa-guide-instruction { font-size: 14px; line-height: 1.7; font-weight: 400; }
.pwa-guide-browser-bar { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 10px; padding: 10px; background: white; border-radius: 8px; font-size: 13px; }
.pwa-guide-browser-bar strong { min-width: 36px; padding: 6px; text-align: center; }
.pwa-guide-confirm { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px; }
.pwa-guide-confirm img { width: 44px; height: 44px; border-radius: 10px; }
.pwa-guide-confirm span { margin-left: auto; padding: 10px; font-weight: 700; }
.pwa-account-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.pwa-account-install .pwa-install-secondary { background: white; color: #2874df; border: 1px solid #cddbec; }
.pwa-account-install button[hidden] { display: none; }
.pwa-account-install button:disabled { opacity: .55; cursor: not-allowed; }
.pwa-guide-screenshot { display: block; width: 100%; height: auto; border: 1px solid #dce7f8; border-radius: 12px; }
@media (max-width:600px) { .pwa-account-actions { width: 100%; } }
.pwa-guide-unavailable { padding: 12px; border-radius: 10px; background: #eef5ff; }
.pwa-guide-address { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 0 0 24px; }
.pwa-guide-address label { display: grid; flex: 1 1 240px; gap: 6px; font-size: 14px; }
.pwa-guide-address input { width: 100%; min-height: 42px; box-sizing: border-box; padding: 8px; border: 1px solid #cddbec; border-radius: 8px; background: white; color: #22345c; font: inherit; }
.pwa-guide-address button { min-height: 42px; padding: 8px 14px; border: 1px solid #cddbec; border-radius: 8px; background: #eef5ff; color: #2874df; font: inherit; cursor: pointer; }
.pwa-guide-address [role="status"] { flex-basis: 100%; margin: 0; }
.pwa-install-dialog.pwa-guide-desktop { width: min(92vw, 640px); max-width: 640px; }
.pwa-guide-desktop .pwa-guide-instruction { font-size: 16px; }
.pwa-guide-desktop .pwa-guide-steps li + li { margin-top: 16px; padding-top: 12px; }
