/* ==========================================================================
   GATE PASS — PWA UI (offline banner + install button)
   ========================================================================== */

.offline-bar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-overlay);
  padding: var(--space-2) var(--space-4);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-inverse);
  background: var(--color-warn);
}

/* "New version available" banner — sits at top of viewport, above content
   but below modals. Slides into view; auto-stacks above the offline bar
   if both happen to be visible (rare). */
.update-banner {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-overlay);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  background: var(--text-primary);
  color: var(--text-inverse);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  animation: slide-down 240ms ease-out;
}
.update-banner > span { flex: 1 1 auto; min-width: 0; }
.update-banner > button { flex-shrink: 0; }
.update-banner .btn--accent {
  background: #fff;
  color: var(--text-primary);
}
@keyframes slide-down {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
