/* =========================================================
   MC Server Panel – Design
   Themes: dunkel (Standard) und hell, per data-theme am <html>
   ========================================================= */
:root {
  --bg: #0f1218; --panel: #171c26; --panel2: #1f2633; --line: #2a3345;
  --text: #e6eaf2; --muted: #8e98ad;
  --accent: #5aa2ff; --accent-bg: #2a62c4; --accent-soft: rgba(90, 162, 255, .14);
  --ok: #3fb96b; --ok-bg: #1f7a45; --ok-text: #7be0a1;
  --warn: #e0a030; --danger: #e5534b; --danger-bg: #c0352e; --danger-text: #ff8a84;
  --role-admin: #ff8a84; --role-mod: #f0b84a; --role-view: #9aa6bd;
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 24px rgba(0, 0, 0, .18);
  --radius: 14px; --radius-sm: 9px;
  --console-bg: #090b10;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f2f4f9; --panel: #ffffff; --panel2: #eef1f7; --line: #dfe4ee;
  --text: #1a2233; --muted: #5c6880;
  --accent: #2563eb; --accent-bg: #2a62c4; --accent-soft: rgba(37, 99, 235, .10);
  --ok: #178a4a; --ok-bg: #1f7a45; --ok-text: #15803d;
  --warn: #c98512; --danger: #c2362e; --danger-bg: #c0352e; --danger-text: #b42318;
  --role-admin: #c0352e; --role-mod: #a96b0b; --role-view: #5c6880;
  --shadow: 0 1px 2px rgba(20, 30, 60, .06), 0 8px 24px rgba(20, 30, 60, .06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { overscroll-behavior: none; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: clip; -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
.role-hidden { display: none !important; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0 0 .6em; }
h2 { font-size: 1.4rem; line-height: 1.2; } h3 { font-size: 1.15rem; line-height: 1.25; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.muted { color: var(--muted); }
.error { color: var(--danger-text); min-height: 1.3em; margin: 0; }
code { background: var(--bg); padding: 2px 6px; border-radius: 6px; word-break: break-all; font-size: .9em; }
.grow { flex: 1; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Layout: Sidebar + Inhalt ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 20px 14px 14px; background: var(--panel); border-right: 1px solid var(--line); z-index: 30; overscroll-behavior: contain; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 18px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.02rem; letter-spacing: .01em; }
.brand img { width: 34px; height: 34px; image-rendering: pixelated; flex: none; }
.brand b { color: var(--accent); font-weight: 700; }
#tabs { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; margin: 0 -14px; padding: 0 14px 8px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; overscroll-behavior: contain; }
#tabs::-webkit-scrollbar { width: 6px; }
#tabs::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.nav-group { padding: 16px 12px 6px; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.nav-group:first-child { padding-top: 4px; }
#tabs a { display: flex; align-items: center; gap: 13px; padding: 10px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 500; position: relative; transition: background .12s, color .12s; }
#tabs a i { width: 18px; text-align: center; font-size: .98rem; }
#tabs a:hover { background: var(--panel2); color: var(--text); }
#tabs a.active { background: var(--accent-soft); color: var(--text); }
#tabs a.active i { color: var(--accent); }
#tabs a.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.side-foot { flex: none; display: flex; flex-direction: column; gap: 8px; padding-top: 14px; margin-top: 10px; border-top: 1px solid var(--line); }
.scrim { display: none; }

.content { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px 28px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar h1 { margin: 0; font-size: 1.05rem; font-weight: 600; flex: 1; }
#menuBtn { display: none; }
main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px; }
main > section:not(.hidden) { animation: pageIn .2s ease-out; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { main > section:not(.hidden) { animation: none; } #tabs a, .btn { transition: none; } }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; max-width: 86vw; transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .scrim.open { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 25; }
  #menuBtn { display: inline-grid; }
  .topbar { padding: 10px 14px; }
  main { padding: 16px 14px 28px; }
}

/* ---------- Karten, Zeilen, Formulare ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.card.narrow { max-width: 680px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.cols .card { margin: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-head h3 { margin: 0; display: flex; align-items: center; gap: 11px; }
.card-head h3 i { color: var(--accent); width: 20px; text-align: center; }
.count, .pill { font-size: .78rem; padding: 5px 14px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.on { color: var(--ok-text); border-color: var(--ok-bg); }
.page-head { display: flex; align-items: center; gap: 18px; margin: 0 0 26px; flex-wrap: wrap; }
.page-head > div:not(.page-icon) { flex: 1; min-width: 200px; }
.page-head h2 { font-size: 1.85rem; margin: 0 0 4px; }
.page-head p { margin: 0; }
.page-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--accent-bg); color: #fff; flex: none; }
.row { display: flex; gap: 8px; align-items: center; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.wrap { flex-wrap: wrap; }
.h-ic i { color: var(--accent); margin-right: 10px; }

input, select, textarea { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; font: inherit; width: 100%; transition: border-color .12s; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.row input { width: auto; flex: 1; min-width: 140px; }
label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .85rem; margin-bottom: 12px; }
label.check { flex-direction: row; align-items: center; gap: 10px; color: var(--text); font-size: .95rem; }
label.check input { width: auto; }
.lbl { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--text); font-weight: 500; }
.lbl i { color: var(--muted); width: 16px; text-align: center; }
.lbl small { color: var(--muted); font-weight: 400; }
.form { display: grid; gap: 18px; margin-bottom: 24px; }
.form label { margin: 0; gap: 8px; }
.form-2 { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-2 .span2 { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-2 { grid-template-columns: 1fr; } }

/* Schalter */
.switch { position: relative; display: inline-block; width: 44px; height: 25px; flex: none; margin: 0; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch .slider { position: absolute; inset: 0; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); transition: background .15s, border-color .15s; }
.switch .slider::before { content: ""; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.switch input:checked + .slider { background: var(--ok-bg); border-color: var(--ok-bg); }
.switch input:checked + .slider::before { transform: translateX(19px); background: #fff; }
.switch input:focus-visible + .slider { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + .slider { opacity: .5; }

/* Einstellungs-Zeilen */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 20px; align-items: start; }
.settings-grid .card { margin: 0; }
@media (max-width: 520px) { .settings-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: 0; padding-bottom: 0; }
.field:first-of-type { padding-top: 0; }
.field-text { min-width: 0; flex: 1; }
.field-text b { display: block; font-weight: 500; font-size: .95rem; }
.field-text small { display: block; color: var(--muted); font-size: .8rem; margin-top: 1px; }
.field-ctl { flex: 0 0 auto; width: 190px; }
.field-ctl.sw { width: auto; }
.field.stack { flex-direction: column; align-items: stretch; gap: 8px; }
.field.stack .field-ctl { width: 100%; }
.page-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.page-bar .page-head { margin: 0; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; margin-bottom: 20px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text); font-size: .9rem; }
.notice i { color: var(--accent); margin-top: 3px; }
.notice.warn { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); background: color-mix(in srgb, var(--warn) 12%, transparent); } .notice.warn i { color: var(--warn); }
details.more { margin-top: 20px; }
details.more summary { cursor: pointer; color: var(--accent); font-weight: 500; padding: 6px 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; margin-bottom: 0; font-size: inherit; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 15px; cursor: pointer; font: inherit; font-weight: 500; text-decoration: none; transition: filter .12s, background .12s, transform .06s; }
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
:root[data-theme="light"] .btn:hover { filter: brightness(.96); }
.btn:disabled { opacity: .4; cursor: not-allowed; filter: none; transform: none; }
.btn.small { padding: 6px 11px; font-size: .85rem; }
.btn.primary { background: var(--accent-bg); border-color: var(--accent-bg); color: #fff; }
.btn.ok { background: var(--ok-bg); border-color: var(--ok-bg); color: #fff; }
.btn.warn { background: var(--warn); border-color: var(--warn); color: #111; }
.btn.danger { background: var(--danger-bg); border-color: var(--danger-bg); color: #fff; }
.btn.ghost { background: transparent; }
.btn.ic { width: 38px; height: 38px; padding: 0; }
.btn.ic.sm { width: 32px; height: 32px; font-size: .85rem; }
.btn.wide { width: 100%; margin-top: auto; padding: 12px; }
.btn.discord { background: #4752c4; border-color: #4752c4; color: #fff; }
.btn i { pointer-events: none; }

/* ---------- Dashboard (Konsole) ---------- */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 26px; background:
  radial-gradient(900px 220px at 0% 0%, var(--accent-soft), transparent 70%), var(--panel); }
.hero-main { display: flex; align-items: center; gap: 18px; min-width: 0; }
.hero-logo { width: 62px; height: 62px; image-rendering: pixelated; flex: none; }
.hero-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-title h2 { margin: 0; font-size: 1.6rem; word-break: break-word; }
.hero-sub { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; padding: 5px 13px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); color: var(--text); }
.chip i { color: var(--accent); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px; border-radius: 99px; font-size: .82rem; font-weight: 600; background: var(--panel2); border: 1px solid var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.running { background: var(--ok); }
.dot.starting, .dot.stopping { background: var(--warn); animation: pulse 1.2s ease-in-out infinite; }
.dot.stopped { background: var(--danger); }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dot.starting, .dot.stopping { animation: none; } }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stats { grid-template-columns: minmax(0, 1fr); } }
.stat { margin: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; min-height: 148px; }
.stat-label { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat-label i { color: var(--accent); }
.stat-val { font-size: 1.75rem; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin-top: 4px; }
.stat-val small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.stat-sub { color: var(--muted); font-size: .82rem; }
.bar { height: 7px; border-radius: 99px; background: var(--panel2); overflow: hidden; margin-top: 8px; }
.bar > span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--accent); transition: width .4s ease; }
.bar.warn > span { background: var(--warn); } .bar.hot > span { background: var(--danger); }
.heads { display: flex; flex-wrap: nowrap; gap: 5px; margin-top: 10px; min-height: 30px; }
.heads .head { width: 30px; height: 30px; }
.heads .hd.more { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 6px; background: var(--panel2); border: 1px solid var(--line); color: var(--text); font-size: .8rem; font-weight: 700; cursor: default; }
.heads .none { color: var(--muted); font-size: .85rem; align-self: center; }
.spark { width: 100%; height: 46px; margin-top: auto; display: block; overflow: visible; }
.spark .area { fill: var(--accent); opacity: .16; }
.spark .line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }

.console-card { padding: 0; } /* kein overflow:hidden, damit die Befehlszeile unten am Fensterrand haften kann */
.con-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.seg button { border: 0; background: none; color: var(--muted); padding: 7px 14px; border-radius: 7px; font: inherit; font-size: .84rem; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--panel2); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.seg button[data-f="warn"].active i { color: var(--warn); } .seg button[data-f="err"].active i { color: var(--danger); }
.con-search { position: relative; flex: 1; min-width: 160px; max-width: 320px; margin-left: auto; }
.con-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; pointer-events: none; }
.con-search input { padding: 7px 12px 7px 34px; }
.console { background: var(--console-bg); color: #d7dce6; padding: 12px 16px; height: 50vh; min-height: 300px; overflow-y: auto; font: 12.5px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overscroll-behavior: contain; }
.console .ln { white-space: pre-wrap; word-break: break-word; padding: 0 0 0 4px; border-left: 3px solid transparent; }
.console .ln .t { color: #5d6b85; margin-right: 10px; user-select: none; }
.console .ln.warn { color: #e8bd5a; border-left-color: #e8bd5a; background: rgba(232, 189, 90, .06); }
.console .ln.err { color: #ff7b73; border-left-color: #ff7b73; background: rgba(255, 123, 115, .07); }
.console .ln.panel { color: #6db3ff; }
.console .ln.cmd { color: #b69cff; }
.console .ln.join { color: #7be0a1; }
.console .ln.leave { color: #9aa7bd; }
.console .ln.chat .who { color: #ffd479; font-weight: 600; }
.console .ln.chat .msg { color: #eef2fa; }
.console .empty { color: #5d6b85; padding: 20px 4px; }
.cmd { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--panel); }
.cmd .prompt { color: var(--accent); font: 600 1rem ui-monospace, monospace; }
.cmd input { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

/* ---------- Tabellen / Listen ---------- */
.table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.table th, .table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.table td.act { text-align: right; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td, .table tr:hover td { background: var(--accent-soft); }
.table tr:first-child:hover th { background: none; }
.table a.link { color: var(--text); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.table a.link:hover { color: var(--accent); }
.table select { width: auto; padding: 4px 8px; }
.fi { width: 20px; text-align: center; font-size: 1.05rem; color: var(--muted); }
.fi.dir { color: #e5b23c; } .fi.img { color: #7dc4ff; } .fi.zip { color: #c08cff; } .fi.cfg { color: var(--ok-text); } .fi.jar { color: var(--role-mod); }
.crumbs { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.crumbs a { color: var(--text); cursor: pointer; padding: 4px 9px; border-radius: 7px; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.crumbs a:hover { background: var(--panel2); }
.crumbs a:last-child { color: var(--accent); }
.crumbs span { color: var(--muted); font-size: .7rem; }
.bk-name { display: flex; align-items: center; gap: 12px; }
.bk-name i { color: #c08cff; font-size: 1.1rem; width: 20px; text-align: center; }
.bk-meta i { color: var(--muted); margin-right: 8px; width: 14px; text-align: center; }
.table td.bk-empty { text-align: center; padding: 40px 10px !important; color: var(--muted); }
.bk-empty i { display: block; font-size: 2.2rem; margin-bottom: 10px; opacity: .55; }
.dropzone-hint { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin-top: 14px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); gap: 10px; }
.list li:last-child { border: 0; }
.list .empty { color: var(--muted); }
.list .pl { display: flex; align-items: center; gap: 12px; min-width: 0; font-weight: 500; }
.list li > span:last-child { display: flex; gap: 6px; }
.head { width: 32px; height: 32px; border-radius: 6px; image-rendering: pixelated; background: var(--panel2); flex: none; }
.list .sub { color: var(--muted); font-weight: 400; font-size: .8rem; margin-left: 4px; }

/* ---------- Benutzer-Seite ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.two-col .card { margin: 0; display: flex; flex-direction: column; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.user-list { display: flex; flex-direction: column; gap: 12px; }
.user { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; text-transform: uppercase; color: #fff; flex: none; }
.avatar.admin { background: #b4443e; } .avatar.moderator { background: #b7821f; } .avatar.viewer { background: #53607a; }
.avatar.mc { background: transparent; border-radius: 10px; overflow: hidden; }
.avatar.mc .head { width: 46px; height: 46px; border-radius: 10px; }
.u-main { flex: 1; min-width: 180px; }
.u-name { font-weight: 600; font-size: 1.02rem; display: flex; align-items: center; gap: 8px; }
.you { font-size: .7rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--accent-bg); color: #fff; }
.u-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 5px; color: var(--muted); font-size: .85rem; }
.u-meta i { width: 16px; margin-right: 4px; text-align: center; }
.u-actions { display: flex; gap: 8px; }
.role-pick { display: inline-flex; align-items: center; gap: 8px; padding: 0 0 0 12px; margin: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); flex-direction: row; font-size: .9rem; }
.role-pick select { border: 0; background: transparent; padding: 8px 10px 8px 0; width: auto; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; font-size: .9rem; background: var(--panel); border: 1px solid var(--line); }
.badge.admin i, .role-pick.admin > i, .role-ic.admin { color: var(--role-admin); }
.badge.moderator i, .role-pick.moderator > i, .role-ic.moderator { color: var(--role-mod); }
.badge.viewer i, .role-pick.viewer > i, .role-ic.viewer { color: var(--role-view); }
.badge.admin { border-color: var(--danger-bg); } .badge.moderator { border-color: var(--warn); }
.role-info { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.role-info li { display: flex; gap: 16px; align-items: flex-start; }
.role-info p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.role-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--bg); border: 1px solid var(--line); }
.steps { margin: 18px 0; padding-left: 22px; line-height: 1.9; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.hint { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--muted); font-size: .88rem; margin: 0 0 24px; }
.hint i { color: var(--accent); margin-right: 6px; }

/* ---------- Dialoge ---------- */
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; width: min(900px, 94vw); box-shadow: 0 24px 64px rgba(0, 0, 0, .45); overscroll-behavior: contain; }
dialog[open] { animation: dlgIn .16s ease-out; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog[open] { animation: none; } }
dialog::backdrop { background: rgba(5, 8, 14, .62); backdrop-filter: blur(2px); }
#uiDlg, #plDlg, #mcDlg { width: min(450px, 94vw); } #pwDlg { width: min(440px, 94vw); }
.pl-dlg { padding: 24px; display: flex; flex-direction: column; }
.pl-dlg h2 { margin-bottom: 14px; }
.editor-box { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.editor-box textarea { height: 62vh; font: 13px/1.55 ui-monospace, "SF Mono", Menlo, monospace; resize: vertical; white-space: pre; overscroll-behavior: contain; }
.ui-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.ui-head h2 { margin: 0; font-size: 1.3rem; }
.ui-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-bg); color: #fff; flex: none; }
.ui-ic.danger { background: var(--danger-bg); }
.ui-msg { margin: 0 0 16px; color: var(--muted); line-height: 1.55; word-break: break-word; }
.ui-msg:empty { display: none; }
#uiInputWrap { margin: 0 0 4px; gap: 8px; }
#uiInputWrap.hidden + .error { display: none; }
.sug { max-height: 230px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; margin: -2px 0 14px; background: var(--bg); overscroll-behavior: contain; }
.sug-label { padding: 7px 12px 3px; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sug-item { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); padding: 8px 12px; cursor: pointer; text-align: left; font: inherit; }
.sug-item:last-child { border-bottom: 0; }
.sug-item:hover, .sug-item:focus-visible { background: var(--panel2); outline: none; }
.sug-item .tag { margin-left: auto; color: var(--muted); font-size: .75rem; }
.sug-empty { padding: 12px; color: var(--muted); font-size: .9rem; }
.mj { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin: -2px 0 14px; min-height: 58px; background: var(--bg); }
.mj .head { width: 40px; height: 40px; }
.mj .mj-text { display: flex; flex-direction: column; min-width: 0; }
.mj .mj-text small { color: var(--muted); word-break: break-all; }
.mj.ok { border-color: var(--ok-bg); } .mj.ok b::after { content: " ✓"; color: var(--ok); }
.mj.bad { border-color: var(--danger-bg); } .mj.bad b { color: var(--danger-text); }
.mj.warn { border-color: var(--warn); }
.acc-mc { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 20px; }
.acc-head .head { width: 44px; height: 44px; border-radius: 8px; display: block; }
.acc-head .ph { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: var(--panel2); color: var(--muted); }
.acc-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.acc-text small { color: var(--muted); }
.acc-pw { margin: 0 0 12px; font-size: 1rem; }

.toast { position: fixed; bottom: 22px; right: 22px; background: var(--panel); color: var(--text); border: 1px solid var(--accent); padding: 13px 18px; border-radius: 10px; max-width: 380px; z-index: 60; box-shadow: var(--shadow); }
.toast.err { border-color: var(--danger); } .toast.ok { border-color: var(--ok); }
@media (max-width: 560px) { .toast { left: 14px; right: 14px; max-width: none; } }

/* ---------- Login ---------- */
.login-page { margin: 0; min-height: 100vh; background: #0b1222 url("login-bg.svg") center bottom / cover no-repeat; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 400px; background: rgba(15, 22, 38, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(160, 190, 255, .18); border-radius: 18px; padding: 34px 32px 30px; box-shadow: 0 24px 70px rgba(0, 0, 0, .5); color: var(--text); }
.login-logo { display: block; width: 76px; height: 76px; margin: 0 auto 14px; image-rendering: pixelated; }
.login-card h1 { text-align: center; font-size: 1.6rem; margin: 0 0 4px; }
.login-card .sub { text-align: center; color: var(--muted); margin: 0 0 26px; }
.login-card label { gap: 8px; margin-bottom: 16px; }
.login-card .lbl i { color: var(--muted); }
.login-card input { padding: 12px 14px; font-size: 1rem; }
.login-card .btn { width: 100%; padding: 13px 16px; font-size: 1rem; font-weight: 600; }
.login-card .btn.primary { margin-top: 6px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); margin: 18px 0; font-size: .85rem; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.login-foot { text-align: center; margin: 18px 0 0; font-size: .8rem; color: var(--muted); }

@media (max-width: 560px) {
  .hero { padding: 18px; }
  .hero-logo { width: 48px; height: 48px; }
  .hero-title h2 { font-size: 1.35rem; }
  .actions { width: 100%; }
  .actions .btn { flex: 1; }
  .page-head h2 { font-size: 1.5rem; }
  .field-ctl { width: 150px; }
  .con-search { max-width: none; margin-left: 0; flex-basis: 100%; }
  .seg { overflow-x: auto; max-width: 100%; }
}

/* Bedrock-Spieler */
.head.bedrock { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 6px; flex: none; }
.tag-bedrock { font-size: .68rem; font-weight: 600; letter-spacing: .03em; padding: 3px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.list .pl { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; row-gap: 2px; }
.list li > span:last-child { flex: none; }
.list .pl > span:nth-child(2) { overflow-wrap: anywhere; }

/* Protokoll */
.au-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.au-bar select { width: auto; min-width: 190px; }
.au-bar .con-search { margin-left: 0; max-width: 380px; }
.au-bar .count { margin-left: auto; }
.au-list { display: flex; flex-direction: column; }
.au-row { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.au-row:last-child { border-bottom: 0; }
.au-ic { --c: var(--accent); width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.au-ic.cat-auth { --c: #5aa2ff; } .au-ic.cat-server { --c: #3fb96b; } .au-ic.cat-console { --c: #a58bff; } .au-ic.cat-players { --c: #e0a030; }
.au-ic.cat-files { --c: #2cb5a8; } .au-ic.cat-settings { --c: #8a97ad; } .au-ic.cat-backups { --c: #bd7dff; } .au-ic.cat-users { --c: #ef6f67; }
.au-main { flex: 1; min-width: 220px; display: flex; flex-direction: column; }
.au-main b { font-weight: 600; }
.au-main b.bad { color: var(--danger-text); }
.au-detail { color: var(--muted); font-size: .88rem; word-break: break-word; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.au-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: .82rem; color: var(--muted); text-align: right; }
.au-meta .au-user { color: var(--text); font-weight: 500; display: inline-flex; align-items: center; gap: 7px; }
.au-meta .au-user i { color: var(--muted); font-size: .8rem; }
.au-empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.au-empty i { display: block; font-size: 2.2rem; margin-bottom: 10px; opacity: .55; }
@media (max-width: 640px) { .au-meta { align-items: flex-start; text-align: left; flex-basis: 100%; padding-left: 52px; } .au-bar .count { margin-left: 0; } }

/* Hauptbenutzer */
.owner-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 600; padding: 3px 11px; border-radius: 99px; background: color-mix(in srgb, var(--role-mod) 18%, transparent); color: var(--role-mod); }
.lock-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .85rem; padding: 0 6px; }

/* Tooltip über den Spielerköpfen (schnell, statt des trägen Browser-Tooltips) */
.heads .hd { position: relative; display: block; flex: none; border-radius: 6px; cursor: default; }
.heads .hd .head { display: block; }
.heads .hd::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); z-index: 40; background: var(--text); color: var(--bg); font-size: .78rem; font-weight: 600; line-height: 1.35; padding: 5px 10px; border-radius: 7px; white-space: pre; pointer-events: none; opacity: 0; transition: opacity .12s, transform .12s; box-shadow: var(--shadow); }
.heads .hd:hover::after, .heads .hd:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .heads .hd::after { transition: none; } }

/* Spielerlisten: Avatar | Name + Zeile darunter (Bedrock, OP-Level) */
.list .pl { flex-wrap: nowrap; }
.list .pl .head { width: 34px; height: 34px; }
.pl-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pl-name { overflow-wrap: anywhere; }
.pl-sub { font-size: .76rem; font-weight: 400; color: var(--muted); }
.pl-sub .bd { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-weight: 600; }
.pl-sub .bd i { font-size: .72rem; }
.heads .hd .head.bedrock { display: grid; place-items: center; }

/* Geplanter Neustart */
.time-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; min-height: 32px; align-items: center; }
.time-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 7px 5px 14px; border-radius: 99px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); font-weight: 600; font-variant-numeric: tabular-nums; }
.time-chip i { color: var(--accent); font-size: .85rem; }
.time-chip button { border: 0; background: none; color: var(--muted); width: 24px; height: 24px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.time-chip button:hover { background: var(--panel2); color: var(--danger-text); }
.time-add { display: flex; gap: 10px; align-items: center; }
.time-add input[type="time"] { width: 130px; }

/* ---------- Eigene Dropdowns ---------- */
.dd { position: relative; display: block; width: 100%; }
.dd > select { display: none; }
.dd-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 40px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; font: inherit; text-align: left; cursor: pointer; transition: border-color .12s; }
.dd-trigger:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.dd-trigger:focus-visible, .dd-trigger[aria-expanded="true"] { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.dd-trigger:disabled { opacity: .5; cursor: not-allowed; }
.dd-label { display: inline-flex; align-items: center; gap: 9px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-ico { width: 16px; text-align: center; color: var(--muted); flex: none; }
.dd-chev { font-size: .72rem; color: var(--muted); flex: none; transition: transform .15s; }
.dd-trigger[aria-expanded="true"] .dd-chev { transform: rotate(180deg); color: var(--accent); }
.dd-menu { position: fixed; z-index: 200; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 44px rgba(0, 0, 0, .42); padding: 6px; overflow-y: auto; overscroll-behavior: contain; animation: ddIn .12s ease-out; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dd-menu { animation: none; } .dd-chev { transition: none; } }
.dd-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.dd-opt .dd-text { flex: 1; }
.dd-opt.active { background: var(--panel2); }
.dd-opt.sel { color: var(--accent); font-weight: 600; }
.dd-opt.sel .dd-ico { color: var(--accent); }
.dd-opt.off { opacity: .45; cursor: not-allowed; }
.dd-check { font-size: .8rem; color: var(--accent); }
/* Einbettungen */
.au-bar .dd { width: auto; min-width: 200px; }
.role-pick .dd { width: auto; }
.role-pick .dd-trigger { border: 0; background: transparent; min-height: 0; padding: 8px 12px 8px 0; }
.table .dd { width: auto; }

/* Spiel-Einstellungen: eine große Liste */
.set-wrap, details.more { max-width: none; }
.set-wrap .card { margin: 0 0 20px; padding: 26px 30px; }
.set-sec + .set-sec { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.set-title { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 1.1rem; }
.set-title i { color: var(--accent); width: 22px; text-align: center; }
.set-wrap .field { padding: 15px 0; }
.set-wrap .field-ctl { width: 320px; }
.set-wrap .field-ctl.sw { width: auto; }
.set-wrap .field.stack .field-ctl { width: 100%; }
@media (max-width: 640px) { .set-wrap .card { padding: 20px 18px; } .set-wrap .field-ctl { width: 150px; } }

/* ---------- Seitenleiste einklappen (nur Desktop) ---------- */
.brand-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.collapse-btn { width: 30px; height: 30px; margin-top: 6px; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; flex: none; }
.collapse-btn:hover { background: var(--panel2); color: var(--text); }
.collapse-btn i { font-size: .9rem; transition: transform .2s; }
.side-tip { position: fixed; z-index: 300; transform: translateY(-50%); background: var(--text); color: var(--bg); font-size: .8rem; font-weight: 600; padding: 5px 11px; border-radius: 7px; pointer-events: none; opacity: 0; transition: opacity .1s; white-space: nowrap; box-shadow: var(--shadow); }
.side-tip.show { opacity: 1; }
@media (max-width: 900px) { .collapse-btn, .side-tip { display: none; } }
@media (min-width: 901px) {
  .shell { transition: grid-template-columns .2s ease; }
  html[data-sidebar="collapsed"] .shell { grid-template-columns: 76px minmax(0, 1fr); }
  html[data-sidebar="collapsed"] .sidebar { padding: 20px 10px 14px; overflow-x: hidden; }
  html[data-sidebar="collapsed"] .brand-row { flex-direction: column; align-items: center; gap: 4px; }
  html[data-sidebar="collapsed"] .brand { padding: 4px 0 4px; }
  html[data-sidebar="collapsed"] .brand span { display: none; }
  html[data-sidebar="collapsed"] .collapse-btn { margin: 0 0 12px; }
  html[data-sidebar="collapsed"] .collapse-btn i { transform: rotate(180deg); }
  html[data-sidebar="collapsed"] .nav-group { font-size: 0; height: 1px; padding: 0; margin: 10px 12px; background: var(--line); }
  html[data-sidebar="collapsed"] #tabs a { justify-content: center; gap: 0; padding: 12px 0; }
  html[data-sidebar="collapsed"] #tabs a i { width: auto; font-size: 1.1rem; }
  html[data-sidebar="collapsed"] #tabs { margin: 0 -10px; padding: 0 10px 8px; }
  html[data-sidebar="collapsed"] #tabs a.active::before { left: -10px; }
  html[data-sidebar="collapsed"] .nav-text, html[data-sidebar="collapsed"] #whoami .uc-text, html[data-sidebar="collapsed"] #whoami .uc-more { display: none; }
  html[data-sidebar="collapsed"] #whoami { justify-content: center; padding: 6px 0; }
}
@media (prefers-reduced-motion: reduce) { .shell { transition: none; } .collapse-btn i { transition: none; } }

/* Backup-Konfiguration und Wiederherstellen */
#cBkEx { font: 12.5px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; resize: vertical; min-height: 92px; }
#rsDlg { width: min(580px, 94vw); }
.rs-tree { max-height: 340px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); overscroll-behavior: contain; }
.rs-row { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--line); }
.rs-row:last-child { border-bottom: 0; }
.rs-row:hover { background: var(--panel2); }
.rs-row.kid { padding-left: 52px; background: color-mix(in srgb, var(--panel2) 45%, transparent); }
.rs-row input[type="checkbox"] { width: 17px; height: 17px; padding: 0; margin: 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.rs-tg { width: 20px; height: 20px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; flex: none; padding: 0; font-size: .72rem; }
.rs-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rs-cnt { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.rs-more, .rs-load { padding: 10px 14px; color: var(--muted); font-size: .85rem; }

/* ---------- Konsolenseite: füllt die Fensterhöhe, das Befehlsfeld bleibt unten sichtbar ---------- */
main { flex: 1 0 auto; display: flex; flex-direction: column; }
main > section { flex: 0 0 auto; }
#tab-console:not(.hidden) { flex: 1 0 auto; display: flex; flex-direction: column; }
#tab-console .console-card { flex: 1 1 auto; display: flex; flex-direction: column; margin-bottom: 0; min-height: 250px; }
#tab-console .console { flex: 1 1 0; height: auto; min-height: 120px; } /* Basishöhe 0: der Inhalt (Logzeilen) darf die Seite nicht vergrößern, das Log scrollt in sich */
.console-card .con-bar { border-radius: var(--radius) var(--radius) 0 0; }
.console-card .cmd { position: sticky; bottom: 0; z-index: 4; border-radius: 0 0 var(--radius) var(--radius); }

.settings-grid .card.wide { grid-column: 1 / -1; }

/* Eigene Rollen und Rechte */
.avatar.custom { background: #4f6fc4; }
.badge.custom i, .role-pick.custom > i, .role-ic.custom { color: var(--accent); }
.role-info li { align-items: flex-start; }
.role-body { flex: 1; min-width: 0; }
.role-body b { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.role-count { font-size: .75rem; font-weight: 500; color: var(--muted); }
.perm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.perm-chip { font-size: .75rem; padding: 3px 10px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); color: var(--text); }
.role-body .none { margin: 6px 0 0; color: var(--muted); font-size: .88rem; }
.role-actions { display: flex; gap: 6px; flex: none; }
#roleDlg { width: min(560px, 94vw); }
.perm-list { max-height: 380px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 4px 14px 8px; overscroll-behavior: contain; }
.perm-group { margin: 14px 0 4px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.perm-row { flex-direction: row; align-items: flex-start; gap: 14px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; color: var(--text); font-size: .95rem; }
.perm-row:last-child { border-bottom: 0; }
.perm-row .switch { margin-top: 2px; }
.perm-text { display: flex; flex-direction: column; }
.perm-text b { font-weight: 500; }
.perm-text small { color: var(--muted); font-size: .8rem; line-height: 1.4; }

/* Zwei-Faktor */
.hint-sm { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.tf-qr { width: 200px; height: 200px; margin: 6px auto 12px; padding: 8px; background: #fff; border-radius: 10px; }
.tf-qr svg { width: 100%; height: 100%; display: block; }
.tf-manual { font-size: .82rem; color: var(--muted); text-align: center; margin: 0 0 14px; }
.tf-manual code { display: inline-block; margin-top: 4px; padding: 4px 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; color: var(--text); font-size: .9rem; letter-spacing: .08em; user-select: all; }
.tf-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 16px; }
.tf-codes code { padding: 8px 10px; text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; letter-spacing: .06em; user-select: all; }

/* Backups: Speicher und Kopie */
.bk-info { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; padding: 16px 18px; }
.bk-disk-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bk-disk-row i, .bk-copy i { color: var(--accent); width: 18px; text-align: center; }
.bk-copy { display: flex; align-items: center; gap: 8px; font-size: .9rem; flex-wrap: wrap; }
.bk-copy.bad, .bk-copy.bad i { color: var(--danger, #f87171); }
.bk-copy code { padding: 1px 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; }
.copy-row { display: flex; gap: 8px; width: 100%; }
.copy-row input { flex: 1; min-width: 0; }

.wh-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 18px; margin-top: 14px; }

/* Mods & Plugins */
.mods-env { margin-bottom: 14px; padding: 16px 18px; }
.mods-env-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.mods-env-row label { display: flex; flex-direction: column; gap: 6px; min-width: 200px; }
.mods-tabs { margin-bottom: 14px; }
.mods-search { display: flex; gap: 8px; margin-bottom: 14px; }
.mods-search input { flex: 1; min-width: 0; }
.mods-note { margin-top: 14px; font-size: .82rem; }
.mod-list { display: flex; flex-direction: column; gap: 10px; }
.mod { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.mod-icon { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--bg); flex: none; }
.mod-icon.ph { display: grid; place-items: center; color: var(--muted); font-size: 1.3rem; }
.mod-main { flex: 1; min-width: 0; }
.mod-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.mod-desc { margin-top: 3px; color: var(--muted); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mod-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; font-size: .8rem; color: var(--muted); align-items: center; }
.mod-meta i { margin-right: 5px; }
.mod-tag { padding: 2px 8px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: .74rem; margin-left: 6px; }
.mod-tag.beta { color: var(--warn); } .mod-tag.alpha { color: var(--danger); }
.mod-meta .mod-tag { margin-left: 0; }
.mod-act { display: flex; gap: 6px; flex: none; }
.mod-vers { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow: auto; margin: 6px 0 14px; min-width: min(460px, 80vw); }
.mod-ver { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.mod-ver small { display: block; margin-top: 2px; }
@media (max-width: 640px) { .mod { flex-wrap: wrap; } .mod-act { width: 100%; } }

/* Dateimanager: Auswahl, Filter, Upload */
.f-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.f-filter { width: min(320px, 100%); }
.f-sel { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 4px 4px 12px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; }
.f-hint { margin: 12px 0 0; font-size: .8rem; }
.f-hint i { margin-right: 6px; }
.table .chk { width: 34px; text-align: center; }
.table tr.sel > td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.up-box { margin: 0 0 12px; padding: 12px 14px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; }
.up-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .88rem; margin-bottom: 6px; }
.up-box .bar { margin-top: 0; height: 8px; }
.drop-hint { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(3px); pointer-events: none; }
.drop-hint > div { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 42px 60px; border: 2px dashed var(--accent); border-radius: 18px; background: var(--panel); }
.drop-hint i { font-size: 2.4rem; color: var(--accent); }
.drop-hint span { color: var(--muted); font-size: .88rem; }

/* Sprachumschalter */
.mods-env-row label { margin: 0; }
.mods-env-row .btn { height: 100%; min-height: 0; align-self: flex-end; }
.mods-env-row .btn { height: 40px; }
.mods-env .hint { margin: 14px 0 0; }

/* Panel-Seite */
.pn-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; padding: 5px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; position: sticky; top: 58px; z-index: 15; }
.pn-tabs button { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 16px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-weight: 500; font-size: .92rem; cursor: pointer; transition: background .12s, color .12s; }
.pn-tabs button:hover { color: var(--text); background: var(--panel2); }
.pn-tabs button.active { background: var(--accent-bg); color: #fff; }
.pn-tabs button i { font-size: .95rem; }
.pn-note { display: flex; gap: 10px; align-items: center; margin: -4px 0 16px; padding: 10px 14px; font-size: .85rem; color: var(--muted); background: var(--panel); border: 1px dashed var(--line); border-radius: 10px; }
.pn-note i { color: var(--accent); }
.pn-group > .card { margin-bottom: 0; }
.settings-grid .card-head, .pn-group .card-head { margin-bottom: 6px; }
.card-sub { margin: 0 0 16px 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.pn-group .card-head h3 i { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 16%, transparent); font-size: 1rem; }
.pn-group[data-g=notify] > .card, .pn-group[data-g=access] > .card { width: 100%; max-width: none; }
.pn-group[data-g=access] .form-2 { grid-template-columns: 1fr 1fr; }
.dirty-dot { display: none; width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 0 2px rgba(251,191,36,.3); }
#cSave.dirty .dirty-dot { display: inline-block; }
@media (max-width: 700px) { .pn-tabs { top: 52px; } .pn-tabs button { padding: 10px 8px; font-size: .84rem; } }

/* Logs */
.lg-filters { padding: 18px; margin-bottom: 14px; }
.lg-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 14px; }
.lg-row:last-child { margin-bottom: 0; }
.lg-f { display: flex; flex-direction: column; gap: 6px; min-width: 150px; margin: 0; }
.lg-f.grow { flex: 1 1 260px; }
.lg-f .lbl { font-size: .8rem; color: var(--muted); }
.lg-f input[type=date] { width: 100%; }
.lg-btns { flex-direction: row; gap: 8px; margin-left: auto; }
.seg.multi button.on { background: var(--accent-bg); color: #fff; }
.lg-meta { min-height: 20px; margin: 0 4px 8px; color: var(--muted); font-size: .85rem; }
.lg-results { padding: 6px 0; overflow: hidden; }
.lg-list { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; }
.lg-day { position: sticky; top: 108px; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 9px 18px; font-family: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); background: color-mix(in srgb, var(--panel2) 92%, transparent); backdrop-filter: blur(6px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lg-day:first-child { border-top: 0; }
.lg-day i { color: var(--accent); }
.lg-line { position: relative; display: grid; grid-template-columns: 66px 26px 1fr auto auto; gap: 12px; padding: 7px 14px 7px 18px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); align-items: start; border-left: 3px solid transparent; }
.lg-line:hover { background: var(--panel2); }
.lg-time { color: var(--muted); font-size: .78rem; padding-top: 3px; }
.lg-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: .72rem; background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--muted); }
.ty-chat .lg-ic { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.ty-join .lg-ic { background: color-mix(in srgb, #34d399 18%, transparent); color: #34d399; }
.ty-command .lg-ic { background: color-mix(in srgb, #a78bfa 18%, transparent); color: #a78bfa; }
.lv-WARN { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 6%, transparent); }
.lv-ERROR { border-left-color: var(--danger); background: color-mix(in srgb, var(--danger) 7%, transparent); }
.lv-WARN .lg-ic { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.lv-ERROR .lg-ic { background: color-mix(in srgb, var(--danger) 20%, transparent); color: var(--danger); }
.lv-ERROR .lg-text { color: var(--danger); } .lv-WARN .lg-text { color: var(--warn); }
.lg-text { word-break: break-word; white-space: pre-wrap; min-width: 0; padding-top: 2px; }
.lg-who { border: 0; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font: inherit; font-weight: 600; padding: 0 7px; margin-right: 8px; border-radius: 6px; cursor: pointer; }
.lg-who:hover { background: var(--accent); color: #fff; }
.lg-msg { color: var(--text); }
.lg-text pre { margin: 5px 0 0; padding: 8px 10px; background: var(--bg); border-radius: 8px; font: inherit; white-space: pre-wrap; opacity: .9; }
.lg-text mark { background: rgba(251, 191, 36, .35); color: inherit; border-radius: 3px; padding: 0 1px; }
.lg-file { color: var(--muted); font-size: .72rem; white-space: nowrap; padding-top: 4px; }
.lg-copy { opacity: 0; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 3px 6px; border-radius: 6px; transition: opacity .1s; }
.lg-line:hover .lg-copy { opacity: 1; } .lg-copy:hover { color: var(--text); background: var(--bg); }
@media (max-width: 700px) { .lg-line { grid-template-columns: 54px 24px 1fr; } .lg-file, .lg-copy { display: none; } .lg-btns { margin-left: 0; } .lg-day { top: 100px; } }

/* Mein Konto */
.acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; align-items: start; }
.acc-grid .card.wide { grid-column: 1 / -1; }
.acc-profile { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; grid-column: 1 / -1; }
.acc-big { width: 72px; height: 72px; flex: none; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--bg); font-size: 1.6rem; color: var(--muted); }
.acc-big img { width: 100%; height: 100%; image-rendering: pixelated; }
.acc-id { flex: 1; min-width: 180px; }
.acc-id h3 { margin: 0 0 6px; font-size: 1.3rem; display: inline-block; margin-right: 10px; }
.acc-id p { margin: 6px 0 0; }
.acc-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-ch { display: flex; flex-direction: column; gap: 14px; }
.acc-ch .check { align-items: flex-start; gap: 12px; }
.acc-ch .check span:last-child b { display: block; font-weight: 500; }
.acc-ch .check small { display: block; color: var(--muted); font-size: .8rem; margin-top: 1px; }
.acc-h4 { margin: 22px 0 10px; font-size: .95rem; }
.lg-f .con-search { width: 100%; max-width: none; margin: 0; flex: none; }
.lg-f.grow { min-width: 220px; }

/* Sprachumschalter: zwei Felder DE | EN */
.lang-seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; flex: none; }
.lang-seg button { border: 0; background: none; color: var(--muted); font: inherit; font-size: .74rem; font-weight: 700; letter-spacing: .05em; padding: 5px 11px; border-radius: 99px; cursor: pointer; transition: background .12s, color .12s; }
.lang-seg button:hover { color: var(--text); }
.lang-seg button.on { background: var(--accent-bg); color: #fff; cursor: default; }
.lang-seg.big button { font-size: .85rem; padding: 7px 18px; }
.lang-float { position: absolute; top: 18px; right: 18px; z-index: 5; }
.topbar .lang-seg { margin-left: 8px; }

.lg-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 46px 20px; text-align: center; font-family: inherit; }
.lg-empty-ic { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 1.6rem; }
.lg-empty b { font-size: 1.05rem; font-weight: 600; }
.lg-empty span:not(.lg-empty-ic) { color: var(--muted); font-size: .9rem; max-width: 380px; }
.lg-empty .btn { margin-top: 8px; }

/* Spielerauswahl */
.lg-pp { flex: 1 1 320px; min-width: 260px; position: relative; }
.pp { position: relative; }
.pp-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 42px; padding: 5px 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: text; transition: border-color .12s, box-shadow .12s; }
.pp-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.pp-chips { display: contents; }
.pp-chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 4px 3px 4px; background: color-mix(in srgb, var(--accent) 16%, var(--panel2)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 99px; font-size: .86rem; }
.pp-chip img { border-radius: 50%; image-rendering: pixelated; }
.pp-chip b { font-weight: 600; }
.pp-x { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; font-size: .72rem; }
.pp-x:hover { background: var(--danger); color: #fff; }
.pp .pp-in { flex: 1 1 140px; min-width: 120px; width: auto; border: 0; background: none; padding: 5px 4px; box-shadow: none; }
.pp .pp-in:focus { outline: none; box-shadow: none; border: 0; }
.pp-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; max-height: 340px; overflow: auto; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.pp-sec { padding: 8px 10px 4px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pp-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 7px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pp-row.act { background: var(--panel2); }
.pp-row img { border-radius: 7px; image-rendering: pixelated; flex: none; }
.pp-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pp-name b { font-weight: 600; }
.pp-name small { color: var(--muted); font-size: .76rem; }
.pp-bs { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-b { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: .7rem; color: var(--muted); }
.pp-b.on { color: #34d399; } .pp-b.op { color: #fbbf24; } .pp-b.ban { color: var(--danger); }
.pp-b .dot { width: 7px; height: 7px; }
.pp-empty { display: flex; align-items: center; gap: 10px; padding: 16px 12px; color: var(--muted); font-size: .88rem; }

.mods-search select { width: auto; min-width: 200px; flex: none; }
.mod-env { display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px; border-radius: 99px; font-size: .74rem; font-weight: 600; background: var(--bg); border: 1px solid var(--line); }
.mod-env.server, .mod-env.both { color: #34d399; border-color: color-mix(in srgb, #34d399 40%, var(--line)); }
.mod-env.client { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.mod-meta .mod-env i { margin: 0; }
.mods-search .dd { width: 250px; flex: none; }
.mods-search input { flex: 1 1 200px; min-width: 0; width: auto; }
@media (max-width: 640px) { .mods-search { flex-wrap: wrap; } .mods-search .dd { width: 100%; order: 3; } }

.pill-up { margin-left: 6px; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 500; }
.pill-up:empty { display: none; }

/* Spieler: Statistik */
.pl-views { margin-bottom: 16px; }
.pls-top { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.pls-top .con-search { margin: 0; max-width: 320px; }
.pls-who { display: flex; align-items: center; gap: 12px; }
.pls-who img { border-radius: 7px; image-rendering: pixelated; }
.pls-who > span { display: flex; flex-direction: column; gap: 3px; }
.pls-badges, .pld-head .pls-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.pls-table tr.clickable { cursor: pointer; }
.pls-table tr.clickable:hover td { background: var(--panel2); }
.table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.table th.sortable:hover, .table th.sortable.on { color: var(--text); }
.table th.sortable i { margin-left: 6px; font-size: .7rem; color: var(--accent); }
.pls-note { margin: 14px 2px 0; font-size: .82rem; }
.pld { min-width: min(560px, 86vw); }
.pld-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.pld-head img { border-radius: 12px; image-rendering: pixelated; }
.pld-head h2 { margin: 0 0 6px; }
.pld-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pld-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.pld-tile i { color: var(--accent); margin-bottom: 4px; }
.pld-tile small { color: var(--muted); font-size: .76rem; }
.pld-tile b { font-size: 1.05rem; font-weight: 600; }
.pld-hist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; max-height: 260px; overflow: auto; }
.pld-ev { display: flex; gap: 12px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.pld-ev-ic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--muted) 16%, transparent); color: var(--muted); }
.pld-ev.ban .pld-ev-ic { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }
.pld-ev.unban .pld-ev-ic { background: color-mix(in srgb, #34d399 18%, transparent); color: #34d399; }
.pld-reason { margin-top: 3px; font-style: italic; }
@media (max-width: 560px) { .pld-tiles { grid-template-columns: 1fr 1fr; } }
/* Vorhandenen Server verwenden */
.adopt { margin-bottom: 20px; }
.ad-box { display: flex; gap: 14px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.ad-box > i { font-size: 1.3rem; margin-top: 2px; }
.ad-box.ok > i { color: #34d399; } .ad-box.warn > i { color: var(--warn); }
.ad-main { flex: 1; min-width: 0; }
.ad-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0 12px; font-size: .88rem; color: var(--muted); }
.ad-facts i { margin-right: 7px; color: var(--accent); }
.ad-form { margin: 14px 0; }

/* Changelog */
.cl-list { display: flex; flex-direction: column; gap: 18px; }
.cl-entry { padding: 22px 26px; }
.cl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cl-head h3 { margin: 0; font-size: 1.25rem; }
.cl-group { margin-top: 16px; }
.cl-group h4 { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cl-group h4 i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-size: .7rem; color: #fff; background: var(--accent-bg); }
.cl-group.add h4 i { background: #16a34a; } .cl-group.chg h4 i { background: #2563eb; } .cl-group.fix h4 i { background: #d97706; } .cl-group.del h4 i { background: #dc2626; } .cl-group.sec h4 i { background: #7c3aed; }
.cl-group ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.cl-group li { line-height: 1.5; }
.cl-group li::marker { color: var(--accent); }
.cl-group code { padding: 1px 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; font-size: .85em; }

.cl-btn { display: none; }
.cl-btn #clBtnVer { font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cl-btn + .lang-seg { margin-left: 8px; }
@media (max-width: 560px) { .cl-btn #clBtnVer { display: none; } }

/* Kopfleiste rechts: einheitliche Kapseln gleicher Höhe */
.tb-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.tb-chip, .tb-right .lang-seg, .tb-right .status-pill { box-sizing: border-box; height: 36px; margin: 0; }
.tb-chip { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 99px; text-decoration: none; color: var(--text); font-size: .82rem; font-weight: 600; background: var(--panel); border: 1px solid var(--line); transition: border-color .12s, background .12s; }
.tb-chip i { color: var(--accent); font-size: .85rem; }
.tb-chip:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--panel2); }
.tb-chip #clBtnVer { font-variant-numeric: tabular-nums; }
.tb-right .lang-seg { align-items: center; padding: 3px; }
.tb-right .lang-seg button { height: 28px; padding: 0 12px; display: inline-flex; align-items: center; }
.tb-sep { width: 1px; height: 22px; background: var(--line); margin: 0 2px; }
.tb-right .status-pill { padding: 0 16px; display: inline-flex; align-items: center; }
.topbar h1 { flex: 1; }
@media (max-width: 760px) { .tb-sep { display: none; } .tb-right { gap: 6px; } .tb-chip #clBtnVer { display: none; } .tb-chip { padding: 0 11px; } .tb-right .status-pill .pill-up { display: none; } }

/* Profil unten in der Seitenleiste mit Menü */
.user-btn { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; background: var(--panel2); border: 1px solid var(--line); border-radius: 16px; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .12s, background .12s; }
.user-btn:hover, .user-btn[aria-expanded="true"] { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--panel2)); }
.uc-av { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; overflow: hidden; background: var(--bg); color: var(--muted); font-size: 1.5rem; }
.uc-av img { width: 100%; height: 100%; border-radius: 0; image-rendering: pixelated; }
.uc-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.uc-text b { font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-text small { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-more { color: var(--muted); font-size: .9rem; padding: 0 4px; }
.um-menu { position: fixed; z-index: 80; width: 244px; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 44px rgba(0, 0, 0, .5); animation: umIn .12s ease-out; }
@keyframes umIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .um-menu { animation: none; } }
.um-head { display: flex; align-items: center; gap: 11px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.um-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; background: none; border: 0; border-radius: 10px; color: var(--text); font: inherit; font-size: .92rem; text-align: left; cursor: pointer; }
.um-item i { width: 18px; text-align: center; color: var(--muted); }
.um-item:hover, .um-item:focus-visible { background: var(--panel2); outline: none; }
.um-item:hover i { color: var(--accent); }
.um-sep { height: 1px; margin: 5px 6px; background: var(--line); }
.um-out:hover { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.um-out:hover i { color: var(--danger); }

/* Glocke und Benachrichtigungs-Menü */
.tb-bell { position: relative; cursor: pointer; font: inherit; padding: 0 13px; }
.tb-bell.has i { color: #fbbf24; animation: bellRing 1.2s ease 1; transform-origin: 50% 10%; }
@keyframes bellRing { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } }
@media (prefers-reduced-motion: reduce) { .tb-bell.has i { animation: none; } }
.tb-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 99px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; border: 2px solid var(--bg); box-sizing: border-box; }
.inbox-menu { position: fixed; z-index: 80; width: 380px; max-width: calc(100vw - 16px); max-height: min(560px, calc(100vh - 90px)); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 44px rgba(0, 0, 0, .5); overflow: hidden; animation: umIn .12s ease-out; }
.ib-head, .ib-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; flex: none; }
.ib-head { border-bottom: 1px solid var(--line); }
.ib-foot { border-top: 1px solid var(--line); justify-content: flex-start; }
.ib-act { display: flex; gap: 14px; }
.ib-link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: .84rem; cursor: pointer; }
.ib-link:hover { text-decoration: underline; }
.ib-foot .ib-link { color: var(--muted); } .ib-foot .ib-link:hover { color: var(--text); text-decoration: none; }
.ib-foot i { margin-right: 6px; }
.ib-list { overflow-y: auto; flex: 1 1 auto; min-height: 90px; }
.ib-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.ib-item:last-child { border-bottom: 0; }
.ib-item { position: relative; }
.ib-item.unread { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.ib-item.unread::after { content: ""; position: absolute; top: 16px; right: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ib-ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.ib-ic.ok { background: color-mix(in srgb, #34d399 18%, transparent); color: #34d399; }
.ib-ic.bad { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }
.ib-ic.warn { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.ib-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ib-body b { font-weight: 600; font-size: .9rem; }
.ib-body span { color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.ib-body small { font-size: .74rem; margin-top: 2px; }
.ib-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 26px; text-align: center; }
.ib-empty-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 1.4rem; margin-bottom: 4px; }
.ib-empty span:not(.ib-empty-ic) { color: var(--muted); font-size: .86rem; }

.up-box.err { border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); background: color-mix(in srgb, var(--danger) 9%, var(--panel2)); }
.up-box.err .up-row span { color: var(--danger); font-weight: 500; overflow-wrap: anywhere; }

.rs-progress { display: flex; gap: 14px; align-items: flex-start; padding: 16px; margin: 6px 0 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.rs-progress > i { color: var(--accent); font-size: 1.3rem; margin-top: 2px; }
.rs-progress b { display: block; margin-bottom: 4px; }
.rs-progress span { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
