/* Installation is optional; this opens browser guidance, never a forced download. */
.appInstallEntry, [data-app-install] { min-height: 44px; touch-action: manipulation; }
.appInstallEntry {
  margin: 18px 0 0; padding: 10px 20px; border: 1px solid #7995a7;
  border-radius: 9px; background: #142732; color: #e4f3f9;
  font: 650 14px/1.4 system-ui, sans-serif; cursor: pointer;
}
[data-app-install]:disabled { opacity: .65; cursor: default; }
.appInstallStatus:empty { display: none; }
.appInstallStatus {
  position: fixed; z-index: 240; bottom: max(12px, env(safe-area-inset-bottom, 0px));
  left: 50%; transform: translateX(-50%); width: min(480px, calc(100vw - 32px));
  max-height: 28dvh; overflow-y: auto; box-sizing: border-box; margin: 0; padding: 12px 16px;
  border: 1px solid #525c7c; border-radius: 10px; background: #121827; color: #e9effb;
  font: 400 13px/1.45 system-ui, sans-serif;
}
#appInstallHelp:not([open]) { display: none !important; }
#appInstallHelp[open] {
  display: flex; flex-direction: column; box-sizing: border-box;
  width: min(520px, calc(100vw - 32px)); max-width: none;
  max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  padding: 0; overflow: hidden; border: 1px solid #525c7c; border-radius: 16px;
  background: #121827; color: #e9effb; box-shadow: 0 20px 80px #0008;
  font: 400 15px/1.5 system-ui, sans-serif; touch-action: pan-y pinch-zoom;
}
#appInstallHelp::backdrop { background: #04070fc7; }
#appInstallHelp header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; border-bottom: 1px solid #303b54; }
#appInstallHelp h2 { margin: 0; color: #edf2fc; font: 750 19px/1.3 system-ui, sans-serif; }
#appInstallHelp .appInstallBody { min-height: 0; padding: 16px 20px; overflow-y: auto; overscroll-behavior: contain; }
#appInstallHelp p { margin: 0; }
#appInstallHelp ol { display: grid; gap: 12px; margin: 18px 0; padding-left: 24px; }
#appInstallHelp li::marker { color: #bbd2f9; font-weight: 750; }
#appInstallHelp .appInstallNote { color: #b4bfd4; font-size: 13px; }
#appInstallHelp footer { padding: 12px 16px; border-top: 1px solid #303b54; }
#appInstallHelp header, #appInstallHelp footer { flex: 0 0 auto; }
#appInstallHelp button { min-width: 44px; min-height: 44px; padding: 10px 16px; border: 1px solid #718ebd; border-radius: 10px; background: #d2e5ff; color: #18243d; font: 700 14px/1.4 system-ui, sans-serif; touch-action: manipulation; cursor: pointer; }
#appInstallHelp header button { flex: 0 0 44px; width: 44px; padding: 0; background: #1e2940; color: #edf2fc; font-size: 25px; }
#appInstallHelp footer button { width: 100%; }
#appInstallHelp button:focus-visible, [data-app-install]:focus-visible { outline: 3px solid #eac985; outline-offset: 3px; }
