.identity-strip,
.identity-current,
.private-audit-note,
.privacy-note,
.privacy-inline-note,
.compact-history {
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  background: #fff;
}

.identity-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  margin: 18px 0;
}

.identity-strip div,
.identity-current {
  display: flex;
  align-items: center;
  gap: 10px;
}

.identity-strip span,
.identity-current span,
.privacy-note span,
.private-audit-note span {
  color: #69717c;
  font-size: .92rem;
}

.identity-strip a,
.compact-history-all,
.history-diff-link {
  font-weight: 700;
}

.identity-current {
  padding: 16px;
  margin: 18px 0;
}

.privacy-note {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #f7f8fa;
}

.privacy-inline-note {
  padding: 12px 14px;
  color: #5f6670;
  font-size: .9rem;
  background: #f7f8fa;
}

.compact-history {
  margin: 28px 0 18px;
  overflow: hidden;
}

.compact-history > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.compact-history > summary::-webkit-details-marker { display: none; }
.compact-history > summary span { color: #747b85; font-size: .9rem; }

.compact-history-list {
  border-top: 1px solid #eceff2;
}

.compact-history-item {
  display: grid;
  grid-template-columns: minmax(80px, .9fr) minmax(110px, 1fr) minmax(160px, 2fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid #f0f2f4;
  text-decoration: none;
}

.compact-history-item:hover { background: #f8f9fb; }
.history-who { font-weight: 700; }
.history-when { color: #7a818b; font-size: .88rem; }
.history-summary { color: #3f4650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-diff { font-size: .88rem; font-weight: 700; }
.compact-history-all { display: block; padding: 14px 18px; }

.private-audit-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 12px 14px;
  margin: 12px 0 18px;
  background: #fff8e8;
  border-color: #ead7a0;
}

.history-item {
  grid-template-columns: 70px 130px 120px minmax(180px, 1fr) auto;
}

@media (max-width: 720px) {
  .identity-strip { align-items: flex-start; }
  .compact-history > summary { align-items: flex-start; flex-direction: column; gap: 4px; }
  .compact-history-item {
    grid-template-columns: 1fr auto;
    gap: 5px 10px;
  }
  .history-summary { grid-column: 1 / -1; white-space: normal; }
  .history-diff { justify-self: end; }
  .history-item { grid-template-columns: 54px 1fr; }
  .history-item > span:nth-child(n+3) { grid-column: 2; }
}
