.mf-install-panel {
  position: fixed;
  z-index: 21000;
  inset-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  width: min(460px, calc(100vw - 24px));
  margin-inline: auto;
  padding: 14px;
  color: #10284f;
  background: rgba(255, 255, 255, .98);
  border: 1px solid #d4e4f3;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(4, 24, 55, .22);
  font: 14px/1.4 system-ui, sans-serif;
}
.mf-install-brand,
.mf-install-brand img { width: 42px; height: 42px; }
.mf-install-brand img { display: block; border-radius: 12px; }
.mf-install-content { min-width: 0; }
.mf-install-content > strong { display: block; font-size: 14px; font-weight: 800; }
.mf-install-copy { margin: 4px 0 10px; color: #526783; font-size: 12px; }
.mf-install-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mf-install-primary,
.mf-install-dismiss { min-height: 36px; padding: 0 13px; border: 0; border-radius: 11px; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.mf-install-primary { color: #fff; background: linear-gradient(115deg, #0b1f4d, #2d8bc5 68%, #45b9e8); }
.mf-install-dismiss { color: #526783; background: #eff5fa; }
.mf-install-steps { grid-column: 1 / -1; margin: 10px 0 0; padding: 10px 12px 10px 30px; border-radius: 12px; background: #f1f7fc; color: #264466; font-size: 12px; }
.mf-install-steps li + li { margin-top: 5px; }
html[data-theme="dark"] .mf-install-panel,
body[data-theme="dark"] .mf-install-panel { color: #edf5ff; background: rgba(24, 30, 39, .98); border-color: #3b4654; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); }
html[data-theme="dark"] .mf-install-copy,
body[data-theme="dark"] .mf-install-copy,
html[data-theme="dark"] .mf-install-dismiss,
body[data-theme="dark"] .mf-install-dismiss { color: #c5d0dd; }
html[data-theme="dark"] .mf-install-dismiss,
body[data-theme="dark"] .mf-install-dismiss,
html[data-theme="dark"] .mf-install-steps,
body[data-theme="dark"] .mf-install-steps { background: #303945; }
html[data-theme="dark"] .mf-install-steps,
body[data-theme="dark"] .mf-install-steps { color: #e4edf6; }
@media (max-width: 700px) {
  .mf-install-panel { bottom: calc(82px + env(safe-area-inset-bottom)); border-radius: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .mf-install-panel { animation: mf-install-enter .24s ease-out both; }
  @keyframes mf-install-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
