/* Account → Audit (docs/05-views.md, docs/mockup/oneshot_mockup.html "Audit") */
.audit__head h1 {
  margin: 10px 0 var(--page-header-gap);
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 4.2cqi, 2.7rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.01em;
}

.audit__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.audit__search {
  display: flex;
  flex: 1 1 220px;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 320px;
  height: 38px;
  padding: 0 10px;
  border: var(--border);
  border-radius: var(--radius);
}

.audit__search .ms {
  color: var(--muted);
  font-size: 20px;
}

.audit__search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
}

.audit__search:has(input:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: -1px;
}

.audit__filter select {
  min-width: 160px;
  height: 38px;
  padding: 0 10px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 14px;
}

.audit__panel {
  overflow-x: auto;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.audit__table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}

.audit__table th {
  padding: var(--cell-pad);
  border-bottom: var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.audit__table td {
  padding: var(--cell-pad);
  border-bottom: var(--border);
  vertical-align: top;
}

.audit__table tr:last-child td {
  border-bottom: 0;
}

.audit__time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.audit__action {
  font-weight: 600;
}

.audit__action code,
.audit__table pre {
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 12.5px;
}

.audit__object {
  color: var(--muted);
  font-size: 13px;
}

.audit__object summary {
  margin-top: 4px;
  color: var(--blue);
  cursor: pointer;
}

.audit__table pre {
  margin: 6px 0 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  white-space: pre-wrap;
}

.audit__empty {
  color: var(--muted);
}
