/* ── Anticheat-Dashboard ──────────────────────────────────────────────────────
   Zweispaltig: links die beobachteten Spieler, rechts Detail oder Settings.
   Die Monospace-Bloecke sind bewusst dicht gesetzt — sie sollen wie ein Log
   lesbar sein, nicht wie ein Formular.
*/

.ac-toolbar {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 14px;
}
.ac-toolbar .ac-search { flex: 1 1 220px; min-width: 160px; }

.ac-pill {
  border: 1px solid var(--border, #2a2a33);
  background: var(--bg-2, #17171c);
  color: var(--text-2, #b9b9c4);
  border-radius: 8px; padding: 7px 13px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: background .15s, color .15s, border-color .15s;
}
.ac-pill:hover { border-color: var(--accent, #7c5cff); }
.ac-pill.on    { background: rgba(46, 204, 113, .12); border-color: #2ecc71; color: #2ecc71; }
.ac-pill.off   { background: rgba(231, 76, 60, .10);  border-color: #e74c3c; color: #e74c3c; }
.ac-pill.tab.active { background: var(--accent, #7c5cff); border-color: var(--accent, #7c5cff); color: #fff; }

.ac-grid {
  display: grid; grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 14px; align-items: start;
}
@media (max-width: 900px) { .ac-grid { grid-template-columns: 1fr; } }

.ac-panel {
  border: 1px solid var(--border, #2a2a33);
  background: var(--bg-2, #17171c);
  border-radius: 10px; overflow: hidden;
}
.ac-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; border-bottom: 1px solid var(--border, #2a2a33);
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-3, #7c7c89); font-weight: 700;
}

/* Spielerliste */
.ac-list { max-height: 62vh; overflow-y: auto; }
.ac-row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 6px 12px; cursor: pointer;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px; color: var(--text-2, #b9b9c4);
  border-left: 2px solid transparent;
}
.ac-row:hover    { background: rgba(255, 255, 255, .04); }
.ac-row.active   { background: rgba(124, 92, 255, .14); border-left-color: var(--accent, #7c5cff); color: #fff; }
.ac-row.flagged  { color: #ff5f56; }
.ac-row .ac-vl   { font-variant-numeric: tabular-nums; opacity: .8; }
.ac-row.flagged .ac-vl { opacity: 1; font-weight: 700; }

/* Detailbereich */
.ac-detail { padding: 12px 14px; font-size: 12.5px; }
.ac-detail-name {
  font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.ac-kv {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2px 18px; margin-bottom: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--text-2, #b9b9c4);
}
.ac-kv b { color: var(--text-1, #e8e8ef); font-weight: 600; }
.ac-flagline {
  color: #ff5f56; font-weight: 700; margin: 8px 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.ac-sec-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-3, #7c7c89); font-weight: 700; margin: 14px 0 6px;
}
.ac-log {
  max-height: 240px; overflow-y: auto;
  background: var(--bg-1, #101014); border: 1px solid var(--border, #2a2a33);
  border-radius: 8px; padding: 8px 10px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px; line-height: 1.65; color: var(--text-2, #b9b9c4);
  white-space: pre-wrap; word-break: break-word;
}
.ac-log .t-ts   { color: #6b6b78; }
.ac-log .t-flag { color: #ff5f56; font-weight: 700; }
.ac-log .t-fish { color: #4aa3ff; }
.ac-log .t-test { color: #f5a623; }
.ac-log .t-ok   { color: #2ecc71; }
.ac-log .t-break{ color: #ff5f56; font-weight: 700; }
.ac-log .t-place{ color: #2ecc71; font-weight: 700; }
.ac-log .t-player { color: #43d9ad; }
.ac-log .t-block  { color: #c9a3ff; }

/* Settings */
.ac-settings-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px 20px; padding: 14px;
}
.ac-set label {
  display: block; font-size: 11px; color: var(--text-3, #7c7c89);
  margin-bottom: 4px; font-weight: 600;
}
.ac-set input {
  width: 100%; box-sizing: border-box;
  background: var(--bg-1, #101014); color: var(--text-1, #e8e8ef);
  border: 1px solid var(--border, #2a2a33); border-radius: 6px;
  padding: 7px 9px; font-size: 12.5px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.ac-set input:focus { outline: none; border-color: var(--accent, #7c5cff); }
.ac-set .ac-hint { font-size: 10.5px; color: var(--text-3, #7c7c89); margin-top: 3px; }

.ac-cmdrow { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.ac-cmdrow input { flex: 1 1 220px; }
.ac-empty { padding: 34px 16px; text-align: center; color: var(--text-3, #7c7c89); font-size: 13px; }
.ac-warn {
  margin-bottom: 12px; padding: 9px 12px; border-radius: 8px; font-size: 12px;
  background: rgba(245, 166, 35, .10); border: 1px solid rgba(245, 166, 35, .35); color: #f5a623;
}
