.rimoly-safety-profile-actions{display:flex;flex-wrap:wrap;gap:.65rem;margin:.75rem 0}
.rimoly-safety-profile-actions .btn{min-height:44px}
/* Focused community-safety surfaces; inherits Rimoly typography and theme. */
.rs-layer[hidden] { display: none !important; }
.rs-layer {
  position: fixed; inset: 0; z-index: 12000; display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(31, 26, 25, .58); overscroll-behavior: contain;
}
.rs-dialog {
  width: min(100%, 560px); max-height: min(92dvh, 820px); overflow: auto;
  padding: 24px; border-radius: 16px; color: var(--text, #332e2b);
  background: var(--surface, #fffaf7); border: 1px solid var(--border, #dfd2ca);
  box-shadow: 0 18px 60px rgba(47, 30, 23, .24); font: inherit;
}
body.dark .rs-dialog { color: var(--text, #f4eae4); background: var(--surface, #292421); border-color: var(--border, #514740); }
.rs-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.rs-head h2, .rs-admin h2 { margin: 0; font-size: 1.35rem; line-height: 1.25; }
.rs-head p { margin: 6px 0 0; line-height: 1.5; color: var(--muted, #746963); }
.rs-close, .rs-button, .rs-admin button, .rs-dialog button {
  min-height: 46px; padding: 10px 16px; border: 1px solid var(--border, #d8cbc4);
  border-radius: 10px; color: inherit; background: var(--surface, #fffaf7);
  font: inherit; font-weight: 650; cursor: pointer;
}
.rs-close { min-width: 46px; padding: 8px; font-size: 1.25rem; }
.rs-button.primary, .rs-admin button.primary { color: #fff; border-color: #b92727; background: #b92727; }
.rs-button.danger, .rs-admin button.danger { color: #9d2222; border-color: #d7aaa3; }
.rs-button:disabled, .rs-admin button:disabled { opacity: .55; cursor: not-allowed; }
.rs-dialog label, .rs-admin label { display: block; margin: 12px 0 6px; font-weight: 700; }
.rs-dialog textarea, .rs-admin textarea, .rs-admin select {
  box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px;
  border: 1px solid var(--border, #d8cbc4); border-radius: 9px;
  color: inherit; background: var(--input, #fff); font: inherit;
}
body.dark .rs-dialog textarea, body.dark .rs-admin textarea, body.dark .rs-admin select { background: #211e1c; }
.rs-dialog textarea, .rs-admin textarea { min-height: 150px; resize: vertical; }
.rs-help, .rs-count, .rs-admin-muted { color: var(--muted, #746963); font-size: .94rem; line-height: 1.5; }
.rs-count { text-align: right; }
.rs-alert { margin: 10px 0; color: #9d2222; line-height: 1.45; }
.rs-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.rs-list { display: grid; gap: 10px; margin: 14px 0; padding: 0; list-style: none; }
.rs-list li, .rs-admin-row { padding: 14px; border: 1px solid var(--border, #dfd2ca); border-radius: 12px; }
.rs-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rs-admin { color: var(--text, #332e2b); }
.rs-admin-intro { max-width: 70ch; color: var(--muted, #746963); line-height: 1.5; }
.rs-admin-list { display: grid; gap: 14px; margin-top: 16px; }
.rs-admin-row h3 { margin: 0 0 8px; font-size: 1.05rem; }
.rs-admin-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; color: var(--muted, #746963); font-size: .92rem; }
.rs-reason { margin: 10px 0; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 8px; background: rgba(185, 39, 39, .06); }
.rs-admin-controls { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(200px, 1.3fr); gap: 10px; align-items: end; }
.rs-admin-controls label { margin-top: 0; }
.rs-admin-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.rs-status { display: inline-block; padding: 4px 9px; border-radius: 999px; background: rgba(185,39,39,.09); color: #9d2222; font-weight: 700; }
@media (max-width: 600px) {
  .rs-layer { padding: 0; place-items: end stretch; }
  .rs-dialog { width: 100%; max-height: 94dvh; padding: 20px 18px max(18px, env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
  .rs-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .rs-actions button { width: 100%; }
  .rs-admin-controls { grid-template-columns: 1fr; }
  .rs-list li { align-items: flex-start; flex-direction: column; }
}
