:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --text: #1c2026;
  --muted: #6b7280;
  --line: #dfe3e8;
  --accent: #3b5bdb;
  --accent-text: #ffffff;
  --bad: #c92a2a;
  --bad-bg: #ffe3e3;
  --ok: #2b8a3e;
  --ok-bg: #d3f9d8;
  --warn-bg: #fff3bf;
  --warn: #d9730d;
  --fx2: #8b5cf6;
  --fxline: rgba(59, 91, 219, .09);
  color-scheme: light;
}
/* Dunkel: gewählt oder (ohne Auswahl) vom System vorgegeben */
:root[data-theme="dark"] {
  --bg: #14171c; --panel: #1d2128; --text: #e6e9ee; --muted: #98a1ad; --line: #2d333c;
  --accent: #748ffc; --accent-text: #11141a; --bad: #ff8787; --bad-bg: #3b1d1f; --ok: #69db7c; --ok-bg: #1d3524; --warn-bg: #3d3416; --warn: #ffa94d;
  --fx2: #b197fc; --fxline: rgba(116, 143, 252, .10); color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #14171c; --panel: #1d2128; --text: #e6e9ee; --muted: #98a1ad; --line: #2d333c;
    --accent: #748ffc; --accent-text: #11141a; --bad: #ff8787; --bad-bg: #3b1d1f; --ok: #69db7c; --ok-bg: #1d3524; --warn-bg: #3d3416; --warn: #ffa94d;
    --fx2: #b197fc; --fxline: rgba(116, 143, 252, .10); color-scheme: dark;
  }
}
/* Neon: sehr dunkles Blau mit Cyan und Violett */
/* Ozean: tiefes Petrol mit Türkis */
/* Abendrot: dunkles Pflaumenviolett mit Orange und Rosa */
/* Wald: tiefes Grün mit Limette */
/* Matrix: Schwarz mit leuchtendem Grün, Schrift wie im Terminal */
/* Cyberpunk: Nachtviolett mit Magenta und Cyan */
/* Reaktor: Anthrazit mit glühendem Rot-Orange */
/* Saphir: tiefes Mitternachtsblau mit klarem Himmelblau */
/* Eisblau: kühles Schiefer-Blau mit Eis-Türkis, etwas heller und ruhiger */
* { box-sizing: border-box; }
:root { --mainw: calc(70rem + 250px + 1.4rem); --toph: 4rem; }
body {
  margin: 0;
  background: var(--page, var(--bg)) fixed;
  color: var(--text);
  font: 15px/1.5 var(--font, system-ui, -apple-system, "Segoe UI", sans-serif);
}
a { color: var(--accent); }
h1, h2, h3 { margin: 0 0 .6rem; line-height: 1.25; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

header.top {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem;
  padding: .75rem 1.25rem; background: var(--panel); border-bottom: 1px solid var(--line);
}
header.top .brand { font-weight: 700; font-size: 1.2rem; }
header.top nav { display: flex; gap: .25rem; flex-wrap: wrap; flex: 1; }
header.top nav a {
  padding: .35rem .8rem; border-radius: 6px; text-decoration: none; color: var(--text);
}
header.top nav a.active { background: var(--accent); color: var(--accent-text); }
header.top .me { color: var(--muted); font-size: .9rem; }

main { max-width: var(--mainw); margin: 1.25rem auto; padding: 0 1rem 3rem; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 1rem 1.1rem; margin-bottom: 1rem;
}
.card > :last-child { margin-bottom: 0; }

label { display: block; margin-bottom: .6rem; }
label > span { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .15rem; }
input, select, textarea {
  width: 100%; padding: .45rem .6rem; font: inherit; color: inherit;
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
}
input[type=checkbox] { width: auto; margin-right: .4rem; }
input:disabled, textarea:disabled { opacity: .7; }
textarea { resize: vertical; }
.grid { display: grid; gap: 0 .8rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.bar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.bar .grow { flex: 1; min-width: 12rem; }

button, a.button {
  display: inline-block; padding: .45rem .9rem; font: inherit; cursor: pointer; text-decoration: none;
  background: var(--accent); color: var(--accent-text); border: 0; border-radius: 6px;
}
button.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
button.danger { background: transparent; color: var(--bad); border: 1px solid var(--bad); }
button:disabled { opacity: .5; cursor: not-allowed; }

details { margin-bottom: 1rem; }
details > summary { cursor: pointer; font-weight: 600; margin-bottom: .6rem; }
details.card > summary { margin-bottom: 0; }
details[open].card > summary { margin-bottom: .75rem; }

.list { display: flex; flex-direction: column; gap: .4rem; }
a.row {
  display: flex; gap: .8rem; align-items: center; padding: .6rem .8rem; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
}
a.row:hover { border-color: var(--accent); }
a.row .name { font-weight: 600; flex: 1; }

.badge {
  display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .8rem;
  background: var(--line); color: var(--text);
}
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); }

.item { padding: .7rem 0; border-top: 1px solid var(--line); }
.item:first-of-type { border-top: 0; padding-top: 0; }
.item .head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.item .head .grow { flex: 1; }
.item p { margin: .3rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.revoked { opacity: .6; }
pre { overflow: auto; max-height: 14rem; padding: .6rem; background: var(--bg); border-radius: 6px; font-size: .8rem; }

.chk { display: inline-flex; align-items: center; margin: 0 1rem .3rem 0; }
.chk input { margin-right: .35rem; }

table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .4rem .5rem; border-top: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; border-top: 0; }
td.details { max-width: 22rem; overflow-wrap: anywhere; color: var(--muted); font-size: .8rem; }

.login { max-width: 22rem; margin: 18vh auto; text-align: center; padding: 0 1rem; }

#toast {
  position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); max-width: 90vw;
  padding: .6rem 1rem; border-radius: 8px; background: var(--text); color: var(--bg);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
#toast.show { opacity: 1; }
#toast.error { background: var(--bad); color: #fff; }

.mt { margin-top: 1rem; }
.userhead { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: .6rem; }

.avatar { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: var(--line); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .15rem .9rem; margin: .5rem 0 0; font-size: .88rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }

.guildhead { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.guildhead h2 { margin: 0 0 .25rem; }
.guildhead .grow { flex: 1; min-width: 10rem; }
.avatar.placeholder { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }
a.button.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
code { background: var(--bg); padding: .05rem .35rem; border-radius: 4px; font-size: .9em; }

/* Server-Detailseite */
.subnav { display: flex; gap: .25rem; flex-wrap: wrap; margin-top: .9rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.subnav a { padding: .3rem .8rem; border-radius: 6px; text-decoration: none; color: var(--text); }
.subnav a.active { background: var(--accent); color: var(--accent-text); }
.avatar.sm { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.person { display: inline-flex; align-items: center; gap: .5rem; }
.roles { display: flex; flex-wrap: wrap; gap: .4rem; }
.badge.role { display: inline-flex; align-items: center; gap: .35rem; }
.dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; background: var(--muted); }

/* Kanal-Vorschau im Stil der Discord-Seitenleiste (immer dunkel, wie in Discord) */
.dc { background: #2b2d31; color: #949ba4; border-radius: 8px; padding: .5rem .3rem .8rem; max-width: 22rem; font-size: .95rem; }
.dc-title { color: #f2f3f5; font-weight: 700; padding: .5rem .7rem .6rem; border-bottom: 1px solid #1e1f22; margin-bottom: .4rem; }
.dc details { margin: .5rem 0 0; }
.dc summary { list-style: none; cursor: pointer; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; padding: .2rem .5rem; margin: 0; color: #949ba4; }
.dc summary::-webkit-details-marker { display: none; }
.dc summary::before { content: '▾ '; }
.dc details:not([open]) > summary::before { content: '▸ '; }
.dc summary:hover { color: #dbdee1; }
.dc .ch { display: flex; align-items: center; gap: .45rem; padding: .22rem .55rem; margin: .05rem .35rem; border-radius: 4px; }
.dc .ch:hover { background: #35373c; color: #dbdee1; }
.dc .ch .ico { width: 1.2rem; text-align: center; opacity: .85; flex: none; }
.dc .ch .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc .ch .tag { margin-left: auto; font-size: .62rem; font-weight: 700; padding: 0 .3rem; border-radius: 3px; background: #4e5058; color: #dbdee1; }
.dc .ch.muted-ch { font-style: italic; opacity: .6; }

/* Spielerübersicht: Karten in 2-3 Spalten */
main { max-width: var(--mainw); }
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: .6rem; align-items: start; }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; }
.pcard .phead { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; }
.pcard .pname { font-weight: 600; color: var(--text); text-decoration: none; }
.pcard .pname:hover { color: var(--accent); }
.pcard .aka { overflow-wrap: anywhere; }
.pids { margin: .4rem 0 0; }
.pids > summary { display: flex; align-items: center; gap: .5rem; margin: 0; font-weight: 400; }
.picons { display: inline-flex; gap: .25rem; flex-wrap: wrap; }
.idlist { margin-top: .4rem; display: flex; flex-direction: column; gap: .3rem; }
.idrow { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-size: .85rem; }
.idrow .idname { font-weight: 600; overflow-wrap: anywhere; }
.pi { display: inline-flex; align-items: center; justify-content: center; min-width: 1.7rem; height: 1.3rem; padding: 0 .25rem; border-radius: 4px; font-size: .62rem; font-weight: 700; letter-spacing: .03em; color: #fff; background: #6b7280; flex: none; }
.pi.steam { background: #1b2838; }
.pi.battlemetrics { background: #e8590c; }
.pi.twitch { background: #9146ff; }
.pi.discord { background: #5865f2; }

/* Kanäle + Chatverlauf nebeneinander */
.split { display: grid; grid-template-columns: minmax(14rem, 22rem) 1fr; gap: .8rem; align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.dc .ch.clickable { cursor: pointer; }
.dc .ch.active { background: #404249; color: #fff; }
.dcchat { background: #313338; color: #dbdee1; border-radius: 8px; min-height: 12rem; max-height: 38rem; overflow-y: auto; padding: .5rem .8rem .8rem; }
.dc-chead { position: sticky; top: 0; background: #313338; font-weight: 700; color: #f2f3f5; padding: .4rem 0; border-bottom: 1px solid #1e1f22; margin-bottom: .4rem; z-index: 1; }
.dc-empty { color: #949ba4; text-align: center; margin: 2rem 0; }
.dc-note { background: #3d3416; color: #f0d98a; border-radius: 6px; padding: .35rem .6rem; font-size: .82rem; margin: 0 0 .5rem; }
.dc-note:empty { display: none; }
.small-btn { font-size: .85rem; padding: .25rem .7rem; margin-bottom: .5rem; color: #dbdee1; border-color: #4e5058; }
.msg { display: flex; gap: .6rem; padding: .3rem 0; }
.msg .avatar.sm { margin-top: .15rem; }
.mbody { min-width: 0; flex: 1; }
.mhead { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.mauthor { font-weight: 600; color: #f2f3f5; }
.mtime { font-size: .72rem; color: #949ba4; }
.mtext { white-space: pre-wrap; overflow-wrap: anywhere; }
.mimg { max-width: min(100%, 22rem); max-height: 16rem; border-radius: 6px; margin-top: .3rem; display: block; }
.membed { border-left: 4px solid #4e5058; background: #2b2d31; padding: .3rem .6rem; margin-top: .3rem; border-radius: 0 4px 4px 0; font-size: .88rem; overflow-wrap: anywhere; }
.dcchat a { color: #00a8fc; }
.dcchat .tag { font-size: .62rem; font-weight: 700; padding: 0 .3rem; border-radius: 3px; background: #5865f2; color: #fff; }
.dcchat .muted-ch { color: #949ba4; font-style: italic; }
[hidden] { display: none !important; }
.facts dd { white-space: pre-line; }
.notice { background: var(--warn-bg); border-radius: 8px; padding: .5rem .8rem; margin: 0 0 .6rem; grid-column: 1 / -1; } .notice.ok { background: var(--ok-bg); color: var(--ok); }

/* Plattform-Icons (Originale, vom Server geliefert) */
.pi-wrap { display: inline-flex; flex: none; }
.pi-img { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; display: block; }

/* Kompakte Spieleransicht */
.pdetail-head { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.pdetail-head h2 { margin: 0 0 .3rem; font-size: 1.35rem; }
.pdetail-head .grow { flex: 1; min-width: 14rem; }
.pdetail-head .phead { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.pnotes { margin: .5rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; color: var(--muted); }
.avatar.lg { width: 72px; height: 72px; border-radius: 10px; }
.avatar.sq { border-radius: 6px; }
.pdetail-cols { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .pdetail-cols { grid-template-columns: 3fr 2fr; } }
.pdetail-cols .card { margin-bottom: 0; }
.pdetail-cols h3 { margin-bottom: .5rem; }
.ident { padding: .55rem 0; border-top: 1px solid var(--line); }
.ident:first-of-type { border-top: 0; padding-top: 0; }
.ident-head { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.ident-name { overflow-wrap: anywhere; }
.ident .ext { text-decoration: none; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.chip { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: .05rem .5rem; font-size: .8rem; }
.chip-l { color: var(--muted); }
.more { margin: .35rem 0 0; }
.more > summary { margin: 0; font-weight: 500; color: var(--muted); }
.more .facts { margin-top: .4rem; }
.tiny { font-size: .75rem; margin-top: .3rem; }
.off { padding: .5rem 0; border-top: 1px solid var(--line); }
.off:first-of-type { border-top: 0; padding-top: 0; }
.off-head { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; }
.off-text { margin: .25rem 0 0; font-size: .88rem; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }

/* Rollenvorschau */
.viewas-banner { background: #f08c00; color: #1b1300; padding: .5rem 1.25rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; justify-content: space-between;  z-index: 5; }
.viewas-banner button { color: #1b1300; border-color: #1b1300; }
select.viewas { width: auto; padding: .25rem .5rem; font-size: .85rem; }

/* Spieleransicht im Stil des Discord-Embeds */
.rank { font-size: 1rem; font-weight: 600; margin: .1rem 0 .2rem; }
.idcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.idcols h3 { font-size: .85rem; color: var(--muted); margin-bottom: .3rem; }
.idline { display: flex; align-items: center; gap: .45rem; margin: .2rem 0; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1rem; margin-bottom: 1rem; align-items: start; }
.pcardx { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; }
.pcardx-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.pcardx-head .ext { margin-left: auto; text-decoration: none; font-size: .85rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .2rem .8rem; margin: 0; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.kv dd.bad { color: var(--bad); font-weight: 600; }
.warn-text { color: var(--bad); }
.panel { margin: 0 0 .5rem; }
.panel > summary { margin: 0; font-weight: 600; }
.hist { margin-top: .5rem; display: flex; flex-direction: column; gap: .3rem; max-height: 22rem; overflow-y: auto; }
.hrow { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .88rem; }
.pfoot { margin-top: 1rem; }

.pager { display: flex; gap: .5rem; align-items: center; justify-content: center; margin: .75rem 0; flex-wrap: wrap; }
.pager button { padding: .3rem .7rem; }
.pdetail-head h2 .sub { font-weight: 400; opacity: .8; }
.progress { height: .9rem; border-radius: .5rem; background: rgba(128,128,128,.25); overflow: hidden; margin: .5rem 0 .25rem; }
.progress > div { height: 100%; width: 0; background: var(--accent, #4c8dff); transition: width .4s ease; }
.progress.indeterminate > div { width: 35%; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }

.hrow.ban { border-left: 3px solid var(--bad); padding-left: .5rem; }
.hrow.ban:not(.active) { opacity: .7; }
.hrow.ban strong { color: var(--bad); }

.idcols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; align-items: start; }
.pcol { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
@media (max-width: 900px) { .idcols, .pcols { grid-template-columns: minmax(0, 1fr); } }
.kv + .kv { margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.dguilds { margin-top: .6rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.dguild { margin: .45rem 0; padding-left: .6rem; border-left: 2px solid var(--line); }
.dguild .perms { margin-top: .3rem; color: var(--muted); overflow-wrap: anywhere; }

.pcardx-head .ext { margin-left: .4rem; }
.pcardx-head .ext:first-of-type { margin-left: auto; }
.cardbans { margin-top: .6rem; padding-top: .5rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .3rem; }
.bad-text { color: var(--bad); font-weight: 600; }
.subhead { margin: .6rem 0 .3rem; font-size: .85rem; color: var(--muted); }
.hrow.known { border-left: 3px solid var(--accent); padding-left: .5rem; }

.badge.ingame { background: var(--ok-bg); color: var(--ok); text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.badge.ingame .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--ok); display: inline-block; }
tr.known { background: var(--ok-bg); }
.row-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .6rem; }

.badge.main { background: var(--warn-bg); color: var(--text); border: 1px solid var(--line); font-weight: 600; }
.danger-zone { border-color: var(--bad); }
.warnbox { background: var(--bad-bg); padding: .7rem; border-radius: 8px; margin-bottom: .6rem; }

.cand { margin-top: .2rem; }

.facts dd, .kv dd { white-space: normal; }
.idline .badge { margin-left: .35rem; }
.idrow .badge { margin-left: .35rem; }
.hrow .badge { margin-left: .15rem; }

header.top .brand { display: inline-flex; align-items: center; gap: .5rem; }
.login .logo-mark { display: block; margin: 0 auto .6rem; }

/* Servergruppen */
.srvgroup table { width: 100%; }
.srv-name { word-break: break-word; }
.nowrap { white-space: nowrap; }
select.gsel, select.auto { width: auto; max-width: 9rem; }
input.narrow { width: 15rem; max-width: 100%; }
.srv-actions { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; }
.srv-name .badge { white-space: nowrap; }
.badge.ingame.guess { background: var(--warn-bg); color: inherit; }
.badge.ingame.guess .dot { background: var(--amber, #d97706); }

.badge.past { background: var(--warn-bg); color: inherit; }
tr.flagged td:first-child, .hrow.flagged { box-shadow: inset 3px 0 0 var(--bad); }
.hrow.flagged { padding-left: .5rem; }
.pagehead { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .4rem; }
.pagehead h2 { margin: 0; }

/* Serverliste: Gruppen eng untereinander, Namen in einer Zeile */
.srvstack { display: flex; flex-direction: column; gap: .35rem; }
.srvstack > .card { margin: 0; padding-top: .55rem; padding-bottom: .55rem; }
.srvstack > details.card[open] > summary { margin-bottom: .4rem; }
table.srvtable { table-layout: fixed; width: 100%; }
table.srvtable td, table.srvtable th { overflow: hidden; }
table.srvtable td.srv-name a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srvtable .c-rank { width: 3.2rem; }
.srvtable .c-players { width: 6rem; }
.srvtable .c-online { width: 12rem; }
.srvtable.manage .c-players { width: 6rem; }
.srvtable.manage .c-group { width: 11rem; }
.srvtable.manage .c-act { width: 7rem; }
select.gsel { max-width: 100%; }

/* Steam-Freunde als Tabelle */
table.friends { width: 100%; font-size: .88rem; }
table.friends th { position: sticky; top: 0; background: var(--panel); z-index: 1; }
table.friends td { vertical-align: middle; }
table.friends tr.known td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
table.friends tr.flagged td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.fname { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; }

/* Startseite */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; display: flex; flex-direction: column; gap: .1rem; }
.stat b { font-size: 1.6rem; line-height: 1.1; }
.stat span { font-size: .85rem; }
.stat.bad b { color: var(--bad); }
.homecols { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .homecols { grid-template-columns: 1fr 1fr; } }
.homecols .card { margin: 0; }
table.plain td { border-bottom: 1px solid var(--line); vertical-align: middle; }
table.plain tr:last-child td { border-bottom: 0; }
button.star { background: none; border: 0; color: var(--muted); font-size: 1.25rem; line-height: 1; padding: 0 .3rem; cursor: pointer; box-shadow: none; }
button.star.on { color: var(--amber, #d97706); }
button.star:hover { color: var(--amber, #d97706); }
.phead .pright { margin-left: auto; display: inline-flex; align-items: center; gap: .5rem; }
button.iconbtn { background: none; border: 0; color: var(--muted); font-size: .95rem; line-height: 1; padding: .2rem .35rem; border-radius: 4px; cursor: pointer; }
button.iconbtn:hover { color: var(--bad); background: var(--bad-bg); }
a.brand { text-decoration: none; color: inherit; }

/* Twitch */
.twacc { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.twav { border-radius: 50%; object-fit: cover; background: var(--line); vertical-align: middle; }
.twfilter { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.twfilter label.inline { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.twsec h3 { margin: 0 0 .5rem; }
table.twtable { table-layout: fixed; }
table.twtable .c-av { width: 2.4rem; }
table.twtable .c-ch { width: 20%; }
table.twtable .c-st { width: 16%; }
table.twtable .c-ob { width: 8.5rem; }
table.twtable .c-bn, table.twtable .c-md, table.twtable .c-im { width: 4.2rem; }
table.twtable .c-since { width: 6.5rem; }
table.twtable td { overflow-wrap: anywhere; }
table.twtable tr.tw-known td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
table.twtable tr.tw-flagged td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
table.twtable td.tw-name { overflow-wrap: anywhere; }
.twhead { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.twtitle { font-size: 1.15rem; }
details.twdet { padding-top: .55rem; padding-bottom: .55rem; margin-bottom: .6rem; }
details.twdet > summary { cursor: pointer; list-style-position: inside; }
details.twdet[open] > summary { margin-bottom: .6rem; }
table.twgen { width: 100%; table-layout: auto; }
table.twgen td.tw-reason { overflow-wrap: anywhere; max-width: 28rem; }
table.twgen tr.tw-known td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
table.twgen tr.tw-flagged td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.twsearch { width: 100%; margin-bottom: .5rem; }
.twmine { margin-bottom: .8rem; }
.twmine-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .35rem 0; }
.twmine-row + .twmine-row { border-top: 1px solid var(--line); }

/* Netzwerk */
.netctl { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .4rem 0; }
.netctl .seg { display: inline-flex; gap: .25rem; }
.netctl button.on { background: var(--accent); color: var(--accent-text); }
.netwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.netsvg { width: 100%; min-width: 520px; height: auto; display: block; }
.netedge { stroke: var(--muted); opacity: .55; }
.netedge.strong { stroke: var(--accent); opacity: .8; }
.netnode circle { fill: var(--panel); stroke: var(--muted); stroke-width: 2; cursor: pointer; }
.netnode.known circle { stroke: var(--ok); fill: var(--ok-bg); }
.netnode.past circle { stroke: #e8a317; fill: var(--warn-bg); }
.netnode.bad circle { stroke: var(--bad); fill: var(--bad-bg); }
.netnode.focus circle { stroke: var(--accent); fill: var(--accent); }
.netnode text { fill: var(--text); font-size: 10px; pointer-events: none; }
.netnode:focus circle, .netnode:hover circle { stroke-width: 4; }
.netdetail { margin: .5rem 0; padding: .5rem .7rem; border: 1px dashed var(--line); border-radius: 6px; }
.netev { margin: .3rem 0 0; padding-left: 1.1rem; }
.netlegend { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; margin: .3rem 0; }
.netlegend .dot { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid var(--muted); background: var(--panel); }
.netlegend .dot.known { border-color: var(--ok); background: var(--ok-bg); }
.netlegend .dot.past { border-color: #e8a317; background: var(--warn-bg); }
.netlegend .dot.bad { border-color: var(--bad); background: var(--bad-bg); }
.netlegend .dot.focus { border-color: var(--accent); background: var(--accent); }
.item.invalid { opacity: .6; }

button.star svg { display: block; }
.badge.mate { background: var(--accent); color: var(--accent-text); }
.matehead { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.matehead h3 { margin: 0; }
.matelist { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.matechip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .5rem; border: 1px solid var(--line); border-radius: 999px; }
.matechip.bad { border-color: var(--bad); }

.livelog { max-height: 62vh; overflow-y: auto; font-size: .88rem; }
.liveline { display: flex; flex-wrap: wrap; gap: .1rem .5rem; align-items: baseline; padding: .15rem .3rem; border-bottom: 1px solid var(--line); }
.liveline.known { background: var(--ok-bg); }
.liveline.flagged { background: var(--bad-bg); }
.liveline.ban { border-left: 3px solid var(--bad); }
.livech { color: var(--accent); }
.livetext { overflow-wrap: anywhere; }
table.twtable td.tw-st { white-space: normal; }
table.twtable td.tw-st > * { margin-right: .25rem; }

/* Darstellung-Menü */
details.prefs { position: relative; }
details.prefs > summary { cursor: pointer; list-style: none; color: var(--muted); font-size: .9rem; padding: .25rem .6rem; border: 1px solid var(--line); border-radius: 6px; }
details.prefs > summary::-webkit-details-marker { display: none; }
details.prefs[open] > summary { color: var(--text); }
.prefs-pop { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 20; min-width: 15rem; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .8rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.prefs-pop label { margin-bottom: .5rem; }
.prefs-pop label.inline { display: flex; align-items: center; margin: 0; }

/* Twitch: Tags zum Umschalten, Tabs */
button.tagbtn { font: inherit; font-size: .75rem; line-height: 1.2; padding: .1rem .5rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; box-shadow: none; }
button.tagbtn.on, .tagbtn.static.on { color: var(--ok); background: var(--ok-bg); border-color: transparent; }
button.tagbtn:hover { border-color: var(--accent); }
.tagbtn.static { display: inline-block; font-size: .75rem; padding: .1rem .5rem; border-radius: 999px; }
.twtabs { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 -1px; padding: 0 .3rem; position: relative; z-index: 1; }
button.twtab { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-bottom-color: var(--line); border-radius: 8px 8px 0 0; padding: .4rem .8rem; font: inherit; font-size: .9rem; cursor: pointer; box-shadow: none; opacity: .75; }
button.twtab.on { opacity: 1; border-bottom-color: var(--panel); background: var(--panel); font-weight: 600; box-shadow: inset 0 2px 0 var(--accent); }
.twpanes { border-top-left-radius: 0; }
.twlivelog { max-height: 45vh; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 1rem; }
button.iconbtn.plus { font-size: 1.3rem; font-weight: 600; padding: .05rem .5rem; border: 1px solid var(--line); color: var(--accent); }
button.iconbtn.plus:hover { background: var(--accent); color: var(--accent-text); }
.idbans { margin: .3rem 0 0; display: grid; gap: .15rem; }

/* Kopier-Symbol hinter IDs */
.idcopy { display: inline; max-width: 100%; white-space: nowrap; }
.idcopy code { white-space: normal; }
.idcopy code { overflow-wrap: anywhere; }
button.copyid { display: inline-block; text-align: center; line-height: 1.35rem; vertical-align: middle; width: 1.35rem; height: 1.35rem; padding: 0; margin: 0 0 0 .15rem; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; opacity: .55; box-shadow: none; flex: none; }
button.copyid:hover, button.copyid:focus-visible { opacity: 1; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
button.copyid.done { opacity: 1; color: var(--ok, #16a34a); }
button.copyid svg { display: inline-block; vertical-align: middle; }

/* Spielerdetails: Tabs neben dem Namen */
.ptabs { display: flex; flex-wrap: wrap; gap: .25rem; flex: 1; min-width: 0; }
button.ptab { background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .7rem; font: inherit; font-size: .85rem; cursor: pointer; box-shadow: none; opacity: .8; }
button.ptab:hover { opacity: 1; border-color: var(--accent); }
button.ptab.on { opacity: 1; font-weight: 600; background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: var(--accent); }
.pnameacts { display: inline-flex; align-items: center; gap: .4rem; margin-left: auto; }
.pnameacts .button.small { padding: .15rem .65rem; font-size: .85rem; }
.ptabpane[hidden] { display: none; }
.ptabpane details.fixedopen > summary { pointer-events: none; list-style: none; cursor: default; font-weight: 600; }
.ptabpane details.fixedopen > summary::-webkit-details-marker { display: none; }
.ptabpane details.fixedopen > summary::marker { content: ''; }

/* Vergehen und Mates nebeneinander */
.pgrid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1rem; align-items: start; margin-bottom: 1rem; }
.pgrid2 > .card { margin-bottom: 0; min-width: 0; }
@media (max-width: 700px) { .pgrid2 { grid-template-columns: minmax(0, 1fr); } }

/* Kopfzeile: Darstellung und Rollen-Auswahl auf einer Höhe und im selben Stil */
details.prefs { margin: 0; }
details.prefs > summary, header.top select.viewas {
  display: inline-flex; align-items: center; box-sizing: border-box; height: 2rem; margin: 0; padding: 0 .7rem;
  font: inherit; font-size: .88rem; font-weight: 400; color: var(--text);
  background: transparent; border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
}
header.top select.viewas { width: auto; color: var(--text); padding-right: .4rem; }
header.top select.viewas option { background: var(--panel); color: var(--text); }
details.prefs > summary:hover, header.top select.viewas:hover { border-color: var(--accent); color: var(--text); }
header.top > * { align-self: center; }

/* Spielerdetails: Kopfkarte mit fester Aufteilung (die Tabs rutschen bei langen Namen nicht mehr) */
.pdetail-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .6rem 1.1rem; align-items: start; }
.pavcol { width: 72px; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.pidtag { font-size: .72rem; color: var(--muted); text-align: center; line-height: 1.2; }
.pidtag code { font-size: .72rem; padding: 0 .25rem; }
.pidtag button.copyid { width: 1.1rem; height: 1.1rem; line-height: 1.1rem; }
.pmain { min-width: 0; }
.pmain h2 { margin: 0; font-size: 1.35rem; overflow-wrap: anywhere; }
.psub { font-size: 1rem; color: var(--muted); margin: .05rem 0 .3rem; overflow-wrap: anywhere; }
.pside { width: 22rem; display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; align-items: center; }
.pside .ptabs { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; }
.pside .pnameacts { margin-left: 0; }
@media (max-width: 820px) {
  .pdetail-head { grid-template-columns: auto minmax(0, 1fr); }
  .pside { grid-column: 1 / -1; width: auto; justify-content: flex-start; }
  .pside .ptabs { justify-content: flex-start; }
}

/* Filter der Spielerübersicht */
details.pfilter { margin: -.4rem 0 1rem; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
details.pfilter[hidden] { display: none; }
details.pfilter > summary { margin: 0; font-weight: 600; font-size: .9rem; cursor: pointer; }
details.pfilter > summary .badge { margin-left: .4rem; }
details.pfilter[open] > summary { margin-bottom: .6rem; }
.fgroups { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .8rem 1.5rem; margin-bottom: .6rem; }
.fchips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .25rem; }
button.fchip { background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .7rem; font: inherit; font-size: .85rem; cursor: pointer; box-shadow: none; }
button.fchip:hover { border-color: var(--accent); }
button.fchip.yes { background: color-mix(in srgb, var(--ok, #16a34a) 20%, transparent); border-color: var(--ok, #16a34a); font-weight: 600; }
button.fchip.no { background: color-mix(in srgb, var(--bad, #dc2626) 18%, transparent); border-color: var(--bad, #dc2626); font-weight: 600; text-decoration: line-through; }

/* Einstellungen und Server-Gruppen: Tab-Leiste */
.stabs { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 .8rem; border-bottom: 1px solid var(--line); }
.stab { background: transparent; color: var(--text); border: 1px solid transparent; border-bottom: 0; border-radius: .5rem .5rem 0 0; padding: .4rem .9rem; font: inherit; font-size: .92rem; cursor: pointer; text-decoration: none; box-shadow: none; opacity: .8; margin-bottom: -1px; }
.stab:hover { opacity: 1; border-color: var(--line); }
.stab.on { opacity: 1; font-weight: 600; background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: var(--line); border-bottom: 1px solid var(--accent); }
.srvtabs .stabs { margin-bottom: 0; }
.srvtabs > .card { margin-top: 0; border-top-left-radius: 0; }
.srvsum { margin: 0 0 .4rem; }
.fnotes { width: 100%; max-width: 28rem; }

/* Import-Quellen */
.importform { display: flex; flex-direction: column; gap: .5rem; max-width: 46rem; }
.importform .frow { display: grid; grid-template-columns: 11rem 1fr; gap: .15rem .6rem; align-items: center; }
.importform .frow .small { grid-column: 2; margin-top: -.1rem; }
.importform .flabel { font-size: .88rem; color: var(--muted); }
.importform fieldset.fpattern { border: 1px solid var(--line); border-radius: .5rem; padding: .6rem .8rem; display: flex; flex-direction: column; gap: .5rem; }
.importform fieldset legend { padding: 0 .4rem; font-weight: 600; }
.import-preview pre { max-height: 14rem; overflow: auto; white-space: pre-wrap; word-break: break-all; background: color-mix(in srgb, var(--text) 5%, transparent); padding: .5rem; border-radius: .4rem; }
.importlist { display: flex; flex-direction: column; gap: .6rem; margin-top: .6rem; }
@media (max-width: 640px) { .importform .frow { grid-template-columns: 1fr; } .importform .frow .small { grid-column: 1; } }

.bar .plus { width: 2.2rem; padding: .35rem 0; font-size: 1.2rem; line-height: 1; font-weight: 600; flex: none; }
[hidden] { display: none !important; }

/* Popups */
dialog.modal {
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); padding: 0;
  width: min(32rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .55);
}
dialog.modal[open] { display: flex; flex-direction: column; }
dialog.modal.wide { width: min(64rem, calc(100vw - 2rem)); }
dialog.modal::backdrop { background: rgba(0, 0, 0, .55); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 1.05rem; }
.modal-body { padding: 1rem; overflow: auto; flex: 1 1 auto; }
.modal-foot { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; padding: .7rem 1rem; border-top: 1px solid var(--line); }
.modal-text { margin: 0; white-space: pre-line; line-height: 1.45; }
.modal-input { width: 100%; box-sizing: border-box; }
button.danger-solid { background: var(--bad); color: #fff; border: 0; }
.idlist .item { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.idlist .item:last-child { border-bottom: 0; }
.statlink { background: none; border: 0; padding: 0; margin: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }
.statlink:disabled { color: var(--muted); text-decoration: none; cursor: default; }
@media (max-width: 600px) { dialog.modal, dialog.modal.wide { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; } }

/* Spielerdetails: Stern am Avatar, Platzhalter-Avatar, großes Netzwerk-Popup */
.avwrap { position: relative; display: inline-block; line-height: 0; }
.avwrap button.star { position: absolute; top: -8px; left: -8px; width: 26px; height: 26px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); line-height: 1; }
.avwrap button.star svg { width: 15px; height: 15px; }
svg.avatar.dummy { color: var(--muted); background: var(--line); overflow: hidden; }
dialog.modal.full { width: 90vw; height: 90vh; max-width: none; max-height: none; }
dialog.modal.full .modal-body { overflow: hidden; display: flex; min-height: 0; }
dialog.modal.full .modal-body > .chat { width: 100%; min-height: 0; overflow-y: auto; }
dialog.modal.full .modal-body > .chat > * { flex: none; }
dialog.modal.full .modal-body > .netbox { width: 100%; min-height: 0; display: flex; flex-direction: column; }
.netsplit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem; flex: 1 1 auto; min-height: 0; }
.netsplit > div { overflow: auto; min-height: 0; padding-right: .3rem; }
.netsplit .netsvg { min-width: 0; }
.modal-body details.fixedopen > summary { pointer-events: none; list-style: none; cursor: default; font-weight: 600; }
.modal-body details.fixedopen > summary::-webkit-details-marker { display: none; }
.modal-body details.fixedopen > summary::marker { content: ''; }
@media (max-width: 900px) {
  dialog.modal.full .modal-body { overflow: auto; }
  .netsplit { grid-template-columns: 1fr; }
  .netsplit > div { overflow: visible; }
}

/* Spieler bearbeiten: Aktionsleiste und 2-spaltige ID-Liste */
.editbar { margin-top: .8rem; }
.editbar-in { display: flex; flex-wrap: wrap; gap: .5rem; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; align-items: start; }
.cols2 > .item { margin: 0; }
@media (max-width: 900px) { .cols2 { grid-template-columns: 1fr; } }

/* Einstellungen → Discord */
.stabs.sub { margin-top: 0; }
.dbot .imgrow { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: .6rem 0; }
.dbot .imgbox { display: flex; gap: .8rem; align-items: center; }
.dbot .botimg { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); display: grid; place-items: center; font-size: .72rem; color: var(--muted, #888); text-align: center; background: color-mix(in srgb, var(--text) 6%, transparent); }
.dbot .imgbox.wide .botimg { width: 200px; height: 84px; border-radius: .5rem; }
.cmdcard h3 code { font-size: 1.05rem; }
.tplwrap { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 900px) { .tplwrap { grid-template-columns: 1fr; } }
.tplnav h4 { margin: .6rem 0 .25rem; font-size: .8rem; text-transform: uppercase; opacity: .7; }
.tplitem { display: flex; justify-content: space-between; align-items: center; gap: .4rem; width: 100%; text-align: left; background: transparent; color: var(--text); border: 1px solid transparent; box-shadow: none; padding: .35rem .6rem; border-radius: .4rem; font-size: .9rem; margin: 1px 0; }
.tplitem:hover { border-color: var(--line); }
.tplitem.on { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: var(--accent); font-weight: 600; }
.tplgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; }
@media (max-width: 1100px) { .tplgrid { grid-template-columns: 1fr; } }
.colorin { width: 4rem; height: 2.2rem; padding: 0; }
.vars { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin: .5rem 0; }
.chip { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--text); border: 1px solid var(--line); box-shadow: none; border-radius: 999px; padding: .1rem .55rem; font-size: .8rem; font-family: ui-monospace, monospace; }
.varhelp { display: grid; grid-template-columns: max-content 1fr; gap: .1rem .8rem; }
.varhelp dt { font-family: ui-monospace, monospace; } .varhelp dd { margin: 0; }
.seg { display: flex; gap: .3rem; margin: .4rem 0; }
.seg .on { outline: 2px solid var(--accent); }
.addrow { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.addrow input { flex: 1 1 12rem; }
.tinyin { width: 100%; min-width: 8rem; }

/* Discord-Vorschau (bewusst im dunklen Discord-Stil, unabhängig vom Farbschema) */
.dcpreview { background: #313338; color: #dbdee1; border-radius: .5rem; padding: .9rem 1rem; font-family: 'gg sans', 'Segoe UI', system-ui, sans-serif; font-size: .92rem; }
.dc-msg { display: flex; gap: .7rem; }
.dc-avatar { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #5865f2; color: #fff; display: grid; place-items: center; font-weight: 700; }
.dc-main { min-width: 0; flex: 1; }
.dc-name { font-weight: 600; color: #fff; margin-bottom: .2rem; }
.dc-tag { background: #5865f2; color: #fff; font-size: .62rem; padding: .05rem .3rem; border-radius: .25rem; vertical-align: middle; }
.dc-embed { background: #2b2d31; border-left: 4px solid #5865f2; border-radius: .25rem; padding: .6rem .8rem .7rem; max-width: 34rem; }
.dc-title { font-weight: 700; color: #fff; margin-bottom: .3rem; }
.dc-desc, .dc-content { line-height: 1.35; overflow-wrap: anywhere; }
.dc-line { min-height: 1.2em; }
.dc-embed code, .dc-content code { background: #1e1f22; padding: .05rem .25rem; border-radius: .2rem; font-size: .85em; }
.dc-link { color: #00a8fc; }
.dc-foot { margin-top: .5rem; font-size: .75rem; color: #b5bac1; }
.dc-btns { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.dc-btn { padding: .3rem .8rem; border-radius: .3rem; font-size: .85rem; color: #fff; background: #4e5058; }
.dc-btn.ok { background: #248046; } .dc-btn.bad { background: #da373c; }
@media (min-width: 1101px) { .tplgrid > div:last-child { position: sticky; top: calc(var(--toph) + .5rem); align-self: start; } }

/* Rollen und Rechte: Baum, Gruppen, Ablegen */
.rlayout { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 1rem; align-items: start; }
@media (max-width: 800px) { .rlayout { grid-template-columns: 1fr; } }
.rtree { position: sticky; top: calc(var(--toph) + .5rem); max-height: calc(100vh - var(--toph) - 1rem); overflow: auto; }
.rtree h3 { margin: 0 0 .3rem; }
.rfilter { width: 100%; margin: .4rem 0; }
.rbranch { margin: .2rem 0; }
.rbranch > summary, .rsummary { cursor: pointer; font-weight: 600; padding: .25rem 0; }
.rsummary { cursor: default; margin-top: .6rem; }
.rleaf { display: flex; flex-direction: column; gap: .05rem; padding: .3rem .5rem; margin: .15rem 0 .15rem .6rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); cursor: grab; font-size: .9rem; }
.rleaf code { color: var(--muted); font-size: .75rem; }
.rleaf.dragging { opacity: .45; }
.rleaf.rgroup { border-color: var(--fx2); }
.rdrop { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; min-height: 2.6rem; padding: .5rem; margin: .4rem 0; border: 2px dashed var(--line); border-radius: 8px; }
.rdrop.over { border-color: var(--accent); background: var(--fxline); }
.rdrop.fixed, .rdrop.ro { border-style: solid; }
.rchip { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .2rem .15rem .55rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: .85rem; }
.rchip.grp { border-color: var(--fx2); background: var(--fxline); }
.rchip.via { padding-right: .55rem; color: var(--muted); }
.rx { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 .35rem; }
.rx:hover { color: var(--bad); }
.rcard.dirty { border-color: var(--accent); }
.rcard .actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.rvia { margin: .2rem 0; }
.raddsel { max-width: 18rem; }
.rmain .stab.active { background: var(--accent); color: var(--accent-text); border-radius: 6px; }

/* Neuigkeiten senden */
.announce-text { width: 100%; box-sizing: border-box; font: inherit; }
.announce-entries { display: flex; flex-direction: column; gap: .4rem; max-height: 22rem; overflow: auto; }
.announce-entry { align-items: flex-start; }
.announce-preview { margin-top: 1rem; }
.dc-field { margin-top: .5rem; }
.dc-fname { font-weight: 700; color: #fff; font-size: .9rem; }
.dc-fvalue { font-size: .88rem; }
.updchan { max-width: 100%; }
.bmlink { margin-left: .5rem; font-size: .75rem; opacity: .8; white-space: nowrap; }

/* API-Test */
.apitest-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .6rem 1rem; }
.apitest-form label { display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; }
.apitest-call { margin-top: .8rem; }
.apitest-pre { max-height: 22rem; overflow: auto; font-size: .78rem; background: rgba(127,127,127,.12); padding: .5rem; border-radius: .3rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.apitest-val { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .85rem; }

/* ID-Übersetzer am Bildschirmrand */
.idtool { position: fixed; top: 7rem; z-index: 40; display: flex; align-items: flex-start; }
.idtool.right { right: 0; flex-direction: row-reverse; }
.idtool.left { left: 0; flex-direction: row; }
.idtool-tab { padding: .5rem .45rem; font-weight: 700; letter-spacing: .05em; cursor: pointer; border-radius: .4rem 0 0 .4rem; background: var(--accent); color: var(--accent-text); border: 0; }
.idtool.left .idtool-tab { border-radius: 0 .4rem .4rem 0; }
.idtool-panel { display: none; width: 19rem; max-width: 80vw; padding: .7rem; background: var(--panel); color: var(--text); border: 1px solid var(--line); box-shadow: 0 2px 12px rgba(0,0,0,.25); border-radius: .5rem; flex-direction: column; gap: .45rem; }
.idtool.open .idtool-panel { display: flex; }
.idtool-head { display: flex; align-items: center; gap: .3rem; }
.idtool-outrow { display: flex; gap: .3rem; }
.idtool-out { flex: 1; min-width: 0; }
.idtool-row { display: flex; flex-wrap: wrap; gap: .3rem; align-items: baseline; margin-top: .25rem; }
.idtool-id { cursor: pointer; }
.idtool-hint { min-height: 1em; }
@media (max-width: 700px) { .idtool { top: auto; bottom: 4rem; } }

.idtool-panel input, .idtool-panel select { width: 100%; box-sizing: border-box; }
.idtool-outrow input { width: auto; }
.idtool-panel a, .idtool-id { color: var(--accent); }

/* Symbole neben Werten, Serverdetails */
.vicon { height: 1.3em; width: auto; max-width: 3.2em; vertical-align: middle; margin-right: .4em; border-radius: 3px; object-fit: contain; }
.srv-details { margin-bottom: 1rem; }
.srv-det-head { display: flex; gap: .8rem; align-items: center; margin-bottom: .6rem; }
.srv-det-head h3 { margin: 0 0 .2rem; }
.srv-thumb { height: 5rem; width: auto; border-radius: 6px; margin: 0; max-width: 8rem; }

/* Ticket-Chat und Import */
.chat { display: flex; flex-direction: column; gap: .7rem; }
.chat-msg { display: flex; gap: .7rem; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; object-fit: cover; background: var(--line); }
.chat-avatar.ph { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }
.chat-body { min-width: 0; flex: 1; }
.chat-head { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.chat-text, .chat-embed-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-code { margin: .3rem 0; max-height: none; white-space: pre-wrap; }
.mention { background: color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 3px; padding: 0 .2em; }
.chat-embed { margin-top: .3rem; padding: .4rem .7rem; border-left: 4px solid var(--ec, var(--line)); background: var(--bg); border-radius: 4px; max-width: 42rem; }
.chat-embed-title { font-weight: 600; }
.chat-fields { display: flex; flex-direction: column; gap: .3rem; margin-top: .3rem; }
.ti-list ul { margin: .3rem 0; padding-left: 1.2rem; max-height: 16rem; overflow: auto; }
.ticketrow .ticket-chat { margin-left: auto; }

.idtickets { margin-top: .4rem; }

/* Einstellungen: Seitenleiste mit Gruppen */
.settings .pagehead { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.setgrid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.setmain { min-width: 0; }
.stabs.set-nav { display: block; flex-wrap: nowrap; margin: 0; border-bottom: 0; position: sticky; top: calc(var(--toph) + .8rem); padding: .6rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; max-height: calc(100vh - 2rem); overflow: auto; }
.set-search { width: 100%; margin: 0 0 .4rem; padding: .45rem .6rem; font: inherit; font-size: .9rem; }
.set-ghead { display: flex; align-items: center; gap: .4rem; width: 100%; background: transparent; border: 0; box-shadow: none; color: var(--muted); font: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .7rem .4rem .25rem; cursor: pointer; text-align: left; }
.set-ghead:hover { color: var(--text); }
.set-chev { width: .8rem; display: inline-block; }
.stab.set-item { display: flex; align-items: center; gap: .6rem; width: 100%; margin: 0; padding: .45rem .6rem; border: 0; border-left: 3px solid transparent; border-radius: 8px; opacity: .9; font-size: .92rem; }
.stab.set-item:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); border-color: transparent; opacity: 1; }
.stab.set-item.on { background: color-mix(in srgb, var(--accent) 16%, transparent); border-left-color: var(--accent); border-bottom: 0; font-weight: 600; opacity: 1; }
.set-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-count { background: var(--bg); color: var(--muted); border-radius: 10px; padding: 0 .5rem; font-size: .78rem; font-weight: 400; }
.si { display: inline-flex; min-width: 20px; height: 20px; align-items: center; justify-content: center; flex: none; color: var(--muted); }
.stab.set-item.on .si { color: var(--accent); }
.si-platform .pi-wrap, .si-platform .pi-img { width: 18px; height: 18px; }
.si-platform .pi { white-space: nowrap; }
@media (max-width: 800px) {
  .setgrid { grid-template-columns: 1fr; }
  .stabs.set-nav { position: static; max-height: none; }
}

/* Kopfzeile: Symbolknöpfe mit Popup */
details.prefs > summary.iconbtn { width: 2rem; padding: 0; justify-content: center; }
details.prefs.active > summary.iconbtn { color: #1b1300; background: #f08c00; border-color: #f08c00; }
.prefs-pop select.viewas { width: 100%; height: auto; padding: .35rem .5rem; }
.prefs-pop select.viewas option { background: var(--panel); color: var(--text); }
.viewas-menu .prefs-pop { min-width: 19rem; }
/* Einstellungen: Seitenleiste neben dem Inhalt, der Inhalt behält die übliche Breite */

/* Geparkte IDs: ID-Spalte in einer Zeile, Knöpfe untereinander */
table.parked td .fname { flex-wrap: nowrap; white-space: nowrap; }
table.parked .idcopy, table.parked .idcopy code { white-space: nowrap; }
.pk-btns { display: flex; flex-direction: column; gap: .35rem; align-items: stretch; }
.pk-btns button { white-space: nowrap; }
.setmain .card:has(table.parked) { overflow-x: auto; }
.prefs-pop { max-width: calc(100vw - 1rem); }

/* ID-Übersetzer: Eingabe mit Senden-Symbol */
.idtool-inrow { display: flex; gap: .3rem; align-items: stretch; }
.idtool-inrow .idtool-in { flex: 1; min-width: 0; width: auto; }
.idtool-send { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; padding: 0; flex: none; }

/* Feste Kopfzeile (mit eventuellem Vorschau-Banner) */
.topwrap { position: sticky; top: 0; z-index: 50; }
.topwrap .viewas-banner { position: static; }
header.top { position: relative; }
html { scroll-padding-top: calc(var(--toph) + .6rem); }

/* Spieler: links Suche und Filter, rechts die Karten in zwei Spalten */
.plgrid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.pl-side { position: sticky; top: calc(var(--toph) + .8rem); max-height: calc(100vh - var(--toph) - 1.6rem); overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .7rem; }
.pl-side .bar { margin-bottom: .7rem; flex-wrap: nowrap; }
.pl-side .bar .grow { min-width: 0; }
.pl-side details.pfilter { margin: 0; padding: 0; border: 0; background: transparent; }
.pl-side details.pfilter > summary { cursor: default; list-style: none; font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.pl-side details.pfilter > summary::-webkit-details-marker { display: none; }
.pl-side .fgroups { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
.pl-side .fnotes { max-width: none; width: 100%; }
.pl-main .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .plgrid { grid-template-columns: minmax(0, 1fr); } .pl-side { position: static; max-height: none; } }
@media (max-width: 640px) { .pl-main .plist { grid-template-columns: minmax(0, 1fr); } }

/* Notizzettel (nutzt die Hülle des ID-Übersetzers, sitzt darunter) */
.idtool.notepad { top: 11rem; }
.idtool.notepad .idtool-panel { width: 22rem; }
.np-area + .np-area { margin-top: .4rem; }
.np-label { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.np-text { width: 100%; box-sizing: border-box; resize: vertical; min-height: 6rem; font: inherit; font-size: .88rem; }
.np-status { min-height: 1em; }
@media (max-width: 700px) { .idtool.notepad { top: auto; bottom: 7.5rem; } }

/* Plattform-Karten: Steam-Level, Flagge, Spielelisten, Discord-Server, Twitch-Chat */
.namelvl { display: inline-flex; align-items: center; gap: .45rem; }
.lvl { display: inline-grid; place-items: center; min-width: 1.55rem; height: 1.55rem; padding: 0 .2rem; box-sizing: border-box; border-radius: 999px; font-size: .72rem; font-weight: 700; line-height: 1; color: var(--text);
  border: 2px solid var(--lvl); background: color-mix(in srgb, var(--lvl) 18%, var(--panel)); box-shadow: 0 0 8px -2px var(--lvl); font-variant-numeric: tabular-nums; }
.flag { width: 24px; height: 18px; vertical-align: middle; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); object-fit: cover; }
.glist { display: grid; gap: .15rem; }
.grow2 { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .6rem; align-items: baseline; }
.grow2 .gname { overflow-wrap: anywhere; }
.grow2 .ghours { font-variant-numeric: tabular-nums; white-space: nowrap; }
.grow2 .glast { white-space: nowrap; min-width: 5.5rem; text-align: right; }
details.dguild > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
details.dguild > summary::-webkit-details-marker { display: none; }
details.dguild > summary::before { content: "▸"; color: var(--muted); font-size: .8rem; }
details.dguild[open] > summary::before { content: "▾"; }
details.dguild > .small { margin-top: .2rem; }
.badge.seen { background: var(--warn-bg); color: var(--text); border: 1px solid #d9a400; }
.lvl.t0 { --lvl: #9b9b9b; }
.lvl.t1 { --lvl: #c02942; }
.lvl.t2 { --lvl: #d95b43; }
.lvl.t3 { --lvl: #fecc23; }
.lvl.t4 { --lvl: #467a3c; }
.lvl.t5 { --lvl: #4e8ddb; }
.lvl.t6 { --lvl: #7652c9; }
.lvl.t7 { --lvl: #c252c9; }
.lvl.t8 { --lvl: #e0457b; }
.lvl.t9 { --lvl: #997c52; }
.rolelist { display: grid; gap: .1rem; }
.chatlist { display: grid; gap: .25rem; }
.chatrow { display: flex; align-items: center; gap: .5rem; }
.chatrow .badge { min-width: 5.2rem; text-align: center; flex: none; }
.chatrow .chatname { overflow-wrap: anywhere; }

/* Twitch-Kanal: Live Chat, Kanalinfos, Chat-Einstellungen */
.tw-full { flex-basis: 100%; margin: .2rem 0 0; }
.twsettings { margin: 0 0 .8rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 8px; }
.twfacts { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 0 0 .5rem; }
.twctrl { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.twctrl label.inline { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.twsettings p { margin: .4rem 0 0; }
.cbadge { font-size: .65rem; line-height: 1; padding: .12rem .3rem; border-radius: 4px; border: 1px solid var(--line); text-transform: uppercase; letter-spacing: .02em; }
.cbadge.bc { color: var(--bad); }
.cbadge.mod { color: var(--ok); }
.cbadge.vip { color: var(--accent); }
.cbadge.sub { color: var(--muted); }
img.emote { vertical-align: middle; height: 1.35rem; width: auto; }
.liveline.notice { background: var(--panel-2, transparent); border-left: 3px solid var(--accent); font-style: italic; }
.liveline.deleted .livetext { text-decoration: line-through; opacity: .55; }
.livetext.me { font-style: italic; }

/* Live Chat in festen Spalten */
.liveline.lc { display: grid; grid-template-columns: 62px 86px minmax(110px, 170px) 1fr minmax(0, 150px); gap: 0 .65rem; align-items: baseline; padding: .2rem .5rem; }
.liveline.lc.wch { grid-template-columns: 62px 110px 86px minmax(110px, 170px) 1fr minmax(0, 150px); }
.lc .t { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lc-b { display: flex; gap: 3px; flex-wrap: nowrap; }
.lc-n { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-ch { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-m { display: flex; gap: .25rem; justify-content: flex-end; flex-wrap: wrap; }
.lc .livetext { overflow-wrap: anywhere; min-width: 0; }
.lc-all { grid-column: 2 / -1; }
.liveline.lhead { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); overflow: hidden; scrollbar-gutter: stable; }
.lc-log.hidebots .liveline.bot { display: none; }
.lc-bar { display: flex; align-items: center; gap: .8rem; margin: .2rem 0 .5rem; flex-wrap: wrap; }
.lc-bar label.inline { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.lc-log { scrollbar-gutter: stable; }
@media (max-width: 720px) {
  .liveline.lc, .liveline.lc.wch { grid-template-columns: 54px 1fr; }
  .lc-b, .lc-m { grid-column: 2; justify-content: flex-start; }
  .lc-n { text-align: left; }
  .liveline.lhead { display: none; }
}

/* Twitch-Karte: Zuschauzeit je Kanal als Balken */
.kv dt.wide { grid-column: 1 / -1; margin-top: .2rem; }
.kv dd.wide { grid-column: 1 / -1; }
.chatbars { display: flex; flex-direction: column; gap: .5rem; }
.chatbar { font-size: .85rem; }
.chatbar .cl { display: flex; align-items: baseline; gap: .5rem; min-width: 0; }
.chatbar .cn { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
.chatbar .cx { color: var(--muted); font-size: .78rem; white-space: nowrap; flex: 1 1 auto; }
.chatbar .cd { text-align: right; color: var(--muted); font-size: .78rem; white-space: nowrap; flex: none; }
.chatbar .cd.now { color: var(--ok); font-weight: 600; }
.chatbar .ctb { height: 6px; margin-top: .2rem; background: var(--line); border-radius: 3px; overflow: hidden; }
.chatbar .ctb i { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.nowdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: .35rem; box-shadow: 0 0 0 3px var(--ok-bg); }

.lc-send { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .5rem; }
.lc-send input[type=text] { flex: 1 1 18rem; }

.twbot .card { margin-bottom: 1rem; }
.twbot .card h3 { margin-top: 0; }
.twbot label.block { display: block; margin-top: .6rem; }
.twbot textarea { width: 100%; box-sizing: border-box; display: block; margin-top: .25rem; }
.twbot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .6rem 1rem; margin: .6rem 0 .2rem; }
.twbot-grid label { display: flex; flex-direction: column; gap: .2rem; }
.twbot-who { display: flex; gap: .4rem 1.2rem; flex-wrap: wrap; margin: .3rem 0 .6rem; }
.twbot input.narrow { width: 6rem; }

/* ---------- Persönliche Ansicht (Meine Ansicht, Spielerliste, Spielerdetail) ---------- */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-density="kompakt"] .card { padding: .6rem .8rem; margin-bottom: .6rem; }
html[data-density="kompakt"] .pcard { padding: .4rem .6rem; }
html[data-density="kompakt"] .pcardx { padding: .55rem .75rem; }
html[data-density="kompakt"] th, html[data-density="kompakt"] td { padding: .2rem .4rem; }
html[data-density="kompakt"] main { margin-top: .8rem; }
html[data-density="luftig"] .card { padding: 1.3rem 1.4rem; margin-bottom: 1.3rem; }
html[data-density="luftig"] .pcard { padding: .85rem 1rem; }
html[data-density="luftig"] .pcardx { padding: 1.05rem 1.2rem; }
html[data-density="luftig"] th, html[data-density="luftig"] td { padding: .6rem .7rem; }
html[data-density="luftig"] .plist { gap: .9rem; }
.prefs-all { display: block; margin-top: .3rem; font-size: .85rem; }

.pz-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }
.pz-seg button { background: transparent; color: var(--muted); border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: .3rem .8rem; font-size: .85rem; white-space: nowrap; cursor: pointer; }
.pz-seg button:last-child { border-right: 0; }
.pz-seg button.on { background: var(--accent); color: var(--accent-text); font-weight: 600; }
.pz-inline { display: inline-flex; align-items: center; gap: .4rem; margin: 0; font-size: .85rem; color: var(--muted); }
.pz-inline > span { display: inline; margin: 0; }
.pz-inline select { width: auto; padding: .25rem .5rem; font-size: .85rem; }
.pz-chips, .pz-views .fchips { display: flex; flex-wrap: wrap; gap: .35rem; }
.pz-chip { font: inherit; display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .75rem; font-size: .85rem; background: var(--panel); color: var(--text); cursor: pointer; }
.pz-chip.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 600; }
.pz-chip.add { border-style: dashed; color: var(--muted); }
.pz-chip[draggable="true"] { cursor: grab; }
.pz-dragging { opacity: .45; }
input.pz-sw { appearance: none; -webkit-appearance: none; width: 2.3rem; height: 1.3rem; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; flex: none; margin: 0; padding: 0; border: 0; vertical-align: middle; }
input.pz-sw::after { content: ""; position: absolute; top: .15rem; left: .15rem; width: 1rem; height: 1rem; border-radius: 50%; background: #fff; transition: left .12s; }
input.pz-sw:checked { background: var(--accent); }
input.pz-sw:checked::after { left: 1.15rem; }
input.pz-sw:focus-visible, .pz-seg button:focus-visible, .pz-chip:focus-visible, .pz-theme:focus-visible, .pz-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.pz-two { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.pz-side { display: flex; flex-direction: column; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .6rem; position: sticky; top: calc(var(--toph) + .8rem); }
.pz-side a { padding: .5rem .8rem; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .92rem; }
.pz-side a small { display: block; opacity: .7; font-size: .75rem; font-weight: 400; }
.pz-side a.on { background: var(--accent); color: var(--accent-text); font-weight: 600; }
.pz-body { margin: 0; }
.pz-cap { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 1.1rem 0 .4rem; }
.pz-cap:first-child { margin-top: 0; }
.pz-row { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.pz-row:last-of-type { border-bottom: 0; }
.pz-row-t { flex: 1; min-width: 0; }
.pz-row-t b { display: block; font-weight: 600; }
.pz-row-t span { color: var(--muted); font-size: .82rem; }
.pz-row select { width: auto; max-width: 16rem; }
.pz-accents { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pz-dot { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.pz-dot.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--panel) inset; }
.pz-dot[data-a="blau"] { background: #5c7cfa; } .pz-dot[data-a="cyan"] { background: #22b8cf; } .pz-dot[data-a="gruen"] { background: #20c997; }
.pz-dot[data-a="gelb"] { background: #fcc419; } .pz-dot[data-a="rot"] { background: #fa5252; } .pz-dot[data-a="violett"] { background: #9775fa; }
.pz-font { display: flex; align-items: center; gap: .7rem; max-width: 24rem; }
.pz-font input[type="range"] { flex: 1; padding: 0; accent-color: var(--accent); }
.pz-font .big { font-size: 1.3rem; }
.pz-preview { max-width: 28rem; }
.pz-preview .pcard { margin: 0; }
.pz-actions { margin-top: 1.2rem; display: flex; gap: .6rem; }

@media (max-width: 900px) {
  .pz-two { grid-template-columns: minmax(0, 1fr); }
  .pz-side { position: static; }
}

/* Einstellungen › KI und Persönlichkeiten */
.aisvc, .twpers { margin-bottom: 1rem; }
.aisvc h3, .twpers h3 { margin-top: 0; }
.aisvc label.block, .twpers label.block { display: block; margin-top: .6rem; }
.twpers textarea { width: 100%; box-sizing: border-box; display: block; margin-top: .25rem; }
.twpers-row { border-top: 1px solid var(--border, #8884); padding: .8rem 0; }
.twbot label.block select, .twbot label.block textarea { display: block; margin-top: .25rem; }

.twreplies { display: flex; flex-direction: column; gap: .5rem; margin-top: .4rem; }
.twreply { border-left: 3px solid var(--border, #8886); padding: .2rem .6rem; overflow-wrap: anywhere; }

/* ---------- Overlay (eigener Bereich, im Menü abgesetzt) ---------- */
header.top nav a.navoverlay { margin-left: 1.3rem; position: relative; display: inline-flex; align-items: center; gap: .4rem; }
header.top nav a.navoverlay::before { content: ""; position: absolute; left: -.8rem; top: 18%; bottom: 18%; width: 1px; background: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.ovl .grow { flex: 1; min-width: 0; }
.ovl-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .7rem; }
.ovl-eyebrow { font-size: .72rem; letter-spacing: .14em; font-weight: 700; color: var(--accent); }
.ovl-head h1 { margin: 0; font-size: 1.5rem; }
.ovl-cols2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.ovl-cols2.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ovl-edcols { display: grid; grid-template-columns: 14rem minmax(0, 1fr) 21rem; gap: 1rem; align-items: start; }
.ovl-cmdcols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 70rem) { .ovl-edcols, .ovl-cmdcols, .ovl-cols2 { grid-template-columns: minmax(0, 1fr); } }
.ovl-propshead { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .5rem; }
.ovl-propshead h3 { margin: 0; }
.ovl-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .7rem; }
.ovl-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 .5rem; }
.ovl-sub { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: .8rem 0 .3rem; }
.ovl-sec { margin: .4rem 0; border: 1px solid var(--line); border-radius: 8px; padding: .3rem .7rem; }
.ovl-sec > summary { margin: 0; padding: .2rem 0; }
.ovl-sec[open] > summary { margin-bottom: .4rem; }
.ovl-btnrow { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .7rem; }
.ovl-fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.ovl-chk { display: flex; align-items: center; margin: 0 0 .5rem; }
.ovl-checks { padding-top: 1.35rem; }
.ovl-color { padding: .1rem; height: 2.2rem; }
.ovl-fieldwrap { margin-bottom: .6rem; }
.ovl-fieldwrap > span { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .15rem; }
.ovl-filerow { display: flex; gap: .4rem; }
.ovl-filerow select { flex: 1; min-width: 0; }
.ovl-thumb { display: block; max-height: 5rem; max-width: 100%; margin-top: .4rem; border-radius: 6px; border: 1px solid var(--line); background: repeating-conic-gradient(color-mix(in srgb, var(--text) 10%, transparent) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.ovl-audio { width: 100%; margin-top: .4rem; }
.ovl-pal { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.ovl-layers { display: flex; flex-direction: column; gap: .3rem; }
.ovl-layer { display: flex; align-items: center; gap: .5rem; text-align: left; background: transparent; color: var(--text); border: 1px solid var(--line); }
.ovl-layer.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.ovl-items { display: flex; flex-direction: column; gap: .3rem; }
.ovl-item { display: grid; grid-template-columns: 1fr auto auto auto; gap: .25rem; }
.ovl-item input { min-width: 0; }
.ovl-stagehost { position: relative; width: 100%; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: repeating-conic-gradient(color-mix(in srgb, var(--text) 9%, transparent) 0 25%, transparent 0 50%) 0 0 / 24px 24px; }
.ovl-stagehost.mini { margin-bottom: .4rem; }
.ovl-box { position: absolute; box-sizing: border-box; cursor: move; touch-action: none; outline: 1px dashed color-mix(in srgb, var(--accent) 65%, transparent); }
.ovl-box.off { outline-color: color-mix(in srgb, var(--muted) 70%, transparent); }
.ovl-box.ro { cursor: pointer; }
.ovl-box.sel { outline: calc(2px * var(--ovl-k, 1)) solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ovl-corner { display: none; position: absolute; width: calc(12px * var(--ovl-k, 1)); height: calc(12px * var(--ovl-k, 1)); background: #fff; border: calc(1px * var(--ovl-k, 1)) solid var(--accent); box-sizing: border-box; }
.ovl-box.sel:not(.ro) .ovl-corner { display: block; }
.ovl-corner.nw { left: calc(-6px * var(--ovl-k, 1)); top: calc(-6px * var(--ovl-k, 1)); cursor: nwse-resize; }
.ovl-corner.ne { right: calc(-6px * var(--ovl-k, 1)); top: calc(-6px * var(--ovl-k, 1)); cursor: nesw-resize; }
.ovl-corner.sw { left: calc(-6px * var(--ovl-k, 1)); bottom: calc(-6px * var(--ovl-k, 1)); cursor: nesw-resize; }
.ovl-corner.se { right: calc(-6px * var(--ovl-k, 1)); bottom: calc(-6px * var(--ovl-k, 1)); cursor: nwse-resize; }
.ovl-table tbody tr { cursor: pointer; }
.ovl-table tbody tr:hover td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.ovl-table tr.ovl-sel td { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.tablewrap { overflow-x: auto; }
.ovl-seg { display: flex; flex-wrap: wrap; gap: .3rem; }
.ovl-seg button.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.ovl-prefix { display: flex; align-items: center; gap: .4rem; }
.ovl-cmdgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .5rem; }
.ovl-cmdbtn { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; text-align: left; background: color-mix(in srgb, var(--accent) 8%, var(--panel)); color: var(--text); border: 1px solid var(--line); padding: .55rem .7rem; }
.ovl-cmdbtn:hover:not(:disabled) { border-color: var(--accent); }
.ovl-cmdbtn code { color: var(--accent); }
.ovl-livegrid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.ovl-livegrid:empty { display: none; }
.ovl-checkrow { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; margin-bottom: .3rem; background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text); border: 0; }
.ovl-checkrow.done { opacity: .7; text-decoration: line-through; }
.ovl-box2 { width: 1.15rem; height: 1.15rem; border: 1px solid var(--muted); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; flex: none; }
.ovl-checkrow.done .ovl-box2 { background: var(--ok, #16a34a); border-color: var(--ok, #16a34a); color: #fff; }
.ovl-ctl { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.ovl-big { font-size: 1.6rem; font-variant-numeric: tabular-nums; font-family: ui-monospace, Consolas, monospace; }
.ovl-count { min-width: 3ch; text-align: center; }
.ovl-sq { width: 2.4rem; padding: .3rem 0; font-size: 1.2rem; }
.ovl-timein { width: 5.5rem; }
.ovl-run { display: flex; align-items: center; gap: .6rem; margin-bottom: .35rem; }
.ovl-logline { margin: 0 0 .3rem; font-size: .9rem; overflow-wrap: anywhere; }
.ovl-switch { display: flex; align-items: center; gap: .6rem; margin: 0 0 .4rem; }
.ovl-switch input { width: auto; }
.ovl-togs { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0 1.2rem; }
.ovl-member { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.ovl-step { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.ovl-urlrow { display: flex; gap: .5rem; align-items: center; }
.ovl-url { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: .45rem .6rem; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
.ovl-warn { background: var(--warn-bg); border-color: var(--line); }
.ovl-steps { margin: 0 0 .6rem; padding-left: 1.2rem; }
.ovl-steps li { margin-bottom: .35rem; }
.ovl-rights { display: grid; gap: .1rem; margin: .5rem 0; }
.ovl-cmdlist2 { display: flex; flex-wrap: wrap; gap: .3rem; }
.ovl-cmdlist2 code { background: color-mix(in srgb, var(--accent) 12%, transparent); padding: .05rem .4rem; border-radius: 5px; }
.ovl-logbox { max-height: 22rem; overflow: auto; }
.ovl-search { max-width: 14rem; }

.ovl-stack > * + * { margin-top: 18px; }


/* freie Akzentfarbe */
.pz-accents { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.pz-dotsrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pz-custom { display: inline-flex; align-items: center; gap: .5rem; }
.pz-picker { width: 2.4rem; height: 2.2rem; padding: 2px; border-radius: 8px; cursor: pointer; }
.pz-hex { width: 6.5rem; font-family: ui-monospace, monospace; }
.pz-hint { flex-basis: 100%; margin: 0; color: var(--warn, #e8590c); }

.twbot-chips { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.twbot-chips button { font-family: ui-monospace, monospace; }

/* Eigenes Farbschema: bis zur Berechnung per Skript gelten die dunklen Standardwerte */

/* Einreichungen und Glocke */
.sub-btn { display: inline-flex; align-items: center; gap: .4rem; background: transparent; color: var(--accent); border: 1px solid var(--accent); border-radius: 6px; padding: .25rem .7rem; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.sub-btn:hover { background: var(--accent); color: var(--accent-text); }
details.bell-menu > summary.iconbtn { position: relative; width: 2rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.bell-cnt { position: absolute; top: -7px; right: -7px; background: var(--bad); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 9px; padding: 0 5px; line-height: 15px; min-width: 15px; text-align: center; }
.bell-cnt[hidden] { display: none; }
.bell-pop { width: 24rem; max-width: calc(100vw - 1rem); padding: 0; max-height: 70vh; overflow: auto; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); }
.bell-all { font-size: .82rem; }
.bell-item { display: block; padding: .6rem .8rem; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .88rem; border-left: 3px solid transparent; }
.bell-item:hover { background: rgba(127, 127, 127, .08); }
.bell-item.unread { border-left-color: var(--accent); background: rgba(127, 127, 127, .06); }
.bell-item small { display: block; margin-top: .15rem; }
.bell-empty { padding: .8rem; margin: 0; }
.subtabs { display: flex; gap: .4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.subtabs a { padding: .35rem .8rem; border-radius: 6px; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.subtabs a.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.subsplit { display: grid; grid-template-columns: 20rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.subside { display: flex; flex-direction: column; gap: .5rem; }
.subq { display: block; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 8px; color: var(--text); text-decoration: none; }
.subq small { display: block; }
.subq.sel { border-color: var(--accent); background: rgba(127, 127, 127, .1); }
.subdetail .card { margin: 0; }
.idl { display: flex; gap: .5rem; align-items: center; padding: .4rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.idl code { flex: 1; overflow-wrap: anywhere; }
.subids .idrow { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: .5rem; margin-bottom: .5rem; align-items: center; }
.warnbox { background: var(--warn-bg); border-radius: 8px; padding: .5rem .7rem; font-size: .85rem; margin: .3rem 0 .6rem; }
.subfoot { margin: 1rem -1rem -1rem; }
.subnote { max-width: 24rem; white-space: pre-line; }
.subact { white-space: nowrap; }
@media (max-width: 800px) { .subsplit { grid-template-columns: 1fr; } header.top .sub-btn span { display: none; } }
.pz-notify { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.pz-notify label.inline { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }

/* Seitenwechsel ohne Verspringen: Platz für die Scroll-Leiste immer reservieren */
html { overflow-y: scroll; scrollbar-gutter: stable; }
.offtypes .offt-btns { display: flex; gap: .4rem; justify-content: flex-end; flex-wrap: wrap; }
.offtypes .offt-btns button { padding: .25rem .6rem; }

/* Eigene Sprachkanäle */
.voicecfg label { display: block; margin: 6px 0; }
.voicecfg label.inline { display: flex; align-items: center; gap: 6px; }
.voicecfg input.narrow { width: 5.5em; }
.voicecfg input.wide { width: min(26em, 100%); }
.voicerule { border: 1px solid var(--line, #3a3f4b); border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.voicerule-head { display: flex; align-items: center; gap: 8px; }
.voicerule-head button { margin-left: auto; }

/* Musik */
.musicnow { margin: .4rem 0 .8rem; }
.musictitle { font-weight: 600; font-size: 1.05rem; }
.musicbtns { gap: .5rem; flex-wrap: wrap; align-items: center; margin: .6rem 0; }
.musicvol { width: 9rem; }
.musicq { display: flex; gap: .5rem; align-items: center; padding: .25rem 0; border-bottom: 1px solid var(--line); }
.musicq > :first-child { flex: 1; }
.stationrow input.wide { flex: 1; width: auto; min-width: 12rem; }

/* Mitschrift */
.tline { display: grid; grid-template-columns: 11.5rem 9rem 1fr; gap: .6rem; padding: .3rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .tline { grid-template-columns: 1fr; gap: .1rem; } }

/* Overlay: Befehlsliste als Karten, einklappbare Formularabschnitte, Chips */
.ovl-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .4rem; }
.ovl-chiprow { display: flex; gap: .3rem; flex-wrap: wrap; }
.ovl-chipbtn { padding: .15rem .6rem; font-size: .85rem; border-radius: 999px; }
.ovl-chipbtn.on { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: var(--accent); }
.ovl-cmdcards { display: flex; flex-direction: column; gap: .4rem; max-height: 70vh; overflow: auto; }
.ovl-cmdcard { border: 1px solid var(--line); border-radius: 10px; padding: .5rem .7rem; cursor: pointer; display: flex; flex-direction: column; gap: .3rem; }
.ovl-cmdcard:hover { border-color: var(--accent); }
.ovl-cmdcard.ovl-sel { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: var(--accent); }
.ovl-cmdcard.off { opacity: .65; }
.ovl-cmdtop { display: flex; align-items: center; gap: .5rem; }
.ovl-cmdtop code { color: var(--accent); }
.ovl-fsec { margin: .55rem 0; }
.ovl-fsec > summary { cursor: pointer; }
.ovl-filesec { margin-top: 1rem; }
.ovl-setup .ovl-chips a.badge { text-decoration: none; }
.ovl-cmdform { position: sticky; top: 4.5rem; max-height: calc(100vh - 5rem); overflow: auto; }
@media (max-width: 70rem) { .ovl-cmdform { position: static; max-height: none; } }

/* Sessions & Spielzeit */
.sesstab { width: 100%; border-collapse: collapse; font-size: .88rem; margin: .5rem 0 1rem; }
.sesstab th, .sesstab td { text-align: left; padding: .3rem .5rem; border-bottom: 1px solid var(--border); }
.sessgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.sessbars-row { display: flex; align-items: flex-end; gap: 2px; height: 80px; margin-top: .3rem; }
.sessbar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.sessbar i { display: block; width: 100%; background: linear-gradient(180deg, #9b7bff, #6d4bd1); border-radius: 3px 3px 0 0; }
.sessbar span { font-size: .65rem; color: var(--muted); height: .9rem; line-height: .9rem; white-space: nowrap; }
.sesslist { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .86rem; }



/* Live Chat: Moderationsknöpfe (Timeout / Bann) in der letzten Spalte */
/* (seit 0.55.0 stehen Marken und Symbole in eigenen Spalten, siehe Block „Live Chat: eine Zeile“ am Dateiende) */
.lc-mod-btns { display: inline-flex; gap: .25rem; }
button.danger-chip { color: var(--bad); border-color: var(--bad); }
.modchips { margin: .5rem 0; }

/* KI-Dienste: eine Zeile je Dienst, Einstellungen klappen auf */
.aisvc { padding: .55rem .8rem; }
.aisvc-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.aisvc-name { min-width: 10rem; }
.aisvc-model { min-width: 11rem; }
.aisvc-uses { display: flex; gap: .3rem; flex-wrap: wrap; }
.aisvc-detail { border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .5rem; }
.aisvc-add summary { cursor: pointer; }
.aisvc-add[open] summary { margin-bottom: .5rem; }

.toptable { max-height: 55vh; overflow: auto; border: 1px solid var(--line); border-radius: 6px; margin: .5rem 0; }
/* Steam-Stand-Umschalter (0.25.1): kleine Pille in der Kopfzeile der Karte */
.segpill { display: inline-flex; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: .72rem; }
.segpill button { all: unset; cursor: pointer; padding: .1rem .55rem; color: var(--muted); }
.segpill button:hover:not(:disabled):not(.on) { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.segpill button.on { background: var(--accent); color: #fff; }
.segpill button:disabled { opacity: .4; cursor: default; }
.segpill button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.segpill + .ext { margin-left: .5rem; }
.steamline { font-size: .75rem; color: var(--muted); margin: -.2rem 0 .45rem; }
.steamline b { color: #b45309; }

/* Design (0.27.0): Schemata, Farben, Hintergrund */
.ds-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .6rem; }
.ds-slot { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; display: flex; flex-direction: column; gap: .25rem; background: var(--panel); }
.ds-slot.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ds-slot.empty { border-style: dashed; background: transparent; }
.ds-slot-btns { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.ds-slot-btns button { padding: .15rem .55rem; font-size: .78rem; }
.ds-mini { display: flex; gap: .25rem; margin: .2rem 0; }
.ds-mini i { display: block; width: 1.6rem; height: .9rem; border-radius: 3px; border: 1px solid var(--line); }
.ds-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .3rem 0 .6rem; }
.ds-sw { width: 2rem; height: 2rem; border-radius: 8px; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.ds-sw.round { border-radius: 50%; }
.ds-sw.on { outline: 3px solid var(--accent); outline-offset: 2px; }
.ds-sw:focus-visible, .ds-form:focus-visible, .ds-pair:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ds-pair { width: 2.4rem; height: 1.4rem; border-radius: 6px; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.ds-forms { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.2rem, 1fr)); gap: .5rem; }
.ds-form { height: 3rem; border-radius: 8px; border: 2px solid var(--line); cursor: pointer; display: flex; align-items: flex-end; padding: .2rem .35rem; font: inherit; font-size: .7rem; color: #fff; text-align: left; }
.ds-form span { text-shadow: 0 1px 2px #000; }
.ds-form.on { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Kopfzeile (0.28.0): eigene Bereiche als kleine Symbole links neben der Glocke */
.hub { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; margin-right: .35rem; }
.hub[hidden], .hub details[hidden] { display: none !important; }
.hub details.prefs > summary.hub-btn { border: 0; width: 30px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; position: relative; color: var(--muted); }
.hub details.prefs > summary.hub-btn:hover, .hub details.prefs[open] > summary.hub-btn { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--text); }
.hub-mark.dot { position: absolute; right: 4px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: #e03131; box-shadow: 0 0 0 2px var(--panel); }
.hub-mark.cnt { position: absolute; right: 1px; bottom: 1px; font-size: .58rem; line-height: 1; padding: 1px 3px; border-radius: 6px; background: var(--line); color: var(--text); }
.hub-pop { width: 21rem; padding: .5rem; }
.hub-pop h4 { margin: .35rem .3rem .3rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hub-it { display: flex; align-items: center; gap: .55rem; padding: .4rem .5rem; border-radius: 8px; color: var(--text); text-decoration: none; }
.hub-it:hover, .hub-it:focus-visible { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.hub-it .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hub-it b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-av { width: 28px; height: 28px; border-radius: 50%; background: var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; flex: none; object-fit: cover; }
.hub-meta { font-size: .75rem; color: var(--muted); }
.hub-note { font-size: .8rem; color: var(--muted); margin: .2rem .3rem .4rem; }
.hub-role { font-size: .7rem; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.hub-role.own { border-color: var(--accent); color: var(--accent); }
.hub-live { font-size: .64rem; font-weight: 700; color: #fff; background: #e03131; border-radius: 4px; padding: 0 4px; }
.hub-foot { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .45rem; display: flex; gap: .8rem; flex-wrap: wrap; font-size: .82rem; }
.user-areas { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; margin: .4rem 0; }
.user-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; }
.twteam-table td, .twteam-table th { padding: .4rem .5rem; }
.card.admin-only { border-style: dashed; }

/* Startseite: Raster aus Widgets (ab 0.29.0) */
.hg-bar { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .7rem; }
.hg-bar h2 { margin: 0; }
.hg-ctl { display: inline-flex; align-items: center; gap: .4rem; }
.hg-step { min-width: 2.2rem; padding: .2rem .5rem; }
.hg-hint { background: var(--panel); border: 1px solid var(--accent); border-radius: 8px; padding: .5rem .8rem; font-size: .85rem; margin-bottom: .8rem; }
.hgrid { display: grid; grid-auto-rows: 64px; position: relative; }
.hw { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .8rem; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; position: relative; }
.hw.edit { border-style: dashed; }
.hw-head { display: flex; align-items: center; gap: .4rem; margin-bottom: .4rem; }
.hw-head h3 { margin: 0; font-size: .95rem; }
.hw-body { flex: 1; min-height: 0; overflow: auto; }
.hw-body > :last-child { margin-bottom: 0; }
.hw .stats { margin: 0; }
.hw .twmine { margin: 0; }
.hw h4 { margin: .5rem 0 .2rem; font-size: .8rem; color: var(--muted); }
.hw-row { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; border-top: 1px solid var(--line); }
.hw-row:first-child { border-top: 0; }
.hw-row a { text-decoration: none; }
.hg-grip, .hg-x { background: none; border: 0; color: var(--muted); padding: .25rem; min-width: 0; line-height: 0; border-radius: 6px; touch-action: none; }
.hg-grip { cursor: grab; }
.hg-grip:hover, .hg-x:hover, .hg-grip:focus-visible { color: var(--text); background: var(--line); }
.hg-rs { position: absolute; right: 4px; bottom: 4px; line-height: 0; color: var(--accent); cursor: nwse-resize; touch-action: none; padding: 4px; }
.hw.dragging { z-index: 5; box-shadow: 0 14px 30px rgba(0, 0, 0, .5); border-color: var(--accent); border-style: solid; }
.hg-slot { border: 2px dashed var(--accent); border-radius: 10px; background: rgba(116, 143, 252, .1); pointer-events: none; }
.hg-tray { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1rem; }
.hg-chip { background: var(--panel); color: var(--text); border: 1px dashed var(--muted); border-radius: 999px; padding: .4rem .9rem; }
@media (max-width: 760px) {
  .hgrid { display: flex !important; flex-direction: column; }
  .hw { grid-area: auto !important; height: auto; max-height: none; overflow: visible; }
  .hw-body { overflow: visible; }
  .hg-wide { display: none; }
}

/* Serverliste: sortierbare Spalten, Wipe, Verbinden (ab 0.30.0) */
.srvscroll { overflow-x: auto; }
.srvtable .c-wipe { min-width: 14rem; }
.sortbtn { background: none; border: 0; color: inherit; font: inherit; font-weight: 600; padding: 0; cursor: pointer; white-space: nowrap; }
.sortbtn:hover, .sortbtn.on { color: var(--accent); }
.srv-connect { display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.srv-connect code { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: .15rem .5rem; }

/* Benutzerliste: aufklappbare Zeilen */
.uitem { padding: 0; margin-bottom: .5rem; }
.uitem .userhead { all: unset; box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; width: 100%; padding: .55rem .8rem; min-height: 48px; cursor: pointer; margin: 0; }
.uitem .userhead:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }
.uitem .usp { flex: 1; }
.uitem .chips { display: inline-flex; flex-wrap: wrap; gap: .25rem; }
.uitem .caret { display: inline-block; transition: transform .15s; }
.uitem.open .caret { transform: rotate(90deg); }
.uitem .chip { display: inline-flex; font-size: .75rem; border-radius: 999px; padding: 0 .55rem; border: 1px solid var(--line); }
.uitem .chip.role { background: rgba(116, 143, 252, .18); border-color: transparent; }
.uitem .chip.on { background: rgba(80, 200, 120, .18); border-color: transparent; }
.uitem .chip.off { opacity: .4; }
.uitem-body { padding: .6rem .8rem .8rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.uitem-body[hidden] { display: none; }
.ufilter { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .8rem 0; }
.ufilter input[type=search] { flex: 1 1 200px; min-width: 0; }
.psearch-res { display: flex; flex-direction: column; gap: .3rem; margin: .4rem 0; }
.psearch-res .pres { text-align: left; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; min-height: 44px; }
.psearch-chosen { margin: .4rem 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.psearch-chosen[hidden], .grid[hidden] { display: none; }

/* Serverliste: Spalten nach Inhalt, nichts abschneiden; Datum unter der Angabe */
table.srvtable:not(.manage) { table-layout: auto; min-width: 62rem; }
table.srvtable:not(.manage) td, table.srvtable:not(.manage) th { overflow: visible; }
table.srvtable:not(.manage) td.srv-name { min-width: 16rem; max-width: 26rem; overflow: hidden; }
table.srvtable:not(.manage) td.srv-name a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srvtable:not(.manage) .c-wipe { min-width: 11rem; }
.srvtable:not(.manage) .c-exp { min-width: 7rem; }
.srvtable:not(.manage) .c-players, .srvtable:not(.manage) .c-online { width: auto; white-space: nowrap; }
.srvtable:not(.manage) td { vertical-align: top; }
.block { display: block; }

/* Status-Seite */
.status { display: flex; flex-direction: column; gap: 1rem; }
.status h3 { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem; }
.status .banner { padding: .6rem .9rem; border-radius: 10px; }
.status .banner.ok { background: var(--ok-bg); color: var(--ok); }
.status .banner.warn { background: var(--warn-bg); }
.status .banner ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.status .scrollx { overflow-x: auto; }
.status table { width: 100%; border-collapse: collapse; min-width: 34rem; }
.status th { text-align: left; font-size: .75rem; color: var(--muted); padding: .35rem .5rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.status td { padding: .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pill { display: inline-flex; font-size: .75rem; border-radius: 999px; padding: 0 .6rem; white-space: nowrap; background: var(--line); color: var(--muted); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.sgrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.sgrid2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.slim-head { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.meter { height: 10px; border-radius: 99px; background: var(--line); position: relative; overflow: hidden; margin: .35rem 0 .2rem; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--ok); }
.meter i.w { background: #e0a100; }
.meter i.b { background: var(--bad); }
.meter u { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--text); opacity: .6; }
.srow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .8rem; }
.srow input { width: 9rem; }
.stiles { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.stile { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; }
.stile b { font-size: 1.05rem; }

/* Rust+ */
.hub-rp { font-size: .72rem; font-weight: 700; text-decoration: none; border: 1px dashed var(--accent); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.rustplus { display: flex; flex-direction: column; gap: 1rem; }
.rp-chests, .rp-pair { display: flex; flex-direction: column; gap: 1rem; }
.rp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.rp-bar input[type=search] { flex: 1 1 14rem; min-width: 0; }
.rp-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.rp-head .sp { flex: 1; }
.rp-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.rp-items { display: grid; gap: .4rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.rp-it { display: flex; justify-content: space-between; gap: .5rem; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .3rem .6rem; font-size: .9rem; }
.rp-it b { font-variant-numeric: tabular-nums; }
.rp-fields { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-bottom: .6rem; }
.rp-f { display: flex; flex-direction: column; gap: .2rem; }
.rp-add { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.rp-add input { flex: 1 1 10rem; min-width: 0; }
.rp-guide ol { padding-left: 1.2rem; display: grid; gap: .4rem; }
.rp-guide code { word-break: break-all; }
.scrollx { overflow-x: auto; }

.rp-acct { display: flex; flex-direction: column; gap: 1rem; }
.rp-steps { display: grid; gap: .8rem; margin: .6rem 0; }
.rp-step { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .6rem; }
.rp-step .grow { flex: 1 1 18rem; display: flex; flex-direction: column; gap: .4rem; }
.rp-step .grow input { width: 100%; }
.rp-n { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 700; flex: none; }
.rp-inbox { display: grid; gap: .1rem; }
.rp-in { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.rp-in .grow { flex: 1 1 14rem; min-width: 0; }
.rp-err { color: var(--bad); }
.importform fieldset.fpattern[hidden] { display: none; }

/* Overlay 0.36: Live-Tabelle, Popup für Befehle, Zeit-Auslöser */
.ovl-cmdtable td { vertical-align: middle; }
.ovl-cmdtable tr.ovl-running td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ovl-cmdtable tr.off td { color: var(--muted); }
.ovl-rowact { text-align: right; white-space: nowrap; }
.ovl-rowact button { display: inline-block; width: auto; margin-left: .3rem; padding: .25rem .65rem; }
.ovl-livecmds .ovl-search { max-width: 14rem; }
.ovl-acc { border-top: 1px solid var(--line); }
.ovl-acc:first-child { border-top: 0; }
.ovl-acc > summary { cursor: pointer; padding: .55rem 0; }
.ovl-accbody { padding: 0 0 .6rem; }
.ovl-accin { padding: .35rem 0; }
.ovl-accs { padding-top: .2rem; padding-bottom: .2rem; }
.ovl-autobadge { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
dialog.modal .ovl-cmdform { position: static; max-height: none; overflow: visible; }
.ovl-editmodal { width: min(54rem, calc(100vw - 2rem)); }
.ovl-tabs2 { display: flex; gap: .15rem; border-bottom: 1px solid var(--line); margin: .3rem 0 .8rem; flex-wrap: wrap; }
.ovl-tab2 { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--muted); padding: .45rem .9rem; margin-bottom: -1px; }
.ovl-tab2:hover { color: var(--text); }
.ovl-tab2.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.ovl-dot { color: var(--accent); font-size: .6rem; margin-left: .35rem; vertical-align: middle; }
.ovl-pane { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: .8rem; }
.ovl-autopane { display: flex; flex-direction: column; gap: .7rem; }
.ovl-timerow { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ovl-timerow input[type=number] { width: 6rem; }
.ovl-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.ovl-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .25rem .15rem .75rem; border-radius: 99px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 600; }
.ovl-warnnote { background: var(--warn-bg); border-radius: 8px; padding: .5rem .7rem; margin: 0; font-size: .88rem; }
.ovl-nextnote { background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 8px; padding: .5rem .7rem; margin: 0; font-size: .88rem; }
.ovl-cmdform .ovl-btnrow { position: sticky; bottom: 0; background: var(--panel); padding: .7rem 0 .2rem; margin-top: .8rem; border-top: 1px solid var(--line); }

/* Spieler bearbeiten: kompakte ID-Kacheln, Bans */
.cardhead { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.cardhead h2 { margin: 0; }
.cardhead .grow { flex: 1; }
.idactions { display: inline-flex; gap: .4rem; flex-wrap: wrap; }
.edit3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.edit3 textarea { min-height: 2.6rem; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
@media (max-width: 900px) { .edit3, .cols3 { grid-template-columns: 1fr; } }
.idtile { border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.idtile-head { display: flex; align-items: center; gap: .45rem; }
.idtile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idmenu { position: relative; }
.idmenu > summary { list-style: none; cursor: pointer; width: 1.8rem; height: 1.8rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 7px; }
.idmenu > summary::-webkit-details-marker { display: none; }
.idmenu-panel { position: absolute; right: 0; top: calc(100% + .2rem); z-index: 20; min-width: 14rem; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); padding: .25rem; display: flex; flex-direction: column; }
.menuitem { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: .45rem .6rem; border-radius: 6px; font: inherit; cursor: pointer; text-decoration: none; }
.menuitem:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.menuitem.danger { color: var(--bad); }
.banrow { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.banrow:first-of-type { border-top: 0; }
.banrow.gone { opacity: .8; }
.bans-gone { margin-top: .6rem; border-top: 1px solid var(--line); padding-top: .4rem; }
.bans-gone > summary { cursor: pointer; padding: .3rem 0; }

/* Bereich 2 (Basecraft): Einstellungen und Auswahl auf der Startseite */
.bcswitch { display: flex; align-items: center; gap: .6rem; margin: .8rem 0; font-weight: 600; cursor: pointer; }
.bcswitch input { width: 1.2rem; height: 1.2rem; }
.bcgrid { display: grid; gap: .8rem 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: .8rem 0; }
.bcfield { display: flex; flex-direction: column; gap: .25rem; }
.bcfield input, .bcfield select { width: 100%; box-sizing: border-box; }
.bcresult { margin-top: .8rem; }
.bctable { width: 100%; border-collapse: collapse; }
.bctable th, .bctable td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--line); }
.bcpreview { border: 1px dashed var(--line); border-radius: 12px; padding: 1.2rem; pointer-events: none; }
.bchubpage { max-width: 56rem; margin: 8vh auto; padding: 0 1rem; text-align: center; }
.bchubpage .logo-mark { display: block; margin: 0 auto .6rem; }
.bchub { display: flex; flex-direction: column; gap: 1rem; text-align: left; margin-top: 1.4rem; }
.bchubcards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.bchubcard { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid #3ec1b3; border-radius: 12px; padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; }
.bchubcard.basecraft { border-top-color: #e8a33d; }
.bchubcard h2 { margin: 0; font-size: 1.5rem; }
.bchubcard p { margin: 0; color: var(--muted); flex: 1; }
.bchubtag { align-self: flex-start; font-size: .75rem; border: 1px solid var(--line); border-radius: 999px; padding: .1rem .6rem; color: var(--muted); }
.bchubbtn { align-self: flex-start; display: inline-block; padding: .55rem 1rem; border-radius: 8px; background: #3ec1b3; color: #0b1a18; font-weight: 600; text-decoration: none; }
.bchubcard.basecraft .bchubbtn { background: #e8a33d; color: #231a08; }
.bchubbase { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; color: var(--muted); font-size: .9rem; }
.bchubbase strong { color: var(--text); }

/* Bereich 2: Gäste (Einstellungen) und Umschalter Metadex | Basecraft */
.bcstats { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1rem; }
.bctile { flex: 1 1 12rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; }
.bctile span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.bctile strong { display: block; font-size: 1.9rem; margin-top: .2rem; }
.bctile strong.warn, .bctable td.bcwarn { color: #ffa94d; font-weight: 600; }
.areaswitch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; font-weight: 600; }
.areaswitch > * { padding: .3rem .85rem; border-radius: 8px; text-decoration: none; }
.areaswitch .on { background: var(--accent); color: var(--accent-text); }
.areaswitch a { color: #e8a33d; }
.areaswitch a:hover { background: color-mix(in srgb, #e8a33d 18%, transparent); }

/* Rust-Items (Einstellungen) */
.itbar { margin-bottom: .8rem; }
.itbar input { width: 100%; max-width: 28rem; }
.itchips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.chipbtn { background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; cursor: pointer; font: inherit; font-size: .85rem; }
.chipbtn.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.ithead { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; margin-bottom: .8rem; }
.itgrid { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1rem; }
.ittile { position: relative; flex: 0 0 9.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .7rem; display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; color: var(--text); cursor: pointer; font: inherit; }
.ittile:hover { border-color: var(--accent); }
.ittile strong { font-size: .85rem; overflow-wrap: anywhere; }
.ittile small { font-size: .7rem; color: var(--muted); overflow-wrap: anywhere; }
.itpic { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--bg); }
.itpic img { max-width: 96px; max-height: 96px; object-fit: contain; }
.itph { font-size: .7rem; color: var(--muted); }
.itnew { position: absolute; top: .4rem; right: .4rem; background: var(--accent); color: var(--accent-text); font-size: .65rem; font-weight: 700; padding: .05rem .4rem; border-radius: 999px; }
.ittile.skin { cursor: default; flex-basis: 11rem; }
.ittile.skin .row { justify-content: center; gap: .4rem; }

/* Ladeanzeige, bis die Oberfläche gestartet ist (wird beim Start ersetzt) */
.boot-load { min-height: 60vh; display: grid; place-items: center; color: var(--muted, #94a3b8); font-size: 1.05rem; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Jobs (Einstellungen › Daten › Jobs) */
table.jobs td { vertical-align: middle; }
table.jobs tr.job-off td:not(:first-child):not(:nth-child(2)) { opacity: .55; }
.job-num { width: 5rem; }
.job-unit { width: auto; }
.job-tact { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.job-switch { width: 2.2rem; height: 1.2rem; accent-color: var(--ok); cursor: pointer; }

/* Land mit VPN-Symbol */
.landcell { display: inline-flex; align-items: center; gap: .4rem; }
.vpnicon { display: inline-flex; width: 1.25rem; height: 1.25rem; border-radius: 50%; align-items: center; justify-content: center; color: #7c3aed; border: 1px solid currentColor; cursor: help; }
.vpnicon:focus-visible { outline: 2px solid var(--accent, #2f6fed); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .vpnicon { color: #a98bff; } }
:root[data-theme="dark"] .vpnicon { color: #a98bff; }

/* 0.49.0: ID-Kacheln in drei Spalten (Steam | BattleMetrics mit gleichem Namen | übrige), Aktionen direkt an der Kachel */
.idgrid { display: flex; flex-direction: column; gap: .6rem; }
.idrow3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; align-items: stretch; }
.idgap { min-height: 0; }
@media (max-width: 900px) { .idrow3 { grid-template-columns: 1fr; } .idgap { display: none; } }
.idtile.main { border-color: var(--accent); }
.idtile.maybe { border-style: dashed; border-color: var(--muted); }
.idtile-head .markseg { margin-left: auto; }
.markseg { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; flex: none; }
.markseg .mk { font: inherit; font-size: .78rem; padding: .15rem .55rem; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--muted); cursor: pointer; }
.markseg .mk:last-child { border-right: 0; }
.markseg .mk[aria-pressed="true"].main { background: var(--warn-bg); color: var(--text); font-weight: 600; }
.markseg .mk[aria-pressed="true"].maybe { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); font-weight: 600; }
.markseg .mk[aria-pressed="true"].none { background: var(--panel2, transparent); color: var(--text); }
.badge.maybe { background: transparent; border: 1px dashed var(--muted); }
.idtile-act { display: flex; justify-content: flex-end; gap: .3rem; margin-top: auto; padding-top: .2rem; }
.idbtn { width: 1.8rem; height: 1.8rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--text); cursor: pointer; text-decoration: none; }
.idbtn:hover { border-color: var(--accent); }
.idbtn.danger { color: var(--bad); }
/* Mates als Tabelle */
.matetable { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.matetable th, .matetable td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.matetable th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 500; }
.matetable tr:last-child td { border-bottom: 0; }
.matetable tr.bad td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.matetable .num { text-align: right; width: 1%; white-space: nowrap; }
.matetable-wrap { overflow-x: auto; }
/* Einreichen: Reiter im Dialog */
.subkind { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: .7rem; }
.subkind button { border: 0; border-radius: 0; background: transparent; color: var(--muted); border-right: 1px solid var(--line); }
.subkind button:last-child { border-right: 0; }
.subkind button[aria-pressed="true"] { background: var(--accent); color: var(--accent-text, #fff); }
.subtarget { display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 8px; margin-bottom: .6rem; }
.subsug { margin-top: .4rem; display: flex; flex-direction: column; gap: .3rem; }
.subsug-item { display: flex; align-items: center; gap: .5rem; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 8px; }

/* 0.49.2: Meistgespielt als Chips, Plattform-Symbol in der ID-Übersicht als Link */
.gchips { display: flex; flex-wrap: wrap; gap: .3rem; }
.gchip { font-size: .8rem; padding: 0 .5rem; border-radius: 9px; background: var(--panel2, rgba(128,128,128,.15)); white-space: nowrap; cursor: default; }
.gchip b { font-weight: 600; }
.idiconlink { display: inline-flex; border-radius: 5px; line-height: 0; }
.idiconlink:hover, .idiconlink:focus-visible { box-shadow: 0 0 0 2px var(--accent); }

/* Gesamtes Netzwerk */
.hub-nw { border: 1px dashed var(--accent); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.nw { display: flex; flex-direction: column; gap: 1rem; }
.nw-ctl { display: flex; flex-direction: column; gap: .6rem; }
.nw-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.nw-row .sp { flex: 1; }
.nw-ctl input[type=range] { width: 16rem; max-width: 100%; }
.nw-find input { max-width: 28rem; }
.nw-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.nw-chip { border: 1px solid var(--line); border-radius: 999px; padding: .1rem .65rem; font-size: .8rem; background: var(--panel); color: var(--text); cursor: pointer; }
.nw-chip.off { opacity: .45; text-decoration: line-through; }
.nw-chip.static { cursor: default; }
.nw-chip.warn { border-color: #e5a100; }
.nw-main { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 1rem; align-items: start; }
@media (max-width: 900px) { .nw-main { grid-template-columns: minmax(0, 1fr); } }
.nw-map { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.nw-svg { width: 100%; height: auto; display: block; }
.nw-empty { padding: 1.5rem; }
.nw-legend { padding: .4rem .8rem .6rem; margin: 0; }
.nw-link { stroke: var(--muted); opacity: .6; }
.nw-link.strong { stroke: var(--accent); opacity: .85; }
.nw-bub { cursor: pointer; outline: none; }
.nw-bub circle.b { fill-opacity: .28; stroke-width: 2.5; }
.nw-bub:hover circle.b, .nw-bub:focus circle.b, .nw-bub.sel circle.b { stroke-width: 6; fill-opacity: .4; }
.nw-bub circle.ring { fill: none; stroke: var(--bad); stroke-width: 3; stroke-dasharray: 6 4; }
.nw-bub text { fill: var(--text); text-anchor: middle; pointer-events: none; }
.nw-t1 { font-size: 12.5px; font-weight: 600; }
.nw-t2 { font-size: 11px; opacity: .75; }
.nw-t3 { fill: var(--text); text-anchor: middle; font-size: 10px; pointer-events: none; }
.nw-n { cursor: pointer; outline: none; }
.nw-n circle { stroke: var(--panel); stroke-width: 2; }
.nw-n.bridge circle { stroke: #e5a100; stroke-width: 4; }
.nw-n.past circle { stroke: #e8a317; stroke-width: 3; }
.nw-n.bad circle { stroke: var(--bad); stroke-width: 4; }
.nw-n:hover circle, .nw-n:focus circle, .nw-n.sel circle { stroke-width: 6; }
.nw-side { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .8rem; max-height: 680px; overflow: auto; }
.nw-side h3, .nw-side h4 { margin: .6rem 0 .3rem; }
.nw-mem { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; font-size: .88rem; }
.nw-mem-card { border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; margin: .5rem 0; background: var(--bg); }

/* ===== Stile (0.51.0): html[data-style="dichte"] und html[data-style="weich"]; ohne Attribut gilt das bisherige Aussehen ===== */
.st-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .6rem; margin-bottom: .4rem; }
.st-tile { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; text-align: left; background: var(--bg); color: var(--text); border: 2px solid var(--line); border-radius: 10px; padding: .6rem .7rem; cursor: pointer; }
.st-tile.on { border-color: var(--accent); }
.st-tile small { color: var(--muted); font-size: .8rem; }
.st-demo { display: flex; gap: 4px; width: 100%; margin-bottom: .2rem; }
.st-demo i { height: 26px; flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.st-demo i:first-child { flex: .5; }
.st-demo i:last-child { flex: .7; background: var(--accent); border-color: var(--accent); }
.st-dichte .st-demo i { border-radius: 4px; height: 18px; }
.st-weich .st-demo i { border-radius: 999px; height: 30px; box-shadow: 0 4px 12px -2px rgba(0, 0, 0, .45); }

/* ===== Gemeinsame Bausteine beider Stile (nach den Vorlagebildern): Tab-Leiste mit Unterstrich, getönte Marken, Knöpfe ===== */
html[data-style] header.top nav { gap: .1rem; }
html[data-style] header.top nav a { border-radius: 0; background: none; color: var(--muted); position: relative; }
html[data-style] header.top nav a:hover { color: var(--text); }
html[data-style] header.top nav a.active { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 14%, transparent)); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
html[data-style] :is(.badge, .pill, .chip) { background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); color: color-mix(in srgb, var(--accent) 65%, var(--text)); font-weight: 500; }
html[data-style] :is(.badge.bad, .pill.bad) { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 55%, transparent); color: var(--bad); }
html[data-style] :is(.badge.ok, .pill.ok, .badge.ingame) { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok); }
html[data-style] :is(.badge.warn, .pill.warn, .badge.past, .badge.main, .badge.ingame.guess) { background: var(--warn-bg); border-color: color-mix(in srgb, #f59e0b 50%, transparent); color: color-mix(in srgb, #f59e0b 80%, var(--text)); }
html[data-style] button.secondary { background: color-mix(in srgb, var(--text) 9%, var(--panel)); border-color: transparent; color: var(--text); }
html[data-style] button.secondary:hover { background: color-mix(in srgb, var(--text) 15%, var(--panel)); }
html[data-style] button.danger { background: color-mix(in srgb, var(--bad) 8%, transparent); border-color: color-mix(in srgb, var(--bad) 70%, transparent); color: var(--bad); }
html[data-style] button.danger:hover { background: var(--bad-bg); }
html[data-style] button.st-tile { background: var(--bg); color: var(--text); }
html[data-style] .stat span { color: var(--muted); }

/* ===== Dichte (Vorlage: Admin-Dashboard mit Datenmatrix) ===== */
html[data-style="dichte"] body { font-size: 13.5px; }
html[data-style="dichte"] :is(h1, h2, h3) { margin-bottom: .45rem; }
html[data-style="dichte"] h2 { font-size: 1.05rem; }
html[data-style="dichte"] header.top { padding: .3rem 1rem 0; gap: .3rem 1rem; background: color-mix(in srgb, var(--panel) 70%, var(--bg)); border-bottom: 1px solid var(--line); }
html[data-style="dichte"] header.top nav a { padding: .6rem .8rem; font-size: .95rem; }
html[data-style="dichte"] main { margin-top: .9rem; padding-bottom: 2rem; }
html[data-style="dichte"] :is(.card, .pcard, .pcardx, a.row, .stat, .pl-side, .pz-side, .nw-side, .nw-map) { border-radius: 8px; box-shadow: none; transition: border-color .12s; }
html[data-style="dichte"] .card { padding: .75rem .9rem; margin-bottom: .75rem; }
html[data-style="dichte"] .pcard { padding: .5rem .7rem; }
html[data-style="dichte"] .pcardx { padding: .65rem .85rem; }
html[data-style="dichte"] .plist { gap: .5rem; }
html[data-style="dichte"] :is(.card, .pcard, .pcardx, a.row, .stat):hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
html[data-style="dichte"] :is(input, select, textarea) { padding: .32rem .55rem; border-radius: 8px; font-size: 13px; background: color-mix(in srgb, var(--bg) 85%, black); }
html[data-style="dichte"] :is(button, a.button) { padding: .32rem .75rem; border-radius: 6px; font-size: 13px; font-weight: 500; }
html[data-style="dichte"] label { margin-bottom: .4rem; }
html[data-style="dichte"] table { font-size: 12.5px; }
html[data-style="dichte"] :is(th, td) { padding: .38rem .65rem; font-variant-numeric: tabular-nums; }
html[data-style="dichte"] th { position: sticky; top: var(--toph); z-index: 2; background: color-mix(in srgb, var(--bg) 45%, var(--panel)); color: var(--muted); font-size: 12px; font-weight: 500; border-bottom: 1px solid var(--line); }
html[data-style="dichte"] td { border-top-color: color-mix(in srgb, var(--line) 70%, transparent); }
html[data-style="dichte"] tbody tr:hover > td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
html[data-style="dichte"] :is(.badge, .chip, .pill) { border-radius: 5px; font-size: 11.5px; padding: .02rem .45rem; letter-spacing: .02em; }
html[data-style="dichte"] :is(code, pre, .ovl-big) { font-family: var(--mono); }
html[data-style="dichte"] code { font-size: 12px; border-radius: 4px; background: color-mix(in srgb, var(--bg) 80%, black); }
html[data-style="dichte"] .stats { gap: .6rem; margin-bottom: .75rem; }
html[data-style="dichte"] .stat { padding: .6rem .8rem; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--panel)), color-mix(in srgb, var(--accent) 6%, var(--panel))); border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); }
html[data-style="dichte"] .stat b { font-size: 1.9rem; font-variant-numeric: tabular-nums; font-weight: 600; }
html[data-style="dichte"] .stats .stat:nth-child(4n+2) { background: color-mix(in srgb, var(--text) 5%, var(--panel)); border-color: var(--line); }
html[data-style="dichte"] .stats .stat:nth-child(4n+4) { background: linear-gradient(135deg, color-mix(in srgb, #f59e0b 22%, var(--panel)), color-mix(in srgb, #f59e0b 6%, var(--panel))); border-color: color-mix(in srgb, #f59e0b 40%, var(--line)); }
html[data-style="dichte"] .stat.bad { background: linear-gradient(135deg, color-mix(in srgb, var(--bad) 24%, var(--panel)), color-mix(in srgb, var(--bad) 7%, var(--panel))); border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
html[data-style="dichte"] .item { padding: .5rem 0; }
html[data-style="dichte"] .nw-chip { border-radius: 5px; }

/* ===== Weich (Vorlage: Live-Dashboard mit Glas-Kacheln auf Marineblau) ===== */
html[data-style="weich"] body { font-size: 15px; }
html[data-style="weich"] :is(h1, h2, h3, h4) { font-weight: 600; }
html[data-style="weich"] h2 { font-size: 1.15rem; }
html[data-style="weich"] .card > h3 { font-size: 1rem; }
html[data-style="weich"] header.top { margin: .6rem .8rem 0; padding: .55rem 1.2rem 0; border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); border-radius: 16px; background: color-mix(in srgb, var(--panel) 62%, transparent); backdrop-filter: blur(14px); box-shadow: 0 8px 32px -8px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06); }
html[data-style="weich"] header.top nav a { padding: .7rem 1rem; font-size: 1rem; }
html[data-style="weich"] :is(.card, .pcard, .pcardx, a.row, .stat, .pl-side, .pz-side, .nw-side, .nw-map) { border-radius: 16px; border-color: color-mix(in srgb, var(--text) 11%, transparent); box-shadow: 0 8px 32px -8px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05); }
html[data-style="weich"] :is(.card, .stat, .pl-side, .pz-side, .nw-side) { background: color-mix(in srgb, var(--panel) 62%, transparent); backdrop-filter: blur(14px); }
html[data-style="weich"] .card { padding: 1.15rem 1.3rem; margin-bottom: 1.1rem; }
html[data-style="weich"] :is(.pcard, a.row) { background: color-mix(in srgb, var(--text) 5%, transparent); border-radius: 12px; box-shadow: none; }
html[data-style="weich"] .pcard { padding: .75rem .95rem; }
html[data-style="weich"] .pcardx { padding: .95rem 1.15rem; background: color-mix(in srgb, var(--panel) 62%, transparent); }
html[data-style="weich"] .plist { gap: .8rem; }
html[data-style="weich"] :is(input, select, textarea) { border-radius: 12px; padding: .5rem .8rem; background: rgba(0, 0, 0, .25); border-color: color-mix(in srgb, var(--text) 12%, transparent); }
html[data-style="weich"] :is(button, a.button) { border-radius: 999px; padding: .45rem 1.1rem; font-weight: 500; }
html[data-style="weich"] button:not(.secondary):not(.danger):not(.iconbtn):not(.star):not(.st-tile):not(.pz-chip):not(.nw-chip) { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, white), var(--accent)); box-shadow: 0 2px 10px -2px color-mix(in srgb, var(--accent) 60%, transparent); }
html[data-style="weich"] button.secondary { background: color-mix(in srgb, var(--text) 8%, transparent); border: 1px solid color-mix(in srgb, var(--text) 14%, transparent); }
html[data-style="weich"] :is(.badge, .pill, .chip) { border-radius: 999px; padding: .1rem .7rem; }
html[data-style="weich"] :is(th, td) { padding: .6rem .75rem; }
html[data-style="weich"] th { color: var(--muted); font-weight: 500; }
html[data-style="weich"] td { border-top-color: color-mix(in srgb, var(--text) 8%, transparent); }
html[data-style="weich"] tbody tr:hover > td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
html[data-style="weich"] .stat { padding: .85rem 1.05rem; }
html[data-style="weich"] .stat b { font-size: 1.9rem; font-weight: 600; }
html[data-style="weich"] :is(.dcchat, pre, .chat-embed) { background: rgba(0, 0, 0, .28); border-radius: 12px; }
html[data-style="weich"] .chat-embed { border-left-width: 3px; }
html[data-style="weich"] dialog.modal { border-radius: 18px; box-shadow: 0 16px 56px -8px rgba(0, 0, 0, .65); background: color-mix(in srgb, var(--panel) 92%, black); }
html[data-style="weich"] .nw-chip { border-radius: 999px; }
html[data-style] button.st-tile { box-shadow: none; }
html[data-style="dichte"] button.st-tile { border-radius: 8px; }
html[data-style="weich"] button.st-tile { border-radius: 16px; background: var(--bg); }
html[data-style] button.st-tile.on { border-color: var(--accent); }

/* ---- 0.52.0: Zurück-Pfeil, Serverlinks, Verlaufstabelle, Tabs in der Serverliste ---- */
main { position: relative; }
/* Pfeil: steht im Rand neben dem Inhalt, verschiebt nichts; immer gleicher Abstand zur Menüleiste */
a.backarrow {
  position: absolute; left: .3rem; top: -1.2rem; z-index: 2;
  display: inline-grid; place-items: center; width: 1.7rem; height: 1.1rem; line-height: 1;
  border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--muted);
  text-decoration: none; font-size: .85rem;
}
a.backarrow:hover, a.backarrow:focus-visible { color: var(--text); border-color: var(--accent); }
a.srvlink, td.srv-name a, .srvrow a { color: var(--text); font-weight: 600; text-decoration: none; }
a.srvlink:hover, td.srv-name a:hover, .srvrow a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.tablewrap { overflow-x: auto; }
table.histtable { width: 100%; font-size: .86rem; }
table.histtable th.num, table.histtable td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.histtable td.nowrap { white-space: nowrap; }
.srvtabs > .card { border-top-left-radius: 10px; }
.srvgroup > .stabs { margin: 0 0 .8rem; }
.recent-note { margin: 0 0 .5rem; }

/* ---- 0.52.0: Netzwerk ruhiger, Tabellen in der Seitenleiste, Namen an den Linien ---- */
.nw-bub circle.b { fill: color-mix(in srgb, var(--muted) 16%, var(--panel)); fill-opacity: 1; stroke: color-mix(in srgb, var(--muted) 70%, transparent); stroke-width: 1.5; }
.nw-bub:hover circle.b, .nw-bub:focus circle.b { stroke: var(--text); stroke-width: 2.5; fill-opacity: 1; }
.nw-bub.sel circle.b { fill: color-mix(in srgb, var(--accent) 18%, var(--panel)); stroke: var(--accent); stroke-width: 3; fill-opacity: 1; }
.nw-n circle { fill: color-mix(in srgb, var(--muted) 55%, var(--panel)); }
.nw-n.sel circle { fill: var(--accent); }
.nw-lk .nw-hit { stroke: transparent; stroke-width: 14; cursor: default; }
.nw-via { display: none; fill: var(--text); font-size: 11px; text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.nw-via.show { display: block; }
.nw-lk:hover .nw-link { opacity: 1; stroke: var(--accent); }
.nw-stats { display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-size: .85rem; color: var(--muted); margin: 0 0 .5rem; }
.nw-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
table.nw-tab { width: 100%; font-size: .84rem; }
table.nw-tab th { font-size: .74rem; white-space: nowrap; }
table.nw-tab th.num, table.nw-tab td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.nw-tab td { vertical-align: top; }
table.nw-tab tr.nw-pick { cursor: pointer; }
table.nw-tab tr.nw-pick:hover td, table.nw-tab tr.nw-pick:focus-visible td, table.nw-tab tr.on td { background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* 0.52.1: Pfeil etwas größer; Stern am Avatar liegt im Bild (nicht mehr in der Ecke, wo der Pfeil sitzt) */
a.backarrow { top: -1.25rem; width: 2.1rem; height: 1.2rem; font-size: 1.1rem; border-radius: 7px; }
.avwrap button.star { top: 3px; left: 3px; width: 28px; height: 28px; z-index: 1; }
.avwrap button.star svg { width: 17px; height: 17px; }

/* 0.52.2: Profilbild in der Spielerliste; Zurück-Pfeil groß neben dem Inhalt (breit) oder klein in der Lücke (schmal); Stern bleibt sichtbar */
.pcard.pic { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; align-items: start; }
.pcard.pic > .pl-av { grid-column: 1; grid-row: 1; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.pcard.pic > .pbody { grid-column: 2; grid-row: 1; min-width: 0; }
button.star:disabled { opacity: 1; cursor: progress; }
@media (min-width: 1440px) {
  a.backarrow { left: -3.2rem; top: 0; width: 2.5rem; height: 2.5rem; font-size: 1.4rem; border-radius: 10px; }
}

/* Spieler-ID links neben dem Stern: klein und gedämpft */
.pid { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .68rem; letter-spacing: .02em; color: var(--muted); opacity: .65; white-space: nowrap; }
.pcard .pid:hover { opacity: 1; }
/* Startseite: ohne Bearbeiten-Modus keine Kopfzeile */
.hg-bar[hidden] { display: none; }

/* Live Chat: eine Zeile. Marken (breite nach Inhalt) und Moderations-Symbole stehen neben der Nachricht, nur lange Texte brechen um */
.liveline.lc { grid-template-columns: 62px 86px minmax(110px, 170px) 1fr auto auto; align-items: start; }
.liveline.lc.wch { grid-template-columns: 62px 110px 86px minmax(110px, 170px) 1fr auto auto; }
.liveline.lc.lhead { align-items: baseline; }
.lc > .t, .lc > .lc-b, .lc > .lc-n { padding-top: .08rem; }
.lc-m { flex-wrap: wrap; max-width: 26rem; align-self: start; align-items: center; min-width: 0; }
.lc-mb { align-self: start; }
.lc-mod-btns button.lc-ib { width: 26px; height: 24px; padding: 0; display: inline-grid; place-items: center; }
.lc-mod-btns button.lc-ib svg { display: block; }
@media (max-width: 720px) {
  .lc-mb { grid-column: 2; }
}
.lc-mb-sp { display: none; }
body.lc-mod .lc-mb-sp { display: block; width: 56px; }

/* Live-Chat und Listen: früheres (abgelaufenes oder widerrufenes) Vergehen/Ban gelb, aktives rot */
.liveline.past { background: var(--warn-bg); }
tr.past td:first-child { box-shadow: inset 3px 0 0 #f59e0b; }

/* Server-Liste: Spielersuche */
.srvsearch { margin: 0 0 .6rem; }
.srvsearch input[type="search"] { min-width: 14rem; }
.srvhits { margin: 0 0 .6rem; }

/* Spielersuche: Plattform-Vorschau vor dem Anlegen */
.platprev { display: flex; flex-direction: column; gap: .8rem; }
.platcard { display: flex; flex-direction: column; gap: .7rem; }
.plathead { display: flex; gap: .7rem; align-items: center; }
.platsec { display: flex; flex-direction: column; gap: .4rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.platsec h3 { margin: 0; font-size: .95rem; }
.platfacts { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: .15rem .8rem; margin: 0; font-size: .88rem; }
.platfacts dt { color: var(--muted); }
.platfacts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.platprev .tablewrap { overflow-x: auto; }
.platprev table { font-size: .85rem; }

/* ID-Karten: Tags (Steam-Status/-Bans, Steam-Bans laut BattleMetrics) */
.idtags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.idtag { display: inline-flex; align-items: center; gap: .3rem; border-radius: 99px; background: var(--hover, rgba(127,127,127,.14)); border: 1px solid var(--line); padding: .1rem .6rem .1rem .5rem; font-size: .8rem; }
.idtag i { font-style: normal; color: var(--muted); font-size: .72rem; }
.idtag.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.idtag.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.idtag.warn { background: var(--warn-bg); color: var(--text); border-color: transparent; }
.idtag.bad i, .idtag.ok i, .idtag.warn i { color: inherit; opacity: .8; }
.vacmark { background: var(--bad); color: #fff; border-radius: 4px; font-size: .62rem; font-weight: 800; padding: 0 .3rem; letter-spacing: .03em; }
.idsteambans { margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.idsteambans .lbl { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Freie IDs: KI-Vorschläge */
.aimatch { display: flex; flex-direction: column; gap: .6rem; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.aimatch .lbl { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.aihit { border: 1px solid var(--line); border-radius: 8px; padding: .6rem; display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.aihit.top { border-color: var(--accent); }
.aihit .head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.aiwhy { margin: 0; padding-left: 1.1rem; font-size: .85rem; }
.aimeter { width: 6.5rem; height: 6px; border-radius: 99px; background: var(--hover, rgba(127,127,127,.2)); overflow: hidden; }
.aimeter i { display: block; height: 100%; background: var(--accent); }
.aibox { background: var(--hover, rgba(127,127,127,.12)); border: 1px solid var(--line); border-radius: 6px; padding: .5rem .7rem; font-size: .82rem; }

/* ===== 0.59.0: einheitliche Tags, Link-Knöpfe, Randstreifen ===== */
/* Tags: Umriss, Großbuchstaben; die Farbe sagt, worum es geht (rot aktiv, orange früher, grün unauffällig, blau Information) */
.badge, .idtag, .pill {
  display: inline-flex; align-items: center; gap: .3rem; padding: .05rem .5rem; border-radius: 6px;
  border: 1px solid color-mix(in srgb, currentColor 55%, transparent); background: transparent; color: var(--muted);
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; line-height: 1.5;
}
.badge.bad, .idtag.bad, .pill.bad { color: var(--bad); }
.badge.ok, .idtag.ok, .pill.ok, .badge.ingame { color: var(--ok); }
.badge.warn, .badge.past, .badge.seen, .idtag.warn, .pill.warn, .badge.ingame.guess { color: var(--warn); }
.badge.mate, .badge.main, .badge.role { color: var(--accent); }
.badge.bad, .idtag.bad, .pill.bad, .badge.ok, .idtag.ok, .pill.ok, .badge.ingame, .badge.warn, .badge.past, .badge.seen, .idtag.warn, .pill.warn,
.badge.ingame.guess, .badge.mate, .badge.main, .badge.role { background: transparent; border-color: color-mix(in srgb, currentColor 55%, transparent); }
.badge.maybe { border-style: dashed; border-color: var(--muted); }
.idtag i { font-style: normal; font-weight: 500; opacity: .75; }
.badge.ingame .dot { width: .45rem; height: .45rem; }
/* Link-Knöpfe (Profil, RCON, Kanal): kleiner Umriss-Knopf */
a.ext, .ident .ext, .pcardx-head .ext {
  display: inline-flex; align-items: center; gap: .3rem; padding: .05rem .6rem; border: 1.5px solid var(--muted); border-radius: 8px;
  color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; line-height: 1.5; background: transparent;
}
a.ext:hover { color: var(--text); border-color: var(--text); }
/* Randstreifen links, nach innen: rot = aktives Vergehen/Ban, orange = nur frühere */
tr.flagged td:first-child, .hrow.flagged, table.friends tr.flagged td:first-child, table.twtable tr.tw-flagged td:first-child, table.twgen tr.tw-flagged td:first-child,
.pcard.flagged, .pdetail-head.flagged { box-shadow: inset 3px 0 0 var(--bad); }
tr.past td:first-child, .pcard.past, .pdetail-head.past { box-shadow: inset 3px 0 0 var(--warn); }

/* 0.59.1: Spielerliste einzeilig, ganze Karte klickbar, Status unter dem Umschalter */
.pcard.clickable { cursor: pointer; }
.pcard.clickable:hover { border-color: var(--accent); }
.pcard .phead { flex-wrap: nowrap; align-items: center; min-width: 0; }
.pcard .pname { flex: 0 1 auto; min-width: 0; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .aka { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .phead > .badge { flex: none; }
.pcard .pright { flex: none; margin-left: auto; }
.pids { display: flex; align-items: center; gap: .5rem; margin-top: .25rem; }
.segstack { display: inline-flex; flex-direction: column; align-items: stretch; gap: .25rem; margin-left: auto; min-width: 0; }
.segstack .segpill { margin-left: 0; }
.segstack + .ext { margin-left: .5rem; }
.segstack.fixw .statuspill { width: 0; min-width: 100%; }
.statuspill { display: block; text-align: center; border: 1px solid var(--line); border-radius: 999px; padding: .1rem .55rem; font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.statuspill.on { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 55%, transparent); }

/* 0.60.0: Netzwerk-Popup – links mögliche Mates nach Wert (Belege aufklappbar), rechts Steam-Freunde, Grafik optional */
.netv2 { display: flex; flex-direction: column; gap: .6rem; flex: 1 1 auto; min-height: 0; width: 100%; }
.netv2 .netctl { margin: 0; }
.netv2 .grow { flex: 1; }
.switch { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; font-size: .9rem; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { width: 32px; height: 18px; border-radius: 99px; background: var(--line); position: relative; flex: none; transition: background .15s; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: left .15s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { left: 16px; background: #fff; }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.netgraphbox { flex: none; max-height: 42vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: .4rem; }
.netgraphbox .netsvg { min-width: 0; height: 30vh; max-height: none; }
.netcols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; flex: 1 1 auto; min-height: 0; }
.netcols.single { grid-template-columns: 1fr; }
.netcols > div { overflow: auto; min-height: 0; padding-right: .3rem; }
.nethead { margin: 0 0 .4rem; font-size: 1rem; }
.netlist { display: flex; flex-direction: column; }
.netitem { border-bottom: 1px solid var(--line); }
.netrow { display: grid; grid-template-columns: 1.4em 2.6em minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .4rem 0 .4rem .5rem; cursor: pointer; border-radius: 4px; }
.netrow:hover, .netitem.open > .netrow { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.netrow:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.netrow.bad { box-shadow: inset 2px 0 0 var(--bad); }
.netrow.past { box-shadow: inset 2px 0 0 var(--warn, #d9730d); }
.netrow .chev { color: var(--muted); font-size: .72rem; transition: transform .15s; text-align: center; }
.netitem.open .chev { transform: rotate(180deg); color: var(--accent); }
.nscore { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.nwho { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nwho strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nbar { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.nbar b { display: block; height: 100%; background: var(--accent); }
.nstat { display: inline-flex; gap: .35rem; align-items: center; flex-wrap: nowrap; white-space: nowrap; }
.netev2 { margin: 0 0 .5rem 2rem; padding: .5rem .7rem; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 6px 6px; background: color-mix(in srgb, var(--accent) 5%, transparent); }
.netev2head { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; margin-bottom: .3rem; }
.netev2 ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; font-size: .88rem; }
.netev2 li { display: grid; grid-template-columns: 9em minmax(0, 1fr) auto; gap: .6rem; padding: .2rem 0; border-bottom: 1px solid var(--line); }
.netev2 li:last-child { border-bottom: 0; }
.netev2 li > span:first-child { color: var(--muted); }
table.friends.compact td { padding: .3rem .4rem .3rem 0; }
table.friends.compact .fname { display: inline-flex; gap: .35rem; align-items: center; min-width: 0; }
.friendfilter { flex-wrap: wrap; margin: 0 0 .4rem; }
.friendfilter .on { background: var(--accent); color: var(--accent-text); }
@media (max-width: 900px) {
  .netcols { grid-template-columns: 1fr; }
  .netcols > div { overflow: visible; }
  .netev2 li { grid-template-columns: 7em minmax(0, 1fr); }
  .netev2 li > span:last-child { grid-column: 2; }
}

/* 0.60.1: Mate-Liste als Tabelle mit festen Spalten, Freundesliste füllt die Höhe */
.netcols > .netleftwrap { display: flex; flex-direction: column; overflow: hidden; padding-right: 0; gap: .4rem; }
.netcols > .netright { display: flex; flex-direction: column; overflow: hidden; padding: 3px 3px 0 3px; }
.netright > details { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; margin: 0; }
.netright > details > .hist { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 3px; }
.netright .friendfilter { position: sticky; top: -3px; z-index: 2; background: var(--panel); padding: 3px 0 5px; margin: 0; }
.nethead { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0; flex: none; }
.nethead h3 { margin: 0; font-size: 1rem; }
.nethead .friendfilter { margin: 0; padding: 2px; }
.netscroll { flex: 1 1 auto; min-height: 0; overflow: auto; }
.netlist { --ncols: 1.2rem 3.2rem minmax(6rem, 1fr) minmax(8rem, 1.2fr) 5.2rem 3.4rem 11.5rem 6rem; min-width: 700px; }
.nethd, .netrow { display: grid; grid-template-columns: var(--ncols); gap: .6rem; align-items: center; }
.nethd { position: sticky; top: 0; z-index: 2; background: var(--panel); padding: .3rem 0 .3rem .5rem; border-bottom: 1px solid var(--line); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.nsort { background: none; border: 0; padding: 0; margin: 0; font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; text-align: left; }
.nsort:hover, .nsort.on { color: var(--accent); }
.nscore { text-align: center; justify-self: start; min-width: 2.8em; padding: 2px 8px; border-radius: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nscore.hi { background: var(--accent); color: var(--accent-text); }
.nscore.mid { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.nscore.lo { border: 1px solid var(--line); color: var(--muted); }
.nwho { display: flex; flex-direction: column; min-width: 0; }
.nev { display: flex; gap: .3rem; align-items: center; overflow: hidden; white-space: nowrap; min-width: 0; }
.ncon { font-size: .82rem; white-space: nowrap; }
.nids { display: inline-flex; gap: .25rem; align-items: center; }
.nids .pi-img, .nids .pi { width: 16px; height: 16px; }
.nstat2 { display: inline-flex; gap: .3rem; align-items: center; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; min-width: 0; }
.nact { display: flex; justify-content: flex-end; }
.netev2 { margin: 0 0 .5rem calc(1.2rem + 1.2rem); }
@media (max-width: 900px) { .netscroll { overflow-x: auto; } .netcols > .netleftwrap, .netcols > .netright { overflow: visible; } .netright > details > .hist { max-height: 50vh; } }
.netleftwrap > .netleft { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: .4rem; }

/* 0.60.2: Aktionen als kleine Tags, mehr Platz links, schmalere Freundesliste */
button.atag { font: inherit; font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; padding: 0 8px; line-height: 1.5; min-height: 0; height: auto; border-radius: 99px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: transparent; color: var(--accent); cursor: pointer; white-space: nowrap; box-shadow: none; }
button.atag:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 14%, transparent); }
button.atag:disabled { opacity: .5; cursor: default; }
.netscroll { padding-right: 1rem; }
.netcols { grid-template-columns: minmax(0, 3.3fr) minmax(0, 1fr); }
.netcols.single { grid-template-columns: 1fr; }
@media (max-width: 900px) { .netcols { grid-template-columns: 1fr; } }
table.friends.compact .fname { flex-wrap: nowrap; }
table.friends.compact .fname a, table.friends.compact .fname strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 9rem; display: inline-block; }
table.friends.compact td:nth-child(2) { white-space: nowrap; }

/* 0.60.3: Freundesliste mit Überschriftenzeile, beide Listen beginnen auf gleicher Höhe */
.netcols > .netright { padding: 0 3px 0 3px; }
.netright > details.panel { border: 0; padding: 0; background: none; }
.netright > details > summary { margin-bottom: .4rem; height: 2.75rem; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 0; font-size: 1rem; }
.netright > details > summary > span:first-child { white-space: nowrap; }
.netright > details > summary .muted { font-size: .75rem; font-weight: 400; }
.friendchips { display: inline-flex; gap: .3rem; pointer-events: auto; flex-wrap: nowrap; }
button.atag.on { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.nethead { height: 2.75rem; box-sizing: border-box; flex-wrap: nowrap; }
.nethd { height: 2.9rem; box-sizing: border-box; }
table.friends.compact thead th { position: sticky; top: 0; z-index: 2; background: var(--panel); height: 2.9rem; box-sizing: border-box; padding: 0 .4rem 0 .5rem; border-bottom: 1px solid var(--line);
  font-size: .72rem; font-weight: 400; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: left; vertical-align: middle; }
table.friends.compact thead th.r { text-align: right; }
.netright > details > .hist { padding: 0; margin: 0; }
.netright table.friends { margin: 0; border-collapse: collapse; }

/* 0.61.0: einheitliche ID-Karten (feste Kopfhöhe, 8 sichtbare Zeilen, „Mehr“ direkt darunter) */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; align-items: stretch; }
.pcell { display: flex; min-width: 0; grid-column: var(--c); grid-row: var(--r); }
.pcell > * { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pcell > .steamstate > .pcardx, .pcell > .bmgroup > .pcardx { flex: 1; }
.pcell > .pcardx { flex: 1; }
.pcardx { display: flex; flex-direction: column; --rowh: 1.85rem; }
.pcardx-head { min-height: 3.75rem; align-content: flex-start; flex-wrap: wrap; align-items: flex-start; margin-bottom: .2rem; }
.pcardx .kv { grid-template-columns: 8.8rem minmax(0, 1fr); gap: 0; }
.pcardx .kv dt, .pcardx .kv dd { min-height: var(--rowh); padding: .3rem 0; border-bottom: 1px solid var(--line); box-sizing: border-box; }
.pcardx .kv dt.wide, .pcardx .kv dd.wide { grid-column: auto; margin-top: 0; }
.pcardx .kv dd { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.pcardx .morebox { margin-top: .4rem; }
.pcardx .moredata { margin-top: .3rem; }
.pcardx .priv, .priv { color: var(--muted); font-style: italic; }
.pcardx .pg { display: inline-flex; align-items: center; gap: .25rem; font-size: .8rem; color: var(--muted); }
.pcardx .pg button { background: none; border: 1px solid var(--line); border-radius: 5px; width: 1.4rem; height: 1.4rem; line-height: 1; padding: 0; cursor: pointer; color: var(--text); }
.bmgroup, .steamstate { display: flex; flex-direction: column; }
@media (max-width: 900px) { .pgrid { grid-template-columns: minmax(0, 1fr); } .pcell { grid-column: auto; grid-row: auto; } .pcardx.tall .chatsec { flex: none; overflow: visible; } }

.pcardx .dguild.flat { margin: .3rem 0; }
.pcardx .moredata .dguilds { border-top: 0; margin-top: 0; padding-top: .3rem; }

/* 0.61.4: alle Zeilen gleich hoch, Tags auf Höhe des Textes */
.pcardx { --rowh: 2.1rem; }
.pcardx .kv dt, .pcardx .kv dd { display: flex; align-items: center; padding: .1rem 0; min-height: var(--rowh); }
.pcardx .kv dd { flex-wrap: wrap; }
.pcardx .kv .idtags { margin-top: 0; }
.pcardx .kv .idtag { line-height: 1.3; }

/* 0.61.5: Main-Tag unter dem Plattformnamen */
.pcardx .ptitle { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; }
.pcardx .ptrow { display: flex; align-items: center; gap: .5rem; }
.pcardx .ptitle .badge { margin: 0; }
.pcardx-head { flex-wrap: wrap; gap: .35rem; }
.pcardx-head > * { flex-shrink: 0; }
.pcardx-head .segpill button { padding: .1rem .45rem; }
.pcardx-head .ext { margin-left: auto; white-space: nowrap; padding: .05rem .5rem; }
.pcardx-head .ext + .ext { margin-left: .2rem; }

/* Einstellungen › Entwickler › Steam-Server (Testseite) */
.ss-step { margin-top: .8rem; }
.ss-table th, .ss-table td { vertical-align: top; }
.ss-players { max-height: 24rem; overflow: auto; }
.ss-desc { white-space: pre-line; overflow-wrap: anywhere; }
.ss-preview { border: 1px dashed var(--line); }
.ss-preview .ss-title { margin: 0; font-size: 1.15rem; }
.ss-header { width: 100%; max-height: 10rem; object-fit: cover; border-radius: 6px; margin-bottom: .6rem; }
.ss-src { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: .8rem; }
.ss-src-opt { padding: .1rem .6rem; color: var(--muted); }
.ss-src-opt.on { background: var(--accent); color: var(--accent-text); }
.ss-bar { height: .3rem; background: var(--line); border-radius: 999px; margin-top: .3rem; overflow: hidden; }
.ss-bar-fill { height: 100%; background: var(--ok); }
.ss-names { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }

/* 0.63.0: Server-Pool, eingeschränkte Server, Stufen von „vermutlich ingame“ */
.badge.ingame.guess.soft, html[data-style] .badge.ingame.guess.soft { color: color-mix(in srgb, var(--ok) 62%, var(--warn)); }
.badge.ingame.guess.soft .dot { background: color-mix(in srgb, var(--ok) 62%, var(--warn)); }
.stab.locked { color: var(--bad); }
.stab.locked.on { border-bottom-color: var(--bad); }
.srvmanage .stabs.sub { margin-bottom: .8rem; }
.srvpool, .srvlist { display: flex; flex-direction: column; gap: .8rem; }
.srvscroll { overflow-x: auto; }
.srvmanage .chk { white-space: nowrap; }
.srvmanage td .chk input { flex: none; }

/* 0.64.0: Events, Aufklapp-Pfeil unter Mates/Vergehen/Events */
.morerow { display: flex; justify-content: center; border-top: 1px solid var(--line); margin-top: .4rem; }
.morebtn { background: none; border: 0; color: var(--muted); font-size: 1.3rem; line-height: 1; padding: .1rem 1.6rem; cursor: pointer; }
.morebtn:hover, .morebtn:focus-visible { color: var(--accent); }
.morebtn[aria-expanded="true"] { transform: rotate(180deg); }
.badge.ev { background: color-mix(in srgb, #8b5cf6 18%, var(--panel)); color: color-mix(in srgb, #8b5cf6 75%, var(--text)); }
.eventcard .off.ev .off-head .iconbtn { margin-left: auto; }
.eventsview .card { margin-bottom: 1rem; }
.warnbox .row-form .check { display: inline-flex; align-items: center; gap: .4rem; }

/* 0.64.3: Mates und Events einzeilig, gleiche Zeilenhöhe; ID-Spalten mit Aufklapp-Pfeil */
.matetable td { white-space: nowrap; height: 2.4rem; }
.matetable td:first-child { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; }
.matetable td:first-child a { display: block; overflow: hidden; text-overflow: ellipsis; }
.matetable td:nth-child(2) .badge { font-size: .68rem; padding: .05rem .35rem; margin-right: .25rem; }
.matetable td:nth-child(2) .badge:last-child { margin-right: 0; }
.evtable td:first-child { max-width: 13rem; }
.evtable td:first-child strong { display: block; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.idcols .morerow { margin-top: .3rem; }

/* 0.64.4: keine rote Markierung bei den Mates; ein gemeinsamer Pfeil unter den ID-Spalten */
.matetable tr.bad td:first-child { box-shadow: none; }
.idcols .morerow.idmore { grid-column: 1 / -1; }

/* 0.64.7: Listen-Auswertung als feste Tabelle */
table.listprev { table-layout: fixed; width: 100%; min-width: 72rem; }
table.listprev th { text-align: left; white-space: nowrap; }
table.listprev td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .3rem .4rem .3rem 0; height: 2.4rem; }
table.listprev th:nth-child(1), table.listprev td:nth-child(1) { width: 2rem; }
table.listprev th:nth-child(2), table.listprev td:nth-child(2) { width: 2.2rem; }
table.listprev th:nth-child(3) { width: 11rem; }
table.listprev th:nth-child(4) { width: 17rem; }
table.listprev th:nth-child(5) { width: 7rem; }
table.listprev th:nth-child(6) { width: 14rem; }
table.listprev th:nth-child(7) { width: 3.6rem; }
table.listprev th:nth-child(8) { width: 10rem; }
table.listprev .badge { font-size: .68rem; padding: .1rem .4rem; }
table.listprev .idchip { display: inline-block; margin-right: .5rem; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
table.listprev .idchip b { color: var(--fg); font-weight: 600; }
table.listprev .lev, table.listprev th:nth-child(7) { text-align: center; }
table.listprev .lname em { font-weight: 400; }

/* 0.64.9: Twitch-Karte doppelt so hoch wie die anderen ID-Karten, „Im Chat“ immer sichtbar */
.pgrid { grid-auto-rows: minmax(var(--cardh, 24.75rem), auto); }
.pcardx.tall { min-height: 0; }
.pcardx.tall .kvwrap { flex: none; }
.chatsec { flex: 1 1 0; min-height: 0; overflow-y: auto; margin-top: .6rem; }
.chathead { display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-bottom: .3rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.pcardx .morebox .morerow { margin-top: .3rem; }
