/* ═══════════════════════════════════════════════════════════════════════════
   ec-ux-sprint.css — §UX-SPRINT-2026-09-15
   Schnellsuche, Drag-&-Drop-Overlay, Sende-Status, Sicherheits-Inspector.

   BEWUSST EIGENE KLASSENNAMEN (ec-ux-*): mobile-overrides.css ist 592 KB und
   desktop-overrides.css 155 KB gross, beide voller !important-Regeln und
   wiederholter ID-Selektoren. Wer sich dort in bestehende Klassen einklinkt,
   verliert die Spezifitaets-Schlacht oder gewinnt sie nur mit noch mehr
   !important. Neue, nirgends sonst benutzte Namen kollidieren gar nicht erst —
   deshalb kommt diese Datei auch ohne ein einziges !important aus.

   Farben nach Vorgabe: OLED-Schwarz #0b0c10, Cyber-Dark #1f2833.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --ec-ux-oled: #0b0c10;
  --ec-ux-panel: #1f2833;
  --ec-ux-line: #2b3746;
  --ec-ux-text: #e8e8f2;
  --ec-ux-muted: #9aa6b8;
  --ec-ux-accent: #66fcf1;
  --ec-ux-accent-dim: rgba(102, 252, 241, .14);
}

/* ── Schnellsuche (Ctrl/Cmd + K) ─────────────────────────────────────── */
.ec-ux-palette {
  position: fixed; inset: 0; z-index: 99999;
  display: none; align-items: flex-start; justify-content: center;
  background: rgba(5, 6, 9, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: max(12vh, calc(48px + env(safe-area-inset-top, 0px))) 16px 16px;
}
.ec-ux-palette.is-open { display: flex; }
.ec-ux-palette-box {
  width: min(680px, 100%); background: var(--ec-ux-panel);
  border: 1px solid var(--ec-ux-line); border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55); overflow: hidden;
  display: flex; flex-direction: column; max-height: min(70vh, 560px);
}
.ec-ux-palette-input {
  width: 100%; box-sizing: border-box; border: 0; outline: 0;
  background: var(--ec-ux-oled); color: var(--ec-ux-text);
  font: 16px/1.4 inherit; padding: 16px 18px;
  border-bottom: 1px solid var(--ec-ux-line);
}
.ec-ux-palette-input::placeholder { color: var(--ec-ux-muted); }
.ec-ux-palette-list { overflow-y: auto; padding: 6px; margin: 0; list-style: none; }
.ec-ux-palette-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; border-radius: 9px; cursor: pointer;
  color: var(--ec-ux-text); font-size: 14px;
}
.ec-ux-palette-item[aria-selected="true"],
.ec-ux-palette-item:hover { background: var(--ec-ux-accent-dim); }
.ec-ux-palette-kind {
  font-size: 10px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ec-ux-muted); border: 1px solid var(--ec-ux-line);
  border-radius: 5px; padding: 2px 6px; flex: none;
}
.ec-ux-palette-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-ux-palette-empty { padding: 22px 16px; color: var(--ec-ux-muted); font-size: 14px; text-align: center; }
.ec-ux-palette-hint {
  border-top: 1px solid var(--ec-ux-line); padding: 9px 14px;
  font-size: 11px; color: var(--ec-ux-muted); display: flex; gap: 14px; flex-wrap: wrap;
}
.ec-ux-kbd {
  border: 1px solid var(--ec-ux-line); border-bottom-width: 2px; border-radius: 4px;
  padding: 1px 5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px;
}

/* ── Drag-&-Drop-Overlay fuer den Tresor ─────────────────────────────── */
.ec-ux-drop {
  position: fixed; inset: 0; z-index: 99998; display: none;
  align-items: center; justify-content: center;
  background: rgba(11, 12, 16, .82); pointer-events: none;
}
.ec-ux-drop.is-active { display: flex; }
.ec-ux-drop-box {
  border: 2px dashed var(--ec-ux-accent); border-radius: 18px;
  padding: 44px 56px; text-align: center; background: rgba(39, 39, 39, .92);
  color: var(--ec-ux-text);
}
.ec-ux-drop-box b { display: block; font-size: 18px; margin-bottom: 6px; }
.ec-ux-drop-box span { font-size: 13px; color: var(--ec-ux-muted); }

/* ── Sende-Status im Eingabebereich ──────────────────────────────────── */
.ec-ux-sendstate {
  display: none; align-items: center; gap: 7px;
  font-size: 12px; color: var(--ec-ux-muted);
  padding: 4px 10px; border-radius: 999px;
  background: var(--ec-ux-accent-dim); border: 1px solid var(--ec-ux-line);
  margin: 4px 0 0; width: fit-content;
}
.ec-ux-sendstate.is-on { display: inline-flex; }
.ec-ux-sendstate.is-fail { background: rgba(255, 90, 120, .12); color: #ffb3c0; }
.ec-ux-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ec-ux-accent); flex: none;
  animation: ec-ux-pulse 1.1s ease-in-out infinite;
}
@keyframes ec-ux-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ec-ux-dot { animation: none; opacity: .8; } }

/* ── Sicherheits-Inspector (dritte Spalte) ───────────────────────────── */
.ec-ux-inspector { display: grid; gap: 9px; padding: 12px 14px; }
.ec-ux-insp-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px;
  align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--ec-ux-line);
}
.ec-ux-insp-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ec-ux-insp-k { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--ec-ux-muted); }
/* min-width:0 ist noetig, damit ellipsis in einer Grid-Spalte ueberhaupt
   greift — ohne das waechst die Spalte am Inhalt und beschneidet nie. */
.ec-ux-insp-v {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px;
  color: var(--ec-ux-text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-align: right;
}
.ec-ux-insp-v.is-ok { color: #d8d8d8; }
.ec-ux-insp-v.is-warn { color: #d8d8d8; }
.ec-ux-fp {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px;
  line-height: 1.6; color: var(--ec-ux-text); word-break: break-all;
  background: var(--ec-ux-oled); border: 1px solid var(--ec-ux-line);
  border-radius: 8px; padding: 8px 10px;
}

/* ── Nur auf dem Desktop: Inspector einklappen ───────────────────────── */
.ec-ux-collapse {
  background: transparent; border: 1px solid var(--ec-ux-line); color: var(--ec-ux-muted);
  border-radius: 7px; padding: 3px 9px; font-size: 11px; cursor: pointer; font-family: inherit;
}
.ec-ux-collapse:hover { color: var(--ec-ux-text); }

@media (max-width: 767px) {
  /* Die Schnellsuche bleibt erreichbar (externe Tastatur am Tablet), sitzt
     aber hoeher, damit die Soft-Tastatur sie nicht verdeckt. */
  .ec-ux-palette { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
  .ec-ux-palette-box { max-height: 62vh; }
}

/* ── Fuenfter Nav-Tab + Sicherheits-Sheet (mobil) ────────────────────────
   Hier ist !important unvermeidbar: mobile-overrides.css setzt die Spalten
   mit `#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell` — dreifach
   wiederholter ID-Selektor plus !important. Diese Regel spiegelt genau jene
   Spezifitaet; da diese Datei zuletzt geladen wird, gewinnt sie bei
   Gleichstand. Es ist die einzige Stelle der Datei mit !important, und der
   Grund steht hier, damit niemand sie fuer Schlamperei haelt.
   §MOBILE-NAV-UNIFY-2026-09-18: Räume ist in Chats aufgegangen → 4 Tabs,
   auf 390 px also 97 px je Ziel. */
html body.ec-mobile-shell-active #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ec-mobile-bottom-nav,
html body.ec-mobile-shell-active.auth-ready #ec-mobile-shell[data-ecm-bp="1"] .ec-mobile-bottom-nav {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* §SETTINGS-CLEANUP-2026-10-25: Regeln des mobilen Sicherheits-Sheets (.ec-ux-sheet) entfernt — das Sheet gibt es nicht mehr. */

/* ── §LANDING-DEMO-2026-09-15: Live-Verschluesselung auf der Startseite ──── */
.ec-lp-demo {
  margin: 28px auto 0; max-width: 820px;
  background: var(--ec-ux-oled); border: 1px solid var(--ec-ux-line);
  border-radius: 16px; padding: 22px 22px 18px;
}
.ec-lp-demo-kicker {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ec-ux-accent);
}
.ec-lp-demo-title { margin: 6px 0 4px; font-size: 21px; color: var(--ec-ux-text); letter-spacing: -.01em; }
.ec-lp-demo-sub { margin: 0 0 16px; font-size: 14px; color: var(--ec-ux-muted); line-height: 1.55; }
.ec-lp-demo-label {
  display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ec-ux-muted); margin-bottom: 6px;
}
.ec-lp-demo-input {
  width: 100%; box-sizing: border-box; background: var(--ec-ux-panel);
  border: 1px solid var(--ec-ux-line); border-radius: 10px;
  padding: 13px 14px; color: var(--ec-ux-text); font: 16px/1.4 inherit;
}
.ec-lp-demo-input:focus { outline: 2px solid var(--ec-ux-accent); outline-offset: 1px; }
.ec-lp-demo-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px; margin-top: 14px;
}
.ec-lp-demo-cell {
  background: var(--ec-ux-panel); border: 1px solid var(--ec-ux-line);
  border-radius: 10px; padding: 11px 12px; min-width: 0;
}
.ec-lp-demo-k {
  display: block; font-size: 10px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ec-ux-muted); margin-bottom: 5px;
}
/* Geheimtext kann lang werden: umbrechen statt die Kachel sprengen. */
.ec-lp-demo-v {
  display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; line-height: 1.5; color: var(--ec-ux-accent);
  word-break: break-all; max-height: 86px; overflow-y: auto;
}
.ec-lp-demo-note { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: var(--ec-ux-muted); }
@media (max-width: 520px) {
  .ec-lp-demo { padding: 18px 16px 14px; border-radius: 14px; }
  .ec-lp-demo-title { font-size: 19px; }
}

/* §SETTINGS-CLEANUP-2026-10-26: Benachrichtigungen (Desktop, ec-notify-prefs.js) — Hinweis unter den Schaltern. */
.ec-notify-note-d { display: grid; gap: 4px; padding: 12px 2px 2px; }
.ec-notify-note-d strong { font-size: 13px; font-weight: 600; }
.ec-notify-note-d small { font-size: 12px; line-height: 1.5; opacity: .72; }
.ec-notify-kv .ecf-ui-toggle[disabled] { opacity: .45; cursor: not-allowed; }
