/* Collection storage (renderer/storage/storage.js) — "how big is my collection,
 * and which library is eating the drive".
 *
 * Direction: a walnut-and-brass stock ledger, the same hand as the Games split
 * gate's fireside den. The drive is one brass capacity gauge across the top;
 * every library below it is a plank on a shelf with its own painted vessel,
 * sorted biggest first. Bars, not cards: the question is "which is bigger",
 * and a sorted bar answers that at a glance where a grid of tiles does not —
 * and a row list can never leave a ragged half-empty last row.
 *
 * COLOUR. Five categorical slots, one per group, assigned by entity and never
 * cycled. They are not hand-picked: they were stepped in OKLCH inside the dark
 * band (L 0.48–0.67) and run through the dataviz palette validator against
 * this page's surface (#171219) — lightness band, chroma floor, CVD separation,
 * normal-vision floor and contrast all PASS in this exact order. The one
 * remaining WARN (images↔workshop, protan ΔE 7.4) is why every segment also
 * carries a direct label and a 2px gap, and why the legend pairs each colour
 * with its painted icon: identity is never colour alone here. Do not re-pick
 * these by eye — re-run the validator.
 */

.ustore {
  --u-games:    #bb7400;   /* amber — the Hearth flame */
  --u-videos:   #b464ae;
  --u-images:   #5c82da;
  --u-torrents: #cd6151;
  --u-workshop: #009fa0;
  --u-other:    #6b6152;   /* not a library: everything else on the volume */
  --u-unseen:   #574a66;   /* Hearth's, but on no row (hidden profile, sidecars) */
  --u-free:     #2a2230;

  --u-wood:     #171219;   /* the surface every colour above was validated on */
  --u-wood-2:   #1d1720;
  --u-brass:    #c9a24a;
  --u-brass-dim:#8a6f33;
  --u-ember:    #d0644e;   /* destructive: a delete that cannot be undone */
  --u-ink:      var(--text);
  --u-ink-dim:  var(--text-dim);
  --u-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;

  position: relative;
  z-index: 1;
  height: calc(100vh - 60px - 41px - var(--np-h, 0px));   /* same slot as .layout: topbar + view-tabs */
  overflow: hidden;
  display: flex;
  background:
    radial-gradient(1100px 620px at 78% -12%, rgba(201, 162, 74, .10), transparent 62%),
    linear-gradient(180deg, var(--u-wood-2), var(--u-wood) 42%, #120e15);
}
.ustore.hidden { display: none; }

.ustore-scroll {
  flex: 1 1 auto;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px 30px 56px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Named for screen readers, off-screen for everyone else. */
.ustore-sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ─── header ───────────────────────────────────────────────────────────── */
.ustore-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(201, 162, 74, .22);
}
/* Every control on this page: no double-tap zoom delay, no grey flash. */
.ustore button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* ─── the Systems lane bar ─────────────────────────────────────────────── */
/* .vlane-btn is the app's shared lane button (media/video-lanes.css), reused
 * here so the Systems rooms sit exactly like the Games and Videos lanes. Only
 * the lane tint and the bar's own spacing are ours — .glane-bar carries an
 * 18px bottom margin that would stack with .ustore-scroll's gap. */
.ustore-lanes { margin-bottom: 0; }
.ustore-lane { --lane-rgb: 201, 162, 74; }

.ustore-title {
  margin: 0;
  font-family: var(--u-serif);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: .01em;
  color: #f3e9d6;
  text-wrap: balance;
}
.ustore-sub {
  margin: 4px 0 0;
  color: var(--u-ink-dim);
  font-size: 13.5px;
}
.ustore-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ustore-asof {
  font-size: 12.5px;
  color: var(--text-mute);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.ustore-asof b { color: var(--u-ink-dim); font-weight: 600; }

.ustore-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;                    /* touch target */
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 74, .38);
  background: linear-gradient(180deg, rgba(201, 162, 74, .18), rgba(201, 162, 74, .06));
  color: #f0e2c6;
  font: inherit;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.ustore-btn:hover { background: linear-gradient(180deg, rgba(201, 162, 74, .3), rgba(201, 162, 74, .12)); }
.ustore-btn:active { transform: translateY(1px); }
.ustore-btn:disabled { opacity: .5; cursor: default; transform: none; }
.ustore-btn:focus-visible,
.ustore-row:focus-visible,
.ustore-seg:focus-visible,
.ustore-legend-item:focus-visible,
.ustore-drill-close:focus-visible {
  outline: 2px solid var(--u-brass);
  outline-offset: 2px;
}

/* ─── the drive gauge ──────────────────────────────────────────────────── */
.ustore-drive {
  border: 1px solid rgba(201, 162, 74, .2);
  border-radius: 16px;
  padding: 20px 22px 18px;
  background:
    linear-gradient(180deg, rgba(255, 244, 222, .045), rgba(0, 0, 0, .18)),
    var(--u-wood);
  box-shadow: inset 0 1px 0 rgba(255, 238, 205, .07), 0 18px 40px rgba(0, 0, 0, .35);
}

/* Three hero numbers. One row, equal cells — congruent by construction. */
.ustore-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.ustore-fig {
  min-width: 0;
  padding: 2px 0;
  border-left: 2px solid rgba(201, 162, 74, .3);
  padding-left: 14px;
}
.ustore-fig:first-child { border-left-color: var(--u-brass); }
/* Linked folders are a fourth figure: four across, never three and a stray. */
.ustore-figures.has-linked { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ustore-fig-k {
  display: block;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.ustore-fig-v {
  display: block;
  font-family: var(--u-serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: #f3e9d6;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.ustore-fig-n { display: block; font-size: 12.5px; color: var(--u-ink-dim); margin-top: 3px; }

/* The trough. Segments are flex children sized by percentage; the 2px gap is
 * the surface showing through, which is what keeps adjacent fills readable. */
.ustore-gauge {
  display: flex;
  gap: 2px;
  height: 40px;
  border-radius: 9px;
  padding: 3px;
  background: linear-gradient(180deg, #0c0910, #150f1a);
  border: 1px solid rgba(201, 162, 74, .28);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .7);
  overflow: hidden;
}
.ustore-seg {
  position: relative;
  min-width: 3px;
  border: 0;
  padding: 0;
  border-radius: 5px;
  background: var(--seg, var(--u-other));
  color: #12100e;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-inline: 8px;
  display: flex;
  align-items: center;
  transition: filter .15s ease;
}
.ustore-seg:hover { filter: brightness(1.16); }
.ustore-seg-free {
  cursor: default;
  background:
    repeating-linear-gradient(135deg, rgba(201, 162, 74, .07) 0 6px, transparent 6px 12px),
    var(--u-free);
  color: var(--u-ink-dim);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 74, .14);
}
.ustore-seg-free:hover { filter: none; }
/* "Other on this drive" is not one of Hearth's libraries — a hatch says so
 * without giving a non-entity a categorical hue of its own. */
.ustore-seg-other {
  background:
    repeating-linear-gradient(135deg, rgba(0, 0, 0, .22) 0 5px, transparent 5px 10px),
    var(--u-other);
}

.ustore-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.ustore-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  padding: 4px 2px;
  color: var(--u-ink-dim);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  border-radius: 6px;
}
.ustore-legend-item:hover { color: var(--u-ink); }
.ustore-swatch {
  width: 12px; height: 12px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: var(--seg);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35);
}
.ustore-legend-item.is-free .ustore-swatch,
.ustore-legend-item.is-other .ustore-swatch {
  background:
    repeating-linear-gradient(135deg, rgba(201, 162, 74, .2) 0 4px, transparent 4px 8px),
    var(--seg);
}
.ustore-legend-v { color: var(--u-ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ─── the shelf of libraries ───────────────────────────────────────────── */
.ustore-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
}
.ustore-h2 {
  margin: 0;
  font-family: var(--u-serif);
  font-size: 19px;
  font-weight: 700;
  color: #ecdfc8;
}
.ustore-note { font-size: 12.5px; color: var(--text-mute); }

.ustore-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ustore-group-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 8px;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
  /* The gauge and its legend scroll to these; without the margin the heading
     lands flush under the scroll container's top edge. */
  scroll-margin-top: 24px;
}
.ustore-group-label:first-child { margin-top: 0; }
/* The heading wears its tab's own art, the same picture as the tab bar. */
.ustore-group-ico { width: 22px; height: 22px; flex: 0 0 22px; object-fit: contain; }
.ustore-group-t { color: #e3d4b5; font-weight: 650; }
.ustore-group-v { font-variant-numeric: tabular-nums; }
.ustore-group-v::before { content: '— '; }

/* ─── the libraries ledger ─────────────────────────────────────────────────
 * Films, shows, episodes and files across every TV / Movies library, under the
 * Libraries heading. Four equal figures in one shelf; two by two on a phone, so
 * the grid never ends on an empty cell. */
.ustore-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  margin-bottom: 4px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 74, .2);
  background: rgba(201, 162, 74, .14);
}
.ustore-ledger-fig {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 16px;
  background: linear-gradient(180deg, #1f1823, #160f19);
}
.ustore-ledger-fig img { width: 30px; height: 30px; flex: 0 0 30px; object-fit: contain; }
.ustore-ledger-tx { display: flex; flex-direction: column; min-width: 0; }
.ustore-ledger-v {
  font-family: var(--u-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: #f3e9d6;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ustore-ledger-k { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); white-space: nowrap; }

/* One plank. Grid so every row's icon / name / bar / value line up exactly —
 * the whole point of a sorted bar list. */
.ustore-row {
  display: grid;
  grid-template-columns: 52px minmax(120px, 1.1fr) minmax(0, 2.4fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 62px;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(201, 162, 74, .14);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 243, 222, .035), rgba(0, 0, 0, .2));
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.ustore-row:hover {
  border-color: rgba(201, 162, 74, .42);
  background: linear-gradient(180deg, rgba(255, 243, 222, .07), rgba(0, 0, 0, .16));
}
.ustore-row[aria-expanded='true'] { border-color: var(--u-brass); }
.ustore-row.is-empty { opacity: .55; }

/* The vessel sits in a brass-rimmed recess — the frame holds the art, it is
 * never drawn over it. */
.ustore-vessel {
  width: 52px; height: 52px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: radial-gradient(60% 60% at 50% 35%, rgba(201, 162, 74, .16), rgba(0, 0, 0, .3));
  box-shadow: inset 0 0 0 1px rgba(201, 162, 74, .26);
}
.ustore-vessel img { width: 40px; height: 40px; display: block; }

.ustore-name { min-width: 0; }
.ustore-name-t {
  display: block;
  font-weight: 650;
  font-size: 14.5px;
  color: #f0e6d4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ustore-name-s {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}

/* display:block on BOTH, deliberately. These are spans (a <button> may not
 * contain a <div>), and height on an inline box is ignored — the fill renders
 * as a zero-height nothing and every bar reads as empty. */
.ustore-bar {
  display: block;
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(180deg, #0c0910, #16101c);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .65);
  overflow: hidden;
}
.ustore-bar-fill {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: 7px;
  background: var(--seg, var(--u-games));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.ustore-val { text-align: right; min-width: 116px; }
.ustore-val-b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #f3e9d6;
  font-variant-numeric: tabular-nums;
}
.ustore-val-s { display: block; font-size: 12px; color: var(--text-mute); font-variant-numeric: tabular-nums; margin-top: 2px; }

/* ─── the scan banner ──────────────────────────────────────────────────── */
.ustore-scan {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 74, .26);
  background: linear-gradient(180deg, rgba(201, 162, 74, .1), rgba(0, 0, 0, .18));
}
.ustore-scan.hidden { display: none; }
.ustore-scan-t { flex: 1 1 auto; min-width: 0; font-size: 13.5px; color: #ecdfc8; }
.ustore-scan-t small { display: block; color: var(--text-mute); font-size: 12px; margin-top: 2px; }
.ustore-scan-bar {
  flex: 0 0 200px;
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .5);
  overflow: hidden;
}
.ustore-scan-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--u-brass-dim), var(--u-brass));
  transition: width .4s ease;
}
/* Indeterminate: the count is not known yet (the folder list is still coming). */
.ustore-scan-fill.is-idle {
  width: 34% !important;
  animation: ustore-slide 1.5s ease-in-out infinite alternate;
}
@keyframes ustore-slide { from { transform: translateX(-24%); } to { transform: translateX(190%); } }

/* ─── sweep card ───────────────────────────────────────────────────────── */
.ustore-sweep {
  border: 1px solid rgba(201, 162, 74, .18);
  border-radius: 14px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255, 243, 222, .03), rgba(0, 0, 0, .2));
}
.ustore-sweep-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ustore-sweep-v {
  font-family: var(--u-serif);
  font-size: 24px;
  font-weight: 700;
  color: #f3e9d6;
  font-variant-numeric: tabular-nums;
}
.ustore-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ustore-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 74, .2);
  background: rgba(0, 0, 0, .25);
  font-size: 12.5px;
  color: var(--u-ink-dim);
}
.ustore-chip b { color: #f0e2c6; font-variant-numeric: tabular-nums; }

/* ─── partial downloads card ───────────────────────────────────────────── */
/* The sweep card's twin, with the one control on this page that deletes. */
.ustore-partials .ustore-sweep-v.is-zero { color: var(--u-ink-dim); font-weight: 600; }
.ustore-partials-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.ustore-partials-foot .ustore-chips { margin-top: 0; }
.ustore-partials-actions { display: flex; gap: 8px; margin-left: auto; }
.ustore-btn.is-danger {
  border-color: var(--u-ember);
  background: linear-gradient(180deg, rgba(208, 100, 78, .34), rgba(208, 100, 78, .14));
  color: #fbe3dc;
}
.ustore-btn.is-danger:hover { background: linear-gradient(180deg, rgba(208, 100, 78, .46), rgba(208, 100, 78, .2)); }
.ustore-btn.is-quiet { border-color: rgba(201, 162, 74, .2); background: transparent; color: var(--u-ink-dim); }
.ustore-btn.is-quiet:hover { background: rgba(201, 162, 74, .08); }
@media (max-width: 520px) {
  .ustore-partials-actions { flex: 1 1 100%; margin-left: 0; }
  .ustore-partials-actions .ustore-btn { flex: 1 1 0; justify-content: center; }
}

/* ─── drill-down panel ─────────────────────────────────────────────────── */
.ustore-drill {
  flex: 0 0 380px;
  max-width: 44vw;
  border-left: 1px solid rgba(201, 162, 74, .22);
  background: linear-gradient(180deg, #1a141f, #120e16);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 20px 40px;
}
.ustore-drill.hidden { display: none; }
.ustore-drill-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.ustore-drill-title { flex: 1 1 auto; min-width: 0; }
.ustore-drill-t { margin: 0; font-family: var(--u-serif); font-size: 20px; font-weight: 700; color: #f0e6d4; }
.ustore-drill-s { margin: 4px 0 0; font-size: 12.5px; color: var(--text-mute); }
.ustore-drill-close {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 74, .24);
  background: rgba(0, 0, 0, .25);
  color: #e3d4b5;
  cursor: pointer;
  font-size: 18px; line-height: 1;
}
.ustore-drill-close:hover { background: rgba(201, 162, 74, .16); }
.ustore-drill-actions { display: flex; gap: 8px; margin: 14px 0 18px; flex-wrap: wrap; }
.ustore-drill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.ustore-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(201, 162, 74, .1);
}
.ustore-item-n {
  min-width: 0;
  font-size: 13px;
  color: #ebe0cd;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ustore-item-v { font-size: 13px; font-weight: 650; color: #f3e9d6; font-variant-numeric: tabular-nums; }
.ustore-item-bar { display: block; grid-column: 1 / -1; height: 5px; border-radius: 3px; background: rgba(0, 0, 0, .5); overflow: hidden; }
.ustore-item-fill { display: block; height: 100%; border-radius: 3px; background: var(--seg, var(--u-games)); opacity: .85; }
.ustore-item-s { grid-column: 1 / -1; font-size: 11.5px; color: var(--text-mute); }
.ustore-empty { color: var(--text-mute); font-size: 13px; padding: 10px 2px; }
/* The other profile's share of a library: a size and a count, no titles. */
.ustore-hidden {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px dashed rgba(201, 162, 74, .26);
  background: rgba(87, 74, 102, .22);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--u-ink-dim);
  text-wrap: pretty;
}
.ustore-hidden b { color: #f0e2c6; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ─── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ustore-figures.has-linked { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .ustore-drill { position: absolute; inset: 0 0 0 auto; width: min(420px, 92vw); max-width: none; z-index: 5; box-shadow: -18px 0 50px rgba(0, 0, 0, .55); }
}
@media (max-width: 760px) {
  .ustore-scroll { padding: 18px 14px 44px; gap: 20px; }
  .ustore-figures, .ustore-figures.has-linked { grid-template-columns: 1fr; gap: 10px; }
  .ustore-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ustore-ledger-fig { padding: 11px 12px; gap: 10px; }
  .ustore-ledger-v { font-size: 19px; }
  /* Heading and its hint stack instead of fighting for one line. */
  .ustore-head, .ustore-section-head { flex-direction: column; align-items: stretch; }
  .ustore-head-actions { justify-content: space-between; }
  .ustore-asof { text-align: left; max-width: none; }
  /* No segment is wide enough for a label at this width — the legend below
   * carries every name and value, so the bar is a picture and nothing else. */
  .ustore-seg { font-size: 0; padding-inline: 0; }
  .ustore-legend { gap: 8px 14px; }
  /* Two columns only. A third column for the value would be squeezed to a few
   * characters by the name beside it and wrap "1250 games · 291 MB each" into
   * a six-line ribbon; below the bar it is one readable line instead. */
  .ustore-row {
    grid-template-columns: 44px minmax(0, 1fr);
    row-gap: 7px;
    padding: 10px 12px;
  }
  .ustore-vessel { width: 44px; height: 44px; }
  .ustore-vessel img { width: 34px; height: 34px; }
  .ustore-bar { grid-column: 1 / -1; }
  .ustore-val {
    grid-column: 1 / -1;
    min-width: 0;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 4px 9px;
    flex-wrap: wrap;
  }
  .ustore-val-b { font-size: 16px; }
  .ustore-val-s { margin-top: 0; }
  .ustore-scan { flex-wrap: wrap; }
  .ustore-scan-bar { flex: 1 1 100%; }
  .ustore-drill { width: 100vw; max-width: 100vw; }
}

@media (prefers-reduced-motion: reduce) {
  .ustore-scan-fill.is-idle { animation: none; transform: none; }
  .ustore-row, .ustore-btn, .ustore-seg { transition: none; }
}
