/* The install card (site/pwa.js), shared by the admin website and the owner's phone app. */
.jmi-bg { position: fixed; inset: 0; z-index: 200; background: rgba(4, 10, 20, .55); display: grid; place-items: center; padding: 16px; }
.jmi-card {
  position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; color: #101828; border-radius: 20px; padding: 22px 20px 20px; box-shadow: 0 24px 60px rgba(4, 10, 20, .35);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; font-size: 14px; line-height: 1.5;
}
@media (max-width: 560px) { .jmi-bg { place-items: end stretch; padding: 0; } .jmi-card { max-width: none; border-radius: 20px 20px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); } }
.jmi-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 26px; line-height: 1; color: #94a3b8; cursor: pointer; padding: 4px 8px; }
.jmi-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; padding-right: 26px; }
.jmi-icon { width: 56px; height: 56px; border-radius: 15px; flex: none; }
.jmi-head h2 { margin: 0 0 2px; font-size: 18px; letter-spacing: -.01em; }
.jmi-head p { margin: 0; color: #5b6b80; font-size: 13px; }
.jmi-go {
  width: 100%; padding: 15px; border: 0; border-radius: 14px; cursor: pointer; font: inherit; font-size: 17px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #14b8a6, #4f46e5); box-shadow: 0 10px 28px rgba(79, 70, 229, .32);
}
.jmi-go:disabled { opacity: .6; }
.jmi-foot { margin: 8px 0 0; font-size: 12px; color: #64748b; }
.jmi-done { padding: 14px; border-radius: 12px; background: #dcfce7; color: #166534; font-weight: 600; }
.jmi-note { padding: 10px 12px; border-radius: 10px; background: #fef3c7; color: #92400e; font-size: 12.5px; margin-bottom: 12px; }
.jmi-steps-title { font-weight: 700; margin-bottom: 8px; }
.jmi-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.jmi-steps li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #f1f5f9; }
.jmi-n { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: #ccfbf1; color: #0f766e; }
.jmi-phone { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.jmi-phone p { margin: 2px 0 8px; color: #5b6b80; font-size: 12.5px; }
.jmi-qr { width: 132px; height: 132px; flex: none; padding: 6px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; }
.jmi-qr svg { width: 100%; height: 100%; display: block; }
.jmi-link { display: flex; gap: 6px; align-items: center; }
.jmi-link code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; background: #f1f5f9; padding: 4px 8px; border-radius: 8px; }
.jmi-link button { flex: none; border: 1px solid #cbd5e1; background: #fff; border-radius: 8px; padding: 4px 9px; font: inherit; font-size: 12px; cursor: pointer; }
@media (max-width: 560px) { .jmi-phone { display: none; } }
@media (prefers-color-scheme: dark) {
  .jmi-card { background: #121c2e; color: #e6edf6; }
  .jmi-head p, .jmi-phone p, .jmi-foot { color: #a6b4c8; }
  .jmi-steps li { background: #17233a; }
  .jmi-n { background: #134e4a; color: #99f6e4; }
  .jmi-link code { background: #17233a; }
  .jmi-link button { background: #17233a; color: #e6edf6; border-color: #2d4063; }
  .jmi-phone { border-top-color: #22324d; }
}

/* "Install the app" strip on a phone that hasn't installed it yet */
.jmi-strip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 0 12px; border-radius: 14px;
  background: rgba(20, 184, 166, .12); border: 1px solid rgba(20, 184, 166, .35); font-size: 13.5px; }
.jmi-strip button { border: 0; background: none; font: inherit; cursor: pointer; color: inherit; }
.jmi-strip .jmi-strip-go { flex: 1; text-align: left; padding: 0; }
.jmi-strip .jmi-strip-x { font-size: 20px; line-height: 1; opacity: .55; padding: 0 4px; }
