/* /opt/m-messenger/public/css/app.css */
/* Space Grotesk (Titel), SIL OFL 1.1 – public/fonts/OFL-SpaceGrotesk.txt */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(/fonts/space-grotesk-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(/fonts/space-grotesk-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  /* Farben (v1.9.2: wieder das ursprüngliche No-Trace-Blau) */
  --brand: #1565c0;
  --brand-ink: #ffffff;
  --brand-tint: #e3edfb;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --ink: #18202b;
  --muted: #5f6b7a;
  --line: #dfe4ea;
  --danger: #c62828;
  --danger-ink: #ffffff;
  --ok: #2e7d32;
  --warn: #b26a00;
  --radius: 14px;
  --tabbar-h: 62px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #5c9ded;
    --brand-ink: #0b1420;
    --brand-tint: #1d3350;
    --bg: #0f141a;
    --surface: #18202a;
    --ink: #e7ecf2;
    --muted: #94a1b2;
    --line: #2a3542;
    --danger: #ef6a6a;
    --danger-ink: #0b1420;
    --ok: #6ccf73;
    --warn: #f0b04a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  font: 16px/1.45 var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.2; font-family: var(--font-display); }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .5rem; }
a { color: var(--brand); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }

.splash { display: grid; place-items: center; height: 100vh; }
.splash img { border-radius: 22px; opacity: .9; }

/* Layout */
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.end { justify-content: flex-end; }

.shell { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; min-width: 0; }
.brand img { flex: none; border-radius: 7px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--font-display); min-width: 0; }
.brand-text small { font: 500 .72rem/1.2 var(--font); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-brand { display: flex; flex-direction: column; align-items: center; margin: -4px 0 6px; line-height: 1.25; }
.auth-brand strong { font: 700 1.35rem var(--font-display); }
.auth-brand span { color: var(--muted); font-size: .8rem; }
.tenant { flex: 1; text-align: right; color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.conn[data-status="online"] { background: var(--ok); }
.conn[data-status="connecting"] { background: var(--warn); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .35; } }

.content {
  flex: 1; width: 100%; max-width: 760px; margin: 0 auto;
  padding: 16px 16px calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 20px);
}
.loading { padding: 40px; text-align: center; color: var(--muted); }

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-around;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--line);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); text-decoration: none; font-size: .72rem;
}
.tabbar a .ico { font-size: 1.3rem; line-height: 1; filter: grayscale(1); opacity: .75; }
.tabbar a.active { color: var(--brand); font-weight: 600; }
.tabbar a.active .ico { filter: none; opacity: 1; }

/* Karten & Listen */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card.hint { border-color: var(--brand); }
.card.error { border-color: var(--danger); color: var(--danger); }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item.link { cursor: pointer; }
.list-item.inactive { opacity: .55; }
.list-item .title { font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chev { color: var(--muted); font-size: 1.4rem; }
.back { text-decoration: none; font-weight: 600; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
  background: color-mix(in srgb, var(--brand) 16%, var(--surface)); color: var(--brand);
}
.badge { font-size: .7rem; font-weight: 600; padding: 2px 7px; border-radius: 99px; background: var(--line); color: var(--ink); }
.badge.ok { background: color-mix(in srgb, var(--ok) 18%, var(--surface)); color: var(--ok); }
.badge.warn { background: color-mix(in srgb, var(--warn) 18%, var(--surface)); color: var(--warn); }

.empty { text-align: center; padding: 48px 16px; }
.empty-ico { font-size: 3rem; margin-bottom: 8px; }

/* Formulare */
.field { display: flex; flex-direction: column; gap: 5px; font-size: .9rem; font-weight: 600; }
.field small { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  width: 100%; padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
input[readonly] { opacity: .8; }
select.small { width: auto; padding: 6px 8px; font-size: .85rem; }
.form-error { color: var(--danger); min-height: 1.2em; margin: 0; font-size: .9rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none;
}
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.btn.small { padding: 6px 10px; font-size: .85rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }

/* Anmeldung */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card {
  width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 22px;
}
.auth-card h1 { text-align: center; }
.auth-logo { align-self: center; border-radius: 16px; }

/* Toast & Dialog */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .2s;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px;
  max-width: calc(100% - 32px); z-index: 100; font-size: .92rem;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.error { background: var(--danger); color: var(--danger-ink); }
#toast.ok { background: var(--ok); color: #fff; }

.modal {
  border: 0; border-radius: 18px; padding: 20px; width: min(440px, calc(100% - 32px));
  background: var(--surface); color: var(--ink);
}
.modal::backdrop { background: rgb(0 0 0 / .45); }
.modal .row.end { margin-top: 16px; }

/* v0.4 */
.brand { text-decoration: none; color: inherit; }
.admin-btn { position: relative; text-decoration: none; font-size: 1.25rem; padding: 2px 6px; border-radius: 8px; }
.admin-btn.active { background: color-mix(in srgb, var(--brand) 15%, var(--surface)); }
.tabbar a .ico { position: relative; }
.badge-dot {
  position: absolute; top: -6px; right: -12px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 99px; background: var(--danger); color: var(--danger-ink); font-size: .68rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; filter: none; line-height: 1;
}
.admin-btn .badge-dot { top: -4px; right: -6px; }
.badge-dot[hidden] { display: none; }
.tabbar a .ico .badge-dot { filter: none; opacity: 1; }
.segmented { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; overflow-x: auto; }
.segmented a { flex: 1; text-align: center; white-space: nowrap; padding: 8px 10px; border-radius: 9px; text-decoration: none; color: var(--muted); font-size: .88rem; font-weight: 600; }
.segmented a.active { background: var(--brand); color: var(--brand-ink); }
.list-item.unseen { background: color-mix(in srgb, var(--brand) 7%, transparent); border-radius: 10px; padding-left: 8px; padding-right: 8px; }
.center-col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.center-col form { width: 100%; text-align: left; }
.avatar.big { width: 64px; height: 64px; font-size: 1.3rem; flex: none; }
.quote { color: var(--muted); font-style: italic; margin: 2px 0; }
.req-actions { margin-top: 6px; }
.link { cursor: pointer; }
textarea { resize: vertical; }
.row.between { justify-content: space-between; }
.install-sheet { margin: auto auto 0; width: 100%; max-width: 520px; border-radius: 20px 20px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.install-sheet h2 { margin: 0; }
.install-sheet .row { gap: 14px; margin-bottom: 12px; }
.install-steps { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 8px; }
.ios-share { display: inline-block; border: 1.5px solid currentColor; border-radius: 4px; padding: 0 4px; font-size: .8rem; color: var(--brand); }
.install-arrow { text-align: center; font-size: 2rem; color: var(--brand); animation: bob 1s infinite alternate; }
@keyframes bob { to { transform: translateY(6px); } }
.btn.big { padding: 14px 18px; font-size: 1.05rem; }
.list-item.wrap-actions { flex-wrap: wrap; }
.list-item.wrap-actions > .row { width: 100%; justify-content: flex-end; }

/* v0.5 Chats */
.card.flush { padding: 4px 12px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strong { font-weight: 700; color: var(--ink); }
.chat-list .list-item { padding: 12px 0; }
.chat-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.unread { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.check-list { display: flex; flex-direction: column; max-height: 45vh; overflow-y: auto; gap: 2px; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 6px 2px; cursor: pointer; }
.check-row input { width: auto; }
.pick-list { max-height: 50vh; overflow-y: auto; }

.content:has(.chat-view) { padding: 0; max-width: 820px; }
.chat-view {
  display: flex; flex-direction: column;
  height: calc(100dvh - 55px - var(--tabbar-h) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-head .back { font-size: 1.8rem; line-height: 1; padding: 0 6px; }
.chat-head .title { font-weight: 700; }
.messages { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 4px; overscroll-behavior: contain; }
.load-older { align-self: center; margin-bottom: 8px; }
.day-sep { text-align: center; margin: 10px 0 4px; }
.day-sep span { font-size: .72rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 2px 10px; border-radius: 99px; }
.msg { max-width: 82%; padding: 7px 10px 5px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); align-self: flex-start; word-wrap: break-word; overflow-wrap: anywhere; }
.msg .text { white-space: pre-wrap; }
.msg.mine { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-color: var(--brand); border-bottom-right-radius: 4px; }
.msg.theirs { border-bottom-left-radius: 4px; }
.msg .sender { font-size: .75rem; font-weight: 700; color: var(--brand); margin-bottom: 1px; }
.msg .meta { font-size: .68rem; opacity: .75; text-align: right; margin-top: 2px; display: flex; gap: 6px; justify-content: flex-end; }
.msg.pending { opacity: .65; }
.msg.failed { outline: 2px solid var(--danger); }
.msg em.muted { color: inherit; opacity: .8; }
.typing { min-height: 1.2em; padding: 0 14px; }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.composer textarea { resize: none; min-height: 42px; max-height: 140px; line-height: 1.35; border-radius: 20px; padding: 10px 14px; }
.composer .send { border-radius: 50%; width: 44px; height: 44px; padding: 0; flex: none; font-size: 1.1rem; }
.e2e-note { text-align: center; padding: 2px 0 6px; background: var(--surface); font-size: .7rem; }

/* v0.6 Medien, Anrufe, Profilbilder */
.no-scroll { overflow: hidden; }
.avatar.img { padding: 0; overflow: hidden; background: var(--line); }
.avatar.img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xl { width: 88px; height: 88px; font-size: 1.8rem; }
.avatar-row { gap: 16px; margin-bottom: 12px; align-items: center; }
.icon-btn { background: none; border: 0; font-size: 1.3rem; padding: 6px; border-radius: 10px; cursor: pointer; color: var(--ink); line-height: 1; }
.icon-btn:hover { background: var(--bg); }
.composer .attach { font-size: 1.6rem; color: var(--brand); padding: 4px 6px 8px; }
.modal .row.end { flex-wrap: wrap; }
.msg .progress { font-weight: 700; }
.msg-media { display: flex; flex-direction: column; gap: 4px; }
.msg-img { max-width: 260px; width: 100%; height: auto; border-radius: 10px; display: block; cursor: zoom-in; background: rgb(0 0 0 / .08); }
.msg-img.loading { opacity: .5; }
.file-card { display: flex; align-items: center; gap: 10px; min-width: 210px; padding: 8px 10px; border-radius: 10px; border: 0; cursor: pointer; font: inherit; text-align: left; background: rgb(0 0 0 / .07); color: inherit; }
.msg.mine .file-card { background: rgb(255 255 255 / .18); }
.file-ico { font-size: 1.6rem; }
.file-name { display: block; font-weight: 600; overflow-wrap: anywhere; }
.file-size { display: block; font-size: .75rem; opacity: .8; }
.loc-card { display: flex; gap: 10px; align-items: flex-start; min-width: 200px; }
.loc-pin { font-size: 1.8rem; line-height: 1; }
.loc-links { gap: 12px; margin-top: 4px; }
.loc-links a { font-size: .85rem; font-weight: 600; color: inherit; }
.muted-inv { opacity: .75; }

.overlay { position: fixed; inset: 0; z-index: 200; background: #000; color: #fff; display: flex; flex-direction: column; }
.overlay-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 12px; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgb(0 0 0 / .6)); }
.viewer img { flex: 1; width: 100%; height: 100%; object-fit: contain; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .18); color: #fff; font-size: 1.3rem; cursor: pointer; }
.camera video { flex: 1; width: 100%; height: 100%; object-fit: cover; }
.mirror { transform: scaleX(-1); }
.camera-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; align-items: center; padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); }
.shutter { width: 74px; height: 74px; border-radius: 50%; border: 5px solid #fff; background: rgb(255 255 255 / .35); cursor: pointer; }
.shutter:active { background: #fff; }

.editor { background: #111; }
.editor-top { display: flex; align-items: center; gap: 6px; padding: calc(10px + env(safe-area-inset-top)) 12px 8px; }
.tool { min-width: 42px; height: 42px; border-radius: 12px; border: 0; background: rgb(255 255 255 / .12); color: #fff; font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.tool.active { background: var(--brand); }
.editor-stage { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 6px; min-height: 0; }
.editor-canvas { max-width: 100%; max-height: 100%; touch-action: none; border-radius: 6px; }
.swatches { display: flex; justify-content: center; gap: 10px; padding: 8px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .5); cursor: pointer; }
.swatch.active { border: 3px solid #fff; transform: scale(1.15); }
.editor-bottom { display: flex; gap: 8px; padding: 8px 12px calc(12px + env(safe-area-inset-bottom)); }
.editor-bottom .caption { flex: 1; background: rgb(255 255 255 / .12); color: #fff; border: 0; border-radius: 22px; }
.editor-bottom .send { border-radius: 50%; width: 46px; height: 46px; padding: 0; flex: none; }

.call { background: #0d1520; align-items: center; justify-content: center; }
.call .remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0d1520; }
.call.audio .remote { opacity: 0; }
.call .call-info { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin-bottom: 120px; }
.call.video.connected .call-info { position: absolute; top: calc(16px + env(safe-area-inset-top)); left: 16px; flex-direction: row; margin: 0; text-shadow: 0 1px 3px #000; }
.call.video.connected .call-info .avatar { display: none; }
.call .avatar.big { width: 110px; height: 110px; font-size: 2.2rem; }
.call-name { font-size: 1.5rem; font-weight: 700; }
.call-status { opacity: .85; }
.call .local { position: absolute; right: 14px; top: calc(14px + env(safe-area-inset-top)); width: 110px; height: 160px; object-fit: cover; border-radius: 12px; background: #000; border: 2px solid rgb(255 255 255 / .3); }
.call.audio .local { display: none; }
.call-controls { position: absolute; bottom: calc(36px + env(safe-area-inset-bottom)); left: 0; right: 0; display: flex; justify-content: center; gap: 22px; }
.call-btn { width: 64px; height: 64px; border-radius: 50%; border: 0; font-size: 1.5rem; cursor: pointer; background: rgb(255 255 255 / .2); color: #fff; }
.call-btn.off { background: rgb(255 255 255 / .55); text-decoration: line-through; }
.call-btn.decline { background: #e53935; }
.call-btn.accept { background: #43a047; animation: pulse-btn 1s infinite alternate; }
@keyframes pulse-btn { to { transform: scale(1.08); } }
.call .local:not(.on) { display: none; }
.file-card.loading { opacity: .6; }

/* ---------- v0.7: Lautsprecher, Sprachnachrichten, Systemmeldungen, Timer ---------- */
.call-btn.on { background: #fff; color: #18202b; }
.icon-btn.active { color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, transparent); border-radius: 50%; }
.voice-msg { display: flex; align-items: center; gap: 8px; min-width: 210px; max-width: 280px; padding: 2px 0; }
.voice-play { width: 36px; height: 36px; border-radius: 50%; border: 0; flex: none; cursor: pointer; font-size: .95rem;
  background: var(--brand); color: var(--brand-ink); }
.voice-play:disabled { opacity: .5; cursor: default; }
.voice-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 30px; cursor: pointer; }
.voice-wave span { flex: 1; min-height: 3px; border-radius: 2px; background: currentColor; opacity: .3; transition: opacity .1s; }
.voice-wave span.on { opacity: .9; }
.voice-time { font-size: .75rem; font-variant-numeric: tabular-nums; opacity: .8; min-width: 32px; text-align: right; }
.rec-bar { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.rec-bar .icon-btn { font-size: 1.3rem; }
.rec-bar .send { border-radius: 50%; width: 44px; height: 44px; padding: 0; flex: none; font-size: 1.1rem; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--danger); animation: rec-blink 1s infinite; flex: none; }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 40px; }
.rec-level { display: block; width: 90px; height: 6px; border-radius: 3px; background: var(--brand); transform-origin: left center; transform: scaleX(.15); transition: transform .08s; }
@keyframes rec-blink { 50% { opacity: .25; } }
.sys-msg { align-self: center; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
  margin: 6px auto; padding: 6px 12px; border-radius: 12px; font-size: .82rem; text-align: center; max-width: 90%;
  background: color-mix(in srgb, var(--line) 60%, transparent); color: var(--muted); }
.sys-msg.missed { color: var(--danger); }
.sys-msg .btn.small { padding: 3px 10px; font-size: .78rem; }
.composer .mic { font-size: 1.15rem; }
/* v0.7.1: Audio ↔ Video – eigene Kamera an, Gegenseite ohne Video */
.call.no-remote-video .remote { opacity: 0; }
.call.video.connected.no-remote-video .call-info { position: relative; top: auto; left: auto; flex-direction: column; margin-bottom: 120px; text-shadow: none; }
.call.video.connected.no-remote-video .call-info .avatar { display: grid; }
.call-controls { flex-wrap: wrap; gap: 16px; padding: 0 12px; }
.call-controls .call-btn { width: 58px; height: 58px; }
/* v0.7.2: Passwort anzeigen, Benutzerverwaltung */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 46px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer;
  font-size: 1.1rem; padding: 6px 8px; border-radius: 8px; opacity: .55; line-height: 1; }
.pw-eye.on { opacity: 1; }
.pw-eye:hover { background: var(--bg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 5px 12px; font-size: .82rem; cursor: pointer; }
.chip.active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.list-item.clickable { cursor: pointer; }
.list-item.clickable:hover { background: color-mix(in srgb, var(--brand) 5%, transparent); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* v0.8.0 – Nachrichten-Aktionen, gelöscht/bearbeitet, Videos */
.msg .meta .edited { font-style: italic; }
.msg.is-deleted { opacity: .8; }
.msg.is-deleted em.deleted { font-size: .9rem; }
@media (pointer: coarse) {
  .msg, .sys-msg { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
}
.msg-action-preview { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 9em; overflow: hidden; }
dialog.modal textarea.edit-text { width: 100%; min-height: 6em; resize: vertical; font: inherit; }
.msg-video { position: relative; display: block; width: 260px; max-width: 100%; aspect-ratio: 16 / 9; max-height: 360px; padding: 0; border: 0;
  border-radius: 10px; overflow: hidden; background: #000; cursor: pointer; color: #fff; }
.msg-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msg-video .video-noprev { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.4rem; opacity: .6; }
.msg-video .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%;
  background: rgb(0 0 0 / .55); display: grid; place-items: center; font-size: 1.4rem; padding-left: 4px; }
.msg-video .dur { position: absolute; right: 6px; bottom: 6px; font-size: .7rem; background: rgb(0 0 0 / .55); padding: 1px 6px; border-radius: 8px; }
.msg-video.loading .play { animation: nt-pulse 1s infinite; }
.msg-video:disabled { cursor: default; }
@keyframes nt-pulse { 50% { opacity: .35; } }
.viewer video { flex: 1; width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #000; }
img.video-confirm { max-width: 100%; max-height: 40vh; border-radius: 10px; display: block; margin: 0 auto; }
.viewer video + .overlay-bar { position: static; background: #000; }

/* v0.8.1 – Kamera: Foto/Video */
.camera-bar { flex-wrap: wrap; row-gap: 14px; }
.cam-modes { flex-basis: 100%; display: flex; justify-content: center; gap: 8px; }
.cam-mode { border: 0; border-radius: 16px; padding: 6px 16px; background: rgb(0 0 0 / .35); color: #fff; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.cam-mode.active { background: #fff; color: #111; }
.camera.is-recording .cam-modes, .camera.is-recording .cam-flip { visibility: hidden; }
.shutter.video { background: #e53935; border-color: #fff; }
.shutter.video.recording { background: rgb(255 255 255 / .2); display: grid; place-items: center; }
.shutter.video.recording::after { content: ''; width: 26px; height: 26px; border-radius: 6px; background: #e53935; }
.rec-badge { animation: rec-blink 1.2s infinite; }
.rec-badge { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); background: #e53935; color: #fff;
  padding: 4px 12px; border-radius: 14px; font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }

/* v0.8.3 – Gruppenbilder, Absender-Profilbild im Gruppenchat */
.avatar.xs { width: 20px; height: 20px; min-width: 20px; font-size: .55rem; flex: none; }
.msg .sender { display: flex; align-items: center; gap: 6px; }
.msg .sender .avatar.xs { margin-left: -2px; }
dialog.modal .center-col { display: flex; justify-content: center; }

/* v0.9.0 – Antworten/Zitate, Reaktionen, Online-Status */
.msg { touch-action: pan-y; transition: transform .15s ease; position: relative; }
.msg.swipe-ready::before { content: '↩'; position: absolute; left: -26px; top: 50%; transform: translateY(-50%); font-size: 1.1rem; opacity: .7; }
.msg.flash { animation: nt-flash 1.2s ease; }
@keyframes nt-flash { 0%, 40% { box-shadow: 0 0 0 3px var(--brand); } 100% { box-shadow: none; } }
.quote { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; margin: 2px 0 4px; padding: 4px 8px;
  border: 0; border-left: 3px solid var(--brand); border-radius: 6px; background: rgb(0 0 0 / .06); color: inherit; font: inherit; cursor: pointer; }
.msg.mine .quote { background: rgb(255 255 255 / .18); border-left-color: rgb(255 255 255 / .85); }
.quote.static { cursor: default; margin: 0; }
.quote-who { font-size: .72rem; font-weight: 700; color: var(--brand); }
.msg.mine .quote-who { color: inherit; }
.quote-text { font-size: .8rem; opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.reply-bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-top: 1px solid var(--line); background: var(--surface); }
.reply-bar[hidden] { display: none; }
.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.reacts:empty { display: none; }
.react-chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 1px 7px; font-size: .85rem; line-height: 1.4; cursor: pointer; }
.react-chip .n { font-size: .72rem; margin-left: 3px; font-weight: 700; }
.react-chip.mine { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 15%, var(--surface)); }
.msg.mine .react-chip { color: #111; background: #fff; }
.msg.mine .react-chip.mine { background: var(--brand-tint); }
.react-pick { display: flex; justify-content: space-between; gap: 4px; }
.react-opt { font-size: 1.6rem; line-height: 1; padding: 6px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.react-opt.active, .react-opt:hover { background: var(--line); }
.av-wrap { position: relative; display: inline-flex; flex: none; }
.pres-dot { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #2e7d32; border: 2px solid var(--surface, #fff); }
.pres-dot[hidden] { display: none; }
.chat-head .is-online { color: #2e7d32; font-weight: 600; }

/* v1.0 – Desktop: Werkzeuge neben der Nachricht (wie WhatsApp Web) */
.sys-msg { position: relative; }
.msg-tools { display: none; position: absolute; top: 50%; transform: translateY(-50%); gap: 2px; padding: 0 6px; z-index: 2; }
.msg.theirs > .msg-tools, .sys-msg > .msg-tools { left: 100%; }
.msg.mine > .msg-tools { right: 100%; flex-direction: row-reverse; }
.msg-tool { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink);
  box-shadow: 0 1px 3px rgb(0 0 0 / .25); font-size: 1rem; line-height: 1; cursor: pointer; padding: 0; }
.msg-tool:hover { filter: brightness(.93); }
@media (hover: hover) and (pointer: fine) {
  .msg:hover > .msg-tools, .sys-msg:hover > .msg-tools, .msg-tools:focus-within { display: flex; }
}
.react-pop { position: fixed; z-index: 300; display: flex; gap: 2px; padding: 4px 6px; border-radius: 24px; background: var(--surface);
  box-shadow: 0 4px 16px rgb(0 0 0 / .25); border: 1px solid var(--line); }
.react-pop .react-opt { font-size: 1.5rem; }
.privacy { max-width: 760px; margin: 0 auto; padding: 16px; }
.privacy-list { padding-left: 18px; margin: 0; display: grid; gap: 6px; }
.history-progress { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h, 60px) + 16px + env(safe-area-inset-bottom));
  z-index: 250; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 4px 16px rgb(0 0 0 / .2); max-width: calc(100vw - 32px); font-size: .85rem; }
.history-progress progress { width: 110px; }
.big-code { font-size: 1.3rem; text-align: center; letter-spacing: .05em; }

/* v1.0 – Gruppenanrufe */
.gcall { justify-content: flex-start; padding: calc(12px + env(safe-area-inset-top)) 10px calc(120px + env(safe-area-inset-bottom)); }
.gc-head { text-align: center; color: #fff; margin-bottom: 10px; }
.gc-head .call-name { font-size: 1.15rem; }
.gc-status { opacity: .8; font-size: .85rem; }
.gc-grid { flex: 1; width: 100%; max-width: 1100px; display: grid; gap: 8px; grid-template-columns: 1fr; grid-auto-rows: 1fr; min-height: 0; }
.gc-grid[data-n="2"] { grid-template-columns: 1fr; }
.gc-grid[data-n="3"], .gc-grid[data-n="4"] { grid-template-columns: 1fr 1fr; }
.gc-grid[data-n="5"], .gc-grid[data-n="6"] { grid-template-columns: 1fr 1fr; }
@media (min-width: 800px) {
  .gc-grid[data-n="2"] { grid-template-columns: 1fr 1fr; }
  .gc-grid[data-n="5"], .gc-grid[data-n="6"] { grid-template-columns: 1fr 1fr 1fr; }
}
.gc-tile { position: relative; background: #1b2633; border-radius: 12px; overflow: hidden; min-height: 0; display: grid; place-items: center; }
.gc-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gc-tile video.mirror { transform: scaleX(-1); }
.gc-tile .gc-avatar { display: none; z-index: 1; }
.gc-tile.no-video video { opacity: 0; }
.gc-tile.no-video .gc-avatar { display: block; }
.gc-tile .gc-avatar .avatar.big { width: 72px; height: 72px; font-size: 1.5rem; }
.gc-tile.connecting { opacity: .6; }
.gc-tile.failed { outline: 2px solid #e53935; }
.gc-name { position: absolute; left: 8px; bottom: 6px; z-index: 2; color: #fff; font-size: .8rem; font-weight: 600; background: rgb(0 0 0 / .45); padding: 2px 8px; border-radius: 10px; }
.gc-incoming { position: fixed; left: 50%; transform: translateX(-50%); top: calc(12px + env(safe-area-inset-top)); z-index: 400; width: min(520px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--surface); color: var(--ink);
  box-shadow: 0 6px 24px rgb(0 0 0 / .3); border: 1px solid var(--line); }
.gc-banner { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: color-mix(in srgb, #43a047 15%, var(--surface)); border-bottom: 1px solid var(--line); font-size: .9rem; }
.gc-banner[hidden] { display: none; }
.gc-tile.gc-self { outline: 2px solid rgb(255 255 255 / .25); }
@media (min-width: 800px) { .gc-grid[data-n="3"] { grid-template-columns: 1fr 1fr 1fr; } }

/* Sprachauswahl auf Anmeldeseiten (v1.1.0) */
.lang-row { gap: .4rem; align-items: center; justify-content: center; margin-top: .25rem; }
.lang-row select { width: auto; padding: .25rem .5rem; font-size: .85rem; }

/* „Was ist No-Trace?“ (v1.3.0) */
.about-hero { text-align: center; display: grid; justify-items: center; gap: 6px; padding: 8px 0 4px; }
.about-hero img { border-radius: 16px; }
.about-hero h2 { margin: 4px 0 0; }
.about-hero p { margin: 0; color: var(--muted); max-width: 520px; }
.about-sec h3 { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.about-ico { font-size: 1.25rem; }
.about-steps { padding-left: 20px; margin: 10px 0; display: grid; gap: 6px; }
.about-flow { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 12px 8px; margin: 4px 0;
  border-radius: 14px; background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.flow-node { flex: 1 1 0; min-width: 0; display: grid; justify-items: center; gap: 2px; text-align: center; font-size: .82rem; }
.flow-node span { font-family: ui-monospace, monospace; font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.flow-ico { font-size: 1.7rem; line-height: 1.2; }
.flow-arrow { flex: none; display: grid; justify-items: center; font-size: .8rem; color: var(--brand); }
.flow-arrow span { font-size: 1.2rem; line-height: 1; }
.about-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.about-grid li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: .9rem; }
.about-grid li span { font-size: 1.2rem; }
.about-teaser { border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line)); background: color-mix(in srgb, var(--brand) 7%, var(--surface));
  border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }
.about-teaser ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.about-teaser li { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; line-height: 1.35; }
.about-teaser li > span:first-child { flex: none; width: 1.3em; text-align: center; }
.about-teaser a { justify-self: start; font-weight: 600; text-decoration: none; }

/* Fingerabdruck / Passkeys / App-Sperre (v1.4.0) */
.btn.link { background: none; border-color: transparent; color: var(--brand); padding: 6px 8px; }
.applock { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 24px 16px; border: 0;
  background: var(--bg); color: var(--ink); display: grid; place-items: center; }
.applock::backdrop { background: var(--bg); }
.applock-card { width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
.applock-card img { align-self: center; border-radius: 16px; }
.applock-ico { font-size: 2rem; margin-top: -8px; }
.applock-card h2 { margin: 0; }
html.app-locked body > :not(dialog.applock) { visibility: hidden; }
.pk-list .title { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lock-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lock-row select { flex: 1; min-width: 160px; }
.pk-login { margin-top: -4px; }

/* Einmal ansehen / Automatisch löschen (v1.5.0) */
.vo-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px dashed currentColor;
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; min-width: 180px; }
.vo-card.mine { cursor: default; opacity: .9; }
.vo-card.loading { opacity: .6; }
.vo-card > span:last-child { display: grid; }
.vo-ico { font-size: 1.4rem; }
.vo-sub { opacity: .8; }
.vo-toggle.active { background: var(--brand); color: var(--brand-ink); border-radius: 50%; }
.vo-media { max-width: 100%; max-height: 65vh; border-radius: 12px; display: block; margin: 0 auto; }
.vo-view { min-width: min(80vw, 420px); }

/* v1.6.0 – Eingabefeld (bearbeitbares Feld, nimmt GIFs/Sticker der Tastatur an) */
.composer .ce-input { flex: 1; min-width: 0; min-height: 42px; max-height: 140px; overflow-y: auto; line-height: 1.35; border-radius: 20px; padding: 10px 14px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; outline: none; cursor: text; }
.composer .ce-input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.composer .ce-input:empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; }
.composer .ce-input img { max-height: 1.4em; }

/* v1.6.0 – eigene Reaktions-Smilies */
.r-ico { display: inline-block; vertical-align: middle; flex: none; }
img.r-ico { pointer-events: none; -webkit-user-drag: none; user-select: none; }
.r-picker { display: flex; flex-direction: column; gap: 6px; }
.r-quick { display: flex; justify-content: space-between; align-items: center; gap: 2px; }
.r-all { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; justify-items: center; padding-top: 6px; border-top: 1px solid var(--line); }
.r-all[hidden] { display: none; }
.react-opt { display: inline-flex; align-items: center; justify-content: center; position: relative; transition: transform .12s ease; }
.react-opt:hover, .react-opt:focus-visible { transform: scale(1.18); }
.react-opt.active { background: color-mix(in srgb, var(--brand) 18%, transparent); }
.r-more { width: 38px; height: 38px; font-size: 1.2rem; color: var(--muted); border: 1px solid var(--line) !important; }
.r-favgrid { border-top: 0; padding-top: 0; }
.r-favgrid .react-opt { width: 48px; height: 48px; }
.r-num { position: absolute; right: 0; top: 0; min-width: 16px; height: 16px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); font-size: .65rem; font-weight: 700; display: grid; place-items: center; }
.react-pick { display: block; }

/* Reaktionen als Pille an der unteren Blasenkante */
.msg.has-reacts { margin-bottom: 14px; }
.msg > .reacts { position: absolute; bottom: -15px; z-index: 1; margin: 0; gap: 3px; flex-wrap: nowrap; }
.msg.theirs > .reacts { left: 8px; }
.msg.mine > .reacts { right: 8px; }
.react-chip { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px; border-radius: 999px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 1px 3px rgb(0 0 0 / .18); line-height: 1; min-height: 24px; }
.react-chip .n { font-size: .72rem; margin-left: 2px; font-weight: 700; }
.react-chip.mine { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); }
.msg.mine .react-chip { color: var(--ink); background: var(--surface); }
.msg.mine .react-chip.mine { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); }

/* Desktop: schmale Leiste an der oberen Ecke statt loser Kreise */
.msg-tools { top: -14px; transform: none; padding: 2px 3px; gap: 0; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 8px rgb(0 0 0 / .14); }
.msg.theirs > .msg-tools, .sys-msg > .msg-tools { left: auto; right: -10px; }
.msg.mine > .msg-tools { right: auto; left: -10px; flex-direction: row; }
.sys-msg > .msg-tools { top: -12px; }
.msg-tool { width: 28px; height: 28px; background: transparent; box-shadow: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.msg-tool:hover { filter: none; background: var(--line); color: var(--ink); }

/* Desktop-Menü direkt an der Nachricht */
.react-pop { border-radius: 16px; padding: 6px; }
.react-pop .react-opt { font-size: 1.5rem; padding: 4px; border-radius: 50%; }
.msg-menu { display: block; width: 286px; }
.msg-menu .r-picker { padding: 2px 2px 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.msg-menu .r-all { border-top: 0; padding-top: 0; }
.menu-list { display: flex; flex-direction: column; }
.menu-item { text-align: left; font: inherit; font-size: .92rem; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; }
.menu-item:hover, .menu-item:focus-visible { background: var(--line); outline: none; }
.menu-item.danger { color: var(--danger); }

/* GIFs / Sticker */
.msg-img.anim { cursor: zoom-in; background: transparent; }
.msg-media.sticker .msg-img { background: transparent; }
/* Sticker/GIF ohne Sprechblase */
.msg.is-sticker { background: transparent !important; border-color: transparent !important; padding: 0; }
.msg.is-sticker .meta { align-self: flex-end; width: max-content; margin-left: auto; padding: 1px 7px; border-radius: 10px; background: rgb(0 0 0 / .45); color: #fff; opacity: 1; }
.msg.is-sticker .sender { padding: 2px 4px; }
/* Hover-Leiste: an der äußeren oberen Ecke, wächst nach außen (auch bei sehr kleinen Blasen) */
.msg.theirs > .msg-tools { left: 100%; right: auto; margin-left: -24px; }
.msg.mine > .msg-tools { right: 100%; left: auto; margin-right: -24px; flex-direction: row; }
.msg-img.anim { max-width: 180px; }
.msg.is-sticker.has-reacts { margin-bottom: 26px; }
.msg.is-sticker > .reacts { bottom: -26px; }

/* v1.7.0 – Chat-Kopf: Status bis zu 2 Zeilen, Name antippen = Profil */
.chat-head .head-main { min-width: 0; }
.chat-head .head-main.link { cursor: pointer; }
.chat-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .chat-head { gap: 6px; padding: 8px 8px; }
  .chat-head .head-info { display: none; }
  .chat-head .icon-btn { padding: 5px; font-size: 1.2rem; }
  .chat-head .back { padding: 0 2px; }
}
/* Hinweis „Neue Version“ (nur wenn gerade nicht automatisch neu geladen werden kann) */
.update-banner { position: fixed; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top) + 8px); z-index: 400;
  font: inherit; font-size: .9rem; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); box-shadow: 0 4px 14px rgb(0 0 0 / .25); max-width: calc(100% - 24px); }

/* v1.8.0 – Sticker */
.composer .st-toggle { color: var(--muted); padding: 6px 4px; display: inline-flex; }
.composer .st-toggle svg { width: 24px; height: 24px; }
.composer .st-toggle.active { color: var(--brand); }
.sticker-panel { border-top: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; max-height: min(46vh, 380px); }
.sp-body { overflow-y: auto; padding: 8px 10px 10px; overscroll-behavior: contain; }
.sp-stickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 4px; justify-items: center; }
.sp-sticker { border: 0; background: transparent; padding: 4px; border-radius: 14px; cursor: pointer; transition: transform .12s ease; }
.sp-sticker:hover, .sp-sticker:focus-visible { transform: scale(1.12); background: var(--bg); }
.msg-media.sticker .sticker-img { width: 120px; height: 120px; display: block; }

/* v1.11.0 – Umzug auf die neue Adresse */
.move-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--brand-tint); color: var(--ink);
  border-bottom: 1px solid var(--line); font-size: .9rem; }
.move-bar small { display: block; color: var(--muted); }
.move-hint { margin: 0; }
/* Chat hat eine feste Höhe – Leiste dort ausblenden (bleibt in Chatliste, Gruppen, Mehr …) */
.shell:has(.chat-view) .move-bar { display: none; }
.keep { display: inline-block; } /* Textblock bleibt zusammen, bricht nur innen um, wenn er allein zu lang ist */
.move-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; }
.move-steps .btn { margin-top: 4px; }
