/* ==========================================================================
   loading.css — the screen a window shows while js/need.js fetches its data.

   A NeXT progress bar made of blocks, the application's own icon breathing
   in two steps, one line of what it is doing, and — because this machine
   does not hide such things — the name and size of the file it is waiting on.
   ========================================================================== */
.ld {
  margin: auto; padding: 26px 22px 22px;
  width: calc(100% - 40px); max-width: 360px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; color: #111;
}
.win-body > .ld, .ph-page > .ld { margin: auto; }
.ph-page.ph-loading { display: flex; flex-direction: column; }
.ld-ico {
  width: 58px; height: 58px; display: grid; place-items: center;
  background: var(--gray);
  border-top: 1px solid #fff; border-left: 1px solid #fff;
  border-right: 1px solid #555; border-bottom: 1px solid #555;
  box-shadow: 0 1px 0 #000;
  animation: ld-breathe 1.4s steps(2) infinite;
}
@keyframes ld-breathe { 50% { background: var(--gray-lt); } }
.ld-line { font: 13px var(--ui); }
.ld-bar {
  width: 100%; height: 14px; padding: 2px;
  background: #8e8e8e;
  border-top: 1px solid #555; border-left: 1px solid #555;
  border-right: 1px solid #fff; border-bottom: 1px solid #fff;
}
.ld-bar i {
  display: block; height: 100%; width: 0;
  background: repeating-linear-gradient(90deg, #111 0 7px, transparent 7px 9px);
  transition: width .12s linear;
}
.ld.ok .ld-bar i {
  background: repeating-linear-gradient(90deg, var(--amber-dim) 0 7px, transparent 7px 9px);
}
.ld-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 6px;
  font: 10.5px var(--mono); color: #333; letter-spacing: .02em;
}
.ld-file { color: #000; }
.ld-n { color: #555; }
.ld.bad .ld-line { color: #9c1f14; }
.ld.bad .ld-bar i { background: #9c1f14; }

/* inside a preview pane: no icon, less room */
.ld-small { margin: 18px auto; padding: 14px 12px; gap: 7px; max-width: 320px; }
.ld-small .ld-line { font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  body:not(.fx-force) .ld-ico { animation: none; }
  body:not(.fx-force) .ld-bar i { transition: none; }
}
