#screen-question .flow-main:has(> .update-strip) {
  justify-content: flex-start;
  padding-top: 12px;
  transition: none;
}

.welcome-strip.update-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  animation: none;
}
.update-strip .ws-copy { min-width: 0; }
.update-strip .ws-actions { width: 100%; flex-wrap: wrap; justify-content: center; }
.update-strip .ws-link {
  flex: none;
  min-height: 32px;
  padding: 6px 10px;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0;
}
.update-checkpoints {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}
.update-checkpoints button {
  appearance: none;
  min-width: 0;
  min-height: 32px;
  padding: 6px 4px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--fill-1);
  color: var(--text-2);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.update-checkpoints button:hover:not(:disabled) { border-color: var(--teal); color: var(--text); }
.update-checkpoints button:disabled { cursor: default; opacity: .5; }
.update-checkpoints button[aria-current="step"] {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--teal);
  opacity: 1;
}
.update-checkpoints button:focus-visible,
.update-exit-actions button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.update-checkpoints-note {
  margin: 0;
  color: var(--text-2);
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0;
}
.update-exit-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  letter-spacing: 0;
}
.update-exit-dialog::backdrop { background: color-mix(in srgb, var(--bg-1) 72%, transparent); backdrop-filter: blur(6px); }
.update-exit-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--teal);
  background: var(--teal-soft);
}
.update-exit-icon svg { width: 20px; height: 20px; }
.update-exit-dialog h2 { font-family: var(--font-display); font-size: 21px; line-height: 1.25; letter-spacing: 0; margin: 0 0 12px; }
.update-exit-dialog p { font-size: 14px; line-height: 1.6; color: var(--text-2); margin: 0; }
.update-exit-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.update-exit-actions button {
  appearance: none;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--fill-1);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
}
.update-exit-actions [data-exit="no"] { border-color: var(--teal); background: var(--teal-soft); }
.update-exit-actions button:hover { border-color: var(--teal); }
@media (min-width: 641px) {
  .update-checkpoints { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .update-checkpoints button { font-size: 12px; }
  .update-strip .ws-link, .update-checkpoints-note { font-size: 12px; }
}
/* ── Final save: the Continue button becomes a live progress pill ───────────
   updateSaveProgress(): --ua-p = real progress (answers the server accepted).
   The brand gradient fills left→right; a second, ink-coloured copy of the
   label is clipped to the same edge, so the text inverts exactly where the
   fill passes under it — readable in light and dark at every step. */
.btn.ua-saving {
  --ua-p: 0%;
  gap: 0;
  padding-inline: 22px;
  isolation: isolate;
  cursor: progress;
  color: var(--text);
  background: color-mix(in srgb, var(--teal) 8%, var(--fill-1));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 34%, transparent),
    0 18px 44px -26px color-mix(in srgb, var(--teal) 70%, transparent);
}
.btn.ua-saving[disabled] { opacity: 1; cursor: progress; }
.btn.ua-saving::before, .btn.ua-saving::after { display: none; }
.ua-save-fill {
  position: absolute; inset: 0; z-index: 0;
  background: var(--grad-brand-3);
  clip-path: inset(0 calc(100% - var(--ua-p)) 0 0);
  transition: clip-path .45s var(--ease-out);
}
.ua-save-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .42) 50%, transparent 70%);
  background-size: 240% 100%;
  animation: uaSaveSheen 1.6s linear infinite;
}
.ua-save-row {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 0;
}
.ua-save-row--on {
  position: absolute; inset: 0; z-index: 2;
  color: var(--ink-on-brand);
  clip-path: inset(0 calc(100% - var(--ua-p)) 0 0);
  transition: clip-path .45s var(--ease-out);
}
/* the one-request save in flight: a slow, decelerating glide toward 60% */
.btn.ua-sending .ua-save-fill, .btn.ua-sending .ua-save-row--on { transition-duration: 2.4s; }
.ua-save-ico { position: relative; flex: none; width: 18px; height: 18px; }
.ua-save-row:not(.ua-save-row--on) .ua-save-ico { color: var(--teal); }
.ua-save-ico svg { position: absolute; inset: 0; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; }
.ua-save-ring { stroke-width: 2.4; stroke-dasharray: 38 57; animation: uaSaveSpin .9s linear infinite; transform-origin: 50% 50%; }
.ua-save-check { opacity: 0; stroke-width: 2.6; stroke-linejoin: round; }
.ua-save-check path { stroke-dasharray: 22; stroke-dashoffset: 22; }
.ua-save-tx { font-weight: 700; }
.ua-short { display: none; }
.btn.ua-saved { box-shadow: var(--glow-teal), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn.ua-saved .ua-save-fill::after { animation: none; opacity: 0; }
.btn.ua-saved .ua-save-ring { opacity: 0; animation: none; }
.btn.ua-saved .ua-save-check { opacity: 1; }
.btn.ua-saved .ua-save-check path { animation: uaSaveDraw .38s var(--ease-out) forwards; }
@keyframes uaSaveSpin { to { transform: rotate(360deg); } }
@keyframes uaSaveSheen { from { background-position: 140% 0; } to { background-position: -100% 0; } }
@keyframes uaSaveDraw { to { stroke-dashoffset: 0; } }
@media (max-width: 420px) {
  .btn.ua-saving { padding-inline: 16px; }
  .btn.ua-saving .ua-long { display: none; }
  .btn.ua-saving .ua-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .ua-save-fill, .ua-save-row--on { transition: none; }
  .ua-save-fill::after { animation: none; opacity: 0; }
  .ua-save-ring { animation: none; }
  .btn.ua-saved .ua-save-check path { animation: none; stroke-dashoffset: 0; }
}
#ua-save-live {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
