/* ===================== Palmwave – Vice-City-Neon ===================== */
:root {
  --ac: #9b5cff; --ac2: #ff4fa3; --ac-rgb: 155, 92, 255; --ac-text: #fff;
  --cyan: #2de2ff; --pink: #ff3d8b; --sun: #ff9a3d;
  --ok: #3ddc84; --away: #ffb020; --dnd: #ff4757; --off: #7d7396;
  --r: 10px; --r-lg: 16px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Black", "Arial Black", "Helvetica Neue", Impact, sans-serif;
}
[data-theme="dark"] {
  --bg0: #0b0715; --bg1: #130b22; --bg2: #191030; --bg3: #24173f; --bg4: #30205a;
  --text: #f4edff; --muted: #a596c7; --faint: #6f6290; --line: rgba(255, 255, 255, .07);
  --shadow: 0 12px 40px rgba(0, 0, 0, .55); --glass: rgba(25, 16, 48, .82);
  --scene: linear-gradient(180deg, #120625 0%, #3a0f5c 38%, #ff3d8b 72%, #ff9a3d 100%);
}
[data-theme="light"] {
  --bg0: #eadcf6; --bg1: #f5ecfb; --bg2: #fffafe; --bg3: #f0e3f8; --bg4: #e3cff0;
  --text: #22113a; --muted: #6c5a8a; --faint: #9d8db8; --line: rgba(60, 20, 90, .1);
  --shadow: 0 12px 40px rgba(80, 30, 120, .18); --glass: rgba(255, 250, 254, .88);
  --scene: linear-gradient(180deg, #7fd8ff 0%, #c9a3ff 40%, #ff8cc0 72%, #ffc27a 100%);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg2); color: var(--text); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--cyan); }
[data-theme="light"] a { color: #0a84c9; }
::selection { background: rgba(var(--ac-rgb), .45); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
.hidden { display: none !important; }
svg { flex: none; width: 20px; height: 20px; }
.auth .palm svg { width: 100%; height: auto; }
.muted { color: var(--muted); }
.grad-text { background: linear-gradient(90deg, var(--ac), var(--ac2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Boot ---------- */
.boot { height: 100vh; display: grid; place-content: center; gap: 22px; justify-items: center; background: var(--bg1); }
.boot img { width: 96px; height: 96px; filter: drop-shadow(0 0 30px rgba(var(--ac-rgb), .6)); animation: pulse 1.6s ease-in-out infinite; }
.boot-bar { width: 140px; height: 4px; border-radius: 4px; background: var(--bg3); overflow: hidden; position: relative; }
.boot-bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, var(--ac), var(--ac2)); animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes pulse { 50% { transform: scale(1.06); } }

/* ---------- Buttons & Inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--r); font-weight: 650; transition: transform .12s, filter .12s, background .12s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-pri { background: linear-gradient(100deg, var(--ac), var(--ac2)); color: var(--ac-text); box-shadow: 0 6px 20px rgba(var(--ac-rgb), .35); }
.btn-pri:hover { filter: brightness(1.1); }
.btn-sec { background: var(--bg3); }
.btn-sec:hover { background: var(--bg4); }
.btn-danger { background: var(--dnd); color: #fff; }
.btn-ghost { color: var(--muted); padding: 8px 12px; }
.btn-ghost:hover { color: var(--text); background: var(--bg3); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.input, textarea.input, select.input { width: 100%; padding: 11px 13px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg1); outline: none; transition: border .15s, box-shadow .15s; }
.input:focus { border-color: var(--ac); box-shadow: 0 0 0 3px rgba(var(--ac-rgb), .2); }
label.lbl { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 6px; }
.err { color: var(--dnd); font-size: 13px; min-height: 18px; margin-top: 8px; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); transition: background .12s, color .12s; position: relative; }
.icon-btn:hover { background: var(--bg3); color: var(--text); }
.icon-btn.on { color: var(--dnd); }
.icon-btn.act { color: var(--ac); }
.icon-btn svg, .btn svg { width: 20px; height: 20px; }
.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 24px; background: var(--bg4); transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: linear-gradient(90deg, var(--ac), var(--ac2)); }
.switch input:checked + span::before { transform: translateX(20px); }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }

/* ---------- Auth / Vice City Szene ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; position: relative; overflow: hidden; background: var(--scene); padding: 24px; }
.auth .sun { position: absolute; left: 50%; bottom: 30%; width: min(60vw, 520px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: linear-gradient(180deg, #ffe66d 0%, #ff9a3d 45%, #ff3d8b 100%);
  -webkit-mask: linear-gradient(#000 0 52%, transparent 52% 56%, #000 56% 64%, transparent 64% 69%, #000 69% 76%, transparent 76% 82%, #000 82% 88%, transparent 88% 95%, #000 95%);
  mask: linear-gradient(#000 0 52%, transparent 52% 56%, #000 56% 64%, transparent 64% 69%, #000 69% 76%, transparent 76% 82%, #000 82% 88%, transparent 88% 95%, #000 95%);
  filter: drop-shadow(0 0 60px rgba(255, 90, 140, .7)); opacity: .95; }
.auth .grid { position: absolute; left: -50%; right: -50%; bottom: 0; height: 32%; background:
  linear-gradient(transparent 0 0), repeating-linear-gradient(90deg, rgba(45, 226, 255, .55) 0 2px, transparent 2px 80px),
  repeating-linear-gradient(0deg, rgba(45, 226, 255, .55) 0 2px, transparent 2px 40px), linear-gradient(#1a0630, #0b0418);
  transform: perspective(300px) rotateX(58deg); transform-origin: top; }
[data-theme="light"] .auth .grid { background: repeating-linear-gradient(90deg, rgba(255, 61, 139, .5) 0 2px, transparent 2px 80px), repeating-linear-gradient(0deg, rgba(255, 61, 139, .5) 0 2px, transparent 2px 40px), linear-gradient(#ffd6e8, #ffb3d1); }
.auth .palm { position: absolute; bottom: 26%; width: min(34vw, 300px); fill: #0d0420; opacity: .92; }
.auth .palm.l { left: -2%; }
.auth .palm.r { right: -3%; transform: scaleX(-1); width: min(28vw, 250px); }
[data-theme="light"] .auth .palm { fill: #3a1450; opacity: .8; }
.auth-card { position: relative; z-index: 2; width: 100%; max-width: 420px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 22px; padding: 30px 28px; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .08) inset; }
.auth-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--ac), var(--ac2), var(--sun)); }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.brand img { width: 54px; height: 54px; filter: drop-shadow(0 0 16px rgba(var(--ac-rgb), .55)); }
.brand h1 { margin: 0; font: italic 900 34px/1 var(--display); letter-spacing: -.01em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--cyan), var(--ac), var(--ac2)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .25)); }
.brand small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.tabs { display: flex; background: var(--bg1); border-radius: 12px; padding: 4px; margin-bottom: 6px; }
.tabs button { flex: 1; padding: 9px; border-radius: 9px; font-weight: 650; color: var(--muted); }
.tabs button.on { background: var(--bg3); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 18px 0 12px; text-transform: uppercase; letter-spacing: .1em; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.guest-info { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.6; }
.guest-info b { color: var(--text); }
.link { color: var(--cyan); cursor: pointer; font-size: 13px; background: none; padding: 0; }
[data-theme="light"] .link { color: #0a84c9; }
.code-input { text-align: center; font-size: 28px; letter-spacing: 10px; font-weight: 800; }
.theme-fab { position: absolute; top: 16px; right: 16px; z-index: 3; background: var(--glass); backdrop-filter: blur(10px); }

/* ---------- App-Layout ---------- */
.app { display: grid; grid-template-columns: 0 var(--side-w, 280px) minmax(0, 1fr) 250px; height: 100vh; height: 100dvh; overflow: hidden; }
.app.no-members { grid-template-columns: 0 var(--side-w, 280px) minmax(0, 1fr) 0; }
.app.no-members .members { display: none; }
.app.home-view { grid-template-columns: 0 var(--side-w, 280px) minmax(0, 1fr) 0; }
.app.home-view .members { display: none !important; }
.rail { background: var(--bg0); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; overflow-y: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-item { position: relative; width: 50px; height: 50px; flex: none; }
.rail-btn { width: 50px; height: 50px; border-radius: 50%; background: var(--bg2); display: grid; place-items: center; overflow: hidden; font-weight: 800; font-size: 16px; color: var(--text);
  transition: border-radius .2s, background .2s, box-shadow .2s; }
.rail-btn img { width: 100%; height: 100%; object-fit: cover; }
.rail-btn:hover, .rail-item.on .rail-btn { border-radius: 16px; background: linear-gradient(135deg, var(--ac), var(--ac2)); color: var(--ac-text); box-shadow: 0 0 18px rgba(var(--ac-rgb), .45); }
.rail-btn.home { background: transparent; }
.rail-btn.home img { width: 50px; height: 50px; }
.rail-item.on .rail-btn.home, .rail-btn.home:hover { background: transparent; box-shadow: 0 0 20px rgba(var(--ac-rgb), .6); }
.rail-item::before { content: ""; position: absolute; left: -13px; top: 50%; width: 5px; height: 0; border-radius: 0 4px 4px 0; background: var(--text); transform: translateY(-50%); transition: height .2s; }
.rail-item.unread::before { height: 9px; }
.rail-item:hover::before { height: 20px; }
.rail-item.on::before { height: 38px; background: linear-gradient(var(--cyan), var(--ac2)); }
.rail-btn.add { color: var(--ok); font-size: 26px; font-weight: 400; }
.rail-btn.add:hover { background: var(--ok); color: #fff; box-shadow: 0 0 18px rgba(61, 220, 132, .5); }
.rail-sep { width: 32px; height: 2px; border-radius: 2px; background: var(--bg3); flex: none; }
.badge-num { position: absolute; right: -4px; bottom: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--dnd); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 3px solid var(--bg0); }

.side { background: var(--bg1); display: flex; flex-direction: column; min-height: 0; }
.side-head { height: 54px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font-weight: 800; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; }
.side-head:hover { background: var(--bg3); }
.side-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--ac), var(--ac2), transparent); opacity: .7; }
.side-scroll { flex: 1; overflow-y: auto; padding: 10px 8px; }
.cat { display: flex; align-items: center; justify-content: space-between; padding: 14px 8px 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.cat button { color: var(--faint); font-size: 18px; line-height: 1; padding: 0 4px; }
.cat button:hover { color: var(--text); }
.chan { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; color: var(--muted); cursor: pointer; margin: 1px 0; position: relative; }
.chan:hover { background: var(--bg3); color: var(--text); }
.chan.on { background: linear-gradient(90deg, rgba(var(--ac-rgb), .28), rgba(var(--ac-rgb), .06)); color: var(--text); }
.chan.unread { color: var(--text); font-weight: 700; }
.chan.unread::before { content: ""; position: absolute; left: -8px; width: 4px; height: 8px; border-radius: 0 4px 4px 0; background: var(--text); }
.chan .ico { width: 20px; text-align: center; color: var(--faint); flex: none; display: grid; place-items: center; }
.chan .ico svg { width: 18px; height: 18px; }
.chan .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chan .tools { display: none; gap: 2px; }
.chan:hover .tools { display: flex; }
.chan .tools button { color: var(--faint); padding: 2px; display: grid; }
.chan .tools button:hover { color: var(--text); }
.chan .tools svg { width: 15px; height: 15px; }
.vusers { margin: 0 0 6px 30px; }
.vuser { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.vuser:hover { background: var(--bg3); color: var(--text); }
.vuser .vi { margin-left: auto; display: flex; gap: 3px; color: var(--faint); }
.vuser .vi svg { width: 14px; height: 14px; }
.dm-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.dm-item:hover { background: var(--bg3); color: var(--text); }
.dm-item.on { background: rgba(var(--ac-rgb), .2); color: var(--text); }
.dm-item .nm { flex: 1; min-width: 0; }
.dm-item .nm div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-item .nm small { display: block; color: var(--faint); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-item.unread .nm div { color: var(--text); font-weight: 750; }
.dot-unread { width: 9px; height: 9px; border-radius: 50%; background: var(--ac2); box-shadow: 0 0 8px var(--ac2); }

.vpanel { border-top: 1px solid var(--line); padding: 10px 12px; background: var(--bg0); }
.vpanel .vstate { display: flex; align-items: center; gap: 8px; font-weight: 750; font-size: 13.5px; color: var(--ok); }
.vpanel .vstate small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; cursor: pointer; }
.vpanel .vstate small:hover { text-decoration: underline; }
.vpanel .vbtns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 8px; }
.vpanel .vbtns button { height: 32px; border-radius: 8px; background: var(--bg3); display: grid; place-items: center; color: var(--text); }
.vpanel .vbtns button:hover { background: var(--bg4); }
.vpanel .vbtns button.act { background: rgba(var(--ac-rgb), .3); color: var(--ac); }
.vpanel .vbtns svg { width: 18px; height: 18px; }
.upanel { height: 60px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 8px; background: var(--bg0); }
.upanel .me { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; padding: 5px 6px; border-radius: 8px; cursor: pointer; }
.upanel .me:hover { background: var(--bg3); }
.upanel .me .nm { min-width: 0; line-height: 1.2; }
.upanel .me .nm b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upanel .me .nm small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Avatare & Rahmen ---------- */
.av { --s: 40px; position: relative; width: var(--s); height: var(--s); flex: none; border-radius: 50%; }
.av > .pic { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: calc(var(--s) * .42); overflow: hidden; }
.av.fr-neon > .pic, .av.fr-sunset > .pic, .av.fr-ocean > .pic, .av.fr-gold > .pic, .av.fr-rainbow > .pic, .av.fr-fire > .pic, .av.fr-palm > .pic { border: 2px solid var(--bg1); }
.av::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; z-index: 0; }
.av.fr-neon::before { background: var(--ac); box-shadow: 0 0 12px var(--ac), 0 0 3px var(--ac); }
.av.fr-sunset::before { background: conic-gradient(#ffe66d, #ff9a3d, #ff3d8b, #9b5cff, #ff3d8b, #ff9a3d, #ffe66d); animation: spin 6s linear infinite; }
.av.fr-ocean::before { background: conic-gradient(#2de2ff, #2d7bff, #7a5cff, #2de2ff); box-shadow: 0 0 10px rgba(45, 226, 255, .6); animation: spin 8s linear infinite; }
.av.fr-gold::before { background: conic-gradient(#fff3b0, #e0a526, #fff3b0, #b47b0d, #fff3b0); box-shadow: 0 0 10px rgba(255, 200, 60, .55); }
.av.fr-rainbow::before { background: conic-gradient(red, orange, yellow, lime, cyan, blue, magenta, red); animation: spin 3s linear infinite; }
.av.fr-fire::before { background: conic-gradient(#ff2a00, #ffb000, #ff5a00, #ffde59, #ff2a00); animation: spin 2.5s linear infinite, flicker 1.2s ease-in-out infinite; }
.av.fr-palm::before { background: linear-gradient(135deg, #2de2ff, #ff3d8b); box-shadow: 0 0 10px rgba(255, 61, 139, .5); }
.av.fr-palm::after { content: "🌴"; position: absolute; z-index: 3; top: -12%; left: -12%; font-size: calc(var(--s) * .38); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.av > .fimg { position: absolute; z-index: 2; inset: -18%; width: 136%; height: 136%; pointer-events: none; object-fit: contain; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flicker { 50% { box-shadow: 0 0 16px rgba(255, 110, 0, .9); } }
.sdot { position: absolute; z-index: 4; right: -2px; bottom: -2px; width: calc(var(--s) * .32); height: calc(var(--s) * .32); min-width: 11px; min-height: 11px; border-radius: 50%; border: 3px solid var(--bg1); background: var(--off); }
.sdot.online { background: var(--ok); }
.sdot.away { background: var(--away); }
.sdot.dnd { background: var(--dnd); }
.sdot.offline { background: var(--off); }
.speaking > .av::before, .av.speaking::before { box-shadow: 0 0 0 3px var(--ok), 0 0 14px var(--ok) !important; background: var(--ok) !important; }

/* ---------- Hauptbereich ---------- */
.main { background: var(--bg2); display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.main-head { height: 54px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg2); z-index: 2; }
.main-head .title { font-weight: 800; display: flex; align-items: center; gap: 8px; min-width: 0; }
.main-head .title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main-head .title svg { width: 22px; height: 22px; color: var(--faint); flex: none; }
.main-head .sub { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; padding-left: 12px; border-left: 1px solid var(--line); }
.main-head .tools { display: flex; gap: 2px; margin-left: auto; }
.burger { display: none; }
.guest-bar { flex: none; display: flex; align-items: center; gap: 12px; padding: 8px 14px; font-size: 13.5px; background: linear-gradient(90deg, rgba(var(--ac-rgb), .22), rgba(255, 61, 139, .15)); border-bottom: 1px solid var(--line); }
.guest-bar .btn { padding: 6px 12px; font-size: 13px; margin-left: auto; }
.conn-bar { flex: none; padding: 6px 14px; font-size: 13px; text-align: center; background: var(--away); color: #241400; font-weight: 700; }

.msgs { flex: 1; overflow-y: auto; padding: 16px 0 8px; overflow-anchor: none; }
.msgs-empty { padding: 40px 24px 20px; }
.msgs-empty .big { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--ac), var(--ac2)); color: #fff; margin-bottom: 14px; box-shadow: 0 0 30px rgba(var(--ac-rgb), .45); }
.msgs-empty .big svg { width: 36px; height: 36px; }
.msgs-empty h2 { margin: 0 0 6px; font: italic 900 28px/1.1 var(--display); }
.load-more { text-align: center; padding: 8px; color: var(--faint); font-size: 13px; }
.day-sep { display: flex; align-items: center; gap: 10px; margin: 16px 16px 6px; color: var(--faint); font-size: 12px; font-weight: 700; }
.day-sep::before, .day-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.msg { display: flex; gap: 14px; padding: 3px 18px 3px 16px; position: relative; margin-top: 14px; }
.msg.cont { margin-top: 0; }
.msg:hover { background: rgba(var(--ac-rgb), .05); }
.msg.mention { background: rgba(255, 176, 32, .09); box-shadow: inset 3px 0 0 var(--away); }
.msg .gut { width: 42px; flex: none; }
.msg.cont .gut { font-size: 11px; color: transparent; text-align: right; padding-top: 3px; }
.msg.cont:hover .gut { color: var(--faint); }
.msg .body { flex: 1; min-width: 0; }
.msg .head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.msg .nm { font-weight: 750; cursor: pointer; }
.msg .nm:hover { text-decoration: underline; }
.msg .time { font-size: 12px; color: var(--faint); }
.tag { font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 5px; text-transform: uppercase; letter-spacing: .04em; vertical-align: 1px; }
.tag.guest { background: var(--bg4); color: var(--muted); }
.tag.admin { background: linear-gradient(90deg, var(--ac), var(--ac2)); color: #fff; }
.tag.owner { background: rgba(255, 201, 61, .2); color: #e0a526; }
.msg .txt { word-wrap: break-word; overflow-wrap: anywhere; white-space: normal; }
.msg .txt.jumbo { font-size: 40px; line-height: 1.2; }
.msg .txt code { background: var(--bg3); padding: 1px 5px; border-radius: 5px; font-family: Consolas, "Courier New", monospace; font-size: 13.5px; }
.msg .txt pre { background: var(--bg1); border: 1px solid var(--line); padding: 10px 12px; border-radius: 8px; overflow-x: auto; margin: 6px 0; }
.msg .txt pre code { background: none; padding: 0; }
.msg .txt .men { background: rgba(var(--ac-rgb), .25); color: var(--ac); border-radius: 4px; padding: 0 3px; font-weight: 650; }
[data-theme="dark"] .msg .txt .men { color: #e0ccff; }
.msg .edited { font-size: 11px; color: var(--faint); margin-left: 4px; }
.msg .att { margin-top: 6px; max-width: min(420px, 100%); }
.msg .att img { max-width: 100%; max-height: 340px; border-radius: 10px; cursor: zoom-in; display: block; background: var(--bg3); }
.msg .acts { position: absolute; right: 14px; top: -14px; display: none; background: var(--bg1); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 2px; }
.msg:hover .acts { display: flex; }
.msg .acts button { width: 30px; height: 28px; display: grid; place-items: center; border-radius: 6px; color: var(--muted); }
.msg .acts button:hover { background: var(--bg3); color: var(--text); }
.msg .acts button.del:hover { color: var(--dnd); }
.msg .acts svg { width: 17px; height: 17px; }
.msg textarea.edit { width: 100%; resize: none; margin-top: 4px; }
.msg .edit-hint { font-size: 12px; color: var(--faint); }
.typing { height: 22px; flex: none; padding: 0 18px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.typing .dots { display: inline-flex; gap: 3px; }
.typing .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: bounce 1s infinite; }
.typing .dots i:nth-child(2) { animation-delay: .15s; }
.typing .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 30% { transform: translateY(-4px); } }

.composer { flex: none; padding: 0 16px 18px; }
.composer .box { display: flex; align-items: flex-end; gap: 4px; background: var(--bg3); border-radius: 12px; padding: 6px; border: 1px solid transparent; transition: border .15s, box-shadow .15s; }
.composer .box:focus-within { border-color: rgba(var(--ac-rgb), .6); box-shadow: 0 0 0 3px rgba(var(--ac-rgb), .14), 0 0 22px rgba(var(--ac-rgb), .12); }
.composer textarea { flex: 1; resize: none; border: 0; outline: 0; background: transparent; padding: 7px 4px; max-height: 40vh; min-height: 22px; line-height: 1.4; }
.composer .pending { display: flex; align-items: center; gap: 10px; background: var(--bg3); border-radius: 12px 12px 0 0; padding: 10px; margin-bottom: -6px; padding-bottom: 14px; }
.composer .pending img { height: 70px; border-radius: 8px; }
.composer .locked { text-align: center; padding: 12px; color: var(--muted); background: var(--bg3); border-radius: 12px; font-size: 14px; }

/* ---------- Mitgliederliste ---------- */
.members { background: var(--bg1); overflow-y: auto; padding: 8px 8px 20px; border-left: 1px solid var(--line); }
.mem { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.mem:hover { background: var(--bg3); }
.mem.off { opacity: .45; }
.mem .nm { min-width: 0; line-height: 1.25; }
.mem .nm div { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem .nm small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem .nm small b { color: var(--text); font-weight: 650; }

/* ---------- Freunde ---------- */
.friends { flex: 1; overflow-y: auto; padding: 16px 24px; }
.ftabs { display: flex; gap: 6px; align-items: center; }
.ftabs button { padding: 5px 12px; border-radius: 7px; color: var(--muted); font-weight: 650; }
.ftabs button:hover { background: var(--bg3); color: var(--text); }
.ftabs button.on { background: var(--bg4); color: var(--text); }
.ftabs button.addf { background: var(--ok); color: #fff; }
.ftabs button.addf.on { background: transparent; color: var(--ok); }
.frow { display: flex; align-items: center; gap: 12px; padding: 10px; border-top: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.frow:hover { background: var(--bg3); border-color: transparent; }
.frow .nm { flex: 1; min-width: 0; }
.frow .nm small { display: block; color: var(--muted); font-size: 12.5px; }
.frow .acts { display: flex; gap: 6px; }
.frow .acts button { width: 36px; height: 36px; border-radius: 50%; background: var(--bg1); display: grid; place-items: center; color: var(--muted); }
.frow .acts button:hover { color: var(--text); }
.frow .acts button.yes:hover { color: var(--ok); }
.frow .acts button.no:hover { color: var(--dnd); }
.frow .acts svg { width: 18px; height: 18px; }
.section-title { font-size: 12px; font-weight: 800; color: var(--faint); text-transform: uppercase; letter-spacing: .07em; margin: 18px 0 8px; }
.empty-state { text-align: center; color: var(--muted); padding: 60px 20px; }
.empty-state img { width: 120px; opacity: .9; margin-bottom: 16px; filter: drop-shadow(0 0 30px rgba(var(--ac-rgb), .4)); }

/* ---------- Anruf-Bühne ---------- */
.stage { flex: 1; min-height: 0; display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 120%, rgba(var(--ac-rgb), .28), transparent 60%), #08050f; color: #fff; position: relative; }
[data-theme="light"] .stage { background: radial-gradient(ellipse at 50% 120%, rgba(var(--ac-rgb), .3), transparent 60%), #1b1029; }
.stage.split { flex: 0 0 46%; border-bottom: 1px solid var(--line); }
.tiles { flex: 1; min-height: 0; display: grid; gap: 12px; padding: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-content: center; overflow-y: auto; }
.tile { position: relative; aspect-ratio: 16/9; border-radius: 14px; background: #1c1230; display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 0 2px transparent; transition: box-shadow .12s; max-height: 100%; }
.tile.speaking { box-shadow: 0 0 0 3px var(--ok), 0 0 24px rgba(61, 220, 132, .45); }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.tile video.contain { object-fit: contain; }
.tile video.mirror { transform: scaleX(-1); }
.tile .av { --s: 84px; }
.tile .label { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .55); padding: 3px 9px; border-radius: 7px; font-size: 13px; font-weight: 650; backdrop-filter: blur(6px); }
.tile .label svg { width: 15px; height: 15px; color: var(--dnd); }
.tile .vol { position: absolute; right: 10px; top: 10px; z-index: 2; display: none; align-items: center; gap: 6px; background: rgba(0, 0, 0, .55); padding: 4px 8px; border-radius: 7px; }
.tile:hover .vol { display: flex; }
.tile .vol input { width: 90px; accent-color: var(--ac); }
.tile .fs { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: none; background: rgba(0, 0, 0, .55); border-radius: 7px; padding: 5px; color: #fff; }
.tile:hover .fs { display: grid; }
.tile .fs svg { width: 18px; height: 18px; }
.controls { flex: none; display: flex; justify-content: center; gap: 12px; padding: 14px; }
.controls button { width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; transition: background .15s, transform .1s; }
.controls button:hover { background: rgba(255, 255, 255, .2); }
.controls button.on { background: #fff; color: #1a0f2e; }
.controls button.off { background: rgba(255, 71, 87, .25); color: #ff8a95; }
.controls button.leave { background: var(--dnd); width: 66px; border-radius: 27px; }
.controls button.leave:hover { filter: brightness(1.1); }
.controls svg { width: 24px; height: 24px; }
.join-screen { flex: 1; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 20px; }
.join-screen h2 { margin: 0; font: italic 900 30px/1.1 var(--display); }
.join-faces { display: flex; gap: -8px; }
.join-faces .av { --s: 44px; margin-left: -8px; }

/* ---------- Popups, Modals, Menüs ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(5, 2, 12, .7); display: grid; place-items: center; padding: 20px; animation: fade .15s; backdrop-filter: blur(3px); }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; background: var(--bg2); border-radius: var(--r-lg); box-shadow: var(--shadow); animation: pop .18s cubic-bezier(.2, .9, .3, 1.3); position: relative; }
.modal::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--cyan), var(--ac), var(--ac2), var(--sun)); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal .mh { padding: 20px 22px 4px; }
.modal .mh h3 { margin: 0; font-size: 21px; font-weight: 850; }
.modal .mh p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.modal .mb { padding: 8px 22px 18px; }
.modal .mf { padding: 14px 22px; background: var(--bg1); display: flex; justify-content: flex-end; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border-radius: 12px; background: var(--bg1); border: 1px solid var(--line); margin-top: 10px; text-align: left; }
.choice:hover { border-color: var(--ac); background: var(--bg3); }
.choice .ci { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--ac), var(--ac2)); color: #fff; flex: none; }
.choice b { display: block; }
.choice small { color: var(--muted); }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { font-family: Consolas, monospace; font-size: 13px; }
.menu { position: fixed; z-index: 60; min-width: 210px; background: var(--bg0); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; animation: pop .12s; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 7px; font-size: 14px; color: var(--muted); }
.menu button:hover { background: rgba(var(--ac-rgb), .25); color: var(--text); }
.menu button.danger { color: var(--dnd); }
.menu button.danger:hover { background: var(--dnd); color: #fff; }
.menu button svg { width: 18px; height: 18px; }
.menu hr { border: 0; height: 1px; background: var(--line); margin: 5px 4px; }
.menu .sdot { position: static; border: 0; width: 11px; height: 11px; min-width: 0; min-height: 0; }
.popup { position: fixed; z-index: 60; width: 320px; background: var(--bg0); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; animation: pop .14s; border: 1px solid var(--line); }
.popup .banner { height: 70px; background: linear-gradient(120deg, var(--cyan), var(--ac), var(--ac2), var(--sun)); }
.popup .pav { margin: -42px 0 0 16px; }
.popup .pav .av { --s: 80px; }
.popup .pav .av > .pic { border: 5px solid var(--bg0) !important; }
.popup .pav .sdot { border-color: var(--bg0); }
.popup .pb { padding: 10px 16px 16px; }
.popup .pcard { background: var(--bg1); border-radius: 10px; padding: 12px; margin-top: 10px; }
.popup h4 { margin: 0; font-size: 19px; }
.popup .un { color: var(--muted); font-size: 13.5px; }
.popup .sec { font-size: 11px; font-weight: 800; color: var(--faint); text-transform: uppercase; letter-spacing: .07em; margin: 10px 0 4px; }
.popup .sec:first-child { margin-top: 0; }
.popup .pbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.popup .pbtns .btn { padding: 8px 12px; font-size: 13.5px; flex: 1; }
.act-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.act-line .ai { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--ac), var(--ac2)); color: #fff; font-size: 18px; flex: none; }
.picker { position: fixed; z-index: 60; width: 300px; background: var(--bg0); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 10px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.picker button { font-size: 22px; padding: 4px; border-radius: 6px; }
.picker button:hover { background: var(--bg3); }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .85); display: grid; place-items: center; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 8px; }
.ring-card { position: fixed; z-index: 80; top: 20px; left: 50%; transform: translateX(-50%); background: var(--bg0); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow), 0 0 40px rgba(var(--ac-rgb), .4); display: flex; align-items: center; gap: 14px; animation: pop .2s; border: 1px solid rgba(var(--ac-rgb), .5); }
.ring-card .av { animation: pulse 1s infinite; }
.ring-card .btns { display: flex; gap: 8px; margin-left: 10px; }
.ring-card .btns button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.ring-card .btns svg { width: 22px; height: 22px; }

/* ---------- Einstellungen ---------- */
.settings { position: fixed; inset: 0; z-index: 40; display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 760px) 1fr; background: var(--bg2); animation: fade .15s; }
.settings nav { background: var(--bg1); display: flex; justify-content: flex-end; padding: 50px 10px 20px; overflow-y: auto; }
.settings nav > div { width: 220px; }
.settings nav h5 { margin: 16px 10px 6px; font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .07em; }
.settings nav button { display: flex; width: 100%; padding: 8px 10px; border-radius: 7px; color: var(--muted); margin: 1px 0; text-align: left; align-items: center; gap: 8px; }
.settings nav button:hover { background: var(--bg3); color: var(--text); }
.settings nav button.on { background: rgba(var(--ac-rgb), .25); color: var(--text); }
.settings nav button.danger { color: var(--dnd); }
.settings nav button .lock { margin-left: auto; font-size: 12px; }
.settings .content { padding: 50px 40px 80px; overflow-y: auto; }
.settings .content h2 { margin: 0 0 20px; font: italic 900 26px/1.1 var(--display); }
.settings .close { position: fixed; top: 40px; right: 40px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--faint); color: var(--muted); display: grid; place-items: center; z-index: 2; background: var(--bg2); }
.settings .close:hover { border-color: var(--text); color: var(--text); }
.card { background: var(--bg1); border-radius: 14px; padding: 18px; margin-bottom: 16px; border: 1px solid var(--line); }
.card h4 { margin: 0 0 4px; font-size: 16px; }
.card p.desc { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
.kv { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); gap: 10px; }
.kv:first-of-type { border-top: 0; }
.kv small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatch { width: 46px; height: 46px; border-radius: 12px; border: 3px solid transparent; position: relative; }
.swatch.on { border-color: var(--text); }
.swatch.on::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 900; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.swatch.custom { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); overflow: hidden; }
.swatch.custom input { opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.theme-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.theme-opt { border-radius: 12px; border: 2px solid var(--line); padding: 10px; text-align: center; font-weight: 650; }
.theme-opt.on { border-color: var(--ac); box-shadow: 0 0 0 3px rgba(var(--ac-rgb), .2); }
.theme-opt .pv { height: 60px; border-radius: 8px; margin-bottom: 8px; }
.frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.frame-opt { border-radius: 12px; border: 2px solid var(--line); padding: 14px 6px 8px; display: grid; justify-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.frame-opt.on { border-color: var(--ac); color: var(--text); }
.frame-opt .av { --s: 48px; }
.profile-preview { display: flex; align-items: center; gap: 16px; }
.profile-preview .av { --s: 86px; }
.dev { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.dev:first-child { border-top: 0; }
.dev .di { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bg3); flex: none; }
.dev .di svg { width: 22px; height: 22px; }
.dev .nm { flex: 1; min-width: 0; }
.dev .nm small { display: block; color: var(--muted); font-size: 12.5px; }
.pill { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 10px; background: rgba(61, 220, 132, .18); color: var(--ok); margin-left: 6px; }
.qr { width: 190px; height: 190px; background: #fff; border-radius: 10px; padding: 6px; }
.qr svg { width: 100%; height: 100%; display: block; }
.secret { font-family: Consolas, monospace; background: var(--bg3); padding: 8px 10px; border-radius: 8px; word-break: break-all; font-size: 13px; }
.meter { height: 8px; border-radius: 6px; background: var(--bg3); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ok), var(--away), var(--dnd)); transition: width .08s; }
.lock-note { background: rgba(var(--ac-rgb), .12); border: 1px dashed rgba(var(--ac-rgb), .5); border-radius: 12px; padding: 16px; color: var(--muted); }

/* ---------- Admin-Center ---------- */
.rail-btn.admin { color: var(--away); }
.rail-btn.admin:hover { background: linear-gradient(135deg, #ffb020, #ff5e3a); color: #fff; box-shadow: 0 0 18px rgba(255, 176, 32, .5); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.stat { background: var(--bg1); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat b { display: block; font: italic 900 30px/1.1 var(--display); }
.stat span { color: var(--muted); font-size: 13px; }
.stat.hot b { color: var(--ok); }
.stat.alert { border-color: var(--dnd); box-shadow: 0 0 0 3px rgba(255, 71, 87, .15); }
.stat.alert b { color: var(--dnd); }
.stat.warn b { color: var(--away); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; background: var(--bg3); color: var(--muted); font-size: 12.5px; font-weight: 650; border: 1px solid transparent; white-space: nowrap; }
button.chip:hover { color: var(--text); border-color: var(--line); }
.chip.on { background: rgba(var(--ac-rgb), .25); color: var(--text); }
.chip.warn { background: rgba(255, 176, 32, .18); color: #e09400; }
.chip.alert { background: rgba(255, 71, 87, .18); color: var(--dnd); }
.date-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.date-row .input { width: auto; padding: 6px 10px; }
.rep-card { background: var(--bg1); border: 1px solid var(--line); border-left: 4px solid var(--dnd); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.rep-card.done { border-left-color: var(--off); opacity: .85; }
.rep-msg { background: var(--bg3); border-radius: 8px; padding: 10px 12px; margin-top: 10px; overflow-wrap: anywhere; }
.search-big { position: relative; }
.search-big svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search-big .input { padding: 14px 14px 14px 44px; font-size: 16px; }
.amsg { position: relative; background: var(--bg1); border: 1px solid var(--line); border-radius: 10px; padding: 10px 44px 10px 12px; margin-bottom: 8px; overflow-wrap: anywhere; }
.amsg .amsg-del { position: absolute; right: 6px; top: 6px; }
.amsg .amsg-del:hover { color: var(--dnd); }
.user-head h2 { font: italic 900 24px/1.2 var(--display); }

/* ---------- Namen, Plus, Anhänge, Sprachnachrichten ---------- */
.uname.has-nc { color: var(--nc); }
.uname.nfx-glow { text-shadow: 0 0 10px var(--nc, var(--ac)), 0 0 2px var(--nc, var(--ac)); }
.uname.nfx-gradient, .uname.nfx-sunset, .uname.nfx-ocean, .uname.nfx-rainbow { -webkit-background-clip: text; background-clip: text; color: transparent !important; background-size: 200% 100%; }
.uname.nfx-gradient { background-image: linear-gradient(90deg, var(--nc, var(--ac)), var(--ac2)); }
.uname.nfx-sunset { background-image: linear-gradient(90deg, #ffe66d, #ff9a3d, #ff3d8b, #9b5cff, #ffe66d); animation: nameflow 4s linear infinite; }
.uname.nfx-ocean { background-image: linear-gradient(90deg, #2de2ff, #2d7bff, #7a5cff, #2de2ff); animation: nameflow 5s linear infinite; }
.uname.nfx-rainbow { background-image: linear-gradient(90deg, #ff4d4d, #ffb84d, #f5ff4d, #4dff88, #4dd2ff, #a64dff, #ff4d4d); animation: nameflow 3s linear infinite; }
.uname.nfx-neon { color: var(--nc, var(--ac)); text-shadow: 0 0 6px var(--nc, var(--ac)), 0 0 16px var(--nc, var(--ac)); animation: neonflick 3s infinite; }
@keyframes nameflow { to { background-position: -200% 0; } }
@keyframes neonflick { 0%, 18%, 22%, 60%, 64%, 100% { opacity: 1; } 20%, 62% { opacity: .55; } }
.plus-badge { display: inline-block; margin-left: 4px; font-size: .8em; background: linear-gradient(135deg, #ffd23d, #ff8a3d, #ff3d8b); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }
.name-preview { margin-top: 12px; padding: 4px 14px 12px; background: var(--bg2); border-radius: 12px; }
.name-preview .msg:hover { background: none; }
.ellip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-ico { width: 46px; height: 46px; border-radius: 10px; background: var(--bg3); display: grid; place-items: center; font-size: 24px; flex: none; }
.filecard { display: flex; align-items: center; gap: 12px; background: var(--bg1); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; max-width: 420px; color: var(--text) !important; text-decoration: none; }
a.filecard:hover { border-color: var(--ac); }
.filecard .dl { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg3); font-size: 16px; flex: none; }
.msg .att video { max-width: 100%; max-height: 360px; border-radius: 10px; background: #000; display: block; }
.att-meta { font-size: 12px; color: var(--faint); margin-top: 4px; }
.voice { display: flex; align-items: center; gap: 10px; background: linear-gradient(90deg, rgba(var(--ac-rgb), .22), rgba(var(--ac-rgb), .08)); border: 1px solid rgba(var(--ac-rgb), .35); border-radius: 26px; padding: 6px 14px 6px 6px; width: min(340px, 100%); margin-top: 6px; cursor: pointer; }
.voice .vplay { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--ac), var(--ac2)); color: #fff; font-size: 13px; flex: none; }
.voice .vbars { flex: 1; display: flex; align-items: center; gap: 2px; height: 30px; }
.voice .vbars i { flex: 1; background: rgba(var(--ac-rgb), .45); border-radius: 2px; min-height: 3px; transition: background .15s; }
.voice .vbars i.on { background: var(--ac2); }
.voice .vtime { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.composer .box.recording { align-items: center; border-color: var(--dnd); box-shadow: 0 0 0 3px rgba(255, 71, 87, .15); }
.rec-info { flex: 1; display: flex; align-items: center; gap: 10px; padding: 6px 4px; font-variant-numeric: tabular-nums; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--dnd); animation: pulse 1s infinite; box-shadow: 0 0 10px var(--dnd); }
.main.dropping::after { content: "Datei hier ablegen"; position: absolute; inset: 12px; z-index: 20; border: 3px dashed var(--ac); border-radius: 18px; background: rgba(var(--ac-rgb), .15); display: grid; place-items: center; font: italic 900 28px var(--display); color: var(--text); backdrop-filter: blur(3px); }
.links { display: flex; flex-wrap: wrap; gap: 6px; }
.link-chip { display: flex; align-items: center; gap: 8px; background: var(--bg2); border-radius: 10px; padding: 6px 10px 6px 6px; text-align: left; font-size: 13px; font-weight: 650; }
.link-chip:hover { background: var(--bg3); }
.link-chip i, .link-dot { width: 22px; height: 22px; border-radius: 6px; flex: none; display: inline-block; }
.link-chip small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.plus-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; border-radius: 18px; margin-bottom: 16px; color: #fff; background: linear-gradient(120deg, #2a0f4d, #9b5cff 45%, #ff3d8b 80%, #ff9a3d); box-shadow: 0 10px 40px rgba(155, 92, 255, .35); }
.plus-hero img { width: 84px; filter: drop-shadow(0 0 20px rgba(255, 255, 255, .4)); }
.plus-price { font: italic 900 32px/1.1 var(--display); margin-bottom: 4px; }

/* ---------- Rollen, Glocke, Befehle, Umfragen ---------- */
.tag.bot { background: #5c7cff; color: #fff; margin-left: 4px; }
.chan .lv { font-size: 11px; color: var(--faint); margin-left: auto; }
.chan.muted-ch { opacity: .55; }
.bell { position: relative; }
.bell .badge-num { right: -2px; bottom: auto; top: -2px; min-width: 18px; height: 18px; font-size: 11px; border-width: 2px; border-color: var(--bg2); }
.inbox { position: fixed; z-index: 60; width: 380px; max-height: 70vh; display: flex; flex-direction: column; background: var(--bg0); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); animation: pop .12s; overflow: hidden; }
.inbox-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.inbox-list { overflow-y: auto; }
.in-item { display: flex; gap: 10px; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.in-item:hover { background: var(--bg3); }
.in-item.new { background: rgba(var(--ac-rgb), .1); box-shadow: inset 3px 0 0 var(--ac); }
.in-item .nm { min-width: 0; font-size: 14px; }
.in-item small { color: var(--muted); font-size: 12px; }
.in-prev { color: var(--muted); font-size: 13px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ann-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-weight: 650; background: linear-gradient(90deg, #ff8a3d, #ff3d8b); color: #fff; }
.ann-bar span { flex: 1; }
.ann-bar .icon-btn { color: #fff; width: 28px; height: 28px; }
.slash-pop { background: var(--bg0); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 6px; overflow: hidden; max-height: 300px; overflow-y: auto; }
.slash-pop button { display: block; width: 100%; text-align: left; padding: 8px 12px; }
.slash-pop button.on, .slash-pop button:hover { background: rgba(var(--ac-rgb), .2); }
.slash-pop small { display: block; color: var(--muted); font-size: 12px; }
.msg.ephemeral { background: rgba(92, 124, 255, .08); box-shadow: inset 3px 0 0 #5c7cff; }
.help-list { display: grid; gap: 4px; margin-top: 6px; font-size: 14px; }
.poll { background: var(--bg1); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 6px; max-width: 460px; }
.poll-q { font-weight: 800; margin-bottom: 8px; }
.poll-opt { position: relative; display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 12px; margin-top: 6px; border-radius: 10px; background: var(--bg3); overflow: hidden; text-align: left; border: 1px solid transparent; }
.poll-opt i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(var(--ac-rgb), .3); transition: width .3s; }
.poll-opt span, .poll-opt b { position: relative; }
.poll-opt b { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.poll-opt.mine { border-color: var(--ac); }
.poll-opt:hover { border-color: rgba(var(--ac-rgb), .6); }
.role-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.role-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 6px; background: var(--bg3); }
.role-chip i { width: 9px; height: 9px; border-radius: 50%; }
.role-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.role-row:first-child { border-top: 0; }
.role-row > i { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.role-row .role-tools { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.role-pick { padding: 8px 4px; border-top: 1px solid var(--line); cursor: pointer; gap: 10px; }
.role-pick i { width: 12px; height: 12px; border-radius: 50%; }
.perm-row { padding: 10px 0; border-top: 1px solid var(--line); gap: 16px; }
.status-card { border-width: 2px; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: var(--bg0); color: var(--text); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); border-left: 4px solid var(--ac); font-size: 14px; animation: pop .2s; max-width: 90vw; }
.toast.bad { border-left-color: var(--dnd); }
.toast.good { border-left-color: var(--ok); }

/* ---------- Handy / Tablet ---------- */
@media (max-width: 1100px) {
  .app { grid-template-columns: 0 var(--side-w, 264px) minmax(0, 1fr) 0; }
  .app .members { position: fixed; right: 0; top: 0; bottom: 0; width: 260px; z-index: 30; transform: translateX(100%); transition: transform .2s; box-shadow: var(--shadow); }
  .app.mem-open .members { transform: none; display: block; }
  .app.no-members .members { display: block; }
}
@media (max-width: 760px) {
  .app, .app.no-members, .app.home-view { grid-template-columns: minmax(0, 1fr); }
  .app .rail, .app .side { position: fixed; top: 0; bottom: 0; z-index: 30; transition: transform .2s; }
  .app .rail { left: 0; width: 76px; transform: translateX(-330px); }
  .app .side { left: 0; width: min(86vw, 320px); transform: translateX(-330px); box-shadow: var(--shadow); }
  .app.nav-open .rail, .app.nav-open .side { transform: none; }
  .burger { display: grid; }
  .main-head .sub { display: none; }
  .settings { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .settings nav { padding: 60px 10px 10px; justify-content: stretch; max-height: 38vh; }
  .settings nav > div { width: 100%; }
  .settings .content { padding: 20px 16px 80px; }
  .settings .close { top: 12px; right: 12px; }
  .msg .acts { display: flex; opacity: .0; }
  .msg:active .acts { opacity: 1; }
  .tiles { grid-template-columns: 1fr 1fr; padding: 10px; gap: 8px; }
  .controls button { width: 48px; height: 48px; }
}
.scrim { display: none; }
@media (max-width: 1100px) { .app.mem-open .scrim, .app.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, .5); } }

/* ================= Update 5: eigene Fensterleiste, Barrierefreiheit, Posteingang, Mikrofon, Clips, Shop ================= */
.msg .txt { font-size: var(--chat-fs, 15px); }
.msg .head .uname { font-size: calc(var(--chat-fs, 15px) * 1.02); }
#titlebar { display: none; }
@media (display-mode: window-controls-overlay) {
  #titlebar { display: flex; align-items: center; gap: 8px; position: fixed; z-index: 100; top: 0; left: env(titlebar-area-x, 0); width: env(titlebar-area-width, 100%); height: env(titlebar-area-height, 34px);
    padding: 0 10px; background: var(--bg0); -webkit-app-region: drag; app-region: drag; font-size: 13px; color: var(--muted); user-select: none; }
  #titlebar img { width: 18px; height: 18px; }
  #titlebar .tb-name { font: italic 900 12.5px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
  #titlebar .tb-fill { flex: 1; display: flex; justify-content: center; min-width: 0; }
  #titlebar .tb-where { font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50vw; }
  #titlebar .tb-btn { display: grid; place-items: center; color: var(--muted); font-weight: 800; }
  #titlebar .tb-btn svg { width: 17px; height: 17px; }
  #titlebar .tb-btn.has { color: var(--dnd); }
  #titlebar .tb-btn:hover { color: var(--text); }
  .main-head .bell, .main-head .update-pill { display: none; }
  #titlebar .tb-btn, #titlebar .tb-badge { -webkit-app-region: no-drag; app-region: no-drag; }
  #titlebar .tb-btn { width: 30px; height: 26px; border-radius: 6px; font-size: 15px; }
  #titlebar .tb-btn:hover { background: var(--bg3); }
  body { padding-top: env(titlebar-area-height, 34px); box-sizing: border-box; }
  .app, .boot { height: calc(100dvh - env(titlebar-area-height, 34px)); }
  .auth { min-height: calc(100dvh - env(titlebar-area-height, 34px)); }
  .settings, .overlay { top: env(titlebar-area-height, 34px) !important; }
  .settings .close { top: calc(env(titlebar-area-height, 34px) + 30px); }
}
.tb-badge { background: var(--dnd); color: #fff; border-radius: 6px; padding: 2px 8px; font-size: 11.5px; font-weight: 700; }
html.streamer .upanel::after { content: "🎥"; position: absolute; left: 4px; bottom: 4px; font-size: 10px; }
html.streamer .upanel { position: relative; }

/* Posteingang */
.inbox-panel { position: fixed; z-index: 70; top: 60px; right: 16px; width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 90px); display: flex; flex-direction: column; background: var(--bg0); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); animation: pop .12s; overflow: hidden; }
.ib-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px 16px; }
.ib-head h3 { margin: 0; flex: 1; font-size: 17px; }
.btn-sm { padding: 6px 10px; font-size: 13px; }
.ib-tabs { display: flex; gap: 4px; padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.ib-tabs button { padding: 6px 12px; border-radius: 8px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.ib-tabs button.on { background: rgba(var(--ac-rgb), .22); color: var(--text); }
.ib-list { overflow-y: auto; }
.ib-group { padding: 8px 6px; border-bottom: 1px solid var(--line); }
.ib-gh { display: flex; justify-content: space-between; align-items: center; padding: 4px 10px; font-size: 13px; }
.ib-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; border-radius: 8px; cursor: pointer; color: var(--muted); font-weight: 600; }
.ib-row:hover { background: var(--bg3); color: var(--text); }
.inbox-panel .in-item { position: relative; }

/* Mikrofon-Menü */
.mic-menu { position: fixed; z-index: 70; width: 300px; max-height: 80vh; overflow-y: auto; background: var(--bg0); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; animation: pop .12s; }
.mic-menu .mm-sec { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 10px 6px 4px; display: flex; justify-content: space-between; }
.mic-menu .mm-dev { display: block; width: 100%; text-align: left; padding: 7px 8px; border-radius: 7px; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mic-menu .mm-dev:hover, .mic-menu .mm-dev.on { background: rgba(var(--ac-rgb), .2); color: var(--text); }
.mic-menu .mm-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px; border-radius: 7px; cursor: pointer; }
.mic-menu .mm-row:hover { background: var(--bg3); }
.mic-menu .mm-row small { display: block; color: var(--faint); font-size: 11.5px; }
.mic-menu .mm-row b { font-size: 13.5px; font-weight: 600; }
.mic-menu .mm-pad { padding: 4px 8px; }
.mic-menu input[type=range] { width: calc(100% - 12px); margin: 0 6px; accent-color: var(--ac); }
.mic-menu hr { border: 0; height: 1px; background: var(--line); margin: 8px 4px; }
.switch.sm { width: 36px; height: 20px; } .switch.sm span::before { width: 14px; height: 14px; } .switch.sm input:checked + span::before { transform: translateX(16px); }
.seg { display: flex; gap: 4px; background: var(--bg1); border: 1px solid var(--line); padding: 3px; border-radius: 10px; }
.seg.wrap { flex-wrap: wrap; }
.seg button { flex: 1; padding: 7px 10px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg button.on { background: linear-gradient(90deg, var(--ac), var(--ac2)); color: #fff; }
.seg button.locked { opacity: .55; }
.lvl { position: relative; height: 10px; border-radius: 6px; background: var(--bg3); margin: 8px 6px; overflow: hidden; }
.lvl.big { height: 16px; margin: 6px 0; }
.lvl i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--away); transition: width .05s; }
.lvl i.open { background: var(--ok); }
.lvl b { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 4px #000; }
.ptt-on { box-shadow: 0 0 0 3px var(--ok) !important; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } }

/* Bildschirm teilen */
.scr-src { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.scr-src button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; border-radius: 12px; background: var(--bg1); border: 2px solid var(--line); }
.scr-src button.on { border-color: var(--ac); background: rgba(var(--ac-rgb), .14); }
.scr-src .ic { font-size: 28px; } .scr-src small { color: var(--muted); font-size: 12px; text-align: center; }

/* Tastenkombinationen */
kbd, .kbd-btn { font-family: Consolas, monospace; font-size: 12.5px; background: var(--bg3); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 7px; padding: 3px 8px; white-space: nowrap; }
.kbd-btn { min-width: 110px; cursor: pointer; color: var(--text); }
.kbd-btn:hover { border-color: var(--ac); }
.kbd-btn.rec { border-color: var(--dnd); color: var(--dnd); animation: pulse 1s infinite; }
.keys-help { max-height: 55vh; overflow-y: auto; }
.keys-help .kv { padding: 7px 0; font-size: 14px; }

/* Einstellungen: Navigation */
.set-search { margin: 0 0 6px; padding: 8px 10px; font-size: 13.5px; }
.settings nav .nav-ic { width: 20px; text-align: center; font-size: 15px; }
.settings nav .set-upgrade { background: linear-gradient(90deg, var(--ac), var(--ac2)); color: #fff !important; font-weight: 700; margin: 6px 0; }
.set-legal { font-size: 11.5px; color: var(--faint); padding: 14px 10px; line-height: 1.8; }
.set-legal a, .auth-legal a { color: var(--faint); }
.auth-legal { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 12px; z-index: 2; }
.perm-row { padding: 10px 0; border-top: 1px solid var(--line); gap: 12px; }
.card > .perm-row:first-of-type, .card h4 + .perm-row, .card p + .perm-row { border-top: 0; }

/* Clips & Spiele */
.clip-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.clip-item:first-child { border-top: 0; }
.clip-item .nm { flex: 1; min-width: 0; } .clip-item small { display: block; color: var(--muted); font-size: 12.5px; }
.clip-pv { width: 74px; height: 46px; border-radius: 8px; background: linear-gradient(135deg, var(--ac), var(--ac2)); display: grid; place-items: center; font-size: 20px; position: relative; cursor: pointer; flex: none; }
.clip-pv span { position: absolute; right: 4px; bottom: 2px; font-size: 11px; font-weight: 700; color: #fff; }
.un-copy { color: inherit; font: inherit; padding: 0 2px; border-radius: 4px; }
.un-copy:hover { background: var(--bg3); }

/* Shop */
.shop-hero { display: flex; justify-content: space-between; align-items: center; padding: 26px; border-radius: 18px; margin-bottom: 16px; color: #fff;
  background: radial-gradient(circle at 85% 30%, rgba(255, 255, 255, .25), transparent 40%), linear-gradient(120deg, var(--ac), var(--ac2) 70%, #ffb36b); }
.shop-hero img { width: 90px; height: 90px; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .35)); }
.shop-tag { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; opacity: .9; }
.shop-hero .muted { color: rgba(255, 255, 255, .8); }
.perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 16px; }
.perk { background: var(--bg1); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.perk span { font-size: 24px; } .perk small { color: var(--muted); font-size: 12.5px; }

/* Chat-Schutz */
.blurwrap { position: relative; display: inline-block; cursor: pointer; }
.blurwrap > .att { filter: blur(28px); pointer-events: none; }
.blurwrap > span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: #fff; text-shadow: 0 1px 6px #000; }
.blurwrap.shown > .att { filter: none; pointer-events: auto; } .blurwrap.shown > span { display: none; }
.blocked-msg { opacity: .7; margin-top: 4px; }
.role-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.rec-on { color: var(--dnd) !important; animation: pulse 1.2s infinite; }

/* ---------- Barrierefreiheit ---------- */
html.a-motion *, html.a-motion *::before, html.a-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a-nogif .uname[class*="nfx-"] { animation: none !important; }
html.a-nogif img[src$=".gif"] { visibility: hidden; }
html.a-font body, html.a-font button, html.a-font input, html.a-font textarea { font-family: Verdana, Tahoma, "Atkinson Hyperlegible", sans-serif !important; letter-spacing: .02em; word-spacing: .06em; }
html.a-font .msg .txt { line-height: 1.7; }
html.a-underline a, html.a-underline .link { text-decoration: underline !important; }
html.a-contrast { --line: rgba(255, 255, 255, .45); --muted: #e8e0ff; --faint: #c9bde6; }
html.a-contrast[data-theme="light"] { --line: rgba(0, 0, 0, .55); --muted: #1a1030; --faint: #3a2a55; }
html.a-contrast .card, html.a-contrast .msg .acts, html.a-contrast .menu, html.a-contrast .modal { border-width: 2px; }
html.a-contrast * { backdrop-filter: none !important; text-shadow: none !important; }
html.a-contrast .btn-pri { outline: 2px solid var(--text); }
html.a-focus :focus, html :is(button, a, select, [tabindex], input[type=checkbox], input[type=range]):focus-visible { outline: 3px solid var(--ac) !important; outline-offset: 2px; }
html.a-focus #input:focus { outline-offset: -3px; }
html.a-actions .msg .acts { display: flex; position: static; float: none; margin-left: auto; align-self: flex-start; box-shadow: none; }
html.a-big .icon-btn { width: 46px; height: 46px; }
html.a-big .icon-btn svg { width: 24px; height: 24px; }
html.a-big .btn { padding: 13px 20px; font-size: 16px; }
html.a-big .chan, html.a-big .dm-item, html.a-big .settings nav button { padding-top: 11px; padding-bottom: 11px; }
html.a-big .msg .acts button { width: 42px; height: 40px; }
html.a-big .stage .controls button { width: 64px; height: 64px; }
html.a-big .switch { transform: scale(1.25); transform-origin: right center; }
html.a-big .upanel { height: 72px; }
html.c-compact .msg { margin-top: 2px; padding-top: 1px; padding-bottom: 1px; }
html.c-compact .msg .gut .av { width: 26px !important; height: 26px !important; }
/* Einhand-Modus: alles Wichtige auf eine Seite, große Anruf-Knöpfe */
html.one-left .stage .controls, html.one-right .stage .controls { position: absolute; bottom: 16px; flex-direction: column; gap: 10px; }
html.one-left .stage .controls { left: 16px; right: auto; transform: none; }
html.one-right .stage .controls { right: 16px; left: auto; transform: none; }
html.one-left .stage .controls button, html.one-right .stage .controls button { width: 60px; height: 60px; }
html.one-left .composer .box { flex-direction: row-reverse; }
html.one-left .composer .box textarea { text-align: left; }
html.one-left .upanel { flex-direction: row-reverse; }
html.one-left .upanel .icon-btn, html.one-right .upanel .icon-btn { width: 44px; height: 44px; }
html.one-left .inbox-panel { left: 16px; right: auto; }

.rail-btn.update-btn { background: var(--ok) !important; color: #06210f; font-size: 22px; font-weight: 900; animation: upglow 1.6s ease-in-out infinite; }
@keyframes upglow { 0%, 100% { box-shadow: 0 0 6px rgba(61, 220, 132, .4); } 50% { box-shadow: 0 0 24px rgba(61, 220, 132, .95); } }
#titlebar .tb-update { background: var(--ok); color: #06210f; font-weight: 800; width: auto; padding: 0 10px; }

/* ================= Update 6: Streamer-Banner, Pfeil-Menüs, Anordnung, Komplett dunkel, Performance ================= */
.streamer-bar { display: none; flex: none; padding: 6px 14px; font-size: 13px; text-align: center; background: var(--dnd); color: #fff; font-weight: 700; }
.streamer-bar button { margin-left: 10px; padding: 2px 10px; border-radius: 6px; background: rgba(0, 0, 0, .25); color: #fff; font-weight: 700; font-size: 12px; }
.streamer-bar button:hover { background: rgba(0, 0, 0, .45); }
html.streamer .streamer-bar { display: block; }
.ubtn-grp { display: flex; align-items: center; border-radius: 8px; }
.ubtn-grp:hover { background: var(--bg3); }
.ubtn-grp .icon-btn { width: 30px; }
.caret-btn { width: 16px; height: 34px; border-radius: 6px; color: var(--faint); font-size: 13px; font-weight: 900; line-height: 1; padding-top: 6px; }
.caret-btn:hover { color: var(--text); background: var(--bg4); }
html.a-big .caret-btn { width: 24px; height: 46px; font-size: 16px; }
/* Anordnung (nur große Bildschirme) */
@media (min-width: 1101px) {
  .app { --mem-real: var(--mem-w, 250px); }
  .app.no-members, .app.home-view { --mem-real: 0px; }
  .app > .rail { grid-area: rail; } .app > .side { grid-area: side; } .app > .main { grid-area: main; } .app > .members { grid-area: mem; }
  html.lay-a .app { grid-template-areas: "rail side main mem"; grid-template-columns: 0 var(--side-w, 280px) minmax(0, 1fr) var(--mem-real); }
  html.lay-b .app { grid-template-areas: "rail side mem main"; grid-template-columns: 0 var(--side-w, 280px) var(--mem-real) minmax(0, 1fr); }
  html.lay-c .app { grid-template-areas: "main mem side rail"; grid-template-columns: minmax(0, 1fr) var(--mem-real) var(--side-w, 280px) 0; }
  html.lay-d .app { grid-template-areas: "mem main side rail"; grid-template-columns: var(--mem-real) minmax(0, 1fr) var(--side-w, 280px) 0; }
  .app > .side, .app > .members { position: relative; }
  .rz { position: absolute; top: 0; bottom: 0; width: 6px; cursor: col-resize; z-index: 5; right: -3px; }
  .rz:hover, .rz.drag { background: rgba(var(--ac-rgb), .6); }
  html.lay-c .side .rz, html.lay-d .side .rz { right: auto; left: -3px; }
  .members .rz { left: -3px; right: auto; }
  html.lay-b .members .rz { right: -3px; left: auto; }
  html.lay-c .members .rz { right: -3px; left: auto; }
}
.rz { display: none; }
@media (min-width: 1101px) { .rz { display: block; } }
body.resizing, body.resizing * { cursor: col-resize !important; user-select: none !important; }
.layouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.layout-opt { padding: 8px; border-radius: 12px; background: var(--bg1); border: 2px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.layout-opt.on { border-color: var(--ac); color: var(--text); }
.lay-pv { display: flex; gap: 3px; height: 54px; margin-bottom: 6px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.lay-pv i { display: grid; place-items: center; font-style: normal; font-size: 10px; color: var(--muted); }
.theme-opts.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { .theme-opts.four { grid-template-columns: repeat(2, 1fr); } }
/* Komplett dunkel (schwarz, ohne Farbstich) */
html.th-black { --bg0: #000; --bg1: #0a0a0a; --bg2: #111111; --bg3: #1c1c1c; --bg4: #2a2a2a; --text: #f2f2f2; --muted: #a8a8a8; --faint: #6e6e6e; --line: rgba(255, 255, 255, .08); --glass: rgba(10, 10, 10, .9);
  --scene: linear-gradient(180deg, #000 0%, #0d0d0d 60%, #1a1a1a 100%); --shadow: 0 10px 30px rgba(0, 0, 0, .8); }
html.th-black .auth .sun, html.th-black .auth .grid { opacity: .15; }
/* Performance-Modus */
html.perf *, html.perf *::before, html.perf *::after { animation: none !important; transition: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; text-shadow: none !important; filter: none !important; }
html.perf .rail-btn, html.perf .btn, html.perf .card, html.perf .menu, html.perf .modal, html.perf .popup, html.perf .tile, html.perf .msg .acts, html.perf .inbox-panel, html.perf .mic-menu { box-shadow: none !important; }
html.perf .auth .sun, html.perf .auth .grid, html.perf .auth .palm { display: none; }
html.perf .uname[class*="nfx-"] { background: none !important; -webkit-text-fill-color: currentColor !important; color: var(--nc, var(--text)) !important; }
html.perf .tile.speaking { outline: 3px solid var(--ok); }

/* ================= QR-Anmeldung, Apps & Geräte, TV-Modus ================= */
.qr-login { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr-box { width: 220px; height: 220px; padding: 10px; background: #fff; border-radius: 16px; display: grid; place-items: center; box-shadow: 0 0 30px rgba(var(--ac-rgb), .35); }
.qr-box svg, .qr-mini svg { width: 100%; height: 100%; display: block; }
.qr-mini { width: 120px; height: 120px; flex: none; padding: 6px; background: #fff; border-radius: 10px; }
.qr-steps { margin: 0; padding-left: 20px; font-size: 13.5px; color: var(--muted); line-height: 1.6; text-align: left; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.dl-grid .card { margin: 0; }
.dl-ic { font-size: 30px; margin-bottom: 4px; }
.dl-steps { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); line-height: 1.6; }
html.tv { zoom: 1.25; }
html.tv .icon-btn { width: 44px; height: 44px; }
html.tv .chan, html.tv .dm-item { padding-top: 10px; padding-bottom: 10px; }
.gp-focus { outline: 4px solid var(--ac) !important; outline-offset: 2px; box-shadow: 0 0 0 8px rgba(var(--ac-rgb), .25) !important; border-radius: 10px; }

.update-pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; margin-right: 6px; border-radius: 15px; background: var(--ok); color: #06210f; font-weight: 800; font-size: 13px; white-space: nowrap; animation: upglow 1.6s ease-in-out infinite; }
.update-pill:hover { filter: brightness(1.1); }

.hidden-link { background: var(--bg3); color: var(--muted); border-radius: 6px; padding: 0 6px; font-size: .92em; }
.lk-row .input { flex: 1; }
a.link-chip { text-decoration: none; color: inherit; }

.rep-ctx { margin-top: 10px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; }
.rep-ctx summary { cursor: pointer; padding: 8px 12px; font-weight: 700; font-size: 13.5px; }
.ctx-list { max-height: 320px; overflow-y: auto; padding: 4px 12px 10px; }
.ctx-msg { padding: 6px 8px; border-radius: 8px; font-size: 14px; border-left: 3px solid transparent; }
.ctx-msg.tgt { border-left-color: var(--away); }
.ctx-msg.hit { background: rgba(255, 71, 87, .15); border-left-color: var(--dnd); }

.oa-list { display: grid; gap: 8px; }
.oa-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; }
.oa-item .nm { flex: 1; min-width: 0; } .oa-item small { display: block; color: var(--muted); font-size: 12.5px; }
.vok { color: var(--ok); }
.oa-adm { padding: 10px 0; border-top: 1px solid var(--line); }
.oa-adm:first-of-type { border-top: 0; }

.acct-list { display: grid; gap: 8px; }
.acct { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg2); border: 2px solid var(--line); text-align: left; }
.acct:hover { border-color: rgba(var(--ac-rgb), .6); }
.acct.on { border-color: var(--ac); }
.acct .nm { flex: 1; min-width: 0; } .acct small { display: block; color: var(--muted); }
.add-acct { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 12px; border-radius: 10px; background: rgba(var(--ac-rgb), .18); font-weight: 700; font-size: 13.5px; }
.un-steps { margin: 0 0 12px; padding-left: 20px; line-height: 1.8; }

/* Desktop-App (Palmwave.exe): Windows liefert die Titelleiste, eigene Leiste und Install-Knopf weg */
html.desktop-app #titlebar, html.desktop-app #instBtn { display: none !important; }

/* ===================== Update 15: Rechtsklick-Menüs, Desktop-Titelleiste, Feinschliff ===================== */
.menu.ctx { min-width: 228px; max-width: 300px; max-height: calc(100vh - 16px); overflow-y: auto; background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(var(--ac-rgb), .22); box-shadow: 0 18px 50px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .2); padding: 6px; }
.menu.ctx button { padding: 7px 9px; font-size: 13.8px; gap: 9px; transition: background .08s, color .08s; }
.menu.ctx button:disabled { opacity: .4; cursor: default; background: none !important; color: var(--muted) !important; }
.menu.ctx button:hover:not(:disabled) { background: linear-gradient(90deg, rgba(var(--ac-rgb), .9), rgba(var(--ac-rgb), .65)); color: var(--ac-text); }
.menu.ctx button.danger:hover { background: var(--dnd); }
.menu.ctx .m-ic { width: 18px; display: grid; place-items: center; font-size: 14px; flex: none; }
.menu.ctx .m-ic svg { width: 17px; height: 17px; }
.menu.ctx .m-lbl { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.menu.ctx .m-lbl small { font-size: 11.5px; opacity: .72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu.ctx .m-arr { font-size: 17px; line-height: 1; opacity: .7; }
.menu.ctx .m-chk { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--faint); flex: none; display: grid; place-items: center; }
.menu.ctx .m-chk.on { background: var(--ac); border-color: var(--ac); }
.menu.ctx .m-chk.on::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.menu.ctx .m-head { padding: 6px 9px 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu.ctx.sub { animation: pop .1s; z-index: 61; }
.menu.ctx hr { margin: 4px 6px; }

/* Kategorien, Favoriten */
.cat.user-cat { cursor: pointer; border-radius: 6px; }
.cat.user-cat:hover { color: var(--text); }
.cat.user-cat .cat-arr { display: inline-block; font-style: normal; margin-right: 3px; transition: transform .15s; }
.cat.user-cat.collapsed .cat-arr { transform: rotate(-90deg); }
.cat.fav span { color: var(--sun); }

/* Desktop-App ohne Windows-Rahmen: eigene Leiste im App-Farbton */
html.desktop-frameless #titlebar { display: flex !important; align-items: center; gap: 8px; position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: 34px; padding: 0 0 0 12px;
  background: var(--bg0); font-size: 13px; color: var(--muted); user-select: none; border-bottom: 1px solid var(--line); }
html.desktop-frameless #titlebar img { width: 18px; height: 18px; }
html.desktop-frameless #titlebar .tb-name { font: italic 900 12.5px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
html.desktop-frameless #titlebar .tb-fill { flex: 1; display: flex; justify-content: center; min-width: 0; height: 100%; align-items: center; }
html.desktop-frameless #titlebar .tb-where { font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50vw; }
html.desktop-frameless #titlebar .tb-btn { display: grid; place-items: center; color: var(--muted); width: 30px; height: 26px; border-radius: 6px; font-weight: 800; font-size: 15px; }
html.desktop-frameless #titlebar .tb-btn:hover { background: var(--bg3); color: var(--text); }
html.desktop-frameless #titlebar .tb-btn svg { width: 17px; height: 17px; }
html.desktop-frameless #titlebar .tb-update { width: auto; padding: 0 10px; }
html.desktop-frameless .win-ctl { display: flex; height: 100%; margin-left: 6px; }
html.desktop-frameless .win-ctl .wc { width: 46px; height: 100%; display: grid; place-items: center; color: var(--text); transition: background .1s; }
html.desktop-frameless .win-ctl .wc svg { width: 10px; height: 10px; }
html.desktop-frameless .win-ctl .wc:hover { background: rgba(255, 255, 255, .1); }
[data-theme="light"] html.desktop-frameless .win-ctl .wc:hover, html.desktop-frameless[data-theme="light"] .win-ctl .wc:hover { background: rgba(0, 0, 0, .08); }
html.desktop-frameless .win-ctl .wc.close:hover { background: #e81123; color: #fff; }
html.desktop-frameless body { padding-top: 34px; }
html.desktop-frameless .app, html.desktop-frameless .boot { height: calc(100dvh - 34px); }
html.desktop-frameless .auth { min-height: calc(100dvh - 34px); }
html.desktop-frameless .settings, html.desktop-frameless .overlay { top: 34px !important; }
html.desktop-frameless .settings .close { top: 64px; }

/* Wartung & Rundnachricht */
.maint { position: fixed; inset: 0; z-index: 9999; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 30px; background: var(--scene); color: #fff; }
.maint img { width: 110px; filter: drop-shadow(0 0 30px rgba(255, 255, 255, .5)); animation: pulse 2s ease-in-out infinite; }
.maint h1 { margin: 0; font: italic 900 42px var(--display); text-shadow: 0 4px 30px rgba(0, 0, 0, .4); }
.maint p { margin: 0; font-size: 18px; max-width: 520px; }
.maint small { opacity: .8; }
.announce { position: fixed; z-index: 90; top: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; max-width: min(720px, 92vw); padding: 12px 14px 12px 16px;
  border-radius: 14px; background: var(--glass); backdrop-filter: blur(16px); border: 1px solid rgba(var(--ac-rgb), .4); box-shadow: var(--shadow); animation: pop .25s cubic-bezier(.2, .9, .3, 1.3); }
html.desktop-frameless .announce { top: 46px; }
.announce > span { font-size: 22px; }
.announce.warn { border-color: var(--away); }
.announce.party { border-image: linear-gradient(90deg, var(--cyan), var(--ac2), var(--sun)) 1; }
.announce button { color: var(--muted); font-size: 16px; padding: 4px 6px; }
.id-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.id-table th { text-align: left; color: var(--faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.id-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.id-table td .av { display: inline-grid; vertical-align: middle; margin-right: 6px; }
.id-table tbody tr { cursor: pointer; }
.id-table tbody tr:hover { background: var(--bg3); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.alert-card { border-left: 4px solid var(--dnd); }
.nav-foot { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.back-btn { color: var(--cyan) !important; font-weight: 700; }

/* ---------- Feinschliff: weicher, ruhiger, hochwertiger ---------- */
.rail-btn { transition: border-radius .22s cubic-bezier(.2, .9, .3, 1.2), background .2s, box-shadow .2s, transform .12s; }
.rail-btn:active { transform: scale(.94); }
.chan { transition: background .12s, color .12s; }
.chan.on { box-shadow: inset 3px 0 0 var(--ac); }
.side-head { transition: background .15s; }
.side-head:hover { background: rgba(var(--ac-rgb), .08); }
.msg { transition: background .1s; border-radius: 0 8px 8px 0; }
.msg:hover { background: linear-gradient(90deg, rgba(var(--ac-rgb), .07), transparent 70%); }
.msg.mention { background: linear-gradient(90deg, rgba(255, 176, 32, .14), rgba(255, 176, 32, .03)); box-shadow: inset 3px 0 0 var(--away); }
.msg .acts { backdrop-filter: blur(10px); }
.btn { box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset; }
.btn-pri { background-image: linear-gradient(135deg, var(--ac), color-mix(in srgb, var(--ac) 70%, var(--ac2))); }
.btn:active { transform: translateY(1px) scale(.98); }
.input { transition: border-color .15s, box-shadow .15s; }
.input:focus { box-shadow: 0 0 0 3px rgba(var(--ac-rgb), .25); }
.modal { border: 1px solid rgba(var(--ac-rgb), .18); }
.overlay { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.card { transition: border-color .15s; }
.mem { transition: background .12s, opacity .12s; border-radius: 8px; }
.mem.off { opacity: .55; }
.mem.off:hover { opacity: 1; }
.badge-num { box-shadow: 0 2px 8px rgba(255, 71, 87, .45); }
::-webkit-scrollbar-thumb:hover { background-color: var(--ac); }
html.perf .menu.ctx, html.perf .announce, html.perf .overlay { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.perf .menu.ctx { background: var(--bg0); }

/* ===================== Update 16: Neues Layout – Community-Wechsel, Kanalliste, Willkommenskarte ===================== */
.app > .rail, .app .rail { display: none !important; }
.side { background: var(--bg1); display: flex; flex-direction: column; min-width: 0; }

/* Kopf: Community-Name mit Pfeil */
.side-head.comm-head { margin: 12px 12px 6px; height: 50px; padding: 0 12px 0 16px; width: calc(100% - 24px); border-radius: 12px; border: 1.5px solid rgba(var(--ac-rgb), .35);
  background: rgba(var(--ac-rgb), .06); font: 800 17px var(--font); color: var(--text); text-align: left; gap: 10px; transition: border-color .15s, background .15s, box-shadow .15s; }
.side-head.comm-head::after { display: none; }
.side-head.comm-head:hover { background: rgba(var(--ac-rgb), .12); border-color: rgba(var(--ac-rgb), .6); }
.side-head.comm-head[aria-expanded="true"] { border-color: var(--ac); background: rgba(var(--ac-rgb), .14); box-shadow: 0 0 0 3px rgba(var(--ac-rgb), .18), 0 0 22px rgba(var(--ac-rgb), .25); }
.side-head.comm-head:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--ac-rgb), .45); }
.comm-head .comm-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comm-head .comm-chev { position: relative; display: grid; place-items: center; color: var(--muted); }
.comm-head .comm-chev svg { width: 20px; height: 20px; transition: transform .18s; }
.comm-head[aria-expanded="true"] .comm-chev svg { transform: rotate(180deg); color: var(--text); }
.comm-dot { position: absolute; top: -4px; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--ac2); box-shadow: 0 0 8px var(--ac2); }

/* Aufgeklapptes Menü */
.comm-menu { position: fixed; z-index: 60; padding: 8px; border-radius: 14px; background: color-mix(in srgb, var(--bg1) 94%, #000); border: 1px solid rgba(var(--ac-rgb), .25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55); overflow-y: auto; animation: pop .14s cubic-bezier(.2, .9, .3, 1.2); }
.comm-title { padding: 8px 10px 8px; font-size: 15px; font-weight: 600; color: var(--muted); }
.comm-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 9px; font-size: 16px; font-weight: 600; color: var(--text); text-align: left; transition: background .1s; }
.comm-item:hover, .comm-item:focus-visible { background: rgba(255, 255, 255, .06); outline: none; }
.comm-item.on { background: rgba(var(--ac-rgb), .2); }
.comm-item.on:hover { background: rgba(var(--ac-rgb), .26); }
.comm-chk { width: 20px; display: grid; place-items: center; color: var(--text); flex: none; }
.comm-chk svg { width: 20px; height: 20px; }
.comm-ic { width: 26px; height: 26px; display: grid; place-items: center; color: color-mix(in srgb, var(--ac) 55%, #fff); flex: none; }
.comm-ic svg { width: 23px; height: 23px; }
.comm-ic.img { border-radius: 8px; overflow: hidden; }
.comm-ic.img img { width: 100%; height: 100%; object-fit: cover; }
.comm-ic.adm { color: var(--away); }
.comm-lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comm-unread { width: 8px; height: 8px; border-radius: 50%; background: var(--text); flex: none; }
.comm-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--dnd); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.comm-menu hr { border: 0; height: 1px; background: var(--line); margin: 6px 8px; }
.comm-item.add { font-weight: 600; }
.comm-plus { width: 20px; display: grid; place-items: center; color: var(--text); margin-right: 6px; }
.comm-plus svg { width: 20px; height: 20px; }

/* Kanalliste */
.side-scroll { padding: 4px 10px 12px; }
.side .cat { padding: 18px 8px 8px; font-size: 13px; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.side .cat button { font-size: 22px; color: var(--muted); border-radius: 6px; width: 26px; height: 26px; display: grid; place-items: center; padding: 0; }
.side .cat button:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.side .chan { padding: 0 12px; height: 42px; gap: 12px; font-size: 17px; border-radius: 10px; color: var(--muted); margin: 2px 0; }
.side .chan .ico { width: 22px; color: var(--faint); }
.side .chan .ico svg { width: 20px; height: 20px; }
.side .chan:hover { background: rgba(255, 255, 255, .055); color: var(--text); }
.side .chan:hover .ico { color: var(--muted); }
.side .chan.on { background: linear-gradient(90deg, rgba(var(--ac-rgb), .32), rgba(var(--ac-rgb), .14)); color: var(--text); font-weight: 700; box-shadow: inset 3px 0 0 var(--ac); }
.side .chan.on .ico { color: color-mix(in srgb, var(--ac) 40%, #fff); }
.side .chan.unread::before { left: -10px; }
.side .vusers { margin-left: 34px; }
.side .dm-item { border-radius: 10px; }

/* Profilbereich unten */
.upanel { background: color-mix(in srgb, var(--bg0) 80%, transparent); border-top: 1px solid var(--line); }

/* Chatkopf */
.main-head { height: 56px; border-bottom: 1px solid var(--line); }
.main-head .title { font-size: 18px; }
.main-head .sub { color: var(--muted); }

/* Ankündigungsbalken */
.ann-bar { gap: 12px; padding: 0 18px; min-height: 46px; font-size: 16px; font-weight: 700; background: linear-gradient(90deg, #ff8a3d 0%, #ff5a7a 55%, #ff3d8b 100%); box-shadow: 0 6px 20px rgba(255, 61, 139, .18); }
.ann-bar > svg { width: 22px; height: 22px; flex: none; }
.ann-bar .icon-btn svg { width: 20px; height: 20px; }
.ann-bar .icon-btn:hover { background: rgba(255, 255, 255, .18); }

/* Willkommenskarte – bleibt auch auf großen Bildschirmen kompakt */
.wc-wrap { padding: 28px 32px 18px; }
.wc-card { width: 100%; max-width: 490px; padding: 24px 22px 22px; border-radius: 20px; background: linear-gradient(160deg, rgba(var(--ac-rgb), .1), rgba(var(--ac-rgb), .03) 60%), var(--bg1);
  border: 1px solid rgba(var(--ac-rgb), .2); box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.wc-top { display: flex; align-items: center; gap: 22px; margin-bottom: 24px; }
.wc-logo { width: 72px; height: 72px; border-radius: 16px; flex: none; display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 8px 26px rgba(var(--ac-rgb), .5); }
.wc-logo img { width: 100%; height: 100%; object-fit: cover; }
.wc-top h2 { margin: 0; font: italic 900 30px/1.15 var(--display); letter-spacing: .01em; color: var(--text); }
.wc-top p { margin: 6px 0 0; font-size: 18px; color: var(--muted); }
.wc-actions { display: grid; gap: 12px; }
.wc-btn { display: flex; align-items: center; gap: 16px; height: 54px; padding: 0 16px 0 20px; border-radius: 12px; border: 1px solid rgba(var(--ac-rgb), .4); background: rgba(var(--ac-rgb), .1);
  color: var(--text); font-size: 18px; font-weight: 700; text-align: left; transition: background .12s, border-color .12s, transform .1s, box-shadow .12s; }
.wc-btn:hover { background: rgba(var(--ac-rgb), .22); border-color: var(--ac); box-shadow: 0 0 18px rgba(var(--ac-rgb), .25); }
.wc-btn:active { transform: scale(.99); }
.wc-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--ac-rgb), .5); }
.wc-ic { display: grid; place-items: center; color: color-mix(in srgb, var(--ac) 55%, #fff); }
.wc-ic svg { width: 26px; height: 26px; }
.wc-lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-arr svg { width: 22px; height: 22px; transform: rotate(-90deg); color: var(--text); }
@media (max-width: 760px) { .wc-wrap { padding: 16px 12px 10px; } .wc-top { gap: 14px; } .wc-logo { width: 56px; height: 56px; } .wc-top h2 { font-size: 23px; } .wc-btn { font-size: 16px; } }

/* Mitgliederliste */
.members { background: var(--bg1); border-left: 1px solid var(--line); }
.members .cat { font-size: 13px; letter-spacing: .1em; color: var(--muted); padding: 20px 10px 8px; }
.mem { padding: 8px 10px; gap: 12px; }
.mem .nm > div { font-size: 16.5px; font-weight: 650; }
.mem:hover { background: rgba(255, 255, 255, .05); }

/* Light-Modus bleibt lesbar */
[data-theme="light"] .side .chan.on { color: var(--text); }
[data-theme="light"] .side .chan.on .ico, [data-theme="light"] .comm-ic, [data-theme="light"] .wc-ic { color: var(--ac); }
[data-theme="light"] .comm-menu { background: var(--bg2); }
html.perf .comm-menu, html.perf .wc-card, html.perf .wc-logo { box-shadow: none !important; }
/* Ohne Icon-Leiste: mittlere Fenstergrößen = Seitenleiste + Chat, Mitglieder klappen als Panel auf */
@media (max-width: 1100px) and (min-width: 761px) {
  .app, .app.no-members, .app.home-view { grid-template-columns: min(var(--side-w, 264px), 300px) minmax(0, 1fr); }
}

/* ===================== Update 17: Server-Tabs oben, Mitglieder-Knopf, Sprachräume kompakt ===================== */
html.has-tabs { --tabs-h: 48px; }
.srv-tabs { height: var(--tabs-h, 48px); display: flex; align-items: stretch; gap: 2px; padding: 0 10px; background: var(--bg0); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
html.desktop-frameless .srv-tabs { margin-top: 0; }
.srv-tabs + .app { height: calc(100dvh - var(--tabs-h, 48px)); }
html.desktop-frameless .srv-tabs + .app { height: calc(100dvh - 34px - var(--tabs-h, 48px)); }
.st-list { flex: 1; min-width: 0; display: flex; align-items: stretch; gap: 2px; overflow: hidden; }
.st-tab { position: relative; display: flex; align-items: center; gap: 9px; padding: 0 14px; max-width: 220px; flex: none; color: var(--muted); font-weight: 650; font-size: 14.5px; border-radius: 10px 10px 0 0; transition: color .12s, background .12s; }
.st-tab:hover { color: var(--text); background: rgba(var(--ac-rgb), .08); }
.st-tab:focus-visible, .st-more:focus-visible, .st-add:focus-visible, .st-admin:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ac); }
.st-tab.on { color: var(--text); background: linear-gradient(180deg, transparent, rgba(var(--ac-rgb), .14)); }
.st-tab.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--ac); box-shadow: 0 0 12px rgba(var(--ac-rgb), .7); }
.st-tab.unread .st-name { color: var(--text); font-weight: 800; }
.st-tab.unread::before { content: ""; position: absolute; top: 9px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--text); }
.st-tab .st-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-tab > svg { width: 20px; height: 20px; color: var(--ac); }
.st-ic { width: 26px; height: 26px; border-radius: 8px; overflow: hidden; flex: none; display: grid; place-items: center; background: rgba(var(--ac-rgb), .2); color: var(--text); font-size: 11px; font-weight: 800; }
.st-ic img { width: 100%; height: 100%; object-fit: cover; }
.st-tab.on .st-ic.txt { background: var(--ac); color: var(--ac-text); }
.st-call { display: grid; place-items: center; color: var(--ok); }
.st-call svg { width: 15px; height: 15px; }
.st-badge { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--dnd); color: #fff; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.st-dm { flex: none; }
.st-sep { width: 1px; margin: 12px 6px; background: var(--line); flex: none; }
.st-more { flex: none; display: flex; align-items: center; gap: 6px; padding: 0 12px; margin: 8px 0; border-radius: 9px; color: var(--muted); font-weight: 650; font-size: 14px; border: 1px solid var(--line); }
.st-more:hover { color: var(--text); border-color: rgba(var(--ac-rgb), .5); }
.st-more b { min-width: 18px; height: 18px; border-radius: 9px; background: var(--bg3); font-size: 11.5px; display: grid; place-items: center; }
.st-more.unread b { background: var(--ac); color: var(--ac-text); }
.st-more svg { width: 16px; height: 16px; }
.st-add, .st-admin { flex: none; position: relative; width: 38px; margin: 6px 0 6px 4px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.st-add:hover { color: var(--ok); background: rgba(61, 220, 132, .12); }
.st-admin { color: var(--away); }
.st-admin:hover { background: rgba(255, 176, 32, .12); }
.st-admin .st-badge { position: absolute; top: 2px; right: -2px; }
.st-add svg, .st-admin svg { width: 20px; height: 20px; }

/* Kopf der Kanalliste */
.side-head.srv-head, .side-head.plain-head { margin: 10px 10px 4px; height: 46px; width: calc(100% - 20px); padding: 0 10px; border-radius: 11px; gap: 10px; font: 800 16px var(--font); color: var(--text); text-align: left; border: 1px solid var(--line); }
.side-head.srv-head::after, .side-head.plain-head::after { display: none; }
.side-head.srv-head:hover { background: rgba(var(--ac-rgb), .1); border-color: rgba(var(--ac-rgb), .4); }
.side-head.srv-head .comm-name, .side-head.plain-head .comm-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-head.srv-head > svg { width: 18px; height: 18px; color: var(--muted); }
.side-head.plain-head { cursor: default; border-color: transparent; padding-left: 8px; }
.side-head.plain-head .icon-btn.sm { width: 30px; height: 30px; }

/* Mitglieder-Knopf */
.mem-toggle { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font-weight: 650; font-size: 14px; transition: background .12s, color .12s, border-color .12s; }
.mem-toggle svg { width: 18px; height: 18px; }
.mem-toggle b { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--bg3); color: var(--text); font-size: 12px; display: grid; place-items: center; }
.mem-toggle:hover { color: var(--text); border-color: rgba(var(--ac-rgb), .5); }
.mem-toggle.act { color: var(--text); background: rgba(var(--ac-rgb), .18); border-color: var(--ac); }
.mem-toggle.act b { background: var(--ac); color: var(--ac-text); }
@media (max-width: 760px) { .mem-toggle span { display: none; } }
/* schmale Fenster: Liste legt sich über den Chat */
@media (max-width: 1100px) { .app .members { top: 0; } .srv-tabs + .app .members { top: var(--tabs-h, 48px); } html.desktop-frameless .srv-tabs + .app .members { top: calc(34px + var(--tabs-h, 48px)); } }

/* Anruf-Knopf im privaten Chat */
.call-btn { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 10px; background: var(--ok); color: #05210f; font-weight: 800; font-size: 14px; box-shadow: 0 4px 14px rgba(61, 220, 132, .3); transition: filter .12s, transform .1s; }
.call-btn svg { width: 18px; height: 18px; }
.call-btn:hover { filter: brightness(1.1); }
.call-btn:active { transform: scale(.97); }
.call-btn.hang { background: var(--dnd); color: #fff; box-shadow: 0 4px 14px rgba(255, 71, 87, .3); }

/* Sprachräume: bis zu 2 Profilbilder + „+N“, Namen beim Darüberfahren / Fokus */
.side .chan.vchan { position: relative; }
.side .chan.vchan.live .ico { color: var(--ok); }
.vfaces { display: flex; align-items: center; margin-left: auto; flex: none; }
.vface { margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg1); display: grid; }
.vface:first-child { margin-left: 0; }
.vface .av { width: 22px !important; height: 22px !important; }
.vmore { margin-left: 4px; min-width: 24px; height: 20px; padding: 0 5px; border-radius: 10px; background: rgba(var(--ac-rgb), .25); color: var(--text); font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.vtip { display: none; position: absolute; left: 12px; right: 12px; top: calc(100% + 2px); z-index: 15; padding: 6px; border-radius: 10px; background: var(--bg0); border: 1px solid rgba(var(--ac-rgb), .3); box-shadow: var(--shadow); }
.side .chan.vchan:hover .vtip, .side .chan.vchan:focus-visible .vtip, .side .chan.vchan:focus-within .vtip { display: block; }
.side .chan.vchan:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ac); }
.vtip-row { display: flex; align-items: center; gap: 8px; padding: 4px 6px; font-size: 14px; color: var(--text); }
.vtip-row .vi { margin-left: auto; display: flex; gap: 3px; color: var(--muted); }
.vtip-row .vi svg { width: 14px; height: 14px; }
.side .chan.vchan:hover .tools ~ .vfaces, .side .chan.vchan:hover .vfaces { margin-left: auto; }

/* Willkommenskarte bearbeitbar */
.wc-card { position: relative; }
.wc-edit { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 700; border: 1px solid var(--line); background: var(--bg2); opacity: .75; transition: opacity .12s, color .12s, border-color .12s; }
.wc-edit svg { width: 15px; height: 15px; }
.wc-card:hover .wc-edit, .wc-edit:focus-visible { opacity: 1; }
.wc-edit:hover { color: var(--text); border-color: var(--ac); }
.wc-card.wc-hidden { opacity: .6; border-style: dashed; }
.wc-note { font-size: 12.5px; color: var(--away); margin: -8px 0 12px; }
.wc-emo { font-size: 22px; line-height: 1; }
.wc-top h2 { padding-right: 96px; }
.wc-row { display: grid; grid-template-columns: 52px 1fr 1fr; gap: 6px; padding: 10px; margin-top: 8px; border-radius: 12px; background: var(--bg1); border: 1px solid var(--line); }
.wc-row .input { padding: 8px 10px; font-size: 14px; }
.wc-row .wc-emoin { text-align: center; font-size: 18px; padding: 6px; }
.wc-row .wc-lblin { grid-column: 1 / 3; }
.wc-rowbtns { display: flex; justify-content: flex-end; gap: 2px; }
.wc-rowbtns .icon-btn { width: 32px; height: 32px; }
.wc-rowbtns .icon-btn:disabled { opacity: .3; }
.wc-edit { width: 32px; padding: 0; justify-content: center; top: 10px; right: 10px; }
.wc-edit span { display: none; }
.wc-top h2 { padding-right: 26px; }

/* Fenster/Dialoge: Knöpfe brechen um statt abgeschnitten zu werden */
.modal { max-width: min(460px, calc(100vw - 24px)); }
.modal .mf { flex-wrap: wrap; row-gap: 8px; }
.modal .mf .btn { white-space: normal; text-align: center; }
.modal .mb, .modal .mh { overflow-wrap: anywhere; }
.menu.ctx, .comm-menu, .inbox { max-width: calc(100vw - 16px); }

/* Geräte-Einrichtung */
.ds-step { display: flex; gap: 14px; padding: 14px; margin: 10px 0; border-radius: 14px; background: var(--bg1); border: 1px solid var(--line); }
.ds-step.done { border-color: rgba(61, 220, 132, .45); }
.ds-ic { font-size: 26px; line-height: 1; padding-top: 2px; }
.ds-body { flex: 1; min-width: 0; display: grid; gap: 8px; justify-items: start; }
.ds-body > .muted { font-size: 13.5px; margin-top: -4px; }
.ds-ok { color: var(--ok); font-weight: 800; font-size: 13px; margin-left: 6px; }
.ds-bad { color: var(--dnd); font-weight: 800; font-size: 13px; margin-left: 6px; }
.ds-skip { color: var(--faint); font-size: 13px; margin-left: 6px; }
.ds-meter { width: 100%; height: 10px; border-radius: 6px; background: var(--bg3); overflow: hidden; }
.ds-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ok), var(--ac)); transition: width .06s; }
.ds-sel { width: 100%; }
.ds-cam { width: 200px; max-width: 100%; border-radius: 10px; background: #000; }
.ds-help, .mic-help { font-size: 14px; line-height: 1.5; }
.ds-ol { margin: 6px 0 8px; padding-left: 20px; display: grid; gap: 4px; }

/* Direktnachrichten: Suche, einzeln schließen */
.dm-search { position: relative; margin: 2px 10px 6px; display: flex; align-items: center; }
.dm-search > svg { position: absolute; left: 11px; width: 17px; height: 17px; color: var(--faint); pointer-events: none; }
.dm-search input { width: 100%; height: 38px; padding: 0 34px 0 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font-size: 14.5px; outline: none; transition: border-color .12s, box-shadow .12s; }
.dm-search input:focus { border-color: var(--ac); box-shadow: 0 0 0 3px rgba(var(--ac-rgb), .2); }
.dm-search .dm-clear { position: absolute; right: 6px; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); }
.dm-search .dm-clear:hover { background: var(--bg3); color: var(--text); }
.dm-search .dm-clear svg { width: 15px; height: 15px; }
.dm-item { position: relative; }
.dm-close { display: none; width: 26px; height: 26px; border-radius: 7px; place-items: center; color: var(--muted); flex: none; }
.dm-close svg { width: 15px; height: 15px; }
.dm-item:hover .dm-close, .dm-item:focus-within .dm-close { display: grid; }
.dm-close:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.dm-item:hover .dot-unread { display: none; }
.dm-new .nm small { color: var(--faint); }
.dm-go { color: var(--ac); display: grid; place-items: center; }
.dm-go svg { width: 18px; height: 18px; }

/* ===================== Update 24: Creator, Stories, Videos, Emotes, GIFs ===================== */
.tag.creator { background: linear-gradient(90deg, var(--ac), var(--ac2)); color: #fff; }
.st-cr-ic { font-size: 17px; line-height: 1; }
.cr-page { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 26px 40px; }
.cr-sec { margin-top: 22px; }
.cr-sec h3 { margin: 0 0 12px; font-size: 18px; }
.cr-sec h3 small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.cr-cta { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; background: linear-gradient(120deg, rgba(var(--ac-rgb), .22), rgba(var(--ac-rgb), .05) 70%), var(--bg1); border: 1px solid rgba(var(--ac-rgb), .35); }
.cr-cta > div:nth-child(2), .cr-cta > div:first-child:not(.cr-cta-ic) { flex: 1; }
.cr-cta b { font-size: 17px; }
.cr-cta p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.cr-cta-ic { font-size: 34px; }
.cr-cta.pending { border-color: rgba(255, 176, 32, .5); }
.cr-declined { color: var(--away); }
.st-row { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 10px; }
.st-ring { display: grid; justify-items: center; gap: 6px; width: 84px; flex: none; color: var(--text); }
.st-ring-in { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--bg3); padding: 3px; transition: transform .12s; }
.st-ring.new .st-ring-in { background: conic-gradient(from 200deg, var(--cyan), var(--ac), var(--ac2), var(--sun), var(--cyan)); }
.st-ring-in > .av { box-shadow: 0 0 0 3px var(--bg2); border-radius: 50%; }
.st-ring:hover .st-ring-in { transform: scale(1.05); }
.st-ring-nm { font-size: 12.5px; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.st-ring.add .st-ring-in { background: transparent; border: 2px dashed rgba(var(--ac-rgb), .6); }
.st-plus { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--ac-rgb), .18); color: var(--ac); }
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.vid-card { text-align: left; border-radius: 14px; overflow: hidden; background: var(--bg1); border: 1px solid var(--line); transition: transform .12s, border-color .12s; color: var(--text); }
.vid-card:hover { transform: translateY(-2px); border-color: rgba(var(--ac-rgb), .5); }
.vid-thumb { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vid-thumb video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.vid-dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .75); font-size: 12px; font-weight: 700; }
.vid-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: #fff; opacity: 0; transition: opacity .12s; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.vid-card:hover .vid-play { opacity: 1; }
.vid-info { display: flex; gap: 10px; padding: 10px 12px 12px; }
.vid-info b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vid-info small { color: var(--muted); font-size: 12.5px; }
.vid-info > div { min-width: 0; }
.vid-player video { width: 100%; max-height: 70vh; background: #000; display: block; }
.vid-meta { padding: 14px 18px 4px; }
.vid-cap { margin: 10px 0 0; }
.post-prev { border-radius: 12px; overflow: hidden; background: #000; display: grid; place-items: center; max-height: 50vh; }
.post-prev img, .post-prev video { max-width: 100%; max-height: 50vh; display: block; }
.up-bar { height: 8px; border-radius: 5px; background: var(--bg3); overflow: hidden; margin-top: 12px; }
.up-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ac), var(--ac2)); transition: width .2s; }
.ca-proof { position: relative; min-height: 84px; border-radius: 12px; border: 2px dashed rgba(var(--ac-rgb), .45); display: grid; place-items: center; text-align: center; padding: 12px; color: var(--muted); font-size: 14px; background-size: cover; background-position: center; }
.ca-proof input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ca-proof.done { border-style: solid; border-color: var(--ok); }
.ca-proof.done span { background: rgba(0, 0, 0, .7); color: #fff; padding: 4px 10px; border-radius: 8px; }
.ca-proof.busy { opacity: .6; }
.ca-hint { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg1); font-size: 13.5px; }
/* Story-Ansicht */
.story-view { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .92); display: grid; place-items: center; outline: none; animation: fade .15s; }
.sv-box { position: relative; height: min(92vh, 860px); aspect-ratio: 9 / 16; max-width: 96vw; border-radius: 16px; overflow: hidden; background: #000; user-select: none; }
.sv-media { position: absolute; inset: 0; display: grid; place-items: center; }
.sv-media img, .sv-media video { width: 100%; height: 100%; object-fit: contain; }
.sv-bars { position: absolute; z-index: 3; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; }
.sv-bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.sv-bars i.full b { width: 100% !important; }
.sv-bars b { display: block; height: 100%; width: 0; background: #fff; }
.sv-head { position: absolute; z-index: 3; top: 22px; left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.sv-head small { display: block; font-size: 12px; opacity: .8; }
.sv-sp { flex: 1; }
.sv-views { font-size: 13px; font-weight: 700; }
.sv-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .35); }
.sv-btn svg { width: 17px; height: 17px; }
.sv-cap { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 40px 16px 18px; color: #fff; font-size: 16px; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); text-align: center; }
.sv-cap:empty { display: none; }
.sv-nav { position: absolute; z-index: 2; top: 70px; bottom: 70px; width: 35%; }
.sv-nav.prev { left: 0; } .sv-nav.next { right: 0; }
.sv-close { position: fixed; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .12); }
html.desktop-frameless .sv-close { top: 48px; }
/* Emotes, GIFs, Auswahl */
.emote { height: 1.6em; width: auto; vertical-align: -.45em; margin: 0 1px; }
.txt.jumbo .emote { height: 3em; }
.gif-att { position: relative; display: inline-block; max-width: min(320px, 100%); }
.gif-att img { max-width: 100%; height: auto; border-radius: 10px; display: block; }
.gif-tag { position: absolute; left: 8px; bottom: 8px; padding: 1px 6px; border-radius: 5px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; font-weight: 800; }
.gif-btn { width: auto !important; padding: 0 7px; font-size: 11.5px; font-weight: 900; letter-spacing: .04em; border: 1.5px solid currentColor; border-radius: 6px; height: 24px !important; margin: 0 4px; }
.picker2 { position: fixed; z-index: 60; width: 340px; max-width: calc(100vw - 16px); height: 360px; display: flex; flex-direction: column; background: var(--bg0); border: 1px solid rgba(var(--ac-rgb), .25); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; animation: pop .12s; }
.picker2.gifpk { width: 380px; height: 430px; }
.pk-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.pk-tabs button { flex: 1; padding: 7px 8px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.pk-tabs button.on { background: rgba(var(--ac-rgb), .2); color: var(--text); }
.pk-body { flex: 1; overflow-y: auto; padding: 8px; }
.pk-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.pk-grid button { aspect-ratio: 1; font-size: 22px; border-radius: 8px; display: grid; place-items: center; }
.pk-grid button:hover { background: var(--bg3); }
.pk-grid.emotes { grid-template-columns: repeat(6, 1fr); gap: 4px; }
.pk-grid.emotes img { width: 36px; height: 36px; object-fit: contain; }
.gif-search { position: relative; padding: 10px; border-bottom: 1px solid var(--line); }
.gif-search svg { position: absolute; left: 21px; top: 21px; width: 16px; height: 16px; color: var(--faint); }
.gif-search input { width: 100%; height: 36px; padding: 0 12px 0 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); outline: none; }
.gif-search input:focus { border-color: var(--ac); }
.gif-grid { flex: 1; overflow-y: auto; padding: 8px; columns: 2; column-gap: 6px; }
.gif-it { display: block; width: 100%; margin-bottom: 6px; border-radius: 8px; overflow: hidden; break-inside: avoid; background: var(--bg2); }
.gif-it img { width: 100%; display: block; }
.gif-it:hover { outline: 2px solid var(--ac); }
.gif-by { padding: 5px 10px; font-size: 10.5px; color: var(--faint); text-align: right; border-top: 1px solid var(--line); }
/* Admin */
.cr-app.open { border-left: 4px solid var(--away); }
.cr-app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 12px; }
.kv2 small { display: block; color: var(--faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.kv2 a { word-break: break-all; }
.cr-about { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg2); font-style: italic; }
.cr-proof { display: inline-flex; flex-direction: column; gap: 4px; margin-top: 12px; font-size: 13px; }
.cr-proof img { max-width: 320px; max-height: 200px; border-radius: 10px; border: 1px solid var(--line); object-fit: cover; }
.chip.ok { background: rgba(61, 220, 132, .16); color: var(--ok); }
.up-pick { position: relative; width: 84px; height: 84px; border-radius: 12px; border: 2px dashed rgba(var(--ac-rgb), .5); display: grid; place-items: center; text-align: center; font-size: 12.5px; color: var(--muted); overflow: hidden; cursor: pointer; flex: none; }
.up-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.up-pick img { width: 100%; height: 100%; object-fit: contain; }
.em-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; }
.em-it { display: grid; justify-items: center; gap: 4px; padding: 10px; border-radius: 12px; background: var(--bg2); position: relative; }
.em-it img { width: 48px; height: 48px; object-fit: contain; }
.em-grid.gifs .em-it img { width: 100%; height: 80px; object-fit: cover; border-radius: 8px; }
.em-it code { font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em-it .icon-btn { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; opacity: 0; color: var(--dnd); }
.em-it:hover .icon-btn { opacity: 1; }
@media (max-width: 760px) { .cr-page { padding: 14px; } .vid-grid { grid-template-columns: 1fr; } .cr-cta { flex-wrap: wrap; } }

/* ===================== Update 26: Update-Knopf oben, Beitrittsanfragen, Einstellungs-Fenster, Story-Musik ===================== */
.st-upd { flex: none; align-self: center; height: 30px; padding: 0 12px; margin-left: 6px; border-radius: 9px; background: var(--ok); color: #05210f; font-weight: 800; font-size: 13px; box-shadow: 0 0 14px rgba(61, 220, 132, .45); }
.st-upd:hover { filter: brightness(1.1); }
.sa-ic { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: rgba(var(--ac-rgb), .25); font-weight: 800; flex: none; }
.sa-ic img { width: 100%; height: 100%; object-fit: cover; }
.sa-q { margin: 12px 0; padding: 10px 14px; border-radius: 10px; background: var(--bg2); }
.sa-q small { display: block; color: var(--faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; margin-top: 6px; }
.sa-q p { margin: 2px 0 4px; white-space: pre-wrap; }
.ss-badge { margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--dnd); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
/* Einstellungen als Fenster */
.pop-btn { position: absolute; top: 40px; right: 92px; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); color: var(--muted); font-size: 17px; display: grid; place-items: center; z-index: 3; }
.pop-btn:hover { color: var(--text); border-color: var(--ac); }
.pop-bar { display: none; }
.settings.popped { right: auto; bottom: auto; position: fixed; width: 640px; height: min(720px, calc(100vh - 80px)); min-width: 420px; min-height: 320px; max-width: 96vw; resize: both; overflow: hidden; border-radius: 16px;
  border: 1px solid rgba(var(--ac-rgb), .45); box-shadow: 0 24px 70px rgba(0, 0, 0, .6); grid-template-columns: 170px 1fr; grid-template-rows: 40px 1fr; z-index: 55; animation: pop .15s; }
.settings.popped .pop-bar { display: flex; grid-column: 1 / -1; align-items: center; gap: 8px; padding: 0 6px 0 14px; background: var(--bg0); border-bottom: 1px solid var(--line); cursor: move; user-select: none; }
.settings.popped .pop-title { font-weight: 800; font-size: 14px; }
.settings.popped .pop-hint { flex: 1; font-size: 11.5px; color: var(--faint); }
.settings.popped .pop-bar button { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.settings.popped .pop-bar button:hover { background: var(--bg3); color: var(--text); }
.settings.popped .pop-bar svg { width: 16px; height: 16px; }
.settings.popped > nav { grid-row: 2; padding: 10px 6px; overflow-y: auto; justify-content: flex-start; }
.settings.popped > nav > div { width: auto; }
.settings.popped > .content { grid-row: 2; padding: 18px 20px 30px; overflow-y: auto; max-width: none; }
.settings.popped > .close, .settings.popped > .pop-btn { display: none; }
.settings.popped nav button { font-size: 13.5px; padding: 6px 8px; }
.settings.popped nav h5 { font-size: 10.5px; }
/* Musik in Stories */
.mu-box { margin-top: 12px; }
.mu-sel { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(90deg, rgba(var(--ac-rgb), .22), rgba(var(--ac-rgb), .06)); border: 1px solid rgba(var(--ac-rgb), .35); }
.mu-sel small { display: block; color: var(--muted); font-size: 12px; }
.mu-note { font-size: 22px; }
.mu-ctl { display: grid; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.mu-ctl label { display: grid; grid-template-columns: 80px 1fr 48px; align-items: center; gap: 8px; }
.mu-list { display: grid; gap: 6px; max-height: 340px; overflow-y: auto; }
.mu-it { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg2); }
.mu-it:hover { background: var(--bg3); }
.mu-tx { flex: 1; min-width: 0; }
.mu-tx small { display: block; color: var(--muted); font-size: 12px; }
.mu-pl { width: 34px !important; height: 34px !important; border-radius: 50% !important; background: rgba(var(--ac-rgb), .2); color: var(--text); }
.mu-own { margin-top: 14px; padding: 12px; border-radius: 12px; border: 1px dashed var(--line); }
.sv-music { margin-top: 6px; display: inline-block; padding: 4px 10px; border-radius: 20px; background: rgba(0, 0, 0, .45); font-size: 13px; font-weight: 700; }
.settings.popped .pop-bar { grid-row: 1; }
/* Creator suchen, Spiele, Sichtbarkeit */
.cr-search { position: relative; max-width: 560px; margin-bottom: 14px; }
.cr-sbox { position: relative; }
.cr-sbox svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); }
.cr-sbox input { width: 100%; height: 44px; padding: 0 14px 0 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg1); color: var(--text); font-size: 15px; outline: none; }
.cr-sbox input:focus { border-color: var(--ac); box-shadow: 0 0 0 3px rgba(var(--ac-rgb), .2); }
.cr-res { display: none; position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 6px); max-height: 360px; overflow-y: auto; padding: 6px; border-radius: 12px; background: var(--bg0); border: 1px solid rgba(var(--ac-rgb), .3); box-shadow: var(--shadow); }
.cr-res.open { display: block; }
.cr-hit { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; }
.cr-hit:hover { background: var(--bg2); }
.cr-hit-tx { flex: 1; min-width: 0; }
.cr-hit-tx small { display: block; color: var(--muted); font-size: 12.5px; }
.cr-follow-info { color: var(--muted); font-size: 14px; margin: -4px 0 14px; }
.cr-game { max-width: 260px; }
.vid-game { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 10px; background: rgba(var(--ac-rgb), .18); font-size: 11.5px; color: var(--text); }
.vid-card { position: relative; }
.vid-hidden { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 6px; background: var(--dnd); color: #fff; font-size: 11.5px; font-weight: 800; }
#poG { height: auto; padding: 4px; }
.g-list { display: grid; gap: 6px; }
.g-row { display: grid; grid-template-columns: 2fr 1fr auto auto auto auto auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; background: var(--bg1); }
.g-row.off { opacity: .55; }
.g-row .input { padding: 7px 10px; font-size: 14px; }
.g-row label { display: flex; gap: 4px; align-items: center; font-size: 12.5px; color: var(--muted); }
.feat { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 20px; background: var(--bg2); }
.feat small { color: var(--muted); }
.feat .icon-btn { width: 24px; height: 24px; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pf { display: grid; gap: 8px; padding: 10px; border-radius: 12px; background: var(--bg1); border: 1px solid var(--line); }
.pf.off { opacity: .6; border-style: dashed; }
.pf-media { position: relative; height: 140px; border-radius: 8px; overflow: hidden; background: #000; }
.pf-media img, .pf-media video { width: 100%; height: 100%; object-fit: cover; }
.pf-kind { position: absolute; top: 6px; left: 6px; padding: 1px 7px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 11px; font-weight: 800; }
.pf-tx small { display: block; color: var(--muted); font-size: 12px; }
.pf-cap { font-size: 13px; margin-top: 4px; max-height: 3.6em; overflow: hidden; }
@media (max-width: 900px) { .g-row { grid-template-columns: 1fr 1fr; } }

/* Update-Knopf links oben in der Seitenleiste */
.side-head-wrap { display: flex; align-items: center; gap: 6px; margin: 10px 10px 4px; }
.side-head-wrap .side-head.srv-head { margin: 0; flex: 1; min-width: 0; width: auto; }
.side-upd { flex: none; height: 30px; padding: 0 10px; border-radius: 9px; background: var(--ok); color: #05210f; font-weight: 800; font-size: 12.5px; box-shadow: 0 0 12px rgba(61, 220, 132, .45); animation: upglow 2.4s ease-in-out infinite; }
.side-upd:hover { filter: brightness(1.1); }
.side-head.plain-head .side-upd { margin-left: auto; }
html.desktop-frameless #titlebar .tb-update { display: none; }
.sto-bar { height: 12px; border-radius: 7px; background: var(--bg3); overflow: hidden; margin: 10px 0; }
.sto-bar i { display: block; height: 100%; }
.sto-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.sto-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.sto-lim { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.sto-lim label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.sto-lim .input { width: 80px; padding: 6px 8px; }

/* ===== Elternkontrolle ===== */
.pc-state.on { border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.pc-rule { display: flex; gap: 12px; align-items: flex-start; padding: 10px 4px; border-bottom: 1px solid var(--line, rgba(255,255,255,.06)); cursor: pointer; }
.pc-rule:last-of-type { border-bottom: 0; }
.pc-rule input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.pc-rule .pc-ic { font-size: 20px; line-height: 1.2; }
.pc-rule b { display: block; }
.pc-rule small { color: var(--muted); font-size: 12.5px; }
.pc-rule.locked { opacity: .75; cursor: default; }
.pc-pin { max-width: 220px; letter-spacing: .3em; font-size: 18px; text-align: center; }
html.pc-nogif .gif-btn { display: none !important; }

/* ===== Dauer-Hinweis (Banner oben) ===== */
.pw-notice { position: fixed; bottom: 88px; left: 50%; transform: translateX(-50%); z-index: 150; display: flex; align-items: center; gap: 10px; max-width: min(760px, calc(100vw - 24px));
  padding: 9px 10px 9px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; color: #fff; box-shadow: 0 12px 34px rgba(0,0,0,.4); animation: pnIn .3s ease; }
.pw-notice.warn { background: linear-gradient(90deg, #b45309, #d97706); }
.pw-notice.info { background: linear-gradient(90deg, #4f46e5, #7c3aed); }
.pw-notice.party { background: linear-gradient(90deg, #9b5cff, #ff3d8b); }
.pw-notice .pn-ic { font-size: 18px; }
.pw-notice .pn-txt { flex: 1; min-width: 0; }
.pw-notice .pn-x { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #fff; opacity: .85; flex: none; }
.pw-notice .pn-x:hover { background: rgba(255,255,255,.18); opacity: 1; }
.pw-notice .pn-x svg { width: 16px; height: 16px; }
@keyframes pnIn { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ===== Creator: Spiele-Filter oben + Video-Upload ===== */
.cr-top { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.cr-top .cr-search { flex: 1 1 320px; margin-bottom: 0; }
.cr-gfilter { height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg1); color: var(--text); font-weight: 700; font-size: 14px; white-space: nowrap; }
.cr-gfilter:hover { border-color: var(--ac); }
.cr-gfilter.on { background: rgba(var(--ac-rgb), .16); border-color: var(--ac); }
.cr-gchips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cr-gchip { padding: 4px 10px; border-radius: 99px; background: rgba(var(--ac-rgb), .16); font-size: 12.5px; font-weight: 700; }
.cr-gclear { padding: 4px 10px; border-radius: 99px; font-size: 12.5px; color: var(--muted); }
.cr-gclear:hover { color: var(--text); background: var(--bg3); }
.gf-list { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.gf-item { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.gf-item:hover { background: var(--bg3); }
.gf-item input { width: 17px; height: 17px; accent-color: var(--ac); }
.gf-item small { color: var(--muted); }
.vu-drop { position: relative; border: 2px dashed var(--line); border-radius: 14px; min-height: 150px; display: grid; place-items: center; text-align: center; overflow: hidden; background: var(--bg1); }
.vu-drop.over { border-color: var(--ac); background: rgba(var(--ac-rgb), .08); }
.vu-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 1; }
.vu-drop.has input[type=file] { z-index: 0; }
.vu-empty { display: grid; gap: 4px; padding: 20px; }
.vu-empty small { color: var(--muted); }
.vu-drop video { width: 100%; max-height: 260px; border-radius: 10px; background: #000; position: relative; z-index: 2; }
.vu-drop.has { padding: 8px; }

/* ===== Desktop-App: Auto-Update ===== */
.app-upd { position: fixed; left: 16px; bottom: 16px; z-index: 160; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 16px;
  background: var(--bg2, #1a1325); border: 1px solid rgba(var(--ac-rgb), .5); box-shadow: 0 16px 40px rgba(0,0,0,.45); max-width: calc(100vw - 32px); animation: auIn .3s ease; }
@keyframes auIn { from { opacity: 0; transform: translateY(10px); } }
.app-upd .au-ic { font-size: 22px; }
.app-upd .au-txt { display: grid; }
.app-upd .au-txt small { color: var(--muted); font-size: 12.5px; }
.app-upd .au-x { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--muted); }
.app-upd .au-x:hover { background: var(--bg3); color: var(--text); }
.app-upd .au-x svg { width: 15px; height: 15px; }
.dl-app-btn { margin-top: 12px; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ===== Plus: weitere Namens-Effekte + eigene Schriftart ===== */
.nf-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.uname.nfx-flicker { color: var(--nc, #ff3d8b); text-shadow: 0 0 4px var(--nc, #ff3d8b), 0 0 14px var(--nc, #ff3d8b), 0 0 28px var(--nc, #ff3d8b); animation: nfFlicker 2.6s infinite; }
@keyframes nfFlicker { 0%, 19%, 21%, 23%, 54%, 56%, 100% { opacity: 1; text-shadow: 0 0 4px var(--nc, #ff3d8b), 0 0 14px var(--nc, #ff3d8b), 0 0 28px var(--nc, #ff3d8b); }
  20%, 22%, 55% { opacity: .25; text-shadow: none; } }
.uname.nfx-glitch { position: relative; color: var(--nc, var(--text)); animation: nfGlitch 2.2s infinite steps(1); }
@keyframes nfGlitch { 0%, 88%, 100% { text-shadow: none; transform: none; } 90% { text-shadow: -2px 0 #ff2bd6, 2px 0 #2de2ff; transform: translateX(1px); } 92% { text-shadow: 2px 0 #ff2bd6, -2px 0 #2de2ff; transform: translateX(-1px); } 94% { text-shadow: -1px 0 #2de2ff, 1px 0 #ff2bd6; transform: none; } }
.uname.nfx-pulse { display: inline-block; color: var(--nc, var(--ac)); animation: nfPulse 1.8s ease-in-out infinite; }
@keyframes nfPulse { 0%, 100% { transform: scale(1); text-shadow: 0 0 0 transparent; } 50% { transform: scale(1.06); text-shadow: 0 0 12px var(--nc, var(--ac)); } }
.uname.nfx-shine { -webkit-background-clip: text; background-clip: text; color: transparent !important; background-image: linear-gradient(100deg, var(--nc, #ffd23d) 0%, var(--nc, #ffd23d) 40%, #fff 50%, var(--nc, #ffd23d) 60%, var(--nc, #ffd23d) 100%); background-size: 250% 100%; animation: nfShine 2.8s linear infinite; }
@keyframes nfShine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.uname.nfx-fire { -webkit-background-clip: text; background-clip: text; color: transparent !important; background-image: linear-gradient(0deg, #ff2d00, #ff8a00, #ffd23d, #ff8a00); background-size: 100% 300%; animation: nfFire 1.4s ease-in-out infinite alternate; filter: drop-shadow(0 0 4px rgba(255, 90, 0, .6)); }
@keyframes nfFire { from { background-position: 0 0; } to { background-position: 0 100%; } }
/* ===== Update 38: Fenster, Schriften, Rollen ===== */
.pop-btn.pop-win { right: 140px; font-size: 16px; }
.settings.popped .pop-bar .pop-own { font-size: 14px; }
.settings.popped .pop-bar { touch-action: none; }
body.pop-dragging, body.pop-dragging * { user-select: none !important; cursor: move !important; }
/* Einstellungen als eigenes Fenster: nur die Einstellungen, ganz ausgefüllt */
html.popout-mode #app, html.popout-mode .rail, html.popout-mode #titlebar { display: none !important; }
html.popout-mode .settings { grid-template-columns: 210px minmax(0, 1fr); animation: none; }
html.popout-mode .settings nav { padding: 16px 8px; justify-content: flex-start; }
html.popout-mode .settings nav > div { width: 100%; }
html.popout-mode .settings .content { padding: 22px 26px 60px; max-width: none; }
html.popout-mode .settings .close { top: 14px; right: 18px; }
html.popout-mode .settings > .pop-btn { display: none; }
@media (max-width: 620px) { html.popout-mode .settings { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } html.popout-mode .settings nav { max-height: 34vh; } }
/* Admin-Center ganz oben in den Einstellungen */
.settings nav button.set-admin { background: linear-gradient(90deg, rgba(var(--ac-rgb), .28), rgba(var(--ac-rgb), .08)); color: var(--text); font-weight: 700; }
.settings nav button.set-admin:hover { background: linear-gradient(90deg, rgba(var(--ac-rgb), .4), rgba(var(--ac-rgb), .14)); }
.settings nav button.set-admin svg { width: 18px; height: 18px; }
.settings nav button.set-admin .ss-badge { margin-left: auto; }
/* Schriftarten */
.font-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.font-opt-wrap, .frame-opt-wrap { position: relative; display: grid; }
.font-opt { border-radius: 12px; border: 2px solid var(--line); padding: 12px 6px 8px; display: grid; justify-items: center; gap: 6px; min-height: 74px; align-content: center; background: var(--bg1); }
.font-opt .uname { font-size: 17px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.font-opt small { color: var(--muted); font-size: 11.5px; }
.font-opt:hover { border-color: rgba(var(--ac-rgb), .6); }
.font-opt.on { border-color: var(--ac); background: rgba(var(--ac-rgb), .12); }
.font-opt.on small { color: var(--text); }
.font-opt.locked { opacity: .55; }
.font-opt.font-up { border-style: dashed; color: var(--muted); }
.font-opt.font-up svg { width: 20px; height: 20px; }
.font-opt:disabled { opacity: .45; cursor: not-allowed; }
.asset-del { position: absolute; top: -7px; right: -7px; width: 26px; height: 26px; border-radius: 50%; background: var(--bg3); border: 1px solid var(--line); font-size: 12px; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); z-index: 1; }
.asset-del:hover { background: var(--dnd); border-color: var(--dnd); }
.frame-opt-wrap .frame-opt { width: 100%; }
/* Rollen */
.tag.team-mod { background: #2f7cff; color: #fff; }
.tag.team-sup { background: #18a87a; color: #fff; }
.tag.plus-tag { background: linear-gradient(90deg, #ffb020, #ff3d8b); color: #fff; }
.role-card h4 { font-size: 15px; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 12px; }
.role-opt { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg1); }
.role-opt:not(:disabled):hover { border-color: rgba(var(--ac-rgb), .6); }
.role-opt.on { border-color: var(--ac); background: rgba(var(--ac-rgb), .14); }
.role-opt:disabled { cursor: default; opacity: .75; }
.role-opt .ro-ic { font-size: 22px; width: 30px; text-align: center; }
.role-opt .ro-tx { flex: 1; min-width: 0; }
.role-opt .ro-tx b { display: block; font-size: 14px; }
.role-opt .ro-tx small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.role-opt .ro-chk { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 900; font-size: 13px; flex: none; }
.role-opt.on .ro-chk { background: var(--ac); border-color: var(--ac); color: var(--ac-text, #fff); }
.id-wrap { overflow-x: auto; }
.id-table .id-roles { white-space: nowrap; }
.id-table .id-roles .tag { margin-right: 3px; }
.id-table tbody tr { cursor: pointer; }
.id-table tbody tr:hover td { background: var(--bg3); }
.id-table .id-name { white-space: nowrap; }
/* ===== Update 39 ===== */
/* Freundschaftsanfrage-Fenster */
.fr-cards { position: fixed; right: 18px; bottom: 18px; z-index: 85; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 24px)); }
.fr-card { position: relative; background: var(--bg0); border: 1px solid rgba(var(--ac-rgb), .55); border-radius: 16px; padding: 14px; box-shadow: var(--shadow), 0 0 32px rgba(var(--ac-rgb), .3); animation: pop .2s; }
.fr-card .fr-top { display: flex; gap: 12px; align-items: center; padding-right: 22px; }
.fr-card .fr-k { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ac); margin-bottom: 2px; }
.fr-card .fr-btns { display: flex; gap: 6px; margin-top: 12px; }
.fr-card .fr-btns .btn { flex: 1; }
.fr-card .fr-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.fr-card .fr-x:hover { background: var(--bg3); color: var(--text); }
.fr-card .fr-x svg { width: 14px; height: 14px; }
.in-fr { display: flex; gap: 6px; margin-top: 8px; }
.ftabs .ss-badge { margin-left: 6px; }
/* Versionsanzeige unten in den Einstellungen */
.set-version { margin: 10px 10px 18px; padding: 10px 12px; border-radius: 10px; background: var(--bg1); border: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.5; cursor: copy; }
.set-version b { color: var(--text); font-size: 12.5px; }
.pp-name { font-size: 22px; }
/* Profil-Popup: mehr Knöpfe */
.popup .pbtns { flex-wrap: wrap; }
/* Story: Knöpfe rechts + Kommentare */
.sv-box { position: relative; }
.sv-acts { position: absolute; right: 10px; bottom: 96px; display: flex; flex-direction: column; gap: 14px; z-index: 4; }

.pa-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; font-size: 12px; min-width: 52px; }
.pa-btn .pa-ic { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; font-size: 21px; transition: transform .12s, background .12s; }
.pa-btn:hover .pa-ic { background: rgba(255, 255, 255, .26); transform: scale(1.06); }
.pa-btn.on .pa-ic { background: rgba(255, 61, 139, .3); }
.pa-btn b { font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.sv-com { position: absolute; left: 0; right: 0; bottom: 0; max-height: 72%; background: var(--bg0); border-radius: 18px 18px 0 0; display: flex; flex-direction: column; z-index: 6; box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); animation: slideup .18s; }
.sv-com.hidden { display: none; }
@keyframes slideup { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.svc-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 6px; }
.sv-com .post-com { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0 12px 12px; }
.post-com .pc-list { overflow-y: auto; max-height: 360px; display: flex; flex-direction: column; gap: 10px; padding: 6px 2px; }
.sv-com .post-com .pc-list { max-height: none; flex: 1; }
.pc-row { display: flex; gap: 10px; align-items: flex-start; }
.pc-body { flex: 1; min-width: 0; font-size: 14px; }
.pc-name { cursor: pointer; }
.pc-name:hover { text-decoration: underline; }
.pc-text { word-wrap: break-word; }
.pc-del { opacity: 0; }
.pc-row:hover .pc-del { opacity: 1; }
.pc-input { display: flex; gap: 6px; margin-top: 8px; }
.pc-input .input { flex: 1; }
.pc-off { font-size: 13px; color: var(--muted); padding: 10px; background: var(--bg1); border-radius: 10px; margin-top: 8px; }
/* Video: großer Play-Knopf, Leiste unter dem Video */
.vid-player { position: relative; }
.vid-bigplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 86px; height: 86px; border-radius: 50%; background: rgba(var(--ac-rgb), .9); color: #fff; font-size: 34px; padding-left: 6px; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); transition: transform .12s; }
.vid-bigplay:hover { transform: translate(-50%, -50%) scale(1.08); }
.vid-bigplay.hidden { display: none; }
.post-acts { display: flex; gap: 8px; margin: 12px 0 6px; flex-wrap: wrap; }
.post-acts .pa-btn { flex-direction: row; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--bg1); border: 1px solid var(--line); color: var(--text); }
.post-acts .pa-btn .pa-ic { width: 30px; height: 30px; font-size: 16px; background: var(--bg3); }
.post-acts .pa-btn b { text-shadow: none; font-size: 13px; }
.post-acts .pa-btn.on { border-color: #ff3d8b; }
/* Teilen */
.sh-list { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.sh-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; cursor: pointer; }
.sh-row:hover { background: var(--bg3); }
.sh-row[hidden] { display: none; }
/* Fenster über Story/Video */
.overlay.over-story { z-index: 95; }
/* Posteingang: Größe ziehen */
.inbox-panel { min-width: 340px; }
.ib-grip { position: absolute; left: 0; bottom: 0; width: 22px; height: 22px; cursor: nesw-resize; z-index: 3; background: linear-gradient(225deg, transparent 50%, rgba(var(--ac-rgb), .55) 50%, rgba(var(--ac-rgb), .55) 60%, transparent 60%, transparent 70%, rgba(var(--ac-rgb), .55) 70%, rgba(var(--ac-rgb), .55) 80%, transparent 80%); border-bottom-left-radius: 16px; }
.ib-grip.right { left: auto; right: 0; cursor: nwse-resize; transform: scaleX(-1); border-bottom-left-radius: 0; border-bottom-right-radius: 16px; }
.inbox-panel .ib-list { flex: 1; min-height: 0; overflow-y: auto; }
/* Diktieren aktiv */
.dict-chip { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 8px; padding: 9px 14px; border-radius: 12px; background: rgba(240, 71, 71, .16); border: 1px solid rgba(240, 71, 71, .6); color: var(--text); font-weight: 700; font-size: 13.5px; }
.dict-chip i { width: 12px; height: 12px; border-radius: 50%; background: #f04747; box-shadow: 0 0 0 0 rgba(240, 71, 71, .7); animation: dictping 1.2s infinite; }
.dict-chip span { margin-left: auto; font-weight: 600; font-size: 12.5px; padding: 3px 10px; border-radius: 8px; background: rgba(240, 71, 71, .3); }
@keyframes dictping { 0% { box-shadow: 0 0 0 0 rgba(240, 71, 71, .7); } 100% { box-shadow: 0 0 0 10px rgba(240, 71, 71, 0); } }
body.dictating #composer .box { border-color: #f04747 !important; box-shadow: 0 0 0 2px rgba(240, 71, 71, .35); }
#dictBtn.rec-on { background: #f04747; color: #fff !important; border-radius: 10px; animation: none; }
/* Kanal-Dialog */
.ce-modal { max-width: 560px; }
.ce-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.ce-type { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg1); font-size: 13.5px; }
.ce-type span { font-size: 18px; } .ce-type span svg { width: 20px; height: 20px; }
.ce-type.on { border-color: var(--ac); background: rgba(var(--ac-rgb), .12); }
.ce-sec { margin-top: 4px; }
.ce-sec[hidden] { display: none; }
.ce-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg1); border: 1px solid var(--line); }
.ce-seg button { padding: 7px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.ce-seg button.on { background: var(--ac); color: var(--ac-text, #fff); }
.ce-roles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ce-role { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--bg1); border: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.ce-role i { width: 10px; height: 10px; border-radius: 50%; }
.ce-role:has(input:checked) { border-color: var(--ac); background: rgba(var(--ac-rgb), .14); }
.ch-badge { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--bg3); color: var(--muted); margin-left: 6px; white-space: nowrap; }
.ro-note { padding: 14px 16px; border-radius: 12px; background: var(--bg1); border: 1px dashed var(--line); color: var(--muted); font-size: 14px; text-align: center; }
/* ===== Update 40: Ende-zu-Ende-Verschlüsselung ===== */
.e2e-btn { margin-left: 10px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--bg3); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.e2e-btn:hover { color: var(--text); border-color: var(--ac); }
.e2e-btn.on { background: rgba(59, 165, 93, .16); color: #3ba55d; border-color: rgba(59, 165, 93, .5); }
.e2e-lock { font-size: 11px; margin-right: 4px; opacity: .75; }
.e2e-err { display: inline-block; font-style: italic; color: var(--muted); font-size: 13.5px; }
.e2e-info ul { margin: 10px 0 0; padding-left: 4px; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.e2e-code { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-family: ui-monospace, Consolas, monospace; font-size: 19px; font-weight: 700; letter-spacing: .08em; text-align: center; }
.e2e-code span { padding: 10px 4px; border-radius: 10px; background: var(--bg1); border: 1px solid var(--line); }
.e2e-dev { padding: 10px 0; border-top: 1px solid var(--line); }
.e2e-dev:first-child { border-top: 0; }
.pill.e2e-ok { background: rgba(59, 165, 93, .2); color: #3ba55d; }
.pill.e2e-bad { background: rgba(240, 71, 71, .2); color: #f04747; }
/* ===== Update 41 ===== */
.side-upd.icon-only { width: 30px; padding: 0; display: grid; place-items: center; margin-left: 6px; }
.bell-left { position: relative; margin-left: auto; }
.bell-left svg { width: 18px; height: 18px; }
.bell-left .badge-num { position: absolute; top: -4px; right: -6px; }
.plain-head .side-upd.icon-only + .bell-left { margin-left: 6px; }
.plain-head .side-upd.icon-only { margin-left: auto; }
/* Handy-Installation */
.phone-banner { position: fixed; left: 10px; right: 10px; bottom: 12px; z-index: 86; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--bg0); border: 1px solid rgba(var(--ac-rgb), .5); box-shadow: var(--shadow); }
.phone-banner img { width: 40px; height: 40px; border-radius: 10px; }
.phone-banner div { flex: 1; min-width: 0; } .phone-banner small { display: block; color: var(--muted); font-size: 12px; }
.inst-steps { padding-left: 20px; display: grid; gap: 8px; font-size: 15px; }
.inst-url { font-family: ui-monospace, Consolas, monospace; font-size: 16px; padding: 10px 12px; border-radius: 10px; background: var(--bg1); border: 1px solid var(--line); margin: 6px 0 8px; word-break: break-all; }
.auth-phone { display: block; margin: 14px auto 0; font-size: 14px; }
/* Live */
.st-ring.live .st-ring-in { box-shadow: 0 0 0 3px #f04747, 0 0 18px rgba(240, 71, 71, .55); }
.st-ring.live { position: relative; }
.live-badge { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); background: #f04747; color: #fff; font-size: 10.5px; font-weight: 900; letter-spacing: .06em; padding: 1px 6px; border-radius: 5px; border: 2px solid var(--bg0); }
.live-plats { display: flex; gap: 3px; justify-content: center; margin-top: 2px; } .live-plats i { width: 8px; height: 8px; border-radius: 50%; }
.live-pick { display: grid; gap: 8px; }
.live-opt { display: grid; text-align: left; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--pc); background: var(--bg1); gap: 2px; }
.live-opt b { color: var(--pc); font-size: 16px; } .live-opt span { font-size: 13.5px; } .live-opt small { color: var(--muted); }
.pop-live { width: 100%; margin: 4px 0 8px; padding: 8px 10px; border-radius: 10px; background: rgba(240, 71, 71, .18); border: 1px solid rgba(240, 71, 71, .6); color: var(--text); font-weight: 700; font-size: 13px; }
.st-live, .am-live { background: #f04747; color: #fff; font-size: 9.5px; font-weight: 900; padding: 1px 5px; border-radius: 4px; margin-left: 6px; font-style: normal; }
/* Apps-Menü */
.st-apps-ic { font-size: 17px; line-height: 1; }
.apps-menu { position: fixed; z-index: 80; display: grid; grid-template-columns: repeat(2, 140px); gap: 8px; padding: 10px; border-radius: 16px; background: var(--bg0); border: 1px solid var(--line); box-shadow: var(--shadow); animation: pop .12s; }
.apps-menu button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 14px 8px; border-radius: 12px; background: var(--bg1); border: 1px solid var(--line); }
.apps-menu button:hover { border-color: var(--ac); background: rgba(var(--ac-rgb), .1); }
.apps-menu .am-ic { font-size: 26px; } .apps-menu small { color: var(--muted); font-size: 11.5px; }
.apps-menu .am-live { position: absolute; top: 6px; right: 6px; margin: 0; }
.plug-card { display: flex; align-items: center; gap: 14px; }
.plug-ic { font-size: 34px; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--bg1); }
/* Backup */
.bk-pick { max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
/* Team-Rechte */
.tp-table td, .tp-table th { padding: 9px 10px; } .tp-table tbody tr { cursor: default; }
.tp-table input { width: 18px; height: 18px; accent-color: var(--ac); }
/* Marktplatz */
.mk-view { position: fixed; inset: 0; top: var(--tabs-h, 46px); z-index: 40; background: var(--bg2, var(--bg1)); overflow-y: auto; padding: 18px 22px 40px; animation: fade .12s; }
html:not(.has-tabs) .mk-view { top: 0; }
.mk-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.mk-head h2 { margin: 0 10px 0 0; }
.mk-search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; background: var(--bg1); border: 1px solid var(--line); }
.mk-search input { flex: 1; background: none; border: 0; color: var(--text); padding: 11px 0; font-size: 14.5px; outline: none; }
.mk-search svg { width: 18px; height: 18px; color: var(--muted); }
.mk-head select.mk-sort { width: auto; flex: none; }
.mk-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.mk-note { font-size: 12.5px; color: var(--muted); background: var(--bg1); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 14px; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.mk-card { text-align: left; border-radius: 14px; overflow: hidden; background: var(--bg1); border: 1px solid var(--line); transition: transform .12s, border-color .12s; }
.mk-card:hover { transform: translateY(-2px); border-color: rgba(var(--ac-rgb), .6); }
.mk-card.sold { opacity: .6; }
.mk-img { position: relative; aspect-ratio: 4 / 3; background: var(--bg3); display: grid; place-items: center; font-size: 40px; }
.mk-img img { width: 100%; height: 100%; object-fit: cover; }
.mk-sold { position: absolute; top: 8px; left: 8px; background: #f04747; color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 6px; }
.mk-info { padding: 10px 12px 12px; }
.mk-price { color: var(--ac); font-size: 17px; font-weight: 900; } .mk-price small { font-size: 11px; color: var(--muted); }
.mk-price.big { font-size: 28px; }
.mk-title { font-weight: 600; font-size: 14px; margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-modal { max-width: 960px !important; }
.mk-detail { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 760px) { .mk-detail { grid-template-columns: 1fr; } }
.mk-gal img#mkImg { width: 100%; max-height: 460px; object-fit: contain; background: #000; border-radius: 12px; }
.mk-noimg { aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 60px; background: var(--bg1); border-radius: 12px; }
.mk-thumbs { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.mk-thumbs img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .6; border: 2px solid transparent; }
.mk-thumbs img.on { opacity: 1; border-color: var(--ac); }
.mk-facts { display: flex; flex-wrap: wrap; gap: 6px; } .mk-facts span { font-size: 12.5px; padding: 4px 9px; border-radius: 999px; background: var(--bg1); border: 1px solid var(--line); }
.mk-desc { margin: 12px 0; font-size: 14px; white-space: pre-wrap; max-height: 240px; overflow-y: auto; }
.mk-seller { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--bg1); cursor: pointer; } .mk-seller small { display: block; }
.mk-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mk-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-ph { position: relative; width: 86px; height: 86px; border-radius: 10px; overflow: hidden; background: var(--bg1); border: 1px solid var(--line); }
.mk-ph img { width: 100%; height: 100%; object-fit: cover; }
.mk-ph button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .7); color: #fff; display: grid; place-items: center; }
.mk-ph button svg { width: 12px; height: 12px; }
.mk-ph.add { display: grid; place-items: center; align-content: center; gap: 4px; border-style: dashed; color: var(--muted); }
.mk-ph.add svg { width: 22px; height: 22px; }
/* ===== Update 42 ===== */
/* Posteingang: klappt an der Glocke nach rechts auf, frei verschiebbar */
.inbox-panel.ib-free { right: auto; transform-origin: top left; animation: ibOpen .2s ease-out; }
@keyframes ibOpen { from { clip-path: inset(0 100% 0 0 round 16px); opacity: .5; } to { clip-path: inset(0 0 0 0 round 16px); opacity: 1; } }
.inbox-panel.ib-free .ib-head { cursor: move; user-select: none; }
.inbox-panel.ib-free .ib-head button { cursor: pointer; }
.ib-move { color: var(--faint); font-size: 16px; margin-right: 2px; letter-spacing: -2px; }
.inbox-panel.ib-dragging { opacity: .92; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.ib-grip2 { position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; cursor: nwse-resize; z-index: 3; border-bottom-right-radius: 16px;
  background: linear-gradient(135deg, transparent 50%, rgba(var(--ac-rgb), .55) 50%, rgba(var(--ac-rgb), .55) 60%, transparent 60%, transparent 70%, rgba(var(--ac-rgb), .55) 70%, rgba(var(--ac-rgb), .55) 80%, transparent 80%); }
/* Glocke links in einer Community */
.side-head-wrap .bell-left { margin-left: 0; flex: none; }
/* Ausschlag beim Sprechen */
.pw-wave { display: block; width: 100%; height: 46px; margin-top: 10px; border-radius: 10px; background: var(--bg0); --wave-on: var(--ac); --wave-off: rgba(255, 255, 255, .18); }
.pw-wave.open { --wave-on: #3ba55d; }
[data-theme="light"] .pw-wave { --wave-off: rgba(0, 0, 0, .18); }
.rec-info .rec-wave { flex: 1; min-width: 80px; height: 30px; margin: 0; background: transparent; --wave-on: var(--dnd); }
/* ===== Update 43: Posteingang übersichtlicher ===== */
.ib2 .ib-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ib2 .ib-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--bg2); border: 1px solid transparent; }
.ib2 .ib-tabs button:hover { color: var(--text); }
.ib2 .ib-tabs button.on { color: var(--text); background: rgba(var(--ac-rgb), .2); border-color: rgba(var(--ac-rgb), .6); }
.ib2-cnt { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--dnd); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }
.ib2-cnt[hidden] { display: none; }
.ib2-day { position: sticky; top: 0; z-index: 1; padding: 10px 16px 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); background: var(--bg0); }
.ib2-item { position: relative; display: flex; gap: 12px; align-items: flex-start; margin: 4px 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; }
.ib2-item:hover { background: var(--bg2); }
.ib2-item.new { background: rgba(var(--ac-rgb), .08); border-color: rgba(var(--ac-rgb), .25); }
.ib2-item.new::before { content: ''; position: absolute; left: -6px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--ac); }
.ib2-av { position: relative; flex: none; }
.ib2-k { position: absolute; right: -5px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--bg1, #1a1328); border: 2px solid var(--bg0); }
.k-mention .ib2-k { background: #faa61a; color: #000; }
.ib2-body { flex: 1; min-width: 0; }
.ib2-top { display: flex; align-items: baseline; gap: 8px; }
.ib2-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib2-time { margin-left: auto; flex: none; font-size: 12px; color: var(--faint); }
.ib2-act { font-size: 13px; color: var(--muted); margin-top: 1px; }
.ib2-where { color: var(--faint); }
.ib2-prev { margin-top: 6px; padding: 7px 10px; border-radius: 9px; background: var(--bg2); border-left: 3px solid rgba(var(--ac-rgb), .7); font-size: 13.5px; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; word-break: break-word; }
.ib2-read { flex: none; opacity: .6; }
.ib2-item:hover .ib2-read { opacity: 1; }
.ib2 .in-fr { display: flex; gap: 6px; margin-top: 8px; }
/* ===== Update 44: App-Update-Hinweis groß oben mittig ===== */
.app-upd.app-upd-big { position: fixed; top: 18px; left: 50%; right: auto; bottom: auto; transform: translateX(-50%); z-index: 120; display: flex; align-items: center; gap: 14px;
  width: min(640px, calc(100vw - 24px)); padding: 16px 18px; border-radius: 18px; cursor: move; user-select: none;
  background: linear-gradient(135deg, rgba(var(--ac-rgb), .35), rgba(59, 165, 93, .25)), var(--bg0); border: 2px solid rgba(var(--ac-rgb), .8);
  box-shadow: 0 0 0 4px rgba(var(--ac-rgb), .15), 0 18px 50px rgba(0, 0, 0, .55); animation: auIn .35s ease-out, auGlow 2.4s ease-in-out .4s infinite; }
@keyframes auIn { from { opacity: 0; margin-top: -30px; } to { opacity: 1; margin-top: 0; } }
@keyframes auGlow { 50% { box-shadow: 0 0 0 7px rgba(var(--ac-rgb), .25), 0 18px 50px rgba(0, 0, 0, .55); } }
.app-upd-big .au-ic { font-size: 30px; width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 14px; background: #3ba55d; color: #fff; }
.app-upd-big .au-txt b { font-size: 18px; display: block; }
.app-upd-big .au-txt small { font-size: 13.5px; color: var(--muted); }
.app-upd-big .au-alt { color: var(--ac); font-weight: 700; margin-left: 4px; }
.app-upd-big #auGo { font-size: 15px; padding: 11px 18px; flex: none; cursor: pointer; }
.app-upd-big .au-x { cursor: pointer; }
.app-upd-big .au-grip { color: var(--faint); font-size: 18px; letter-spacing: -2px; }
.app-upd-big .au-txt { flex: 1; min-width: 0; }
/* ===== Update 46: Cloud-Speicher ===== */
.r2-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.r2-stats > div { background: var(--bg2); border-radius: 12px; padding: 10px 12px; }
.r2-stats b { display: block; font-size: 18px; }
.r2-stats small { color: var(--muted); font-size: 12px; }
.r2-steps { margin: 8px 0 0; padding-left: 20px; font-size: 13.5px; line-height: 1.6; }
.r2-steps code { background: var(--bg2); padding: 1px 6px; border-radius: 6px; }
/* ===== Update 47: Reaktionen, Anpinnen, Tutorial ===== */
.rx { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.rx:empty { display: none; }
.rx-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.rx-chip b { font-size: 12.5px; color: var(--muted); }
.rx-chip.on { background: rgba(var(--ac-rgb), .2); border-color: rgba(var(--ac-rgb), .7); }
.rx-chip.on b { color: var(--text); }
.rx-chip .emote { width: 18px; height: 18px; }
.rx-add { opacity: 0; font-size: 12px; color: var(--muted); }
.msg:hover .rx-add { opacity: 1; }
.rx-pick { position: fixed; z-index: 80; width: 312px; padding: 8px; border-radius: 14px; background: var(--bg0); border: 1px solid var(--line); box-shadow: var(--shadow); }
.rx-pick button { width: 34px; height: 34px; border-radius: 8px; font-size: 20px; display: inline-grid; place-items: center; }
.rx-pick button:hover { background: var(--bg3); }
.rx-pick button img { width: 24px; height: 24px; }
.rx-quick { display: flex; flex-wrap: wrap; gap: 2px; padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.rx-more { max-height: 170px; overflow-y: auto; display: flex; flex-wrap: wrap; gap: 2px; }
.msg.pinned { box-shadow: inset 3px 0 0 #faa61a; }
.msg.flash { animation: msgflash 1.8s; }
@keyframes msgflash { 0%, 40% { background: rgba(250, 166, 26, .25); } 100% { background: transparent; } }
.pins-panel { position: fixed; z-index: 70; width: min(420px, calc(100vw - 16px)); max-height: 70vh; display: flex; flex-direction: column; background: var(--bg0); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.pp-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); }
.pp-head h3 { margin: 0; font-size: 16px; }
.pp-list { overflow-y: auto; padding: 6px; }
.pp-item { display: flex; gap: 10px; padding: 10px; border-radius: 12px; cursor: pointer; align-items: flex-start; }
.pp-item:hover { background: var(--bg2); }
.pp-body { flex: 1; min-width: 0; }
.pp-txt { font-size: 14px; word-break: break-word; max-height: 80px; overflow: hidden; }
.tut { max-width: 460px; text-align: center; }
.tut-body { padding: 26px 26px 6px; }
.tut-ic { font-size: 54px; line-height: 1; margin-bottom: 10px; }
.tut-body h2 { margin: 0 0 8px; }
.tut-body p { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }
.tut-dots { display: flex; gap: 6px; justify-content: center; margin: 14px 0 4px; }
.tut-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.tut-dots i.on { background: var(--ac); width: 22px; border-radius: 4px; }
.tut .mf [data-skip] { margin-right: auto; }
/* ===== Update 48: Abo-Stufen ===== */
.max-badge { filter: drop-shadow(0 0 4px rgba(255, 196, 0, .7)); }
.tiers { margin: 14px 0; }
.tier-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--bg2); border-radius: 14px; overflow: hidden; font-size: 14px; }
.tier-table th, .tier-table td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.tier-table td:first-child, .tier-table th:first-child { text-align: left; }
.tier-table th { font-size: 15px; }
.tier-table .tp { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.tier-table .tmax, .tier-table td:last-child { background: linear-gradient(180deg, rgba(255, 196, 0, .12), rgba(255, 196, 0, .04)); }
.max-btn { background: linear-gradient(90deg, #ffb300, #ff6a00) !important; color: #1a1000 !important; }
.max-buy { border: 1px solid rgba(255, 196, 0, .5); }
/* ===== Update 49: Tickets ===== */
.tk-row { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; cursor: pointer; }
.tk-row:hover { background: var(--bg3); }
.tk-row.new { background: rgba(var(--ac-rgb), .08); }
.tk-row .ellip, .tk-top .ellip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-top { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.tk-msgs { display: flex; flex-direction: column; gap: 10px; max-height: 55vh; overflow-y: auto; padding: 4px 2px; }
.tk-msg { display: flex; gap: 10px; align-items: flex-start; }
.tk-bub { flex: 1; min-width: 0; background: var(--bg2); border-radius: 12px; padding: 9px 12px; }
.tk-msg.staff .tk-bub { background: rgba(var(--ac-rgb), .14); border: 1px solid rgba(var(--ac-rgb), .35); }
.tk-msg.internal .tk-bub { background: rgba(250, 166, 26, .1); border: 1px dashed rgba(250, 166, 26, .6); }
.tk-txt { margin-top: 3px; white-space: pre-wrap; word-break: break-word; font-size: 14.5px; }
.tk-reply { margin-top: 12px; }
/* ===== Update 50: Mikrofon einmessen ===== */
.cal-box { margin-top: 6px; }
.cal-step { text-align: center; padding: 10px 0; }
.cal-big { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.cal-bar { height: 8px; border-radius: 4px; background: var(--bg2); overflow: hidden; margin-top: 12px; }
.cal-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ac), #3ba55d); transition: width .05s linear; }
.cal-res { padding: 12px 14px; border-radius: 12px; background: rgba(59, 165, 93, .12); border: 1px solid rgba(59, 165, 93, .5); }
.cal-res.bad { background: rgba(240, 71, 71, .1); border-color: rgba(240, 71, 71, .5); }
.cal-res ul { margin: 8px 0 10px; padding-left: 20px; font-size: 14px; }
/* ===== Update 51: Quests ===== */
.q-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.q-card { background: var(--bg1, var(--bg2)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.q-img { height: 130px; background: center / cover no-repeat, linear-gradient(135deg, rgba(var(--ac-rgb), .5), #ff3d8b); }
.q-noimg { display: grid; place-items: center; font-size: 48px; }
.q-body { padding: 12px 14px 14px; }
.q-body h4 { margin: 2px 0 4px; }
.q-sp { font-size: 11.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }
.q-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 6px 0; }
.q-rw { color: #ffc400; font-weight: 700; }
.q-bar { height: 8px; border-radius: 4px; background: var(--bg2); overflow: hidden; }
.q-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ac), #3ba55d); transition: width .4s; }
.q-claim { background: linear-gradient(90deg, #ffb300, #ff6a00) !important; color: #1a1000 !important; }
.q-modal { max-width: 760px; width: calc(100vw - 30px); }
.q-video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.q-video iframe, .q-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* ===== Update 52: Sprachen ===== */
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.lang-b { padding: 10px 12px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); text-align: left; font-weight: 600; }
.lang-b:hover { border-color: var(--ac); }
.lang-b.on { background: rgba(var(--ac-rgb), .2); border-color: var(--ac); }
.auth-lang { width: auto !important; margin: 0 0 12px auto; display: block; padding: 6px 10px !important; font-size: 13px; }

/* =====================================================================
   Update 56: DESIGN-STILE – jeder sucht sich seinen Look aus
   data-style="vice" | "clean" | "gamer" (classic = bisheriger Look)
   ===================================================================== */

/* ---------- 🌴 VICE CITY: Neon, Sonnenuntergang, Palmen, Glas ---------- */
html[data-style="vice"][data-theme="dark"], html[data-style="vice"].th-black {
  --bg0: #120624; --bg1: #1a0a33; --bg2: #200d3f; --bg3: #2e1457; --bg4: #3f1c75;
  --text: #fff2fb; --muted: #c9a7e6; --faint: #8f6db3; --line: rgba(255, 79, 163, .16);
  --glass: rgba(32, 13, 63, .72); --shadow: 0 14px 44px rgba(255, 61, 139, .18), 0 10px 30px rgba(0, 0, 0, .5);
}
html[data-style="vice"] body { background: radial-gradient(1200px 600px at 85% 110%, rgba(255, 154, 61, .28), transparent 60%), radial-gradient(900px 500px at 10% 120%, rgba(255, 61, 139, .3), transparent 60%), linear-gradient(180deg, #0d0420 0%, #220a44 55%, #3a0d52 100%) fixed; }
html[data-style="vice"] .side, html[data-style="vice"] .main, html[data-style="vice"] .srv-tabs, html[data-style="vice"] .upanel { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
html[data-style="vice"] .srv-tabs { border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, #ff3d8b, #ff9a3d, #2de2ff) 1; }
html[data-style="vice"] .card, html[data-style="vice"] .modal, html[data-style="vice"] .inbox-panel, html[data-style="vice"] .pins-panel { background: rgba(26, 10, 51, .85); border: 1px solid rgba(255, 79, 163, .3); box-shadow: 0 0 0 1px rgba(45, 226, 255, .06), 0 12px 40px rgba(255, 61, 139, .15); }
html[data-style="vice"] h1, html[data-style="vice"] h2, html[data-style="vice"] .settings h2, html[data-style="vice"] .main-head .title span { font-family: var(--display); font-style: italic; letter-spacing: .01em; background: linear-gradient(90deg, #ff6ec7, #ffb86b 55%, #2de2ff); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
html[data-style="vice"] .btn-pri { background: linear-gradient(100deg, #ff3d8b, #ff9a3d); color: #fff; box-shadow: 0 0 18px rgba(255, 61, 139, .55), inset 0 0 0 1px rgba(255, 255, 255, .25); }
html[data-style="vice"] .btn-sec { background: rgba(45, 226, 255, .08); border: 1px solid rgba(45, 226, 255, .35); }
html[data-style="vice"] .btn-sec:hover { background: rgba(45, 226, 255, .16); box-shadow: 0 0 14px rgba(45, 226, 255, .3); }
html[data-style="vice"] .input:focus { border-color: #ff3d8b; box-shadow: 0 0 0 3px rgba(255, 61, 139, .25), 0 0 16px rgba(255, 61, 139, .3); }
html[data-style="vice"] .msg:hover { background: rgba(255, 79, 163, .06); }
html[data-style="vice"] .composer .box { background: rgba(26, 10, 51, .8); border: 1px solid rgba(255, 79, 163, .35); box-shadow: 0 0 20px rgba(255, 61, 139, .12); }
html[data-style="vice"] .side-scroll a.on, html[data-style="vice"] .side .on { box-shadow: inset 3px 0 0 #ff3d8b, 0 0 14px rgba(255, 61, 139, .2); }
html[data-style="vice"] .main::after { content: ''; position: fixed; right: -40px; bottom: -20px; width: 340px; height: 340px; pointer-events: none; opacity: .07; z-index: 0;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23ff3d8b' d='M52 98c-2-20-1-38 4-55-8 2-17 9-22 17 2-12 11-21 22-25-10-3-21 0-28 6 6-11 19-16 31-13-6-7-17-10-26-8 11-7 25-5 34 3 2-9 10-16 19-18-5 7-6 15-4 22 8-4 18-2 24 4-10 0-19 4-24 11 10 1 18 8 21 17-9-6-20-7-29-3-4 16-5 34-3 50z'/%3E%3C/svg%3E"); }
html[data-style="vice"][data-theme="light"] { --bg0: #ffe0f0; --bg1: #fff0f8; --bg2: #fff8fc; --bg3: #ffe3f1; --bg4: #ffcbe6; --line: rgba(255, 61, 139, .18); }
html[data-style="vice"][data-theme="light"] body { background: linear-gradient(180deg, #7fd8ff 0%, #c9a3ff 45%, #ff8cc0 80%, #ffc27a 100%) fixed; }
html[data-style="vice"][data-theme="light"] .side, html[data-style="vice"][data-theme="light"] .main, html[data-style="vice"][data-theme="light"] .srv-tabs { background: rgba(255, 248, 252, .78); }
html[data-style="vice"][data-theme="light"] .card, html[data-style="vice"][data-theme="light"] .modal { background: rgba(255, 255, 255, .88); }

/* ---------- 🧼 CLEAN: ruhig, klar, keine Effekte ---------- */
html[data-style="clean"][data-theme="dark"], html[data-style="clean"].th-black {
  --bg0: #1e1f22; --bg1: #232428; --bg2: #2b2d31; --bg3: #35373c; --bg4: #404249;
  --text: #f2f3f5; --muted: #b5bac1; --faint: #80848e; --line: rgba(255, 255, 255, .06);
  --glass: rgba(43, 45, 49, .96); --shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --scene: #2b2d31;
}
html[data-style="clean"][data-theme="light"] { --bg0: #e3e5e8; --bg1: #f2f3f5; --bg2: #ffffff; --bg3: #ebedef; --bg4: #dfe1e5; --text: #2e3338; --muted: #5c5e66; --faint: #8a8d93; --line: rgba(0, 0, 0, .08); --scene: #f2f3f5; }
html[data-style="clean"] { --r: 8px; --r-lg: 10px; }
html[data-style="clean"] body { background: var(--bg2); }
html[data-style="clean"] *, html[data-style="clean"] *::before, html[data-style="clean"] *::after { text-shadow: none !important; }
html[data-style="clean"] .btn-pri { background: var(--ac); box-shadow: none; }
html[data-style="clean"] .btn-pri:hover { filter: brightness(1.08); }
html[data-style="clean"] .rail-btn:hover, html[data-style="clean"] .rail-item.on .rail-btn { background: var(--ac); box-shadow: none; }
html[data-style="clean"] h1, html[data-style="clean"] h2, html[data-style="clean"] .settings h2 { font-family: var(--font); font-style: normal; font-weight: 700; letter-spacing: 0; background: none; color: var(--text); -webkit-text-fill-color: currentColor; }
html[data-style="clean"] .card, html[data-style="clean"] .modal, html[data-style="clean"] .inbox-panel, html[data-style="clean"] .pins-panel { box-shadow: var(--shadow); border-color: var(--line); background-image: none; }
html[data-style="clean"] .grad-text { background: none; color: var(--ac); -webkit-text-fill-color: currentColor; }
html[data-style="clean"] .shop-hero { background: var(--bg1); color: var(--text); border: 1px solid var(--line); }
html[data-style="clean"] .composer .box { box-shadow: none; border-color: var(--line); background: var(--bg3); }
html[data-style="clean"] .srv-tabs { background: var(--bg0); }
html[data-style="clean"] [class*="glow"], html[data-style="clean"] .boot img { filter: none; }
html[data-style="clean"] .seg button.on, html[data-style="clean"] .chip.on { background: var(--ac); background-image: none; color: #fff; box-shadow: none; }

/* ---------- 🎮 GAMER: tiefschwarz, kantig, leuchtende Kanten ---------- */
@font-face { font-family: 'pw-gamer'; src: url('nf-gamer.woff') format('woff'); font-display: swap; }
html[data-style="gamer"][data-theme="dark"], html[data-style="gamer"].th-black, html[data-style="gamer"][data-theme="light"] {
  --bg0: #050608; --bg1: #0a0c10; --bg2: #0e1116; --bg3: #161a21; --bg4: #20262f;
  --text: #e8f1ff; --muted: #8b9bb4; --faint: #56627a; --line: rgba(57, 255, 136, .12);
  --glass: rgba(10, 12, 16, .92); --shadow: 0 0 0 1px rgba(57, 255, 136, .12), 0 12px 30px rgba(0, 0, 0, .6);
  --r: 4px; --r-lg: 6px;
}
html[data-style="gamer"] body { background: #050608; background-image: linear-gradient(rgba(57, 255, 136, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(57, 255, 136, .025) 1px, transparent 1px); background-size: 32px 32px; }
html[data-style="gamer"] h1, html[data-style="gamer"] h2, html[data-style="gamer"] .settings h2, html[data-style="gamer"] h4 { font-family: 'pw-gamer', var(--display); font-style: normal; text-transform: uppercase; letter-spacing: .06em; background: none; color: var(--ac); -webkit-text-fill-color: currentColor; text-shadow: 0 0 12px rgba(var(--ac-rgb), .55); }
html[data-style="gamer"] .btn { border-radius: 2px; text-transform: uppercase; letter-spacing: .05em; font-size: 13px; }
html[data-style="gamer"] .btn-pri { background: var(--ac); color: #020403; box-shadow: 0 0 16px rgba(var(--ac-rgb), .6); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
html[data-style="gamer"] .btn-sec { background: transparent; border: 1px solid rgba(var(--ac-rgb), .5); color: var(--ac); }
html[data-style="gamer"] .btn-sec:hover { background: rgba(var(--ac-rgb), .12); box-shadow: 0 0 12px rgba(var(--ac-rgb), .35); }
html[data-style="gamer"] .card, html[data-style="gamer"] .modal, html[data-style="gamer"] .inbox-panel, html[data-style="gamer"] .pins-panel { background: linear-gradient(180deg, rgba(var(--ac-rgb), .04), transparent 40%), var(--bg1); border: 1px solid rgba(var(--ac-rgb), .25); border-radius: 4px; position: relative; }
html[data-style="gamer"] .card::before { content: ''; position: absolute; top: -1px; left: -1px; width: 16px; height: 16px; border-top: 2px solid var(--ac); border-left: 2px solid var(--ac); pointer-events: none; }
html[data-style="gamer"] .card::after { content: ''; position: absolute; bottom: -1px; right: -1px; width: 16px; height: 16px; border-bottom: 2px solid var(--ac); border-right: 2px solid var(--ac); pointer-events: none; }
html[data-style="gamer"] .srv-tabs { border-bottom: 1px solid rgba(var(--ac-rgb), .5); box-shadow: 0 1px 14px rgba(var(--ac-rgb), .25); }
html[data-style="gamer"] .side { border-right: 1px solid rgba(var(--ac-rgb), .18); }
html[data-style="gamer"] .input { border-radius: 2px; background: #07090c; }
html[data-style="gamer"] .input:focus { border-color: var(--ac); box-shadow: 0 0 0 1px var(--ac), 0 0 14px rgba(var(--ac-rgb), .35); }
html[data-style="gamer"] .composer .box { border-radius: 4px; border-color: rgba(var(--ac-rgb), .35); box-shadow: 0 0 16px rgba(var(--ac-rgb), .12); }
html[data-style="gamer"] .rail-btn, html[data-style="gamer"] .avatar img, html[data-style="gamer"] .msg .gut img { border-radius: 6px !important; }
html[data-style="gamer"] .seg button.on, html[data-style="gamer"] .chip.on { background: var(--ac); color: #020403; box-shadow: 0 0 12px rgba(var(--ac-rgb), .5); }
html[data-style="gamer"] .shop-hero { background: linear-gradient(120deg, #0a0c10, rgba(var(--ac-rgb), .25)); border: 1px solid rgba(var(--ac-rgb), .5); }

/* Auswahl der Stile in den Einstellungen */
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.style-b { border-radius: 14px; border: 2px solid var(--line); background: var(--bg1); overflow: hidden; text-align: left; padding: 0; }
.style-b.on { border-color: var(--ac); box-shadow: 0 0 0 3px rgba(var(--ac-rgb), .25); }
.style-b .sp { height: 92px; display: flex; gap: 6px; padding: 10px; }
.style-b .sp i { display: block; border-radius: 6px; }
.style-b b { display: block; padding: 8px 12px 2px; }
.style-b small { display: block; padding: 0 12px 10px; color: var(--muted); font-size: 12px; }

/* =====================================================================
   Update 57: NEUER AUFBAU – schwebende Panels, neue untere Leiste, Sprechblasen
   ===================================================================== */
/* ---- Schwebende Panels ---- */
@media (min-width: 761px) {
  html.lay-float .app { padding: 10px 10px 10px 0; column-gap: 10px; background: transparent; }
  html.lay-float body { background: var(--bg0); }
  html.lay-float .side, html.lay-float .main, html.lay-float .members { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
  html.lay-float .side { background: var(--bg1); }
  html.lay-float .main { background: var(--bg2); }
  html.lay-float .members { background: var(--bg1); }
  html.lay-float .srv-tabs { border-bottom: 0; background: transparent; padding-top: 6px; }
  html.lay-float .srv-tabs + .app { height: calc(100dvh - var(--tabs-h, 48px) - 6px); }
  html.lay-float .main-head { border-bottom: 1px solid var(--line); }
  html.lay-float .composer { padding-bottom: 14px; }
  html.lay-float[data-style="vice"] .side, html.lay-float[data-style="vice"] .main, html.lay-float[data-style="vice"] .members { border-color: rgba(255, 79, 163, .25); box-shadow: 0 0 24px rgba(255, 61, 139, .12), 0 10px 30px rgba(0, 0, 0, .4); }
  html.lay-float[data-style="gamer"] .side, html.lay-float[data-style="gamer"] .main, html.lay-float[data-style="gamer"] .members { border-radius: 6px; border-color: rgba(var(--ac-rgb), .3); box-shadow: 0 0 18px rgba(var(--ac-rgb), .1); }
  html.lay-float[data-style="clean"] .side, html.lay-float[data-style="clean"] .main, html.lay-float[data-style="clean"] .members { border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
}
/* ---- Neue untere Leiste (Profil, Mikro, Kopfhörer, Einstellungen) ---- */
html.ub-new .upanel { height: auto; margin: 8px; padding: 8px; gap: 6px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
html.ub-new .upanel .me { padding: 4px 6px; border-radius: 12px; }
html.ub-new .upanel .me .nm b { font-size: 14.5px; }
html.ub-new .upanel .icon-btn { width: 40px; height: 40px; border-radius: 12px; background: var(--bg3); display: grid; place-items: center; transition: background .12s, transform .12s; }
html.ub-new .upanel .icon-btn:hover { background: var(--bg4); transform: translateY(-1px); }
html.ub-new .upanel .icon-btn.on { background: rgba(240, 71, 71, .2); color: #f04747; box-shadow: inset 0 0 0 1px rgba(240, 71, 71, .5); }
html.ub-new .upanel .icon-btn svg { width: 20px; height: 20px; }
html.ub-new .upanel .ubtn-grp { display: flex; align-items: center; gap: 0; }
html.ub-new .upanel .caret-btn { width: 16px; height: 40px; margin-left: -2px; border-radius: 0 10px 10px 0; color: var(--faint); font-size: 11px; }
html.ub-new .upanel .caret-btn:hover { color: var(--text); background: var(--bg3); }
html.ub-new .vpanel { margin: 8px 8px 0; border-radius: 16px; border: 1px solid rgba(59, 165, 93, .35); background: linear-gradient(180deg, rgba(59, 165, 93, .12), var(--bg2)); }
html.ub-new .vpanel .vbtns button { height: 38px; border-radius: 12px; }
html.ub-new[data-style="gamer"] .upanel, html.ub-new[data-style="gamer"] .vpanel { border-radius: 6px; }
html.ub-new[data-style="gamer"] .upanel .icon-btn { border-radius: 4px; }
/* ---- Sprechblasen-Ansicht ---- */
html.msg-bubbles .msg { margin-top: 10px; padding: 2px 18px; }
html.msg-bubbles .msg.cont { margin-top: 2px; }
html.msg-bubbles .msg .body { flex: 0 1 auto; max-width: min(72%, 680px); background: var(--bg3); padding: 7px 13px 8px; border-radius: 4px 18px 18px 18px; }
html.msg-bubbles .msg.cont .body { border-radius: 18px; }
html.msg-bubbles .msg.mine { flex-direction: row-reverse; }
html.msg-bubbles .msg.mine .body { background: linear-gradient(135deg, rgba(var(--ac-rgb), .55), rgba(var(--ac-rgb), .32)); border-radius: 18px 4px 18px 18px; }
html.msg-bubbles .msg.mine.cont .body { border-radius: 18px; }
html.msg-bubbles .msg.mine .head { flex-direction: row-reverse; }
html.msg-bubbles .msg.mine .gut { text-align: left; }
html.msg-bubbles .msg.mine .acts { right: auto; left: 16px; }
html.msg-bubbles .msg .head { font-size: 13px; }
html.msg-bubbles .msg .time { font-size: 11px; }
html.msg-bubbles .msg:hover { background: transparent; }
html.msg-bubbles .msg.mention .body { box-shadow: inset 0 0 0 2px rgba(250, 166, 26, .7); }
html.msg-bubbles .msg .att img, html.msg-bubbles .msg .att video { border-radius: 12px; }
html.msg-bubbles .msg.blocked-msg .body, html.msg-bubbles .msg[data-sys] .body { background: transparent; }
html.msg-bubbles .day-sep { margin: 18px 0 6px; }
html.msg-bubbles[data-style="gamer"] .msg .body { border-radius: 2px 10px 10px 10px; }
/* Auswahl-Kacheln für den Aufbau */
.lay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.lay-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); cursor: pointer; }
.lay-opt input { margin-top: 3px; }
.lay-opt b { display: block; }
.lay-opt small { color: var(--muted); font-size: 12.5px; }
/* untere Leiste: Profil oben in voller Breite, Knöpfe darunter verteilt */
html.ub-new .upanel { flex-wrap: wrap; justify-content: space-between; }
html.ub-new .upanel .me { flex: 1 1 100%; }
html.ub-new .upanel .ubtn-grp, html.ub-new .upanel #uset { flex: 1; }
html.ub-new .upanel .ubtn-grp .icon-btn { flex: 1; width: auto; border-radius: 12px 0 0 12px; }
html.ub-new .upanel .ubtn-grp .caret-btn { width: 22px; background: var(--bg3); border-left: 1px solid var(--line); }
html.ub-new .upanel #uset { width: auto; }
/* Update 58: kleiner Rahmen unten (nicht mehr an der Taskleiste kleben) */
@media (min-width: 761px) { html.lay-float .app { padding-bottom: var(--dock-gap, 10px); } }
html:not(.lay-float) .app { padding-bottom: calc(var(--dock-gap, 10px) - 10px); }
html:not(.lay-float) .composer { padding-bottom: 14px; }
html.ub-new .upanel { margin-bottom: 10px; }
/* Update 59: App ist ein festes Fenster – die Seite selbst scrollt nie (nur Chat, Listen usw. innen) */
html:has(#appRoot), body:has(#appRoot) { height: 100%; overflow: hidden; overscroll-behavior: none; }
body:has(#appRoot) #app { height: 100%; overflow: hidden; }
