/* Delegated forum moderation: one semantic palette for system light/dark and root data-theme overrides.
   All colors come from ThemePalette through /theme.css. No second theme state. */
.moderator-workspace{min-width:0;max-width:1180px;margin:0 auto;color:var(--pp-text)}
.moderator-workspace .sub{color:var(--pp-text-muted)}
.mod-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 16px}
.mod-head>div{min-width:0}
.mod-head h1{margin:0 0 6px}
.mod-head>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;background:var(--pp-accent-bg);color:var(--pp-link);border:1px solid var(--pp-border);border-radius:8px;text-decoration:none;font-weight:600;white-space:nowrap}
.mod-head>a:hover{text-decoration:underline}
.moderator-workspace .panel{background:var(--pp-surface);border-color:var(--pp-border)}
.mod-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:0 0 16px;padding:16px;border:1px solid var(--pp-border);border-radius:12px;background:var(--pp-surface)}
.mod-filters label{flex:1 1 220px;min-width:0;display:grid;gap:6px}
.mod-filters :is(select,button){min-height:44px}
.mod-filters button{flex:0 1 auto}
.mod-section{min-width:0;margin-bottom:20px}
.mod-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--pp-border);padding-bottom:12px;margin-bottom:10px}
.mod-section-head h2{margin:0}
.mod-count{display:inline-block;border:1px solid var(--pp-border);background:var(--pp-surface-subtle);color:var(--pp-text-muted);padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600}
.mod-report{padding:16px 0;border-bottom:1px solid var(--pp-border)}
.mod-report:last-child{border-bottom:0}
.mod-report-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.mod-report-head>div{min-width:0}
.mod-report-head strong{font-size:15px}
.mod-report-head a{color:var(--pp-link);font-weight:600}
.mod-report-body{overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.5;margin:10px 0}
.mod-review{display:grid;grid-template-columns:minmax(140px,1fr) minmax(180px,2fr) auto;align-items:flex-end;gap:12px}
.mod-review label{min-width:0;display:grid;gap:6px}
.mod-review :is(input,select){width:100%;box-sizing:border-box;min-height:44px}
.mod-review button{min-height:44px;white-space:nowrap}
.mod-table-wrap{overflow-x:auto;max-width:100%}
.mod-table-wrap table{min-width:750px;width:100%;border-collapse:collapse}
.mod-table-wrap th,.mod-table-wrap td{padding:10px;vertical-align:top;border-top:1px solid var(--pp-border);text-align:left}
.mod-table-wrap th{font-size:12px;color:var(--pp-text-muted);font-weight:600}
.mod-table-wrap td{overflow-wrap:anywhere}
.mod-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.mod-actions form{display:inline-block}
.mod-actions button{padding:7px 10px;min-height:40px;background:var(--pp-surface-subtle);color:var(--pp-text);border:1px solid var(--pp-border);border-radius:8px;font-size:12px}
.mod-actions button:hover{background:var(--pp-accent-bg);color:var(--pp-link)}
.mod-actions>a{display:inline-flex;align-items:center;min-height:40px;padding:4px 8px;font-weight:600}
.mod-reply{border-top:1px solid var(--pp-border);padding:12px 0}
.mod-reply form button{background:var(--pp-surface-subtle);color:var(--pp-text);border:1px solid var(--pp-border);min-height:40px}
.mod-pages{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:16px;color:var(--pp-text-muted)}
.mod-pages>a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:6px 12px;color:var(--pp-link);background:var(--pp-surface-subtle);border:1px solid var(--pp-border);border-radius:8px}
.mod-note,.mod-error{padding:12px;border-radius:10px;margin:12px 0}
.mod-note{background:var(--pp-note-bg);color:var(--pp-text);border:1px solid var(--pp-border)}
.mod-error{background:var(--pp-warning-bg);color:var(--pp-warning-text);border:1px solid var(--pp-warning-border)}
.moderator-workspace :is(a,button,input,select,textarea):focus-visible{outline:3px solid var(--pp-focus);outline-offset:2px}
@media(max-width:900px){.mod-review{grid-template-columns:1fr}.mod-review button{justify-self:start}.mod-head{flex-direction:column}.mod-filters button{width:100%}}
@media(max-width:550px){.mod-filters label{flex-basis:100%}.mod-review button{width:100%}.mod-report-head{flex-direction:column}.mod-section{padding:12px}}
@media(forced-colors:active){.mod-report,.mod-reply,.mod-section,.mod-table-wrap td,.mod-table-wrap th{border-color:CanvasText}.mod-count{border-color:CanvasText}}
