/* Nur Ergänzungen fürs Browserfenster – das eigentliche Design kommt 1:1 aus rl_admin (/admin.css) */
html, body { height: 100%; margin: 0; }
body { background: #0a0d13; color: var(--text); font-size: var(--fs); user-select: text; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
.me { display: flex; align-items: center; gap: .7em; padding: .7em; border-radius: .8em; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.me div { min-width: 0; }
.me b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me small { color: var(--muted); font-size: .8em; }
.pl { max-height: calc(100vh - 19em); }
.lg-row td { white-space: normal; }
@media (max-width: 900px) {
    #app { grid-template-columns: 1fr; }
    .rail { display: none; }
    .players { grid-template-columns: 1fr; }
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash { grid-template-columns: 1fr; }
}

/* ---------- server.cfg-Editor ---------- */
.cfg { display: grid; grid-template-columns: minmax(0, 1fr) 21em; gap: 1em; align-items: start; }
.cfg-main { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.cfg-bar { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .7em 1em; border-bottom: 1px solid var(--line); font-size: .85em; }
.cfg-bar .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Consolas, monospace; }
.cfg-ed { --lh: 1.55em; display: grid; grid-template-columns: auto minmax(0, 1fr); height: calc(100vh - 17em); min-height: 20em; overflow: hidden;
    font-family: Consolas, 'Cascadia Mono', monospace; font-size: .9em; line-height: var(--lh); background: rgba(0, 0, 0, .28); }
.cfg-ed pre, .cfg-ed textarea { margin: 0; padding: .9em 1em; font: inherit; line-height: inherit; tab-size: 4; white-space: pre; }
.cfg-gut { color: rgba(255, 255, 255, .22); text-align: right; user-select: none; border-right: 1px solid var(--line); min-width: 3.2em; overflow: hidden; }
.cfg-code { position: relative; overflow: hidden; }
.cfg-hl { position: absolute; inset: 0; pointer-events: none; color: #d6dbe6; min-width: max-content; }
.cfg-ed textarea { position: absolute; inset: 0; width: 100%; height: 100%; resize: none; border: 0; outline: none; overflow: auto;
    background: transparent; color: transparent; caret-color: var(--accent); }
.cfg-ed textarea::selection { background: rgba(var(--accent-rgb), .28); color: transparent; }
.cfg-hl i { font-style: normal; }
.c-com { color: #6b7385; font-style: italic !important; }
.c-ens { color: #34d399; font-weight: 700; } .c-off { color: #fb7185; font-weight: 700; }
.c-set { color: var(--accent); font-weight: 700; } .c-key { color: #93c5fd; }
.c-ace { color: #fbbf24; font-weight: 700; } .c-exe, .c-ep { color: #c4b5fd; font-weight: 700; } .c-cmd { color: #e2e8f0; font-weight: 700; }
.c-res { color: #e7ecf5; } .c-str { color: #fdba74; } .c-mask { color: #fb7185; }
.cfg-side { display: flex; flex-direction: column; gap: 1em; }
#cfg-checks { max-height: 32vh; overflow-y: auto; }
#cfg-checks > *, #cfg-baks > * { flex-shrink: 0; }
#cfg-baks { max-height: 30vh; overflow-y: auto; }
.cfg-p { font-size: .88em; line-height: 1.5; margin-bottom: .6em; }
.cfg-chk { font-size: .86em; line-height: 1.45; padding: .55em .7em; border-radius: .55em; margin-bottom: .45em; border: 1px solid var(--line); }
.cfg-chk.err { color: var(--err); background: rgba(251, 113, 133, .08); border-color: rgba(251, 113, 133, .3); }
.cfg-chk.warn { color: var(--warn); background: rgba(251, 191, 36, .07); border-color: rgba(251, 191, 36, .28); }
.cfg-chk.ok { color: var(--ok); background: rgba(52, 211, 153, .07); border-color: rgba(52, 211, 153, .28); }
.cfg-bak { display: flex; align-items: center; gap: .8em; padding: .55em 0; border-bottom: 1px solid var(--line); }
.cfg-bak:last-child { border-bottom: 0; }
.cfg-bak div { flex: 1; min-width: 0; }
.cfg-bak b { display: block; font-size: .9em; }
.cfg-bak small { color: var(--muted); font-size: .78em; }
@media (max-width: 1100px) { .cfg { grid-template-columns: 1fr; } }

/* ---------- Überwachung ---------- */
.mpill { display: inline-flex; align-items: center; gap: .55em; padding: .55em 1em; border-radius: 99px; font-weight: 800; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.mpill svg { width: 1.2em; height: 1.2em; }
.mpill small { color: var(--muted); font-weight: 600; }
.mpill.ok { color: var(--ok); border-color: rgba(52, 211, 153, .35); } .mpill.warn { color: var(--warn); border-color: rgba(251, 191, 36, .35); }
.mpill.err { color: var(--err); border-color: rgba(251, 113, 133, .4); background: rgba(251, 113, 133, .08); }
.mstatus { display: flex; align-items: center; gap: 1.1em; padding: 1.2em 1.4em; border-radius: 1em; border: 1px solid var(--line); margin-bottom: 1.1em;
    background: linear-gradient(100deg, rgba(52, 211, 153, .12), rgba(255, 255, 255, .02) 60%); }
.mstatus.warn { background: linear-gradient(100deg, rgba(251, 191, 36, .14), rgba(255, 255, 255, .02) 60%); border-color: rgba(251, 191, 36, .35); }
.mstatus.err { background: linear-gradient(100deg, rgba(251, 113, 133, .16), rgba(255, 255, 255, .02) 60%); border-color: rgba(251, 113, 133, .45); }
.ms-ic { width: 2.8em; height: 2.8em; border-radius: .8em; display: grid; place-items: center; flex: none; background: rgba(52, 211, 153, .18); color: var(--ok); }
.mstatus.warn .ms-ic { background: rgba(251, 191, 36, .18); color: var(--warn); } .mstatus.err .ms-ic { background: rgba(251, 113, 133, .2); color: var(--err); }
.ms-ic svg { width: 55%; height: 55%; }
.mstatus > div { flex: 1; min-width: 0; }
.mstatus b { display: block; font-size: 1.15em; }
.mstatus small { color: var(--muted); }
.ms-r { display: flex; flex-direction: column; align-items: flex-end; gap: .25em; flex: none !important; font-size: .85em; color: var(--muted); }
.ms-r b { display: inline; font-size: 1em; color: var(--text); }
.mkpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1em; margin-bottom: 1.4em; }
.mkpis .kpi b small { font-size: .5em; color: var(--muted); font-weight: 700; }
.mkpis .kpi > small { display: block; color: var(--muted); font-size: .8em; margin-top: .3em; }
.c-warn { color: var(--warn); } .c-err { color: var(--err); }
.mbar { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-bottom: .9em; flex-wrap: wrap; }
.mbar h3 { font-size: 1em; font-weight: 800; }
.mhint { font-size: .85em; margin: -.2em 0 .9em; line-height: 1.5; }
.mcharts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1em; margin-bottom: 1.4em; }
.mcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1em; margin-bottom: 1.4em; }
.mchart { display: flex; flex-direction: column; gap: .7em; min-width: 0; }
.mch-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; flex-wrap: wrap; }
.mch-h h3 { margin: 0; }
.mch-lg { display: flex; gap: 1em; flex-wrap: wrap; font-size: .82em; color: var(--muted); }
.mch-lg span { display: inline-flex; align-items: center; gap: .35em; }
.mch-lg i { width: .7em; height: .7em; border-radius: 50%; display: inline-block; }
.mch-lg b { color: var(--text); }
.mch-lg small { opacity: .7; }
.mch-box { display: grid; grid-template-columns: 3.6em minmax(0, 1fr); grid-template-rows: 11em auto; column-gap: .5em; }
.mch-y { display: flex; flex-direction: column; justify-content: space-between; text-align: right; font-size: .72em; color: var(--muted); font-variant-numeric: tabular-nums; }
.mch-plot { position: relative; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mch-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mch-grid { stroke: rgba(255, 255, 255, .06); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mch-x { grid-column: 2; display: flex; justify-content: space-between; font-size: .72em; color: var(--muted); padding-top: .35em; }
.mch-cur { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .35); display: none; pointer-events: none; }
.mch-tip { position: absolute; top: .4em; min-width: 10em; padding: .55em .7em; border-radius: .6em; background: #10151d; border: 1px solid var(--line-strong);
    font-size: .8em; display: none; flex-direction: column; gap: .2em; pointer-events: none; z-index: 2; box-shadow: 0 .6em 1.6em rgba(0, 0, 0, .5); }
.mch-tip span { display: flex; align-items: center; gap: .4em; white-space: nowrap; }
.mch-tip i { width: .6em; height: .6em; border-radius: 50%; display: inline-block; }
.mch-plot.hov .mch-cur { display: block; } .mch-plot.hov .mch-tip { display: flex; }
.mch-empty { color: var(--muted); text-align: center; padding: 3em 1em; font-size: .9em; }
.mch-note { color: var(--muted); font-size: .75em; }
.mrange button { padding: .45em .9em; }
.mbar .seg button { white-space: nowrap; }
.tbl tr.mbad td { background: rgba(251, 113, 133, .05); }
.mpre { margin: .4em 0 0; padding: .8em 1em; border-radius: .6em; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); font-family: Consolas, monospace; font-size: .82em;
    white-space: pre-wrap; word-break: break-word; color: #e2e8f0; max-height: 18em; overflow: auto; }
.mdet { padding: .4em 0; display: flex; flex-direction: column; gap: .4em; }
.mhb { display: grid; grid-template-columns: 9em minmax(0, 1fr) 3em; gap: .8em; align-items: center; margin-bottom: .6em; font-size: .9em; }
.mhb div { height: .7em; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.mhb i { display: block; height: 100%; border-radius: 99px; }
.mhb b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 1200px) { .mcharts, .mcols { grid-template-columns: 1fr; } .mkpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Lasttest: Voreinstellungen, Aktions-Gruppen, Server-Aufrufe */
.st-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(15em, 1fr)); gap: .7em; }
.st-pre { display: flex; flex-direction: column; gap: .3em; padding: .9em 1em; border-radius: .9em; text-align: left; background: rgba(255, 255, 255, .03);
    border: 1px solid var(--line); color: var(--text); cursor: pointer; transition: border-color .15s, background .15s; }
.st-pre:hover { border-color: rgba(var(--accent-rgb), .5); }
.st-pre.on { border-color: rgba(var(--accent-rgb), .8); background: rgba(var(--accent-rgb), .1); }
.st-pre small { color: var(--muted); line-height: 1.35; }
.st-acts tr.st-grp td { padding-top: 1.1em; background: rgba(255, 255, 255, .02); }
.st-acts tr.st-off td { opacity: .5; }
.st-res { border-top: 1px solid var(--line); }
.st-resh { display: flex; align-items: center; gap: .8em; padding: .7em .2em; cursor: pointer; }
.st-resh .btn { margin-left: auto; }
.st-resh .st-car { color: var(--muted); width: 1em; text-align: right; }
.st-resh:not(:has(.btn)) .st-car { margin-left: auto; }
.st-cbs { display: flex; flex-wrap: wrap; gap: .4em; padding: 0 .2em .9em; }
.st-cb { display: inline-flex; align-items: center; gap: .4em; padding: .35em .65em; border-radius: .6em; font: inherit; font-size: .85em; cursor: pointer;
    background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--text); }
.st-cb:hover { border-color: rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .08); }
.st-cb em { font-style: normal; font-size: .8em; color: var(--muted); }
.st-cb em.w { color: #fbbf24; }
.st-timers { display: flex; flex-wrap: wrap; gap: .5em; }
.st-tm { display: flex; flex-direction: column; gap: .15em; padding: .5em .8em; border-radius: .7em; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.st-tm small { color: var(--muted); font-size: .8em; }
.st-tm.off { opacity: .45; }
a.btn { text-decoration: none; }
.live-dot { width: .55em; height: .55em; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: .1em; animation: livepulse 2s infinite; }
.live-dot.off { background: var(--muted); animation: none; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 70% { box-shadow: 0 0 0 .5em rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
/* Forum: Einstellungen und Tastatur des Lexikons */
.fw-set { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; gap: .6em 1.2em; align-items: start; padding: .9em 0; border-top: 1px solid var(--line); }
.card h3 + .fw-set { border-top: 0; }
.fw-set__l b { display: block; }
.fw-set__l small { display: block; margin-top: .25em; color: var(--muted); line-height: 1.45; }
.fw-set__v .input { width: 100%; }
.fw-set__v textarea { min-height: 7em; resize: vertical; }
.fw-set__v textarea.mono { font-family: ui-monospace, Consolas, monospace; font-size: .88em; }
.fw-set__a { display: flex; gap: .4em; align-items: center; justify-content: flex-end; min-width: 12em; }
.fw-set [hidden] { display: none !important; }
.fw-keys { display: grid; gap: .8em; }
.fw-key { padding: .9em; border-radius: .8em; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.fw-key__top { display: grid; grid-template-columns: 10em minmax(0, 1fr) 12em auto auto auto; gap: .5em; margin-bottom: .5em; align-items: center; }
.fw-key textarea { width: 100%; resize: vertical; }
@media (max-width: 900px) {
    .fw-set { grid-template-columns: 1fr; }
    .fw-set__a { justify-content: flex-start; min-width: 0; }
    .fw-key__top { grid-template-columns: 1fr 1fr; }
}

/* Spielverwaltung (F10-Adminpanel im Browser): der Rahmen füllt den Inhaltsbereich, Kopf und Inhalt der Web-Administration treten zurück */
.f10frame { display: block; flex: 1 1 auto; width: 100%; min-height: 0; border: 0; background: #0a0d13; }
.f10frame[hidden] { display: none; }
.main.f10on > .top, .main.f10on > .content { display: none; }
.rail .navsearch { margin: 0; }

/* Spieler: Reiter des Adminpanels (Inventar, Scheine, Status, Jobs, Zurücksetzen) eingebettet */
.psolo { margin-top: .4em; }
.psolo[hidden] { display: none; }
.f10solo { display: block; width: 100%; height: calc(100vh - 20em); min-height: 32em; border: 0; border-radius: .8em; background: transparent; }

/* ---------- Anmeldung: gleiche Optik wie die Anmeldung im Forum ---------- */
.login { position: fixed; inset: 0; z-index: 50; overflow-y: auto; background: #0b0f16; color: #e6e9ef;
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif; font-size: 15px; line-height: 1.45; }
.l-head { display: grid; place-items: center; height: clamp(10em, 40vh, 21em); border-bottom: 1px solid #1f2631; overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 40px 40px,
        radial-gradient(55% 90% at 78% 55%, rgba(38, 116, 178, .26), transparent 70%),
        linear-gradient(180deg, #0f141c, #111821); }
.l-logo { display: flex; align-items: center; gap: .5em; font-family: Inter, 'Segoe UI', sans-serif; font-weight: 800; font-size: clamp(1.6em, 3.1vw, 2.6em);
    letter-spacing: -.01em; white-space: nowrap; user-select: none; }
.l-logo img { width: 2.75em; height: 2.75em; object-fit: contain; background: radial-gradient(closest-side, rgba(70, 160, 240, .28), transparent); }
.l-logo b { font-weight: inherit; color: #f3f6fa; }
.l-logo i { font-style: normal; color: #2f9cec; background: linear-gradient(180deg, #4fc2ff, #1f7fd6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.l-body { width: min(532px, 100%); margin: 0 auto; padding: 1.7em 16px 3em; box-sizing: border-box; }
.l-title { margin: 0 0 1.05em; text-align: center; font-size: 1.95em; font-weight: 400; color: #eef1f5; }
.l-box { display: flex; flex-direction: column; gap: 1.35em; padding: 1.35em; background: #0e131b; border: 1px solid #222a35; border-radius: 3px; }
.l-field { display: flex; flex-direction: column; gap: .4em; }
.l-field > label { font-weight: 500; color: #e3e7ee; }
.l-field em, .l-note em { font-style: normal; color: #e5484d; }
.l-input { width: 100%; box-sizing: border-box; height: 2.15em; padding: 0 .6em; font: inherit; color: #f4f6f9; background: #272f3e; border: 1px solid #39435a;
    border-radius: 7px; outline: none; transition: border-color .15s, background-color .15s; }
.l-input:focus { border-color: #2f8fe0; background: #2b3445; }
.l-pw { display: flex; gap: .35em; }
.l-pw .l-input { flex: 1; min-width: 0; }
.l-eye { flex: none; width: 3.9em; height: 2.15em; display: grid; place-items: center; border-radius: 7px; background: #1b2230; border: 1px solid #2e3746; color: #e6e9ef; transition: background-color .15s; }
.l-eye:hover { background: #232b3a; }
.l-eye svg { width: 1.15em; height: 1.15em; }
.l-eye .off, .l-eye.on .eye { display: none; }
.l-eye.on .off { display: block; }
.l-lost { align-self: flex-start; font-size: .82em; color: #3ea3ff; text-decoration: none; }
.l-lost:hover { color: #74bdff; }
.l-lost[hidden] { display: none; }
.l-submit { margin-top: .4em; height: 2.55em; border-radius: 3px; background: #1f7fd4; color: #fff; font-weight: 500; transition: background-color .15s; }
.l-submit:hover { background: #2a8be2; }
.l-submit:disabled { opacity: .6; cursor: default; }
.l-err { padding: .65em .85em; border-radius: 3px; background: rgba(229, 72, 77, .12); border: 1px solid rgba(229, 72, 77, .45); color: #ffb9bb; font-size: .92em; }
.l-err:empty { display: none; }
.l-note { margin: 1.1em 0 0; font-size: .8em; color: #9aa3b1; }
@media (max-width: 600px) {
    .l-head { height: 9.5em; }
    .l-logo { font-size: 1.5em; }
    .l-title { font-size: 1.6em; }
    .l-box { padding: 1.1em; }
}

/* Mehrfach-Accounts (20.11.2026, Entwurf C) */
.mu-badge { margin-left: auto; padding: .05em .55em; border-radius: 99px; font-style: normal; font-size: .78em; font-weight: 800; background: rgba(251, 191, 36, .18); color: var(--warn); }
.mu-cc-head { display: flex; align-items: center; gap: .8em; margin-bottom: 1em; }
.mu-cc-head .tag { margin-left: auto; }
.mu-cmp td, .mu-cmp th { white-space: normal; }
.mu-dec { margin-top: .8em; font-size: .88em; }
.mu-note { display: flex; flex-direction: column; gap: .4em; margin-top: 1em; }
.mu-cc-acts { margin-top: 1em; }
.mu-hist { margin-top: 1.2em; display: flex; flex-direction: column; gap: .4em; font-size: .9em; }
.mu-hist > div { padding: .6em .8em; border-radius: .6em; background: rgba(255, 255, 255, .03); }
#m-list .pli .tag { margin-left: auto; }
