/* RE:AWAKEN Discord Panel: gleiche Farben wie Development (fast schwarz, Pergament-Weiß, Gold). */
:root {
  color-scheme: dark;
  --bg: #07080d;
  --bg-2: #0b0c12;
  --card: #0f1017;
  --card-2: #13141c;
  --card-3: #181923;
  --fg: #f4efe4;
  --fg-2: #d6d0c3;
  --muted: #9a958a;
  --dim: #6c685f;
  --line: rgba(255, 214, 120, 0.11);
  --line-2: rgba(255, 214, 120, 0.2);
  --hover: rgba(255, 214, 120, 0.05);
  --gold: #f6c453;
  --gold-2: #ffe08a;
  --gold-fg: #1a1203;
  --gold-grad: linear-gradient(180deg, #ffe08a, #f2b134);
  --gold-soft: rgba(246, 196, 83, 0.12);
  --green: #6fcf8a;
  --green-bg: rgba(111, 207, 138, 0.09);
  --red: #f07a6f;
  --red-bg: rgba(240, 122, 111, 0.09);
  --orange: #f0a85a;
  --blue: #8cc2f5;
  --r: 14px;
  --r-sm: 10px;
  --side: 256px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: "Outfit", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg); font: 400 14.5px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.app::before { content: ""; position: fixed; inset: 0 0 auto; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 380px at 30% -60px, rgba(246, 196, 83, 0.1), transparent 70%), radial-gradient(40% 320px at 95% -80px, rgba(255, 224, 138, 0.05), transparent 70%); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-2); }
.flash a, .muted a { color: var(--gold); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; margin: 0; }
p { margin: 0; }
code, kbd, pre, .mono { font-family: var(--mono); }
code { padding: 1px 6px; border-radius: 6px; background: var(--gold-soft); color: var(--gold-2); font-size: 0.88em; }
::selection { background: rgba(246, 196, 83, 0.3); color: #fff8e6; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
* { scrollbar-color: rgba(255, 214, 120, 0.18) transparent; scrollbar-width: thin; }
.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 12.5px; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.pad { padding: 16px 18px; }
.gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Seitenleiste ---------- */
.side { position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--side); display: flex; flex-direction: column; gap: 14px; padding: 18px 14px; background: rgba(9, 10, 15, 0.92); border-right: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 6px; font: 700 16px var(--head); letter-spacing: 0.02em; white-space: nowrap; }
.brand:hover { color: var(--fg); }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 6px 20px -6px rgba(246, 180, 52, 0.6); }
.brand b { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font: 600 10.5px var(--font); letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 2px; }
.guild-pill { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); transition: border-color .15s, background .15s; }
.guild-pill:hover { border-color: var(--line-2); background: var(--card-2); color: var(--fg); }
.guild-pill img, .guild-ph { width: 36px; height: 36px; flex: none; border-radius: 10px; }
.guild-ph { display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font: 700 15px var(--head); }
.guild-pill > span:last-child { display: grid; min-width: 0; }
.guild-pill b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.guild-pill small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }

.nav { display: grid; gap: 2px; }
.nav-sep { padding: 14px 10px 6px; color: var(--dim); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-sep:first-child { padding-top: 2px; }
.nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px; color: var(--muted); font-weight: 500; font-size: 13.5px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--hover); color: var(--fg); }
.nav a.on { background: var(--gold-soft); color: var(--fg); }
.nav a.on::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-grad); box-shadow: 0 0 12px rgba(246, 196, 83, 0.7); }
.nav a.on .i { color: var(--gold); }
.nav a span { flex: 1; }
.nav a.soon { opacity: 0.6; }
.nav a em { font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 7px; }

.dot { display: inline-block; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--dim); }
.dot-on, .dot-ok { background: var(--green); box-shadow: 0 0 8px rgba(111, 207, 138, 0.7); }
.dot-warn { background: var(--gold); box-shadow: 0 0 8px rgba(246, 196, 83, 0.7); animation: blink 1.2s infinite; }
.dot-bad { background: var(--red); box-shadow: 0 0 8px rgba(240, 122, 111, 0.6); }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- Hauptbereich ---------- */
.main { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 40; height: 62px; display: flex; align-items: center; gap: 14px; padding: 0 28px; background: rgba(7, 8, 13, 0.72); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.top-title { font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .menu-btn { display: none; }
.status { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.content { flex: 1; width: 100%; max-width: 1280px; padding: 28px 28px 60px; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 28px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; }
.foot span { display: inline-flex; align-items: center; gap: 8px; }
.foot img { width: 18px; height: 18px; border-radius: 5px; opacity: 0.8; }

.avatar { width: 34px; height: 34px; display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--gold-grad); color: var(--gold-fg); font: 700 14px var(--head); cursor: pointer; list-style: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line-2); }
.avatar::-webkit-details-marker { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card-2); color: var(--fg); font: 500 13.5px var(--font); white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { background: var(--card-3); border-color: rgba(255, 214, 120, 0.3); color: var(--fg); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; gap: 6px; }
.btn-sm .i { width: 14px; height: 14px; }
.btn-icon { width: 36px; padding: 0; }
.btn-icon.btn-sm { width: 30px; }
.btn-gold { background: var(--gold-grad); border: 0; color: var(--gold-fg); font-weight: 600; box-shadow: 0 8px 24px -10px rgba(246, 180, 52, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-gold:hover { background: var(--gold-grad); color: var(--gold-fg); filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 12px 30px -10px rgba(246, 180, 52, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.btn-gold .i { stroke-width: 2.2; }
.btn-block { width: 100%; height: 42px; font-size: 14.5px; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--fg); }
.btn-danger-ghost { background: transparent; color: var(--red); border-color: rgba(240, 122, 111, 0.25); }
.btn-danger-ghost:hover { background: var(--red-bg); border-color: rgba(240, 122, 111, 0.5); color: var(--red); }
.btn:disabled { opacity: 0.4; pointer-events: none; }
form { margin: 0; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font: 500 11px/1.6 var(--font); vertical-align: middle; white-space: nowrap; }
.badge-ok { border-color: rgba(111, 207, 138, 0.35); background: var(--green-bg); color: var(--green); }
.badge-gold { border-color: rgba(246, 196, 83, 0.35); background: var(--gold-soft); color: var(--gold); padding: 3px 12px; font-size: 12px; }
.act-warn { color: var(--gold); border-color: rgba(246, 196, 83, 0.35); background: var(--gold-soft); }
.act-timeout { color: var(--orange); border-color: rgba(240, 168, 90, 0.35); background: rgba(240, 168, 90, 0.1); }
.act-kick, .act-ban { color: var(--red); border-color: rgba(240, 122, 111, 0.35); background: var(--red-bg); }
.act-unban, .act-untimeout { color: var(--green); border-color: rgba(111, 207, 138, 0.35); background: var(--green-bg); }

/* ---------- Dropdown ---------- */
.drop { position: relative; }
.drop > summary { list-style: none; }
.drop > summary::-webkit-details-marker { display: none; }
.drop-pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; min-width: 230px; padding: 6px; display: grid; background: rgba(15, 16, 23, 0.98); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.9); animation: pop .14s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.drop-head { padding: 8px 10px 10px; color: var(--muted); font-size: 12.5px; }
.drop-head b { color: var(--fg); }
.drop-pop > a, .drop-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--fg-2); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.drop-pop > a:hover, .drop-pop button:hover { background: var(--hover); color: var(--fg); }
.drop-pop form { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }

/* ---------- Seitenkopf ---------- */
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.page-ico { width: 46px; height: 46px; display: grid; place-items: center; flex: none; border-radius: 13px; background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(246, 196, 83, 0.22); box-shadow: 0 10px 30px -14px rgba(246, 180, 52, 0.6); }
.page-ico .i { width: 22px; height: 22px; }
.page-text { flex: 1; min-width: 0; }
.page-text h2 { font-size: 24px; margin-bottom: 4px; }
.page-text p { max-width: 760px; }
.page-actions { display: flex; align-items: center; gap: 10px; }

.hero { padding: 6px 0 22px; }
.eyebrow { color: var(--muted); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px; }
.hero h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; margin-bottom: 6px; }

/* ---------- Schalter ---------- */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--fg-2); user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { position: relative; width: 38px; height: 22px; flex: none; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-2); transition: background .18s, border-color .18s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .18s, background .18s; }
.switch input:checked + .sw, .sw-btn.on .sw { background: var(--gold-grad); border-color: transparent; box-shadow: 0 0 14px -2px rgba(246, 196, 83, 0.6); }
.switch input:checked + .sw::after, .sw-btn.on .sw::after { transform: translateX(16px); background: var(--gold-fg); }
.switch input:focus-visible + .sw { outline: 2px solid var(--gold); outline-offset: 2px; }
.sw-btn { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px 0 8px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); color: var(--muted); font: 600 13px var(--font); cursor: pointer; }
.sw-btn.on { color: var(--gold); border-color: rgba(246, 196, 83, 0.35); }
.sw-btn.sw-only { padding: 0 6px; height: 30px; }

/* ---------- Karten ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--card-2); font-weight: 600; font-size: 13.5px; }
.card-head > .i { color: var(--gold); }
.card-title { flex: 1; display: flex; align-items: baseline; gap: 8px; }
.card-title small { color: var(--dim); font-weight: 400; font-size: 12px; }
.card-link { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.card-body { padding: 6px 18px; }
.card-body:has(> .empty), .card-body:has(> .list) { padding: 0; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.012); }
.stack { display: grid; gap: 16px; align-content: start; min-width: 0; }
.stack-sm { display: grid; gap: 10px; }
.list > * + * { border-top: 1px solid var(--line); }
.sep { height: 1px; background: var(--line); margin: 14px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.section-head h3 { font-size: 16px; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid-2-wide { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.sticky { position: sticky; top: 84px; }

/* ---------- Einstellungszeilen ---------- */
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; align-items: center; padding: 14px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row-wide { grid-template-columns: 1fr; gap: 10px; }
.row-label { display: grid; gap: 3px; }
.row-label b { font-weight: 500; font-size: 13.5px; }
.row-label small { color: var(--dim); font-size: 12px; line-height: 1.45; }
.row-ctl { min-width: 0; }
.field { display: grid; gap: 7px; margin: 12px 0; font-weight: 500; font-size: 13.5px; }
.field small { color: var(--dim); font-weight: 400; font-size: 12px; }
.inline { display: flex; gap: 10px; align-items: center; }
.inline > * { flex: 1; min-width: 0; }
.inline > .dim { flex: none; }
.checks-inline { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 8px 0; }

input:not([type=checkbox]):not([type=radio]):not([type=color]), select, textarea { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg-2); color: var(--fg); font: inherit; font-size: 13.5px; transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; padding: 10px 12px; line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(246, 196, 83, 0.55) !important; box-shadow: 0 0 0 3px rgba(246, 196, 83, 0.13); }
input::placeholder, textarea::placeholder { color: var(--dim); }
select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 16px, calc(100% - 13px) 16px; background-size: 5px 5px; background-repeat: no-repeat; }
select optgroup { color: var(--muted); }
select option { color: var(--fg); background: var(--card); }
input[type=color] { width: 100%; height: 38px; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg-2); cursor: pointer; }
input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
input[type=color]::-webkit-color-swatch { border: 0; border-radius: 7px; }
.color-row { display: grid; grid-template-columns: 64px 1fr; gap: 10px; }
.prefixed { display: flex; }
.prefixed span { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--card-2); color: var(--gold); font: 500 15px var(--mono); }
.prefixed input { border-radius: 0 var(--r-sm) var(--r-sm) 0 !important; font-family: var(--mono) !important; }
.form { display: grid; gap: 16px; padding: 12px 0; }
.form label { display: grid; gap: 7px; font-weight: 500; font-size: 13.5px; }
.form small { color: var(--dim); font-weight: 400; }
.narrow { max-width: 520px; }

/* Rollen-/Kanal-Auswahl als Chips */
.picker { display: grid; gap: 8px; }
.chips-pick { display: flex; flex-wrap: wrap; gap: 6px; max-height: 210px; overflow-y: auto; padding: 2px; }
.pchip { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); color: var(--muted); font-size: 12.5px; font-weight: 500; cursor: pointer; user-select: none; transition: border-color .15s, background .15s, color .15s; }
.pchip:hover { border-color: var(--line-2); color: var(--fg); }
.pchip input { position: absolute; opacity: 0; pointer-events: none; }
.pchip i { width: 9px; height: 9px; border-radius: 50%; }
.pchip b { color: var(--dim); font-weight: 600; }
.pchip:has(input:checked) { border-color: rgba(246, 196, 83, 0.5); background: var(--gold-soft); color: var(--fg); }
.pchip:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.rchip { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.rchip i { width: 9px; height: 9px; border-radius: 50%; }

.filter { position: relative; display: flex; align-items: center; }
.filter .i { position: absolute; left: 11px; color: var(--dim); width: 15px; height: 15px; }
.filter input { padding-left: 33px !important; }
.filter.in-picker input { height: 32px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.toolbar .filter { flex: 1; min-width: 200px; max-width: 380px; }
.toolbar select { width: auto; min-width: 170px; }
.searchbar { position: relative; display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.searchbar > .i { position: absolute; left: 14px; color: var(--dim); }
.searchbar input { height: 44px !important; padding-left: 40px !important; font-size: 14.5px !important; }
.searchbar .btn { height: 44px; }

/* ---------- Flash ---------- */
.flash { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; padding: 11px 14px; border-radius: var(--r-sm); border: 1px solid rgba(111, 207, 138, 0.3); background: var(--green-bg); color: #a7e6b8; font-size: 13.5px; }
.flash .i { margin-top: 2px; }
.flash-err { border-color: rgba(240, 122, 111, 0.35); background: var(--red-bg); color: #f7aaa2; }
.flash-warn { border-color: rgba(246, 196, 83, 0.3); background: var(--gold-soft); color: var(--gold-2); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; margin: -6px 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 14px 12px; color: var(--muted); font-weight: 500; font-size: 13.5px; white-space: nowrap; border-radius: 8px 8px 0 0; }
.tab:hover { color: var(--fg); background: var(--hover); }
.tab.on { color: var(--fg); }
.tab.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--gold-grad); box-shadow: 0 0 12px rgba(246, 196, 83, 0.6); }
.tab.on .i { color: var(--gold); }
.count { padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--muted); font-size: 11.5px; }

/* ---------- Dashboard ---------- */
.cta { margin-bottom: 20px; border-color: rgba(246, 196, 83, 0.35); background: linear-gradient(120deg, rgba(246, 196, 83, 0.1), var(--card) 60%); }
.cta-in { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.cta-in > div { flex: 1; }
.cta h3 { font-size: 17px; margin-bottom: 2px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 26px; }
.stat { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.stat-ico { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border-radius: 10px; background: var(--gold-soft); color: var(--gold); }
.stat > span:last-child { display: grid; min-width: 0; }
.stat small { color: var(--muted); font-size: 12px; }
.stat b { font: 600 20px/1.25 var(--head); }
.stat em { color: var(--dim); font-style: normal; font-size: 11.5px; }
.grid-dash { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
.grid-dash aside { display: grid; gap: 16px; align-content: start; }
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mod { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); transition: border-color .15s, transform .15s, background .15s; }
.mod:hover { border-color: rgba(246, 196, 83, 0.35); background: var(--card-2); color: inherit; transform: translateY(-2px); }
.mod-soon { opacity: 0.6; border-style: dashed; }
.mod-ico { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 10px; background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(246, 196, 83, 0.2); font-weight: 600; }
.mod-text { flex: 1; display: grid; gap: 3px; min-width: 0; }
.mod-text b { font-family: var(--head); font-size: 15px; font-weight: 600; }
.mod-text small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.bot-card { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.bot-card img { width: 46px; height: 46px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--line-2); }
.bot-card > div { display: grid; min-width: 0; }
.bot-card small { font-size: 12.5px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 4px 0 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.feed { list-style: none; margin: 0; padding: 8px 0; display: grid; gap: 12px; }
.feed li { display: flex; gap: 12px; }
.feed li > div { display: grid; gap: 2px; min-width: 0; }
.feed-dot { width: 8px; height: 8px; margin-top: 7px; flex: none; border-radius: 50%; background: var(--gold); border: 0; }
.feed-dot.act-timeout { background: var(--orange); } .feed-dot.act-kick, .feed-dot.act-ban { background: var(--red); } .feed-dot.act-unban, .feed-dot.act-untimeout { background: var(--green); }
.feed-msg { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.feed-meta { color: var(--dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks li.ok .i { color: var(--green); } .checks li.bad { color: var(--red); }

/* ---------- Listen: Mitglieder, Regeln ---------- */
.member, .rule { display: flex; align-items: center; gap: 14px; padding: 14px 18px; flex-wrap: wrap; }
.member > img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.member-main { flex: 1; min-width: 180px; display: grid; gap: 2px; }
.member-main small { font-size: 12.5px; }
.member-main .clamp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px; }
.act-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.act-form select { width: 150px; height: 32px; background-position: calc(100% - 16px) 13px, calc(100% - 11px) 13px; }
.act-form input { height: 32px !important; }
.act-form input[name=minutes] { width: 90px; }
.act-form input[name=reason] { width: 200px; }
.esc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 0; }
.esc-row input { width: 80px !important; }
.esc-row select { width: 140px; }
.add-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.add-row > input, .add-row > select { flex: 1; min-width: 120px; height: 32px !important; }
.add-row select { background-position: calc(100% - 16px) 13px, calc(100% - 11px) 13px; }
.add-row .emoji-in { flex: 0 0 80px; min-width: 0; }
.add-row input[name=level] { flex: 0 0 90px; min-width: 0; }
.card-body > .add-row:last-child { margin-bottom: 14px; }

/* Rollen-Menü-Buttons */
.btn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bchip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; background: #4e5058; color: #fff; }
.bchip.bstyle-1 { background: #5865f2; } .bchip.bstyle-3 { background: #248046; } .bchip.bstyle-4 { background: #da373c; }
.bchip .dim { color: rgba(255, 255, 255, 0.6); }
.bchip .rchip { color: #fff; }
.bchip .x { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 6px; background: rgba(0, 0, 0, 0.2); color: #fff; cursor: pointer; }
.bchip .x:hover { background: rgba(0, 0, 0, 0.4); }
.bchip .x .i { width: 12px; height: 12px; }

/* Tabellen */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { padding: 10px 12px; text-align: left; color: var(--dim); font-weight: 500; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--line); background: var(--card-2); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--hover); }
.table .reason { max-width: 340px; }
.table small { font-size: 11.5px; }
.lvl { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 8px; border-radius: 8px; background: var(--gold-soft); color: var(--gold); font: 600 13px var(--head); }
.rank { font: 700 15px var(--head); color: var(--muted); width: 40px; }
.rank.r1 { color: #ffd76a; } .rank.r2 { color: #d9dde3; } .rank.r3 { color: #e0a370; }
.bar { width: 90px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin-bottom: 3px; }
.bar i { display: block; height: 100%; background: var(--gold-grad); border-radius: 6px; }

/* Leere Zustände */
.empty { padding: 48px 24px; text-align: center; display: grid; justify-items: center; gap: 8px; }
.empty-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--gold-soft); color: var(--gold); margin-bottom: 6px; }
.empty-ico .i { width: 24px; height: 24px; }
.empty h3 { font-size: 17px; }
.empty p { max-width: 420px; }
.empty .btn { margin-top: 10px; }
.empty.big { padding: 90px 24px; }

.danger-box { border-color: rgba(240, 122, 111, 0.3); }
.danger-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; }
.danger-row > div { display: grid; gap: 2px; }
.plan { list-style: none; margin: 0; padding: 10px 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan .i { color: var(--gold); margin-top: 3px; }

/* ---------- Discord-Vorschau ---------- */
.dc { display: flex; gap: 14px; padding: 16px 4px; font-family: "gg sans", var(--font); }
.dc-av { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.dc-body { flex: 1; min-width: 0; }
.dc-name { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--gold-2); }
.dc-bot { padding: 0 5px; border-radius: 4px; background: #5865f2; color: #fff; font-size: 10px; font-weight: 600; line-height: 16px; }
.dc-time { color: var(--dim); font-size: 11.5px; font-weight: 400; }
.dc-content { margin-top: 2px; color: #dbdee1; font-size: 14.5px; white-space: pre-wrap; word-break: break-word; }
.dc-content:empty { display: none; }
.dc-embed { margin-top: 6px; max-width: 460px; padding: 10px 14px 12px; border-left: 4px solid var(--gold); border-radius: 4px; background: #2b2d31; color: #dbdee1; }
.dc-e-title { font-weight: 600; font-size: 15px; color: #f2f3f5; margin-bottom: 4px; }
.dc-e-title:empty { display: none; }
.dc-e-desc { font-size: 14px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.dc-e-desc strong { color: #fff; }
.dc-e-desc .ment { padding: 0 2px; border-radius: 3px; background: rgba(88, 101, 242, 0.3); color: #c9cdfb; }
.dc-e-img { display: none; max-width: 100%; margin-top: 10px; border-radius: 4px; }
.dc-e-img[src] { display: block; }
.dc-e-foot { margin-top: 8px; font-size: 12px; color: #b5bac1; }
.dc-e-foot:empty { display: none; }
.dc-embed.no-embed { display: none; }
.dc-btns { padding: 0 4px 16px 58px; }
.dc-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 4px; background: #5865f2; color: #fff; font-size: 14px; font-weight: 500; }
.dc-btn::before { content: "🎫"; margin-right: 6px; }

/* ---------- Anmeldung ---------- */
body.auth { display: grid; place-items: center; padding: 24px 16px; }
.auth-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(rgba(255, 214, 120, 0.035) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, rgba(255, 214, 120, 0.035) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent); mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent); }
.auth-bg .glow { position: absolute; left: 50%; top: 30%; width: 720px; height: 720px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(246, 196, 83, 0.18), transparent 65%); filter: blur(10px); }
.auth-card { width: min(420px, 100%); padding: 36px 32px 30px; border: 1px solid var(--line-2); border-radius: 22px; background: rgba(15, 16, 23, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 40px 100px -40px rgba(246, 180, 52, 0.3), 0 30px 60px -30px rgba(0, 0, 0, 0.9); text-align: center; }
.auth-logo { width: 56px; height: 56px; margin: 0 auto 18px; display: block; border-radius: 14px; box-shadow: 0 14px 40px -10px rgba(246, 180, 52, 0.7); }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card > p { margin-bottom: 24px; }
.auth-card .form { text-align: left; padding: 0; }
.auth-card .flash { text-align: left; }
.auth-card input { height: 42px !important; }

/* ---------- Mobil ---------- */
.side-shade { display: none; }
@media (max-width: 1100px) {
  .grid-dash, .grid-2, .grid-2-wide { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
}
@media (max-width: 860px) {
  .side { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 30px 0 60px -20px rgba(0, 0, 0, 0.9); }
  body.side-open .side { transform: none; }
  body.side-open .side-shade { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, 0.55); }
  .main { margin-left: 0; }
  .top .menu-btn { display: inline-flex; margin-left: -8px; }
  .cta .page-ico { display: none; }
  .top { padding: 0 16px; gap: 8px; }
  .status { padding: 0 10px; font-size: 0; gap: 0; }
  .status .dot { margin: 0; }
  .content { padding: 20px 16px 48px; }
  .foot { padding: 18px 16px; }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .page-head { flex-wrap: wrap; }
  .page-ico { width: 40px; height: 40px; }
  .page-actions { width: 100%; }
  .page-text h2 { font-size: 21px; }
  .act-form, .act-form > * { width: 100%; }
  .act-form input[name=minutes], .act-form input[name=reason], .act-form select { width: 100%; }
  .cta-in { flex-wrap: wrap; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 12px; }
  .danger-row { flex-wrap: wrap; }
}

/* ---------- Bot-API pages ---------- */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding: 18px 0 12px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.bar-col i { width: 100%; max-width: 46px; border-radius: 8px 8px 3px 3px; background: var(--gold-grad); box-shadow: 0 6px 20px -8px rgba(246, 180, 52, 0.6); opacity: .9; transition: opacity .15s; }
.bar-col:hover i { opacity: 1; }
.bar-col span { color: var(--dim); font-size: 11.5px; }
.cmds { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; }
.cmd { padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-2); color: var(--fg-2); font: 500 12.5px var(--mono); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.who { display: inline-flex; align-items: center; gap: 10px; }
.who img { width: 26px; height: 26px; border-radius: 50%; }
.member-link { color: inherit; transition: background .15s; }
.member-link:hover { background: var(--hover); color: inherit; }
.member-link > .i { color: var(--dim); }
.act-mute { color: var(--orange); border-color: rgba(240, 168, 90, 0.35); background: rgba(240, 168, 90, 0.1); }
.act-unmute { color: var(--green); border-color: rgba(111, 207, 138, 0.35); background: var(--green-bg); }
.feed-dot.act-mute { background: var(--orange); } .feed-dot.act-unmute { background: var(--green); }
.st-scheduled { color: var(--blue); border-color: rgba(140, 194, 245, 0.35); }
.st-sent { color: var(--green); border-color: rgba(111, 207, 138, 0.35); }
.st-failed { color: var(--red); border-color: rgba(240, 122, 111, 0.35); }
.err-text { color: var(--red); }
.list.flush > .member { padding-left: 0; padding-right: 0; }
.dc .h1 { display: block; font-size: 20px; font-weight: 700; color: #f2f3f5; margin: 2px 0; }
.dc .h2 { display: block; font-size: 17px; font-weight: 700; color: #f2f3f5; }
.dc .ment { padding: 0 2px; border-radius: 3px; background: rgba(88, 101, 242, 0.3); color: #c9cdfb; }
.dc.tx { padding: 10px 4px; }
.dc.tx + .dc.tx { border-top: 1px solid var(--line); }
.dc.tx .dc-name { color: var(--fg); font-size: 14px; }
.dc.tx a { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--gold); }
.card-body > .dc.tx:last-child { margin-bottom: 6px; }
input[type=datetime-local] { color-scheme: dark; }
