/* Installation stays in Settings; supported browsers open their own install sheet. */
#pwaInstallSection { min-width: 0; }
#pwaInstallButton {
  min-height: 44px;
  gap: 8px;
  padding: 10px 16px;
  border-color: color-mix(in srgb, var(--accent) 23%, white);
  color: var(--accent-hover);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 650;
}
#pwaInstallButton:hover { background: color-mix(in srgb, var(--accent) 15%, white); }
#pwaInstallButton:disabled { cursor: wait; opacity: .65; }
#pwaInstallHint { margin: 12px 0 0; font-size: 12px; line-height: 1.6; }
.pwa-install-guide {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  scroll-margin-block: 16px;
}
.pwa-install-guide[hidden], #pwaInstallSection[hidden], .pwa-copy-field[hidden] { display: none; }
.pwa-guide-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -6px -6px 8px 0; }
.pwa-guide-heading h4 { margin: 0; min-width: 0; font-size: 14px; font-weight: 650; line-height: 1.5; }
.pwa-guide-heading h4:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.pwa-guide-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; }
.pwa-guide-close:hover { background: var(--surface-soft); }
.pwa-guide-close svg { width: 17px; height: 17px; }
.pwa-install-steps { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; }
.pwa-install-steps li { display: grid; grid-template-columns: 16px 26px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 52px; padding: 10px 0; font-size: 13px; line-height: 1.55; }
.pwa-install-steps li + li { border-top: 1px solid var(--line); }
.pwa-step-number { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; }
.pwa-step-icon { display: grid; place-items: center; color: var(--accent-hover); }
.pwa-step-icon svg { width: 23px; height: 23px; }
.pwa-guide-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.pwa-copy-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; }
.pwa-copy-link { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink-soft); font-size: 12px; font-weight: 600; cursor: pointer; }
.pwa-copy-link svg { width: 16px; height: 16px; }
#pwaCopyStatus { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.pwa-copy-field { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 10px; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface-soft); color: var(--ink-soft); font-size: 16px; }
@media (max-width: 380px) {
  .pwa-install-guide { padding: 12px; border-radius: 14px; }
  .pwa-install-steps li { grid-template-columns: 12px 23px minmax(0, 1fr); gap: 7px; font-size: 12px; }
  .pwa-step-icon svg { width: 21px; height: 21px; }
  .pwa-guide-heading h4 { font-size: 13px; }
  .pwa-guide-note { font-size: 11px; }
}
