/* activity page styles (design: Activity.dc.html) */
.act-hero { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-end; justify-content: space-between; }
.act-run { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: 420px; margin-left: auto; }
.act-status { text-align: right; color: var(--ink-2); }
.act-status:empty { display: none; }
.act-progress { display: inline-flex; align-items: center; gap: 10px; text-align: left; }
.act-spin { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink-faint); border-top-color: var(--accent); animation: act-spin 0.9s linear infinite; }
@keyframes act-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .act-spin { animation-duration: 3s; } }
.act-result { display: inline-block; padding: 8px 14px; border-radius: var(--radius-tile); background: var(--surface); text-align: left; }
.act-result.bad { background: var(--risk-soft-bg); color: var(--risk-soft-text); }

/* stats strip: three white cells and the blue one */
.act-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); background: var(--surface); border-radius: var(--radius-card); overflow: hidden; }
.act-stat { padding: 22px 26px; border-right: var(--rule-row); min-width: 0; }
.act-stat:last-child { border-right: 0; }
.act-stat .eyebrow { color: inherit; opacity: 0.8; }
.act-num { margin-top: 6px; font: 400 34px/1 var(--font-display); letter-spacing: -0.03em; }
.act-sub { margin-top: 4px; font-size: 13px; opacity: 0.85; }
.act-stat.hl { background: var(--accent); color: #fff; border-right: 0; }
.act-stat.hl .eyebrow, .act-stat.hl .act-sub { opacity: 0.92; }
@media (max-width: 480px) { .act-stat { border-right: 0; border-bottom: var(--rule-row); } }

.act-filter { align-self: flex-start; }
.act-filter button { padding: 0 14px; font-weight: 500; color: var(--ink-2); }
.act-filter button[aria-pressed="true"] { color: #fff; }

/* day card with the vertical timeline */
.act-day { padding: 24px 28px 12px; gap: 8px; }
.act-day .section-title { line-height: 1.25; }
.act-list { margin: 0; padding: 0; list-style: none; }
.act-row { display: grid; grid-template-columns: 52px 22px minmax(0, 1fr); gap: 0 14px; align-items: start; }
.act-time { padding-top: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.act-rail { position: relative; align-self: stretch; display: flex; justify-content: center; }
.act-rail::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px dotted var(--rule); }
.act-dot { position: relative; margin-top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.act-dot.curator { background: var(--accent); }
.act-dot.collector { background: var(--surface); border: 2px solid var(--ink); }
.act-body { padding: 12px 0 14px; border-bottom: 1px dotted var(--border); min-width: 0; }
.act-row:last-child .act-body { border-bottom: 0; }
.act-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.act-title { font-weight: 600; overflow-wrap: anywhere; }
.act-chip { padding: 1px 9px; border-radius: 10px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--surface-sunken); color: var(--ink-2); }
.act-chip.curator { background: var(--depth-aware); color: var(--accent-deep); }
.act-chip.user { background: var(--ink); color: #fff; }
.act-detail { margin-top: 2px; color: var(--ink-2); overflow-wrap: anywhere; }
.act-foot { margin: 0; color: var(--ink-3); font-size: 13px; }

@media (max-width: 520px) {
  .act-day { padding: 20px 18px 8px; }
  .act-row { grid-template-columns: 42px 16px minmax(0, 1fr); gap: 0 10px; }
  .act-run { align-items: flex-start; margin-left: 0; }
  .act-status { text-align: left; }
}
