/* PWA controls stay separate from the existing screen styles. */
#pwa-update-notice {
  margin: 12px 16px;
  padding: 12px 14px;
  border: 1px solid var(--sn-line);
  border-radius: var(--sn-radius);
  background: var(--sn-surface);
  color: var(--sn-text);
  font-size: 13px;
  line-height: 1.55;
}
#pwa-update-notice[hidden],
#pwa-install-button[hidden],
#pwa-retry[hidden] {
  display: none;
}
.pwa-install-help {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.pwa-install-help summary {
  cursor: pointer;
  min-height: 32px;
}
.pwa-install-help p {
  margin: 8px 0;
}
#pwa-install-button,
#pwa-retry {
  margin-top: 10px;
}

#pwa-update-status { margin: 8px 0 0; }
#pwa-diagnostics { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 12px; line-height: 1.5; }
#pwa-check, #pwa-copy { margin: 4px 0; }

/* iOS installed web app: keep the system top-edge sampling surface free of text. */
@supports (-webkit-touch-callout: none) {
  @media (display-mode: standalone) {
    body::before {
      content: "";
      position: fixed;
      inset: 0 0 auto;
      height: 16px;
      background: var(--sn-background);
      pointer-events: none;
      z-index: 1;
    }
    .top { padding-top: 28px; }
    .app-starting body::before { display: none; }
  }
}
