/* =====================================================================
   Molux – Design v3
   Ruhige, flächige Oberflächen · eine Akzentfarbe je Thema · feine Linien
   Themen: ozean (Standard) · nacht · abend · hell
   ===================================================================== */
:root, html[data-theme="ozean"] {
  --bg: #0b1430;
  --bg-2: #0f1b3d;
  --surface: #121f44;
  --surface-2: #182a57;
  --surface-3: #1f3469;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #edf2ff;
  --muted: #8c9cc4;
  --accent: #4d8dff;
  --accent-2: #3cc4ff;
  --accent-ink: #ffffff;
  --accent-soft: rgba(77, 141, 255, .16);
  --msg-in: rgba(167, 139, 250, .16);
  --msg-in-line: rgba(167, 139, 250, .35);
  --danger: #ff5c77;
  --ok: #34d399;
  --warn: #ffb45c;
  --pin: #ffd166;
  --topbar: rgba(11, 20, 48, .94);
  --sheet: #111d42;
  --overlay: rgba(3, 8, 22, .62);
  --shadow: 0 18px 44px rgba(0, 0, 0, .38);
  --logo-tile: linear-gradient(145deg, #3cc4ff, #4d8dff);
  --radius: 16px;
  --nav-h: 70px;
  color-scheme: dark;
}
html[data-theme="nacht"] {
  --bg: #0d0e11; --bg-2: #121418; --surface: #17191e; --surface-2: #1e2127; --surface-3: #272b33;
  --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .13);
  --text: #eceef2; --muted: #8b919d;
  --accent: #2dd4bf; --accent-2: #5eead4; --accent-ink: #062b27; --accent-soft: rgba(45, 212, 191, .14);
  --msg-in: rgba(255, 255, 255, .06); --msg-in-line: rgba(255, 255, 255, .12);
  --topbar: rgba(13, 14, 17, .95); --sheet: #16181d; --overlay: rgba(0, 0, 0, .66);
  --logo-tile: linear-gradient(145deg, #5eead4, #14b8a6);
}
html[data-theme="abend"] {
  --bg: #1a0f1f; --bg-2: #211327; --surface: #26162d; --surface-2: #311d3a; --surface-3: #3c2447;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .15);
  --text: #f7edf4; --muted: #b69db2;
  --accent: #ff7a59; --accent-2: #ffb35c; --accent-ink: #2a0d05; --accent-soft: rgba(255, 122, 89, .16);
  --msg-in: rgba(255, 179, 92, .12); --msg-in-line: rgba(255, 179, 92, .3);
  --topbar: rgba(26, 15, 31, .95); --sheet: #24152b; --overlay: rgba(10, 3, 12, .64);
  --logo-tile: linear-gradient(145deg, #ffb35c, #ff6a5c);
}
html[data-theme="hell"] {
  --bg: #f3f5fa; --bg-2: #eaeef6; --surface: #ffffff; --surface-2: #f1f4f9; --surface-3: #e6ebf3;
  --line: rgba(15, 26, 51, .09); --line-2: rgba(15, 26, 51, .16);
  --text: #111a30; --muted: #5f6b85;
  --accent: #2f6bff; --accent-2: #0ea5e9; --accent-ink: #ffffff; --accent-soft: rgba(47, 107, 255, .1);
  --msg-in: #eef0fb; --msg-in-line: #d9ddf3;
  --danger: #e5364f; --ok: #0f9f6e; --warn: #c26a00; --pin: #e5a100;
  --topbar: rgba(255, 255, 255, .95); --sheet: #ffffff; --overlay: rgba(15, 26, 51, .38);
  --shadow: 0 16px 40px rgba(15, 26, 51, .14);
  --logo-tile: linear-gradient(145deg, #3cc4ff, #2f6bff);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.45; color: var(--text); background: var(--bg);
  min-height: 100vh; min-height: 100dvh; overscroll-behavior: none; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.ic { display: inline-flex; width: 20px; height: 20px; flex: 0 0 auto; }
.ic svg { width: 100%; height: 100%; }

/* ---------- Marke ---------- */
.logo-center { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; color: var(--text); }
.logo-center img { width: 30px; height: 30px; padding: 5px; border-radius: 9px; background: var(--logo-tile); }
.logo-center .wm { font-weight: 750; font-size: 19px; letter-spacing: -.2px; }
.screen-sub { font-size: 10.5px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; background: none; border: 0; padding: 0; color: var(--text); }
.brand img { width: 30px; height: 30px; padding: 5px; border-radius: 9px; background: var(--logo-tile); }
.logo-btn { width: 38px; height: 38px; border-radius: 11px; border: 0; padding: 6px; background: var(--logo-tile); display: grid; place-items: center; }
.logo-btn img { width: 100%; height: 100%; }

/* ---------- Anmelden / Registrieren ---------- */
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 28px 16px; background: var(--bg); }
.card { width: 100%; max-width: 380px; padding: 30px 24px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card .auth-logo { display: block; width: 64px; height: 64px; margin: 0 auto 12px; padding: 11px; border-radius: 18px; background: var(--logo-tile); }
.card h1 { text-align: center; margin: 0; font-size: 26px; font-weight: 750; letter-spacing: -.4px; }
.card .sub { text-align: center; color: var(--muted); margin: 4px 0 24px; font-size: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 0 0 6px 2px; }
.input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--muted); opacity: .8; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.code { text-transform: uppercase; letter-spacing: 3px; font-weight: 700; text-align: center; }
textarea.input { resize: vertical; }
select.input { appearance: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 12px; border: 0; font-weight: 650; color: var(--accent-ink); text-decoration: none;
  background: var(--accent); transition: filter .15s, transform .1s, opacity .15s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn .ic { width: 18px; height: 18px; }
.alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.msg { min-height: 20px; font-size: 13.5px; margin: 4px 2px 12px; }
.msg.err { color: var(--danger); }
.invite-hint { display: flex; gap: 10px; align-items: center; padding: 11px 13px; margin-bottom: 18px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--line); font-size: 14px; }
.auth-info { position: fixed; right: 16px; bottom: 16px; }

/* ---------- App-Rahmen ---------- */
.app { max-width: 560px; margin: 0 auto; height: 100vh; height: 100dvh; position: relative; overflow: hidden; background: var(--bg); }
@media (min-width: 600px) { .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.topbar {
  flex: 0 0 auto; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); min-height: 60px;
}
.topbar.glass { background: var(--topbar); border-bottom: 1px solid var(--line); }
.topbar .title { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; font-weight: 700; font-size: 18px; text-align: center; }
.topbar .left, .topbar .right { display: flex; gap: 8px; align-items: center; min-width: 84px; }
.topbar .right { justify-content: flex-end; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text); display: grid; place-items: center; flex: 0 0 auto; position: relative;
}
.icon-btn .ic { width: 19px; height: 19px; }
.icon-btn:hover { background: var(--surface-3); }
.icon-btn.round { border-radius: 50%; }
.icon-btn.dark { background: rgba(0, 0, 0, .38); border-color: rgba(255, 255, 255, .18); color: #fff; }
.me-btn { padding: 0; border: 0; background: none; border-radius: 50%; }
.me-btn .avatar { width: 38px; height: 38px; font-size: 16px; }
.scroll { flex: 1; overflow-y: auto; padding: 8px 0 calc(var(--nav-h) + 24px); -webkit-overflow-scrolling: touch; }
.section-title { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 1.1px; color: var(--muted); margin: 16px 16px 8px; }

/* Untere Navigation */
.nav {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); display: flex; align-items: center; justify-content: space-around;
  background: var(--topbar); border-top: 1px solid var(--line);
}
.nav.on-camera { background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent); border-color: transparent; }
.nav.on-camera button { color: rgba(255, 255, 255, .78); }
.nav button { background: none; border: 0; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; position: relative; min-width: 70px; }
.nav button .ic { width: 24px; height: 24px; }
.nav button.active { color: var(--text); }
.nav button.active .ic { color: var(--accent); }
.nav.on-camera button.active { color: #fff; }
.nav .nav-badge { position: absolute; top: -4px; right: 16px; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.nav .cam-tab .ic { width: 28px; height: 28px; }

/* Listen (Messenger-Stil: flache Zeilen mit Trennlinie) */
.row-item {
  display: flex; align-items: center; gap: 13px; padding: 11px 16px; width: 100%; text-align: left;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); transition: background .12s; position: relative;
}
.row-item:hover { background: var(--surface); }
.row-item:active { background: var(--surface-2); }
.row-item.pinned::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--pin); }
.avatar {
  position: relative; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 18px; color: #fff; user-select: none;
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar .dot { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); border: 2px solid var(--bg); }
.avatar.ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.avatar.ring.seen { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--line-2); }
.avatar.xl { width: 84px; height: 84px; font-size: 32px; }
.avatar.sm { width: 30px; height: 30px; font-size: 13px; }
.row-item .info { flex: 1; min-width: 0; }
.row-item .name { font-weight: 650; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.status { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 2px; flex-wrap: wrap; }
.status.new { color: var(--accent); font-weight: 650; }
.status.warn { color: var(--warn); font-weight: 650; }
.streak { font-weight: 700; color: var(--warn); white-space: nowrap; }
.quick-cam { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; flex: 0 0 auto; }
.quick-cam .ic { width: 19px; height: 19px; }
.pin-mark { color: var(--pin); font-size: 12px; }
.support-tag { font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.empty { text-align: center; color: var(--muted); padding: 44px 24px; line-height: 1.6; }
.empty .big { font-size: 40px; margin-bottom: 6px; }
.empty .btn { margin-top: 6px; }

/* Push-Hinweis & Anfragen */
.push-hint { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 10px 12px; border-radius: 14px; cursor: pointer; background: var(--accent-soft); border: 1px solid var(--line); }
.push-hint > .ic { width: 24px; height: 24px; color: var(--accent); }
.push-hint > div { flex: 1; }
.hint-x { background: none; border: 0; font-size: 22px; color: var(--muted); padding: 0 4px; }
.req-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 6px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); flex-wrap: wrap; }
.req-card .info { flex: 1; min-width: 150px; }
.req-card .name { font-weight: 700; }
.req-actions { display: flex; gap: 8px; }
.req-actions .btn .ic { width: 15px; height: 15px; }

/* Kamera */
.camera { background: #000; }
.camera video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camera video.mirror { transform: scaleX(-1); }
.camera .topbar { position: absolute; top: 0; left: 0; right: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent); }
.camera .logo-center, .camera .logo-center .wm { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.cam-side { position: absolute; right: 14px; top: calc(max(10px, env(safe-area-inset-top)) + 60px); display: flex; flex-direction: column; gap: 12px; z-index: 5; }
.cam-bottom { position: absolute; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px); display: flex; align-items: center; justify-content: center; gap: 44px; z-index: 5; }
.shutter { width: 80px; height: 80px; border-radius: 50%; border: 5px solid #fff; background: rgba(255, 255, 255, .12); box-shadow: 0 4px 24px rgba(0, 0, 0, .45); transition: transform .1s, background .1s; }
.shutter:active { transform: scale(.93); background: rgba(255, 255, 255, .35); }
.cam-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; color: #cfd8ea; background: #06080d; }
.cam-placeholder .ic { width: 52px; height: 52px; margin-bottom: 10px; color: #9fb0d0; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 8; }
.flash.go { animation: flash .35s ease; }
@keyframes flash { 0% { opacity: .9 } 100% { opacity: 0 } }

/* Editor */
.editor { position: fixed; inset: 0; z-index: 40; background: #000; display: flex; align-items: center; justify-content: center; touch-action: none; color: #fff; }
.stage { position: relative; }
.stage canvas { width: 100%; height: 100%; display: block; }
.caption-bar { position: absolute; left: 0; right: 0; transform: translateY(-50%); background: rgba(0, 0, 0, .55); display: flex; justify-content: center; cursor: grab; touch-action: none; }
.caption-bar input { width: 100%; background: transparent; border: 0; outline: none; color: #fff; text-align: center; font-weight: 700; padding: 0 12px; }
.ed-top { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 14px; right: 14px; display: flex; justify-content: space-between; z-index: 3; pointer-events: none; }
.ed-top > * { pointer-events: auto; }
.ed-tools { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.ed-tools .icon-btn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ed-tools .timer-lbl { font-size: 10.5px; font-weight: 700; position: absolute; bottom: -3px; right: -5px; background: var(--accent); color: var(--accent-ink); border-radius: 8px; padding: 1px 5px; }
.palette { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.palette button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; }
.palette button.sel { transform: scale(1.25); }
.ed-bottom { position: absolute; left: 14px; right: 14px; bottom: max(18px, env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; z-index: 3; gap: 8px; }
.row-pills { display: flex; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 11px 16px; border-radius: 30px; font-weight: 650; color: #fff; background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .22); white-space: nowrap; }
.pill.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.pill.danger-pill { background: var(--danger); border-color: transparent; }
.pill .ic { width: 17px; height: 17px; }
a.pill { text-decoration: none; }

/* Senden an */
.send-list { max-height: 50vh; overflow-y: auto; margin: 0 -6px 14px; padding: 0 6px; }
.pick { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 12px; width: 100%; background: none; border: 0; text-align: left; color: var(--text); }
.pick:hover { background: var(--surface-2); }
.pick .name { flex: 1; font-weight: 650; }
.pick .avatar { width: 40px; height: 40px; font-size: 16px; }
.check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; }
.check .ic { width: 13px; height: 13px; opacity: 0; }
.pick.on .check { background: var(--accent); border-color: var(--accent); }
.pick.on .check .ic { opacity: 1; color: var(--accent-ink); }
.story-pick .avatar { background: var(--accent) !important; }
.selected-line { font-size: 13px; color: var(--muted); margin: -6px 2px 12px; min-height: 18px; }

/* Chat */
#scrChat { z-index: 35; }
.chat-head { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.chat-head .avatar { width: 36px; height: 36px; font-size: 14px; }
.chat-head .n { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#scrChat .scroll { padding: 10px 12px 100px; }
html[data-chatbg="dots"] #scrChat .scroll { background-image: radial-gradient(var(--line-2) 1.2px, transparent 1.3px); background-size: 18px 18px; }
html[data-chatbg="waves"] #scrChat .scroll { background-image: repeating-linear-gradient(135deg, transparent 0 14px, var(--line) 14px 15px); }
.chat-note { text-align: center; font-size: 11.5px; color: var(--muted); margin: 4px 10px 14px; }
.bubble-row { display: flex; margin: 6px 2px; }
.bubble-row.out { justify-content: flex-end; }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 18px; font-size: 14px; display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.bubble-row.out .bubble { background: var(--accent); color: var(--accent-ink); border-color: transparent; border-bottom-right-radius: 6px; }
.bubble-row.in .bubble { border-bottom-left-radius: 6px; }
.bubble.clickable { cursor: pointer; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.bubble .t { font-size: 11px; opacity: .75; display: block; margin-top: 2px; }
.bubble .t.warn { color: var(--warn); opacity: 1; font-weight: 650; }
.bubble-row.out .bubble .t.warn { color: inherit; }
.bubble.text { flex-direction: column; align-items: flex-start; gap: 2px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-y; }
.bubble.text .txt { white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.4; }
.bubble-row.in .bubble.text { background: var(--msg-in); border-color: var(--msg-in-line); }
.bubble.text.pinned { box-shadow: 0 0 0 2px var(--pin); }
.bubble-row.vanish { opacity: 0; transform: scale(.92); transition: opacity .35s, transform .35s; }
.pin-bar { display: block; width: 100%; margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 600; font-size: 12.5px; text-align: left; }
.chat-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px max(12px, env(safe-area-inset-bottom)); background: var(--topbar); border-top: 1px solid var(--line); }
.chat-foot .icon-btn { width: 42px; height: 42px; }
.chat-foot .send-btn { background: var(--accent); color: var(--accent-ink); border: 0; }
.msg-input { flex: 1; min-height: 42px; max-height: 120px; resize: none; padding: 10px 14px; border-radius: 21px; line-height: 1.35; }
.msg-timer { flex: 0 0 auto; height: 42px; padding: 0 11px; border-radius: 21px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--text); }
.support-banner { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--line); font-size: 12.5px; color: var(--text); }

/* Stories */
.my-story-item { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.my-story-item img { width: 44px; height: 58px; object-fit: cover; border-radius: 8px; background: #000; }
.my-story-item .info { flex: 1; min-width: 0; font-size: 13px; }
.my-story-item .viewers { color: var(--muted); font-size: 12px; margin-top: 2px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.my-story-item .viewers .ic { width: 14px; height: 14px; }

/* Vollbild-Seiten (Freunde, Privat-Ordner) */
.page { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; background: var(--bg); }
.page .scroll { padding-bottom: 30px; }
.vault { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; background: var(--bg); }
.vault .scroll { padding: 8px 10px 16px; }
.vault-info { text-align: center; margin: 4px 0 12px; }
.vault-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.vault-grid .empty { grid-column: 1 / -1; }
.vault-cell { aspect-ratio: 3/4; border: 0; border-radius: 4px; background: var(--surface-2) center / cover no-repeat; }
.vault-foot { padding: 12px 14px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--topbar); }
.vault-view { position: fixed; inset: 0; z-index: 90; background: #000; display: flex; align-items: center; justify-content: center; }
.vault-view img { max-width: 100%; max-height: 100%; object-fit: contain; }
.vault-actions { position: absolute; left: 0; right: 0; bottom: max(18px, env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.fr-search { display: block; width: calc(100% - 24px); margin: 4px 12px 6px; }
.fr-add { margin: 8px 12px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.fr-add .row { margin-top: 8px; }
.fr-add .row .input { flex: 1; }
.fr-actions { display: flex; gap: 6px; }
.fr-actions .icon-btn { width: 36px; height: 36px; border-radius: 10px; }

/* Sheets */
.overlay { position: fixed; inset: 0; z-index: 70; background: var(--overlay); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease; }
.sheet {
  width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 18px 18px;
  padding-bottom: max(22px, env(safe-area-inset-bottom)); background: var(--sheet); color: var(--text);
  border: 1px solid var(--line); border-bottom: 0; box-shadow: var(--shadow); animation: up .2s ease;
}
.sheet h3 { margin: 4px 0 14px; font-size: 18px; font-weight: 700; }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: -4px auto 14px; }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: 22px; border-bottom: 1px solid var(--line); } }
@keyframes fade { from { opacity: 0 } }
@keyframes up { from { transform: translateY(30px); opacity: 0 } }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--line-2); margin-bottom: 10px; }
.code-box .code { font-size: 24px; font-weight: 750; letter-spacing: 4px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > .btn { flex: 1; }
.menu-list { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.menu-list .btn { justify-content: flex-start; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.profile-head { text-align: center; }
.profile-head .avatar { margin: 0 auto 10px; }
.profile-head h2 { margin: 0; font-size: 21px; font-weight: 700; }
.avatar-edit { position: relative; background: none; border: 0; padding: 0; margin: 0 auto 10px; display: block; border-radius: 50%; }
.avatar-edit .avatar { margin: 0; }
.avatar-edit .cam-badge { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); border: 3px solid var(--sheet); }
.avatar-edit .cam-badge .ic { width: 14px; height: 14px; }
.stats-row { display: flex; justify-content: center; gap: 8px; margin: 14px 0 4px; }
.stats-row div { padding: 8px 14px; border-radius: 12px; background: var(--surface-2); font-size: 11.5px; color: var(--muted); text-align: center; }
.stats-row b { display: block; font-size: 18px; color: var(--text); }
.info-sheet { text-align: center; }
.info-logo { width: 76px; height: 76px; padding: 13px; border-radius: 22px; background: var(--logo-tile); }
.info-sheet h2 { margin: 12px 0 2px; font-weight: 750; }
.info-sheet .version { display: inline-block; margin-bottom: 10px; padding: 2px 10px; border-radius: 8px; background: var(--surface-2); font-weight: 650; font-size: 12.5px; }
.info-list { text-align: left; font-size: 14px; line-height: 1.55; color: var(--text); padding-left: 20px; opacity: .9; }
.info-sheet .guide-link { display: inline-flex; margin: 4px 0 10px; }
.timer-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.timer-pick button { padding: 11px 0; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 650; color: var(--text); }
.timer-pick button.sel { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.timer-pick button.inf { font-size: 20px; }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.check-line { display: flex; align-items: center; gap: 10px; margin: 12px 2px 16px; font-size: 14px; }
.check-line input { width: 18px; height: 18px; accent-color: var(--accent); }

/* Design-Auswahl */
.theme-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.theme-card { border-radius: 14px; padding: 10px; border: 2px solid var(--line); background: var(--surface-2); text-align: left; color: var(--text); }
.theme-card.sel { border-color: var(--accent); }
.theme-card .sw { height: 64px; border-radius: 10px; margin-bottom: 8px; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; padding: 8px; }
.theme-card .sw i { display: block; height: 8px; border-radius: 4px; }
.theme-card b { font-size: 14px; }
.theme-card span { display: block; font-size: 11.5px; color: var(--muted); }
.bg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bg-card { border-radius: 12px; height: 70px; border: 2px solid var(--line); background-color: var(--bg); color: var(--text); font-size: 12px; font-weight: 650; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; }
.bg-card.sel { border-color: var(--accent); }
.bg-card.dots { background-image: radial-gradient(var(--line-2) 1.2px, transparent 1.3px); background-size: 12px 12px; }
.bg-card.waves { background-image: repeating-linear-gradient(135deg, transparent 0 9px, var(--line-2) 9px 10px); }

/* PIN */
.pin-sheet { text-align: center; }
.pin-lock { font-size: 34px; }
.pin-sheet h3 { margin: 6px 0 4px; }
.pin-sub { color: var(--muted); font-size: 14px; min-height: 20px; }
.pin-dots { display: flex; justify-content: center; gap: 16px; margin: 18px 0 20px; }
.pin-dots span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); }
.pin-dots span.on { background: var(--accent); border-color: var(--accent); }
.pin-keys { display: grid; grid-template-columns: repeat(3, 70px); gap: 12px; justify-content: center; }
.pin-keys button { height: 62px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); font-size: 23px; font-weight: 600; color: var(--text); }
.pin-keys button:active { background: var(--accent); color: var(--accent-ink); }

/* Mitteilungen */
.ann-overlay { position: fixed; inset: 0; z-index: 120; background: var(--overlay); display: grid; place-items: center; padding: 20px; animation: fade .2s ease; }
.ann-card { width: 100%; max-width: 380px; text-align: center; padding: 24px 22px 20px; border-radius: 22px; background: var(--sheet); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: up .25s ease; }
.ann-icon { font-size: 40px; }
.ann-from { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent); font-weight: 700; margin: 6px 0 2px; }
.ann-card h3 { margin: 4px 0 8px; font-size: 19px; }
.ann-body { white-space: pre-wrap; line-height: 1.5; margin: 0 0 10px; }
.ann-card .btn { margin-top: 12px; }

/* Betrachter */
.viewer { position: fixed; inset: 0; z-index: 60; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: pointer; }
.viewer .vimg { position: absolute; inset: 0; background: center / contain no-repeat; pointer-events: none; transition: filter .15s; }
.viewer .wm { position: absolute; inset: 0; pointer-events: none; background-repeat: repeat; z-index: 1; }
.viewer.blurred .vimg, .viewer.veiled .vimg { filter: blur(45px) brightness(.45); }
.viewer .bars { position: absolute; top: max(10px, env(safe-area-inset-top)); left: 10px; right: 10px; display: flex; gap: 4px; z-index: 2; }
.viewer .bars > div { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.viewer .bars > div > i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.viewer .bars > div.done > i { transform: scaleX(1); }
.viewer .meta { position: absolute; top: calc(max(10px, env(safe-area-inset-top)) + 12px); left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; font-weight: 650; text-shadow: 0 1px 6px #000; z-index: 3; }
.viewer .meta .avatar { width: 32px; height: 32px; font-size: 13px; }
.viewer .meta .when { font-weight: 500; opacity: .8; font-size: 13px; }
.viewer .meta .sp { flex: 1; }
.viewer .count { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .45); border: 2px solid rgba(255, 255, 255, .8); font-weight: 700; }
.viewer #vReport, .viewer #vClose { width: 34px; height: 34px; }
.viewer #vReport .ic, .viewer #vClose .ic { width: 16px; height: 16px; }
.viewer .hint { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.viewer .shield { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 30px; font-weight: 700; font-size: 17px; background: rgba(0, 0, 0, .8); }
.viewer .shield div { font-size: 50px; }
.viewer .shield small { font-weight: 500; font-size: 13px; opacity: .75; }
.viewer .hold-hint { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; font-weight: 700; font-size: 16px; padding: 18px 22px; border-radius: 18px; background: rgba(0, 0, 0, .62); border: 1px solid rgba(255, 255, 255, .2); pointer-events: none; }
.viewer .hold-hint div { font-size: 38px; }
.viewer.hold-mode { touch-action: none; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 36px); transform: translateX(-50%); z-index: 130; padding: 11px 16px; border-radius: 12px; background: var(--sheet); color: var(--text); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; animation: up .2s ease; max-width: 90vw; }
.toast.err { border-color: var(--danger); }
.version-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 200; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); background: #b4233e; color: #fff; font-size: 13px; line-height: 1.4; text-align: center; }

/* Screenshot-Schutz beim Verlassen der App */
body.app-hidden .bubble.text .txt, body.app-hidden .vault-cell, body.app-hidden .vault-view img, body.app-hidden .my-story-item img { filter: blur(14px); }

/* =================================================================== Admin */
.admin { max-width: 1280px; margin: 0 auto; padding: 0 16px 60px; }
.admin .topbar { margin: 0 -16px 18px; position: sticky; top: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.stat .v { font-size: 24px; font-weight: 750; }
.stat .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-grid { display: grid; grid-template-columns: 330px 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .admin-grid { grid-template-columns: 1fr; } }
.panel-box { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); padding: 14px; }
.user-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; border: 1px solid transparent; width: 100%; background: none; text-align: left; color: var(--text); }
.user-item:hover { background: var(--surface-2); }
.user-item.active { background: var(--accent-soft); border-color: var(--accent); }
.user-item .avatar { width: 40px; height: 40px; font-size: 16px; }
.user-item .n { font-weight: 650; }
.user-item .s { font-size: 12px; color: var(--muted); }
.tag { font-size: 10px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }
.tag.admin { background: var(--accent-soft); color: var(--accent); }
.tag.off { background: rgba(255, 92, 119, .16); color: var(--danger); }
.tag.sys { background: rgba(255, 209, 102, .18); color: var(--pin); }
.search { margin-bottom: 10px; }
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.detail-head h2 { margin: 0; font-size: 21px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
.kv div { padding: 10px 12px; border-radius: 11px; background: var(--surface-2); font-size: 13px; }
.kv b { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; font-weight: 600; margin-bottom: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.chip { cursor: pointer; }
.snap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.small-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); margin-top: 10px; }
.snap-card { border-radius: 14px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.snap-card .thumb { aspect-ratio: 3/4; background: #000; display: grid; place-items: center; cursor: zoom-in; overflow: hidden; }
.snap-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.snap-card .body { padding: 9px 11px; font-size: 12.5px; line-height: 1.5; }
.snap-card .dir { font-weight: 650; font-size: 13px; }
.snap-card .dir.out { color: var(--accent); }
.snap-card .dir.in { color: #a78bfa; }
.snap-card .warn { color: var(--warn); font-weight: 650; }
.snap-card .actions { padding: 0 11px 11px; }
.snap-card .actions.row { display: flex; gap: 6px; }
.snap-card .actions.row > * { flex: 1; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .92); display: grid; place-items: center; cursor: zoom-out; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.report-list { display: flex; flex-direction: column; gap: 10px; }
.report { display: flex; gap: 14px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid rgba(255, 92, 119, .4); }
.report.done { border-color: var(--line); opacity: .7; }
.report.done-ann { border-color: var(--line); align-items: flex-start; margin-bottom: 8px; }
.rthumb { width: 80px; height: 106px; flex: 0 0 auto; border-radius: 10px; overflow: hidden; background: #000; cursor: zoom-in; display: grid; place-items: center; }
.rthumb img { width: 100%; height: 100%; object-fit: cover; }
.empty-thumb { font-size: 28px; color: var(--muted); cursor: default; background: var(--surface-3); }
.rbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rhead { font-size: 14px; }
.reason { font-size: 15px; }
.msg-details { margin: 6px 0 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); padding: 10px 12px; }
.msg-details summary { cursor: pointer; font-weight: 650; }
.msg-scroll { max-height: 360px; overflow: auto; margin-top: 10px; }
.msg-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.msg-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px; position: sticky; top: 0; background: var(--surface-2); }
.msg-table td { padding: 6px; border-top: 1px solid var(--line); vertical-align: top; }
.msg-table td.body { white-space: pre-wrap; word-break: break-word; max-width: 420px; }
.msg-table tr.out td:nth-child(2) { color: var(--accent); }
.msg-table tr.in td:nth-child(2) { color: #a78bfa; }
.msg-table .btn.small { padding: 5px 8px; }
.ann-form { display: grid; gap: 10px; max-width: 640px; margin-bottom: 18px; }
.ann-form label { display: grid; gap: 5px; font-size: 12.5px; color: var(--muted); }
.ann-form label.check-line { display: flex; color: var(--text); }
select.input option { background: var(--surface); color: var(--text); }
/* Admin: Support */
.sup-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 14px; min-height: 420px; }
@media (max-width: 860px) { .sup-wrap { grid-template-columns: 1fr; } }
.sup-thread { display: flex; flex-direction: column; gap: 8px; }
.sup-msgs { flex: 1; max-height: 520px; overflow: auto; display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.sup-msg { max-width: 80%; padding: 8px 12px; border-radius: 14px; white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.sup-msg.user { align-self: flex-start; background: var(--msg-in); border: 1px solid var(--msg-in-line); }
.sup-msg.molu { align-self: flex-end; background: var(--accent); color: var(--accent-ink); }
.sup-msg small { display: block; font-size: 10.5px; opacity: .7; margin-top: 3px; }
.badge-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; }
.acc-item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 8px; flex-wrap: wrap; }
.acc-item.off { opacity: .55; }
.acc-item .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: 1px; }
.acc-item .grow { flex: 1; min-width: 200px; }

/* =====================================================================
   v3.1 – Einstellungen, QR, Was ist neu, Gruppen, Reaktionen, Zeitkapsel,
          Tagesfrage, Filter & Sticker
   ===================================================================== */
.logo-center { position: relative; }
.logo-center.has-new::after { content: ""; position: absolute; left: 24px; top: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--bg); }
.camera .logo-center.has-new::after { box-shadow: 0 0 0 2px rgba(0, 0, 0, .4); }
.new-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); margin-left: 6px; vertical-align: middle; }
.info-sheet .slogan { font-size: 15.5px; font-weight: 600; color: var(--text); opacity: .92; margin: 6px 0 14px; letter-spacing: .1px; }
.info-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; }
.info-actions .guide-link { margin: 0 !important; }
.news-btn { position: relative; }
.news-sheet .news-ver { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 10px; }
.news-sheet .news-ver.latest { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.news-head { display: flex; align-items: center; gap: 8px; }
.news-tag { font-size: 10.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .6px; padding: 2px 7px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); }
.news-ver ul { margin: 8px 0 0; padding-left: 4px; list-style: none; font-size: 14px; line-height: 1.55; }
.news-ver li { margin: 3px 0; }
.sheet.news-sheet { max-height: 86vh; overflow-y: auto; }

/* Profil & Einstellungen */
.profile-sheet { position: relative; }
.gear-btn { position: absolute; right: 16px; top: 16px; }
.set-scroll { padding: 6px 0 40px !important; }
.set-sec { margin: 0 12px 6px; }
.set-sec .section-title { margin: 18px 4px 8px; }
.set-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.set-card.pad { padding: 12px; }
.set-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); text-align: left; font-size: 15px; cursor: pointer; }
.set-row:last-child { border-bottom: 0; }
.set-row:hover { background: var(--surface-2); }
.set-row > .ic { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; text-align: center; font-size: 17px; line-height: 20px; }
.set-l { flex: 1; min-width: 0; font-weight: 600; }
.set-l small { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-row .chev { color: var(--muted); font-size: 20px; }
.set-row.toggle { cursor: pointer; }
.switch { position: relative; width: 46px; height: 28px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 20px; background: var(--surface-3); border: 1px solid var(--line-2); transition: background .15s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + i { background: var(--accent); border-color: var(--accent); }
.switch input:checked + i::after { transform: translateX(18px); }
.set-sub { font-size: 12.5px; font-weight: 650; color: var(--muted); margin: 4px 2px 8px; }
.set-design .bg-grid { margin-bottom: 2px; }
.muted.pad, .pad.muted { padding: 4px 16px 10px; }
.center { text-align: center; }

/* Einladen & QR */
.invite-sheet .qr-box { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 2px 0 14px; }
.invite-sheet canvas.qr { width: 210px; height: 210px; border-radius: 16px; background: #fff; padding: 0; image-rendering: pixelated; box-shadow: 0 6px 22px rgba(0, 0, 0, .25); }
.invite-sheet .btn.block { margin-top: 10px; }

/* Chat-Liste: Werkzeuge, Gruppen, Tagesfrage */
.chat-tools { display: flex; align-items: center; justify-content: space-between; margin: 6px 12px 0 0; }
.chat-tools .section-title { margin-bottom: 4px; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 650; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); cursor: pointer; }
.pill-btn .ic { width: 15px; height: 15px; }
.section-title.with-btn { display: flex; align-items: center; justify-content: space-between; }
.section-title.with-btn .pill-btn { text-transform: none; letter-spacing: 0; }
.avatar.group-av { background: linear-gradient(135deg, var(--accent-2), var(--accent)) !important; color: #fff; }
.avatar.group-av .ic { width: 55%; height: 55%; }
.avatar.group-av.moment { background: linear-gradient(135deg, #f59e0b, #ec4899) !important; }
.group-tag { font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); color: var(--muted); }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.row-item .status .ell { flex: 0 1 auto; }
.status.capsule { color: var(--warn); font-weight: 600; }
.chat-head .grow { flex: 1; min-width: 0; }
.daily-card { display: flex; gap: 12px; align-items: center; margin: 10px 12px 4px; padding: 13px 14px; border-radius: 16px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent-soft), rgba(236, 72, 153, .12)); border: 1px solid var(--line-2); }
.daily-card.done { opacity: .9; }
.daily-ic { font-size: 28px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); flex: 0 0 auto; }
.daily-card .info { flex: 1; min-width: 0; }
.daily-kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--accent); }
.daily-text { font-weight: 700; font-size: 15px; margin: 2px 0; }
.daily-sub { font-size: 12.5px; color: var(--muted); }
.daily-sheet .daily-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.daily-sheet .daily-head h3 { margin: 2px 0 0; }
.daily-sheet textarea { margin-bottom: 10px; }
.daily-sheet { max-height: 88vh; overflow-y: auto; }
.answer { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 10px; }
.answer.mine { border-color: var(--accent); }
.answer-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.answer-head .avatar { width: 28px; height: 28px; font-size: 12px; }
.answer-head b { flex: 1; }
.answer-body { font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.answer-img { display: block; width: 100%; max-height: 60vh; object-fit: contain; border-radius: 10px; background: #000; -webkit-touch-callout: none; user-select: none; }

/* Gruppen-Chat, Reaktionen, Zeitkapsel */
.bubble .from { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 1px; }
.bubble-row { flex-wrap: wrap; }
.bubble-row .rx { flex-basis: 100%; display: flex; gap: 4px; margin-top: -4px; padding: 0 10px; position: relative; z-index: 1; }
.bubble-row.out .rx { justify-content: flex-end; }
.rx-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 12px; font-size: 13px; background: var(--surface-3); border: 1px solid var(--line-2); }
.rx-chip.mine { border-color: var(--accent); background: var(--accent-soft); }
.rx-chip b { font-size: 11px; font-weight: 700; }
.react-sheet .react-pick { display: flex; justify-content: center; gap: 10px; margin: 12px 0; }
.react-pick button { width: 58px; height: 58px; border-radius: 50%; font-size: 30px; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; transition: transform .12s; }
.react-pick button:active { transform: scale(1.2); }
.react-pick button.sel { background: var(--accent-soft); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bubble.capsule { border-style: dashed; border-color: var(--warn); }
.bubble-row.out .bubble.capsule { background: var(--surface-2); color: var(--text); border-color: var(--warn); }
.bubble .cap-ic { font-size: 20px; }
.member-list { max-height: 34vh; overflow-y: auto; margin: 0 -8px; }
.member-list .row-item { padding: 8px; }
.capsule-note { margin: -6px 0 10px; color: var(--warn); font-weight: 600; }
.viewer .v-react { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(max(20px, env(safe-area-inset-bottom)) + 26px); z-index: 6; display: flex; gap: 10px;
  padding: 7px 10px; border-radius: 30px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .18); }
.viewer .v-react button { width: 44px; height: 44px; border-radius: 50%; font-size: 24px; background: transparent; border: 0; cursor: pointer; transition: transform .12s; }
.viewer .v-react button:active { transform: scale(1.25); }
.viewer .v-react button.sel { background: rgba(255, 255, 255, .22); }
.viewer.veiled .v-react { filter: none; }

/* Kamera-Filter */
.camera video { transition: filter .25s; }
.cam-fx { position: absolute; inset: 0; pointer-events: none; z-index: 1; background-repeat: no-repeat, repeat; background-size: cover, 160px 160px; }
#scrCamera { touch-action: none; }
.cam-side .icon-btn.on, .ed-tools .icon-btn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fx-label, .fx-name { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 6; pointer-events: none; font-size: 26px; font-weight: 800; color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .6); letter-spacing: .3px; }
.fx-label.go, .fx-name.go { animation: fxname 1.3s ease forwards; }
@keyframes fxname { 0% { opacity: 0; transform: translate(-50%, -40%) } 15% { opacity: 1; transform: translate(-50%, -50%) } 75% { opacity: 1 } 100% { opacity: 0 } }

/* Editor: Filterleiste, Sticker, Papierkorb, Zeitkapsel */
.fx-strip { position: absolute; left: 0; right: 0; bottom: calc(max(18px, env(safe-area-inset-bottom)) + 62px); z-index: 4; display: flex; gap: 8px; overflow-x: auto; padding: 8px 12px; scrollbar-width: none; background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent); }
.fx-strip::-webkit-scrollbar { display: none; }
.fx-item { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; color: #fff; font-size: 11.5px; font-weight: 650; cursor: pointer; padding: 0; }
.fx-item img { width: 58px; height: 58px; object-fit: cover; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .25); }
.fx-item.sel img { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.fx-item.molux span::after { content: " ✦"; color: var(--accent-2); }
.sticker-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.stk { position: absolute; pointer-events: auto; line-height: 1; white-space: nowrap; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; transform-origin: center; }
.stk.drag { cursor: grabbing; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .45)); }
.stk-time, .stk-date { font-weight: 800; color: #fff; background: rgba(0, 0, 0, .45); border-radius: 999px; padding: 0 .55em; line-height: 1.5; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.ed-trash { position: absolute; left: 50%; bottom: calc(max(18px, env(safe-area-inset-bottom)) + 70px); transform: translateX(-50%); z-index: 6; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, .55); border: 2px solid rgba(255, 255, 255, .5); color: #fff; transition: transform .12s, background .12s; pointer-events: none; }
.ed-trash .ic { width: 26px; height: 26px; }
.ed-trash.over { transform: translateX(-50%) scale(1.2); background: var(--danger); border-color: var(--danger); }
.capsule-pill { border-color: var(--warn) !important; }
.sticker-sheet { max-height: 80vh; overflow-y: auto; }
.sticker-sheet .row .btn { flex: 1; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-bottom: 10px; }
.emoji-grid button { font-size: 28px; padding: 6px 0; border-radius: 10px; background: none; border: 0; cursor: pointer; }
.emoji-grid button:hover, .emoji-grid button:active { background: var(--surface-2); }
.frame-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.row-pills { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 380px) { .emoji-grid { grid-template-columns: repeat(6, 1fr); } .pill { padding: 10px 12px; } }

.row-item .status { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic.emo { display: inline-grid; place-items: center; width: 18px; height: 18px; font-size: 15px; line-height: 1; }

/* v3.1: neues Luchs-Logo */
.card .auth-logo-full { display: block; width: 150px; height: auto; margin: 0 auto 6px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); }
.info-logo-full { display: block; width: 130px; height: auto; margin: 4px auto 10px; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); }
html[data-theme="hell"] .info-logo-full, html[data-theme="hell"] .card .auth-logo-full { filter: invert(1) brightness(.35) sepia(1) hue-rotate(185deg) saturate(3); }
.logo-center img { padding: 3px; }
