/* ec-chat-head.css — §P1-UI-2026-11-08 · Desktop-Chat-Kopf: Icon-Gruppe (Regler · Schloss · ⋮),
   Schluessel-Ansicht und ⋮-Menue (ec-chat-head.js). Fuenf Shell-IDs: die Kopf-Regeln in
   desktop-overrides.css (1 ID, !important) und ec-composer-pill.css (4 IDs, „⚙“ unter 420 px) muessen verlieren. */

html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-chat-actions > .ec-chh-cluster {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  margin-left: 2px !important;
}
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-chat-actions .ec-chh-btn {
  position: relative !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  background: rgba(255, 255, 255, 0.025) !important;
  color: rgba(232, 232, 232, 0.78) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease !important;
}
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-chat-actions .ec-chh-btn::before {
  content: none !important;
  display: none !important;
}
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-chat-actions .ec-chh-btn svg {
  width: 18px !important;
  height: 18px !important;
  pointer-events: none;
}
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-chat-actions .ec-chh-btn:hover:not([disabled]),
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-chat-actions .ec-chh-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f6f5ff !important;
}
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-chat-actions .ec-chh-btn:focus-visible {
  outline: 2px solid rgba(113, 113, 113, 0.7) !important;
  outline-offset: 1px !important;
}
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-chat-actions .ec-chh-btn[disabled] {
  opacity: 0.4 !important;
  cursor: default !important;
}
/* Zustand des Raumschluessels als Punkt am Schloss (ersetzt den Chip „LIVE · AES-256“). */
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-chat-actions .ec-chh-key .ec-chh-dot {
  position: absolute !important;
  right: 5px !important;
  bottom: 5px !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  box-shadow: 0 0 0 2px rgba(10, 10, 16, 0.9) !important;
  background: transparent !important;
  pointer-events: none;
}
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-chat-actions .ec-chh-key[data-ec-key-state="e2ee"] .ec-chh-dot { background: #b8b8b8 !important; }
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-chat-actions .ec-chh-key[data-ec-key-state="password"] .ec-chh-dot { background: #9c9c9c !important; }
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-chat-actions .ec-chh-key[data-ec-key-state="open"] .ec-chh-dot { background: #c1c1c1 !important; }
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-chat-actions .ec-chh-key[data-ec-key-state="waiting"] .ec-chh-dot { background: #a1a1aa !important; }
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-chat-actions .ec-chh-key[data-ec-key-state="none"] .ec-chh-dot { display: none !important; }
/* Stellvertreter fuer §DESKTOP-RP: nie sichtbar (desktop-overrides gibt jedem Kopf-Knopf display:inline-flex). */
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-chat-actions > .ec-chh-rp-proxy,
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-chat-actions > .ec-chh-rp-proxy[hidden] {
  display: none !important;
}

/* ── Schluessel-Ansicht + ⋮-Menue (am <body>, Obsidian-Glas) ───────────────────────────── */
html body .ec-chh-menu,
html body .ec-chh-sheet {
  position: fixed;
  z-index: 2147482000;
  box-sizing: border-box;
  background: rgba(10, 10, 16, 0.92);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #ededed;
  font: 13px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
html body .ec-chh-menu[hidden],
html body .ec-chh-sheet[hidden] { display: none !important; }
html body .ec-chh-menu {
  min-width: 236px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
html body .ec-chh-menu button[data-ec-chh-act] {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 9px;
  color: rgba(237, 237, 237, 0.92);
  font: inherit;
  cursor: pointer;
}
html body .ec-chh-menu button[data-ec-chh-act]:hover,
html body .ec-chh-menu button[data-ec-chh-act]:focus-visible { background: rgba(255, 255, 255, 0.08); outline: none; }
html body .ec-chh-menu button[data-ec-chh-act].is-danger { color: #fca5a5; }
html body .ec-chh-menu button[aria-checked="true"]::after {
  content: "✓";
  margin-left: auto;
  color: #999999;
  font-weight: 700;
}
html body .ec-chh-menu .ec-chh-mi { display: inline-grid; place-items: center; width: 18px; height: 18px; opacity: .85; }
html body .ec-chh-menu .ec-chh-sep { height: 1px; margin: 4px 6px; background: rgba(255, 255, 255, 0.07); }

html body .ec-chh-sheet {
  width: min(360px, calc(100vw - 24px));
  padding: 14px 16px 16px;
}
html body .ec-chh-sheet .ec-chh-sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
html body .ec-chh-sheet .ec-chh-sheet-head strong { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 650; }
html body .ec-chh-sheet .ec-chh-sheet-ico {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto;
  background: rgba(184, 184, 184, 0.12); color: #b8b8b8; font-size: 15px;
}
html body .ec-chh-sheet .ec-chh-sheet-ico[data-st="password"] { background: rgba(156, 156, 156, 0.14); color: #9c9c9c; }
html body .ec-chh-sheet .ec-chh-sheet-ico[data-st="open"] { background: rgba(193, 193, 193, 0.14); color: #c1c1c1; font-weight: 800; }
html body .ec-chh-sheet .ec-chh-sheet-ico[data-st="waiting"],
html body .ec-chh-sheet .ec-chh-sheet-ico[data-st="none"] { background: rgba(161, 161, 170, 0.14); color: #d4d4d8; }
html body .ec-chh-sheet .ec-chh-x {
  all: unset; cursor: pointer; width: 28px; height: 28px; display: inline-grid; place-items: center;
  border-radius: 8px; color: rgba(237, 237, 237, 0.7); font-size: 18px; line-height: 1;
}
html body .ec-chh-sheet .ec-chh-x:hover,
html body .ec-chh-sheet .ec-chh-x:focus-visible { background: rgba(255, 255, 255, 0.08); color: #fff; outline: none; }
html body .ec-chh-sheet .ec-chh-sheet-body small {
  display: block; margin: 10px 0 4px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(214, 214, 214, 0.55);
}
html body .ec-chh-sheet .ec-chh-sheet-body p { margin: 8px 0 0; color: rgba(237, 237, 237, 0.78); }
html body .ec-chh-sheet .ec-chh-code {
  display: block; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06); font: 600 13.5px/1.7 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .06em; word-spacing: .25em; color: #f4f4f4; user-select: text; overflow-wrap: anywhere;
}
html body .ec-chh-sheet .ec-chh-code--id { font-size: 12.5px; color: rgba(237, 237, 237, 0.85); }
@media (prefers-reduced-motion: reduce) {
  html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-chat-actions .ec-chh-btn { transition: none !important; }
}

/* ── Kopf-Avatar (Owner 08.11.): 40 px Kreis wie in der Liste, Bild object-fit: cover, dezenter Rand ──────────── */
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-chat-head #ec-final-chat-avatar {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  flex: 0 0 40px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: linear-gradient(145deg, #333333, #1c1c1c) !important;
  color: #e3e3e3 !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
}
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-chat-head #ec-final-chat-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;
}
