.audit-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, #14253f 0%, #1d4ed8 100%);
  color: #fff;
}
.audit-hero .eyebrow, .audit-hero .muted { color: rgba(255,255,255,.78); }
.audit-hero-summary { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.audit-hero-summary span { min-width: 132px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.25); border-radius: 14px; background: rgba(255,255,255,.12); }
.audit-hero-summary strong, .audit-hero-summary small { display: block; }
.audit-hero-summary strong { font-size: 1.05rem; }
.audit-hero-summary small { margin-top: 3px; color: rgba(255,255,255,.72); }
.audit-filter-card { border-color: #bfdbfe; }
.audit-filters { grid-template-columns: repeat(5, minmax(140px, 1fr)); align-items: end; }
.audit-filters label { margin: 0; }
.audit-search-field { grid-column: span 3; }
.audit-filter-actions { grid-column: span 2; display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.audit-filter-actions .secondary-button { text-decoration: none; }
.audit-log-card { border-color: #dbeafe; }
.audit-table { min-width: 1180px; }
.audit-table td { vertical-align: top; }
.audit-table td strong, .audit-table td small, .audit-table td code { display: block; }
.audit-table td small { margin-top: 4px; color: #64748b; }
.audit-table td code { margin-top: 5px; font-size: .73rem; color: #475569; overflow-wrap: anywhere; }
.audit-details summary { cursor: pointer; color: #2563eb; font-weight: 800; }
.audit-change-grid { display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr)); gap: 8px; margin-top: 8px; }
.audit-change-grid > div { min-width: 0; }
.audit-change-grid span { display: block; margin-bottom: 4px; color: #64748b; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.audit-change-grid pre { max-width: 420px; max-height: 260px; overflow: auto; margin: 0; padding: 9px; border-radius: 10px; background: #0f172a; color: #e2e8f0; font-size: .72rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.audit-request-id { max-width: 220px; }
.audit-pagination { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 14px; }
.audit-pagination > :last-child { justify-self: end; }
.audit-pagination > span { color: #64748b; font-weight: 700; }
.audit-empty { padding: 28px 12px; text-align: center; color: #64748b; }

@media (max-width: 980px) {
  .audit-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit-search-field, .audit-filter-actions { grid-column: span 2; }
}
@media (max-width: 700px) {
  .audit-hero { align-items: stretch; flex-direction: column; }
  .audit-hero-summary { justify-content: stretch; }
  .audit-hero-summary span { flex: 1 1 130px; }
  .audit-filters { grid-template-columns: 1fr; }
  .audit-search-field, .audit-filter-actions { grid-column: auto; }
  .audit-filter-actions { justify-content: stretch; }
  .audit-filter-actions > * { flex: 1 1 100%; text-align: center; }
  .audit-change-grid { grid-template-columns: 1fr; }
  .audit-pagination { grid-template-columns: 1fr; text-align: center; }
  .audit-pagination > * { justify-self: stretch !important; }
}
