/* ============================================================
   Ospaces — Activity feed + per-page activity modal
   Scoped to .act-* classes. Uses css/style.css design tokens
   only (theme-aware in both light and dark via CSS vars).
   Rows are compact and quiet: small colored dot, name, a
   dimmer verb+target, and a faint right-aligned time.
   ============================================================ */

/* ------------------------------ feed rows ------------------------------ */
.act-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-card, 10px);
}
.act-row:hover { background: var(--bg-hover); }

.act-dot {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-display);
  line-height: 1;
  margin-top: 1px;
  user-select: none;
}

.act-body { flex: 1; min-width: 0; }
.act-line {
  font-size: 13.5px;
  line-height: 1.45;
  word-break: break-word;
}
.act-who { color: var(--text); font-weight: 600; }
.act-what { color: var(--text-light); }

/* "+2 · −1 · 3 edited" summary of what changed in an edit */
.act-diff {
  display: inline-block; margin-top: 3px;
  font-family: var(--font-mono); font-size: 11px; line-height: 1.4;
  color: var(--text-light);
  background: var(--bg-hover); border: 1px solid var(--border);
  border-radius: 6px; padding: 1px 7px;
}

.act-time {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--text-faint);
  white-space: nowrap;
  margin-top: 2px;
  padding-left: 6px;
}

.act-empty {
  padding: 28px 12px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13.5px;
}

/* ------------------------------ modal ------------------------------ */
.act-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(10, 11, 26, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 20px 40px;
  animation: act-overlay-in 0.14s ease;
}
@keyframes act-overlay-in { from { opacity: 0; } }

.act-modal {
  display: flex;
  flex-direction: column;
  width: 440px;
  max-width: 100%;
  max-height: min(70vh, 640px);
  background: var(--bg-modal);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-pane, 14px);
  box-shadow: var(--shadow-pane);
  overflow: hidden;
  animation: act-modal-in 0.16s cubic-bezier(0.2, 0.85, 0.3, 1);
}
@keyframes act-modal-in { from { opacity: 0; transform: translateY(8px) scale(0.985); } }

.act-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px 18px;
  border-bottom: 1px solid var(--border);
}
.act-modal-heading { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.act-modal-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
}
.act-modal-sub {
  font-size: 12.5px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.act-x {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.act-x:hover { background: var(--bg-hover); color: var(--text); }

.act-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
}

@media (max-width: 520px) {
  .act-modal-overlay { padding: 40px 12px 24px; }
  .act-modal { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .act-modal-overlay, .act-modal { animation: none; }
}
