.user-history-intro h3 { margin: 12px 0 8px; }
.user-history-intro p { max-width: 90ch; color: var(--muted); line-height: 1.5; }
.user-history-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 20px 0 12px; }
.user-history-filters label { display: grid; gap: 6px; min-width: 180px; color: var(--ink); font-weight: 650; }
.user-history-filters label:first-child { flex: 1 1 280px; max-width: 480px; }
.user-history-filters input, .user-history-filters select { min-width: 0; width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.user-history-status { color: var(--muted); line-height: 1.5; }
.user-history-results { min-width: 0; }
.user-history-scroll { overflow: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.user-history-table { min-width: 880px; width: 100%; }
.user-history-table th, .user-history-table td { padding: 12px; text-align: left; vertical-align: top; }
.user-history-table td:first-child { white-space: nowrap; }
.user-history-table td:nth-child(3), .user-history-table td:nth-child(4) { overflow-wrap: anywhere; min-width: 160px; }
.user-history-table td:last-child { min-width: 210px; }
.user-history-table summary { cursor: pointer; color: var(--accent); }
.user-history-table dl { margin-bottom: 0; }
.user-history-table dt { margin-top: 8px; font-weight: 650; }
.user-history-table dd { margin: 3px 0 0; max-width: 400px; overflow-wrap: anywhere; }
.user-history-badge { display: inline-block; padding: 4px 9px; border-radius: 6px; white-space: nowrap; background: #edf2f6; color: #365169; font-weight: 650; font-size: .88rem; }
.user-history-created { background: #e5f3eb; color: #23603f; }
.user-history-updated { background: #e8f2fb; color: #215e86; }
.user-history-deleted { background: #fbe9e9; color: #923b3b; }
.user-history-pages { display: flex; gap: 10px; margin-top: 14px; }
@media (max-width: 900px) {
  .user-history-filters label, .user-history-filters label:first-child { min-width: 0; flex: 1 1 100%; max-width: none; }
  .user-history-filters input, .user-history-filters select { font-size: 16px; min-height: 44px; }
}
