/* Team-Portal · eigener, moderner Stil (bewusst nicht der Spiel-Stil aus sz_ui, siehe README „Design“).
   Hell als Standard, dunkel automatisch über die Systemeinstellung. */

:root {
    --bg: #f5f5f7;
    --card: #ffffff;
    --fill: rgba(118, 118, 128, 0.12);       /* Eingabefelder, Tags */
    --fill-hover: rgba(118, 118, 128, 0.18);
    --hover: rgba(0, 0, 0, 0.035);
    --line: rgba(0, 0, 0, 0.08);
    --text: #1d1d1f;
    --text-2: #6e6e73;
    --text-3: #a1a1a6;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --accent-soft: rgba(0, 113, 227, 0.1);
    --ok: #248a3d;
    --series-2: #af52de;
    --warn: #b25000;
    --warn-soft: rgba(255, 149, 0, 0.14);
    --error: #d70015;
    --error-soft: rgba(255, 59, 48, 0.1);
    --nav: rgba(251, 251, 253, 0.8);
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.18);
    --scrim: rgba(0, 0, 0, 0.18);
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', system-ui, sans-serif;
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000000;
        --card: #1c1c1e;
        --fill: rgba(118, 118, 128, 0.24);
        --fill-hover: rgba(118, 118, 128, 0.32);
        --hover: rgba(255, 255, 255, 0.04);
        --line: rgba(255, 255, 255, 0.1);
        --text: #f5f5f7;
        --text-2: #a1a1a6;
        --text-3: #6e6e73;
        --accent: #2997ff;
        --accent-hover: #47a6ff;
        --accent-soft: rgba(41, 151, 255, 0.16);
        --ok: #30d158;
        --series-2: #bf5af2;
        --warn: #ffb340;
        --warn-soft: rgba(255, 159, 10, 0.16);
        --error: #ff6961;
        --error-soft: rgba(255, 69, 58, 0.16);
        --nav: rgba(22, 22, 23, 0.8);
        --shadow: none;
        --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.6);
        --scrim: rgba(0, 0, 0, 0.5);
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }
html, body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.47;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: var(--accent); text-decoration: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--text-3); }
.strong { font-weight: 600; }
.warn-text { color: var(--warn); }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; border-radius: 8px; }
.icon { width: 18px; height: 18px; flex: none; stroke-width: 1.8; }

/* ---------- Knöpfe, Felder ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 20px; border: 0; border-radius: 980px;
    background: var(--fill); color: var(--text); font-weight: 500; cursor: pointer;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--fill-hover); }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--large { height: 48px; padding: 0 28px; font-size: 17px; }
.link { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font-size: 14px; }
.link:hover { text-decoration: underline; }
.icon-btn {
    display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%;
    background: var(--fill); color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { background: var(--fill-hover); color: var(--text); }
.input, .select {
    height: 36px; padding: 0 14px; border: 0; border-radius: 10px;
    background: var(--fill); color: var(--text); font-size: 14px;
    transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.input::placeholder { color: var(--text-2); }
.input:focus, .select:focus { outline: none; box-shadow: 0 0 0 3px var(--accent-soft), inset 0 0 0 1px var(--accent); }
.select {
    appearance: none; padding-right: 32px; cursor: pointer; max-width: 220px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
.select:hover, .input:hover { background-color: var(--fill-hover); }
.alert { padding: 12px 16px; border-radius: 12px; font-size: 14px; }
.alert--error { background: var(--error-soft); color: var(--error); }
.alert--warning { background: var(--warn-soft); color: var(--warn); }
.card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); }

/* Schalter */
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track { position: relative; width: 36px; height: 22px; border-radius: 11px; background: var(--fill-hover); transition: background 0.2s var(--ease); }
.switch__track::after {
    content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s var(--ease);
}
.switch input:checked + .switch__track { background: #34c759; }
.switch input:checked + .switch__track::after { transform: translateX(14px); }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Anmeldung ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.login__box { max-width: 560px; display: grid; justify-items: center; gap: 20px; }
.login__eyebrow { margin: 0; color: var(--text-2); font-size: 17px; font-weight: 600; }
.login__title { margin: 0; font-size: clamp(40px, 7vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; }
.login__text { margin: 0; max-width: 440px; color: var(--text-2); font-size: 19px; line-height: 1.42; }
.login .alert { width: 100%; }
.login .btn { margin-top: 8px; }
.login__hint { margin: 0; color: var(--text-3); font-size: 12px; }

/* ---------- Navigation ---------- */
.nav {
    position: sticky; top: 0; z-index: 30;
    background: var(--nav);
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
}
.nav__inner { max-width: 1400px; margin: 0 auto; height: 52px; padding: 0 24px; display: flex; align-items: center; gap: 32px; font-size: 13px; }
.nav__brand { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 24px; }
.nav__link { color: var(--text-2); transition: color 0.2s var(--ease); }
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); font-weight: 600; }
.nav__link.is-disabled { color: var(--text-3); cursor: default; }
.nav__user { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top__avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--text-2); }
.top__avatar .icon { width: 14px; height: 14px; }
.top__who { display: grid; line-height: 1.2; }
.top__who small { color: var(--text-2); font-size: 11px; }
.nav__logout { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font-size: 13px; }
.nav__logout:hover { text-decoration: underline; }

/* ---------- Seite ---------- */
.page { max-width: 1400px; margin: 0 auto; padding: 56px 24px 80px; display: grid; gap: 24px; }
.hero { margin-bottom: 8px; }
.hero__title { margin: 0; font-size: clamp(40px, 5vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; }
.hero__lead { margin: 8px 0 0; font-size: clamp(19px, 2.2vw, 24px); font-weight: 500; color: var(--text-2); letter-spacing: -0.02em; }
.hero__meta { margin: 12px 0 0; font-size: 13px; color: var(--text-3); }

/* Gruppen */
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.group {
    display: grid; gap: 2px; text-align: left; padding: 18px 20px; border: 0; border-radius: 18px;
    background: var(--card); box-shadow: var(--shadow); cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.group:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08); }
.group.is-active { box-shadow: inset 0 0 0 2px var(--accent); }
.group__count { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.group__label { color: var(--text-2); font-size: 13px; }
.group--warn .group__count { color: var(--warn); }

/* Filterleiste */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 8px; }
.toolbar__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.search { position: relative; flex: 0 1 300px; }
.search .input { width: 100%; padding-left: 36px; }
.search__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); display: flex; color: var(--text-2); pointer-events: none; }
.search__icon .icon { width: 16px; height: 16px; }
.toolbar__count { margin-left: auto; display: flex; align-items: center; gap: 16px; color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.toolbar__count .link { font-size: 13px; }

/* Tabelle */
.table-wrap { overflow: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
    position: sticky; top: 0; z-index: 1; background: var(--card);
    text-align: left; font-size: 12px; font-weight: 500; color: var(--text-2);
    padding: 14px 12px 10px; white-space: nowrap; border-bottom: 1px solid var(--line);
}
.table th:first-child, .table td:first-child { padding-left: 20px; }
.table th:last-child, .table td:last-child { padding-right: 20px; }
.table th[data-sort] { cursor: pointer; user-select: none; }
.table th[data-sort]:hover, .table th.is-sorted { color: var(--text); }
.sort-icon { width: 12px; height: 12px; vertical-align: -1px; margin-left: 3px; color: var(--accent); stroke-width: 2.5; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { cursor: pointer; transition: background 0.15s var(--ease); }
.table tbody tr:hover { background: var(--hover); }
.table tbody tr.is-open { background: var(--accent-soft); }
.table tbody tr:last-child td { border-bottom: 0; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.col-photo { width: 92px; }
.name { font-weight: 600; letter-spacing: -0.015em; }
.model { color: var(--text-2); font-size: 12px; }
.thumb { display: block; width: 72px; height: 40px; object-fit: cover; border-radius: 8px; background: var(--fill); }
.thumb--empty { display: grid; place-items: center; color: var(--text-3); }
.thumb--empty .icon { width: 16px; height: 16px; }
.uses { display: flex; flex-wrap: wrap; gap: 4px; }
.warn-count { display: inline-flex; align-items: center; gap: 4px; color: var(--warn); font-weight: 600; }
.warn-count .icon { width: 15px; height: 15px; }
.empty { padding: 64px; text-align: center; color: var(--text-2); }

/* Tags */
.tag {
    display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 980px;
    background: var(--fill); color: var(--text); font-size: 12px; font-weight: 500; white-space: nowrap;
}
.tag--strong { background: var(--accent-soft); color: var(--accent); }
.tag--warn { background: var(--warn-soft); color: var(--warn); }
.tag--quiet { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); }

/* Änderungen und Einordnen */
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pending { border: 0; background: var(--fill); color: var(--text-2); height: 26px; padding: 0 12px; border-radius: 980px; font-size: 12px; cursor: pointer; }
.pending:hover { background: var(--fill-hover); }
.pending.is-waiting { background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.tag--ok { background: rgba(52, 199, 89, 0.14); color: #248a3d; }
.alert--info { background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.assign { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.assign__field { display: grid; gap: 6px; font-size: 12px; color: var(--text-2); }
.assign__field .input, .assign__field .select { width: 100%; max-width: none; height: 40px; font-size: 15px; }
.assign__field--wide { grid-column: 1 / -1; }
.assign__actions { display: flex; align-items: center; gap: 12px; }
.form-note { margin: 0; font-size: 12px; color: var(--text-2); }
.form-msg { font-size: 13px; color: var(--text-2); }
.form-msg.is-ok { color: #248a3d; }
.form-msg.is-error { color: var(--error); }
.btn:disabled { opacity: 0.5; cursor: default; }
.changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.change { padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.change__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 2px; }
.change .link { font-weight: 600; font-size: 15px; color: var(--text); }
@media (prefers-color-scheme: dark) { .tag--ok, .form-msg.is-ok { color: #30d158; } }

/* Detailansicht */
.scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); animation: fade 0.25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.drawer {
    position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 50;
    width: min(460px, calc(100vw - 24px)); overflow-y: auto; padding: 24px;
    background: var(--card); border-radius: 22px; box-shadow: var(--shadow-lg);
    transform: translateX(calc(100% + 24px)); visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform 0.35s var(--ease); }
.drawer__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.drawer__title { margin: 0; font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.drawer__model { display: flex; align-items: center; gap: 12px; margin-top: 6px; color: var(--text-2); font-size: 14px; }
.drawer__model code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; }
.drawer__photo { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--fill); }
.drawer__photo--empty { display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--text-3); font-size: 13px; }
.drawer__photo--empty .icon { width: 28px; height: 28px; stroke-width: 1.5; }
.drawer__alert { margin-top: 16px; }
.drawer__alert ul { margin: 0; padding-left: 18px; }
.drawer__section { margin: 28px 0 10px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.kv { display: grid; grid-template-columns: 130px 1fr; margin: 0; font-size: 14px; background: var(--bg); border-radius: 12px; overflow: hidden; }
.kv dt, .kv dd { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }

@media (max-width: 900px) {
    .nav__inner { gap: 16px; padding: 0 16px; }
    .top__who { display: none; }
    .page { padding: 32px 16px 64px; }
    .search { flex-basis: 100%; }
    .toolbar__count { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Gruppen als schmale Reiterleiste (ersetzt die großen Kacheln) */
.groups { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--fill); border-radius: 12px; width: fit-content; max-width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.chip:hover { color: var(--text); }
.chip.is-active { background: var(--card); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.chip__n { font-variant-numeric: tabular-nums; color: var(--text-3); font-weight: 600; }
.chip.is-active .chip__n { color: var(--accent); }
.chip--warn .chip__n { color: var(--warn); }
.page { gap: 20px; }

/* Größere Fahrzeugbilder */
.col-photo { width: 196px; }
.thumb { width: 176px; height: 99px; border-radius: 10px; object-fit: cover; }
.thumb--empty .icon { width: 24px; height: 24px; }
.table td { padding-top: 8px; padding-bottom: 8px; }
.name { font-size: 15px; }
@media (prefers-color-scheme: dark) { .chip.is-active { background: #3a3a3c; } }
.photo-note { margin-top: 8px; }

/* Klasse nur anzeigen, Entfernen */
.readonly { height: 40px; display: flex; align-items: center; padding: 0 14px; border-radius: 10px; background: var(--fill); color: var(--text); font-size: 15px; }
.removes { display: grid; gap: 8px; }
.remove { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.remove__title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.btn--small { height: 32px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
.btn--danger { background: var(--error-soft); color: var(--error); }
.btn--danger:hover { background: var(--error); color: #fff; }

/* Eigenes Bild hochladen */
.photo-upload { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.photo-upload label.btn { cursor: pointer; }

/* Mehrfachauswahl, Preise, Abgleich */
.col-check { width: 36px; }
.col-check input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.bulk { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 35; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-lg); font-size: 14px; }
.bulk .select { height: 34px; }
.price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.input--small { width: 96px; height: 32px; padding: 0 10px; }
.sync-text { width: 100%; margin: 8px 0; padding: 10px; border: 0; border-radius: 10px; background: var(--bg); color: var(--text); font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace; resize: vertical; }
.change__undo { font-size: 13px; margin-top: 4px; }

/* Battle Pass */
.bp-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding: 20px; }
.bp-settings__title, .bp-settings__hint, .bp-settings__grid { grid-column: 1 / -1; margin: 0; }
.bp-settings__title { font-size: 17px; font-weight: 600; }
.bp-settings__hint { color: var(--text-2, inherit); font-size: 13px; }
.bp-settings__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.bp-table td { vertical-align: top; }
.bp-reward { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.bp-field { display: grid; gap: 4px; font-size: 11px; color: var(--text-2); }
.bp-field .select, .bp-field .input { height: 34px; font-size: 13px; max-width: 220px; }
.table-wrap:has(.bp-table) { max-height: none; }
.bp-tasks { overflow-x: auto; }
.bp-tasks .input { min-width: 0; }

/* Aufgaben-Seite */
.tasks-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tasks-toolbar .search { flex: 1 1 220px; }
.tasks-table td:first-child { min-width: 260px; }
.tasks-table .select { min-width: 120px; }
.tasks-table tbody tr { cursor: default; }
.empty { padding: 20px; color: var(--text-2); margin: 0; }

/* Status-Seite */
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.st-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.st-card__title { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-2); }
.st-hint { margin: 0; font-size: 13px; color: var(--text-2); }
.st-list { margin: 0; display: grid; gap: 8px; }
.st-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.st-row dt { color: var(--text-2); }
.st-row dd { margin: 0; text-align: right; }
.is-ok { color: var(--ok); }
.is-warn { color: var(--warn); }
.is-error { color: var(--error); }
.st-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; background: var(--text-3); flex: none; }
.st-dot--ok { background: var(--ok); }
.st-dot--warn { background: var(--warn); }
.st-dot--error { background: var(--error); }
.st-problems { padding: 16px 20px; display: grid; gap: 8px; }
.st-problem { margin: 0; display: flex; align-items: center; font-size: 14px; }
.st-problem--error { color: var(--error); font-weight: 600; }
.st-services, .st-players, .st-events, .st-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.st-service, .st-players li { display: flex; align-items: center; gap: 4px; }
.st-service__state { margin-left: auto; color: var(--text-2); font-size: 13px; }
.st-log li { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.st-log code, .st-events code { font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; white-space: pre-wrap; }
.st-empty { color: var(--text-2); }

.st-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.st-kpi { padding: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.st-kpi__label { font-size: 12px; color: var(--text-2); }
.st-kpi__value { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
.st-kpi__sub { font-size: 12px; color: var(--text-2); min-height: 1em; }
.st-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.st-section { margin: 0; font-size: 22px; font-weight: 700; }
.st-card__sub { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--text-2); }
.st-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.st-chart { padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.st-chart__body { position: relative; }
.st-chart__svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.st-chart__empty { margin: 0; padding: 40px 0; text-align: center; font-size: 13px; }
.st-chart__legend { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--text-2); }
.st-legend strong { color: var(--text); font-variant-numeric: tabular-nums; }
.st-legend--note { color: var(--text-3); }
.st-grid-line { stroke: var(--line); stroke-width: 1; }
.st-axis { font-size: 11px; fill: var(--text-3); font-variant-numeric: tabular-nums; }
.st-line { fill: none; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.st-line--0 { stroke: var(--accent); }
.st-line--1 { stroke: var(--series-2); }
.st-area { fill: var(--accent); opacity: 0.1; stroke: none; }
.st-boot { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 3; }
.st-cursor { stroke: var(--text-2); stroke-width: 1; }
.st-swatch { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.st-swatch--0 { background: var(--accent); }
.st-swatch--1 { background: var(--series-2); }
.st-tip { position: absolute; top: 4px; width: 150px; padding: 8px 10px; border-radius: 8px; background: var(--card); box-shadow: 0 4px 16px rgba(0,0,0,.18); font-size: 12px; display: grid; gap: 2px; pointer-events: none; }
.st-crash { overflow-wrap: anywhere; font-size: 13px; }

.st-act-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.st-act { display: flex; flex-direction: column; gap: 10px; }
.st-act .btn { align-self: flex-start; }
.st-textarea { height: auto; min-height: 72px; padding-top: 8px; resize: vertical; font: inherit; }
.st-pending { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); font-size: 14px; }
.st-pending .btn { margin-left: auto; }
.st-btn-danger { background: var(--error); color: #fff; border-color: transparent; }

/* Wirtschaft */
.st-bar--in { fill: var(--ok); opacity: 0.85; }
.st-bar--out { fill: var(--error); opacity: 0.75; }
.st-swatch--in { background: var(--ok); }
.st-swatch--out { background: var(--error); }
/* Spieler */
#list tr { cursor: pointer; }
#detail { display: flex; flex-direction: column; gap: 16px; }
.tag--error { background: var(--error-soft); color: var(--error); }
.st-row dd { min-width: 0; overflow-wrap: anywhere; }
.st-row dt { flex: none; }
