/* Ostdeutschland RolePlay · Anticheat-Panel auf UI-Base v4 „Leitstand“ (docs/UI-BASE.md)
   Gleiche Sprache wie die NUI-Base: fast schwarze Platten mit Lichtfleck, dünne Innenrahmen, Oxanium in Versalien,
   stahlweiße Hauptknöpfe mit dunkler Schrift, kleine Radien, Saison-Akzent (Winter Eisblau) sparsam.
   Rot nur für Strafen/Alarm, Grün für Status, Gelb für Hinweise. Web-Variante mit festen px statt --od-u. */

@font-face { font-family: 'Oxanium'; src: url('../fonts/oxanium-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Oxanium'; src: url('../fonts/oxanium-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/barlow-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #0a0b0d;
  --bg-2: #0e0f12;
  --pane-a: #1a1b1f; --pane-b: #121316;
  --s-1: #15161a;      /* Karten */
  --s-2: #1d1e23;      /* erhöht, Hover */
  --s-3: #26272d;      /* Chips, aktive Schalter */
  --in: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.1);
  --line-3: rgba(255, 255, 255, 0.2);
  --dash: rgba(255, 255, 255, 0.17);
  --tx: #f3f2ee;
  --tx-2: rgba(243, 242, 238, 0.68);
  --tx-3: rgba(243, 242, 238, 0.46);
  --tx-4: rgba(243, 242, 238, 0.3);
  --paper: #efe9dc; --paper-hi: #ffffff;
  --gold: #e8b23a; --gold-hi: #f6c656; --gold-soft: rgba(232, 178, 58, 0.12); --gold-line: rgba(232, 178, 58, 0.45);
  --red: #d11f26; --red-hi: #ff4b50; --red-soft: rgba(225, 37, 45, 0.13); --red-line: rgba(225, 37, 45, 0.5);
  --ice: #8fbfe6; --ice-hi: #b9dbf6; --ice-soft: rgba(143, 191, 230, 0.12); --ice-line: rgba(143, 191, 230, 0.35);
  --ok: #45d483; --ok-soft: rgba(69, 212, 131, 0.12);
  --warn: #f5b83d; --warn-soft: rgba(245, 184, 61, 0.12);
  --discord: #5865f2;
  --f-head: 'Oxanium', 'Barlow Condensed', sans-serif;
  --f-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --r-xs: 2px; --r-sm: 3px; --r: 5px; --r-lg: 8px;
  --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 42%);
  --pane: var(--sheen), linear-gradient(180deg, var(--pane-a), var(--pane-b));
  --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 40px -26px rgba(0, 0, 0, 0.95);
  --shadow-lg: 0 30px 80px -24px rgba(0, 0, 0, 0.95), 0 0 0 1px var(--line-2);
  --skew: none;
  --accent: #8fbfe6; --accent-hi: #b9dbf6; --accent-wash: rgba(143, 191, 230, 0.1); --accent-glow: rgba(143, 191, 230, 0.35);
  --steel: linear-gradient(180deg, #ffffff 0%, #c4c9d1 100%); --steel-hover: linear-gradient(180deg, #ffffff 0%, #dde1e7 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --side-w: 256px;
  --top-h: 76px;
  --tab-h: 62px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  background: var(--bg); color: var(--tx); font: 15px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility;
}
#app { min-height: 100vh; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: #000; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.mono { font-family: var(--f-mono); font-size: 0.85em; }
.muted { color: var(--tx-3); }
.dim { color: var(--tx-2); }
.small { font-size: 12.5px; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.spacer { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.warn { color: var(--warn); }
.ellipsis { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.lead .ic { width: 16px; height: 16px; color: var(--gold); }
button.plain, a.plain { all: unset; cursor: pointer; display: contents; }
kbd {
  font: 600 10.5px/1 var(--f-mono); color: var(--tx-3); background: var(--s-3); border: 1px solid var(--line-2);
  border-bottom-width: 2px; border-radius: 5px; padding: 3px 5px; white-space: nowrap;
}
.ic { width: 18px; height: 18px; flex: none; }

/* Boot / Login ---------------------------------------------------------------- */
.boot { display: grid; place-items: center; min-height: 100vh; }
.boot-mark img { opacity: 0.85; animation: breathe 1.8s var(--ease) infinite alternate; }
@keyframes breathe { from { opacity: 0.45; transform: scale(0.97); } to { opacity: 0.9; transform: none; } }
.login {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(242, 140, 27, 0.10), transparent 60%),
    radial-gradient(700px 500px at 110% 110%, rgba(47, 166, 160, 0.08), transparent 60%),
    var(--bg);
}
.login-card {
  width: min(430px, 100%); background: linear-gradient(180deg, var(--s-2), var(--s-1)); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); padding: 38px 32px 26px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.login-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--red-hi)); }
.login-card img { display: block; margin: 0 auto 18px; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5)); }
.login-card h1 { font: 700 32px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.05em; text-align: center; margin: 0; }
.login-card .sub { text-align: center; color: var(--tx-3); margin: 8px 0 26px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.login-card .error { background: var(--red-soft); border: 1px solid var(--red-line); border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 18px; font-size: 14px; }
.login-card .foot { margin-top: 22px; font-size: 12px; color: var(--tx-4); text-align: center; }
.login-card .btn-discord { width: 100%; justify-content: center; padding: 14px 16px; font-size: 16px; background: #5865f2; border-color: #5865f2; color: #fff; border-radius: var(--r); }
.login-card .btn-discord:hover { background: #4752c4; border-color: #4752c4; }

/* Layout ------------------------------------------------------------------------ */
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: #000; padding: 8px 12px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side {
  background: var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; height: 100dvh; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 18px 18px 16px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand b { display: block; font: 700 18px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.05em; }
.brand span { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.nav { padding: 6px 10px 12px; flex: 1; overflow-y: auto; }
.nav-group { font: 600 11px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.16em; color: var(--tx-4); padding: 16px 10px 8px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; margin: 2px 0; text-decoration: none; color: var(--tx-2);
  font: 500 15px/1.2 var(--f-body); border-radius: var(--r-sm); position: relative; transition: background 120ms var(--ease), color 120ms;
}
.nav a:hover { color: var(--tx); background: var(--s-2); }
.nav a.active { color: var(--tx); background: var(--gold-soft); }
.nav a.active::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.nav a.active .ic { color: var(--gold); }
.nav a kbd { margin-left: auto; opacity: 0; transition: opacity 120ms; }
.nav a:hover kbd { opacity: 1; }
.nav .count { margin-left: auto; font: 600 11px/1 var(--f-mono); color: var(--ok); background: var(--ok-soft); padding: 3px 6px; border-radius: 20px; }
.nav .count:empty { display: none; }
.side-foot { border-top: 1px solid var(--line); padding: 10px; display: grid; gap: 6px; }
.me { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: var(--r); background: var(--s-1); border: 1px solid var(--line); }
.me img, .me .ph { width: 34px; height: 34px; border-radius: 50%; background: var(--s-3); flex: none; display: grid; place-items: center; font: 700 15px/1 var(--f-display); color: var(--gold); }
.me .who { flex: 1; min-width: 0; }
.me .who b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.me .who span { font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; }
.nav-backdrop { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  height: var(--top-h); display: flex; align-items: center; gap: 10px; padding: 0 28px;
  background: rgba(12, 13, 14, 0.78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
.top .titles { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.top h1 { font: 700 22px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.05em; margin: 0; white-space: nowrap; }
.top .crumb { color: var(--tx-3); font: 600 15px/1 var(--f-display); letter-spacing: 0.04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .crumb:not(:empty)::before { content: '/'; margin-right: 10px; color: var(--tx-4); }
.top .menu-btn, .top .search-mobile { display: none; }
.search-trigger {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px 0 12px; min-width: 300px; cursor: pointer;
  background: var(--s-1); border: 1px solid var(--line-2); border-radius: var(--r); color: var(--tx-3); font-size: 14px; transition: border-color 120ms, background 120ms;
}
.search-trigger:hover { border-color: var(--line-3); background: var(--s-2); color: var(--tx-2); }
.search-trigger span { flex: 1; text-align: left; }
.search-trigger .ic { width: 16px; height: 16px; }
.content { padding: 24px 28px 56px; max-width: 1560px; width: 100%; outline: none; }

/* Server-Status (echter Zustand, immer mit Text) */
.status {
  display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--f-body); padding: 0 12px; height: 38px;
  border: 1px solid var(--line-2); background: var(--s-1); border-radius: var(--r); white-space: nowrap; color: var(--tx-2);
}
.status i { width: 8px; height: 8px; background: var(--tx-4); border-radius: 50%; display: inline-block; }
.status.on i { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.status.off { color: var(--red-hi); border-color: var(--red-line); }
.status.off i { background: var(--red-hi); box-shadow: 0 0 0 3px var(--red-soft); }

/* Mobile Leiste unten */
.tabbar { display: none; }

/* Bausteine ---------------------------------------------------------------------- */
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h2 { font: 700 28px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 6px; }
.page-head p { margin: 0; font-size: 14px; }

.panel { background: var(--s-1); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.panel > header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; min-height: 56px; }
.panel > header h2 { font: 700 16px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.08em; margin: 0; }
.panel .body { padding: 16px 18px; }
.panel .body.flush { padding: 0; }
.panel-tabs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); align-items: start; }
.stack > * + * { margin-top: 18px; }

/* Kennzahlen */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile {
  background: var(--s-1); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px 14px; position: relative; overflow: hidden;
  text-decoration: none; display: block; transition: border-color 150ms var(--ease), transform 150ms var(--ease), background 150ms;
  box-shadow: var(--shadow);
}
a.tile:hover { border-color: var(--line-3); background: var(--s-2); transform: translateY(-1px); }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile .k { font: 600 12px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: 0.1em; color: var(--tx-3); }
.tile .ic { width: 18px; height: 18px; color: var(--tx-4); }
.tile .v { font: 700 36px/1.05 var(--f-display); margin-top: 10px; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.tile .s { font-size: 12.5px; color: var(--tx-3); margin-top: 2px; }
.tile.accent::after, .tile.alert::after, .tile.ok::after { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: var(--gold); }
.tile.accent .ic { color: var(--gold); }
.tile.alert::after { background: var(--red-hi); }
.tile.alert .v, .tile.alert .ic { color: var(--red-hi); }
.tile.ok::after { background: var(--ok); }
.tile.ok .ic { color: var(--ok); }
.tile.muted .v { color: var(--tx-4); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
  border: 1px solid var(--line-2); background: var(--s-2); border-radius: var(--r-sm);
  font: 600 14px/1 var(--f-body); cursor: pointer; text-decoration: none; white-space: nowrap; color: var(--tx);
  transition: background 120ms var(--ease), border-color 120ms var(--ease), color 120ms, transform 80ms;
}
.btn:hover { background: var(--s-3); border-color: var(--line-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn .ic { width: 16px; height: 16px; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #1a0e02; }
.btn.primary:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn.danger { background: transparent; border-color: var(--red-line); color: var(--red-hi); }
.btn.danger:hover { background: var(--red-soft); }
.btn.danger.solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger.solid:hover { background: var(--red-hi); border-color: var(--red-hi); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--tx-2); }
.btn.ghost:hover { color: var(--tx); background: var(--s-2); }
.btn.on { border-color: var(--gold-line); background: var(--gold-soft); color: var(--tx); }
.btn.on .ic { color: var(--gold); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; }
.btn.xs { height: 26px; padding: 0 6px; font-size: 12px; }
.btn.icon { width: 38px; padding: 0; }
.btn.icon.xs { width: 26px; }
.btn.icon.xs .ic { width: 14px; height: 14px; }
.btn.block { width: 100%; justify-content: flex-start; }
.btn.back { margin-bottom: 14px; padding-left: 6px; }

/* Formulare */
input[type=text], input[type=search], input[type=number], select, textarea {
  background: var(--bg-2); border: 1px solid var(--line-2); height: 38px; padding: 0 12px; border-radius: var(--r-sm); min-width: 0;
  transition: border-color 120ms, box-shadow 120ms;
}
select { padding-right: 30px; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--tx-3) 50%), linear-gradient(135deg, var(--tx-3) 50%, transparent 50%);
  background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px; background-size: 5px 5px; background-repeat: no-repeat; }
input:hover, select:hover, textarea:hover { border-color: var(--line-3); }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-soft); }
input[aria-invalid] { border-color: var(--red-hi); }
textarea { width: 100%; height: auto; padding: 10px 12px; resize: vertical; font-family: var(--f-mono); font-size: 13px; line-height: 1.55; }
input.search { width: 300px; padding-left: 36px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23868a84' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 11px center; background-size: 16px; }
input.search.sm { width: 170px; height: 32px; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--tx-2); }
.field > span { font: 600 12px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--tx-3); }
.field small { color: var(--tx-4); font-size: 12px; }
.unit { display: flex; align-items: stretch; }
.unit input { flex: 1; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.unit em { font-style: normal; background: var(--s-3); border: 1px solid var(--line-2); border-left: 0; padding: 0 10px; display: grid; place-items: center; font-size: 13px; color: var(--tx-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-2); background: var(--s-2); border-radius: 20px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; color: var(--tx-2); }
.chip:hover { border-color: var(--gold-line); color: var(--tx); }

/* Werkzeugleiste */
.toolbar { display: grid; gap: 10px; margin-bottom: 16px; }
.toolbar.sticky { position: sticky; top: var(--top-h); z-index: 10; background: rgba(12, 13, 14, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 12px 0 10px; margin-top: -12px; border-bottom: 1px solid var(--line); }
.toolbar-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; min-width: 0; }
.toolbar > * { min-width: 0; }
.tb-label { font: 600 11.5px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.12em; color: var(--tx-4); margin-left: 4px; }

/* Segment-Schalter */
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { background: transparent; border: 0; height: 28px; padding: 0 11px; border-radius: 4px; font: 600 13px/1 var(--f-body); color: var(--tx-3); cursor: pointer; white-space: nowrap; transition: background 120ms, color 120ms; }
.seg button:hover { color: var(--tx); background: var(--s-2); }
.seg.tabs button.on { background: var(--s-3); color: var(--tx); box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 1px 3px rgba(0,0,0,0.4); }
.seg button.on[data-v=log] { background: var(--ice-soft); color: var(--ice-hi); }
.seg button.on[data-v=flag] { background: var(--warn-soft); color: var(--warn); }
.seg button.on[data-v=kick] { background: var(--gold-soft); color: var(--gold); }
.seg button.on[data-v=ban] { background: var(--red-soft); color: var(--red-hi); }
.seg.tabs button.on[data-v] { box-shadow: none; }
.seg.tabs button.on[data-v=''], .seg.tabs button.on[data-v=all] { background: var(--s-3); color: var(--tx); }

/* Kippschalter */
.switch { position: relative; width: 42px; height: 24px; flex: none; display: inline-block; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--s-3); border: 1px solid var(--line-2); border-radius: 20px; transition: background 160ms var(--ease), border-color 160ms; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--tx-3); transition: transform 180ms var(--ease), background 160ms; }
.switch input:checked + span { background: var(--gold-soft); border-color: var(--gold); }
.switch input:checked + span::after { transform: translateX(18px); background: var(--gold); }
.switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Marken */
.tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; font: 600 12px/1 var(--f-body); border: 1px solid var(--line-2); color: var(--tx-2); border-radius: 20px; white-space: nowrap; background: var(--s-2); }
.tag.log { color: var(--ice-hi); border-color: var(--ice-line); background: var(--ice-soft); }
.tag.flag { color: var(--warn); border-color: rgba(255,197,71,0.35); background: var(--warn-soft); }
.tag.kick { color: var(--gold); border-color: var(--gold-line); background: var(--gold-soft); }
.tag.ban { color: #fff; background: var(--red); border-color: var(--red); }
.tag.on { color: var(--ok); border-color: rgba(61,220,151,0.35); background: var(--ok-soft); }
.tag.on::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.tag.watch { color: var(--gold); border-color: rgba(217,164,65,0.4); background: rgba(217,164,65,0.1); }
.tag.staff { color: var(--ice-hi); border-color: var(--ice-line); background: var(--ice-soft); }

/* Tabellen */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font: 600 11.5px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.1em; color: var(--tx-3); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); white-space: nowrap; }
td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--s-2); }
tr.open td { background: var(--s-2); border-bottom-color: transparent; }
tr.open .expander .ic { transform: rotate(180deg); }
.expander .ic { transition: transform 160ms var(--ease); }
tr.detail td { background: var(--bg-2); padding: 14px 18px 18px; }
tr.faded td { opacity: 0.6; }
td .sub { display: block; font-size: 12px; color: var(--tx-4); margin-top: 1px; }
td.cell-main b { font-weight: 600; }
td.cell-main a { text-decoration: none; }
td.cell-main a:hover b { color: var(--gold); }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.detail-grid h4 { margin: 0 0 4px; font: 600 11.5px/1.3 var(--f-display); text-transform: uppercase; letter-spacing: 0.1em; color: var(--tx-4); }
.detail-grid h4 + p, .detail-grid p { margin: 0 0 12px; }
.detail-grid .license { display: flex; align-items: center; gap: 4px; word-break: break-all; }
.empty { padding: 36px 18px; text-align: center; color: var(--tx-3); display: grid; justify-items: center; gap: 10px; }
.empty .ic { width: 26px; height: 26px; color: var(--tx-4); }

.skeleton { display: grid; gap: 12px; padding: 8px 0; }
.skeleton i { display: block; height: 16px; border-radius: 6px; background: linear-gradient(90deg, var(--s-1) 0%, var(--s-2) 50%, var(--s-1) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton i:first-child { height: 90px; width: 100% !important; border-radius: var(--r-lg); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Punkte-Balken mit Kick-Markierung */
.score { display: flex; align-items: center; gap: 10px; min-width: 130px; }
.score .bar { flex: 1; height: 6px; background: var(--s-3); position: relative; border-radius: 6px; }
.score .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--warn); border-radius: 6px; transition: width 300ms var(--ease); }
.score .bar i.hi { background: var(--red-hi); }
.score .bar i.lo { background: var(--ice); }
.score .bar u { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--tx-3); border-radius: 1px; text-decoration: none; }
.score b { font: 600 13px/1 var(--f-mono); min-width: 34px; text-align: right; }

/* Diagramm */
.chart { position: relative; padding-left: 0; }
.chart svg { display: block; width: 100%; height: 180px; overflow: visible; }
.chart .grid line { stroke: rgba(255,255,255,0.06); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .seg-soft { fill: var(--ice); }
.chart .seg-hard { fill: var(--red-hi); }
.chart .col .hit { fill: transparent; cursor: pointer; }
.chart .col.on .hit { fill: rgba(255,255,255,0.04); }
.chart .col.on .seg-soft { fill: var(--ice-hi); }
.chart .y-axis span, .chart .x-axis span { position: absolute; font: 10.5px/1 var(--f-mono); color: var(--tx-4); pointer-events: none; }
.chart .y-axis span { left: 0; transform: translateY(-50%); }
.chart .x-axis span { bottom: 0; transform: translateX(-50%); white-space: nowrap; }
.chart-tip {
  position: absolute; top: 4px; transform: translateX(-50%); background: var(--s-3); border: 1px solid var(--line-3); border-radius: var(--r-sm);
  padding: 8px 10px; font-size: 12.5px; pointer-events: none; opacity: 0; transition: opacity 100ms; white-space: nowrap; z-index: 2; box-shadow: var(--shadow-lg);
}
.chart-tip.on { opacity: 1; }
.chart-tip b { display: block; margin-bottom: 4px; }
.chart-tip div { display: flex; align-items: center; gap: 6px; color: var(--tx-2); }
.chart-tip small { color: var(--tx-4); display: block; margin-top: 4px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.sw.soft { background: var(--ice); }
.sw.hard { background: var(--red-hi); }
.legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--tx-2); margin-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* Server-Panel */
.srv { display: grid; gap: 14px; }
.srv-state { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); }
.srv-state .ic { width: 22px; height: 22px; }
.srv-state b { display: block; }
.srv-state span { font-size: 13px; color: var(--tx-3); }
.srv-state.on { border-color: rgba(61,220,151,0.3); background: var(--ok-soft); }
.srv-state.on .ic { color: var(--ok); }
.srv-state.off { border-color: var(--red-line); background: var(--red-soft); }
.srv-state.off .ic { color: var(--red-hi); }

/* Schlüssel/Wert */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 9px 18px; font-size: 14px; margin: 0; }
.kv dt { color: var(--tx-3); font: 600 12px/1.6 var(--f-display); text-transform: uppercase; letter-spacing: 0.08em; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv.compact { gap: 6px 16px; }
.data-kv { gap: 4px 14px; font-size: 13px; }
.data-kv dt { font: 500 12px/1.6 var(--f-mono); text-transform: none; letter-spacing: 0; }

/* Ranglisten */
.reasons { list-style: none; margin: 0; padding: 0; }
.reasons li > a, .reasons li > button { display: grid !important; grid-template-columns: 1fr auto; gap: 6px 8px; padding: 9px 8px; margin: 0 -8px; border-radius: var(--r-sm); text-decoration: none; cursor: pointer; width: calc(100% + 16px); box-sizing: border-box; }
.reasons li > a:hover, .reasons li > button:hover { background: var(--s-2); }
.reasons li { font-size: 14px; }
.reasons .r-label { min-width: 0; }
.reasons .sub { display: block; font-size: 12px; }
.reasons .n { font: 600 13px/1.4 var(--f-mono); color: var(--gold); }
.hbar { height: 4px; background: var(--s-3); grid-column: 1 / -1; border-radius: 4px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.people { list-style: none; margin: 0; padding: 6px; }
.people a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); text-decoration: none; }
.people a:hover { background: var(--s-2); }
.people .l { flex: 1; min-width: 0; display: grid; }
.people .l b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.people .l small { color: var(--tx-4); }
.avatar-ph { width: 32px; height: 32px; border-radius: 50%; background: var(--s-3); display: grid; place-items: center; font: 700 14px/1 var(--f-display); color: var(--tx-2); flex: none; }
pre.data { margin: 0; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); font: 12px/1.5 var(--f-mono); white-space: pre-wrap; word-break: break-all; max-height: 280px; overflow: auto; }

/* Spielerakte */
.profile-head {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-bottom: 14px; padding: 20px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--s-2), var(--s-1)); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.profile-head::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tx-4); }
.profile-head.risk-ok::before { background: var(--ice); }
.profile-head.risk-flag::before { background: var(--warn); }
.profile-head.risk-kick::before, .profile-head.risk-ban::before { background: var(--red-hi); }
.avatar-lg { width: 64px; height: 64px; border-radius: 18px; background: var(--s-3); border: 1px solid var(--line-2); display: grid; place-items: center; font: 700 30px/1 var(--f-display); color: var(--gold); flex: none; }
.ph-main { flex: 1; min-width: 240px; display: grid; gap: 8px; }
.profile-head h2 { font: 700 34px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.03em; margin: 0; overflow-wrap: anywhere; }
.profile-head .ids { display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: center; color: var(--tx-3); }
.profile-head .ids .mono { word-break: break-all; }
.idpair { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; margin-right: 10px; }
.profile-head .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 18px; }
.mini-stats > div { background: var(--s-1); padding: 12px 16px; display: grid; gap: 6px; align-content: start; }
.mini-stats span { font: 600 11.5px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.1em; color: var(--tx-4); }
.mini-stats b { font: 700 22px/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.mini-stats .score b { font: 600 14px/1 var(--f-mono); }
.note-saved { font-size: 12px; color: var(--tx-4); }
.note-saved.warn { color: var(--warn); }

/* Live */
.live-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.ls { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--r); background: var(--s-1); border: 1px solid var(--line); font-size: 13px; color: var(--tx-3); }
.ls b { font: 700 18px/1 var(--f-display); color: var(--tx); font-variant-numeric: tabular-nums; }
.ls.kick b { color: var(--gold); }
.ls.ban b { color: var(--red-hi); }
.feed { max-height: calc(100vh - 290px); min-height: 320px; overflow-y: auto; }
.feed .item { display: grid; grid-template-columns: 74px auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 14px; position: relative; }
.feed .item.a-ban { background: linear-gradient(90deg, var(--red-soft), transparent 60%); }
.feed .item.a-kick { background: linear-gradient(90deg, var(--gold-soft), transparent 60%); }
.feed .item.new { animation: slidein 500ms var(--ease); }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); background-color: var(--gold-soft); } to { opacity: 1; transform: none; } }
.feed .time { font: 12px var(--f-mono); color: var(--tx-4); }
.feed .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .who a { text-decoration: none; font-weight: 600; }
.feed .who a:hover { color: var(--gold); }
.feed .what { margin-left: 8px; color: var(--tx-2); }
.online-list { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - 290px); overflow-y: auto; }
.ol-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 130px 58px; gap: 10px; align-items: center; padding: 9px 18px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 14px; }
a.ol-row:hover { background: var(--s-2); }
.ol-row .id { color: var(--tx-4); }
.ol-row .l { min-width: 0; display: flex; gap: 6px; align-items: center; overflow: hidden; }
.ol-row .l b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ol-row .ping { text-align: right; }
.ol-row .score { min-width: 0; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); display: inline-block; box-shadow: 0 0 0 0 rgba(61,220,151,0.6); animation: ping 1.8s var(--ease) infinite; }
.pulse.off { background: var(--red-hi); animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61,220,151,0.55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(61,220,151,0); } }

/* Erkennungen */
.cat-jump { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cat-jump::-webkit-scrollbar { display: none; }
.cat-jump a { flex: none; display: inline-flex; gap: 6px; align-items: center; height: 28px; padding: 0 10px; border-radius: 20px; background: var(--s-1); border: 1px solid var(--line); text-decoration: none; font-size: 13px; color: var(--tx-2); }
.cat-jump a:hover { border-color: var(--gold-line); color: var(--tx); }
.cat-jump a span { font: 600 11px/1 var(--f-mono); color: var(--tx-4); }
.dirty-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--warn-soft); border: 1px solid rgba(255,197,71,0.35); color: var(--warn); font-size: 13.5px; }
.dirty-bar span { flex: 1; color: var(--tx); }
.det-cat { margin-bottom: 26px; scroll-margin-top: calc(var(--top-h) + 150px); }
.det-cat > h3 { font: 700 14px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.14em; color: var(--tx-3); margin: 6px 0 10px; display: flex; gap: 10px; align-items: center; }
.det-cat > h3::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.det { background: var(--s-1); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; transition: border-color 150ms, opacity 150ms; }
.det:hover { border-color: var(--line-2); }
.det.off { opacity: 0.6; }
.det.off:hover, .det.off:focus-within { opacity: 0.9; }
.det.dirty { border-color: var(--gold-line); box-shadow: 0 0 0 3px var(--gold-soft); opacity: 1; }
.det-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto auto; gap: 16px; align-items: center; padding: 14px 16px; }
.det-row .t b { font-weight: 600; }
.det-row .t p { margin: 3px 0 0; font-size: 13px; color: var(--tx-3); }
.det-row .k { font: 500 11px/1 var(--f-mono); color: var(--tx-4); margin-left: 8px; }
.det-row .pts { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--tx-3); text-transform: uppercase; letter-spacing: 0.06em; }
.det-row .pts input { width: 76px; text-align: right; }
.det-row .hits { font: 600 12.5px/1 var(--f-mono); color: var(--tx-4); min-width: 74px; text-align: right; text-decoration: none; padding: 6px 8px; border-radius: var(--r-sm); }
.det-row .hits:hover { background: var(--s-2); color: var(--tx); }
.det-row .hits.hot { color: var(--gold); }
.det-params { border-top: 1px dashed var(--line-2); padding: 14px 16px 16px 74px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.det-params .wide { grid-column: 1 / -1; }
.det-foot { display: flex; gap: 8px; justify-content: flex-end; align-items: center; padding: 0 16px 12px; flex-wrap: wrap; }
.det-foot .meta { margin-right: auto; font-size: 12px; color: var(--tx-4); }

/* Modal, Schnellsuche, Toast */
.modal-back, .palette-back { position: fixed; inset: 0; background: rgba(5, 6, 7, 0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 70; animation: fadein 140ms var(--ease); }
.modal-back { display: grid; place-items: center; padding: 16px; }
.modal-back.out { opacity: 0; transition: opacity 150ms; }
@keyframes fadein { from { opacity: 0; } }
.modal { width: min(500px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--s-1); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); animation: pop 180ms var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.modal header { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--line); font: 700 18px/1.1 var(--f-display); text-transform: uppercase; letter-spacing: 0.05em; }
.modal header span { flex: 1; }
.modal.danger header .ic:first-child { color: var(--red-hi); }
.modal .body { padding: 18px 20px; display: grid; gap: 14px; }
.modal .body p { margin: 0; }
.modal footer { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: var(--bg-2); }
.keys { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; margin: 0; align-items: center; }
.keys dd { margin: 0; color: var(--tx-2); }

.palette-back { display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.palette { width: min(640px, 100%); background: var(--s-1); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: pop 160ms var(--ease); display: flex; flex-direction: column; max-height: 70vh; }
.pal-input { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.pal-input .ic { color: var(--tx-3); }
.pal-input input { flex: 1; height: 56px; border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 17px; padding: 0; }
.pal-list { overflow-y: auto; padding: 6px; flex: 1; }
.pal-group { font: 600 11px/1 var(--f-display); text-transform: uppercase; letter-spacing: 0.14em; color: var(--tx-4); padding: 12px 10px 6px; }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--r-sm); cursor: pointer; }
.pal-item .ic { color: var(--tx-3); }
.pal-item.on { background: var(--gold-soft); }
.pal-item.on .ic { color: var(--gold); }
.pal-item .l { flex: 1; min-width: 0; display: grid; overflow: hidden; }
.pal-item .l small { color: var(--tx-4); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-empty { padding: 26px; text-align: center; color: var(--tx-3); }
.pal-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--tx-4); background: var(--bg-2); }
.pal-foot kbd { margin-right: 3px; }

#toasts { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 80; }
.toast { display: flex; align-items: flex-start; gap: 10px; background: var(--s-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 11px 14px; min-width: 260px; max-width: 420px; font-size: 14px; box-shadow: var(--shadow-lg); animation: toastin 220ms var(--ease); transition: opacity 220ms, transform 220ms; }
.toast .ic { width: 18px; height: 18px; color: var(--ok); margin-top: 1px; }
.toast.err .ic { color: var(--red-hi); }
.toast.warn .ic { color: var(--warn); }
.toast.err { border-color: var(--red-line); }
.toast.out { opacity: 0; transform: translateX(12px); }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } }

.pager { display: flex; justify-content: center; padding: 14px; }
.pager:empty, .pager:has(> .hidden:only-child) { display: none; }

/* Responsiv ------------------------------------------------------------------- */
@media (max-width: 1360px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-trigger { min-width: 220px; }
}
@media (max-width: 1100px) {
  .g-main { grid-template-columns: minmax(0, 1fr); }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feed, .online-list { max-height: 60vh; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(290px, 86vw); transform: translateX(-102%); transition: transform 220ms var(--ease); box-shadow: var(--shadow-lg); padding-bottom: env(safe-area-inset-bottom); }
  .shell.nav-open .side { transform: none; }
  .shell.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,0.55); animation: fadein 160ms; }
  .nav a { padding: 12px 10px; }
  .nav a kbd { display: none; }
  .top { padding: 0 12px; gap: 6px; padding-top: env(safe-area-inset-top); height: calc(var(--top-h) + env(safe-area-inset-top)); }
  .top .menu-btn, .top .search-mobile { display: inline-flex; }
  .search-trigger { display: none; }
  .top h1 { font-size: 20px; }
  .status { padding: 0 10px; }
  .content { padding: 16px 14px calc(var(--tab-h) + 28px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(17, 19, 20, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line-2);
  }
  .tabbar a, .tabbar button { all: unset; display: grid; justify-items: center; align-content: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--tx-3); cursor: pointer; position: relative; }
  .tabbar .ic { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--gold); }
  .tabbar a.active::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
  .tabbar a:focus-visible, .tabbar button:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; border-radius: 8px; }
  #toasts { left: 12px; right: 12px; bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom)); }
  .toast { min-width: 0; max-width: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 12px 14px; }
  .tile .v { font-size: 30px; }
  .g-2 { grid-template-columns: 1fr; }
  .search { width: 100%; flex: 1 1 220px; }
  .toolbar-row > select { flex: 1 1 160px; }
  .toolbar.sticky { top: calc(var(--top-h) + env(safe-area-inset-top)); }
  .det-row { grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; }
  .det-row > :nth-child(n+3) { grid-column: 2; justify-self: start; }
  .det-row > span:empty { display: none; }
  .det-row .hits { text-align: left; padding-left: 0; }
  .det-params { padding-left: 16px; }
  .profile-head { padding: 16px; }
  .profile-head h2 { font-size: 28px; }
  .avatar-lg { display: none; }
  .ph-main { min-width: 0; }
  .profile-head .actions { width: 100%; }
  .profile-head .actions .btn { flex: 1 1 auto; }
  .hide-sm { display: none !important; }
  .page-head h2 { font-size: 24px; }
}
@media (max-width: 720px) {
  /* Tabellen als Karten */
  table.rt thead { display: none; }
  table.rt, table.rt tbody, table.rt tr, table.rt td { display: block; width: 100%; }
  table.rt tr:not(.detail):not(.empty-row) { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.rt td { border: 0; padding: 0; min-width: 0; text-align: left; }
  table.rt td[data-label]::before { content: attr(data-label); display: block; font: 600 10.5px/1.4 var(--f-display); text-transform: uppercase; letter-spacing: 0.1em; color: var(--tx-4); }
  table.rt td.cell-main { grid-column: 1 / -1; order: -1; font-size: 15px; }
  table.rt td.cell-main::before { display: none; }
  table.rt td.right { text-align: left; }
  table.rt td:empty, table.rt td.hide-sm { display: none; }
  table.rt td .score { min-width: 0; }
  table.rt.expandable tr:not(.detail):not(.empty-row) { position: relative; padding-right: 44px; }
  table.rt.expandable td:last-child { position: absolute; right: 10px; top: 12px; width: auto; }
  table.rt.expandable td:last-child::before { display: none; }
  tr.click:hover td, tr.open td { background: transparent; }
  tr.open { background: var(--s-2); }
  tr.detail td { padding: 12px 14px 16px; }
  .detail-grid { grid-template-columns: 1fr; gap: 6px; }
  .ellipsis { max-width: 100%; }
  .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-stats > div:first-child { grid-column: 1 / -1; }
  .feed .item { grid-template-columns: 58px minmax(0, 1fr) auto; padding: 10px 14px; }
  .feed .item .tag-cell { display: none; }
  .feed .item .pts { font-size: 11px; }
  .feed .what { display: block; margin: 0; font-size: 13px; }
  .ol-row { grid-template-columns: 30px minmax(0, 1fr) 90px; padding: 10px 14px; }
  .ol-row .ping { display: none; }
  .live-stats .ls:first-child { flex-basis: 100%; }
  .seg { width: 100%; }
  .seg button { flex: 1 0 auto; }
  .chart svg { height: 150px; }
  .panel > header { padding: 12px 14px; }
  .panel .body { padding: 14px; }
  .panel-tabs { padding: 10px 14px; }
  .search.sm { width: 100%; }
  .modal-back { place-items: end center; padding: 0; }
  .modal { width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom); animation: sheet 220ms var(--ease); }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
  .modal footer .btn { flex: 1; }
  .palette-back { padding: 0; align-items: stretch; }
  .palette { max-height: none; border-radius: 0; width: 100%; padding-top: env(safe-area-inset-top); }
  .pal-foot { display: none; }
  .pal-item { padding: 12px 10px; }
  input[type=text], input[type=search], input[type=number], select, textarea { font-size: 16px; } /* kein Zoom auf iOS */
  .btn { height: 40px; }
  .btn.sm { height: 36px; }
  .btn.xs { height: 30px; }
  .btn.icon.xs { width: 30px; }
}
@media (max-width: 420px) {
  .status span { display: none; }
  .status { width: 38px; justify-content: center; padding: 0; }
  .tile .v { font-size: 26px; }
  .tile .s { display: none; }
}
@media (hover: none) { .nav a kbd { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (forced-colors: active) { .chart .seg-soft { fill: CanvasText; } .chart .seg-hard { fill: Highlight; } }

/* ======================================================================================
   v3 · Oberfläche im Strada-Stil (überschreibt die Grundbausteine oben)
   ====================================================================================== */
body {
  background:
    radial-gradient(1100px 560px at 8% -12%, rgba(143, 191, 230, 0.07), transparent 62%),
    radial-gradient(900px 520px at 105% -5%, rgba(209, 31, 38, 0.06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
::selection { background: var(--red); color: #fff; }
:focus-visible { outline-color: var(--accent); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.09); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
.skip { background: var(--paper); color: #111; }
.lead .ic { color: var(--gold); }
.skew { display: inline-block; transform: var(--skew); }
.ghost-title { position: relative; }

/* Login */
.login { position: relative; overflow: hidden; background: transparent; }
.login::before {
  content: 'ANTICHEAT'; position: absolute; left: 0; right: 0; bottom: 4%; text-align: center; font: 700 21vw/1 var(--f-head);
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.045); transform: var(--skew); pointer-events: none; white-space: nowrap;
}
.login-card { background: var(--pane); border: 0; box-shadow: var(--shadow), var(--shadow-lg); }
.login-card::before { height: 2px; background: linear-gradient(90deg, #1a1a1a 0 33%, var(--red) 33% 66%, var(--gold) 66%); }
.login-card img.logo { width: min(320px, 100%); height: auto; }
.login-card h1 { font: 700 26px/1.1 var(--f-head); transform: var(--skew); letter-spacing: 0.01em; }
.login-card .btn-discord { background: var(--discord); border-color: var(--discord); font: 700 15px/1 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; }

/* Seitenleiste */
.side { background: linear-gradient(180deg, rgba(21, 22, 26, 0.97), rgba(11, 12, 14, 0.99)); }
.brand {
  display: grid; place-items: center; gap: 0; margin: 12px 12px 4px; padding: 14px 10px 12px; border-radius: var(--r);
  background: radial-gradient(120% 90% at 50% 0%, rgba(143, 191, 230, 0.13), transparent 70%), linear-gradient(180deg, #17181c, #0f1013);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.05); position: relative; overflow: hidden;
}
.brand::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, #111 0 33%, var(--red) 33% 66%, var(--gold) 66%); opacity: 0.9; }
.brand img { width: 100%; max-width: 206px; height: auto; display: block; }
.brand span { margin-top: 6px; color: var(--tx-3); font: 700 10.5px/1 var(--f-display); letter-spacing: 0.26em; }
.nav-group { letter-spacing: 0.22em; font-weight: 700; }
.nav a { font: 600 14.5px/1.2 var(--f-display); letter-spacing: 0.07em; text-transform: uppercase; }
.nav a:hover { background: rgba(255, 255, 255, 0.04); }
.nav a.active { background: linear-gradient(90deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.01)); box-shadow: inset 0 0 0 1px var(--line); }
.nav a.active::before { left: -10px; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.nav a.active .ic { color: var(--accent-hi); }
.me { border: 0; box-shadow: inset 0 0 0 1px var(--line); }
.me img, .me .ph { border-radius: var(--r-sm); color: var(--paper); font-family: var(--f-head); font-weight: 400; }
.me .who span { color: var(--tx-3); font: 700 10.5px/1.3 var(--f-display); letter-spacing: 0.16em; }

/* Kopfzeile mit Schatten-Schriftzug */
.top { height: auto; min-height: var(--top-h); background: linear-gradient(180deg, rgba(10, 11, 13, 0.95), rgba(10, 11, 13, 0.8)); }
.top .titles { position: relative; display: grid; gap: 4px; align-items: start; padding: 6px 0; }
.top .titles::before {
  content: attr(data-wm); position: absolute; left: -4px; top: 50%; transform: translateY(-50%) var(--skew);
  font: 700 56px/1 var(--f-head); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  white-space: nowrap; pointer-events: none;
}
.top h1 { position: relative; font: 700 23px/1.05 var(--f-head); letter-spacing: 0.01em; transform: var(--skew); transform-origin: left bottom; }
.top .crumb { position: relative; font: 700 12px/1.2 var(--f-display); letter-spacing: 0.16em; text-transform: uppercase; }
.top .crumb:not(:empty)::before { content: none; }
.search-trigger { background: var(--in); border: 1px dashed var(--dash); border-radius: var(--r-sm); }
.search-trigger:hover { background: rgba(255, 255, 255, 0.05); }
.status { background: var(--s-1); border: 0; box-shadow: inset 0 0 0 1px var(--line-2); border-radius: var(--r-sm); font: 700 12px/1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; }
.status.on { color: var(--ok); }
.status.on i { box-shadow: 0 0 10px var(--ok); }
.status.off { color: var(--red-hi); }
.status.off i { background: var(--red); box-shadow: 0 0 10px var(--red); }

/* Seitenkopf in Inhalten */
.page-head h2 { font: 700 26px/1.05 var(--f-head); transform: var(--skew); transform-origin: left; letter-spacing: 0.01em; }

/* Flächen */
.panel { background: var(--pane); border: 0; box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.panel > header h2 { font: 700 15px/1.1 var(--f-head); letter-spacing: 0.02em; transform: var(--skew); transform-origin: left; }
.panel > header .sub { font: 700 11.5px/1.2 var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--tx-3); }
.panel-tabs { background: rgba(0, 0, 0, 0.18); }
.tile { background: var(--pane); border: 0; box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
a.tile:hover { background: var(--pane); box-shadow: inset 0 0 0 1px var(--line-3), var(--shadow); transform: translateY(-2px); }
.tile::before { content: ''; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%); pointer-events: none; }
.tile .k { font-weight: 700; letter-spacing: 0.16em; }
.tile .ic { width: 28px; height: 28px; padding: 6px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); color: var(--tx-3); }
.tile .v { font: 700 32px/1.05 var(--f-head); letter-spacing: 0; }
.tile.accent::after { background: var(--accent); }
.tile.accent .ic { color: var(--accent-hi); background: var(--accent-wash); }
.tile.alert::after { background: var(--red); box-shadow: 0 0 14px var(--red); }
.tile.alert .ic { background: var(--red-soft); }
.tile.ok .ic { background: var(--ok-soft); }

/* Knöpfe: schmale Versalien, Hauptknopf papierweiß */
.btn { font: 700 13.5px/1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255, 255, 255, 0.05); border-color: var(--line-2); }
.btn:hover { background: rgba(255, 255, 255, 0.095); }
.btn.primary { background: var(--steel); border-color: transparent; color: rgba(8, 9, 11, 0.86); box-shadow: 0 8px 22px -12px rgba(255, 255, 255, 0.45); }
.btn.primary:hover { background: var(--steel-hover); border-color: transparent; }
.btn.danger { background: var(--red-soft); }
.btn.danger.solid { background: var(--red); border-color: var(--red); box-shadow: 0 8px 22px -12px var(--red); }
.btn.danger.solid:hover { background: var(--red-hi); border-color: var(--red-hi); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn.on { background: var(--s-3); border-color: var(--line-3); }
.btn.on .ic { color: var(--gold); }

/* Eingaben gestrichelt */
input[type=text], input[type=search], input[type=number], input[type=url], select, textarea { background-color: var(--in); border: 1px dashed var(--dash); }
input[type=url] { height: 38px; padding: 0 12px; border-radius: var(--r-sm); min-width: 0; }
input:focus, select:focus, textarea:focus { border-style: solid; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
input::placeholder, textarea::placeholder { color: var(--tx-4); }
select option { background: #16171a; }
textarea { font-family: var(--f-body); font-size: 14px; }
.field > span { font-weight: 700; letter-spacing: 0.14em; }
.chip { background: rgba(255, 255, 255, 0.03); }
.chip:hover { border-color: var(--line-3); }
.chip.on { background: var(--steel); color: rgba(8, 9, 11, 0.86); border-color: transparent; }
.seg { background: rgba(255, 255, 255, 0.025); border-color: var(--line); }
.seg button { font: 700 12.5px/1 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; }
.seg.tabs button.on, .seg.tabs button.on[data-v=''], .seg.tabs button.on[data-v=all] { background: var(--steel); color: rgba(8, 9, 11, 0.86); box-shadow: none; }
.seg button.on[data-v=log] { background: var(--ice-soft); color: var(--ice-hi); }
.switch input:checked + span { background: rgba(69, 212, 131, 0.18); border-color: var(--ok); }
.switch input:checked + span::after { background: var(--ok); }

/* Marken eckiger */
.tag { border-radius: var(--r-xs); font: 700 11px/1 var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; height: 21px; }
.tag.ban { background: var(--red); border-color: var(--red); }
.tag.kick { color: #ff9a3d; border-color: rgba(255, 154, 61, 0.4); background: rgba(255, 154, 61, 0.12); }
.tag.src-panel { color: var(--ice-hi); border-color: var(--ice-line); background: var(--ice-soft); }
.tag.src-discord { color: #b3baff; border-color: rgba(88, 101, 242, 0.5); background: rgba(88, 101, 242, 0.16); }
.tag.src-api { color: var(--gold); border-color: var(--gold-line); background: var(--gold-soft); }
.tag.src-auto { color: var(--tx); background: rgba(255, 255, 255, 0.08); }
.tag.src-ingame { color: var(--ok); border-color: rgba(69, 212, 131, 0.35); background: var(--ok-soft); }
.tag.src-console { color: var(--tx-2); }
.tag.lvl-alert { color: #fff; background: var(--red); border-color: var(--red); }
.tag.lvl-warn { color: var(--warn); border-color: rgba(245, 184, 61, 0.4); background: var(--warn-soft); }
.tag.lvl-info { color: var(--tx-2); }
.tag.off { color: var(--tx-3); }

/* Tabellen */
th { background: rgba(255, 255, 255, 0.02); font-weight: 700; letter-spacing: 0.15em; }
tr.click:hover td { background: rgba(255, 255, 255, 0.03); }
tr.open td { background: rgba(255, 255, 255, 0.04); }
tr.detail td { background: rgba(0, 0, 0, 0.25); }
td.cell-main a:hover b { color: var(--paper-hi); text-decoration: underline; text-underline-offset: 3px; }
tr.hot td:first-child { box-shadow: inset 3px 0 0 var(--red); }

/* Balken */
.score .bar, .hbar { background: rgba(255, 255, 255, 0.08); height: 5px; }
.score .bar i { background: var(--gold); }
.score .bar i.hi { background: var(--red); box-shadow: 0 0 10px rgba(209, 31, 38, 0.8); }
.score .bar u { background: var(--paper); opacity: 0.6; }
.hbar i { background: linear-gradient(90deg, var(--red), #ff7a52); }
.reasons .n { color: var(--paper); }
.chart .seg-soft { fill: rgba(232, 178, 58, 0.78); }
.chart .seg-hard { fill: var(--red); }
.chart .col.on .seg-soft { fill: var(--gold-hi); }
.sw.soft { background: rgba(232, 178, 58, 0.78); }
.sw.hard { background: var(--red); }
.chart-tip { background: #0e0f11; border-color: var(--line-2); }

/* Spielerakte */
.profile-head { background: var(--pane); border: 0; box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.profile-head::after {
  content: attr(data-wm); position: absolute; right: -8px; bottom: -16px; font: 700 86px/1 var(--f-head); text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.045); transform: var(--skew); pointer-events: none; white-space: nowrap;
}
.profile-head h2 { font: 700 30px/1 var(--f-head); letter-spacing: 0; text-transform: none; }
.avatar-lg { border-radius: var(--r); background: linear-gradient(180deg, #25262c, #17181c); color: var(--paper); font: 700 28px/1 var(--f-head); }
.avatar-ph { border-radius: var(--r-sm); font-family: var(--f-head); font-weight: 400; }
.mini-stats { background: var(--line); border: 0; box-shadow: inset 0 0 0 1px var(--line); }
.mini-stats > div { background: linear-gradient(180deg, var(--pane-a), var(--pane-b)); }
.mini-stats b { font: 700 22px/1.1 var(--f-head); }
.srv-state { background: rgba(255, 255, 255, 0.025); }

/* Live */
.ls { background: var(--pane); border: 0; box-shadow: inset 0 0 0 1px var(--line); }
.ls b { font: 700 18px/1 var(--f-head); }
.feed .item.a-ban { background: linear-gradient(90deg, rgba(209, 31, 38, 0.14), transparent 60%); }
.feed .item.a-kick { background: linear-gradient(90deg, rgba(255, 154, 61, 0.1), transparent 60%); }
.feed .item.sys { grid-template-columns: 74px auto minmax(0, 1fr); }
.feed .item.ev { grid-template-columns: 74px auto minmax(0, 1fr) auto; }

/* Erkennungen */
.det-cat > h3 { font: 700 14px/1 var(--f-head); letter-spacing: 0.04em; color: var(--tx-2); transform: var(--skew); transform-origin: left; }
.det { background: var(--pane); border-color: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.det:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.det.dirty { box-shadow: inset 0 0 0 1px var(--gold-line), 0 0 0 3px var(--gold-soft); }
.cat-jump a { background: rgba(255, 255, 255, 0.03); }

/* Dialoge */
.modal { background: var(--pane); }
.modal.wide { width: min(760px, 100%); }
.modal header { font: 700 17px/1.1 var(--f-head); letter-spacing: 0.01em; }
.modal header span { transform: var(--skew); transform-origin: left; }
.modal.danger header { box-shadow: inset 0 2px 0 var(--red); }
.modal footer { background: rgba(0, 0, 0, 0.2); }
.palette { background: var(--pane); }
.pal-item.on { background: rgba(255, 255, 255, 0.07); }
.pal-item.on .ic { color: var(--paper); }
.toast { background: #17181b; border-left: 3px solid var(--ok); }
.toast.warn { border-left-color: var(--warn); }
.toast.err { border-left-color: var(--red); }
.tabbar a.active { color: var(--paper); }
.tabbar a.active::before { background: var(--accent); }

/* ======================================================================================
   Neue Bausteine (Banns, Historie, System-Log, API)
   ====================================================================================== */
.grid.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ban-hero {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px; margin-bottom: 18px;
  border-radius: var(--r-lg); background: var(--pane); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); position: relative; overflow: hidden;
}
.ban-hero::after {
  content: attr(data-wm); position: absolute; right: -6px; bottom: -18px; font: 700 90px/1 var(--f-head); color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05); transform: var(--skew); pointer-events: none; white-space: nowrap;
}
.ban-hero .stamp { width: 62px; height: 62px; border-radius: var(--r); display: grid; place-items: center; background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px var(--red); }
.ban-hero .stamp.off { background: var(--s-3); color: var(--tx-3); box-shadow: none; }
.ban-hero .stamp .ic { width: 30px; height: 30px; }
.ban-hero h2 { margin: 0; font: 700 28px/1.05 var(--f-head); overflow-wrap: anywhere; }
.ban-hero .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--tx-3); font-size: 13px; margin-top: 8px; }
.ban-hero .actions { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.reason-box { font-size: 16px; line-height: 1.5; margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(0, 0, 0, 0.25); box-shadow: inset 0 0 0 1px var(--line); overflow-wrap: anywhere; }
.evidence { display: inline-flex; align-items: center; gap: 6px; color: var(--ice-hi); text-decoration: none; overflow-wrap: anywhere; }
.evidence:hover { text-decoration: underline; }
.evidence .ic { width: 15px; height: 15px; }

.timeline { list-style: none; margin: 0; padding: 4px 18px 14px; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 11px 0; }
.timeline li::before { content: ''; position: absolute; left: 13px; top: 39px; bottom: -11px; width: 2px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--s-3); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--tx-3); }
.timeline .dot .ic { width: 14px; height: 14px; }
.timeline .dot.create { background: var(--red); color: #fff; box-shadow: 0 0 14px -2px var(--red); }
.timeline .dot.unban { background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(69, 212, 131, 0.4); }
.timeline .dot.edit { background: var(--gold-soft); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-line); }
.timeline .dot.evasion { background: #ff7a1a; color: #111; }
.timeline .what { display: grid; gap: 3px; min-width: 0; }
.timeline .what b { font-weight: 600; }
.timeline .what a { text-decoration: none; }
.timeline .what a:hover { text-decoration: underline; }
.timeline .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; color: var(--tx-3); font-size: 12.5px; }
.timeline .detail { color: var(--tx-2); font-size: 13.5px; overflow-wrap: anywhere; }

.target-preview { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px var(--line); min-height: 58px; font-size: 14px; }
.target-preview.ok { box-shadow: inset 0 0 0 1px rgba(69, 212, 131, 0.4); }
.target-preview.bad { box-shadow: inset 0 0 0 1px var(--red-line); color: var(--red-hi); }
.target-preview .grow { display: grid; gap: 2px; min-width: 0; flex: 1; }
.target-preview .grow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.tpl-grid button { text-align: left; display: grid; gap: 3px; padding: 8px 10px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); cursor: pointer; color: var(--tx); }
.tpl-grid button:hover { border-color: var(--line-3); }
.tpl-grid button.on { border-color: var(--accent); background: var(--accent-wash); }
.tpl-grid b { font: 700 13px/1.2 var(--f-display); letter-spacing: 0.06em; text-transform: uppercase; }
.tpl-grid span { font-size: 12px; color: var(--tx-3); }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid > .wide { grid-column: 1 / -1; }
.err-line { color: var(--red-hi); font-size: 13px; }

.linked { list-style: none; margin: 0; padding: 6px; }
.linked a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 10px; border-radius: var(--r-sm); text-decoration: none; }
.linked a:hover { background: rgba(255, 255, 255, 0.04); }
.linked b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linked small { color: var(--tx-3); grid-column: 1 / -1; font-size: 12px; }
.idlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.idlist li { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.idlist .k { font: 700 10.5px/1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--tx-3); }
.idlist .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.key-once { display: grid; gap: 10px; padding: 14px; border-radius: var(--r); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-line); }
.key-once code { font: 600 14px/1.45 var(--f-mono); word-break: break-all; color: var(--paper-hi); }
.scope-list { display: flex; gap: 8px; flex-wrap: wrap; }
.scope-list label { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font: 600 12.5px var(--f-mono); }
.scope-list input { accent-color: var(--red); }
.code-block { font: 12.5px/1.6 var(--f-mono); background: rgba(0, 0, 0, 0.4); border-radius: var(--r-sm); padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; white-space: pre; margin: 0; color: var(--tx-2); }

@media (max-width: 1100px) {
  .grid.g-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .top .titles::before { font-size: 38px; }
  .top h1 { font-size: 19px; }
  .ban-hero { grid-template-columns: auto minmax(0, 1fr); }
  .ban-hero .actions { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .ban-hero h2 { font-size: 22px; }
  .ban-hero::after, .profile-head::after { display: none; }
  .idlist li { grid-template-columns: 60px minmax(0, 1fr) auto; }
}
.feed.short { max-height: 380px; min-height: 140px; }
.top .titles::before { content: none; } /* Base v4: gerader Titel mit Kicker-Zeile, kein Schatten-Schriftzug in der Kopfzeile */

/* Video-/Screenshot-Beweise */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ev-grid.wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ev-item { display: flex; flex-direction: column; gap: 6px; }
.ev-card { margin: 0; background: var(--s-2, rgba(255,255,255,0.03)); border: 1px solid var(--line); border-radius: var(--r-md, 8px); overflow: hidden; }
.ev-card .ev-media { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
/* Alte, kopfüber gespeicherte Aufnahmen: beim Anzeigen zurückdrehen (eigene Steuerleiste) */
.ev-card .ev-media.ev-flip { transform: scaleY(-1); cursor: pointer; }
.ev-player { position: relative; background: #000; }
.ev-player:fullscreen { display: flex; flex-direction: column; justify-content: center; }
.ev-player:fullscreen .ev-media { aspect-ratio: auto; max-height: calc(100vh - 44px); object-fit: contain; width: 100%; transform: scaleY(-1); }
.ev-controls { display: flex; align-items: center; gap: 8px; padding: 4px 8px; background: rgba(0,0,0,0.55); }
.ev-card .ev-controls .btn { margin-left: 0; }
.ev-seek { flex: 1 1 auto; min-width: 0; accent-color: var(--accent); }
.ev-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ev-card figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 10px; font-size: 13px; }
.ev-card .ev-meta { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 120px; }
.ev-card .btn { margin-left: auto; }
.tag.ev-video { color: var(--accent); background: var(--accent-wash); }
.tag.ev-image { color: var(--tx-2, inherit); }
.tag.warn { color: var(--warn); background: var(--warn-soft); }
.ev-flag { color: var(--accent); }
.detail-ev { grid-column: 1 / -1; }

/* Spielerakte: alle Kennungen */
.idlist-full li { grid-template-columns: 118px minmax(0, 1fr) auto; }
.idlist-full .v { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.idlist-full .v .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idlist-full .v .sub { font-size: 11.5px; }
.idlist-full .id-acts { display: inline-flex; gap: 2px; align-items: center; }
.idlist-full .id-more { background: none; box-shadow: none; display: block; padding: 0; }
@media (max-width: 640px) { .idlist-full li { grid-template-columns: 86px minmax(0, 1fr) auto; } }

/* Flag-Suche: Treffer je Erkennung */
.flag-summary { display: grid; gap: 12px; padding: 14px 16px; }
.flag-summary .fs-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.flag-summary .fs-total { font: 700 22px/1 var(--f-mono); color: var(--gold); }
.flag-summary .fs-players { display: flex; flex-wrap: wrap; gap: 6px; }
.flag-summary .chip.on { border-color: var(--gold-line); color: var(--tx); background: var(--s-3, var(--s-2)); }
.flag-summary .chip b { font-family: var(--f-mono); margin-left: 6px; color: var(--gold); }
.flag-summary .chip .hard { margin-left: 4px; color: var(--red-hi); font-family: var(--f-mono); }

/* Beweisspeicher (Belegung, Limit 10 GB) und Löschen durch die Projektleitung */
.ev-card .ev-del { margin-left: 0; color: var(--red-hi); }
.ev-usage { display: flex; flex-direction: column; gap: 8px; }
.ev-usage-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ev-usage-head b { font: 600 15px/1.2 var(--f-mono); }
.ev-usage-pct { font: 600 13px/1 var(--f-mono); color: var(--ok); }
.ev-usage-pct.mid { color: var(--warn); }
.ev-usage-pct.hi { color: var(--red-hi); }
.ev-usage-bar { display: flex; height: 10px; background: var(--s-3); border-radius: 6px; overflow: hidden; }
.ev-usage-bar i { display: block; height: 100%; transition: width 300ms var(--ease); }
.ev-usage-bar i.vid { background: var(--ice); }
.ev-usage-bar i.vid.mid { background: var(--warn); }
.ev-usage-bar i.vid.hi { background: var(--red-hi); }
.ev-usage-bar i.img { background: var(--tx-3); }
.ev-usage-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ev-usage-meta .dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.ev-usage-meta .dot.vid { background: var(--ice); }
.ev-usage-meta .dot.img { background: var(--tx-3); }
.ev-usage-note { margin: 0; }
.flag-del-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* Rechte-Seite (Teampanel) */
.perm-layout { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 16px; align-items: start; }
.role-list { display: flex; flex-direction: column; padding: 6px; gap: 2px; max-height: 75vh; overflow: auto; }
.role-item { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; font: inherit; }
.role-item:hover { background: rgba(255,255,255,.04); }
.role-item.on { background: rgba(255,255,255,.08); }
.role-name { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.role-sub { font-size: 12px; opacity: .6; }
.role-detail { padding: 18px 20px; }
.role-head { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.role-head h2 { margin: 0; }
.perm-group { border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 6px 14px 10px; margin: 0 0 14px; }
.perm-group legend { padding: 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.perm-row { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.05); cursor: pointer; }
.perm-row:first-of-type { border-top: 0; }
.perm-row input { margin-top: 3px; }
.perm-text { display: flex; flex-direction: column; gap: 2px; }
.perm-key { font-size: 11px; opacity: .5; }
@media (max-width: 860px) { .perm-layout { grid-template-columns: 1fr; } .role-list { max-height: 240px; } .perm-key { display: none; } .perm-row { grid-template-columns: 20px 1fr; } }
