@scope (.list-page) {
  .toolbar__filters {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
  }

  .audit-log__system-actor {
    color: var(--color-text-muted);
    font-style: italic;
  }

  .audit-log__timestamp-col {
    width: 140px;
    white-space: nowrap;
  }

  .audit-log__record-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
  }

  .audit-log__item-type {
    font-weight: var(--font-medium);
  }

  .audit-log__record-name {
    color: var(--color-text-secondary);
    font-size: var(--text-body-sm);
  }
}

/* Diff Styles */
.audit-log-diff-table td {
  vertical-align: top;
}

.diff-value {
  display: block;
  min-height: 1.5em;
  padding: var(--space-2xs) var(--space-xs);
  border-radius: var(--radius-sm);
}

.diff-value--removed {
  background: var(--color-error-muted);
  color: var(--color-error-text);
  text-decoration: line-through;
}

.diff-value--added {
  background: var(--color-success-muted);
  color: var(--color-success-text);
}

.diff-value--unchanged {
  color: var(--color-text-muted);
}

.diff-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-text-muted);
  padding: 0 var(--space-sm);
  font-family: var(--font-sans);
}

.badge--create {
  --_bg: var(--color-success-muted);
  --_text: var(--color-success-text);
}

.badge--update {
  --_bg: var(--color-info-muted);
  --_text: var(--color-info-text);
}

.badge--destroy {
  --_bg: var(--color-error-muted);
  --_text: var(--color-error-text);
}
