/* The update cover (web/update-gate.js, José 2026-10-20): over everything —
   the sign-in card is z-index 50 — and not closable. Off unless the script
   shows it. */
.update-gate[hidden] { display: none; }

.update-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: var(--ui-bg);
  color: var(--ui-text);
  font-family: var(--ui-font);
}

/* Nothing behind it scrolls while it is up — and Glass is see-through, so
   what is behind is hidden, not only covered. */
html.update-gate-on, html.update-gate-on body { overflow: hidden; }
html.update-gate-on body > :not(.update-gate) { visibility: hidden; }

.update-gate-card {
  display: grid;
  justify-items: center;
  gap: 0.875rem;
  width: min(30rem, 100%);
  padding: 2.25rem 2rem;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-lg, var(--ui-radius));
  box-shadow: var(--card-shadow);
  background: var(--ui-panel);
  text-align: center;
}

.update-gate-icon {
  width: 3rem;
  height: 3rem;
  fill: none;
  stroke: var(--ui-accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.update-gate-card[data-phase="failed"] .update-gate-icon { stroke: var(--ui-dim); }

.update-gate-title {
  margin: 0;
  font: 800 1.5rem/1.25 var(--ui-display, var(--ui-font));
  color: var(--ui-text);
  max-width: 24ch;
}

.update-gate-bar {
  width: 100%;
  height: 0.75rem;
  border-radius: 999px;
  background: var(--ui-accent-soft, var(--ui-line));
  overflow: hidden;
}
.update-gate-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--ui-accent);
  transition: width 0.3s ease;
}
/* Installing: there is no percentage any more, only "it is happening". */
.update-gate-card[data-phase="install"] .update-gate-bar > span { animation: update-gate-pulse 1.4s ease-in-out infinite; }
@keyframes update-gate-pulse { 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) {
  .update-gate-bar > span { transition: none; }
  .update-gate-card[data-phase="install"] .update-gate-bar > span { animation: none; }
}

.update-gate-line { margin: 0; color: var(--ui-dim); font-size: 1rem; line-height: 1.5; max-width: 38ch; }
.update-gate-line.bad { color: var(--ui-text); font-weight: 600; }

.update-gate-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.25rem; }
