/* "Add this site to your phone" guide (js/install.js). */
dialog.ins-dialog { width: min(520px, calc(100vw - 24px)); }

.ins-head { display: flex; gap: 16px; align-items: center; }
.ins-head h2 { margin: 0 0 4px; }
.ins-head p { font-size: 0.95rem; }
.ins-app { flex: none; display: grid; justify-items: center; gap: 5px; font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.ins-app img { border-radius: 15px; box-shadow: var(--shadow); display: block; }

.ins-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  background: var(--surface-2); border-radius: 999px;
}
.ins-tabs button {
  appearance: none; border: 0; background: none; color: var(--muted); cursor: pointer;
  font: inherit; font-weight: 600; padding: 9px 12px; border-radius: 999px; min-height: 44px;
}
.ins-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

#ins-panel { display: grid; gap: 14px; }
.ins-steps { list-style: none; counter-reset: ins; margin: 0; padding: 0; display: grid; gap: 10px; }
.ins-steps li {
  counter-increment: ins; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start;
  line-height: 1.45;
}
.ins-steps li::before {
  content: counter(ins); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-weight: 700; font-variant-numeric: tabular-nums;
}
.ins-steps li > span { padding-top: 4px; }
.ins-steps small { display: block; color: var(--muted); font-size: 0.86rem; margin-top: 2px; }

.ins-key {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin: 0 2px; vertical-align: -8px;
  border: 1px solid var(--border-strong, var(--border)); border-radius: 8px; background: var(--surface-2); color: var(--accent);
}
.ins-key svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ins-key svg .fill { fill: currentColor; stroke: none; }

.ins-note { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.ins-note.warn { color: var(--text); background: var(--danger-soft, var(--surface-2)); border-radius: 10px; padding: 10px 12px; }
.ins-direct { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ins-later { font-size: 0.82rem; }

@media (max-width: 420px) {
  .ins-head { align-items: flex-start; }
  .ins-app img { width: 52px; height: 52px; border-radius: 12px; }
}
