/* =========================================================
   ZAR DATASETS — WORKSPACE SUMMARY STRIP

   A single compact system-status line between the toolbar and
   the dataset table. Values are derived live in
   Scripts/shared/zomniverse-datasets.js from the authoritative
   catalogue payload. Labels are muted; numbers are brighter.

   Load order: AFTER Styles/shared/zomniverse-datasets.css.
========================================================= */

.zom-datasets-summary {
  flex: 0 0 auto;                       /* part of the non-scrolling control area */
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 2px 2px 12px;
  color: #7d828c;
  font: 400 11px/1.5 ui-monospace, "Ubuntu Mono", SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.01em;
}
.zom-datasets-summary[hidden] { display: none; }

.zom-datasets-summary b {
  color: #d7dbe3;
  font-weight: 700;
}
.zom-datasets-summary__sep {
  color: rgba(255, 255, 255, 0.22);
}
.zom-datasets-summary__warn b {
  color: var(--zd-amber, #e4b667);
}
.zom-datasets-summary__crit b {
  color: var(--zd-danger, #ef929b);
}

/* Mobile: keep it to one line, scroll horizontally, hide the bar. */
@media (max-width: 760px) {
  .zom-datasets-summary {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 0 8px;
    padding-bottom: 2px;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .zom-datasets-summary::-webkit-scrollbar { display: none; }
  .zom-datasets-summary > * { flex: 0 0 auto; }
}
