.sc-audit {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.sc-audit .sc-heading { padding-bottom: 0; }
.sc-audit .sc-heading h1 { font-size: clamp(36px, 6vw, 72px); }
.sc-audit-notes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.sc-audit-notes section {
  min-width: 0;
  padding: 18px 20px;
  background: var(--sc-surface);
  border: 1px solid var(--sc-line);
  border-radius: 14px;
}
.sc-audit-notes h2 { margin: 0; font: 700 21px/1.25 var(--sc-heading); }
.sc-audit-notes p { margin: 8px 0; }
.sc-audit-notes details:not([open]) { margin-top: 10px; }
.sc-audit-notes li { margin: .35rem 0; overflow-wrap: anywhere; }
.sc-audit-notes summary { cursor: pointer; width: fit-content; }
.sc-audit-notes code { overflow-wrap: anywhere; }
.sc-audit-scroll {
  max-width: 100%;
  max-height: min(70vh, 760px);
  overflow: auto;
  border: 1px solid var(--sc-line);
  border-radius: 12px;
}
.sc-audit-table {
  width: 100%;
  min-width: 1680px;
  border-spacing: 0;
  background: var(--sc-surface);
  font-size: .9rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.sc-audit-packets .sc-audit-table { min-width: 710px; }
.sc-audit-table :is(th, td) {
  padding: 12px;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid var(--sc-line);
}
.sc-audit-table thead th { position: sticky; z-index: 1; top: 0; background: var(--sc-bg); }
.sc-audit-table th:first-child { min-width: 3rem; white-space: nowrap; }
.sc-audit-table tbody th { color: var(--sc-muted); }
.sc-audit-table td:nth-child(2) { min-width: 9rem; font-weight: 650; }
.sc-audit-table td:nth-child(3), .sc-audit-table td:nth-child(4) { min-width: 13rem; }
.sc-audit-table td:nth-child(5) { min-width: 12rem; overflow-wrap: anywhere; }
.sc-audit-table td:nth-child(6) { min-width: 8rem; }
.sc-audit-table td:nth-child(7) { min-width: 17rem; }
.sc-audit-table td:nth-child(8) { min-width: 6rem; }
.sc-audit-table td:nth-child(9) { min-width: 13rem; white-space: nowrap; }
.sc-audit-table small { display: block; color: var(--sc-muted); font-weight: 400; }
.sc-audit-table code { overflow-wrap: anywhere; }
.sc-audit-packets td:nth-child(n) { min-width: auto; font-weight: 400; white-space: nowrap; }
.sc-audit-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 12px;
}
.sc-audit-filter label { font-weight: 700; }
.sc-audit-filter input {
  width: min(100%, 24rem);
  min-width: 0;
  background: var(--sc-surface);
  color: var(--sc-text);
  border: 1px solid var(--sc-line);
  border-radius: 8px;
  padding: 9px 12px;
  font: inherit;
}
.sc-audit-filter span { color: var(--sc-muted); font-variant-numeric: tabular-nums; }
.sc-audit-scroll:focus-visible, .sc-audit-filter input:focus-visible { outline: 2px solid var(--sc-text); outline-offset: 2px; }
.sc-audit-contracts { min-width: 0; margin-bottom: 32px; }

@media (max-width: 520px) {
  .sc-audit-notes section { padding: 14px; }
  .sc-audit-filter input { order: 1; width: 100%; }
}
