.heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.danger-button {
  min-height: 40px;
  padding: 10px 17px;
  border: 0;
  border-radius: 3px;
  background: var(--danger);
  color: white;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.danger-button:hover {
  background: #96342f;
}

.delete-card {
  max-width: 720px;
  padding: 28px;
  border: 1px solid #e3b4b0;
  border-top: 4px solid var(--danger);
  background: var(--card);
}

.delete-summary h2 {
  margin: 14px 0 6px;
  font-size: 26px;
}

.delete-summary p,
.stack-form small {
  color: var(--muted);
  font-size: 14px;
}

.stack-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cdd2d1;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  resize: vertical;
}

.audit-timeline {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--card);
}

.audit-list {
  display: grid;
  margin-top: 14px;
  border-top: 1px solid var(--ink);
}

.audit-event {
  display: grid;
  grid-template-columns: 100px 160px minmax(0, 1fr) 28px;
  gap: 14px;
  align-items: center;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.audit-event small,
.audit-meta span {
  color: var(--muted);
  font-size: 13px;
}

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

.audit-action {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 14px;
  background: #e6f2ef;
  color: #276c61;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.audit-action.large {
  padding: 9px 15px;
  font-size: 16px;
}

.audit-action.action-soft_delete {
  background: #fae9e7;
  color: var(--danger);
}

.audit-action.action-restore {
  background: #fff2d9;
  color: #805d1d;
}

.audit-table td {
  min-width: 110px;
}

.audit-table td:nth-child(6),
.audit-table td:nth-child(7) {
  min-width: 180px;
}

.audit-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.audit-meta div {
  display: grid;
  gap: 7px;
  padding: 20px;
  background: var(--card);
}

.audit-diff pre {
  max-width: 560px;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
}

.restore-form {
  margin: 0;
}

@media (max-width: 820px) {
  .audit-event,
  .audit-meta {
    grid-template-columns: 1fr;
  }
}
