.audit-panel {
  display: grid;
  gap: 18px;
}

.audit-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
}

.audit-readonly {
  border-color: rgba(86, 211, 143, 0.35);
  color: #bdf4d2;
}

.audit-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.audit-status {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
}

.audit-status span,
.audit-status small {
  display: block;
  color: var(--muted);
}

.audit-status strong {
  display: block;
  margin: 7px 0;
  font-size: 20px;
}

.audit-status-safe strong {
  color: #bdf4d2;
}

.audit-status-pending strong {
  color: #f2d08a;
}

.audit-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 12px;
}

.audit-section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
}

.audit-section h3 {
  margin: 0 0 14px;
  font-size: 14px;
}

.audit-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.audit-session-badge {
  color: var(--muted);
  font-size: 11px;
}

.audit-guards {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.audit-guard {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.audit-guard-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  font-weight: 800;
}

.audit-guard-icon.ok {
  color: #bdf4d2;
  background: rgba(86, 211, 143, 0.12);
  border: 1px solid rgba(86, 211, 143, 0.25);
}

.audit-guard-icon.pending {
  color: #f2d08a;
  background: rgba(242, 208, 138, 0.10);
  border: 1px solid rgba(242, 208, 138, 0.22);
}

.audit-guard strong,
.audit-guard small {
  display: block;
}

.audit-guard small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.45;
}

.audit-events {
  display: grid;
  gap: 10px;
}

.audit-event {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.audit-event:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.audit-event time,
.audit-event small {
  color: var(--muted);
  font-size: 11px;
}

.audit-event strong,
.audit-event small {
  display: block;
}

.audit-event small {
  margin-top: 2px;
}

@media (max-width: 920px) {
  .audit-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-body-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .audit-status-grid {
    grid-template-columns: 1fr;
  }
}
