.pwa-install[hidden] { display: none; }
.pwa-install {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px max(20px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  color: #68758d;
  font: 16px/1.6 system-ui, sans-serif;
}
.pwa-install p { margin: 0 0 10px; }
.pwa-install button, .offline-page a {
  display: inline-block;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid #215ed6;
  border-radius: 12px;
  background: #215ed6;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  touch-action: manipulation;
}
.pwa-install button:focus-visible, .offline-page a:focus-visible { outline: 3px solid #95b6fa; outline-offset: 3px; }
.offline-page {
  margin: 0;
  min-width: 320px;
  background: #f6f7fb;
  color: #14213d;
  font: 18px/1.7 system-ui, sans-serif;
}
.offline-page main { max-width: 640px; margin: 12vh auto; padding: 24px; }
.offline-page h1 { font-size: 2rem; line-height: 1.3; }
.offline-page p { color: #68758d; }
.app-notice[hidden] { display: none; }
.app-notice { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 10px 16px; color: #1648ad; background: #edf3ff; font: 15px/1.6 system-ui, sans-serif; }
.app-notice button { min-height: 44px; padding: 8px 14px; border: 1px solid #b9caf0; border-radius: 10px; color: #1648ad; background: white; font: inherit; }
#app-update { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 20; max-width: calc(100% - 32px); border: 1px solid #b9caf0; border-radius: 14px; box-shadow: 0 6px 24px #14213d22; }
body:has(.review-page) #app-update { bottom: calc(110px + env(safe-area-inset-bottom)); }
