/* LOADER B, THE LIVE TICK. See loader-b.js. Font size is !important on purpose,
 * same reason as loader.css (instrument.css flattens every size). */
.lb {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; min-height: 18px;
  opacity: 0; transition: opacity 180ms ease;
}
.lb.on { opacity: 1; }
.lb-c {
  flex: 0 0 auto;
  font-family: var(--mono, ui-monospace, "SF Mono", Menlo, monospace) !important;
  font-size: 11px !important; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink3, #8a8178);
  font-variant-numeric: tabular-nums;
}
.lb-t { position: relative; flex: 1 1 auto; height: 9px; margin-right: 5px; }
.lb-t::before {            /* the hairline */
  content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px;
  background: var(--ink, #1a1410); opacity: .22;
  transform-origin: 0 50%; animation: lb-draw 2.6s cubic-bezier(.45, 0, .2, 1) infinite;
}
.lb-d {                    /* head dot with soft ring, as on the Trade chart */
  position: absolute; top: 0; left: 0; width: 9px; height: 9px; margin-left: -4px;
  border-radius: 50%; background: #fe6102;
  box-shadow: 0 0 0 4px rgba(254, 97, 2, .16);
  animation: lb-ride 2.6s cubic-bezier(.45, 0, .2, 1) infinite;
}
@keyframes lb-draw {
  0% { transform: scaleX(0); opacity: .22; } 78% { transform: scaleX(1); opacity: .22; }
  100% { transform: scaleX(1); opacity: 0; }
}
@keyframes lb-ride {
  0% { left: 0; opacity: 1; } 78% { left: 100%; opacity: 1; } 100% { left: 100%; opacity: 0; }
}
/* resolved: the loop stops, line is whole, dot rests at the head */
.lb.set .lb-t::before { animation: none; transform: none; opacity: .22; }
.lb.set .lb-d { animation: none; left: 100%; opacity: 1; }
.lb.bad .lb-d { background: var(--ink3, #8a8178); box-shadow: none; }
.lb.bad .lb-c { color: var(--ink, #1a1410); }
/* no motion: static dot at the start, whole line, still legible */
@media (prefers-reduced-motion: reduce) {
  .lb { transition: none; }
  .lb-t::before { animation: none; transform: none; }
  .lb-d { animation: none; left: 0; }
}
