/*
  ModPanel. Палитра взята из интерфейса самой игры: тёплый графит панелей,
  «костяной» цвет текста, зелёная кнопка подключения, ржаво-красный для опасных действий
  и патина — для ссылок и фокуса.
*/
:root {
  --bg: #22211f;
  --sidebar: #1c1b19;
  --panel: #2a2926;
  --raised: #33312d;
  --line: #3e3b36;
  --line-soft: #34322e;
  --text: #d8cfc4;
  --muted: #9b9389;
  --faint: #6f6962;
  --patina: #74b3a2;
  --moss: #9bb556;
  --go: #6f8a3e;
  --go-hover: #7d9a47;
  --go-text: #f0f4e4;
  --amber: #d9a441;
  --oxide: #c8492e;
  --oxide-hover: #d65538;
  --oxide-text: #fbe9e3;

  --font: 'Roboto Condensed', 'Arial Narrow', 'Segoe UI', system-ui, sans-serif;
  --radius: 4px;
  --radius-lg: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.45 var(--font);
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--patina);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
}
h1 {
  font-size: 26px;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 17px;
}
p {
  margin: 0;
}
code,
pre,
kbd {
  font-family: var(--font);
}

:focus-visible {
  outline: 2px solid var(--patina);
  outline-offset: 2px;
}

.muted {
  color: var(--muted);
}
.warn-text {
  color: var(--amber);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}

/* ---------- Каркас ---------- */

.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 12px 12px;
  background: var(--sidebar);
  border-right: 1px solid var(--line-soft);
  overflow-y: auto;
}

.brand {
  padding: 0 8px 4px;
}
.brand-mark {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-mark:hover {
  text-decoration: none;
}

.search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.search-trigger:hover {
  color: var(--text);
  border-color: var(--faint);
}
.search-trigger span {
  flex: 1;
}
kbd {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 12px;
  color: var(--faint);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.nav-group {
  padding: 14px 10px 4px;
  font-size: 13px;
  color: var(--faint);
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 500;
}
.nav-link:hover {
  color: var(--text);
  background: var(--panel);
  text-decoration: none;
}
.nav-link.active {
  color: var(--text);
  background: var(--raised);
  box-shadow: inset 3px 0 0 var(--moss);
}

.me {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 6px 2px;
  border-top: 1px solid var(--line-soft);
}
.me-text {
  flex: 1;
  min-width: 0;
}
.me-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.me-role {
  font-size: 13px;
  color: var(--muted);
}

.topbar,
.scrim {
  display: none;
}

.content {
  padding: 28px 32px 64px;
  min-width: 0;
  outline: none;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.page-tools {
  display: flex;
  gap: 8px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- Панели и таблицы ---------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.panel-title {
  padding: 14px 16px 0;
  font-size: 15px;
}
.panel-note {
  padding: 14px 16px;
  color: var(--muted);
}
.section-title {
  font-size: 15px;
  margin-top: 8px;
}

.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  padding: 8px 12px;
  text-align: left;
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.table tbody tr:last-child td {
  border-bottom: none;
}
.table tbody tr:hover {
  background: var(--raised);
}
.tab-body > .table-wrap,
.tab-body > div > .table-wrap {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}

.num {
  white-space: nowrap;
}
.cell-name {
  min-width: 180px;
  white-space: nowrap;
}
.cell-name > * {
  vertical-align: middle;
}
.cell-name > * + * {
  margin-left: 8px;
}
.cell-actions {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}
.row-tools {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}
.player-link {
  color: var(--text);
  font-weight: 500;
}
.player-link:hover {
  color: var(--patina);
}

.copy-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: copy;
}
.copy-cell:hover {
  color: var(--patina);
}

.ping-warn {
  color: var(--amber);
}
.ping-bad {
  color: var(--oxide);
}

.team {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}

.more {
  display: flex;
  justify-content: center;
  padding: 12px;
}
.more:has(> [hidden]) {
  display: none;
}

/* ---------- Сервер: шапка и заполненность ---------- */

.server-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.server:not(:has(.table-wrap, .panel-note, .facts)) .server-head {
  border-bottom: none;
}
.server-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.server-title .dot {
  align-self: center;
}
.server-hostname {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}
.server-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
.server-tools {
  display: flex;
  gap: 4px;
}

.pop {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pop-bar {
  position: relative;
  width: 140px;
  height: 8px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.pop-fill {
  height: 100%;
  background: var(--moss);
}
.pop-text strong {
  font-size: 17px;
}
.pop-queue {
  color: var(--amber);
}

/* ---------- Статусы ---------- */

.dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
}
.dot-active {
  background: var(--moss);
}
.dot-joining {
  background: var(--amber);
}
.dot-queued {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--amber);
}
.dot-off {
  background: var(--faint);
}

.chip {
  display: inline-block;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
  white-space: nowrap;
}
.chip-live {
  color: var(--moss);
  border-color: color-mix(in srgb, var(--moss) 40%, transparent);
}
.chip-dead {
  color: var(--oxide);
  border-color: color-mix(in srgb, var(--oxide) 45%, transparent);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px 0;
}

/* ---------- Профиль игрока ---------- */

.profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}
.profile-name {
  font-size: 34px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.profile-id {
  margin: 6px 0 8px;
  color: var(--muted);
}
.profile-status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px 24px;
  margin: 0;
  padding: 14px 16px 16px;
}
.fact {
  min-width: 0;
}
.fact dt {
  font-size: 13px;
  color: var(--muted);
}
.fact dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}
.facts-row {
  padding: 16px 0;
  margin-bottom: 20px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.inline-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.profile-grid:empty {
  display: none;
}
.live {
  border-color: color-mix(in srgb, var(--moss) 35%, var(--line-soft));
}

.tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  color: var(--muted);
  font: 500 15px var(--font);
  cursor: pointer;
  white-space: nowrap;
}
.tab:hover {
  color: var(--text);
}
.tab.active {
  color: var(--text);
  border-bottom-color: var(--moss);
}
.tab-count {
  font-size: 13px;
  color: var(--faint);
}

/* ---------- Кнопки и поля ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
  color: var(--text);
  font: 500 15px var(--font);
  line-height: 20px;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--faint);
  text-decoration: none;
}
.btn-primary {
  background: var(--go);
  border-color: var(--go);
  color: var(--go-text);
}
.btn-primary:hover {
  background: var(--go-hover);
  border-color: var(--go-hover);
}
.btn-danger {
  background: var(--oxide);
  border-color: var(--oxide);
  color: var(--oxide-text);
}
.btn-danger:hover {
  background: var(--oxide-hover);
  border-color: var(--oxide-hover);
}
.btn-quiet {
  background: none;
  border-color: transparent;
  color: var(--muted);
}
.btn-quiet:hover {
  color: var(--text);
  background: var(--raised);
  border-color: transparent;
}
.btn-danger-text:hover {
  color: var(--oxide);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.icon-btn:hover {
  color: var(--text);
  background: var(--raised);
}

.input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sidebar);
  color: var(--text);
  font: 15px var(--font);
}
.input::placeholder {
  color: var(--faint);
}
.input:focus {
  outline: none;
  border-color: var(--patina);
}
.input:disabled {
  color: var(--muted);
}
select.input {
  width: auto;
}
.filter-input {
  max-width: 360px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 12px;
}
.form-row select.input {
  width: 100%;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field-label {
  font-size: 14px;
  color: var(--muted);
}
.note {
  color: var(--muted);
  font-size: 14px;
}

.perm-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.perm-group {
  margin: 0;
  padding: 10px 12px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.perm-group legend {
  padding: 0 4px;
  font-weight: 500;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
}
.check input {
  margin: 3px 0 0;
  accent-color: var(--go);
}

/* ---------- Модальные окна, поиск, меню ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgb(14 13 12 / 0.72);
}
.overlay-top {
  align-items: flex-start;
  padding-top: 12vh;
}

.modal {
  width: min(480px, 100%);
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.modal-wide {
  width: min(720px, 100%);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px 10px 18px;
}
.modal-body {
  padding: 4px 18px 18px;
  overflow-y: auto;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--line-soft);
}

.token {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--sidebar);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.token code {
  flex: 1;
  overflow-wrap: anywhere;
  font-size: 16px;
  color: var(--moss);
}
.code {
  margin: 0;
  padding: 10px 12px;
  background: var(--sidebar);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 14px;
  white-space: pre;
}
.steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
:not(pre) > code {
  padding: 0 4px;
  background: var(--raised);
  border-radius: 3px;
}

.search-box {
  width: min(560px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
}
.search-input {
  flex: 1;
  padding: 14px 0;
  border: 0;
  background: none;
  color: var(--text);
  font: 18px var(--font);
  outline: none;
}
.search-results {
  max-height: 55vh;
  overflow-y: auto;
  padding: 6px;
}
.search-hint {
  padding: 12px 10px;
  color: var(--muted);
}
.search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.search-item.active {
  background: var(--raised);
}
.search-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.search-item-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.search-item-sub {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ctx-menu {
  position: fixed;
  z-index: 60;
  min-width: 200px;
  padding: 4px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.ctx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--text);
  font: 15px var(--font);
  text-align: left;
  cursor: pointer;
}
.ctx-item:hover,
.ctx-item:focus-visible {
  background: var(--line);
  outline: none;
}
.ctx-item svg {
  color: var(--muted);
}
.ctx-icon-gap {
  width: 16px;
}
.ctx-danger,
.ctx-danger svg {
  color: var(--oxide);
}
.ctx-sep {
  height: 1px;
  margin: 4px 6px;
  background: var(--line);
}

.toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(420px, calc(100vw - 32px));
}
.toast {
  padding: 10px 14px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--patina);
  border-radius: var(--radius);
  transition: opacity 0.25s, transform 0.25s;
}
.toast-success {
  border-left-color: var(--moss);
}
.toast-warn {
  border-left-color: var(--amber);
}
.toast-error {
  border-left-color: var(--oxide);
}
.toast-out {
  opacity: 0;
  transform: translateY(6px);
}

/* ---------- Пустые состояния и аватарки ---------- */

.empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 28px 24px;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
}
.empty-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.empty .btn {
  margin-top: 6px;
}
.loading {
  padding: 24px 0;
  color: var(--muted);
}

.avatar {
  flex: none;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--raised);
}
.avatar-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line);
}
.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 13px;
}
.avatar-md {
  width: 40px;
  height: 40px;
}
.avatar-lg {
  width: 88px;
  height: 88px;
  font-size: 34px;
}

/* ---------- Вход ---------- */

.login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-brand {
  color: var(--moss);
}
.login-msg {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
}
.login-msg-error {
  border-left-color: var(--oxide);
}
.btn-steam {
  padding: 11px 16px;
  font-size: 16px;
}

/* ---------- Телефон и узкие окна ---------- */

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: var(--sidebar);
    border-bottom: 1px solid var(--line-soft);
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .nav-open .sidebar {
    transform: none;
  }
  .nav-open .scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgb(14 13 12 / 0.6);
  }
  .content {
    padding: 18px 14px 48px;
  }
  .profile {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .profile-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .profile-name {
    font-size: 26px;
  }
  .avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 26px;
  }
  .filter-input {
    max-width: none;
  }
  .facts {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px 16px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .server-hostname {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ---------- Этап 2: чат, репорты, проверки, наказания ---------- */

.chip-team {
  color: var(--patina);
  border-color: color-mix(in srgb, var(--patina) 40%, transparent);
}
.chip-staff {
  color: var(--amber);
  border-color: color-mix(in srgb, var(--amber) 45%, transparent);
}
.row-faded td {
  opacity: 0.55;
}
.table-click tbody tr {
  cursor: pointer;
}
.table-click tbody tr:hover {
  background: var(--raised);
}

.page-tools {
  flex-wrap: wrap;
}

/* Чат */
.chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.chat-scroll {
  height: calc(100vh - 250px);
  min-height: 320px;
  overflow-y: auto;
  padding: 6px 0;
}
.chat-panel-inline .chat-feed {
  max-height: 600px;
  overflow-y: auto;
}
.chat-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  padding: 4px 16px;
  line-height: 1.4;
}
.chat-line:hover {
  background: var(--raised);
}
.chat-line-staff {
  background: color-mix(in srgb, var(--amber) 6%, transparent);
}
.chat-blocked .chat-text {
  text-decoration: line-through;
  color: var(--faint);
}
.chat-time {
  color: var(--faint);
  font-size: 13px;
  flex: none;
}
.chat-server {
  font-size: 13px;
}
.chat-name {
  font-weight: 700;
  flex: none;
}
.chat-staff {
  color: var(--amber);
}
.chat-text {
  flex: 1 1 260px;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.chat-tools {
  display: flex;
  gap: 2px;
  margin-left: auto;
  opacity: 0;
}
.chat-line:hover .chat-tools,
.chat-tools:focus-within {
  opacity: 1;
}
@media (hover: none) {
  .chat-tools {
    opacity: 1;
  }
}
.composer {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.composer .input:not(select) {
  flex: 1;
  min-width: 0;
}
.composer-target {
  flex: none;
  width: auto;
}
.quote {
  margin: 0;
  padding: 8px 12px;
  border-left: 3px solid var(--line);
  background: var(--raised);
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* Репорты */
.report-group + .report-group {
  border-top: 1px solid var(--line-soft);
}
.report-head {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) minmax(150px, 1fr) minmax(140px, 1.2fr) minmax(120px, 0.8fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}
.report-count strong {
  font-size: 17px;
}
.report-when {
  font-size: 14px;
}

/* Плашки в профиле */
.banners {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}
.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.banner .btn {
  margin-left: auto;
}
.banner-danger {
  border-color: color-mix(in srgb, var(--oxide) 55%, transparent);
  background: color-mix(in srgb, var(--oxide) 10%, var(--panel));
}
.banner-warn {
  border-color: color-mix(in srgb, var(--amber) 55%, transparent);
  background: color-mix(in srgb, var(--amber) 8%, var(--panel));
}
.banner-info {
  border-color: color-mix(in srgb, var(--patina) 55%, transparent);
  background: color-mix(in srgb, var(--patina) 8%, var(--panel));
}

/* Проверка */
.check-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 16px;
  margin-top: 20px;
  align-items: start;
}
.check-chat {
  display: flex;
  flex-direction: column;
  padding-bottom: 16px;
}
.check-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  height: calc(100vh - 380px);
  min-height: 260px;
  overflow-y: auto;
}
.check-msg {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: var(--radius-lg);
  background: var(--raised);
  overflow-wrap: anywhere;
}
.check-msg-meta {
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 2px;
}
.check-msg-player {
  align-self: flex-start;
  border: 1px solid color-mix(in srgb, var(--patina) 45%, transparent);
}
.check-msg-staff {
  align-self: flex-end;
  border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent);
}
.check-msg-system {
  align-self: center;
  background: none;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.check-composer .composer {
  margin: 0 16px;
}
.check-contact {
  margin: 12px 16px 0;
  font-size: 17px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .check-layout {
    grid-template-columns: 1fr;
  }
  .report-head {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .report-head .row-tools {
    justify-content: flex-start;
  }
  .composer {
    flex-wrap: wrap;
  }
  .composer-target {
    width: 100%;
  }
  .chat-scroll {
    height: calc(100vh - 300px);
  }
}

/* ---------- Карточки серверов ---------- */

.srv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.srv-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.srv-banner {
  height: 112px;
  background-color: var(--raised);
  background-size: cover;
  background-position: center;
}
.srv-banner-empty {
  background-image:
    linear-gradient(135deg, color-mix(in srgb, var(--oxide) 35%, transparent), transparent 60%),
    repeating-linear-gradient(45deg, var(--raised) 0 10px, var(--panel) 10px 20px);
}
.srv-card-off .srv-banner {
  filter: grayscale(1) brightness(0.6);
}
.srv-body {
  padding: 14px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.srv-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.srv-logo {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f2efe9;
  color: #1c1b19;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
}
.srv-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.srv-status {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--panel);
}
.srv-status-on {
  background: #4caf50;
}
.srv-status-off {
  background: var(--faint);
}
.srv-title {
  flex: 1;
  min-width: 0;
}
.srv-title h2 {
  margin: 0;
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.srv-title p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.srv-gear {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 0;
  background: var(--raised);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.srv-gear:hover,
.srv-gear:focus-visible {
  color: var(--text);
  background: var(--line);
}
.srv-bar {
  display: flex;
  gap: 3px;
  height: 8px;
  border-radius: 4px;
  background: #151412;
  overflow: hidden;
}
.srv-seg {
  height: 100%;
  border-radius: 4px;
  min-width: 4px;
}
.srv-seg-online {
  background: #8bc34a;
}
.srv-seg-joining {
  background: #5b9bd5;
}
.srv-seg-queue {
  background: #e05a47;
}
.srv-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.srv-pop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.srv-pop strong {
  color: var(--text);
  font-weight: 400;
}
.srv-version {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
}
.srv-version-old {
  color: var(--amber);
}
.connect-block {
  padding: 4px 16px 16px;
  gap: 8px;
}

/* ---------- Список проверок ---------- */

.faint {
  color: var(--faint);
}
.checks-card {
  background: #1d1c1a;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
}
.checks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 12px 12px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.checks-head h1 {
  margin: 0;
  font-size: 18px;
}
.checks-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}
.checks-search {
  width: 200px;
  height: 34px;
}
.checks-tools .srv-gear {
  width: 34px;
  height: 34px;
  border-radius: 6px;
}
.checks-table {
  width: 100%;
  border-collapse: collapse;
}
.checks-table th {
  text-align: left;
  font-weight: 400;
  color: var(--muted);
  padding: 14px 16px 10px;
  white-space: nowrap;
}
.checks-table td {
  padding: 10px 16px;
  border-top: 1px solid var(--line-soft);
  vertical-align: middle;
}
.checks-table tbody tr {
  cursor: pointer;
}
.checks-table tbody tr:hover td {
  background: var(--panel);
}
.checks-date {
  white-space: nowrap;
  line-height: 1.3;
}
.checks-date .muted {
  font-size: 13px;
}
.checks-arrow {
  color: var(--faint);
  font-size: 20px;
  width: 1%;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 240px;
}
.person-ava {
  position: relative;
  flex: none;
  display: inline-flex;
}
.person-ava .avatar {
  border-radius: 50%;
}
.person-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--faint);
  border: 2px solid #1d1c1a;
}
.person-dot-on {
  background: #4caf50;
}
.person-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.person-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.person-sub {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.checks-contact {
  color: var(--text);
}
.vbadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--raised);
  white-space: nowrap;
  margin-right: 6px;
}
.vb-ok svg {
  color: #3ecf8e;
}
.vb-ban svg {
  color: #e5484d;
}
.vb-off svg {
  color: var(--muted);
}
.vb-warn {
  color: var(--amber);
  font-size: 13px;
}
.vb-live {
  color: var(--moss);
}
.vb-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moss);
  animation: vb-pulse 1.4s ease-in-out infinite;
}
@keyframes vb-pulse {
  50% {
    opacity: 0.3;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vb-pulse {
    animation: none;
  }
}
.checks-open {
  width: 1%;
  text-align: right;
}
.open-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}
.open-btn:hover,
.open-btn:focus-visible {
  color: var(--text);
  background: var(--raised);
}
@media (max-width: 700px) {
  .checks-search {
    width: 100%;
  }
  .checks-tools {
    width: 100%;
  }
}

/* ---------- Чат (новый вид) ---------- */

.avatar-xs {
  width: 20px;
  height: 20px;
  font-size: 11px;
  border-radius: 50%;
  flex: none;
  align-self: center;
}
.content-chat {
  padding: 16px 20px 16px;
}
.chat-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 32px);
  min-height: 480px;
  background: #1d1c1a;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.chat-head h1 {
  margin: 0;
  font-size: 18px;
}
.chat-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.chat-layout.panel-open {
  grid-template-columns: minmax(0, 1fr) 420px;
}
.chat-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.chat-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.chat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 4px 0 10px;
  border-radius: 6px;
  background: var(--raised);
  color: var(--text);
}
.chat-chip-select {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  padding: 0 6px 0 0;
  cursor: pointer;
  max-width: 220px;
}
.chat-chip-select option {
  background: var(--panel);
}
.chat-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chat-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: var(--raised);
  color: var(--muted);
  cursor: pointer;
}
.chat-icon-btn:hover,
.chat-icon-btn:focus-visible {
  color: var(--text);
  background: var(--line);
}
.chat-icon-btn.active {
  color: var(--go-text);
  background: var(--go);
}
.chat-filter-input {
  height: 32px;
  width: 190px;
}
.chat-main .chat-scroll {
  flex: 1;
  height: auto;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 0;
}
.chat-main .chat-feed {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 12px;
}
.chat-main[data-position="left"] .chat-feed,
.chat-main[data-position="left"] .chat-composer-wrap {
  margin-left: 0;
}
.chat-main[data-position="wide"] .chat-feed,
.chat-main[data-position="wide"] .chat-composer-wrap {
  max-width: none;
}
.chat-main .chat-line {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 6px;
  flex-wrap: nowrap;
  font-size: 16px;
  line-height: 1.45;
}
.chat-main .chat-line:hover {
  background: var(--panel);
}
.chat-main .chat-time {
  color: var(--faint);
  font-size: 15px;
}
.chat-body {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.chat-main .chat-name {
  font-weight: 700;
}
.chat-main .chat-text {
  color: var(--muted);
  white-space: pre-wrap;
}
.chat-tag {
  font-weight: 700;
  color: var(--muted);
}
.chat-tag-team {
  color: #8bc34a;
}
.chat-tag-staff {
  color: var(--amber);
}
.chat-server {
  flex: none;
  font-size: 13px;
  color: var(--faint);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-muted {
  color: #e5484d;
  margin-left: 4px;
  vertical-align: -1px;
}
.chat-bad {
  color: #ff6b5f;
  text-decoration: underline wavy #e5484d;
  text-underline-offset: 3px;
}
.chat-word {
  color: var(--amber);
  text-decoration-color: var(--amber);
}
.chat-main .chat-tools {
  position: absolute;
  right: 8px;
  top: -14px;
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 6px;
  background: var(--raised);
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.35);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.chat-main .chat-line:hover .chat-tools,
.chat-main .chat-tools:focus-within {
  opacity: 1;
  pointer-events: auto;
}
@media (hover: none) {
  .chat-main .chat-tools {
    position: static;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
  }
}
.chat-tool {
  display: grid;
  place-items: center;
  width: 30px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.chat-tool:hover,
.chat-tool:focus-visible {
  background: var(--line);
  color: var(--text);
}
.chat-tool-danger {
  color: #e5484d;
}
.chat-composer-wrap {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 22px 16px;
}
.chat-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 8px 0 12px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
}
.chat-composer:focus-within {
  border-color: var(--line);
}
.chat-composer-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text);
  color: #1d1c1a;
  font-size: 11px;
  font-weight: 700;
}
.chat-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
}
.chat-input::placeholder {
  color: var(--faint);
}
.chat-send {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.chat-send:hover,
.chat-send:focus-visible {
  color: var(--go-text);
  background: var(--go);
}
.chat-reply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding: 3px 4px 3px 10px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--amber) 14%, transparent);
  color: var(--amber);
  font-size: 14px;
}
.chat-reply[hidden] {
  display: none;
}
.chat-reply-x {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  padding: 0 6px;
  cursor: pointer;
}

/* Панель настроек */
.chat-settings {
  border-left: 1px solid var(--line-soft);
  overflow-y: auto;
  background: #1a1917;
}
.set-group {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.set-group h2 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 400;
  color: var(--faint);
}
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  font-size: 16px;
  cursor: pointer;
}
.switch {
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
}
.switch-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}
.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: #2f2d2a;
  transition: background 0.15s;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #121110;
  transition: transform 0.15s, background 0.15s;
}
.switch-input:checked + .switch-track {
  background: #2f7de1;
}
.switch-input:checked + .switch-track::after {
  transform: translateX(16px);
  background: #fff;
}
.switch-input:focus-visible + .switch-track {
  outline: 2px solid var(--patina);
  outline-offset: 2px;
}
.set-select {
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  text-align: right;
  cursor: pointer;
}
.set-select option {
  background: var(--panel);
}
.set-words {
  margin: 4px 0 6px;
}
.set-note {
  margin: 6px 0 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: color-mix(in srgb, #2f7de1 12%, var(--panel));
  font-size: 14px;
  color: var(--text);
}
@media (prefers-reduced-motion: reduce) {
  .switch-track,
  .switch-track::after {
    transition: none;
  }
}
@media (max-width: 1100px) {
  .chat-layout.panel-open {
    grid-template-columns: minmax(0, 1fr);
  }
  .chat-layout.panel-open .chat-settings {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(420px, 100vw);
    z-index: 30;
    box-shadow: -8px 0 24px rgb(0 0 0 / 0.4);
  }
}
@media (max-width: 900px) {
  .chat-page {
    height: calc(100vh - 90px);
  }
}
.set-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.set-top h2 {
  margin: 0;
}

/* ---------- Список игроков ---------- */

.players-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.players-table th {
  position: sticky;
  top: 0;
  background: #1d1c1a;
  z-index: 1;
}
.players-table .right {
  text-align: right;
}
.nowrap {
  white-space: nowrap;
}
a.person {
  color: inherit;
  text-decoration: none;
}
a.person:hover .person-name {
  text-decoration: underline;
}
.person-dot-wait {
  background: var(--amber);
}
.person-sub-on {
  color: var(--moss);
}
.ip-cell {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 6px;
}
.ip-cell .copy-cell {
  color: var(--text);
}
.ip-vpn {
  color: var(--amber) !important;
}
.ip-link {
  color: var(--faint);
  display: inline-flex;
}
.ip-link:hover,
.ip-link:focus-visible {
  color: var(--text);
}
.ip-cell .vbadge {
  margin: 0;
  padding: 0 6px;
  font-size: 12px;
}
.ip-cell .person-sub {
  flex-basis: 100%;
}
.country {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.flag {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
}
.isp {
  max-width: 220px;
  line-height: 1.3;
}
.server-cell {
  white-space: nowrap;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Блокировки ---------- */

.bans-date {
  height: 34px;
  width: 160px;
}
.person-link {
  color: inherit;
  text-decoration: none;
}
.person-link:hover .person-name {
  text-decoration: underline;
}
.reason-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--raised);
  max-width: 320px;
}
.reason-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text);
  color: #1d1c1a;
}
.ban-ip {
  margin-left: 8px;
  padding: 0 6px;
  font-size: 12px;
}
.checks-open .row-tools {
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
/* ---------- Профиль игрока ---------- */

.pf {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.pf-side {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pf-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.pf-head .avatar {
  border-radius: 50%;
}
.pf-name {
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-head-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pf-btn {
  display: grid;
  place-items: center;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: var(--raised);
  color: var(--text);
  cursor: pointer;
}
.pf-btn:hover,
.pf-btn:focus-visible {
  background: var(--line);
}
.pf-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pf-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}
.pf-nav-item:hover,
.pf-nav-item:focus-visible {
  color: var(--text);
  background: var(--panel);
}
.pf-nav-item.active {
  color: var(--text);
  background: var(--raised);
  font-weight: 700;
}
.pf-nav-item span:first-of-type {
  flex: 1;
}
.pf-count {
  min-width: 22px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  text-align: center;
}
.pf-content {
  min-width: 0;
}
.pf-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pf-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--raised);
}
.pf-tag-plugin {
  background: linear-gradient(180deg, #e8c25a, #c99a2e);
  color: #241c08;
  font-weight: 700;
}
.pf-tag-gameban svg,
.pf-tag-vac svg,
.pf-tag-banned svg,
.pf-tag-vpn svg {
  color: var(--amber);
}
.pf-tag-checked svg {
  color: #3ecf8e;
}
.pf-tag-staff svg,
.pf-tag-team svg {
  color: var(--patina);
}
.pf-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
}
.pf-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: var(--raised);
}
.pf-card-head h2 {
  margin: 0;
  font-size: 16px;
}
.pf-card-right {
  color: var(--faint);
}
.pf-grid {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
}
.pf-grid > * {
  background: var(--panel);
}
.pf-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pf-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.pf-cell {
  padding: 10px 14px;
  min-width: 0;
}
.pf-cell-label {
  color: var(--faint);
  font-size: 14px;
}
.pf-cell-value {
  font-weight: 700;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.pf-note {
  margin: 0;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 14px;
}
.pf-link {
  color: #5aa9ff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pf-link:hover {
  text-decoration: underline;
}
.pf-inline-badge {
  margin-left: 6px;
  padding: 0 6px;
  font-size: 12px;
}
.pf-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  min-width: 0;
}
.pf-person .avatar {
  border-radius: 50%;
}
.pf-person .person-text {
  flex: 1;
}
.pf-person-more {
  margin-left: auto;
}
.pf-list {
  display: flex;
  flex-direction: column;
}
.pf-list .pf-person + .pf-person {
  border-top: 1px solid var(--line-soft);
}
.pf-subtabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: #151412;
  align-self: flex-start;
}
.pf-subtab {
  padding: 5px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--faint);
  font: inherit;
  cursor: pointer;
}
.pf-subtab:hover,
.pf-subtab:focus-visible {
  color: var(--text);
}
.pf-subtab.active {
  background: var(--raised);
  color: var(--text);
  font-weight: 700;
}
.pf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pf-period {
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--raised);
}
.pf-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 20px;
  text-align: center;
  color: var(--muted);
}
.pf-empty-icon {
  color: var(--faint);
  margin-bottom: 8px;
}
.pf-empty p {
  margin: 2px 0;
}
.pf-empty-title {
  color: var(--text);
  font-weight: 700;
}
.pf-entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
}
.pf-entry-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.pf-entry-open {
  margin-left: auto;
  width: 30px;
  height: 30px;
}
.pf-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--raised);
  color: var(--muted);
}
.pf-kv {
  color: var(--text);
}
.pf-kv > span:first-child {
  color: var(--faint);
}
.pf-in {
  color: #3ecf8e;
  background: color-mix(in srgb, #3ecf8e 14%, transparent);
}
.pf-out {
  color: #ff6b6b;
  background: color-mix(in srgb, #e5484d 18%, transparent);
}
.pf-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pf-tl-item {
  position: relative;
}
.pf-tl-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--faint);
  background: var(--bg);
}
.pf-tl-item.current::before {
  border-color: var(--moss);
  background: var(--moss);
}
.pf-tl-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
}
.pf-tl-head strong {
  color: var(--text);
}
.pf-tl-server {
  color: #5aa9ff;
  white-space: nowrap;
}
.pf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 4px 3px 6px;
  border-radius: 6px;
  background: var(--raised);
  color: var(--text);
  text-decoration: none;
}
.pf-chip-solo {
  color: var(--faint);
  padding-right: 8px;
}
.pf-chg {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-weight: 700;
}
.pf-chg-join {
  background: #5d7c2c;
  color: #e9f5d0;
}
.pf-chg-leave {
  background: #a0521d;
  color: #fde3cc;
}
.pf-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.pf-grid-2c {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pf-mini .pf-cell-value {
  font-size: 18px;
}
.pf-donut-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
}
.pf-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pf-legend-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}
.pf-legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.pf-legend-value {
  font-size: 22px;
  font-weight: 700;
}
.pf-bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 10px;
  height: 220px;
  padding: 14px 14px 10px;
}
.pf-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.pf-bar-track {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
}
.pf-bar {
  width: 100%;
  min-height: 0;
  border-radius: 3px 3px 0 0;
  background: #5ba3c9;
}
.pf-bar-value,
.pf-bar-label {
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
}
.pf-small {
  font-size: 13px;
}
.pf-head-hit {
  color: var(--amber);
}
.pf-chat .chat-feed {
  max-width: none;
  padding: 8px;
  max-height: 70vh;
  overflow-y: auto;
}
@media (max-width: 900px) {
  .pf {
    grid-template-columns: 1fr;
  }
  .pf-side {
    position: static;
  }
  .pf-nav {
    flex-direction: row;
    overflow-x: auto;
  }
  .pf-nav-item {
    flex: none;
  }
  .pf-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pf-grid-2,
  .pf-grid-2c,
  .pf-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Муты, репорты, журнал ---------- */

.reason-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}
.unmute-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: #1f6f43;
  color: #7ff0b0;
  cursor: pointer;
}
.unmute-btn:hover,
.unmute-btn:focus-visible {
  background: #258553;
}
.kd-badge {
  display: inline-block;
  min-width: 40px;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  background: var(--raised);
  line-height: 22px;
  text-align: center;
}
.kd-hot {
  background: color-mix(in srgb, #e5484d 30%, var(--raised));
  color: #ffb3b3;
}
.row-hl td {
  background: color-mix(in srgb, #e5484d 9%, transparent);
}
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.stepper-btn {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 4px;
  background: var(--raised);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.stepper-btn:hover,
.stepper-btn:focus-visible {
  background: var(--line);
}
.stepper-value {
  min-width: 24px;
  padding: 2px 4px;
  border-radius: 4px;
  background: #121110;
  text-align: center;
  font-weight: 700;
}
.au-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: var(--raised);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.au-filter:hover,
.au-filter:focus-visible,
.au-filter.active {
  color: var(--text);
}
.au-filter.active {
  font-weight: 700;
}
.au-drop {
  position: fixed;
  z-index: 50;
  min-width: 200px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 6px;
  border-radius: 8px;
  background: var(--raised);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.45);
  display: flex;
  flex-direction: column;
}
.au-drop-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.au-drop-item:hover,
.au-drop-item:focus-visible {
  background: var(--line);
}
.au-drop-item.active {
  font-weight: 700;
}
.au-drop-item .avatar {
  border-radius: 4px;
}
.au-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-top: 1px solid var(--line-soft);
}
.au-row:first-child {
  border-top: 0;
}
.au-row .avatar {
  border-radius: 50%;
  flex: none;
}
.au-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
}
.au-red {
  color: #e5484d;
}
.au-green {
  color: #3ecf8e;
}
.au-amber {
  color: #f5c542;
}
.au-muted {
  color: var(--faint);
}
.au-text {
  min-width: 0;
}
.au-line {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.au-line strong,
.au-obj {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}
.au-obj:hover {
  text-decoration: underline;
}
.au-hint {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: help;
}
.au-dim {
  color: var(--faint);
}
.au-time {
  color: var(--faint);
  font-size: 14px;
}
.cell-inline {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pf-grid-3c {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pf-tag-vpn {
  background: color-mix(in srgb, var(--amber) 22%, var(--raised));
  color: #ffd27a;
  font-weight: 700;
}
.srv-draggable {
  cursor: grab;
}
.srv-draggable:active {
  cursor: grabbing;
}
.srv-dragging {
  opacity: 0.45;
  outline: 2px dashed var(--patina);
  outline-offset: 2px;
}
.srv-hint {
  margin: 10px 0 0;
}
.srv-status-lag {
  background: var(--amber);
}

.check-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, #f5c542 45%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, #f5c542 12%, transparent);
  color: #f5d77a;
  font: inherit;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.check-btn:hover:not(:disabled),
.check-btn:focus-visible {
  background: color-mix(in srgb, #f5c542 22%, transparent);
}
.check-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.check-btn-live {
  border-color: color-mix(in srgb, var(--moss) 50%, transparent);
  background: color-mix(in srgb, var(--moss) 14%, transparent);
  color: var(--moss);
}