#moderators-root { min-width: 0; }
.mod-toolbar, .mod-refresh-controls, .mod-section-heading, .mod-detail-header, .mod-pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.mod-toolbar { margin-bottom: var(--space-6); flex-wrap: wrap; }
.mod-toolbar h2 { margin: 0 0 7px; color: var(--text-primary); font-size: var(--text-2xl); font-weight: 650; letter-spacing: -.02em; }
.mod-toolbar p, .mod-detail-header p { margin: 0; color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.8; }
.mod-refresh-controls { flex-wrap: wrap; }
.mod-refresh-controls label { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--text-secondary); cursor: pointer; }
.mod-refresh-controls input { accent-color: var(--accent-primary); }
.mod-filters { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(150px, .8fr) minmax(200px, 1.5fr); gap: var(--space-4); }
.mod-filters label, .mod-custom label { display: grid; gap: var(--space-2); color: var(--text-primary); font-size: var(--text-sm); min-width: 0; font-weight: 550; }
.mod-filters input, .mod-custom input { width: 100%; min-width: 0; min-height: var(--control-h-md); padding: var(--space-2) var(--space-3); border: 1px solid var(--border-medium); border-radius: var(--radius-sm); background-color: var(--bg-input); color: var(--text-primary); font: inherit; font-size: var(--text-sm); font-weight: 400; }
/* The inline-end side is the caret reserve, so it is never set here. */
.mod-filters select { width: 100%; min-width: 0; min-height: var(--control-h-md); padding-block: var(--space-2); padding-inline-start: var(--space-3); border: 1px solid var(--border-medium); border-radius: var(--radius-sm); background-color: var(--bg-input); color: var(--text-primary); font: inherit; font-size: var(--text-sm); font-weight: 400; }
.mod-custom { display: flex; gap: var(--space-4); margin-top: var(--space-4); }
.mod-custom[hidden], .mod-warning[hidden] { display: none; }
.mod-custom label { flex: 1; max-width: 240px; }
.mod-scope-note { color: var(--text-muted); font-size: var(--text-xs); line-height: 1.8; margin: 14px 0; }
#moderator-status { min-height: 22px; color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.8; margin: var(--space-2) 0; overflow-wrap: anywhere; }
#moderator-status.mod-error { color: var(--danger); }
.mod-warning { padding: 14px var(--space-4); margin-bottom: 18px; border: 1px solid var(--border-medium); border-inline-start: 3px solid var(--warning); border-radius: var(--radius-sm); color: var(--text-secondary); background: var(--warning-soft); font-size: var(--text-sm); line-height: 1.8; }
.mod-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); margin-bottom: var(--space-6); }
.mod-stat { padding: var(--space-5); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-card); }
.mod-stat span { display: block; color: var(--text-secondary); font-size: var(--text-xs); line-height: 1.6; }
.mod-stat strong { display: block; font-family: var(--font-display); margin-top: var(--space-3); color: var(--text-primary); font-size: var(--text-3xl); line-height: 1.2; font-weight: 600; }
.mod-panel { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-card); margin-bottom: var(--space-6); overflow: hidden; }
.mod-section-heading { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border-subtle); }
.mod-section-heading h3 { color: var(--text-primary); font-size: var(--text-base); margin: 0; font-weight: 650; }
.mod-section-heading > span { color: var(--text-muted); font-size: var(--text-xs); }
.mod-table-wrap { width: 100%; overflow-x: auto; }
.mod-table { width: 100%; border-collapse: collapse; color: var(--text-secondary); font-size: var(--text-sm); text-align: start; }
.mod-table th { padding: var(--space-3) var(--space-4); color: var(--text-muted); font-size: var(--text-2xs); font-weight: 500; text-align: start; white-space: nowrap; }
.mod-table td { padding: var(--space-4); border-top: 1px solid var(--border-subtle); vertical-align: middle; }
.mod-table tbody tr:hover, .mod-table tbody tr:focus-within, .mod-table .mod-selected { background: var(--bg-card-elevated); }
.mod-table .mod-selected td:first-child { box-shadow: inset 3px 0 var(--accent-indicator); }
[dir="rtl"] .mod-table .mod-selected td:first-child { box-shadow: inset -3px 0 var(--accent-indicator); }
.mod-table button[data-moderator-id] { padding: 0; border: 0; background: transparent; white-space: normal; text-align: start; max-width: 280px; }
.mod-identity { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.mod-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-medium); color: var(--accent-text); background: var(--bg-app); }
.mod-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mod-name { display: grid; gap: var(--space-1); min-width: 0; }
.mod-name strong { color: var(--text-primary); font-size: var(--text-sm); font-weight: 600; overflow-wrap: anywhere; }
.mod-name small, .mod-table td > small { display: block; color: var(--text-muted); font-size: var(--text-2xs); line-height: 1.6; }
.mod-account { display: block; font-size: var(--text-xs); white-space: nowrap; }
.mod-staff { display: block; color: var(--text-muted); font-size: var(--text-2xs); line-height: 1.7; margin-top: 5px; white-space: nowrap; }
.mod-total { font: 600 18px var(--font-mono, monospace); color: var(--text-primary); }
.mod-breakdown { display: flex; flex-wrap: wrap; gap: 5px; min-width: 150px; }
.mod-breakdown > span { display: inline-flex; gap: var(--space-2); padding: var(--space-1) 7px; border: 1px solid var(--border-subtle); border-radius: var(--radius-xs); color: var(--text-secondary); font-size: var(--text-2xs); line-height: 1.5; white-space: nowrap; }
.mod-breakdown b { font-weight: 650; color: var(--accent-text); }
.mod-muted { color: var(--text-muted); font-size: var(--text-xs); line-height: 1.7; }
.mod-date { display: block; min-width: 120px; color: var(--text-muted); font-size: var(--text-2xs); line-height: 1.8; }
.mod-empty { padding: var(--space-9) var(--space-6); text-align: center; color: var(--text-secondary); font-size: var(--text-base); line-height: 1.9; }
.mod-choose { border: 1px dashed var(--border-medium); border-radius: var(--radius-md); padding-block: 65px; }
.mod-choose h2 { font-size: var(--text-2xl); color: var(--text-primary); margin-bottom: 14px; }
.mod-choose p { margin-bottom: var(--space-6); }
.mod-detail-header { padding: var(--space-6) var(--space-5) var(--space-3); flex-wrap: wrap; }
.mod-detail-header p { margin-top: var(--space-3); }
.mod-detail-total { display: grid; gap: 7px; text-align: end; }
.mod-detail-total strong { color: var(--accent-text); font-size: var(--text-3xl); font-weight: 600; }
.mod-detail-total span { color: var(--text-muted); font-size: var(--text-xs); }
.mod-detail-breakdown { padding: 0 var(--space-5) 18px; }
.mod-history { min-width: 690px; }
.mod-history td { vertical-align: top; line-height: 1.8; }
.mod-case-number, .mod-action { display: block; color: var(--text-primary); font-weight: 550; margin-bottom: 5px; }
.mod-reason { min-width: 160px; max-width: 400px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mod-pagination { padding: var(--space-4) var(--space-5); border-top: 1px solid var(--border-subtle); }
.mod-pagination > span { color: var(--text-secondary); font-size: var(--text-xs); }
/* Focus rings come from the shared contract in style.css. */
@media (max-width: 900px) { .mod-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mod-table td, .mod-table th { padding-inline: var(--space-3); } }
@media (max-width: 600px) {
  .mod-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mod-search-label { grid-column: 1 / -1; }
  .mod-toolbar h2 { font-size: var(--text-2xl); }
  .mod-refresh-controls { width: 100%; }
  .mod-stat { padding: var(--space-4); }
  .mod-stat strong { font-size: var(--text-2xl); }
  .mod-custom label { max-width: none; }
  .mod-detail-total { text-align: start; }
  .mod-summary { gap: var(--space-2); }
  .mod-table button[data-moderator-id] { min-height: 44px; }
}
