.moderation-dialog { width: min(850px, calc(100vw - 32px)); max-height: 90vh; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding: 0; color: #e7edf5; background: #121b26; border: 1px solid #526473; border-radius: 12px; box-shadow: 0 24px 100px #000c; }
.moderation-dialog::backdrop { background: #02060cba; }
.moderation-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid #354250; position: sticky; top: 0; background: #121b26; z-index: 1; }
.moderation-dialog h2 { font-size: 21px; margin: 0; }
.moderation-body { padding: 12px 22px 24px; }
.moderation-body section + section { margin-top: 24px; border-top: 1px solid #354250; padding-top: 12px; }
.moderation-body article { padding: 12px; margin: 10px 0; border: 1px solid #354250; border-radius: 7px; background: #182431; }
.moderation-body small { display: block; overflow-wrap: anywhere; color: #a9bacb; margin: 5px 0; }
.moderation-body p { white-space: pre-wrap; overflow-wrap: anywhere; }
.moderation-body h3 { font-size: 15px; color: #d9e97d; }
.moderation-body h4 { margin: 0 0 8px; }
.moderation-dialog button { min-height: 36px; margin: 4px; width: auto; padding: 8px 12px; }
.moderation-dialog button:disabled { opacity: .45; cursor: not-allowed; }
.moderation-dialog :focus-visible { outline: 3px solid #e2f785; outline-offset: 2px; }
.moderation-body label { display: block; margin: 12px 0 5px; }
.moderation-body input, .moderation-body select, .moderation-body textarea { font: inherit; color: #edf4ff; background: #08121d; border: 1px solid #65809a; padding: 10px; border-radius: 4px; max-width: 100%; }
.moderation-body textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.moderation-player { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px; border-bottom: 1px solid #354250; }
.moderation-feedback { margin: 8px 22px; color: #bceaa6; }
.moderation-feedback.error { color: #ffaaa8; }
.moderation-note { font-size: 12px; color: #a9bacb; }
.moderation-confirm { padding: 16px; background: #392919; border: 2px solid #efb756; border-radius: 6px; }
.moderation-confirm strong { display: block; margin-bottom: 8px; overflow-wrap: anywhere; }
.moderation-account-actions { border-top: 1px solid #354250; padding-top: 7px; margin-top: 10px; }
.moderation-account-id { width: 100%; font-family: monospace; font-size: 12px; }
#accountPanel:has(.moderation-account-id) { flex-wrap: wrap; }
.developer-player-management { min-width: 0; }
.developer-player-search { display: grid; grid-template-columns: minmax(140px, 1fr) auto auto auto; gap: 8px; align-items: center; }
.developer-player-search label { grid-column: 1 / -1; margin: 0; }
.developer-player-search input { width: 100%; min-width: 0; box-sizing: border-box; }
.developer-player-search button { margin: 0; }
.developer-selected-player { padding: 16px; margin: 16px 0 12px; border: 1px solid #678498; border-radius: 8px; background: #142c35; overflow-wrap: anywhere; }
.developer-selected-player h4 { font-size: 12px; letter-spacing: .06em; color: #d9e97d; }
.developer-selected-player > strong { font-size: 20px; }
.developer-money-form { display: grid; grid-template-columns: minmax(150px, 1fr) auto; align-items: center; gap: 8px; max-width: 430px; }
.developer-money-form label { grid-column: 1 / -1; margin: 0; font-size: 13px; }
.developer-money-form input { min-width: 0; width: 100%; box-sizing: border-box; }
.developer-money-form button { margin: 0; }
.developer-selected-actions { display: flex; flex-wrap: wrap; margin: 12px -4px 0; }
.developer-player-results { max-height: 380px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #354250; border-radius: 7px; }
.developer-player-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid #354250; }
.developer-player-result:last-child { border-bottom: 0; }
.developer-player-result > div { min-width: 0; overflow-wrap: anywhere; }
.developer-player-result button { flex-shrink: 0; }
.developer-player-result.selected { background: #304137; box-shadow: inset 3px 0 #d9e97d; }
.developer-player-results > p { margin: 12px; }
.developer-player-pager { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.developer-pending-grant { padding: 12px; border: 1px solid #efb756; border-radius: 6px; background: #392919; margin-bottom: 16px; }
.developer-pending-grant p { margin: 8px 0; }
.developer-event-controls { border: 1px solid #49697a; border-radius: 8px; padding: 14px; background: #132630; }
.developer-event-controls select { min-width: min(100%, 280px); }
.developer-active-event { color: #d9e97d; font-weight: 800; letter-spacing: .04em; }
@media (max-width: 600px) {
  .moderation-dialog { width: calc(100vw - 16px); }
  .moderation-dialog > header { padding: 12px; gap: 8px; }
  .moderation-dialog h2 { font-size: 18px; }
  .moderation-body { padding: 12px; }
  .moderation-feedback { margin: 8px 12px; }
  .developer-player-search { grid-template-columns: 1fr 1fr; }
  .developer-player-search input { grid-column: 1 / -1; }
  .developer-player-search button[type="submit"] { grid-column: 1 / -1; }
  .developer-selected-player { padding: 12px; }
  .developer-money-form { grid-template-columns: 1fr; }
  .developer-player-result { padding: 10px 8px; gap: 8px; }
  .developer-player-result button { padding: 8px; font-size: 12px; }
}

/* The full scoreboard shares the HUD roster policy but gives each statistic a column. */
.scoreboard-mode { margin: 2px 0 12px; color: #a9bacb; font-size: 12px; }
.roster-team-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.roster-team.team-blue .roster-team-heading { color: #8fb3ff; }
.roster-team.team-red .roster-team-heading { color: #ff8295; }
.roster-team-heading small { margin: 0; font: 700 11px/1.4 ui-monospace, monospace; }
.roster-team { overflow-x: auto; overscroll-behavior: contain; }
.roster-table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.roster-table th, .roster-table td { padding: 9px 10px; border-bottom: 1px solid #354250; text-align: right; white-space: nowrap; }
.roster-table thead th { color: #9baebb; font-size: 10px; letter-spacing: .06em; }
.roster-table th:first-child { text-align: left; width: 100%; min-width: 135px; }
.roster-table tbody th { font-weight: 600; }
.roster-table tbody th strong { display: block; max-width: 260px; white-space: normal; overflow-wrap: anywhere; }
.roster-table tbody th small { margin: 3px 0 0; font-size: 10px; white-space: normal; }
.roster-player { height: 56px; }
.roster-player.me { background: #ffd3480b; }
.roster-player.me th strong { color: #ffdc73; }
.roster-player.eliminated th { opacity: .64; }
.roster-table .roster-action { min-width: 84px; }
.roster-table button { font-size: 10px; margin: 0; }
@media (max-width: 560px) {
  .roster-table th, .roster-table td { padding: 8px 6px; }
  .roster-table tbody th strong { max-width: 165px; }
  .roster-team-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
}
