/* Activity Feed — Office 16852 enterprise wiring pass */

.af-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.af-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.af-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.af-subtitle {
    margin: 4px 0 0;
    font-size: 0.875rem;
    color: var(--mc-text-muted, rgba(255, 255, 255, 0.62));
    max-width: 42rem;
}

.af-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.af-filter-chip {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.af-filter-chip.is-active,
.af-filter-chip:hover {
    background: rgba(99, 179, 237, 0.15);
    border-color: rgba(99, 179, 237, 0.45);
}

.af-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.af-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(12px);
}

.af-card-icon {
    font-size: 1.4rem;
    line-height: 1;
    padding-top: 2px;
}

.af-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.af-chip {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.af-chip--info { background: rgba(99, 179, 237, 0.2); color: #90cdf4; }
.af-chip--success { background: rgba(72, 187, 120, 0.2); color: #9ae6b4; }
.af-chip--warning { background: rgba(237, 137, 54, 0.2); color: #fbd38d; }
.af-chip--error { background: rgba(245, 101, 101, 0.2); color: #feb2b2; }

.af-time {
    font-size: 11px;
    color: var(--mc-text-muted, rgba(255, 255, 255, 0.5));
}

.af-card-title {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 600;
}

.af-card-summary {
    margin: 0 0 8px;
    font-size: 0.85rem;
    color: var(--mc-text-muted, rgba(255, 255, 255, 0.72));
    line-height: 1.45;
}

.af-card-link {
    background: none;
    border: none;
    color: #63b3ed;
    font-size: 12px;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
}

.af-empty {
    text-align: center;
    padding: 48px 24px;
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    color: var(--mc-text-muted, rgba(255, 255, 255, 0.65));
}

.af-empty-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.af-empty h3 {
    margin: 0 0 6px;
    color: inherit;
}

.af-spinner {
    width: 28px;
    height: 28px;
    margin: 0 auto 12px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: #63b3ed;
    border-radius: 50%;
    animation: af-spin 0.8s linear infinite;
}

@keyframes af-spin {
    to { transform: rotate(360deg); }
}

.af-drawer {
    position: relative;
    margin-top: 8px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(99, 179, 237, 0.25);
    background: rgba(15, 23, 42, 0.85);
}

.af-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.af-drawer-header h3 {
    margin: 0;
    font-size: 1rem;
}

.af-drawer-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

.af-drawer-summary {
    margin: 10px 0;
    font-size: 0.875rem;
    color: var(--mc-text-muted, rgba(255, 255, 255, 0.72));
}

.af-drawer-links {
    font-size: 12px;
    color: #63b3ed;
    margin: 0 0 12px;
}

.af-drawer-tech {
    margin-bottom: 12px;
    font-size: 12px;
}

.af-drawer-tech code {
    display: block;
    margin-top: 4px;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
}

.af-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow: auto;
}

.af-detail-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px;
    font-size: 11px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.af-detail-key {
    color: var(--mc-text-muted, rgba(255, 255, 255, 0.5));
    text-transform: capitalize;
}

.af-detail-val {
    word-break: break-word;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
}

.af-muted {
    font-size: 12px;
    color: var(--mc-text-muted, rgba(255, 255, 255, 0.5));
}

/* Trust Ledger extensions */
.af-trust-ledger .af-day-group { margin-bottom: 18px; }
.af-day-label {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mc-text-muted, rgba(255, 255, 255, 0.55));
}

.af-day-events { display: flex; flex-direction: column; gap: 10px; }

.af-card-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.af-category {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mc-text-muted);
}

.af-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}

.af-actor {
    font-size: 11px;
    color: var(--mc-text-muted);
}

.af-drawer-meta {
    font-size: 0.8125rem;
    color: var(--mc-text-secondary);
    margin: 0 0 10px;
}

.af-drawer-link {
    color: #63b3ed;
    font-size: 12px;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .af-card { grid-template-columns: 36px 1fr; padding: 12px; }
    .af-card-top { flex-direction: column; align-items: flex-start; }
    .af-filters { gap: 6px; }
    .af-filter-chip { font-size: 11px; padding: 5px 10px; }
}
