/* ══════════════════════════════════════════════════════════════════════════
   ec-sidebar-v2.css — §SIDEBAR-V2-2026-10-26 (Owner-Go E1–E5)
   Einklappbare Leiste: 260 px Schublade ⇄ 64 px Icon-Leiste, monochromes
   Obsidian-Glas (Standard oled-midnight); Farbthemen behalten ihre Flaeche.

   Nur Desktop-Shell (>= 900 px; die Shell selbst ist auf Touch/< 900 px aus,
   dort laufen Mobile-Shell, Bottom-Nav und Tablet-Split unveraendert).
   Eigene Klassen (.ec-sb2-*) statt .ecf-rail* — dort haengen Dutzende
   !important-Regeln aus fuenf Dateien. Zustand: html[data-ec-sb] (gesetzt von
   ec-theme-boot.js vor dem ersten Paint); Uebergaenge nur mit html.ec-sb2-anim
   (erst nach einem echten Umschalten) — kein Aufblitzen beim Laden.
   Bewusst unter 6 IDs: die Studio-Schalter (Radius/Schatten/Glas/Animation,
   ec-ux-chat.css :not(#ec-x×6)) muessen hier weiter greifen.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Tooltip (am body, nur kompakte Leiste) ─────────────────────────────── */
.ec-sb2-tip {
  position: fixed; z-index: 2147483200; left: 0; top: 0;
  transform: translate(0, -50%) scale(.96); transform-origin: left center;
  padding: 6px 10px; border-radius: 8px; pointer-events: none;
  background: rgba(14, 14, 18, .94); color: #fff; border: 1px solid rgba(255, 255, 255, .14);
  font: 500 12.5px/1.2 var(--font, "Inter", system-ui, -apple-system, "Segoe UI", sans-serif);
  white-space: nowrap; box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  opacity: 0; transition: opacity .12s ease, transform .12s ease;
}
.ec-sb2-tip.is-on { opacity: 1; transform: translate(0, -50%) scale(1); }
@media (prefers-reduced-motion: reduce) { .ec-sb2-tip { transition: none; } }

@media (min-width: 900px) {
  /* Shell-Raster: Spalte folgt der Leiste (Altregeln setzen 240/216 px mit 2 IDs). */
  html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  html body #ec-claude-shell-final #ec-sb2 {
    --sb-bg: rgba(10, 10, 14, 0.75);
    --sb-line: rgba(255, 255, 255, 0.1);
    --sb-fg: rgba(255, 255, 255, 0.6);
    --sb-fg-hover: rgba(255, 255, 255, 0.9);
    --sb-fg-strong: #fff;
    --sb-hover-bg: rgba(255, 255, 255, 0.05);
    --sb-pill-bg: rgba(255, 255, 255, 0.1);
    --sb-pill-line: rgba(255, 255, 255, 0.2);
    --sb-field: rgba(255, 255, 255, 0.05);
    --sb-ease: cubic-bezier(0.4, 0, 0.2, 1);
    position: sticky; top: 0; z-index: 30;
    box-sizing: border-box; width: 260px; min-width: 0; height: 100vh; height: 100dvh;
    display: flex; flex-direction: column; gap: 8px; padding: 14px 12px 12px;
    margin: 0; overflow: visible;
    background: var(--sb-bg);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border: 0; border-right: 1px solid var(--sb-line); border-radius: 0;
    color: var(--sb-fg);
    font-family: var(--font, "Inter", system-ui, -apple-system, "Segoe UI", sans-serif);
  }
  /* Farbthemen: Flaeche + Linie aus ec-theme-layer.css, Pille bleibt weiss (E4). */
  html[data-theme]:not([data-theme="oled-midnight"]) body #ec-claude-shell-final #ec-sb2 {
    --sb-bg: color-mix(in srgb, var(--bg-panel) 82%, transparent);
    --sb-line: color-mix(in srgb, var(--accent-color) 18%, transparent);
  }
  html[data-ec-studio] body #ec-claude-shell-final #ec-sb2 {
    --sb-bg: color-mix(in srgb, var(--ec-surface) var(--ec-glass-pct), transparent);
  }
  html[data-ec-sb="collapsed"] body #ec-claude-shell-final #ec-sb2 { width: 64px; }
  html.ec-sb2-anim body #ec-claude-shell-final #ec-sb2 { transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1); }

  /* ── Kopf: Logo/Monogramm + Umschalter ─────────────────────────────────── */
  #ec-sb2 .ec-sb2-top {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    min-height: 40px; padding: 0 0 0 2px; margin: 0 0 4px;
  }
  #ec-sb2 .ec-sb2-brand {
    display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden;
    cursor: default; -webkit-user-select: none; user-select: none; touch-action: manipulation;
  }
  #ec-sb2 .ec-sb2-mark {
    flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px;
    display: grid; place-items: center; color: var(--sb-fg-strong);
    background: rgba(255, 255, 255, 0.06); border: 1px solid var(--sb-pill-line);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.06);
  }
  #ec-sb2 .ec-sb2-mark svg { width: 19px; height: 19px; display: block; }
  #ec-sb2 .ec-sb2-brand-name {
    color: var(--sb-fg-strong); font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  #ec-sb2 .ec-sb2-toggle,
  .ec-ap-sidebar .ec-sb2-toggle {
    flex: 0 0 28px; width: 28px; height: 28px; min-width: 28px; min-height: 28px; padding: 0; margin: 0;
    display: grid; place-items: center; border-radius: 8px; cursor: pointer;
    background: transparent; border: 1px solid transparent; color: var(--sb-fg, rgba(255, 255, 255, 0.6));
    box-shadow: none;
  }
  #ec-sb2 .ec-sb2-toggle:hover,
  .ec-ap-sidebar .ec-sb2-toggle:hover { color: var(--sb-fg-hover, rgba(255, 255, 255, 0.9)); background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
  #ec-sb2 .ec-sb2-toggle svg,
  .ec-ap-sidebar .ec-sb2-toggle svg { display: block; transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
  html[data-ec-sb="collapsed"] #ec-sb2 .ec-sb2-toggle svg,
  html[data-ec-sb="collapsed"] .ec-ap-sidebar .ec-sb2-toggle svg { transform: rotate(180deg); }

  /* ── Schnellsuche ──────────────────────────────────────────────────────── */
  #ec-sb2 .ec-sb2-search-row { margin: 0 0 4px; }
  .ec-sb2-search {
    display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; margin: 0;
    box-sizing: border-box; border-radius: 10px; min-width: 0;
    background: var(--sb-field, rgba(255, 255, 255, 0.05)); border: 1px solid var(--sb-line, rgba(255, 255, 255, 0.1));
    color: var(--sb-fg, rgba(255, 255, 255, 0.6)); cursor: text;
  }
  .ec-sb2-search:focus-within { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.07); }
  .ec-sb2-search svg { flex: 0 0 16px; display: block; }
  .ec-sb2-search input {
    flex: 1 1 auto; min-width: 0; width: 100%; height: 100%; padding: 0; margin: 0;
    border: 0; outline: 0; background: transparent; box-shadow: none;
    color: #fff; font: inherit; font-size: 13.5px;
  }
  .ec-sb2-search input::placeholder { color: rgba(255, 255, 255, 0.45); }
  .ec-sb2-search input::-webkit-search-cancel-button { filter: grayscale(1) brightness(1.6); cursor: pointer; }
  .ec-sb2-search-open { display: none !important; }

  /* ── Eintraege ─────────────────────────────────────────────────────────── */
  #ec-sb2 .ec-sb2-nav {
    display: flex; flex-direction: column; gap: 4px; min-height: 0; flex: 1 1 auto;
    margin: 0; padding: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: none;
  }
  #ec-sb2 .ec-sb2-item {
    position: relative; box-sizing: border-box;
    display: flex; align-items: center; gap: 12px;
    width: 100%; height: 42px; min-height: 42px; padding: 0 10px; margin: 0;
    border-radius: 12px; border: 1px solid transparent; background: transparent; box-shadow: none;
    color: var(--sb-fg); font: inherit; font-size: 14px; font-weight: 500; line-height: 1;
    text-align: left; white-space: nowrap; overflow: hidden; cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  }
  #ec-sb2 .ec-sb2-item:hover { color: var(--sb-fg-hover); background: var(--sb-hover-bg); }
  #ec-sb2 .ec-sb2-item.active {
    color: var(--sb-fg-strong);
    background: var(--sb-pill-bg); border-color: var(--sb-pill-line);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  #ec-sb2 .ec-sb2-item[hidden] { display: none !important; }
  #ec-sb2 .ec-sb2-ico { flex: 0 0 20px; width: 20px; height: 20px; display: grid; place-items: center; }
  #ec-sb2 .ec-sb2-ico svg { width: 20px; height: 20px; display: block; }
  #ec-sb2 .ec-sb2-label {
    flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis;
    transition: opacity 0.18s ease;
  }
  #ec-sb2 .ec-sb2-badge {
    flex: 0 0 auto; margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box;
    display: inline-grid; place-items: center; border-radius: 999px;
    background: #fff; color: #050507; font-size: 11px; font-weight: 700; line-height: 1;
    font-variant-numeric: tabular-nums;
    /* Altregel ec-nav-tiers.css (.ec-creq-rail-badge) gilt nur fuer die alte Leiste. */
    position: static; transform: none;
  }
  #ec-sb2 .ec-sb2-badge[hidden] { display: none !important; }

  /* ── Profil-Karte + Menue ──────────────────────────────────────────────── */
  #ec-sb2 .ec-sb2-foot { position: relative; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--sb-line); }
  #ec-sb2 .ec-sb2-me {
    box-sizing: border-box; display: flex; align-items: center; gap: 10px;
    width: 100%; min-height: 52px; padding: 6px 8px 6px 2px; margin: 0;
    border-radius: 12px; border: 1px solid transparent; background: transparent; box-shadow: none;
    color: var(--sb-fg); font: inherit; text-align: left; cursor: pointer; overflow: hidden;
  }
  #ec-sb2 .ec-sb2-me:hover,
  #ec-sb2 .ec-sb2-me[aria-expanded="true"] { background: var(--sb-hover-bg); border-color: var(--sb-line); color: var(--sb-fg-hover); }
  #ec-sb2 .ec-sb2-av {
    position: relative; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
    display: grid; place-items: center; margin-left: 2px;
    background: rgba(255, 255, 255, 0.08); border: 1px solid var(--sb-pill-line);
    color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  }
  #ec-sb2 .ec-sb2-av .ec-av-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
  #ec-sb2 .ec-sb2-av.ec-av-has [data-ec-sb2-initials] { visibility: hidden; }
  #ec-sb2 .ec-sb2-me-copy { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  #ec-sb2 .ec-sb2-me-copy strong,
  #ec-sb2 .ec-sb2-me-copy small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #ec-sb2 .ec-sb2-me-copy strong { color: var(--sb-fg-strong); font-size: 13.5px; font-weight: 600; }
  #ec-sb2 .ec-sb2-me-copy small { color: var(--sb-fg); font-size: 12px; }
  #ec-sb2 .ec-sb2-me-copy small.is-empty { font-style: italic; opacity: 0.8; }
  #ec-sb2 .ec-sb2-me-more { flex: 0 0 16px; opacity: 0.7; }

  #ec-sb2 .ec-sb2-menu {
    position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 40;
    display: flex; flex-direction: column; gap: 2px; padding: 6px; min-width: 200px; box-sizing: border-box;
    background: rgba(14, 14, 18, 0.96); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px;
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  }
  #ec-sb2 .ec-sb2-menu[hidden] { display: none; }
  #ec-sb2 .ec-sb2-menu [role="menuitem"] {
    display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px; margin: 0;
    border: 0; border-radius: 8px; background: transparent; box-shadow: none;
    color: rgba(255, 255, 255, 0.85); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer;
  }
  #ec-sb2 .ec-sb2-menu [role="menuitem"]:hover,
  #ec-sb2 .ec-sb2-menu [role="menuitem"]:focus-visible { background: rgba(255, 255, 255, 0.08); color: #fff; outline: none; }
  #ec-sb2 .ec-sb2-menu svg { flex: 0 0 18px; }
  /* §PREMIUM-MENU-2026-11-10: Zeile 1 — Etikett oben, Tarif-Chip darunter (nebeneinander schnitt die
     235-px-Leiste das Etikett ab: „Elite Gold / Pre…“). */
  #ec-sb2 .ec-sb2-menu .ec-sb2-premium { height: auto; min-height: 52px; padding-top: 7px; padding-bottom: 7px; color: #fff; font-weight: 600; }
  #ec-sb2 .ec-sb2-premium-copy { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  #ec-sb2 .ec-sb2-premium-copy > span:first-child { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #ec-sb2 .ec-sb2-tier {
    flex: 0 0 auto; padding: 1px 8px; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08); color: #d4d4d8; font-size: 11px; font-weight: 600; line-height: 1.5;
  }
  #ec-sb2 .ec-sb2-tier[hidden] { display: none; }
  #ec-sb2 .ec-sb2-menu-sep { height: 1px; margin: 4px 6px; background: rgba(255, 255, 255, 0.1); }

  /* Fokus sichtbar, aber dezent */
  #ec-sb2 :is(.ec-sb2-item, .ec-sb2-me, .ec-sb2-toggle):focus-visible,
  .ec-ap-sidebar :is(.ec-sb2-toggle, .ec-ap-nav-item):focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 2px; }

  /* ── Kompakt (64 px) ───────────────────────────────────────────────────── */
  html[data-ec-sb="collapsed"] #ec-sb2 .ec-sb2-top { flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; padding: 0; }
  html[data-ec-sb="collapsed"] #ec-sb2 .ec-sb2-brand { gap: 0; }
  html[data-ec-sb="collapsed"] #ec-sb2 .ec-sb2-brand-name,
  html[data-ec-sb="collapsed"] #ec-sb2 .ec-sb2-me-copy,
  html[data-ec-sb="collapsed"] #ec-sb2 .ec-sb2-me-more { display: none; }
  html[data-ec-sb="collapsed"] #ec-sb2 .ec-sb2-label { opacity: 0; }
  html[data-ec-sb="collapsed"] #ec-sb2 .ec-sb2-search { display: none; }
  html[data-ec-sb="collapsed"] #ec-sb2 .ec-sb2-search-open { display: flex !important; }
  html[data-ec-sb="collapsed"] #ec-sb2 .ec-sb2-me { justify-content: center; padding: 6px 0; }
  html[data-ec-sb="collapsed"] #ec-sb2 .ec-sb2-av { margin-left: 0; }
  /* Zaehler werden zum Punkt am Icon */
  html[data-ec-sb="collapsed"] #ec-sb2 .ec-sb2-badge {
    position: absolute; top: 7px; left: 25px; min-width: 9px; width: 9px; height: 9px; padding: 0;
    font-size: 0; box-shadow: 0 0 0 2px rgba(10, 10, 14, 0.9);
  }
  html[data-ec-sb="collapsed"] #ec-sb2 .ec-sb2-menu { left: calc(100% + 10px); right: auto; bottom: 0; width: 220px; }

  /* Filter-Chips: weicher Rand, solange rechts noch Chips liegen (ec-sidebar-v2.js). */
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-contacts .ecf-filter-row.ec-sb2-row-more {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  }

  /* ── Desktop-Ansicht „Anrufe“ (E5) ─────────────────────────────────────── */
  /* style.css blendet jede .ecf-view[data-ec-final-panel] per !important aus und nur
     chat/settings/vault/security wieder ein — dasselbe Muster fuer calls. */
  html body.auth-ready #ec-claude-shell-final[data-ec-final-view="calls"] .ecf-view[data-ec-final-panel="calls"] {
    display: block !important; visibility: visible !important; opacity: 1 !important; pointer-events: auto !important;
  }
  #ec-claude-shell-final .ecf-calls-view { min-height: 0; height: 100%; overflow-y: auto; }
  #ec-claude-shell-final .ecf-calls-wrap {
    --ec-call-line: rgba(255, 255, 255, 0.1); --ec-call-muted: rgba(255, 255, 255, 0.55);
    box-sizing: border-box; max-width: 760px; margin: 0 auto; padding: 32px 28px 40px;
    display: flex; flex-direction: column; gap: 14px; color: #e8eaf2;
  }
  #ec-claude-shell-final .ecf-calls-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
  #ec-claude-shell-final .ecf-calls-head h1 { margin: 4px 0 0; font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
  #ec-claude-shell-final .ecf-calls-head .ecf-kicker { font-size: 11px; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.5); }
  #ec-claude-shell-final .ecf-calls-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.05);
    color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  }
  #ec-claude-shell-final .ecf-calls-pill span { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, 0.7); }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-new {
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; width: 100%;
    border-radius: 12px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
    color: #050507; background: #fff; border: 1px solid #fff; box-shadow: 0 8px 26px rgba(255, 255, 255, 0.08);
  }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-new:hover { background: rgba(255, 255, 255, 0.88); }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-new svg { width: 20px; height: 20px; fill: none; stroke: currentColor; }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-relay-note {
    margin: 0; font-size: 13px; line-height: 1.45; color: #c1c1c1;
    border: 1px solid rgba(193, 193, 193, 0.35); background: rgba(193, 193, 193, 0.06); border-radius: 12px; padding: 10px 12px;
  }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-relay-note[hidden] { display: none; }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-section-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-section { margin: 0; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ec-call-muted); font-weight: 600; }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-clear {
    display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 8px; cursor: pointer;
    background: transparent; border: 1px solid transparent; color: var(--ec-call-muted);
  }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-clear[hidden] { display: none; }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-clear:hover,
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-clear:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); outline: none; }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-clear svg { width: 16px; height: 16px; }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-list { display: flex; flex-direction: column; gap: 0; min-width: 0; }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-empty { padding: 28px 12px; text-align: center; color: var(--ec-call-muted); font-size: 14px; line-height: 1.5; }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-item {
    position: relative; overflow: hidden; border-radius: 12px; margin-bottom: 6px; min-width: 0; transition: all 0.25s ease;
  }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-item.is-removing { height: 0 !important; margin-bottom: 0; opacity: 0; transform: translateX(-24px); pointer-events: none; }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-row {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; align-items: center; gap: 12px;
    min-height: 60px; width: 100%; padding: 8px 14px; box-sizing: border-box; border-radius: 12px;
    font: inherit; text-align: left; cursor: pointer; color: #e8eaf2;
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--ec-call-line);
    transition: transform 0.25s ease, background-color 0.15s ease, border-color 0.15s ease;
    touch-action: pan-y; -webkit-user-select: none; user-select: none;
  }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-row:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-row > svg { width: 20px; height: 20px; color: rgba(255, 255, 255, 0.75); fill: none; stroke: currentColor; }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-row.is-missed strong { color: #f87171; }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-copy { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-copy strong,
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-copy strong { color: #fff; font-size: 14.5px; font-weight: 600; }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-copy small { color: var(--ec-call-muted); font-size: 12.5px; }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-ico {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.8);
  }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-ico.is-missed { color: #f87171; }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-del {
    position: absolute; top: 0; right: 0; bottom: 0; width: 0; min-width: 0; z-index: 0; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    border: 0; border-radius: 0 12px 12px 0; padding: 0; background: #ef4444; color: #fff;
    font: inherit; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: width 0.25s ease;
  }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-del svg { width: 18px; height: 18px; flex: 0 0 auto; }
  #ec-claude-shell-final .ecf-calls-wrap .ec-calls-item.is-dragging :is(.ec-calls-row, .ec-calls-del) { transition: none; }

  /* ═════ Admin-Leiste (E3/E4) ═════════════════════════════════════════════
     Flaeche/Blur/Kante bestimmt die Admin-Glas-Stufe (ec-admin-glass.css, laedt danach);
     die monochromen Weisstoene unten gelten nur fuer Smoke/Obsidian, nie fuer Hell. */
  #ec-admin-elite-shell { --ap-sidebar-w: 260px; }
  #ec-admin-elite-shell.ec-ap-collapsed { --ap-sidebar-w: 64px; }
  html.ec-sb2-anim #ec-admin-elite-shell .ec-ap-layout { transition: grid-template-columns 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
  html:not(.ec-sb2-anim) #ec-admin-elite-shell .ec-ap-layout { transition: none; }
  #ec-admin-elite-shell .ec-ap-sidebar.ec-sb2-admin {
    --sb-line: rgba(255, 255, 255, 0.1);
    --sb-fg: rgba(255, 255, 255, 0.6);
    --sb-fg-hover: rgba(255, 255, 255, 0.9);
    --sb-field: rgba(255, 255, 255, 0.05);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }
  #ec-admin-elite-shell:not([data-ec-glass="light"]) .ec-sb2-admin .ec-ap-brand { min-height: 64px; padding: 0 12px 0 14px; border-bottom-color: rgba(255, 255, 255, 0.1); }
  #ec-admin-elite-shell:not([data-ec-glass="light"]) .ec-sb2-admin .ec-ap-mark {
    flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; color: #fff;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 0 18px rgba(255, 255, 255, 0.06);
  }
  #ec-admin-elite-shell:not([data-ec-glass="light"]) .ec-sb2-admin .ec-ap-name { flex: 1 1 auto; min-width: 0; color: #fff; }
  #ec-admin-elite-shell .ec-sb2-admin .ec-ap-sb2-search { padding: 12px 12px 0; }
  #ec-admin-elite-shell .ec-sb2-admin .ec-ap-nav { padding: 10px 12px; gap: 4px; }
  #ec-admin-elite-shell:not([data-ec-glass="light"]) .ec-sb2-admin .ec-ap-nav-item { color: rgba(255, 255, 255, 0.6); height: 42px; padding: 0 10px; }
  #ec-admin-elite-shell:not([data-ec-glass="light"]) .ec-sb2-admin .ec-ap-nav-item:hover { color: rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.05); }
  #ec-admin-elite-shell:not([data-ec-glass="light"]) .ec-sb2-admin .ec-ap-nav-item:hover .ec-ap-nav-icon { color: inherit; }
  #ec-admin-elite-shell:not([data-ec-glass="light"]) .ec-sb2-admin .ec-ap-nav-icon { flex: 0 0 20px; color: inherit; }
  #ec-admin-elite-shell:not([data-ec-glass="light"]) .ec-sb2-admin .ec-ap-nav-item.active {
    color: #fff; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  #ec-admin-elite-shell:not([data-ec-glass="light"]) .ec-sb2-admin .ec-ap-nav-item.active .ec-ap-nav-icon { color: #fff; }
  #ec-admin-elite-shell .ec-sb2-admin .ec-ap-nav-item.active::before { display: none; }
  #ec-admin-elite-shell:not([data-ec-glass="light"]) .ec-sb2-admin .ec-ap-nav-count { background: #fff; color: #050507; border-color: #fff; font-weight: 700; }
  #ec-admin-elite-shell .ec-sb2-admin .ec-ap-nav-count:empty { display: none; }
  #ec-admin-elite-shell .ec-sb2-admin .ec-ap-more-toggle { margin-top: 8px; }
  #ec-admin-elite-shell .ec-sb2-admin .ec-ap-more-chev { flex: 0 0 14px; transition: transform 0.2s ease; }
  #ec-admin-elite-shell .ec-sb2-admin .ec-ap-more-toggle[aria-expanded="true"] .ec-ap-more-chev { transform: rotate(180deg); }
  #ec-admin-elite-shell .ec-sb2-admin .ec-ap-more { display: flex; flex-direction: column; gap: 4px; padding-left: 0; }
  #ec-admin-elite-shell .ec-sb2-admin .ec-ap-more[hidden] { display: none; }
  #ec-admin-elite-shell:not([data-ec-glass="light"]) .ec-sb2-admin .ec-ap-foot { border-top-color: rgba(255, 255, 255, 0.1); }
  #ec-admin-elite-shell:not([data-ec-glass="light"]) .ec-sb2-admin .ec-ap-avatar { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; }
  #ec-admin-elite-shell .ec-sb2-filtered { display: none !important; }
  #ec-admin-elite-shell[data-ec-glass="light"] .ec-ap-sidebar.ec-sb2-admin {
    --sb-line: rgba(23, 23, 23, 0.12);
    --sb-fg: #535353;
    --sb-fg-hover: #121212;
    --sb-field: rgba(23, 23, 23, 0.04);
  }
  #ec-admin-elite-shell[data-ec-glass="light"] .ec-sb2-admin .ec-sb2-toggle:hover { background: rgba(23, 23, 23, 0.05); border-color: rgba(23, 23, 23, 0.12); }
  #ec-admin-elite-shell[data-ec-glass="light"] .ec-sb2-admin .ec-sb2-search:focus-within { border-color: rgba(23, 23, 23, 0.3); background: rgba(23, 23, 23, 0.06); }
  #ec-admin-elite-shell[data-ec-glass="light"] .ec-sb2-admin .ec-sb2-search input { color: #121212; }
  #ec-admin-elite-shell[data-ec-glass="light"] .ec-sb2-admin .ec-sb2-search input::placeholder { color: #656565; }
  #ec-admin-elite-shell[data-ec-glass="light"] .ec-sb2-admin .ec-sb2-search input::-webkit-search-cancel-button { filter: grayscale(1); }
  #ec-admin-elite-shell[data-ec-glass="light"] .ec-sb2-admin :is(.ec-sb2-toggle, .ec-ap-nav-item):focus-visible { outline-color: rgba(23, 23, 23, 0.6); }

  /* Kompakt */
  #ec-admin-elite-shell.ec-ap-collapsed .ec-sb2-admin .ec-ap-brand { flex-direction: column; justify-content: center; gap: 8px; padding: 12px 0; }
  #ec-admin-elite-shell.ec-ap-collapsed .ec-sb2-admin .ec-sb2-search { display: none; }
  #ec-admin-elite-shell.ec-ap-collapsed .ec-sb2-admin .ec-sb2-search-open { display: flex !important; }
  #ec-admin-elite-shell.ec-ap-collapsed .ec-sb2-admin .ec-ap-more-chev { display: none; }
  #ec-admin-elite-shell.ec-ap-collapsed .ec-sb2-admin .ec-ap-nav-item { padding: 0; justify-content: center; }
}

/* Admin unter 900 px bleibt wie bisher (app.css: automatische Icon-Leiste);
   Umschalter und Suchfeld waeren dort wirkungslos → aus. */
@media (max-width: 899px) {
  #ec-admin-elite-shell .ec-sb2-admin .ec-sb2-toggle,
  #ec-admin-elite-shell .ec-sb2-admin .ec-ap-sb2-search { display: none !important; }
}

/* §GROUP-UI-V2-2026-11-01 (G7): offizielles Logo (64-px-WebP aus assets/logo.png) statt SVG-Schild. */
#ec-sb2 .ec-sb2-mark.ec-sb2-mark--logo { padding: 0; overflow: hidden; background: #05070d; border-color: rgba(206, 206, 206, 0.28); }
#ec-sb2 .ec-sb2-mark--logo img { width: 100%; height: 100%; display: block; object-fit: cover; image-rendering: auto; -webkit-user-drag: none; }

/* §MENU-LANG-2026-11-11: „Sprache“ im Profilmenue — Kuerzel rechts, aufklappbare Auswahl als Glas-Segment
   (Deutsch | English | Polski), strikt monochrom wie die uebrigen Eintraege. */
#ec-sb2 .ec-sb2-menu .ec-sb2-lang-cur {
  margin-left: auto; padding: 2px 7px; border-radius: 999px; font: 700 10.5px/1.3 system-ui, sans-serif; letter-spacing: .06em;
  color: rgba(255, 255, 255, 0.72); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
}
#ec-sb2 .ec-sb2-menu .ec-sb2-lang {
  display: flex; gap: 2px; margin: 2px 4px 4px; padding: 3px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
}
#ec-sb2 .ec-sb2-menu .ec-sb2-lang[hidden] { display: none; }
#ec-sb2 .ec-sb2-menu .ec-sb2-lang [role="menuitemradio"] {
  flex: 1 1 0; min-width: 0; height: 32px; padding: 0 4px; margin: 0; border: 0; border-radius: 7px; box-shadow: none;
  background: transparent; color: rgba(255, 255, 255, 0.75); font: 600 12.5px/1 system-ui, sans-serif; cursor: pointer;
}
#ec-sb2 .ec-sb2-menu .ec-sb2-lang [role="menuitemradio"]:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
#ec-sb2 .ec-sb2-menu .ec-sb2-lang [role="menuitemradio"][aria-checked="true"] { background: #fff; color: #000; }
#ec-sb2 .ec-sb2-menu .ec-sb2-lang [role="menuitemradio"]:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
html[data-ec-sb="collapsed"] #ec-sb2 .ec-sb2-menu .ec-sb2-lang-cur { display: inline-block; }
