/* Content safety (report.js, moderation.js, pages/safety.js, pages/admin-reports.js): the "…" menu on posts and replies, folded and taken-down bodies, the held-post notice, the report/block/appeal dialogs, and the safety and moderation pages. */
.thread,
.comment {
  position: relative;
}
.safety-more {
  position: absolute;
  top: 18px;
  right: 26px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-color: transparent;
  border-radius: 50%;
  background: transparent;
  color: #646e85;
  font-size: 20px;
  line-height: 1;
}
/* Centred on the floor's meta row (14px padding + 25px avatar). */
.comment > .safety-more {
  top: 2px;
  right: -8px;
}
.comment > .meta,
.thread > .meta {
  padding-right: 44px;
}
.safety-link {
  margin-top: 18px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: #646e85;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.safety-link:hover {
  background: none;
  color: #b64d5e;
}
.safety-gone {
  padding: 12px 14px;
  border-radius: 10px;
  background: #f4f5f9;
  color: #646e85;
  font-size: 14px;
}
.safety-gone a,
.safety-flag a {
  margin-left: 8px;
  color: var(--blue);
  font-weight: 650;
}
.safety-flag {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff4e5;
  color: #8a5300;
  font-size: 13px;
}
.safety-flag a {
  margin-left: 0;
}
.safety-fold {
  margin: 10px 0;
}
.safety-fold summary {
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f4f5f9;
  color: #646e85;
  font-size: 14px;
}
.safety-fold[open] summary {
  margin-bottom: 8px;
}
.safety-held {
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid #f0c98c;
  border-radius: 12px;
  background: #fff8ec;
  color: #6b4500;
  font-size: 14px;
}
.safety-held ul {
  margin: 8px 0;
  padding-left: 20px;
}
.safety-held p {
  margin: 6px 0 0;
  color: #6b4500;
  font-size: 13px;
  line-height: 1.7;
}
.safety-held .safety-link {
  margin-top: 6px;
  color: #8a5300;
}
.safety-dialog {
  width: min(520px, 92vw);
}
.safety-dialog h2 {
  margin-top: 10px;
}
.safety-reasons {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  padding: 0;
  border: 0;
}
.safety-reasons legend {
  margin-bottom: 6px;
  color: #646e85;
  font-size: 13px;
  font-weight: 650;
}
.safety-reasons label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.safety-reasons label:has(input:checked) {
  border-color: #8f9cf0;
  background: #f5f6ff;
}
.safety-reasons input {
  width: auto;
  margin: 0;
}
.safety-dialog .field textarea {
  width: 100%;
}
.safety-sheet {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}
.safety-sheet button {
  text-align: left;
}
.safety-tabs {
  flex-wrap: wrap;
}
.safety-cases,
.safety-section + .safety-section {
  margin-top: 18px;
}
.safety-section {
  padding: 26px 28px;
}
.safety-section h2 {
  margin-bottom: 8px;
}
.safety-none {
  margin: 0;
  font-size: 14px;
}
.safety-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.safety-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.safety-item:first-child {
  border-top: 0;
}
.safety-item.compact {
  padding: 14px 0;
}
.safety-item h3,
.safety-case h3 {
  margin: 8px 0 4px;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.safety-item h3 a,
.safety-case h3 a,
.safety-sub a {
  color: var(--blue);
}
.safety-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.safety-tags .tag.warn {
  color: #8a5300;
  background: #fff1d9;
}
.safety-sub {
  margin: 4px 0;
  color: #646e85;
  font-size: 13px;
  line-height: 1.6;
}
.safety-quote {
  margin: 10px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--line);
  background: #fafbfd;
  color: #47516d;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.7;
}
.safety-text {
  margin: 0 0 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.safety-issues {
  margin: 6px 0;
  padding-left: 20px;
  color: #6b4500;
  font-size: 14px;
}
.safety-state {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
}
.safety-state.ok {
  color: #1f7a5c;
}
.safety-item > button {
  margin-top: 8px;
}
.safety-case {
  margin-bottom: 16px;
  padding: 24px 28px;
}
.safety-case-body {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.safety-case-body > div {
  min-width: 0;
  flex: 1;
}
.safety-thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  background: #f4f5f9;
}
.safety-reports {
  margin: 14px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.safety-reports li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.safety-reports li strong {
  margin-right: 10px;
}
.safety-reports li p {
  margin: 4px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.safety-case .actions {
  flex-wrap: wrap;
  justify-content: end;
}
@media (max-width: 720px) {
  .safety-more {
    top: 16px;
    right: 12px;
  }
  .safety-section,
  .safety-case {
    padding: 20px 18px;
  }
  .safety-thumb {
    width: 72px;
    height: 72px;
  }
  .safety-case .actions button {
    flex: 1;
  }
}
