:root {
  --safety-brand: var(--cf-brand, #ff4040);
  --safety-brand-dark: #d92f2f;
  --safety-brand-soft: #fff1f1;
  --safety-ink: var(--cf-text, #172033);
  --safety-muted: var(--cf-muted, #667085);
  --safety-line: var(--cf-stroke, #e6e8ed);
  --safety-surface: #fff;
  --safety-soft: #f6f7f9;
  --safety-success: #18794e;
  --safety-success-soft: #ecfdf3;
  --safety-danger: #b42318;
  --safety-danger-soft: #fff1f0;
  --safety-warning: #8a4b08;
  --safety-warning-soft: #fff7e6;
  --safety-shadow: 0 18px 50px rgba(23, 32, 51, .13);
  --safety-radius: 18px;
}

.safety-menu-trigger {
  appearance: none;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: -8px -7px -8px 2px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--safety-muted);
  cursor: pointer;
  font: 800 1.25rem/1 system-ui, sans-serif;
  letter-spacing: .08em;
}

.safety-menu-trigger:hover,
.safety-menu-trigger[aria-expanded="true"] {
  color: var(--safety-ink);
  background: var(--safety-soft);
}

.safety-menu-trigger:focus-visible,
.cf-safety-menu button:focus-visible,
.cf-safety-dialog button:focus-visible,
.cf-safety-dialog textarea:focus-visible,
.cf-safety-dialog input:focus-visible,
.trust-safety-page a:focus-visible,
.trust-safety-page button:focus-visible {
  outline: 3px solid rgba(255, 64, 64, .28);
  outline-offset: 2px;
}

.comment-deleted {
  padding: 9px 11px;
  border: 1px dashed #cfd4dd;
  border-radius: 10px;
  background: #f7f8fa;
  color: #747c8b;
  font-size: .84rem;
  font-style: italic;
}

.cf-safety-menu {
  position: fixed;
  z-index: 2147483000;
  width: min(245px, calc(100vw - 24px));
  padding: 7px;
  border: 1px solid var(--safety-line);
  border-radius: 14px;
  background: var(--safety-surface);
  box-shadow: var(--safety-shadow);
}

.cf-safety-menu[hidden] { display: none !important; }

.cf-safety-menu button,
.cf-safety-menu a {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--safety-ink);
  text-align: left;
  text-decoration: none;
  font: 750 .9rem/1.25 system-ui, sans-serif;
  cursor: pointer;
}

.cf-safety-menu button:hover,
.cf-safety-menu a:hover { background: var(--safety-soft); }
.cf-safety-menu .is-danger { color: var(--safety-danger); }
.cf-safety-menu__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--safety-soft);
  font-size: .78rem;
}

.cf-safety-dialog {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  width: min(620px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  max-height: min(760px, calc(100vh - 28px));
  max-height: min(760px, calc(100dvh - 28px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  color: var(--safety-ink);
  background: var(--safety-surface);
  box-shadow: 0 32px 90px rgba(15, 23, 42, .3);
}

/* Ensure open dialogs stay visible even when showModal() falls back to [open]. */
.cf-safety-dialog[open],
.cf-safety-dialog.is-open {
  display: flex;
  flex-direction: column;
}

.cf-safety-dialog,
.cf-safety-dialog * { box-sizing: border-box; }

#conflingoReportDialog {
  height: min(760px, calc(100vh - 28px));
  height: min(760px, calc(100dvh - 28px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
}

.cf-safety-dialog::backdrop { background: rgba(15, 23, 42, .62); }
.cf-safety-dialog__form,
.cf-safety-report-view {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: inherit;
  overflow: hidden;
}
.cf-safety-dialog__form { height: 100%; }
.cf-safety-report-view { flex: 1 1 auto; }
.cf-safety-report-view[hidden],
.cf-safety-success[hidden] { display: none !important; }
.cf-safety-dialog__header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 17px;
  border-bottom: 1px solid var(--safety-line);
}
.cf-safety-dialog__eyebrow {
  margin: 0 0 5px;
  color: var(--safety-brand-dark);
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.cf-safety-dialog h2 { margin: 0; font-size: clamp(1.25rem, 4vw, 1.55rem); letter-spacing: -.025em; }
.cf-safety-dialog__close {
  appearance: none;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--safety-soft);
  color: var(--safety-ink);
  font-size: 1.35rem;
  cursor: pointer;
}
.cf-safety-dialog__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 20px 22px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}
.cf-safety-dialog__intro { margin: 0 0 16px; color: var(--safety-muted); line-height: 1.55; }
.cf-safety-dialog__context {
  margin: 0 0 16px;
  padding: 11px 13px;
  border-left: 3px solid var(--safety-brand);
  border-radius: 0 10px 10px 0;
  background: var(--safety-brand-soft);
  color: #4b3040;
  font-size: .88rem;
}
.cf-safety-fieldset { margin: 0; padding: 0; border: 0; }
.cf-safety-fieldset legend { margin-bottom: 10px; font-weight: 850; }
.cf-safety-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.cf-safety-reason { position: relative; display: block; }
.cf-safety-reason input { position: absolute; opacity: 0; pointer-events: none; }
.cf-safety-reason span {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px 10px 38px;
  border: 1px solid var(--safety-line);
  border-radius: 12px;
  background: #fff;
  font-size: .85rem;
  font-weight: 720;
  line-height: 1.3;
  cursor: pointer;
}
.cf-safety-reason span::before {
  content: "";
  position: absolute;
  left: 13px;
  width: 15px;
  height: 15px;
  border: 2px solid #aeb4bf;
  border-radius: 50%;
  background: #fff;
}
.cf-safety-reason input:checked + span { border-color: var(--safety-brand); background: var(--safety-brand-soft); }
.cf-safety-reason input:checked + span::before { border: 5px solid var(--safety-brand); }
.cf-safety-reason input:focus-visible + span { outline: 3px solid rgba(255, 64, 64, .28); outline-offset: 2px; }
.cf-safety-details { display: grid; gap: 7px; margin-top: 18px; }
.cf-safety-details__head { display: flex; justify-content: space-between; gap: 14px; font-size: .84rem; font-weight: 800; }
.cf-safety-details__optional,
.cf-safety-counter { color: var(--safety-muted); font-weight: 600; }
.cf-safety-dialog textarea {
  width: 100%;
  min-height: 105px;
  padding: 11px 12px;
  border: 1px solid #d5d9e0;
  border-radius: 12px;
  resize: vertical;
  color: var(--safety-ink);
  background: #fff;
  font: inherit;
}
.cf-safety-dialog__note { margin: 10px 0 0; color: var(--safety-muted); font-size: .78rem; line-height: 1.5; }
.cf-safety-dialog__status { min-height: 22px; margin: 12px 0 0; color: var(--safety-danger); font-size: .84rem; font-weight: 750; }
.cf-safety-dialog__footer {
  position: sticky;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 22px calc(15px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--safety-line);
  background: #fbfbfc;
}
.cf-safety-dialog__footer a { color: var(--safety-muted); font-size: .83rem; font-weight: 750; }
.cf-safety-dialog__actions { display: flex; gap: 9px; }
.cf-safety-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 0;
  border-radius: 11px;
  font: 800 .88rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.cf-safety-button:disabled { opacity: .58; cursor: wait; }
.cf-safety-button--quiet { background: #eceef2; color: var(--safety-ink); }
.cf-safety-button--primary { background: var(--safety-brand); color: #fff; }
.cf-safety-button--primary:hover { background: var(--safety-brand-dark); }
.cf-safety-button--danger { background: var(--safety-danger); color: #fff; }
.cf-safety-success {
  display: grid;
  flex: 1 1 auto;
  place-items: center;
  min-height: 0;
  overflow-y: auto;
  padding: 34px 22px;
  text-align: center;
}
.cf-safety-success__mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 15px;
  border-radius: 20px;
  background: var(--safety-success-soft);
  color: var(--safety-success);
  font-size: 1.6rem;
  font-weight: 900;
}
.cf-safety-success h2 { margin: 0 0 8px; }
.cf-safety-success p { max-width: 430px; margin: 0 0 18px; color: var(--safety-muted); line-height: 1.55; }
.cf-safety-success__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.cf-safety-confirm-copy { margin: 0; color: var(--safety-muted); line-height: 1.6; }

.cf-safety-toast {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 2147483001;
  max-width: min(390px, calc(100vw - 32px));
  padding: 13px 16px;
  border: 1px solid #b7e0c7;
  border-radius: 13px;
  background: var(--safety-success-soft);
  color: #1c5e3d;
  box-shadow: var(--safety-shadow);
  font-size: .88rem;
  font-weight: 750;
}
.cf-safety-toast.is-error { border-color: #f1b8b2; background: var(--safety-danger-soft); color: var(--safety-danger); }
.cf-safety-toast[hidden] { display: none !important; }

/* Trust & Safety center */
.trust-safety-page { min-height: 100vh; color: var(--safety-ink); background: #f7f8fa; font-family: "Noto Sans", system-ui, sans-serif; }
.trust-safety-page .visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.trust-safety-page .visually-hidden:focus { position:fixed!important; top:12px!important; left:12px!important; z-index:2147483002!important; width:auto!important; height:auto!important; margin:0!important; clip:auto!important; padding:10px 14px!important; border-radius:10px!important; background:#fff!important; color:var(--safety-ink)!important; box-shadow:var(--safety-shadow)!important; }
.trust-safety-shell { width: min(1180px, calc(100% - 32px)); margin: 28px auto 72px; }
.trust-safety-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: clamp(26px, 5vw, 48px);
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #172033 0%, #26334c 62%, #3a293c 100%);
  box-shadow: 0 20px 55px rgba(23, 32, 51, .18);
}
.trust-safety-hero::after { content: ""; position: absolute; right: -70px; top: -105px; width: 290px; height: 290px; border-radius: 50%; background: rgba(255, 64, 64, .2); }
.trust-safety-hero__copy { position: relative; z-index: 1; max-width: 760px; }
.trust-safety-eyebrow { margin: 0 0 8px; color: #ffbebe; font-size: .75rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.trust-safety-hero h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.35rem); letter-spacing: -.05em; line-height: 1.03; }
.trust-safety-hero p:last-child { margin: 13px 0 0; color: #e4e9f1; font-size: clamp(.98rem, 2vw, 1.1rem); line-height: 1.65; }
.trust-safety-hero__mark { position: relative; z-index: 1; display: grid; place-items: center; width: 92px; height: 92px; border: 1px solid rgba(255,255,255,.2); border-radius: 28px; background: rgba(255,255,255,.09); font-size: 2.5rem; }
.trust-safety-jump {
  position: sticky;
  top: 76px;
  z-index: 20;
  display: flex;
  gap: 8px;
  margin: 18px 0;
  padding: 9px;
  overflow-x: auto;
  border: 1px solid var(--safety-line);
  border-radius: 15px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 7px 25px rgba(23,32,51,.06);
  scrollbar-width: thin;
}
.trust-safety-jump a { flex: 0 0 auto; padding: 9px 12px; border-radius: 10px; color: #4a5367; text-decoration: none; font-size: .83rem; font-weight: 800; white-space: nowrap; }
.trust-safety-jump a:hover,
.trust-safety-jump a[aria-current="location"] { color: var(--safety-brand-dark); background: var(--safety-brand-soft); }
.trust-safety-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.trust-safety-section {
  grid-column: span 12;
  scroll-margin-top: 145px;
  padding: clamp(21px, 4vw, 30px);
  border: 1px solid var(--safety-line);
  border-radius: var(--safety-radius);
  background: #fff;
  box-shadow: 0 8px 28px rgba(23,32,51,.045);
}
.trust-safety-section--half { grid-column: span 6; }
.trust-safety-section__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.trust-safety-section__title { display: flex; gap: 13px; align-items: flex-start; }
.trust-safety-icon { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px; background: var(--safety-brand-soft); color: var(--safety-brand-dark); font-size: 1.1rem; font-weight: 900; }
.trust-safety-section h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.02em; }
.trust-safety-section__subtitle { margin: 4px 0 0; color: var(--safety-muted); font-size: .86rem; line-height: 1.5; }
.trust-safety-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trust-safety-rule { padding: 16px; border: 1px solid var(--safety-line); border-radius: 14px; background: #fcfcfd; }
.trust-safety-rule strong { display: block; margin-bottom: 6px; }
.trust-safety-rule p { margin: 0; color: var(--safety-muted); font-size: .83rem; line-height: 1.55; }
.trust-safety-steps { margin: 0; padding: 0; list-style: none; counter-reset: safety-step; display: grid; gap: 11px; }
.trust-safety-steps li { counter-increment: safety-step; position: relative; min-height: 34px; padding: 5px 0 5px 46px; color: #4d5668; line-height: 1.55; }
.trust-safety-steps li::before { content: counter(safety-step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--safety-brand-soft); color: var(--safety-brand-dark); font-weight: 900; }
.trust-safety-callout { margin-top: 16px; padding: 14px 16px; border-left: 4px solid var(--safety-brand); border-radius: 0 12px 12px 0; background: var(--safety-brand-soft); color: #52353f; font-size: .86rem; line-height: 1.55; }
.trust-safety-list { display: grid; gap: 10px; }
.trust-safety-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 14px; border: 1px solid var(--safety-line); border-radius: 13px; background: #fff; }
.trust-safety-item__copy { min-width: 0; }
.trust-safety-item__copy strong { display: block; overflow-wrap: anywhere; }
.trust-safety-item__meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 5px; color: var(--safety-muted); font-size: .78rem; }
.trust-safety-status { display: inline-flex; align-items: center; min-height: 27px; padding: 5px 9px; border-radius: 999px; background: var(--safety-soft); color: #566074; font-size: .72rem; font-weight: 850; text-transform: capitalize; }
.trust-safety-status--resolved,
.trust-safety-status--actioned { background: var(--safety-success-soft); color: var(--safety-success); }
.trust-safety-status--pending,
.trust-safety-status--open { background: var(--safety-warning-soft); color: var(--safety-warning); }
.trust-safety-link,
.trust-safety-small-button { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 13px; border: 0; border-radius: 10px; text-decoration: none; font: 800 .82rem/1.1 system-ui, sans-serif; cursor: pointer; }
.trust-safety-link { background: var(--safety-brand); color: #fff; }
.trust-safety-link:hover { background: var(--safety-brand-dark); }
.trust-safety-link--secondary { background: #eceef2; color: var(--safety-ink); }
.trust-safety-small-button { border: 1px solid #efbbb6; background: #fff; color: var(--safety-danger); }
.trust-safety-small-button:disabled { opacity: .55; cursor: wait; }
.trust-safety-empty { padding: 24px 18px; border: 1px dashed #cfd4dd; border-radius: 14px; background: #fafbfc; text-align: center; }
.trust-safety-empty strong { display: block; margin-bottom: 5px; }
.trust-safety-empty p { margin: 0; color: var(--safety-muted); font-size: .84rem; line-height: 1.5; }
.trust-safety-support { background: linear-gradient(135deg, #fff, #fff7f7); }
.trust-safety-support__actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.trust-safety-account-callout { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px; border-radius: 14px; background: var(--safety-soft); }
.trust-safety-account-callout p { margin: 4px 0 0; color: var(--safety-muted); font-size: .84rem; }

@media (max-width: 820px) {
  .trust-safety-hero { grid-template-columns: 1fr; }
  .trust-safety-hero__mark { display: none; }
  .trust-safety-section--half { grid-column: span 12; }
  .trust-safety-rules { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .trust-safety-jump {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }
  .trust-safety-jump a {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 44px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

.cf-safety-edit-hint {
  margin: 0 0 12px;
  color: var(--safety-muted);
  font-size: .84rem;
  line-height: 1.45;
}

.cf-safety-dialog--edit-post,
#conflingoEditDialog {
  width: min(760px, calc(100vw - 28px));
  max-height: min(860px, calc(100vh - 28px));
  max-height: min(860px, calc(100dvh - 28px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
}

@media (max-width: 820px) {
  .cf-safety-reasons { grid-template-columns: 1fr; }
  .cf-safety-dialog,
  .cf-safety-dialog.cf-safety-dialog--edit-post,
  #conflingoEditDialog,
  #conflingoReportDialog,
  #conflingoDeleteDialog,
  #conflingoBlockDialog {
    /* Do not use height:min(..., 100%) — on iOS dialog % height can resolve to 0. */
    position: fixed;
    inset: auto 0 0 0;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    width: 100dvw;
    max-width: none;
    height: 92vh;
    height: 92dvh;
    max-height: 92vh;
    max-height: 92dvh;
    margin: 0;
    border-radius: 22px 22px 0 0;
    transform: none;
    -webkit-transform: none;
  }
  #conflingoEditDialog,
  #conflingoEditDialog.cf-safety-dialog--edit-post {
    height: 94vh;
    height: 94dvh;
    max-height: 94vh;
    max-height: 94dvh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  #conflingoEditDialog .cf-safety-dialog__form,
  .cf-safety-dialog--edit-post .cf-safety-dialog__form {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }
  .cf-safety-dialog__header,
  .cf-safety-dialog__body,
  .cf-safety-dialog__footer {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .cf-safety-dialog__footer {
    align-items: stretch;
    flex-direction: column;
    padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
  }
  .cf-safety-dialog__footer a { text-align: center; }
  .cf-safety-dialog__actions { width: 100%; }
  .cf-safety-dialog__actions .cf-safety-button { flex: 1; min-height: 44px; }
  .cf-safety-editor-shell .ql-container,
  .cf-safety-editor-shell .ql-editor {
    min-height: 140px;
  }
  .cf-safety-editor-shell .ql-editor {
    max-height: min(28vh, 220px);
  }
  .trust-safety-shell { width: min(100% - 20px, 1180px); margin-top: 14px; }
  .trust-safety-hero { border-radius: 21px; }
  .trust-safety-jump { top: 68px; margin: 11px 0; }
  .trust-safety-section { scroll-margin-top: 128px; }
  .trust-safety-section__head,
  .trust-safety-item,
  .trust-safety-account-callout { align-items: stretch; flex-direction: column; }
  .trust-safety-item > .trust-safety-link,
  .trust-safety-item > .trust-safety-small-button,
  .trust-safety-account-callout > .trust-safety-link { width: 100%; }
}

.cf-safety-locked-title {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--safety-line);
  border-radius: 14px;
  background: var(--safety-soft);
}

.cf-safety-locked-title__label {
  display: block;
  margin-bottom: 6px;
  color: var(--safety-muted);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.cf-safety-locked-title__value {
  color: var(--safety-ink);
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.35;
  word-break: break-word;
}

.cf-safety-edit-media-note {
  margin: 0 0 12px;
  color: var(--safety-muted);
  font-size: .8rem;
  line-height: 1.45;
}

.cf-safety-editor-shell {
  border: 1px solid var(--safety-line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.cf-safety-editor-shell .ql-toolbar {
  border: 0;
  border-bottom: 1px solid var(--safety-line);
  background: var(--safety-soft);
}

.cf-safety-editor-shell .ql-container {
  border: 0;
  font-size: 1rem;
  min-height: 220px;
}

.cf-safety-editor-shell .ql-editor {
  min-height: 220px;
  max-height: min(42vh, 360px);
  overflow-y: auto;
}

#conflingoEditPostPane[hidden],
#conflingoEditCommentPane[hidden],
#conflingoEditPreview[hidden] { display: none !important; }

.cf-safety-edit-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.cf-safety-edit-tools .cf-safety-button {
  min-height: 40px;
}

.cf-safety-edit-preview {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--safety-line);
  border-radius: 14px;
  background: var(--safety-soft);
}

.cf-safety-edit-preview h3 {
  margin: 0 0 10px;
  font-size: .92rem;
  letter-spacing: -.01em;
}

.cf-safety-edit-preview__content {
  max-height: min(36vh, 280px);
  overflow: auto;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  color: var(--safety-ink);
  line-height: 1.55;
  word-break: break-word;
}

.cf-safety-edit-preview__content h1 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.cf-safety-edit-preview__content h2,
.cf-safety-edit-preview__content h3 {
  margin: 1em 0 .45em;
}

.cf-safety-edit-preview__content p { margin: 0 0 .8em; }
.cf-safety-edit-preview__content img,
.cf-safety-edit-preview__content video,
.cf-safety-edit-preview__content iframe {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.cf-safety-dialog__status.is-info {
  color: var(--safety-muted);
  font-weight: 650;
}

.content-edited-slot,
.content-edited-host {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  box-sizing: border-box;
  width: auto;
  max-width: min(100%, 12rem);
  margin: 0;
  padding: 0;
  min-height: 0;
  overflow: visible;
  flex: 0 1 auto;
}

.content-edited-slot:not(:has([data-content-edited-mark])),
.content-edited-host:not(:has([data-content-edited-mark])) {
  display: none;
}

.comment-votes:has([data-content-edited-mark]) {
  justify-content: flex-start;
}

.comment-votes:has([data-content-edited-mark]) > .reply-metric {
  margin-left: auto;
}

.comment-votes > .content-edited-slot {
  margin-left: 0;
}

.opinion-votes > .content-edited-slot {
  margin-left: auto;
}

.content-edited-mark {
  appearance: none;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0;
  box-sizing: border-box;
  max-width: 100%;
  margin: 0;
  padding: 2px 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--safety-muted, #8b93a3);
  font: inherit;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.35;
  opacity: .85;
  text-align: right;
  white-space: nowrap;
  cursor: pointer;
}

.content-edited-mark:hover,
.content-edited-mark:focus-visible,
.content-edited-mark.is-open {
  opacity: 1;
  background: rgba(15, 23, 42, .04);
  white-space: normal;
}

.content-edited-mark:focus-visible {
  outline: 3px solid rgba(255, 64, 64, .28);
  outline-offset: 2px;
}

.content-edited-mark__stamp {
  display: none;
  margin-left: .35em;
  font-weight: 550;
}

.content-edited-mark__stamp::before {
  content: '·';
  margin-right: .35em;
}

.content-edited-mark:hover .content-edited-mark__stamp,
.content-edited-mark:focus-visible .content-edited-mark__stamp,
.content-edited-mark.is-open .content-edited-mark__stamp {
  display: inline;
}

.comment .content-edited-mark {
  font-size: .68rem;
  min-height: 28px;
  align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  .cf-safety-dialog,
  .cf-safety-toast,
  .cf-safety-menu { scroll-behavior: auto; }
}
