:root {
  --bg1: #06122e;
  --bg2: #0b2a6b;
  --bg3: #1452d6;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.16);
  --text: #eef4ff;
  --muted: #9fb4de;
  --accent: #3d8bff;
  --accent2: #38bdf8;
  --danger: #ff5c7a;
  --ok: #34d399;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0, 10, 40, 0.45);
  --nav-h: 74px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 10% -10%, #2a6bff55, transparent 60%),
              radial-gradient(900px 600px at 110% 110%, #38bdf844, transparent 60%),
              linear-gradient(160deg, var(--bg1), var(--bg2) 55%, var(--bg3));
  background-attachment: fixed;
  min-height: 100vh; min-height: 100dvh;
  overscroll-behavior: none;
}
a { color: var(--accent2); text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.ic { display: inline-flex; width: 20px; height: 20px; flex: 0 0 auto; }
.ic svg { width: 100%; height: 100%; }

/* ---------- Logo ---------- */
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: .2px; background: none; border: 0; padding: 0; }
.brand img { width: 34px; height: 34px; border-radius: 10px; padding: 4px; background: linear-gradient(135deg, var(--accent2), var(--accent)); box-shadow: 0 6px 18px #3d8bff55; }
.logo-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; padding: 5px; background: linear-gradient(135deg, var(--accent2), var(--accent)); box-shadow: 0 6px 18px #3d8bff55; display: grid; place-items: center; }
.logo-btn img { width: 100%; height: 100%; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.card {
  width: 100%; max-width: 400px; padding: 30px 26px; border-radius: 24px;
  background: var(--glass); border: 1px solid var(--border); box-shadow: var(--shadow);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.card .auth-logo { display: block; width: 84px; height: 84px; margin: 0 auto 10px; padding: 12px; border-radius: 24px; background: linear-gradient(135deg, var(--accent2), var(--accent)); box-shadow: 0 10px 30px #3d8bff66; }
.card h1 { text-align: center; margin: 0; font-size: 26px; }
.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: 13px; color: var(--muted); margin: 0 0 6px 4px; }
.input {
  width: 100%; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--border);
  background: rgba(3, 12, 36, .45); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #3d8bff33; }
.input.code { text-transform: uppercase; letter-spacing: 3px; font-weight: 700; text-align: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 18px; border-radius: 14px; border: 0; font-weight: 700; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, var(--accent2), var(--accent)); box-shadow: 0 8px 22px #3d8bff55;
  transition: transform .1s, filter .15s, opacity .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--glass); border: 1px solid var(--border); box-shadow: none; }
.btn.danger { background: linear-gradient(135deg, #ff7a8f, var(--danger)); box-shadow: 0 8px 22px #ff5c7a44; }
.btn.small { padding: 8px 12px; font-size: 13px; border-radius: 11px; }
.alt { text-align: center; margin-top: 20px; font-size: 14px; color: var(--muted); }
.msg { min-height: 20px; font-size: 14px; margin: 4px 4px 12px; }
.msg.err { color: #ffb4c1; }
.invite-hint { display: flex; gap: 10px; align-items: center; padding: 12px 14px; margin-bottom: 18px; border-radius: 14px; background: #3d8bff22; border: 1px solid #3d8bff55; 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; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.topbar {
  flex: 0 0 auto; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; padding-top: max(12px, env(safe-area-inset-top));
}
.topbar.glass { background: linear-gradient(180deg, #06122ef0, #06122eb0); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.topbar .title { font-weight: 800; font-size: 20px; flex: 1; text-align: center; }
.topbar .left, .topbar .right { display: flex; gap: 8px; align-items: center; min-width: 88px; }
.topbar .right { justify-content: flex-end; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 13px; border: 1px solid var(--border); background: var(--glass);
  color: var(--text); display: grid; place-items: center; flex: 0 0 auto; position: relative;
}
.icon-btn .ic { width: 21px; height: 21px; }
.icon-btn:hover { background: var(--glass-strong); }
.icon-btn.round { border-radius: 50%; }
.icon-btn.dark { background: #00000055; border-color: #ffffff30; backdrop-filter: blur(8px); }
.me-btn { padding: 0; border: 0; background: none; border-radius: 50%; }
.me-btn .avatar { width: 40px; height: 40px; font-size: 17px; border: 2px solid #ffffff55; }
.scroll { flex: 1; overflow-y: auto; padding: 12px 12px calc(var(--nav-h) + 24px); -webkit-overflow-scrolling: touch; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin: 10px 8px 10px; }

/* 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: linear-gradient(0deg, #06122ef5, #06122ec0); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border);
  transition: background .2s;
}
.nav.on-camera { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav button { background: none; border: 0; color: #ffffffb0; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; position: relative; min-width: 70px; }
.nav button .ic { width: 26px; height: 26px; }
.nav button.active { color: #fff; }
.nav button.active .ic { color: var(--accent2); }
.nav .nav-badge { position: absolute; top: -4px; right: 14px; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; background: var(--danger); color: #fff; font-size: 11px; display: grid; place-items: center; }
.nav .cam-tab .ic { width: 30px; height: 30px; }

/* Listen */
.row-item {
  display: flex; align-items: center; gap: 13px; padding: 11px 12px; margin-bottom: 7px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--border); width: 100%; text-align: left; transition: background .15s, transform .1s;
}
.row-item:hover { background: var(--glass-strong); }
.row-item:active { transform: scale(.99); }
.avatar {
  position: relative; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 19px; color: #fff; background: linear-gradient(135deg, #5b8cff, #22d3ee); user-select: none;
}
.avatar .dot { position: absolute; right: 0; bottom: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--ok); border: 2px solid #0b2a6b; }
.avatar.ring { box-shadow: 0 0 0 3px #06122e, 0 0 0 5.5px var(--accent2); }
.avatar.ring.seen { box-shadow: 0 0 0 3px #06122e, 0 0 0 5px #ffffff40; }
.avatar.xl { width: 84px; height: 84px; font-size: 34px; }
.avatar.sm { width: 30px; height: 30px; font-size: 13px; }
.row-item .info { flex: 1; min-width: 0; }
.row-item .name { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 3px; flex-wrap: wrap; }
.status.new { color: var(--accent2); font-weight: 700; }
.streak { font-weight: 800; color: #ffd27a; white-space: nowrap; }
.quick-cam { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: #ffffff10; display: grid; place-items: center; flex: 0 0 auto; }
.quick-cam .ic { width: 20px; height: 20px; }
.empty { text-align: center; color: var(--muted); padding: 44px 20px; line-height: 1.6; }
.empty .big { font-size: 42px; margin-bottom: 6px; }

/* 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, #0008, transparent); }
.cam-side { position: absolute; right: 14px; top: calc(max(12px, env(safe-area-inset-top)) + 58px); 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) + 18px); display: flex; align-items: center; justify-content: center; gap: 44px; z-index: 5; }
.shutter { width: 84px; height: 84px; border-radius: 50%; border: 6px solid #fff; background: #ffffff18; box-shadow: 0 6px 30px #0008; transition: transform .1s, background .1s; }
.shutter:active { transform: scale(.92); background: #ffffff40; }
.cam-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 30px; color: #cfe0ff;
  background: radial-gradient(600px 400px at 50% 30%, #1d4ed855, transparent), #020817; }
.cam-placeholder .ic { width: 56px; height: 56px; margin-bottom: 10px; color: var(--accent2); }
.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; }
.stage { position: relative; }
.stage canvas { width: 100%; height: 100%; display: block; border-radius: 0; }
.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); }
.ed-tools .timer-lbl { font-size: 11px; font-weight: 800; position: absolute; bottom: -2px; right: -4px; background: var(--accent); border-radius: 8px; padding: 1px 5px; }
.palette { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.palette button { width: 26px; height: 26px; border-radius: 50%; border: 3px 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: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 30px; border: 0; font-weight: 800; color: #fff; background: #00000070; backdrop-filter: blur(8px); border: 1px solid #ffffff30; }
.pill.primary { background: linear-gradient(135deg, var(--accent2), var(--accent)); border: 0; box-shadow: 0 8px 24px #3d8bff66; }
.pill .ic { width: 18px; height: 18px; }

/* Senden-an */
.send-list { max-height: 50vh; overflow-y: auto; margin: 0 -4px 14px; padding: 0 4px; }
.pick { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; width: 100%; background: none; border: 1px solid transparent; text-align: left; }
.pick:hover { background: var(--glass); }
.pick .name { flex: 1; font-weight: 700; }
.pick .avatar { width: 40px; height: 40px; font-size: 16px; }
.check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #ffffff60; display: grid; place-items: center; }
.check .ic { width: 14px; height: 14px; opacity: 0; }
.pick.on .check { background: var(--accent2); border-color: var(--accent2); }
.pick.on .check .ic { opacity: 1; color: #04224a; }
.story-pick .avatar { background: linear-gradient(135deg, var(--accent2), var(--accent)) !important; }
.selected-line { font-size: 13px; color: var(--muted); margin: -6px 2px 12px; min-height: 18px; }

/* Chat */
.chat-head { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.chat-head .avatar { width: 38px; height: 38px; font-size: 15px; }
.chat-head .n { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-note { text-align: center; font-size: 12px; color: var(--muted); margin: 6px 0 16px; }
.bubble-row { display: flex; margin: 8px 4px; }
.bubble-row.out { justify-content: flex-end; }
.bubble { max-width: 78%; padding: 11px 14px; border-radius: 18px; font-size: 14px; display: flex; align-items: center; gap: 10px; background: var(--glass); border: 1px solid var(--border); }
.bubble-row.out .bubble { background: linear-gradient(135deg, #3d8bffcc, #2563ebcc); border-color: transparent; border-bottom-right-radius: 6px; }
.bubble-row.in .bubble { border-bottom-left-radius: 6px; }
.bubble.clickable { cursor: pointer; border-color: var(--accent2); box-shadow: 0 0 0 2px #38bdf833; }
.bubble .t { font-size: 11px; opacity: .75; display: block; margin-top: 2px; }
.chat-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px max(14px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, #06122ef5, #06122e00); }

/* Stories */
.story-row { display: flex; gap: 16px; overflow-x: auto; padding: 8px 6px 14px; scrollbar-width: none; }
.story-row::-webkit-scrollbar { display: none; }
.story-bubble { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; width: 76px; flex: 0 0 auto; }
.story-bubble .avatar { width: 64px; height: 64px; font-size: 24px; }
.story-bubble span { font-size: 12px; font-weight: 600; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-story-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: var(--glass); margin-bottom: 8px; }
.my-story-item img { width: 46px; height: 62px; 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; }

/* Sheets */
.overlay { position: fixed; inset: 0; z-index: 70; background: rgba(2, 8, 25, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); 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: 26px 26px 0 0; padding: 20px 18px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  background: linear-gradient(170deg, #0e2a66f7, #0a1d4bf7); border: 1px solid var(--border); border-bottom: 0; box-shadow: var(--shadow); animation: up .2s ease;
}
.sheet h3 { margin: 4px 0 16px; font-size: 19px; }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: #ffffff40; margin: -6px auto 14px; }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: 26px; border-bottom: 1px solid var(--border); } }
@keyframes fade { from { opacity: 0 } }
@keyframes up { from { transform: translateY(40px); opacity: 0 } }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px; border-radius: 16px; background: #3d8bff22; border: 1px dashed #3d8bff99; margin-bottom: 12px; }
.code-box .code { font-size: 26px; font-weight: 800; letter-spacing: 4px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > .btn { flex: 1; }
.menu-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.menu-list .btn { justify-content: flex-start; }
hr.sep { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.profile-head { text-align: center; }
.profile-head .avatar { margin: 0 auto 10px; }
.profile-head h2 { margin: 0; font-size: 22px; }
.stats-row { display: flex; justify-content: center; gap: 10px; margin: 14px 0 4px; }
.stats-row div { padding: 8px 14px; border-radius: 12px; background: var(--glass); font-size: 12px; 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: 96px; height: 96px; padding: 14px; border-radius: 26px; background: linear-gradient(135deg, var(--accent2), var(--accent)); box-shadow: 0 10px 30px #3d8bff66; }
.info-sheet h2 { margin: 12px 0 2px; }
.info-sheet .version { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 10px; background: #3d8bff33; font-weight: 700; font-size: 13px; }
.info-list { text-align: left; font-size: 14px; line-height: 1.55; color: #cfe0ff; padding-left: 20px; }
.timer-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.timer-pick button { padding: 12px 0; border-radius: 12px; border: 1px solid var(--border); background: var(--glass); font-weight: 800; }
.timer-pick button.sel { background: linear-gradient(135deg, var(--accent2), var(--accent)); border-color: transparent; }

/* Betrachter */
.viewer { position: fixed; inset: 0; z-index: 60; background: #000; display: flex; align-items: center; justify-content: center; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: pointer; }
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.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: #ffffff40; 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: 10px; font-weight: 700; text-shadow: 0 1px 6px #000; z-index: 2; }
.viewer .meta .avatar { width: 34px; height: 34px; font-size: 14px; }
.viewer .meta .when { font-weight: 500; opacity: .8; font-size: 13px; }
.viewer .meta .sp { flex: 1; }
.viewer .count { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #0b2a6bcc; border: 2px solid var(--accent2); font-weight: 800; }
.viewer .hint { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; font-size: 13px; color: #ffffffaa; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid #ffffff30; border-top-color: var(--accent2); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 40px); transform: translateX(-50%); z-index: 100; padding: 12px 18px; border-radius: 14px; background: #0e2a66f2; border: 1px solid var(--border); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; animation: up .2s ease; max-width: 90vw; }
.toast.err { border-color: #ff5c7a88; }

/* ---------- 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(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { padding: 16px 18px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--border); }
.stat .v { font-size: 26px; font-weight: 800; }
.stat .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.admin-grid { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .admin-grid { grid-template-columns: 1fr; } }
.panel-box { border-radius: 20px; background: var(--glass); border: 1px solid var(--border); padding: 14px; }
.user-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; border: 1px solid transparent; width: 100%; background: none; text-align: left; }
.user-item:hover { background: var(--glass); }
.user-item.active { background: #3d8bff2e; border-color: #3d8bff77; }
.user-item .avatar { width: 40px; height: 40px; font-size: 16px; }
.user-item .n { font-weight: 700; }
.user-item .s { font-size: 12px; color: var(--muted); }
.tag { font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; padding: 3px 7px; border-radius: 7px; margin-left: 6px; vertical-align: 2px; }
.tag.admin { background: #38bdf833; color: var(--accent2); }
.tag.off { background: #ff5c7a33; color: #ffb4c1; }
.tag.story { background: #a78bfa33; color: #c4b5fd; }
.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: 22px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kv div { padding: 10px 12px; border-radius: 12px; background: rgba(3, 12, 36, .35); font-size: 13px; }
.kv b { display: block; font-size: 11px; 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(--glass); border: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.chip.on { background: linear-gradient(135deg, var(--accent2), var(--accent)); border-color: transparent; }
button.chip { cursor: pointer; }
.snap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.snap-card { border-radius: 16px; overflow: hidden; background: rgba(3, 12, 36, .5); border: 1px solid var(--border); }
.snap-card .thumb { aspect-ratio: 3/4; background: #020817; 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: 10px 12px; font-size: 12.5px; line-height: 1.5; }
.snap-card .dir { font-weight: 700; font-size: 13.5px; }
.snap-card .dir.out { color: var(--accent2); }
.snap-card .dir.in { color: #c4b5fd; }
.snap-card .actions { padding: 0 12px 12px; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: #000e; display: grid; place-items: center; cursor: zoom-out; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* v2.0.3: Chat-Verlauf deckt die Liste vollständig ab */
#scrChat { z-index: 35; background: radial-gradient(1200px 700px at 10% -10%, #2a6bff55, transparent 60%), linear-gradient(160deg, var(--bg1), var(--bg2) 55%, var(--bg3)); }
.info-sheet .guide-link { display: inline-flex; margin: 4px 0 10px; }

/* v2.1: Screenshot-Schutz, Melden, Push */
.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 { filter: blur(40px) brightness(.5); }
.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: 800; font-size: 18px; background: #06122ecc; }
.viewer .shield div { font-size: 54px; }
.viewer .shield small { font-weight: 500; font-size: 13px; color: var(--muted); }
.viewer .meta { gap: 8px; }
.viewer #vReport { width: 36px; height: 36px; }
.viewer #vReport .ic { width: 17px; height: 17px; }
.status.warn, .bubble .t.warn { color: #ffb86b; font-weight: 700; }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
textarea.input { resize: vertical; font: inherit; }
.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(--accent2); }
.push-hint { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 10px; border-radius: var(--radius); cursor: pointer;
  background: linear-gradient(135deg, #38bdf833, #3d8bff33); border: 1px solid #38bdf866; }
.push-hint > .ic { width: 26px; height: 26px; color: var(--accent2); }
.push-hint > div { flex: 1; }
.hint-x { background: none; border: 0; font-size: 22px; color: var(--muted); padding: 0 4px; }
.snap-card .warn { color: #ffb86b; font-weight: 700; }
.report-list { display: flex; flex-direction: column; gap: 10px; }
.report { display: flex; gap: 14px; padding: 12px; border-radius: 16px; background: rgba(3, 12, 36, .45); border: 1px solid #ff5c7a55; }
.report.done { border-color: var(--border); opacity: .65; }
.rthumb { width: 84px; height: 112px; flex: 0 0 auto; border-radius: 10px; overflow: hidden; background: #020817; cursor: zoom-in; display: grid; place-items: center; }
.rthumb img { width: 100%; height: 100%; object-fit: cover; }
.empty-thumb { font-size: 30px; color: var(--muted); cursor: default; }
.rbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.reason { font-size: 15px; }

/* v2.2: Text-Chat */
.chat-foot { display: flex; align-items: flex-end; gap: 8px; background: linear-gradient(0deg, #06122ef8, #06122ee0); border-top: 1px solid var(--border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.chat-foot .icon-btn { width: 44px; height: 44px; flex: 0 0 auto; }
.chat-foot .send-btn { background: linear-gradient(135deg, var(--accent2), var(--accent)); border: 0; }
.msg-input { flex: 1; min-height: 44px; max-height: 120px; resize: none; padding: 11px 14px; border-radius: 22px; line-height: 1.35; }
.msg-timer { flex: 0 0 auto; height: 44px; padding: 0 10px; border-radius: 22px; border: 1px solid var(--border); background: var(--glass); font-size: 12px; font-weight: 800; white-space: nowrap; }
#scrChat .scroll { padding-bottom: 100px; }
.bubble.text { flex-direction: column; align-items: flex-start; gap: 3px; 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: #a78bfa22; border-color: #a78bfa55; }
.bubble.text.pinned { box-shadow: 0 0 0 2px #ffd166aa; }
.bubble-row.vanish { opacity: 0; transform: scale(.9); transition: opacity .35s, transform .35s; }
.msg-details { margin: 6px 0 14px; border-radius: 14px; background: rgba(3, 12, 36, .35); border: 1px solid var(--border); padding: 10px 12px; }
.msg-details summary { cursor: pointer; font-weight: 700; }
.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: #0b1f4f; }
.msg-table td { padding: 6px; border-top: 1px solid #ffffff14; 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(--accent2); }
.msg-table tr.in td:nth-child(2) { color: #c4b5fd; }
.pin-bar { display: block; width: 100%; margin: 0 0 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid #ffd16666; background: #ffd1661a; color: #ffe3a3; font-weight: 700; font-size: 13px; text-align: left; }
