.outgoing-audit-dialog { width: min(920px, calc(100vw - 24px)); padding: 28px; max-height: 90dvh; overflow: auto; }
.plugin-markets { display:flex; gap:6px; flex-wrap:wrap; margin:8px 0 16px; }
.plugin-markets > span { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; border:1px solid #354159; border-radius:7px; padding:4px 8px; font-size:12px; color:#b9dce9; background:#14202c; }
.censorship-dialog .modal-heading { align-items:flex-start; }
.plugin-markets .earn-market-icon { width:14px; height:14px; border-radius:0; }
.censorship-dialog .modal-heading p { color:var(--muted,#9baac2); }
.censorship-consequence { border:0; padding:0; margin:14px 0 24px; display:grid; gap:10px; }
.censorship-consequence legend { font-weight:700; margin-bottom:10px; }
.censorship-consequence label { display:flex; gap:12px; align-items:flex-start; border:1px solid #303950; border-radius:12px; padding:14px; cursor:pointer; }
.censorship-consequence label:has(input:checked) { border-color:#8b7bff; background:#211e39; }
.censorship-consequence input { flex:0 0 auto; width:18px; height:18px; margin-top:3px; accent-color:#8774ff; }
.censorship-consequence small { display:block; margin-top:5px; color:#9baac2; line-height:1.5; }
.censorship-label { font-weight:700; }
.censorship-label span { font-weight:400; color:#9baac2; }
.censorship-help { color:#9baac2; font-size:13px; line-height:1.6; }
.censorship-dialog textarea { width:100%; box-sizing:border-box; min-height:210px; resize:vertical; padding:14px; line-height:1.6; border:1px solid #354159; border-radius:12px; color:#edf0ff; background:#121824; }
.censorship-dialog summary { cursor:pointer; padding:12px 0; font-weight:600; }
.censorship-legacy label { display:flex; gap:8px; align-items:flex-start; padding:8px 0 16px; }
.censorship-legacy input { width:18px; height:18px; flex-shrink:0; accent-color:#8774ff; }
.censorship-save { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding:18px 0; border-bottom:1px solid #303950; }
.censorship-save [role=status] { flex:1; color:#a6dacf; font-size:13px; }
.chat-send-retry[data-outgoing-hide] { margin-left:8px; font-size:12px; }
.audit-toolbar { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.audit-rows { display:grid; gap:12px; }
.audit-row, .audit-block { padding:16px; border:1px solid #303950; border-radius:14px; background:#151c2b; margin-bottom:8px; }
.audit-row-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.audit-row-heading span { font-size:12px; color:#9bb4d0; }
.audit-row small { color:#9baac2; overflow-wrap:anywhere; }
.audit-row pre { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; margin:12px 0; }
.audit-block, .audit-blocked { border-color:#a45969; }
.audit-blocked .audit-row-heading span { color:#ff9bad; }
.audit-sent .audit-row-heading span { color:#50d8bd; }
.audit-unknown .audit-row-heading span, .audit-pending .audit-row-heading span { color:#ffd28b; }
.audit-reason { padding:10px; border-radius:8px; background:#0f1420; color:#d4b5bc; overflow-wrap:anywhere; }
[data-audit-rules-box] { padding:16px; margin-bottom:16px; border:1px solid #354159; border-radius:12px; }
[data-audit-rules-box] summary { cursor:pointer; padding:8px 0; }
@media(max-width:600px) { .outgoing-audit-dialog { padding:16px; } .audit-row-heading { align-items:flex-start; flex-direction:column; gap:4px; } }

/* Dictionary editor: a single data set, with group and alphabetical list views. */
.censorship-dialog { width:min(1120px,calc(100vw - 24px)); max-height:92dvh; padding:0; overflow:hidden; color:#edf0ff; }
.censorship-dialog[open] { display:flex; flex-direction:column; }
.censorship-dialog [hidden] { display:none!important; }
.censorship-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:24px 28px 12px; border-bottom:1px solid #293248; }
.censorship-heading h2 { font-size:28px; margin:3px 0 6px; }
.censorship-heading p { margin:0; color:#9baac2; font-size:13px; line-height:1.5; }
.censorship-heading .eyebrow { color:#b0a1ff; font-size:11px; letter-spacing:.12em; }
.censorship-heading .modal-close { position:static; flex:0 0 38px; width:38px; height:38px; margin:0; }
.censorship-heading .plugin-markets { margin:12px 0 0; }
.censorship-dialog [data-load-status] { padding:12px 28px; }
.censorship-dialog form { display:flex; flex-direction:column; min-height:0; margin:0; padding:0; }
.censorship-body { overflow:auto; min-height:0; padding:20px 28px 8px; scrollbar-gutter:stable; }
.censorship-dialog .censorship-consequence { grid-template-columns:1fr 1fr; gap:10px; margin:0 0 20px; min-width:0; }
.censorship-consequence legend { font-size:13px; }
.censorship-consequence label { min-width:0; padding:12px; background:#141b29; }
.censorship-consequence strong { font-size:13px; line-height:1.5; display:block; }
.censorship-consequence small { font-size:12px; }
.censorship-tabs { display:flex; gap:5px; border-bottom:1px solid #2d354c; padding:0 0 12px; }
.censorship-tabs button { border:0; border-radius:9px; padding:10px 14px; background:transparent; color:#9baac2; font-family:inherit; font-size:13px; font-weight:600; cursor:pointer; }
.censorship-tabs button[aria-pressed=true] { color:#f3efff; background:#292440; box-shadow:inset 0 0 0 1px #62559b; }
.censorship-toolbar { display:flex; align-items:center; gap:12px; margin:16px 0; }
.censorship-toolbar input { flex:1; min-width:0; }
.censorship-toolbar [data-word-count] { color:#9baac2; font-size:12px; white-space:nowrap; }
.censorship-dialog input:not([type=radio]):not([type=checkbox]), .censorship-dialog select { min-width:0; width:100%; border:1px solid #303c55; border-radius:9px; padding:10px 12px; min-height:40px; background:#141b29; color:#e9edfa; font:inherit; font-size:13px; box-sizing:border-box; }
.censorship-dialog input:focus, .censorship-dialog select:focus, .censorship-dialog textarea:focus { outline:2px solid #8c7bff; outline-offset:1px; }
.censorship-toolbar .button, .censorship-add .button, .censorship-pages .button { padding:10px 14px; font-size:12px; min-height:40px; flex-shrink:0; }
.censorship-workspace { display:grid; grid-template-columns:226px minmax(0,1fr); gap:18px; align-items:start; }
.censorship-workspace.list-mode { grid-template-columns:minmax(0,1fr); }
.censorship-workspace aside { display:grid; gap:6px; padding:6px; border:1px solid #283249; border-radius:13px; background:#111724; }
.censorship-workspace aside button { display:flex; justify-content:space-between; align-items:center; gap:10px; text-align:left; border:1px solid transparent; border-radius:9px; padding:12px 10px; color:#b4bfd3; background:transparent; font:inherit; font-size:12px; cursor:pointer; min-width:0; }
.censorship-workspace aside button span { overflow-wrap:anywhere; }
.censorship-workspace aside b { font-size:11px; padding:3px 7px; border-radius:6px; background:#222c41; color:#acb7ce; }
.censorship-workspace aside button[aria-pressed=true] { color:#eee9ff; border-color:#564784; background:#242037; }
.censorship-workspace aside button[aria-pressed=true] b { color:#c6b9ff; background:#3a3056; }
.censorship-editor { min-width:0; }
.censorship-editor [data-group-heading] { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:12px; }
.censorship-group-name { flex:1; min-width:0; }
.censorship-group-name span { display:block; color:#9baac2; font-size:11px; margin-bottom:6px; }
.censorship-editor [data-group-heading] h3 { font-size:16px; margin:0; }
.censorship-dialog .text-button { color:#b8a9ff; border:0; background:transparent; padding:8px 0; font:inherit; font-size:12px; cursor:pointer; text-decoration:none; }
.censorship-dialog .text-button:hover { color:#ded5ff; text-decoration:underline; }
.censorship-add { display:grid; grid-template-columns:minmax(0,1fr) minmax(100px,.7fr) auto; gap:8px; padding:12px; border:1px solid #393054; border-radius:12px; background:#1a1930; }
.censorship-list-meta { display:flex; justify-content:space-between; align-items:center; gap:10px; margin:8px 0 5px; font-size:11px; color:#8c9bb5; }
.censorship-word-list { border:1px solid #283249; border-radius:12px; overflow:auto; max-height:340px; scrollbar-gutter:stable; background:#111724; }
.censorship-word { display:grid; grid-template-columns:minmax(0,1fr) minmax(100px,175px) 30px 30px; gap:8px; align-items:center; padding:9px 12px; border-bottom:1px solid #252c40; min-height:57px; }
.censorship-word:last-child { border:0; }
.censorship-word:hover { background:#171e2f; }
.censorship-word-value { border:0; padding:0; background:transparent; color:#e7ebfa; text-align:left; cursor:pointer; font:inherit; font-weight:650; font-size:13px; overflow-wrap:anywhere; }
.censorship-word-value small { display:block; color:#899ab6; font-size:10px; font-weight:400; margin-top:3px; }
.censorship-word select { font-size:11px; padding:6px 8px; min-height:32px; }
.censorship-dialog .picker { min-width:0; width:100%; }
.censorship-word .picker-button { font-size:11px; height:32px; padding:0 8px; }
.censorship-icon { width:30px; height:30px; padding:0; color:#aebbd5; border:1px solid #303b52; background:#1c2436; border-radius:7px; font-size:16px; cursor:pointer; }
.censorship-icon:hover { border-color:#9583d5; color:white; }
.censorship-word.just-added { background:#1e3d37; animation:censorship-added 2.5s ease-out forwards; }
@keyframes censorship-added { to { background:transparent; } }
.censorship-pages { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:10px; }
.censorship-pages span { color:#9baac2; font-size:12px; }
.censorship-empty { padding:24px 12px; text-align:center; color:#9baac2; font-size:13px; }
.censorship-guide { border:1px solid #2e364c; border-radius:12px; padding:0 14px; margin:18px 0 12px; }
.censorship-guide summary, .censorship-blocks summary { font-size:12px; }
.censorship-guide p, .censorship-rules-intro p, .censorship-rule p, .censorship-bulk p { font-size:12px; color:#9baac2; line-height:1.6; }
.censorship-guide b { color:#d8dfee; }
.censorship-save { flex-shrink:0; padding:14px 28px; margin:0; border-bottom:0; border-top:1px solid #2c354a; background:#131a28; }
.censorship-save .button { padding:12px 28px; }
.censorship-rules-intro { padding:8px 0; }
.censorship-rules-intro h3 { font-size:16px; margin-bottom:6px; }
.censorship-rules-intro label,.censorship-rule label { display:flex; align-items:center; gap:9px; font-size:13px; padding:8px 0; }
.censorship-dialog input[type=checkbox] { width:17px; height:17px; accent-color:#8b78ff; flex-shrink:0; }
.censorship-dialog [data-audit-rules-box] { padding:0; border:0; }
.censorship-rule { border:1px solid #30394d; border-radius:12px; margin:8px 0; padding:0 14px; }
.censorship-rule summary { font-size:13px; line-height:1.6; }
.censorship-rule summary span { font-size:10px; color:#9baac2; margin-left:10px; font-weight:400; }
.censorship-condition { margin:8px 0; border-top:1px solid #293147; }
.censorship-condition summary { color:#b3a5eb; font-size:12px; }
.censorship-dialog .censorship-condition textarea { min-height:100px; font:12px/1.6 Consolas,monospace; }
.censorship-bulk { width:min(720px,calc(100vw - 24px)); max-height:90dvh; overflow:auto; padding:24px; }
.censorship-bulk textarea { display:block; box-sizing:border-box; width:100%; min-height:180px; max-height:45dvh; resize:vertical; border:1px solid #3c465e; border-radius:10px; padding:12px; background:#121824; color:#edf0ff; font:14px/1.7 Consolas,monospace; }
@media(max-width:800px) {
 .censorship-workspace { grid-template-columns:minmax(0,1fr); }
 .censorship-workspace aside { display:flex; overflow:auto; }
 .censorship-workspace aside button { flex:0 0 160px; }
 .censorship-dialog .censorship-consequence { grid-template-columns:1fr; }
}
@media(max-width:500px) {
 .censorship-heading { padding:16px 14px 12px; gap:8px; }
 .censorship-heading h2 { font-size:24px; }
 .censorship-body { padding:14px 12px 6px; }
 .censorship-save { padding:12px 14px; gap:8px; }
 .censorship-save [role=status] { font-size:11px; }
 .censorship-save .button { padding:12px 18px; }
 .censorship-tabs { gap:3px; }
 .censorship-tabs button { padding:9px 7px; font-size:11px; }
 .censorship-toolbar { flex-wrap:wrap; gap:8px; }
 .censorship-toolbar input { flex-basis:100%; }
 .censorship-toolbar .button { margin-left:auto; }
 .censorship-add { grid-template-columns:minmax(0,1fr) auto; padding:9px; }
 .censorship-add [data-add-word] { grid-column:1/-1; }
 .censorship-word { grid-template-columns:minmax(0,1fr) 28px 28px; gap:5px; padding:9px; }
 .censorship-word-value, .censorship-word [data-edit-word] { grid-column:1; grid-row:1; }
 .censorship-word select, .censorship-word > .picker { grid-column:1/-1; grid-row:2; }
 .censorship-word .censorship-icon { width:28px; height:28px; }
 .censorship-editor [data-group-heading] { flex-wrap:wrap; align-items:center; }
 .censorship-group-name { flex-basis:100%; }
 .censorship-bulk { padding:16px; }
 .censorship-rule { padding:0 10px; }
}
.staff-safety-status { margin: 8px 0 16px; font-weight: 700; }
.staff-safety-block { margin: 12px 0 20px; padding: 18px; border: 1px solid #bd8356; border-radius: 14px; background: #bd835614; overflow-wrap: anywhere; }
.staff-safety-block > strong { color: #f3b475; font-size: 1.05rem; }
.staff-safety-block p { margin: 8px 0 12px; }
.staff-safety-message { margin: 14px 0; padding: 14px; border-radius: 10px; background: #0002; }
.staff-safety-message > span { color: var(--muted); font-size: .85rem; }
.staff-safety-message blockquote { margin: 10px 0 14px; white-space: pre-wrap; }
.staff-safety-message .button { display: inline-flex; text-decoration: none; }

/* Per-group measures and customer monitoring */
.censorship-group-policy{padding:14px;border:1px solid #3b3658;background:#1a1b2c;border-radius:12px;margin:12px 0}
.censorship-watch-toggle{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:600;line-height:1.5}
.censorship-policy-fields{display:flex;gap:12px;margin-top:12px;align-items:end}
.censorship-policy-fields>label{display:grid;gap:7px;min-width:0;flex:1;font-size:12px;color:#bac6db}
.censorship-policy-fields>label+label{flex:0 1 140px}
.censorship-help{color:#97a7bf;font-size:12px;line-height:1.65;margin:10px 0}
.censorship-market-scope{display:flex;flex-wrap:wrap;gap:8px 14px;padding-top:10px;border-top:1px solid #34354c}
.censorship-market-scope label{display:flex;align-items:center;gap:7px;font-size:12px}
[data-customer-watch] h3{margin:18px 0 8px}
[data-watch-groups]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0}
[data-watch-groups] label{display:flex;gap:10px;align-items:center;padding:12px;border:1px solid #30394f;border-radius:10px;background:#151b2a;font-size:13px}
[data-watch-groups] label:has(input:checked){border-color:#6b5ba1;background:#24213a}
.staff-safety-summary,.staff-safety-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}
.staff-safety-summary{border:1px solid #2e364c;border-radius:10px;padding:10px 14px;font-size:13px;background:#131927}
.staff-safety-summary .text-button{background:none;border:0;color:#b8a9ff;font:inherit;white-space:nowrap;cursor:pointer}
.staff-safety-state.ban{color:#ff879d}.staff-safety-state.temporary{color:#ffc480}.staff-safety-state.warn{color:#e9cf79}.staff-safety-state.clear{color:#98b3ba}
.staff-safety-toolbar>div{display:grid;gap:6px}.staff-safety-toolbar small{color:#9baac2}
.staff-safety-filters{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0}
.staff-safety-filters button{border:1px solid #30394f;background:#161c2b;color:#abb8d0;border-radius:9px;padding:9px 13px;font:inherit;font-size:12px;cursor:pointer}
.staff-safety-filters button[aria-pressed=true]{border-color:#7969b5;background:#2c2544;color:#eeeaff}
.staff-safety-events{display:grid;gap:12px}
.staff-safety-event{padding:16px;border:1px solid #3b4157;border-radius:13px;background:#141a29;overflow-wrap:anywhere}
.staff-safety-event.ban{border-left:3px solid #d56a80}.staff-safety-event.temporary{border-left:3px solid #dca35e}.staff-safety-event.warn{border-left:3px solid #baa556}
.staff-safety-event header,.staff-safety-event footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.staff-safety-event header b{display:flex;align-items:center;gap:8px;font-size:14px}.staff-safety-event header small{color:#9baac2;font-size:12px}
.staff-safety-rule{color:#b4bfd4;font-size:12px;line-height:1.6;margin:12px 0}
.staff-safety-event blockquote{margin:10px 0;padding:14px;background:#0d121d;border-radius:9px;white-space:pre-wrap;line-height:1.6;border:0;font-size:14px}
.staff-safety-event footer{margin-top:14px}.staff-safety-event-actions{display:flex;flex-wrap:wrap;gap:8px}.staff-safety-event-actions .button{font-size:12px;padding:9px 13px;text-decoration:none}
.staff-safety-resolution{font-size:12px;color:#97a7bf}
.staff-safety-mini,.telegram-member-person>span>strong .staff-safety-mini{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 19px;width:19px;height:19px;min-width:19px;padding:0!important;margin:0!important;border:1px solid #a68b44;border-radius:6px;background:#a68b4420;color:#f1d57f;font-size:12px!important;font-weight:750;line-height:1;vertical-align:middle}
.staff-safety-mini.ban{border-color:#ba5e71!important;background:#ba5e7120!important;color:#ff93a8!important}
.staff-safety-mini.temporary{border-color:#c69150!important;background:#c6915020!important;color:#ffcb86!important}
@media(max-width:600px){
 [data-watch-groups]{grid-template-columns:minmax(0,1fr)}
 .censorship-policy-fields{flex-wrap:wrap}.censorship-policy-fields>label{flex-basis:100%}
 .staff-safety-event{padding:12px}.staff-safety-event header,.staff-safety-event footer{align-items:flex-start;flex-wrap:wrap}
 .staff-safety-summary{flex-wrap:wrap}.staff-safety-toolbar .button{font-size:12px;padding:9px 12px}
}

