/* The bottom status line's updates and the screen kept across one (statusline.js; app_infra#1678). An app sets its colours
   on :root: --line-accent, --line-bad, --line-ink, --line-panel, --line-edge, --line-page; and --safe-top, --safe-bottom,
   --scale when it has them. The line itself is the app's footer.version; its words are its first <span>. */
footer.version { position: relative; }
footer.version.updating::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: var(--upd, 0%);
  background: var(--line-accent, #f97316); transition: width .2s ease-out; }
footer.version.updating > span:first-child, footer.version.updated > span:first-child { color: var(--line-accent, #f97316); font-weight: 600; }
footer.version.updfailed > span:first-child { color: var(--line-bad, #dc2626); }
/* The bar, for a screen without a line (a kid screen): a thin fill at the top, the words floating above the box. */
.updatebar { position: fixed; top: 0; left: 0; right: 0; padding-top: var(--safe-top, 0px); z-index: 30; pointer-events: none; }
.updatebar .fill { height: 3px; width: 0; background: var(--line-accent, #f97316); transition: width .2s ease-out; }
.updatebar span { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(80px + var(--safe-bottom, 0px)); max-width: 90%;
  padding: 6px 14px; font-size: calc(14px * var(--scale, 1)); color: var(--line-ink, #111827); background: var(--line-panel, #fff);
  text-align: center; border: 1px solid var(--line-edge, #e5e7eb); border-radius: 14px; box-shadow: 0 1px 6px rgba(0, 0, 0, .2); }
.updatebar.failed .fill { background: var(--line-bad, #dc2626); }
.updatebar.failed span { color: var(--line-bad, #dc2626); }
/* Where there is a line, it says it all (FoxChat request fc42671cc5, foxchat#487, Denis 2026-10-29: "Remove update
   progress on the top, on the bottom is enough"): the line's own edge fills; no bar, no floating words. */
.updatebar.inline span, .updatebar.inline .fill { display: none; }
/* The screen an update left, on top until the new one has drawn its own (request 5e895e105b). */
.kept { display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; right: 0; max-width: 760px; margin: 0 auto;
  z-index: 15; background: var(--line-page, #fff); transition: opacity .15s; }
.kept.going { opacity: 0; }
.kept img[src^="blob:"] { visibility: hidden; }      /* the last page's photos are gone with it; the new one loads its own */
