/* updates.css — the "A new version … is ready" banner (js/core/updates.js), on every page.
   A lighter navy than the panels so it stands out from the map and the top bar. */
.update-banner {
  position: fixed; z-index: 1100; left: 0; right: 0; top: calc(var(--bar-h, 56px) + env(safe-area-inset-top, 0px));
  min-height: 44px; box-sizing: border-box; padding: 6px 12px 6px 16px;
  display: flex; align-items: center; gap: 12px;
  background: #1E3A5F; color: #F2F6FC; border-bottom: 1px solid rgba(124, 199, 255, 0.35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); font: 14px/1.4 var(--font, system-ui, sans-serif);
}
.update-banner[hidden] { display: none; }
.ub-spark { width: 20px; height: 20px; flex: none; fill: none; stroke: #7CC7FF; stroke-width: 1.8; stroke-linecap: round; }
.ub-text { flex: 1; min-width: 0; }
.ub-text b { font-weight: 700; }
.update-banner button { font: inherit; cursor: pointer; }
.update-banner .ub-refresh {
  display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 6px 14px; border-radius: 8px;
  border: 0; background: #F2F6FC; color: #0C1626; font-weight: 700;
}
.update-banner .ub-refresh svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.update-banner .ub-refresh:hover { background: #fff; }
.update-banner .ub-close { flex: none; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #C9D6E8; font-size: 22px; line-height: 1; }
.update-banner .ub-close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* Map page: everything below the top bar moves down while the banner shows (see topbar.css) */
body.has-update { --topbar-h: calc(var(--bar-h, 56px) + 44px); }
/* Settings page: normal page flow, so the banner sits at the top and the page moves down */
body.admin .update-banner { top: 0; }
body.admin.has-update { padding-top: 48px; }

/* Phones: the banner covers the top bar until you refresh or close it */
@media (max-width: 760px), (max-height: 500px) and (orientation: landscape) {
  .update-banner { top: env(safe-area-inset-top, 0px); min-height: var(--bar-h, 60px); padding: 6px 6px 6px 12px; gap: 8px; font-size: 13px; }
  body.has-update { --topbar-h: var(--bar-h, 60px); }
  .update-banner .ub-refresh { padding: 8px 12px; }
  .ub-more { display: none; }
}
