.hb-app-entry-prompt {
  width: min(480px, calc(100% - 24px));
  padding: 10px 12px;
  position: fixed;
  inset: auto 50% max(14px, env(safe-area-inset-bottom)) auto;
  translate: 50% 0;
  z-index: 1200;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--hb-border, #d8dde6) 78%, transparent);
  border-radius: var(--hb-radius-xl, 22px);
  color: var(--hb-ink, #101b2b);
  background: color-mix(in srgb, var(--hb-surface, #fff) 94%, transparent);
  box-shadow: var(--hb-shadow-md, 0 18px 50px rgba(2, 16, 37, .2));
  backdrop-filter: blur(18px);
}

.hb-pwa-app .hb-app-entry-prompt { bottom: max(88px, calc(72px + env(safe-area-inset-bottom))); }
.hb-pwa-app:has(#event-surface:not([hidden])) .hb-app-entry-prompt { display: none; }
.hb-app-entry-prompt > img { width: 44px; height: 44px; display: block; border-radius: 13px; }
.hb-app-entry-prompt__copy { min-width: 0; display: grid; gap: 3px; }
.hb-app-entry-prompt__copy b { font-size: 14px; }
.hb-app-entry-prompt__copy small { color: var(--hb-muted, #66758b); font-size: 11px; line-height: 1.65; }
.hb-app-entry-prompt__actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.hb-entry-action {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: var(--hb-radius-md, 14px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}
.hb-app-entry-prompt .hb-entry-action--primary, .hb-install-dialog .hb-entry-action--primary { color: #fff !important; -webkit-text-fill-color: #fff; background: var(--hb-primary, #315cdd); }
.hb-app-entry-prompt .hb-entry-action--secondary, .hb-install-dialog .hb-entry-action--secondary { color: var(--hb-primary, #315cdd) !important; -webkit-text-fill-color: var(--hb-primary, #315cdd); border-color: var(--hb-border, #d8dde6); background: var(--hb-surface, #fff); }
.hb-entry-action:focus-visible, .hb-app-entry-prompt__close:focus-visible { outline: 3px solid color-mix(in srgb, var(--hb-primary, #315cdd) 34%, transparent); outline-offset: 2px; }
.hb-app-entry-prompt__close { width: 34px; height: 34px; padding: 0; position: absolute; inset: -10px auto auto -7px; border: 1px solid var(--hb-border, #d8dde6); border-radius: 50%; color: var(--hb-muted, #66758b); background: var(--hb-surface, #fff); cursor: pointer; }

.hb-install-dialog { width: min(520px, calc(100% - 28px)); padding: 0; border: 0; border-radius: var(--hb-radius-xl, 22px); color: var(--hb-ink, #101b2b); background: var(--hb-surface, #fff); box-shadow: var(--hb-shadow-md, 0 18px 50px rgba(2, 16, 37, .2)); }
.hb-install-dialog::backdrop { background: rgba(16, 27, 43, .72); backdrop-filter: blur(5px); }
.hb-install-dialog[open] { padding: 28px; display: grid; grid-template-columns: 68px 1fr; gap: 20px; }
.hb-install-dialog__icon img { display: block; border-radius: 18px; }
.hb-install-dialog__kicker { margin: 0; color: var(--hb-primary, #315cdd); font-size: 12px; font-weight: 900; }
.hb-install-dialog h2 { margin: 4px 0 8px; color: var(--hb-ink, #101b2b); font-size: 25px; }
.hb-install-dialog p { color: var(--hb-muted, #66758b); line-height: 1.8; }
.hb-install-dialog ol { margin: 16px 0 22px; padding-inline-start: 22px; display: grid; gap: 9px; color: var(--hb-ink, #101b2b); font-size: 14px; line-height: 1.7; }
.hb-install-dialog .hb-entry-action { width: 100%; }

@media (max-width: 640px) {
  .hb-app-entry-prompt { grid-template-columns: 42px minmax(0, 1fr); }
  .hb-app-entry-prompt > img { width: 42px; height: 42px; }
  .hb-install-dialog[open] { padding: 22px; grid-template-columns: 1fr; }
  .hb-install-dialog__icon img { width: 58px; height: 58px; }
}

@media (min-width: 900px) {
  .hb-app-entry-prompt { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hb-app-entry-prompt { animation: hb-entry-arrive .24s ease-out both; }
  @keyframes hb-entry-arrive { from { opacity: 0; translate: 50% 14px; } }
}
