/* Adminpanel – vollflächig, ruhige Hierarchie. Kein filter/backdrop-filter (CEF malt damit schwarze Rechtecke). */
::-webkit-scrollbar { width: .45em; height: .45em; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 1em; }
.hidden { display: none !important; }

#app { position: fixed; inset: 0; display: grid; grid-template-columns: 17.5em minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); font-size: var(--fs); color: var(--text);
    background: radial-gradient(90% 60% at 100% 0%, rgba(var(--accent-rgb), .07), transparent 60%), #0a0d13; }
#app:not(.hidden) { animation: rl-in calc(.25s * var(--anim)) var(--ease) both; }

/* ---------- Navigation ---------- */
.rail { display: flex; flex-direction: column; gap: 1.2em; padding: 1.6em 1em 1.2em; background: #0c1018; border-right: 1px solid var(--line); min-height: 0; }
.brand { display: flex; align-items: center; gap: .8em; padding: 0 .4em; }
.logo { width: 2.6em; height: 2.6em; border-radius: .8em; display: grid; place-items: center; font-weight: 900; background: linear-gradient(135deg, var(--accent), #1f6fd1); color: #04121f; flex: none; }
.brand-t b { display: block; font-size: 1.05em; }
.brand-t small { color: var(--accent); font-size: .82em; }
.navsearch { display: flex; align-items: center; gap: .5em; padding: .6em .8em; border-radius: .7em; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.navsearch svg { width: 1.1em; height: 1.1em; color: var(--muted); flex: none; }
.navsearch input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); }
.navsearch kbd { font-size: .7em; color: var(--muted); border: 1px solid var(--line); border-radius: .3em; padding: .1em .35em; white-space: nowrap; }
nav { flex: 1; overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: .1em; margin: 0 -.3em; padding: 0 .3em; }
.ngroup { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .72em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    padding: 1.4em .7em .5em; cursor: pointer; user-select: none; }
.ngroup:hover { color: var(--text); }
.ngroup i { font-style: normal; transition: transform .15s; }
.ngroup.closed i { transform: rotate(-90deg); }
.nitem { display: flex; align-items: center; gap: .7em; padding: .58em .7em; border-radius: .6em; color: #a9b1c3; text-align: left; width: 100%; }
.nitem svg { width: 1.15em; height: 1.15em; flex: none; opacity: .85; }
.nitem span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nitem em { font-style: normal; font-size: .75em; color: var(--muted); }
.nitem:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.nitem.active { background: var(--accent-dim); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.nitem.active svg { color: var(--accent); opacity: 1; }
.nitem .off { width: .5em; height: .5em; border-radius: 50%; background: var(--err); flex: none; }
.rail-close { padding: .8em; border-radius: .7em; background: rgba(255, 255, 255, .04); color: var(--muted); border: 1px solid var(--line); }
.rail-close:hover { color: var(--text); }
kbd { font-family: inherit; }

/* ---------- Kopf ---------- */
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.top { padding: 1.5em 2.2em 0; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .012); }
.crumb { color: var(--muted); font-size: .8em; font-weight: 600; letter-spacing: .04em; min-height: 1.2em; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 2em; margin: .4em 0 1.1em; }
.title-l { display: flex; align-items: center; gap: 1em; min-width: 0; }
.title-ic { width: 3em; height: 3em; border-radius: .9em; display: grid; place-items: center; background: var(--accent-dim); color: var(--accent); flex: none; }
.title-ic svg { width: 55%; height: 55%; }
.title-ic:empty { display: none; }
.top h1 { font-size: 1.75em; font-weight: 850; letter-spacing: -.02em; }
.top p { color: var(--muted); font-size: .9em; margin-top: .15em; }
.top-actions { display: flex; gap: .5em; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.tabs { display: flex; gap: .2em; overflow-x: auto; margin-bottom: -1px; }
.tabs:empty { display: none; }
.tab { padding: .8em 1.1em; color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; white-space: nowrap; display: flex; align-items: center; gap: .5em; }
.tab:hover { color: var(--text); }
.tab.on { color: #fff; border-color: var(--accent); }
.tab em { font-style: normal; font-size: .75em; padding: .05em .5em; border-radius: 1em; background: rgba(255, 255, 255, .08); color: var(--muted); }
/* Scroll-Bereiche: Kinder nie zusammenstauchen (sonst wird abgeschnitten statt gescrollt) */
.content > *, .d-body > *, .pl > *, nav > * { flex-shrink: 0; }
.content { flex: 1; overflow-y: auto; padding: 1.8em 2.2em 6em; min-height: 0; }

/* ---------- Grundelemente ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .62em 1em; border-radius: .6em; background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line); white-space: nowrap; font-weight: 600; color: var(--text); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn:hover:not(:disabled) { border-color: var(--line-strong); background: rgba(255, 255, 255, .08); }
.btn.primary { background: var(--accent); color: #04121f; border-color: transparent; font-weight: 800; }
.btn.primary:hover:not(:disabled) { background: var(--accent); box-shadow: var(--glow); }
.btn.danger { color: var(--err); border-color: rgba(251, 113, 133, .35); }
.btn.danger.sure { background: var(--err); color: #fff; }
.btn.ok { color: var(--ok); border-color: rgba(52, 211, 153, .35); }
.btn.sm { padding: .4em .7em; font-size: .88em; }
.btn.xs { padding: .25em .5em; font-size: .8em; border-radius: .45em; }
.btn:disabled { opacity: .4; cursor: default; }
.icon { width: 2.2em; height: 2.2em; border-radius: .6em; color: var(--muted); display: grid; place-items: center; }
.icon:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.input, select.input, textarea.input { background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: .55em; padding: .6em .75em; outline: none; width: 100%; color: var(--text); color-scheme: dark; font: inherit; }
.input:focus { border-color: var(--accent-line); }
textarea.input { min-height: 8em; font-family: Consolas, monospace; font-size: .88em; resize: vertical; }
.input.search { width: 18em; }
.muted { color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: .3em; padding: .2em .55em; border-radius: .45em; background: rgba(255, 255, 255, .06); color: #c3c9d6; font-size: .8em; font-weight: 700; white-space: nowrap; }
.tag.accent { background: var(--accent-dim); color: var(--accent); }
.tag.ok { background: rgba(52, 211, 153, .13); color: var(--ok); }
.tag.err { background: rgba(251, 113, 133, .13); color: var(--err); }
.tag.warn { background: rgba(251, 191, 36, .13); color: var(--warn); }
.tag.ref { background: rgba(56, 189, 248, .13); color: #38bdf8; }
.empty { color: var(--muted); padding: 4em 1em; text-align: center; }
.sec-t { font-size: .74em; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); margin: 2em 0 .8em; }
.sec-t:first-child { margin-top: 0; }
.card { background: rgba(255, 255, 255, .025); border: 1px solid var(--line); border-radius: 1em; padding: 1.3em 1.4em; }
.card h3 { font-size: 1em; font-weight: 800; margin-bottom: 1em; }
.row { display: flex; gap: .6em; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 10em; }
.switch { position: relative; width: 2.7em; height: 1.5em; border-radius: 1em; background: rgba(255, 255, 255, .1); flex: none; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: .18em; left: .18em; width: 1.14em; height: 1.14em; border-radius: 50%; background: #c3c9d6; transition: transform .15s, background .15s; }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(1.2em); background: #fff; }
.switch:disabled { opacity: .4; }

/* ---------- Dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1em; }
.kpi { padding: 1.3em 1.4em; border-radius: 1em; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.kpi span { color: var(--muted); font-size: .8em; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.kpi b { display: block; font-size: 1.9em; font-weight: 850; margin-top: .25em; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi small { color: var(--muted); }
.dash { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.2em; margin-top: 1.2em; align-items: start; }
.sysgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13em, 1fr)); gap: .7em; }
.sys { display: flex; align-items: center; gap: .8em; padding: .9em 1em; border-radius: .8em; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); text-align: left; }
.sys:hover { border-color: var(--accent-line); background: var(--accent-dim); }
.sys .si { width: 2.3em; height: 2.3em; border-radius: .65em; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: var(--accent); flex: none; }
.sys .si svg { width: 55%; height: 55%; }
.sys div { min-width: 0; }
.sys b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sys small { color: var(--muted); font-size: .8em; }

/* ---------- Tabellen ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; color: var(--muted); font-weight: 700; font-size: .8em; letter-spacing: .04em; text-transform: uppercase; padding: .8em .8em; border-bottom: 1px solid var(--line);
    position: sticky; top: -1.8em; background: #0b0e14; white-space: nowrap; z-index: 1; }
.tbl td { padding: .75em .8em; border-bottom: 1px solid rgba(255, 255, 255, .045); vertical-align: middle; max-width: 26em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl tr.click:hover td { background: rgba(var(--accent-rgb), .05); cursor: pointer; }
.tbl td.num { font-variant-numeric: tabular-nums; }
.edimg { display: block; width: 5.2em; height: 2.9em; object-fit: contain; }
.tbl.jst td small { display: block; font-size: .78em; }
.tbl.jst tr.jst-sub td { white-space: normal; max-width: none; padding-top: .3em; background: rgba(255, 255, 255, .015); }
.tbl.jst tr.jst-sub .tag { margin: .15em .2em .15em 0; }
.pager { display: flex; justify-content: flex-end; align-items: center; gap: .6em; margin-top: 1.2em; color: var(--muted); }
.tblwrap { border: 1px solid var(--line); border-radius: 1em; overflow: hidden; background: rgba(255, 255, 255, .015); }
.tblwrap .tbl th { top: -1.8em; }

/* ---------- Einstellungen ---------- */
.setgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(34em, 1fr)); gap: 1.1em; align-items: start; }
.setcard { background: rgba(255, 255, 255, .025); border: 1px solid var(--line); border-radius: 1em; overflow: hidden; }
.setcard h4 { padding: .9em 1.2em; font-size: .78em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.srow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(11em, 15em) 2em; gap: 1em; align-items: center; padding: .85em 1.2em; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.srow:last-child { border-bottom: 0; }
.srow.wide { grid-template-columns: minmax(0, 1fr) 2em; }
.srow.wide .sv { grid-column: 1 / 2; grid-row: 2; }
.srow .sl b { font-weight: 600; display: block; }
.srow .sl small { display: block; color: var(--muted); font-size: .82em; margin-top: .2em; line-height: 1.35; }
.srow .sv { display: flex; justify-content: flex-end; }
.srow .sv .input { text-align: left; }
.srow.dirty { background: rgba(251, 191, 36, .06); box-shadow: inset 3px 0 0 var(--warn); }
.reset { width: 2em; height: 2em; border-radius: .5em; color: var(--muted); opacity: 0; }
.srow:hover .reset { opacity: 1; }
.reset:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.ptitle { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-bottom: 1em; }
.ptitle h3 { font-size: 1.05em; font-weight: 800; }

/* ---------- Positionen ---------- */
.posgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(36em, 1fr)); gap: 1.1em; align-items: start; }
.poscard { border: 1px solid var(--line); border-radius: 1em; background: rgba(255, 255, 255, .025); overflow: hidden; }
.poscard.dirty { border-color: rgba(251, 191, 36, .55); }
.poscard .ph { display: flex; align-items: center; gap: .8em; padding: 1em 1.2em; border-bottom: 1px solid var(--line); }
.poscard .ph .pi { width: 2.2em; height: 2.2em; border-radius: .6em; display: grid; place-items: center; background: var(--accent-dim); color: var(--accent); flex: none; }
.poscard .ph .pi svg { width: 55%; height: 55%; }
.poscard .ph div { flex: 1; min-width: 0; }
.poscard .ph b { display: block; }
.poscard .ph small { color: var(--muted); font-size: .8em; }
.poscard .pb { padding: 1em 1.2em; }
.poscard .ph .pi.num { font-weight: 800; font-size: 1.05em; }
.poscard .pdesc { padding: .85em 1.2em 0; color: var(--muted); font-size: .9em; line-height: 1.5; }
/* Reiter je Stufe (Positionen) + Ablauf-Erklärung */
.postabs { display: flex; flex-wrap: wrap; gap: .45em; margin-bottom: 1em; }
.postabs button { display: flex; align-items: center; gap: .55em; padding: .6em 1.05em; border-radius: .7em; border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
    color: var(--muted); font-weight: 700; }
.postabs button:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.postabs button.on { color: #fff; border-color: var(--accent); background: var(--accent-dim); }
.postabs em { font-style: normal; font-size: .75em; padding: .05em .5em; border-radius: 1em; background: rgba(255, 255, 255, .08); }
.posintro { margin-bottom: 1em; padding: .85em 1.1em; border-left: 3px solid var(--accent); border-radius: .5em; background: rgba(255, 255, 255, .035); line-height: 1.55; }
.vec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4em; }
.vec.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vec label { display: flex; flex-direction: column; gap: .2em; font-size: .75em; color: var(--muted); font-weight: 700; }
.vec .input { font-size: 1.3em; padding: .5em .6em; font-variant-numeric: tabular-nums; }
.vacts { display: flex; gap: .4em; flex-wrap: wrap; margin-top: .8em; }
.pts .plist { max-height: 22em; overflow-y: auto; border: 1px solid var(--line); border-radius: .7em; }
.pts .plist:empty { display: none; }
.prow { display: grid; grid-template-columns: 2.6em repeat(3, minmax(0, 1fr)) auto; gap: .35em; align-items: center; padding: .3em .45em; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.prow.h4 { grid-template-columns: 2.6em repeat(4, minmax(0, 1fr)) auto; }
.prow.tg { grid-template-columns: 2.6em repeat(3, minmax(0, 1fr)) minmax(8.5em, 1.3fr) auto; }
.prow.h4.tg { grid-template-columns: 2.6em repeat(4, minmax(0, 1fr)) minmax(8.5em, 1.3fr) auto; }
.prow:last-child { border-bottom: 0; }
.prow:hover, .prow.hl { background: rgba(var(--accent-rgb), .06); }
.prow > span { color: var(--muted); font-weight: 800; font-size: .8em; text-align: center; font-variant-numeric: tabular-nums; }
.prow .input { padding: .35em .45em; font-size: .88em; font-variant-numeric: tabular-nums; }
.prow .pa { display: flex; gap: .2em; }
.pts .pfoot { display: flex; gap: .4em; flex-wrap: wrap; margin-top: .7em; }

/* ---------- Spieler ---------- */
.players { display: grid; grid-template-columns: 23em minmax(0, 1fr); gap: 1.4em; height: 100%; min-height: 0; align-items: start; }
.plist-col { position: sticky; top: 0; display: flex; flex-direction: column; gap: .8em; }
.seg { display: flex; padding: .2em; border-radius: .7em; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.seg button { flex: 1; padding: .5em; border-radius: .55em; font-weight: 700; color: var(--muted); }
.seg button.on { background: rgba(255, 255, 255, .08); color: #fff; }
.pl { display: flex; flex-direction: column; gap: .25em; max-height: calc(100vh - 21em); overflow-y: auto; }
.pli { display: flex; align-items: center; gap: .8em; padding: .65em .7em; border-radius: .7em; text-align: left; width: 100%; border: 1px solid transparent; }
.pli:hover { background: rgba(255, 255, 255, .04); }
.pli.on { background: var(--accent-dim); border-color: var(--accent-line); }
.av { width: 2.5em; height: 2.5em; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: linear-gradient(135deg, #4b5568, #2b3240); flex: none; }
.av.big { width: 4.4em; height: 4.4em; font-size: 1.15em; background: linear-gradient(135deg, var(--accent), #1f4f8a); color: #fff; }
.pli div { flex: 1; min-width: 0; }
.pli b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pli small { color: var(--muted); font-size: .8em; }
.pdetail { min-width: 0; }
.phead { display: flex; align-items: center; gap: 1.2em; padding: 1.3em 1.4em; border-radius: 1em; background: linear-gradient(135deg, rgba(var(--accent-rgb), .12), rgba(255, 255, 255, .02)); border: 1px solid var(--line); }
.phead .pn { flex: 1; min-width: 0; }
.phead h2 { font-size: 1.5em; font-weight: 850; }
.phead p { color: var(--muted); margin-top: .2em; }
.phead .chips { display: flex; gap: .4em; flex-wrap: wrap; margin-top: .6em; }
.ptabs { display: flex; gap: .2em; margin: 1.2em 0 1.2em; border-bottom: 1px solid var(--line); }
.agroups { display: grid; grid-template-columns: repeat(auto-fill, minmax(17em, 1fr)); gap: 1em; }
.agroup h4 { font-size: .74em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .7em; }
.agroup .row .btn { flex: 1; }
.kvgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13em, 1fr)); gap: .7em; margin-bottom: 1.4em; }
.kvc { padding: .9em 1em; border-radius: .8em; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.kvc span { display: block; color: var(--muted); font-size: .78em; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.kvc b { display: block; margin-top: .25em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Inventar */
.invbar { display: flex; align-items: center; gap: 1em; margin-bottom: 1.2em; flex-wrap: wrap; }
.wbar { flex: 1; min-width: 14em; }
.wbar small { color: var(--muted); display: flex; justify-content: space-between; margin-bottom: .35em; }
.wbar i { display: block; height: .5em; border-radius: 1em; background: rgba(255, 255, 255, .08); overflow: hidden; }
.wbar i em { display: block; height: 100%; background: var(--accent); border-radius: 1em; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.6em, 1fr)); gap: .55em; }
.slot { position: relative; height: 8.4em; border-radius: .8em; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3em; padding: .5em; text-align: center; }
.slot.full { cursor: pointer; }
.slot.full:hover { border-color: var(--accent-line); background: var(--accent-dim); }
.slot.on { border-color: var(--accent); box-shadow: var(--glow); }
.slot img { width: 3.4em; height: 3.4em; object-fit: contain; }
.slot img.tint-gold { filter: sepia(1) saturate(5) hue-rotate(-8deg) brightness(1.15); }
.slot img.tint-diamond { filter: sepia(1) saturate(4) hue-rotate(150deg) brightness(1.25); }
.slot b { font-size: .78em; font-weight: 700; line-height: 1.15; max-height: 2.3em; overflow: hidden; }
.slot .n { position: absolute; top: .35em; right: .45em; font-size: .78em; font-weight: 900; font-variant-numeric: tabular-nums; }
.slot .s { position: absolute; top: .35em; left: .5em; font-size: .7em; color: var(--muted); font-weight: 800; }
.slot .dur { position: absolute; left: .5em; right: .5em; bottom: .4em; height: .25em; border-radius: 1em; background: rgba(255, 255, 255, .08); overflow: hidden; }
.slot .dur em { display: block; height: 100%; background: var(--ok); }
.slot.special { background: rgba(var(--accent-rgb), .05); }
.slot .wl { position: absolute; bottom: .3em; font-size: .68em; color: var(--accent); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.itempick { display: grid; grid-template-columns: repeat(auto-fill, minmax(7em, 1fr)); gap: .45em; max-height: 50vh; overflow-y: auto; margin-top: .8em; }
.ipk { display: flex; flex-direction: column; align-items: center; gap: .3em; padding: .7em .4em; border-radius: .7em; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.ipk:hover, .ipk.on { border-color: var(--accent); background: var(--accent-dim); }
.ipk img { width: 2.8em; height: 2.8em; object-fit: contain; }
.ipk span { font-size: .78em; font-weight: 600; line-height: 1.15; }

/* Jobs */
.jobgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(21em, 1fr)); gap: 1em; }
.jobc { padding: 1.2em 1.3em; border-radius: 1em; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .9em; }
.jobc .jh { display: flex; align-items: center; gap: .9em; }
.ring { width: 3.4em; height: 3.4em; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ring i { width: 2.7em; height: 2.7em; border-radius: 50%; background: #0d1118; display: grid; place-items: center; font-style: normal; font-weight: 900; }
.jobc .jh div { flex: 1; min-width: 0; }
.jobc .jh b { display: block; font-size: 1.05em; }
.jobc .jh small { color: var(--muted); }
.jobc .row .input { width: auto; flex: 1; min-width: 5em; }
.banner { display: flex; align-items: center; gap: 1em; padding: 1em 1.2em; border-radius: 1em; margin-bottom: 1.2em; background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .35); }
.banner div { flex: 1; }
.banner b { display: block; }
.banner small { color: var(--muted); }

/* ---------- Drawer (statt Modal) ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; font-size: var(--fs); color: var(--text); }
.d-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.d-box { position: absolute; top: 0; right: 0; bottom: 0; width: min(40em, 92vw); display: flex; flex-direction: column; background: #0e121a; border-left: 1px solid var(--line);
    box-shadow: -2em 0 5em rgba(0, 0, 0, .5); animation: dIn .25s var(--ease) both; }
.drawer.wide .d-box { width: min(62em, 96vw); }
@keyframes dIn { from { transform: translateX(3em); opacity: 0; } }
.d-head { display: flex; justify-content: space-between; align-items: center; padding: 1.4em 1.6em; border-bottom: 1px solid var(--line); }
.d-head h2 { font-size: 1.2em; font-weight: 850; }
.d-body { flex: 1; overflow-y: auto; padding: 1.4em 1.6em; display: flex; flex-direction: column; gap: 1.1em; }
.d-foot { padding: 1.1em 1.6em; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: .5em; }
.d-foot .spacer { flex: 1; }
.field label { display: block; color: var(--muted); margin-bottom: .45em; font-size: .85em; font-weight: 700; }
.field small { color: var(--muted); display: block; margin-top: .35em; font-size: .82em; }
.form-err { color: var(--err); }

/* ---------- Speichern-Leiste ---------- */
.savebar { position: absolute; left: 50%; bottom: 1.4em; transform: translateX(-50%); display: flex; align-items: center; gap: .8em; padding: .7em .8em .7em 1.2em; border-radius: 1em;
    background: #161b26; border: 1px solid rgba(251, 191, 36, .45); box-shadow: 0 1.2em 3em rgba(0, 0, 0, .55); z-index: 20; animation: rl-in .2s var(--ease) both; }
.savebar .dot { width: .6em; height: .6em; border-radius: 50%; background: var(--warn); }
.savebar span { font-weight: 700; }

#toasts { position: fixed; bottom: 2em; right: 2em; display: flex; flex-direction: column; gap: .5em; z-index: 99; font-size: var(--fs); }
.toast { background: #161b26; border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: .9em 1.2em; border-radius: .7em; min-width: 18em; box-shadow: 0 1em 2.5em rgba(0, 0, 0, .45); color: var(--text); }
.toast.error { border-left-color: var(--err); }
.toast.success { border-left-color: var(--ok); }
pre.json { white-space: pre-wrap; word-break: break-all; color: var(--muted); font-size: .85em; max-height: 40vh; overflow: auto; background: rgba(0, 0, 0, .25); padding: 1em; border-radius: .7em; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14em, 1fr)); gap: .7em; }
.tool { padding: 1.1em 1em; border-radius: .8em; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); text-align: left; display: flex; flex-direction: column; gap: .3em; }
.tool:hover { border-color: var(--accent-line); }
.tool.on { border-color: var(--ok); background: rgba(52, 211, 153, .07); }
.tool small { color: var(--muted); font-size: .82em; }
.cols2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(30em, 1fr)); gap: 1em; align-items: start; }

/* ---------- Rechte-Matrix (wie Fraktionsverwaltung) ---------- */
.legend { display: flex; gap: 1.6em; align-items: center; padding: 0 0 1em; color: var(--muted); font-size: .88em; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: .5em; }
.lg { width: 1.1em; height: 1.1em; border-radius: .3em; display: inline-block; background: rgba(255, 255, 255, .04); border: 1px dashed rgba(255, 255, 255, .15); }
.lg.on { background: linear-gradient(135deg, rgba(var(--accent-rgb), .6), rgba(var(--accent-rgb), .25)); border: 1px solid rgba(var(--accent-rgb), .55); }
.lg.th { background: linear-gradient(135deg, rgba(var(--accent-rgb), .6), rgba(var(--accent-rgb), .25)); box-shadow: 0 0 0 2px var(--accent); border: 0; }
.lg.lock { opacity: .35; }
.mx-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 1em; background: rgba(255, 255, 255, .015); }
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; }
.matrix th, .matrix td { border-bottom: 1px solid rgba(255, 255, 255, .045); }
.matrix thead th { padding: 1em .3em .8em; font-size: .75em; font-weight: 800; color: var(--muted); background: #0c1018; position: sticky; top: -1.8em; z-index: 2; }
.matrix th.pl, .matrix td.pl { text-align: left; padding-left: 1.3em; min-width: 22em; }
.matrix th.pc, .matrix td.pc { text-align: center; padding-right: 1.2em; width: 6em; }
.matrix .pl b { font-weight: 600; }
.matrix .pl small { display: block; color: var(--muted); font-size: .8em; margin-top: .15em; }
.mh { text-align: center; vertical-align: bottom; }
.mh-n { display: grid; place-items: center; width: 2.2em; height: 2.2em; margin: 0 auto .45em; border-radius: .6em; font-weight: 900; font-size: 1.15em; color: var(--accent); background: var(--accent-dim); }
.mh small { display: block; max-width: 6.5em; margin: 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.mh.me .mh-n { color: #fff; background: rgba(52, 211, 153, .5); }
.matrix tbody tr:hover td { background: rgba(var(--accent-rgb), .04); }
.matrix tr.dirty td { background: rgba(251, 191, 36, .06); }
.matrix tr.dirty td.pl { box-shadow: inset 3px 0 0 var(--warn); }
.mc-td { text-align: center; padding: .6em .2em; }
.mc-td.me { background: rgba(52, 211, 153, .04); }
.mc { width: 2.3em; height: 2.3em; border-radius: .6em; display: inline-grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .04);
    border: 1px dashed rgba(255, 255, 255, .13); transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.mc svg { width: 55%; height: 55%; }
.mc.on { border-style: solid; border-color: rgba(var(--accent-rgb), .55); background: linear-gradient(135deg, rgba(var(--accent-rgb), .6), rgba(var(--accent-rgb), .25)); }
.mc.th { box-shadow: 0 0 0 2px var(--accent), 0 0 1.2em rgba(var(--accent-rgb), .55); }
.mc:not(:disabled):hover { transform: scale(1.12); border-color: var(--accent); background: rgba(var(--accent-rgb), .4); }
.mc:disabled { opacity: .3; cursor: not-allowed; }
.mx-g td { padding: .9em 1.3em; font-size: .78em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, .025); cursor: pointer; }
.mx-g td i { font-style: normal; margin-right: .6em; }
.mx-g td em { font-style: normal; margin-left: .6em; padding: .05em .5em; border-radius: 1em; background: rgba(255, 255, 255, .07); }
.mx-g:hover td { color: var(--text); }

/* Spieler → Scheine */
.lic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6em; }
.lic-row { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .8em 1em; border-radius: .8em; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.lic-row.on { border-color: rgba(74, 222, 128, .4); background: rgba(74, 222, 128, .06); }
.lic-row b { display: block; }
.lic-row small { color: var(--muted); }

/* ================================================================ Schnellmenü (F10) */
.quick { position: fixed; left: 2vw; top: 50%; transform: translateY(-50%); z-index: 60; font-size: clamp(12px, .74vw, 16px); }
.quick.hidden { display: none; }
.q-panel { width: clamp(330px, 21vw, 440px); max-height: 82vh; display: flex; flex-direction: column; border-radius: 1.2em; overflow: hidden;
    background: linear-gradient(170deg, rgba(var(--accent-rgb), .12), rgba(9, 12, 19, .95) 32%); border: 1px solid rgba(var(--accent-rgb), .22);
    box-shadow: 0 2.4vh 6vh rgba(0, 0, 0, .55); }
.q-panel.anim { animation: q-in .25s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes q-in { from { opacity: 0; transform: translateX(-2vw); } to { opacity: 1; transform: none; } }
.q-head { display: flex; align-items: center; gap: .8em; padding: 1.1em 1.2em .9em; }
.q-logo { width: 2.4em; height: 2.4em; border-radius: .7em; display: grid; place-items: center; font-weight: 900; font-size: .9em; color: #04121c; background: var(--accent); }
.q-head b { display: block; font-size: 1.05em; } .q-head small { color: var(--muted); font-size: .8em; }
.q-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .3em; margin: 0 1em .7em; padding: .3em; border-radius: .8em; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.q-tabs button { display: flex; align-items: center; justify-content: center; gap: .45em; padding: .6em; border-radius: .6em; font: 700 .88em/1 inherit; color: var(--muted); background: none; border: 0; cursor: pointer; }
.q-tabs button svg { width: 1.05em; height: 1.05em; }
.q-tabs button.on { color: #fff; background: rgba(var(--accent-rgb), .22); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .45); }
.q-tabs em { font-style: normal; font-size: .82em; padding: .1em .45em; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.q-search { display: block; margin: 0 1em .6em; }
.q-search input, .q-input input { width: 100%; padding: .75em .9em; border-radius: .7em; font: inherit; color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); outline: none; }
.q-search input:focus, .q-input input:focus { border-color: rgba(var(--accent-rgb), .6); }
.q-ph { display: flex; align-items: center; gap: .7em; margin: 0 1em .6em; padding: .7em; border-radius: .8em; background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .3); }
.q-ph b { display: block; } .q-ph small { color: var(--muted); font-size: .8em; }
.q-back { width: 2em; height: 2em; border-radius: .6em; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 0; color: var(--text); cursor: pointer; }
.q-back svg { width: 1em; height: 1em; }
.q-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 .7em .6em; display: flex; flex-direction: column; gap: .2em; }
.q-list::-webkit-scrollbar { width: 5px; } .q-list::-webkit-scrollbar-thumb { background: rgba(var(--accent-rgb), .35); border-radius: 3px; }
.q-sec { margin: .7em .5em .25em; font-size: .72em; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.q-gap { height: .5em; }
.q-row { display: flex; align-items: center; gap: .75em; width: 100%; padding: .6em .7em; border-radius: .7em; text-align: left; font: inherit; color: var(--text); background: none; border: 1px solid transparent; cursor: pointer; }
.q-row:hover { background: rgba(255, 255, 255, .04); }
.q-row.on { background: rgba(var(--accent-rgb), .16); border-color: rgba(var(--accent-rgb), .45); }
.q-ic { width: 2em; height: 2em; flex: none; border-radius: .55em; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: var(--muted); }
.q-ic svg { width: 1.05em; height: 1.05em; }
.q-row.on .q-ic { background: var(--accent); color: #04121c; }
.q-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.q-t b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-t small { color: var(--muted); font-size: .8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-row.big { margin-top: .2em; background: rgba(255, 255, 255, .04); border-color: var(--line); }
.q-row.big.on { background: linear-gradient(90deg, rgba(var(--accent-rgb), .3), rgba(var(--accent-rgb), .1)); }
.q-row.danger .q-t b { color: var(--err); }
.q-sw { width: 2.3em; height: 1.3em; flex: none; border-radius: 99px; background: rgba(255, 255, 255, .12); position: relative; transition: background .2s; }
.q-sw i { position: absolute; top: .15em; left: .15em; width: 1em; height: 1em; border-radius: 50%; background: #fff; transition: transform .2s; }
.q-sw.on { background: var(--ok); } .q-sw.on i { transform: translateX(1em); }
.q-more { color: var(--muted); font-weight: 800; }
.q-input { margin: .2em .2em .5em 3.4em; display: flex; flex-direction: column; gap: .35em; }
.q-input small { color: var(--muted); font-size: .76em; }
.q-id { min-width: 2.2em; height: 2em; padding: 0 .4em; flex: none; border-radius: .55em; display: grid; place-items: center; font-weight: 800; font-size: .9em; background: rgba(255, 255, 255, .06); font-variant-numeric: tabular-nums; }
.q-row.on .q-id { background: var(--accent); color: #04121c; }
.q-ping { color: var(--muted); font-size: .78em; font-variant-numeric: tabular-nums; }
.q-tag { font-size: .7em; font-weight: 800; padding: .2em .5em; border-radius: 99px; }
.q-tag.bad { color: var(--err); background: rgba(251, 113, 133, .12); }
.q-empty { padding: 2em 1em; text-align: center; color: var(--muted); }
.q-keys { display: flex; flex-wrap: wrap; gap: .4em 1em; padding: .8em 1.2em; border-top: 1px solid var(--line); color: var(--muted); font-size: .76em; }
.q-keys kbd { display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; margin-right: .25em; padding: 0 .35em; border-radius: .4em; font: 700 .9em/1 inherit;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-bottom-width: 2px; color: var(--text); }
/* Schnellmenü Entwurf B (16.11.2026): Kacheln – 3 je Zeile, Zustand auf einen Blick, Auswahl = Rahmen in Akzentfarbe */
.q-panel.tiles { width: clamp(360px, 23vw, 480px); }
.q-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4em; margin: 0 .3em; }
.q-tile { display: flex; flex-direction: column; align-items: flex-start; gap: .35em; min-width: 0; min-height: 4.6em; padding: .75em .7em; border-radius: .8em; text-align: left;
    font: inherit; color: var(--text); background: rgba(255, 255, 255, .045); border: 1px solid var(--line); cursor: pointer; transition: background .12s, border-color .12s, box-shadow .12s; }
.q-tile:hover { background: rgba(255, 255, 255, .08); }
.q-tile svg { width: 1.25em; height: 1.25em; color: var(--muted); flex: none; }
.q-tile b { font-size: .86em; font-weight: 700; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-tile small { font-size: .72em; color: var(--muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-tile.act { background: rgba(var(--accent-rgb), .16); border-color: rgba(var(--accent-rgb), .45); }
.q-tile.act svg, .q-tile.act small { color: var(--accent); }
.q-tile.on { box-shadow: 0 0 0 2px var(--accent); }
.q-tile.bad b, .q-tile.bad svg { color: var(--err); }
.q-acts { margin-top: .6em; padding-top: .3em; border-top: 1px solid var(--line); }
.q-row.q-pl.pick { background: rgba(var(--accent-rgb), .08); border-color: rgba(var(--accent-rgb), .25); }
.q-grid + .q-input { margin: .5em .3em .3em; }

/* Kartensymbole: Farbvorschau */
.bl-sw { display: inline-block; width: .9em; height: .9em; border-radius: 50%; margin-right: .45em; vertical-align: -.1em; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), inset 0 0 0 1px rgba(255, 255, 255, .25); }
/* eigene Kartensymbole (rl_blips): Bild in der Liste + Kachel-Auswahl im Blip-Editor */
.bl-ic { width: 1.7em; height: 1.7em; object-fit: contain; vertical-align: middle; margin-right: .4em; }
.bl-pick { display: flex; flex-wrap: wrap; gap: .5em; margin-top: .7em; }
.bl-pick-t { flex-basis: 100%; color: var(--muted); font-size: .82em; font-weight: 700; }
.bl-tile { display: flex; flex-direction: column; align-items: center; gap: .3em; width: 8em; padding: .65em .4em .55em; border-radius: .7em; border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03); color: var(--text); font-weight: 700; }
.bl-tile:hover:not(:disabled) { background: rgba(255, 255, 255, .07); }
.bl-tile img { width: 3em; height: 3em; object-fit: contain; }
.bl-tile em { font-style: normal; font-size: .75em; font-weight: 600; color: var(--muted); }
.bl-tile.on { border-color: var(--accent); background: var(--accent-dim); }
.bl-tile:disabled { opacity: .5; cursor: not-allowed; }

/* Ingame-Punkte-Editor: Panel bleibt erhalten, ist aber unsichtbar; rechts die Tastenhilfe (wie Fahrschule) */
body.ingame #app, body.ingame #drawer, body.ingame #quick { display: none !important; }
.ped { position: fixed; right: 1.6vw; top: 50%; transform: translateY(-50%); z-index: 70; width: clamp(240px, 19vw, 360px); padding: 2vh 1.1vw; border-radius: 1.1em;
    display: flex; flex-direction: column; gap: 1.1vh; font-size: var(--fs); color: var(--text); }
.ped h3 { font-size: 1.1em; margin: 0; }
.ped .kv { display: flex; justify-content: space-between; align-items: center; gap: .6em; font-size: .95em; }
.ped .kv span:first-child { color: var(--muted); }
.ped .keys { display: flex; flex-direction: column; gap: .7vh; font-size: .92em; }
.ped .keys div { display: flex; align-items: center; gap: .5vw; }
.ped .keys kbd { margin: 0; min-width: 4.4vh; text-align: center; }
.ped .dirty { color: var(--warn); font-size: .88em; }
.ped .hint { font-size: .85em; line-height: 1.45; }

/* ===== Struktur-Editor für JSON-Felder ===== */
.je { display: flex; flex-direction: column; gap: .6em; min-width: 0; }
.je-top { display: flex; align-items: center; justify-content: space-between; gap: .8em; font-size: .85em; }
.je-raw { min-height: 16em; font-family: ui-monospace, Consolas, monospace; font-size: .9em; }
.je-tools { display: flex; gap: .5em; align-items: center; }
.je-tools .je-q { flex: 1; min-width: 0; }
.je-cards { display: flex; flex-direction: column; gap: .45em; }
.je-card { border: 1px solid var(--line); border-radius: .7em; background: rgba(255, 255, 255, .025); min-width: 0; }
.je-card.open { border-color: var(--accent-line); background: rgba(255, 255, 255, .04); }
.je-ch { display: flex; align-items: center; gap: .6em; padding: .55em .7em; cursor: pointer; min-width: 0; }
.je-ch:hover { background: rgba(255, 255, 255, .03); border-radius: .7em; }
.je-ch > b { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.je-hint { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.je-chev { width: 1em; height: 1em; display: grid; place-items: center; color: var(--muted); transition: transform .15s; flex: none; }
.je-chev svg { width: 100%; height: 100%; }
.je-card.open > .je-ch .je-chev { transform: rotate(90deg); color: var(--accent); }
.je-n { min-width: 1.8em; height: 1.8em; padding: 0 .3em; border-radius: .45em; display: grid; place-items: center; flex: none; font-size: .78em; font-weight: 800;
    color: var(--muted); background: rgba(255, 255, 255, .06); }
.je-acts { display: inline-flex; gap: .2em; flex: none; opacity: .55; }
.je-ch:hover .je-acts, .je-tr:hover .je-acts, .je-card.open > .je-ch .je-acts { opacity: 1; }
.je-b { width: 1.9em; height: 1.9em; display: grid; place-items: center; border-radius: .45em; color: var(--muted); background: transparent; border: 1px solid transparent; flex: none; }
.je-b svg { width: 1em; height: 1em; }
.je-b:hover { color: var(--text); background: rgba(255, 255, 255, .07); border-color: var(--line); }
.je-b.del:hover { color: var(--err); border-color: rgba(251, 113, 133, .35); background: rgba(251, 113, 133, .08); }
.je-cb { padding: .2em .9em .9em; border-top: 1px solid var(--line); }
.je-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12em, 1fr)); gap: .7em .9em; padding-top: .7em; min-width: 0; }
.je-f { display: flex; flex-direction: column; gap: .3em; min-width: 0; }
.je-f.wide { grid-column: 1 / -1; }
.je-f .input { width: 100%; min-width: 0; }
.je-l { font-size: .78em; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.je-f .switch { margin-top: .15em; }
.je-ta { resize: vertical; min-height: 3.2em; font-family: inherit; }
.je-sub { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .4em; padding: .7em .8em; border-radius: .7em; background: rgba(0, 0, 0, .18); border: 1px dashed var(--line); min-width: 0; }
.je-subh { font-size: .82em; font-weight: 800; display: flex; align-items: baseline; gap: .5em; }
.je-subh small { color: var(--muted); font-weight: 600; font-family: ui-monospace, Consolas, monospace; }
.je-sub .je-grid { padding-top: 0; }
.je-add { align-self: flex-start; display: inline-flex; align-items: center; gap: .4em; padding: .45em .8em; border-radius: .55em; font-weight: 700; font-size: .88em;
    color: var(--accent); background: transparent; border: 1px dashed var(--accent-line); }
.je-add svg { width: 1em; height: 1em; }
.je-add:hover { background: rgba(var(--accent-rgb), .08); }
.je-chips { display: flex; flex-wrap: wrap; gap: .4em; align-items: center; }
.je-chip { display: inline-flex; align-items: center; gap: .1em; padding: .15em .15em .15em .2em; border-radius: .6em; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.je-chip .input { padding: .35em .5em; border: 0; background: transparent; max-width: 26em; }
.je-chip .je-b { width: 1.6em; height: 1.6em; }
.je-chip.add { width: 2.2em; height: 2.2em; justify-content: center; color: var(--accent); border-style: dashed; border-color: var(--accent-line); background: transparent; }
.je-chip.add svg { width: 1em; height: 1em; }
.je-table { display: flex; flex-direction: column; gap: .35em; }
.je-tr { display: grid; grid-template-columns: var(--cols, 2.4em repeat(var(--n), minmax(0, 1fr)) auto); gap: .45em; align-items: center; }
.je-th { font-size: .76em; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.je-th span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.je-tr .input { width: 100%; min-width: 0; padding: .45em .6em; }
.je-kv { display: flex; align-items: flex-end; gap: .3em; min-width: 0; }
.je-kv .je-f { flex: 1; }
.je-kv .je-b { margin-bottom: .2em; }
.je-addk { display: flex; gap: .5em; align-items: center; max-width: 26em; }
.je-addk .input { flex: 1; min-width: 0; padding: .45em .6em; }
.je-code { font-size: .8em; color: var(--muted); word-break: break-all; }
.srow .sv > .je, .field > .je { flex: 1; width: 100%; }
.je input[type=number] { -moz-appearance: textfield; }
.je input[type=number]::-webkit-outer-spin-button, .je input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.je-chip input[type=number] { min-width: 5ch; text-align: center; }

/* Lückenloses Karten-Raster (Einstellungen & Positionen) */
.masonry.laid { display: flex; flex-direction: column; align-items: stretch; gap: 1.1em; }
.mcols { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 1.1em; align-items: start; }
.mcol { display: flex; flex-direction: column; gap: 1.1em; min-width: 0; }
/* breite Karte: normale Einstellungen in Spalten, Listen-Editoren über die ganze Breite */
.setcard.wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(34em, 1fr)); align-content: start; }
.setcard.wide > h4, .setcard.wide > .srow.wide { grid-column: 1 / -1; }

/* Hinweis „Admin-Modus“ oben mittig (immer sichtbar, solange er an ist) */
.amode { position: fixed; top: 1.2vh; left: 50%; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: .55em; padding: .4em .95em;
    border-radius: 99px; font-size: var(--fs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fecaca; pointer-events: none;
    background: rgba(69, 10, 10, .78); border: 1px solid rgba(248, 113, 113, .55); box-shadow: 0 0 1.8vh rgba(248, 113, 113, .3); }
.amode i { width: .6em; height: .6em; border-radius: 50%; background: #f87171; box-shadow: 0 0 .6em #f87171; animation: amPulse 1.4s ease-in-out infinite; }
@keyframes amPulse { 50% { opacity: .35; } }
body.ingame .amode { display: none; }

/* ===== Map-Editor (client/scene.lua): Knopf im Positionen-Reiter + Overlay über der freien Kamera ===== */
.posscene { display: flex; align-items: center; gap: 1em; margin-bottom: 1em; padding: .9em 1.1em; border: 1px solid var(--accent-line); border-radius: .8em; background: var(--accent-dim); }
.posscene .pi { width: 2.4em; height: 2.4em; border-radius: .6em; display: grid; place-items: center; background: rgba(var(--accent-rgb), .2); color: var(--accent); flex: none; }
.posscene .pi svg { width: 55%; height: 55%; }
.posscene div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2em; }
.posscene .muted { font-size: .88em; line-height: 1.45; }
.posscene .btn { flex: none; }

.scene { position: fixed; inset: 0; z-index: 60; font-size: var(--fs); color: var(--text); pointer-events: none; user-select: none; }
.sc-world { position: absolute; inset: 0; pointer-events: auto; cursor: crosshair; }
.scene.add .sc-world { cursor: copy; }
.sc-panel, .sc-box { pointer-events: auto; background: rgba(10, 13, 20, .9); border: 1px solid var(--line); border-radius: 1em; box-shadow: 0 .8em 2.4em rgba(0, 0, 0, .45); }
.sc-panel { position: absolute; }
.sc-panel svg, .sc-box svg { width: 1.05em; height: 1.05em; flex: none; }
.sc-top { top: 1.4vh; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 1.1em; padding: .55em .6em .55em 1.1em; white-space: nowrap; }
.sc-title { display: flex; flex-direction: column; line-height: 1.25; }
.sc-title b { font-size: 1.02em; }
.sc-seg { display: flex; gap: .2em; padding: .2em; border-radius: .7em; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.sc-seg button { display: inline-flex; align-items: center; gap: .45em; padding: .45em .8em; border-radius: .5em; color: var(--muted); font-size: .9em; font-weight: 700; }
.sc-seg button:hover { color: var(--text); }
.sc-seg button.on { background: var(--accent); color: #04121f; }
.sc-acts { display: flex; align-items: center; gap: .4em; }
.sc-dirty { color: var(--warn); font-size: .85em; font-weight: 700; margin-right: .3em; }

.sc-side { top: 1.4vh; left: 1.2vw; max-height: calc(100vh - 10vh); width: clamp(250px, 18vw, 340px); display: flex; flex-direction: column; gap: .25em; padding: .9em .65em; overflow-y: auto; }
.sc-h { display: flex; flex-direction: column; gap: .25em; padding: 0 .45em .55em; }
.sc-h small { color: var(--muted); font-size: .8em; line-height: 1.4; }
.sc-layer { display: flex; align-items: center; gap: .65em; padding: .55em .5em; border-radius: .6em; cursor: pointer; border: 1px solid transparent; }
.sc-layer:hover { background: rgba(255, 255, 255, .04); }
.sc-layer.on { background: rgba(255, 255, 255, .06); border-color: var(--c); }
.sc-layer.off { opacity: .45; }
.sc-dot { width: .85em; height: .85em; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 0 .2em rgba(255, 255, 255, .06); }
.sc-ln { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15em; }
.sc-ln b { font-size: .92em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-ln small { color: var(--muted); font-size: .76em; }
.sc-step { display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; margin-right: .4em; border-radius: .4em; background: var(--c); color: #0a0d13; font-size: .8em; font-weight: 900; vertical-align: .08em; }
.sc-chg { color: var(--warn); }
.sc-warn { font-style: normal; font-size: .74em; color: var(--warn); line-height: 1.35; }
.sc-eye { width: 2em; height: 2em; border-radius: .5em; display: grid; place-items: center; color: var(--text); flex: none; }
.sc-eye:hover { background: rgba(255, 255, 255, .08); }
.sc-eye.off { color: var(--muted); }
.sc-eye.off svg { opacity: .5; }
.sc-chips { display: flex; flex-wrap: wrap; gap: .3em; padding: .15em .5em .5em 2.05em; }
.sc-chips button { min-width: 2em; padding: .25em .45em; border-radius: .45em; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: .8em; font-weight: 700; color: var(--muted); }
.sc-chips button:hover { color: var(--text); border-color: var(--line-strong); }
.sc-chips button.on { color: #0a0d13; background: #ffd60a; border-color: transparent; }

.sc-right { position: absolute; top: 1.4vh; right: 1.2vw; bottom: 7.5vh; width: clamp(260px, 17vw, 330px); display: flex; flex-direction: column; gap: .8em; pointer-events: none; }
.sc-sel, .sc-sitep { display: flex; flex-direction: column; gap: .75em; padding: .95em 1em; }
.sc-sel { margin-top: auto; }
.sc-sitep { min-height: 0; overflow-y: auto; }
.sc-sh { display: flex; align-items: center; gap: .7em; }
.sc-sh div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1em; }
.sc-sh small { color: var(--muted); font-size: .8em; }
.sc-xyz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35em; }
.sc-xyz span { padding: .4em .5em; border-radius: .5em; background: rgba(255, 255, 255, .04); color: var(--muted); font-size: .78em; }
.sc-xyz b { color: var(--text); font-size: 1.12em; font-variant-numeric: tabular-nums; margin-left: .2em; }
.sc-row { display: flex; flex-direction: column; gap: .3em; }
.sc-row label { color: var(--muted); font-size: .78em; font-weight: 700; }
.sc-hd { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .35em; align-items: center; }
.sc-hd .input { text-align: center; font-variant-numeric: tabular-nums; padding: .45em .5em; }
.sc-wide { width: 100%; }
.sc-note { font-size: .8em; line-height: 1.4; }
.sc-foot { display: flex; align-items: center; justify-content: space-between; gap: .6em; font-size: .9em; }
.sc-foot .muted { font-size: .85em; }

.sc-keys { bottom: 1.4vh; left: 50%; transform: translateX(-50%); max-width: 62vw; display: flex; flex-wrap: wrap; justify-content: center; gap: .35em 1em; padding: .55em 1em;
    font-size: .8em; color: var(--muted); pointer-events: none; }
.sc-keys span { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; }
.sc-keys kbd { padding: .12em .45em; border-radius: .35em; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .06); color: var(--text); font-weight: 700; font-size: .92em; }
/* Meldungen im Map-Editor oben mittig unter der Leiste – unten rechts liegt die Auswahl */
body.scening #toasts { bottom: auto; right: auto; top: 9vh; left: 50%; transform: translateX(-50%); align-items: center; }
/* Map-Editor: Orte (z. B. Gärtner-Kunden-Orte) – Liste links, Eigenschaften rechts */
.sc-h2 { flex-direction: row; align-items: center; justify-content: space-between; gap: .6em; margin-top: .9em; padding-top: .9em; border-top: 1px solid var(--line); }
.sc-h2 em { font-style: normal; font-size: .75em; padding: .05em .5em; border-radius: 1em; background: rgba(255, 255, 255, .08); color: var(--muted); margin-left: .3em; }
.sc-find { display: flex; gap: .35em; padding: 0 .45em .45em; }
.sc-find .input { padding: .45em .6em; font-size: .88em; }
.sc-find select.input { width: auto; max-width: 45%; }
.sc-site { display: flex; align-items: center; gap: .65em; padding: .5em .5em; border-radius: .6em; cursor: pointer; border: 1px solid transparent; }
.sc-site:hover { background: rgba(255, 255, 255, .04); }
.sc-site.on { background: rgba(255, 255, 255, .07); border-color: var(--c); }
.sc-site.off .sc-ln b { color: var(--muted); }
.sc-sub { margin: .1em 0 .5em 1.1em; padding-left: .5em; border-left: 2px solid var(--line-strong); }
.sc-tag { flex: none; font-size: .68em; font-weight: 800; padding: .15em .5em; border-radius: 1em; background: rgba(255, 255, 255, .08); color: var(--muted); }
.sc-tag.new { background: rgba(var(--accent-rgb), .2); color: var(--accent); }
.sc-tag.chg { background: rgba(251, 191, 36, .15); color: var(--warn); }
.sc-empty, .sc-hint { color: var(--muted); font-size: .8em; padding: .5em .5em; line-height: 1.45; }
.sc-layer.locked .sc-dot { box-shadow: 0 0 0 .2em rgba(255, 255, 255, .06), inset 0 0 0 .2em rgba(10, 13, 20, .6); }
.sc-ldesc { color: var(--muted); font-size: .76em; line-height: 1.45; padding: 0 .5em .4em 2.05em; }
.sc-mini { flex: none; padding: .2em .5em; border-radius: .45em; font-size: .72em; font-weight: 700; color: var(--muted); border: 1px solid var(--line); }
.sc-mini:hover { color: var(--err); border-color: rgba(251, 113, 133, .4); }
.sc-mini.sure { background: var(--err); color: #fff; }
.sc-brush { display: flex; flex-wrap: wrap; align-items: center; gap: .3em; padding: .1em .5em .5em 2.05em; font-size: .78em; }
.sc-brush span { color: var(--muted); margin-right: .2em; }
.sc-brush button { display: inline-flex; align-items: center; gap: .35em; padding: .25em .55em; border-radius: 1em; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted); font-weight: 700; }
.sc-brush button i { width: .65em; height: .65em; border-radius: 50%; background: var(--c); }
.sc-brush button:hover { color: var(--text); }
.sc-brush button.on { color: var(--text); border-color: var(--c); background: rgba(255, 255, 255, .1); }
.sc-form { display: flex; flex-direction: column; gap: .6em; }
.sc-form .input { padding: .5em .65em; }
.sc-chk { display: flex; align-items: center; gap: .55em; font-size: .9em; cursor: pointer; }
.sc-chk input { width: 1.1em; height: 1.1em; accent-color: var(--accent); }
.sc-spc { display: flex; align-items: center; gap: .45em; font-size: .85em; color: var(--muted); }
.sc-spc .input { width: auto; padding: .35em .5em; }
/* Map-Editor: Feld-Reihen (Farm) – Auffüllen & Soll-Anzahl je Feldart */
.sc-fill { display: flex; align-items: center; flex-wrap: wrap; gap: .35em; padding: .1em .5em .55em 2.05em; font-size: .76em; color: var(--muted); }
.sc-fill .input { width: 4.5em; padding: .3em .45em; }
.sc-target { font-size: .8em; line-height: 1.45; padding: .5em .65em; border-radius: .55em; background: rgba(255, 255, 255, .04); color: var(--muted); }
.sc-target b { color: var(--text); }
.sc-target.ok { color: var(--ok); background: rgba(52, 211, 153, .08); }
.sc-target.warn { color: var(--warn); background: rgba(251, 191, 36, .08); }
.sc-target.over { color: var(--err); background: rgba(251, 113, 133, .08); }
/* Map-Editor: Hauspreis aus Stadtteil-Preis × Innenraum + Garage */
.sc-price { display: flex; flex-direction: column; gap: .5em; padding-top: .6em; border-top: 1px solid var(--line); }
.sc-calc { display: grid; grid-template-columns: 1fr auto; gap: .25em .8em; font-size: .82em; color: var(--muted); }
.sc-calc b { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.sc-calc .sc-calc-sum { padding-top: .35em; border-top: 1px solid var(--line); color: var(--text); font-weight: 800; }
.sc-calc b.sc-calc-sum { color: var(--ok); font-size: 1.1em; }

/* Immobilien → Stadtteil-Preise */
.dpt { display: flex; flex-direction: column; gap: 1em; }
.dpt-info { display: flex; gap: .7em; align-items: flex-start; padding: .8em 1em; border-radius: .8em; background: rgba(var(--accent-rgb), .07); border: 1px solid rgba(var(--accent-rgb), .25); color: #c7d0e0; line-height: 1.5; }
.dpt-info svg { flex-shrink: 0; width: 1.2em; height: 1.2em; color: var(--accent); margin-top: .15em; }
.dpt-bar { display: flex; flex-wrap: wrap; gap: .7em; align-items: center; }
.dpt-bar #dpt-q { width: 17em; }
.dpt-grow { flex: 1; }
.dpt-areas { display: flex; gap: .4em; flex-wrap: wrap; }
.dpt-areas button { padding: .45em .95em; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-weight: 600; }
.dpt-areas button:hover { color: var(--text); }
.dpt-areas button.on { border-color: var(--accent); background: var(--accent-dim); color: #fff; }
.dpt-chk { display: flex; gap: .45em; align-items: center; color: var(--muted); cursor: pointer; }
.dpt input[type=checkbox] { width: 1.1em; height: 1.1em; accent-color: var(--accent); cursor: pointer; }
.dpt-def { display: flex; gap: .5em; align-items: center; color: var(--muted); font-size: .92em; white-space: nowrap; }
.dpt-def .input { width: 8.5em; }
.dpt-def .input.sm, .dpt-bulk .input.sm { width: 6.5em; }
.dpt-bulk { display: flex; flex-wrap: wrap; gap: .7em; align-items: center; padding: .65em 1em; border-radius: .8em; background: var(--accent-dim); border: 1px solid var(--accent-line); }
.dpt-bulk label { display: flex; gap: .5em; align-items: center; color: #c7d0e0; }
.dpt-bulk .input { width: 9em; }
.dpt-tbl td { padding: .4em .8em; }
.dpt-tbl th.n, .dpt-tbl td.n { text-align: right; font-variant-numeric: tabular-nums; }
.dpt-tbl td small { display: block; color: var(--muted); font-size: .76em; }
.dpt-tbl td .input { width: 9.5em; padding: .45em .6em; }
.dpt-tbl td .input.sm { width: 6.5em; }
.dpt-tbl td .input::placeholder { color: rgba(141, 150, 171, .7); }
.dpt-tbl tr.sel td { background: rgba(var(--accent-rgb), .06); }
.dpt-tbl tbody tr:hover td { background: rgba(255, 255, 255, .02); }
.dpt-tbl tbody tr.sel:hover td { background: rgba(var(--accent-rgb), .08); }
.dpt-foot { font-size: .88em; line-height: 1.6; }
.dpt input[type=number]::-webkit-inner-spin-button, .dpt input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.dpt-tbl td .input.sm, .dpt-def .input.sm, .dpt-bulk .input.sm { width: 7.5em; }
.dpt-tbl th small { display: block; font-size: .85em; font-weight: 600; text-transform: none; letter-spacing: 0; opacity: .8; }
.dpt-fill { display: flex; flex-wrap: wrap; gap: .8em; align-items: center; justify-content: space-between; padding: .7em 1em; border-radius: .8em; background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .35); color: #e8dcc0; }

/* Fraktionen → Dienstkleidung */
.fcl-facs { margin-bottom: 1.2em; }
.fcl-facs button { display: inline-flex; align-items: center; gap: .5em; }
.fcl-facs button i { width: .7em; height: .7em; border-radius: 50%; background: var(--fc); }
.fcl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(30em, 1fr)); gap: 1.2em; align-items: start; }
.fcl-warn { padding: .7em 1em; border-radius: .8em; background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .35); color: #e8dcc0; margin-bottom: 1em; }

/* ---------- Anti-Cheat: Live-Konsole ---------- */
.acc-wrap { position: relative; }
.acc { height: calc(100vh - 19em); min-height: 22em; overflow-y: auto; padding: .7em 0; background: #07090d; border: 1px solid var(--line); border-radius: .9em;
    font-family: 'Cascadia Mono', Consolas, 'Courier New', monospace; font-size: .84em; line-height: 1.6; color: #c3cad8; }
.acl { display: grid; grid-template-columns: max-content 5.6em 6.6em minmax(8em, 13em) minmax(0, 1fr) 3.6em 6.4em; gap: 0 .9em; align-items: baseline;
    padding: .12em 1em .12em .85em; border-left: 3px solid transparent; }
.acl:hover { background: rgba(255, 255, 255, .035); }
.acl-t { color: #5f6878; white-space: nowrap; }
.acl-sev { font-weight: 700; color: #7aa2f7; white-space: nowrap; }
.acl.s-w { border-left-color: rgba(251, 191, 36, .55); } .acl.s-w .acl-sev { color: var(--warn); }
.acl.s-e { border-left-color: var(--err); } .acl.s-e .acl-sev { color: var(--err); }
.acl-act { color: #7d8698; white-space: nowrap; } .acl-act.hit { color: var(--err); font-weight: 700; }
.acl-who { color: #e7ecf5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acl-who i { color: #5f6878; font-style: normal; margin-left: .4em; } .acl-who em { color: var(--ok); font-style: normal; margin-left: .4em; font-size: .8em; }
.acl-msg { min-width: 0; overflow-wrap: anywhere; } .acl-msg b { color: #e7ecf5; font-weight: 600; margin-right: .6em; }
.acl-n { color: var(--warn); text-align: right; white-space: nowrap; }
.acl-a { display: flex; justify-content: flex-end; gap: .3em; opacity: 0; transition: opacity .15s; }
.acl:hover .acl-a, .acl:focus-within .acl-a { opacity: 1; }
.acl-a button { width: 1.9em; height: 1.9em; display: grid; place-items: center; border-radius: .45em; color: var(--muted); background: rgba(255, 255, 255, .05); }
.acl-a button:hover { color: var(--text); background: rgba(255, 255, 255, .1); } .acl-a svg { width: 1em; height: 1em; }
.acl.done { opacity: .45; }
.acl.new { animation: acc-in 2.2s ease-out; } .acl.upd .acl-n, .acl.upd .acl-act { animation: acc-blink .5s ease 3; }
.acc-note { color: #5f6878; padding: .2em 1em .5em; }
.acc-more { display: block; margin: 0 auto .5em; padding: .3em .9em; border-radius: .5em; color: var(--accent); font: inherit; }
.acc-more:hover { background: rgba(255, 255, 255, .05); }
.acc-new { position: absolute; left: 50%; bottom: 1em; transform: translateX(-50%); padding: .5em 1.1em; border-radius: 2em; background: var(--accent); color: #0b0e14;
    font-weight: 700; box-shadow: 0 .4em 1.2em rgba(0, 0, 0, .45); }
.acc-new[hidden] { display: none; }
.acc-state { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; font-size: .85em; color: var(--muted); white-space: nowrap; }
.acc-state i { width: .55em; height: .55em; border-radius: 50%; background: currentColor; }
.acc-state.on { color: var(--ok); } .acc-state.on i { animation: acc-pulse 1.6s ease-in-out infinite; }
.acc-state.off { color: var(--err); } .acc-state.pause { color: var(--warn); }
@keyframes acc-in { from { background: rgba(var(--accent-rgb), .22); } to { background: transparent; } }
@keyframes acc-blink { 50% { opacity: .2; } }
@keyframes acc-pulse { 50% { opacity: .25; } }
@media (max-width: 900px) {
    .acl { grid-template-columns: max-content max-content minmax(0, 1fr) max-content; row-gap: .05em; padding-top: .35em; padding-bottom: .35em; }
    .acl-who, .acl-msg { grid-column: 1 / -1; }
    .acl-a { opacity: 1; }
}

/* ---------- Spieler → Fahrzeuge ---------- */
.pv { padding: 0; overflow: hidden; }
.pv-h { display: flex; align-items: center; gap: .9em; padding: .8em 1.1em; cursor: pointer; flex-wrap: wrap; }
.pv-h:hover { background: rgba(255, 255, 255, .025); }
.pv-img { position: relative; width: 4.6em; height: 2.9em; border-radius: .6em; background: var(--accent-dim); color: var(--accent); display: grid; place-items: center; flex: none; overflow: hidden; }
.pv-img svg { width: 42%; height: 42%; } .pv-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; } .pv-img img[hidden] { display: none; }
.pv-t { flex: 1; min-width: 10em; } .pv-t b { display: block; } .pv-t small { color: var(--muted); }
.pv-plate { padding: .2em .55em; border-radius: .4em; background: #f2f2f2; color: #111; font-weight: 800; font-size: .85em; letter-spacing: .05em; }
.pv-b { padding: .2em 1.1em 1.1em; border-top: 1px solid var(--line); }
.pv-stats { display: flex; flex-wrap: wrap; gap: .5em 1.4em; margin: .9em 0; color: var(--muted); font-size: .9em; } .pv-stats b { color: var(--text); }
.pv-acts { flex-wrap: wrap; gap: .5em; }
.pv-keys { display: flex; flex-wrap: wrap; gap: .4em; }
.pv-x { margin-left: .3em; color: var(--err); font-weight: 800; padding: 0 .2em; }
.pv-pick { margin-top: 1em; padding: .9em; border-radius: .8em; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); display: grid; gap: .6em; }
.pv-res { display: flex; flex-wrap: wrap; gap: .4em; }
/* Fortschritt → Season Pass: Saisons planen */
.spe { display: flex; flex-direction: column; gap: 1em; }
.spe-top { display: flex; align-items: flex-start; gap: 1em; }
.spe-top p { flex: 1; display: flex; gap: .6em; margin: 0; line-height: 1.45; }
.spe-top p svg, .spe-warn svg { width: 1.2em; height: 1.2em; flex: none; margin-top: .15em; }
.spe-warn { display: flex; gap: .6em; padding: .8em 1em; border-radius: .7em; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .35); }
.spe-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(22em, 1fr)); gap: .9em; }
.spe-card { display: flex; flex-direction: column; gap: .7em; padding: 1em 1.1em; border-radius: .9em; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.spe-card.active { border-color: rgba(52, 211, 153, .45); }
.spe-card.ended { opacity: .7; }
.spe-ch { display: flex; align-items: center; gap: .6em; }
.spe-ch b { font-size: 1.08em; }
.spe-meta { display: flex; flex-wrap: wrap; gap: .4em 1em; color: var(--muted); font-size: .9em; }
.spe-meta span { display: inline-flex; align-items: center; gap: .35em; }
.spe-meta svg { width: 1em; height: 1em; }
.spe-strip { display: flex; gap: .4em; }
.spe-strip:empty { display: none; }
.spe-act { display: flex; flex-wrap: wrap; gap: .4em; margin-top: auto; }
.spe-bar { display: flex; align-items: center; gap: .7em; }
.spe-grow { flex: 1; }
.spe-form { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .9em; }
.spe-form label { display: flex; flex-direction: column; gap: .35em; }
.spe-form label > span { color: var(--muted); font-size: .82em; font-weight: 700; }
.spe-form small { color: var(--muted); font-size: .78em; }
.spe-tools { display: flex; flex-wrap: wrap; gap: 1em 2em; padding: .8em 1em; border-radius: .8em; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.spe-tools > div { display: flex; align-items: center; flex-wrap: wrap; gap: .6em; }
.spe-tools label { display: flex; align-items: center; gap: .4em; color: var(--muted); font-size: .88em; }
.spe-tools .input.sm { width: 6.5em; }
.spe-tools select.input { width: auto; min-width: 14em; }
.spe .input.sm { padding: .4em .55em; }
.spe-tbl td { vertical-align: middle; }
.spe-tbl td.n { white-space: nowrap; }
.spe-tbl td.n .tag { margin-left: .4em; }
.spe-tbl input[data-f="exp"], .spe-tbl input[data-f="count"] { width: 7.5em; }
.spe-tbl select { width: 8.5em; }
.spe-rw { display: flex; align-items: center; gap: .8em; min-width: 26em; }
.spe-rw input { width: 15em; flex: none; }
.spe-pv { display: inline-flex; align-items: center; gap: .55em; min-width: 0; }
.spe-pv > img { width: 2.2em; height: 2.2em; object-fit: contain; }
.spe-pv b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spe-money { width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; background: rgba(52, 211, 153, .14); color: var(--ok); font-weight: 900; flex: none; }
.spe-money.sp { background: rgba(167, 139, 250, .16); color: #a78bfa; }
.spe-money svg { width: 1.1em; height: 1.1em; }
.spe-veh { position: relative; width: 4.2em; height: 2.4em; border-radius: .45em; display: grid; place-items: center; background: rgba(56, 189, 248, .1); color: #38bdf8; flex: none; overflow: hidden; }
.spe-strip .spe-veh { width: 5.2em; height: 3em; }
.spe-veh svg { width: 45%; height: 45%; }
.spe-veh img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.spe-ops { white-space: nowrap; text-align: right; }
.spe-ops .btn + .btn { margin-left: .25em; }
.spe-foot { display: flex; align-items: center; gap: 1em; }
/* weitere Belohnungen eines Levels: Unterzeilen unter dem Level */
.spe-tbl tr.spe-x td { background: rgba(255, 255, 255, .015); }
.spe-tbl tr.spe-x td.n { padding-left: 1.4em; }
.spe-xn { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--accent-dim); color: var(--accent); font-weight: 900; }
.spe-ops [data-spxadd] svg { width: 1em; height: 1em; margin-right: .25em; vertical-align: -.15em; }
/* Spieler → Season Pass */
.pp-head .wbar { margin: .9em 0 .5em; }
.pp-tbl tr.on td:first-child b { color: var(--accent); }

/* Season Pass: Belohnung wählen – Knopf in der Zeile + Auswahlfenster (Items / Fahrzeuge mit Suche) */
.spe-pick { display: inline-flex; align-items: center; gap: .8em; min-width: 0; max-width: 100%; padding: .3em .75em .3em .35em; border-radius: .6em; border: 1px dashed var(--line); background: rgba(255, 255, 255, .02); color: var(--text); cursor: pointer; font: inherit; text-align: left; }
.spe-pick:hover, .spe-pick:focus-visible { border-color: var(--accent); background: var(--accent-dim); outline: none; }
.spe-pick .spe-pvw { min-width: 0; display: flex; }
.spe-chg { color: var(--accent); font-size: .8em; font-weight: 700; white-space: nowrap; }
.spe-tbl select.spe-sp { width: 19em; }
.spp { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; font-size: var(--fs); color: var(--text); }
.spp-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); }
.spp-box { position: relative; width: min(70em, 94vw); height: min(48em, 88vh); display: flex; flex-direction: column; overflow: hidden; background: #0e121a; border: 1px solid var(--line); border-radius: 1em;
    box-shadow: 0 2em 5em rgba(0, 0, 0, .55); animation: sppIn .18s var(--ease) both; }
@keyframes sppIn { from { transform: translateY(.8em); opacity: 0; } }
.spp-head { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 1.1em 1.4em; border-bottom: 1px solid var(--line); }
.spp-head h3 { margin: 0; font-size: 1.12em; font-weight: 850; }
.spp-head small { color: var(--muted); font-size: .82em; }
.spp-tools { display: flex; flex-direction: column; gap: .7em; padding: 1em 1.4em .5em; }
.spp-cats { display: flex; flex-wrap: wrap; gap: .35em; }
.spp-cat { padding: .3em .8em; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--muted); font: inherit; font-size: .8em; font-weight: 700; cursor: pointer; text-transform: capitalize; }
.spp-cat:hover, .spp-cat.on { color: var(--text); border-color: var(--accent); background: var(--accent-dim); }
.spp-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5em, 1fr)); grid-auto-rows: max-content; align-content: start; gap: .5em; padding: .6em 1.4em 1.4em; }
.spp-grid.veh { grid-template-columns: repeat(auto-fill, minmax(11.5em, 1fr)); }
.spp-grid .empty { grid-column: 1 / -1; }
.spp-t { display: flex; flex-direction: column; align-items: center; gap: .3em; min-width: 0; padding: .75em .5em .65em; border-radius: .75em; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text); cursor: pointer; font: inherit; text-align: center; }
.spp-t:hover, .spp-t:focus-visible, .spp-t.on { border-color: var(--accent); background: var(--accent-dim); outline: none; }
.spp-t > img { width: 3em; height: 3em; object-fit: contain; }
.spp-t .spe-veh { width: 100%; height: 5.2em; }
.spp-t b, .spp-t small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spp-t b { font-size: .84em; font-weight: 700; line-height: 1.2; }
.spp-t small { font-size: .72em; color: var(--muted); }

/* Einstellungen mit vielen Bereichen (z. B. Unternehmen): links Bereiche + Suche, rechts nur der gewählte Bereich */
.setnav { display: grid; grid-template-columns: 17em minmax(0, 1fr); gap: 1.1em; align-items: start; }
.sn-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: .7em; padding: .8em; border-radius: 1em; background: rgba(255, 255, 255, .025); border: 1px solid var(--line);
    max-height: calc(100vh - 14em); overflow-y: auto; }
.sn-side .input { width: 100%; }
.sn-list { display: flex; flex-direction: column; gap: .15em; }
.sn-cat { display: flex; align-items: center; gap: .6em; width: 100%; padding: .6em .75em; border: 0; border-radius: .6em; background: none; color: var(--muted); font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.sn-cat span { flex: 1; min-width: 0; line-height: 1.25; }
.sn-cat em { font-style: normal; font-size: .75em; padding: .1em .55em; border-radius: 1em; background: rgba(255, 255, 255, .08); }
.sn-cat:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.sn-cat.on { color: #fff; background: var(--accent-dim); box-shadow: inset 3px 0 0 var(--accent); }
.sn-cat.dim { opacity: .4; }
.sn-cat.dirty span::after { content: ''; display: inline-block; width: .45em; height: .45em; margin-left: .45em; border-radius: 50%; background: var(--warn); vertical-align: middle; }
.sn-main { display: flex; flex-direction: column; gap: 1.1em; min-width: 0; }
.setnav [hidden] { display: none !important; }
@media (max-width: 1000px) { .setnav { grid-template-columns: minmax(0, 1fr); } .sn-side { position: static; max-height: none; } }

/* Verwaltung → Alpha-Zugang */
.al-page { display: flex; flex-direction: column; gap: 1.2em; }
.al-status { display: flex; align-items: center; gap: 1.2em; }
.al-status.on { border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .06); }
.al-ic { width: 2.8em; height: 2.8em; border-radius: .8em; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--muted); flex: none; }
.al-status.on .al-ic { background: rgba(52, 211, 153, .14); color: var(--ok); }
.al-ic svg { width: 1.4em; height: 1.4em; }
.al-status .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3em; }
.al-status b { font-size: 1.15em; }
.al-status small { color: var(--muted); line-height: 1.45; }
.al-tags { display: flex; flex-wrap: wrap; gap: .4em; margin-top: .3em; }
.al-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.al-warn { color: var(--warn); }
.al-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.2em; align-items: start; }
.al-left { display: flex; flex-direction: column; gap: 1em; min-width: 0; }
.al-form { display: grid; grid-template-columns: 8em 10em minmax(0, 1fr) auto; gap: .8em; align-items: end; }
.al-form .field { margin: 0; }
.al-made { margin-top: .9em; display: flex; align-items: center; gap: .8em; color: var(--ok); }
.al-made:empty { display: none; }
.al-bar { justify-content: space-between; }
.al-seg { flex: none; }
.al-seg button { padding: .45em .9em; }
.al-seg em { font-style: normal; color: var(--muted); margin-left: .4em; }
.al-code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.al-act { text-align: right; white-space: nowrap; }
.al-accs { display: flex; flex-direction: column; gap: .8em; min-width: 0; }
.al-accs h3 { margin: 0; }
.al-h { justify-content: space-between; }
.al-list { display: flex; flex-direction: column; max-height: 60vh; overflow-y: auto; }
.al-li { display: flex; align-items: center; gap: .8em; padding: .55em .3em; border-bottom: 1px solid var(--line); }
.al-li:last-child { border-bottom: 0; }
.al-li .av { width: 2.2em; height: 2.2em; }
.al-li .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15em; }
.al-li small { font-size: .82em; }
.al-empty { padding: 2em 1em; }
.al-note { font-size: .85em; line-height: 1.45; }

/* Verwaltung → Discord (rl_discord) */
.dc-page { display: flex; flex-direction: column; gap: 1.2em; }
.dc-bot { display: flex; align-items: center; gap: 1em; flex-wrap: wrap; }
.dc-bot.ok { border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .06); }
.dc-bot.warn, .dc-warncard { border-color: rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .06); }
.dc-bot.err { border-color: rgba(251, 113, 133, .4); background: rgba(251, 113, 133, .06); }
.dc-bot .grow { flex: 1; min-width: 16em; display: flex; flex-direction: column; gap: .3em; }
.dc-bot b { font-size: 1.15em; }
.dc-bot small, .dc-li small { color: var(--muted); line-height: 1.45; }
.dc-ic { width: 2.8em; height: 2.8em; border-radius: .8em; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--muted); flex: none; }
.dc-bot.ok .dc-ic, .dc-ic.ok { background: rgba(52, 211, 153, .14); color: var(--ok); }
.dc-bot.warn .dc-ic, .dc-ic.warn { background: rgba(251, 191, 36, .14); color: var(--warn); }
.dc-bot.err .dc-ic, .dc-ic.err { background: rgba(251, 113, 133, .14); color: var(--err); }
.dc-ic svg { width: 1.4em; height: 1.4em; }
.dc-ic.sm { width: 2.1em; height: 2.1em; border-radius: .6em; }
.dc-ic.sm svg { width: 1.1em; height: 1.1em; }
.dc-guild { width: 14em; }
.dc-swl { margin-left: .4em; }
.dc-tok p { line-height: 1.45; }
.dc-tok .row { margin-top: .8em; flex-wrap: nowrap; }
.dc-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dc-warn { color: var(--warn); }
.dc-main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.2em; align-items: start; }
.dc-left, .dc-right { display: flex; flex-direction: column; gap: 1em; min-width: 0; }
.dc-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; }
.dc-sec h3, .dc-h h3 { margin: 0; }
.dc-h { justify-content: space-between; margin-bottom: .8em; }
.dc-act { text-align: right; white-space: nowrap; }
.dc-add { display: flex; align-items: flex-end; gap: .8em; }
.dc-add .field { margin: 0; min-width: 0; }
.dc-add .field:first-child { width: 11em; flex: none; }
.dc-add .grow { flex: 1; }
.dc-st { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8em; }
.dc-st .field { margin: 0; min-width: 0; }
.dc-chips { display: flex; gap: .4em; flex-wrap: wrap; }
.dc-chip { padding: .5em .9em; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--muted); font-weight: 700; }
.dc-chip.on { background: var(--accent-dim); color: var(--accent); border-color: var(--accent-line); }
.dc-note { font-size: .85em; line-height: 1.45; margin-top: .8em; }
.dc-list { display: flex; flex-direction: column; }
.dc-li { display: flex; align-items: center; gap: .8em; padding: .55em .2em; border-bottom: 1px solid var(--line); }
.dc-li:last-child { border-bottom: 0; }
.dc-li .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15em; }
.dc-li .av { width: 2.1em; height: 2.1em; }

/* Discord → Alpha-Code über Discord */
.dc-ag { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: .6em .9em; align-items: center; margin-bottom: .9em; }
.dc-ab { margin-bottom: 0; }

/* Spieler → Strafen (Entwurf Team C, 15.11.2026) */
.pn { display: flex; flex-direction: column; gap: 1em; }
.pn-bar { display: flex; align-items: center; gap: 1em; flex-wrap: wrap; }
.pn-seg { flex: none; }
.pn-seg button { padding: .45em .9em; }
.pn-note { font-size: .85em; }
.pn-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8em; }
.pn-k { display: flex; flex-direction: column; gap: .25em; padding: 1em 1.2em; min-width: 0; }
.pn-k span { color: var(--muted); font-size: .78em; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.pn-k b { font-size: 1.6em; font-weight: 850; font-variant-numeric: tabular-nums; }
.pn-k small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-k.warn b { color: var(--warn); }
.pn-k.err b { color: var(--err); }
.pn-main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1em; align-items: start; }
.pn-h { display: flex; align-items: center; justify-content: space-between; gap: 1em; flex-wrap: wrap; margin-bottom: .8em; }
.pn-h h3 { margin: 0; }
.pn-tl { display: flex; flex-direction: column; }
.pn-it { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto 3.4em; gap: .8em; align-items: center; padding: .7em 0; border-top: 1px solid var(--line); }
.pn-it:first-child { border-top: 0; }
.pn-it.old { opacity: .6; }
.pn-it.rev b { text-decoration: line-through; }
.pn-it .t { min-width: 0; display: flex; flex-direction: column; gap: .15em; }
.pn-it .t small { color: var(--muted); font-size: .85em; }
.pn-it .pn-tx { font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-it time { color: var(--muted); font-size: .85em; text-align: right; font-variant-numeric: tabular-nums; }
.pn-ic { width: 2.4em; height: 2.4em; border-radius: .7em; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--muted); }
.pn-ic svg { width: 1.2em; height: 1.2em; }
.pn-ic.warn { background: rgba(251, 191, 36, .14); color: var(--warn); }
.pn-ic.err { background: rgba(251, 113, 133, .14); color: var(--err); }
.pn-new { display: flex; flex-direction: column; gap: .9em; border-color: var(--accent-line); }
.pn-new h3 { margin: 0; }
.pn-search { display: flex; align-items: center; gap: .6em; padding: .55em .75em; border-radius: .55em; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.pn-search:focus-within { border-color: var(--accent-line); }
.pn-search svg { width: 1.1em; height: 1.1em; color: var(--muted); flex: none; }
.pn-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: inherit; }
.pn-list { display: flex; flex-direction: column; gap: .25em; max-height: 19em; overflow-y: auto; }
.pn-li { display: flex; align-items: center; gap: .8em; padding: .45em .6em; border-radius: .7em; text-align: left; }
.pn-li:hover { background: rgba(255, 255, 255, .04); }
.pn-li.on { background: var(--accent-dim); }
.pn-li .t { display: flex; flex-direction: column; min-width: 0; }
.pn-li small { color: var(--muted); font-size: .85em; }
.pn-form { display: flex; flex-direction: column; gap: .8em; }
.pn-form .field, .pn-ed .field, .pn-auto .field { margin: 0; }
.pn-g2 { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: .8em; }
.pn-fx { display: flex; align-items: center; gap: .7em; padding: .7em .9em; border-radius: .7em; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); color: var(--muted); font-size: .9em; }
.pn-fx svg { width: 1.2em; height: 1.2em; flex: none; }
.pn-fx b { color: #fff; }
.pn-fx.warn { background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .35); color: var(--text); }
.pn-fx.warn svg { color: var(--warn); }
.pn-fx.err { background: rgba(251, 113, 133, .08); border-color: rgba(251, 113, 133, .35); color: var(--text); }
.pn-fx.err svg { color: var(--err); }
#pn-go { justify-content: center; }
.pn-empty { padding: 2em 1em; }
.pn-tbl tr.on td { background: var(--accent-dim); }
/* Vorlagen: feste Spalten – passt immer in die Karte, Text wird gekürzt (16.11.2026: Knöpfe lagen sonst unter dem Formular) */
.pn-tw { overflow-x: auto; }
.pn-tbl { table-layout: fixed; }
.pn-tbl col.c-l { width: 30%; } .pn-tbl col.c-k { width: 7.6em; } .pn-tbl col.c-d { width: 6.8em; } .pn-tbl col.c-a { width: 6em; }
.pn-tbl td { max-width: none; }
.pn-ttx { max-width: none; }
.pn-tact { text-align: right; overflow: visible !important; }
.pn-tact .btn + .btn { margin-left: .35em; }
.btn.pn-ib { padding: .45em .55em; } .btn.pn-ib svg { width: 1.05em; height: 1.05em; margin: 0; }
.pn-clr { margin-left: auto; }
.pn-cleared { display: flex; align-items: center; gap: .5em; margin-top: .8em; padding: .7em .9em; border-radius: .7em; font-size: .85em; background: rgba(255, 255, 255, .03); border: 1px dashed var(--line); }
.pn-cleared svg { width: 1em; height: 1em; }
.pn-ed, .pn-auto { display: flex; flex-direction: column; gap: .9em; }
.pn-ed .pn-h, .pn-auto .pn-h { margin-bottom: 0; }
.pn-kind { align-self: flex-start; }
.pn-kind button { padding: .45em 1em; }
textarea.input.pn-ta { min-height: 5em; font-family: inherit; font-size: inherit; }
.pn-foot { justify-content: flex-end; }
.pn-auto { max-width: 46em; }
.pn-auto p { line-height: 1.5; }
@media (max-width: 1100px) {
    .pn-main, .pn-kpis { grid-template-columns: minmax(0, 1fr); }
    .pn-g2 { grid-template-columns: minmax(0, 1fr); }
}

/* Spieler → Protokoll (rl_playerlog) – Entwurf B (17.11.2026): Kennzahlen, Filter, Bereiche, Tabelle + Details rechts */
.pl svg { width: 1.05em; height: 1.05em; flex: none; }
.pl-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6em; margin-bottom: .9em; }
.pl-stat { padding: .65em .8em; border-radius: .7em; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); min-width: 0; }
.pl-stat small { display: block; color: var(--muted); font-size: .75em; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pl-stat b { display: block; font-size: 1.15em; font-weight: 850; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-stat.err b { color: var(--err); } .pl-stat.warn b { color: var(--warn); } .pl-stat.neg b { color: #fda4af; }
.pl-bar { display: flex; align-items: center; gap: .5em; margin-bottom: .7em; flex-wrap: wrap; }
.pl-bar .grow { flex: 1; }
.pl-day { width: auto; min-width: 11em; }
.pl-search { display: flex; align-items: center; gap: .5em; flex: 0 1 22em; padding: .5em .8em; border-radius: .6em; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--muted); }
.pl-search input { background: none; border: 0; outline: 0; color: var(--text); font: inherit; width: 100%; min-width: 0; }
.pl-tog { display: inline-flex; align-items: center; gap: .4em; padding: .45em .7em; border-radius: .6em; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); color: var(--muted); font: inherit; font-size: .88em; font-weight: 700; white-space: nowrap; cursor: pointer; }
.pl-tog.on { color: var(--ok); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
#pl-warn.on { color: var(--err); border-color: rgba(251, 113, 133, .35); background: rgba(251, 113, 133, .08); }
#pl-hold.on { color: var(--warn); border-color: rgba(251, 191, 36, .35); }
.pl-holdbox { display: flex; align-items: center; gap: .5em; padding: .6em .8em; margin-bottom: .7em; border-radius: .7em; border: 1px solid rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .05); flex-wrap: wrap; }
.pl-holdbox .grow { flex: 1; }
.pl-chips { display: flex; flex-wrap: wrap; gap: .35em; margin-bottom: .8em; }
.pl-chip { padding: .3em .65em; border-radius: 99em; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); color: #c9cfdb; font: inherit; font-size: .82em; font-weight: 700; cursor: pointer; }
.pl-chip em { font-style: normal; color: var(--muted); margin-left: .2em; }
.pl-chip.zero { opacity: .5; }
.pl-chip.on { background: var(--accent-dim); border-color: var(--accent-line); color: var(--accent); }
.pl-split { display: grid; grid-template-columns: minmax(0, 1fr) 19em; gap: .9em; align-items: start; }
.pl-wrap { max-height: 58vh; overflow-y: auto; }
.pl-tbl td { padding: .5em .7em; }
.pl-tbl tr.on td { background: rgba(var(--accent-rgb), .1); }
.pl-tbl tr.warn td:first-child { box-shadow: inset 3px 0 0 var(--err); }
.pl-tag { white-space: nowrap; }
.pl-m { max-width: 0; width: 100%; }
.pl-who { display: inline-flex; align-items: center; gap: .3em; padding: .15em .5em; border-radius: .45em; background: rgba(56, 189, 248, .12); color: #38bdf8; font-weight: 700; font-size: .85em; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pl-more { padding: .7em; text-align: center; }
.pl-det { position: sticky; top: 0; padding: 1em; border-radius: 1em; border: 1px solid var(--accent-line); background: rgba(var(--accent-rgb), .05); min-width: 0; }
.pl-det h3 { font-size: 1.1em; font-weight: 850; margin-bottom: .35em; }
.pl-full { color: #c9cfdb; font-size: .9em; margin-bottom: .8em; overflow-wrap: anywhere; }
.pl-h { display: flex; align-items: center; gap: .45em; color: var(--muted); font-size: .76em; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; margin-bottom: .55em; }
.pl-kv { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: .35em .6em; font-size: .88em; margin-bottom: .9em; }
.pl-kv span { color: var(--muted); }
.pl-kv b { overflow-wrap: anywhere; font-weight: 700; }
.pl-det .btn.wide { width: 100%; justify-content: flex-start; margin-top: .35em; }
.pl-det .btn.ghost { background: none; color: var(--muted); }
.pl-note { margin-top: .6em; font-size: .85em; }
.pl-raw { margin-top: .6em; padding: .6em; border-radius: .5em; background: rgba(0, 0, 0, .3); font-size: .75em; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 20em; overflow: auto; }
.pl-meet { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8em; }
.pl-mcol { padding: .6em .7em; border-radius: .7em; background: rgba(0, 0, 0, .18); }
.pl-mline { display: flex; align-items: center; gap: .5em; padding: .32em .2em; font-size: .88em; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.pl-mline time { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.pl-mline span:last-child { min-width: 0; overflow-wrap: anywhere; }
.pl-mline.hl { color: #fff; font-weight: 700; }
.pl-mline.hl time { color: var(--accent); }
@media (max-width: 1100px) {
    .pl-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pl-split { grid-template-columns: minmax(0, 1fr); }
    .pl-det { position: static; }
}

/* Kleidungskatalog (Aussehen & Kleidung, Entwurf B vom 20.11.2026): Kategorien-Chips, Kacheln je Teil, Mehrfachauswahl */
.kc-head { display: flex; align-items: center; gap: 1em; margin-bottom: 1em; }
.kc-g { flex: none; width: 13em; }
.kc-chips { display: flex; flex-wrap: wrap; gap: .35em; }
.kc-chip { display: inline-flex; align-items: center; gap: .45em; padding: .4em .75em; border-radius: 99em; font-weight: 700; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.kc-chip em { font-style: normal; font-size: .8em; opacity: .8; }
.kc-chip.on { color: #fff; background: var(--accent-dim); border-color: var(--accent-line); }
.kc-bar { display: flex; align-items: center; gap: .8em; margin-bottom: .9em; flex-wrap: wrap; }
.kc-grow { flex: 1; }
.kc-search { display: flex; align-items: center; gap: .5em; width: 20em; padding: .5em .75em; border-radius: .6em; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); color: var(--muted); }
.kc-search svg { width: 1.1em; height: 1.1em; flex: none; }
.kc-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; }
.kc-tog { display: inline-flex; align-items: center; gap: .55em; font-weight: 600; color: var(--muted); }
.kc-bulk { display: flex; align-items: center; gap: .7em; flex-wrap: wrap; padding: .6em .9em; margin-bottom: 1em; border-radius: .8em; background: var(--accent-dim); border: 1px solid var(--accent-line); }
.kc-bulk label { display: inline-flex; align-items: center; gap: .5em; color: var(--muted); }
.kc-bulk .input { width: 6em; padding: .4em .6em; }
.kc-bulk svg { width: 1.1em; height: 1.1em; }
.kc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5em, 1fr)); gap: .8em; }
.kc-card { position: relative; display: flex; flex-direction: column; gap: .45em; padding: 1em; border-radius: 1em; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); cursor: pointer; }
.kc-card:hover { border-color: var(--accent-line); }
.kc-card.sel { border-color: var(--accent-line); background: var(--accent-dim); }
.kc-card.off { opacity: .55; }
.kc-pick { position: absolute; top: .8em; right: .8em; width: 1.5em; height: 1.5em; border-radius: .4em; display: grid; place-items: center; border: .12em solid rgba(255, 255, 255, .25); color: #fff; }
.kc-card.sel .kc-pick { background: var(--accent); border-color: transparent; }
.kc-pick svg { width: 75%; height: 75%; }
.kc-num { width: 2.6em; height: 2.6em; border-radius: .7em; display: grid; place-items: center; font-weight: 900; font-size: 1.05em; color: #fff; background: var(--accent-dim); border: 1px solid var(--accent-line); font-variant-numeric: tabular-nums; }
.kc-card > b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 1.6em; }
.kc-dots { display: flex; gap: .2em; min-height: .6em; }
.kc-dots i { width: .6em; height: .6em; border-radius: 50%; background: var(--accent); opacity: .55; }
.kc-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .88em; }
.kc-meta b { color: var(--text); }
.kc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .3em; }
.kc-ed { margin-left: auto; width: 1.9em; height: 1.9em; border-radius: .5em; display: grid; place-items: center; color: var(--muted); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.kc-ed:hover { color: #fff; border-color: var(--accent-line); }
.kc-ed svg { width: 60%; height: 60%; }

/* NO-DM-Zonen (Entwurf C vom 21.11.2026): Liste links, Zone rechts mit Regel-Schaltern und Ausnahmen */
.nd-split { display: grid; grid-template-columns: 22em minmax(0, 1fr); gap: 1.2em; align-items: start; }
.nd-left { display: flex; flex-direction: column; gap: .6em; }
.nd-search { display: flex; align-items: center; gap: .5em; padding: .5em .75em; border-radius: .6em; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); color: var(--muted); }
.nd-search svg { width: 1.1em; height: 1.1em; flex: none; }
.nd-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; }
.nd-list { display: flex; flex-direction: column; gap: .25em; }
.nd-li { display: flex; align-items: center; gap: .7em; padding: .55em .6em; border-radius: .7em; text-align: left; border: 1px solid transparent; }
.nd-li:hover { background: rgba(255, 255, 255, .03); }
.nd-li > span:nth-child(2) { flex: 1; min-width: 0; }
.nd-li b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-li small { display: block; color: var(--muted); font-size: .82em; }
.nd-li.on { background: var(--accent-dim); border-color: var(--accent-line); }
.nd-li.off { opacity: .55; }
.nd-left .btn.wide { width: 100%; }
.nd-cic { width: 2.6em; height: 2.6em; border-radius: .7em; display: grid; place-items: center; flex: none; color: rgb(52, 211, 153); background: rgba(52, 211, 153, .14); border: 1px solid rgba(52, 211, 153, .35); }
.nd-cic svg { width: 58%; height: 58%; }
.nd-cic.big { width: 3.2em; height: 3.2em; }
.nd-main { display: flex; flex-direction: column; gap: 1em; }
.nd-mh { display: flex; align-items: center; gap: 1em; }
.nd-mh .grow { flex: 1; min-width: 0; }
.nd-mh .btn svg { width: 1.1em; height: 1.1em; }
.nd-form { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 1em; align-items: end; }
.nd-form .field { margin: 0; }
.nd-rules { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; }
.nd-rule { display: flex; align-items: center; gap: .8em; padding: .8em; border-radius: .8em; text-align: left; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.nd-rule.on { border-color: rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .06); }
.nd-rule > span:nth-child(2) { flex: 1; min-width: 0; }
.nd-rule small { display: block; color: var(--muted); font-size: .82em; }
.nd-rule .switch { display: block; }
.nd-ric { width: 2.2em; height: 2.2em; border-radius: .6em; display: grid; place-items: center; flex: none; color: rgb(52, 211, 153); background: rgba(52, 211, 153, .12); }
.nd-ric svg { width: 60%; height: 60%; }
.nd-exs { display: flex; flex-wrap: wrap; gap: .4em; }
.nd-fx { padding: .45em .9em; border-radius: 99em; font-weight: 700; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.nd-fx.on { color: #fff; background: var(--accent-dim); border-color: var(--accent-line); }
.nd-foot { display: flex; align-items: center; gap: .6em; padding-top: 1em; border-top: 1px solid var(--line); }
.nd-foot .grow { flex: 1; }
