.activity-day { margin-bottom: 22px; }
.activity-day > h6 { position: sticky; top: 70px; z-index: 2; display: inline-block; margin: 0 0 10px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary-700); background: var(--primary-50); }
.activity-list { position: relative; list-style: none; margin: 0; padding: 0 0 0 26px; }
.activity-list::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(var(--primary), transparent); opacity: .35; }
.activity-item { position: relative; margin-bottom: 10px; animation: fadeUp .4s var(--ease) both; }
.activity-dot { position: absolute; left: -26px; top: 14px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; box-shadow: 0 0 0 4px var(--bg); }
.activity-dot.insert, .activity-dot.upload, .activity-dot.admin_create, .activity-dot.admin_enable { background: #10b981; }
.activity-dot.update, .activity-dot.password_change { background: #0ea5e9; }
.activity-dot.delete, .activity-dot.remove, .activity-dot.admin_delete, .activity-dot.admin_disable { background: #ef4444; }
.activity-dot.sign_in { background: #8b5cf6; }
.activity-dot.admin_reset_password, .activity-dot.admin_send_reset { background: #f59e0b; }
.activity-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; transition: border-color .2s, box-shadow .2s; }
.activity-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.activity-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; }
.activity-line .who { font-weight: 600; }
.activity-line .what { color: var(--muted); }
.activity-line .entity { font-weight: 600; }
.activity-line .key { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12px; color: var(--muted-2); }
.activity-meta i { margin-right: 4px; }
.activity-toggle { border: 0; background: none; padding: 0; font-size: 12px; font-weight: 600; color: var(--primary-700); }
.activity-changes { display: none; margin-top: 10px; border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.activity-card.open .activity-changes { display: block; animation: fadeIn .2s; }
.activity-changes table { width: 100%; font-size: 12.5px; }
.activity-changes td { padding: 6px 12px; border-top: 1px solid var(--border); vertical-align: top; word-break: break-word; }
.activity-changes tr:first-child td { border-top: 0; }
.activity-changes td:first-child { width: 32%; color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
