.pwa-update-notice {
  position: fixed;
  z-index: 1000;
  inset: auto max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) auto;
  box-sizing: border-box;
  width: min(440px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  border: 1px solid var(--line, #b9ceca);
  border-radius: 14px;
  padding: 16px;
  color: var(--ink, #19313b);
  background: var(--surface, #fff);
  box-shadow: 0 8px 36px #152f3d30;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.pwa-update-notice[hidden] { display: none; }
.pwa-update-notice[data-required="true"] {
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(460px, calc(100vw - 24px));
  margin: 0;
}
.pwa-update-notice::backdrop { background: #102a3c99; backdrop-filter: blur(3px); }
html[data-pwa-required="true"] { overflow: hidden; }
html[data-pwa-required="true"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #102a3c99;
  backdrop-filter: blur(3px);
}
.pwa-update-notice:focus { outline: 3px solid var(--brand, #187879); outline-offset: 3px; }
.pwa-update-actions .button[hidden] { display: none; }
.pwa-update-notice > strong { display: block; font-size: 1.05rem; }
.pwa-update-notice > p { margin: 8px 0 12px; line-height: 1.5; }
.pwa-update-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pwa-update-actions .button { flex: 1 1 120px; min-height: 44px; }
.pwa-update-notice[data-state="deferred"] { border-left: 4px solid #d7a23c; }
.pwa-update-notice[data-state="working"] { border-left: 4px solid var(--brand, #187879); }
html[data-pwa-preparing="true"] { cursor: progress; }
html[data-pwa-preparing="true"] body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #102a3c0d;
}
@media (max-width: 480px) {
  .pwa-update-notice { padding: 12px; border-radius: 12px; }
}
.offline-brand { color: var(--ink, #19313b); margin-bottom: 16px; }
