/* Bifröst Connect – Gestaltung. Hell/dunkel folgt der Systemeinstellung. */
:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --side: #16202e;
  --side-2: #1e2a3b;
  --side-text: #c9d3e0;
  --side-muted: #7d8ba0;
  --text: #1c2430;
  --muted: #6b7686;
  --line: #e3e7ed;
  --hover: #f0f3f7;
  --accent: #2f7fd8;
  --accent-text: #ffffff;
  --mention: #fff4d6;
  --mention-line: #f5b041;
  --danger: #c93636;
  --ok: #3fb950;
  --warn: #e3a008;
  --radius: 8px;
  --bridge: linear-gradient(90deg, #e5484d, #f5b041, #46c37b, #3ba4f6, #8b5cf6);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111821;
    --panel: #161f2b;
    --side: #0c121a;
    --side-2: #18222f;
    --text: #e3e8ef;
    --muted: #8d99aa;
    --line: #263243;
    --hover: #1c2735;
    --mention: #3a3018;
    --accent: #4b97ea;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
input, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.loading { padding: 2rem; color: var(--muted); text-align: center; }
.bridge { height: 4px; border-radius: 2px; background: var(--bridge); }

button.primary {
  background: var(--accent); color: var(--accent-text); border: 0; border-radius: 6px; padding: 8px 16px;
}
button.ghost {
  background: transparent; border: 1px solid var(--line); color: inherit; border-radius: 6px; padding: 4px 10px;
}

/* --- Anmeldung --- */
.login-page { display: flex; flex-direction: column; align-items: center; padding: 16px; gap: 28px; }
.login-top { padding-top: 24px; }
.login-top img { height: 30px; width: auto; display: block; }
.logo-for-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  .logo-for-light { display: none !important; }
  .logo-for-dark { display: block !important; }
}
.login-logo { width: 96px; height: 96px; display: block; margin: 0 auto; }
.login-card h1 { text-align: center; }
.login-card > .muted:first-of-type { text-align: center; }
.login-card {
  width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 28px 28px 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}
.login-card h1 { margin: 8px 0 4px; font-size: 24px; }
.login-card form { display: grid; gap: 14px; margin-top: 18px; }
.login-card label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.login-card input {
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font-weight: 400;
}
.login-card button { padding: 10px; }
.login-card label.remember { display: flex; align-items: center; gap: 8px; font-weight: 400; }
/* Windows-Anmeldung (0.46.0) */
.login-card a.windows-login { display: flex; justify-content: center; margin-top: 16px; padding: 10px; font-weight: 600; }
.flash.error {
  margin-top: 14px; padding: 10px 12px; border-radius: 6px; background: rgba(201, 54, 54, .1);
  color: var(--danger); border: 1px solid rgba(201, 54, 54, .3);
}
.flash.info {   /* Hinweis nach Windows-Anmeldung ohne Ticket (0.51.0) */
  margin-top: 14px; padding: 10px 12px; border-radius: 6px; background: rgba(42, 120, 214, .1);
  border: 1px solid rgba(42, 120, 214, .3); font-size: 14px;
}

/* --- Aufbau --- */
.layout { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }
.sidebar {
  width: 270px; flex: none; display: flex; flex-direction: column; background: var(--side); color: var(--side-text);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 14px 16px 8px; }
.brand img { width: 84px; height: 84px; flex: none; }
.brand strong { color: #fff; font-size: 20px; line-height: 1.15; letter-spacing: .2px; }
.only-mine {
  display: flex; align-items: center; gap: 6px; margin: 8px 8px 0; font-size: 12px; color: var(--side-text); cursor: pointer;
}
.only-mine input { margin: 0; accent-color: var(--accent); }
.sidebar .scroll { flex: 1; overflow-y: auto; padding: 4px 8px 12px; }
.space { margin-top: 14px; }
.space h2 {
  display: flex; align-items: center; justify-content: space-between; margin: 0 8px 4px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--side-muted);
}
/* Bearbeiten-Knöpfe dauerhaft sichtbar (Wunsch 14.10.2026) */
.space h2 .tools { display: flex; gap: 2px; flex: none; }
.space h2 .tools button {
  background: none; border: 0; color: var(--side-muted); padding: 0 5px; font-size: 15px; line-height: 1;
}
.space h2 .tools button:hover { color: #fff; }
.space h2 .toggle {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0;
  color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; text-align: left;
}
.space h2 .toggle:hover { color: var(--side-text); }
.space h2 .space-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.space h2 .chevron { display: inline-flex; transition: transform .15s; }
.space.closed h2 .chevron { transform: rotate(-90deg); }
.space h2 .dot { margin-left: 4px; flex: none; }
/* Direktnachrichten (0.46.0): nur die letzten 5, Rest per Überschrift oder „… weitere“ */
.dm-more {
  display: block; width: 100%; background: none; border: 0; color: var(--side-muted); font-size: 12px;
  padding: 4px 8px 4px 36px; text-align: left;
}
.dm-more:hover { color: #fff; text-decoration: underline; }
.collapse-all { display: flex; gap: 6px; justify-content: flex-end; margin: 6px 8px 0; }
.collapse-all button {
  background: none; border: 0; color: var(--side-muted); font-size: 11px; padding: 2px 4px; text-decoration: underline;
}
.collapse-all button:hover { color: #fff; }
.ico { width: 1em; height: 1em; vertical-align: -0.12em; }
.space h2 .lock .ico { width: 10px; height: 10px; vertical-align: 0; }
.space h2 .tools .ico { width: 13px; height: 13px; }
.room {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px;
  background: none; color: var(--side-text); text-align: left;
}
.room:hover { background: var(--side-2); }
.room.active { background: var(--side-2); color: #fff; }
.room.unread .label { color: #fff; font-weight: 600; }
.room .icon { width: 20px; text-align: center; color: var(--side-muted); flex: none; }
.room .label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge {
  background: var(--danger); color: #fff; border-radius: 9px; font-size: 11px; font-weight: 700;
  padding: 1px 6px; min-width: 18px; text-align: center;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.hint { color: var(--side-muted); font-size: 13px; margin: 4px 8px; }
.hint.center { text-align: center; color: var(--muted); }
.add-space {
  margin: 12px 8px 0; width: calc(100% - 16px); background: none; color: var(--side-muted);
  border: 1px dashed var(--side-muted); border-radius: 6px; padding: 6px;
}
.add-space:hover { color: #fff; border-color: #fff; }
.me {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(0, 0, 0, .25);
}
.me { position: relative; }
.status-button {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px;
  margin: -4px; border-radius: 8px; color: inherit; text-align: left;
}
.status-button:hover { background: rgba(255, 255, 255, .06); }
.status-menu {
  position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; z-index: 15;
  background: var(--side-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .35);
}
.status-menu button {
  width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--side-text);
  padding: 7px 8px; border-radius: 6px; text-align: left;
}
.status-menu button:hover, .status-menu button.active { background: rgba(255, 255, 255, .07); }
.status-menu .presence { position: static; border: 0; width: 16px; height: 16px; flex: none; }
.status-menu span { display: grid; }
.status-menu strong { color: #fff; font-size: 14px; }
.status-menu small { color: var(--side-muted); font-size: 12px; }
.me .who { flex: 1; min-width: 0; display: grid; }
.me .who strong { color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me small { font-size: 12px; }
.me small.ok { color: var(--ok); }
.me small.warn { color: var(--warn); }
.me button.ghost { color: var(--side-text); border-color: var(--side-2); font-size: 13px; }
.notify-ask {
  margin: 0; border: 0; background: var(--side-2); color: var(--side-text); font-size: 12px; padding: 8px 12px;
  text-align: left;
}
.update-ask {
  margin: 0; border: 0; background: var(--accent); color: var(--accent-text); font-size: 12px; font-weight: 600; padding: 8px 12px;
  text-align: left; display: flex; align-items: center; gap: 6px; cursor: pointer;
}
.update-ask:hover { filter: brightness(1.1); }
.update-ask svg { width: 14px; height: 14px; flex: none; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 14px; background: hsl(var(--h, 210), 55%, 45%);
}
.avatar.tiny { width: 20px; height: 20px; font-size: 9px; }
.hue-0 { --h: 0; } .hue-1 { --h: 30; } .hue-2 { --h: 60; } .hue-3 { --h: 90; } .hue-4 { --h: 120; }
.hue-5 { --h: 150; } .hue-6 { --h: 180; } .hue-7 { --h: 210; } .hue-8 { --h: 240; } .hue-9 { --h: 270; }
.hue-10 { --h: 300; } .hue-11 { --h: 330; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--panel); }
/* Kanal-Kopfzeile: links Kanal, in der Mitte das Jürgens-Logo, rechts Knöpfe */
.room-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px;
  padding: 10px 18px; border-bottom: 1px solid var(--line); min-height: 54px;
}
.head-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.head-logo { display: flex; justify-content: center; }
/* Firmenlogo größer, darunter die Regenbogenlinie der Brücke – wie beim Bifröst-Logo (0.10.2) */
.head-logo .logo-wrap { display: inline-grid; gap: 5px; justify-items: stretch; }
.head-logo img { height: 30px; width: auto; display: block; }
.head-logo .bridge { height: 3px; border-radius: 2px; opacity: .9; }
.room-head h1 { margin: 0; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-head .hash { color: var(--muted); margin-right: 4px; }
.room-head .topic {
  color: var(--muted); font-size: 14px; border-left: 1px solid var(--line); padding-left: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.room-head .head-tools { justify-self: end; display: flex; gap: 6px; }
.room-head .head-tools button { font-size: 13px; }
.room-head .menu { display: none; }

/* --- Nachrichten --- */
.messages { flex: 1; overflow-y: auto; padding: 8px 0 12px; }
.older { display: block; margin: 8px auto; }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.empty h3 { color: var(--text); margin-bottom: 4px; }
.day {
  display: flex; align-items: center; gap: 10px; margin: 14px 18px 4px; color: var(--muted); font-size: 12px;
  font-weight: 600;
}
.day::before, .day::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.msg { position: relative; display: flex; gap: 12px; padding: 2px 18px; }
.msg.head { margin-top: 10px; }
.msg:hover { background: var(--hover); }
.msg.mentioned { background: var(--mention); box-shadow: inset 3px 0 var(--mention-line); }
.msg .side {
  width: 36px; flex: none; font-size: 11px; color: var(--muted); text-align: right; padding-top: 3px;
  visibility: hidden;
}
.msg:hover .side { visibility: visible; }
.msg .content { flex: 1; min-width: 0; }
.msg .meta { display: flex; gap: 8px; align-items: baseline; }
.msg .meta time { font-size: 12px; color: var(--muted); }
.msg .body { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .body.deleted { color: var(--muted); font-style: italic; }
.msg .edited { color: var(--muted); font-size: 11px; }
.mention { background: rgba(47, 127, 216, .15); color: var(--accent); border-radius: 4px; padding: 0 2px; font-weight: 600; }
.mention.mention-self { background: rgba(245, 176, 65, .3); color: inherit; }
.msg .actions {
  position: absolute; right: 18px; top: -12px; display: none; gap: 2px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px; box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}
.msg:hover .actions, .msg:focus-within .actions { display: flex; }
.msg .actions button { background: none; border: 0; color: var(--muted); font-size: 12px; padding: 3px 8px; border-radius: 4px; }
.msg .actions button:hover { background: var(--hover); color: var(--text); }
.msg .actions .react-quick { font-size: 16px; padding: 2px 6px; }
.msg .actions .react-more .ico { width: 16px; height: 16px; display: block; }
/* Reaktionen unter der Nachricht */
.reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.reaction {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 12px; font-size: 13px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
}
.reaction span { font-size: 15px; }
.reaction:hover { border-color: var(--muted); }
.reaction.mine { border-color: var(--accent); background: rgba(47, 127, 216, .12); color: var(--accent); font-weight: 600; }
.emoji-palette.for-message { position: fixed; z-index: 30; bottom: auto; right: auto; }
.editor textarea, .composer textarea {
  width: 100%; resize: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px;
  background: var(--bg); max-height: 40vh;
}
.editor small { color: var(--muted); font-size: 12px; }

.composer { position: relative; display: flex; gap: 8px; align-items: flex-end; padding: 10px 18px 16px; }
.composer textarea:focus, .editor textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.composer .counter { position: absolute; right: 160px; bottom: 22px; color: var(--muted); font-size: 12px; }
/* Emoji-Palette */
.composer .emoji-toggle { padding: 7px 9px; color: var(--muted); }
.composer .emoji-toggle:hover, .composer .emoji-toggle[aria-expanded="true"] { color: var(--accent); }
.composer .emoji-toggle .ico { width: 20px; height: 20px; display: block; }
.emoji-palette {
  position: absolute; right: 18px; bottom: 100%; width: 340px; max-width: calc(100vw - 24px); z-index: 12;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 -6px 24px rgba(0, 0, 0, .15);
  display: flex; flex-direction: column; overflow: hidden;
}
.emoji-tabs { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.emoji-tabs button {
  background: none; border: 0; border-radius: 6px; padding: 4px 6px; font-size: 18px; line-height: 1; opacity: .6;
}
.emoji-tabs button.active, .emoji-tabs button:hover { background: var(--hover); opacity: 1; }
.emoji-title { padding: 6px 10px 2px; font-size: 12px; font-weight: 600; color: var(--muted); }
.emoji-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 4px 6px 8px; max-height: 220px; overflow-y: auto;
}
.emoji-grid button {
  background: none; border: 0; border-radius: 6px; font-size: 22px; line-height: 1; padding: 5px 0;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}
.emoji-grid button:hover { background: var(--hover); }
.ico.ico-scroll, .ico.ico-horn { width: 18px; height: 18px; }
.room-head .hash .ico.ico-scroll, .room-head .hash .ico.ico-horn { width: 22px; height: 22px; vertical-align: -4px; }
.mention-list {
  position: absolute; left: 18px; right: 18px; bottom: 100%; margin: 0; padding: 4px; list-style: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .1);
}
.mention-list li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.mention-list li.active, .mention-list li:hover { background: var(--hover); }
.mention-list small { color: var(--muted); }

/* --- Dialog, Hinweise --- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); display: grid; place-items: center; padding: 16px; z-index: 20; }
.dialog {
  width: 100%; max-width: 440px; max-height: 85vh; display: flex; flex-direction: column; gap: 10px;
  background: var(--panel); border-radius: 12px; padding: 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
.dialog h3 { margin: 0; }
.dialog input:not([type]) {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); width: 100%;
}
.people { list-style: none; margin: 0; padding: 0; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; }
.people li label { display: flex; align-items: center; gap: 10px; padding: 7px 10px; cursor: pointer; }
.people li label:hover { background: var(--hover); }
.people .hint { color: var(--muted); padding: 10px; }
.field { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.buttons { display: flex; justify-content: flex-end; gap: 8px; }
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #222c3a; color: #fff;
  padding: 10px 16px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); z-index: 30; max-width: 90vw;
  pointer-events: none;   /* Hinweis darf Knöpfe darunter nicht blockieren (0.14.0) */
}
.backdrop { display: none; }

/* --- Sprachkanäle --- */
.voice-members { list-style: none; margin: 0 0 4px; padding: 0 0 0 30px; }
.voice-members li { display: flex; align-items: center; gap: 6px; padding: 2px 6px; font-size: 13px; color: var(--side-text); border-radius: 6px; }
.voice-members .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.voice-members li.speaking .avatar { box-shadow: 0 0 0 2px var(--ok); }
.voice-members .muted-ico .ico { width: 14px; height: 14px; display: block; }
.avatar.big { width: 72px; height: 72px; font-size: 26px; }
.voice-actions { display: flex; justify-content: center; }
.voice-actions .join { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; font-size: 16px; }
.voice-actions .join .ico { width: 18px; height: 18px; }
.voice-controls { display: flex; gap: 6px; }
.voice-controls button { display: inline-flex; align-items: center; gap: 6px; }
.voice-controls .ico { width: 18px; height: 18px; display: block; }
.voice-controls.big { flex-wrap: wrap; justify-content: center; }
.voice-controls.big button { padding: 9px 14px; font-size: 15px; white-space: nowrap; }
.voice-controls button.off { color: var(--danger); border-color: var(--danger); }
.voice-controls button.leave { background: var(--danger); border-color: var(--danger); color: #fff; }
/* 0.40.0: große Knöpfe im Gespräch (Sprachkanal, Anruf, Besprechung) zu 80 % deckend – sonst je nach Theme bzw.
   Hintergrund kaum zu sehen. Auf der Besprechungsseite in deren dunkler Bühnenfarbe. */
.voice-controls.big button.ghost:not(.leave) { background: color-mix(in srgb, var(--panel) 80%, transparent); }
.voice-controls.big.call-controls button.ghost:not(.leave) { background: color-mix(in srgb, var(--bg) 80%, transparent); }
/* Zwei Zeilen: oben „Verbunden · Kanal“, darunter die Knöpfe über die volle Breite – mit Kamera und
   Bildschirm (0.7.0) passten fünf Knöpfe nicht mehr neben den Text (überlappten ihn, 15.10.2026) */
.voice-bar {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 12px; background: rgba(0, 0, 0, .2);
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.voice-bar .where { width: 100%; }
.voice-bar .voice-controls { width: 100%; }
.voice-bar .voice-controls button { flex: 1 1 0; justify-content: center; min-width: 0; }
.voice-bar .where { flex: none; min-width: 0; display: grid; background: none; border: 0; color: inherit; text-align: left; padding: 0; }
.voice-bar strong { font-size: 13px; }
.voice-bar strong.ok { color: var(--ok); }
.voice-bar strong.warn { color: var(--warn); }
.voice-bar small { color: var(--side-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-bar .voice-controls button { color: var(--side-text); border-color: var(--side-2); padding: 5px 7px; }
.voice-bar .voice-controls button.off { color: #ff8a8a; border-color: #ff8a8a; }
.voice-bar .voice-controls button.leave { color: #fff; }

/* Anrufhinweis oben rechts */
.call-banner {
  position: fixed; top: 16px; right: 16px; z-index: 40; display: flex; align-items: center; gap: 12px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-left: 4px solid var(--ok);
  border-radius: 10px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); max-width: calc(100vw - 32px);
}
.call-banner .ring {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff;
  animation: ring 1.2s ease-in-out infinite; flex: none;
}
.call-banner .ring .ico { width: 18px; height: 18px; }
.call-banner .text { display: grid; }
.call-banner small { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .call-banner .ring { animation: none; } }

/* --- Rechte Leiste: Mitglieder --- */
.people-panel {
  width: 250px; flex: none; display: flex; flex-direction: column; background: var(--bg);
  border-left: 1px solid var(--line); min-height: 0;
}
.people-panel h2 { margin: 0; padding: 17px 16px 12px; font-size: 15px; border-bottom: 1px solid var(--line); }
.people-panel h3 {
  margin: 14px 16px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted);
}
.people-panel .scroll { flex: 1; overflow-y: auto; min-height: 80px; }
.people-panel .offline { max-height: 50%; overflow-y: auto; border-top: 1px solid var(--line); padding-bottom: 8px; }
.people-panel ul { list-style: none; margin: 0; padding: 0 8px; }
.people-panel li { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 6px; }
.people-panel li.off { opacity: .55; }
.people-panel li .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.people-panel li small { color: var(--muted); }
.people-panel .hint { color: var(--muted); margin: 4px 16px; font-size: 13px; }
.people-panel h4 { margin: 10px 16px 4px; font-size: 13px; color: var(--text); }
.avatar.small { width: 30px; height: 30px; font-size: 12px; }
.avatar-wrap { position: relative; flex: none; }
.presence {
  position: absolute; right: -5px; bottom: -5px; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--bg);
}
/* Statusfarben: online grün, abwesend gelb, beschäftigt rot, Pause Terrakotta mit Becher, offline grau */
.presence.online { background: var(--ok); }
.presence.away { background: var(--warn); }
.presence.dnd { background: var(--danger); }
/* 0.40.0: Pause – dampfender Tonbecher auf Terrakotta */
.presence.pause { background: #c2703d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round' stroke-width='1.7'%3E%3Cpath d='M8.6 3.2c-1 1.1.9 1.9 0 3.2M12 2.6c-1 1.2.9 2.1 0 3.6M15.4 3.2c-1 1.1.9 1.9 0 3.2'/%3E%3Cpath d='M17.2 11.3h1.1a2.3 2.3 0 0 1 0 4.6h-1.5'/%3E%3C/g%3E%3Cpath fill='%23fff' d='M5.6 9.4h12v5.4a4.5 4.5 0 0 1-4.5 4.5h-3a4.5 4.5 0 0 1-4.5-4.5z'/%3E%3Cpath fill='%23fff' d='M5 20.2h13.2v1.2H5z' opacity='.85'/%3E%3C/svg%3E") center / 80% no-repeat; }
.presence.offline { background: var(--muted); }
.room .presence { width: 14px; height: 14px; border-width: 2px; border-color: var(--side); right: -5px; bottom: -5px; }
.me .presence { border-color: #0f1620; }
.people-panel .who-line { display: grid; min-width: 0; }
.people-panel .note { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.people-panel .note.phone { color: var(--danger); }
.people-panel .note .ico { width: 12px; height: 12px; }
.people-toggle { display: none; }
/* 0.46.0: rechte Leiste einklappbar (breites Fenster); eingeklappt bleibt nur der Knopf oben rechts */
.people-panel h2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.people-panel h2 .people-collapse { padding: 0 6px; font-size: 18px; line-height: 1; color: var(--muted); }
@media (min-width: 1101px) {
  .layout.people-hidden .people-panel { display: none; }
  .people-toggle.hidden-wide { display: inline-flex; }
}
.room-head .head-tools .ico { width: 16px; height: 16px; }

@media (max-width: 1100px) {
  .people-panel { position: fixed; inset: 0 0 0 auto; z-index: 10; transform: translateX(100%); transition: transform .2s;
    visibility: hidden; }
  .people-panel.open { transform: none; visibility: visible; box-shadow: -8px 0 24px rgba(0, 0, 0, .15); }
  .people-toggle { display: inline-flex; }
  .people-panel h2 .people-collapse { display: none; }
  .people-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 5; }
}

/* --- Schmale Bildschirme: Seitenleiste als Schublade --- */
@media (max-width: 800px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; }
  .backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 5; }
  .room-head { padding: 10px 12px; gap: 8px; }
  .head-logo img { height: 22px; }
  .head-logo .logo-wrap { gap: 3px; }
  .room-head .menu { display: inline-block; }
  .room-head .topic { display: none; }
  .msg { padding: 2px 12px; }
  .composer { padding: 8px 12px 12px; }
}

/* --- Video-Bühne (0.9.0, stage.js): gleich große 16:9-Kacheln, die die Fläche füllen --------------- */
/* overflow: hidden – die Bühne passt sich der Fläche an; eine Bildlaufleiste würde die Fläche ändern
   und die Kachelgröße ins Schwingen bringen (Browser hing, 0.9.0) */
.voice-view { display: flex; flex-direction: column; overflow: hidden; }
.voice-empty { flex: 1; display: grid; place-content: center; }
.voice-actions { flex: none; padding: 10px 16px 16px; }
.stage { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.gallery { flex: 1; min-height: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 12px; overflow: hidden; }
.stage.with-screens .screen-area { flex: 4 1 0; min-height: 0; display: flex; gap: 12px; }
.stage.with-screens .gallery { flex: 1 1 0; min-height: 96px; max-height: 24%; }
.tile {
  --tile-bg: #1e2a3b; position: relative; flex: none; display: grid; place-items: center; overflow: hidden;
  background: var(--tile-bg); border: 2px solid transparent; border-radius: 12px; transition: border-color .15s, box-shadow .15s;
}
.tile.speaking { border-color: var(--ok); box-shadow: 0 0 0 3px rgba(63, 185, 80, .3); }
/* 0.39.1/0.39.2: ohne Kamera durchscheinend – Theme bzw. Hintergrund des Kanals schimmert durch, leicht unscharf,
   damit Name und Bild lesbar bleiben. Kacheln mit Video und geteilte Bildschirme bleiben deckend. */
.tile.person:not(.has-video) {
  background: color-mix(in srgb, var(--tile-bg) 38%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.tile .video-box, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tile video { object-fit: cover; background: #000; }
.tile video.mirror { transform: scaleX(-1); }
.tile.screen { flex: 1 1 0; min-width: 0; background: #000; }
.tile.screen video { object-fit: contain; }
.tile .avatar { width: var(--av, 72px); height: var(--av, 72px); font-size: calc(var(--av, 72px) * .38); }
.tile-label {
  position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 16px);
  padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 600;
}
.tile-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-label .ico { width: 14px; height: 14px; flex: none; }
.tile-muted, .tile-badge, .tile-full {
  position: absolute; top: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff; border: 0; padding: 0;
}
.tile-muted { right: 8px; color: #ff8a8a; }
.tile-muted .ico { width: 15px; height: 15px; }
.tile-badge { left: 8px; font-size: 12px; font-weight: 800; color: #f5b041; }
.tile-full { right: 8px; border-radius: 6px; width: 32px; height: 32px; }
.tile-full .ico { width: 18px; height: 18px; }
.tile-refresh { position: absolute; top: 8px; right: 48px; width: 32px; height: 32px; border-radius: 6px; border: 0;
  padding: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }

/* Hintergrund-Auswahl */
.bg-wrap { position: relative; display: inline-flex; }
.bg-picker {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); z-index: 25; width: min(360px, calc(100vw - 32px));
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3); text-align: left;
}
.bg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.bg-head button { padding: 2px 8px; line-height: 1.2; }
.bg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bg-option {
  position: relative; aspect-ratio: 16 / 9; border-radius: 8px; border: 2px solid var(--line); background: #2c3a4f center / cover;
  color: #fff; display: flex; align-items: flex-end; padding: 0; overflow: hidden; cursor: pointer;
}
.bg-option span {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 3px 6px; background: rgba(0, 0, 0, .6);
  font-size: 11px; font-weight: 600; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bg-option.blur { background: linear-gradient(135deg, #8aa1bd, #48607d); }
/* Unschärfe-Vorschau: unscharfer Raum, scharfe Person davor */
.bg-option.blur::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 25% 35%, #e9d9b8 0 12%, transparent 30%), radial-gradient(circle at 80% 30%, #b9d3ee 0 10%, transparent 28%), linear-gradient(135deg, #8aa1bd, #48607d); filter: blur(3px); }
.bg-option.blur::after { content: ""; position: absolute; left: 36%; right: 36%; top: 26%; bottom: 0; border-radius: 45% 45% 0 0; background: #2b3a4e; }
.bg-option.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.bg-option.upload { background: var(--bg); color: var(--text); border-style: dashed; align-items: center; justify-content: center; }
.bg-option.upload span { position: static; background: none; text-align: center; color: var(--text); }
.bg-hint { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.voice-controls button.on { color: var(--ok); border-color: var(--ok); }
.voice-members .media-ico .ico { width: 14px; height: 14px; display: block; color: var(--side-muted); }
@media (max-width: 700px) {
  .stage { padding: 8px; }
  .stage.with-screens .screen-area { flex-direction: column; }
  .voice-controls.big { flex-wrap: wrap; justify-content: center; }
  .bg-picker { position: fixed; left: 16px; right: 16px; bottom: 90px; transform: none; width: auto; }
}

/* --- Besprechungen (0.8.0) ------------------------------------------------------------------- */
.live-pill { background: var(--ok); color: #fff; border-radius: 9px; font-size: 11px; font-weight: 700; padding: 1px 6px; flex: none; }
.meeting-info { display: flex; justify-content: center; padding: 24px 16px; overflow-y: auto; }
.meeting-card { width: 100%; max-width: 640px; display: grid; gap: 14px; align-content: start; }
.meeting-card .eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.meeting-card h2 { margin: -8px 0 0; font-size: 24px; text-wrap: balance; overflow-wrap: anywhere; }
.meeting-card .when { margin: -8px 0 0; font-weight: 600; }
.meeting-card p { margin: 0; }
.meeting-card .waiting { color: var(--warn); }
.link-row { display: flex; gap: 8px; }
.link-row input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font-family: ui-monospace, monospace; font-size: 13px; font-weight: 400; }
.meeting-actions { display: flex; flex-wrap: wrap; gap: 8px; }
a.button { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border-radius: 6px; padding: 8px 16px; }
a.button.primary { background: var(--accent); color: var(--accent-text); }
a.button .ico { width: 18px; height: 18px; }
button.ghost.danger { color: var(--danger); border-color: var(--danger); }
.meeting-facts { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
.dialog .date-row { display: flex; gap: 12px; flex-wrap: wrap; }
.dialog .date-row .field { flex: 1; min-width: 120px; }
.dialog .date-row input, .dialog .date-row select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font-weight: 400; }
.dialog label.check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.dialog label.check input { margin-top: 3px; accent-color: var(--accent); }
.dialog label.check small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.transcript-info { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.transcript-info h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.transcript-info .ico { width: 18px; height: 18px; }
.transcript-info a.button { justify-self: start; border: 1px solid var(--line); color: var(--text); }
/* Bedienknöpfe im Sprachkanal: bei wenig Platz kompakter, bei sehr wenig nur Symbole */
.voice-actions { container-type: inline-size; }
@container (max-width: 820px) {
  .voice-controls.big button { padding: 8px 10px; font-size: 14px; gap: 5px; }
}
@container (max-width: 640px) {
  .voice-controls.big button .lbl { display: none; }
  .voice-controls.big button { padding: 9px 12px; }
}

/* --- 0.10.0: Chat im Sprachkanal, Einstellungen (Geräte, Töne) --- */
.voice-split { flex: 1; min-height: 0; display: flex; position: relative; }
.voice-split > .voice-view { flex: 1; min-width: 0; }
.voice-chat {
  width: 360px; flex: none; display: flex; flex-direction: column; min-height: 0;
  border-left: 1px solid var(--line); background: var(--panel);
}
.voice-chat > header {
  display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--line);
}
.voice-chat > header strong { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.voice-chat > header .ico { width: 16px; height: 16px; }
.voice-chat .composer { padding: 8px 10px 12px; }
.voice-chat .composer .primary { padding: 8px 12px; }
.room-head .chat-toggle { display: inline-flex; align-items: center; gap: 5px; position: relative; }
.room-head .chat-toggle.on { color: var(--accent); border-color: var(--accent); }
.room-head .chat-toggle .badge { position: static; margin-left: 2px; }
@media (max-width: 1000px) {
  /* Schmal: der Chat liegt über der Bühne, Gespräch läuft weiter */
  .voice-chat { position: absolute; inset: 0; width: auto; border-left: 0; z-index: 4; }
  .room-head .chat-toggle .lbl { display: none; }
}

.settings-button { display: inline-flex; align-items: center; padding: 6px !important; color: var(--side-text) !important;
  border-color: transparent !important; }
.settings-button:hover { background: rgba(255, 255, 255, .08); }
.settings-button .ico { width: 18px; height: 18px; display: block; }
.device-dialog { max-width: 480px; overflow-y: auto; gap: 14px; }
.device-dialog select {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text);
  font: inherit; font-weight: 400; width: 100%; min-width: 0;
}
.device-row { display: grid; gap: 6px; }
.device-row small { font-size: 12.5px; }
.device-test { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.device-test button { font-size: 13px; }
.device-hint { margin: 0; font-size: 13.5px; color: var(--muted); display: grid; gap: 6px; justify-items: start; }
.device-error { color: var(--danger); }
.mic-meter { flex: 1; min-width: 120px; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.cam-preview { width: 100%; max-height: 220px; border-radius: 8px; background: #000; transform: scaleX(-1); object-fit: cover; }
.device-dialog label.check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.device-dialog label.check input { margin-top: 3px; accent-color: var(--accent); }
.device-dialog label.check small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* Anmeldeseite: Heimdall bewacht den Bifröst (0.10.0) */
.login-stage { display: flex; align-items: center; justify-content: center; gap: 40px; width: 100%; max-width: 900px; }
.heimdall { margin: 0; flex: 0 1 400px; min-width: 0; text-align: center; }
.heimdall img { width: 100%; height: auto; display: block; border-radius: 26px; box-shadow: 0 18px 40px rgba(10, 18, 32, .35); }
.heimdall figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); font-style: italic; letter-spacing: .2px; }
.login-stage .login-card { flex: 0 1 380px; }
@media (max-width: 820px) {
  .login-stage { flex-direction: column; gap: 18px; }
  .heimdall { flex: none; width: min(260px, 70vw); }
  .heimdall img { border-radius: 18px; }
}


/* Kanal anlegen: Schriftrolle bzw. Horn mit kleinem Plus (0.10.2) */
.space h2 .tools .add-ch { position: relative; padding: 0 4px; }
.space h2 .tools .add-ch .ico { width: 17px; height: 17px; display: block; }
.space h2 .tools .add-ch .plus {
  position: absolute; right: 0; bottom: -3px; width: 11px; height: 11px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ok); color: #fff; font-size: 10px; line-height: 1; font-weight: 800; box-shadow: 0 0 0 1.5px var(--side);
}

/* --- 0.11.0: Profilbilder, Anrufe aus der Mitgliederliste, automatische Abwesenheit --- */
img.avatar.img { object-fit: cover; background: var(--line); display: block; }
.tile img.avatar.img { border-radius: 50%; }
.profile-row { display: flex; gap: 14px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.profile-row .avatar.big { width: 72px; height: 72px; font-size: 26px; }
.profile-text { display: grid; gap: 4px; min-width: 0; }
.profile-text small { font-size: 12.5px; }
.profile-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.profile-buttons button { font-size: 13px; }
.idle-row { padding-top: 0; }

.people-panel li { position: relative; }
.people-panel .who-line { flex: 1; }
.person-actions { display: flex; gap: 4px; flex: none; opacity: 0; transition: opacity .12s; }
.people-panel li:hover .person-actions, .people-panel li:focus-within .person-actions { opacity: 1; }
@media (hover: none) { .person-actions { opacity: 1; } }
.person-actions button { padding: 4px 6px; display: inline-flex; align-items: center; border-radius: 6px; }
.person-actions .ico { width: 16px; height: 16px; display: block; }
.people-panel li.off .person-actions { opacity: 0; }
.people-panel li.off:hover .person-actions { opacity: 1; }

.room .call-pill { display: inline-flex; padding: 1px 4px; border-radius: 9px; background: rgba(63, 185, 80, .2); }
.room .call-pill .ico { width: 13px; height: 13px; }
.room-head .call-start { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); border-color: var(--ok); }
@media (max-width: 1000px) { .room-head .call-start .lbl { display: none; } }

.call-banner.incoming { gap: 12px; }
.call-banner.incoming .ring { background: #fff3d6; }
.call-banner.incoming button { display: inline-flex; align-items: center; gap: 6px; }
.call-banner.incoming .ico { width: 16px; height: 16px; }
.call-banner.incoming .accept { background: var(--ok); }
.call-banner.incoming .decline { color: var(--danger); border-color: var(--danger); }

.idle-ask { display: flex; align-items: flex-start; gap: 6px; }
.idle-ask .link { flex: 1; background: none; border: 0; color: inherit; text-align: left; font-size: 12px; padding: 0; cursor: pointer; }
.idle-ask .link:hover { color: #fff; text-decoration: underline; }
.idle-ask .later { background: none; border: 0; color: var(--side-muted); font-size: 15px; line-height: 1; padding: 0 2px; cursor: pointer; }

/* Figuren aus der nordischen Mythologie als Profilbild (0.12.0) */
.profile-buttons button.on { color: var(--accent); border-color: var(--accent); }
.preset-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px 6px;
  padding: 4px 0 12px; border-bottom: 1px solid var(--line);
}
.preset { display: grid; justify-items: center; gap: 4px; background: none; border: 0; padding: 4px 2px; border-radius: 10px;
  color: var(--text); font-size: 11.5px; cursor: pointer; }
.preset:hover { background: var(--hover); }
.preset img { width: 56px; height: 56px; border-radius: 50%; display: block; box-shadow: 0 0 0 2px transparent; transition: box-shadow .12s; }
.preset:hover img { box-shadow: 0 0 0 3px var(--accent); }
.preset span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* 0.13.0: Direktnachricht an jemanden, der Bifröst noch nie geöffnet hat */
.never-used { margin: 0 18px 4px; padding: 6px 10px; border-radius: 6px; background: var(--mention); color: var(--text); font-size: 13px; }

/* 0.13.0: Mikrofon – Lautstärke, Empfindlichkeit */
.mic-options { display: grid; gap: 10px; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.mic-options label.slider { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.slider-row { display: flex; align-items: center; gap: 10px; }
.slider-row input[type=range] { flex: 1; accent-color: var(--accent); }
.slider-row b { min-width: 62px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 13px; }
.mic-options label.check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.mic-options label.check input { margin-top: 3px; accent-color: var(--accent); }
.mic-options label.check small, .mic-options label.slider small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; margin-top: 2px; }
.mic-meter { position: relative; }
.mic-meter .level { display: block; height: 100%; border-radius: 4px; background: var(--ok); transition: width .06s linear; }
.mic-meter.gated:not(.open) .level { background: var(--muted); }
.mic-meter .mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); border-radius: 1px; }
.mic-meter { overflow: visible; height: 10px; }

/* 0.14.0: Moderation im Sprachkanal (stummschalten, verschieben, herausnehmen), Doppelklick, Ziehen */
.voice-members li { position: relative; }
.voice-members li.other[draggable=true] { cursor: grab; }
.member-actions { display: flex; gap: 2px; opacity: 0; transition: opacity .12s; flex: none; }
.voice-members li:hover .member-actions, .voice-members li:focus-within .member-actions { opacity: 1; }
@media (hover: none) { .member-actions { opacity: 1; } }
.member-actions button {
  background: none; border: 0; color: var(--side-muted); padding: 1px 3px; border-radius: 4px; font-size: 12px; line-height: 1;
  display: inline-flex; align-items: center; cursor: pointer;
}
.member-actions button:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.member-actions .ico { width: 13px; height: 13px; display: block; }
.room.drop { outline: 2px dashed var(--ok); outline-offset: -2px; background: var(--side-2); }
/* 0.46.0: Person verschieben – gegriffene Zeile markiert, Schild am Mauszeiger, Ziel sagt, wer kommt */
.voice-members li.other[draggable=true]:hover { background: var(--side-2); }
.voice-members li.dragging { background: var(--accent); color: var(--accent-text, #fff); box-shadow: 0 0 0 2px var(--ok); }
.voice-members li.dragging .name { font-weight: 700; }
.drag-person { position: fixed; top: -100px; left: -100px; padding: 6px 12px; border-radius: 16px; background: var(--accent);
  color: var(--accent-text, #fff); font: 600 14px system-ui, sans-serif; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); white-space: nowrap; }
.room.drop[data-drop-hint]::after { content: "⇄ " attr(data-drop-hint); margin-left: auto; font-size: 11px; font-weight: 600;
  color: var(--ok); white-space: nowrap; }
.move-menu {
  position: absolute; left: 10px; right: 0; top: 100%; z-index: 16; margin: 2px 0 0; padding: 6px; list-style: none;
  background: var(--side-2); border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.move-menu .move-title { color: var(--side-muted); font-size: 11.5px; padding: 2px 6px 4px; }
.move-menu button {
  width: 100%; display: flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--side-text);
  padding: 5px 6px; border-radius: 6px; text-align: left; font-size: 13px; cursor: pointer;
}
.move-menu button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.move-menu button small { margin-left: auto; color: var(--side-muted); font-size: 11px; }
.move-menu .ico { width: 14px; height: 14px; }

/* 0.16.0: Soundboard je Abteilung – schwebt frei (der Kachelbereich schneidet Überstehendes ab) */
.board-wrap { position: relative; display: inline-flex; }
.board-panel {
  position: fixed; bottom: 92px; left: calc(50% + 135px); transform: translateX(-50%); width: min(460px, 92vw); z-index: 40;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: 0 12px 34px rgba(0, 0, 0, .25);
  display: grid; gap: 10px; text-align: left;
}
.board-panel .bg-head { margin-bottom: 0; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; max-height: 260px; overflow-y: auto; }
.board-sound { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, var(--hover), var(--panel)); }
.board-sound:hover { border-color: var(--accent); }
.board-play {
  flex: 1; min-width: 0; min-height: 42px; padding: 8px 10px; border: 0; background: none; cursor: pointer; text-align: left;
  color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.board-play:active { transform: scale(.97); }
.board-tools { display: flex; flex-direction: column; border-left: 1px solid var(--line); flex: none; }
.board-tools button { flex: 1; background: none; border: 0; padding: 0 7px; font-size: 13px; line-height: 1; color: var(--muted);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.board-tools button + button { border-top: 1px solid var(--line); }
.board-tools button:hover { color: var(--text); background: var(--hover); }
.board-tools .ico { width: 12px; height: 12px; }
.board-empty { grid-column: 1 / -1; margin: 4px 0; font-size: 13px; }
.board-add { display: grid; gap: 8px; }
.board-add input:not([type=file]) { padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; }
.board-add small { font-size: 12px; }
.board-add-btn { justify-self: start; font-size: 13px; }
@media (max-width: 800px) { .board-panel { left: 50%; } }
@media (max-width: 700px) { .board-panel { left: 16px; right: 16px; bottom: 90px; transform: none; width: auto; } }

/* 0.16.0: Anrufhinweis zeigt, auf welcher Nummer angerufen wird */
.call-banner small.dialed { font-size: 12.5px; }
.call-banner small.dialed b { font-weight: 600; color: var(--text); }

/* 0.17.0: Kanäle ziehen, Rechtsklick-Menü, Anstupsen */
.room.dragging { opacity: .45; }
.room.drop-before { box-shadow: inset 0 2px 0 var(--ok); }
.room.drop-after { box-shadow: inset 0 -2px 0 var(--ok); }
.channel-menu { position: fixed; right: auto; top: 0; left: 0; width: 210px; margin: 0; z-index: 40; }
.move-menu button.danger { color: #ff8a8a; }
.ico-zap { width: 16px; height: 16px; }
.nudge-card {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 10px;
  background: var(--panel); color: var(--text); border: 2px solid #f5b041; border-radius: 12px; padding: 10px 12px 10px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3); max-width: min(560px, calc(100vw - 32px)); animation: nudge-in .25s ease-out;
}
.nudge-card .nudge-zap .ico { width: 26px; height: 26px; display: block; }
.nudge-card .nudge-text { flex: 1; min-width: 0; }
.nudge-card .nudge-msg { display: block; margin-top: 3px; font-size: 15px; overflow-wrap: anywhere; }   /* Text zum Stupser (0.36.0) */
.nudge-dialog h3 { display: flex; align-items: center; gap: 8px; }
.nudge-dialog h3 .ico { width: 20px; height: 20px; }
@keyframes nudge-in { from { transform: translate(-50%, -20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.layout.shake { animation: shake .6s cubic-bezier(.36, .07, .19, .97); }
html:has(.layout.shake), body:has(.layout.shake) { overflow: hidden; }   /* beim Wackeln keine Bildlaufleisten */
@keyframes shake {
  10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); }
}
@media (prefers-reduced-motion: reduce) { .layout.shake { animation: none; } .nudge-card { animation: none; } }

/* 0.18.0: „Ton aus“ an der Kachel, Lautstärke je Person, stummgeschaltete Chats */
.tile-muted { width: auto; min-width: 26px; padding: 0 6px; border-radius: 13px; display: flex; gap: 4px; }
.tile-muted > span { display: grid; place-items: center; }
.tile-muted .deaf { color: #f5b041; }
.tile-volume {
  position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 6px; padding: 3px 8px;
  border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer;
  opacity: 0; transition: opacity .15s;
}
.tile:hover .tile-volume, .tile-volume:focus-within, .tile-volume.lowered { opacity: 1; }
.tile-volume input { display: none; width: 90px; accent-color: #46c37b; margin: 0; }
.tile:hover .tile-volume input, .tile-volume:focus-within input { display: block; }
.tile-volume .ico { width: 14px; height: 14px; flex: none; }
.tile-volume .pct { min-width: 34px; text-align: right; }
.tile-volume:not(.lowered) .pct { display: none; }
.tile:hover .tile-volume .pct, .tile-volume:focus-within .pct { display: inline; }
@media (hover: none) { .tile-volume { opacity: 1; } .tile-volume input { display: block; } }
.room.muted-room .label { opacity: .5; }
.room .mute-ico { display: inline-flex; margin-left: auto; color: var(--side-muted); }
.room .mute-ico .ico { width: 13px; height: 13px; }
.voice-members .deaf-ico { color: #f5b041; display: inline-flex; }
.voice-members .deaf-ico .ico { width: 14px; height: 14px; display: block; }

/* 0.19.0: Hintergrund-Auswahl mit Foto-Gruppen */
.bg-picker { width: min(460px, calc(100vw - 32px)); }
.bg-scroll { max-height: min(56vh, 470px); overflow-y: auto; margin-right: -6px; padding-right: 6px; }
.bg-group { margin: 12px 0 6px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.bg-group:first-child { margin-top: 0; }

/* 0.19.0: Hinweise im Chat */
.msg-notice {
  display: flex; align-items: center; gap: 8px; margin: 6px 16px; padding: 4px 10px; color: var(--muted); font-size: 13px;
  border-left: 3px solid var(--line);
}
.msg-notice strong { color: var(--text); font-weight: 600; }
.msg-notice time { font-size: 11.5px; margin-left: 4px; }
.msg-notice .notice-ico { display: inline-flex; color: #e5484d; }
.msg-notice .notice-ico .ico { width: 15px; height: 15px; }

/* 0.19.0: „Was ist neu?“ */
/* Wünsch dir was (0.46.0) */
.wish-btn .ico { color: #8b5cf6; }
.wish-dialog { width: min(520px, calc(100vw - 32px)); }
.wish-dialog h3 { display: flex; align-items: center; gap: 8px; }
.wish-dialog h3 .ico { width: 20px; height: 20px; color: #8b5cf6; }
.wish-dialog textarea { width: 100%; resize: vertical; font: inherit; }
.whats-new-btn { position: relative; }
.whats-new-btn .ico { color: #f5b041; }
.whats-new-btn .dot { position: absolute; top: 3px; right: 3px; background: #e5484d; box-shadow: 0 0 0 2px var(--panel); }
.dialog.whats-new { width: min(560px, calc(100vw - 32px)); max-width: 560px; max-height: min(80vh, 720px); display: flex; flex-direction: column; }
.dialog.whats-new h3 { display: flex; align-items: center; gap: 8px; }
.dialog.whats-new h3 .ico { width: 22px; height: 22px; color: #f5b041; }
.wn-list { overflow-y: auto; margin-right: -8px; padding-right: 8px; }
.wn-list section { padding: 10px 0; border-bottom: 1px solid var(--line); }
.wn-list section:last-child { border-bottom: 0; }
.wn-list h4 { margin: 0 0 6px; font-size: 14.5px; display: flex; align-items: baseline; gap: 8px; }
.wn-list h4 small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.wn-list ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; line-height: 1.45; }
.wn-list section:not(.latest) ul { color: var(--muted); }
.wn-badge { margin-left: auto; font-size: 11px; font-weight: 700; color: #fff; background: var(--ok); border-radius: 10px; padding: 1px 8px; }

/* 0.20.0: andere über die Kachel stummschalten */
.tile-mute {
  position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0, 0, 0, .6); color: #fff; border: 0; padding: 0; cursor: pointer; opacity: 0; transition: opacity .15s;
}
.tile:hover .tile-mute, .tile-mute:focus-visible { opacity: 1; }
.tile-mute:hover { background: #c93636; }
.tile-mute .ico { width: 16px; height: 16px; }
@media (hover: none) { .tile-mute { opacity: 1; } }

/* 0.21.0: Spitzname, Bilder im Chat, Einstellungen (Spitzname, Ansager, Tastenkürzel) */
.nick { color: var(--muted); font-weight: 400; }
.sidebar .nick, .voice-members .nick { color: var(--side-muted); }
.composer .attach { padding: 7px 9px; color: var(--muted); }
.composer .attach:hover { color: var(--accent); }
.composer .attach .ico { width: 20px; height: 20px; display: block; }
.pic-tray {
  position: absolute; left: 18px; right: 18px; bottom: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 -6px 18px rgba(0, 0, 0, .08);
}
.pic-tray .pic { position: relative; }
.pic-tray img { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; display: block; }
.pic-tray .pic button {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0;
  background: #222c3a; color: #fff; cursor: pointer; line-height: 1;
}
.pic-progress { color: var(--muted); }
.msg-image { display: block; padding: 0; margin: 4px 0 2px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: var(--hover); cursor: zoom-in; max-width: 100%; }
.msg-image img { display: block; max-width: 100%; height: auto; }
.overlay.lightbox { background: rgba(0, 0, 0, .82); z-index: 50; }
.lightbox figure { margin: 0; max-width: 96vw; max-height: 92vh; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.lightbox img { max-width: 96vw; max-height: calc(92vh - 48px); object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lightbox figcaption { color: #e8edf3; font-size: 13.5px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
.lightbox figcaption a { color: #9fc7ff; }
.lightbox figcaption .ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.settings-block { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font-weight: 400; }
.announcer-list { display: grid; gap: 4px; max-height: 240px; overflow-y: auto; }
.announcer { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.announcer.on { border-color: var(--accent); background: var(--hover); }
.announcer span { flex: 1; display: grid; }
.announcer small { color: var(--muted); font-size: 12px; }
.announcer input { accent-color: var(--accent); }
.hotkeys { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; }
kbd { display: inline-block; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px;
  font: 12px/1.6 ui-monospace, monospace; background: var(--bg); margin-right: 6px; }
/* 0.43.0: frei wählbare Tasten – Knopf zeigt die Taste, Klick nimmt eine neue auf */
.hotkeys li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hotkeys li .warn-text { flex-basis: 100%; font-size: 12px; }
.hotkey-key { min-width: 150px; justify-content: flex-start; }
.hotkey-key kbd { margin-right: 0; }
.hotkey-key.on { outline: 2px solid var(--accent); }
.hotkey-block small { display: block; margin-top: 4px; }
.hotkey-block button.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; }
.warn-text { color: #b26a00; }
/* 0.38.0: Push-to-Talk */
.ptt-block > label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.ptt-key-row { display: flex; align-items: center; gap: 6px; margin: 6px 0 2px; font-size: 14px; }
.ptt-key.on { outline: 2px solid var(--accent); }
.ptt-block small { display: block; }
.ptt-hint { font-size: 12px; margin: 6px 0 0; }
.voice-controls button.ptt-talking { box-shadow: inset 0 0 0 2px #3ba55d; }

/* 0.22.0: Statuspunkt auch an den Personen im Sprachkanal, Stift zum Umbenennen im Soundboard */
.voice-members .presence { width: 13px; height: 13px; border-width: 2px; border-color: var(--side); right: -5px; bottom: -5px; }
.board-tools .ico { width: 13px; height: 13px; display: block; }
.phone-mute-row label.check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }

/* 0.23.0: Statuspunkte doppelt so groß (oben), laufender Soundboard-Sound, Reiter im Einstellungsdialog, Outlook */
.board-sound.playing, .board-sound:has(.board-play.playing) { border-color: var(--accent); }
.board-play.playing { color: var(--accent); }
.board-play .stop-mark { margin-right: 6px; font-size: 11px; }
.settings-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: -4px; }
.settings-tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; margin-bottom: -1px; cursor: pointer;
  color: var(--muted); font: inherit; font-weight: 600; font-size: 14px;
}
.settings-tabs button:hover { color: var(--text); }
.settings-tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.outlook-row { display: grid; gap: 6px; }
.desktop-row { display: grid; gap: 6px; justify-items: start; }
/* Anmeldung von außen (0.59.0) */
.mfa-row { display: grid; gap: 6px; justify-items: start; }
.mfa-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mfa-setup { display: grid; gap: 8px; justify-items: start; }
.mfa-setup ol { margin: 0; padding-left: 18px; }
.mfa-qr { background: #fff; padding: 6px; border-radius: 8px; }
.mfa-codes { display: grid; gap: 6px; }
.mfa-codes ul { display: grid; grid-template-columns: repeat(2, max-content); gap: 4px 18px; margin: 0; padding-left: 18px; }
.codesign-row { display: grid; gap: 2px; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.codesign-row a { display: inline-flex; align-items: center; gap: 6px; }
.codesign-row .ico { width: 16px; height: 16px; }
.outlook-steps { margin: 0; padding-left: 20px; font-size: 13.5px; display: grid; gap: 3px; }
.outlook-conn { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ok); }

/* 0.24.0: Störungstafel „Aktuelle Störungen“ – Klassen wie in der Störungsanzeige des Portals */
.incident-board { flex: 1; overflow-y: auto; padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.incident-board, .incident-dialog { --sev-aus: #dc2626; --sev-teil: #d97706; --sev-wartung: #2563eb; --sev-hinweis: #64748b; }
.inc-summary { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.inc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.inc-chip { padding: 4px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: #fff; background: var(--c); }
.inc-chip.sev-aus { --c: var(--sev-aus); } .inc-chip.sev-teil { --c: var(--sev-teil); }
.inc-chip.sev-wartung { --c: var(--sev-wartung); } .inc-chip.sev-hinweis { --c: var(--sev-hinweis); }
.inc-chip.all-ok { --c: #16a34a; }
.inc-source { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.inc-list { display: grid; gap: 10px; }
.incident { --c: var(--sev-hinweis); position: relative; border: 1px solid var(--line); border-left: 6px solid var(--c);
  border-radius: 10px; background: var(--panel); padding: 10px 14px 10px 14px;
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--c) 9%, transparent), transparent 55%); }
.incident.sev-aus { --c: var(--sev-aus); } .incident.sev-teil { --c: var(--sev-teil); }
.incident.sev-wartung { --c: var(--sev-wartung); } .incident.sev-hinweis { --c: var(--sev-hinweis); }
.inc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--muted); }
.sev-label { color: var(--c); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.inc-tag { border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; font-size: 11.5px; }
.inc-since { margin-left: auto; font-variant-numeric: tabular-nums; }
.incident h3 { margin: 4px 0 2px; font-size: 17px; }
.inc-meta { font-size: 13.5px; color: var(--muted); }
.inc-field { margin-top: 6px; font-size: 14px; }
.inc-field b { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.inc-field p { margin: 1px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.incident footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12.5px; }
.inc-actions { display: flex; gap: 6px; }
.inc-actions .ok-btn { color: #16a34a; }
.inc-empty { text-align: center; padding: 2.5rem 1rem; border: 1px dashed var(--line); border-radius: 12px; }
.inc-empty .big { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #16a34a;
  color: #fff; font-size: 30px; font-weight: 800; }
.inc-empty h3 { margin: 10px 0 4px; }
.inc-badge { background: #dc2626; }
.incident-dialog { max-width: 560px; overflow-y: auto; }
.incident-dialog input, .incident-dialog textarea { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg); color: var(--text); font: inherit; font-weight: 400; width: 100%; resize: vertical; }
.inc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sev-pick { display: flex; flex-wrap: wrap; gap: 6px; font-weight: 600; }
.sev-opt { --c: var(--sev-hinweis); display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px;
  border: 2px solid var(--c); color: var(--c); cursor: pointer; font-size: 13.5px; }
.sev-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sev-opt.on { background: var(--c); color: #fff; }
.sev-opt.sev-aus { --c: var(--sev-aus); } .sev-opt.sev-teil { --c: var(--sev-teil); }
.sev-opt.sev-wartung { --c: var(--sev-wartung); } .sev-opt.sev-hinweis { --c: var(--sev-hinweis); }
@media (max-width: 640px) {
  .incident-board { padding: 10px; }
  .inc-summary { grid-template-columns: 1fr; }
  .inc-two { grid-template-columns: 1fr; }
}

/* --- Dateien (0.25.0): Netzlaufwerke wie im Explorer --- */
.files-link { margin-bottom: 6px; }
.files { flex: 1; min-height: 0; display: flex; overflow: hidden; }
/* 0.27.0: wie im Explorer – Navigation links (Favoriten, Laufwerke), Inhalt rechts */
.files-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px 20px 10px; }
/* 0.27.1: Breite richtet sich nach den Namen (ganz lesbar), sehr lange Namen brechen um statt abgeschnitten zu werden */
.files-nav { flex: 0 0 auto; width: max-content; min-width: 200px; max-width: 380px; overflow-y: auto; padding: 12px 8px;
  border-right: 1px solid var(--line); background: var(--panel); }
.files-nav h3 { margin: 10px 8px 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.files-nav h3:first-child { margin-top: 0; }
.nav-item { display: flex; align-items: center; border-radius: 6px; }
.nav-item:hover { background: var(--hover); }
.nav-item.active { background: var(--hover); box-shadow: inset 3px 0 0 var(--accent); }
.nav-go { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 0; background: none;
  color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.nav-go span { white-space: normal; overflow-wrap: anywhere; }
.nav-go b { font-weight: 600; }
.nav-del { border: 0; background: none; color: var(--muted); padding: 4px 8px; border-radius: 4px; visibility: hidden; cursor: pointer; }
.nav-item:hover .nav-del, .nav-del:focus { visibility: visible; }
.nav-del:hover { color: var(--danger); }
.nav-hint { margin: 2px 8px 6px; font-size: 12px; color: var(--muted); }
.files-tools .icon-btn { padding: 4px 8px; font-size: 16px; line-height: 1; }
.fav-toggle.on, .row-actions .star.on { color: #d9a845; }
.row-actions { display: inline-flex; align-items: center; gap: 2px; }
.row-actions .star { border: 0; background: none; font-size: 15px; cursor: pointer; color: var(--muted); }
.files.dragging { outline: 3px dashed var(--accent); outline-offset: -8px; }
.drive-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.drive-bar .drive { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--panel); color: var(--text); }
.drive-bar .drive:hover { background: var(--hover); }
.drive-bar .drive.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.drive-bar .drive span { color: var(--muted); }
.drive-bar .drive.active span { color: var(--text); }
.files-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.files-tools button { display: inline-flex; align-items: center; gap: 6px; }
.crumbs { flex: 1 1 260px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-width: 0; }
.crumbs button { border: 0; background: none; color: var(--accent); padding: 2px 4px; border-radius: 4px; max-width: 22ch;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs button:hover { background: var(--hover); }
.crumbs .sep { color: var(--muted); }
.files-filter { flex: 0 1 220px; min-width: 140px; }
.files-progress { margin: 0; color: var(--muted); }
.files-error { margin: 0; color: var(--danger); }
.files-list { flex: 1; min-height: 0; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.files-list table { width: 100%; border-collapse: collapse; }
.files-list th { position: sticky; top: 0; background: var(--panel); text-align: left; font-weight: 600; font-size: 13px;
  color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); }
.files-list td { padding: 0 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.files-list tr:hover td { background: var(--hover); }
.files-list .when, .files-list .size { white-space: nowrap; color: var(--muted); width: 1%; }
.files-list .size { text-align: right; }
.files-list .entry { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 0; border: 0; background: none;
  color: var(--text); text-align: left; text-decoration: none; font: inherit; cursor: pointer; }
.files-list .entry span { overflow-wrap: anywhere; }
/* Dateitypen (0.34.0): etwas größer, damit Kürzel (W/X/P/PDF) lesbar sind */
.files-list .entry .ico, .files-nav .nav-go .ico { width: 20px; height: 20px; flex: none; }
.files-list .hint { padding: 12px; }
.files-foot { margin: 0; font-size: 12px; color: var(--muted); }
@media (max-width: 800px) {
  .files { flex-direction: column; }
  .files-nav { flex: 0 0 auto; width: auto; max-width: none; max-height: 34vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .files-main { padding: 10px; }
  .files-list .when { display: none; }
}

/* --- Gemeinsam bearbeiten (0.26.0): Euro-Office im Hauptbereich --- */
.files-list .act { width: 1%; padding-right: 6px; }
.files-list .icon-btn { display: inline-flex; padding: 4px; border-radius: 6px; color: var(--muted); }
.files-list .icon-btn:hover { background: var(--line); color: var(--text); }
.new-doc { position: relative; }
.new-doc-menu { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; display: flex; flex-direction: column;
  min-width: 220px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15); }
.new-doc-menu button { border: 0; background: none; color: var(--text); text-align: left; padding: 8px 10px; border-radius: 6px; }
.new-doc-menu button:hover { background: var(--hover); }
.office { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.office-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.office-name { font-size: 15px; }
.office-hint { color: var(--muted); font-size: 12px; flex: 1 1 300px; }
.office-ro { color: #9a6700; background: #fff4d6; border-radius: 6px; padding: 3px 8px; font-size: 13px; }
.office-host { flex: 1; min-height: 0; }
.office-host > iframe, .office-host > div { width: 100%; height: 100%; border: 0; display: block; }
.office-error { padding: 16px; }
/* 0.27.2: Mitgliederleiste im Editor ausblendbar (nur breite Fenster – schmal ist sie ohnehin eingeklappt) */
.office-bar .people-hide { display: none; align-items: center; gap: 6px; }
.office-bar .people-hide .ico { width: 16px; height: 16px; }
@media (min-width: 1101px) {
  .office-bar .people-hide { display: inline-flex; }
  body.office-people-hidden .people-panel { display: none; }
}

/* --- 0.28.0: mehrere Dateien als Reiter, Dateien im Chat --- */
.workspace { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.workspace[hidden], .ws-pane[hidden] { display: none !important; }
.ws-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ws-tabs { display: flex; gap: 2px; padding: 6px 10px 0; border-bottom: 1px solid var(--line); background: var(--bg);
  overflow-x: auto; overflow-y: hidden; flex: none; scrollbar-width: thin; }
.ws-tab { display: inline-flex; align-items: center; max-width: 240px; flex: none; border: 1px solid transparent;
  border-bottom: 0; border-radius: 8px 8px 0 0; color: var(--muted); }
.ws-tab > button { display: inline-flex; align-items: center; gap: 6px; min-width: 0; border: 0; background: none; color: inherit;
  padding: 7px 4px 7px 10px; cursor: pointer; font: inherit; font-size: 13px; }
.ws-tab > button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-tab .ico { width: 17px; height: 17px; flex: none; }
.ws-tab.files-tab { padding-right: 8px; border-radius: 8px 8px 0 0; }
.ws-tab:hover { background: var(--hover); color: var(--text); }
.ws-tab.active { background: var(--panel); border-color: var(--line); color: var(--text); font-weight: 600; }
.ws-tab.asleep > button span { font-style: italic; opacity: .75; }
.ws-tab .ws-close { padding: 2px 8px 2px 4px; font-size: 16px; line-height: 1; color: var(--muted); }
.ws-tab .ws-close:hover { color: var(--danger); }
.office-actions { margin-left: auto; display: inline-flex; flex-wrap: wrap; gap: 6px; }
.office-actions .ghost { display: inline-flex; align-items: center; gap: 6px; }
.office-actions .ico { width: 16px; height: 16px; }
.files-link .files-count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent);
  color: var(--accent-text); font-size: 12px; line-height: 20px; text-align: center; }

.msg-file { display: flex; align-items: center; gap: 10px; margin: 4px 0 2px; padding: 8px 10px; max-width: 520px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.msg-file-ico { color: var(--accent); flex: none; }
.msg-file-ico .ico { width: 26px; height: 26px; display: block; }
.msg-file-text { display: grid; min-width: 0; flex: 1; }
.msg-file-name { font-weight: 600; color: var(--text); text-align: left; background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.msg-file-name:hover { text-decoration: underline; color: var(--accent); }
.msg-file-text small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.msg-file-actions { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.msg-file-actions .icon-btn { display: inline-flex; padding: 5px; border-radius: 6px; color: var(--muted); }
.msg-file-actions .ico { width: 16px; height: 16px; }
.pic-tray .doc-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 260px; padding: 6px 8px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font-size: 13px; }
.pic-tray .doc-chip .ico { width: 18px; height: 18px; flex: none; color: var(--accent); }
.pic-tray .doc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pic-tray .doc-chip small { color: var(--muted); flex: none; }
.pic-tray .doc-chip button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; padding: 0 2px; }

.share-file h3 { display: flex; align-items: center; gap: 8px; }
.share-file h3 .ico { width: 18px; height: 18px; }
.share-file .hint { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.share-rooms { list-style: none; margin: 8px 0; padding: 0; max-height: 280px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.share-rooms label { display: flex; align-items: center; gap: 10px; padding: 7px 10px; cursor: pointer; }
.share-rooms label:hover { background: var(--hover); }
.share-rooms .share-ico .ico { width: 16px; height: 16px; display: block; color: var(--muted); }
.share-rooms .hint { padding: 8px 10px; }

/* 0.39.2: volle Namen in den Listen (Sprachkanal in der Seitenleiste, Mitgliederliste). Die Knöpfe (stummschalten,
   verschieben, Nachricht, anrufen, anstupsen …) belegen keinen Platz mehr; erst beim Darüberfahren (oder mit der
   Tastatur) legen sie sich rechts über das Zeilenende – die Zeile springt dabei nicht. Lange Namen brechen um statt
   „…“. Nur auf Touch-Geräten (grober Zeiger, kein Darüberfahren) bleibt es wie bisher: Knöpfe immer sichtbar.
   (Bewusst „nicht coarse“ statt „hover: hover“ – Headless-Chromium im Browser-Test meldet weder Maus noch Touch.) */
@media not (pointer: coarse) {
  .voice-members .name, .people-panel li .name { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
  .member-actions, .person-actions {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%); z-index: 1;
    display: none; opacity: 1; padding: 2px; border-radius: 8px;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  }
  .member-actions { background: color-mix(in srgb, var(--side-2) 92%, transparent); }
  .person-actions { background: color-mix(in srgb, var(--panel) 92%, transparent); box-shadow: 0 0 0 1px var(--line); }
  .voice-members li:hover .member-actions, .voice-members li:focus-within .member-actions,
  .people-panel li:hover .person-actions, .people-panel li:focus-within .person-actions { display: flex; }
  .people-panel li.off .person-actions, .people-panel li.off:hover .person-actions { opacity: 1; }
}
/* 0.43.0: eigener Beitrittston */
.join-sound-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 14px; }
.join-sound-row label.button { display: inline-flex; align-items: center; cursor: pointer; background: transparent;
  border: 1px solid var(--line); color: inherit; border-radius: 6px; padding: 4px 10px; font-size: 13.5px; }
.join-sound-row label.button.disabled { opacity: .6; cursor: default; }
.join-sound-block small { display: block; }

/* 0.45.0: Antworten auf Nachrichten */
.msg-quote {
  display: flex; align-items: center; gap: 6px; max-width: 100%; margin: 2px 0 3px; padding: 2px 8px 2px 6px;
  background: none; border: 0; border-left: 3px solid var(--line); border-radius: 0 6px 6px 0; color: var(--muted);
  font-size: 12.5px; text-align: left; cursor: pointer;
}
.msg-quote:hover { background: var(--hover); color: var(--text); border-left-color: var(--accent); }
.msg-quote .ico { width: 13px; height: 13px; flex: none; }
.msg-quote strong { color: var(--text); font-weight: 600; white-space: nowrap; }
.msg-quote span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.msg-quote.gone { font-style: italic; cursor: default; }
.reply-bar {
  position: absolute; left: 18px; right: 18px; bottom: calc(100% - 6px); z-index: 2; display: flex; align-items: center; gap: 8px;
  padding: 5px 8px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--panel);
  border-radius: 0 8px 8px 0; font-size: 13px; color: var(--muted); box-shadow: 0 -4px 14px rgba(0, 0, 0, .08);
}
.composer:has(.reply-bar) .pic-tray { bottom: calc(100% + 30px); }
.reply-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-bar strong { color: var(--text); }
.reply-bar .ico { width: 15px; height: 15px; flex: none; color: var(--accent); }
.reply-bar button { padding: 0 8px; font-size: 16px; line-height: 1.4; }
.msg .actions .icon-act { display: inline-grid; place-items: center; padding: 3px 6px; }
.msg .actions .icon-act .ico { width: 16px; height: 16px; display: block; }
.msg .actions .icon-act.on { color: var(--accent); }
.msg.flash { animation: msg-flash 1.6s ease-out; }
@keyframes msg-flash { 0%, 30% { background: color-mix(in srgb, var(--accent) 22%, transparent); } 100% { background: transparent; } }

/* 0.45.0: Angeheftete Nachrichten */
.msg-pinned { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--muted); margin-bottom: 1px; }
.msg-pinned .ico { width: 12px; height: 12px; color: #e5484d; }
.msg.pinned { box-shadow: inset 3px 0 color-mix(in srgb, #e5484d 55%, transparent); }
.msg.pinned.mentioned { box-shadow: inset 3px 0 var(--mention-line); }
.pins-wrap { position: relative; display: inline-flex; }
.pins-btn { display: inline-flex; align-items: center; gap: 3px; }
.pins-btn .count { font-size: 12px; font-weight: 700; }
.pins-btn.on { color: var(--accent); border-color: var(--accent); }
.room-head .head-left .pins-wrap { flex: none; }
.room-head .pins-btn { padding: 4px 8px; }
.room-head .pins-btn .ico { width: 15px; height: 15px; }
.pins-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: min(400px, calc(100vw - 32px)); max-height: min(70vh, 520px);
  display: flex; flex-direction: column; background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 14px 36px rgba(0, 0, 0, .25); text-align: left;
}
.pins-panel header { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.pins-panel header strong { display: inline-flex; align-items: center; gap: 6px; }
.pins-panel header .ico { width: 16px; height: 16px; color: #e5484d; }
.pins-panel .hint { padding: 12px; margin: 0; }
.pins-panel .hint .ico { width: 14px; height: 14px; vertical-align: -2px; }
.pins-panel ol { list-style: none; margin: 0; padding: 4px 0; overflow-y: auto; }
.pins-panel li { padding: 8px 12px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.pins-panel li:last-child { border-bottom: 0; }
.pin-meta { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.pin-meta time { color: var(--muted); font-size: 11.5px; }
.pin-body { font-size: 13.5px; overflow-wrap: anywhere; }
.pin-body .ico { width: 13px; height: 13px; vertical-align: -2px; }
.pin-actions { display: flex; gap: 6px; justify-content: flex-end; }
.pin-actions button { padding: 2px 10px; font-size: 12.5px; }
.msg-notice .link, .room-head .link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; }
.msg-notice .link:hover { text-decoration: underline; }
.msg-notice.notice-pin .notice-ico, .msg-notice.notice-group .notice-ico { color: var(--muted); }
.msg-notice span .ico { width: 12px; height: 12px; vertical-align: -1px; }

/* 0.45.0: Gruppenchat bearbeiten */
/* 0.45.1: eigener Knopf statt „topic“ – bleibt bei schmalem Fenster sichtbar und wird nicht zusammengedrückt */
.room-head .group-members-btn { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 13px;
  padding: 3px 8px; white-space: nowrap; }
.room-head .group-members-btn .ico { width: 16px; height: 16px; }
.room-head .group-members-btn:hover { color: var(--accent); }
@media (max-width: 1000px) { .room-head .group-members-btn .wide-only { display: none; } }
.dialog.group-dialog { max-width: 500px; }
.group-dialog .buttons button { white-space: nowrap; }
.group-dialog h3 { display: flex; align-items: center; gap: 8px; }
.group-dialog h3 .ico { width: 20px; height: 20px; }
.group-dialog h4 { margin: 14px 0 4px; font-size: 13px; color: var(--muted); }
.field-row { display: flex; gap: 8px; }
.field-row input { flex: 1; min-width: 0; }
.group-members li { display: flex; align-items: center; gap: 8px; padding: 4px 2px; }
.group-members .name { flex: 1; min-width: 0; }
.group-members button { padding: 2px 10px; font-size: 12.5px; }
.group-dialog .buttons .ico { width: 16px; height: 16px; vertical-align: -3px; }
/* 0.45.2: Knöpfe brechen um statt links aus dem Dialog zu laufen; Verlassen/Löschen links zusammen */
.group-dialog .buttons { flex-wrap: wrap; }
.group-dialog .danger-row { display: flex; gap: 8px; margin-right: auto; }
.group-dialog .leave-group, .group-dialog .delete-group { color: var(--danger); border-color: var(--danger); }
.dialog .people li.already label { opacity: .6; }
.head-tools .add-people .ico { width: 18px; height: 18px; display: block; }

/* 0.45.0: Kalenderstatus */
.cal-note { display: inline-flex; align-items: center; gap: 4px; }
.cal-note .ico { width: 12px; height: 12px; flex: none; }
.people-panel small.cal-note { color: var(--muted); }
small.cal-note.cal-busy, .topic.cal-note.cal-busy { color: #c0392b; }
small.cal-note.cal-oof, .topic.cal-note.cal-oof { color: #8b5cf6; }
small.cal-note.cal-tentative, .topic.cal-note.cal-tentative { color: #b7791f; }
/* IT-Planer (0.46.0): Urlaub/frei grün, Schulung/Berufsschule/Dienstreise blau, Abwesend neutral */
small.plan-note.plan-urlaub, small.plan-note.plan-halber_urlaub, small.plan-note.plan-frei,
.topic.plan-note.plan-urlaub, .topic.plan-note.plan-halber_urlaub, .topic.plan-note.plan-frei { color: #2f855a; }
small.plan-note.plan-schulung, small.plan-note.plan-berufsschule, small.plan-note.plan-dienstreise,
.topic.plan-note.plan-schulung, .topic.plan-note.plan-berufsschule, .topic.plan-note.plan-dienstreise { color: #2b6cb0; }

/* 0.45.0: Hand heben und Reaktionen im Gespräch */
.tile-hand {
  position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px 2px 4px; border-radius: 14px; background: rgba(0, 0, 0, .6); color: #fff; border: 0; font-size: 13px;
  animation: hand-wave .9s ease-in-out 2;
}
button.tile-hand { cursor: pointer; }
button.tile-hand:hover { background: rgba(0, 0, 0, .8); }
.tile-hand .ico { width: 20px; height: 20px; }
.tile-hand b { font-weight: 800; }
.tile.person.hand-up { box-shadow: 0 0 0 3px #f6c76b; }
.tile.person.hand-up .tile-badge { left: auto; right: 42px; }
@keyframes hand-wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.tile-reactions { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tile-react {
  position: absolute; left: calc(50% + var(--drift, 0px)); bottom: 18%; font-size: clamp(28px, 18%, 56px);
  animation: react-rise 3s ease-out forwards; transform: translateX(-50%);
}
@keyframes react-rise {
  0% { opacity: 0; transform: translate(-50%, 20px) scale(.6); }
  12% { opacity: 1; transform: translate(-50%, 0) scale(1.15); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -150%) scale(1); }
}
.react-wrap { position: relative; display: inline-flex; }
.reaction-bar {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); z-index: 25; display: flex; gap: 2px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 4px 6px; box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}
.reaction-bar button { border: 0; background: none; font-size: 24px; padding: 4px 6px; border-radius: 50%; line-height: 1; }
.reaction-bar button:hover { background: var(--hover); transform: scale(1.15); }
.voice-controls button.hand-btn.on { color: #b7791f; border-color: #f6c76b; background: color-mix(in srgb, #f6c76b 22%, var(--panel)); }
.voice-members .hand-ico .ico { width: 15px; height: 15px; }

/* 0.45.0: Rauschunterdrückung in drei Stufen */
.noise-choice { border: 0; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; }
.noise-choice legend { font-weight: 600; font-size: 13.5px; margin-bottom: 2px; padding: 0; }
@media (prefers-reduced-motion: reduce) {
  .tile-hand, .msg.flash { animation: none; }
  .tile-react { animation-duration: 1.5s; }
}

/* Besprechungen (0.46.0): Eingeladene, Mitarbeiter hinzufügen, Hinweis „gestartet“ */
.invitees { margin-top: 18px; }
.invitees h3 { display: flex; align-items: center; gap: 6px; font-size: 15px; margin: 0 0 8px; }
.invitees h3 .ico { width: 16px; height: 16px; }
.invitees ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.invitees li { display: flex; align-items: center; gap: 8px; }
.guest-ico { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--line); color: var(--muted); font-weight: 700; font-size: 12px; }
.invite-dialog { width: min(480px, calc(100vw - 32px)); }
.invite-dialog h3 { display: flex; align-items: center; gap: 8px; }
.invite-dialog h3 .ico { width: 20px; height: 20px; }
.invite-dialog input[data-invite-search] { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg); color: var(--text); }
.pick-list { list-style: none; margin: 8px 0; padding: 0; max-height: 320px; overflow-y: auto; border: 1px solid var(--line);
  border-radius: 6px; }
.pick-list li { padding: 4px 8px; }
.pick-list li + li { border-top: 1px solid var(--line); }
.pick-list label.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.meeting-alert .nudge-zap { color: var(--accent); }

/* Eigene Abfrage-Fenster statt prompt()/confirm() (0.47.0, ask.js) – über allen anderen Fenstern */
.overlay.ask-overlay { z-index: 60; }
.ask-dialog p { margin: 0; line-height: 1.45; }
button.primary.danger { background: var(--danger); border-color: var(--danger); color: #fff; }

/* Termin neben dem Namen der Besprechung (0.47.0) */
.meetings-side .room .meet-when { flex: none; margin-left: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.meeting-card .series { margin: -4px 0 0; color: var(--muted); }

/* Eigenständiger Office-Editor (0.47.0, /datei) */
body.datei-page { margin: 0; height: 100vh; overflow: hidden; }
body.datei-page #app, .standalone-office { height: 100%; display: flex; flex-direction: column; }

/* Kalender der Besprechungen (0.47.0) */
.meetings-side h2 .cal-open { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0;
  font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.meetings-side h2 .cal-open:hover, .meetings-side h2 .cal-open[aria-pressed=true] { color: var(--accent); }
.meetings-side h2 .cal-open .ico { width: 14px; height: 14px; }
.calendar-view { display: flex; flex-direction: column; gap: 10px; }
.cal-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cal-bar .cal-range { margin: 0 8px; }
.cal-bar .cal-new { margin-left: auto; }
.cal-scroll { overflow-x: auto; }
.cal-grid { display: grid; grid-template-columns: 52px repeat(7, minmax(110px, 1fr)); min-width: 820px;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.cal-corner, .cal-day-head { padding: 8px 6px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; text-align: center; }
.cal-day-head.today { color: var(--accent); }
.cal-hours { grid-column: 1; }
.cal-hour { height: var(--cal-row); font-size: 11px; color: var(--muted); text-align: right; padding: 2px 6px 0 0;
  border-top: 1px solid var(--line); box-sizing: border-box; }
.cal-col { position: relative; border-left: 1px solid var(--line); }
.cal-col.today { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.cal-slot { display: block; width: 100%; height: var(--cal-row); border: 0; border-top: 1px solid var(--line); background: none;
  padding: 0; cursor: copy; box-sizing: border-box; }
.cal-slot:hover { background: var(--hover); }
.cal-event { position: absolute; left: 3px; right: 3px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 3px 6px; border: 0; border-left: 3px solid var(--accent); border-radius: 6px; overflow: hidden; text-align: left;
  background: color-mix(in srgb, var(--accent) 18%, var(--panel)); color: var(--text); font-size: 12px; cursor: pointer; z-index: 1; }
.cal-event:hover { background: color-mix(in srgb, var(--accent) 28%, var(--panel)); }
.cal-event.past { opacity: .55; }
.cal-event .cal-time { font-size: 11px; color: var(--muted); }
.cal-event .cal-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* Eigene Outlook-Termine (0.51.0): grau-blau, nicht anklickbar, Status wie in Outlook (frei = hell, Vorbehalt = gestrichelt) */
.cal-bar .cal-outlook-toggle { margin-left: auto; font-size: 13px; }
.cal-bar .cal-outlook-toggle + .cal-new { margin-left: 0; }
.cal-event.outlook { cursor: default; border-left-color: var(--muted); z-index: 0;
  background: color-mix(in srgb, var(--muted) 16%, var(--panel)); }
.cal-event.outlook:hover { background: color-mix(in srgb, var(--muted) 24%, var(--panel)); }
.cal-event.outlook.busy-free { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--line); }
.cal-event.outlook.busy-oof { border-left-color: #9b59b6; }
.cal-event.outlook.tentative, .cal-event.outlook.busy-tentative { border-left-style: dashed; }
.cal-event.outlook .cal-title { font-weight: 500; }
.cal-allday { margin-top: 4px; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 500; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text);
  background: color-mix(in srgb, var(--muted) 16%, var(--panel)); border-left: 3px solid var(--muted); }
.cal-allday.busy-oof { border-left-color: #9b59b6; }
.cal-allday.busy-free { background: var(--panel); border: 1px solid var(--line); }
.cal-undated { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Signale im Gespräch (0.47.0) */
.cue-block { border: 0; padding: 0; margin: 4px 0; display: grid; gap: 4px; }
.cue-block legend { padding: 0; margin-bottom: 2px; }

/* 0.48.0: Soundboard mit vielen Sounds – Zeilen nicht mehr zusammenquetschen (Kacheln mit overflow:hidden durften im
   Raster auf 0 schrumpfen), dazu Favoriten-Stern links */
.board-grid { align-content: start; grid-auto-rows: minmax(46px, auto); max-height: min(340px, 50vh); padding-right: 2px; }
.board-sound { min-height: 46px; }
.board-fav { flex: none; width: 26px; padding: 0 0 0 4px; border: 0; background: none; cursor: pointer; color: var(--muted);
  font-size: 15px; line-height: 1; }
.board-fav:hover { color: var(--accent); }
.board-sound.fav .board-fav { color: #e0a800; }
.board-sound.fav { border-color: color-mix(in srgb, #e0a800 55%, var(--line)); }
.board-fav + .board-play { padding-left: 4px; }
.person-menu button { display: flex; align-items: center; gap: 8px; }
.person-menu button:disabled { opacity: .5; cursor: default; }
.transcript-switch { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; font-size: 14px; }
/* 0.48.0: das Soundboard steckt in der Gesprächsleiste und erbte deren große Knöpfe (9px 14px, 15px) – zurücksetzen */
.voice-controls .board-panel .board-tools button { padding: 0 8px; font-size: 13px; gap: 0; }
.voice-controls .board-panel .board-play { padding: 6px 10px 6px 4px; font-size: 13.5px; }
.voice-controls .board-panel .board-fav { padding: 0 0 0 6px; font-size: 15px; }
.voice-controls .board-panel .bg-head button, .voice-controls .board-panel .board-add-btn { padding: 5px 10px; font-size: 13px; }
/* 0.48.0: vergangene Besprechungen ein-/ausblenden */
.past-toggle { display: block; margin: 2px 8px 6px; padding: 2px 4px; border: 0; background: none; color: var(--side-muted);
  font-size: 12px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.past-toggle:hover { color: var(--side-text); }

/* 0.48.0: Personen beim Bildschirm teilen rechts (Vorgabe) oder unten – je Person umstellbar */
.stage.with-screens .screen-area { position: relative; }
.stage.with-screens.people-right { flex-direction: row; }
.stage.with-screens.people-right .screen-area { flex: 4 1 0; min-width: 0; }
.stage.with-screens.people-right .gallery { flex: 0 0 clamp(160px, 22%, 320px); max-height: none; min-height: 0; align-content: center; }
.people-side { position: absolute; left: 8px; top: 8px; z-index: 3; width: 32px; height: 32px; border-radius: 6px; border: 0;
  padding: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; }
.people-side:hover { background: rgba(0, 0, 0, .75); }
@media (max-width: 700px) {
  .stage.with-screens.people-right { flex-direction: column; }
  .stage.with-screens.people-right .gallery { flex: 1 1 0; max-height: 24%; min-height: 96px; }
}
/* 0.48.0: Malen auf geteilten Bildschirmen */
.tile.screen .draw-layer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.tile.screen .draw-layer.pen { pointer-events: auto; cursor: crosshair; touch-action: none; }
.tile.screen { container-type: inline-size; }
.draw-tools { position: absolute; top: 8px; left: 48px; right: 88px; z-index: 2; display: flex; gap: 6px; overflow: hidden; }
.draw-tools button { white-space: nowrap; flex: none; }
@container (max-width: 440px) { .draw-tools .lbl { display: none; } .draw-tools button { padding: 0 9px; } }
.draw-tools button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 6px;
  background: rgba(0, 0, 0, .55); color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.draw-tools button:hover { background: rgba(0, 0, 0, .75); }
.draw-tools button.on { background: rgba(10, 132, 255, .85); }
.draw-tools .ico { width: 15px; height: 15px; }
.draw-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; flex: none; }
.tile.screen:fullscreen { border-radius: 0; }
.tile.screen .tile-full, .tile.screen .tile-refresh, .tile.screen .tile-label { z-index: 2; }

/* --- Jürgofon (0.53.0): Reiter „Telefon“ ---------------------------------------------------------------------- */
.phone-view { flex: 1; overflow-y: auto; padding: 24px 16px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone-view .hint { color: var(--muted); font-size: 13px; max-width: 420px; text-align: center; margin: 0; }
.phone-card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius, 10px);
  padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.phone-card h2 { margin: 0; font-size: 18px; }
.phone-card p { margin: 0; }
.phone-card label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.phone-card input, .phone-dialpad input { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--text); }
.phone-card .error { color: var(--danger); }
.phone-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 420px; }
.phone-status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.phone-status.ready .dot { background: var(--ok); }
.phone-status.connecting .dot { background: var(--warn, #e5a00d); }
.phone-status.error .dot { background: var(--danger); }
.phone-status .error { color: var(--danger); width: 100%; text-align: center; font-size: 13px; }
.phone-dialpad { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 12px; }
.phone-dialpad input { font-size: 22px; text-align: center; letter-spacing: 1px; }
.phone-view .keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.phone-view .keys button { font-size: 20px; padding: 12px 0; border-radius: 10px; border: 1px solid var(--line); background: var(--panel);
  color: var(--text); cursor: pointer; }
.phone-view .keys button:hover:not(:disabled) { background: var(--hover); }
.phone-dialpad .call { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; font-size: 16px; }
.phone-call .who { font-size: 20px; text-align: center; }
.phone-call .who small { color: var(--muted); font-size: 14px; }
.phone-call .what { text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.phone-call .buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.phone-call .buttons button { display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; }
.phone-call .buttons button.on { border-color: var(--accent); color: var(--accent); }
.phone-view button.danger, .phone-callcard button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.phone-call .forward { display: flex; gap: 8px; }
.phone-call .forward input { flex: 1; min-width: 0; }
.phone-callcard { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; gap: 12px;
  width: 380px; max-width: calc(100vw - 40px); background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
.phone-callcard.ringing { border-color: var(--accent); }
.phone-callcard .who { display: flex; align-items: flex-start; gap: 12px; text-align: left; min-width: 0; padding: 0; }
.phone-callcard .who svg { width: 28px; height: 28px; flex: none; margin-top: 4px; }
.phone-callcard .who span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.phone-callcard .who strong { font-size: 1.25rem; line-height: 1.3; overflow-wrap: anywhere; }
.phone-callcard .who small { color: var(--muted); font-size: 0.95rem; }
.phone-callcard .who small.state { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.phone-callcard .actions { display: flex; gap: 10px; }
.phone-callcard .actions button { flex: 1; padding: 10px 12px; border-radius: 10px; font-size: 1rem; }
.phone-call .who small.dialed { display: block; }

/* Jürgofon 0.54.0: andere Telefone steuern */
.phone-dialwith { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 320px; font-weight: 600; }
.phone-dialwith select { flex: 1; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--text); }
.phone-devices ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.phone-devices li { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.phone-devices .primary-mark { color: var(--accent); font-weight: 600; font-size: 13px; }
.phone-devices button.small { align-self: flex-start; font-size: 13px; }
.phone-othercalls .othercall { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.phone-othercalls .othercall:first-of-type { border-top: 0; }
.phone-othercalls .where { display: block; color: var(--muted); }
.phone-othercalls .buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.phone-othercalls .buttons button { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg);
  color: var(--text); cursor: pointer; }
.phone-othercalls .forward { display: flex; gap: 8px; }
.phone-othercalls .forward input { flex: 1; min-width: 0; font: inherit; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--bg); color: var(--text); }

/* Jürgofon 0.54.0: Schalter, Bereiche, Adressbuch, Rufliste */
.phone-switch .switch-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: normal; flex-direction: row; }
.phone-switch .switch-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.phone-switch .switch-row span { display: flex; flex-direction: column; gap: 2px; }
.phone-switch .switch-row small { color: var(--muted); }
.phone-switch .phone-status { justify-content: flex-start; }
.phone-switch .phone-on { display: flex; flex-direction: column; gap: 10px; }
.phone-tabs { display: flex; gap: 4px; width: 100%; max-width: 420px; border-bottom: 1px solid var(--line); }
.phone-tabs button { flex: 1; padding: 8px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted);
  font: inherit; cursor: pointer; }
.phone-tabs button.on { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.phone-book, .phone-calllist { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 10px; }
.phone-book input[type=search] { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--text); }
.phone-book ul, .phone-calllist ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.phone-book li, .phone-calllist li { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 8px 0; border-bottom: 1px solid var(--line); }
.phone-book .who, .phone-calllist .who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.phone-book .who small, .phone-calllist .who small { color: var(--muted); }
.phone-book .numbers { display: flex; flex-wrap: wrap; gap: 6px; }
.phone-view button.number { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.phone-view button.number small { color: var(--muted); }
.phone-view .hint.warn { color: var(--warn, #e5a00d); }
.phone-calllist .filters { display: flex; gap: 6px; flex-wrap: wrap; }
.phone-calllist .filters button.on { border-color: var(--accent); color: var(--accent); }
.phone-calllist .dir { width: 20px; text-align: center; color: var(--muted); }
.phone-calllist li.missed .dir, .phone-calllist li.missed strong { color: var(--danger); }

/* Jürgofon 0.55.0: Baukasten (Workspace mit Kacheln wie in der Starface) */
.phone-dashboard { align-items: stretch; padding: 12px; gap: 10px; }
/* 0.58.2: Speichern/Abbrechen/Vorgabe oben in der Katalog-Spalte – die Kacheln verrutschen beim Anpassen nicht mehr */
.phone-catalog .phone-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.phone-catalog .phone-toolbar .primary { flex: 1 0 100%; }
.phone-catalog .phone-toolbar .ghost { flex: 1; }
.phone-workspace { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.phone-grid { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 34px;
  gap: 10px; position: relative; }
.phone-dashboard.editing .phone-grid { background-image: linear-gradient(var(--line) 1px, transparent 1px),
  linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: calc((100% + 10px) / 12) 44px; border-radius: 8px; }
.phone-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column;
  min-width: 0; min-height: 0; overflow: hidden; position: relative; }
.phone-panel > header { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px;
  border-bottom: 1px solid var(--line); flex: none; }
.phone-panel > header h2 { margin: 0; font-size: 14px; font-weight: 600; }
.phone-panel.edit > header { cursor: grab; user-select: none; touch-action: none; }
.phone-panel.edit { outline: 1px dashed var(--accent); }
.phone-panel .close { padding: 0 6px; font-size: 18px; line-height: 1; }
.phone-panel .panel-body { flex: 1; overflow: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.phone-panel .resize { position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; cursor: nwse-resize; touch-action: none;
  border-right: 3px solid var(--accent); border-bottom: 3px solid var(--accent); border-radius: 0 0 6px 0; }
.phone-panel .phone-card { max-width: none; border: 0; padding: 0; background: none; }
.phone-panel .phone-card h2 { display: none; }
.phone-panel .phone-dialpad, .phone-panel .phone-dialwith, .phone-panel .phone-book, .phone-panel .phone-calllist { max-width: none; }
.phone-panel .phone-dialpad { margin: 0 auto; max-width: 300px; }
.phone-grid .hint.empty { grid-column: 1 / -1; text-align: center; padding: 40px; }
.phone-catalog { width: 220px; flex: none; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px;
  display: flex; flex-direction: column; gap: 8px; position: sticky; top: 0; }
.phone-catalog h3 { margin: 0; font-size: 14px; }
.phone-catalog .catalog-items { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.phone-catalog .catalog-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: grab; font-size: 12px; text-align: center; }
.phone-catalog .catalog-item b { color: var(--accent); }
.phone-catalog .catalog-item.used { opacity: .45; cursor: default; }
.phone-catalog .catalog-item small { color: var(--muted); font-size: 10px; }
/* Adressbuch als Tabelle */
.phone-book .book-tools { display: flex; flex-direction: column; gap: 6px; }
.phone-view .chips { display: flex; gap: 4px; flex-wrap: wrap; }
.phone-view .chip { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--muted);
  font-size: 12px; cursor: pointer; }
.phone-view .chip.on { border-color: var(--accent); color: var(--accent); }
.phone-book .book-table { display: flex; flex-direction: column; }
.phone-book .row { display: grid; grid-template-columns: minmax(140px, 1.3fr) minmax(160px, 2fr) minmax(90px, .8fr); gap: 10px;
  align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.phone-book .row.head { color: var(--muted); font-size: 12px; font-weight: 600; position: sticky; top: -10px; background: var(--panel); }
.phone-book .row .name { display: flex; flex-direction: column; min-width: 0; }
.phone-book .row .name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-book .row .name small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-book .row .nums { display: flex; flex-wrap: wrap; gap: 4px; }
.phone-book .row .num { display: inline-flex; align-items: center; }
.phone-book .row .src { display: flex; flex-wrap: wrap; gap: 4px; }
.phone-view .badge { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--hover); color: var(--muted); }
.phone-view .badge.src-Starface { color: var(--accent); }
.phone-view .badge.src-Outlook { color: var(--ok); }
.phone-view button.star { padding: 0 4px; font-size: 15px; color: var(--muted); }
.phone-view button.star.on { color: #e5a00d; }
.phone-view button.number span { white-space: nowrap; }
.phone-favs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.phone-favs li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.phone-favs .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
  .phone-workspace { flex-direction: column; }
  .phone-grid { display: flex; flex-direction: column; }
  .phone-panel { min-height: 220px; }
  .phone-catalog { width: auto; position: static; }
  .phone-book .row { grid-template-columns: 1fr; gap: 4px; }
  .phone-book .row.head { display: none; }
}
.phone-dashboard > .phone-control-login { max-width: 560px; margin: 0 auto; }
/* Kacheln kompakter (0.55.0) */
.phone-panel .panel-body { overflow-x: hidden; }
.phone-panel .phone-dialwith { flex-direction: column; align-items: stretch; gap: 4px; font-size: 13px; }
.phone-panel .phone-dialwith select { width: 100%; min-width: 0; }
.phone-panel .phone-dialpad { width: 100%; }
.phone-panel .phone-dialpad input { font-size: 18px; width: 100%; min-width: 0; box-sizing: border-box; }
.phone-panel .phone-view .keys, .phone-panel .keys { gap: 6px; }
.phone-panel .keys button { padding: 8px 0; font-size: 18px; }
.phone-panel .phone-switch .switch-row strong { display: none; }
.phone-panel .phone-switch .switch-row small { font-size: 13px; }
.phone-panel .phone-call .who { font-size: 17px; }
.phone-panel .phone-call .buttons button { padding: 7px 10px; }
.phone-panel .hint { text-align: left; max-width: none; }
/* 0.55.1: Kopfzeilen der Kacheln gut lesbar in jedem Theme; „Bereit“ nicht mehr angezeigt */
.phone-panel > header { background: var(--side-2, var(--side)); color: var(--side-text); border-bottom-color: transparent; }
.phone-panel > header h2 { color: inherit; }
.phone-panel > header .close { color: var(--side-text); }
.phone-switch .phone-status.quiet { min-height: 0; padding: 0; }
.phone-switch .phone-status.quiet:empty { display: none; }
/* 0.55.3: Bifröst-Aktionen im Adressbuch, Steintelefon */
.phone-book .bifrost-actions { display: flex; gap: 4px; margin-top: 3px; flex-wrap: wrap; }
.phone-book .bifrost-actions button { font-size: 12px; padding: 2px 8px; display: inline-flex; align-items: center; gap: 4px; }
.phone-view .ico-rockphone { width: 18px; height: 18px; }
.phone-view .ico-rockphone, .sidebar .ico-rockphone, .room-head .ico-rockphone { width: 20px; height: 20px; }
.phone-switch .phone-status.quiet .muted { font-size: 12px; }
.phone-view .badge.src-CustomerOne { color: #e5a00d; }

/* iQueue-Kachel (0.57.0) */
.phone-iqueue { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.phone-iqueue .queue h3 { margin: 0 0 6px; font-size: 0.95rem; }
.phone-iqueue dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.phone-iqueue dl > div { background: var(--bg-soft, rgba(127,127,127,0.08)); border-radius: 8px; padding: 6px 10px; }
.phone-iqueue dt { font-size: 0.75rem; opacity: 0.75; }
.phone-iqueue dd { margin: 2px 0 0; font-size: 1.3rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.phone-iqueue .warn dd { color: #e5a00d; }
.phone-iqueue .alert dd { color: #e5484d; }
.phone-iqueue .queue-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.phone-iqueue .queue-head h3 { margin: 0; }
.phone-iqueue .queue-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.85rem; font-weight: 600; flex-direction: row; }
.phone-iqueue .queue-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.phone-iqueue .queue-switch .track { width: 40px; height: 22px; border-radius: 11px; background: #8a8f98; position: relative; transition: background 0.15s; flex: none; }
.phone-iqueue .queue-switch .knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left 0.15s; }
.phone-iqueue .queue-switch input:checked + .track { background: #30a46c; }
.phone-iqueue .queue-switch input:checked + .track .knob { left: 21px; }
.phone-iqueue .queue-switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.phone-iqueue .queue-switch input:disabled + .track { opacity: 0.6; }
.phone-iqueue dl > .queue-pause.on { background: rgba(91,141,239,0.18); }
.phone-iqueue .queue-pause dd { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 1rem; }
.phone-iqueue .queue-pause b { font-size: 1.3rem; font-variant-numeric: tabular-nums; color: #5b8def; }
.phone-iqueue .queue-columns { margin-top: 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.phone-iqueue .queue-detail h4 { margin: 0; font-size: 0.8rem; opacity: 0.8; }
.phone-iqueue .agent-dot.st-booked_pause { background: #5b8def; }
.phone-iqueue .queue-detail ul, .phone-iqueue .queue-detail ol { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.phone-iqueue .queue-detail li { display: flex; align-items: center; gap: 8px; padding: 4px 2px; border-bottom: 1px solid rgba(127,127,127,0.15); }
.phone-iqueue .queue-detail small { opacity: 0.75; }
.phone-iqueue .queue-detail .who { display: flex; flex-direction: column; }
.phone-iqueue .queue-detail .pos { min-width: 1.6em; text-align: center; font-weight: 700; color: #e5484d; }
.phone-iqueue .agent-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #8a8f98; }
.phone-iqueue .agent-dot.st-available { background: #30a46c; }
.phone-iqueue .agent-dot.st-ringing { background: #e5a00d; }
.phone-iqueue .agent-dot.st-active { background: #e5484d; }
.phone-iqueue .agent-dot.st-queue_pause { background: #5b8def; }
