/* ══════════════════════════════════════════════════════════════════════════════
   ec-chats-2026.css — Chats-Bildschirm der Handy-Shell
   §CHATLIST-MOBILE-2026-10-17 (ersetzt §CHATS-REDESIGN-2026-09-25)
   ══════════════════════════════════════════════════════════════════════════════
   Vorlage: Chatliste wie WhatsApp/Signal im iOS-Dark-Mode. Keine Karten, keine
   Glows: flache Zeilen auf dem Theme-Grund, Trennlinie erst ab der Textspalte.

   KASKADE (Projektfalle, Memory mobile-css-cascade): mobile-overrides.css
   arbeitet mit bis zu 4-fach wiederholten #ec-mobile-shell-IDs, Blueprint-
   Varianten ([data-ecm-bp="1"]) und !important. Hier deshalb SECHS IDs + !important;
   die Datei lädt NACH mobile-overrides.css. Untere Leiste und Kopf nur im
   Handy-Layout (:not(.ec-split)) — im Tablet-Split gehört die Leiste
   ec-tablet-split.css. Die ausgewählte Split-Zeile (.ec-split-selected) bleibt
   ebenfalls dort.

   THEMES: Alle App-Themes sind dunkel (ec-theme-layer.css, mobile-overrides
   §THEME-ENGINE). Flächen und Akzent kommen aus den --ecm-t-*-Tokens der
   Mobile-Engine, die festen Grautöne (#8696a0, Trennlinie) sind themenneutral.
   ══════════════════════════════════════════════════════════════════════════════ */

html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell {
  --ecl-bg: var(--ecm-t-bg0, #000);
  --ecl-text: #f1f5f9;
  --ecl-dim: #939393;
  --ecl-sep: rgba(255, 255, 255, 0.06);
  --ecl-hover: rgba(255, 255, 255, 0.04);
  --ecl-field: rgba(255, 255, 255, 0.08);
  --ecl-accent: var(--ecm-t-nav-active, #919191);
  --ecl-pill: var(--ecm-t-accent, #6f6f6f);
  --ecl-read: #aaaaaa;
}

/* ── Grund des Chats-Bereichs ──────────────────────────────────────────── */
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"],
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-body,
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-body-scroll {
  background: var(--ecl-bg) !important;
  background-image: none !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-body-scroll {
  padding: 0 !important;
  gap: 0 !important;
}

/* ── Kopf: großer Titel, Schloss, zwei schlanke runde Knöpfe ───────────── */
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-app-top {
  position: relative !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 52px !important;
  height: auto !important;
  /* Der obere Inset sitzt schon auf .ec-mobile-app (ec-safe-area.css) — hier
     nicht noch einmal reservieren. */
  padding: 8px 16px 4px !important;
  margin: 0 !important;
  background: var(--ecl-bg) !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-app-top-title {
  order: 1 !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  color: var(--ecl-text) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
/* "Sicher": nur noch ein kleines Schloss direkt hinter dem Titel. */
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-chats-secure {
  order: 2 !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  min-height: 0 !important;
  margin: 3px auto 0 0 !important;       /* auto rechts: schiebt die Knöpfe an den Rand */
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--ecl-dim) !important;
  font-size: 0 !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-chats-secure .ecl-head-lock {
  width: 16px !important; height: 16px !important; display: block !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-chats-secure::before,
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-chats-secure::after { content: none !important; display: none !important; }
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-app-top-icon,
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-app-top-action {
  flex: 0 0 auto !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  border: 0 !important;
  background: var(--ecl-field) !important;
  background-image: none !important;
  color: var(--ecl-text) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  position: relative !important;
}
/* Trefferfläche 44 px trotz 32-px-Kreis (Touch-Ziel), ohne Layout-Kosten. */
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-app-top-icon::after,
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-app-top-action::after {
  content: '' !important; position: absolute !important; inset: -8px !important; border-radius: 50% !important; pointer-events: auto !important;   /* §AUDIT-2026-11-10: 48 px (war 44); pointer-events: die globale Regel „.screen.active ::after → none“ nahm der Fläche sonst jeden Treffer */
  display: block !important; background: none !important; box-shadow: none !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-chat-menu-btn { order: 3 !important; }
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-chat-plus { order: 4 !important; }
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-app-top-icon svg,
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-app-top-action svg {
  width: 18px !important; height: 18px !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-app-top-icon:active,
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-app-top-action:active {
  background: rgba(255, 255, 255, 0.14) !important;
}
/* ⋯-Menü (Kontakte, Chats auswählen, Alle gelesen) unter den Knöpfen. */
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-chat-action-menu {
  position: absolute !important;
  top: calc(100% - 2px) !important;
  right: 16px !important;
  left: auto !important;
  z-index: 60 !important;
  min-width: 210px !important;
  padding: 6px !important;
  border-radius: 14px !important;
  background: #1c1f26 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-chat-action-menu[hidden] { display: none !important; }
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-chat-action-menu > button {
  display: flex !important; align-items: center !important; gap: 12px !important;
  width: 100% !important; min-height: 44px !important; padding: 0 12px !important;
  border: 0 !important; border-radius: 10px !important;
  background: transparent !important; color: var(--ecl-text) !important;
  font-size: 15px !important; text-align: left !important; box-shadow: none !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-chat-action-menu > button:active { background: var(--ecl-field) !important; }
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-chat-action-menu > button > span { width: 20px !important; text-align: center !important; color: var(--ecl-dim) !important; }
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-chat-action-menu > button > strong { font-weight: 500 !important; color: var(--ecl-text) !important; }

/* ── Suchleiste ─────────────────────────────────────────────────────────── */
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-search {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  width: auto !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  margin: 6px 16px 8px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  border: none !important;
  background: var(--ecl-field) !important;
  background-image: none !important;
  box-shadow: none !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-search::before,
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-search::after { content: none !important; display: none !important; }
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-search-icon {
  position: static !important;
  flex: 0 0 auto !important;
  width: 16px !important; height: 16px !important;
  color: var(--ecl-dim) !important;
  transform: none !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] #ec-mobile-chat-search {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ecl-text) !important;
  /* 16 px: darunter zoomt iOS Safari beim Fokus ins Feld. */
  font-size: 16px !important;
  line-height: 36px !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] #ec-mobile-chat-search::placeholder { color: var(--ecl-dim) !important; opacity: 1 !important; }
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] #ec-mobile-chat-search::-webkit-search-decoration { -webkit-appearance: none; }

/* ── Filter-Chips: Alle (Auswahl Alle/Direkt/Gruppen) + Ungelesen ──────── */
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-chat-filters {
  position: relative !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 16px 8px !important;
  background: none !important;
  border: 0 !important;
  overflow: visible !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-chat-filters > .ecm-filter-select,
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-chat-filters > .ecm-chip-unread {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding: 0 12px !important;
  margin: 0 !important;
  border-radius: 14px !important;
  border: 0 !important;
  background: var(--ecl-field) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--ecl-text) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ecm-filter-select .ecm-filter-ico { display: none !important; }
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ecm-filter-select .ecm-filter-chev {
  width: 12px !important; height: 12px !important; color: var(--ecl-dim) !important; transition: transform .16s ease !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ecm-filter-select[aria-expanded="true"] .ecm-filter-chev { transform: rotate(180deg) !important; }
/* Aktiver Filter (nicht "Alle") bzw. Ungelesen an: Akzent, wie ein gewählter Chip. */
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-chat-filters > .ecm-chip-unread[aria-pressed="true"],
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-chat-filters > .ecm-filter-select.ecl-filtered {
  background: color-mix(in srgb, var(--ecl-pill) 26%, transparent) !important;
  color: #fff !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ecm-chip-unread .ecm-chip-ring { display: none !important; }
.ecm-filter-menu {
  position: absolute; z-index: 40;
  top: 34px; left: 16px; min-width: 168px;
  display: flex; flex-direction: column;
  padding: 6px;
  border-radius: 14px;
  background: #1c1f26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
}
.ecm-filter-menu[hidden] { display: none; }
.ecm-filter-menu button {
  min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 10px;
  background: transparent;
  color: #f1f5f9;
  font: inherit; font-size: 15px; text-align: left; cursor: pointer;
}
.ecm-filter-menu button.active { background: rgba(255, 255, 255, .08); font-weight: 600; }
html body #ec-mobile-shell [data-ecm-panel="chats"] .ecm-filter-menu { position: absolute !important; }

/* ── Liste: flache Zeilen ──────────────────────────────────────────────── */
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell #ec-mobile-chat-list,
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell #ec-mobile-room-list {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  background: none !important;
  border: 0 !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecm-room.ecm-chat-row.ecl-row {
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 72px !important;
  min-height: 72px !important;
  margin: 0 !important;
  padding: 0 0 0 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  text-align: left !important;
  color: var(--ecl-text) !important;
  cursor: pointer !important;
  overflow: hidden !important;
  transform: none !important;
  transition: background-color .12s ease !important;
  -webkit-tap-highlight-color: transparent !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecm-room.ecm-chat-row.ecl-row:not(.ec-split-selected) {
  background: transparent !important;
  background-image: none !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecm-room.ecm-chat-row.ecl-row:not(.ec-split-selected):active {
  background: var(--ecl-hover) !important;
}
@media (hover: hover) {
  html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecm-room.ecm-chat-row.ecl-row:not(.ec-split-selected):hover {
    background: var(--ecl-hover) !important;
  }
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecm-room.ecm-chat-row.ecl-row:focus-visible {
  box-shadow: inset 0 0 0 2px var(--ecl-accent) !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecm-room.ecm-chat-row.ecl-row::before,
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecm-room.ecm-chat-row.ecl-row::after { content: none !important; display: none !important; }

/* Avatar: 50 px, rund, scharf; Bild (ec-chat-extras.js) liegt darüber. */
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecm-chat-avatar.ecl-avatar {
  position: relative !important;
  flex: 0 0 50px !important;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
  min-height: 50px !important;
  max-width: 50px !important;
  max-height: 50px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: hsl(var(--ecl-hue, 230) 28% 30%) !important;
  background-image: none !important;
  color: hsl(var(--ecl-hue, 230) 60% 88%) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecm-chat-avatar.ecl-avatar u {
  text-decoration: none !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
  font: inherit !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecm-chat-avatar.ecl-avatar > img.ec-av-img {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; border-radius: 50% !important;
  filter: none !important; box-shadow: none !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecm-chat-avatar.ecl-avatar.ec-av-has u { visibility: hidden !important; }
/* Kein Online-Punkt: es gibt dafür keine echten Daten in der Liste. */
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecm-chat-avatar.ecl-avatar > i { display: none !important; }

/* Textspalte: zwei Zeilen; die Trennlinie gehört zu ihr (beginnt rechts vom Avatar). */
/* Alte Avatar-Regeln in style.css treffen JEDES direkte Kind-<span> einer Zeile
   (.ecm-chat-row > span: 43–52 px, Verlauf, Rahmen, Radius) — also auch die
   Textspalte. Hier vollstaendig zuruecksetzen, sonst steht der Text in einer Kachel. */
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecl-copy {
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  place-items: normal !important;
  font-size: inherit !important;
  color: inherit !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  align-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 0 16px 0 0 !important;
  border-bottom: 1px solid var(--ecl-sep) !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row:last-child .ecl-copy { border-bottom-color: transparent !important; }
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecl-line1,
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecl-line2 {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  width: 100% !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecl-line1 { align-items: baseline !important; }
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecl-line1 > strong {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  color: var(--ecl-text) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecl-time {
  flex: 0 0 auto !important;
  margin-left: 4px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  color: var(--ecl-dim) !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecl-time[hidden] { display: none !important; }
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row.ecl-unread:not(.ecl-muted) .ecl-time,
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row[data-ecm-chat-unread="true"]:not(.ecl-muted) .ecl-time { color: var(--ecl-accent) !important; }
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecl-status {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  color: var(--ecl-dim) !important;
  margin-right: -2px !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecl-status[hidden] { display: none !important; }
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecl-status[data-status="read"] { color: var(--ecl-read) !important; }
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecl-status svg { width: 16px !important; height: 12px !important; display: block !important; }
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecl-status[data-status="read"] svg { width: 19px !important; }
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecl-snippet {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  color: var(--ecl-dim) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecm-chat-meta.ecl-badges {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 0 0 4px !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecl-badges .ecl-mute {
  display: inline-flex !important; color: var(--ecl-dim) !important; font-style: normal !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecl-badges .ecl-mute svg { width: 16px !important; height: 16px !important; display: block !important; }
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecl-badges em {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 6px !important;
  border-radius: 10px !important;
  background: var(--ecl-pill) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #fff !important;
  font-style: normal !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums !important;
}
/* Stummgeschaltet: Zähler grau statt Akzent (wie WhatsApp). */
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row.ecl-muted .ecl-badges em { background: #404040 !important; }
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecl-badges em[hidden],
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecl-badges .ecl-mute[hidden] { display: none !important; }

/* Leerer Zustand / "nichts gefunden": ohne Kachel, ruhig. */
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell #ec-mobile-chat-list > .ecm-empty {
  margin: 48px 24px !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  text-align: center !important;
}

/* ── Untere Navigation (nur Handy-Layout) ──────────────────────────────── */
html body.ec-mobile-shell-active:not(.ec-split) #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ec-mobile-bottom-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  justify-content: space-around !important;
  gap: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 6px 8px max(10px, env(safe-area-inset-bottom, 0px)) !important;
  border: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 0 !important;
  background: rgba(15, 17, 23, 0.85) !important;
  background-image: none !important;
  -webkit-backdrop-filter: blur(20px) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: none !important;
}
/* §CHAT-LAYOUT-RP-2026-11-02: im offenen Chat keine Bottom-Nav — die 6-ID-Regel oben (display:flex) ueberstimmte
   mobile-audit-fixes.css (4 IDs, display:none): 65 px totes Band unter der Eingabeleiste. Hier mit 7 IDs. */
html body.ec-mobile-shell-active.ec-mobile-chat-open:not(.ec-split) #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ec-mobile-bottom-nav {
  display: none !important;
}
html body.ec-mobile-shell-active:not(.ec-split) #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ec-mobile-bottom-nav::before,
html body.ec-mobile-shell-active:not(.ec-split) #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ec-mobile-bottom-nav::after { content: none !important; display: none !important; }
html body.ec-mobile-shell-active:not(.ec-split) #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ec-mobile-bottom-nav > button {
  position: relative !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: 140px !important;
  height: auto !important;
  min-height: 48px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  margin: 0 !important;
  padding: 4px 0 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #939393 !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  text-shadow: none !important;
  transform: none !important;
  -webkit-tap-highlight-color: transparent !important;
}
html body.ec-mobile-shell-active:not(.ec-split) #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ec-mobile-bottom-nav > button::before,
html body.ec-mobile-shell-active:not(.ec-split) #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ec-mobile-bottom-nav > button::after { content: none !important; display: none !important; }
html body.ec-mobile-shell-active:not(.ec-split) #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ec-mobile-bottom-nav > button .ec-mobile-nav-icon {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px !important;
  height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 14px !important;
  background: none !important;
  box-shadow: none !important;
  color: inherit !important;
  transition: background-color .15s ease !important;
}
html body.ec-mobile-shell-active:not(.ec-split) #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ec-mobile-bottom-nav > button .ec-mobile-nav-icon svg {
  width: 22px !important; height: 22px !important;
  fill: none !important; stroke: none !important;
  filter: none !important;
  color: inherit !important;
}
/* Aktiv: Akzentfarbe + dezente Hinterlegung des Icons (Indikator), kein Glow. */
html body.ec-mobile-shell-active:not(.ec-split) #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ec-mobile-bottom-nav > button.active {
  color: var(--ecl-accent) !important;
  font-weight: 600 !important;
}
html body.ec-mobile-shell-active:not(.ec-split) #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ec-mobile-bottom-nav > button.active .ec-mobile-nav-icon {
  background: color-mix(in srgb, var(--ecl-accent) 16%, transparent) !important;
}
html body.ec-mobile-shell-active:not(.ec-split) #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ec-mobile-bottom-nav > button .ecm-nav-badge {
  position: absolute !important;
  top: 2px !important;
  left: calc(50% + 6px) !important;
  right: auto !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  border-radius: 9px !important;
  border: 2px solid rgb(15, 17, 23) !important;
  box-sizing: content-box !important;
  background: var(--ecl-pill) !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  line-height: 18px !important;
  text-align: center !important;
}
html body.ec-mobile-shell-active:not(.ec-split) #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ec-mobile-bottom-nav > button .ecm-nav-badge[hidden] { display: none !important; }

/* ── Tresor als Unterseite der Einstellungen: Zurück-Knopf im Kopf ─────── */
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-head .ecl-vault-back {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  margin: 0 4px 0 -8px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--ecl-text) !important;
}
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-head .ecl-vault-back svg { width: 24px !important; height: 24px !important; }
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-head .ecl-vault-back:active { background: var(--ecl-field) !important; }
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ec-tg-row[data-ec-tg-vault-row] .ec-tg-ico svg { width: 20px; height: 20px; }

/* Sehr schmale Geräte (≤ 340 px). */
@media (max-width: 340px) {
  html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-app-top-title { font-size: 25px !important; }
}

/* "Nur du" (Raum ohne weiteres Mitglied): Punkt statt Emoji. Bleibt für die
   Desktop-Karte (#lastseen-…, loadRoomLastSeen). */
.ecm-only-me { display: inline-flex !important; align-items: center !important; gap: 7px !important; }
.ecm-only-me::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: #7b7b7b;
  flex: 0 0 auto;
}


/* §TTL-DRAG-2026-10-17: Ablaufzeit-Regler ziehbar (ui-render.js ecBindAutodeleteDrag).
   Größere Trefferfläche als die 3-px-Leiste, keine Browser-Geste darauf
   (iOS würde sonst scrollen statt ziehen), Füllung beim Ziehen ohne Verzögerung. */
html body #room-options-modal .ec-gm-autodelete-slider {
  touch-action: none; cursor: pointer; padding-top: 14px; padding-bottom: 8px; margin-top: -10px;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
html body #room-options-modal .ec-gm-autodelete-slider.is-dragging { cursor: grabbing; }
html body #room-options-modal .ec-gm-autodelete-slider.is-dragging .ec-gm-autodelete-fill { transition: none; }
html body #room-options-modal .ec-gm-autodelete-slider .ec-gm-autodelete-dots { top: 14px; }
html body #room-options-modal .ec-gm-autodelete-slider[data-ec-creator="0"] { cursor: default; }

html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecl-copy::before,
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecl-row .ecl-copy::after { content: none !important; display: none !important; }

/* §AUDIT-2026-11-10: Trefferflächen ≥ 48 px (Play-Vorgabe, tests/test-tap-targets-e2e.js) — Optik unverändert.
   Filter-Chips bleiben 28 px hoch, die Fläche wächst per ::after; die Leerzustands-Knöpfe werden 48 px hoch. */
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ec-mobile-chat-filters :is(.ecm-filter-select, .ecm-chip-unread) { position: relative !important; }
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ec-mobile-chat-filters :is(.ecm-filter-select, .ecm-chip-unread)::after { content: '' !important; position: absolute !important; inset: -10px 0 !important; display: block !important; background: none !important; pointer-events: auto !important; }
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ec-mobile-empty-actions :is(.ecm-primary, .ecm-secondary) { min-height: 48px !important; }
