/* admin/css/pages/activity.css — the Activity gallery (spec §5). Tokens only. */
.act-toolbar { display: flex; align-items: center; }
.act-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.act-empty { grid-column: 1 / -1; padding: 24px 0; color: var(--text-dim); margin: 0; }
.act-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: var(--surface-hi);
  min-width: 0;
}
.act-card-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.act-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.act-card-thumb-placeholder { font-size: 28px; color: var(--text-faint); }
.act-card-orig {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-dim);
}
.act-card-orig img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--radius-sm); }
.act-card-body { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.act-card-labels { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.act-card-meta { color: var(--text-faint); }
.act-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.act-card-actions .btn { padding: 0 10px; font-size: 12px; }
.act-card-qr { display: none; padding-top: 4px; }
.act-card-qr.is-open { display: block; }
.act-card-qr img { width: 140px; height: 140px; display: block; margin: 0 auto; image-rendering: pixelated; }
.act-card-qr a { display: block; text-align: center; margin-top: 4px; font-size: 11px; color: var(--text); }
.act-load-more { display: flex; justify-content: center; }
.act-load-more:empty { display: none; }
/* Five tiles on one row (the tile itself is the shared base.css one). */
.stat-cards.act-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .stat-cards.act-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Five tiles two-across: the last one spans the row instead of sitting by an empty cell. */
  .stat-cards.act-stats > .stat-card:last-child { grid-column: 1 / -1; }
}
/* Phone: two captures per row, so a busy event is not one long column. */
@media (max-width: 480px) {
  .act-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .act-card-actions .btn { flex: 1 1 auto; }
}
