.network-status-pill {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translate(-50%, -8px);
  z-index: 90;
  padding: 8px 12px;
  border-radius: 999px;
  font: 700 12px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
.network-status-pill.show { opacity: 1; transform: translate(-50%, 0); }
.network-status-pill.offline { background: #17352B; color: #fff; }
.network-status-pill.online { background: #EAF4EF; color: #064832; border: 1px solid #cfe6da; }

.app-update-prompt {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translate(-50%, 24px);
  width: min(360px, calc(100vw - 28px));
  z-index: 95;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dfeae5;
  border-radius: 18px;
  background: #fff;
  color: #17352B;
  box-shadow: 0 18px 48px rgba(6,72,50,.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.app-update-prompt.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.update-copy { display: grid; gap: 4px; }
.update-copy strong { font-size: 15px; }
.update-copy span { font-size: 12px; line-height: 1.45; color: #6D7A73; }
.update-actions { display: flex; justify-content: flex-end; gap: 8px; }
.update-actions button {
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 700;
  cursor: pointer;
}
.update-later { background: #F3F5F4; color: #17352B; }
.update-now { background: #0B6E4F; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .network-status-pill,
  .app-update-prompt { transition: none; }
}
