/* ec-p1-ui.css — §P1-UI-2026-11-08 · Einstellungen „Sprache“ + 2FA-Glas-Karte (vor der Anmeldung). */

/* ── Einstellungen → Sprache ─────────────────────────────────────────────────────────── */
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ec-lang-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  max-width: 440px;
}
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ec-lang-opt {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 48px !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: rgba(237, 237, 237, 0.92) !important;
  font: inherit !important;
  font-size: 14px !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: background-color .15s ease, border-color .15s ease !important;
}
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ec-lang-opt:hover { background: rgba(255, 255, 255, 0.08) !important; }
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ec-lang-opt:focus-visible { outline: 2px solid rgba(113, 113, 113, 0.7) !important; outline-offset: 1px !important; }
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ec-lang-opt.is-active,
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ec-lang-opt[aria-checked="true"] {
  border-color: rgba(113, 113, 113, 0.55) !important;
  background: rgba(113, 113, 113, 0.12) !important;
}
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ec-lang-opt .ec-lang-code {
  display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; border-radius: 7px;
  background: rgba(255, 255, 255, 0.06); font: 700 11px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .06em;
  color: rgba(214, 214, 214, 0.8);
}
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ec-lang-opt .ec-lang-name { flex: 1 1 auto; min-width: 0; font-weight: 550; }
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ec-lang-opt .ec-lang-check { display: inline-grid; place-items: center; color: #999999; opacity: 0; }
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ec-lang-opt[aria-checked="true"] .ec-lang-check { opacity: 1; }

/* ── 2FA-Glas-Karte (#twofa-login-modal, ec-tfa-glass.js) ─────────────────────────────── */
html body #twofa-login-modal#twofa-login-modal.ec-tfa-overlay.active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)) !important;
}
html body #twofa-login-modal#twofa-login-modal > .modal.ec-tfa-card {
  position: relative !important;
  width: min(400px, 100%) !important;
  max-width: 400px !important;
  max-height: calc(100dvh - 32px) !important;
  overflow-y: auto !important;
  margin: 0 auto !important;
  padding: 26px 24px 20px !important;
  border-radius: 24px !important;
  background: rgba(10, 10, 16, 0.85) !important;
  -webkit-backdrop-filter: blur(28px) saturate(140%) !important;
  backdrop-filter: blur(28px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  color: #ededed !important;
  transform: none !important;
  bottom: auto !important;
}
html body #twofa-login-modal#twofa-login-modal > .modal.ec-tfa-card > .modal-handle { display: none !important; }
#twofa-login-modal .ec-tfa-head { text-align: center; margin-bottom: 18px; }
#twofa-login-modal .ec-tfa-badge {
  position: relative; width: 72px; height: 72px; margin: 0 auto 14px; display: grid; place-items: center;
  border-radius: 22px; background: radial-gradient(circle at 50% 35%, rgba(188, 188, 188, 0.22), rgba(188, 188, 188, 0.04) 70%);
  border: 1px solid rgba(188, 188, 188, 0.22); box-shadow: 0 10px 30px rgba(188, 188, 188, 0.12);
}
#twofa-login-modal .ec-tfa-shield { position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center;
  filter: drop-shadow(0 4px 10px rgba(123, 123, 123, 0.45)); }
#twofa-login-modal .ec-tfa-head h2 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: #f6f5ff; }
#twofa-login-modal .ec-tfa-head p { margin: 6px 0 0; font-size: 13.5px; color: rgba(214, 214, 214, 0.66); }
#twofa-login-modal .ec-tfa-body { display: flex; flex-direction: column; gap: 14px; }
#twofa-login-modal .ec-tfa-code { position: relative; }
#twofa-login-modal .ec-tfa-boxes { display: flex; justify-content: center; align-items: center; gap: 8px; pointer-events: none; }
#twofa-login-modal .ec-tfa-gap { width: 6px; flex: 0 0 6px; }
#twofa-login-modal .ec-tfa-box {
  width: 46px; height: 56px; flex: 0 1 46px; min-width: 0; display: grid; place-items: center; border-radius: 14px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.10);
  font: 700 24px/1 "JetBrains Mono", ui-monospace, monospace; color: #f6f5ff;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
#twofa-login-modal .ec-tfa-box.is-filled { background: rgba(113, 113, 113, 0.10); border-color: rgba(113, 113, 113, 0.35); }
#twofa-login-modal .ec-tfa-box.is-current { border-color: rgba(113, 113, 113, 0.85); box-shadow: 0 0 0 3px rgba(113, 113, 113, 0.22); }
#twofa-login-modal .ec-tfa-box.is-current:empty::after { content: ""; width: 2px; height: 24px; background: #999999; animation: ec-tfa-caret 1s steps(1) infinite; }
@keyframes ec-tfa-caret { 50% { opacity: 0; } }
/* Das echte Feld liegt unsichtbar ueber den Kaestchen (16 px: kein iOS-Zoom).
   §2FA-PASTE-2026-11-14: opacity 1 statt 0 — WebKit (iOS) haelt ein Feld mit opacity 0 fuer „transparent“ und
   zeigt dann kein Einfuegen-Menue (Long-Press/Tipp). Unsichtbar bleibt es ueber transparente Schrift/Caret/Auswahl. */
html body #twofa-login-modal#twofa-login-modal .ec-tfa-input {
  position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; outline: none !important;
  background: transparent !important; color: transparent !important; caret-color: transparent !important;
  font-size: 16px !important; letter-spacing: 0 !important; opacity: 1 !important; z-index: 1 !important;
  -webkit-text-fill-color: transparent !important; cursor: text !important; text-shadow: none !important;
  box-shadow: none !important; -webkit-appearance: none !important; appearance: none !important;
}
html body #twofa-login-modal#twofa-login-modal .ec-tfa-input::selection { background: transparent !important; color: transparent !important; }
/* AutoFill-Einfaerbung (Chrome/Safari) darf das jetzt sichtbare Feld nicht ueber die Kaestchen legen. */
html body #twofa-login-modal#twofa-login-modal .ec-tfa-input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px transparent inset !important; transition: background-color 600000s 0s, color 600000s 0s !important; }
#twofa-login-modal .ec-tfa-timer { display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12.5px; color: rgba(214, 214, 214, 0.72); }
#twofa-login-modal .ec-tfa-timer #twofa-login-timer { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; }
#twofa-login-modal .ec-tfa-ring { transform: rotate(-90deg); flex: 0 0 auto; }
#twofa-login-modal .ec-tfa-ring circle { fill: none; stroke-width: 3; }
#twofa-login-modal .ec-tfa-ring-bg { stroke: rgba(255, 255, 255, 0.10); }
#twofa-login-modal .ec-tfa-ring-fg { stroke: #717171; stroke-linecap: round; transition: stroke-dashoffset .9s linear, stroke .2s ease; }
#twofa-login-modal .ec-tfa-ring-fg.is-low { stroke: #ff4757; }
/* §TFA-PILL-2026-11-09: monochrome white pill. Label is text only (no inline "✓") so it is optically centered.
   Neutralized from the generic .btn (style.css): ::before gradient sheen on hover, max-width 300px, hover lift.
   The empty <span class="spin"> that setBtn() injects while loading has no CSS anywhere -> hidden here so
   "Bitte warten…" stays centered. Hover only on real pointers (no sticky scale after a tap in the WebView). */
html body #twofa-login-modal#twofa-login-modal .ec-tfa-submit {
  width: 100% !important; max-width: 100% !important; min-height: 48px !important; padding: 0 20px !important;
  border: none !important; border-radius: 9999px !important;
  background: #ffffff !important; color: #000000 !important; -webkit-text-fill-color: #000000 !important;
  font-size: 15px !important; font-weight: 600 !important; letter-spacing: -0.01em !important;
  display: flex !important; align-items: center !important; justify-content: center !important; text-align: center !important;
  gap: 0 !important; box-shadow: none !important; filter: none !important; text-shadow: none !important; transform: none !important;
  cursor: pointer !important; transition: background-color .15s ease, transform .15s ease !important;
}
html body #twofa-login-modal#twofa-login-modal .ec-tfa-submit::before,
html body #twofa-login-modal#twofa-login-modal .ec-tfa-submit::after { content: none !important; display: none !important; }
html body #twofa-login-modal#twofa-login-modal .ec-tfa-submit .spin { display: none !important; }
@media (hover: hover) and (pointer: fine) {
  html body #twofa-login-modal#twofa-login-modal .ec-tfa-submit:hover:not([disabled]) { background: rgba(255, 255, 255, 0.9) !important; transform: scale(1.01) !important; }
}
html body #twofa-login-modal#twofa-login-modal .ec-tfa-submit:active:not([disabled]) { transform: scale(0.99) !important; }
html body #twofa-login-modal#twofa-login-modal .ec-tfa-submit:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.85) !important; outline-offset: 3px !important; }
html body #twofa-login-modal#twofa-login-modal .ec-tfa-submit[disabled] { opacity: .75 !important; cursor: default !important; }
#twofa-login-modal .ec-tfa-backup { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 14px; }
#twofa-login-modal .ec-tfa-backup-label { font-size: 12px; color: rgba(214, 214, 214, 0.66); text-align: center; }
html body #twofa-login-modal#twofa-login-modal .ec-tfa-backup-field {
  width: 100% !important; text-align: center !important; font: 700 16px/1.2 "JetBrains Mono", ui-monospace, monospace !important;
  letter-spacing: 4px !important; background: rgba(255, 255, 255, 0.04) !important; border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 12px !important; padding: 12px !important; color: #f6f5ff !important; text-transform: uppercase !important; outline: none !important;
}
html body #twofa-login-modal#twofa-login-modal .ec-tfa-backup-field:focus { border-color: rgba(113, 113, 113, 0.8) !important; }
#twofa-login-modal .ec-tfa-foot { margin: 2px 0 0; text-align: center; font-size: 12.5px; color: rgba(214, 214, 214, 0.6); }
html body #twofa-login-modal#twofa-login-modal .ec-tfa-link {
  background: none !important; border: 0 !important; padding: 2px 0 !important; color: #999999 !important;
  font: inherit !important; font-weight: 600 !important; cursor: pointer !important; text-decoration: underline !important;
  text-underline-offset: 3px !important; min-height: 0 !important; width: auto !important;
}
@media (max-width: 380px) {
  #twofa-login-modal .ec-tfa-box { height: 50px; font-size: 21px; }
  #twofa-login-modal .ec-tfa-boxes { gap: 6px; }
  html body #twofa-login-modal#twofa-login-modal > .modal.ec-tfa-card { padding: 22px 16px 18px !important; }
}
@media (prefers-reduced-motion: reduce) {
  #twofa-login-modal .ec-tfa-ring-fg, #twofa-login-modal .ec-tfa-box { transition: none; }
  #twofa-login-modal .ec-tfa-box.is-current:empty::after { animation: none; }
}

/* ── Leerer Chat: 3D-Obsidian-Glas-Kugel (ui-render.js ecEmptyOrbHtml) ─────────────────── */
.ec-orb { display: block; width: 148px; margin: 0 auto 16px; pointer-events: none; }
.ec-orb-svg {
  display: block; width: 148px; height: auto; overflow: visible;
  filter: drop-shadow(10px 14px 26px rgba(85, 85, 85, 0.28)) drop-shadow(-6px -8px 22px rgba(175, 175, 175, 0.10));
  animation: ec-orb-float 7s ease-in-out infinite;
}
.ec-orb-floor { animation: ec-orb-floor 7s ease-in-out infinite; transform-origin: 80px 156px; }
@keyframes ec-orb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes ec-orb-floor { 0%, 100% { opacity: 1; transform: scaleX(1); } 50% { opacity: .78; transform: scaleX(.93); } }
/* Desktop-Stream: alte Regel „.ecf-chat-empty > div“ (margin-top 12 px, flex-wrap) darf die Kugel nicht treffen. */
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-chat-empty.ecf-chat-empty-orb {
  display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important;
  text-align: center !important; padding: 24px 18px !important; gap: 6px !important;
}
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-chat-empty.ecf-chat-empty-orb > .ec-orb {
  display: block !important; width: 148px !important; margin: 0 auto 16px !important; flex: 0 0 auto !important;
}
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-chat-empty.ecf-chat-empty-orb h2 { color: #f4f4f4 !important; }
html body #ec-claude-shell-final#ec-claude-shell-final#ec-claude-shell-final .ecf-chat-empty.ecf-chat-empty-orb p { color: rgba(214, 214, 214, 0.62) !important; }
/* Handy: 120 px. */
html body #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecm-empty.ecm-empty-orb {
  display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center !important;
}
html body #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecm-empty.ecm-empty-orb > .ec-orb,
html body #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecm-empty.ecm-empty-orb .ec-orb-svg {
  width: 120px !important; margin-left: auto !important; margin-right: auto !important;
}
html body #ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell#ec-mobile-shell .ecm-empty.ecm-empty-orb > .ec-orb { margin-bottom: 12px !important; }
@media (max-width: 899px) {
  .ec-orb, .ec-orb-svg { width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .ec-orb-svg, .ec-orb-floor { animation: none; }
}

/* ── §2FA-PASTE-2026-11-14: jedes 2FA-Feld bleibt einfuegbar + „Einfügen“-Knopf (B&W) ───────────────────────
   Kein user-select:none / touch-callout:none aus einem Elternteil darf Long-Press → Einfuegen sperren. */
input[autocomplete="one-time-code"], input[data-ec-otp] {
  -webkit-user-select: text !important; user-select: text !important; -webkit-touch-callout: default !important;
}
html body .ec-otp-paste {
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 7px !important;
  align-self: center !important; width: auto !important; max-width: 100% !important; min-height: 40px !important;
  margin: 0 auto !important; padding: 0 16px !important; border-radius: 9999px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important; background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(246, 246, 246, 0.9) !important; -webkit-text-fill-color: rgba(246, 246, 246, 0.9) !important;
  font-family: inherit !important; font-size: 13px !important; font-weight: 600 !important; line-height: 1 !important;
  letter-spacing: 0 !important; text-transform: none !important; box-shadow: none !important; transform: none !important;
  cursor: pointer !important; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color .15s ease, border-color .15s ease !important;
}
html body .ec-otp-paste::before, html body .ec-otp-paste::after { content: none !important; }
html body .ec-otp-paste svg { flex: 0 0 auto; display: block; }
html body .ec-otp-paste:active { background: rgba(255, 255, 255, 0.12) !important; }
html body .ec-otp-paste[aria-busy="true"] { opacity: .6 !important; }
html body .ec-otp-paste:focus-visible { outline: 2px solid #ffffff !important; outline-offset: 2px !important; }
@media (hover: hover) and (pointer: fine) {
  html body .ec-otp-paste:hover { background: rgba(255, 255, 255, 0.08) !important; border-color: rgba(255, 255, 255, 0.32) !important; }
}
.ec-otp-paste-row { display: flex; justify-content: center; margin-top: 10px; }
.ec-otp-hint { display: block; margin: 6px auto 0; max-width: 340px; font-size: 12px; line-height: 1.45; text-align: center;
  color: rgba(214, 214, 214, 0.78); }
.ec-otp-hint:empty { display: none; }
#ec-susp-totp + .ec-otp-paste, #ec-ops-totp + .ec-otp-paste { margin: 8px 0 0 !important; }
