/* ==========================================================================
   Orbyt — Space-Glas-Design
   Schwebende Glas-Panels über einem ruhigen Sternenhimmel.
   ========================================================================== */
:root {
  --space-0: #05060d;
  --space-1: #0a0c18;
  --panel-rgb: 14, 16, 30;
  --deep-rgb: 5, 6, 13;
  --ink-rgb: 255, 255, 255;
  --glass: rgba(var(--panel-rgb), .58);
  --glass-strong: rgba(var(--panel-rgb), .82);
  --text: #eef0fa;
  --text2: #c2c6dc;
  --muted: #8b90ab;
  --mine-text: #eef0ff;
  --theme-accent: #8b6cff;
  --theme-accent-2: #22d3ee;
  --neb-1: color-mix(in srgb, var(--accent) 22%, transparent);
  --neb-2: color-mix(in srgb, var(--accent-2) 14%, transparent);
  --neb-3: rgba(236, 72, 153, .06);
  --stars: .7;
  --danger: #ff5c7a;
  --ok: #34d399;
  --warn: #fbbf24;
  color-scheme: dark;
  /* Abgeleitet – passt sich Theme & eigener Akzentfarbe an */
  --accent: var(--user-accent, var(--theme-accent));
  --accent-2: var(--user-accent-2, var(--theme-accent-2));
  --glass-soft: rgba(var(--ink-rgb), .035);
  --glass-hover: rgba(var(--ink-rgb), .06);
  --glass-active: color-mix(in srgb, var(--accent) 16%, transparent);
  --edge: rgba(var(--ink-rgb), .07);
  --edge-strong: rgba(var(--ink-rgb), .12);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --grad: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 50%, var(--accent-2)) 50%, var(--accent-2) 100%);
  --danger-soft: color-mix(in srgb, var(--danger) 14%, transparent);
  --idle: #f5b84a;
  --well-rgb: 0, 0, 0;
  --well-k: 1;
  --c-violet-c4b5fd: #c4b5fd;
  --c-rose-fda4af: #fda4af;
  --c-rose-fca5a5: #fca5a5;
  --c-rose-ffa3b3: #ffa3b3;
  --c-rose-fecaca: #fecaca;
  --c-rose-ffb8c4: #ffb8c4;
  --c-rose-fecdd3: #fecdd3;
  --c-mint-6ee7b7: #6ee7b7;
  --c-mint-a7f3d0: #a7f3d0;
  --c-mint-86efac: #86efac;
  --c-mint-4ade80: #4ade80;
  --c-amber-fcd34d: #fcd34d;
  --c-amber-ffdd8f: #ffdd8f;
  --c-amber-fde68a: #fde68a;
  --c-amber-f6d48a: #f6d48a;
  --c-indigo-a5b4fc: #a5b4fc;
  --c-indigo-c7d2fe: #c7d2fe;
  --c-indigo-d4c9ff: #d4c9ff;
  --c-indigo-a78bfa: #a78bfa;
  --c-sky-93c5fd: #93c5fd;
  --c-pink-f472b6: #f472b6;
  --msg-size: 15px;
  --r-xl: 24px;
  --r-lg: 18px;
  --r: 14px;
  --r-sm: 10px;
  --blur: blur(22px) saturate(140%);
  --shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(var(--ink-rgb), .05);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', var(--font);
}
html[data-theme=midnight] {
  --space-0: #000000;
  --space-1: #050507;
  --panel-rgb: 10, 10, 14;
  --deep-rgb: 0, 0, 0;
  --ink-rgb: 255, 255, 255;
  --glass: rgba(var(--panel-rgb), .86);
  --glass-strong: rgba(var(--panel-rgb), .94);
  --text: #eef0fa;
  --text2: #c2c6dc;
  --muted: #8b90ab;
  --mine-text: #eef0ff;
  --theme-accent: #8b6cff;
  --theme-accent-2: #22d3ee;
  --neb-1: color-mix(in srgb, var(--accent) 7%, transparent);
  --neb-2: color-mix(in srgb, var(--accent-2) 4%, transparent);
  --neb-3: transparent;
  --stars: .35;
  --danger: #ff5c7a;
  --ok: #34d399;
  --warn: #fbbf24;
  color-scheme: dark;
}
html[data-theme=nebula] {
  --space-0: #0b0612;
  --space-1: #140a1e;
  --panel-rgb: 32, 15, 42;
  --deep-rgb: 10, 4, 16;
  --ink-rgb: 255, 255, 255;
  --glass: rgba(var(--panel-rgb), .58);
  --glass-strong: rgba(var(--panel-rgb), .82);
  --text: #eef0fa;
  --text2: #d4c6e0;
  --muted: #9d8cae;
  --mine-text: #eef0ff;
  --theme-accent: #d77bff;
  --theme-accent-2: #ff6fb5;
  --neb-1: rgba(217, 70, 239, .24);
  --neb-2: rgba(255, 111, 181, .16);
  --neb-3: rgba(99, 102, 241, .12);
  --stars: .7;
  --danger: #ff5c7a;
  --ok: #34d399;
  --warn: #fbbf24;
  color-scheme: dark;
}
html[data-theme=ocean] {
  --space-0: #030d14;
  --space-1: #061722;
  --panel-rgb: 10, 30, 42;
  --deep-rgb: 2, 9, 14;
  --ink-rgb: 255, 255, 255;
  --glass: rgba(var(--panel-rgb), .58);
  --glass-strong: rgba(var(--panel-rgb), .82);
  --text: #eef0fa;
  --text2: #bfd6e2;
  --muted: #7f9cad;
  --mine-text: #eef0ff;
  --theme-accent: #38bdf8;
  --theme-accent-2: #2dd4bf;
  --neb-1: rgba(14, 165, 233, .22);
  --neb-2: rgba(45, 212, 191, .14);
  --neb-3: rgba(59, 130, 246, .1);
  --stars: .7;
  --danger: #ff5c7a;
  --ok: #34d399;
  --warn: #fbbf24;
  color-scheme: dark;
}
html[data-theme=forest] {
  --space-0: #040d09;
  --space-1: #091710;
  --panel-rgb: 14, 32, 24;
  --deep-rgb: 3, 9, 6;
  --ink-rgb: 255, 255, 255;
  --glass: rgba(var(--panel-rgb), .58);
  --glass-strong: rgba(var(--panel-rgb), .82);
  --text: #eef0fa;
  --text2: #c3dacb;
  --muted: #84a291;
  --mine-text: #eef0ff;
  --theme-accent: #34d399;
  --theme-accent-2: #a3e635;
  --neb-1: rgba(16, 185, 129, .2);
  --neb-2: rgba(163, 230, 53, .1);
  --neb-3: rgba(20, 184, 166, .08);
  --stars: .7;
  --danger: #ff5c7a;
  --ok: #34d399;
  --warn: #fbbf24;
  color-scheme: dark;
}
html[data-theme=sunset] {
  --space-0: #110706;
  --space-1: #1b0d0a;
  --panel-rgb: 40, 20, 15;
  --deep-rgb: 12, 5, 3;
  --ink-rgb: 255, 255, 255;
  --glass: rgba(var(--panel-rgb), .58);
  --glass-strong: rgba(var(--panel-rgb), .82);
  --text: #eef0fa;
  --text2: #e2cdc4;
  --muted: #ab8f84;
  --mine-text: #eef0ff;
  --theme-accent: #fb923c;
  --theme-accent-2: #f43f5e;
  --neb-1: rgba(249, 115, 22, .2);
  --neb-2: rgba(244, 63, 94, .15);
  --neb-3: rgba(234, 179, 8, .07);
  --stars: .7;
  --danger: #ff5c7a;
  --ok: #34d399;
  --warn: #fbbf24;
  color-scheme: dark;
}
html[data-theme=light] {
  --space-0: #eceff7;
  --space-1: #ffffff;
  --panel-rgb: 255, 255, 255;
  --deep-rgb: 236, 239, 247;
  --ink-rgb: 24, 28, 56;
  --glass: rgba(var(--panel-rgb), .78);
  --glass-strong: rgba(var(--panel-rgb), .95);
  --text: #151831;
  --text2: #383d5a;
  --muted: #686d8c;
  --mine-text: #151831;
  --theme-accent: #6d4dff;
  --theme-accent-2: #0891b2;
  --neb-1: color-mix(in srgb, var(--accent) 14%, transparent);
  --neb-2: color-mix(in srgb, var(--accent-2) 12%, transparent);
  --neb-3: rgba(236, 72, 153, .06);
  --stars: 0;
  --danger: #e11d48;
  --ok: #059669;
  --warn: #d97706;
  color-scheme: light;
}
html[data-theme=light] {
  --c-violet-c4b5fd: #6d28d9;
  --c-rose-fda4af: #be123c;
  --c-rose-fca5a5: #be123c;
  --c-rose-ffa3b3: #be123c;
  --c-rose-fecaca: #be123c;
  --c-rose-ffb8c4: #be123c;
  --c-rose-fecdd3: #be123c;
  --c-mint-6ee7b7: #047857;
  --c-mint-a7f3d0: #047857;
  --c-mint-86efac: #047857;
  --c-mint-4ade80: #047857;
  --c-amber-fcd34d: #b45309;
  --c-amber-ffdd8f: #b45309;
  --c-amber-fde68a: #b45309;
  --c-amber-f6d48a: #b45309;
  --c-indigo-a5b4fc: #4338ca;
  --c-indigo-c7d2fe: #4338ca;
  --c-indigo-d4c9ff: #4338ca;
  --c-indigo-a78bfa: #4338ca;
  --c-sky-93c5fd: #0369a1;
  --c-pink-f472b6: #be185d;
}
html[data-theme=light] { --well-rgb: 24, 28, 56; --well-k: .17; --shadow: 0 18px 44px rgba(30, 34, 70, .14), inset 0 1px 0 rgba(var(--ink-rgb), .6); }
html[data-theme=light] :is(.pcard, .stage, .lightbox, .landing-root, .ring-card, .badge-pop, .server-hero) {
  --c-violet-c4b5fd: #c4b5fd;
  --c-rose-fda4af: #fda4af;
  --c-rose-fca5a5: #fca5a5;
  --c-rose-ffa3b3: #ffa3b3;
  --c-rose-fecaca: #fecaca;
  --c-rose-ffb8c4: #ffb8c4;
  --c-rose-fecdd3: #fecdd3;
  --c-mint-6ee7b7: #6ee7b7;
  --c-mint-a7f3d0: #a7f3d0;
  --c-mint-86efac: #86efac;
  --c-mint-4ade80: #4ade80;
  --c-amber-fcd34d: #fcd34d;
  --c-amber-ffdd8f: #ffdd8f;
  --c-amber-fde68a: #fde68a;
  --c-amber-f6d48a: #f6d48a;
  --c-indigo-a5b4fc: #a5b4fc;
  --c-indigo-c7d2fe: #c7d2fe;
  --c-indigo-d4c9ff: #d4c9ff;
  --c-indigo-a78bfa: #a78bfa;
  --c-sky-93c5fd: #93c5fd;
  --c-pink-f472b6: #f472b6;
  --well-rgb: 0, 0, 0;
  --well-k: 1;
  --space-0: #05060d;
  --space-1: #0a0c18;
  --panel-rgb: 14, 16, 30;
  --deep-rgb: 5, 6, 13;
  --ink-rgb: 255, 255, 255;
  --glass: rgba(var(--panel-rgb), .58);
  --glass-strong: rgba(var(--panel-rgb), .82);
  --text: #eef0fa;
  --text2: #c2c6dc;
  --muted: #8b90ab;
  --mine-text: #eef0ff;
  --theme-accent: #8b6cff;
  --theme-accent-2: #22d3ee;
  --neb-1: color-mix(in srgb, var(--accent) 22%, transparent);
  --neb-2: color-mix(in srgb, var(--accent-2) 14%, transparent);
  --neb-3: rgba(236, 72, 153, .06);
  --stars: .7;
  --danger: #ff5c7a;
  --ok: #34d399;
  --warn: #fbbf24;
  color-scheme: dark;
  /* Abgeleitet – passt sich Theme & eigener Akzentfarbe an */
  --accent: var(--user-accent, var(--theme-accent));
  --accent-2: var(--user-accent-2, var(--theme-accent-2));
  --glass-soft: rgba(var(--ink-rgb), .035);
  --glass-hover: rgba(var(--ink-rgb), .06);
  --glass-active: color-mix(in srgb, var(--accent) 16%, transparent);
  --edge: rgba(var(--ink-rgb), .07);
  --edge-strong: rgba(var(--ink-rgb), .12);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --grad: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 50%, var(--accent-2)) 50%, var(--accent-2) 100%);
  --danger-soft: color-mix(in srgb, var(--danger) 14%, transparent);
  --shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(var(--ink-rgb), .05);
  color: var(--text);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--space-0);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
/* Sternenhimmel + Nebel (reines CSS, eigene Gestaltung) */
body::before, body::after { content: ''; position: fixed; inset: -50px; pointer-events: none; z-index: 0; }
body::before {
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.75) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 38% 66%, rgba(200,210,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 54%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 22% 84%, rgba(180,220,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 36%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 92% 88%, rgba(220,200,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 4% 48%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 48% 8%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 66% 78%, rgba(255,255,255,.55) 50%, transparent 51%);
  background-size: 620px 620px;
  opacity: var(--stars);
}
body::after {
  background:
    radial-gradient(42% 38% at 8% 4%, var(--neb-1), transparent 70%),
    radial-gradient(38% 34% at 96% 100%, var(--neb-2), transparent 70%),
    radial-gradient(30% 30% at 70% 30%, var(--neb-3), transparent 70%);
}
@keyframes drift { to { transform: translate3d(-620px, -310px, 0); } }
#app, #modals, #toasts { position: relative; z-index: 1; }
#app { height: 100%; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.015em; margin: 0 0 8px; font-weight: 600; }
h1 { font-size: 28px; } h2 { font-size: 21px; } h3 { font-size: 16px; }
h4 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
p { margin: 0 0 10px; }
code { font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace; font-size: .88em; background: rgba(var(--well-rgb), calc(.35 * var(--well-k))); padding: 1px 6px; border-radius: 6px; }
pre { background: rgba(var(--well-rgb), calc(.4 * var(--well-k))); border: 1px solid var(--edge); border-radius: var(--r-sm); padding: 10px 12px; overflow-x: auto; margin: 6px 0; }
pre code { background: none; padding: 0; }
::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(var(--ink-rgb), .08); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--ink-rgb), .16); border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.glass { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--edge); box-shadow: var(--shadow); }
.glass-soft { background: var(--glass-soft); border: 1px solid var(--edge); border-radius: var(--r-lg); }

.ic { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.block { display: block; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.center-text { text-align: center; }
.pad { padding: 12px; }
.grow { flex: 1; min-width: 0; }
.spacer { flex: 1; }
.row { display: flex; align-items: center; }
.row.gap { gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ellipsis-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mobile-only { display: none !important; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #6b7287; margin-right: 5px; }
.dot.on { background: var(--ok); box-shadow: 0 0 8px rgba(52, 211, 153, .7); }

/* ------------------------------------------------------------ Buttons & Eingaben */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: transform .12s, box-shadow .2s, background .2s, opacity .2s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.primary:hover { box-shadow: 0 8px 28px color-mix(in srgb, color-mix(in srgb, var(--accent) 50%, var(--accent-2)) 50%, transparent); }
.btn.danger { background: linear-gradient(135deg, #ff5c7a, #ff7a59); color: #fff; }
.btn.danger:hover { box-shadow: 0 6px 22px rgba(255, 92, 122, .4); }
.btn.ghost { background: var(--glass-soft); border: 1px solid var(--edge-strong); color: var(--text); }
.btn.ghost:hover { background: var(--glass-hover); }
.btn.sm { padding: 6px 13px; font-size: 13px; }
.btn.block { width: 100%; }
.linklike { color: var(--accent-2); text-align: left; }
.linklike:hover { text-decoration: underline; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 12px; color: var(--text2); flex: none;
  transition: background .15s, color .15s, transform .12s;
}
.icon-btn:hover { background: var(--glass-hover); color: var(--text); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.sm { width: 28px; height: 28px; border-radius: 9px; }
.icon-btn.on { color: var(--text); background: var(--glass-active); }
.icon-btn.off { color: var(--danger); }
.icon-btn.danger-hover:hover { color: var(--danger); background: var(--danger-soft); }
.icon-btn.send { background: var(--grad); color: #fff; border-radius: 50%; box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 40%, transparent); }
.icon-btn.send:hover { color: #fff; filter: brightness(1.1); }

.input {
  width: 100%; background: rgba(var(--well-rgb), calc(.28 * var(--well-k))); border: 1px solid var(--edge-strong); color: var(--text);
  border-radius: var(--r-sm); padding: 10px 13px; font: inherit; outline: none; transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.input:focus { border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.input:disabled { opacity: .55; }
select.input { cursor: pointer; }
select.input option { background: var(--space-1); color: var(--text); }
textarea.input { min-height: 42px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; flex: 1; }
.field-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text2); }
.field-hint { font-size: 12px; color: var(--muted); }
.form-error { color: var(--danger); font-size: 13.5px; min-height: 20px; margin-bottom: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; cursor: pointer; font-size: 14px; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.color-in { width: 64px; height: 40px; border: 1px solid var(--edge-strong); border-radius: var(--r-sm); background: rgba(var(--well-rgb), calc(.3 * var(--well-k))); padding: 3px; cursor: pointer; }
.color-in:disabled { opacity: .4; cursor: not-allowed; }
.range { accent-color: var(--accent); width: 100%; }

input.switch { appearance: none; width: 42px; height: 24px; border-radius: 24px; background: rgba(var(--ink-rgb), .12); position: relative; cursor: pointer; flex: none; transition: background .2s; }
input.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
input.switch:checked { background: var(--grad); }
input.switch:checked::after { transform: translateX(18px); }
input.switch:disabled { opacity: .45; cursor: not-allowed; }

.badge { position: absolute; bottom: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--space-1); }
.badge.inline { position: static; border: 0; margin-left: auto; }
.badge-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--glass-hover); }
.badge-pill.staff { background: var(--accent-soft); color: var(--c-violet-c4b5fd); }
.badge-pill.owner { background: rgba(251, 191, 36, .14); color: var(--warn); }
.badge-pill.ok { background: rgba(52, 211, 153, .15); color: var(--ok); }
.new-pill { display: inline-block; margin-left: 6px; padding: 1px 8px; font-size: 11px; border-radius: 999px; background: color-mix(in srgb, var(--accent-2) 14%, transparent); color: var(--accent-2); font-weight: 600; }
.crown { color: var(--warn); display: inline-flex; }
.staff { color: var(--c-violet-c4b5fd); display: inline-flex; }
.notice { background: rgba(251, 191, 36, .09); border: 1px solid rgba(251, 191, 36, .28); color: var(--c-amber-f6d48a); padding: 10px 14px; border-radius: var(--r); font-size: 14px; margin: 8px 0; }
.ban-reason { background: var(--danger-soft); color: var(--c-rose-ffa3b3); padding: 8px 12px; border-radius: var(--r-sm); margin: 8px 0; }
.code { font-family: 'JetBrains Mono', ui-monospace, monospace; background: rgba(var(--well-rgb), calc(.35 * var(--well-k))); padding: 4px 9px; border-radius: 8px; }

.spinner { width: 28px; height: 28px; border: 3px solid rgba(var(--ink-rgb), .1); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-main { display: flex; align-items: center; justify-content: center; flex: 1; padding: 30px; }

/* ------------------------------------------------------------ Avatare & Auras */
.avatar { position: relative; display: inline-flex; border-radius: 50%; flex: none; }
.avatar img, .avatar-fallback { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; user-select: none; }
.avatar.speaking::after { content: ''; position: absolute; inset: -3px; z-index: 2; border-radius: 50%; border: 2.5px solid var(--ok); box-shadow: 0 0 12px rgba(52, 211, 153, .6); }
.status-dot { position: absolute; right: -1px; bottom: -1px; z-index: 3; border-radius: 50%; border: 3px solid var(--space-1); }
.status-online { background: var(--ok); }
.status-idle { background: var(--idle); }
.status-dnd { background: var(--danger); }
.status-offline, .status-invisible { background: #5d6378; }

.aura { position: absolute; inset: -14%; z-index: 2; pointer-events: none; border-radius: 50%; }
.aura-orbit { border: 2px dashed rgba(167, 139, 250, .85); animation: spin 9s linear infinite; }
.aura-orbit::after { content: ''; position: absolute; width: 18%; height: 18%; top: -9%; left: 41%; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 10px #22d3ee; }
.aura-stardust { background: conic-gradient(from 0deg, transparent 0 10%, #fde68a 12%, transparent 14% 30%, #c4b5fd 32%, transparent 34% 55%, #67e8f9 57%, transparent 59% 78%, #f9a8d4 80%, transparent 82%); -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%, #000 72%, transparent 74%); mask: radial-gradient(circle, transparent 62%, #000 64%, #000 72%, transparent 74%); animation: spin 6s linear infinite; }
.aura-nebula { inset: -22%; background: radial-gradient(circle, transparent 46%, color-mix(in srgb, var(--accent) 55%, transparent) 56%, rgba(236, 72, 153, .35) 64%, transparent 72%); filter: blur(3px); animation: breathe 3.6s ease-in-out infinite; }
.aura-comet { background: conic-gradient(from 0deg, transparent 0 60%, color-mix(in srgb, var(--accent-2) 10%, transparent) 70%, #22d3ee 98%, #fff 100%); -webkit-mask: radial-gradient(circle, transparent 63%, #000 65%, #000 71%, transparent 73%); mask: radial-gradient(circle, transparent 63%, #000 65%, #000 71%, transparent 73%); animation: spin 2.6s linear infinite; }
.aura-pulse::before, .aura-pulse::after { content: ''; position: absolute; inset: 10%; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 80%, transparent); animation: ripple 2.4s ease-out infinite; }
.aura-pulse::after { animation-delay: 1.2s; }
.aura-halo { inset: -10%; background: conic-gradient(from 0deg, #fde68a, #f59e0b, #fff7d6, #f59e0b, #fde68a); -webkit-mask: radial-gradient(circle, transparent 64%, #000 66%, #000 72%, transparent 74%); mask: radial-gradient(circle, transparent 64%, #000 66%, #000 72%, transparent 74%); filter: drop-shadow(0 0 6px rgba(253, 230, 138, .7)); animation: breathe 3s ease-in-out infinite; }
.aura-eclipse { inset: -12%; background: conic-gradient(from 0deg, #000 0 40%, #f59e0b 50%, #fff 52%, #000 62%); -webkit-mask: radial-gradient(circle, transparent 63%, #000 65%, #000 72%, transparent 74%); mask: radial-gradient(circle, transparent 63%, #000 65%, #000 72%, transparent 74%); filter: drop-shadow(0 0 6px rgba(245, 158, 11, .7)); animation: spin 7s linear infinite; }
.aura-glitch { inset: -6%; border-radius: 50%; box-shadow: 3px 0 0 rgba(255, 0, 110, .75), -3px 0 0 rgba(0, 240, 255, .75); animation: glitch 1.6s steps(2) infinite; }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .75; } }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
@keyframes glitch { 0%, 70%, 100% { transform: none; } 75% { transform: translate(2px, -1px); } 85% { transform: translate(-2px, 1px); } 92% { transform: translate(1px, 2px); } }

/* ------------------------------------------------------------ Namens-Stile */
.sname { display: inline-block; max-width: 100%; }
.font-grotesk { font-family: 'Space Grotesk', var(--font); font-weight: 700; }
.font-orbit { font-family: 'Orbitron', var(--font); font-weight: 800; letter-spacing: .02em; }
.font-mono { font-family: 'JetBrains Mono', monospace; font-weight: 700; }
.font-script { font-family: 'Caveat', cursive; font-weight: 700; font-size: 1.25em; line-height: 1.1; }
.font-pixel { font-family: 'Press Start 2P', monospace; font-size: .72em; line-height: 1.6; }
.font-serif { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700; }
.nfx-gradient, .nfx-shimmer { background: linear-gradient(90deg, var(--n1, #a78bfa), var(--n2, #22d3ee)); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.nfx-shimmer { background: linear-gradient(90deg, var(--n1, #a78bfa) 0%, var(--n2, #22d3ee) 30%, #fff 50%, var(--n2, #22d3ee) 70%, var(--n1, #a78bfa) 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; animation: shimmer 3s linear infinite; }
.nfx-glow { color: var(--n1, #a78bfa) !important; text-shadow: 0 0 10px var(--n1, #a78bfa), 0 0 22px color-mix(in srgb, var(--n2, #22d3ee) 60%, transparent); }
.nfx-neon { color: #fff !important; text-shadow: 0 0 4px #fff, 0 0 10px var(--n1, #ff00aa), 0 0 20px var(--n1, #ff00aa), 0 0 36px var(--n2, #00e5ff); animation: flicker 4s infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes flicker { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .55; } 95% { opacity: 1; } 96% { opacity: .7; } }

/* ------------------------------------------------------------ Boot & Login */
.boot { height: 100%; display: flex; align-items: center; justify-content: center; }
.boot-logo { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); animation: breathe 1.2s ease-in-out infinite; box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 60%, transparent); }
.auth-root { height: 100%; display: flex; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; position: relative; }
.auth-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.orbit { position: absolute; border: 1px solid rgba(167, 139, 250, .16); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-25deg); }
.orbit::after { content: ''; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); top: 50%; left: -5px; box-shadow: 0 0 18px var(--accent-2); }
.o1 { width: 620px; height: 240px; animation: orbitspin 26s linear infinite; }
.o2 { width: 960px; height: 380px; animation: orbitspin 40s linear infinite reverse; opacity: .7; }
.o3 { width: 1300px; height: 520px; animation: orbitspin 60s linear infinite; opacity: .45; }
@keyframes orbitspin { to { transform: translate(-50%, -50%) rotate(335deg); } }
.auth-card { position: relative; width: 100%; max-width: 440px; background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--edge-strong); border-radius: var(--r-xl); padding: 32px; box-shadow: var(--shadow); margin: auto; }
.auth-card.center { gap: 8px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 23px; font-weight: 700; }
.lang-select { width: auto; padding: 6px 12px; font-size: 13px; border-radius: 999px; }
.auth-form { margin-top: 18px; }
.auth-switch { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.big-icon { width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--glass-hover); margin-bottom: 8px; }
.big-icon.danger { background: var(--danger-soft); color: var(--danger); }

/* ------------------------------------------------------------ Layout: schwebende Panels */
.shell {
  position: relative; display: grid; grid-template-columns: 74px 268px minmax(0, 1fr) 288px;
  gap: 10px; padding: 10px; height: 100%; height: 100dvh;
}
.shell.no-members { grid-template-columns: 74px 268px minmax(0, 1fr) 0; }
.shell.no-members .members { display: none; }
.rail, .sidebar, .main, .members {
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--edge); border-radius: var(--r-xl); box-shadow: var(--shadow); min-height: 0;
}
.nav-scrim { display: none; }
.conn-banner { position: fixed; top: -80px; left: 50%; transform: translateX(-50%); background: var(--warn); color: #1d1606; padding: 8px 18px; border-radius: 0 0 14px 14px; font-weight: 600; font-size: 13px; transition: top .25s; z-index: 50; }
.conn-banner.show { top: 0; }

/* Dock (Server-Leiste) */
.rail { display: flex; flex-direction: column; align-items: center; padding: 10px 0; gap: 8px; overflow-y: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-servers { display: flex; flex-direction: column; gap: 8px; }
.rail-item { position: relative; display: flex; justify-content: center; width: 74px; }
.rail-item .pill { position: absolute; left: 3px; top: 50%; width: 4px; height: 0; border-radius: 4px; background: var(--grad); transform: translateY(-50%); transition: height .2s; box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 70%, transparent); }
.rail-item.unread .pill { height: 8px; }
.rail-item.active .pill { height: 26px; }
.rail-btn { position: relative; width: 50px; height: 50px; border-radius: 17px; background: var(--glass-soft); border: 1px solid var(--edge); display: flex; align-items: center; justify-content: center; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s, background .2s; color: var(--text2); }
.rail-btn > img, .rail-btn > .server-icon-txt { border-radius: 16px; }
.rail-item:hover .rail-btn { transform: scale(1.09); }
.rail-item.active .rail-btn { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 90%, transparent), 0 0 22px color-mix(in srgb, var(--accent) 45%, transparent); background: var(--glass-active); }
.rail-item.home .rail-btn { background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent-2) 12%, transparent)); }
.rail-item.action .rail-btn { color: var(--accent-2); border-style: dashed; border-color: color-mix(in srgb, var(--accent-2) 35%, transparent); }
.rail-item.action:hover .rail-btn { background: color-mix(in srgb, var(--accent-2) 12%, transparent); }
.rail-item.admin .rail-btn { color: var(--c-violet-c4b5fd); border-style: solid; border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.rail-sep { width: 28px; height: 2px; background: var(--edge-strong); border-radius: 2px; flex: none; }
.server-icon-img { border-radius: 50%; object-fit: cover; display: block; }
.server-icon-txt { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(145deg, #2a2f4a, #1a1d30); font-weight: 700; font-size: 15px; color: var(--text); font-family: var(--font-display); }
.rail-btn .server-icon-txt { background: transparent; }

/* Seitenleiste */
.sidebar { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.side-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.side-head { height: 56px; display: flex; align-items: center; padding: 0 12px; gap: 8px; width: 100%; position: sticky; top: 0; z-index: 2; }
.search-fake { width: 100%; display: flex; align-items: center; gap: 8px; background: rgba(var(--well-rgb), calc(.3 * var(--well-k))); border: 1px solid var(--edge); border-radius: 999px; padding: 8px 14px; color: var(--muted); font-size: 13px; transition: border-color .2s; }
.search-fake:hover { border-color: var(--edge-strong); }
.server-hero { position: relative; height: 128px; margin: 8px 8px 4px; border-radius: 18px; background-size: cover; background-position: center; overflow: hidden; flex: none; }
.server-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--deep-rgb), 0) 35%, rgba(var(--deep-rgb), .78)); pointer-events: none; }
.server-hero-btn { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 12px; border-radius: 12px; background: rgba(10, 12, 24, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(var(--ink-rgb), .12); font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.server-hero-btn:hover { background: rgba(10, 12, 24, .65); }
.server-hero-stats { position: absolute; top: 10px; right: 10px; z-index: 1; display: flex; gap: 6px; }
.server-hero-stats span { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: rgba(var(--deep-rgb), .55); backdrop-filter: blur(8px); font-size: 12px; font-weight: 600; }
.hero-lock { color: var(--danger); }
.side-list { padding: 6px 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.side-section { display: flex; align-items: center; justify-content: space-between; padding: 14px 6px 4px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.side-row { position: relative; display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 12px; color: var(--muted); width: 100%; text-align: left; min-height: 38px; transition: background .15s, color .15s; }
.side-row:hover { background: var(--glass-hover); color: var(--text2); }
.side-row.active { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent-2) 6%, transparent)); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.side-row.unread { color: var(--text); font-weight: 600; }
.side-row.unread::after { content: ''; position: absolute; right: 10px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); transform: translateY(-50%); box-shadow: 0 0 8px var(--accent-2); }
.dm-row { min-height: 46px; }
.ch-row { padding: 0 4px 0 0; }
.ch-main { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; padding: 7px 4px 7px 10px; color: inherit; text-align: left; }
.ch-gear { opacity: 0; }
.ch-row:hover .ch-gear, .ch-row.active .ch-gear { opacity: 1; }
.ch-row.connected { color: var(--ok); }
.voice-users { padding: 2px 0 6px 30px; display: flex; flex-direction: column; gap: 2px; }
.voice-user { position: relative; display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 10px; color: var(--text2); font-size: 13.5px; text-align: left; }
.voice-user:hover { background: var(--glass-hover); }
.voice-user > .ic { color: var(--danger); }
.sound-pop { position: absolute; right: 8px; font-size: 18px; animation: pop-up 1.6s ease-out forwards; pointer-events: none; }
@keyframes pop-up { from { transform: translateY(6px) scale(.6); opacity: 0; } 20% { transform: translateY(-4px) scale(1.2); opacity: 1; } to { transform: translateY(-18px) scale(1); opacity: 0; } }

.voicebar { display: flex; align-items: center; gap: 4px; margin: 0 8px 8px; padding: 10px 8px 10px 14px; border-radius: 16px; background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .22); }
.vb-info { flex: 1; min-width: 0; }
.vb-status { color: var(--ok); font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 7px; }
.vb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: breathe 2s infinite; }
.vb-where { font-size: 12.5px; color: var(--muted); display: block; max-width: 100%; text-align: left; }
.vb-where:hover { color: var(--text2); text-decoration: underline; }

.userpanel { display: flex; align-items: center; gap: 2px; margin: 0 8px 8px; padding: 8px; border-radius: 18px; background: rgba(var(--well-rgb), calc(.25 * var(--well-k))); border: 1px solid var(--edge); }
.up-me { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; padding: 3px; border-radius: 12px; text-align: left; }
.up-me:hover { background: var(--glass-hover); }
.up-names { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.up-name { font-weight: 600; font-size: 14px; }
.up-sub { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------ Hauptbereich */
.main { display: flex; flex-direction: column; min-width: 0; position: relative; overflow: hidden; }
.main.dragging::after { content: ''; position: absolute; inset: 12px; border: 2px dashed var(--accent); border-radius: 20px; background: color-mix(in srgb, var(--accent) 8%, transparent); pointer-events: none; }
.main-head { height: 58px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--edge); flex: none; color: var(--muted); }
.main-head h3 { color: var(--text); margin: 0; font-size: 16px; }
.main-head .topic { color: var(--muted); font-size: 13.5px; padding-left: 12px; border-left: 1px solid var(--edge-strong); }

.home-view { flex: 1; overflow-y: auto; display: flex; align-items: center; justify-content: center; padding: 30px 20px; }
.home-hero { max-width: 720px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.home-hero .logo { filter: drop-shadow(0 0 24px color-mix(in srgb, var(--accent) 50%, transparent)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.home-hero h1 { font-size: 34px; margin-top: 12px; background: linear-gradient(90deg, #fff, #c4b5fd 60%, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; margin: 22px 0; }
.home-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 20px; border-radius: 20px; background: var(--glass-soft); border: 1px solid var(--edge); transition: transform .2s, border-color .2s, background .2s; }
.home-card .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--c-violet-c4b5fd); margin-bottom: 4px; }
.home-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--glass-hover); }
.empty-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); padding: 30px; }
.empty-state.small { flex: none; padding: 28px; border: 1px dashed var(--edge-strong); border-radius: var(--r-lg); margin-top: 14px; }

/* Nachrichten als Glas-Blasen – eigene werden rechts angezeigt */
.messages { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 0 14px; min-height: 0; overscroll-behavior: contain; }
.chan-intro { padding: 34px 22px 14px; }
.chan-intro h2 { font-size: 30px; margin-top: 14px; }
.chan-intro-icon { width: 70px; height: 70px; border-radius: 22px; background: var(--accent-soft); color: var(--c-violet-c4b5fd); display: flex; align-items: center; justify-content: center; }
.load-more { text-align: center; padding: 16px; }
.day-sep { display: flex; justify-content: center; margin: 20px 16px 8px; }
.day-sep span { padding: 3px 12px; border-radius: 999px; background: var(--glass-soft); border: 1px solid var(--edge); color: var(--muted); font-size: 12px; font-weight: 600; }

.msg { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 2px 70px 2px 70px; margin-top: 14px; min-height: 44px; }
.msg.grouped { margin-top: 3px; min-height: 0; }
.msg.mine { align-items: flex-end; }
.msg.mentioned .msg-body { box-shadow: inset 3px 0 0 var(--warn); background: rgba(251, 191, 36, .1); }
.msg.flash .msg-body { animation: flash 1.5s; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 2px var(--accent), 0 0 24px color-mix(in srgb, var(--accent) 60%, transparent); } }
.msg-avatar { position: absolute; left: 18px; top: 2px; border-radius: 50%; }
.msg.mine .msg-avatar { left: auto; right: 18px; }
.msg.grouped .msg-avatar { display: none; }
.msg-reply + .msg-avatar { top: 24px; }
.msg-head { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; padding: 0 6px 3px; }
.msg.mine .msg-head { flex-direction: row-reverse; }
.msg-author { font-weight: 600; color: var(--text); font-size: 14px; }
.msg-author:hover { text-decoration: underline; }
.msg-time { font-size: 11.5px; color: var(--muted); }
.msg-time-side { position: absolute; left: 18px; width: 40px; text-align: right; top: 10px; font-size: 10.5px; color: var(--muted); opacity: 0; }
.msg.mine .msg-time-side { left: auto; right: 18px; text-align: left; }
.msg:hover .msg-time-side { opacity: 1; }
.msg-body { max-width: min(680px, 100%); padding: 8px 14px; border-radius: 6px 18px 18px 18px; background: rgba(var(--ink-rgb), .055); border: 1px solid var(--edge); }
.msg.grouped .msg-body { border-radius: 18px; }
.msg.mine .msg-body { border-radius: 18px 6px 18px 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 28%, transparent), color-mix(in srgb, color-mix(in srgb, var(--accent) 50%, var(--accent-2)) 18%, transparent)); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.msg.mine.grouped .msg-body { border-radius: 18px; }
.msg-body:not(:has(.msg-text)):not(:has(.edit-input)), .msg-body:has(.jumbo) { background: none; border-color: transparent; padding: 2px 0; }
.msg-text { color: var(--text2); word-wrap: break-word; overflow-wrap: anywhere; }
.msg.mine .msg-text { color: var(--mine-text); }
.msg-text strong { color: var(--text); }
.msg-text .mention { background: var(--accent-soft); color: var(--c-indigo-d4c9ff); padding: 0 4px; border-radius: 6px; font-weight: 500; }
.msg-text .mention.me { background: rgba(251, 191, 36, .2); color: var(--c-amber-ffdd8f); }
.msg-text.jumbo { font-size: 2.6em; line-height: 1.15; }
.msg-text.jumbo .emoji-img { width: 1.4em; height: 1.4em; }
.emoji-img { width: 1.375em; height: 1.375em; vertical-align: -.35em; object-fit: contain; }
.spoiler { background: rgba(0, 0, 0, .55); color: transparent; border-radius: 5px; cursor: pointer; padding: 0 3px; transition: color .15s; }
.spoiler.revealed { color: inherit; background: rgba(var(--ink-rgb), .08); }
.edited { font-size: 11px; color: var(--muted); }
.msg-reply { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin: 0 6px 3px; max-width: 100%; text-align: left; }
.msg-reply strong { color: var(--text2); font-weight: 600; flex: none; }
.msg-reply:hover span { color: var(--text2); }
.msg-actions { position: absolute; right: 70px; top: -16px; display: none; background: var(--glass-strong); backdrop-filter: var(--blur); border: 1px solid var(--edge-strong); border-radius: 12px; padding: 2px; gap: 1px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); z-index: 3; }
.msg.mine .msg-actions { right: auto; left: 70px; }
.msg:hover .msg-actions, .msg:focus-within .msg-actions { display: flex; }
.edit-input { margin: 4px 0; resize: none; min-width: min(420px, 60vw); }
.sticker { width: 160px; height: 160px; object-fit: contain; display: block; filter: drop-shadow(0 6px 16px rgba(0,0,0,.4)); }
.sticker-gone { padding: 8px; }
.reactions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.reaction { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(var(--well-rgb), calc(.25 * var(--well-k))); border: 1px solid var(--edge-strong); font-size: 14px; transition: transform .12s, background .15s; }
.reaction:hover { background: var(--glass-hover); transform: translateY(-1px); }
.reaction.me { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.reaction .rc { font-size: 12px; font-weight: 700; color: var(--text2); }
.reaction .emoji-img { width: 18px; height: 18px; vertical-align: 0; }
.reaction.add { color: var(--muted); padding: 3px 7px; opacity: 0; }
.msg:hover .reaction.add { opacity: 1; }
.role-icon { width: 16px; height: 16px; object-fit: contain; vertical-align: -3px; }
.role-icon.emoji { font-size: 14px; width: auto; height: auto; }

.att-img { display: inline-block; margin-top: 6px; max-width: min(420px, 100%); }
.att-img img { max-width: 100%; max-height: 360px; border-radius: 14px; display: block; }
.att-video { margin-top: 6px; max-width: min(480px, 100%); max-height: 360px; border-radius: 14px; background: #000; }
.att-audio { margin-top: 6px; width: min(420px, 100%); }
.att-file { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 14px; background: rgba(var(--well-rgb), calc(.25 * var(--well-k))); border: 1px solid var(--edge-strong); border-radius: 14px; max-width: min(420px, 100%); color: var(--text); }
.att-file:hover { border-color: var(--accent); text-decoration: none; }
.att-file .ic { color: var(--accent-2); }
.att-meta { display: flex; flex-direction: column; min-width: 0; }

.typing { height: 22px; padding: 0 22px; font-size: 12.5px; color: var(--text2); display: flex; align-items: center; gap: 6px; flex: none; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); animation: dot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.composer-wrap { padding: 0 16px 16px; flex: none; }
.composer { display: flex; align-items: flex-end; gap: 2px; background: rgba(var(--well-rgb), calc(.3 * var(--well-k))); border: 1px solid var(--edge-strong); border-radius: 22px; padding: 6px 6px 6px 8px; transition: border-color .2s, box-shadow .2s; }
.composer:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent), 0 10px 30px rgba(0,0,0,.25); }
.composer.disabled { color: var(--muted); padding: 14px 18px; gap: 8px; align-items: center; font-size: 14px; }
.composer-input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font: inherit; resize: none; padding: 8px 6px; max-height: 240px; line-height: 1.45; }
.composer-input::placeholder { color: var(--muted); }
.composer-bar { display: flex; align-items: center; gap: 8px; background: var(--glass-soft); border: 1px solid var(--edge); padding: 7px 12px; border-radius: 14px; font-size: 13px; color: var(--text2); margin-bottom: 6px; }
.composer-bar > .ellipsis { flex: 1; }
.pending-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }

/* Mitglieder / Profil-Panel */
.members { overflow-y: auto; padding: 8px 8px 20px; min-width: 0; }
.mem-section { display: flex; align-items: center; gap: 6px; padding: 16px 10px 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.mem-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.mem-row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 14px; width: 100%; text-align: left; color: var(--text2); transition: background .15s; }
.mem-row:hover { background: var(--glass-hover); }
.mem-row.offline { opacity: .45; }
.mem-row.offline:hover { opacity: .85; }
.mem-name { flex: 1; min-width: 0; }
.members > .pcard { margin: 0; border-radius: 18px; }

/* ------------------------------------------------------------ Profilkarten */
.pcard { --p1: var(--accent); --p2: #22d3ee; position: relative; overflow: hidden; border-radius: 22px; background: linear-gradient(170deg, color-mix(in srgb, var(--p1) 30%, #0b0d1a) 0%, color-mix(in srgb, var(--p2) 18%, #0b0d1a) 100%); border: 1px solid color-mix(in srgb, var(--p1) 35%, transparent); }
.pcard-banner { height: 120px; background: linear-gradient(135deg, var(--p1), var(--p2)); background-size: cover; background-position: center; }
.pcard-panel .pcard-banner { height: 100px; }
.pcard-head { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; padding: 0 16px; margin-top: -50px; }
.pcard-avatar { border-radius: 50%; padding: 5px; background: color-mix(in srgb, var(--p1) 30%, #0b0d1a); display: inline-flex; }
.pcard-avatar .status-dot { border-color: color-mix(in srgb, var(--p1) 30%, #0b0d1a); }
.badge-row { display: flex; flex-wrap: wrap; gap: 3px; padding: 4px 7px; border-radius: 12px; background: rgba(var(--deep-rgb), .55); backdrop-filter: blur(8px); border: 1px solid var(--edge); margin-bottom: 6px; }
.badge-ic { display: inline-flex; cursor: help; transition: transform .15s; }
.badge-ic:hover { transform: scale(1.18); }
.pcard-body { position: relative; z-index: 2; margin: 10px 12px 12px; padding: 14px 16px; border-radius: 16px; background: rgba(var(--deep-rgb), .5); backdrop-filter: blur(10px); border: 1px solid var(--edge); }
.pcard-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.2; }
.pcard-sub { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 13.5px; }
.dot-sep::before { content: '•'; margin-right: 6px; }
.pcard-sec { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--edge); }
.pcard-sec .msg-text { font-size: 14px; }
.pcard-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.pcard-full { margin-top: 12px; }
.note-input { width: 100%; background: transparent; border: 1px dashed transparent; color: var(--text2); font: inherit; font-size: 13px; resize: none; padding: 4px 6px; border-radius: 8px; outline: none; }
.note-input:hover, .note-input:focus { border-color: var(--edge-strong); background: rgba(var(--well-rgb), calc(.2 * var(--well-k))); }
.mutual { display: flex; gap: 6px; flex-wrap: wrap; }
.mutual-item { border-radius: 50%; overflow: hidden; display: inline-flex; transition: transform .15s; }
.mutual-item:hover { transform: scale(1.1); }
.pfull { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 14px; align-items: start; }
.pfull-side { padding: 18px; max-height: 70vh; overflow-y: auto; background: var(--glass-strong); backdrop-filter: var(--blur); }
.modal-profile { max-width: 420px; background: transparent !important; border: 0 !important; box-shadow: none !important; overflow: visible !important; backdrop-filter: none !important; }
.modal-profile.wide { max-width: 920px; }
.profile-modal { position: relative; }
.modal-x { position: absolute; top: 10px; right: 10px; z-index: 5; background: rgba(var(--deep-rgb), .55); backdrop-filter: blur(8px); border-radius: 50%; }

/* Showcase */
.showcase { display: flex; flex-direction: column; gap: 14px; }
.showcase.compact { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--edge); gap: 10px; }
.show-board { display: flex; flex-direction: column; gap: 8px; }
.show-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.show-ic { font-size: 16px; }
.show-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.showcase.compact .show-items { display: flex; gap: 6px; align-items: center; }
.show-item { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.show-item img, .show-ph { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: linear-gradient(145deg, color-mix(in srgb, var(--p1, var(--accent)) 45%, #111), color-mix(in srgb, var(--p2, #22d3ee) 35%, #111)); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; border: 1px solid var(--edge); }
.showcase.compact .show-item { width: 42px; }
.showcase.compact .show-item img, .showcase.compact .show-ph { border-radius: 9px; font-size: 12px; }
.show-title { font-size: 12.5px; color: var(--text2); }
.show-more { font-size: 12px; color: var(--muted); font-weight: 700; }

/* Profil-Effekte (über dem Banner) */
.profile-fx { position: absolute; inset: 0; height: 180px; pointer-events: none; overflow: hidden; z-index: 1; }
.profile-fx i { position: absolute; display: block; }
.fx-stars i { top: calc(var(--i) * 6.5%); width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; animation: twinkle 2.6s ease-in-out infinite; }
.fx-snow i { top: -10px; width: 5px; height: 5px; border-radius: 50%; background: rgba(var(--ink-rgb), .9); animation: fall 6s linear infinite; }
.fx-bubbles i { bottom: -20px; top: auto; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(var(--ink-rgb), .7); background: rgba(var(--ink-rgb), .08); animation: rise 5.5s ease-in infinite; }
.fx-sparks i { top: calc(30% + var(--i) * 4%); width: 4px; height: 4px; background: #fde68a; transform: rotate(45deg); box-shadow: 0 0 8px #fbbf24; animation: spark 1.8s ease-in-out infinite; }
.fx-meteors i { top: calc(var(--i) * 4% - 20%); width: 90px; height: 2px; background: linear-gradient(90deg, rgba(var(--ink-rgb), 0), #fff); transform: rotate(-30deg); animation: meteor 3.2s linear infinite; opacity: 0; }
.fx-aurora { background: linear-gradient(115deg, transparent 20%, color-mix(in srgb, var(--p1) 70%, transparent) 40%, transparent 55%, color-mix(in srgb, var(--p2) 70%, transparent) 70%, transparent 85%); background-size: 300% 100%; mix-blend-mode: screen; opacity: .65; animation: aurora 8s ease-in-out infinite; }
.fx-aurora i { display: none; }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes fall { to { transform: translate(20px, 200px); opacity: .2; } }
@keyframes rise { to { transform: translateY(-220px) scale(1.3); opacity: 0; } }
@keyframes spark { 0%, 100% { opacity: 0; transform: rotate(45deg) scale(.3); } 50% { opacity: 1; transform: rotate(45deg) scale(1.3); } }
@keyframes meteor { 0% { opacity: 0; transform: rotate(-30deg) translateX(0); } 10% { opacity: 1; } 60%, 100% { opacity: 0; transform: rotate(-30deg) translateX(-320px); } }
@keyframes aurora { 50% { background-position: 100% 0; } }

/* ------------------------------------------------------------ Popover, Picker, Soundboard */
.popmenu { position: fixed; z-index: 200; min-width: 210px; background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--edge-strong); border-radius: 16px; padding: 6px; box-shadow: var(--shadow); animation: pop .12s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(4px); } }
.popmenu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 10px; text-align: left; font-size: 14px; color: var(--text2); }
.popmenu-item:hover { background: var(--grad); color: #fff; }
.popmenu-item.danger { color: var(--danger); }
.popmenu-item.danger:hover { background: var(--danger); color: #fff; }
.popmenu-sep { height: 1px; background: var(--edge-strong); margin: 4px 6px; }

.picker { position: fixed; z-index: 220; display: flex; flex-direction: column; border-radius: 20px; padding: 10px; background: var(--glass-strong); animation: pop .14s ease-out; }
.picker-tabs { display: flex; gap: 4px; padding: 3px; background: rgba(var(--well-rgb), calc(.3 * var(--well-k))); border-radius: 12px; margin-bottom: 8px; }
.picker-tab { flex: 1; padding: 7px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.picker-tab.active { background: var(--glass-active); color: var(--text); }
.picker-search { margin-bottom: 8px; border-radius: 999px; padding: 8px 14px; }
.picker-body { overflow-y: auto; min-height: 120px; flex: 1; }
.picker-section { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 4px 4px; }
.picker-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.picker-item { font-size: 24px; aspect-ratio: 1; border-radius: 10px; display: flex; align-items: center; justify-content: center; transition: background .1s, transform .1s; }
.picker-item:hover { background: var(--glass-hover); transform: scale(1.15); }
.picker-item img { width: 30px; height: 30px; object-fit: contain; }
.sticker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sticker-item { aspect-ratio: 1; border-radius: 14px; padding: 6px; transition: background .15s; }
.sticker-item:hover { background: var(--glass-hover); }
.sticker-item img { width: 100%; height: 100%; object-fit: contain; }

.soundboard { width: 300px; padding: 12px; }
.sb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sb-vol { display: flex; align-items: center; gap: 6px; width: 120px; color: var(--muted); }
.sb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; max-height: 300px; overflow-y: auto; }
.sb-btn { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; background: var(--glass-soft); border: 1px solid var(--edge); font-size: 13px; text-align: left; transition: transform .1s, background .15s; }
.sb-btn:hover { background: var(--glass-active); }
.sb-btn:active { transform: scale(.95); }
.sb-emoji { font-size: 18px; }

/* ------------------------------------------------------------ Modals & Einstellungen */
.modal-backdrop { position: fixed; inset: 0; background: rgba(3, 4, 10, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .16s ease-out; }
.modal-backdrop.out { opacity: 0; transition: opacity .14s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--edge-strong); border-radius: var(--r-xl); width: 100%; max-width: 490px; max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: var(--shadow); animation: rise .2s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes rise { from { transform: translateY(14px) scale(.97); opacity: 0; } }
.modal-wide { max-width: 940px; }
.modal-full { max-width: 1140px; height: min(800px, calc(100dvh - 32px)); overflow: hidden; }
.modal-body { padding: 24px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.modal-head h2 { margin: 0 0 4px; }
.modal-head p { margin: 0; font-size: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.modal-actions.left { justify-content: flex-start; }
.modal-actions.sticky { position: sticky; bottom: -34px; padding: 14px 0 48px; margin-bottom: -34px; z-index: 5; isolation: isolate; }
.modal-actions.sticky::after { content: ''; position: absolute; inset: 0 -34px; background: color-mix(in srgb, rgb(var(--panel-rgb)) 96%, var(--text)); border-top: 1px solid rgba(var(--ink-rgb), .07); z-index: -1; }
.modal-actions.sticky::before { content: ''; position: absolute; left: -34px; right: -34px; top: -26px; height: 26px; background: linear-gradient(180deg, transparent, color-mix(in srgb, rgb(var(--panel-rgb)) 96%, var(--text))); pointer-events: none; z-index: -1; }
.confirm h2 { margin-bottom: 8px; }
.rules { padding-left: 20px; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; color: var(--text2); }

.settings { display: flex; height: 100%; }
.settings-nav { width: 236px; flex: none; background: rgba(var(--well-rgb), calc(.22 * var(--well-k))); padding: 22px 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--edge); }
.settings-nav-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text); padding: 4px 10px 12px; display: flex; align-items: center; gap: 6px; }
.settings-group { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); padding: 14px 10px 4px; }
.settings-tab { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 11px; color: var(--text2); text-align: left; font-size: 14.5px; transition: background .15s; }
.settings-tab:hover { background: var(--glass-hover); color: var(--text); }
.settings-tab.active { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 25%, transparent), color-mix(in srgb, var(--accent-2) 8%, transparent)); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.settings-tab.danger { color: var(--danger); }
.settings-tab.danger:hover { background: var(--danger-soft); }
.settings-sep { height: 1px; background: var(--edge-strong); margin: 10px; }
.settings-main { flex: 1; min-width: 0; position: relative; overflow-y: auto; }
.settings-content { padding: 30px 34px 34px; max-width: 980px; }
.settings-close { position: absolute; top: 16px; right: 16px; z-index: 4; border: 1px solid var(--edge-strong); border-radius: 50%; background: rgba(var(--well-rgb), calc(.25 * var(--well-k))); }

.img-pick { position: relative; width: 100px; height: 100px; border-radius: 18px; background: rgba(var(--well-rgb), calc(.28 * var(--well-k))); border: 2px dashed var(--edge-strong); overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; text-align: center; transition: border-color .2s; }
.img-pick:hover { border-color: var(--accent); }
.img-pick.round { border-radius: 50%; }
.img-pick.wide { width: 100%; max-width: 380px; }
.img-field { align-items: flex-start; }
.img-field.round, .img-field.square { flex: none; }
.img-field.wide { flex: 1 1 180px; }
.img-field .linklike { align-self: flex-start; }
.img-pick img { width: 100%; height: 100%; object-fit: cover; }
.img-pick .muted { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.img-pick-hover { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; text-transform: uppercase; opacity: 0; transition: opacity .15s; }
.img-pick:hover .img-pick-hover { opacity: 1; }
.icon-upload { width: 96px; height: 96px; border-radius: 50%; border: 2px dashed var(--edge-strong); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; color: var(--muted); cursor: pointer; margin-bottom: 16px; overflow: hidden; }
.icon-upload img { width: 100%; height: 100%; object-fit: cover; }
.type-pick { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.type-opt { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 14px; background: var(--glass-soft); border: 1px solid var(--edge); text-align: left; }
.type-opt.active { border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: var(--glass-active); }

/* Server-Profil-Editor */
.sp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.sp-preview { position: sticky; top: 0; display: flex; flex-direction: column; gap: 8px; }
.banner-swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.swatch { height: 46px; border-radius: 12px; border: 2px solid transparent; transition: transform .15s; }
.swatch:hover { transform: translateY(-2px); }
.swatch.active { border-color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 50%, transparent); }
.traits-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.trait-input { display: flex; align-items: center; gap: 4px; background: rgba(var(--well-rgb), calc(.28 * var(--well-k))); border: 1px solid var(--edge-strong); border-radius: 12px; padding: 4px; }
.trait-input input { background: none; border: 0; color: var(--text); font: inherit; outline: none; min-width: 0; }
.trait-emoji { width: 34px; text-align: center; font-size: 16px; }
.trait-label { flex: 1; padding: 5px 4px; }
.vanity-row { display: flex; align-items: center; background: rgba(var(--well-rgb), calc(.28 * var(--well-k))); border: 1px solid var(--edge-strong); border-radius: var(--r-sm); overflow: hidden; }
.vanity-prefix { padding: 0 4px 0 12px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.vanity-input { border: 0 !important; box-shadow: none !important; background: transparent; padding-left: 2px; }
.spreview { position: relative; border-radius: 20px; overflow: hidden; background: rgba(var(--deep-rgb), .7); border: 1px solid var(--edge-strong); }
.spreview-banner { height: 110px; background-size: cover; background-position: center; }
.spreview-icon { position: absolute; top: 70px; left: 16px; border-radius: 22px; padding: 4px; background: rgba(var(--deep-rgb), .95); }
.spreview-icon img, .spreview-icon .server-icon-txt { border-radius: 18px; }
.spreview-body { padding: 42px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.spreview-body h3 { margin: 0; font-size: 18px; }
.spreview-stats { display: flex; gap: 14px; font-size: 13px; color: var(--text2); }
.spreview-stats span { display: inline-flex; align-items: center; }
.spreview-desc { margin: 4px 0 0; }
.trait-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.trait { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--glass-hover); border: 1px solid var(--edge); font-size: 12.5px; }

/* Vorteile */
.perks-hero { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--accent-2) 14%, transparent)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); margin-bottom: 18px; }
.perks-hero .ic { width: 56px; height: 56px; border-radius: 18px; background: var(--grad); color: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 45%, transparent); }
.perks-hero h2 { margin: 0 0 4px; }
.perks-hero p { margin: 0; }
.perk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.perk { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--glass-soft); border: 1px solid var(--edge); }
.perk-ic { font-size: 22px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(var(--well-rgb), calc(.25 * var(--well-k))); flex: none; }
.perk > div { flex: 1; min-width: 0; }
.perk-check { color: var(--ok); }

/* Emojis / Sticker / Sounds */
.expr-meter { height: 6px; border-radius: 6px; background: rgba(var(--ink-rgb), .08); overflow: hidden; margin: 14px 0 6px; }
.expr-meter-bar { height: 100%; background: var(--grad); border-radius: 6px; }
.expr-list { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.expr-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: var(--glass-soft); border: 1px solid var(--edge); }
.expr-emoji-img { width: 36px; height: 36px; object-fit: contain; }
.expr-sticker-img { width: 56px; height: 56px; object-fit: contain; }
.expr-name { max-width: 260px; padding: 7px 10px; }
.expr-emoji { width: 56px; text-align: center; padding: 7px; }

/* Profil-Editor */
.pe-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.pe-preview { position: sticky; top: 0; display: flex; flex-direction: column; gap: 8px; }
.pe-sec { padding: 18px; border-radius: 20px; background: var(--glass-soft); border: 1px solid var(--edge); margin-bottom: 14px; }
.pe-sec > h3 { margin: 0 0 4px; }
.pe-sec > p { margin-bottom: 12px; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 10px; border-radius: 16px; background: rgba(var(--well-rgb), calc(.22 * var(--well-k))); border: 1px solid var(--edge); font-size: 12px; color: var(--text2); transition: border-color .15s, background .15s; }
.tile:hover { background: var(--glass-hover); }
.tile.active { border-color: color-mix(in srgb, var(--accent) 80%, transparent); background: var(--glass-active); color: var(--text); }
.fx-mini { position: relative; width: 100%; height: 48px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--p1) 50%, #0b0d1a), color-mix(in srgb, var(--p2) 40%, #0b0d1a)); }
.fx-mini .profile-fx { height: 100%; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 7px 14px; border-radius: 999px; background: rgba(var(--well-rgb), calc(.25 * var(--well-k))); border: 1px solid var(--edge-strong); font-size: 13.5px; color: var(--text2); transition: background .15s, border-color .15s; }
.chip:hover { background: var(--glass-hover); }
.chip.active { background: var(--glass-active); border-color: color-mix(in srgb, var(--accent) 80%, transparent); color: var(--text); }
.show-edit { padding: 16px; margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.show-type { max-width: 220px; }
.show-edit-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.show-edit-item { display: flex; flex-direction: column; gap: 6px; position: relative; }
.show-edit-item .icon-btn { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.55); }
.show-edit-img { aspect-ratio: 3 / 4; border-radius: 14px; border: 2px dashed var(--edge-strong); display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; color: var(--muted); }
.show-edit-img img { width: 100%; height: 100%; object-fit: cover; }
.show-add { aspect-ratio: 3 / 4; border-radius: 14px; border: 2px dashed var(--edge-strong); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13px; }
.show-add:hover { border-color: var(--accent); color: var(--text); }

/* Rollen */
.roles-tab { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; }
.role-list { display: flex; flex-direction: column; gap: 2px; }
.role-list .btn { margin-bottom: 8px; }
.role-item, .ovr-role { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 11px; text-align: left; color: var(--text2); font-size: 14px; }
.role-item:hover, .ovr-role:hover { background: var(--glass-hover); }
.role-item.active, .ovr-role.active { background: var(--glass-active); color: var(--text); }
.role-item i, .ovr-role i, .role-chip i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.role-item .ellipsis { flex: 1; }
.role-icon-preview { width: 40px; height: 40px; border-radius: 12px; background: rgba(var(--well-rgb), calc(.3 * var(--well-k))); border: 1px solid var(--edge-strong); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--muted); }
.role-icon-preview img { width: 26px; height: 26px; object-fit: contain; }
.role-emoji-in { width: 70px; text-align: center; }
.perm-group { margin: 22px 0 6px; }
.perm-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--edge); cursor: pointer; }
.role-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.role-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--glass-hover); font-size: 12.5px; color: var(--text2); }
.role-chip.add { border: 1px dashed var(--edge-strong); background: none; }
.role-chip.add:hover { color: var(--text); border-color: var(--accent); }
.chip-x { display: inline-flex; color: var(--muted); }
.chip-x:hover { color: var(--danger); }
.ovr { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; margin-top: 14px; }
.ovr-roles { display: flex; flex-direction: column; gap: 2px; }
.ovr-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--edge); }
.tri { display: flex; border: 1px solid var(--edge-strong); border-radius: 12px; overflow: hidden; flex: none; }
.tri.disabled { opacity: .5; pointer-events: none; }
.tri-btn { width: 36px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 700; }
.tri-btn + .tri-btn { border-left: 1px solid var(--edge-strong); }
.tri-btn.deny.on { background: var(--danger); color: #fff; }
.tri-btn.inherit.on { background: var(--glass-active); color: var(--text); }
.tri-btn.allow.on { background: var(--ok); color: #062014; }

/* Tabellen */
.mem-table { display: flex; flex-direction: column; margin-top: 12px; gap: 6px; }
.mem-trow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--glass-soft); border: 1px solid var(--edge); flex-wrap: wrap; }
.mem-trow.is-banned { opacity: .7; }
.mem-trow .role-chips { max-width: 260px; }
.mem-trow .badge-row { display: inline-flex; margin: 0 0 0 6px; padding: 2px 5px; vertical-align: middle; }

.account-card { display: flex; align-items: center; gap: 16px; background: var(--glass-soft); border: 1px solid var(--edge); padding: 18px; border-radius: 20px; margin-bottom: 24px; }
.account-card h3 { margin: 0; }
.lang-list { display: flex; flex-direction: column; gap: 8px; max-width: 400px; }
.lang-opt { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 16px; background: var(--glass-soft); border: 1px solid var(--edge); text-align: left; }
.lang-opt .flag { font-size: 20px; }
.lang-opt span:nth-child(2) { flex: 1; }
.lang-opt.active { border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: var(--glass-active); }

/* Entdecken & Einladungen */
.discover-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 16px; }
.disc-card { position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: rgba(var(--deep-rgb), .6); border: 1px solid var(--edge); transition: transform .2s, border-color .2s; }
.disc-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.disc-banner { height: 90px; background-size: cover; background-position: center; }
.disc-icon { position: absolute; top: 58px; left: 14px; border-radius: 18px; padding: 4px; background: rgba(var(--deep-rgb), .95); }
.disc-icon img, .disc-icon .server-icon-txt { border-radius: 14px; }
.disc-body { padding: 36px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.disc-body h3 { margin-bottom: 4px; }
.disc-body p { flex: 1; }
.disc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.user-results { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; max-height: 360px; overflow-y: auto; }
.user-result { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; text-align: left; }
.user-result:hover { background: var(--glass-hover); }
.invite-card { display: flex; flex-direction: column; gap: 14px; }
.invite-out { min-height: 46px; margin-bottom: 8px; }
.copy-row { display: flex; gap: 8px; }

/* Admin */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.stat { background: var(--glass-soft); border: 1px solid var(--edge); border-radius: 18px; padding: 18px; }
.stat-val { font-family: var(--font-display); font-size: 30px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.seg { display: inline-flex; background: rgba(var(--well-rgb), calc(.3 * var(--well-k))); padding: 3px; border-radius: 12px; }
.seg-btn { padding: 6px 14px; border-radius: 9px; font-size: 13px; color: var(--muted); }
.seg-btn.active { background: var(--glass-active); color: var(--text); }
.report-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.report-card { background: var(--glass-soft); border: 1px solid var(--edge); border-left: 4px solid var(--muted); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.report-card.cat-raid, .report-card.cat-hate, .report-card.cat-nsfw, .report-card.cat-threat { border-left-color: var(--danger); }
.report-card.cat-harassment, .report-card.cat-scam { border-left-color: var(--warn); }
.report-card.cat-spam { border-left-color: var(--accent-2); }
.report-card.cat-child_safety { border-left-color: #ff3b5c; background: linear-gradient(90deg, rgba(255, 59, 92, .1), transparent 40%), var(--glass-soft); }
.cat-pill { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--glass-hover); }
.report-reason { margin: 0; color: var(--text2); font-style: italic; }
.report-preview { background: rgba(var(--well-rgb), calc(.3 * var(--well-k))); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.report-preview.row { flex-direction: row; }
.report-actions { padding-top: 4px; }
.automod-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--c-violet-c4b5fd); }

/* Sicherheit */
.mfa-step { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: var(--r); padding: 12px 12px 0; margin-bottom: 10px; }
.mfa-icon { color: var(--c-violet-c4b5fd); padding-top: 22px; }
.code-input { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 20px; letter-spacing: .2em; text-align: center; }
.safety-box { background: var(--glass-soft); border: 1px solid var(--edge); border-radius: 20px; padding: 18px 20px; margin: 18px 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.safety-box.danger { border-color: rgba(255, 92, 122, .45); background: linear-gradient(0deg, var(--danger-soft), var(--danger-soft)), var(--glass-soft); }
.safety-box.ok { border-color: rgba(52, 211, 153, .4); }
.safety-head { display: flex; align-items: center; gap: 10px; width: 100%; }
.safety-head h3 { margin: 0; }
.safety-head .badge-pill { margin-left: auto; }
.safety-box.ok .safety-head .ic { color: var(--ok); }
.safety-status { color: var(--c-rose-ffa3b3); font-weight: 600; margin: 0; }
.tips { margin: 0; padding-left: 18px; color: var(--text2); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.setup-steps { padding-left: 20px; display: flex; flex-direction: column; gap: 16px; color: var(--text2); }
.setup-steps li > .input { margin-top: 8px; }
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 10px; padding: 14px; background: rgba(var(--well-rgb), calc(.25 * var(--well-k))); border-radius: var(--r-lg); }
.qr { background: #fff; border-radius: 12px; padding: 6px; image-rendering: pixelated; }
.secret { font-size: 15px; letter-spacing: .08em; padding: 6px 10px; user-select: all; word-break: break-all; text-align: center; }
.backup-box { display: flex; flex-direction: column; gap: 10px; }
.backup-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.backup-grid code { font-size: 15px; text-align: center; padding: 9px; background: rgba(var(--well-rgb), calc(.35 * var(--well-k))); border: 1px solid var(--edge); border-radius: 10px; user-select: all; }

/* ------------------------------------------------------------ Toasts */
#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--glass-strong); backdrop-filter: var(--blur); border: 1px solid var(--edge-strong); padding: 11px 18px; border-radius: 999px; box-shadow: var(--shadow); font-size: 14px; animation: rise .2s; max-width: min(92vw, 520px); }
.toast-error { border-color: rgba(255, 92, 122, .5); color: var(--c-rose-ffb8c4); }
.toast-ok { border-color: rgba(52, 211, 153, .45); color: var(--c-mint-a7f3d0); }
.toast.out { opacity: 0; transform: translateY(6px); transition: all .35s; }

/* ------------------------------------------------------------ Responsiv */
@media (max-width: 1180px) {
  .shell, .shell.no-members { grid-template-columns: 74px 252px minmax(0, 1fr); }
  .members { display: none; }
  .pe-layout, .sp-layout { grid-template-columns: 1fr; }
  .pe-preview, .sp-preview { position: static; max-width: 380px; }
  .pfull { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .mobile-only { display: inline-flex !important; }
  .shell, .shell.no-members { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
  .main { border-radius: 0; border: 0; grid-column: 1; }
  .rail, .sidebar { position: fixed; top: 8px; bottom: 8px; z-index: 40; transform: translateX(-110vw); visibility: hidden; transition: transform .24s ease, visibility .24s; }
  .rail { left: 8px; width: 70px; }
  .rail-item { width: 70px; }
  .sidebar { left: 84px; width: min(290px, calc(100vw - 92px)); }
  .shell.nav-open .rail, .shell.nav-open .sidebar { transform: none; visibility: visible; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 30; transition: opacity .22s; }
  .shell.nav-open .nav-scrim, .shell.members-open .nav-scrim { display: block; }
  .members, .shell.no-members .members { display: block; position: fixed; top: 8px; bottom: 8px; right: 8px; width: min(320px, calc(100vw - 40px)); z-index: 40; transform: translateX(110%); visibility: hidden; transition: transform .24s ease, visibility .24s; padding-top: max(8px, env(safe-area-inset-top)); }
  .shell.members-open .members { transform: none; visibility: visible; }
  .shell.swiping { user-select: none; }
  .rail, .sidebar { touch-action: pan-y; }
  .main-head .topic { display: none; }
  .msg { padding-left: 58px; padding-right: 14px; }
  .msg.mine { padding-left: 14px; padding-right: 58px; }
  .msg-avatar { left: 10px; }
  .msg.mine .msg-avatar { right: 10px; }
  .msg-actions { right: 10px; }
  .msg.mine .msg-actions { left: 10px; }
  .composer-wrap { padding: 0 8px 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .home-actions { grid-template-columns: 1fr; }
  .settings { flex-direction: column; }
  .settings-nav { width: 100%; flex-direction: row; overflow-x: auto; padding: 10px; gap: 4px; flex: none; border-right: 0; border-bottom: 1px solid var(--edge); }
  .settings-nav-title, .settings-sep, .settings-group { display: none; }
  .settings-tab { white-space: nowrap; }
  .settings-content { padding: 20px 16px; }
  .settings-close { top: 8px; right: 8px; }
  .modal-full { height: calc(100dvh - 32px); }
  .roles-tab, .ovr { grid-template-columns: 1fr; }
  .role-list, .ovr-roles { flex-direction: row; overflow-x: auto; }
  .role-list .btn { margin: 0; width: auto; }
  .img-pick.wide { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Ping-Benachrichtigungen */
.set-sub { margin: 26px 0 12px; font-size: 15px; font-family: 'Space Grotesk', Inter, sans-serif; }
.badge.ping { animation: ping-pop .35s cubic-bezier(.3, 1.7, .5, 1); box-shadow: 0 0 12px rgba(244, 63, 94, .55); }
@keyframes ping-pop { from { transform: scale(.3); } to { transform: scale(1); } }
.push-box { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 16px; border-radius: 16px; background: var(--glass-soft); border: 1px solid var(--edge); }
.push-box strong { display: block; font-size: 14px; margin-bottom: 2px; }
.push-ic { width: 40px; height: 40px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--glass-hover); color: var(--text2); flex: none; }
.push-ic.on { background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 35%, transparent), color-mix(in srgb, var(--accent-2) 25%, transparent)); color: #fff; box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent); }

/* Eigene Sounds */
.snd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 6px 0 4px; }
.snd-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 12px 10px; border-radius: 16px; background: var(--glass-soft); border: 1px solid var(--edge); text-align: left; overflow: hidden; color: var(--text); transition: transform .15s, border-color .2s, background .2s; min-height: 78px; }
.snd-tile:hover { transform: translateY(-2px); border-color: var(--edge-strong); background: var(--glass-hover); }
.snd-tile.active { border-color: transparent; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 28%, transparent), color-mix(in srgb, var(--accent-2) 14%, transparent)); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 90%, transparent), 0 8px 26px color-mix(in srgb, var(--accent) 25%, transparent); }
.snd-ic { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(var(--ink-rgb), .06); color: var(--text2); }
.snd-tile.active .snd-ic { background: linear-gradient(145deg, var(--accent), var(--accent-2)); color: #fff; }
.snd-name { font-size: 13px; font-weight: 600; }
.snd-sub { font-size: 11px; color: var(--muted); line-height: 1.3; }
.snd-tile.upload { border-style: dashed; border-color: color-mix(in srgb, var(--accent-2) 35%, transparent); }
.snd-tile.upload .snd-ic { color: var(--accent-2); }
.snd-wave { position: absolute; right: 10px; top: 14px; display: flex; gap: 2px; align-items: flex-end; height: 16px; opacity: .35; }
.snd-wave i { width: 3px; border-radius: 2px; background: currentColor; }
.snd-wave i:nth-child(1) { height: 6px; } .snd-wave i:nth-child(2) { height: 12px; } .snd-wave i:nth-child(3) { height: 16px; } .snd-wave i:nth-child(4) { height: 9px; } .snd-wave i:nth-child(5) { height: 5px; }
.snd-tile.active .snd-wave { opacity: 1; color: var(--accent-2); }
.snd-tile.active .snd-wave i { animation: snd-eq .9s ease-in-out infinite; animation-delay: calc(var(--i) * -.18s); }
@keyframes snd-eq { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
.snd-tile .snd-wave i { transform-origin: bottom; }
.modal.modal-snd { max-width: 600px; }
.snd-modal { position: relative; padding: 26px; }
.snd-modal-head { margin-bottom: 18px; padding-right: 36px; }
.snd-modal-head h2 { margin: 0 0 2px; font-size: 18px; }
.snd-row-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px; background: rgba(var(--ink-rgb), .04); border: 1px solid var(--edge); color: var(--text); font-size: 13px; text-align: left; transition: background .15s, border-color .15s; }
.snd-row-btn:hover { background: var(--glass-hover); border-color: var(--edge-strong); }

/* Twemoji – überall gleich aussehende Emojis */
img.tw { width: 1.3em; height: 1.3em; vertical-align: -0.28em; margin: 0 .04em; display: inline-block; pointer-events: none; }
.msg-text.jumbo img.tw { width: 1.35em; height: 1.35em; vertical-align: -0.2em; }
.picker-item img.tw { width: 26px; height: 26px; margin: 0; vertical-align: middle; }
.reaction img.tw { width: 18px; height: 18px; vertical-align: -3px; margin: 0; }
.pe-form .modal-actions.sticky::after, .pe-form .modal-actions.sticky::before, .sp-form .modal-actions.sticky::after, .sp-form .modal-actions.sticky::before { right: 0; }

/* =====================================================================
   Chat 2.0 – Blasen, Antworten, GIFs
   ===================================================================== */
.messages { --mine1: var(--accent); --mine2: color-mix(in srgb, var(--accent) 45%, var(--accent-2)); }
.msg { padding: 1px 72px; margin-top: 16px; }
.msg.grouped { margin-top: 2px; }
.msg.has-reply { margin-top: 20px; }
.msg-head { padding: 0 10px 4px; gap: 8px; align-items: center; }
.msg-author { font-size: 13.5px; font-weight: 700; letter-spacing: .01em; }
.msg-time { font-size: 11px; color: var(--muted); opacity: .8; }

/* Blasen */
.msg-body {
  position: relative; max-width: min(640px, 100%); padding: 9px 15px 10px; font-size: 14.5px; line-height: 1.5;
  background: linear-gradient(180deg, rgba(var(--ink-rgb), .085), rgba(var(--ink-rgb), .05));
  border: 1px solid rgba(var(--ink-rgb), .075);
  box-shadow: inset 0 1px 0 rgba(var(--ink-rgb), .06), 0 6px 22px -10px rgba(0, 0, 0, .55);
  border-radius: 22px; transition: transform .18s cubic-bezier(.3, 1.5, .5, 1), box-shadow .2s;
}
.msg:hover .msg-body { box-shadow: inset 0 1px 0 rgba(var(--ink-rgb), .08), 0 10px 28px -12px rgba(0, 0, 0, .7); }
/* zusammenhängende Blasen: Ecken zur Autor-Seite werden klein */
.msg.pos-single .msg-body, .msg.pos-first .msg-body { border-top-left-radius: 8px; }
.msg.pos-first .msg-body { border-bottom-left-radius: 8px; }
.msg.pos-mid .msg-body { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.msg.pos-last .msg-body { border-top-left-radius: 8px; }
.msg.mine .msg-body { border-radius: 22px; }
.msg.mine.pos-single .msg-body, .msg.mine.pos-first .msg-body { border-top-right-radius: 8px; }
.msg.mine.pos-first .msg-body { border-bottom-right-radius: 8px; }
.msg.mine.pos-mid .msg-body { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.msg.mine.pos-last .msg-body { border-top-right-radius: 8px; }

/* eigene Blasen: Verlauf in den eigenen Profilfarben + Glanz */
.msg.mine .msg-body {
  background:
    linear-gradient(180deg, rgba(var(--ink-rgb), .16), rgba(var(--ink-rgb), 0) 55%),
    linear-gradient(135deg, var(--mine1), var(--mine2));
  border: 1px solid rgba(var(--ink-rgb), .14);
  box-shadow: inset 0 1px 0 rgba(var(--ink-rgb), .25), 0 8px 26px -10px color-mix(in srgb, var(--mine1) 70%, transparent);
}
.msg.mine .msg-text, .msg.mine .msg-text strong { color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .15); }
.msg.mine .msg-text a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.msg.mine .msg-text .mention { background: rgba(var(--ink-rgb), .22); color: #fff; }
.msg.mine .msg-text code { background: rgba(var(--well-rgb), calc(.22 * var(--well-k))); }
.msg.mine .edited { color: rgba(var(--ink-rgb), .7); }

/* Bilder, Sticker, GIFs ohne Blase */
.msg-body.media, .msg-body:not(:has(.msg-text)):not(:has(.edit-input)), .msg-body:has(.jumbo) { background: none !important; border-color: transparent !important; box-shadow: none !important; backdrop-filter: none; padding: 0; }
.msg-body:has(.jumbo) { padding: 0 2px; }

/* Erwähnt / Antwort an mich */
.msg.mentioned .msg-body { box-shadow: 0 0 0 1.5px rgba(251, 191, 36, .75), 0 0 26px -6px rgba(251, 191, 36, .45); background: linear-gradient(180deg, rgba(251, 191, 36, .16), rgba(251, 191, 36, .07)); }
.msg.mentioned::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #fbbf24, #f59e0b); box-shadow: 0 0 12px rgba(251, 191, 36, .7); }

/* neue Nachricht: Pop */
.msg.pop .msg-body { animation: bubble-in .38s cubic-bezier(.2, 1.4, .4, 1) both; transform-origin: left bottom; }
.msg.mine.pop .msg-body { transform-origin: right bottom; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px) scale(.92); } to { opacity: 1; transform: none; } }
.msg.flash .msg-body { animation: flash-ring 1.5s ease-out; }
@keyframes flash-ring { 0%, 40% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 90%, transparent), 0 0 30px color-mix(in srgb, var(--accent-2) 50%, transparent); } 100% { box-shadow: none; } }

/* Antworten: geschwungene Linie + Karte */
.msg-reply { position: relative; display: flex; align-items: flex-end; margin: 0 0 5px 10px; max-width: min(560px, 100%); padding: 0; background: none; border: 0; text-align: left; color: var(--muted); }
.reply-curve { position: absolute; left: -44px; top: 50%; width: 36px; height: 22px; border-left: 2px solid rgba(var(--ink-rgb), .18); border-top: 2px solid rgba(var(--ink-rgb), .18); border-top-left-radius: 12px; pointer-events: none; }
.msg.mine .msg-reply { margin: 0 10px 5px 0; align-self: flex-end; }
.msg.mine .reply-curve { left: auto; right: -44px; border-left: 0; border-right: 2px solid rgba(var(--ink-rgb), .18); border-top-left-radius: 0; border-top-right-radius: 12px; }
.reply-card { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 5px 12px 5px 6px; border-radius: 999px; background: rgba(var(--ink-rgb), .045); border: 1px solid rgba(var(--ink-rgb), .07); font-size: 12.5px; transition: background .15s, border-color .15s, transform .15s; }
.msg-reply:hover .reply-card { background: rgba(var(--ink-rgb), .09); border-color: rgba(var(--ink-rgb), .14); transform: translateY(-1px); }
.reply-card .avatar { flex: none; }
.reply-ic { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--glass-hover); flex: none; }
.reply-name { flex: none; font-weight: 700; color: var(--text); font-size: 12.5px; }
.reply-kind { display: inline-flex; color: var(--accent-2); flex: none; }
.reply-snip { color: var(--text2); opacity: .8; min-width: 0; }
.reply-snip.gone { font-style: italic; opacity: .55; }
.msg-reply.to-me .reply-card { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .35); }
.msg-reply.to-me .reply-curve { border-color: rgba(251, 191, 36, .55); }
.msg-reply + .msg-avatar { top: 30px; }
.msg-reply ~ .msg-head { padding-top: 0; }

/* Composer: Antwort-Leiste */
.composer-bar.reply-bar { position: relative; gap: 10px; padding: 8px 10px 8px 14px; border-radius: 16px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent-2) 6%, transparent)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); overflow: hidden; animation: bar-in .2s ease-out; }
.composer-bar.reply-bar::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
.reply-bar-ic { color: var(--accent-2); display: inline-flex; }
.reply-bar-text { min-width: 0; line-height: 1.35; }
.reply-bar-text .ellipsis { display: block; }
@keyframes bar-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Aktionsleiste über der Blase */
.msg-actions { top: -18px; border-radius: 14px; padding: 3px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.msg-actions .icon-btn.sm { width: 30px; height: 30px; border-radius: 10px; }

/* Tagestrenner */
.day-sep { position: relative; margin: 26px 72px 6px; }
.day-sep::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--ink-rgb), .12) 30%, rgba(var(--ink-rgb), .12) 70%, transparent); }
.day-sep span { position: relative; background: color-mix(in srgb, var(--space-0) 60%, var(--space-1)); text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; padding: 4px 12px; }

/* Reaktionen */
.reaction { background: rgba(var(--ink-rgb), .05); border-color: rgba(var(--ink-rgb), .1); }
.reaction.me { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--accent-2) 15%, transparent)); border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 14px -4px color-mix(in srgb, var(--accent) 70%, transparent); }
.reaction.me .rc { color: #fff; }
.msg.mine .reactions { justify-content: flex-end; }

/* GIFs in Nachrichten */
.msg-gif { position: relative; display: inline-block; max-width: min(340px, 100%); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7); background: rgba(var(--ink-rgb), .04); }
.msg-gif img { display: block; width: 100%; max-height: 320px; object-fit: cover; }
.gif-badge { position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; border-radius: 7px; font-size: 10px; font-weight: 800; letter-spacing: .06em; background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(6px); opacity: 0; transition: opacity .15s; }
.gif-star { position: absolute; right: 7px; top: 7px; width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(6px); opacity: 0; transform: scale(.85); transition: opacity .15s, transform .15s, color .15s; }
.gif-star.on { color: #fbbf24; }
.gif-star.on svg { fill: currentColor; }
.msg-gif:hover .gif-star, .msg-gif:hover .gif-badge, .gif-item:hover .gif-star, .gif-star.on { opacity: 1; transform: none; }
.gif-btn { font-weight: 800; }

/* GIF-Picker */
.gif-picker { padding: 10px; gap: 8px; }
.gif-tabs { display: flex; gap: 6px; }
.gif-tab { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text2); background: rgba(var(--ink-rgb), .04); border: 1px solid var(--edge); transition: background .15s, color .15s; }
.gif-tab:hover { background: var(--glass-hover); color: var(--text); }
.gif-tab.active { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, transparent), color-mix(in srgb, var(--accent-2) 20%, transparent)); border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: #fff; }
.gif-tab.up { margin-left: auto; padding: 6px 9px; }
.gif-body { flex: 1; min-height: 0; overflow-y: auto; border-radius: 14px; }
.gif-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-items: start; }
.gif-grid:has(.gif-empty) { display: block; }
.gif-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gif-item { position: relative; width: 100%; border-radius: 12px; overflow: hidden; background: linear-gradient(110deg, rgba(var(--ink-rgb), .04) 30%, rgba(var(--ink-rgb), .09) 50%, rgba(var(--ink-rgb), .04) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; padding: 0; }
.gif-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.gif-item:hover img { transform: scale(1.05); }
.gif-item:hover { box-shadow: 0 0 0 2px var(--accent); }
@keyframes shimmer { to { background-position: -200% 0; } }
.gif-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 40px 20px; }
.gif-empty-ic { width: 54px; height: 54px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 25%, transparent), color-mix(in srgb, var(--accent-2) 14%, transparent)); color: #fff; margin-bottom: 4px; }
.gif-empty p { margin: 0 0 8px; max-width: 280px; }
.gif-foot { text-align: right; font-size: 10.5px; letter-spacing: .04em; min-height: 12px; }

@media (max-width: 760px) {
  .msg { padding: 1px 14px 1px 58px; }
  .msg.mine { padding: 1px 58px 1px 14px; }
  .day-sep { margin: 22px 14px 6px; }
  .reply-curve { left: -38px; width: 32px; }
  .msg.mine .reply-curve { right: -38px; }
}
.otp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.otp-actions .btn { flex: 1 1 180px; justify-content: center; }
.otp-or { margin: 6px 0 2px; }
@media (pointer: fine) and (min-width: 761px) { .otp-open { order: 2; } }

/* @-Erwähnungen */
.composer-wrap { position: relative; }
.mention-ac { position: absolute; left: 16px; right: 16px; bottom: calc(100% - 8px); z-index: 30; max-height: 340px; overflow-y: auto; padding: 8px; border-radius: 18px; background: rgba(17, 19, 34, .96); backdrop-filter: blur(16px); border: 1px solid var(--edge-strong); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); animation: bar-in .15s ease-out; }
.mention-ac-title { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 4px 8px 6px; }
.mention-ac-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border-radius: 12px; text-align: left; color: var(--text); }
.mention-ac-item.active { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 28%, transparent), color-mix(in srgb, var(--accent-2) 10%, transparent)); }
.mac-ic { width: 26px; height: 26px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; background: color-mix(in srgb, var(--rc, var(--accent)) 25%, transparent); color: var(--rc, #c4b5fd); }
.kind-everyone .mac-ic, .kind-here .mac-ic { --rc: #fbbf24; }
.mac-name { font-weight: 600; font-size: 14px; }
.mac-sub { margin-left: auto; font-size: 12px; color: var(--muted); }
.msg-text .mention.role { --rc: #a78bfa; background: color-mix(in srgb, var(--rc) 22%, transparent); color: color-mix(in srgb, var(--rc) 70%, #fff); }
.msg-text .mention.everyone { background: rgba(251, 191, 36, .16); color: var(--c-amber-fcd34d); }
.msg-text .mention.role.me, .msg-text .mention.everyone.me { box-shadow: 0 0 0 1px color-mix(in srgb, var(--rc, #fbbf24) 60%, transparent); }
.msg.mine .msg-text .mention.role, .msg.mine .msg-text .mention.everyone { background: rgba(var(--ink-rgb), .22); color: #fff; }

/* Bug melden */
.settings-tab.bug { color: var(--c-mint-86efac); }
.settings-tab.bug:hover { background: rgba(74, 222, 128, .1); }
.bug-hero { display: flex; gap: 14px; align-items: center; padding: 14px 16px; margin-bottom: 16px; border-radius: 18px; background: linear-gradient(135deg, rgba(74, 222, 128, .14), color-mix(in srgb, var(--accent-2) 8%, transparent)); border: 1px solid rgba(74, 222, 128, .3); }
.bug-hero strong { display: block; margin-bottom: 2px; }
.bug-hero p { margin: 0; }
.bug-shot-prev { position: relative; display: inline-block; }
.bug-shot-prev img { max-width: 220px; max-height: 140px; border-radius: 12px; display: block; border: 1px solid var(--edge); }
.bug-shot-prev .icon-btn { position: absolute; top: 6px; right: 6px; background: rgba(0, 0, 0, .6); }
.bug-detail { display: flex; flex-direction: column; gap: 8px; }
.pre-wrap { white-space: pre-wrap; word-break: break-word; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; word-break: break-all; }
.btn.bug-valid { background: linear-gradient(135deg, #22c55e, #14b8a6); }
.modal-actions.center { justify-content: center; }

/* Badge gewonnen */
.modal.modal-badge { max-width: 420px; overflow: hidden; }
.badge-win { position: relative; text-align: center; padding: 34px 28px 24px; }
.badge-win h2 { margin: 14px 0 2px; font-size: 22px; }
.badge-win h3 { margin: 0 0 6px; font-size: 18px; background: linear-gradient(90deg, #d9f99d, #4ade80, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge-win-ic { position: relative; display: inline-flex; padding: 18px; border-radius: 50%; background: radial-gradient(circle, rgba(74, 222, 128, .28), transparent 70%); animation: badge-pop .7s cubic-bezier(.2, 1.6, .4, 1) both; }
.badge-win-ic .badge-ic { filter: drop-shadow(0 0 18px rgba(74, 222, 128, .6)); }
@keyframes badge-pop { from { transform: scale(.2) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
.badge-win-burst { position: absolute; left: 50%; top: 92px; width: 0; height: 0; pointer-events: none; }
.badge-win-burst i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: hsl(calc(var(--i) * 26 + 90) 90% 65%); animation: burst 1.1s ease-out .15s both; transform: rotate(calc(var(--i) * 25.7deg)) translateX(0); }
@keyframes burst { from { opacity: 1; transform: rotate(calc(var(--i) * 25.7deg)) translateX(0) scale(1); } to { opacity: 0; transform: rotate(calc(var(--i) * 25.7deg)) translateX(140px) scale(.4); } }

/* Auto-Mod-Review */
.report-card.autoban { border-color: rgba(244, 63, 94, .45); box-shadow: 0 0 0 1px rgba(244, 63, 94, .18), 0 12px 34px -16px rgba(244, 63, 94, .5); }
.autoban-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(244, 63, 94, .16); color: var(--c-rose-fda4af); }
.evidence { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.evidence-img { position: relative; width: 240px; max-width: 100%; min-height: 120px; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: repeating-linear-gradient(45deg, rgba(244, 63, 94, .08) 0 10px, rgba(0, 0, 0, .2) 10px 20px); border: 1px dashed rgba(244, 63, 94, .5); color: var(--c-rose-fda4af); font-size: 12px; font-weight: 600; }
.evidence-img img { width: 100%; display: block; filter: blur(22px) saturate(.6); transition: filter .2s; }
.evidence-img.unblur img { filter: none; }
.evidence-img.shown { border-style: solid; min-height: 0; }
.evidence-gone { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(244, 63, 94, .1); color: var(--c-rose-fecdd3); font-size: 12.5px; line-height: 1.45; }
.review-q { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--text2); }
.btn.fp { color: var(--c-mint-86efac); border-color: rgba(74, 222, 128, .4); }

/* =====================================================================
   Profil 2.0 – mehr Luft
   ===================================================================== */
.modal-profile { max-width: 480px; }
.pcard-full .pcard-banner { height: 160px; }
.pcard-full .pcard-head { padding: 0 24px; margin-top: -62px; }
.pcard-full .pcard-avatar { padding: 6px; }
.pcard-full .pcard-body { margin: 14px 16px 16px; padding: 22px 24px 24px; border-radius: 20px; }
.pcard-full .pcard-name { font-size: 26px; letter-spacing: -.01em; }
.pcard-full .pcard-sub { margin-top: 4px; font-size: 14px; }
.pcard-sec h4 { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pcard-sec .msg-text { line-height: 1.6; }
.pcard-full .pcard-sec { margin-top: 20px; padding-top: 18px; }
.pcard-panel .pcard-body { padding: 18px 18px 20px; }
.pcard-panel .pcard-sec { margin-top: 16px; padding-top: 14px; }
.pcard-full .pcard-actions { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--edge); gap: 10px; }
.pcard-full .pcard-actions .btn.primary { flex: 1 1 auto; justify-content: center; min-height: 42px; }

.pcard-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.meta-tile { display: flex; gap: 10px; align-items: center; padding: 11px 13px; border-radius: 14px; background: rgba(var(--ink-rgb), .04); border: 1px solid var(--edge); font-size: 14px; }
.meta-tile h4 { margin: 0 0 2px !important; }
.meta-ic { width: 30px; height: 30px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--p1) 28%, transparent); color: #fff; }

.badge-row { gap: 6px; padding: 6px 9px; border-radius: 14px; }
.badge-ic.tap { padding: 0; background: none; border: 0; cursor: pointer; border-radius: 8px; -webkit-tap-highlight-color: transparent; }
.badge-ic.tap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.badge-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(var(--ink-rgb), .05); border: 1px solid var(--edge); font-size: 13px; font-weight: 600; color: var(--text); transition: background .15s, transform .15s; }
.badge-chip:hover { background: rgba(var(--ink-rgb), .09); transform: translateY(-1px); }

/* Badge-Popover (Klick/Tippen) */
.badge-pop { position: fixed; z-index: 400; display: flex; align-items: center; gap: 12px; max-width: min(300px, calc(100vw - 16px)); padding: 12px 16px 12px 12px; border-radius: 16px; background: rgba(var(--panel-rgb), .97); backdrop-filter: blur(14px); border: 1px solid var(--edge-strong); box-shadow: 0 16px 40px rgba(0, 0, 0, .55); animation: pop .14s ease-out; }
.badge-pop::before { content: ''; position: absolute; left: calc(var(--ax, 50%) - 7px); width: 12px; height: 12px; background: inherit; border: inherit; transform: rotate(45deg); }
.badge-pop.below::before { top: -7px; border-right: 0; border-bottom: 0; }
.badge-pop.above::before { bottom: -7px; border-left: 0; border-top: 0; }
.badge-pop-ic { flex: none; width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), color-mix(in srgb, var(--accent) 6%, transparent)); }
.badge-pop.b-bug_hunter .badge-pop-ic { background: radial-gradient(circle, rgba(74, 222, 128, .3), rgba(74, 222, 128, .05)); }
.badge-pop.b-first_orbit .badge-pop-ic { background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 28%, transparent), color-mix(in srgb, var(--accent) 8%, transparent)); }
.badge-pop.b-secured .badge-pop-ic { background: radial-gradient(circle, rgba(16, 185, 129, .3), rgba(16, 185, 129, .05)); }
.badge-pop-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.badge-pop-txt strong { font-size: 14.5px; }
.badge-pop-txt span { font-size: 12.5px; color: var(--text2); line-height: 1.4; }

@media (max-width: 760px) {
  .modal-profile { max-width: none; }
  .pcard-full .pcard-banner { height: 130px; }
  .pcard-full .pcard-head { padding: 0 18px; margin-top: -54px; }
  .pcard-full .pcard-body { margin: 12px; padding: 18px 18px 20px; }
  .pcard-full .pcard-name { font-size: 23px; }
  .pfull { grid-template-columns: 1fr; }
}

/* =====================================================================
   Status 2.0 – Online, Abwesend, Bitte nicht stören, Offline
   ===================================================================== */
.status-dot { border-width: 3px; box-sizing: border-box; overflow: visible; }
.status-dot::before, .status-dot::after { content: ''; position: absolute; }
.status-online { background: radial-gradient(circle at 35% 30%, #6ee7b7, #10b981 70%); box-shadow: 0 0 10px rgba(16, 185, 129, .7); }
.pcard-avatar .status-online::after, .up-me .status-online::after, .sp-head .status-online::after { inset: -4px; border-radius: 50%; border: 2px solid rgba(52, 211, 153, .55); animation: st-ping 2.4s ease-out infinite; }
@keyframes st-ping { 0% { transform: scale(.7); opacity: .9; } 80%, 100% { transform: scale(1.35); opacity: 0; } }
.status-idle { background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b 70%); box-shadow: 0 0 10px rgba(245, 158, 11, .55); }
.status-idle::before { width: 62%; height: 62%; left: -4%; top: -4%; border-radius: 50%; background: var(--space-1); }
.pcard-avatar .status-idle::before { background: color-mix(in srgb, var(--p1) 30%, #0b0d1a); }
.status-dnd { background: radial-gradient(circle at 35% 30%, #fda4af, #f43f5e 70%); box-shadow: 0 0 10px rgba(244, 63, 94, .6); }
.status-dnd::before { left: 22%; right: 22%; top: 50%; height: 22%; transform: translateY(-50%); border-radius: 4px; background: #fff; }
.status-offline, .status-invisible { background: #6b7280; }
.status-offline::before, .status-invisible::before { inset: 26%; border-radius: 50%; background: var(--space-1); }
.pcard-avatar .status-offline::before { background: color-mix(in srgb, var(--p1) 30%, #0b0d1a); }
.status-dot.static { position: relative; right: auto; bottom: auto; display: inline-block; width: 18px; height: 18px; flex: none; border-color: transparent; }
.status-dot.static::before { background: rgb(var(--panel-rgb)); }
@media (prefers-reduced-motion: reduce) { .status-online::after { animation: none; display: none; } }

/* Status-Text unter dem Namen */
.up-sub { display: inline-flex; align-items: center; gap: 5px; }
.st-mini { width: 7px; height: 7px; border-radius: 50%; background: #6b7280; flex: none; }
.up-sub.st-online { color: var(--c-mint-6ee7b7); } .up-sub.st-online .st-mini { background: #10b981; box-shadow: 0 0 6px #10b981; }
.up-sub.st-idle { color: var(--c-amber-fcd34d); } .up-sub.st-idle .st-mini { background: #f59e0b; }
.up-sub.st-dnd { color: var(--c-rose-fda4af); } .up-sub.st-dnd .st-mini { background: #f43f5e; }

/* Status-Auswahl */
.status-picker { width: 300px; padding: 8px; }
.sp-head { display: flex; gap: 12px; align-items: center; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--edge); }
.sp-name { font-weight: 700; font-size: 15px; display: block; }
.sp-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 14px; text-align: left; color: var(--text); border: 1px solid transparent; transition: background .15s, border-color .15s; }
.sp-opt:hover { background: rgba(var(--ink-rgb), .05); }
.sp-opt.active { background: rgba(var(--ink-rgb), .06); border-color: var(--edge-strong); }
.sp-opt.st-online.active { background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .4); }
.sp-opt.st-idle.active { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .4); }
.sp-opt.st-dnd.active { background: rgba(244, 63, 94, .12); border-color: rgba(244, 63, 94, .4); }
.sp-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sp-txt strong { font-size: 14px; }
.sp-txt small { font-size: 12px; color: var(--muted); }
.sp-opt > svg { color: var(--accent-2); }

/* Blockieren / Stummschalten */
.rel-row { display: flex; gap: 8px; margin-top: 12px; }
.rel-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 8px; border-radius: 14px; font-size: 12.5px; font-weight: 600; color: var(--text2); background: rgba(var(--ink-rgb), .04); border: 1px solid var(--edge); transition: background .15s, color .15s; }
.rel-btn:hover { background: rgba(var(--ink-rgb), .08); color: var(--text); }
.rel-btn small { font-weight: 500; font-size: 10.5px; color: var(--muted); }
.rel-btn.on { color: var(--c-amber-fcd34d); border-color: rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .08); }
.rel-btn.danger:hover { color: var(--c-rose-fda4af); }
.rel-btn.danger.on { color: var(--c-rose-fda4af); border-color: rgba(244, 63, 94, .45); background: rgba(244, 63, 94, .1); }
.blocked-msg { padding-top: 4px; padding-bottom: 4px; min-height: 0; }
.blocked-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: var(--muted); background: rgba(var(--ink-rgb), .03); border: 1px dashed var(--edge-strong); }
.blocked-pill u { color: var(--accent-2); text-decoration: none; font-weight: 600; }
.composer.blocked { gap: 10px; }
.dm-flag { color: var(--muted); display: inline-flex; flex: none; }

/* =====================================================================
   Aktivitäten (Spielt / Hört / Schaut / Streamt)
   ===================================================================== */
.mem-main { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.mem-row .mem-main .mem-name { flex: none; }
.act-line { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); min-width: 0; }
.act-line b { color: var(--text2); font-weight: 600; }
.act-line svg { flex: none; }
.act-line.act-playing svg { color: var(--c-indigo-a78bfa); } .act-line.act-listening svg { color: var(--c-mint-4ade80); } .act-line.act-watching svg { color: #38bdf8; } .act-line.act-streaming svg { color: var(--c-pink-f472b6); }
.act-emoji { font-size: 12px; line-height: 1; }
.act-emoji.big { font-size: 28px; }
.act-card { display: block; padding: 12px; border-radius: 16px; color: var(--text); text-decoration: none; background: linear-gradient(135deg, rgba(var(--ink-rgb), .06), rgba(var(--ink-rgb), .025)); border: 1px solid var(--edge); transition: transform .15s, border-color .15s; }
.act-card + .act-card { margin-top: 10px; }
a.act-card:hover { transform: translateY(-1px); border-color: var(--edge-strong); }
.act-card.act-listening { background: linear-gradient(135deg, rgba(74, 222, 128, .12), rgba(var(--ink-rgb), .02)); border-color: rgba(74, 222, 128, .25); }
.act-card.act-playing { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), rgba(var(--ink-rgb), .02)); border-color: color-mix(in srgb, var(--accent) 28%, transparent); }
.act-card.act-streaming { background: linear-gradient(135deg, rgba(244, 114, 182, .16), rgba(var(--ink-rgb), .02)); border-color: rgba(244, 114, 182, .3); }
.act-card.act-watching { background: linear-gradient(135deg, rgba(56, 189, 248, .14), rgba(var(--ink-rgb), .02)); border-color: rgba(56, 189, 248, .28); }
.act-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.act-head h4 { margin: 0 !important; }
.act-src { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(var(--well-rgb), calc(.3 * var(--well-k))); color: var(--text2); }
.act-src.src-lastfm { color: var(--c-rose-fca5a5); } .act-src.src-steam { color: var(--c-sky-93c5fd); }
.act-body { display: flex; gap: 12px; align-items: center; min-width: 0; }
.act-art { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.act-card.act-playing img.act-art { width: 112px; height: 52px; }
.act-art.ph { display: flex; align-items: center; justify-content: center; background: rgba(var(--ink-rgb), .06); color: #fff; }
.act-art.ph.act-playing { background: linear-gradient(145deg, #7c5cff, #4f46e5); }
.act-art.ph.act-listening { background: linear-gradient(145deg, #22c55e, #0d9488); }
.act-art.ph.act-watching { background: linear-gradient(145deg, #0ea5e9, #6366f1); }
.act-art.ph.act-streaming { background: linear-gradient(145deg, #ec4899, #8b5cf6); }
.act-art.ph.act-custom { background: linear-gradient(145deg, #f59e0b, #ef4444); }
.act-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 13px; }
.act-txt strong { font-size: 14.5px; }
.act-time { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.act-card.act-streaming .act-time::before { content: 'LIVE'; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; color: #fff; background: #ef4444; padding: 1px 5px; border-radius: 4px; margin-right: 4px; }

/* Einstellungen: Aktivität */
.act-types { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.act-type { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 14px; font-size: 13.5px; font-weight: 600; color: var(--text2); background: rgba(var(--ink-rgb), .04); border: 1px solid var(--edge); transition: background .15s, border-color .15s, color .15s; }
.act-type:hover { background: rgba(var(--ink-rgb), .08); }
.act-type.active { color: #fff; border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, transparent), color-mix(in srgb, var(--accent-2) 15%, transparent)); }
.act-row .field:first-child { flex: 0 0 90px; }
.act-emoji-in { text-align: center; font-size: 18px; }
.act-current { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: var(--c-mint-86efac); background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .3); margin-bottom: 10px; }
.conn-card { padding: 14px 16px; border-radius: 16px; background: rgba(var(--ink-rgb), .03); border: 1px solid var(--edge); margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.conn-card.linked { border-color: rgba(74, 222, 128, .35); }
.conn-head { display: flex; align-items: center; gap: 12px; }
.conn-ic { width: 40px; height: 40px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.conn-lastfm .conn-ic { background: linear-gradient(145deg, #ef4444, #b91c1c); }
.conn-steam .conn-ic { background: linear-gradient(145deg, #1e3a8a, #0f172a); }
.conn-card .row .input { flex: 1; }
.conn-acc { font-weight: 600; font-size: 13.5px; }
.conn-hint, .conn-off { margin: 0; }
/* Profil-Fenster scrollt, wenn es höher als der Bildschirm ist */
.modal.modal-profile { overflow-y: auto !important; overflow-x: hidden !important; max-height: calc(100dvh - 24px); scrollbar-width: none; border-radius: 24px; }
.modal.modal-profile::-webkit-scrollbar { display: none; }
.modal.modal-profile .pfull-side { max-height: none; }

/* =====================================================================
   Bildschirm übertragen / Streams
   ===================================================================== */
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); animation: live-pulse 1.6s infinite; flex: none; display: inline-block; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .7); } 70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
.live-tag { font-size: 9.5px; font-weight: 800; letter-spacing: .07em; color: #fff; background: #ef4444; padding: 2px 6px; border-radius: 5px; }
.live-btn { position: relative; }
.live-btn.on { color: #fff; background: rgba(239, 68, 68, .25); }
.live-btn .live-tag { position: absolute; top: -6px; right: -8px; font-size: 8px; padding: 1px 4px; }
.vb-live { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 7px 10px; border-radius: 12px; background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .3); font-size: 12px; font-weight: 600; color: var(--c-rose-fecaca); }
.voice-user-wrap { display: flex; align-items: center; gap: 4px; }
.voice-user-wrap .voice-user { flex: 1; min-width: 0; }
.live-pill { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; color: #fff; background: linear-gradient(135deg, #ef4444, #db2777); box-shadow: 0 4px 12px -4px rgba(239, 68, 68, .7); transition: transform .15s; }
.live-pill:hover { transform: scale(1.05); }
.live-pill .live-dot { width: 6px; height: 6px; background: #fff; animation: none; }
.live-pill.watching { background: rgba(var(--ink-rgb), .1); color: var(--c-rose-fecaca); box-shadow: none; border: 1px solid rgba(239, 68, 68, .5); }

/* Go-Live-Fenster */
.modal.modal-golive { max-width: 560px; }
.golive-q { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gq { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px 12px; border-radius: 16px; background: rgba(var(--ink-rgb), .04); border: 1px solid var(--edge); color: var(--text); transition: background .15s, border-color .15s, transform .15s; }
.gq:hover { transform: translateY(-2px); background: rgba(var(--ink-rgb), .07); }
.gq strong { font-size: 17px; font-family: var(--font-display); }
.gq span { font-size: 11.5px; color: var(--muted); }
.gq em { position: absolute; top: -8px; font-style: normal; font-size: 9.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.gq.active { border-color: rgba(239, 68, 68, .7); background: linear-gradient(160deg, rgba(239, 68, 68, .2), rgba(219, 39, 119, .08)); box-shadow: 0 0 0 1px rgba(239, 68, 68, .4); }
.golive-m { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gm { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; text-align: left; color: var(--text); background: rgba(var(--ink-rgb), .04); border: 1px solid var(--edge); }
.gm small { display: block; font-size: 11.5px; color: var(--muted); }
.gm.active { border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.golive-btn { background: linear-gradient(135deg, #ef4444, #db2777) !important; gap: 8px; }
.golive-btn .live-dot { background: #fff; }
@media (max-width: 560px) { .golive-q { grid-template-columns: 1fr 1fr; } .golive-m { grid-template-columns: 1fr; } }

/* Bühne */
.stage { position: fixed; z-index: 150; display: flex; flex-direction: column; background: rgba(var(--deep-rgb), .97); backdrop-filter: blur(12px); border-radius: 24px; border: 1px solid var(--edge-strong); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.stage.mini { left: auto !important; top: auto !important; right: 18px; bottom: 18px; width: min(420px, calc(100vw - 36px)); height: auto; aspect-ratio: auto; border-radius: 18px; }
.stage-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; border-bottom: 1px solid var(--edge); }
.stage-grid { flex: 1; min-height: 0; display: grid; gap: 10px; padding: 10px; grid-template-columns: 1fr; grid-auto-rows: 1fr; }
.stage-grid[data-n="2"] { grid-template-columns: 1fr 1fr; }
.stage-grid[data-n="3"], .stage-grid[data-n="4"] { grid-template-columns: 1fr 1fr; }
.stage.mini .stage-grid { grid-template-columns: 1fr; grid-auto-rows: auto; padding: 8px; }
.stage-tile { position: relative; min-height: 0; border-radius: 16px; overflow: hidden; background: #000; display: flex; align-items: center; justify-content: center; }
.stage.mini .stage-tile { aspect-ratio: 16 / 9; }
.stage-tile video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.stage-tile:fullscreen { border-radius: 0; }
.tile-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 13px; }
.stage-tile.ready .tile-wait { display: none; }
.tile-top, .tile-ctl { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px; opacity: 0; transition: opacity .2s; }
.tile-top { top: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent); font-size: 13px; }
.tile-ctl { bottom: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent); }
.stage-tile:hover .tile-top, .stage-tile:hover .tile-ctl, .stage-tile:not(.ready) .tile-top { opacity: 1; }
.tile-q { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(var(--ink-rgb), .14); font-variant-numeric: tabular-nums; }
.tile-vol { display: flex; align-items: center; gap: 6px; color: #fff; }
.tile-vol .range { width: 110px; }
.tile-ctl .icon-btn { color: #fff; background: rgba(var(--ink-rgb), .1); }
@media (max-width: 760px) { .stage:not(.mini) { left: 0 !important; top: 0 !important; width: 100vw !important; height: 100dvh !important; border-radius: 0; } .tile-top, .tile-ctl { opacity: 1; } }

/* Leistung: Animationen in langen Listen nur beim Drüberfahren (spart GPU/CPU) */
.mem-row .aura, .mem-row .aura::before, .mem-row .aura::after,
.voice-user .aura, .voice-user .aura::before, .voice-user .aura::after,
.dm-row .aura, .dm-row .aura::before, .dm-row .aura::after,
.msg-avatar .aura, .msg-avatar .aura::before, .msg-avatar .aura::after,
.mention-ac .aura, .mem-row .sname, .msg-author .sname { animation-play-state: paused !important; }
.mem-row:hover .aura, .mem-row:hover .aura::before, .mem-row:hover .aura::after,
.msg-avatar:hover .aura, .msg-avatar:hover .aura::before, .msg-avatar:hover .aura::after,
.mem-row:hover .sname, .msg-author:hover .sname { animation-play-state: running !important; }
.msg-body, .reaction, .act-card, .stage-tile { contain: layout paint; }
.messages { contain: content; }

/* Leistungsmodus */
html.perf *, html.perf *::before, html.perf *::after { animation: none !important; transition-duration: .01ms !important; }
html.perf .glass, html.perf .modal, html.perf .popmenu, html.perf .toast, html.perf .auth-card, html.perf .pfull-side, html.perf .mention-ac, html.perf .badge-pop, html.perf .stage, html.perf .badge-row, html.perf .pcard-body, html.perf .msg-actions {
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
html.perf .glass, html.perf .modal, html.perf .popmenu { background: color-mix(in srgb, rgb(var(--panel-rgb)) 94%, var(--text)) !important; }
html.perf .modal-backdrop { backdrop-filter: none !important; background: rgba(3, 4, 10, .82); }
html.perf body::before, html.perf .profile-fx { display: none; }
html.perf .live-dot { box-shadow: none; }
.vb-live { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
.vb-live > :first-child + * { overflow: hidden; text-overflow: ellipsis; }
.stage.mini { bottom: 96px; }

/* =====================================================================
   Desktop-App + Download-Seite
   ===================================================================== */
.desk-titlebar { position: fixed; top: 0; left: 0; right: 0; height: 32px; z-index: 500; -webkit-app-region: drag; display: flex; align-items: center; padding-left: 14px; background: var(--space-0); }
.desktop-mac .desk-titlebar { padding-left: 80px; height: 28px; }
.desk-title { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); font-family: var(--font-display); }
html.desktop #app { height: calc(100% - 32px); margin-top: 32px; }
html.desktop-mac #app { height: calc(100% - 28px); margin-top: 28px; }
html.desktop .modal-backdrop { top: 32px; }

.home-dl { display: flex; align-items: center; gap: 12px; margin: 18px auto 0; padding: 12px 16px; border-radius: 16px; max-width: 520px; text-decoration: none; color: var(--text2); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), color-mix(in srgb, var(--accent-2) 8%, transparent)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); font-size: 13.5px; transition: transform .15s, border-color .15s; }
.home-dl:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.home-dl strong { color: var(--text); }
.home-dl > svg:first-child { color: var(--accent-2); flex: none; }
.home-dl > span { flex: 1; }
a.settings-tab { text-decoration: none; display: flex; align-items: center; gap: 8px; }
.settings-tab.dl { color: var(--c-indigo-a5b4fc); }

.dl-page { height: 100%; overflow-y: auto; padding: 28px 20px 60px; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.dl-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 13.5px; }
.dl-back svg { transform: rotate(180deg); }
.dl-back:hover { color: var(--text); }
.dl-hero { text-align: center; max-width: 640px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dl-logo { filter: drop-shadow(0 0 40px color-mix(in srgb, var(--accent) 55%, transparent)); margin-bottom: 6px; }
.dl-hero h1 { margin: 0; font-family: var(--font-display); font-size: clamp(30px, 5vw, 46px); letter-spacing: -.02em; background: linear-gradient(90deg, #fff, #c4b5fd 50%, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dl-hero p { margin: 0; font-size: 16px; }
.dl-big { margin-top: 14px; padding: 16px 28px; font-size: 16px; border-radius: 18px; gap: 6px; box-shadow: 0 14px 40px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.dl-ver { margin-top: 4px !important; }
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: min(900px, 100%); }
.dl-feat { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 18px; background: var(--glass-soft); border: 1px solid var(--edge); }
.dl-feat strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.dl-feat small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.dl-feat-ic { width: 40px; height: 40px; flex: none; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 50%, transparent), color-mix(in srgb, var(--accent-2) 30%, transparent)); }
.dl-plats, .dl-help { width: min(640px, 100%); display: flex; flex-direction: column; gap: 8px; }
.dl-plats h3, .dl-help h3 { margin: 0 0 4px; font-size: 15px; }
.dl-plat { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: var(--text); background: rgba(var(--ink-rgb), .03); border: 1px solid var(--edge); transition: background .15s, border-color .15s; }
.dl-plat:hover { background: rgba(var(--ink-rgb), .07); border-color: var(--edge-strong); }
.dl-plat.mine { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.dl-plat strong { display: block; }
.dl-plat small { color: var(--muted); font-size: 12.5px; }
.dl-plat-ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(var(--ink-rgb), .06); flex: none; }
.dl-help p { margin: 0; font-size: 13.5px; color: var(--text2); line-height: 1.55; }
@media (max-width: 760px) { .dl-grid { grid-template-columns: 1fr; } }
html.desktop .shell { height: calc(100dvh - 32px); padding-top: 4px; }
html.desktop-mac .shell { height: calc(100dvh - 28px); }
html.desktop .modal { max-height: calc(100dvh - 64px); }
html.desktop .modal-full { height: min(800px, calc(100dvh - 64px)); }

/* =====================================================================
   DM-Avatare in der Leiste, Gruppen, Anrufe
   ===================================================================== */
.rail-item.dm-bubble { animation: dm-pop .35s cubic-bezier(.2, 1.5, .4, 1) both; }
.rail-item.dm-bubble .rail-btn { border-radius: 50%; padding: 0; overflow: visible; background: none; border: 0; }
.rail-item.dm-bubble .rail-btn > .avatar, .rail-item.dm-bubble .rail-btn > .group-av { width: 50px !important; height: 50px !important; }
.rail-item.dm-bubble .rail-btn .avatar img, .rail-item.dm-bubble .rail-btn .avatar-fallback { border-radius: 50%; }
.rail-item.dm-bubble:hover .rail-btn { transform: scale(1.06); border-radius: 17px; }
@keyframes dm-pop { from { opacity: 0; transform: translateX(-14px) scale(.6); } to { opacity: 1; transform: none; } }

.group-av { position: relative; display: inline-block; flex: none; }
.group-av .ga-1 { position: absolute; left: 0; top: 0; }
.group-av .ga-2 { position: absolute; right: 0; bottom: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--space-1); }
.dm-names { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.dm-names small { font-size: 11.5px; color: var(--muted); }
.dm-call-flag { display: inline-flex; padding: 4px; border-radius: 8px; background: rgba(16, 185, 129, .18); color: #34d399; flex: none; }

/* Leute-Auswahl */
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(var(--ink-rgb), .04); border: 1px solid var(--edge); margin-bottom: 14px; }
.seg-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 8px; border-radius: 10px; font-weight: 600; font-size: 13.5px; color: var(--text2); }
.seg-btn.on { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, transparent), color-mix(in srgb, var(--accent-2) 18%, transparent)); color: #fff; }
.people-picker .user-results { max-height: 320px; overflow-y: auto; margin-top: 8px; }
.user-result { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; }
.user-result.on { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.pick-check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--edge-strong); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pick-check.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; }
.pick-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pick-chips:empty { display: none; }
.pick-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); font-size: 12.5px; font-weight: 600; color: var(--text); }

/* Gruppen-Panel */
.group-panel { padding: 16px 10px; display: flex; flex-direction: column; gap: 4px; }
.gp-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--edge); }
.gp-head h3 { margin: 0; font-size: 18px; }
.gp-row { display: flex; align-items: center; gap: 4px; }
.gp-row .mem-row { flex: 1; min-width: 0; }
.gp-leave { margin-top: 14px; }

/* Anruf-Leiste im Chat */
.call-panel { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 22px 16px 18px; margin: 0 12px 6px; border-radius: 22px; background: radial-gradient(120% 140% at 50% 0%, rgba(16, 185, 129, .16), rgba(10, 12, 24, .6) 70%); border: 1px solid rgba(16, 185, 129, .25); animation: bar-in .25s ease-out; flex: none; }
.call-people { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.call-user { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; }
.call-user .avatar { transition: box-shadow .15s; }
.call-user .avatar.speaking { box-shadow: 0 0 0 3px #10b981, 0 0 22px rgba(16, 185, 129, .6); }
.cu-name { font-size: 13px; font-weight: 600; max-width: 100%; }
.cu-icons { position: absolute; top: 46px; right: 12px; display: inline-flex; padding: 3px; border-radius: 50%; background: #f43f5e; color: #fff; }
.cu-icons:empty { display: none; }
.call-user.ghost { opacity: .75; }
.ring-dots { display: flex; gap: 4px; }
.ring-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); animation: dot 1.2s infinite; }
.ring-dots i:nth-child(2) { animation-delay: .2s; } .ring-dots i:nth-child(3) { animation-delay: .4s; }
.call-ctl { display: flex; gap: 12px; }
.call-round { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(var(--ink-rgb), .1); color: #fff; border: 1px solid rgba(var(--ink-rgb), .12); transition: transform .15s, background .15s; }
.call-round:hover { transform: translateY(-2px); background: rgba(var(--ink-rgb), .16); }
.call-round.off { background: #fff; color: #0b0d14; }
.call-round.live { background: linear-gradient(135deg, #ef4444, #db2777); }
.call-round.hang { background: #ef4444; border-color: transparent; }
.call-round.accept { background: #10b981; border-color: transparent; }
.call-join { background: linear-gradient(135deg, #10b981, #0d9488) !important; }
.call-btn.on { color: #fff; background: #ef4444; }

/* Eingehender Anruf */
.ring-card { position: fixed; z-index: 600; right: 22px; top: 22px; width: 260px; padding: 24px 18px 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; border-radius: 26px; background: rgba(var(--panel-rgb), .97); border: 1px solid var(--edge-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: ring-in .4s cubic-bezier(.2, 1.4, .4, 1) both; }
html.desktop .ring-card { top: 48px; }
@keyframes ring-in { from { opacity: 0; transform: translateY(-20px) scale(.9); } to { opacity: 1; transform: none; } }
.ring-av { position: relative; margin-bottom: 8px; }
.ring-wave { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(16, 185, 129, .6); animation: st-ping 1.8s ease-out infinite; }
.ring-wave.w2 { animation-delay: .9s; }
.ring-name { font-size: 17px; }
.ring-btns { display: flex; gap: 26px; margin-top: 14px; }
@media (max-width: 760px) { .ring-card { left: 12px; right: 12px; width: auto; } }
.home-dl { width: 100%; text-align: left; box-sizing: border-box; }

/* =====================================================================
   Senden-Animation: Blase fliegt federnd ein, kurzer Glanz bei „zugestellt“
   ===================================================================== */
.messages { scroll-behavior: auto; }
.msg.pop .msg-body, .msg.pop .msg-reply, .msg.pop .msg-gif, .msg.pop .sticker, .msg.pop .att-img { animation: msg-in-left .5s cubic-bezier(.18, .9, .3, 1.18) both; transform-origin: left bottom; }
.msg.mine.pop .msg-body, .msg.mine.pop .msg-reply, .msg.mine.pop .msg-gif, .msg.mine.pop .sticker, .msg.mine.pop .att-img { animation-name: msg-in-right; transform-origin: right bottom; }
.msg.pop .msg-avatar, .msg.pop .msg-head { animation: fade-up .35s ease-out both; }
@keyframes msg-in-right {
  0% { opacity: 0; transform: translate(26px, 30px) scale(.78); filter: blur(4px); }
  55% { opacity: 1; transform: translate(-2px, -4px) scale(1.035); filter: blur(0); }
  78% { transform: translate(1px, 1px) scale(.992); }
  100% { opacity: 1; transform: none; }
}
@keyframes msg-in-left {
  0% { opacity: 0; transform: translate(-22px, 22px) scale(.82); filter: blur(4px); }
  55% { opacity: 1; transform: translate(2px, -3px) scale(1.03); filter: blur(0); }
  78% { transform: translate(-1px, 1px) scale(.994); }
  100% { opacity: 1; transform: none; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* noch unterwegs → leicht transparent; zugestellt → kurzer Lichtstreif */
.msg.pending .msg-body { opacity: .72; }
.msg.mine.sent .msg-body { position: relative; overflow: hidden; }
.msg.mine.sent .msg-body::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(var(--ink-rgb), .35) 50%, transparent 65%); transform: translateX(-120%); animation: sent-shine .7s ease-out .05s forwards; pointer-events: none; }
@keyframes sent-shine { to { transform: translateX(120%); } }
.msg.failed .msg-body { animation: shake .4s; box-shadow: 0 0 0 2px #f43f5e; opacity: .5; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
/* Bilder reservieren Platz → nichts springt */
.att-img img { min-height: 120px; background: rgba(var(--ink-rgb), .04); }
.msg-gif img { min-height: 140px; }
html.perf .msg.pop .msg-body { animation: none !important; }

/* =====================================================================
   Bildbetrachter
   ===================================================================== */
.att-img, .msg-gif, .sticker[data-lb] { cursor: zoom-in; }
.att-img { padding: 0; border-radius: 14px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.att-img:hover { transform: scale(1.01); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.pcard-banner.zoomable, .pcard-avatar.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 700; background: rgba(3, 4, 10, 0); display: flex; flex-direction: column; transition: background .18s; }
.lightbox.in { background: rgba(3, 4, 10, .92); }
.lb-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; opacity: 0; transform: translateY(-8px); transition: opacity .18s, transform .18s; }
.lightbox.in .lb-top { opacity: 1; transform: none; }
html.desktop .lb-top { margin-top: 32px; }
.lb-info { display: flex; flex-direction: column; min-width: 0; color: #fff; }
.lb-name { font-weight: 600; font-size: 14px; }
.lb-count { font-size: 12px; color: var(--muted); }
.lb-tools { display: flex; align-items: center; gap: 6px; }
.lb-btn { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--ink-rgb), .1); color: #fff; text-decoration: none; font-size: 18px; transition: background .15s; }
.lb-btn:hover { background: rgba(var(--ink-rgb), .2); }
.lb-btn.close { background: rgba(var(--ink-rgb), .16); }
.lb-zoom { min-width: 48px; text-align: center; font-size: 12px; font-weight: 700; color: var(--text2); font-variant-numeric: tabular-nums; }
.lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; cursor: zoom-out; }
.lb-stage.zoomed { cursor: grab; }
.lb-stage.zoomed:active { cursor: grabbing; }
.lb-img { max-width: calc(100% - 120px); max-height: calc(100% - 40px); object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transform-origin: center; transition: transform .12s ease-out, opacity .2s; user-select: none; cursor: default; opacity: 0; }
.lightbox.in .lb-img { opacity: 1; }
.lightbox.loading .lb-img { opacity: .2; }
.lb-stage.zoomed .lb-img { transition: none; cursor: inherit; }
.lb-nav { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(var(--ink-rgb), .1); color: #fff; transition: background .15s; }
.lb-nav:hover { background: rgba(var(--ink-rgb), .22); }
.lb-nav.prev { left: 16px; } .lb-nav.prev svg { transform: rotate(180deg); }
.lb-nav.next { right: 16px; }
@media (max-width: 760px) { .lb-img { max-width: 100%; } .lb-nav { display: none; } }
.badge-hint { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 4px 0 12px; border-radius: 14px; font-size: 13px; color: var(--text2); background: rgba(16, 185, 129, .08); border: 1px dashed rgba(16, 185, 129, .4); }
.badge-hint.have { border-style: solid; color: var(--c-mint-a7f3d0); }
.badge-hint:not(.have) .badge-ic { filter: grayscale(.6) opacity(.75); }
.rail-voice { position: absolute; left: -4px; bottom: -4px; z-index: 2; display: inline-flex; align-items: center; gap: 2px; height: 20px; min-width: 20px; padding: 0 5px; border-radius: 10px; background: #10b981; color: #fff; border: 2px solid var(--space-1); font-size: 10px; box-shadow: 0 0 10px rgba(16, 185, 129, .55); }
.rail-voice b { font-weight: 800; }
.rail-voice.me { background: linear-gradient(135deg, #10b981, #22d3ee); }
.mem-vc { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: #34d399; min-width: 0; }

/* ---------------------------------------------------------------- Geräuschunterdrückung */
.ns-box .set-sub { display: flex; align-items: center; gap: 6px; }
.ns-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 16px; }
.ns-mode { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--edge); background: rgba(var(--ink-rgb), .03); color: var(--text2); transition: border-color .15s, background .15s, transform .15s; }
.ns-mode:hover:not(:disabled) { border-color: color-mix(in srgb, var(--accent) 50%, transparent); transform: translateY(-1px); }
.ns-mode:disabled { opacity: .45; cursor: not-allowed; }
.ns-mode strong { color: var(--text); font-size: 14px; }
.ns-mode small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.ns-mode.on { border-color: var(--accent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent-2) 8%, transparent)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent) inset; }
.ns-mode-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(var(--ink-rgb), .06); margin-bottom: 4px; color: var(--c-violet-c4b5fd); }
.ns-mode.on .ns-mode-ic { background: linear-gradient(135deg, var(--accent), #22d3ee); color: #fff; }
.ns-rec { position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: rgba(34, 197, 94, .18); color: var(--c-mint-4ade80); }
.ns-box .check small.block { display: block; margin-top: 2px; }
.ns-meter { position: relative; height: 12px; border-radius: 99px; background: rgba(var(--ink-rgb), .06); overflow: hidden; margin: 12px 0 10px; border: 1px solid var(--edge); }
.ns-meter-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #f59e0b, #facc15); transition: width .06s linear; border-radius: 99px; }
.ns-meter.open .ns-meter-fill { background: linear-gradient(90deg, #22c55e, #4ade80); }
.ns-meter-mark { position: absolute; top: -2px; bottom: -2px; width: 3px; margin-left: -1px; background: #fff; border-radius: 2px; box-shadow: 0 0 6px rgba(var(--ink-rgb), .7); transition: left .3s; }
.ns-range { width: 100%; margin-top: 6px; }
.ns-test { align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.ns-test .btn.on { border-color: var(--accent); color: #fff; }
.icon-btn.ns-btn.on { color: var(--c-mint-4ade80); }
@media (max-width: 640px) { .ns-modes { grid-template-columns: 1fr; } .ns-rec { top: 14px; } }

/* Sound-Pakete & Klingeltöne */
.pack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 4px; }
.pack-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--edge); background: rgba(var(--ink-rgb), .03); text-align: left; color: var(--text2); transition: border-color .15s, transform .15s; }
.pack-btn:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); transform: translateY(-1px); }
.pack-btn.on { border-color: var(--accent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent-2) 8%, transparent)); }
.pack-btn strong { color: var(--text); font-size: 13.5px; }
.pack-btn small { color: var(--muted); font-size: 11.5px; }
.pack-emoji { font-size: 20px; line-height: 1; margin-bottom: 4px; }
@media (max-width: 640px) { .pack-grid { grid-template-columns: repeat(2, 1fr); } }

/* Voice-Leiste: Info oben, Knöpfe darunter (passt auch mit vielen Knöpfen) */
.voicebar { flex-wrap: wrap; padding: 10px 10px 8px 14px; }
.vb-info { flex: 1 1 100%; }
.vb-status { white-space: nowrap; }
.vb-actions { display: flex; align-items: center; justify-content: space-between; gap: 4px; width: 100%; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(52, 211, 153, .15); }
.vb-actions .icon-btn { flex: 1; height: 34px; border-radius: 10px; }
.vb-actions .icon-btn:hover { background: rgba(var(--ink-rgb), .06); }
.voicebar .vb-live { flex: 1 1 100%; }

/* Toasts: nie „Kreis-Blasen“ bei langem Text; am Handy oben statt über dem Eingabefeld */
#toasts { width: max-content; max-width: min(92vw, 520px); }
.toast { border-radius: 16px; line-height: 1.4; text-align: center; }
@media (max-width: 760px) {
  #toasts { bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 66px); }
  .toast { font-size: 13.5px; padding: 10px 16px; }
}

/* Tabellenzeilen (Admin-Nutzer, Mitglieder) am Handy: Knöpfe unter den Text statt daneben */
@media (max-width: 760px) {
  .mem-trow { flex-wrap: wrap; row-gap: 8px; }
  .mem-trow > .grow { min-width: 0; flex: 1 1 calc(100% - 60px); }
  .mem-trow > .grow .muted.small { word-break: break-word; }
  .mem-trow > .row.gap { flex: 1 1 100%; flex-wrap: wrap; padding-left: 48px; gap: 6px; }
  .mem-trow > .row.gap .btn { flex: 0 0 auto; }
}

/* Touch-Geräte: Aktionen nur nach Antippen (Klasse .acts), nicht über :hover */
@media (hover: none) {
  .msg:hover .msg-actions, .msg:focus-within .msg-actions { display: none; }
  .msg.acts .msg-actions { display: flex; }
  .msg.acts .msg-text { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent); }
}

/* Schwebende Voice-Leiste (nur Handy) */
.vpill { display: none; }
@media (max-width: 760px) {
  .vpill { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 62px); display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 999px; background: rgba(10, 32, 26, .92); border: 1px solid rgba(52, 211, 153, .35); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); max-width: calc(100vw - 32px); }
  .shell.nav-open ~ .vpill, html:has(.shell.nav-open) .vpill, html:has(.modal-backdrop) .vpill { display: none; }
  .vp-where { display: flex; align-items: center; gap: 6px; color: var(--c-mint-a7f3d0); font-weight: 600; font-size: 13px; min-width: 0; max-width: 46vw; }
  .vp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; opacity: .6; }
  .vp-dot.on { opacity: 1; box-shadow: 0 0 0 3px rgba(52, 211, 153, .35); }
  .vp-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--text2); background: rgba(var(--ink-rgb), .06); }
  .vp-btn.off { color: var(--c-rose-fca5a5); background: rgba(239, 68, 68, .15); }
  .vp-btn.hang { color: #fff; background: #ef4444; }
}

/* ================================================================ Startseite (Landing) */
.landing-root { height: 100%; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.landing { max-width: 1180px; margin: 0 auto; padding: 0 28px 40px; position: relative; }
.landing::before { content: ''; position: fixed; inset: 0; z-index: -1; background:
  radial-gradient(60% 50% at 78% 18%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
  radial-gradient(40% 40% at 10% 90%, color-mix(in srgb, var(--accent-2) 8%, transparent), transparent 70%), var(--space-0); }
.ln-nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 16px; }
.ln-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--text); text-decoration: none; }
.ln-links { display: flex; align-items: center; gap: 18px; }
.ln-links > a:not(.btn) { color: var(--text2); text-decoration: none; font-weight: 500; font-size: 15px; }
.ln-links > a:not(.btn):hover { color: var(--text); }
.ln-links .lang-select { width: auto; padding: 7px 30px 7px 12px; font-size: 14px; }
.btn.lg { padding: 14px 24px; font-size: 16px; border-radius: 14px; }

.ln-hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; min-height: min(74vh, 680px); padding: 20px 0 60px; }
.ln-hero h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 22px; max-width: 12ch; text-wrap: balance; }
.ln-lead { font-size: 19px; line-height: 1.55; color: var(--text2); max-width: 54ch; margin: 0 0 30px; }
.ln-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ln-cta.center { justify-content: center; }
.ln-note { margin-top: 14px; }

/* Planetensystem */
.orbit-scene { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.os-glow { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), color-mix(in srgb, var(--accent-2) 12%, transparent) 55%, transparent 72%); filter: blur(10px); }
.os-planet { position: absolute; inset: 0; display: grid; place-items: center; }
.os-planet svg { filter: drop-shadow(0 18px 50px color-mix(in srgb, var(--accent) 55%, transparent)); }
.os-ring { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(196, 181, 253, .16); border-radius: 50%; translate: -50% -50%; animation: os-spin var(--d) linear infinite var(--delay, 0s); }
.os-ring.r1 { width: 56%; height: 56%; --d: 38s; --delay: -24s; }
.os-ring.r2 { width: 78%; height: 78%; --d: 56s; --delay: -6s; animation-name: os-spin-rev; }
.os-ring.r3 { width: 98%; height: 98%; --d: 74s; --delay: -48s; }
.os-ring.r2.late { border-color: transparent; --delay: -34s; }
.os-rider { position: absolute; left: 50%; top: 0; translate: -50% -50%; }
/* Gegendrehung, damit die Elemente aufrecht bleiben */
.os-counter { animation: os-spin-rev var(--d) linear infinite var(--delay, 0s); }
.os-ring.r2 .os-counter { animation-name: os-spin; }
@keyframes os-spin { from { rotate: 0deg; } to { rotate: 360deg; } }
@keyframes os-spin-rev { from { rotate: 0deg; } to { rotate: -360deg; } }
.os-item { white-space: nowrap; font-size: 14px; font-weight: 600; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); }
.os-bubble { padding: 9px 14px; border-radius: 16px 16px 16px 4px; background: linear-gradient(135deg, var(--accent), #6d5df5); color: #fff; }
.os-voice { display: flex; align-items: center; gap: 6px; padding: 8px 12px 8px 8px; border-radius: 999px; background: rgba(12, 30, 26, .92); border: 1px solid rgba(52, 211, 153, .35); color: var(--c-mint-a7f3d0); }
.os-voice small { font-size: 12.5px; margin-left: 4px; }
.os-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: #5b4bd6; }
.os-av.b { background: #0e7490; }
.os-av.speaking { box-shadow: 0 0 0 2px #0a1d18, 0 0 0 4px #34d399; }
.os-live { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: #e11d48; color: #fff; letter-spacing: .02em; }
.os-live i { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.os-react { padding: 7px 12px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--edge-strong); color: var(--text); }
@media (prefers-reduced-motion: reduce) { .os-ring, .os-counter { animation: none !important; } }

/* Kostenlos-Liste: eine ruhige Tabelle statt Karten */
.ln-free { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; padding: 70px 0; border-top: 1px solid var(--edge); }
.ln-free h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 14px; max-width: 16ch; }
.ln-free-head p { font-size: 16.5px; line-height: 1.6; max-width: 40ch; }
.ln-free-list { display: grid; grid-template-columns: auto 1fr; margin: 0; }
.ln-free-list dt, .ln-free-list dd { padding: 16px 0; border-bottom: 1px solid var(--edge); margin: 0; font-size: 16px; }
.ln-free-list dt { font-weight: 600; color: var(--text); padding-right: 28px; white-space: nowrap; }
.ln-free-list dd { color: var(--text2); }
.ln-free-list dd::before { content: '✓'; color: var(--ok); font-weight: 700; margin-right: 10px; }

/* Funktions-Zeilen mit kleinen App-Ausschnitten */
.ln-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; }
.ln-row.flip .ln-row-text { order: 2; }
.ln-row h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 14px; max-width: 20ch; }
.ln-row p { font-size: 16.5px; line-height: 1.65; max-width: 48ch; }
.ln-row-visual { display: flex; justify-content: center; }
.mock { width: min(420px, 100%); border-radius: 20px; background: linear-gradient(180deg, rgba(var(--panel-rgb), .95), rgba(var(--panel-rgb), .95)); border: 1px solid var(--edge-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); padding: 18px; }
.mv-head { display: flex; align-items: center; gap: 8px; color: var(--ok); margin-bottom: 10px; font-size: 15px; }
.mv-user { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--text2); font-weight: 500; }
.mv-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: hsl(var(--h, 260) 65% 55%); flex: none; }
.mv-user.talk .mv-av { box-shadow: 0 0 0 2px #121427, 0 0 0 4px var(--ok); }
.mv-muted { margin-left: auto; color: var(--c-rose-fca5a5); }
.mv-ns { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 12px; border-radius: 12px; background: rgba(52, 211, 153, .08); color: var(--c-mint-6ee7b7); font-size: 13.5px; font-weight: 600; }
.ml-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; background:
  linear-gradient(160deg, rgba(10, 12, 24, .2), rgba(10, 12, 24, .7)),
  radial-gradient(80% 90% at 30% 30%, #7c3aed, transparent 60%), radial-gradient(70% 80% at 80% 70%, #0891b2, transparent 60%), #0b0d1c; }
.ml-tag { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; background: #e11d48; color: #fff; font-size: 12px; font-weight: 700; }
.ml-tag i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.ml-q { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; }
.ml-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.ml-foot span:nth-child(2) { display: flex; flex-direction: column; }
.ml-foot small { color: var(--muted); }
.ml-view { margin-left: auto; color: var(--text2); font-size: 14px; }
.ms-line { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; font-size: 14.5px; font-weight: 500; }
.ms-line + .ms-line { margin-top: 8px; }
.ms-line.ok { background: rgba(52, 211, 153, .08); color: var(--c-mint-a7f3d0); }
.ms-line.warn { background: rgba(251, 191, 36, .08); color: var(--c-amber-fde68a); }
.md-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.md-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(var(--ink-rgb), .15); }
.md-body { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(var(--ink-rgb), .04); }
.md-body div { display: flex; flex-direction: column; gap: 2px; }
.md-body small { color: var(--ok); font-weight: 600; }

.ln-final { text-align: center; padding: 80px 0 60px; border-top: 1px solid var(--edge); display: flex; flex-direction: column; align-items: center; }
.ln-final h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.025em; margin: 18px 0 10px; }
.ln-final p { font-size: 17px; margin: 0 0 26px; }
.ln-foot { display: flex; gap: 22px; justify-content: center; padding: 26px 0 10px; color: var(--muted); font-size: 14px; }
.ln-foot a { color: var(--muted); }

@media (max-width: 900px) {
  .landing { padding: 0 18px 30px; }
  .ln-links > a:not(.btn):not(.ln-login) { display: none; }
  .ln-hero { grid-template-columns: 1fr; text-align: left; min-height: 0; padding: 10px 0 30px; gap: 10px; }
  .orbit-scene { max-width: 400px; order: -1; margin: 0 auto; width: 92%; }
  .os-item { font-size: 12.5px; }
  .ln-free, .ln-row { grid-template-columns: 1fr; gap: 24px; padding: 44px 0; }
  .ln-row.flip .ln-row-text { order: 0; }
  .ln-free-list dt { white-space: normal; padding-right: 16px; }
}
@media (max-width: 520px) {
  .ln-links .lang-select { display: none; }
  .ln-links { gap: 12px; }
  .ln-lead { font-size: 17px; }
  .ln-cta .btn { flex: 1 1 100%; justify-content: center; }
  .ln-free-list { grid-template-columns: 1fr; }
  .ln-free-list dt { border-bottom: 0; padding-bottom: 2px; }
  .ln-free-list dd { padding-top: 0; }
}

/* Öffentliche Einladungsseite */
.inv-page { min-height: 100vh; display: flex; flex-direction: column; }
.inv-wrap { flex: 1; display: grid; place-items: center; padding: 20px 0 60px; }
.inv-box { width: min(440px, 100%); display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 24px; background: var(--glass-strong); border: 1px solid var(--edge-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); text-align: center; align-items: stretch; }
.inv-box .big-icon { margin: 6px auto; }
.inv-box .spreview { text-align: left; }
.auth-invite { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 10px; color: var(--c-violet-c4b5fd); }
.auth-home { display: block; text-align: center; margin-top: 14px; color: var(--muted); font-size: 14px; }

/* Willkommen-Dialog */
.modal-welcome { max-width: 540px; }
.welcome h2 { font-size: 26px; margin-top: 6px; }
.wl-steps { display: flex; gap: 6px; }
.wl-steps i { width: 26px; height: 4px; border-radius: 4px; background: rgba(var(--ink-rgb), .12); }
.wl-steps i.on { background: var(--grad); }
.wl-profile { display: flex; gap: 20px; align-items: flex-start; margin: 18px 0 8px; }
.wl-avatar-btn { position: relative; flex: none; border-radius: 50%; }
.wl-avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; }
.wl-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wl-avatar span { width: 100%; height: 100%; display: grid; place-items: center; font-size: 32px; font-weight: 700; color: #fff; font-family: var(--font-display); }
.wl-cam { position: absolute; right: 0; bottom: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; border: 3px solid var(--space-1); }
.wl-colors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.wl-color { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; }
.wl-color.on { box-shadow: 0 0 0 2px var(--space-1), 0 0 0 4px #fff; }
.wl-opts { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 6px; }
.wl-opt { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--glass-soft); border: 1px solid var(--edge); text-align: left; color: var(--text2); }
.wl-opt:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: var(--glass-hover); }
.wl-opt strong { display: block; color: var(--text); font-size: 15px; }
.wl-opt small { color: var(--muted); }
.wl-opt-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--c-violet-c4b5fd); flex: none; }
@media (max-width: 520px) { .wl-profile { flex-direction: column; align-items: center; } .wl-profile .grow { width: 100%; } }

/* Erste Schritte (Startseite) */
.onboard { width: min(560px, 100%); margin: 6px auto 22px; padding: 18px 18px 10px; border-radius: 20px; background: var(--glass-soft); border: 1px solid var(--edge-strong); text-align: left; }
.ob-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ob-head h3 { margin: 0; font-size: 17px; }
.ob-head p { margin: 2px 0 0; }
.ob-bar { height: 6px; border-radius: 6px; background: rgba(var(--ink-rgb), .08); margin: 12px 0 8px; overflow: hidden; }
.ob-bar i { display: block; height: 100%; background: var(--grad); border-radius: 6px; transition: width .4s; }
.ob-list { list-style: none; margin: 0; padding: 0; }
.ob-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; text-align: left; color: var(--text2); }
.ob-item:hover:not(:disabled) { background: var(--glass-hover); }
.ob-item strong { display: block; color: var(--text); font-size: 14.5px; font-weight: 600; }
.ob-item small { color: var(--muted); font-size: 12.5px; }
.ob-item.done strong { color: var(--muted); text-decoration: line-through; }
.ob-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--edge-strong); display: grid; place-items: center; flex: none; }
.ob-item.done .ob-check { background: var(--ok); border-color: var(--ok); color: #052e1f; }
/* Planeten-Animation ist billig (nur Drehung auf der GPU) → auch im Leistungsmodus an; „Bewegung reduzieren“ hat Vorrang */
html.perf .orbit-scene .os-ring { animation: os-spin var(--d) linear infinite var(--delay, 0s) !important; }
html.perf .orbit-scene .os-ring.r2 { animation-name: os-spin-rev !important; }
html.perf .orbit-scene .os-counter { animation: os-spin-rev var(--d) linear infinite var(--delay, 0s) !important; }
html.perf .orbit-scene .os-ring.r2 .os-counter { animation-name: os-spin !important; }
@media (prefers-reduced-motion: reduce) { html .landing .orbit-scene .os-ring, html .landing .orbit-scene .os-ring .os-counter { animation: none !important; } }
@media (max-width: 520px) {
  .orbit-scene { width: 74%; max-width: 300px; margin: 18px auto 10px; }
  .os-item { font-size: 11.5px; }
  .os-bubble, .os-react { padding: 6px 10px; }
  .os-live { padding: 6px 10px; }
  .os-voice { padding: 5px 9px 5px 5px; gap: 4px; }
  .os-av { width: 22px; height: 22px; font-size: 9.5px; }
  .os-planet svg { width: 96px; height: 96px; }
}
.md-body small { display: flex; align-items: center; gap: 5px; }

/* ================================================================ Threads */
.thread-rows { display: flex; flex-direction: column; margin: 0 0 4px 22px; }
.thread-row { display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 4px; border-radius: 9px; color: var(--muted); font-size: 13.5px; text-align: left; min-width: 0; }
.thread-row:hover { background: var(--glass-hover); color: var(--text2); }
.thread-row.active { background: var(--glass-active); color: var(--text); }
.thread-row.unread { color: var(--text); font-weight: 600; }
.thread-branch { width: 12px; height: 12px; flex: none; border-left: 2px solid var(--edge-strong); border-bottom: 2px solid var(--edge-strong); border-bottom-left-radius: 7px; margin-top: -7px; }
.crumb { display: flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; min-width: 0; max-width: 30%; }
.crumb:hover { color: var(--text); }
.crumb-sep { color: var(--muted); margin: 0 2px; }
.thread-chip { display: inline-flex; align-items: center; gap: 8px; max-width: min(100%, 420px); margin-top: 6px; padding: 7px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); color: var(--c-violet-c4b5fd); text-align: left; }
.thread-chip strong { color: var(--text); font-weight: 600; min-width: 0; }
.thread-chip:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.thread-intro .thread-starter { width: min(520px, 100%); margin-top: 10px; text-align: left; }
.thread-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.thread-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--glass-soft); border: 1px solid var(--edge); text-align: left; color: var(--text2); min-width: 0; }
.thread-item:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.thread-item strong { display: block; color: var(--text); }
.thread-item small { color: var(--muted); }
.thread-item.archived { opacity: .7; }
.thread-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--c-violet-c4b5fd); flex: none; }

/* Pins, Lesezeichen, Suche: kompakte Nachrichten */
.mini-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-height: min(62vh, 640px); overflow-y: auto; padding-right: 2px; }
.mini-msg { padding: 10px 12px; border-radius: 14px; background: var(--glass-soft); border: 1px solid var(--edge); }
.mini-place { font-size: 12.5px; color: var(--text2); margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.mini-place svg { vertical-align: -2px; }
.mini-row { display: flex; gap: 10px; align-items: flex-start; }
.mini-main { min-width: 0; }
.mini-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mini-head strong { font-size: 14px; }
.mini-text { color: var(--text2); font-size: 14px; line-height: 1.45; margin-top: 2px; overflow-wrap: anywhere; }
.mini-text mark { background: rgba(251, 191, 36, .3); color: #fff; border-radius: 4px; padding: 0 2px; }
.mini-img { max-width: 220px; max-height: 140px; border-radius: 10px; margin-top: 6px; display: block; }
.mini-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.modal-search { max-width: 640px; width: 100%; }
.search-bar { display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 14px; background: rgba(var(--well-rgb), calc(.3 * var(--well-k))); border: 1px solid var(--edge-strong); margin: 4px 0 12px; color: var(--muted); }
.search-bar .input { border: 0; background: transparent; padding-left: 0; box-shadow: none; }
.search-modal .seg { margin-bottom: 10px; }
.search-modal .seg-btn { min-width: 0; }
.search-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--edge-strong); color: var(--text2); font-size: 13px; }
.chip.on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: #fff; }
.search-status { padding: 6px 2px; min-height: 18px; }
.search-more { align-self: center; margin: 4px 0; }
.empty-state.small { padding: 30px 10px; }
.jump-bar { position: absolute; left: 50%; transform: translateX(-50%); bottom: 96px; z-index: 5; display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.msg.is-pinned > .msg-body { position: relative; }
.pin-flag { color: #fbbf24; display: inline-flex; margin-left: 2px; }
.msg-actions .icon-btn.on { color: var(--c-violet-c4b5fd); }
@media (max-width: 760px) {
  .crumb { max-width: 28%; }
  .mini-list { max-height: none; }
  .jump-bar { bottom: 88px; max-width: calc(100vw - 32px); }
}
.thread-chip-row { grid-column: 2; display: flex; }
.msg.mine .thread-chip-row { justify-content: flex-end; }
.thread-chip .tc-meta { color: var(--muted); font-size: 12.5px; white-space: nowrap; }

/* ================================================================ Freunde */
.friends-head { gap: 10px; flex-wrap: nowrap; }
.ftabs { display: flex; gap: 4px; margin-left: 14px; overflow-x: auto; scrollbar-width: none; }
.ftabs::-webkit-scrollbar { display: none; }
.ftab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9px; color: var(--text2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.ftab:hover { background: var(--glass-hover); color: var(--text); }
.ftab.on { background: var(--glass-active); color: var(--text); }
.ftab.add { background: rgba(52, 211, 153, .14); color: var(--c-mint-6ee7b7); }
.ftab.add.on { background: transparent; color: var(--ok); }
.ftab .badge { position: static; }
.friends-body { flex: 1; overflow-y: auto; padding: 18px 24px 30px; }
.friends-sub { font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .02em; margin: 4px 0 10px; }
.friend-list { display: flex; flex-direction: column; }
.friend-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-top: 1px solid var(--edge); border-radius: 12px; }
.friend-row:hover { background: var(--glass-soft); border-top-color: transparent; }
.friend-row:hover + .friend-row { border-top-color: transparent; }
.friend-who { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; text-align: left; color: var(--text2); }
.friend-names { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.friend-names strong { color: var(--text); font-size: 15px; }
.friend-actions { display: flex; gap: 6px; }
.icon-btn.round { width: 38px; height: 38px; border-radius: 50%; background: var(--glass-soft); border: 1px solid var(--edge); }
.icon-btn.round.ok { color: var(--ok); }
.icon-btn.round:hover { background: var(--glass-hover); }
.add-friend { max-width: 640px; }
.add-friend h2 { font-size: 22px; margin-bottom: 4px; }
.add-friend-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 6px 6px 14px; border-radius: 14px; background: rgba(var(--well-rgb), calc(.3 * var(--well-k))); border: 1px solid var(--edge-strong); }
.add-friend-row:focus-within { border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.add-friend-row .input { border: 0; background: transparent; padding-left: 0; box-shadow: none; }
.af-at { color: var(--muted); font-weight: 600; }
.add-friend-msg { min-height: 20px; margin: 8px 2px; font-size: 14px; }
.add-friend-msg.ok { color: var(--ok); }
.add-friend-msg.err { color: var(--danger); }
.af-tip { display: flex; align-items: center; gap: 4px; margin-top: 18px; }
.btn.ok { background: rgba(52, 211, 153, .16); color: var(--c-mint-6ee7b7); border: 1px solid rgba(52, 211, 153, .4); }

/* Eigener Status */
.cs-row { display: flex; gap: 8px; align-items: center; margin: 6px 0 10px; }
.cs-emoji-btn { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: rgba(var(--well-rgb), calc(.3 * var(--well-k))); border: 1px solid var(--edge-strong); color: var(--muted); }
.cs-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pcard-cstatus { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin: 2px 0 8px; padding: 7px 12px; border-radius: 14px 14px 14px 4px; background: var(--glass-soft); border: 1px solid var(--edge); color: var(--text2); font-size: 14px; overflow-wrap: anywhere; }
.pcard-cstatus .cs-emoji { font-size: 16px; }
.act-line.act-cstatus { color: var(--text2); }
.sp-opt.sp-custom { margin-top: 2px; }
.sp-cs-ic { width: 22px; height: 22px; display: grid; place-items: center; font-size: 16px; color: var(--muted); flex: none; }
@media (max-width: 760px) {
  .friends-head { flex-wrap: wrap; }
  .ftabs { margin-left: 0; width: 100%; order: 3; padding-bottom: 2px; }
  .friends-body { padding: 14px 14px 24px; }
}
.thread-chip-row { max-width: 100%; min-width: 0; }
.thread-chip { min-width: 0; }
.thread-chip strong { flex: 0 1 auto; }
.composer-input { text-overflow: ellipsis; }
@media (max-width: 760px) {
  .thread-chip .tc-meta { display: none; }
  .msg .thread-chip-row { max-width: calc(100vw - 110px); }
  .main-head.friends-head { height: auto; min-height: 56px; padding-top: 8px; padding-bottom: 8px; row-gap: 8px; }
}

/* ================================================================ Vorlagen & Discover */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 12px 0 14px; }
.tpl-card { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px; border-radius: 16px; background: var(--glass-soft); border: 1px solid var(--edge); text-align: left; color: var(--text2); transition: border-color .15s, transform .15s; }
.tpl-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-1px); }
.tpl-card.blank { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent-2) 6%, transparent)); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.tpl-card strong { color: var(--text); font-size: 15px; }
.tpl-card small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.tpl-emoji { font-size: 26px; line-height: 1; margin-bottom: 6px; }
.tpl-copy { margin-top: 4px; }
.tpl-copy-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tpl-copy-item { display: inline-flex; align-items: center; gap: 8px; max-width: 220px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--edge-strong); color: var(--text2); }
.tpl-copy-item:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--text); }
.discover .disc-top { display: flex; gap: 10px; align-items: center; margin: 4px 0 10px; }
.discover .disc-top .search-bar { margin: 0; }
.disc-sort { width: auto; flex: none; }
.disc-cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.disc-cats .chip { flex: none; }
.chip-n { margin-left: 6px; font-size: 11.5px; padding: 0 6px; border-radius: 99px; background: rgba(var(--ink-rgb), .08); color: var(--muted); }
.chip.on .chip-n { background: rgba(var(--ink-rgb), .2); color: #fff; }
.disc-tagbar { display: flex; gap: 6px; min-height: 0; margin-bottom: 6px; }
.disc-banner { position: relative; }
.disc-cat { position: absolute; right: 10px; top: 10px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: rgba(var(--well-rgb), calc(.45 * var(--well-k))); color: #fff; backdrop-filter: blur(6px); }
.disc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 2px; }
.disc-tag { font-size: 12px; color: var(--c-indigo-a5b4fc); padding: 1px 7px; border-radius: 6px; background: rgba(99, 102, 241, .12); }
.disc-tag:hover { background: rgba(99, 102, 241, .25); }
.disc-stats { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text2); }
.act-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.act-dot.hot { background: #f97316; box-shadow: 0 0 8px #f97316; }
.act-dot.active { background: var(--ok); }
.act-dot.some { background: #facc15; }
.tags-edit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px; border-radius: 12px; background: rgba(var(--well-rgb), calc(.3 * var(--well-k))); border: 1px solid var(--edge-strong); min-height: 44px; }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px 3px 10px; border-radius: 99px; background: rgba(99, 102, 241, .18); color: var(--c-indigo-c7d2fe); font-size: 13px; }
.tag-chip button { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: inherit; }
.tag-chip button:hover { background: rgba(var(--ink-rgb), .15); }
.tag-input { flex: 1; min-width: 140px; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; padding: 4px; }
@media (max-width: 640px) { .tpl-grid { grid-template-columns: 1fr 1fr; } .discover .disc-top { flex-wrap: wrap; } .disc-sort { width: 100%; } }

/* ================================================================ Moderation */
.am-box { margin: 18px 0; padding: 18px; border-radius: 18px; background: var(--glass-soft); border: 1px solid var(--edge-strong); }
.am-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; color: var(--c-violet-c4b5fd); }
.am-head h3 { margin: 0; color: var(--text); }
.am-head p { margin: 2px 0 0; }
.am-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--edge-strong); font-size: 13px; color: var(--text2); cursor: pointer; }
.chip-check i { width: 10px; height: 10px; border-radius: 50%; }
.chip-check:has(input:checked) { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: #fff; }
.mem-filters { display: flex; gap: 8px; margin-bottom: 8px; }
.mem-filters .mem-joined { width: auto; flex: none; }
.bulk-bar { display: flex; align-items: center; gap: 10px; padding: 8px 4px; min-height: 40px; }
.mem-pick { width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.mem-trow.picked { border-color: rgba(255, 92, 122, .5); background: rgba(255, 92, 122, .06); }
.audit-filters { display: flex; gap: 8px; margin: 10px 0 12px; }
.audit-filters .input { width: auto; }
.audit-list { display: flex; flex-direction: column; gap: 6px; }
.audit-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--glass-soft); border: 1px solid var(--edge); }
.audit-ic { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--c-violet-c4b5fd); }
.audit-ic.bad { background: rgba(255, 92, 122, .14); color: var(--c-rose-fda4af); }
.audit-ic.auto { background: rgba(52, 211, 153, .14); color: var(--c-mint-6ee7b7); }
.audit-av.sys { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(52, 211, 153, .18); color: var(--c-mint-6ee7b7); flex: none; }
.audit-line { color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.audit-extra { overflow-wrap: anywhere; }
.audit-time { white-space: nowrap; }
.audit-more { align-self: center; margin-top: 6px; }
@media (max-width: 640px) { .mem-filters, .audit-filters { flex-direction: column; } .audit-filters .input, .mem-filters .mem-joined { width: 100%; } .audit-row { align-items: flex-start; flex-wrap: wrap; } .audit-time { width: 100%; padding-left: 80px; } }

/* ---------- Benachrichtigungs-Stufen & Stummschalten ---------- */
.popmenu-head { padding: 6px 10px 4px; font-size: 12px; font-weight: 700; color: var(--muted); max-width: 240px; }
.popmenu-item.on { color: var(--accent); }
.popmenu-ic-blank { width: 16px; flex: 0 0 16px; }
.ch-row.ch-muted .ch-main { opacity: .45; }
.ch-row.ch-muted:hover .ch-main, .ch-row.ch-muted.active .ch-main { opacity: .8; }
.ch-mute-ic { margin-left: auto; display: inline-flex; opacity: .7; }
.ch-badge { position: static; transform: none; box-shadow: none; border: 0; margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--danger, #ef4444); color: #fff; font-weight: 700; }
.ch-badge + .ch-mute-ic { margin-left: 4px; }
.rail-item.muted .rail-btn { opacity: .55; }
.rail-item.muted:hover .rail-btn { opacity: 1; }
.rail-muted { position: absolute; left: -3px; top: -3px; width: 18px; height: 18px; border-radius: 50%; background: var(--space-1); display: grid; place-items: center; color: var(--muted); pointer-events: none; }
.icon-btn.muted-on { color: var(--muted); opacity: .8; }
.notif-levels { display: grid; gap: 8px; margin: 4px 0 14px; }
.notif-level { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--edge-strong); cursor: pointer; }
.notif-level.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.notif-level input { margin-top: 3px; accent-color: var(--accent); }
.notif-level span { display: grid; gap: 2px; }
.notif-level small, .check small.block { color: var(--muted); font-size: 12px; display: block; }
.dm-row.ch-muted .dm-names { opacity: .5; }
.mem-pick:disabled { visibility: hidden; }

/* ---------- Darstellung: Schriftgröße, Sterne aus, kompakt ---------- */
.msg-text { font-size: var(--msg-size); }
.msg-text.jumbo { font-size: calc(var(--msg-size) * 2.6); }
html.no-stars body::before { display: none; }
html.no-stars body::after { opacity: .45; }
html.compact .msg { margin-top: 8px; }
html.compact .msg.grouped { margin-top: 1px; }
html.compact .msg.has-reply { margin-top: 12px; }
html.compact .msg-body { padding: 5px 12px; }
html.compact .msg-head { padding-bottom: 2px; }
html.compact .msg-avatar { transform: scale(.82); transform-origin: top center; }

/* ---------- Darstellung-Tab ---------- */
.ap-preview { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: var(--space-0); border: 1px solid var(--edge-strong); margin: 6px 0 18px; position: relative; overflow: hidden; }
.ap-preview::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 0% 0%, var(--neb-1), transparent 70%), radial-gradient(60% 80% at 100% 100%, var(--neb-2), transparent 70%); pointer-events: none; }
.ap-msg { position: relative; display: flex; gap: 10px; align-items: flex-start; }
.ap-msg.mine { flex-direction: row-reverse; }
.ap-msg-col { display: grid; gap: 3px; min-width: 0; }
.ap-msg.mine .ap-msg-col { justify-items: end; }
.ap-msg-col strong { font-size: 13px; padding: 0 6px; }
.ap-bubble { padding: 8px 14px; border-radius: 6px 18px 18px 18px; background: rgba(var(--ink-rgb), .055); border: 1px solid var(--edge); }
.ap-bubble .msg-text { color: var(--text2); }
.ap-msg.mine .ap-bubble { border-radius: 18px 6px 18px 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 28%, transparent), color-mix(in srgb, var(--accent-2) 16%, transparent)); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.ap-msg.mine .ap-bubble .msg-text { color: var(--mine-text); }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.theme-card { display: grid; gap: 7px; padding: 6px; border-radius: 14px; border: 1px solid var(--edge); background: var(--glass-soft); text-align: left; transition: border-color .15s, transform .15s; }
.theme-card:hover { border-color: var(--edge-strong); }
.theme-card.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.theme-prev { position: relative; display: flex; gap: 5px; height: 66px; border-radius: 10px; overflow: hidden; padding: 6px; }
.theme-prev.split { padding: 0; gap: 0; }
.tp-half { flex: 1; }
.tp-sys { position: absolute; inset: 0; display: grid; place-items: center; color: #8b90ab; }
.tp-side { width: 26%; border-radius: 6px; display: grid; align-content: start; gap: 4px; padding: 5px 4px; }
.tp-side i { display: block; height: 4px; border-radius: 2px; background: rgba(128, 128, 160, .35); }
.tp-main { flex: 1; display: grid; align-content: center; gap: 5px; }
.tp-bubble { height: 10px; width: 70%; border-radius: 6px; }
.tp-bubble.me { justify-self: end; width: 58%; }
.tp-bubble.short { width: 40%; }
.theme-name { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; padding: 0 4px 2px; }
.theme-name svg { color: var(--accent); }
.accent-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.accent-sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), .15); transition: transform .12s; }
.accent-sw:hover { transform: scale(1.08); }
.accent-sw.on { border-color: var(--text); }
.accent-sw.def { width: auto; padding: 0 12px; border-radius: 17px; font-size: 12.5px; font-weight: 600; background: var(--glass-soft); color: var(--text2); }
.accent-custom { display: inline-flex; gap: 2px; padding: 3px; border-radius: 19px; border: 2px solid transparent; background: var(--glass-soft); }
.accent-custom.on { border-color: var(--text); }
.accent-custom .color-in { width: 28px; height: 28px; }
.ap-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; max-width: 420px; }
.ap-range { flex: 1; accent-color: var(--accent); }
.ap-val { min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }

/* ---------- Helles Theme: Feinschliff ---------- */
html[data-theme=light] :is(.gif-tab.active, .act-type.active, .seg-btn.on, .chip.on, .chip-check:has(input:checked), .ns-test .btn.on, .act-art.ph, .mini-text mark, .chip.on .chip-n) { color: var(--text); }
html[data-theme=light] .msg-text .mention { color: var(--accent); }
html[data-theme=light] .msg-text .mention.me { background: rgba(245, 158, 11, .18); }
html[data-theme=light] .msg.mentioned .msg-body { background: rgba(245, 158, 11, .1); }
html[data-theme=light] .msg-body { box-shadow: 0 1px 2px rgba(30, 34, 70, .06); }
html[data-theme=light] :is(.rail, .sidebar, .chat, .members) { box-shadow: 0 10px 30px rgba(30, 34, 70, .07); }
html[data-theme=light] .modal-backdrop { background: rgba(20, 24, 48, .38); }
html[data-theme=light] .spoiler { background: rgba(24, 28, 56, .75); }
html[data-theme=light] img.emoji-img, html[data-theme=light] .tw { filter: none; }

/* ---------- App installieren / Teilen ---------- */
.install-banner { position: fixed; z-index: 300; left: 10px; right: 10px; bottom: calc(88px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 18px; background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--edge-strong); box-shadow: var(--shadow); animation: ib-in .35s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes ib-in { from { transform: translateY(30px); opacity: 0; } }
.ib-logo { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--space-0); }
.ib-text { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.ib-text strong { font-size: 14px; }
.ib-text small { font-size: 12px; color: var(--muted); }
.ios-steps { list-style: none; padding: 0; margin: 4px 0 12px; display: grid; gap: 10px; counter-reset: st; }
.ios-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--glass-soft); border: 1px solid var(--edge); }
.ios-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.share-preview { padding: 10px 12px; margin-bottom: 10px; border-radius: 12px; background: rgba(var(--well-rgb), calc(.25 * var(--well-k))); border: 1px solid var(--edge); font-size: 13.5px; color: var(--text2); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 110px; overflow: auto; }
.share-list { display: grid; gap: 2px; margin-top: 10px; max-height: 50vh; overflow-y: auto; }
.share-list .field-label { margin: 8px 4px 4px; }
.share-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; text-align: left; min-width: 0; }
.share-row:hover { background: var(--glass-hover); }
/* Installierte App: kein Gummiband-Scrollen, kein Auswahl-Highlight beim Tippen */
@media (display-mode: standalone) {
  html, body { overscroll-behavior: none; }
  * { -webkit-tap-highlight-color: transparent; }
}

/* ---------- Admin-Panel ---------- */
.adm { max-width: 1120px; }
.adm-tab { display: flex; align-items: center; gap: 9px; }
.adm-tab svg { opacity: .75; flex: none; }
.adm-tab .badge.inline { margin-left: auto; }
.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.adm-head h2 { margin: 0; }
.adm-live { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 12px 16px; margin: 10px 0 14px; border-radius: 16px; background: var(--glass-soft); border: 1px solid var(--edge); }
.adm-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: adm-pulse 2s infinite; }
@keyframes adm-pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.adm-live-label { font-weight: 700; font-size: 12px; letter-spacing: .04em; color: var(--ok); margin-right: 4px; }
.adm-live-item { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.adm-live-item strong { color: var(--text); font-size: 16px; font-variant-numeric: tabular-nums; }
.adm-live-item.on svg { color: var(--ok); }
.adm-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 22px; }
.adm-kpi { position: relative; display: grid; gap: 3px; align-content: start; padding: 14px 16px; border-radius: 16px; background: var(--glass-soft); border: 1px solid var(--edge); text-align: left; min-width: 0; }
.adm-kpi.click { cursor: pointer; transition: border-color .15s, background .15s; }
.adm-kpi.click:hover { border-color: var(--edge-strong); background: var(--glass-hover); }
.adm-kpi-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.adm-kpi-val { font-family: var(--font-display); font-size: 28px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.adm-kpi-sub { font-size: 12px; color: var(--muted); line-height: 1.35; }
.adm-delta { position: absolute; top: 13px; right: 14px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.adm-delta.up { color: var(--ok); }
.adm-delta.down { color: var(--danger); }
.adm-meter { height: 5px; border-radius: 3px; background: rgba(var(--ink-rgb), .08); overflow: hidden; margin-top: 6px; }
.adm-meter i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.adm-meter.ok i { background: var(--ok); }
.adm-flag { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; text-align: left; cursor: pointer; }
.adm-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 10px; }
.adm-sec-head h3 { margin: 0; }
.adm-charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; margin-bottom: 10px; }
.adm-card { padding: 14px 16px; border-radius: 16px; background: var(--glass-soft); border: 1px solid var(--edge); min-width: 0; margin-bottom: 10px; }
.adm-charts .adm-card { margin: 0; }
.adm-chart-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; font-weight: 600; font-size: 14px; }
.adm-chart-head > span:first-child { flex: 1; min-width: 0; }
.adm-chart-head strong { font-family: var(--font-display); font-size: 19px; font-variant-numeric: tabular-nums; }
.adm-chart-box { position: relative; }
.adm-chart { position: relative; height: 120px; }
.adm-chart svg { display: block; overflow: visible; touch-action: pan-y; }
.adm-grid { stroke: rgba(var(--ink-rgb), .07); stroke-dasharray: 3 4; }
.adm-base { stroke: rgba(var(--ink-rgb), .16); }
.adm-bar { fill: var(--accent); }
.adm-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.adm-area { fill: color-mix(in srgb, var(--accent) 16%, transparent); }
.adm-col { fill: rgba(var(--ink-rgb), .06); }
.adm-cross { stroke: rgba(var(--ink-rgb), .3); stroke-dasharray: 3 3; }
.adm-dot { fill: var(--accent); stroke: var(--space-1); stroke-width: 2; }
.adm-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.adm-ymax { position: absolute; top: -2px; left: 0; font-size: 10.5px; color: var(--muted); pointer-events: none; }
.adm-tip { position: absolute; top: -8px; z-index: 3; display: grid; gap: 1px; padding: 6px 10px; border-radius: 10px; background: var(--glass-strong); border: 1px solid var(--edge-strong); box-shadow: var(--shadow); pointer-events: none; white-space: nowrap; transform: translateY(-100%); }
.adm-tip small { color: var(--muted); font-size: 11px; }
.adm-tip strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.adm-tip.heat-tip { transform: none; }
.adm-note { margin: 8px 0 0; }
.adm-heat-card { margin-bottom: 10px; }
.adm-heat { position: relative; display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; }
.adm-heat-hr { font-size: 10px; color: var(--muted); text-align: left; }
.adm-heat-day { font-size: 11.5px; color: var(--muted); align-self: center; }
.adm-heat-cell { aspect-ratio: 1; min-height: 10px; border-radius: 4px; background: color-mix(in srgb, var(--accent) calc(var(--v) * 100%), rgba(var(--ink-rgb), .05)); }
.adm-heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 8px; }
.adm-heat-legend .adm-heat-cell { width: 14px; min-height: 0; }
.adm-lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.adm-lists .adm-card { margin: 0; }
.adm-rank { display: grid; gap: 1px; }
.adm-rank-row { display: flex; align-items: center; gap: 9px; padding: 6px 6px; border-radius: 10px; text-align: left; min-width: 0; font-size: 13.5px; }
button.adm-rank-row:hover { background: var(--glass-hover); }
.adm-rank-row strong { font-variant-numeric: tabular-nums; }
.adm-rank-n { width: 16px; text-align: center; font-size: 12px; color: var(--muted); font-weight: 700; }
.adm-rank-row.is-banned { opacity: .55; }
.adm-faces { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-face { border-radius: 50%; }
.adm-face:hover { transform: translateY(-1px); }
.adm-voice-list { margin-top: 12px; }
.adm-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.adm-toolbar .input { flex: 1; min-width: 180px; }
.adm-toolbar .adm-sort { flex: 0 0 auto; width: auto; min-width: 170px; }
.adm-chips { margin-bottom: 8px; flex-wrap: wrap; }
.adm-count { margin: 4px 2px 8px; }
.adm-table { display: grid; gap: 2px; }
.adm-trow { display: grid; grid-template-columns: minmax(0, 1fr) 90px 70px 130px 120px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; text-align: left; width: 100%; }
button.adm-trow:hover { background: var(--glass-hover); }
.adm-thead { font-size: 11.5px; font-weight: 700; color: var(--muted); padding-top: 0; padding-bottom: 4px; }
.adm-trow.is-banned .adm-who-txt { opacity: .6; }
.adm-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.adm-who-txt { display: grid; min-width: 0; }
.adm-who-txt strong { display: flex; align-items: center; gap: 4px; }
.adm-num { font-variant-numeric: tabular-nums; font-size: 13.5px; }
.adm-on { color: var(--ok); font-weight: 600; }
.adm-flags { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.adm-who .adm-flags { flex: none; }
.adm-pill { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: rgba(var(--ink-rgb), .07); color: var(--text2); white-space: nowrap; }
button.adm-pill:hover { background: rgba(var(--ink-rgb), .12); }
.adm-pill.acc { background: var(--accent-soft); color: var(--accent); }
.adm-pill.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.adm-pill.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.adm-pill.bad { background: var(--danger-soft); color: var(--danger); white-space: normal; }
.adm-pill.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 500; }
.adm-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.adm-back { margin-bottom: 10px; }
.adm-hero { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 20px; background-color: var(--glass-soft); background-size: cover; background-position: center; border: 1px solid var(--edge); margin-bottom: 10px; overflow: hidden; }
.adm-hero[style*="background"]::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--deep-rgb), .92), rgba(var(--deep-rgb), .6)); }
.adm-hero > * { position: relative; }
.adm-hero.is-banned { border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.adm-hero-txt { display: grid; gap: 4px; min-width: 0; }
.adm-hero-txt h2 { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.adm-actions .spacer { flex: 1; }
.adm-minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 10px; }
.adm-mini { display: grid; padding: 10px 12px; border-radius: 14px; background: var(--glass-soft); border: 1px solid var(--edge); }
.adm-mini strong { font-family: var(--font-display); font-size: 20px; font-variant-numeric: tabular-nums; }
.adm-mini small { color: var(--muted); font-size: 12px; }
.adm-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.adm-grid2 .adm-card { margin-bottom: 0; }
.adm-grid2 + * , .adm-grid2 { margin-bottom: 10px; }
.adm-ip-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--edge); }
.adm-ip-row:last-child { border-bottom: 0; }
.adm-report-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--edge); font-size: 13.5px; }
.adm-report-row:last-child { border-bottom: 0; }
.adm-msgs { display: grid; gap: 6px; }
.adm-msg { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--glass-soft); border: 1px solid var(--edge); margin-bottom: 6px; }
.adm-msg-text { margin-top: 3px; color: var(--text2); overflow-wrap: anywhere; }
.adm-link { color: var(--accent-2); font-weight: 600; }
.adm-link:hover { text-decoration: underline; }
.adm-log { display: grid; gap: 0; }
.adm-log-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--edge); font-size: 13.5px; }
.adm-log-row:last-child { border-bottom: 0; }
.adm-log-ic { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.adm-person { display: inline-flex; align-items: center; gap: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chip-x { margin-left: 6px; font-size: 14px; line-height: 1; opacity: .7; }
@media (max-width: 760px) {
  .adm-trow { grid-template-columns: minmax(0, 1fr) 64px; }
  .adm-trow > :nth-child(3), .adm-trow > :nth-child(4) { display: none; }
  .adm-trow > :nth-child(5) { grid-column: 2; text-align: right; }
  .adm-trow > :nth-child(2) { display: none; }
  .adm-thead { display: none; }
  .adm-charts, .adm-lists { grid-template-columns: 1fr; }
  .adm-heat { grid-template-columns: 28px repeat(24, minmax(0, 1fr)); gap: 2px; }
  .adm-heat-hr { font-size: 8px; }
  .adm-hero { flex-direction: column; align-items: flex-start; }
}

/* ---------- Ankündigungs-Banner ---------- */
.ann-bar { position: relative; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 8px 14px; margin: 8px 8px 0; border-radius: 14px; font-size: 14px; font-weight: 500; background: color-mix(in srgb, var(--accent) 18%, var(--space-1)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); color: var(--text); }
.ann-bar.ann-warn { background: color-mix(in srgb, var(--warn) 18%, var(--space-1)); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.ann-bar.ann-success { background: color-mix(in srgb, var(--ok) 16%, var(--space-1)); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.ann-bar > svg { flex: none; }
.ann-text { flex: 1; min-width: 0; }
.ann-link { font-weight: 700; white-space: nowrap; }
body > .ann-bar { position: fixed; top: env(safe-area-inset-top); left: 0; right: 0; margin: 8px 8px 0; }
html.has-ann #app { height: calc(100% - var(--ann-h, 52px)); margin-top: var(--ann-h, 52px); }
.adm-tip[hidden] { display: none; }
.adm-kpi-label::first-letter { text-transform: uppercase; }
.adm-head { padding-right: 46px; }
.adm .seg-btn { white-space: nowrap; }
.adm-chart-head > span:first-child::first-letter { text-transform: uppercase; }
@media (max-width: 760px) {
  .adm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .adm-kpi { padding: 12px; }
  .adm-kpi-val { font-size: 22px; }
  .adm-delta { position: static; }
}

/* ---------- Schnellsuche, Tastenkürzel, Dateien, Ausgang ---------- */
.modal.qs { max-width: 560px; align-self: flex-start; margin-top: 12vh; }
.qs-modal { padding: 14px; }
.qs-input { font-size: 17px; padding: 13px 16px; }
.qs-list { display: grid; gap: 2px; margin-top: 10px; max-height: 50vh; overflow-y: auto; }
.qs-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; text-align: left; min-width: 0; }
.qs-item.sel { background: var(--glass-active); }
.qs-ic { width: 26px; height: 26px; display: grid; place-items: center; color: var(--muted); }
.qs-label { font-weight: 600; min-width: 0; }
.qs-sub { flex: 1; min-width: 0; color: var(--muted); font-size: 12.5px; }
.qs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text); flex: none; }
.qs-tips { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; padding: 0 4px; }
kbd { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--edge-strong); border-bottom-width: 2px; background: var(--glass-soft); font: 600 11.5px/1.5 var(--font); text-align: center; color: var(--text2); }
.keys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2px 24px; }
.keys-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--edge); font-size: 14px; }
.keys-combo { display: inline-flex; gap: 4px; flex: none; }
.draft-ic { display: inline-flex; color: var(--muted); margin-left: auto; }
.draft-ic + .badge, .draft-ic + .ch-mute-ic { margin-left: 4px; }
.pending-files { display: flex; gap: 8px; overflow-x: auto; padding: 8px 4px 6px; align-items: flex-end; }
.pending-file { position: relative; flex: none; width: 110px; display: grid; gap: 3px; padding: 6px; border-radius: 12px; background: var(--glass-soft); border: 1px solid var(--edge); }
.pending-file .pending-thumb { width: 100%; height: 70px; object-fit: cover; border-radius: 8px; }
.pending-ic { height: 70px; display: grid; place-items: center; color: var(--muted); border-radius: 8px; background: rgba(var(--well-rgb), calc(.25 * var(--well-k))); }
.pending-name { font-size: 12px; font-weight: 600; }
.pending-x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--danger); color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.pending-hint { align-self: center; padding: 0 6px; max-width: 160px; }
.upload-bar { position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; padding: 7px 12px; margin: 0 4px 6px; border-radius: 12px; background: var(--glass-soft); border: 1px solid var(--edge); font-size: 13px; }
.upload-fill { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--grad); transition: width .2s; }
.unsent-bar { display: flex; align-items: center; gap: 8px; margin: 3px 6px 0; font-size: 12px; color: var(--warn); flex-wrap: wrap; }
.unsent-bar button { color: var(--accent-2); font-weight: 600; font-size: 12px; }
.unsent-bar button:hover { text-decoration: underline; }
.msg.pending .msg-body { opacity: .65; }

/* ---------- Privatsphäre, Passkeys, Rechtliches ---------- */
.priv-opts { display: grid; gap: 6px; }
.priv-opt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--edge); cursor: pointer; }
.priv-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.priv-opt input { margin-top: 3px; accent-color: var(--accent); }
.priv-opt span { display: grid; gap: 1px; }
.priv-opt small { color: var(--muted); font-size: 12px; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 40%, transparent) !important; }
.pk-list { display: grid; gap: 6px; margin: 8px 0 12px; }
.pk-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--glass-soft); border: 1px solid var(--edge); }
.pk-row > svg { color: var(--accent); flex: none; }
.auth-extra { display: grid; gap: 10px; margin-top: 12px; justify-items: center; }
.auth-extra .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.auth-forgot { font-size: 13px; color: var(--muted); }
.legal { min-height: 100%; padding: 0 16px 60px; }
.legal-top { max-width: 820px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; flex-wrap: wrap; }
.legal-top .brand { display: inline-flex; align-items: center; gap: 10px; font: 700 20px var(--font-display); color: var(--text); text-decoration: none; }
.legal-top nav { display: flex; gap: 16px; }
.legal-top nav a { color: var(--muted); font-weight: 600; }
.legal-top nav a.on { color: var(--text); }
.legal-main { max-width: 760px; margin: 0 auto; padding: 28px clamp(18px, 4vw, 40px); border-radius: 24px; background: var(--glass); border: 1px solid var(--edge); line-height: 1.65; }
.legal-main h1 { font-size: clamp(26px, 5vw, 36px); margin-bottom: 4px; }
.legal-sec { margin-top: 26px; }
.legal-sec h2 { font-size: 18px; margin-bottom: 6px; }
.legal-sec ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal-sec p, .legal-sec li { color: var(--text2); }
.priv-opts { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
