/* VScripts Admin "Night Ops": kantig, kompakt, flach. Eigenes Violett statt Glas-Verläufen.
   Bewusst ohne Blur, Glow und große Schatten: flache Flächen zeichnen sich im Spiel am billigsten. */
:root {
    --v-bg: #0c0a0a;
    --v-panel: #141010;
    --v-panel-2: #1c1614;
    --v-panel-3: #261c18;
    --v-line: rgba(255,214,170, .13);
    --v-line-2: rgba(255,214,170, .26);
    --v-accent: #ff4b24;
    --v-accent-rgb: 255,75,36;
    --v-accent-hi-rgb: 255,178,122;
    --v-accent-lo-rgb: 158,46,22;
    --v-accent-lo: rgb(var(--v-accent-lo-rgb));
    --v-shell-top: #1c120e;
    --v-solid: #1c1614;
    --v-accent-hi: #ffb27a;
    --v-pink: #ffb020;
    --v-green: #34d399;
    --v-amber: #fbbf24;
    --v-red: #f87171;
    --surface: var(--v-panel);
    --surface-2: var(--v-panel-2);
    --surface-3: var(--v-panel-3);
    --border: var(--v-line);
    --border-hover: var(--v-line-2);
    --glass-panel: var(--v-panel);
    --radius: 8px;
    --radius-lg: 8px;
    --radius-xl: 10px;
    --sidebar-width: 216px;
}

/* ── Rahmen ──────────────────────────────────────────────────────────── */
#app .shell {
    border-radius: 10px;
    border: 1px solid var(--v-line-2);
    background: linear-gradient(115deg, var(--v-shell-top) 0%, var(--v-bg) 34%) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
}
#app .shell::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    z-index: 5;
    background: linear-gradient(90deg, var(--v-accent), var(--v-pink) 45%, transparent 80%);
    pointer-events: none;
}

/* ── Seitenleiste ────────────────────────────────────────────────────── */
#app .sidebar { background: rgba(16, 10, 6, .55) !important; }
#app .brand { order: 0; height: 58px; padding: 10px 14px; gap: 10px; }
#app .logo, #app .brand .logo { width: 32px; height: 32px; }
#app .brand strong { font-size: 15px; font-weight: 800; font-style: italic; letter-spacing: .01em; text-transform: uppercase; }
#app .brand span { margin-top: 1px; font-size: 9px; letter-spacing: .28em; color: var(--v-accent-hi); font-weight: 700; }

#app .sidebar > .user-box {
    order: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 12px 14px 8px;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
}
#app .sidebar > .user-box .user-box-av { display: block; }
#app .sidebar > .user-box .member-avatar { width: 34px; height: 34px; border-radius: 8px; }
#app .sidebar > .user-box #meta-name { font-size: 12px; font-weight: 700; }
#app .sidebar > .user-box .rank { font-size: 10px; }

#app .staff-panel { order: 2; padding: 0 14px 12px; border-top: 0 !important; border-bottom: 1px solid var(--v-line) !important; }
#app .mode-btn {
    min-height: 32px;
    padding: 5px 9px;
    border-radius: 6px;
    background: var(--v-panel-2) !important;
    border: 1px solid var(--v-line) !important;
}
#app .mode-btn .mode-text { display: flex; align-items: center; gap: 6px; }
#app .mode-btn .mode-text strong { display: none; }
#app .mode-btn .mode-text small {
    color: #e4d0c2;
    font-size: 10.5px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: .07em;
    text-transform: uppercase;
}
#app .mode-btn .mode-icon { width: 16px; height: 16px; color: #c4ae9f; }
#app .mode-btn.active { background: rgba(52, 211, 153, .13) !important; border-color: rgba(52, 211, 153, .5) !important; }
#app .mode-btn.active .mode-text small, #app .mode-btn.active .mode-icon { color: var(--v-green); }
#app .mode-hotkey-hint { display: none; }

#app .sidebar-nav { order: 3; padding: 8px 10px 12px; }
#app .ow-nav-search { margin-bottom: 2px; }
.vg-nav-section {
    margin-top: 6px;
    padding: 10px 8px 5px;
    border-top: 0;
    color: #998375;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .14em;
}
#app .nav-item, #app .vg-more > summary {
    min-height: 33px;
    margin: 0 0 2px;
    padding: 6px 10px;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #c6b0a2;
    font-size: 11.5px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: none;
}
#app .nav-item .vg-icon { width: 16px; height: 16px; font-style: normal; }
#app .nav-item:hover, #app .vg-more > summary:hover { background: var(--v-panel-2) !important; color: #fff; }
#app .nav-item.active,
#app .shell[data-view=dashboard] .nav-item.active {
    background: var(--v-accent) !important;
    border-color: transparent !important;
    color: #fff;
    box-shadow: none !important;
}
#app .nav-item.active::before { display: none; }
#app .nav-item.active .nav-badge { background: #fff; color: #954d1d; }

/* ── Kopfzeile ───────────────────────────────────────────────────────── */
#app .topbar { height: 58px; min-height: 58px; padding: 10px 16px; gap: 14px; background: transparent !important; }
#app .topbar-titles { display: flex; align-items: baseline; gap: 10px; min-width: 0; max-width: none; }
#app .topbar h1 { font-size: 18px; font-weight: 800; font-style: italic; letter-spacing: .03em; text-transform: uppercase; }
#app .topbar-titles p { display: none; }
.vg-global-search { height: 34px; max-width: 340px; margin-left: auto; border-radius: 6px; background: var(--v-panel); font-size: 12px; }
#app .topbar-meta { gap: 8px; }
#app .live-pill, #app .ticket-pill, .v2-clock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    min-width: 0;
    padding: 0 10px;
    border-radius: 6px;
    background: var(--v-panel) !important;
    border: 1px solid var(--v-line) !important;
    box-shadow: none !important;
    color: #f5e8e0;
    font-size: 11.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
#app .topbar-close { width: 34px; height: 34px; flex-direction: row; border-radius: 6px; background: var(--v-panel); border: 1px solid var(--v-line); }
#app .topbar-close small { display: none; }

/* ── Flächen ─────────────────────────────────────────────────────────── */
#app .content { padding: 14px 16px; }
#app .vg-panel, #app .card, #app .self-card, #app .config-card, #app .veh-card, #app .inv-card, #app .bans-card,
#app .warn-card, #app .logs-hero, #app .logs-stat, #app .logs-toolbar, #app .logs-list-wrap, #app .log-card-row, #app .tile,
#app .players-sidebar, #app .tickets-sidebar, #app .tickets-main, #app .vg-profile .player-profile-head, #app .vg-profile .player-activity {
    background: var(--v-panel) !important;
    border: 1px solid var(--v-line) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}
#app .card:hover, #app .tile:hover, #app .log-card-row:hover, #app .veh-card:hover { background: var(--v-panel) !important; border-color: var(--v-line-2) !important; }
.vg-panel-head { margin-bottom: 12px; }
#app .vg-panel-head h2, #app .vg-panel h3, #app .tickets-sidebar-head h3, #app .players-sidebar-head h3, #app .ticket-section-title {
    color: #fff2ea !important;
    font-size: 12.5px !important;
    font-weight: 800;
    font-style: italic;
    letter-spacing: .07em !important;
    text-transform: uppercase !important;
}
.vg-text-link { color: var(--v-accent-hi); font-weight: 600; }
.vg-text-link:hover { color: #fff; }

/* Formulare und Knöpfe */
#app .btn {
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: .05em;
    text-transform: uppercase;
}
#app .btn-primary, #app .btn.btn-primary { background: var(--v-accent) !important; border: 1px solid var(--v-accent) !important; }
#app .btn-primary:hover { background: var(--v-accent-hi) !important; filter: none; }
#app .btn-ghost { background: var(--v-panel-2) !important; border: 1px solid var(--v-line) !important; }
#app input, #app select, #app textarea { border-radius: 6px !important; background: var(--v-bg) !important; }
#app input:focus, #app select:focus, #app textarea:focus { border-color: var(--v-accent) !important; box-shadow: none !important; }
#app .chips button { border-radius: 6px !important; }
#app ::-webkit-scrollbar-thumb { background: var(--v-line-2); border-radius: 2px; }

/* ── Dashboard ───────────────────────────────────────────────────────── */
.vg-dashboard { gap: 10px; grid-template-columns: minmax(280px, 1.5fr) minmax(170px, .75fr) minmax(250px, 1fr); }
.vg-dashboard > .vg-panel { padding: 14px 16px; }
.vg-meter-panel { min-height: 216px; display: flex; flex-direction: column; overflow: hidden; }
.vg-gauge { display: none; }
.vg-meter { max-width: none; margin: 0; }
.vg-meter-copy { position: static; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; text-align: left; }
.vg-meter-copy > strong { font-size: 72px; line-height: .95; font-weight: 800; font-style: italic; letter-spacing: -.03em; color: #fff; }
.vg-meter-copy > span { margin: 0; color: #ab9586; font-size: 22px; font-weight: 700; font-style: italic; }
.vg-meter-copy > small { width: 100%; margin: 2px 0 0; color: var(--v-accent-hi); font-weight: 600; }
.v2-spark { display: block; width: calc(100% + 32px); height: 76px; margin: auto -16px -14px; flex: none; }
.v2-spark-line { fill: none; stroke: var(--v-accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.v2-spark-fill { fill: rgba(var(--v-accent-rgb), .14); }

.vg-team-count { margin-top: 8px; font-size: 52px; line-height: 1; font-weight: 800; font-style: italic; }
.vg-team-art { width: 150px; height: 136px; right: -8px; opacity: .85; }

.dq-stats { gap: 6px; }
#app .dq-stat { padding: 9px 8px; border-radius: 6px; background: var(--v-panel-2) !important; border: 1px solid var(--v-line) !important; box-shadow: none !important; }
#app .dq-stat strong { font-size: 26px; font-weight: 800; font-style: italic; }
#app .dq-stat span { font-size: 10px; }
.dq-quick-grid { gap: 6px; margin-top: 8px; }
#app .dq-quick {
    min-height: 44px;
    padding: 6px;
    gap: 3px;
    border-radius: 6px;
    background: var(--v-panel-2) !important;
    border: 1px solid var(--v-line) !important;
    box-shadow: none !important;
    color: #f3e2d7;
    font-size: 10px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: .04em;
    text-transform: uppercase;
}
#app .dq-quick:hover { background: var(--v-panel-3) !important; border-color: var(--v-accent) !important; transform: none; }
#app .dq-quick .vg-icon { width: 16px; height: 16px; }

.vg-support-panel { min-height: 196px; background: linear-gradient(120deg, #462916, var(--v-panel) 62%) !important; }
.vg-support-copy h2 { font-size: 15px; font-weight: 800; font-style: italic; letter-spacing: .05em; text-transform: uppercase; }
.vg-support-copy h2 strong { font-size: 40px; color: #fff; }
.vg-support-art { right: -1%; bottom: -4%; width: 30%; height: 105%; }
#app .vg-support-button { min-height: 36px; margin-top: 12px; }
.vg-activity-panel { min-height: 196px; }
#app .vg-activity-panel .dash-log { padding: 8px 0; border-bottom-color: var(--v-line); }
#app .vg-activity-panel .dash-log-type { color: var(--v-accent-hi); font-weight: 800; letter-spacing: .06em; }

/* ── Listen, Profile, Tickets ────────────────────────────────────────── */
#app .players-layout { gap: 10px; }
#app .player-item { padding: 9px 8px; border-bottom-color: var(--v-line); }
#app .player-item:hover { background: var(--v-panel-2); }
#app .player-item.active { border-radius: 6px; background: rgba(var(--v-accent-rgb), .2); box-shadow: inset 3px 0 var(--v-accent); }
#app .player-item-av, #app .vg-profile .player-profile-av { border-radius: 8px; border: 1px solid var(--v-line-2); background: var(--v-panel-3); }
#app .vg-profile { gap: 10px; }
#app .vg-profile .player-profile-info h2 { font-size: 22px; font-weight: 800; font-style: italic; letter-spacing: .01em; text-transform: uppercase; }
#app .vg-core-actions { gap: 6px; }
#app .vg-core-actions .action-btn { min-height: 74px; gap: 6px; padding: 8px 4px; border-radius: 6px; font-size: 10px; font-weight: 800; font-style: italic; letter-spacing: .04em; text-transform: uppercase; }
#app .vg-core-actions .action-btn:hover { filter: none; transform: none; border-color: #fff !important; }
#app .vg-core-actions [data-tone=teal] { background: rgba(34, 211, 238, .1) !important; }
#app .vg-core-actions [data-tone=blue] { background: rgba(96, 165, 250, .1) !important; }
#app .vg-core-actions [data-tone=green] { background: rgba(52, 211, 153, .1) !important; }
#app .vg-core-actions [data-tone=violet] { background: rgba(var(--v-accent-rgb), .14) !important; }
#app .vg-core-actions [data-tone=amber] { background: rgba(251, 191, 36, .1) !important; }
#app .vg-core-actions [data-tone=red] { background: rgba(248, 113, 113, .12) !important; }
#app .vg-core-actions .action-icon .vg-icon { width: 21px; height: 21px; }
#app .tickets-layout { gap: 10px; }
#app .ticket-item { padding: 11px 10px; border-bottom-color: var(--v-line); }
#app .ticket-item.active { border-radius: 6px; background: rgba(var(--v-accent-rgb), .2); box-shadow: inset 3px 0 var(--v-accent); }
#app .ticket-reason { border-radius: 6px; background: var(--v-bg); }
#app .ticket-act-btn { border-radius: 6px; background: var(--v-panel-2) !important; }
#app .ticket-act-btn.tone-claim { background: var(--v-accent) !important; border-color: var(--v-accent) !important; }

/* Dialoge */
#modal .modal-box, .lg-dialog {
    border-radius: 10px;
    background: var(--v-panel) !important;
    border: 1px solid var(--v-line-2) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
}
.lg-dialog-head h3, #modal .modal-box h3 { font-weight: 800; font-style: italic; letter-spacing: .04em; text-transform: uppercase; }
#palette .pal { border-radius: 10px; background: var(--v-panel); border: 1px solid var(--v-line-2); }

/* Waffen-Vorschau: Panel bleibt lesbar, aber ohne Verlauf */
#app.wp-live .wp-overlay .lg-dialog { background: rgba(31, 22, 16, .96) !important; }

/* ── Aufbau: Kopfzeile über die ganze Breite, darunter Seitenleiste und Inhalt ── */
#app .shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); grid-template-rows: 50px minmax(0, 1fr); }
#app .shell > .topbar { grid-column: 1 / -1; grid-row: 1; height: 50px; min-height: 50px; padding: 8px 10px; gap: 10px; border-bottom: 1px solid var(--v-line) !important; }
#app .shell > .sidebar { grid-column: 1; grid-row: 2; min-height: 0; }
#app .shell > .main { grid-column: 2; grid-row: 2; min-height: 0; }
#app .sidebar > .brand, #app .topbar-titles { display: none; }
#app .page { position: relative; }
#app .topbar-meta { flex: none; }

.v2-nav { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.v2-logo { display: block; flex: none; margin-right: 4px; }
#app .v2-logo .logo { width: 30px; height: 30px; }
.v2-square { display: grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0; border: 1px solid var(--v-line); border-radius: 6px; background: var(--v-panel); color: #e4d0c2; cursor: pointer; }
.v2-square:hover:not(:disabled) { background: var(--v-panel-3); color: #fff; }
.v2-square .vg-icon { width: 16px; height: 16px; }
.v2-flip { transform: scaleX(-1); }
.v2-tabs { display: flex; gap: 4px; min-width: 0; overflow: hidden; }
.v2-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 1 auto;
    min-width: 0;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--v-line);
    border-radius: 6px;
    background: var(--v-panel);
    color: #c6b0a2;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}
.v2-tab span { overflow: hidden; text-overflow: ellipsis; }
.v2-tab .vg-icon { width: 14px; height: 14px; }
.v2-tab i { font-style: normal; font-size: 14px; line-height: 1; opacity: .6; }
.v2-tab i:hover { opacity: 1; }
.v2-tab:hover { color: #fff; }
.v2-tab.active { background: var(--v-accent); border-color: var(--v-accent); color: #fff; }
.v2-chip, #app .topbar .v2-clock {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--v-line);
    border-radius: 6px;
    background: var(--v-panel);
    color: #f5e8e0;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
#app .live-pill, #app .ticket-pill { height: 32px; font-size: 11px; }
#app .topbar-close { width: 32px; height: 32px; }
#app .topbar .vg-global-search { flex: none; width: auto; height: 32px; margin: 0; padding: 0 8px; gap: 6px; }
#app .topbar .vg-global-search > span:not(.vg-icon) { display: none; }
#app .topbar .vg-global-search .vg-icon { width: 15px; height: 15px; }

#app .sidebar > .user-box { padding: 12px 14px 8px; }
#app .sidebar-nav { min-height: 0; flex: 1; }

/* ── Dashboard: linke Hauptspalte, rechte Randspalte ─────────────────────── */
.vg-dashboard { grid-template-columns: minmax(0, 1fr) 290px; gap: 10px; align-items: start; min-height: 0; }
.dx-main, .dx-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vg-dashboard .vg-panel { padding: 14px 16px; }
.dx-label { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; color: #baa496; font-size: 11px; font-weight: 800; font-style: italic; letter-spacing: .08em; text-transform: uppercase; }
.dx-label .vg-icon { width: 14px; height: 14px; }
.dx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--v-green); }
.dx-sub { position: relative; z-index: 1; color: var(--v-accent-hi); font-size: 11px; font-weight: 600; }
.vg-meter-panel { min-height: 200px; position: relative; }
.v2-spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 92px; margin: 0; }
.vg-meter-copy { position: relative; z-index: 1; }
.dx-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.xp-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 10px; }
.dx-kpi { display: flex; flex-direction: column; min-width: 0; }
.dx-kpi[data-goto-tab] { cursor: pointer; }
.dx-kpi[data-goto-tab]:hover { border-color: var(--v-accent) !important; }
.dx-kpi strong { color: #fff; font-size: 34px; line-height: 1.05; font-weight: 800; font-style: italic; }
.dx-kpi .vg-sub { overflow: hidden; font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.dx-quick .dq-quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); margin: 0; }
#app .dx-quick .dq-quick:first-child { background: var(--v-accent) !important; border-color: var(--v-accent) !important; color: #fff; }
.dx-attention { position: relative; min-height: 130px; overflow: hidden; }
.dx-attention > div, .dx-attention > .vg-panel-head, .dx-attention > p { position: relative; z-index: 1; max-width: calc(100% - 130px); }
.dx-attention > .vg-panel-head { max-width: none; }
.dx-attention-art { position: absolute; right: -8px; bottom: -12px; width: 140px; height: 140px; object-fit: contain; pointer-events: none; }
.dx-all-clear[hidden], img[hidden], .xp-screen p[hidden] { display: none; }
.dx-alert { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 6px; padding: 8px 10px; border-radius: 6px; border: 1px solid rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .07); }
.dx-alert.is-critical { border-color: rgba(248, 113, 113, .5); background: rgba(248, 113, 113, .1); }
.dx-alert-tag { color: var(--v-amber); font-size: 10px; font-weight: 800; font-style: italic; letter-spacing: .05em; text-transform: uppercase; }
.dx-alert.is-critical .dx-alert-tag { color: var(--v-red); }
.dx-alert-text { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 12px; }
.dx-alert-text small { color: var(--muted); }
#app .dx-alert .btn { min-height: 28px; padding: 4px 9px; font-size: 10px; }
.vg-team-panel { min-height: 138px; }
.vg-team-count { margin-top: 0; }
.vg-team-art { width: 130px; height: 118px; }
.vg-duty-panel #dash-staff-body { grid-template-columns: minmax(0, 1fr); gap: 4px; }

/* ── Avatare und Charakterbild ───────────────────────────────────────────── */
.player-item-av, .player-profile-av, .vg-initial { position: relative; }
.av-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.vg-char-portrait { height: 100%; width: 46%; opacity: 1; object-fit: contain; object-position: right bottom; }

/* ── Neue Seiten ─────────────────────────────────────────────────────────── */
.xp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.xp-head h2 { margin: 0; color: #fff; font-size: 17px; font-weight: 800; font-style: italic; letter-spacing: .04em; text-transform: uppercase; }
.xp-head-right { display: flex; align-items: center; gap: 6px; }
.xp-head-right .field { width: 240px; }
#page-accounts .chips { margin-bottom: 10px; }
.xp-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.xp-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; margin-top: 10px; }
.xp-split { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 10px; align-items: start; }
#xj-detail { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.xp-list { padding: 6px; }
.vg-panel.xp-table, .vg-panel { padding: 12px 14px; }
.xp-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 2px; border: 0; border-bottom: 1px solid var(--v-line); background: transparent; color: inherit; font: inherit; text-align: left; }
.xp-row:last-child { border-bottom: 0; }
.xp-row > div { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 1px; font-size: 12px; }
.xp-pick { cursor: pointer; border-radius: 6px; padding: 8px; }
.xp-pick:hover { background: var(--v-panel-2); }
.xp-pick.active { background: rgba(var(--v-accent-rgb), .2); box-shadow: inset 3px 0 var(--v-accent); }
.xp-rank { flex: none; width: 24px; color: var(--v-accent-hi); font-size: 12px; font-weight: 800; font-style: italic; text-align: center; }
.xp-tr { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--v-line); font-size: 12px; }
.xp-tr:last-child { border-bottom: 0; }
.xp-tr > span { min-width: 0; overflow-wrap: anywhere; }
.xp-tr small { display: block; }
.xp-th { color: #ab9586; font-size: 10px; font-weight: 800; font-style: italic; letter-spacing: .08em; text-transform: uppercase; }
.xp-status { padding: 2px 7px; border-radius: 4px; background: rgba(52, 211, 153, .12); color: var(--v-green); font-size: 10.5px; font-style: normal; font-weight: 700; }
.xp-status.is-inactive { background: rgba(251, 191, 36, .12); color: var(--v-amber); }
.xp-status.is-blacklisted { background: rgba(248, 113, 113, .14); color: var(--v-red); }
.xp-pager { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.xp-bars { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 18px; }
.xp-bar { display: flex; flex-direction: column; justify-content: flex-end; flex: 1; gap: 5px; height: 100%; min-width: 0; text-align: center; }
.xp-bar span { position: relative; display: block; min-height: 3px; border-radius: 4px 4px 0 0; background: var(--v-accent); }
.xp-bar b { position: absolute; left: 0; right: 0; top: -16px; color: #fff; font-size: 11px; }
.xp-bar small { color: var(--muted); font-size: 10px; }
.xp-poll { display: flex; flex-direction: column; gap: 5px; padding: 8px 0 12px; border-bottom: 1px solid var(--v-line); font-size: 12.5px; }
.xp-poll:last-child { border-bottom: 0; }
.xp-vote { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 7px 9px; overflow: hidden; border: 1px solid var(--v-line); border-radius: 6px; background: var(--v-panel-2); color: inherit; cursor: pointer; font: inherit; font-size: 12px; text-align: left; }
.xp-vote i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(var(--v-accent-rgb), .28); }
.xp-vote span, .xp-vote b { position: relative; }
.xp-vote.active { border-color: var(--v-accent); }
.xp-mass h3 { margin: 0 0 4px; }
.xp-mass .btn { margin-top: 10px; }
.xp-locked { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; border-color: rgba(248, 113, 113, .5) !important; font-size: 12.5px; }
.xp-locked .btn { margin-left: auto; }
#app .btn-danger { background: rgba(248, 113, 113, .16) !important; border: 1px solid rgba(248, 113, 113, .55) !important; color: #ffd8d8 !important; }
#app .btn-danger:hover { background: rgba(248, 113, 113, .3) !important; }
.xp-form { display: flex; flex-direction: column; gap: 6px; }
.xp-form .field { width: 100%; }
.xp-form-foot { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.xp-dialog .lg-dialog { width: min(460px, 100%); max-height: 100%; }
.xp-screen { text-align: center; }
.xp-screen img { display: block; width: 100%; border-radius: 6px; border: 1px solid var(--v-line); }
.xp-media { margin-top: 10px; }
.xp-media h4 { margin: 0 0 6px; color: #fff2ea; font-size: 12px; font-style: italic; letter-spacing: .06em; text-transform: uppercase; }
.xp-media > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.xp-media button { display: flex; flex-direction: column; gap: 1px; padding: 7px 8px; border: 1px solid var(--v-line); border-radius: 6px; background: var(--v-panel-2); color: inherit; cursor: pointer; font: inherit; font-size: 11.5px; text-align: left; }
.xp-media small { color: var(--muted); font-size: 10px; }
@media (max-width: 1250px) {
    .vg-dashboard { grid-template-columns: minmax(0, 1fr); }
    .xp-grid2, .xp-grid3 { grid-template-columns: minmax(0, 1fr); }
    .v2-tab span { max-width: 80px; }
}
#app .map-sidebar { order: -1; }
#app .map-layout { grid-template-columns: 300px minmax(0, 1fr) !important; }

/* ── Quick-Menü: links, flach, kompakt ───────────────────────────────────── */
#rl-qm { left: 2vh !important; right: auto !important; width: 21rem !important; transform-origin: top left !important; }
#rl-qm .rl-qm__panel { border-radius: 10px !important; border: 1px solid var(--v-line-2) !important; background: var(--v-panel) !important; box-shadow: 0 14px 36px rgba(0, 0, 0, .5) !important; }
#rl-qm .rl-qm__panel::before, #rl-qm .rl-qm__panel::after { display: none !important; }
#rl-qm .rl-qm__head { padding: 12px 14px 10px !important; }
#rl-qm .rl-qm__art { width: 34px !important; height: 34px !important; flex: 0 0 34px !important; margin: 0 !important; }
#rl-qm .rl-qm__title strong, #rl-qm .rl-qm__title b { font-weight: 800; font-style: italic; letter-spacing: .05em; text-transform: uppercase; }
#rl-qm .rl-qm__mode { min-height: 34px !important; margin: 0 10px 8px !important; padding: 5px 9px !important; border-radius: 6px !important; background: var(--v-panel-2) !important; }
#rl-qm .rl-qm__toggles { margin: 0 10px 8px !important; gap: 3px !important; border: 0 !important; background: transparent !important; }
#rl-qm .rl-qm__tile { min-height: 42px !important; padding: 5px 9px !important; border-radius: 6px !important; border: 1px solid transparent !important; background: var(--v-panel-2) !important; box-shadow: none !important; }
#rl-qm .rl-qm__tile.is-selected { border-color: var(--v-accent) !important; background: rgba(var(--v-accent-rgb), .22) !important; }
#rl-qm .rl-qm__tile-icon { width: 28px !important; height: 28px !important; border-radius: 6px !important; }
#rl-qm .rl-qm__quick { margin: 0 10px 10px !important; gap: 5px !important; }
#rl-qm .rl-qm__foot { padding: 8px 12px 10px !important; font-size: 10.5px !important; }

/* ── Seiteninhalte: alle Seiten im selben kompakten, flachen Aufbau ─────── */
/* Kopfbereiche: kein Hero mehr, nur Titel und Bedienung in einer Zeile */
#app .self-hero, #app .logs-hero, #app .bans-hero, #app .warns-hero, #app .dv-hero, #app .logs-hub-head, #app .ops-heading, #app .sc-weather-heading {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 0 !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
#app .self-hero > img, #app .logs-hero > img, #app .bans-hero > img, #app .warns-hero > img, #app .dv-hero > img, #app .logs-hub-head > img, #app .ops-heading > img, #app .tl-hero-art, #app .ops-art { display: none !important; }
#app .logs-hero h2, #app .bans-hero h2, #app .warns-hero h2, #app .warns-hero-text h2, #app .dv-hero h2, #app .dv-hero h3, #app .logs-hub-head h2, #app .logs-feed-title, #app .ops-heading h2, #app .sc-weather-heading h2, #app .ow-page-head h2, #app .inv-page h2, #page-teamstats h2 {
    margin: 0;
    color: #fff;
    font-size: 17px !important;
    font-weight: 800;
    font-style: italic;
    letter-spacing: .04em !important;
    text-transform: uppercase;
    line-height: 1.2;
}
#app .logs-col-head, #app .logs-col-head h3, #app .env-card-head h3, #app .self-section-head h3, #app .dv-section h3, #app .inv-manage-head h3, #app .ops-overview-main h3, #app .ops-recent h3, #app .tp-manual-head h3, #page-finance h3 {
    color: #fff2ea;
    font-size: 12.5px !important;
    font-weight: 800;
    font-style: italic;
    letter-spacing: .07em !important;
    text-transform: uppercase;
}

/* Alle Flächen flach */
#app .self-section, #app .dv-section, #app .logs-feed-stat, #app .logs-feed-controls, #app .logs-feed-shell, #app .logs-hub-col, #app .bans-stat, #app .warns-stat, #app .ban-card-row, #app .warn-card-row, #app .tp-stat, #app .tp-manual, #app .env-card, #app .panel, #app .ow-context, #app .inv-manage-wrap, #app .inv-manage, #app .inv-empty-state, #app .ops-card, #app .lg-row, #app .logs-date-range, #app .logs-player-popover {
    background: var(--v-panel) !important;
    border: 1px solid var(--v-line) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}
#app .self-tile, #app .dv-tile, #app .tp-card, #app .tp-quick-btn, #app .ow-tool, #app .logs-player-item, #app .inv-pill, #app .logs-player-filter-btn, #app .logs-filter-btn, #app .tp-cat, #app .ban-unban-btn, #app .warn-card-delete, #app .warns-add-btn {
    border-radius: 6px !important;
    border-color: var(--v-line) !important;
    background: var(--v-panel-2) !important;
    box-shadow: none !important;
    transform: none !important;
}
#app .self-tile:hover, #app .dv-tile:hover, #app .tp-card:hover, #app .tp-quick-btn:hover, #app .ow-tool:hover, #app .logs-filter-btn:hover, #app .tp-cat:hover { background: var(--v-panel-3) !important; border-color: var(--v-accent) !important; }
#app .logs-filter-btn.active, #app .tp-cat.active, #app .chips button.active { background: var(--v-accent) !important; border-color: var(--v-accent) !important; color: #fff !important; }
#app .field { box-shadow: none !important; }
#app .btn { box-shadow: none !important; }
#app .ban-card-icon, #app .warn-card-icon, #app .tp-card-icon, #app .tp-quick-icon, #app .dv-tile-icon, #app .lg-av { border-radius: 6px !important; }
#app .ban-id-badge, #app .ban-type-badge { border-radius: 4px !important; background: var(--v-panel-3) !important; box-shadow: none !important; }
.inv-empty-icon { display: none; }

/* Eigene Werkzeuge */
#app .self-layout { display: flex; flex-direction: column; min-height: 0; padding: 0; gap: 0; max-width: none; }
#app .self-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
#app .self-section { padding: 12px 14px !important; margin: 0 !important; }
#app .self-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
#app .self-section-head p { margin: 0; font-size: 10.5px; }
#app .self-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
#app .self-tile { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 5px 10px; text-align: left; }
#app .self-tile-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: var(--v-panel-3); color: var(--v-accent-hi); font-size: 0; }
#app .self-tile-icon .vg-icon { width: 16px; height: 16px; }
#app .self-tile-label { color: #fff2ea; font-size: 11.5px; font-weight: 800; font-style: italic; letter-spacing: .05em; text-transform: uppercase; }
#app .self-tile-sub { color: var(--muted); font-size: 10.5px; }

/* Dev-Tool, Team-Statistik, Teleports: dichter und ohne Bildkopf */
#app .dv-page, #app .tp-layout, #app .bans-layout, #app .warns-layout, #app .logs-hub, #app .inv-page { gap: 10px; }
#app .dv-section { padding: 12px 14px !important; }
#app .dv-section header img, #app .tl-stat-art { width: 28px !important; height: 28px !important; }
#app .dv-tile { min-height: 40px; padding: 6px 10px; }
#app .logs-feed-stat { padding: 7px 12px !important; min-height: 0 !important; }
#app .logs-category-filters { flex-wrap: wrap; overflow: visible; }
#app .logs-feed-shell-head { justify-content: flex-end; min-height: 0; padding-top: 6px; padding-bottom: 6px; }
#app .lg-row { padding: 10px 12px !important; }
#app .lg-head time { color: #e8d4c6; font-size: 11.5px; font-variant-numeric: tabular-nums; }
#app .lg-run { flex: none; padding: 1px 8px; border: 1px solid var(--v-line-2); border-radius: 999px; background: var(--v-panel-3); color: var(--v-accent-hi); font: inherit; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
#app .lg-run:hover { border-color: var(--v-accent-hi); color: #fff; }
#app .sec-line select.field { flex: 0 0 240px; width: 240px; }
#app .lg-art { width: 34px !important; height: 34px !important; }
#app .lg-group img { width: 26px; height: 26px; }
#app .ow-vehicle-visual { background: var(--v-panel-2) !important; border-radius: 6px; }
#app .tn-group img, #app .logs-category-chip img { width: 20px; height: 20px; }
@media (max-width: 1250px) { #app .self-columns { grid-template-columns: minmax(0, 1fr); } }

/* Teleports: Liste statt großer Kacheln mit Farbschein */
#app .tp-card { min-height: 0; padding: 9px 10px; gap: 6px; }
#app .tp-card::before { display: none; }
#app .tp-card-icon { width: 30px; height: 30px; font-size: 0; border: 0; background: var(--v-panel-3); color: var(--v-accent-hi); }
#app .tp-card-icon .vg-icon, #app .tp-quick-icon .vg-icon { width: 16px; height: 16px; }
#app .tp-card-badge { padding: 2px 6px; border-radius: 4px; border: 0; background: var(--v-panel-3); }
#app .tp-stat { padding: 0 10px; height: 32px; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; }

/* Einstellungen und Berechtigungen */
#app .config-hero { margin: 0 0 12px !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
#app .config-hero img { display: none !important; }
#app .config-hero h2 { font-size: 17px !important; font-weight: 800; font-style: italic; letter-spacing: .04em; text-transform: uppercase; }
#page-config [class*="card"], #page-config [class*="panel"], #page-config [class*="section"], #page-permissions [class*="card"], #page-permissions [class*="panel"], #page-permissions [class*="section"], #page-permissions [class*="group"]:not(input) {
    border-radius: 8px !important;
    box-shadow: none !important;
}
#page-config [class*="card"], #page-permissions [class*="card"] { background: var(--v-panel) !important; border-color: var(--v-line) !important; }

/* ── Listenkopf der Hub-Seiten: nur der Titel kursiv, Eingaben normal ───── */
#app .logs-col-head { display: flex; flex-direction: column; align-items: stretch; gap: 8px; font-style: normal; font-weight: 400; letter-spacing: 0; text-transform: none; }
#app .logs-col-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
#app .logs-col-head .field { width: 100%; font-size: 12px; }
#app .logs-col-head .players-count { font-style: normal; }

/* Inventar: Spieler | Inhalt | Verwalten */
#app .inv-stats, #app .veh-stats { display: flex; gap: 6px; margin: 0 0 10px; flex-wrap: wrap; }
#app .inv-stat, #app .veh-stat { display: inline-flex; flex: 0 0 auto; flex-direction: row; align-items: baseline; gap: 6px; min-height: 0; padding: 6px 12px; border: 1px solid var(--v-line); border-radius: 6px; background: var(--v-panel); box-shadow: none; }
#app .inv-stat-num, #app .veh-stat-num { color: #fff; font-size: 16px; font-weight: 800; font-style: italic; }
#app .inv-stat-label, #app .veh-stat-label { color: var(--muted); font-size: 10.5px; }
#app .veh-stat.active { border-color: var(--v-accent); background: rgba(var(--v-accent-rgb), .2); }
#app .inv-hub-grid { display: grid !important; grid-template-columns: 250px minmax(0, 1fr) 300px !important; grid-template-rows: minmax(0, 1fr) !important; gap: 10px; }
#app .inv-col-players { grid-column: 1; grid-row: 1; }
#app .inv-col-main { grid-column: 2; grid-row: 1; }
#app .inv-col-manage { grid-column: 3 !important; grid-row: 1 !important; min-height: 0; overflow-y: auto; }
#app .inv-col-manage .inv-manage { display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 8px; padding: 12px; }
#app .inv-col-manage .inv-manage-wrap { overflow: visible; }
#app .inv-col-manage .inv-action-group { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#app .inv-col-manage .inv-action-btn { width: 100%; }
#app .inv-col-manage .inv-field-label { display: block; color: #baa496; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
#app .inv-col-manage .cat-pick-row { display: flex; gap: 6px; }
#app .inv-col-manage .cat-pick-row .field { flex: 1; min-width: 0; }
#app .cat-open-btn .vg-icon { width: 16px; height: 16px; }
#app .inv-weapon-open { margin: 0; padding: 8px 10px; border-radius: 6px; background: var(--v-panel-2); border-color: var(--v-line-2); }
#app .inv-weapon-open:hover { background: var(--v-panel-3); border-color: var(--v-accent); }
#app .inv-player-banner, #app .veh-player-banner { padding: 8px 12px; border-radius: 6px; background: var(--v-panel-2); border: 1px solid var(--v-line); box-shadow: none; }
#app .inv-player-av, #app .veh-player-av { width: 36px; height: 36px; border-radius: 8px; }
#app .inv-empty-state, #app .veh-empty-state { min-height: 120px; }
.veh-empty-icon { display: none; }

/* Spielergaragen: Liste mit aufklappbaren Details */
#app .veh-hub-grid { grid-template-columns: 250px minmax(0, 1fr) 270px !important; gap: 10px; }
#app .veh-card-grid { display: flex; flex-direction: column; gap: 4px; }
#app .veh-card { display: block; padding: 0; overflow: hidden; border-radius: 6px !important; background: var(--v-panel-2) !important; }
#app .veh-card-status { display: none; }
.veh-row { display: grid; grid-template-columns: 76px minmax(0, 1.6fr) minmax(0, 1.2fr) 80px 66px 92px 16px; align-items: center; gap: 12px; padding: 5px 12px 5px 6px; cursor: pointer; }
.veh-row:hover { background: var(--v-panel-3); }
#app .veh-card-photo { position: relative; display: grid; place-items: center; width: 76px; height: 44px; overflow: hidden; border-radius: 4px; background: var(--v-bg); color: #806756; }
#app .veh-card-photo .vg-icon { width: 20px; height: 20px; }
#app .veh-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--v-bg); }
.veh-row-name { display: flex; flex-direction: column; min-width: 0; }
.veh-row-name strong { overflow: hidden; color: #fff; font-size: 12.5px; letter-spacing: .03em; text-overflow: ellipsis; white-space: nowrap; }
.veh-row-name small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.veh-row-cell { overflow: hidden; color: #e6d5c9; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
#app .veh-row .veh-badge { justify-self: start; border-radius: 4px; font-size: 10px; }
.veh-row-chev { width: 15px; height: 15px; color: var(--muted); }
.veh-card.is-open .veh-row-chev { transform: rotate(180deg); }
.veh-card-more { display: none; padding: 10px 12px 12px; border-top: 1px solid var(--v-line); }
.veh-card.is-open .veh-card-more { display: flex; flex-direction: column; gap: 10px; }
#app .veh-card-sub { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
#app .veh-card-tag { border-radius: 4px; }
.veh-card-tag--vip { background: rgba(var(--v-accent-rgb), .18); color: var(--v-accent-hi); }
#app .veh-trunk { margin: 0; padding: 10px; border-radius: 6px; background: var(--v-panel); box-shadow: none; }
#app .veh-trunk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
#app .veh-trunk-tags { justify-content: flex-start; min-height: 0; padding: 6px 0; }
#app .veh-trunk-empty-label { display: block; text-align: left; }
#app .veh-card-actions { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; background: transparent; }
#app .veh-card-actions .veh-move-garage { flex: 1; min-width: 0; }
#app .veh-card-btns { display: flex; gap: 5px; }
#app .veh-card-btn { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border-radius: 6px; }
#app .veh-btn-icon .vg-icon { width: 14px; height: 14px; }
.veh-vip { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; padding: 7px 12px; border: 1px solid var(--v-line); border-radius: 6px; background: var(--v-panel-2); color: var(--muted); font-size: 11.5px; }
.veh-vip.is-active { border-color: var(--v-accent); background: rgba(var(--v-accent-rgb), .16); color: #ffeee3; }
.veh-vip > strong { color: var(--v-accent-hi); font-style: italic; }
#app .veh-tool-head { display: flex; align-items: center; gap: 7px; }
#app .veh-tool-head .vg-icon { width: 15px; height: 15px; color: var(--v-accent-hi); }
#app .veh-tool { display: inline-flex; align-items: center; gap: 6px; }
#app .veh-tool .vg-icon { width: 14px; height: 14px; }

/* Teleportpunkte: Löschen */
#app .tp-card-top { gap: 6px; }
#app .tp-card-badge { margin-left: auto; }
.tp-card-del { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 4px; color: var(--muted); }
.tp-card-del:hover { background: rgba(248, 113, 113, .2); color: var(--v-red); }
.tp-card-del .vg-icon { width: 13px; height: 13px; }

/* Finanzen und Wirtschaft */
.xf-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.xf-rich { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 2px; border-bottom: 1px solid var(--v-line); font-size: 12px; }
.xf-rich:last-child { border-bottom: 0; }
.xf-rich > strong { color: #fff; font-variant-numeric: tabular-nums; }
.xf-rich-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.xf-rich-main i { display: block; height: 3px; border-radius: 2px; background: var(--v-panel-3); }
.xf-rich-main b { display: block; height: 100%; border-radius: 2px; background: var(--v-accent); }
.xf-flag { padding: 2px 6px; border-radius: 4px; background: rgba(248, 113, 113, .13); color: var(--v-red); font-size: 10px; font-weight: 700; white-space: nowrap; }
.xf-neg { color: var(--v-red); }
.xf-pos { color: var(--v-green); }
.xf-amount { flex: none; width: 104px; font-size: 12px; font-variant-numeric: tabular-nums; }
.xf-tx { max-height: 640px; overflow-y: auto; }
.xf-flush .log-card-row { padding: 8px 2px !important; border: 0 !important; border-bottom: 1px solid var(--v-line) !important; border-radius: 0 !important; background: transparent !important; }
#app .log-card-icon .vg-icon { width: 16px; height: 16px; }
.eco-stands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.eco-stand { display: flex; flex-direction: column; gap: 5px; padding: 8px 10px; border: 1px solid var(--v-line); border-radius: 6px; background: var(--v-panel-2); }
.eco-stand.is-rented { grid-column: 1 / -1; border-color: var(--v-accent); }
.eco-stand header { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; }
.eco-stand-items { display: flex; flex-wrap: wrap; gap: 3px; }
#app .eco-stand .btn { align-self: flex-start; min-height: 28px; padding: 4px 10px; font-size: 10px; }
#page-shoplogs .xp-head .field, #page-economy .xp-head .field { width: 300px; }
@media (max-width: 1400px) {
    #app .veh-hub-grid, #app .inv-hub-grid { grid-template-columns: 210px minmax(0, 1fr) 250px !important; }
    .veh-row { grid-template-columns: 64px minmax(0, 1fr) 92px 16px; }
    .veh-row-cell { display: none; }
}
#app .xp-kpis .dx-kpi strong { font-size: 24px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Icon-Kacheln statt großer 3D-Bilder */
.vg-team-art { width: 76px; height: 76px; right: 14px; bottom: 14px; opacity: 1; }
.dx-attention-art { right: 14px; bottom: 14px; width: 84px; height: 84px; }
.dx-attention > div, .dx-attention > p { max-width: calc(100% - 104px); }
.sanction-art { width: 64px; height: 64px; }
#app .tl-stat-art { border-radius: 6px; }

/* Text-Links als kleine Knöpfe, überall gleich */
#app .vg-text-link {
    display: inline-flex;
    align-items: center;
    flex: none;
    height: 26px;
    padding: 0 10px;
    border: 1px solid var(--v-line-2);
    border-radius: 6px;
    background: var(--v-panel-2);
    color: #f5e8e0;
    font-size: 10.5px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
}
#app .vg-text-link:hover { border-color: var(--v-accent); background: var(--v-accent); color: #fff; text-decoration: none; }
.vg-panel-head { align-items: center; }
.dx-attention { min-height: 170px; }
.dx-attention-art { top: 52px; bottom: auto; }

/* Karten laufen ohne die Panel-Skalierung: Leaflet rechnet mit echten Bildschirmpixeln,
   unter CSS-zoom passen Mausposition und Kartenposition im Spiel-Browser sonst nicht zusammen. */
#app #map-leaflet, #app .ops-map-canvas { zoom: var(--vg-ui-unscale, 1); }
#app .ops-map-canvas { height: calc(350px * var(--vg-ui-scale, 1)); }
#app .alm-label { font-size: calc(11px * var(--vg-ui-scale, 1)); }
#app #map-leaflet .leaflet-control-zoom { zoom: var(--vg-ui-scale, 1); }

/* Verwalten-Spalte: Felder sauber untereinander */
#app .inv-col-manage .inv-manage > * { flex: 0 0 auto !important; align-self: stretch; max-width: none; margin: 0; }
#app .inv-col-manage .field, #app .inv-col-manage #inv-give-search, #app .inv-col-manage #inv-give-count { width: 100%; height: 36px; min-height: 36px; flex: none; }
#app .inv-col-manage .cat-pick-row { align-items: center; }
#app .inv-col-manage .cat-pick-row .field { flex: 1 1 auto; width: auto; }
#app .inv-col-manage .cat-open-btn { flex: none; width: 36px; min-height: 36px; height: 36px; padding: 0; }
#app .inv-col-manage .inv-hint { margin-top: 2px; font-size: 10.5px; color: var(--muted); }

/* Inventar: echte Item-Bilder */
#app .inv-card-icon, #app .inv-picked-icon { display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: var(--v-panel-3); font-size: 0; }
#app .inv-card-icon img, #app .inv-picked-icon img { width: 84%; height: 84%; object-fit: contain; }

/* Fahrzeug ohne Bild: Icon-Kachel statt blasser Fläche */
#app .ow-vehicle-visual { min-height: 0; }
#app .ow-context-empty .ow-vehicle-visual { height: 120px; }
#app .ow-vehicle-visual .ow-visual-fallback { position: static; width: 64px; height: 64px; max-width: none; max-height: none; margin: 0; }
#app .ow-vehicle-visual .ow-visual-real { background: var(--v-panel-2); width: 100%; height: 100%; max-width: 100%; max-height: 100%; }
#app .veh-card-fallback { width: 30px; height: 30px; object-fit: contain; }

/* Dialoge im selben Stil wie das Panel */
#modal .modal-overlay { background: rgba(16, 9, 4, .72); }
#modal .modal-box { padding: 18px 20px; }
#modal .modal-box h3 { font-size: 16px; color: #fff; }
#modal .modal-label { color: #baa496; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
#modal .field, #modal .modal-textarea, #modal select, #modal input { border: 1px solid var(--v-line) !important; border-radius: 6px !important; background: var(--v-bg) !important; box-shadow: none !important; color: #fff2ea; font-size: 12.5px; }
#modal .field:focus, #modal .modal-textarea:focus { border-color: var(--v-accent) !important; outline: 0; }
#modal .btn { min-height: 34px; padding: 7px 14px; border-radius: 6px; box-shadow: none !important; font-size: 11px; font-weight: 800; font-style: italic; letter-spacing: .05em; text-transform: uppercase; }
#modal .btn-primary { background: var(--v-accent) !important; border: 1px solid var(--v-accent) !important; color: #fff !important; }
#modal .btn-primary:hover { background: var(--v-accent-hi) !important; filter: none; }
#modal .btn-ghost { background: var(--v-panel-2) !important; border: 1px solid var(--v-line) !important; color: #ecdbd0; }

#app .ow-vehicle-visual .ow-visual-real, #app .veh-card-img { background: transparent; }


/* ── Auswahlfeld ─────────────────────────────────────────────────────── */
.xs { position: relative; min-width: 0; }
.xs-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--v-line-2); border-radius: 8px; background: var(--v-bg); color: #fff2ea; font: inherit; font-size: 12.5px; cursor: pointer; }
.xs-btn:hover, .xs.is-open .xs-btn { border-color: var(--v-accent); }
.xs-btn .vg-icon { flex: none; width: 14px; height: 14px; color: #baa496; }
.xs-face { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.xs-face span { overflow: hidden; text-overflow: ellipsis; }
.xs-placeholder { color: #baa496; }
.xs-pop { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; right: 0; min-width: 220px; padding: 6px; border: 1px solid var(--v-line-2); border-radius: 10px; background: var(--v-panel-2); box-shadow: 0 12px 28px rgba(0, 0, 0, .5); }
.xs-search { width: 100%; height: 32px; margin-bottom: 6px; }
.xs-list { max-height: 260px; overflow-y: auto; }
.xs-group { padding: 8px 8px 4px; color: #baa496; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.xs-item { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 34px; padding: 4px 8px; border: 0; border-radius: 6px; background: transparent; color: #f5e8e0; font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.xs-item span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.xs-item small { color: #baa496; font-size: 10.5px; }
.xs-item:hover { background: var(--v-panel-3); }
.xs-item.active { background: rgba(var(--v-accent-rgb), .25); color: #fff; }
.xs-more { margin: 0; padding: 8px; color: #baa496; font-size: 11px; text-align: center; }
.xs-blip { flex: none; width: 20px; height: 20px; object-fit: contain; }
.xs-swatch { flex: none; width: 16px; height: 16px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }

/* ── Blip-Dialog ─────────────────────────────────────────────────────── */
.xb-dialog .lg-dialog { width: min(720px, 100%); overflow: visible; }
.xb-dialog .lg-dialog-body { overflow: visible; }
.xb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
.xb-grid .xp-form { gap: 6px; }
.xb-grid .xp-form > .modal-label { margin-top: 6px; }
.xb-grid .seg { display: flex; }
.xb-grid .seg button { flex: 1; height: 32px; }
.xb-grid input[type="range"] { width: 100%; accent-color: var(--v-accent); }
.xb-grid .modal-label b { color: #fff; }
.xb-side { display: flex; flex-direction: column; gap: 6px; }
.xb-preview { position: relative; overflow: hidden; width: 280px; height: 220px; margin-top: 6px; border: 1px solid var(--v-line-2); border-radius: 10px; background: #1a2733; }
.xb-map img { position: absolute; width: 256px; height: 256px; max-width: none; }
.xb-circle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; opacity: .42; }
.xb-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8)); }
.xb-caption { margin: 2px 0 0; color: #baa496; font-size: 11px; line-height: 1.4; }
.xb-tint { display: block; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain; }
.xb-row-icon { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--v-panel-3); }
.xb-dialog .xp-form-foot { margin-top: 14px; }

/* ── Fahrzeuge in Akte und Account ───────────────────────────────────── */
.xv-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--v-line); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.xv-row:last-child { border-bottom: 0; }
.xv-row:hover { background: var(--v-panel-2); }
.xv-row > .vg-icon { flex: none; width: 14px; height: 14px; color: #baa496; }
.xv-photo { position: relative; display: grid; flex: none; place-items: center; width: 92px; height: 52px; overflow: hidden; border-radius: 8px; background: var(--v-panel-3); }
.xv-photo img { width: 30px; height: 30px; object-fit: contain; }
.xv-photo img.xv-real { position: absolute; inset: 0; width: 100%; height: 100%; }
.xv-name { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.xv-name strong { color: #fff; font-size: 13px; }
.xv-name small { color: #baa496; font-size: 11px; }

/* ── Log-Personen mit Discord-Bild, Log-Filter ───────────────────────── */
#app .lg-av { position: relative; overflow: visible; }
#app .lg-av .av-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
#app .lg-av .lg-online { z-index: 2; }
.lg-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; }
.lg-filters .xs { flex: 1 1 220px; max-width: 320px; }
.lg-filters label { display: flex; align-items: center; gap: 6px; color: #baa496; font-size: 11px; font-weight: 600; }
.lg-filters input { width: 140px; height: 36px; }
.lg-filters .btn { height: 36px; }
.logs-feed-control-row .xs { flex: 0 1 200px; min-width: 150px; }
.logs-feed-control-row .xs-pop { min-width: 240px; }

/* ── Statistik und Team-Statistik ────────────────────────────────────── */
#page-stats .xp-grid2, #page-finance .xp-grid2, #page-teamstats .xp-grid2 { margin-bottom: 10px; }
.xp-bars.is-dense { gap: 3px; }
.xp-bars.is-dense .xp-bar b { display: none; }
.xp-bars.is-dense .xp-bar:hover b { display: block; z-index: 2; }
.xp-bars.is-dense .xp-bar small { font-size: 9px; white-space: nowrap; overflow: hidden; }
.dx-kpi strong { font-size: 26px; overflow-wrap: anywhere; }
#page-stats .dx-kpi .vg-sub, #page-finance .dx-kpi .vg-sub, #page-teamstats .dx-kpi .vg-sub { white-space: normal; }
button.ts-row { width: 100%; border: 0; border-bottom: 1px solid var(--v-line); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.ts-row:hover, button.ts-row.is-open { background: var(--v-panel-2); }
.ts-online { display: inline-block; width: 7px; height: 7px; margin-left: 3px; border-radius: 50%; background: var(--v-green); }
.ts-detail { padding: 12px; border-bottom: 1px solid var(--v-line); background: var(--v-panel-2); }
.ts-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.ts-tile { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; background: var(--v-panel-3); }
.ts-tile small { color: #baa496; font-size: 10.5px; }
.ts-tile b { color: #fff; font-size: 14px; }
.ts-detail h4 { margin: 0 0 8px; color: #fff; font-size: 12px; }
.ts-detail .xp-bars { height: 120px; }

/* ── Finanzen ────────────────────────────────────────────────────────── */
.xf-tabs { margin-bottom: 10px; }
.xf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.xf-bar > .field { flex: 1 1 240px; max-width: 420px; height: 36px; }
.xf-bar .xs { flex: 0 0 170px; }
.xf-rich { width: 100%; border-left: 0; border-right: 0; border-top: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
button.xf-rich, button.xp-row, button.xp-tr { cursor: pointer; }
button.xf-rich:hover, button.xp-row:hover, button.xp-tr:hover { background: var(--v-panel-2); }
.xf-flow { grid-template-columns: 52px minmax(0, 1fr) auto; }
.xf-count { color: #baa496; font-size: 10.5px; }
.xf-rich-main b.is-in { background: var(--v-green); }
.xf-rich-main b.is-out { background: var(--v-red); }
.xf-pair { display: flex; flex: 1; align-items: flex-end; justify-content: center; gap: 2px; min-height: 0; }
.xf-pair span { display: block; flex: 1; max-width: 22px; min-height: 2px; border-radius: 3px 3px 0 0; }
.xf-pair span.is-in { background: var(--v-green); }
.xf-pair span.is-out { background: var(--v-red); }
.xf-txrow { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 2px; border-bottom: 1px solid var(--v-line); font-size: 12px; }
.xf-txrow:last-child { border-bottom: 0; }
.xf-txrow > span { display: flex; flex-direction: column; min-width: 0; }
.xf-txrow time { color: #baa496; font-size: 11px; white-space: nowrap; }
.xf-who { max-width: 180px; height: 28px; padding: 0 10px; overflow: hidden; border: 1px solid var(--v-line-2); border-radius: 6px; background: var(--v-panel-2); color: #f5e8e0; font: inherit; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.xf-who:hover { border-color: var(--v-accent); }
button.xp-tr { width: 100%; border-left: 0; border-right: 0; border-top: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
.xf-table .xp-tr { grid-template-columns: minmax(0, 2fr) repeat(5, minmax(0, 1fr)); }
.xa-table .xp-tr { grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .8fr) 90px; }

/* ── Accounts ────────────────────────────────────────────────────────── */
.xa-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.xa-who > span:last-child { min-width: 0; }
.xa-who .vg-initial { position: relative; flex: none; display: grid; place-items: center; width: 34px; height: 34px; overflow: hidden; border-radius: 8px; background: var(--v-panel-3); color: var(--v-accent-hi); font-weight: 700; }
.xa-who .av-img, .xa-head .av-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xa-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.xa-head .player-profile-av { position: relative; display: grid; flex: none; place-items: center; width: 64px; height: 64px; overflow: hidden; border-radius: 12px; background: var(--v-panel-3); color: var(--v-accent-hi); font-size: 24px; font-weight: 800; }
.xa-title { flex: 1; min-width: 0; }
.xa-title h2 { margin: 0; color: #fff; font-size: 22px; }
.xa-title p { margin: 0 0 4px; }
.xa-facts { display: flex; gap: 8px; }
.xa-facts span { display: flex; flex-direction: column; gap: 2px; min-width: 96px; padding: 8px 12px; border-radius: 8px; background: var(--v-panel-2); }
.xa-facts small { color: #baa496; font-size: 10.5px; }
.xa-facts b { color: #fff; font-size: 13px; }
.xa-banned { color: #fca5a5; }
.xa-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.xa-actions .btn, .xa-sub .btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; }
.xa-actions .vg-icon, .xa-sub .vg-icon { width: 14px; height: 14px; }
.xa-sub { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.xa-sub h2 { margin: 0; }
.xa-sub .xp-head-right { margin-left: auto; }
.xa-chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-bottom: 12px; }
.xa-char { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--v-line-2); border-radius: 10px; background: var(--v-panel); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.xa-char:hover { border-color: var(--v-accent); }
.xa-char.active { border-color: var(--v-accent); background: rgba(var(--v-accent-rgb), .14); }
.xa-char-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.xa-char-head strong { color: #fff; font-size: 14px; }
.xa-char-head i { font-style: normal; }
.xa-money { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; column-gap: 8px; }
.xa-money b { grid-row: 1; color: #fff; font-size: 12px; }
.xa-money em { grid-row: 2; color: #baa496; font-size: 10px; font-style: normal; }
.xa-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.xa-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; background: var(--v-panel-2); }
.xa-item .inv-card-icon { flex: none; width: 36px; height: 36px; }
.xa-item > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.xa-item strong { overflow: hidden; color: #fff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

/* ── Spielerliste ────────────────────────────────────────────────────── */
#app .player-item { align-items: center; gap: 10px; padding: 10px; }
#app .player-item-av { width: 40px; height: 40px; }
#app .player-item-body { display: flex; flex-direction: column; gap: 3px; }
.pi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.pi-top strong { min-width: 0; overflow: hidden; color: #fff; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.pi-ping { flex: none; color: var(--v-green); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.pi-ping.is-slow { color: var(--v-amber); }
.pi-ping.is-off { color: #baa496; }
.pi-alias { overflow: hidden; color: #baa496; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.pi-tags { display: flex; gap: 4px; min-width: 0; margin-top: 2px; }
.pi-tags span { flex: 0 1 auto; min-width: 0; padding: 1px 6px; overflow: hidden; border-radius: 5px; background: var(--v-panel-3); color: #e0cfc3; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pi-tags .pi-id { flex: none; color: #fff; }
.pi-tags .pi-rank { flex: none; background: rgba(var(--v-accent-rgb), .28); color: var(--v-accent-hi); }

/* ── Knöpfe, die nur Text waren ──────────────────────────────────────── */
#app .ow-text-button, #app .eco-bids-link, #app .ops-context-link button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: none;
    width: auto;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--v-line-2);
    border-radius: 8px;
    background: var(--v-panel-2);
    color: #f5e8e0;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
#app .ow-text-button:hover, #app .eco-bids-link:hover, #app .ops-context-link button:hover { border-color: var(--v-accent); background: var(--v-accent); color: #fff; }

/* ── Fahrzeugkatalog ─────────────────────────────────────────────────── */
#app .ow-search { height: 40px; padding: 0 12px; border: 1px solid var(--v-line-2); border-radius: 8px; background: var(--v-bg); }
#app .ow-search:focus-within { border-color: var(--v-accent); }
#app .ow-search .vg-icon { color: #baa496; }
#app .ow-search input { height: auto; min-height: 0; padding: 0; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
#app .ow-car { display: flex; flex-direction: column; padding: 0; border: 1px solid var(--v-line); border-radius: 12px; background: var(--v-panel); }
#app .ow-car:hover { border-color: var(--v-accent); background: var(--v-panel-2); }
#app .ow-car .ow-vehicle-visual { border: 0; border-radius: 0; background: var(--v-panel-2); }
#app .ow-car .ow-visual-real, #app .ow-car .ow-vehicle-visual img { background: transparent; }
#app .ow-car-caption { flex: 1; padding: 12px 14px 10px; }
#app .ow-car-caption strong { color: #fff; font-size: 14px; font-weight: 700; }
#app .ow-car-caption small { color: #baa496; font-size: 11px; }
#app .ow-car-select { justify-content: center; width: auto; min-height: 36px; margin: 0 14px 14px; padding: 0 12px; border: 1px solid var(--v-line-2); border-radius: 8px; background: var(--v-panel-3); color: #fff; font-size: 12px; font-weight: 600; }
#app .ow-car:hover .ow-car-select { border-color: var(--v-accent); background: var(--v-accent); }
#app .ow-favorite { right: 8px; top: 8px; padding: 7px; border-radius: 8px; background: rgba(22, 15, 10, .7); color: #e0cfc3; }
#app .ow-favorite.active { background: rgba(var(--v-accent-rgb), .3); color: #fff; }
#app .ow-car-shop { background: rgba(var(--v-accent-rgb), .3); color: var(--v-accent-hi); }

/* ── Spectate ────────────────────────────────────────────────────────── */
#spectate-panel .spectate-card { width: 320px; border: 1px solid var(--v-line-2); border-radius: 14px; background: rgba(26, 18, 12, .94); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); animation: none; }
#spectate-panel.spectate-mouse-on .spectate-card { border-color: var(--v-accent); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
#spectate-panel .spectate-head { align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--v-line); background: none; }
.spectate-avatar { position: relative; display: grid; flex: none; place-items: center; width: 42px; height: 42px; overflow: hidden; border-radius: 10px; background: var(--v-panel-3); color: var(--v-accent-hi); font-size: 16px; font-weight: 800; }
.spectate-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#spectate-panel .spectate-head strong { color: #fff; font-size: 14px; font-weight: 700; }
#spectate-panel .spectate-head small { margin-top: 1px; overflow: hidden; color: #baa496; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
#spectate-panel .spectate-live { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 0; border-radius: 6px; background: rgba(248, 113, 113, .16); color: #fca5a5; font-size: 10px; }
#spectate-panel .spectate-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #f87171; }
#spectate-panel .spectate-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 10px 0; }
#spectate-panel .spectate-nav-btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid var(--v-line); border-radius: 8px; background: var(--v-panel-2); color: #f5e8e0; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .12s, border-color .12s; }
#spectate-panel .spectate-nav-btn .vg-icon { width: 14px; height: 14px; color: var(--v-accent-hi); }
#spectate-panel .spectate-nav-btn .vg-icon.flip { transform: scaleX(-1); }
#spectate-panel .spectate-nav-btn:hover { border-color: var(--v-accent); background: var(--v-panel-3); color: #fff; }
#spectate-panel .spectate-nav-btn:disabled { opacity: .55; cursor: wait; }
#spectate-panel .spectate-body { padding: 10px; }
#spectate-panel #spectate-actions { gap: 6px; }
#spectate-panel .spectate-btn { justify-content: flex-start; gap: 8px; min-height: 38px; padding: 0 10px; border: 1px solid var(--v-line); border-radius: 8px; background: var(--v-panel-2); box-shadow: none; color: #f5e8e0; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; }
#spectate-panel .spectate-btn .vg-icon { flex: none; width: 15px; height: 15px; color: var(--v-accent-hi); }
#spectate-panel .spectate-btn:hover { border-color: var(--v-accent); background: var(--v-panel-3); color: #fff; }
#spectate-panel .spectate-btn.danger { color: #fca5a5; }
#spectate-panel .spectate-btn.danger .vg-icon { color: #f87171; }
#spectate-panel .spectate-btn.danger:hover { border-color: #f87171; background: rgba(239, 68, 68, .14); }
#spectate-panel .spectate-btn.primary { justify-content: center; border-color: var(--v-accent); background: var(--v-accent); color: #fff; }
#spectate-panel .spectate-foot { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-top: 1px solid var(--v-line); background: none; }
#spectate-panel .spectate-stop { min-height: 38px; border: 0; border-radius: 8px; background: #dc2626; box-shadow: none; color: #fff; font-size: 12px; font-weight: 700; }
#spectate-panel .spectate-stop:hover { background: #ef4444; }
#spectate-panel .spectate-hint { display: flex; align-items: center; justify-content: center; gap: 5px; color: #baa496; font-size: 11px; }
#spectate-panel kbd { padding: 1px 6px; border: 1px solid var(--v-line-2); border-radius: 5px; background: var(--v-panel-2); color: #f5e8e0; font: inherit; font-size: 10px; font-weight: 700; }
#spectate-panel .spectate-hint { flex-wrap: wrap; gap: 4px 12px; }
#spectate-panel .spectate-hint span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

#page-finance .dx-kpi strong, #page-stats .dx-kpi strong, #page-teamstats .dx-kpi strong { overflow: visible; font-size: 20px; line-height: 1.2; text-overflow: clip; white-space: nowrap; }
#app .ts-bar i { background: var(--v-accent); }

.pi-top strong { white-space: normal; overflow-wrap: anywhere; }


/* Live-Bildschirm */
.xp-live .lg-dialog { width: min(1120px, 100%); }
.xp-screen video { display: block; width: 100%; border: 1px solid var(--v-line); border-radius: 8px; background: #000; }
.xp-screen video[hidden] { display: none; }
#xp-screen-state { padding: 8px 0 0; font-variant-numeric: tabular-nums; }


/* Auswahlfeld hängt am body */
.xs-native { display: none !important; }
.xs { width: 100%; }
.xs[hidden] { display: none; }
.xs.is-disabled .xs-btn { opacity: .5; cursor: default; }
.xs-btn { height: 38px; padding: 0 12px; border-radius: 10px; background: var(--v-panel-2); font-weight: 600; }
.xs-btn:hover { background: var(--v-panel-3); }
.xs.is-open .xs-btn .vg-icon { transform: rotate(180deg); color: #fff; }
.xs-pop { position: fixed; z-index: 100001; left: 0; top: 0; right: auto; min-width: 0; padding: 6px; border-radius: 12px; background: var(--v-solid); box-shadow: 0 18px 44px rgba(0, 0, 0, .6); color: #f5e8e0; font-family: var(--font), system-ui, sans-serif; }
.xs-search { box-sizing: border-box; width: 100%; height: 34px; margin-bottom: 6px; padding: 0 10px; border: 1px solid var(--v-line-2); border-radius: 8px; outline: 0; background: var(--v-bg); color: #fff; font: inherit; font-size: 12.5px; }
.xs-search:focus { border-color: var(--v-accent); }
.xs-list { max-height: 280px; }
.xs-item { min-height: 36px; padding: 4px 10px; border-radius: 8px; font-weight: 500; }
.xs-item .vg-icon { flex: none; width: 14px; height: 14px; color: var(--v-accent-hi); }
.xs-item.active { background: rgba(var(--v-accent-rgb), .22); }
.xs-list::-webkit-scrollbar { width: 6px; }
.xs-list::-webkit-scrollbar-thumb { border-radius: 3px; background: var(--v-line-2); }
.tn-drop-btn { height: 36px; border: 1px solid var(--v-line-2); border-radius: 10px; background: var(--v-panel-2); box-shadow: none; }
.tn-drop-btn:hover, .tn-drop.is-open .tn-drop-btn { border-color: var(--v-accent); box-shadow: none; }
.tn-drop-menu { border: 1px solid var(--v-line-2); border-radius: 12px; background: var(--v-panel-2); box-shadow: 0 18px 44px rgba(0, 0, 0, .6); }

/* Fahrzeug live */
.tn-car-img { height: 170px; overflow: hidden; background: var(--v-panel-2); }
.tn-car-img img { max-height: 160px; }
.ow-context-image { position: relative; overflow: hidden; }
.car-live { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; cursor: grab; touch-action: none; }
.car-live:active { cursor: grabbing; }
.is-live > .car-live { opacity: 1; }
.is-live::after { content: 'Live · ziehen zum Drehen'; position: absolute; left: 8px; bottom: 8px; z-index: 2; padding: 2px 7px; border-radius: 6px; background: rgba(22, 15, 10, .72); color: #f5e8e0; font-size: 10px; font-weight: 600; pointer-events: none; }
.tn-hint { margin: 8px 0 0; color: #baa496; font-size: 11px; }
.tn-paint h4 .pill { margin-left: 6px; text-transform: none; }


/* Live-Karte: Gebiet und Blips */
.map-area { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; background: rgba(22, 15, 10, .78); }
.map-area button { border: 0 !important; }
.alm-blipwrap { background: none; border: 0; }
.alm-blip { display: block; width: 18px; height: 18px; -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain; }

/* Live-Karte: Spielerliste und Spieler-Panel */
.map-list-item { gap: 10px; }
.map-list-av { position: relative; display: grid; flex: none; place-items: center; width: 34px; height: 34px; overflow: hidden; border-radius: 9px; background: var(--v-panel-3); color: var(--v-accent-hi); font-size: 13px; font-weight: 800; }
.map-list-av .av-img, #app .map-player-av .av-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#app .map-player-panel { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: transparent; }
#app .map-player-head { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; }
#app .map-player-av { position: relative; display: grid; flex: none; place-items: center; width: 48px; height: 48px; overflow: hidden; border: 0; border-radius: 12px; background: var(--v-panel-3); box-shadow: none; color: var(--v-accent-hi); font-size: 18px; font-weight: 800; }
.map-player-who { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; }
.map-player-who h3 { overflow: hidden; margin: 0; color: #fff; font-size: 14px; font-weight: 700; font-style: normal; letter-spacing: 0; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
.map-player-who small { overflow: hidden; color: #baa496; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
#app .map-coords { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; overflow: hidden; border-radius: 10px; background: var(--v-panel-2); }
#app .map-coords > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 7px 8px; border: 0; border-radius: 0; background: none; text-align: left; }
#app .map-coords span { color: #baa496; font-size: 9.5px; letter-spacing: 0; text-transform: none; }
#app .map-coords strong { color: #fff; font-family: inherit; font-size: 12px; font-variant-numeric: tabular-nums; }
#app .map-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.map-act { display: flex; align-items: center; gap: 7px; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--v-line); border-radius: 8px; background: var(--v-panel-2); color: #f5e8e0; font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.map-act span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-act .vg-icon { flex: none; width: 14px; height: 14px; color: var(--v-accent-hi); }
.map-act:hover { border-color: var(--v-accent); background: var(--v-panel-3); color: #fff; }
.map-act.is-primary { border-color: var(--v-accent); background: var(--v-accent); color: #fff; }
.map-act.is-primary .vg-icon { color: #fff; }
.map-act.is-primary:hover { background: var(--v-accent-hi); }

/* Aktivität: Bilder statt Emojis */
#app .activity-icon { display: grid; flex: none; place-items: center; width: 40px; height: 40px; overflow: hidden; border-radius: 10px; background: var(--v-panel-3); font-size: 0; }
#app .activity-icon img { width: 100%; height: 100%; object-fit: contain; }

/* Nutzer in der Seitenleiste */
#app .sidebar > .user-box { align-items: center; gap: 11px; padding: 14px 14px 10px; }
#app .sidebar > .user-box .user-box-av, #app .sidebar > .user-box .member-avatar { flex: none; width: 46px; height: 46px; }
#app .sidebar > .user-box .member-avatar, #app .sidebar > .user-box .topbar-avatar { overflow: hidden; border: 0 !important; border-radius: 12px !important; box-shadow: none !important; }
#app .sidebar > .user-box .member-avatar img, #app .sidebar > .user-box .topbar-avatar img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
#app .sidebar > .user-box .user-box-text { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; text-align: left; }
#app .sidebar > .user-box #meta-name, #app .sidebar > .user-box #meta-name * { display: block; overflow: hidden; max-width: 100%; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
#app .sidebar > .user-box #meta-name { color: #fff; font-size: 14px; font-weight: 700; line-height: 1.2; }
#app .sidebar > .user-box #meta-name small, #app .sidebar > .user-box #meta-name span + span { color: #baa496 !important; font-size: 11px; font-weight: 500; }
#app .sidebar > .user-box .rank { margin-top: 2px; padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, .07); font-size: 10px; font-weight: 700; line-height: 1.5; }

.map-filters button { white-space: nowrap; }



/* Quick-Menü anpassen */
.qm-editor { margin-top: 12px; }
.qm-editor .self-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qm-editor .btn { display: inline-flex; align-items: center; gap: 6px; }
.qm-editor .btn .vg-icon { width: 14px; height: 14px; }
.qm-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 10px 0 14px; }
.qm-opts > div { display: flex; flex-direction: column; gap: 8px; }
.qm-opts input[type="range"], .qm-config input[type="range"] { width: 100%; accent-color: var(--v-accent); }
.qm-opts .modal-label b { color: #fff; }
.qm-opts .seg { display: flex; }
.qm-opts .seg button { flex: 1; height: 32px; }
.qm-title { margin: 0 0 6px; color: #fff; font-size: 12px; }
.qm-row { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 4px 8px; border-radius: 8px; color: #baa496; font-size: 12.5px; }
.qm-row.is-on { background: var(--v-panel-2); color: #fff; margin-bottom: 4px; }
.qm-row-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qm-row-icon { display: grid; flex: none; place-items: center; width: 24px; height: 24px; }
.qm-row-icon .vg-icon { width: 15px; height: 15px; }
.qm-row.is-on .qm-row-icon .vg-icon { color: var(--v-accent-hi); }
.qm-check { display: grid; flex: none; place-items: center; width: 22px; height: 22px; padding: 0; border: 1px solid var(--v-line-2); border-radius: 7px; background: var(--v-bg); color: #fff; cursor: pointer; }
.qm-row.is-on .qm-check { border-color: var(--v-accent); background: var(--v-accent); }
.qm-check .vg-icon { width: 13px; height: 13px; }
.qm-move { display: grid; flex: none; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--v-line); border-radius: 7px; background: var(--v-panel-3); color: #f5e8e0; cursor: pointer; }
.qm-move .vg-icon { width: 14px; height: 14px; transform: rotate(180deg); }
.qm-move.is-down .vg-icon { transform: none; }
.qm-move:hover:not(:disabled) { border-color: var(--v-accent); }
.qm-move:disabled { opacity: .3; cursor: default; }
.qm-config { display: grid; grid-template-columns: minmax(0, 1fr) 220px 56px; align-items: center; gap: 14px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--v-line); border-radius: 10px; background: var(--v-panel-2); }
.qm-config strong { display: block; color: #fff; font-size: 13px; }
.qm-config b { color: #fff; font-size: 12px; text-align: right; }


/* Aussehen */
.look-editor .qm-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 4px; }
.look-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.look-swatch { width: 28px; height: 28px; padding: 0; border: 2px solid rgba(255, 255, 255, .14); border-radius: 8px; cursor: pointer; }
.look-swatch:hover { border-color: rgba(255, 255, 255, .5); }
.look-swatch.active { border-color: #fff; }
.look-swatches input[type="color"] { width: 34px; height: 28px; padding: 1px; border: 1px solid var(--v-line-2); border-radius: 8px; background: var(--v-bg); cursor: pointer; }
#modal .modal-box, .lg-overlay .lg-dialog, .tn-drop-menu { background: var(--v-solid) !important; }


/* txAdmin */
.tx-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tx-events { max-height: 150px; overflow-y: auto; }
#page-txadmin .vg-panel-head .field { width: 240px; height: 32px; margin-left: auto; }
.tx-console { height: 300px; overflow-y: auto; padding: 8px; border-radius: 8px; background: var(--v-solid); font-family: Consolas, ui-monospace, monospace; font-size: 11.5px; line-height: 1.5; }
.tx-line { display: grid; grid-template-columns: 62px 110px minmax(0, 1fr); gap: 8px; }
.tx-line time { color: #baa496; }
.tx-line b { overflow: hidden; color: var(--v-accent-hi); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.tx-line span { color: #f5e8e0; overflow-wrap: anywhere; }
.brand-preview { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--v-panel-3); }

/* Spielerinformationen: Kacheln, Charakterbild klein und scharf statt hochskaliert */
#app .vg-player-info { position: relative; display: block; height: auto; min-height: 0; padding: 14px 16px; overflow: hidden; }
#app .vg-player-info h3 { margin: 0 0 10px; }
#app .vg-player-info .vg-info-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: auto; max-width: none; }
#app .vg-player-info.has-portrait .vg-info-rows { margin-right: 138px; }
#app .vg-player-info .vg-info-row { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 7px 10px; border: 0; border-radius: 8px; background: var(--v-panel-2); }
#app .vg-player-info .vg-info-row span { color: #baa496; font-size: 10.5px; }
#app .vg-player-info .vg-info-row strong { overflow: hidden; color: #fff; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
#app .vg-player-info .vg-char-portrait { position: absolute; top: 14px; right: 16px; bottom: auto; left: auto; width: 124px; height: 124px; border-radius: 14px; background: var(--v-panel-3); opacity: 1; object-fit: cover; object-position: center top; filter: none; transform: none; -webkit-mask-image: none; }
#app .vg-player-info .vg-identifier { margin-top: 8px; }

/* Rückerstatten im Log */
#app .lg-head .lg-refund { margin-left: auto; height: 26px; padding: 0 10px; border-color: rgba(52, 211, 153, .45); color: #b9f5dc; font-size: 11px; }
#app .lg-head .lg-refund:hover { border-color: #34d399; }
#app .lg-head .lg-refund.is-done { opacity: .55; cursor: default; }
#app .lg-head .lg-refund + time { margin-left: 10px; }

.refund-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 260px; margin: 8px 0; overflow-y: auto; }
.refund-item { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 8px; border: 1px solid var(--v-line); border-radius: 8px; background: var(--v-bg); font-size: 12px; }
.refund-item img { flex: none; width: 26px; height: 26px; object-fit: contain; }
.refund-item b { color: #b9f5dc; }
.refund-item span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Inventar leeren */
#app .inv-clear-btn { width: 100%; margin-top: 8px; }
.inv-clear-money { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: #e0cfc3; font-size: 12px; cursor: pointer; }

/* Discord-Deko: Avatar-Dekoration, Namensschild in der Spielerliste, Profil-Banner in den Spielerinformationen */
.av-deco { display: none; }
#app .player-item-av.has-deco, #app .vg-profile .player-profile-av.has-deco, #app .map-player-av.has-deco { overflow: visible; }
#app .player-item-av .av-deco, #app .player-profile-av .av-deco, #app .map-player-av .av-deco {
    position: absolute; z-index: 2; display: block; top: -12%; left: -12%; width: 124%; height: 124%; max-width: none; border-radius: 0; pointer-events: none;
}
#app .player-item.has-nameplate {
    background-image: linear-gradient(90deg, rgba(24, 16, 10, .92) 0%, rgba(24, 16, 10, .7) 45%, rgba(24, 16, 10, .25) 100%), var(--nameplate);
    background-position: center, right center; background-size: cover, cover; background-repeat: no-repeat;
}
/* !important, weil die Grundstile hier background als !important-Kurzform setzen */
#app #player-list .player-item.has-nameplate.active {
    background-image: linear-gradient(90deg, rgba(var(--v-accent-rgb), .38) 0%, rgba(24, 16, 10, .7) 45%, rgba(24, 16, 10, .2) 100%), var(--nameplate) !important;
    background-position: center, right center !important; background-size: cover, cover !important; background-repeat: no-repeat !important;
    box-shadow: inset 3px 0 var(--v-accent);
}
#app .vg-player-info.has-banner {
    background-image: linear-gradient(180deg, rgba(26, 18, 12, .45) 0%, rgba(26, 18, 12, .88) 55%, rgba(26, 18, 12, .96) 100%), var(--banner) !important;
    background-position: center, center top !important; background-size: cover, cover !important; background-repeat: no-repeat !important;
}
/* Eigenes Profil oben links */
#app .sidebar > .user-box .user-box-av { position: relative; }
#app .sidebar > .user-box .user-box-av.has-deco .av-deco {
    position: absolute; z-index: 2; display: block; top: -12%; left: -12%; width: 124%; height: 124%; max-width: none; border-radius: 0; pointer-events: none;
}
#app .sidebar > .user-box.has-plate {
    margin: 8px 10px 4px; padding: 10px 12px; border-radius: 12px;
    background-image: linear-gradient(90deg, rgba(24, 16, 10, .9) 0%, rgba(24, 16, 10, .62) 50%, rgba(24, 16, 10, .2) 100%), var(--plate) !important;
    background-position: center, right center !important; background-size: cover, cover !important; background-repeat: no-repeat !important;
}
#app .sidebar > .user-box.has-plate #meta-name { text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
#app .vg-player-info.has-banner .vg-info-row { background: rgba(24, 16, 10, .55); }
#app .vg-player-info.has-banner h3 { text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }


/* Konsole als eigener Tab */
#page-console .tx-console { height: calc(var(--vg-shell-height, 800px) - 330px); min-height: 260px; }
#page-console .xp-head-right .field { width: 260px; height: 34px; }
.tx-event-panel { margin-top: 10px; }


/* Dashboard: vier Kennzahlen */
.dx-main > .dx-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }


/* Phone */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.ph-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--v-line); border-radius: 12px; background: var(--v-panel); }
.ph-media { position: relative; display: grid; place-items: center; height: 170px; overflow: hidden; background: var(--v-panel-2); }
.ph-media img, .ph-media video { width: 100%; height: 170px; object-fit: cover; }
.ph-open { display: block; width: 100%; cursor: zoom-in; }
.ph-text { display: -webkit-box; overflow: hidden; padding: 14px; color: #f5e8e0; font-size: 13px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 6; }
.ph-kind { position: absolute; left: 8px; top: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(22, 15, 10, .78); color: #f5e8e0; font-size: 10px; font-weight: 700; }
.ph-info { display: flex; flex: 1; flex-direction: column; gap: 2px; padding: 10px; }
.ph-info p { display: -webkit-box; overflow: hidden; margin: 0 0 4px; color: #e0cfc3; font-size: 12px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ph-info strong { overflow: hidden; color: #fff; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ph-actions .map-act { flex: 1 1 auto; justify-content: center; }
.ph-head { margin-bottom: 8px; }
.ph-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; }
.ph-facts span { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 7px 10px; border-radius: 8px; background: var(--v-panel-2); }
.ph-facts small { color: #baa496; font-size: 10.5px; }
.ph-facts b { overflow: hidden; color: #fff; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
#page-phone .xp-pager { align-items: center; }
#page-phone .xp-pager .vg-sub { margin-right: auto; }
#page-phone .chips { margin-bottom: 10px; }


/* Dimensionen */
.dim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 10px; align-items: start; }
.dim-card .vg-panel-head { align-items: flex-start; gap: 10px; }
.dim-card .vg-panel-head h2 { margin: 0; }
.dim-card.is-main { grid-column: 1 / -1; }
.dim-fold svg { transition: transform .18s ease; }
.dim-fold.is-folded svg { transform: rotate(-90deg); }
.dim-card.is-folded .vg-panel-head { margin-bottom: 0; }
.dim-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; margin-left: auto; }
.dim-player .dim-actions .map-act { width: 32px; height: 32px; justify-content: center; padding: 0; }
.dim-player .xa-who { flex: 1; min-width: 0; }
.dim-tag { color: var(--v-amber); }
#page-dims .xp-head-right { display: flex; gap: 6px; }

.xp-row > .dim-actions { flex: none; flex-direction: row; flex-wrap: nowrap; }


/* Dimensionen: Spieler-Knöpfe mit Text, darum eine eigene Zeile unter dem Namen */
.dim-player { flex-wrap: wrap; }
.dim-player .xa-who { flex: 1 1 100%; }
.xp-row > .dim-actions.dim-actions { flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-start; margin-left: 0; }
.dim-player .dim-actions .map-act { width: auto; height: 30px; padding: 0 9px; font-size: 11px; }

.dim-player .xa-who strong, .dim-player .xa-who small { display: block; }


#ph-tab .xp-row { flex-wrap: wrap; }
#ph-tab .xp-row .btn { flex: none; }

.ph-account { border-radius: 8px; cursor: pointer; }
.ph-account:hover, .ph-account.is-open { background: var(--v-panel-2); }
.ph-account .xp-row { padding: 8px; }
.ph-account-feed { padding: 10px 0; }


/* Admin-Chat mit Direktnachrichten und Gruppen */
#ig-chat-panel { flex-direction: row; width: 640px; height: 470px; max-height: calc(var(--vg-shell-height, 800px) - 70px); background: var(--v-solid); border-color: var(--v-line-2); border-radius: 12px; }
#ig-chat-rooms { display: flex; flex: none; flex-direction: column; gap: 2px; width: 190px; padding: 8px; overflow-y: auto; border-right: 1px solid var(--v-line); }
#ig-chat-main, #ig-chat-form { display: flex; flex: 1; flex-direction: column; min-width: 0; }
#ig-chat-main[hidden], #ig-chat-form[hidden] { display: none; }
#ig-chat-form { gap: 8px; padding: 12px; overflow-y: auto; }
#ig-chat-form h4 { margin: 0; color: #fff; font-size: 14px; }
#ig-chat-toggle { position: relative; }
#ig-chat-badge { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--v-red); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; line-height: 16px; text-align: center; }
#ig-chat-badge[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.chat-head .btn { height: 28px; min-height: 0; padding: 0 10px; font-size: 10.5px; }
.chat-room { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; min-height: 36px; padding: 5px 8px; border: 0; border-radius: 8px; background: transparent; color: #f5e8e0; font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.chat-room span { display: flex; flex-direction: column; min-width: 0; }
.chat-room b { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.chat-room small { color: #baa496; font-size: 10px; }
.chat-room i { flex: none; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--v-accent); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; line-height: 18px; text-align: center; }
.chat-room:hover { background: var(--v-panel-3); }
.chat-room.active { background: rgba(var(--v-accent-rgb), .25); color: #fff; }
.chat-rail-head { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 2px 8px; color: #baa496; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.chat-rail-head button { display: grid; width: 22px; height: 22px; place-items: center; padding: 0; border: 1px solid var(--v-line-2); border-radius: 6px; background: var(--v-panel-3); color: #fff; cursor: pointer; }
.chat-rail-head button:hover { border-color: var(--v-accent); }
.chat-rail-head .vg-icon { width: 12px; height: 12px; }
.chat-none { margin: 0; padding: 4px 8px; color: #baa496; font-size: 11px; }
.chat-picks { display: flex; flex: 1; flex-direction: column; gap: 4px; min-height: 0; overflow-y: auto; }
.chat-pick { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border: 1px solid var(--v-line); border-radius: 8px; background: var(--v-panel-2); color: #fff; font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.chat-pick:hover { border-color: var(--v-accent); }
.chat-pick small { color: #baa496; font-size: 10.5px; }
.chat-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.chat-checks.is-scroll { flex: 1; align-content: start; min-height: 60px; overflow-y: auto; }
.chat-check { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 30px; padding: 3px 8px; border-radius: 7px; background: var(--v-panel-2); color: #f5e8e0; font-size: 12px; cursor: pointer; }
.chat-check input { flex: none; accent-color: var(--v-accent); }
.chat-check span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-form-foot { display: flex; justify-content: flex-end; gap: 6px; margin-top: auto; padding-top: 6px; }


/* Strafkatalog */
.pen-row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr auto; align-items: center; gap: 12px; }
.pen-row > span { display: flex; flex-direction: column; min-width: 0; }
.xp-row > .pen-chain { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; }
.pen-chip { padding: 3px 8px; border: 1px solid var(--v-line-2); border-radius: 7px; background: var(--v-panel-3); color: #f5e8e0; font-size: 11.5px; white-space: nowrap; }
.pen-chip b { color: var(--v-accent-hi); }
.pen-arrow { color: #baa496; font-style: normal; }
.pen-form { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pen-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pen-pair span { display: flex; flex-direction: column; gap: 6px; }
.pen-step { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pen-step .field { min-width: 0; }
.pen-step [data-pen-value], .pen-step [data-warn-count], .pen-step [data-warn-hours] { flex: 0 0 70px; width: 70px; }
.pen-step [data-pen-unit], .pen-step [data-warn-unit] { flex: 0 0 50px; font-size: 11px; }
.pen-step .map-act { flex: none; margin-left: auto; }
.pen-step .x-pick, .pen-step select { flex: 1; }
#warn-steps { padding: 2px 0; }

/* Adminjail */
.jail-row { display: grid; grid-template-columns: 1fr 130px auto; align-items: center; gap: 12px; }
.jail-row > span { display: flex; flex-direction: column; min-width: 0; }
.jail-time b { color: var(--v-amber); font-size: 15px; font-variant-numeric: tabular-nums; }
#jail-hud { position: fixed; top: 26px; left: 50%; z-index: 9000; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 360px; padding: 12px 16px 15px 12px; overflow: hidden; border: 1px solid rgba(var(--v-accent-rgb), .4); border-radius: 16px; background: rgba(27, 17, 11, .95); box-shadow: 0 16px 44px rgba(0, 0, 0, .55), 0 0 28px rgba(var(--v-accent-rgb), .22); color: #fff; transform: translateX(-50%); pointer-events: none; }
.jh-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 13px; background: linear-gradient(145deg, var(--v-accent-hi), var(--v-accent)); color: #fff; }
.jh-icon .vg-icon { width: 22px; height: 22px; }
.jh-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jh-text small { color: var(--v-accent-hi); font-size: 11px; font-style: italic; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.jh-text span { overflow: hidden; color: #e6d9d0; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.jh-time { display: flex; flex-direction: column; align-items: flex-end; }
.jh-time b { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.jh-time small { margin-top: 3px; color: #baa496; font-size: 10px; }
.jh-bar { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: rgba(255, 255, 255, .08); }
.jh-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--v-accent), var(--v-accent-hi)); }

/* Entity-Monitor */
.ent-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 12px; }
.ent-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(120px, 1.2fr) auto; align-items: center; gap: 12px; }
.ent-row > span:first-child, .ent-model > span { display: flex; flex-direction: column; min-width: 0; }
.ent-counts { display: flex; flex-wrap: wrap; gap: 4px 10px; color: #ddcdc2; font-size: 11.5px; }
.ent-count b { color: #fff; }
.ent-model { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ent-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.map-filters { right: 12px; flex-wrap: wrap; }
.map-ent-group { display: inline-flex; gap: 6px; }
.ent-popup .leaflet-popup-content-wrapper, .ent-popup .leaflet-popup-tip { background: var(--v-solid); color: #fff; box-shadow: none; border: 1px solid var(--v-line-2); }
.ent-popup .leaflet-popup-content { margin: 10px 12px; }
.ent-pop { display: flex; flex-direction: column; gap: 2px; min-width: 170px; font-size: 12px; }
.ent-pop strong { font-size: 13px; }
.ent-pop span { color: #ddcdc2; }
.ent-pop-actions { display: flex; gap: 6px; margin-top: 8px; }


/* Berechtigungen nach Reitern */
.rg-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 2px 0 10px; }
.rg-search { flex: 1 1 200px; min-width: 160px; margin: 0; }
.rg-tools .xs, .rg-tools select { flex: 0 1 190px; }
.rg-tools .btn { height: 34px; min-height: 0; padding: 0 12px; font-size: 10.5px; }
.rg-dirty { color: var(--v-amber); font-size: 11.5px; font-weight: 600; }
.rg-dirty[hidden] { display: none; }
.rg-group { margin: 14px 0 6px; color: #baa496; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rg-locked { margin: 0 0 8px; padding: 8px 10px; border-radius: 8px; background: rgba(var(--v-accent-rgb), .16); color: #f5e8e0; font-size: 12px; }
.rg-lower-note { margin: 0 0 8px; padding: 8px 10px; border-left: 3px solid var(--v-amber); border-radius: 8px; background: var(--v-panel-2); color: #f5e8e0; font-size: 12px; }
.rg-right.is-foreign { cursor: default; opacity: .6; }
.rg-card { margin-bottom: 6px; border: 1px solid var(--v-line); border-radius: 10px; background: var(--v-panel-2); }
.rg-card.is-off { opacity: .72; }
.rg-head { display: flex; align-items: center; gap: 10px; padding: 7px 10px; }
.rg-title { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; padding: 0; border: 0; background: transparent; color: #fff; font: inherit; text-align: left; cursor: pointer; }
.rg-title:disabled { cursor: default; }
.rg-title > span { display: flex; flex-direction: column; min-width: 0; }
.rg-title strong { font-size: 13px; font-weight: 600; }
.rg-title small { color: #baa496; font-size: 10.5px; }
.rg-title > .vg-icon { flex: none; width: 16px; height: 16px; color: var(--v-accent-hi); }
.rg-chevron { width: 14px; height: 14px; margin-left: auto; color: #baa496; }
.rg-card.is-open .rg-chevron { transform: rotate(180deg); }
.rg-note { margin: 0; padding: 0 10px 8px 56px; color: var(--v-amber); font-size: 11px; }
.rg-rights { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px; padding: 2px 10px 10px; }
.rg-right { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 4px 8px; border-radius: 8px; background: var(--v-panel-3); color: #ddcdc2; font-size: 12px; cursor: pointer; }
.rg-right.is-on { color: #fff; }
.rg-right-text { display: flex; flex-direction: column; min-width: 0; }
.rg-right-text small { color: #baa496; font-size: 10px; }
.rg-right input, .rg-tab-switch input { position: absolute; width: 0; height: 0; opacity: 0; }
.rg-tab-switch { display: inline-flex; cursor: pointer; }
.rg-switch { position: relative; flex: none; width: 30px; height: 18px; border-radius: 9px; background: rgba(255, 255, 255, .16); }
.rg-switch::after { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; content: ''; }
input:checked + .rg-switch { background: var(--v-accent); }
input:checked + .rg-switch::after { left: 14px; }
input:focus-visible + .rg-switch { outline: 2px solid var(--v-accent-hi); outline-offset: 2px; }
input:disabled + .rg-switch { opacity: .5; }


/* Fahrzeug-Löschung */
.sweep-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; margin-bottom: 12px; }
.sweep-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; background: linear-gradient(145deg, var(--v-accent-hi), var(--v-accent)); color: #fff; }
.sweep-icon .vg-icon { width: 22px; height: 22px; }
.sweep-text h2 { margin: 0 0 2px; font-size: 15px; }
.sweep-next { display: flex; flex-direction: column; align-items: flex-end; }
.sweep-next b { color: var(--v-green); font-size: 17px; font-variant-numeric: tabular-nums; }
.sweep-actions { display: flex; gap: 6px; }

/* Monitoring */
.mon-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 12px; align-items: start; }
.mon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.mon-tile { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid var(--v-line); border-radius: 12px; background: var(--v-panel-2); cursor: pointer; }
.mon-tile.is-big { grid-column: 1 / -1; }
.mon-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mon-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #fff; }
.mon-wait .vg-icon { width: 34px; height: 34px; color: var(--v-accent-hi); }
.mon-wait small { color: #baa496; }
.mon-tile.is-live .mon-wait { display: none; }
.mon-name, .mon-stats { position: absolute; bottom: 8px; padding: 3px 8px; border-radius: 7px; background: rgba(18, 12, 8, .8); color: #fff; font-size: 11.5px; font-weight: 600; }
.mon-name { left: 8px; }
.mon-stats { right: 8px; color: #ddcdc2; font-weight: 500; }
.mon-stats:empty { display: none; }
.mon-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.mon-actions .map-act { padding: 5px 7px; background: rgba(18, 12, 8, .8); }
.mon-side { position: sticky; top: 0; }
.mon-list { display: flex; flex-direction: column; gap: 4px; max-height: 620px; margin-top: 8px; overflow-y: auto; }
.mon-player { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px; border: 1px solid var(--v-line); border-radius: 8px; background: var(--v-panel-2); color: #f5e8e0; font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.mon-player small { color: #baa496; }
.mon-player span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mon-player:hover { border-color: var(--v-accent); }
.mon-player.active { border-color: var(--v-accent); background: var(--v-accent); color: #fff; }
.mon-player.active small { color: rgba(255, 255, 255, .75); }

/* Props */
.prop-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; align-items: start; }
.prop-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px; max-height: 560px; margin-top: 8px; overflow-y: auto; }
.prop-model { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 36px; padding: 4px 9px; border: 1px solid var(--v-line); border-radius: 8px; background: var(--v-panel-2); color: #f5e8e0; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.prop-model:hover { border-color: var(--v-accent); }
.prop-model .vg-icon { flex: none; width: 14px; height: 14px; color: var(--v-accent-hi); }
.prop-model span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prop-model small { margin-left: auto; color: #baa496; font-size: 10px; white-space: nowrap; }
.prop-model.is-typed { grid-column: 1 / -1; border-color: var(--v-accent); }
.prop-row { flex-wrap: wrap; justify-content: space-between; }
.prop-row > .dim-actions { flex: 0 1 auto; margin-left: auto; }
.prop-row > span { display: flex; flex-direction: column; min-width: 0; }
#prop-hud { position: fixed; bottom: 28px; left: 50%; z-index: 9000; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; max-width: 900px; padding: 10px 16px; border: 1px solid rgba(var(--v-accent-rgb), .4); border-radius: 14px; background: rgba(27, 17, 11, .95); box-shadow: 0 14px 40px rgba(0, 0, 0, .55); color: #e6d9d0; font-size: 12px; transform: translateX(-50%); pointer-events: none; }
#prop-hud strong { color: #fff; }
#prop-hud kbd { margin-right: 5px; padding: 1px 6px; border: 1px solid var(--v-line-2); border-radius: 5px; background: var(--v-panel-3); color: #fff; font: inherit; font-size: 11px; }

.vs-languages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

/* ── Katalog-Fenster (Fahrzeuge & Items) ─────────────────────────────── */
#cat-picker { background: rgba(14, 8, 4, .78); }
#cat-picker .cat-modal {
    width: min(1040px, 92vw); height: min(700px, 86vh);
    background: var(--v-panel);
    border: 1px solid var(--v-line-2);
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
}
#cat-picker .cat-head {
    gap: 12px; padding: 16px 18px 12px;
    background: transparent; border-bottom: 0;
}
#cat-picker .cat-head-icon {
    flex: none; width: 38px; height: 38px;
    display: grid; place-items: center; border-radius: 8px;
    background: rgba(var(--v-accent-rgb), .16); color: var(--v-accent-hi);
}
#cat-picker .cat-head-icon .vg-icon { width: 20px; height: 20px; }
#cat-picker .cat-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#cat-picker .cat-head-text h3 { font-size: 16px; font-weight: 700; line-height: 1.2; color: var(--text); }
#cat-picker .cat-head-text small { min-height: 15px; font-size: 12px; color: var(--muted); }
#cat-picker .cat-close {
    width: 32px; height: 32px; display: grid; place-items: center;
    background: var(--v-panel-2); border: 1px solid var(--v-line); border-radius: 6px; color: var(--text-soft);
}
#cat-picker .cat-close .vg-icon { width: 15px; height: 15px; }
#cat-picker .cat-close:hover { background: rgba(248, 113, 113, .16); border-color: rgba(248, 113, 113, .5); color: var(--v-red); }
#cat-picker .cat-search-row { position: relative; margin: 0 18px 12px; }
#cat-picker .cat-search-row > .vg-icon {
    position: absolute; left: 12px; top: 50%; width: 16px; height: 16px;
    transform: translateY(-50%); color: var(--muted); pointer-events: none;
}
#cat-picker .cat-search {
    width: 100%; height: 40px; padding: 0 12px 0 36px;
    background: var(--v-bg); border: 1px solid var(--v-line); border-radius: 8px; box-shadow: none;
}
#cat-picker .cat-search:focus { border-color: var(--v-accent); outline: 0; box-shadow: none; }
#cat-picker .cat-grid {
    padding: 2px 18px 18px; gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(164px, 1fr));
    grid-auto-rows: max-content;
    border-top: 1px solid var(--v-line); padding-top: 14px;
}
#cat-picker .cat-grid::-webkit-scrollbar-thumb { background: var(--v-line-2); }
#cat-picker .cat-card {
    align-items: stretch; gap: 0; padding: 0 0 10px; overflow: hidden;
    background: var(--v-panel-2); border: 1px solid var(--v-line); border-radius: 8px;
    box-shadow: none; text-align: left; transition: border-color .12s, background .12s;
}
#cat-picker .cat-card:hover { background: var(--v-panel-3); border-color: var(--v-accent); transform: none; }
#cat-picker .cat-img {
    height: 92px; padding: 8px; margin-bottom: 9px;
    background: var(--v-bg); border-bottom: 1px solid var(--v-line);
}
#cat-picker .cat-img img { max-height: 76px; }
#cat-picker .cat-label { padding: 0 10px; font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--text); }
#cat-picker .cat-sub {
    padding: 3px 10px 0; font-size: 11px; color: var(--muted); background: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal;
}
#cat-picker .cat-more { font-size: 12px; color: var(--muted); }
#cat-picker .cat-empty {
    grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 90px 16px; font-size: 13px; color: var(--muted);
}
#cat-picker .cat-empty .vg-icon { width: 34px; height: 34px; opacity: .45; }

/* ── Support-Fenster ─────────────────────────────────────────────────── */
#report-panel:not(.hidden) { background: rgba(14, 8, 4, .78) !important; }
#report-panel .report-shell.tkm {
    gap: 12px; padding: 16px 18px 18px;
    background: var(--v-panel);
    border: 1px solid var(--v-line-2);
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
}
#report-panel .tkm-head { gap: 12px; align-items: center; }
#report-panel .tkm-head-art {
    flex: none; width: 38px; height: 38px; margin: 0;
    display: grid; place-items: center; border-radius: 8px;
    background: rgba(var(--v-accent-rgb), .16); color: var(--v-accent-hi);
}
#report-panel .tkm-head-art .vg-icon { width: 20px; height: 20px; }
#report-panel .tkm-head-text strong { font-size: 16px; font-weight: 700; letter-spacing: 0; line-height: 1.2; }
#report-panel .report-brand { margin-top: 2px; font-size: 12px; color: var(--muted); }
#report-panel .report-close {
    width: 32px; height: 32px; padding: 0; font-size: 18px;
    background: var(--v-panel-2); border: 1px solid var(--v-line); border-radius: 6px; box-shadow: none; color: var(--text-soft);
}
#report-panel .report-close:hover { background: rgba(248, 113, 113, .16); border-color: rgba(248, 113, 113, .5); color: var(--v-red); }
#report-panel .tkm-h { margin: 0 0 8px; color: var(--muted); font-size: 11px; letter-spacing: .06em; }
#report-panel .tkm-cats { gap: 8px; }
#report-panel .tkm-cat {
    flex-direction: row; align-items: center; gap: 10px; padding: 10px; text-align: left;
    background: var(--v-panel-2); border: 1px solid var(--v-line); border-radius: 8px;
    transition: border-color .12s, background .12s;
}
#report-panel .tkm-cat:hover { background: var(--v-panel-3); border-color: var(--v-accent); transform: none; }
#report-panel .tkm-cat-icon {
    flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px;
    background: rgba(var(--v-accent-rgb), .16); color: var(--v-accent-hi);
}
#report-panel .tkm-cat-icon .vg-icon { width: 18px; height: 18px; }
#report-panel .tkm-cat-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#report-panel .tkm-cat strong { font-size: 13px; font-weight: 600; color: var(--text); }
#report-panel .tkm-cat small, #report-panel .tkm-chosen small, #report-panel .tkm-msg small,
#report-panel .tkm-sys, #report-panel .tkm-hist-meta, #report-panel .tkm-hist-chev { color: var(--muted); }
#report-panel .tkm-chosen { padding: 8px 10px; background: var(--v-panel-2); border: 1px solid var(--v-line); border-radius: 8px; }
#report-panel .tkm-chosen strong { font-size: 13px; font-weight: 600; }
#report-panel .report-label { color: var(--text-soft); font-weight: 500; }
#report-panel .report-field {
    background: var(--v-bg) !important; border: 1px solid var(--v-line) !important;
    border-radius: 8px !important; box-shadow: none; color: var(--text);
}
#report-panel .report-field:focus { border-color: var(--v-accent) !important; box-shadow: none !important; }
#report-panel .tkm-change, #report-panel .tkm-tip, #report-panel .tkm-more {
    background: var(--v-panel-2); border: 1px solid var(--v-line); border-radius: 6px; color: var(--text-soft);
}
#report-panel .tkm-tip:hover, #report-panel .tkm-change:hover, #report-panel .tkm-more:hover { background: var(--v-panel-3); border-color: var(--v-accent); color: var(--text); }
#report-panel .report-btn { border-radius: 8px; box-shadow: none; }
#report-panel .report-btn-primary { background: var(--v-accent); border: 1px solid var(--v-accent); color: #fff; }
#report-panel .report-btn-ghost { background: var(--v-panel-2); border: 1px solid var(--v-line); color: var(--text-soft); }
#report-panel .tkm-ticket, #report-panel .tkm-hist { background: var(--v-panel-2); border: 1px solid var(--v-line); border-radius: 8px; }
#report-panel .tkm-hist.is-open { border-color: var(--v-line-2); }
#report-panel .tkm-hist-row:hover { background: var(--v-panel-3); border-radius: 8px; }
#report-panel .tkm-id { background: rgba(var(--v-accent-rgb), .22); border-radius: 5px; color: var(--v-accent-hi); }
#report-panel .tkm-status, #report-panel .tkm-hist-cat, #report-panel .tkm-count { border-radius: 5px; }
#report-panel .tkm-msg { background: var(--v-panel-3); border: 1px solid var(--v-line); border-radius: 8px; }
#report-panel .tkm-msg.is-mine { background: rgba(var(--v-accent-rgb), .18); border-color: rgba(var(--v-accent-rgb), .4); border-radius: 8px; }
#report-panel .tkm-msg p { color: var(--text); }

/* Die Icon-Bilder sind fest violett, der Filter aus insights.js legt die Akzentfarbe darauf. */
img[src^="img/art-"], img[src^="img/cat-"] { filter: var(--v-art-tint, none); }

/* Listen und Fenster hängen direkt am body und dürfen nie durchklickbar sein. */
.xs-pop, #cat-picker { pointer-events: auto; }
#warn-overlay { pointer-events: none; }

/* ── Ankündigung ─────────────────────────────────────────────────────── */
#announce-overlay { top: 5vh; }
.announce-card {
    position: relative; display: flex; align-items: flex-start; gap: 14px;
    width: min(620px, 92vw); max-width: none; padding: 16px 18px 18px; overflow: hidden;
    background: var(--v-panel); border: 1px solid var(--v-line-2); border-radius: 10px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .55); color: var(--text);
    animation: announce-in .3s cubic-bezier(.16, 1, .3, 1);
}
.announce-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--v-accent); }
.announce-icon {
    flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px;
    background: rgba(var(--v-accent-rgb), .16); color: var(--v-accent-hi);
}
.announce-icon .vg-icon { width: 20px; height: 20px; }
.announce-body { flex: 1; min-width: 0; }
.announce-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.announce-title { min-width: 0; font-size: 15px; font-weight: 700; letter-spacing: 0; line-height: 1.3; overflow-wrap: anywhere; }
.announce-author { flex: none; margin: 0; color: var(--muted); font-size: 11.5px; }
.announce-text { margin: 4px 0 0; color: var(--text-soft); font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.announce-bar { position: absolute; left: 3px; right: 0; bottom: 0; height: 2px; background: var(--v-accent); transform-origin: left; }
@keyframes announce-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ── Erkannte Phone-Apps ─────────────────────────────────────────────── */
.ph-apps-note { margin: 0 0 10px; }
.ph-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.ph-app {
    display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; text-align: left; cursor: pointer;
    background: var(--v-panel-2); border: 1px solid var(--v-line); border-radius: 8px; color: var(--text); font: inherit;
    transition: border-color .12s, background .12s;
}
.ph-app:hover:not(:disabled) { background: var(--v-panel-3); border-color: var(--v-accent); }
.ph-app:disabled { opacity: .55; cursor: default; }
.ph-app strong { overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ph-app small { color: var(--muted); font-size: 11px; }
.ph-app-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ph-app-head strong { font-size: 13px; text-transform: capitalize; }
.ph-table-wrap { overflow-x: auto; border: 1px solid var(--v-line); border-radius: 8px; }
.ph-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ph-table th { padding: 7px 10px; background: var(--v-panel-2); color: var(--muted); font-size: 10.5px; font-weight: 600; text-align: left; text-transform: capitalize; white-space: nowrap; }
.ph-table td { max-width: 260px; padding: 7px 10px; border-top: 1px solid var(--v-line); color: var(--text-soft); overflow-wrap: anywhere; vertical-align: top; }
.ph-table td img { display: block; width: 56px; height: 56px; border-radius: 6px; object-fit: cover; }

/* ── Zeit & Wetter ───────────────────────────────────────────────────── */
#app .sc-heading,#app .sc-weather-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:3px 0 18px;border-bottom:1px solid var(--ow-line)}
#app :is(.sc-heading,.sc-weather-heading) h2{font-size:23px;font-weight:650;letter-spacing:-.025em;margin:0 0 7px}
#app :is(.sc-heading,.sc-weather-heading) p{margin:0;color:var(--ow-muted);font-size:12px;line-height:1.65;max-width:65ch}
#app .sc-status{padding:12px 15px;border-radius:8px;background:rgba(201, 131, 85,.12);color:#ffd5e3;font-size:12px;line-height:1.6}
#app .sc-status[data-ok=true]{background:rgba(69,220,229,.08);color:#c6f6fc}
#app .sc-weather-heading{margin-bottom:22px}
#app .sc-weather-now{display:flex;align-items:center;gap:13px;color:var(--ow-accent);font-size:12px}
#app .sc-weather-now strong{font-size:26px;font-weight:550;font-variant-numeric:tabular-nums}
#app .sc-weather-now span:last-child{color:var(--ow-muted);border-left:1px solid var(--ow-line);padding-left:13px}
#app .sc-weather-editor{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:25px;padding:24px 0;border-top:1px solid var(--ow-line)}
#app .sc-weather-editor>div{display:grid;grid-template-columns:38px 1fr;gap:6px 12px;align-items:center}
#app .sc-weather-editor .vg-icon{grid-row:span 2;color:#ffd0b1;width:27px;height:27px}
#app .sc-weather-editor h3{font-size:17px;margin:0;font-weight:600}
#app .sc-weather-editor p{font-size:12px;color:var(--ow-muted);line-height:1.7;margin:0}
#app #page-environment>.sc-status{margin-bottom:18px}
#app #page-environment .env-card{padding:24px}
#app #page-environment .env-layout{gap:22px}

/* ── Gruppen der Seitenleiste ────────────────────────────────────────── */
#app button.vg-nav-section {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
    background: none; border-left: 0; border-right: 0; border-bottom: 0; font-family: inherit; text-align: left; cursor: pointer;
}
#app button.vg-nav-section:hover { color: var(--text-soft); }
#app button.vg-nav-section .vg-icon { flex: none; width: 13px; height: 13px; opacity: .6; transition: transform .12s; }
#app .nav-group.is-collapsed button.vg-nav-section .vg-icon { transform: rotate(-90deg); }
#app .nav-group.is-collapsed.has-active button.vg-nav-section { color: var(--v-accent-hi); }
#app .nav-group.drop-before { box-shadow: 0 -2px 0 var(--v-accent); }
#app .nav-group.drop-after { box-shadow: 0 2px 0 var(--v-accent); }

.lg-peek-manage { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.lg-peek-manage .field { flex: 1; min-width: 0; height: 36px; margin: 0; }
.lg-peek-manage #lg-peek-count { flex: none; width: 76px; }
.lg-peek-manage .btn { flex: none; width: 36px; height: 36px; padding: 0; }
.lg-peek-item .lg-btn { margin-top: 2px; }

/* ── Security Center ─────────────────────────────────────────────────── */
.sec-split { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 10px; align-items: start; }
.sec-panel { padding: 12px; }
.sec-panel h4 { margin: 0 0 8px; font-size: 12.5px; }
.sec-filter { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.sec-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.sec-row { display: grid; grid-template-columns: 66px minmax(0, 1fr) 104px 38px 100px; gap: 8px; align-items: center; width: 100%; padding: 7px 10px; background: var(--v-panel-2); border: 1px solid var(--v-line); border-radius: 6px; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sec-row:hover { border-color: var(--v-line-2); }
.sec-main, .sec-who { display: flex; flex-direction: column; min-width: 0; }
.sec-main strong, .sec-who strong, .sec-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.sec-hits { color: var(--muted); font-size: 11.5px; text-align: right; }
.sec-time { font-size: 11px; text-align: right; }
.sec-badge { display: inline-block; padding: 2px 6px; border: 1px solid var(--v-line-2); border-radius: 4px; color: var(--muted); font-size: 10.5px; font-weight: 600; text-align: center; }
.sec-critical { background: var(--v-red); border-color: var(--v-red); color: #1a0a0a; }
.sec-high { border-color: var(--v-red); color: var(--v-red); }
.sec-medium { border-color: var(--v-amber); color: var(--v-amber); }
.sec-low { border-color: var(--v-accent-hi); color: var(--v-accent-hi); }
.sec-suspect { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 6px 8px; margin-bottom: 4px; background: var(--v-panel-2); border: 1px solid var(--v-line); border-radius: 6px; color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.sec-suspect:hover { border-color: var(--v-line-2); }
.sec-suspect span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-note { margin: 8px 0 0; font-size: 11px; }
.sec-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.sec-facts div { display: flex; flex-direction: column; min-width: 0; }
.sec-facts strong { overflow-wrap: anywhere; font-size: 12px; }
.sec-pre { max-height: 180px; margin: 0 0 10px; padding: 8px; overflow: auto; background: var(--v-panel-2); border: 1px solid var(--v-line); border-radius: 6px; font-size: 11px; white-space: pre-wrap; }
.sec-actions { margin-top: 8px; flex-wrap: wrap; }
.sec-map { height: 260px; margin: 0 0 10px; overflow: hidden; border: 1px solid var(--v-line); border-radius: 8px; background: #0a1016; }
.sec-map .leaflet-container { background: #0a1016; }
.sec-map-tip { padding: 2px 6px; border: 1px solid var(--v-line-2); border-radius: 5px; background: rgba(26, 18, 12, .92); box-shadow: none; color: #fff; font-size: 11px; font-weight: 600; }
.sec-map-tip::before { display: none; }
.sec-raw { margin: 0 0 10px; }
.sec-raw summary { margin-bottom: 6px; color: #baa496; font-size: 11px; cursor: pointer; }
.sec-side h4 + small, .sec-side .sec-igns + small { display: block; margin-top: 6px; }
.sec-igns { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 2px; }
.sec-ign { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border: 1px solid var(--v-line); border-radius: 6px; background: var(--v-panel-2); color: #f5e8e0; font-size: 11px; }
.sec-ign.base { color: #baa496; }
.sec-ign button { display: inline-grid; place-items: center; width: 14px; height: 14px; padding: 0; border: 0; background: none; color: #baa496; cursor: pointer; }
.sec-ign button:hover { color: #f87171; }
.sec-ign .vg-icon { width: 11px; height: 11px; }
.sec-line { display: flex; justify-content: space-between; gap: 10px; padding: 5px 8px; background: var(--v-panel-2); border-radius: 6px; font-size: 12px; }
.sec-export { width: 100%; height: 320px; font-family: monospace; font-size: 11px; resize: none; }
.sec-coverage { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.sec-coverage strong { display: block; margin-bottom: 4px; font-size: 12.5px; }
.sec-coverage p { margin: 0; font-size: 11.5px; }
@media (max-width: 1100px) { .sec-split { grid-template-columns: minmax(0, 1fr); } }
#page-security .xp-pager { align-items: center; }
#page-security .xp-pager .vg-sub { margin-right: auto; }
#page-security .chips { margin-bottom: 10px; }

/* Adminsuit und Nametag pro Rang */
.tsy-list { display: flex; flex-direction: column; gap: 8px; }
.tsy-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 10px 12px; border: 1px solid var(--v-line); border-radius: 10px; background: var(--v-panel-2); }
.tsy-name { display: flex; flex: 1 1 120px; align-items: center; gap: 8px; min-width: 0; }
.tsy-name strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tsy-name .lg-swatch { margin-left: 0; }
.tsy-color, .tsy-sex { display: flex; flex: 1 1 120px; flex-direction: column; gap: 4px; min-width: 0; }
.rw-now { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 10px; padding: 10px 12px; border: 1px solid var(--v-line); border-radius: 10px; background: var(--v-panel-2); }
.rw-now strong { overflow: hidden; color: #fff; white-space: nowrap; text-overflow: ellipsis; }
.rw-now span { color: var(--v-green); font-weight: 700; }
.rw-card #rw-q { flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--v-line); border-radius: 8px; background: var(--v-bg); color: #fff2ea; font-size: 13px; outline: 0; }
.rw-card #rw-q:focus { border-color: var(--v-accent); }
.rw-results { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.rw-place { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--v-line); border-radius: 8px; background: var(--v-bg); color: #fff2ea; font-size: 12px; text-align: left; cursor: pointer; }
.rw-place:hover { border-color: var(--v-accent); }
.rw-place span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rw-place svg, .rw-place img { flex: none; width: 14px; height: 14px; }
.rw-credit { display: block; margin-top: 10px; color: var(--muted); font-size: 10.5px; }
.tsy-label, .tsy-font { display: flex; flex: 1 1 180px; flex-direction: column; gap: 4px; min-width: 0; }
.tsy-label .look-swatches { flex-wrap: nowrap; }
.tsy-label .field, .tsy-font .field { width: 100%; min-width: 0; height: 30px; padding: 4px 8px; font-size: 12px; }
.tsy-label small { color: var(--muted); font-weight: 600; letter-spacing: 0; text-transform: none; }
.tsy-preview { overflow: hidden; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .35); font-size: 15px; text-align: center; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 0 2px #000, 0 0 2px #000; }
.tsy-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.tsy-actions .map-act { flex: none; height: 30px; }
.tsy-own { color: var(--v-green); }

/* Teamliste aus Discord: wer nicht auf dem Server ist, steht blasser */
.perm-team-list .dash-member.is-offline { opacity: .55; }

/* Flüssiges Scrollen: Die großen Scroll-Bereiche bekommen eine eigene Ebene. Ohne sie malt Chromium bei jedem
   Scroll-Schritt den Bereich samt durchscheinendem Verlaufshintergrund neu, das ruckelt in der NUI. */
#app .content, #app .page, #app .players-main, #app .players-list, #app .tickets-list, #app .dash-panel-body,
#app .sidebar-nav, #app .tp-layout, #app .inv-col-manage, #app .xf-tx, #app .mon-list, #app .prop-results {
    will-change: transform;
    overscroll-behavior: contain;
}
/* Lange Log-Listen: Karten außerhalb des Sichtbereichs werden erst beim Hinscrollen gezeichnet */
@supports (content-visibility: auto) {
    #app .log-card-row { content-visibility: auto; contain-intrinsic-size: auto 92px; }
}
/* Einreise: das Tablet kommt aus dem Addon vs_migration, hier nur der Platzhalter des Reiters */
.imm-placeholder { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 60px 0; color: var(--muted); }
.imm-placeholder > .vg-icon { width: 40px; height: 40px; }
