/* The hold bar: one component everywhere (home demo, receipts, overview, caps, keys, lock).
   [ charged: solid rose ][ held, not charged: hatched ] | tick at the hold: "never above this" */
.holdbar { display: grid; gap: 10px; min-width: 0; }
.holdbar .hb-track { position: relative; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .06); }
.holdbar .hb-fill { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.holdbar .hb-held { position: absolute; inset: 0 auto 0 0; background: var(--hatch); transition: width .5s var(--ease-ui); }
.holdbar .hb-charged { position: absolute; inset: 0 auto 0 0; background: var(--rose); box-shadow: var(--glow); transition: width .5s var(--ease-ui); }
.holdbar .hb-tick { position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--ivory); transform: translateX(-1px); transition: left .5s var(--ease-ui); }
.holdbar .hb-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; font: 400 12px/1.5 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.holdbar .hb-legend b { font-weight: 500; }
.holdbar .hb-legend .c { color: var(--rose); }
.holdbar .hb-legend .h { color: var(--ink-3); }
.holdbar .hb-legend .b { color: var(--ok); }
.holdbar .hb-legend .x { color: var(--ink-4); }
/* compact: meters */
.holdbar.hb-compact .hb-track { height: 6px; border-radius: 3px; }
.holdbar.hb-compact .hb-tick { top: -3px; bottom: -3px; }
/* hero: the receipt and the home demo end state */
.holdbar.hb-hero { gap: 14px; }
.holdbar.hb-hero .hb-nums { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 8px 40px; }
.holdbar.hb-hero .hb-num { display: grid; gap: 6px; min-width: 0; }
.holdbar.hb-hero .hb-num span { font: 500 var(--t-label) var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.holdbar.hb-hero .hb-num b { font: 450 var(--t-num-xl)/1 var(--display); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.holdbar.hb-hero .hb-num.c b { color: var(--rose); }
.holdbar.hb-hero .hb-num.b b { color: var(--ok); }
.holdbar.hb-hero .hb-track { height: 12px; border-radius: 6px; margin-top: 18px; }
.holdbar.hb-hero .hb-tick { top: -6px; bottom: -6px; }
.holdbar.hb-hero .hb-tick::after { content: "never above this"; position: absolute; bottom: calc(100% + 4px); right: 0; font: 500 var(--t-label) var(--mono); letter-spacing: .08em; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 580px) {
  .holdbar.hb-hero .hb-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; }
  .holdbar.hb-hero .hb-num b { font-size: 22px; }
}
