/* <valt-refresh>: the refresh loader, shell chrome (index.html), as the strip a pull opens at the top of
 * the screen under the status bar. It has no height of its own: lib/pull-to-refresh.js sets it, live with
 * the finger while dragging (main#app follows) and then on the kit's movement curve to 80 (refreshing,
 * the page sprung home beneath it) or 0 (closed, fading). The loader is drawn from the top so the bars are the first
 * thing the pull reveals, as in the motion study. The bars are the artwork's own optical glass, dark in
 * both modes like the menu chip; the canvas behind them is the theme's, and so is the caption. */
valt-refresh { position: fixed; left: 0; right: 0; top: var(--safe-top); height: 0; overflow: hidden; z-index: 6;
  display: block; pointer-events: none; font-family: var(--font);
  transition: height var(--t-move) var(--ease), opacity var(--t-move) var(--ease); }
valt-refresh[dragging] { transition: none; }
valt-refresh .loader { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 8px; }
valt-refresh .bars { display: block; width: 96px; height: 52px; flex: none; transition: opacity var(--t-feedback) var(--ease); }
valt-refresh .status { margin: -4px 0 0; min-height: 16px; font: 500 11px/16px var(--font); letter-spacing: .02em;
  color: var(--text-2); text-align: center; }
/* Updated: the settled bars fade, then the caption comes in alone where they were, so the strip never
 * holds both. It sits on the menu chip's centre line (8 + 44/2 = 30; a 20 line at
 * 20), clear of the chip on both sides for longer languages, at the scale's body size in medium (14/20:
 * every shipped language fits
 * with room to spare, widest Russian ~77 of 223, and no script's ink leaves the 20 line). Its ink is the
 * loader's own "done" teal, carried toward the theme's text so it reads by day (5.7:1; plain --focus is
 * 4.33) as by night (11.4:1). The word says it, so the colour is never the only cue. Under reduced motion
 * both changes are instant: the caption's 140 ms wait for the bars goes too (app.css shortens durations,
 * not delays). */
valt-refresh[data-phase="updated"] .bars { opacity: 0; }
valt-refresh[data-phase="updated"] .status { position: absolute; left: 76px; right: 76px; top: 20px; margin: 0;
  font: 500 14px/20px var(--font); letter-spacing: 0; color: color-mix(in srgb, var(--focus) 82%, var(--text));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  animation: valt-refresh-in var(--t-feedback) var(--ease) var(--t-feedback) both; }
@keyframes valt-refresh-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { valt-refresh[data-phase="updated"] .status { animation: none; } }
