/* Same "let the page actually scroll" fix grid.css documents for its own html rule — this page
   is a plain document too, not a fixed-viewport one like the feed. */
html { overflow-y: auto; overflow-x: hidden; height: auto; }
body { touch-action: pan-y; height: auto; }

#dashBar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; background: rgba(0,0,0,0.85);
  font-size: 13px; border-bottom: 1px solid #333;
}
#dashTitle { font-weight: 600; letter-spacing: 0.02em; }
#dashRefresh { margin-left: auto; font-size: 15px; line-height: 1; }
#dashRefresh.spin { animation: dashSpin 700ms linear; }
@keyframes dashSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

#dashWrap { padding: 14px; padding-bottom: 40px; max-width: 720px; margin: 0 auto; }
#dashHint { color: #888; font-size: 13px; padding: 30px 4px; text-align: center; }
#dashHint[hidden] { display: none; }

#dashGrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.dashCard {
  background: #111; border: 1px solid #2a2a2a; border-radius: 12px;
  padding: 16px 18px;
}
.dashCard h2 {
  margin: 0 0 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: #888; font-weight: 600;
}
.dashStat { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.dashNum { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dashLabel { color: #999; font-size: 13px; }

/* Proportional stacked bar for the image/gif/video split — one glance at the shape of the
   catalogue rather than three numbers to compare by eye. */
.dashBar-chart {
  display: flex; height: 8px; border-radius: 4px; overflow: hidden;
  background: #222; margin-bottom: 10px;
}
.dashBar-chart span { height: 100%; }
/* Shared by the bar segments and the row swatches below, not scoped to either — same three
   colours mean the same three types everywhere on the card. */
.t-i { background: #6ea8fe; }
.t-g { background: #ffb454; }
.t-v { background: #ff6ea0; }

.dashRows { margin: 0; }
.dashRows > div {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 5px 0; border-top: 1px solid #222; font-size: 13px;
}
.dashRows > div:first-child { border-top: none; }
.dashRows dt {
  color: #bbb; display: flex; align-items: center; gap: 6px; font-weight: 400;
}
.dashRows dt .swatch { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.dashRows dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
