.appoInstallCard {
  position: fixed;
  z-index: 10000;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 20px;
  background: rgba(255, 255, 255, .97);
  color: #14243b;
  box-shadow: 0 18px 52px rgba(20, 36, 59, .24);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  animation: appoInstallEnter .24s ease-out both;
}

.appoInstallCard[hidden] { display: none; }
.appoInstallCard img { width: 54px; height: 54px; object-fit: contain; border-radius: 0; }
.appoInstallCopy { min-width: 0; }
.appoInstallCopy strong { display: block; font-size: 16px; line-height: 1.25; }
.appoInstallCopy span { display: block; margin-top: 3px; color: #5a6c82; font-size: 13px; line-height: 1.35; }
.appoInstallActions { display: flex; gap: 8px; align-items: center; }
.appoInstallPrimary,
.appoInstallLater {
  min-height: 42px;
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.appoInstallPrimary { border: 0; background: #006edc; color: #fff; }
.appoInstallLater { border: 1px solid #d5dde7; background: #fff; color: #405269; }
.appoInstallHelp {
  position: fixed;
  z-index: 10001;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 16px max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(9, 22, 40, .5);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.appoInstallHelp[hidden] { display: none; }
.appoInstallHelpPanel { width: min(100%, 520px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 22px; border-radius: 24px; background: #fff; color: #14243b; box-shadow: 0 22px 70px rgba(9, 22, 40, .32); }
.appoInstallHelpPanel h2 { margin: 0; font-size: 21px; }
.appoInstallHelpPanel p { margin: 10px 0 0; color: #53647a; line-height: 1.5; }
.appoInstallHelpPanel ol { margin: 16px 0 0; padding-left: 22px; line-height: 1.7; }
.appoShareHint { display: grid; justify-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border: 2px solid #8ac4ff; border-radius: 18px; background: #eef7ff; text-align: center; }
.appoShareHint > span:last-child { display: grid; gap: 4px; }
.appoShareHint strong { font-size: 16px; line-height: 1.3; }
.appoShareHint small { color: #52677f; font-size: 13px; line-height: 1.35; }
.appoSafariIconPath { display: flex; align-items: center; justify-content: center; gap: 10px; }
.appoMenuIcon,
.appoShareIcon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; }
.appoMenuIcon { background: #e3e8ef; color: #15243a; font-size: 25px; font-weight: 800; letter-spacing: 1px; line-height: 1; }
.appoShareIcon { background: #007aff; color: #fff; box-shadow: 0 7px 16px rgba(0, 122, 255, .22); }
.appoShareIcon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.appoPathArrow { color: #007aff; font-size: 24px; font-weight: 900; }
.appoSafariVariant { margin-top: 8px; color: #607187; font-size: 12px; line-height: 1.35; text-align: center; }
.appoGuideArrow { height: 22px; color: #007aff; font-size: 23px; font-weight: 800; line-height: 22px; text-align: center; }
.appoInstallHelpPanel .appoInstallSteps { display: grid; gap: 8px; margin-top: 0; padding: 0; list-style: none; counter-reset: appo-step; line-height: 1.3; }
.appoInstallSteps li { position: relative; display: grid; gap: 2px; min-height: 42px; padding: 7px 48px 7px 52px; border-radius: 13px; background: #f5f7fa; counter-increment: appo-step; }
.appoInstallSteps li::before { position: absolute; top: 8px; left: 10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #007aff; color: #fff; content: counter(appo-step); font-weight: 800; }
.appoInstallSteps li > span:not(.appoInlineShareIcon) { color: #5a6c82; font-size: 13px; }
.appoInlineShareIcon { display: inline-grid; place-items: center; position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; border-radius: 9px; background: #e2f1ff; color: #007aff; }
.appoInlineShareIcon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.appoInlineMenuIcon { display: inline-grid; place-items: center; position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; border-radius: 9px; background: #e3e8ef; color: #15243a; font-size: 16px; font-weight: 800; letter-spacing: .5px; line-height: 1; }
.appoInstallBrowserLink,
.appoInstallHelpPanel button { width: 100%; margin-top: 18px; min-height: 46px; border-radius: 14px; font: inherit; font-weight: 700; cursor: pointer; }
.appoInstallBrowserLink { display: flex; align-items: center; justify-content: center; padding: 0 16px; background: #006edc; color: #fff; text-align: center; text-decoration: none; }
.appoInstallHelpPanel button { border: 1px solid #d5dde7; background: #fff; color: #405269; }
.appoInstallBrowserLink + .appoInstallHelpClose { margin-top: 10px; }

@keyframes appoInstallEnter { from { opacity: 0; transform: translateY(16px); } }

@media (max-width: 620px) {
  .appoInstallCard { grid-template-columns: 48px minmax(0, 1fr); }
  .appoInstallCard img { width: 48px; height: 48px; }
  .appoInstallActions { grid-column: 1 / -1; }
  .appoInstallPrimary { flex: 1; }
  .appoInstallHelpPanel { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .appoInstallCard { animation: none; }
}
