/* ═══════════════════════════════════════════════════════════════════════════
   ec-ux-chat.css — §UX-2026-09-23
   Aufnahme-Dock, Sprach-Player, Kontextmenü (Milchglas), Antwort-Vorschau,
   aufgeräumte Eingabeleiste. Mobile-Regeln tragen #ec-mobile-shell fünffach —
   mobile-overrides.css eskaliert bis 4-4-3 (siehe Notiz Mobile-CSS-Kaskade).
   ═══════════════════════════════════════════════════════════════════════════ */
:root { --ec-ux-accent: var(--accent, #7c6af7); --ec-ux-red: #ff2d55; }

/* ── 1. Aufnahme-Dock ─────────────────────────────────────────────────── */
footer.ec-voice-recording { position: relative !important; }
.ec-voice-dock {
  position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; gap: 10px;
  padding: 0 10px; border-radius: inherit; background: var(--bg, #0d0d0d);
  color: #f4f4f4; animation: ec-vd-in .16s ease-out;
}
@keyframes ec-vd-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ec-voice-dock .ec-vd-btn {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  cursor: pointer; background: rgba(255,255,255,.08); color: #f4f4f4; padding: 0;
}
.ec-voice-dock .ec-vd-btn svg { width: 22px; height: 22px; fill: currentColor; }
.ec-voice-dock .ec-vd-trash { color: var(--ec-ux-red); background: rgba(255,45,85,.12); }
.ec-voice-dock .ec-vd-send { background: var(--ec-ux-accent); color: #fff; box-shadow: 0 6px 18px rgba(120, 120, 120, .45); }
.ec-voice-dock .ec-vd-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ec-voice-dock .ec-vd-rec { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ec-ux-red); animation: ec-vd-blink 1s steps(2, start) infinite; }
.ec-voice-dock.is-paused .ec-vd-rec { animation: none; opacity: .45; }
@keyframes ec-vd-blink { to { visibility: hidden; } }
.ec-voice-dock .ec-vd-time { flex: none; min-width: 38px; font: 600 15px/1 ui-monospace, "SF Mono", Menlo, monospace; font-variant-numeric: tabular-nums; }
.ec-voice-dock .ec-vd-wave { flex: 1 1 auto; min-width: 40px; height: 32px; color: var(--ec-ux-accent); }
.ec-voice-dock.is-sending { opacity: .6; pointer-events: none; }

/* ── 2. Sprach-Player ─────────────────────────────────────────────────── */
.ec-vp { display: flex; align-items: center; gap: 10px; width: min(290px, 72vw); padding: 2px 0; color: inherit; }
/* §MSG-TIME-2026-10-01: in der Blase nie breiter als deren Innenraum — auf 390 px
   (Blase max. min(80%, 340px) minus Polster ≈ 267 px) lief der 281-px-Player
   samt Tempo-Pille rechts über den Blasenrand. */
.ecm-msg .ec-vp, .ecf-live-message .ec-vp { max-width: 100%; min-width: 0; }
.ec-vp-play {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center;
  cursor: pointer; background: var(--ec-ux-accent); color: #fff;
}
.mine .ec-vp-play, .ecm-msg.mine .ec-vp-play, .ecf-live-message.mine .ec-vp-play { background: rgba(255,255,255,.95); color: #383838; }
.ec-vp-play svg { width: 20px; height: 20px; fill: currentColor; }
.ec-vp-play:focus-visible, .ec-vp-bars:focus-visible, .ec-vp-rate:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ec-vp-mid { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ec-vp-bars { height: 30px; display: flex; align-items: center; gap: 2px; cursor: pointer; touch-action: manipulation; }
.ec-vp-bars i { flex: 1 1 0; min-height: 3px; max-height: 100%; border-radius: 2px; background: currentColor; opacity: .32; transition: opacity .12s; }
.ec-vp-bars i.on { opacity: 1; }
.ec-vp-foot { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; opacity: .85; }
.ec-vp-time { font-variant-numeric: tabular-nums; }
.ec-vp-rate { border: 0; border-radius: 10px; padding: 2px 8px; font-weight: 700; font-size: 11px; line-height: 1.4; font-family: inherit; color: inherit; background: rgba(255,255,255,.14); cursor: pointer; min-width: 36px; }

/* ── 3. Kontextmenü (Milchglas) ───────────────────────────────────────── */
.ec-ctx-overlay { position: fixed; inset: 0; z-index: 2147482000; background: rgba(6,4,14,0); transition: background .16s ease; }
.ec-ctx-overlay.is-open { background: rgba(6,4,14,.45); }
.ec-ctx-lift { position: fixed; pointer-events: none; transform-origin: center; transition: transform .16s ease; filter: drop-shadow(0 10px 30px rgba(0,0,0,.55)); }
.ec-ctx-overlay.is-open .ec-ctx-lift { transform: scale(1.03); }
.ec-ctx-lift > * { margin: 0 !important; }
.ec-ctx-sheet {
  position: fixed; min-width: 232px; max-width: min(300px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto;
  padding: 6px; border-radius: 18px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(28, 28, 28, .85); -webkit-backdrop-filter: blur(25px) saturate(140%); backdrop-filter: blur(25px) saturate(140%);
  box-shadow: 0 18px 50px rgba(0,0,0,.5); color: #f2f2f2;
  opacity: 0; transform: scale(.95); transform-origin: top center; transition: opacity .16s ease, transform .16s ease;
}
.ec-ctx-overlay.is-open .ec-ctx-sheet { opacity: 1; transform: scale(1); }
.ec-ctx-react { display: flex; justify-content: space-between; gap: 2px; padding: 4px 4px 8px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ec-ctx-react button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; }
.ec-ctx-react button:hover, .ec-ctx-react button:focus-visible { background: rgba(255,255,255,.1); outline: none; }
.ec-ctx-item {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 12px;
  background: transparent; color: inherit; font-weight: 500; font-size: 15px; line-height: 1.2; font-family: inherit; text-align: left; cursor: pointer;
}
.ec-ctx-item:hover, .ec-ctx-item:focus-visible { background: rgba(255,255,255,.08); outline: none; }
.ec-ctx-item.is-danger { color: #ff6b86; }
.ec-ctx-ico { width: 22px; text-align: center; font-size: 17px; opacity: .9; }
.ec-ctx-sep { height: 1px; margin: 4px 8px; background: rgba(255,255,255,.08); }
.ec-ctx-title { padding: 10px 14px 6px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: rgba(242, 242, 242, .75); }
.ec-ctx-kv { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.ec-ctx-kv span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: rgba(242, 242, 242, .55); }
.ec-ctx-kv strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.ec-ctx-pressed { transform: scale(.97); transition: transform .12s ease; }
@media (pointer: coarse) {
  #ec-mobile-chat-stream [data-msg-id], #ec-final-chat-stream [data-msg-id] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
}

/* ── 4. Antwort-Vorschau über der Eingabeleiste ───────────────────────── */
.ec-reply-chip {
  display: flex; align-items: center; gap: 10px; margin: 0 10px 6px; padding: 8px 10px 8px 12px; border-radius: 12px;
  border-left: 3px solid var(--ec-ux-accent); background: rgba(120, 120, 120, .12); color: #f2f2f2; min-width: 0;
}
.ec-reply-chip-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ec-reply-chip-body strong { font-size: 12.5px; color: var(--ec-ux-accent); }
.ec-reply-chip-body span { font-size: 13px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-reply-chip-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: inherit; cursor: pointer; }

/* ── 5. Eingabeleiste: Handy ──────────────────────────────────────────── */
html body #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell footer.ec-mobile-composer { align-items: flex-end !important; }
html body #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell footer.ec-mobile-composer textarea#ec-mobile-msg-input {
  display: block !important; flex: 1 1 auto !important; min-width: 0 !important; box-sizing: border-box !important;
  height: 46px; min-height: 46px !important; max-height: 140px !important; resize: none !important;
  padding: 12px 12px !important; margin: 0 !important; line-height: 20px !important; font-family: inherit !important; font-size: 16px !important;
  color: rgb(248,251,255) !important; background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.1) !important; border-radius: 14px !important; overflow-y: hidden;
}
html body #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell footer.ec-mobile-composer textarea#ec-mobile-msg-input::placeholder { color: rgba(255,255,255,.4) !important; }
html body #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell footer.ec-mobile-composer textarea#ec-mobile-msg-input:focus { border-color: rgba(120, 120, 120, .55) !important; outline: none !important; }
html body #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell footer.ec-mobile-composer:not(.ec-has-text) [data-ecm-send],
html body #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell footer.ec-mobile-composer.ec-has-text [data-ecm-voice] { display: none !important; }

/* ── 6. Eingabeleiste: Desktop ────────────────────────────────────────── */
body #ec-claude-shell-final#ec-claude-shell-final .ecf-composer { align-items: flex-end !important; }
body #ec-claude-shell-final#ec-claude-shell-final .ecf-composer textarea#ec-final-msg-input {
  display: block !important; flex: 1 1 auto !important; min-width: 0 !important; box-sizing: border-box !important;
  height: 40px; min-height: 40px !important; max-height: 160px !important; resize: none !important; margin: 0 !important;
  padding: 10px 14px !important; line-height: calc(var(--ec-font-size, 15px) * 1.34) !important; font-family: inherit !important;
  /* §FONT-SIZE-INPUT-2026-10-01: vorher fest 15px — der S/M/L/XL-Schalter (ec-theme-layer.css,
     niedrigere Spezifität) kam im Desktop-Eingabefeld nie an. */
  font-size: var(--ec-font-size, 15px) !important;
  color: rgb(244, 244, 244) !important; background: transparent !important; border: 0 !important; overflow-y: hidden;
}
body #ec-claude-shell-final#ec-claude-shell-final .ecf-composer textarea#ec-final-msg-input::placeholder { color: rgba(214, 214, 214, .42) !important; }
body #ec-claude-shell-final#ec-claude-shell-final .ecf-composer textarea#ec-final-msg-input:focus { outline: none !important; }
body #ec-claude-shell-final#ec-claude-shell-final .ecf-composer:not(.ec-has-text) .ecf-send-btn,
body #ec-claude-shell-final#ec-claude-shell-final .ecf-composer.ec-has-text .ecf-voice-btn { display: none !important; }
body #ec-claude-shell-final#ec-claude-shell-final .ecf-composer .ecf-send-btn {
  flex: none !important; width: 42px !important; height: 42px !important; min-width: 0 !important; padding: 0 !important;
  border-radius: 50% !important; display: grid !important; place-items: center !important;
}
body #ec-claude-shell-final#ec-claude-shell-final .ecf-composer .ecf-send-btn svg,
body #ec-claude-shell-final#ec-claude-shell-final .ecf-composer .ecf-voice-btn svg { width: 20px; height: 20px; }
body #ec-claude-shell-final#ec-claude-shell-final .ecf-composer .ecf-voice-btn { flex: none !important; display: grid !important; place-items: center !important; }

@media (prefers-reduced-motion: reduce) {
  .ec-voice-dock, .ec-ctx-sheet, .ec-ctx-overlay, .ec-ctx-lift, .ec-vp-bars i { animation: none !important; transition: none !important; }
  .ec-voice-dock .ec-vd-rec { animation: none; }
}

/* ── 7. Gerätesperre wirklich sichtbar (§LOCK-VISUAL-2026-09-23) ─────────
   Vorher blieb der Chat hinter bzw. statt der PIN-Abfrage sichtbar. */
html body.ec-device-locked #ec-claude-shell-final#ec-claude-shell-final,
html body.ec-device-locked #cd-shell#cd-shell,
html body.ec-device-locked #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell { visibility: hidden !important; }
html body.ec-device-locked #pin-screen#pin-screen#pin-screen {
  display: flex !important; visibility: visible !important; opacity: 1 !important;
  position: fixed !important; inset: 0 !important; z-index: 2147483000 !important;
  background: var(--bg, #07070f) !important; overflow: auto !important;
}

/* §LOCK-RECOVERY-Z-2026-09-25 — der eigene Dialog der Sperre lag UNTER ihr.
   Nachgemessen im Browser, beide Breiten:
     #pin-screen        z 2147483000  (die Regel direkt darüber)
     #pin-recovery-modal z 2147482600 mobil (mobile-overrides.css, Modal-Band)
                         z 9999       am Desktop (desktop-overrides.css)
   Wer auf dem Sperrbildschirm "🔑 Wiederherstellungscode eingeben" tippte,
   öffnete also einen Dialog, der vollständig hinter der Sperre lag: im DOM
   offen, auf dem Schirm unsichtbar. Der Knopf wirkte kaputt — und das ist
   ausgerechnet der einzige Weg zurück, wenn man die Geräte-PIN vergessen hat.
   Absichtlich NUR dieser eine Dialog und nicht `.modal-overlay` pauschal:
   closeActiveModalsForLock() schließt beim Sperren alles andere, eine
   Pauschalregel würde also nur noch Dialoge hochheben, die WÄHREND der Sperre
   von irgendwo aufgehen — genau die sollen nicht über die Sperre dürfen.
   2147483100 liegt über der Sperre und unter dem Toast (2147483200), damit die
   Rückmeldung "PIN zurückgesetzt" weiterhin obenauf sichtbar bleibt.
   Nur z-index, bewusst sonst nichts: display/visibility waren nie das Problem —
   nachgemessen war der Dialog offen und sichtbar gesetzt, er lag nur darunter.
   Ein zusätzliches `display: flex !important` hätte nur einer künftigen Regel
   im Weg gestanden, die ihn aus gutem Grund ausblenden will. */
html body.ec-device-locked #pin-recovery-modal#pin-recovery-modal#pin-recovery-modal {
  z-index: 2147483100 !important;
}

/* ── 8. Uhrzeit + Status unten rechts in der Blase — §MSG-TIME-2026-10-01 ──
   Markup: ecMsgMetaHtml() (Mobile-Spiegel), ecFinalMsgMeta() (Desktop-Spiegel).
   Eigene Zeile, bündig rechts: so liegt weder langer Text noch eine
   Linkvorschau unter der Uhrzeit, und die Blase ist nie schmaler als die Meta.
   Farbe erbt die Textfarbe der Blase — dadurch auf der hellen eigenen Blase
   (Verlauf, weißer Text) wie auf der dunklen fremden lesbar; Transparenz nur
   über opacity, damit ⚠️ (fehlgeschlagen) voll deckend bleiben kann.
   Bewusst <span> statt <time>: mobile-overrides.css §26.5 zwingt jedes
   `.ecm-msg time` auf display:block / 9.5px. */
html body #ec-mobile-shell .ecm-msg .msg-meta,
html body #ec-claude-shell-final .ecf-live-message .msg-meta.ecf-msg-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  align-self: flex-end !important;      /* Flex-Spalte (Mobile-Blase) */
  gap: 4px !important;
  margin: 4px 0 0 auto !important;
  padding: 0 0 0 12px !important;       /* Luft zum Text links daneben */
  font-size: 11px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  color: inherit !important;
  font-variant-numeric: tabular-nums;
  user-select: none;
  -webkit-user-select: none;
}
.msg-meta .msg-time,
.ecm-media-stamp .msg-time {
  font-size: 11px;
  opacity: .75;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.msg-meta .msg-status { font-size: 11px; opacity: .75; letter-spacing: -.12em; }
.msg-meta .msg-status.is-read { color: #e3e3e3; opacity: 1; }
.msg-meta .msg-status.is-failed { color: #fca5a5; opacity: 1; letter-spacing: 0; }
.msg-meta .ecf-msg-enc { opacity: .6 !important; }
/* Bild-Overlay: der Stempel hat seinen eigenen dunklen Grund. */
.ecm-media-stamp .msg-time { font-size: inherit; opacity: 1; }
.ecm-media-stamp .msg-status { font-size: inherit; letter-spacing: -.12em; }
.ecm-media-stamp .msg-status.is-read { color: #e3e3e3; }
/* Outbox-Status steht in der Meta-Zeile → zweite Zeile (::after) aus. */
.ecm-msg.ec-has-status[data-ec-outbox]::after,
.ecf-live-message.ec-has-status[data-ec-outbox]::after { content: none !important; display: none !important; }

/* ── §LINK-PREVIEW-E2EE-2026-10-18: Rich-Link-Karte (Daten aus dem Chiffretext) ──
   Oben 16:9-Banner (eingebettetes JPEG, kein Fremdabruf), unten Glasflaeche mit
   Domain-Plakette, zweizeiligem Titel und Beschreibung. Die Mobile-Regel
   ".ecm-msg img { height:auto; border-radius:12px }" (mobile-overrides) wird mit
   der langen Selektor-Kette unten ueberstimmt. */
.ec-lp-card {
  display: block;
  width: min(320px, 100%);
  max-width: 100%;
  margin-top: 8px;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-tap-highlight-color: transparent;
}
.ec-lp-banner {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background: #0f0f0f;
}
.ec-lp-card .ec-lp-banner img,
body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chat"] .ecm-chat-stream .ecm-msg .ec-lp-card .ec-lp-banner img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  aspect-ratio: 16 / 9;
  object-fit: cover !important;
  border-radius: 10px 10px 0 0 !important;
  margin: 0 !important;
}
.ec-lp-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.ec-lp-play::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 17px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.ec-lp-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 12px 11px;
  background: rgba(20, 20, 20, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}
.ec-lp-domain {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
}
.ec-lp-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  overflow-wrap: anywhere;
}
.ec-lp-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.62);
  overflow-wrap: anywhere;
}

/* §LINK-PREVIEW-SERVER-2026-11-09: Musik-Karte (Spotify, SoundCloud, Apple Music …) = quadratisches Cover links,
   Plattform-Plakette, Titel weiss/fett, Interpret silbern. Video/Link behalten das 16:9-Banner oben. */
.ec-lp-card { background: rgba(18, 18, 20, 0.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.ec-lp-card.is-music { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 0; }
.ec-lp-card.is-music.no-art { grid-template-columns: minmax(0, 1fr); }
.ec-lp-card.is-music .ec-lp-banner { aspect-ratio: 1 / 1; width: 64px; margin: 6px; border-radius: 10px; }
.ec-lp-card.is-music .ec-lp-banner img,
body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chat"] .ecm-chat-stream .ecm-msg .ec-lp-card.is-music .ec-lp-banner img {
  aspect-ratio: 1 / 1; border-radius: 10px !important;
}
.ec-lp-card.is-music .ec-lp-body { border-top: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 8px 12px 8px 4px; min-width: 0; }
.ec-lp-note {
  position: absolute; right: 4px; bottom: 4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  color: #fff; background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.3);
}
.ec-lp-card .ec-lp-title { color: #ffffff; font-weight: 700; }
.ec-lp-author {
  display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 12.5px; line-height: 1.35; color: #c0c0c8;
}

/* ── §GROUP-ECDH-INVITE-2026-10-18: Modal „Mitglied per @Name hinzufügen“ ── */
.ec-gi { display: flex; flex-direction: column; gap: 10px; }
.ec-gi-search {
  width: 100%; box-sizing: border-box; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--border, rgba(255,255,255,0.12)); background: var(--bg2, rgba(255,255,255,0.04));
  color: var(--text); font-size: 15px; outline: none;
}
.ec-gi-search:focus { border-color: var(--accent, #787878); }
.ec-gi-list { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
.ec-gi-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px;
  background: var(--bg2, rgba(255,255,255,0.03)); border: 1px solid var(--border, rgba(255,255,255,0.06));
}
.ec-gi-avatar {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(120, 120, 120, 0.14); font-size: 16px; font-weight: 700; color: var(--accent, #787878);
}
.ec-gi-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ec-gi-name strong, .ec-gi-name small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-gi-name strong { font-size: 14px; }
.ec-gi-name small { font-size: 12px; color: var(--text2); }
.ec-gi-add { flex: 0 0 auto !important; width: auto !important; min-width: 96px; max-width: 45%; min-height: 36px; margin: 0 !important; padding: 6px 12px !important; font-size: 13px !important; }
.ec-gi-add[disabled] { opacity: .45; cursor: default; }
.ec-gi-add.is-busy { opacity: 1; }
.ec-gi-spin {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; animation: ec-gi-spin .8s linear infinite;
}
@keyframes ec-gi-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ec-gi-spin { animation-duration: 2.4s; } }
.ec-gi-empty { padding: 14px 6px; font-size: 13px; color: var(--text2); text-align: center; }
.ec-gi-hint { font-size: 11px; line-height: 1.45; color: var(--text2); }

/* ═══════════════════════════════════════════════════════════════════════════
   §CYBER-GLASS-2026-10-18 — Modale, Einstellungen, Chat-Info im Stil der
   Desktop-Leiste (desktop-rail-glass.css): Obsidian #080a10, Glas mit
   blur(18–20px), feine violette Raender, Akzent #7c3aed → #9333ea,
   Outline-Icons 20×20 / Strich 1.8 aus #ec-gl-sprite (index.html).
   Diese Datei laedt VOR ec-settings-tg/ec-chats-2026/desktop-rail-glass:
   modalspezifische Regeln tragen die Modal-ID doppelt, Desktop-Shell-Regeln
   #ec-claude-shell-final dreifach (rail-glass nutzt zwei) — sonst gewinnen
   die !important-Regeln aus app.css/desktop-overrides.css.
   Farbthemen ≠ oled-midnight toenen den Akzent wie die Leiste.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --ec-gl-acc: #7c3aed;
  --ec-gl-acc-2: #9333ea;
  --ec-gl-line: rgba(139, 92, 246, 0.16);
  --ec-gl-line-hi: rgba(168, 85, 247, 0.45);
  --ec-gl-dim: #94a3b8;
  --ec-gl-mute: #64748b;
}
html[data-theme]:not([data-theme="oled-midnight"]) {
  --ec-gl-acc: var(--accent-color, #7c3aed);
  --ec-gl-acc-2: var(--accent-2, #9333ea);
}

/* ── 1. Globale Bausteine ─────────────────────────────────────────────── */
.ec-gl-ico { width: 20px; height: 20px; flex: none; display: block; }
.ec-gl-mini-ico { display: inline-flex; flex: none; }
.ec-gl-mini-ico .ec-gl-ico { width: 16px; height: 16px; }

.ec-cyber-modal {
  background: rgba(16, 16, 16, 0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(113, 113, 113, 0.18);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 25px rgba(85, 85, 85, 0.08);
  color: #e7e7e7;
}
.ec-action-capsule {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(113, 113, 113, 0.12);
  border-radius: 14px; min-height: 48px; color: #a1a1a1;
  transition: all 0.2s ease;
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  font: inherit; font-size: 14.5px; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ec-action-capsule:hover, .ec-action-capsule:focus-visible, .ec-action-capsule.is-active, .ec-action-capsule:active {
  background: linear-gradient(135deg, rgba(85, 85, 85, 0.28), rgba(85, 85, 85, 0.12));
  border-color: rgba(114, 114, 114, 0.45); color: #fff;
  box-shadow: 0 0 16px rgba(85, 85, 85, 0.2); outline: none;
}
.ec-input-glass {
  background: rgba(8, 10, 16, 0.75);
  border: 1px solid rgba(113, 113, 113, 0.22);
  border-radius: 12px; color: #fff; padding: 12px 14px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font: inherit; font-size: 14px; width: 100%; box-sizing: border-box;
}
.ec-input-glass::placeholder { color: #727272; }
.ec-input-glass:focus { border-color: #555555; box-shadow: 0 0 14px rgba(85, 85, 85, 0.3); }
.ec-btn-gradient {
  background: linear-gradient(135deg, #555555, #555555); color: #fff; font-weight: 600;
  border-radius: 14px; border: none; padding: 12px 20px;
  box-shadow: 0 4px 18px rgba(85, 85, 85, 0.35); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit;
  transition: filter .2s ease, box-shadow .2s ease;
}
.ec-btn-gradient:hover, .ec-btn-gradient:focus-visible { filter: brightness(1.1); box-shadow: 0 6px 24px rgba(85, 85, 85, 0.5); outline: none; }
.ec-btn-gradient:disabled { opacity: .6; cursor: default; }
.ec-danger-card {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 16px;
}
.ec-danger-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5; border-radius: 12px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; font-family: inherit; font-size: 14px;
  transition: background .2s ease, box-shadow .2s ease;
}
.ec-danger-btn:hover, .ec-danger-btn:focus-visible {
  background: rgba(239, 68, 68, 0.24); box-shadow: 0 0 16px rgba(239, 68, 68, 0.22); outline: none;
}

/* Bausteine innerhalb der Glas-Modale */
.ec-gl-badge {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(113, 113, 113, 0.15); color: #bdbdbd;
}
.ec-gl-chev { flex: none; margin-left: auto; display: inline-flex; color: #727272; }
.ec-gl-chev .ec-gl-ico { width: 18px; height: 18px; }
.ec-gl-title { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 17px; }
.ec-gl-title-ico { display: inline-flex; color: #999999; }
.ec-gl-outline-pill, .ec-gl-outline {
  background: transparent; border: 1px solid rgba(113, 113, 113, 0.25); color: #d4d4d4;
  border-radius: 999px; min-height: 46px; display: flex; align-items: center; justify-content: center;
  gap: 8px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 0 18px;
  transition: all .2s ease;
}
.ec-gl-outline-pill:hover, .ec-gl-outline:hover { border-color: rgba(114, 114, 114, 0.45); color: #fff; background: rgba(85, 85, 85, 0.1); }
.ec-gl-search { position: relative; display: block; }
.ec-gl-search-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #727272; display: inline-flex; pointer-events: none; }
.ec-gl-search-ico .ec-gl-ico { width: 18px; height: 18px; }
.ec-gl-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 120px; padding: 18px; text-align: center; color: #727272; font-size: 14px;
  background: rgba(0, 0, 0, 0.3); border: 1px dashed rgba(113, 113, 113, 0.2); border-radius: 16px;
}
.ec-gl-empty-ico { color: rgba(153, 153, 153, 0.55); display: inline-flex; }
.ec-gl-empty-ico .ec-gl-ico { width: 28px; height: 28px; }

/* ── 2. „Neuer Chat“ ──────────────────────────────────────────────────── */
html body .modal-overlay#new-chat-menu-modal#new-chat-menu-modal > .modal.ec-cyber-modal,
html body .modal-overlay#notes-modal#notes-modal > .modal.ec-cyber-modal,
html body .modal-overlay#support-modal#support-modal > .modal-box.ec-cyber-modal,
html body .modal-overlay#room-options-modal#room-options-modal > .modal.ec-cyber-modal {
  background: rgba(16, 16, 16, 0.88) !important;
  backdrop-filter: blur(20px) !important; -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(113, 113, 113, 0.18) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 25px rgba(85, 85, 85, 0.08) !important;
  color: #e7e7e7 !important;
}
@media (min-width: 769px) {
  html body .modal-overlay#new-chat-menu-modal#new-chat-menu-modal > .modal.ec-cyber-modal,
  html body .modal-overlay#support-modal#support-modal > .modal-box.ec-cyber-modal {
    width: min(420px, calc(100vw - 32px)) !important; max-width: 420px !important; border-radius: 22px !important;
  }
  html body .modal-overlay#notes-modal#notes-modal > .modal.ec-cyber-modal {
    width: min(520px, calc(100vw - 32px)) !important; max-width: 520px !important; border-radius: 22px !important;
  }
  html body .modal-overlay#room-options-modal#room-options-modal > .modal.ec-cyber-modal { border-radius: 22px !important; }
  html body .modal-overlay#new-chat-menu-modal#new-chat-menu-modal .modal-handle { display: none !important; }
}
html body #new-chat-menu-modal#new-chat-menu-modal .ec-gl-title {
  justify-content: center !important; text-align: center !important; margin-bottom: 18px !important;
  color: #fff !important; -webkit-text-fill-color: #fff !important; background: none !important;
}
html body #new-chat-menu-modal#new-chat-menu-modal .nc-actions { display: flex !important; flex-direction: column !important; gap: 10px !important; align-items: stretch !important; }
html body #new-chat-menu-modal#new-chat-menu-modal .nc-action.ec-action-capsule {
  display: flex !important; align-items: center !important; gap: 12px !important; width: 100% !important;
  min-height: 52px !important; padding: 0 14px 0 10px !important; border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.03) !important; border: 1px solid rgba(113, 113, 113, 0.12) !important;
  color: #e7e7e7 !important; font-size: 14.5px !important; font-weight: 500 !important;
  box-shadow: none !important; transform: none !important; text-align: left !important;
}
html body #new-chat-menu-modal#new-chat-menu-modal .nc-action.ec-action-capsule:hover,
html body #new-chat-menu-modal#new-chat-menu-modal .nc-action.ec-action-capsule:focus-visible {
  background: linear-gradient(135deg, rgba(85, 85, 85, 0.28), rgba(85, 85, 85, 0.12)) !important;
  border-color: rgba(114, 114, 114, 0.45) !important; color: #fff !important;
  box-shadow: 0 0 16px rgba(85, 85, 85, 0.2) !important;
}
html body #new-chat-menu-modal#new-chat-menu-modal .nc-action::before,
html body #new-chat-menu-modal#new-chat-menu-modal .nc-action::after { content: none !important; }
html body #new-chat-menu-modal#new-chat-menu-modal .nc-action:hover .ec-gl-chev { color: #bdbdbd; }
html body #new-chat-menu-modal#new-chat-menu-modal .nc-label { flex: 1 1 auto; min-width: 0; }
html body #new-chat-menu-modal#new-chat-menu-modal .nc-ico.ec-gl-badge {
  width: 34px !important; height: 34px !important; min-width: 34px !important; border-radius: 10px !important;
  font-size: 0 !important; background: rgba(113, 113, 113, 0.15) !important; color: #bdbdbd !important;
}
html body #new-chat-menu-modal#new-chat-menu-modal .nc-contacts { border-top-color: rgba(113, 113, 113, 0.14) !important; }
html body #new-chat-menu-modal#new-chat-menu-modal .nc-contacts-head { font-size: 11px !important; letter-spacing: 1px !important; color: #727272 !important; }
html body #new-chat-menu-modal#new-chat-menu-modal .nc-contacts-search.ec-input-glass {
  min-height: 44px !important; padding: 0 14px 0 40px !important; border-radius: 12px !important;
  background: rgba(8, 10, 16, 0.75) !important; border: 1px solid rgba(113, 113, 113, 0.22) !important;
  color: #fff !important; font-size: 14px !important; box-shadow: none !important;
}
html body #new-chat-menu-modal#new-chat-menu-modal .nc-contacts-search.ec-input-glass:focus {
  border-color: #555555 !important; box-shadow: 0 0 14px rgba(85, 85, 85, 0.3) !important;
}
/* §UI-AUDIT-2026-11-03 (F2): unter 16 px zoomen iOS/Android-WebView beim Fokus in die Seite. */
@media (pointer: coarse) {
  html body #new-chat-menu-modal#new-chat-menu-modal .nc-contacts-search.ec-input-glass { font-size: 16px !important; }
}
html body #new-chat-menu-modal#new-chat-menu-modal .nc-contact {
  grid-template-columns: 42px minmax(0, 1fr) 18px !important;
  border: 1px solid rgba(113, 113, 113, 0.12) !important; border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.03) !important; transition: all .2s ease;
}
html body #new-chat-menu-modal#new-chat-menu-modal .nc-contact:hover,
html body #new-chat-menu-modal#new-chat-menu-modal .nc-contact:focus-visible {
  background: linear-gradient(135deg, rgba(85, 85, 85, 0.2), rgba(85, 85, 85, 0.08)) !important;
  border-color: rgba(114, 114, 114, 0.4) !important; outline: none;
}
html body #new-chat-menu-modal#new-chat-menu-modal .nc-av {
  background: linear-gradient(145deg, #4e4e4e, #767676) !important; color: #fff;
  box-shadow: 0 0 0 1px rgba(175, 175, 175, 0.35), 0 0 14px rgba(175, 175, 175, 0.35) !important;
}
html body #new-chat-menu-modal#new-chat-menu-modal .nc-copy strong { color: #fff !important; font-weight: 600; }
html body #new-chat-menu-modal#new-chat-menu-modal .nc-copy small { color: #a1a1a1; }
html body #new-chat-menu-modal#new-chat-menu-modal .nc-go { color: #727272 !important; display: inline-flex; }
html body #new-chat-menu-modal#new-chat-menu-modal .nc-go .ec-gl-ico { width: 18px; height: 18px; }
html body #new-chat-menu-modal#new-chat-menu-modal .nc-cancel.ec-gl-outline-pill {
  justify-content: center !important; background: transparent !important; border: 1px solid rgba(113, 113, 113, 0.25) !important;
  border-radius: 999px !important; color: #d4d4d4 !important; min-height: 46px !important; margin-top: 4px;
}
html body #new-chat-menu-modal#new-chat-menu-modal .nc-cancel.ec-gl-outline-pill:hover { color: #fff !important; border-color: rgba(114, 114, 114, 0.45) !important; background: rgba(85, 85, 85, 0.1) !important; }
html body #new-chat-menu-modal#new-chat-menu-modal .nc-cancel .nc-label { flex: 0 0 auto; }

/* ── 3. Verschluesselte Notizen ───────────────────────────────────────── */
html body #notes-modal#notes-modal .ec-gl-drag {
  width: 38px !important; height: 4px !important; background: rgba(113, 113, 113, 0.35) !important;
  border-radius: 2px !important; margin: 0 auto 16px !important; display: block !important; opacity: 1 !important;
}
html body #notes-modal#notes-modal .ec-gl-notes-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
html body #notes-modal#notes-modal .ec-gl-title {
  margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: 17px !important;
  color: #fff !important; -webkit-text-fill-color: #fff !important; background: none !important; min-width: 0;
}
html body #notes-modal#notes-modal .ec-gl-new { padding: 8px 14px !important; border-radius: 999px !important; font-size: 13px !important; min-height: 36px; }
html body #notes-modal#notes-modal .ec-gl-new .ec-gl-ico { width: 15px; height: 15px; }
html body #notes-modal#notes-modal .ec-gl-notes-list { display: flex; flex-direction: column; gap: 10px; max-height: 55dvh; overflow-y: auto; }
/* #notes-list > * bekommt anderswo einen festen Kartenrahmen (!important) */
html body #notes-modal#notes-modal #notes-list > .ec-gl-empty {
  background: rgba(0, 0, 0, 0.3) !important; border: 1px dashed rgba(113, 113, 113, 0.2) !important;
  border-radius: 16px !important; min-height: 120px !important; padding: 18px !important; box-shadow: none !important;
  color: #727272 !important; cursor: default !important;
}
html body #notes-modal#notes-modal .ec-gl-note {
  min-height: 56px; padding: 8px 14px 8px 10px; background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(113, 113, 113, 0.12) !important; border-radius: 14px !important; margin: 0 !important;
}
html body #notes-modal#notes-modal .ec-gl-note:hover {
  background: linear-gradient(135deg, rgba(85, 85, 85, 0.28), rgba(85, 85, 85, 0.12)) !important;
  border-color: rgba(114, 114, 114, 0.45) !important;
}
.ec-gl-note-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ec-gl-note-title { color: #fff; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-gl-note-meta { color: #727272; font-size: 11px; font-family: var(--font-mono, ui-monospace, monospace); }
html body #notes-modal#notes-modal .ec-gl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
html body #notes-modal#notes-modal .ec-gl-pair .ec-action-capsule {
  justify-content: center; border-radius: 999px; color: #d4d4d4; background: transparent; border-color: rgba(113, 113, 113, 0.25);
  font-weight: 600; font-size: 14px; gap: 8px;
}
html body #notes-modal#notes-modal .ec-gl-pair .ec-action-capsule:hover { color: #fff; }

/* ── 6. Hilfe & Support (dynamisch, ui-render.js openPremiumSupport) ──── */
html body #support-modal#support-modal > .ec-modal-help { width: 100%; max-width: 420px; padding: 24px !important; display: flex; flex-direction: column; gap: 12px; }
html body #support-modal#support-modal .ec-gl-help-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
html body #support-modal#support-modal .ec-gl-title { font-size: 16px; }
.ec-gl-close {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; padding: 0;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(113, 113, 113, 0.18); color: #a1a1a1; cursor: pointer;
  transition: all .2s ease;
}
.ec-gl-close .ec-gl-ico { width: 18px; height: 18px; }
.ec-gl-close:hover, .ec-gl-close:focus-visible { color: #fff; border-color: rgba(114, 114, 114, 0.45); background: rgba(85, 85, 85, 0.18); outline: none; }
html body #support-modal#support-modal .ec-input-glass {
  background: rgba(8, 10, 16, 0.75) !important; border: 1px solid rgba(113, 113, 113, 0.22) !important;
  border-radius: 12px !important; color: #fff !important; padding: 12px 14px !important; margin: 0 !important;
}
html body #support-modal#support-modal .ec-input-glass:focus { border-color: #555555 !important; box-shadow: 0 0 14px rgba(85, 85, 85, 0.3) !important; }
html body #support-modal#support-modal textarea.ec-input-glass { resize: none; min-height: 110px; font-family: inherit; }
.ec-gl-hint { display: flex; gap: 8px; align-items: flex-start; font-size: 11.5px; line-height: 1.5; color: #a1a1a1; }
.ec-gl-hint .ec-gl-mini-ico { color: #c1c1c1; margin-top: 1px; }
.ec-gl-hint .ec-gl-ico { width: 14px; height: 14px; }
.ec-gl-wide { width: 100%; min-height: 48px; }
html body #support-modal#support-modal .ec-btn-gradient { margin-top: 4px; }

/* ── 5a. Chat-Info mobil (#room-options-modal) ────────────────────────── */
html body #room-options-modal#room-options-modal .ec-gm-card,
html body #room-options-modal#room-options-modal .ec-gm-e2e {
  background: rgba(255, 255, 255, 0.03) !important; border: 1px solid rgba(113, 113, 113, 0.12) !important; border-radius: 16px !important;
}
html body #room-options-modal#room-options-modal .ec-gm-card-icon,
html body #room-options-modal#room-options-modal .ec-gm-autodelete-icon,
html body #room-options-modal#room-options-modal .ec-gm-e2e-shield,
html body #room-options-modal#room-options-modal .ec-gm-row-icon {
  display: grid !important; place-items: center !important; flex: none !important;
  width: 34px !important; height: 34px !important; border-radius: 10px !important; font-size: 0 !important;
  background: rgba(113, 113, 113, 0.15) !important; border: 0 !important; color: #bdbdbd !important;
}
html body #room-options-modal#room-options-modal .ec-gm-e2e-shield { color: #b8b8b8 !important; background: rgba(155, 155, 155, 0.12) !important; }
html body #room-options-modal#room-options-modal .ec-gm-e2e-check { color: #b8b8b8 !important; display: inline-flex; }
html body #room-options-modal#room-options-modal .ec-gm-row {
  min-height: 48px !important; border-radius: 14px !important; gap: 12px !important;
  grid-template-columns: 34px minmax(0, 1fr) 18px !important; padding: 7px 12px 7px 8px !important;
  background: rgba(255, 255, 255, 0.03) !important; border: 1px solid rgba(113, 113, 113, 0.12) !important;
  color: #e7e7e7 !important; box-shadow: none !important; transition: all .2s ease !important;
}
html body #room-options-modal#room-options-modal .ec-gm-row:hover,
html body #room-options-modal#room-options-modal .ec-gm-row:focus-visible {
  background: linear-gradient(135deg, rgba(85, 85, 85, 0.28), rgba(85, 85, 85, 0.12)) !important;
  border-color: rgba(114, 114, 114, 0.45) !important; color: #fff !important; box-shadow: 0 0 16px rgba(85, 85, 85, 0.2) !important;
}
html body #room-options-modal#room-options-modal .ec-gm-row-chev { display: inline-flex !important; color: #727272 !important; margin-left: auto; }
html body #room-options-modal#room-options-modal .ec-gm-row-chev .ec-gl-ico { width: 18px; height: 18px; }
html body #room-options-modal#room-options-modal .ec-gm-row--danger {
  background: rgba(239, 68, 68, 0.06) !important; border-color: rgba(239, 68, 68, 0.25) !important; color: #fca5a5 !important;
}
html body #room-options-modal#room-options-modal .ec-gm-row--danger .ec-gm-row-icon { background: rgba(239, 68, 68, 0.15) !important; color: #fca5a5 !important; }
html body #room-options-modal#room-options-modal .ec-gm-row--danger:hover {
  background: rgba(239, 68, 68, 0.14) !important; border-color: rgba(239, 68, 68, 0.45) !important; box-shadow: 0 0 16px rgba(239, 68, 68, 0.18) !important; color: #fecaca !important;
}
html body #room-options-modal#room-options-modal .ec-gm-row--close { justify-content: center !important; border-radius: 999px !important; background: transparent !important; border-color: rgba(113, 113, 113, 0.25) !important; }
html body #room-options-modal#room-options-modal .ec-gm-row--close .ec-gm-row-icon { background: transparent !important; width: 20px !important; }
html body #room-options-modal#room-options-modal .ec-gm-row--close .ec-gm-row-label { flex: 0 0 auto !important; }
html body #room-options-modal#room-options-modal .ec-gm-row--close { grid-template-columns: 20px auto !important; justify-content: center !important; }
html body #room-options-modal#room-options-modal .ec-gm-invite-btn {
  border-radius: 12px !important; border: 1px solid rgba(113, 113, 113, 0.22) !important;
  background: rgba(255, 255, 255, 0.04) !important; color: #e7e7e7 !important; box-shadow: none !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important;
}
html body #room-options-modal#room-options-modal .ec-gm-invite-btn.primary {
  background: linear-gradient(135deg, #555555, #555555) !important; border-color: transparent !important; color: #fff !important;
  box-shadow: 0 4px 18px rgba(85, 85, 85, 0.35) !important;
}
html body #room-options-modal#room-options-modal .ec-gm-code-box {
  background: rgba(8, 10, 16, 0.75) !important; border: 1px solid rgba(113, 113, 113, 0.22) !important; border-radius: 12px !important; box-shadow: none !important;
}
/* Timer: Zeit-Badge + violetter Verlauf, Marken 1 h / 24 h / 7 T (24 h = mittlerer Punkt) */
html body #room-options-modal#room-options-modal .ec-gm-autodelete-value {
  background: rgba(85, 85, 85, 0.18) !important; border: 1px solid rgba(114, 114, 114, 0.4) !important;
  color: #dcdcdc !important; border-radius: 999px !important; padding: 4px 10px !important; font-size: 12px !important;
  display: inline-flex !important; align-items: center !important; gap: 4px !important; white-space: nowrap;
}
html body #room-options-modal#room-options-modal .ec-gm-autodelete-value b { display: inline-flex; }
html body #room-options-modal#room-options-modal .ec-gm-autodelete-value .ec-gl-ico { width: 14px; height: 14px; }
html body #room-options-modal#room-options-modal .ec-gm-autodelete-track { background: rgba(113, 113, 113, 0.14) !important; border-radius: 999px !important; }
html body #room-options-modal#room-options-modal .ec-gm-autodelete-fill {
  background: linear-gradient(90deg, #555555, #727272) !important; box-shadow: 0 0 12px rgba(114, 114, 114, 0.55) !important; border-radius: 999px !important;
}
html body #room-options-modal#room-options-modal .ec-gm-autodelete-dot.active {
  background: #fff !important; box-shadow: 0 0 0 4px rgba(85, 85, 85, 0.45), 0 0 14px rgba(114, 114, 114, 0.8) !important;
}
html body #room-options-modal#room-options-modal .ec-gm-autodelete-marks {
  display: grid !important; grid-template-columns: 1fr auto 1fr !important; color: #727272 !important; font-size: 11px !important;
}
html body #room-options-modal#room-options-modal .ec-gm-autodelete-marks span:last-child { text-align: right; }
/* §GS-EXPIRE-2026-11-16: Beschriftung („1 Stunde“ …) klebte am Regler — der aktive Punkt samt Schein ragt
   ~12 px unter die 3-px-Leiste. Mehr Luft nach unten. */
html body #room-options-modal#room-options-modal .ec-gm-autodelete-marks { margin-top: 30px !important; }
html body #room-options-modal#room-options-modal .ec-gm-autodelete--focus { outline: 1px solid rgba(255, 255, 255, 0.35); outline-offset: 2px; transition: outline-color .3s; }

/* ── 4./5b. Desktop-Shell: Einstellungen + rechte Werkzeugleiste ──────── */
@media (min-width: 900px) {
  /* Einstellungs-Menue links */
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-settings-nav {
    background: rgba(8, 10, 16, 0.72) !important; border: 1px solid rgba(113, 113, 113, 0.14) !important;
    border-radius: 18px !important; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-settings-nav button {
    min-height: 40px !important; border-radius: 12px !important; padding: 0 14px !important;
    background: transparent !important; border: 1px solid transparent !important; color: #a1a1a1 !important;
    font-size: 13.5px !important; font-weight: 500 !important; letter-spacing: 0 !important; box-shadow: none !important;
    transition: all .2s ease !important;
  }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-settings-nav button::before,
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-settings-nav button::after { content: none !important; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-settings-nav button:hover {
    background: rgba(255, 255, 255, 0.04) !important; color: #e7e7e7 !important;
  }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-settings-nav button.active,
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-settings-nav button.is-active {
    background: linear-gradient(135deg, rgba(85, 85, 85, 0.32), rgba(85, 85, 85, 0.14)) !important;
    border-color: rgba(114, 114, 114, 0.45) !important; color: #fff !important; font-weight: 600 !important;
    box-shadow: 0 0 16px rgba(85, 85, 85, 0.22) !important;
  }
  /* Hauptbereich: grosse Glas-Bloecke statt Gitter */
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-settings-panel {
    background: transparent !important; border: 0 !important; box-shadow: none !important;
  }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-settings-card {
    background: rgba(16, 16, 16, 0.72) !important; border: 1px solid rgba(113, 113, 113, 0.14) !important;
    border-radius: 20px !important; padding: 22px 24px !important; margin-bottom: 16px !important;
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35) !important;
  }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-settings-card h2 { color: #fff !important; font-size: 17px !important; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-settings-card h2::before { content: none !important; display: none !important; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-settings-card > p { color: #a1a1a1 !important; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-identity-grid { gap: 18px !important; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-avatar-card {
    background: transparent !important; border: 0 !important; box-shadow: none !important; justify-content: flex-start !important; padding: 6px !important;
  }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-avatar-card .ecf-profile-orb {
    width: 84px !important; height: 84px !important; box-shadow: 0 0 0 2px rgba(114, 114, 114, 0.45), 0 0 22px rgba(85, 85, 85, 0.35) !important;
  }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-stack { gap: 10px !important; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-kv {
    background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important;
    display: grid !important; grid-template-columns: 150px minmax(0, 1fr) auto !important; align-items: center !important; gap: 12px !important; min-height: 46px;
  }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-kv > span { color: #d4d4d4 !important; font-size: 13px !important; font-weight: 600 !important; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-kv > span small { display: block; color: #727272; font-weight: 400; font-size: 11px; margin-top: 2px; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-kv > strong {
    background: rgba(8, 10, 16, 0.75) !important; border: 1px solid rgba(113, 113, 113, 0.22) !important; border-radius: 12px !important;
    color: #fff !important; padding: 11px 14px !important; font-size: 13px !important; font-weight: 500 !important;
    text-align: left !important; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-family: var(--font-mono, ui-monospace, monospace) !important;
  }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-kv > strong { justify-self: stretch !important; width: 100% !important; max-width: none !important; box-sizing: border-box; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-kv > strong:last-child { grid-column: 2 / 4; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-mini-action {
    min-height: 40px !important; padding: 0 16px !important; border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.04) !important; border: 1px solid rgba(113, 113, 113, 0.35) !important;
    color: #dcdcdc !important; font-size: 13px !important; font-weight: 600 !important; letter-spacing: 0 !important;
    font-family: inherit !important; box-shadow: none !important; transition: all .2s ease !important; white-space: nowrap;
  }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-mini-action:hover {
    background: linear-gradient(135deg, rgba(85, 85, 85, 0.28), rgba(85, 85, 85, 0.12)) !important;
    border-color: rgba(114, 114, 114, 0.55) !important; color: #fff !important; box-shadow: 0 0 16px rgba(85, 85, 85, 0.2) !important;
  }
  /* iOS-Schalter, aktiv gruen leuchtend */
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-ui-toggle {
    position: relative !important; width: 46px !important; height: 28px !important; min-width: 46px !important; padding: 0 !important;
    border-radius: 999px !important; border: 1px solid rgba(161, 161, 161, 0.28) !important; background: rgba(63, 63, 63, 0.6) !important;
    transform: none !important; box-shadow: none !important; font-size: 0 !important; color: transparent !important; cursor: pointer;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease !important;
  }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-ui-toggle::before,
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-ui-toggle::after { content: none !important; display: none !important; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-ui-toggle > i {
    position: absolute !important; top: 3px !important; left: 3px !important; right: auto !important; width: 20px !important; height: 20px !important;
    border-radius: 50% !important; background: #fff !important; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
    transform: none !important; transition: left .2s ease !important; margin: 0 !important;
  }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-ui-toggle.on {
    background: #9b9b9b !important; border-color: #9b9b9b !important; box-shadow: 0 0 14px rgba(155, 155, 155, 0.55) !important;
  }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-ui-toggle.on > i { left: 21px !important; }
  /* Gefahrenzone */
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-settings-card.ec-danger-card {
    background: rgba(239, 68, 68, 0.06) !important; border: 1px solid rgba(239, 68, 68, 0.25) !important; border-radius: 16px !important; box-shadow: none !important;
  }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ec-gl-danger-title { display: flex !important; align-items: center; gap: 8px; color: #fca5a5 !important; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ec-danger-card a { color: #fca5a5 !important; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ec-danger-card .ec-danger-btn {
    border-radius: 999px !important; min-height: 46px !important; padding: 0 22px !important; margin-top: 6px;
    background: rgba(239, 68, 68, 0.15) !important; border: 1px solid rgba(239, 68, 68, 0.4) !important; color: #fca5a5 !important;
    font-family: inherit !important; letter-spacing: 0 !important; font-size: 14px !important;
  }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ec-danger-card .ec-danger-btn:hover {
    background: rgba(239, 68, 68, 0.24) !important; box-shadow: 0 0 16px rgba(239, 68, 68, 0.22) !important; color: #fecaca !important;
  }

  /* Rechte Werkzeugleiste (Chat-Info) */
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rightpanel {
    background: rgba(8, 10, 16, 0.86) !important; border-left: 1px solid rgba(113, 113, 113, 0.12) !important;
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rp-group { background: transparent !important; border: 0 !important; box-shadow: none !important; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rp-toggle {
    display: flex !important; align-items: center !important; gap: 8px !important; width: 100%;
    background: transparent !important; border: 0 !important; padding: 6px 4px !important; color: #727272 !important; box-shadow: none !important;
  }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rp-kicker {
    font-size: 11px !important; letter-spacing: 1px !important; text-transform: uppercase !important; color: #727272 !important; font-weight: 600 !important;
  }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rp-sec-ico,
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rp-chev {
    display: inline-flex !important; color: #717171 !important; font-size: 0 !important; width: auto !important; height: auto !important; background: none !important;
  }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rp-sec-ico .ec-gl-ico,
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rp-chev .ec-gl-ico { width: 14px; height: 14px; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rp-chev { margin-left: auto !important; color: #727272 !important; transition: transform .2s ease; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rp-toggle[aria-expanded="false"] .ecf-rp-chev { transform: rotate(-90deg); }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rp-group.ecf-rp-danger .ecf-rp-sec-ico { color: #f87171 !important; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rp-rows { display: flex !important; flex-direction: column !important; gap: 8px !important; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rp-row {
    display: flex !important; align-items: center !important; gap: 12px !important; min-height: 48px !important; height: auto !important;
    padding: 7px 12px 7px 8px !important; border-radius: 14px !important; width: 100% !important;
    background: rgba(255, 255, 255, 0.03) !important; border: 1px solid rgba(113, 113, 113, 0.12) !important;
    color: #a1a1a1 !important; box-shadow: none !important; text-align: left !important; transition: all .2s ease !important;
  }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rp-row:hover,
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rp-row:focus-visible {
    background: linear-gradient(135deg, rgba(85, 85, 85, 0.28), rgba(85, 85, 85, 0.12)) !important;
    border-color: rgba(114, 114, 114, 0.45) !important; color: #fff !important; box-shadow: 0 0 16px rgba(85, 85, 85, 0.2) !important; outline: none;
  }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rp-row-icon {
    display: grid !important; place-items: center !important; flex: none !important; width: 34px !important; height: 34px !important;
    border-radius: 10px !important; background: rgba(113, 113, 113, 0.15) !important; border: 0 !important; color: #bdbdbd !important; font-size: 0 !important;
  }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rp-row-copy { display: flex !important; flex-direction: column !important; min-width: 0 !important; flex: 1 1 auto !important; gap: 1px !important; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rp-row-copy strong { color: #fff !important; font-size: 13.5px !important; font-weight: 600 !important; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rp-row-copy small { color: #727272 !important; font-size: 11.5px !important; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rp-row-meta { display: inline-flex !important; color: #727272 !important; font-size: 0 !important; margin-left: auto !important; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rp-row-meta .ec-gl-ico { width: 16px; height: 16px; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rp-row--danger {
    background: rgba(239, 68, 68, 0.06) !important; border-color: rgba(239, 68, 68, 0.25) !important;
  }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rp-row--danger .ecf-rp-row-icon { background: rgba(239, 68, 68, 0.15) !important; color: #fca5a5 !important; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rp-row--danger .ecf-rp-row-copy strong { color: #fca5a5 !important; }
  html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-rp-row--danger:hover {
    background: rgba(239, 68, 68, 0.14) !important; border-color: rgba(239, 68, 68, 0.45) !important; box-shadow: 0 0 16px rgba(239, 68, 68, 0.18) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ec-action-capsule, .ec-input-glass, .ec-btn-gradient, .ec-danger-btn, .ec-gl-close { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   §THEME-STUDIO-2026-10-18 — Einstellungen > Design (theme-engine.js)
   Vorlage: public/Design_von_Design.png. Werte setzt theme-engine.js inline auf
   <html>/<body>/#ec-mobile-shell; hier stehen die Standardwerte, die vier
   UI-Schalter, das Studio-Layout und die Repaint-Schicht der App-Flächen.
   Studio-Selektor: :is(#ects-d,#ects-m) doppelt = 2 IDs, genug gegen
   ".ecf-settings-section p" (1,2,2)!important aus desktop-overrides.css.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --ec-primary: #9B5CF6;
  --ec-secondary: #06B6D4;
  --ec-accent: #F472B6;
  --ec-bg-main: #080F1A;
  --ec-surface: #111827;
  --ec-text-main: #F8FAFC;
  --ec-gradient-dir: to right;
  --ec-gradient: linear-gradient(var(--ec-gradient-dir), var(--ec-secondary), var(--ec-accent));
  --ec-glass-opacity: 0.8;
  --ec-glass-pct: 80%;
  --ec-glass-blur: 18px;
  --ec-border-radius: 16px;
  --ec-shadow-glow: 0 0 20px rgba(155, 92, 246, 0.25);
  --ec-font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --ec-font-scale: 1rem;
  --ec-line-height-scale: 1.5;
  --ec-bg-image: none;
}
body.ec-no-radius * { --ec-border-radius: 0px !important; border-radius: 0px !important; }
body.ec-no-shadows * { box-shadow: none !important; --ec-shadow-glow: none !important; }
body.ec-no-glass * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
body.ec-no-animations * { transition: none !important; animation: none !important; }
body.ec-no-animations #ec-ts-particles { display: none !important; }
/* Dieselben vier Schalter mit Gewicht: Shell und Modale setzen Radius/Schatten/Glas mit
   bis zu fünf IDs + !important — „*“ allein (0,1,1) käme dort nie an. :not(#ec-x×6)
   trifft jedes Element und zählt wie sechs IDs. Pseudo-Elemente gleich mit. */
html body.ec-no-radius *:not(#ec-x#ec-x#ec-x#ec-x#ec-x#ec-x), html body.ec-no-radius *:not(#ec-x#ec-x#ec-x#ec-x#ec-x#ec-x)::before, html body.ec-no-radius *:not(#ec-x#ec-x#ec-x#ec-x#ec-x#ec-x)::after { border-radius: 0px !important; }
html body.ec-no-shadows *:not(#ec-x#ec-x#ec-x#ec-x#ec-x#ec-x), html body.ec-no-shadows *:not(#ec-x#ec-x#ec-x#ec-x#ec-x#ec-x)::before, html body.ec-no-shadows *:not(#ec-x#ec-x#ec-x#ec-x#ec-x#ec-x)::after { box-shadow: none !important; text-shadow: none !important; }
html body.ec-no-glass *:not(#ec-x#ec-x#ec-x#ec-x#ec-x#ec-x), html body.ec-no-glass *:not(#ec-x#ec-x#ec-x#ec-x#ec-x#ec-x)::before, html body.ec-no-glass *:not(#ec-x#ec-x#ec-x#ec-x#ec-x#ec-x)::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html body.ec-no-animations *:not(#ec-x#ec-x#ec-x#ec-x#ec-x#ec-x), html body.ec-no-animations *:not(#ec-x#ec-x#ec-x#ec-x#ec-x#ec-x)::before, html body.ec-no-animations *:not(#ec-x#ec-x#ec-x#ec-x#ec-x#ec-x)::after { transition: none !important; animation: none !important; }

/* Effekte: Noise-Overlay + Partikel-Canvas (beide klickdurchlässig) */
body.ec-fx-noise::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 2147483000; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#ec-ts-particles { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2147482999; mix-blend-mode: screen; opacity: .8; }

/* Grüner Bestätigungs-Toast */
#ec-ts-toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); z-index: 2147483600;
  display: flex; align-items: center; gap: 10px; max-width: min(92vw, 460px); padding: 12px 18px; border-radius: 14px;
  background: rgba(32, 32, 32, 0.92); border: 1px solid rgba(155, 155, 155, 0.55); color: #e7e7e7; font: 600 14px/1.35 system-ui, sans-serif;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45), 0 0 18px rgba(155, 155, 155, 0.3); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
#ec-ts-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
#ec-ts-toast.is-warn { background: rgba(32, 32, 32, 0.92); border-color: rgba(166, 166, 166, 0.55); color: #e4e4e4; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45); }
#ec-ts-toast svg { flex: none; }

/* ── Figur unten links in der Desktop-Leiste ─────────────────────────────── */
html body.auth-ready #ec-claude-shell-final .ecf-rail.ecf-rail--v2 { position: relative; }
.ecf-rail-art { display: none; }
@media (min-width: 900px) and (min-height: 820px) {
  html body.auth-ready #ec-claude-shell-final .ecf-rail--v2 .ecf-rail-art {
    display: block; position: absolute; left: 0; bottom: 92px; width: 100%; max-height: calc(100% - 560px); object-fit: contain; object-position: left bottom;
    mix-blend-mode: screen; pointer-events: none; opacity: 0.9; z-index: 0; user-select: none;
  }
  html body.auth-ready #ec-claude-shell-final .ecf-rail--v2 > :not(.ecf-rail-art) { position: relative; z-index: 1; }
}

/* ── Studio ──────────────────────────────────────────────────────────────── */
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) {
  --ts-line: rgba(113, 113, 113, 0.16); --ts-line-hi: rgba(114, 114, 114, 0.5); --ts-glass: rgba(16, 16, 16, 0.72);
  --ts-dim: #a1a1a1; --ts-mute: #727272; --ts-pri: var(--ec-primary, #717171);
  position: relative; container-type: inline-size; container-name: ects; isolation: isolate;
  display: flex; flex-direction: column; gap: 14px; color: #e7e7e7; font-size: 13px; line-height: 1.4; padding-bottom: 4px;
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) *, html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) *::before, html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) *::after { box-sizing: border-box; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) h2, html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) h3, html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) p { margin: 0 !important; padding: 0 !important; letter-spacing: 0 !important; text-transform: none !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) h2::before, html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) h3::before { content: none !important; display: none !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) button, html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) select, html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) input { font-family: inherit !important; letter-spacing: 0 !important; text-transform: none !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) button:focus-visible, html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) select:focus-visible, html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) input:focus-visible { outline: 2px solid rgba(114, 114, 114, 0.85) !important; outline-offset: 2px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-ico { flex: none; display: block; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-watermark {
  position: absolute; right: 0; bottom: 60px; width: 230px; max-width: 60%; height: auto; mix-blend-mode: screen; pointer-events: none; opacity: 0.9; z-index: -1;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 80%, transparent);
}
/* Auf dem Desktop trägt die Leiste die Figur schon (Vorlage) — Wasserzeichen nur, wo die Leiste fehlt. */
@media (min-width: 900px) and (min-height: 820px) { #ects-d .ec-ts-watermark { display: none; } }

/* Kopf */
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-head { display: flex; flex-direction: column; gap: 6px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-crumb {
  display: inline-flex !important; align-items: center; gap: 6px; align-self: flex-start; min-height: 24px !important; padding: 0 !important;
  background: none !important; border: 0 !important; box-shadow: none !important; color: var(--ts-dim) !important;
  font-size: 11px !important; font-weight: 600 !important; letter-spacing: 2.4px !important; text-transform: uppercase !important;
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-crumb:hover { color: #fff !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-titlerow { display: flex; align-items: center; gap: 12px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-titleico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #bdbdbd; background: rgba(113, 113, 113, 0.12); border: 1px solid var(--ts-line); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-head h2 { font-size: 20px !important; font-weight: 700 !important; color: #fff !important; line-height: 1.2 !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-head p { font-size: 13px !important; color: var(--ts-dim) !important; }

/* Hero */
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); align-items: center; min-height: 140px;
  padding: 22px 24px; border-radius: 18px; border: 1px solid rgba(114, 114, 114, 0.55);
  background:
    radial-gradient(120% 140% at 85% 30%, color-mix(in srgb, var(--ec-accent, #939393) 38%, transparent), transparent 55%),
    radial-gradient(90% 120% at 60% 110%, color-mix(in srgb, var(--ec-secondary, #939393) 34%, transparent), transparent 60%),
    linear-gradient(115deg, #0d0d0d 0%, #151515 45%, #191919 70%, #0d0d0d 100%);
  box-shadow: 0 0 0 1px rgba(113, 113, 113, 0.12) inset, 0 0 26px rgba(85, 85, 85, 0.28);
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 3px 9px; border-radius: 999px;
  background: rgba(113, 113, 113, 0.18); border: 1px solid rgba(114, 114, 114, 0.35); color: #bdbdbd; font-size: 10px; font-weight: 700; letter-spacing: 2px;
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-hero h3 { font-size: 24px !important; font-weight: 800 !important; color: #fff !important; line-height: 1.15 !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-hero p { font-size: 13px !important; color: #d4d4d4 !important; line-height: 1.5 !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-mock { position: relative; height: 130px; perspective: 700px; z-index: 1; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-mock-card {
  position: absolute; right: 70px; top: -6px; width: 250px; height: 150px; border-radius: 14px; padding: 10px;
  background: linear-gradient(160deg, rgba(30, 30, 30, 0.92), rgba(12, 12, 12, 0.96)); border: 1px solid rgba(189, 189, 189, 0.35);
  transform: rotateX(18deg) rotateY(-22deg) rotateZ(-10deg); box-shadow: -18px 24px 40px rgba(0, 0, 0, 0.55), 0 0 30px color-mix(in srgb, var(--ec-primary, #717171) 40%, transparent);
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-mock-top { display: flex; align-items: center; gap: 6px; color: #dcdcdc; font-size: 10px; margin-bottom: 8px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-mock-top i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 5px; background: var(--ec-gradient, linear-gradient(90deg, #717171, #939393)); color: #fff; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-mock-top span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); margin-left: auto; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-mock-top span + span { margin-left: 0; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-mock-body { display: grid; grid-template-columns: 54px 1fr; gap: 8px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-mock-side, html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-mock-list { display: flex; flex-direction: column; gap: 6px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-mock-side span, html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-mock-list span { height: 12px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-mock-list span { height: 16px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-mock-side span.on, html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-mock-list span.on { background: color-mix(in srgb, var(--ec-primary, #717171) 55%, transparent); box-shadow: 0 0 10px color-mix(in srgb, var(--ec-primary, #717171) 50%, transparent); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-crown { position: absolute; right: 10px; top: 0; color: #999999; filter: drop-shadow(0 0 8px rgba(153, 153, 153, 0.9)) drop-shadow(0 0 18px rgba(114, 114, 114, 0.6)); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-darkbox {
  position: absolute; right: 18px; bottom: 16px; z-index: 3; display: flex; align-items: center; gap: 14px; padding: 7px 10px 7px 12px;
  border-radius: 12px; background: rgba(8, 10, 16, 0.78); border: 1px solid rgba(114, 114, 114, 0.35); backdrop-filter: blur(var(--ec-glass-blur, 18px)); -webkit-backdrop-filter: blur(var(--ec-glass-blur, 18px));
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-darkbox > span { display: inline-flex; align-items: center; gap: 8px; color: #e7e7e7; font-size: 12.5px; font-weight: 500; }

/* Blöcke */
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-block {
  position: relative; border-radius: 18px; padding: 16px 16px; border: 1px solid var(--ts-line);
  background: var(--ts-glass); backdrop-filter: blur(var(--ec-glass-blur, 18px)); -webkit-backdrop-filter: blur(var(--ec-glass-blur, 18px));
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-presets-block { background: transparent; border: 0; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-bhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-block h3 { font-size: 16px !important; font-weight: 700 !important; color: #fff !important; line-height: 1.3 !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-block p { font-size: 12px !important; color: var(--ts-dim) !important; margin-top: 2px !important; line-height: 1.45 !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-ghost {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; min-height: 36px !important; padding: 0 12px !important; border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.03) !important; border: 1px solid var(--ts-line) !important; color: #e7e7e7 !important; font-size: 12.5px !important; font-weight: 600 !important; box-shadow: none !important;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-ghost:hover { background: rgba(113, 113, 113, 0.12) !important; border-color: var(--ts-line-hi) !important; box-shadow: 0 0 14px rgba(85, 85, 85, 0.2) !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-small { min-height: 30px !important; font-size: 12px !important; }

/* Mehr Designs */
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-more-wrap { position: relative; flex: none; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 300px; max-height: 420px; overflow: auto; padding: 10px; border-radius: 16px;
  background: rgba(12, 12, 12, 0.97); border: 1px solid rgba(114, 114, 114, 0.35); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), 0 0 22px rgba(85, 85, 85, 0.22);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-pop[hidden] { display: none !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-pop-title { padding: 6px 6px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ts-mute); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-more-item {
  display: flex !important; align-items: center; gap: 10px; width: 100%; min-height: 48px !important; padding: 6px 10px !important; border-radius: 12px !important; text-align: left;
  background: transparent !important; border: 1px solid transparent !important; color: #e7e7e7 !important; box-shadow: none !important;
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-more-item:hover, html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-more-item.is-active { background: rgba(113, 113, 113, 0.12) !important; border-color: rgba(114, 114, 114, 0.35) !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-more-item i { flex: none; width: 30px; height: 30px; border-radius: 9px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-more-item span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-more-item b { font-size: 13px; color: #fff; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-more-item small { font-size: 11px; color: var(--ts-mute); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-more-item > .ec-ts-ico { color: #999999; opacity: 0; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-more-item.is-active > .ec-ts-ico { opacity: 1; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-legacy .ecf-theme-grid, html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-legacy .ecm-mobile-theme-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 6px !important; margin: 0 !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-legacy [data-ec-final-theme], html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-legacy [data-ecm-theme-choice] {
  display: flex !important; align-items: center !important; gap: 8px !important; min-height: 40px !important; padding: 6px 8px !important; border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.03) !important; border: 1px solid var(--ts-line) !important; color: #e7e7e7 !important; font-size: 11.5px !important; text-align: left !important; box-shadow: none !important;
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-legacy [data-ec-final-theme].active, html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-legacy [data-ecm-theme-choice].active { border-color: var(--ts-line-hi) !important; background: rgba(113, 113, 113, 0.14) !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-legacy [data-ec-final-theme] i { flex: none; width: 18px !important; height: 18px !important; border-radius: 6px !important; background: linear-gradient(135deg, var(--c1), var(--c2)) !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-legacy [data-ec-final-theme] strong { font-size: 11.5px !important; font-weight: 600 !important; color: inherit !important; }

/* Vorgefertigte Designs */
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-presets { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-preset {
  position: relative; display: flex !important; flex-direction: column; align-items: stretch !important; gap: 2px; min-width: 0; padding: 8px 8px 10px !important; border-radius: 14px !important; text-align: left !important;
  background: rgba(16, 16, 16, 0.72) !important; border: 1px solid var(--ts-line) !important; color: #fff !important; box-shadow: none !important;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-preset:hover { border-color: rgba(114, 114, 114, 0.4) !important; transform: translateY(-1px); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-preset.is-active { border-color: rgba(189, 189, 189, 0.9) !important; box-shadow: 0 0 0 1px rgba(114, 114, 114, 0.6) inset, 0 0 22px rgba(113, 113, 113, 0.45) !important; background: rgba(29, 29, 29, 0.6) !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-preset-art { display: grid; place-items: center; height: 74px; margin-bottom: 6px; border-radius: 10px; overflow: hidden; background: radial-gradient(80% 90% at 50% 40%, color-mix(in srgb, var(--p1) 45%, transparent), transparent 70%), var(--pbg); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-preset-card {
  position: relative; display: flex; align-items: center; gap: 5px; width: 82%; height: 44px; padding: 0 8px; border-radius: 9px; background: var(--pg);
  transform: perspective(240px) rotateX(14deg) rotateZ(-6deg); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5), 0 0 16px color-mix(in srgb, var(--p1) 55%, transparent);
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-preset-logo { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 5px; background: rgba(0, 0, 0, 0.3); color: #fff; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-preset-card b { font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45); white-space: nowrap; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-preset-card em { position: absolute; left: 8px; right: 30%; bottom: 6px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.35); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-preset-name { font-size: 12.5px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-preset small { font-size: 10.5px; color: var(--ts-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-check {
  position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, #555555, #727272); color: #fff; box-shadow: 0 0 10px rgba(114, 114, 114, 0.7); opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .2s ease;
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .is-active > .ec-ts-check { opacity: 1; transform: none; }

/* Farben anpassen */
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-modes { display: inline-flex; gap: 4px; padding: 3px; border-radius: 12px; background: rgba(8, 10, 16, 0.7); border: 1px solid var(--ts-line); flex: none; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-pill {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; min-height: 32px !important; padding: 0 12px !important; border-radius: 9px !important;
  background: transparent !important; border: 1px solid transparent !important; color: var(--ts-dim) !important; font-size: 12px !important; font-weight: 600 !important; box-shadow: none !important; white-space: nowrap;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-pill:hover { color: #fff !important; background: rgba(255, 255, 255, 0.04) !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-pill.is-active { color: #fff !important; background: linear-gradient(135deg, rgba(85, 85, 85, 0.55), rgba(85, 85, 85, 0.3)) !important; border-color: rgba(114, 114, 114, 0.55) !important; box-shadow: 0 0 14px rgba(85, 85, 85, 0.3) !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-cgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr) minmax(0, 0.8fr); gap: 12px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-panel { border-radius: 14px; padding: 12px; background: rgba(8, 10, 16, 0.55); border: 1px solid rgba(113, 113, 113, 0.12); min-width: 0; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-crows { display: flex; flex-direction: column; gap: 6px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-crow { display: grid; grid-template-columns: minmax(84px, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 8px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-clabel {
  justify-self: start; min-height: 32px !important; padding: 0 8px !important; margin-left: -8px; border-radius: 8px !important; background: none !important; border: 1px solid transparent !important;
  color: #e7e7e7 !important; font-size: 12.5px !important; font-weight: 600 !important; text-align: left !important; box-shadow: none !important;
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-crow.is-target .ec-ts-clabel { color: #fff !important; border-color: rgba(114, 114, 114, 0.35) !important; background: rgba(113, 113, 113, 0.1) !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-cfield { display: flex; align-items: center; gap: 8px; min-width: 0; height: 36px; padding: 0 6px 0 8px; border-radius: 10px; background: rgba(8, 10, 16, 0.75); border: 1px solid rgba(113, 113, 113, 0.22); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-cfield:focus-within { border-color: #555555; box-shadow: 0 0 0 3px rgba(85, 85, 85, 0.22); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-dot { position: relative; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--dot); border: 1px solid rgba(255, 255, 255, 0.4); box-shadow: 0 0 10px color-mix(in srgb, var(--dot) 55%, transparent); cursor: pointer; overflow: hidden; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-dot input { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); opacity: 0; cursor: pointer; border: 0; padding: 0; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-hex {
  flex: 1; min-width: 0; height: 30px !important; padding: 0 !important; margin: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; outline: none;
  color: #fff !important; font: 500 12.5px/1 var(--font-mono, ui-monospace, 'JetBrains Mono', monospace) !important; text-transform: uppercase !important;
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-hex:focus, html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-hex:focus-visible { outline: none !important; border: 0 !important; box-shadow: none !important; background: transparent !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-hex[aria-invalid="true"] { color: #fca5a5 !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-cfield:has(.ec-ts-hex[aria-invalid="true"]) { border-color: rgba(239, 68, 68, 0.6); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-copy {
  flex: none; display: grid !important; place-items: center; width: 28px; height: 28px; min-height: 0 !important; padding: 0 !important; border-radius: 8px !important;
  background: transparent !important; border: 0 !important; color: var(--ts-dim) !important; box-shadow: none !important;
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-copy:hover { color: #fff !important; background: rgba(255, 255, 255, 0.06) !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-copy.is-done { color: #b8b8b8 !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-adv { display: none !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m)[data-ects-view="advanced"] .ec-ts-adv { display: flex !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-rgb { grid-column: 2; font: 11px/1.2 var(--font-mono, ui-monospace, monospace); color: var(--ts-mute); padding-left: 10px; margin-top: -2px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-advbar { align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(113, 113, 113, 0.12); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-contrast { font-size: 11.5px; color: var(--ts-dim); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-contrast b { color: #b8b8b8; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-contrast.is-low b { color: #c1c1c1; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-label { font-size: 11.5px; font-weight: 600; color: #d4d4d4; margin: 2px 0 8px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-label ~ .ec-ts-label { margin-top: 14px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-label-row b { font-size: 12px; color: #fff; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-label-row small { font-size: 10.5px; font-weight: 500; color: #999999; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-gradbar { position: relative; display: block; height: 38px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 0 18px color-mix(in srgb, var(--ec-primary, #717171) 30%, transparent); cursor: pointer; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-gradbar select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-gradbar .ec-ts-ico { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, 0.85); pointer-events: none; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-dirs { display: flex; flex-wrap: wrap; gap: 6px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-dir {
  display: grid !important; place-items: center; width: 34px; height: 30px; min-height: 0 !important; padding: 0 !important; border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.03) !important; border: 1px solid var(--ts-line) !important; color: var(--ts-dim) !important; box-shadow: none !important;
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-dir:hover { color: #fff !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-dir.is-active { color: #fff !important; background: rgba(85, 85, 85, 0.4) !important; border-color: rgba(114, 114, 114, 0.7) !important; box-shadow: 0 0 12px rgba(113, 113, 113, 0.55) !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer;
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #555555, #727272 var(--fill), rgba(161, 161, 161, 0.22) var(--fill)); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-range::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(161, 161, 161, 0.22); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-range::-moz-range-progress { height: 6px; border-radius: 999px; background: linear-gradient(90deg, #555555, #727272); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 3px rgba(85, 85, 85, 0.45), 0 0 12px rgba(114, 114, 114, 0.8); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 3px rgba(85, 85, 85, 0.45), 0 0 12px rgba(114, 114, 114, 0.8); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-fx { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-fx .ec-ts-pill { padding: 0 6px !important; min-height: 34px !important; border-color: var(--ts-line) !important; background: rgba(255, 255, 255, 0.03) !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-fx .ec-ts-pill.is-active { background: linear-gradient(135deg, rgba(85, 85, 85, 0.55), rgba(85, 85, 85, 0.3)) !important; border-color: rgba(114, 114, 114, 0.55) !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-swpanel { display: flex; flex-direction: column; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 8px; justify-items: center; margin: 4px 0 14px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-swatch {
  width: 30px; height: 30px; min-height: 0 !important; padding: 0 !important; border-radius: 50% !important; border: 1px solid rgba(255, 255, 255, 0.25) !important;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55), transparent 42%), var(--sw) !important;
  box-shadow: 0 0 12px color-mix(in srgb, var(--sw) 55%, transparent) !important; transition: transform .15s ease;
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-swatch:hover { transform: scale(1.12); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-customcolor { position: relative; margin-top: auto; justify-content: flex-start !important; width: 100%; min-height: 40px !important; cursor: pointer; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-customcolor input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }

/* Untere drei Blöcke */
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-bottom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-bottom .ec-ts-block > p { margin-bottom: 12px !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-bgs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-bg {
  position: relative; display: flex !important; flex-direction: column; gap: 4px; min-width: 0; min-height: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; text-align: left !important;
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-bg-art {
  display: grid; place-items: center; height: 58px; border-radius: 10px; border: 1px solid rgba(113, 113, 113, 0.22); background-size: cover; background-position: center; color: var(--ts-dim);
  background-color: rgba(8, 10, 16, 0.75); transition: border-color .2s ease, box-shadow .2s ease;
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-bg-standard { background-image: radial-gradient(60% 70% at 60% 40%, rgba(113, 113, 113, 0.35), transparent 70%), linear-gradient(160deg, #151515, #07070f) !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-bg small { font-size: 11px; color: var(--ts-dim); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-bg:hover .ec-ts-bg-art { border-color: rgba(114, 114, 114, 0.45); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-bg.is-active .ec-ts-bg-art { border-color: rgba(189, 189, 189, 0.9); box-shadow: 0 0 0 1px rgba(114, 114, 114, 0.55) inset, 0 0 16px rgba(113, 113, 113, 0.45); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-bg.is-active small { color: #fff; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-bg .ec-ts-check { top: 4px; right: 4px; width: 18px; height: 18px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-bg-up .ec-ts-bg-art { border-style: dashed; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-uirow { display: flex; align-items: center; gap: 10px; min-height: 36px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-uiico { display: grid; place-items: center; width: 26px; height: 26px; color: var(--ts-dim); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-uilabel { flex: 1; min-width: 0; font-size: 12.5px; color: #e7e7e7; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-switch {
  position: relative; flex: none; width: 36px; height: 20px; min-height: 0 !important; padding: 0 !important; border-radius: 999px !important;
  background: rgba(63, 63, 63, 0.7) !important; border: 1px solid rgba(161, 161, 161, 0.3) !important; box-shadow: none !important; transition: background .2s ease, box-shadow .2s ease;
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-switch i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); transition: left .2s ease; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-switch.is-on { background: linear-gradient(135deg, #555555, #727272) !important; border-color: rgba(189, 189, 189, 0.6) !important; box-shadow: 0 0 12px rgba(113, 113, 113, 0.6) !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-switch.is-on i { left: 18px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-select { position: relative; display: block; margin-bottom: 12px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-select select {
  -webkit-appearance: none; appearance: none; width: 100%; height: 38px !important; padding: 0 34px 0 12px !important; border-radius: 10px !important;
  background: rgba(8, 10, 16, 0.75) !important; border: 1px solid rgba(113, 113, 113, 0.22) !important; color: #fff !important; font-size: 13px !important; box-shadow: none !important; cursor: pointer;
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-select select:focus { border-color: #555555 !important; box-shadow: 0 0 0 3px rgba(85, 85, 85, 0.22) !important; outline: none; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-select select option { background: #101010; color: #fff; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-select .ec-ts-ico { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--ts-dim); pointer-events: none; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-frow { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 8px; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-frow > span { font-size: 11.5px; color: #d4d4d4; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-seg { display: grid !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px !important; padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-seg-btn {
  min-height: 30px !important; padding: 0 4px !important; border-radius: 8px !important; background: rgba(255, 255, 255, 0.03) !important; border: 1px solid var(--ts-line) !important;
  color: var(--ts-dim) !important; font-size: 11.5px !important; font-weight: 600 !important; box-shadow: none !important; white-space: nowrap;
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-seg-btn.active { color: #fff !important; background: linear-gradient(135deg, rgba(85, 85, 85, 0.55), rgba(85, 85, 85, 0.3)) !important; border-color: rgba(114, 114, 114, 0.6) !important; box-shadow: 0 0 12px rgba(85, 85, 85, 0.35) !important; }

/* Fußzeile */
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-foot {
  position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; border-radius: 14px;
  background: rgba(8, 10, 16, 0.86); border: 1px solid var(--ts-line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-foot > span { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ts-dim); }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-foot > span .ec-ts-ico { color: #999999; }
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-save {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; min-width: 160px; min-height: 38px !important; padding: 0 22px !important; border-radius: 10px !important; border: 0 !important;
  background: linear-gradient(135deg, #555555, #555555) !important; color: #fff !important; font-size: 13px !important; font-weight: 700 !important; box-shadow: 0 6px 20px rgba(85, 85, 85, 0.45) !important;
}
html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-save:hover { filter: brightness(1.1); }

/* Schmale Fläche (Tablet-Spalte, Handy, Capacitor < 768 px) */
@container ects (max-width: 820px) {
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-presets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-cgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-swpanel { grid-column: 1 / -1; }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-swatches { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-bottom { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-fontblock { grid-column: 1 / -1; }
}
@container ects (max-width: 600px) {
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-hero { grid-template-columns: minmax(0, 1fr); padding: 18px 16px 16px; }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-mock { display: none; }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-darkbox { position: relative; left: auto; right: auto; bottom: auto; justify-self: start; margin-top: 14px; }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-bhead { flex-wrap: wrap; }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-presets { display: flex; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -2px; -webkit-overflow-scrolling: touch; }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-preset { flex: 0 0 132px; scroll-snap-align: start; }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-cgrid, html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-bottom { grid-template-columns: minmax(0, 1fr); }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-crow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-rgb { grid-column: 1; }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-pop { width: min(300px, calc(100vw - 32px)); }
  /* Touch-Ziele >= 44 px */
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-pill, html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-ghost, html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-seg-btn, html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-clabel, html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-save, html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-more-item, html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-crumb { min-height: 44px !important; }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-cfield { height: 44px; }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-copy, html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-dir { width: 44px; height: 44px; }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-swatch { width: 44px; height: 44px; }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-dot { width: 26px; height: 26px; }
  /* Schalter: 56×44 Trefferfläche, die sichtbare Schiene zeichnet ::before */
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-switch { width: 56px; height: 44px; background: transparent !important; border: 0 !important; box-shadow: none !important; }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-switch::before { content: ''; position: absolute; left: 2px; right: 2px; top: 7px; bottom: 7px; border-radius: 999px; background: rgba(63, 63, 63, 0.7); border: 1px solid rgba(161, 161, 161, 0.3); transition: background .2s ease, box-shadow .2s ease; }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-switch.is-on::before { background: linear-gradient(135deg, #555555, #727272); border-color: rgba(189, 189, 189, 0.6); box-shadow: 0 0 12px rgba(113, 113, 113, 0.6); }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-switch i { z-index: 1; top: 11px; left: 6px; width: 22px; height: 22px; }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-switch.is-on i { left: 28px; }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-fx .ec-ts-pill { min-height: 44px !important; }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-gradbar { height: 46px; }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-uirow { min-height: 48px; }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-bg-art { height: 72px; }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-select select { height: 44px !important; }
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-foot { bottom: env(safe-area-inset-bottom, 0px); }
}
@media (max-width: 767px) {
  html body :is(#ects-d, #ects-m):is(#ects-d, #ects-m) .ec-ts-presets { display: flex; flex-wrap: nowrap; overflow-x: auto; }
}
/* Desktop: Studio-Sektion ohne die 900-px-Karte der übrigen Einstellungsseiten (Vorlage nutzt die volle Breite). */
html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-settings-section.ecf-settings-section--studio {
  max-width: none !important; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
/* Desktop: Platz für den Aura-Knopf (#aura-fab, fixed unten rechts) neben „Speichern“. */
@media (min-width: 900px) { html body #ects-d#ects-d .ec-ts-foot { margin-right: 52px; } }
/* Mobil zeigt die Unterseite schon Titel + Zurück — Studio-Kopf weg. */
html body #ects-m#ects-m#ects-m .ec-ts-head { display: none !important; }
#ects-m { padding: 0 2px 12px; }
#ec-mobile-shell [data-ecm-subpage-content]:has(> .ec-ts-host) { overflow-x: hidden; }

/* ── Repaint der App-Flächen, sobald eigene Farben aktiv sind ─────────────
   html[data-ec-studio] (1,4,2 und mehr) schlägt ec-theme-layer.css (1,3,2) und
   die §CYBER-GLASS-Blöcke mit dreifacher Shell-ID. */
html[data-ec-studio] body.auth-ready { background: var(--ec-bg-main) !important; color: var(--ec-text-main); }
html[data-ec-studio] body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final {
  background:
    linear-gradient(color-mix(in srgb, var(--ec-bg-main) 72%, transparent), color-mix(in srgb, var(--ec-bg-main) 82%, transparent)),
    var(--ec-bg-image) center / cover no-repeat,
    radial-gradient(ellipse at 18% 0%, color-mix(in srgb, var(--ec-primary) 16%, transparent), transparent 46%),
    radial-gradient(ellipse at 100% 100%, color-mix(in srgb, var(--ec-secondary) 9%, transparent), transparent 50%),
    var(--ec-bg-main) !important;
  color: var(--ec-text-main);
}
html[data-ec-studio] body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final :is(.ecf-rail, .ecf-rail.ecf-rail--v2, .ecf-chat-panel, .ecf-contacts, .ecf-settings-nav, .ecf-rightpanel, .ecf-placeholder) {
  background: color-mix(in srgb, var(--ec-surface) var(--ec-glass-pct), transparent) !important;
  border-color: color-mix(in srgb, var(--ec-primary) 18%, transparent) !important;
  backdrop-filter: blur(var(--ec-glass-blur)); -webkit-backdrop-filter: blur(var(--ec-glass-blur));
}
html[data-ec-studio] body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final :is(.ecf-settings-card, .ecf-composer) {
  background: color-mix(in srgb, var(--ec-surface) var(--ec-glass-pct), transparent) !important;
  border-color: color-mix(in srgb, var(--ec-primary) 20%, transparent) !important;
  backdrop-filter: blur(var(--ec-glass-blur)); -webkit-backdrop-filter: blur(var(--ec-glass-blur));
}
html[data-ec-studio] body.auth-ready.ec-fx-glow #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final :is(.ecf-settings-card, .ecf-composer, .ecf-chat-panel, .ecf-settings-nav) { box-shadow: var(--ec-shadow-glow) !important; }
html[data-ec-studio] body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final :is(.ecf-rail-nav button.active, .ecf-settings-nav button.active, .ecf-settings-nav button.is-active) {
  background: linear-gradient(135deg, color-mix(in srgb, var(--ec-primary) 38%, transparent), color-mix(in srgb, var(--ec-primary) 14%, transparent)) !important;
  border-color: color-mix(in srgb, var(--ec-primary) 55%, transparent) !important;
  box-shadow: 0 0 16px color-mix(in srgb, var(--ec-primary) 28%, transparent) !important;
}
html[data-ec-studio] body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-live-message {
  background: color-mix(in srgb, var(--ec-surface) 88%, #ffffff 6%) !important;
  border-color: color-mix(in srgb, var(--ec-primary) 14%, transparent) !important;
}
html[data-ec-studio] body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-live-message.mine {
  background: var(--ec-gradient) !important; border-color: color-mix(in srgb, var(--ec-primary) 45%, transparent) !important; color: #fff !important;
}
html[data-ec-studio] body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-live-message:not(.mine) small { color: var(--ec-secondary) !important; }
html[data-ec-studio] body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-send-btn { background: var(--ec-gradient) !important; }
html[data-ec-studio] body.auth-ready :is(.ec-btn-gradient, .ec-ts-save) { background: var(--ec-gradient) !important; }
html[data-ec-studio] body.auth-ready :is(.ec-cyber-modal, .modal-overlay.active > .modal) { border-color: color-mix(in srgb, var(--ec-primary) 22%, transparent) !important; }
/* Mobil: Hintergrundbild unter der Glas-Ebene */
html[data-ec-studio][data-ec-bg] body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ec-mobile-bg {
  background:
    linear-gradient(color-mix(in srgb, var(--ec-bg-main) 70%, transparent), color-mix(in srgb, var(--ec-bg-main) 84%, transparent)),
    var(--ec-bg-image) center / cover no-repeat, var(--ec-bg-main) !important;
}
/* Hintergrundbild auch ohne eigene Farben (Standard-Palette bleibt) */
html[data-ec-bg]:not([data-ec-studio]) body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final {
  background: linear-gradient(rgba(5, 6, 12, 0.74), rgba(5, 6, 12, 0.84)), var(--ec-bg-image) center / cover no-repeat, #05060c !important;
}
html[data-ec-bg]:not([data-ec-studio]) body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ec-mobile-bg {
  background: linear-gradient(rgba(5, 6, 12, 0.72), rgba(5, 6, 12, 0.86)), var(--ec-bg-image) center / cover no-repeat, #05060c !important;
}
/* Schriftart + Zeilenhöhe (nur bei Abweichung vom Standard gesetzt) */
html[data-ec-font] body.auth-ready :is(#ec-claude-shell-final, #ec-mobile-shell, .modal-overlay) :not(code, pre, kbd, samp, .ec-ts-hex, [class*="mono"]) { font-family: var(--ec-font-family) !important; }
html[data-ec-font="mono"] body.auth-ready :is(#ec-claude-shell-final, #ec-mobile-shell, .modal-overlay) * { font-family: var(--ec-font-family) !important; }
html[data-ec-lh] body.auth-ready :is(#ec-claude-shell-final, #ec-mobile-shell) :is(.ecf-live-message p, .ecf-live-message .ec-chat-text, .ec-chat-text, .ec-mobile-msg-text, .ecm-msg-text) { line-height: var(--ec-line-height-scale) !important; }
html[data-ec-lh] body #ec-claude-shell-final#ec-claude-shell-final .ecf-composer textarea#ec-final-msg-input { line-height: calc(var(--ec-font-size, 15px) * var(--ec-line-height-scale)) !important; }
/* Glas-Schalter des Studios wirkt auch, wenn die UI-Leiste „Glaseffekt“ an ist */
body.ec-fx-noblur :is(#ec-claude-shell-final, #ec-mobile-shell, .modal-overlay) * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
/* §END THEME-STUDIO-2026-10-18 */

/* ═══════════════════════════════════════════════════════════════════════════
   §PROFILE-EDITOR-2026-10-18 — Profil-Editor + @Name-Dialog (ec-profile-editor.js)
   Ein Modal für Desktop und Capacitor: Titelbild, Avatar über dem Banner, Name,
   Bio. IDs doppelt gegen die allgemeinen .modal-Regeln aus style.css/app.css.
   ═══════════════════════════════════════════════════════════════════════════ */
html body .ec-pe-overlay.modal-overlay {
  align-items: center !important; justify-content: center !important; padding: 12px !important;
  background: rgba(3, 4, 10, 0.72) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
/* Aktionsmenü fürs Profilbild öffnet AUS dem Editor heraus → muss darüber liegen. */
html body #ec-img-action-sheet.modal-overlay.active { z-index: 2147482700 !important; }
/* = mobile Modal-Ebene (MOBILE-OVERLAY-STACK: 2147482600, über der Unterleiste); Zuschneiden liegt bei 2147482800. */
html body #ec-profile-editor-modal.modal-overlay, html body #ec-handle-claim-modal.modal-overlay { z-index: 2147482600 !important; }
html body #ec-profile-editor-modal#ec-profile-editor-modal .ec-pe,
html body #ec-handle-claim-modal#ec-handle-claim-modal .ec-hc {
  position: relative; width: calc(100% - 24px) !important; max-width: 480px !important; margin: auto !important; padding: 0 !important;
  max-height: calc(100dvh - 24px) !important; overflow-y: auto !important; overflow-x: hidden !important; overscroll-behavior: contain;
  background: rgba(8, 10, 16, 0.94) !important; border: 1px solid rgba(113, 113, 113, 0.22) !important; border-radius: 22px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 32px rgba(85, 85, 85, 0.18) !important;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: #e7e7e7 !important; text-align: left !important;
  transform: none !important; animation: ec-pe-in .18s ease-out both;
}
@keyframes ec-pe-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
#ec-profile-editor-modal .ec-pe-ico { flex: none; display: block; }
#ec-profile-editor-modal .ec-pe-banner {
  position: relative; height: 150px; border-radius: 22px 22px 0 0; background-color: #0e0e0e;
  background-image: radial-gradient(70% 120% at 80% 10%, rgba(113, 113, 113, 0.45), transparent 60%), radial-gradient(70% 120% at 10% 100%, rgba(147, 147, 147, 0.35), transparent 60%), linear-gradient(120deg, #0e0e0e, #191919);
  background-size: cover; background-position: center; border-bottom: 1px solid rgba(113, 113, 113, 0.22);
}
#ec-profile-editor-modal .ec-pe-banner.ec-cover-has { background-color: #000; }
#ec-profile-editor-modal .ec-pe-banner.ec-av-busy::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(8, 10, 16, 0.5); }
html body #ec-profile-editor-modal .ec-pe-x, html body #ec-handle-claim-modal .ec-pe-x {
  position: absolute; top: 10px; right: 10px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(8, 10, 16, 0.62); color: #fff; cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
html body #ec-profile-editor-modal .ec-pe-x:hover, html body #ec-handle-claim-modal .ec-pe-x:hover { border-color: rgba(114, 114, 114, 0.6); box-shadow: 0 0 14px rgba(85, 85, 85, 0.35); }
html body #ec-profile-editor-modal .ec-pe-cover-btn {
  position: absolute; left: 12px; top: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(8, 10, 16, 0.66); color: #fff; font: 600 13px/1 inherit; cursor: pointer;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
html body #ec-profile-editor-modal .ec-pe-cover-btn:hover { border-color: rgba(114, 114, 114, 0.65); box-shadow: 0 0 16px rgba(85, 85, 85, 0.4); }
#ec-profile-editor-modal .ec-pe-cover-menu {
  position: absolute; left: 12px; top: 60px; z-index: 6; width: min(320px, calc(100% - 24px)); padding: 8px; border-radius: 16px;
  background: rgba(12, 12, 12, 0.97); border: 1px solid rgba(114, 114, 114, 0.35); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), 0 0 22px rgba(85, 85, 85, 0.2);
}
#ec-profile-editor-modal .ec-pe-cover-menu[hidden] { display: none !important; }
html body #ec-profile-editor-modal .ec-pe-cover-row {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 10px; border-radius: 12px; border: 1px solid transparent;
  background: transparent; color: #e7e7e7; font: 500 13.5px/1.2 inherit; text-align: left; cursor: pointer;
}
html body #ec-profile-editor-modal .ec-pe-cover-row:hover { background: rgba(113, 113, 113, 0.12); border-color: rgba(114, 114, 114, 0.3); }
html body #ec-profile-editor-modal .ec-pe-cover-row.is-danger { color: #fca5a5; }
html body #ec-profile-editor-modal .ec-pe-cover-row:disabled { opacity: .4; cursor: default; background: transparent; border-color: transparent; }
#ec-profile-editor-modal .ec-pe-cover-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px 2px; }
html body #ec-profile-editor-modal .ec-pe-cover-opt {
  display: flex; flex-direction: column; gap: 4px; min-height: 44px; padding: 4px; border-radius: 10px; border: 1px solid rgba(113, 113, 113, 0.18);
  background: rgba(255, 255, 255, 0.03); color: #d4d4d4; font: 500 11.5px/1.2 inherit; cursor: pointer;
}
html body #ec-profile-editor-modal .ec-pe-cover-opt:hover { border-color: rgba(114, 114, 114, 0.55); box-shadow: 0 0 12px rgba(85, 85, 85, 0.3); }
html body #ec-profile-editor-modal .ec-pe-cover-opt.is-busy { opacity: .55; pointer-events: none; }
#ec-profile-editor-modal .ec-pe-cover-thumb { display: block; height: 42px; border-radius: 7px; background-size: cover; background-position: center; }
#ec-profile-editor-modal .ec-pe-thumb-neon { background: radial-gradient(60% 90% at 50% 30%, rgba(113, 113, 113, 0.55), transparent 70%), repeating-linear-gradient(90deg, rgba(114, 114, 114, 0.35) 0 1px, transparent 1px 14px), linear-gradient(120deg, #090909, #131313 55%, #1b1b1b); }
#ec-profile-editor-modal .ec-pe-avatar-row { display: flex; justify-content: center; margin-top: -54px; position: relative; z-index: 4; pointer-events: none; }
html body #ec-profile-editor-modal .ec-pe-avatar {
  position: relative; width: 108px; height: 108px; min-height: 0; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; pointer-events: auto;
}
#ec-profile-editor-modal .ec-pe-avatar-ring {
  position: absolute; inset: 0; border-radius: 50%; padding: 4px;
  background: conic-gradient(from 200deg, #555555, #939393, #717171, #555555);
  box-shadow: 0 0 0 4px rgba(8, 10, 16, 0.94), 0 0 26px rgba(113, 113, 113, 0.6);
}
html body #ec-profile-editor-modal .ec-pe-avatar-img {
  position: relative; display: grid; place-items: center; width: 100% !important; height: 100% !important; aspect-ratio: 1 / 1; border-radius: 50% !important; overflow: hidden !important;
  background: linear-gradient(135deg, #353535, #303030); color: #fff; font: 800 30px/1 inherit;
}
html body #ec-profile-editor-modal .ec-pe-avatar-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
#ec-profile-editor-modal .ec-pe-avatar-img.ec-av-has .ec-pe-initials { visibility: hidden; }
#ec-profile-editor-modal .ec-pe-cam {
  position: absolute; right: 0; bottom: 2px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #555555, #555555); color: #fff; border: 3px solid #080a10; box-shadow: 0 0 12px rgba(85, 85, 85, 0.6);
}
#ec-profile-editor-modal .ec-pe-status {
  position: absolute; left: 8px; bottom: 8px; width: 16px; height: 16px; border-radius: 50%; background: #9b9b9b; border: 3px solid #080a10; box-shadow: 0 0 10px rgba(155, 155, 155, 0.8);
}
#ec-profile-editor-modal .ec-pe-avatar:hover .ec-pe-avatar-ring { box-shadow: 0 0 0 4px rgba(8, 10, 16, 0.94), 0 0 34px rgba(114, 114, 114, 0.85); }
#ec-profile-editor-modal .ec-pe-body { padding: 10px 22px calc(16px + max(16px, env(safe-area-inset-bottom, 16px))); display: flex; flex-direction: column; gap: 14px; }
html body #ec-profile-editor-modal .ec-pe-title, html body #ec-handle-claim-modal h2 { margin: 0 !important; text-align: center; font-size: 19px !important; font-weight: 700 !important; color: #fff !important; letter-spacing: 0 !important; }
#ec-profile-editor-modal .ec-pe-handle { margin: -8px 0 0 !important; text-align: center; font-size: 13px; color: #999999; }
#ec-profile-editor-modal .ec-pe-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
#ec-profile-editor-modal .ec-pe-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; font-weight: 600; color: #d4d4d4; }
#ec-profile-editor-modal .ec-pe-label small { font-weight: 500; color: #727272; font-size: 11px; }
#ec-profile-editor-modal .ec-pe-label small.is-over { color: #fca5a5; }
html body #ec-profile-editor-modal#ec-profile-editor-modal :is(#ec-pe-name, #ec-pe-bio) {
  width: 100% !important; box-sizing: border-box; margin: 0 !important; min-height: 46px; padding: 12px 14px !important; border-radius: 12px !important;
  background: rgba(8, 10, 16, 0.75) !important; border: 1px solid rgba(113, 113, 113, 0.22) !important; color: #fff !important; font: 400 15px/1.45 inherit !important; box-shadow: none !important; resize: vertical;
}
html body #ec-profile-editor-modal#ec-profile-editor-modal :is(#ec-pe-name, #ec-pe-bio):focus { outline: none !important; border-color: #555555 !important; box-shadow: 0 0 0 3px rgba(85, 85, 85, 0.25) !important; }
#ec-profile-editor-modal .ec-pe-hint { color: #727272; font-size: 11.5px; }
#ec-profile-editor-modal .ec-pe-lock { display: inline-flex; align-items: center; gap: 6px; color: #b8b8b8; }
html body :is(#ec-profile-editor-modal, #ec-handle-claim-modal) .ec-pe-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 4px; }
html body :is(#ec-profile-editor-modal, #ec-handle-claim-modal) .ec-pe-cancel {
  min-height: 48px; border-radius: 999px; border: 1px solid rgba(113, 113, 113, 0.3); background: transparent; color: #e7e7e7; font: 600 14px/1 inherit; cursor: pointer;
}
html body :is(#ec-profile-editor-modal, #ec-handle-claim-modal) .ec-pe-cancel:hover { border-color: rgba(114, 114, 114, 0.6); background: rgba(113, 113, 113, 0.08); }
html body :is(#ec-profile-editor-modal, #ec-handle-claim-modal) .ec-pe-save {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #555555, #555555); color: #fff; font: 700 14px/1 inherit; box-shadow: 0 6px 22px rgba(85, 85, 85, 0.45);
}
html body :is(#ec-profile-editor-modal, #ec-handle-claim-modal) .ec-pe-save:disabled { opacity: .45; cursor: default; box-shadow: none; }
html body :is(#ec-profile-editor-modal, #ec-handle-claim-modal) .ec-pe-save.is-busy { filter: saturate(.7); }

/* @Name-Dialog */
html body #ec-handle-claim-modal#ec-handle-claim-modal#ec-handle-claim-modal .ec-hc { padding: 20px 20px calc(16px + max(16px, env(safe-area-inset-bottom, 16px))) !important; display: flex; flex-direction: column; gap: 12px; }
#ec-handle-claim-modal .ec-hc-head { display: flex; align-items: center; gap: 10px; padding-right: 48px; }
#ec-handle-claim-modal .ec-hc-head h2 { text-align: left !important; }
#ec-handle-claim-modal .ec-hc-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(113, 113, 113, 0.16); color: #bdbdbd; }
html body #ec-handle-claim-modal .ec-hc-x { top: 14px; right: 14px; }
#ec-handle-claim-modal .ec-hc-text { margin: 0; color: #a1a1a1; font-size: 13px; line-height: 1.5; }
#ec-handle-claim-modal .ec-hc-input { display: flex; align-items: center; gap: 2px; min-height: 52px; padding: 0 14px; border-radius: 14px; background: rgba(8, 10, 16, 0.75); border: 1px solid rgba(113, 113, 113, 0.3); }
#ec-handle-claim-modal .ec-hc-input:focus-within { border-color: #555555; box-shadow: 0 0 0 3px rgba(85, 85, 85, 0.25); }
#ec-handle-claim-modal .ec-hc-input > span { color: #999999; font: 700 17px/1 var(--font-mono, ui-monospace, monospace); }
html body #ec-handle-claim-modal#ec-handle-claim-modal #ec-hc-handle { flex: 1; min-width: 0; height: 50px; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none !important; color: #fff !important; font: 600 16px/1 var(--font-mono, ui-monospace, monospace) !important; }
#ec-handle-claim-modal .ec-hc-state { min-height: 18px; font-size: 12.5px; color: #a1a1a1; }
#ec-handle-claim-modal .ec-hc-state[data-state="free"] { color: #b8b8b8; }
#ec-handle-claim-modal .ec-hc-state:is([data-state="taken"], [data-state="invalid"], [data-state="reserved"]) { color: #fca5a5; }
#ec-handle-claim-modal .ec-hc-state[data-state="unknown"] { color: #c1c1c1; }
#ec-handle-claim-modal .ec-hc-rules { color: #727272; font-size: 11.5px; }
/* §AURA-INTEL-HANDLE-2026-11-03: Onboarding-Schritt nach der PIN — Feld + 🎲 in einer Zeile, Schritt-Pille. */
#ec-handle-claim-modal .ec-hc-row { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
#ec-handle-claim-modal .ec-hc-row > .ec-hc-input { flex: 1 1 0; min-width: 0; }
html body #ec-handle-claim-modal .ec-hc-dice { flex: 0 0 52px; width: 52px; min-height: 52px; margin: 0; padding: 0; border-radius: 14px; border: 1px solid rgba(113, 113, 113, 0.3); background: rgba(113, 113, 113, 0.12); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
html body #ec-handle-claim-modal .ec-hc-dice:hover { border-color: rgba(114, 114, 114, 0.6); background: rgba(113, 113, 113, 0.2); }
html body #ec-handle-claim-modal .ec-hc-dice:focus-visible { outline: 2px solid #999999; outline-offset: 2px; }
#ec-handle-claim-modal .ec-hc-step { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: rgba(113, 113, 113, 0.16); color: #bdbdbd; font-size: 11.5px; font-weight: 600; }
#ec-handle-claim-modal .ec-hc-state:is([data-state="eqlogin"], [data-state="short"]) { color: #fca5a5; }

/* „Festlegen“-Knopf neben „Noch nicht festgelegt“ (Desktop + zweites Einstellungs-Layout) */
html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-mini-action.ec-handle-btn.is-claim,
html body .ec-handle-btn.is-claim {
  background: linear-gradient(135deg, #555555, #555555) !important; border-color: transparent !important; color: #fff !important;
  box-shadow: 0 0 18px rgba(85, 85, 85, 0.5) !important;
}
html body.auth-ready #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-mini-action.ec-handle-btn.is-done,
html body .ec-handle-btn.is-done { color: #b8b8b8 !important; border-color: rgba(184, 184, 184, 0.5) !important; display: inline-flex !important; align-items: center; gap: 6px; }

@media (max-width: 767px) {
  html body .ec-pe-overlay.modal-overlay { align-items: flex-end !important; padding: 12px 0 0 !important; }
  html body #ec-profile-editor-modal#ec-profile-editor-modal .ec-pe,
  html body #ec-handle-claim-modal#ec-handle-claim-modal .ec-hc { margin: auto auto 12px !important; max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px)) !important; }
  #ec-profile-editor-modal .ec-pe-banner { height: 132px; }
  html body :is(#ec-profile-editor-modal, #ec-handle-claim-modal) .ec-pe-actions { grid-template-columns: 1fr 1.7fr; }
  html body :is(#ec-profile-editor-modal, #ec-handle-claim-modal) .ec-pe-save { font-size: 13.5px; white-space: nowrap; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) { html body :is(#ec-profile-editor-modal, #ec-handle-claim-modal) :is(.ec-pe, .ec-hc) { animation: none; } }
/* §END PROFILE-EDITOR-2026-10-18 */

/* ═══════════════════════════════════════════════════════════════════════════
   §CALL-DIALOG-2026-10-18 — Anruf-Auswahl (#ec-call-sheet, ec-calls.js)
   Glas-Karte mit Cyan→Magenta-Rand, schwebendem Avatar und zwei Pillen ohne
   Badges. Doppelte ID schlägt ec-calls.css und ec-tablet-split.css.
   ═══════════════════════════════════════════════════════════════════════════ */
html body #ec-call-sheet#ec-call-sheet {
  align-items: center !important; justify-content: center !important; padding: 16px !important;
  background: rgba(2, 4, 10, 0.6) !important; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: ec-call-dlg-fade .18s ease-out both;
}
html body #ec-call-sheet#ec-call-sheet .ec-call-dialog {
  position: relative; width: 100% !important; max-width: 380px !important; margin: auto !important; box-sizing: border-box;
  padding: 46px 24px 22px !important; gap: 0 !important; overflow: visible !important;
  border-radius: 28px !important; border: 1.5px solid transparent !important;
  background: rgba(24, 24, 24, 0.7);
  background-clip: padding-box, border-box !important; background-origin: padding-box, border-box !important;
  background-image:
    linear-gradient(to bottom right, rgba(24, 24, 24, 0.8), rgba(17, 17, 17, 0.9)),
    linear-gradient(135deg, rgba(147, 147, 147, 0.9) 0%, rgba(85, 85, 85, 0.35) 50%, rgba(113, 113, 113, 0.9) 100%) !important;
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(113, 113, 113, 0.15) !important;
  color: #fff !important; animation: ec-call-dlg-in .22s cubic-bezier(0.4, 0, 0.2, 1) both;
}
html body #ec-call-sheet#ec-call-sheet.is-closing { animation: ec-call-dlg-fade-out .18s ease-in both; }
html body #ec-call-sheet#ec-call-sheet.is-closing .ec-call-dialog { animation: ec-call-dlg-out .18s ease-in both; }
@keyframes ec-call-dlg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ec-call-dlg-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes ec-call-dlg-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ec-call-dlg-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px) scale(.97); } }

/* Schwebender Avatar auf der Oberkante */
html body #ec-call-sheet .ec-call-avatar-floating {
  position: absolute; top: -38px; left: 50%; transform: translateX(-50%); width: 76px; height: 76px; box-sizing: border-box;
  border-radius: 50%; border: 3px solid transparent;
  background-image: linear-gradient(hsl(var(--ec-call-av-hue, 270) 55% 32%), hsl(calc(var(--ec-call-av-hue, 270) + 40) 60% 22%)), linear-gradient(135deg, #939393, #717171);
  background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: 0 0 20px rgba(147, 147, 147, 0.6), 0 0 25px rgba(113, 113, 113, 0.45);
  display: grid; place-items: center; overflow: hidden;
}
html body #ec-call-sheet .ec-call-avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
html body #ec-call-sheet .ec-call-avatar-img[hidden] { display: none; }
html body #ec-call-sheet .ec-call-avatar-initials { color: #fff; font: 700 24px/1 inherit; letter-spacing: .5px; }
html body #ec-call-sheet .ec-call-avatar-floating.has-img .ec-call-avatar-initials { visibility: hidden; }

/* Titel = Kontakt-/Gruppenname */
html body #ec-call-sheet#ec-call-sheet .ec-call-sheet-title {
  display: block; text-align: center; color: #ffffff !important; font-size: 20px !important; font-weight: 700 !important;
  letter-spacing: -0.3px; line-height: 1.25; margin: 4px 0 20px !important; padding: 0 !important;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
html body #ec-call-sheet#ec-call-sheet .ec-call-sheet-note { margin: -10px 0 14px; padding: 0 4px; font-size: 12px; color: #c1c1c1; text-align: center; }

/* Zwei Pillen */
html body #ec-call-sheet#ec-call-sheet .ec-call-pill {
  display: flex !important; align-items: center; width: 100%; box-sizing: border-box; height: 58px; min-height: 58px;
  padding: 0 16px 0 8px !important; margin: 0 0 12px !important; border-radius: 9999px !important; cursor: pointer;
  background: rgba(255, 255, 255, 0.04) !important; border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #fff !important; text-align: left; font: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
html body #ec-call-sheet .ec-call-pill-ico {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff;
}
html body #ec-call-sheet .ec-call-pill-ico svg { width: 22px; height: 22px; display: block; }
html body #ec-call-sheet .ec-call-pill.is-voice .ec-call-pill-ico { background: linear-gradient(135deg, #afafaf, #939393); box-shadow: 0 0 18px rgba(147, 147, 147, 0.7); }
html body #ec-call-sheet .ec-call-pill.is-video .ec-call-pill-ico { background: linear-gradient(135deg, #9a9a9a, #717171); box-shadow: 0 0 18px rgba(113, 113, 113, 0.7); }
html body #ec-call-sheet .ec-call-pill-label { color: #fff; font-size: 16px; font-weight: 600; margin-left: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body #ec-call-sheet#ec-call-sheet .ec-call-pill.is-voice:is(:active, :focus-visible) { border-color: rgba(147, 147, 147, 0.4) !important; box-shadow: 0 0 16px rgba(147, 147, 147, 0.2); outline: none; }
html body #ec-call-sheet#ec-call-sheet .ec-call-pill.is-video:is(:active, :focus-visible) { border-color: rgba(113, 113, 113, 0.4) !important; box-shadow: 0 0 16px rgba(113, 113, 113, 0.2); outline: none; }
html body #ec-call-sheet#ec-call-sheet .ec-call-pill:active { transform: scale(.985); }
/* Hover-Glow nur mit echter Maus — auf Touch bliebe er nach dem Tippen „kleben“. */
@media (hover: hover) {
  html body #ec-call-sheet#ec-call-sheet .ec-call-pill.is-voice:hover { border-color: rgba(147, 147, 147, 0.4) !important; box-shadow: 0 0 16px rgba(147, 147, 147, 0.2); }
  html body #ec-call-sheet#ec-call-sheet .ec-call-pill.is-video:hover { border-color: rgba(113, 113, 113, 0.4) !important; box-shadow: 0 0 16px rgba(113, 113, 113, 0.2); }
}

/* Abbrechen */
html body #ec-call-sheet#ec-call-sheet .ec-call-dialog-cancel {
  display: block; width: 100%; height: 44px; min-height: 44px; margin: 4px 0 0 !important; padding: 0 !important; border-radius: 9999px !important;
  border: 1px solid rgba(147, 147, 147, 0.25) !important; background: rgba(255, 255, 255, 0.02) !important; color: #939393 !important;
  font-size: 14px !important; font-weight: 500 !important; text-align: center; cursor: pointer; touch-action: manipulation;
  transition: all 0.2s ease;
}
html body #ec-call-sheet#ec-call-sheet .ec-call-dialog-cancel:is(:hover, :focus-visible) { background: rgba(147, 147, 147, 0.1) !important; border-color: rgba(147, 147, 147, 0.5) !important; outline: none; }

/* Mobil / Capacitor: schmaler, Daumen-Ziele ≥ 56 px, vertikal zentriert */
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
  html body #ec-call-sheet#ec-call-sheet { padding: calc(16px + env(safe-area-inset-top, 0px)) 0 calc(16px + env(safe-area-inset-bottom, 0px)) !important; }
  html body #ec-call-sheet#ec-call-sheet .ec-call-dialog { width: calc(100% - 32px) !important; max-width: 360px !important; }
  html body #ec-call-sheet#ec-call-sheet .ec-call-dialog-cancel { height: 56px; min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html body #ec-call-sheet#ec-call-sheet, html body #ec-call-sheet#ec-call-sheet .ec-call-dialog { animation: none !important; }
  html body #ec-call-sheet#ec-call-sheet .ec-call-pill, html body #ec-call-sheet#ec-call-sheet .ec-call-dialog-cancel { transition: none; }
}
/* §END CALL-DIALOG-2026-10-18 */

/* ═══════════════════════════════════════════════════════════════════════════
   §AUTODL-2026-10-18 — „Tippen zum Laden“-Karte (Auto-Download aus) +
   mobile Schalter unter Speicher & Daten. Die Karte steht in #messages UND in
   beiden Spiegeln (feste Form [data-ec-media-gate], siehe ui-render.js).
   ═══════════════════════════════════════════════════════════════════════════ */
.ec-media-gate {
  position: relative; display: flex; align-items: center; gap: 12px; box-sizing: border-box;
  width: min(280px, 100%); max-width: 100%; min-height: 64px; padding: 10px 10px 10px 12px; border-radius: 18px;
  background: rgba(16, 16, 16, 0.78); border: 1px solid rgba(113, 113, 113, 0.28); color: #e7e7e7;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); cursor: pointer; text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
/* Fotos/Videos: Fläche im endgültigen Seitenverhältnis reservieren (aspect-ratio inline). */
.ec-media-gate--photos, .ec-media-gate--videos {
  align-items: flex-end; max-width: 100%; max-height: 320px; padding: 12px; line-height: 1.35; border-radius: 16px;
  background: radial-gradient(120% 90% at 30% 20%, rgba(85, 85, 85, 0.28), transparent 60%), linear-gradient(160deg, rgba(24, 24, 24, 0.92), rgba(8, 10, 16, 0.94));
}
.ec-media-gate-ico {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(113, 113, 113, 0.16); color: #bdbdbd;
}
.ec-media-gate--photos .ec-media-gate-ico, .ec-media-gate--videos .ec-media-gate-ico { position: absolute; top: 12px; left: 12px; }
/* Foto/Video: Download-Knopf mittig auf der Fläche (unten rechts liegt der Zeitstempel). */
.ec-media-gate--photos .ec-media-gate-btn, .ec-media-gate--videos .ec-media-gate-btn {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; min-width: 56px; margin: -28px 0 0 -28px;
}
.ec-media-gate--photos .ec-media-gate-copy, .ec-media-gate--videos .ec-media-gate-copy { padding-right: 64px; }
.ec-media-gate-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ec-media-gate-copy strong { font-size: 13.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-media-gate-copy small { font-size: 11.5px; color: #a1a1a1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-media-gate-btn {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; min-width: 48px; padding: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #555555, #555555); color: #fff; box-shadow: 0 0 16px rgba(85, 85, 85, 0.5);
  touch-action: manipulation; transition: transform .15s ease, box-shadow .2s ease;
}
.ec-media-gate:hover .ec-media-gate-btn, .ec-media-gate-btn:focus-visible { box-shadow: 0 0 22px rgba(114, 114, 114, 0.75); outline: none; }
.ec-media-gate:not(.ec-media-gate--photos):not(.ec-media-gate--videos):active .ec-media-gate-btn { transform: scale(.94); }
.ec-media-gate.is-loading, .ec-media-gate[data-busy] { pointer-events: none; opacity: .75; }
.ec-media-gate.is-loading .ec-media-gate-btn svg, .ec-media-gate[data-busy] .ec-media-gate-btn svg { animation: ec-gate-spin 1s linear infinite; }
@keyframes ec-gate-spin { to { transform: rotate(360deg); } }
/* Spiegel: Blase ohne Verlaufs-Verkleidung um die Karte (wie bei Bildern). */
html body #ec-mobile-shell .ecm-msg.ecm-msg--gate:not(.ecm-msg--media), html body #ec-claude-shell-final .ecf-live-message.ecf-live-message--gate:not(.ecf-live-message--media) {
  background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; max-width: min(280px, 86%);
}
/* Foto/Video: Karte sitzt in derselben Medienblase wie das spaetere Bild. */
.ecm-msg--gate.ecm-msg--media .ec-media-gate, .ecf-live-message--gate.ecf-live-message--media .ec-media-gate { border: 0; border-radius: 0; box-shadow: none; }
html body #ec-mobile-shell .ecm-msg.ecm-msg--gate.mine, html body #ec-claude-shell-final .ecf-live-message.ecf-live-message--gate.mine { margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .ec-media-gate .ec-media-gate-btn svg { animation: none !important; } }

/* Mobile Schalter (Einstellungen > Speicher & Daten) */
html body #ec-mobile-shell .ec-autodl-row { display: flex; align-items: center; gap: 12px; min-height: 56px; width: 100%; text-align: left; }
html body #ec-mobile-shell .ec-autodl-row .ec-mobile-setting-icon { color: #bdbdbd; }
/* Schalter: fünffache Shell-ID gegen die Mobil-Regeln für Spans in Einstellungszeilen. */
html body #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ec-autodl-row .ec-autodl-switch {
  flex: none !important; position: relative !important; display: block !important; width: 48px !important; height: 28px !important; min-width: 48px !important;
  padding: 0 !important; margin: 0 0 0 auto !important; border-radius: 999px !important; box-sizing: border-box !important;
  background: rgba(63, 63, 63, 0.75) !important; border: 1px solid rgba(161, 161, 161, 0.3) !important; box-shadow: none !important;
  transition: background .2s ease, box-shadow .2s ease;
}
html body #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ec-autodl-row .ec-autodl-switch i {
  position: absolute !important; top: 3px !important; left: 3px !important; width: 20px !important; height: 20px !important; margin: 0 !important;
  border-radius: 50% !important; background: #fff !important; box-shadow: 0 1px 4px rgba(0, 0, 0, .4) !important; transition: left .2s ease;
}
html body #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ec-autodl-row .ec-autodl-switch.is-on { background: #9b9b9b !important; border-color: #9b9b9b !important; box-shadow: 0 0 12px rgba(155, 155, 155, .5) !important; }
html body #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ec-autodl-row .ec-autodl-switch.is-on i { left: 23px !important; }
html body #ec-mobile-shell .ec-autodl-card small { display: block; margin-top: 4px; }
html body #ec-mobile-shell .ec-autodl-net { padding: 6px 4px 10px; font-size: 12px; color: #a1a1a1; }
/* §END AUTODL-2026-10-18 */

/* ═══ §REPLY-QUOTE-MOBILE-2026-11-13 — Zitat der beantworteten Nachricht in der Blase (ecMirrorQuoteHtml) ═══
   Kompakte B&W-Box: Strich links in Textfarbe, Absender fett, Text max. 2 Zeilen. Ein Knopf (Tipp → scrollMsg),
   Wisch-Gesten starten auch darauf (ec-touch-gestures: Knoepfe in Blasen sind keine tote Zone). */
html body #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecm-msg .ec-mquote,
html body #ec-final-chat-stream .ecf-live-message .ec-mquote {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 1px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  box-sizing: border-box !important;
  margin: 0 0 6px !important;
  padding: 6px 10px 6px 9px !important;
  border: 0 !important;
  border-left: 3px solid currentColor !important;
  border-radius: 8px !important;
  background: rgba(0, 0, 0, 0.22) !important;
  box-shadow: none !important;
  color: inherit !important;
  font: inherit !important;
  text-align: left !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent;
}
html body #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecm-msg.theirs .ec-mquote,
html body #ec-final-chat-stream .ecf-live-message.theirs .ec-mquote {
  background: rgba(255, 255, 255, 0.07) !important;
}
html body #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecm-msg .ec-mquote strong,
html body #ec-final-chat-stream .ecf-live-message .ec-mquote strong {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}
html body #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecm-msg .ec-mquote span,
html body #ec-final-chat-stream .ecf-live-message .ec-mquote span {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  max-width: 100% !important;
  font-size: 12.5px !important;
  line-height: 1.35 !important;
  opacity: 0.78 !important;
  word-break: break-word !important;
  margin: 0 !important;
}
/* Bild-Blase ohne Polsterung: Zitat mit eigenem Rand ueber dem Bild. */
html body #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecm-msg.ecm-msg--media .ec-mquote {
  width: auto !important;
  margin: 6px 6px 4px !important;
  background: rgba(20, 20, 20, 0.85) !important;
  color: #f5f5f5 !important;
}
html body #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecm-msg .ec-mquote:focus-visible,
html body #ec-final-chat-stream .ecf-live-message .ec-mquote:focus-visible {
  outline: 2px solid currentColor !important;
  outline-offset: 2px !important;
}
/* Ziel des Tipps kurz umranden (statisch: der Spiegel wird beim Polling neu gebaut und setzt die Klasse erneut). */
html body #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecm-msg.ec-quote-flash,
html body #ec-final-chat-stream .ecf-live-message.ec-quote-flash {
  outline: 2px solid rgba(255, 255, 255, 0.9) !important;
  outline-offset: 2px !important;
}
