/* =========================================================
 * ELITECRYPT · Main stylesheet
 * Extracted from index.html <style> block (V19 R1 refactor).
 * Contents are byte-identical to the original inline block.
 * No rules added, removed, or reordered.
 * ========================================================= */
/* ═══════════════════════════════════════════════════════════════
   ELITECRYPT — CYBER LUXURY DESIGN SYSTEM v3.0
   Ästhetik: Deep Black · Neon Cyan · Violett · Gold
   ═══════════════════════════════════════════════════════════════ */

/* ── LOKALE Fonts: Poppins + Space Grotesk + JetBrains Mono ──
   §FONTS-LOCAL-2026-09-06: war @import auf fonts.googleapis.com — jeder
   Seitenaufruf leakte IP/User-Agent/Referer an Google (CSS von googleapis,
   Dateien von gstatic). Jetzt vollstaendig self-hosted unter /assets/fonts/;
   style-src/font-src koennen dadurch auf 'self' zurueckgezogen werden.
   Gleiche Familien/Gewichte, Subsets latin + latin-ext (ae oe ue ss ok). */
@import url('/assets/css/fonts-local.css');

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Core Backgrounds */
  --bg:        #000000;
  --bg2:       #050508;
  --bg3:       #0a0a12;
  --bg4:       #0f0f1a;

  /* Borders */
  --border:    rgba(120,100,255,0.12);
  --border-hi: rgba(0,255,255,0.25);

  /* Accent Colors */
  --accent:    #7c6af7;
  --accent-hi: #9b8fff;
  --cyan:      #00ffff;
  --cyan-dim:  #00cccc;
  --purple:    #9333ea;
  --gold:      #ffd700;
  --gold-dim:  #ccaa00;
  --danger:    #ff3355;
  --green:     #00ff88;

  /* Typography */
  --text:      #e8e8f2;
  --text2:     #7070a0;
  --text3:     #404060;
  --font:      'Poppins', 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', 'Space Mono', monospace;

  /* FX */
  --glow-cyan:   0 0 20px rgba(0,255,255,0.35), 0 0 60px rgba(0,255,255,0.12);
  --glow-purple: 0 0 20px rgba(147,51,234,0.4), 0 0 60px rgba(147,51,234,0.15);
  --glow-gold:   0 0 15px rgba(255,215,0,0.4),  0 0 40px rgba(255,215,0,0.12);
  --glass:       rgba(255,255,255,0.025);
  --glass-hi:    rgba(255,255,255,0.05);
  --blur:        blur(30px) saturate(180%);
  --blur-heavy:  blur(60px) saturate(200%);

  /* Spacing */
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Accent legacy aliases */
  --accent2: var(--cyan);
  --resend-purple: var(--accent);
  --resend-cyan:   var(--cyan);
}

/* Privacy overlay / app-switcher shield visual refresh */
.ec-privacy-overlay {
  min-height: 100dvh !important;
  padding: max(24px, env(safe-area-inset-top, 0px)) clamp(18px, 4vw, 58px) max(28px, env(safe-area-inset-bottom, 0px)) !important;
  background:
    radial-gradient(circle at 50% 24%, rgba(23, 207, 255, 0.28), transparent 25%),
    radial-gradient(circle at 59% 32%, rgba(132, 91, 255, 0.28), transparent 32%),
    radial-gradient(circle at 22% 18%, rgba(0, 224, 255, 0.1), transparent 28%),
    linear-gradient(rgba(28, 185, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 185, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, #020610 0%, #05091a 48%, #01030a 100%) !important;
  background-size: auto, auto, auto, 64px 64px, 64px 64px, auto !important;
  color: #f7fbff !important;
}

.ec-privacy-overlay.is-active,
body.ec-blur-active .ec-privacy-overlay {
  pointer-events: auto !important;
}

.ec-privacy-overlay::before {
  opacity: 0.34 !important;
  background:
    linear-gradient(rgba(45, 222, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 92, 255, 0.14) 1px, transparent 1px) !important;
  background-size: 78px 78px !important;
  mask-image: radial-gradient(circle at center, #000 0 52%, transparent 78%) !important;
}

.ec-privacy-overlay::after {
  opacity: 0.68 !important;
  background:
    radial-gradient(circle at 38% 22%, rgba(48, 231, 255, 0.58), transparent 2px),
    radial-gradient(circle at 58% 16%, rgba(137, 104, 255, 0.6), transparent 2px),
    radial-gradient(circle at 72% 35%, rgba(48, 231, 255, 0.42), transparent 2px),
    radial-gradient(circle at 26% 55%, rgba(120, 94, 255, 0.42), transparent 2px),
    radial-gradient(circle at 64% 72%, rgba(48, 231, 255, 0.28), transparent 2px) !important;
}

.ec-privacy-card {
  width: min(920px, 100%) !important;
  max-height: calc(100dvh - 36px) !important;
  overflow: hidden auto !important;
  padding: 8px 0 !important;
}

.ec-privacy-globe {
  width: clamp(220px, 36vw, 430px) !important;
  height: clamp(220px, 36vw, 430px) !important;
  margin-bottom: clamp(22px, 3vw, 40px) !important;
  filter:
    drop-shadow(0 0 36px rgba(35, 219, 255, 0.42))
    drop-shadow(0 0 56px rgba(128, 87, 255, 0.24)) !important;
}

.ec-privacy-globe::before {
  inset: 7% !important;
  background:
    radial-gradient(circle at 37% 30%, rgba(255, 255, 255, 0.16), transparent 16%),
    radial-gradient(circle at center, rgba(28, 218, 255, 0.2), transparent 48%),
    repeating-radial-gradient(circle, rgba(47, 224, 255, 0.28) 0 1px, transparent 1px 8px) !important;
  box-shadow:
    inset 0 0 52px rgba(37, 226, 255, 0.22),
    inset 0 0 96px rgba(133, 87, 255, 0.22),
    0 0 68px rgba(31, 216, 255, 0.34),
    0 0 92px rgba(128, 87, 255, 0.26) !important;
}

.ec-privacy-grid {
  filter: hue-rotate(118deg) saturate(1.8) drop-shadow(0 0 10px rgba(36, 219, 255, 0.42)) !important;
}

.ec-privacy-orbit {
  border-color: rgba(47, 225, 255, 0.35) !important;
  box-shadow: 0 0 26px rgba(42, 222, 255, 0.18), 0 0 34px rgba(132, 91, 255, 0.15) !important;
}

.ec-privacy-node {
  background: #39eaff !important;
  box-shadow: 0 0 14px #39eaff, 0 0 30px rgba(137, 104, 255, 0.62) !important;
}

.ec-privacy-logo {
  position: relative;
  z-index: 3;
  width: clamp(92px, 13vw, 154px);
  height: clamp(92px, 13vw, 154px);
  display: grid;
  place-items: center;
  border-radius: 25%;
  background: rgba(1, 8, 16, 0.72);
  border: 1px solid rgba(52, 236, 255, 0.42);
  box-shadow:
    0 0 28px rgba(43, 226, 255, 0.5),
    0 0 52px rgba(132, 91, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: ecPrivacyLogoPulse 3s ease-in-out infinite;
  overflow: hidden;
}

.ec-privacy-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ec-privacy-card h1 {
  color: #ffffff !important;
  text-shadow: 0 0 28px rgba(52, 236, 255, 0.16) !important;
}

.ec-privacy-card h1 span {
  color: transparent !important;
  background: linear-gradient(110deg, #20dfff 0%, #4da9ff 44%, #8b5cff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  text-shadow: 0 0 30px rgba(70, 196, 255, 0.34) !important;
}

.ec-privacy-card p {
  color: rgba(226, 235, 255, 0.82) !important;
}

.ec-privacy-chips span {
  border-color: rgba(44, 220, 255, 0.3) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(7, 20, 42, 0.82), rgba(4, 9, 22, 0.78)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 42px rgba(0, 0, 0, 0.22),
    0 0 22px rgba(36, 219, 255, 0.09) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
}

.ec-privacy-chips b {
  color: #26e4ff !important;
  text-shadow: 0 0 16px rgba(38, 228, 255, 0.72) !important;
}

.ec-privacy-card footer {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 58px !important;
  padding: 0 34px !important;
  border: 1px solid rgba(132, 91, 255, 0.42) !important;
  border-radius: 16px !important;
  background: rgba(2, 6, 16, 0.58) !important;
  color: transparent !important;
  background-image: linear-gradient(100deg, #27e4ff, #7d62ff) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  box-shadow: 0 0 26px rgba(132, 91, 255, 0.16) !important;
}

@keyframes ecPrivacyLogoPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.035); filter: brightness(1.12); }
}

@media (max-width: 680px) {
  .ec-privacy-overlay {
    padding: max(18px, env(safe-area-inset-top, 0px)) 18px max(22px, env(safe-area-inset-bottom, 0px)) !important;
  }

  .ec-privacy-card {
    max-height: calc(100dvh - 24px) !important;
  }

  .ec-privacy-globe {
    width: min(72vw, 278px) !important;
    height: min(72vw, 278px) !important;
    margin-bottom: 18px !important;
  }

  .ec-privacy-logo {
    width: min(30vw, 112px) !important;
    height: min(30vw, 112px) !important;
  }

  .ec-privacy-card h1 {
    font-size: clamp(34px, 11vw, 48px) !important;
  }

  .ec-privacy-card p {
    font-size: 13.5px !important;
  }

  .ec-privacy-card footer {
    width: min(100%, 360px) !important;
    padding: 0 18px !important;
    min-height: 54px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-privacy-logo {
    animation: none !important;
  }
}

/* Privacy shield composition refresh: clean two-column lock screen */
.ec-privacy-overlay {
  background:
    radial-gradient(circle at 68% 34%, rgba(44, 188, 255, 0.2), transparent 24%),
    radial-gradient(circle at 82% 50%, rgba(168, 42, 255, 0.18), transparent 30%),
    radial-gradient(circle at 28% 36%, rgba(18, 221, 255, 0.13), transparent 28%),
    linear-gradient(120deg, #030713 0%, #06091a 42%, #09031a 72%, #02040b 100%) !important;
  background-size: auto !important;
}

.ec-privacy-overlay::before {
  opacity: 0.16 !important;
  background:
    radial-gradient(circle at 28% 35%, rgba(32, 223, 255, 0.26), transparent 34%),
    radial-gradient(circle at 78% 42%, rgba(157, 54, 255, 0.22), transparent 40%) !important;
  background-size: auto !important;
  mask-image: none !important;
  animation: ecPrivacyFloat 13s ease-in-out infinite alternate !important;
}

.ec-privacy-overlay::after {
  opacity: 0.38 !important;
  background:
    radial-gradient(circle at 30% 31%, rgba(39, 230, 255, 0.42), transparent 2px),
    radial-gradient(circle at 55% 22%, rgba(137, 104, 255, 0.38), transparent 2px),
    radial-gradient(circle at 84% 36%, rgba(39, 230, 255, 0.26), transparent 2px),
    radial-gradient(circle at 72% 72%, rgba(147, 58, 255, 0.28), transparent 2px) !important;
}

.ec-privacy-card {
  width: min(1320px, 100%) !important;
  min-height: min(720px, calc(100dvh - 64px)) !important;
  display: grid !important;
  grid-template-columns: minmax(420px, 0.88fr) minmax(360px, 1.12fr) !important;
  align-items: center !important;
  gap: clamp(34px, 5vw, 86px) !important;
  text-align: left !important;
  overflow: visible !important;
}

.ec-privacy-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ec-privacy-copy .ec-privacy-globe {
  width: clamp(164px, 18vw, 260px) !important;
  height: clamp(164px, 18vw, 260px) !important;
  margin: 0 0 clamp(24px, 3vw, 38px) !important;
}

.ec-privacy-copy .ec-privacy-logo {
  width: clamp(78px, 9vw, 118px) !important;
  height: clamp(78px, 9vw, 118px) !important;
}

.ec-privacy-copy .ec-privacy-grid {
  opacity: 0.42 !important;
}

.ec-privacy-card h1 {
  max-width: 760px;
  margin-bottom: 18px !important;
  font-size: clamp(48px, 6vw, 82px) !important;
  letter-spacing: -0.065em !important;
}

.ec-privacy-card p {
  max-width: 760px !important;
  margin: 0 0 10px !important;
  font-size: clamp(16px, 1.55vw, 21px) !important;
  line-height: 1.55 !important;
}

.ec-privacy-chips {
  width: min(760px, 100%) !important;
  margin-top: clamp(28px, 4vw, 46px) !important;
}

.ec-privacy-card footer {
  margin-top: clamp(30px, 4vw, 58px) !important;
}

.ec-privacy-hero {
  position: relative;
  min-height: clamp(520px, 72vh, 780px);
  align-self: stretch;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 38px;
}

.ec-privacy-hero-glow {
  position: absolute;
  inset: 6% 0 0 4%;
  background:
    radial-gradient(circle at 50% 35%, rgba(30, 207, 255, 0.22), transparent 26%),
    radial-gradient(circle at 60% 44%, rgba(255, 31, 235, 0.2), transparent 30%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(54, 218, 255, 0.08);
  border-radius: 42px;
  filter: blur(0.2px);
}

.ec-privacy-girl {
  position: relative;
  width: min(94%, 560px);
  height: min(78vh, 720px);
  min-height: 500px;
  transform: translateX(4%);
}

.ec-privacy-hair {
  position: absolute;
  left: 28%;
  top: 2%;
  width: 42%;
  height: 32%;
  border-radius: 48% 52% 42% 44%;
  background:
    radial-gradient(circle at 54% 26%, rgba(19, 24, 45, 0.98), transparent 42%),
    radial-gradient(circle at 28% 34%, rgba(236, 35, 255, 0.55), transparent 46%),
    radial-gradient(circle at 78% 27%, rgba(28, 190, 255, 0.54), transparent 48%),
    #070b19;
  box-shadow:
    -28px 0 60px rgba(255, 36, 234, 0.18),
    34px 0 64px rgba(33, 202, 255, 0.22);
}

.ec-privacy-face {
  position: absolute;
  left: 34%;
  top: 22%;
  width: 31%;
  height: 29%;
  border-radius: 46% 46% 52% 52%;
  background:
    radial-gradient(circle at 32% 40%, rgba(44, 224, 255, 0.42), transparent 4%),
    radial-gradient(circle at 68% 40%, rgba(44, 224, 255, 0.42), transparent 4%),
    linear-gradient(135deg, rgba(254, 160, 204, 0.78), rgba(88, 55, 126, 0.94) 54%, rgba(19, 21, 48, 0.98));
  box-shadow:
    inset 18px -18px 38px rgba(9, 13, 34, 0.42),
    0 0 40px rgba(44, 224, 255, 0.18),
    -18px 0 48px rgba(255, 51, 230, 0.16);
}

.ec-privacy-glasses {
  position: absolute;
  left: 34%;
  top: 33%;
  width: 31%;
  height: 7%;
  border-radius: 999px;
  border-top: 2px solid rgba(95, 232, 255, 0.88);
  box-shadow: 0 0 18px rgba(48, 222, 255, 0.5);
}

.ec-privacy-glasses::before,
.ec-privacy-glasses::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 38%;
  aspect-ratio: 1.45;
  border: 2px solid rgba(95, 232, 255, 0.74);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 221, 255, 0.28), rgba(114, 72, 255, 0.1));
}

.ec-privacy-glasses::before { left: 0; }
.ec-privacy-glasses::after { right: 0; }

.ec-privacy-hood {
  position: absolute;
  left: 17%;
  top: 47%;
  width: 67%;
  height: 45%;
  border-radius: 42% 42% 18% 18%;
  background:
    radial-gradient(circle at 32% 4%, rgba(255, 45, 227, 0.28), transparent 22%),
    radial-gradient(circle at 68% 0%, rgba(38, 217, 255, 0.3), transparent 24%),
    linear-gradient(145deg, rgba(9, 14, 32, 0.98), rgba(3, 5, 14, 0.98));
  box-shadow:
    0 0 74px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ec-privacy-tablet {
  position: absolute;
  left: 14%;
  bottom: 3%;
  width: 68%;
  height: 28%;
  border-radius: 28px;
  transform: rotate(-7deg);
  background:
    radial-gradient(circle at 62% 38%, rgba(36, 222, 255, 0.22), transparent 19%),
    linear-gradient(150deg, rgba(9, 13, 34, 0.96), rgba(2, 5, 13, 0.98));
  border: 1px solid rgba(74, 225, 255, 0.45);
  box-shadow:
    0 0 34px rgba(42, 222, 255, 0.28),
    0 28px 80px rgba(0, 0, 0, 0.52);
}

.ec-privacy-tablet::after {
  content: "";
  position: absolute;
  right: 16%;
  top: 26%;
  width: 32%;
  height: 38%;
  border-radius: 18px;
  border: 2px solid rgba(43, 224, 255, 0.7);
  box-shadow: 0 0 22px rgba(42, 222, 255, 0.34);
}

.ec-privacy-hud {
  position: absolute;
  width: 104px;
  height: 104px;
  border-radius: 22px;
  border: 1px solid rgba(74, 225, 255, 0.2);
  background: rgba(7, 13, 31, 0.42);
  box-shadow: 0 0 26px rgba(84, 94, 255, 0.16);
}

.ec-privacy-hud.hud-a {
  right: 6%;
  top: 18%;
}

.ec-privacy-hud.hud-b {
  right: 0;
  top: 48%;
  border-color: rgba(179, 71, 255, 0.26);
}

.ec-privacy-hud::before {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 14px;
  border: 2px solid rgba(60, 224, 255, 0.7);
  opacity: 0.7;
}

@media (max-width: 980px) {
  .ec-privacy-card {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
    text-align: center !important;
    min-height: auto !important;
    overflow: hidden auto !important;
  }

  .ec-privacy-copy {
    align-items: center !important;
  }

  .ec-privacy-hero {
    min-height: 300px !important;
    width: min(100%, 520px);
    justify-self: center;
  }

  .ec-privacy-girl {
    width: min(88vw, 420px);
    height: 330px;
    min-height: 330px;
    transform: none;
  }
}

@media (max-width: 620px) {
  .ec-privacy-hero {
    min-height: 210px !important;
    opacity: 0.86;
  }

  .ec-privacy-girl {
    width: min(86vw, 320px);
    height: 230px;
    min-height: 230px;
  }

  .ec-privacy-hud {
    display: none;
  }

  .ec-privacy-card h1 {
    font-size: clamp(36px, 11vw, 48px) !important;
  }
}

/* Final Mobile Chats override: must come after older mobile/privacy rules. */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  body.ec-mobile-shell-active #ec-mobile-shell[data-ecm-view="chats"] .ec-mobile-topbar {
    display: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"].ec-mobile-panel.active {
    grid-template-rows: auto auto auto minmax(0, 1fr) !important;
    gap: 11px !important;
    padding: 18px 14px 0 !important;
    border-radius: 31px !important;
    overflow: hidden !important;
    background:
      radial-gradient(circle at 8% 9%, rgba(30, 218, 255, 0.18), transparent 26%),
      radial-gradient(circle at 85% 0%, rgba(134, 75, 255, 0.2), transparent 34%),
      linear-gradient(180deg, rgba(7, 12, 30, 0.97), rgba(2, 6, 17, 0.98)) !important;
    border: 1px solid rgba(90, 206, 255, 0.16) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-head {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 54px !important;
    margin: 0 2px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-menu-btn,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-plus {
    width: 42px !important;
    height: 42px !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid rgba(48, 218, 255, 0.2) !important;
    border-radius: 999px !important;
    background: radial-gradient(circle at 35% 20%, rgba(41, 224, 255, 0.2), rgba(102, 56, 255, 0.13) 60%, rgba(255,255,255,0.035)) !important;
    color: #3beaff !important;
    font-size: 21px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-menu-btn {
    letter-spacing: -2px !important;
    padding-bottom: 7px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-title {
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-logo {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    background: rgba(13, 18, 41, 0.78) !important;
    box-shadow: 0 0 24px rgba(33, 223, 255, 0.18) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-title h1 {
    margin: 0 !important;
    color: #fff !important;
    font-size: 25px !important;
    line-height: 1 !important;
    letter-spacing: -0.055em !important;
    font-weight: 900 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-title p {
    margin: 4px 0 0 !important;
    max-width: 190px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: rgba(190, 199, 226, 0.74) !important;
    font-size: 11px !important;
    line-height: 1.18 !important;
    font-weight: 650 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-actions {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-secure {
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(36, 216, 255, 0.22) !important;
    color: #38efff !important;
    background: rgba(21, 216, 255, 0.1) !important;
    font-size: 10px !important;
    font-weight: 950 !important;
    letter-spacing: .05em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-action-menu {
    position: absolute !important;
    left: 3px !important;
    top: 50px !important;
    z-index: 6 !important;
    width: min(248px, calc(100vw - 58px)) !important;
    overflow: hidden !important;
    border: 1px solid rgba(75, 213, 255, 0.16) !important;
    border-radius: 20px !important;
    background: radial-gradient(circle at 0 0, rgba(130, 92, 255, 0.24), transparent 38%), rgba(9, 13, 31, 0.92) !important;
    backdrop-filter: blur(24px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(145%) !important;
    box-shadow: 0 22px 60px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.08) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-action-menu[hidden] {
    display: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-action-menu button {
    width: 100% !important;
    min-height: 54px !important;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 15px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.075) !important;
    background: transparent !important;
    color: #f4f7ff !important;
    text-align: left !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-action-menu button:last-child {
    border-bottom: 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-action-menu span {
    width: 30px !important;
    height: 30px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 12px !important;
    color: #42eaff !important;
    background: rgba(32, 217, 255, 0.11) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-action-menu strong {
    min-width: 0 !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-search {
    height: 43px !important;
    min-height: 43px !important;
    max-height: 43px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255,255,255,0.085) !important;
    background: rgba(255,255,255,0.06) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-search input {
    font-size: 12.5px !important;
    font-weight: 650 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-filters {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    padding: 0 1px 2px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-filters::-webkit-scrollbar {
    display: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-filters button {
    flex: 0 0 auto !important;
    min-height: 35px !important;
    padding: 0 17px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(180, 198, 255, 0.12) !important;
    background: rgba(255,255,255,0.045) !important;
    color: rgba(199, 205, 226, 0.82) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: -0.025em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-filters button.active {
    border-color: rgba(34, 225, 255, 0.42) !important;
    background: rgba(18, 209, 255, 0.15) !important;
    color: #30efff !important;
    box-shadow: 0 0 28px rgba(27, 206, 255, 0.18), inset 0 1px 0 rgba(255,255,255,0.08) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-filters .ec-mobile-chat-filter-plus {
    width: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    color: #42e8ff !important;
    font-size: 23px !important;
    border-color: rgba(145, 86, 255, 0.32) !important;
    background: rgba(115, 64, 255, 0.12) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-chat-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    overflow-y: auto !important;
    padding: 5px 0 calc(92px + env(safe-area-inset-bottom, 0px)) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 22px !important;
    background: radial-gradient(circle at 12% 0%, rgba(30, 215, 255, 0.1), transparent 34%), rgba(5, 10, 24, 0.72) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.055) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row {
    position: relative !important;
    width: 100% !important;
    min-height: 63px !important;
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 8px 11px 8px 13px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.055) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #f7fbff !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row:last-child {
    border-bottom: 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row.active {
    background: linear-gradient(90deg, rgba(30, 220, 255, 0.075), transparent 74%) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row > span {
    position: relative !important;
    width: 43px !important;
    height: 43px !important;
    border-radius: 16px !important;
    display: grid !important;
    place-items: center !important;
    overflow: visible !important;
    border: 1px solid rgba(44, 229, 255, 0.22) !important;
    background: radial-gradient(circle at 30% 20%, rgba(39, 232, 255, 0.22), transparent 36%), linear-gradient(135deg, rgba(95, 42, 255, 0.56), rgba(4, 100, 116, 0.42)) !important;
    color: #f7fbff !important;
    font-size: 13px !important;
    font-weight: 950 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row > span i {
    position: absolute !important;
    right: -2px !important;
    bottom: -2px !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 999px !important;
    border: 2px solid #06101f !important;
    background: #12e6d2 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row div {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    text-align: left !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row strong {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: #fbfdff !important;
    font-size: 15px !important;
    line-height: 1.06 !important;
    font-weight: 900 !important;
    letter-spacing: -0.035em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row small {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: rgba(184, 194, 222, 0.76) !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    font-weight: 650 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row b {
    align-self: start !important;
    margin-top: 7px !important;
    min-width: 36px !important;
    color: rgba(190, 198, 224, 0.78) !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    text-align: right !important;
    font-size: 11.5px !important;
    line-height: 1 !important;
    font-weight: 750 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row em {
    position: absolute !important;
    right: 13px !important;
    bottom: 11px !important;
    min-width: 20px !important;
    height: 20px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #22dfff, #416bff) !important;
    color: #fff !important;
    font-size: 10.5px !important;
    font-style: normal !important;
    font-weight: 950 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-empty {
    min-height: 168px !important;
    margin: 8px !important;
    padding: 18px 14px !important;
    border-radius: 20px !important;
  }
}

@media (max-width: 390px) {
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-secure {
    display: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-filters button {
    padding: 0 14px !important;
    font-size: 12.5px !important;
  }
}

/* Final mobile Vault reference correction: match mobile-final Vault only. */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  body.ec-mobile-shell-active #ec-mobile-shell[data-ecm-view="vault"] .ec-mobile-topbar {
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 8px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell[data-ecm-view="vault"] .ec-mobile-brand > span {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    border-radius: 22px !important;
    box-shadow:
      0 0 0 1px rgba(44, 227, 255, 0.14),
      0 0 26px rgba(39, 222, 255, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell[data-ecm-view="vault"] .ec-mobile-brand strong {
    font-size: 16px !important;
    letter-spacing: -0.04em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell[data-ecm-view="vault"] .ec-mobile-brand small {
    color: rgba(191, 202, 230, 0.74) !important;
    font-size: 11px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell[data-ecm-view="vault"] .ec-mobile-status {
    min-height: 54px !important;
    padding: 0 24px !important;
    border: 1px solid rgba(61, 228, 176, 0.22) !important;
    border-radius: 24px !important;
    background:
      radial-gradient(circle at 14% 50%, rgba(65, 255, 199, 0.18), transparent 32%),
      linear-gradient(135deg, rgba(10, 42, 45, 0.94), rgba(9, 24, 37, 0.98)) !important;
    color: #63f3bb !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 20px rgba(61, 228, 176, 0.08) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell[data-ecm-view="vault"] .ec-mobile-status::before {
    width: 10px !important;
    height: 10px !important;
    margin-right: 10px !important;
    background: #45f4ba !important;
    box-shadow: 0 0 14px rgba(69, 244, 186, 0.78) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"].ec-mobile-panel.active {
    display: block !important;
    padding: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-shell {
    position: relative !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 6px 12px calc(108px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-shell::-webkit-scrollbar {
    display: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-frame {
    position: relative !important;
    display: grid !important;
    gap: 15px !important;
    padding: 22px 16px 18px !important;
    border: 1px solid rgba(101, 121, 255, 0.16) !important;
    border-radius: 34px !important;
    background:
      radial-gradient(circle at 12% 0%, rgba(37, 220, 255, 0.12), transparent 28%),
      radial-gradient(circle at 88% 8%, rgba(124, 85, 255, 0.16), transparent 30%),
      linear-gradient(180deg, rgba(13, 20, 45, 0.98), rgba(7, 12, 28, 0.985) 48%, rgba(4, 8, 22, 0.99)) !important;
    box-shadow:
      0 28px 58px rgba(0, 0, 0, 0.36),
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 0 0 1px rgba(28, 214, 255, 0.02) !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.013) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.22;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-frame::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 14px;
    height: 16px;
    border-top: 1px solid rgba(93, 111, 198, 0.22);
    border-bottom: 1px solid rgba(93, 111, 198, 0.12);
    border-radius: 999px;
    opacity: 0.45;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-head,
  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-search,
  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-summary,
  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-eyebrow,
  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories,
  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-footnote {
    position: relative !important;
    z-index: 1 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-head {
    padding: 0 !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-head-copy {
    min-width: 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-head h1 {
    margin: 0 !important;
    color: #f7f8ff !important;
    font-size: clamp(26px, 7vw, 30px) !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    letter-spacing: -0.065em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-head p {
    margin: 8px 0 0 !important;
    color: rgba(182, 194, 225, 0.78) !important;
    font-size: 12px !important;
    line-height: 1.42 !important;
    max-width: 220px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-head-actions {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: flex-start !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-add {
    width: 78px !important;
    height: 78px !important;
    min-width: 78px !important;
    border: 1px solid rgba(69, 146, 255, 0.28) !important;
    border-radius: 25px !important;
    background:
      radial-gradient(circle at 30% 22%, rgba(55, 221, 255, 0.16), transparent 28%),
      linear-gradient(135deg, rgba(18, 45, 90, 0.96), rgba(69, 23, 109, 0.92)) !important;
    color: #7fe6ff !important;
    font-size: 34px !important;
    line-height: 1 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 34px rgba(31, 21, 92, 0.3) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-search {
    min-height: 84px !important;
    display: grid !important;
    grid-template-columns: 26px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    border: 1px solid rgba(86, 103, 198, 0.26) !important;
    border-radius: 27px !important;
    background:
      linear-gradient(180deg, rgba(13, 19, 41, 0.98), rgba(9, 13, 32, 0.985)),
      rgba(255, 255, 255, 0.02) !important;
    color: rgba(162, 177, 224, 0.82) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-search-icon {
    width: 26px !important;
    height: 26px !important;
    display: grid !important;
    place-items: center !important;
    color: rgba(154, 167, 217, 0.84) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-search-icon svg {
    width: 24px !important;
    height: 24px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-search input {
    color: #f4f7ff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-search input::placeholder {
    color: rgba(162, 177, 224, 0.72) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-summary {
    min-height: 142px !important;
    display: grid !important;
    grid-template-columns: 90px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 20px 22px !important;
    border: 1px solid rgba(34, 200, 164, 0.22) !important;
    border-radius: 30px !important;
    background:
      radial-gradient(circle at 0% 0%, rgba(32, 223, 182, 0.18), transparent 38%),
      linear-gradient(135deg, rgba(7, 47, 46, 0.95), rgba(7, 31, 44, 0.98) 56%, rgba(8, 16, 30, 0.99)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 44px rgba(0, 0, 0, 0.26) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-summary-icon {
    width: 82px !important;
    height: 82px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 28px !important;
    background:
      radial-gradient(circle at 30% 22%, rgba(88, 255, 213, 0.28), transparent 28%),
      linear-gradient(135deg, rgba(22, 122, 94, 0.7), rgba(14, 66, 74, 0.92)) !important;
    color: #5dffcb !important;
    box-shadow: inset 0 0 0 1px rgba(93, 255, 203, 0.16), 0 16px 26px rgba(2, 35, 33, 0.28) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-summary-icon svg {
    width: 40px !important;
    height: 40px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-summary strong {
    color: #f4fbff !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-summary small {
    margin-top: 7px !important;
    color: rgba(177, 208, 205, 0.84) !important;
    font-size: 12px !important;
    line-height: 1.42 !important;
    white-space: normal !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-summary-badge {
    min-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 19px !important;
    border: 1px solid rgba(70, 241, 186, 0.18) !important;
    border-radius: 999px !important;
    background: rgba(17, 116, 87, 0.34) !important;
    color: #55f1b8 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: 0.04em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-eyebrow {
    padding: 2px 4px 0 !important;
    color: rgba(176, 178, 220, 0.74) !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories {
    display: grid !important;
    gap: 10px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories .ec-mobile-setting-row {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 96px !important;
    display: grid !important;
    grid-template-columns: 82px minmax(0, 1fr) 64px !important;
    align-items: center !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(76, 93, 177, 0.24) !important;
    border-radius: 28px !important;
    background:
      radial-gradient(circle at 0% 0%, rgba(39, 222, 255, 0.08), transparent 34%),
      linear-gradient(180deg, rgba(18, 24, 51, 0.98), rgba(9, 14, 34, 0.99)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 28px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories .ec-mobile-setting-icon {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 22px !important;
    color: #eaf9ff !important;
    background: rgba(18, 30, 68, 0.96) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 14px 24px rgba(0, 0, 0, 0.18) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories .ec-mobile-setting-icon svg {
    width: 30px !important;
    height: 30px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] [data-vault-kind="documents"] .ec-mobile-setting-icon {
    color: #40c7ff !important;
    background: linear-gradient(135deg, rgba(18, 91, 169, 0.4), rgba(18, 40, 96, 0.98)) !important;
    box-shadow: inset 0 0 0 1px rgba(82, 195, 255, 0.2), 0 14px 24px rgba(8, 31, 75, 0.28) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] [data-vault-kind="images"] .ec-mobile-setting-icon {
    color: #b182ff !important;
    background: linear-gradient(135deg, rgba(103, 46, 176, 0.42), rgba(44, 23, 97, 0.98)) !important;
    box-shadow: inset 0 0 0 1px rgba(182, 129, 255, 0.18), 0 14px 24px rgba(48, 18, 83, 0.3) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] [data-vault-kind="videos"] .ec-mobile-setting-icon {
    color: #2fe4ff !important;
    background: linear-gradient(135deg, rgba(14, 102, 166, 0.42), rgba(10, 35, 94, 0.98)) !important;
    box-shadow: inset 0 0 0 1px rgba(47, 228, 255, 0.18), 0 14px 24px rgba(9, 36, 81, 0.3) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] [data-vault-kind="notes"] .ec-mobile-setting-icon {
    color: #ffba53 !important;
    background: linear-gradient(135deg, rgba(142, 84, 17, 0.42), rgba(76, 38, 17, 0.98)) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 186, 83, 0.18), 0 14px 24px rgba(66, 30, 8, 0.28) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] [data-vault-kind="passwords"] .ec-mobile-setting-icon {
    color: #ff73c9 !important;
    background: linear-gradient(135deg, rgba(124, 27, 101, 0.42), rgba(70, 22, 72, 0.98)) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 115, 201, 0.18), 0 14px 24px rgba(62, 13, 50, 0.28) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories .ec-mobile-setting-copy {
    min-width: 0 !important;
    display: grid !important;
    gap: 7px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories .ec-mobile-setting-title,
  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories .ec-mobile-setting-subtitle {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories .ec-mobile-setting-title {
    color: #f5f7ff !important;
    font-size: 16px !important;
    line-height: 1.12 !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories .ec-mobile-setting-subtitle {
    color: rgba(183, 194, 224, 0.84) !important;
    font-size: 12px !important;
    line-height: 1.18 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories .ec-mobile-setting-chevron {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    display: grid !important;
    place-items: center !important;
    justify-self: end !important;
    border-radius: 18px !important;
    color: rgba(180, 181, 255, 0.86) !important;
    font-size: 28px !important;
    line-height: 1 !important;
    background:
      radial-gradient(circle, rgba(124, 85, 255, 0.12) 1px, transparent 1.5px),
      rgba(15, 18, 44, 0.98) !important;
    background-size: 6px 6px, auto !important;
    box-shadow: inset 0 0 0 1px rgba(77, 88, 160, 0.18) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-footnote {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 82px !important;
    align-items: center !important;
    gap: 16px !important;
    margin: 6px 0 0 !important;
    padding: 18px 16px !important;
    border: 1px solid rgba(76, 93, 177, 0.22) !important;
    border-radius: 28px !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(123, 98, 255, 0.14), transparent 32%),
      linear-gradient(180deg, rgba(16, 21, 46, 0.98), rgba(8, 12, 30, 0.99)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 30px rgba(0, 0, 0, 0.2) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-footnote-copy {
    min-width: 0 !important;
    display: grid !important;
    gap: 6px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-footnote strong {
    color: #eef3ff !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    letter-spacing: -0.03em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-footnote small {
    color: rgba(188, 198, 226, 0.84) !important;
    font-size: 12px !important;
    line-height: 1.42 !important;
    white-space: normal !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-footnote-icon {
    width: 72px !important;
    height: 72px !important;
    display: grid !important;
    place-items: center !important;
    justify-self: end !important;
    border-radius: 24px !important;
    color: #77d0ff !important;
    background:
      radial-gradient(circle at 34% 22%, rgba(171, 137, 255, 0.24), transparent 24%),
      linear-gradient(135deg, rgba(63, 95, 255, 0.44), rgba(58, 27, 133, 0.94)) !important;
    box-shadow: inset 0 0 0 1px rgba(119, 208, 255, 0.18), 0 16px 26px rgba(30, 31, 102, 0.28) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-footnote-icon svg {
    width: 34px !important;
    height: 34px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] * {
    max-width: 100% !important;
  }
}

@media (max-width: 390px) {
  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-frame {
    padding: 20px 14px 16px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-summary {
    grid-template-columns: 76px minmax(0, 1fr) auto !important;
    gap: 14px !important;
    padding: 18px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories .ec-mobile-setting-row {
    grid-template-columns: 70px minmax(0, 1fr) 54px !important;
    padding: 13px 14px !important;
  }
}

/* Final mobile Vault lock: keep Vault-specific styling above older mobile layers. */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"].ec-mobile-panel.active {
    position: relative !important;
    overflow: hidden !important;
    background:
      radial-gradient(circle at 16% 0%, rgba(39, 222, 255, 0.12), transparent 28%),
      radial-gradient(circle at 86% 10%, rgba(126, 92, 255, 0.14), transparent 32%),
      linear-gradient(180deg, rgba(11, 16, 35, 0.98), rgba(4, 8, 20, 0.99)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"].ec-mobile-panel.active::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.24;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-head {
    position: relative !important;
    z-index: 1 !important;
    align-items: flex-start !important;
    padding: calc(22px + env(safe-area-inset-top, 0px)) 14px 14px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-head-copy {
    min-width: 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-head p {
    max-width: 220px !important;
    margin-top: 7px !important;
    color: rgba(193, 205, 234, 0.76) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-head-actions {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    flex: 0 0 auto !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-badge {
    min-height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 13px !important;
    border: 1px solid rgba(85, 255, 198, 0.2) !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, rgba(28, 88, 77, 0.88), rgba(10, 34, 40, 0.96)) !important;
    color: #98ffd4 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 20px rgba(50, 235, 194, 0.08) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-add {
    border: 0 !important;
    border-radius: 17px !important;
    background: linear-gradient(135deg, #29dfff, #7b66ff) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 30px rgba(62, 102, 255, 0.32), 0 0 26px rgba(41, 223, 255, 0.2) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-search {
    position: relative !important;
    z-index: 1 !important;
    min-height: 50px !important;
    margin: 0 14px 14px !important;
    padding: 0 16px !important;
    border: 1px solid rgba(97, 216, 255, 0.14) !important;
    border-radius: 22px !important;
    background:
      linear-gradient(180deg, rgba(18, 25, 47, 0.96), rgba(8, 12, 26, 0.98)),
      rgba(255, 255, 255, 0.03) !important;
    color: rgba(155, 223, 243, 0.6) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 28px rgba(0, 0, 0, 0.24) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-search input::placeholder {
    color: rgba(155, 173, 214, 0.54) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-summary {
    position: relative !important;
    z-index: 1 !important;
    overflow: hidden !important;
    min-height: 90px !important;
    margin: 0 14px 14px !important;
    padding: 16px !important;
    border: 1px solid rgba(69, 239, 199, 0.24) !important;
    border-radius: 28px !important;
    background:
      radial-gradient(circle at 0% 0%, rgba(47, 231, 196, 0.2), transparent 40%),
      radial-gradient(circle at 100% 15%, rgba(55, 220, 255, 0.16), transparent 42%),
      linear-gradient(135deg, rgba(8, 36, 35, 0.94), rgba(8, 26, 42, 0.96) 58%, rgba(8, 15, 28, 0.98)) !important;
    box-shadow:
      0 22px 48px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 28px rgba(39, 222, 255, 0.08) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-summary small {
    margin-top: 4px !important;
    color: rgba(198, 246, 239, 0.78) !important;
    line-height: 1.38 !important;
    white-space: normal !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-summary span {
    min-height: 34px !important;
    padding: 0 13px !important;
    border: 1px solid rgba(102, 255, 208, 0.22) !important;
    background: rgba(79, 255, 199, 0.12) !important;
    color: #9bffd8 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-section.ec-mobile-vault-categories {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 14px calc(114px + env(safe-area-inset-bottom, 0px)) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow-x: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories .ec-mobile-setting-row {
    width: 100% !important;
    min-height: 78px !important;
    grid-template-columns: 52px minmax(0, 1fr) 18px !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 14px !important;
    border: 1px solid rgba(149, 171, 255, 0.12) !important;
    border-radius: 24px !important;
    background:
      radial-gradient(circle at 0% 0%, rgba(39, 222, 255, 0.08), transparent 34%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.024)),
      rgba(9, 14, 30, 0.94) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 30px rgba(0, 0, 0, 0.22) !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories .ec-mobile-setting-row + .ec-mobile-setting-row {
    border-top: 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories .ec-mobile-setting-icon {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    border-radius: 18px !important;
    font-size: 11px !important;
    letter-spacing: 0.08em !important;
    color: #eff8ff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 14px 24px rgba(0, 0, 0, 0.18) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] [data-vault-kind="documents"] .ec-mobile-setting-icon {
    background: linear-gradient(135deg, rgba(56, 145, 255, 0.4), rgba(40, 91, 224, 0.22)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] [data-vault-kind="images"] .ec-mobile-setting-icon {
    background: linear-gradient(135deg, rgba(116, 95, 255, 0.4), rgba(160, 92, 255, 0.22)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] [data-vault-kind="videos"] .ec-mobile-setting-icon {
    background: linear-gradient(135deg, rgba(40, 214, 255, 0.4), rgba(30, 154, 214, 0.2)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] [data-vault-kind="notes"] .ec-mobile-setting-icon {
    background: linear-gradient(135deg, rgba(255, 184, 66, 0.34), rgba(176, 113, 31, 0.22)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] [data-vault-kind="passwords"] .ec-mobile-setting-icon {
    background: linear-gradient(135deg, rgba(58, 224, 148, 0.34), rgba(24, 125, 103, 0.22)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories .ec-mobile-setting-subtitle,
  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-footnote small {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.34 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories .ec-mobile-setting-chevron {
    color: rgba(211, 244, 255, 0.6) !important;
    font-size: 22px !important;
    text-shadow: 0 0 14px rgba(39, 222, 255, 0.16) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-footnote {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 2px 0 0 !important;
    padding: 15px !important;
    border: 1px solid rgba(62, 219, 255, 0.14) !important;
    border-radius: 24px !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(123, 98, 255, 0.14), transparent 32%),
      linear-gradient(180deg, rgba(15, 20, 42, 0.94), rgba(7, 10, 24, 0.98)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 32px rgba(0, 0, 0, 0.22) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-footnote span {
    min-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 11px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(58, 224, 148, 0.2) !important;
    background: rgba(58, 224, 148, 0.1) !important;
    color: #9bffd8 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] * {
    max-width: 100% !important;
  }
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"].ec-mobile-panel.active {
    position: relative !important;
    overflow: hidden !important;
    background:
      radial-gradient(circle at 16% 0%, rgba(39, 222, 255, 0.12), transparent 28%),
      radial-gradient(circle at 86% 10%, rgba(126, 92, 255, 0.14), transparent 32%),
      linear-gradient(180deg, rgba(11, 16, 35, 0.98), rgba(4, 8, 20, 0.99)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"].ec-mobile-panel.active::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.24;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-head {
    position: relative !important;
    z-index: 1 !important;
    align-items: flex-start !important;
    padding: calc(22px + env(safe-area-inset-top, 0px)) 14px 14px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-head-copy {
    min-width: 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-head h1 {
    letter-spacing: -0.07em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-head p {
    max-width: 220px !important;
    margin-top: 7px !important;
    color: rgba(193, 205, 234, 0.76) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-head-actions {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    flex: 0 0 auto !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-badge {
    min-height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 13px !important;
    border: 1px solid rgba(85, 255, 198, 0.2) !important;
    border-radius: 999px !important;
    background:
      linear-gradient(135deg, rgba(28, 88, 77, 0.88), rgba(10, 34, 40, 0.96)),
      rgba(255, 255, 255, 0.02) !important;
    color: #98ffd4 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 20px rgba(50, 235, 194, 0.08) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-add {
    border: 0 !important;
    border-radius: 17px !important;
    background: linear-gradient(135deg, #29dfff, #7b66ff) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 30px rgba(62, 102, 255, 0.32), 0 0 26px rgba(41, 223, 255, 0.2) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-search {
    position: relative !important;
    z-index: 1 !important;
    min-height: 50px !important;
    margin: 0 14px 14px !important;
    padding: 0 16px !important;
    border: 1px solid rgba(97, 216, 255, 0.14) !important;
    border-radius: 22px !important;
    background:
      linear-gradient(180deg, rgba(18, 25, 47, 0.96), rgba(8, 12, 26, 0.98)),
      rgba(255, 255, 255, 0.03) !important;
    color: rgba(155, 223, 243, 0.6) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 28px rgba(0, 0, 0, 0.24) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-search input {
    color: rgba(244, 248, 255, 0.98) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-search input::placeholder {
    color: rgba(155, 173, 214, 0.54) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-summary {
    position: relative !important;
    z-index: 1 !important;
    overflow: hidden !important;
    min-height: 90px !important;
    margin: 0 14px 14px !important;
    padding: 16px !important;
    border: 1px solid rgba(69, 239, 199, 0.24) !important;
    border-radius: 28px !important;
    background:
      radial-gradient(circle at 0% 0%, rgba(47, 231, 196, 0.2), transparent 40%),
      radial-gradient(circle at 100% 15%, rgba(55, 220, 255, 0.16), transparent 42%),
      linear-gradient(135deg, rgba(8, 36, 35, 0.94), rgba(8, 26, 42, 0.96) 58%, rgba(8, 15, 28, 0.98)) !important;
    box-shadow:
      0 22px 48px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 28px rgba(39, 222, 255, 0.08) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-summary strong {
    color: #effdff !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-summary small {
    margin-top: 4px !important;
    color: rgba(198, 246, 239, 0.78) !important;
    font-size: 11.5px !important;
    line-height: 1.38 !important;
    white-space: normal !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-summary span {
    min-height: 34px !important;
    padding: 0 13px !important;
    border: 1px solid rgba(102, 255, 208, 0.22) !important;
    background: rgba(79, 255, 199, 0.12) !important;
    color: #9bffd8 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-section.ec-mobile-vault-categories {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 14px calc(114px + env(safe-area-inset-bottom, 0px)) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow-x: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories .ec-mobile-setting-row {
    width: 100% !important;
    min-height: 78px !important;
    grid-template-columns: 52px minmax(0, 1fr) 18px !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 14px !important;
    border: 1px solid rgba(149, 171, 255, 0.12) !important;
    border-radius: 24px !important;
    background:
      radial-gradient(circle at 0% 0%, rgba(39, 222, 255, 0.08), transparent 34%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.024)),
      rgba(9, 14, 30, 0.94) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 30px rgba(0, 0, 0, 0.22) !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories .ec-mobile-setting-row + .ec-mobile-setting-row {
    border-top: 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories .ec-mobile-setting-row:active {
    transform: translateY(1px) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories .ec-mobile-setting-icon {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    border-radius: 18px !important;
    font-size: 11px !important;
    letter-spacing: 0.08em !important;
    color: #eff8ff !important;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.08),
      0 14px 24px rgba(0, 0, 0, 0.18) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] [data-vault-kind="documents"] .ec-mobile-setting-icon {
    background: linear-gradient(135deg, rgba(56, 145, 255, 0.4), rgba(40, 91, 224, 0.22)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] [data-vault-kind="images"] .ec-mobile-setting-icon {
    background: linear-gradient(135deg, rgba(116, 95, 255, 0.4), rgba(160, 92, 255, 0.22)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] [data-vault-kind="videos"] .ec-mobile-setting-icon {
    background: linear-gradient(135deg, rgba(40, 214, 255, 0.4), rgba(30, 154, 214, 0.2)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] [data-vault-kind="notes"] .ec-mobile-setting-icon {
    background: linear-gradient(135deg, rgba(255, 184, 66, 0.34), rgba(176, 113, 31, 0.22)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] [data-vault-kind="passwords"] .ec-mobile-setting-icon {
    background: linear-gradient(135deg, rgba(58, 224, 148, 0.34), rgba(24, 125, 103, 0.22)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories .ec-mobile-setting-copy {
    gap: 5px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories .ec-mobile-setting-title {
    color: rgba(247, 250, 255, 0.98) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories .ec-mobile-setting-subtitle {
    color: rgba(183, 194, 225, 0.72) !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-categories .ec-mobile-setting-chevron {
    min-width: 18px !important;
    color: rgba(211, 244, 255, 0.6) !important;
    font-size: 22px !important;
    font-weight: 500 !important;
    text-shadow: 0 0 14px rgba(39, 222, 255, 0.16) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-footnote {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 2px 0 0 !important;
    padding: 15px !important;
    border: 1px solid rgba(62, 219, 255, 0.14) !important;
    border-radius: 24px !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(123, 98, 255, 0.14), transparent 32%),
      linear-gradient(180deg, rgba(15, 20, 42, 0.94), rgba(7, 10, 24, 0.98)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 32px rgba(0, 0, 0, 0.22) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-footnote strong,
  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-footnote small {
    display: block !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-footnote strong {
    color: rgba(245, 248, 255, 0.97) !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-footnote small {
    margin-top: 4px !important;
    color: rgba(181, 193, 223, 0.72) !important;
    font-size: 11px !important;
    line-height: 1.38 !important;
    white-space: normal !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-vault-footnote span {
    min-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 11px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(58, 224, 148, 0.2) !important;
    background: rgba(58, 224, 148, 0.1) !important;
    color: #9bffd8 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] * {
    max-width: 100% !important;
  }
}

/* Final mobile shell reference pass: compact bottom nav and denser chat list. */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-app {
    gap: 8px !important;
    padding: max(9px, env(safe-area-inset-top, 0px)) 12px calc(9px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-content {
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"].ec-mobile-panel.active {
    gap: 9px !important;
    padding: 15px 14px 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-chat-list {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 21px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row {
    min-height: 58px !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    padding: 7px 11px 7px 12px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row > span {
    width: 39px !important;
    height: 39px !important;
    border-radius: 15px !important;
    font-size: 12px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row strong {
    font-size: 14.2px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row small {
    font-size: 11.3px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-bottom-nav {
    position: relative !important;
    width: 100% !important;
    min-height: 64px !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 7px !important;
    border-radius: 27px !important;
    border: 1px solid rgba(117, 237, 255, 0.16) !important;
    background:
      radial-gradient(circle at 18% 0%, rgba(34, 224, 255, 0.16), transparent 38%),
      radial-gradient(circle at 82% 100%, rgba(124, 76, 255, 0.18), transparent 42%),
      linear-gradient(180deg, rgba(14, 20, 40, 0.9), rgba(4, 7, 19, 0.88)) !important;
    box-shadow:
      0 18px 44px rgba(0, 0, 0, 0.42),
      0 0 28px rgba(32, 218, 255, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
    -webkit-backdrop-filter: blur(22px) saturate(150%) !important;
    backdrop-filter: blur(22px) saturate(150%) !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-bottom-nav button {
    min-width: 0 !important;
    min-height: 50px !important;
    height: 50px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 5px 3px !important;
    border: 1px solid transparent !important;
    border-radius: 21px !important;
    background: transparent !important;
    color: rgba(205, 214, 236, 0.68) !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 850 !important;
    letter-spacing: -0.01em !important;
    box-shadow: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-bottom-nav button span {
    width: 22px !important;
    height: 22px !important;
    display: grid !important;
    place-items: center !important;
    font-size: 19px !important;
    line-height: 1 !important;
    color: currentColor !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-bottom-nav button.active {
    border-color: rgba(57, 224, 255, 0.3) !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(54, 224, 255, 0.3), transparent 50%),
      linear-gradient(135deg, rgba(27, 208, 255, 0.16), rgba(115, 67, 255, 0.28)) !important;
    color: #7ff4ff !important;
    text-shadow: 0 0 16px rgba(45, 224, 255, 0.65) !important;
    box-shadow:
      0 0 0 1px rgba(85, 255, 255, 0.09),
      0 12px 32px rgba(42, 220, 255, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  }
}

/* Final mobile shell spacing + bottom navigation reference pass. */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-app {
    gap: 8px !important;
    padding:
      calc(10px + env(safe-area-inset-top, 0px))
      13px
      calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-content {
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"].ec-mobile-panel.active {
    gap: 9px !important;
    padding: 15px 14px 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-chat-list {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 21px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row {
    min-height: 58px !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    padding: 7px 11px 7px 12px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row > span {
    width: 39px !important;
    height: 39px !important;
    border-radius: 15px !important;
    font-size: 12px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row strong {
    font-size: 14.2px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row small {
    font-size: 11.3px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-bottom-nav {
    width: 100% !important;
    min-height: 64px !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
    padding: 7px !important;
    margin: 0 !important;
    border-radius: 27px !important;
    border: 1px solid rgba(96, 212, 255, 0.16) !important;
    background:
      radial-gradient(circle at 18% 0%, rgba(35, 218, 255, 0.16), transparent 38%),
      radial-gradient(circle at 84% 5%, rgba(138, 81, 255, 0.2), transparent 42%),
      linear-gradient(180deg, rgba(8, 13, 31, 0.9), rgba(2, 5, 16, 0.94)) !important;
    box-shadow:
      0 16px 42px rgba(0, 0, 0, 0.48),
      0 0 28px rgba(39, 222, 255, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(22px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(145%) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-bottom-nav button {
    min-width: 0 !important;
    min-height: 50px !important;
    height: 50px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 5px 4px !important;
    border: 1px solid transparent !important;
    border-radius: 21px !important;
    background: transparent !important;
    color: rgba(184, 194, 221, 0.82) !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 850 !important;
    letter-spacing: -0.025em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-bottom-nav button span {
    width: 22px !important;
    height: 22px !important;
    display: grid !important;
    place-items: center !important;
    margin: 0 !important;
    color: currentColor !important;
    font-size: 19px !important;
    line-height: 1 !important;
    filter: drop-shadow(0 0 10px rgba(63, 225, 255, 0.12)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-bottom-nav button.active {
    border-color: rgba(42, 221, 255, 0.28) !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(36, 223, 255, 0.22), transparent 48%),
      linear-gradient(135deg, rgba(22, 178, 255, 0.18), rgba(118, 77, 255, 0.22)) !important;
    color: #34efff !important;
    box-shadow:
      0 0 30px rgba(38, 219, 255, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  }
}

/* Mobile Chats reference pass: compact messenger inbox only. */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  body.ec-mobile-shell-active #ec-mobile-shell[data-ecm-view="chats"] .ec-mobile-topbar {
    display: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"].ec-mobile-panel.active {
    grid-template-rows: auto auto auto minmax(0, 1fr) !important;
    gap: 11px !important;
    padding: 18px 14px 0 !important;
    border-radius: 31px !important;
    overflow: hidden !important;
    background:
      radial-gradient(circle at 8% 9%, rgba(30, 218, 255, 0.18), transparent 26%),
      radial-gradient(circle at 85% 0%, rgba(134, 75, 255, 0.2), transparent 34%),
      linear-gradient(180deg, rgba(7, 12, 30, 0.97), rgba(2, 6, 17, 0.98)) !important;
    border: 1px solid rgba(90, 206, 255, 0.16) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 20px 56px rgba(0,0,0,0.42) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-head {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 54px !important;
    margin: 0 2px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-menu-btn,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-plus {
    width: 42px !important;
    height: 42px !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid rgba(48, 218, 255, 0.2) !important;
    border-radius: 999px !important;
    background: radial-gradient(circle at 35% 20%, rgba(41, 224, 255, 0.2), rgba(102, 56, 255, 0.13) 60%, rgba(255,255,255,0.035)) !important;
    color: #3beaff !important;
    font-size: 21px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255,255,255,0.08) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-menu-btn {
    letter-spacing: -2px !important;
    padding-bottom: 7px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-title {
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-logo {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    background: rgba(13, 18, 41, 0.78) !important;
    box-shadow: 0 0 24px rgba(33, 223, 255, 0.18) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-title h1 {
    margin: 0 !important;
    color: #fff !important;
    font-size: 25px !important;
    line-height: 1 !important;
    letter-spacing: -0.055em !important;
    font-weight: 900 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-title p {
    margin: 4px 0 0 !important;
    max-width: 190px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: rgba(190, 199, 226, 0.74) !important;
    font-size: 11px !important;
    line-height: 1.18 !important;
    font-weight: 650 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-actions {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-secure {
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(36, 216, 255, 0.22) !important;
    color: #38efff !important;
    background: rgba(21, 216, 255, 0.1) !important;
    font-size: 10px !important;
    font-weight: 950 !important;
    letter-spacing: .05em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-action-menu {
    position: absolute !important;
    left: 3px !important;
    top: 50px !important;
    z-index: 6 !important;
    width: min(248px, calc(100vw - 58px)) !important;
    overflow: hidden !important;
    border: 1px solid rgba(75, 213, 255, 0.16) !important;
    border-radius: 20px !important;
    background:
      radial-gradient(circle at 0 0, rgba(130, 92, 255, 0.24), transparent 38%),
      rgba(9, 13, 31, 0.92) !important;
    backdrop-filter: blur(24px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(145%) !important;
    box-shadow: 0 22px 60px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.08) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-action-menu[hidden] {
    display: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-action-menu button {
    width: 100% !important;
    min-height: 54px !important;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 15px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.075) !important;
    background: transparent !important;
    color: #f4f7ff !important;
    text-align: left !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-action-menu button:last-child {
    border-bottom: 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-action-menu span {
    width: 30px !important;
    height: 30px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 12px !important;
    color: #42eaff !important;
    background: rgba(32, 217, 255, 0.11) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-action-menu strong {
    min-width: 0 !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-search {
    height: 43px !important;
    min-height: 43px !important;
    max-height: 43px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255,255,255,0.085) !important;
    background: rgba(255,255,255,0.06) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-search input {
    font-size: 12.5px !important;
    font-weight: 650 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-filters {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    padding: 0 1px 2px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-filters::-webkit-scrollbar {
    display: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-filters button {
    flex: 0 0 auto !important;
    min-height: 35px !important;
    padding: 0 17px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(180, 198, 255, 0.12) !important;
    background: rgba(255,255,255,0.045) !important;
    color: rgba(199, 205, 226, 0.82) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: -0.025em !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.055) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-filters button.active {
    border-color: rgba(34, 225, 255, 0.42) !important;
    background: rgba(18, 209, 255, 0.15) !important;
    color: #30efff !important;
    box-shadow: 0 0 28px rgba(27, 206, 255, 0.18), inset 0 1px 0 rgba(255,255,255,0.08) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-filters .ec-mobile-chat-filter-plus {
    width: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    color: #42e8ff !important;
    font-size: 23px !important;
    border-color: rgba(145, 86, 255, 0.32) !important;
    background: rgba(115, 64, 255, 0.12) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-chat-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    overflow-y: auto !important;
    padding: 5px 0 calc(92px + env(safe-area-inset-bottom, 0px)) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 22px !important;
    background:
      radial-gradient(circle at 12% 0%, rgba(30, 215, 255, 0.1), transparent 34%),
      rgba(5, 10, 24, 0.72) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.055) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row {
    position: relative !important;
    width: 100% !important;
    min-height: 63px !important;
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 8px 11px 8px 13px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.055) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #f7fbff !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row:last-child {
    border-bottom: 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row.active {
    background: linear-gradient(90deg, rgba(30, 220, 255, 0.075), transparent 74%) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row > span {
    position: relative !important;
    width: 43px !important;
    height: 43px !important;
    border-radius: 16px !important;
    display: grid !important;
    place-items: center !important;
    overflow: visible !important;
    border: 1px solid rgba(44, 229, 255, 0.22) !important;
    background:
      radial-gradient(circle at 30% 20%, rgba(39, 232, 255, 0.22), transparent 36%),
      linear-gradient(135deg, rgba(95, 42, 255, 0.56), rgba(4, 100, 116, 0.42)) !important;
    color: #f7fbff !important;
    font-size: 13px !important;
    font-weight: 950 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row > span i {
    position: absolute !important;
    right: -2px !important;
    bottom: -2px !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 999px !important;
    border: 2px solid #06101f !important;
    background: #12e6d2 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row div {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    text-align: left !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row strong {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: #fbfdff !important;
    font-size: 15px !important;
    line-height: 1.06 !important;
    font-weight: 900 !important;
    letter-spacing: -0.035em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row small {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: rgba(184, 194, 222, 0.76) !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    font-weight: 650 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row b {
    align-self: start !important;
    margin-top: 7px !important;
    min-width: 36px !important;
    color: rgba(190, 198, 224, 0.78) !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    text-align: right !important;
    font-size: 11.5px !important;
    line-height: 1 !important;
    font-weight: 750 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row em {
    position: absolute !important;
    right: 13px !important;
    bottom: 11px !important;
    min-width: 20px !important;
    height: 20px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #22dfff, #416bff) !important;
    color: #fff !important;
    font-size: 10.5px !important;
    font-style: normal !important;
    font-weight: 950 !important;
    box-shadow: 0 0 20px rgba(45, 149, 255, 0.35) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-empty {
    min-height: 168px !important;
    margin: 8px !important;
    padding: 18px 14px !important;
    border-radius: 20px !important;
  }
}

@media (max-width: 390px) {
  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"].ec-mobile-panel.active {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-secure {
    display: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-filters button {
    padding: 0 14px !important;
    font-size: 12.5px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-privacy-overlay::before,
  .ec-privacy-overlay::after {
    animation: none !important;
  }
}

@media (max-width: 768px) {
  html body #ec-mobile-shell .ec-mobile-logo-mark {
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    background: rgba(8, 13, 28, 0.82) !important;
    border: 1px solid rgba(47, 239, 255, 0.22) !important;
    box-shadow: 0 0 22px rgba(47, 239, 255, 0.18) !important;
  }

  html body #ec-mobile-shell .ec-mobile-logo-mark img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
  }

  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-hero.ec-mobile-logo-hero {
    min-height: 104px !important;
    max-height: none !important;
    margin: 0 14px 10px !important;
    padding: 14px !important;
    display: grid !important;
    grid-template-columns: 74px minmax(0, 1fr) !important;
    align-items: center !important;
    justify-items: stretch !important;
    gap: 13px !important;
    overflow: hidden !important;
  }

  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-hero.ec-mobile-logo-hero::before {
    opacity: 0.42 !important;
  }

  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-orbit {
    display: none !important;
  }

  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-hero-logo-img {
    position: relative !important;
    z-index: 1 !important;
    width: 68px !important;
    height: 68px !important;
    display: block !important;
    object-fit: cover !important;
    border-radius: 19px !important;
    box-shadow: 0 0 30px rgba(47, 239, 255, 0.2), 0 0 42px rgba(138, 91, 255, 0.14) !important;
  }

  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-copy {
    position: relative !important;
    z-index: 1 !important;
    min-width: 0 !important;
    text-align: left !important;
  }

  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-copy h2 {
    margin: 2px 0 4px !important;
    font-size: clamp(22px, 6vw, 29px) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.06em !important;
  }

  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-copy p {
    margin: 0 !important;
    max-width: 100% !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-kicker {
    font-size: 9px !important;
    letter-spacing: 0.22em !important;
  }

  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-security-grid {
    display: none !important;
  }

  html body #ec-mobile-shell .ec-mobile-search,
  html body #ec-mobile-shell .ecm-search {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    min-height: 48px !important;
    height: 48px !important;
    margin: 0 14px 12px !important;
    padding: 0 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(74, 219, 255, 0.14) !important;
    background: linear-gradient(180deg, rgba(17, 22, 42, 0.94), rgba(9, 12, 25, 0.92)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 28px rgba(0, 0, 0, 0.26) !important;
    color: rgba(190, 205, 230, 0.78) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  html body #ec-mobile-shell .ec-mobile-search input,
  html body #ec-mobile-shell .ecm-search input,
  html body #ec-mobile-shell input#ec-mobile-chat-search,
  html body #ec-mobile-shell input#ec-mobile-room-search,
  html body #ec-mobile-shell input#ec-mobile-vault-search {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #eef8ff !important;
    font: 600 14px/1.2 "Space Grotesk", "Poppins", sans-serif !important;
  }

  html body #ec-mobile-shell .ec-mobile-search input::placeholder,
  html body #ec-mobile-shell .ecm-search input::placeholder {
    color: rgba(174, 188, 216, 0.62) !important;
    opacity: 1 !important;
  }

  html body #ec-mobile-shell .ec-mobile-search input::-webkit-search-decoration,
  html body #ec-mobile-shell .ec-mobile-search input::-webkit-search-cancel-button,
  html body #ec-mobile-shell .ec-mobile-search input::-webkit-search-results-button,
  html body #ec-mobile-shell .ec-mobile-search input::-webkit-search-results-decoration {
    -webkit-appearance: none !important;
    display: none !important;
  }

  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-filter-row,
  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-trust-strip {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    margin: 0 14px 10px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    box-sizing: border-box !important;
  }

  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-filter-row button,
  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-trust-strip span {
    -webkit-appearance: none !important;
    appearance: none !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    min-height: 32px !important;
    padding: 0 13px !important;
    border: 1px solid rgba(70, 223, 255, 0.2) !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, rgba(18, 28, 50, 0.94), rgba(10, 16, 32, 0.9)) !important;
    color: rgba(232, 244, 255, 0.9) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 18px rgba(0, 0, 0, 0.18) !important;
    font: 800 11px/1 "Space Grotesk", "Poppins", sans-serif !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-filter-row button.active {
    background: linear-gradient(135deg, rgba(37, 220, 255, 0.35), rgba(132, 87, 255, 0.34)) !important;
    border-color: rgba(91, 234, 255, 0.42) !important;
    color: #ffffff !important;
  }
}

/* Mobile bugfix final override: keep search/buttons/cards usable after earlier mobile themes. */
@media (max-width: 768px) {
  #ec-mobile-shell .ec-mobile-search,
  #ec-mobile-shell .ecm-search {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    min-height: 48px !important;
    height: 48px !important;
    margin: 0 14px 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(53, 215, 255, 0.16) !important;
    border-radius: 20px !important;
    background:
      radial-gradient(circle at 0% 0%, rgba(53, 215, 255, 0.1), transparent 42%),
      rgba(8, 12, 29, 0.92) !important;
    color: rgba(235, 250, 255, 0.9) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    overflow: hidden !important;
  }

  #ec-mobile-shell .ec-mobile-search input,
  #ec-mobile-shell .ecm-search input,
  #ec-mobile-shell input#ec-mobile-chat-search,
  #ec-mobile-shell input#ec-mobile-room-search {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: rgba(245, 252, 255, 0.96) !important;
    font: inherit !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
  }

  #ec-mobile-shell .ec-mobile-search input::placeholder,
  #ec-mobile-shell .ecm-search input::placeholder {
    color: rgba(175, 188, 220, 0.7) !important;
    opacity: 1 !important;
  }

  #ec-mobile-shell .ec-mobile-search input::-webkit-search-decoration,
  #ec-mobile-shell .ec-mobile-search input::-webkit-search-cancel-button,
  #ec-mobile-shell .ec-mobile-search input::-webkit-search-results-button,
  #ec-mobile-shell .ec-mobile-search input::-webkit-search-results-decoration,
  #ec-mobile-shell .ecm-search input::-webkit-search-decoration,
  #ec-mobile-shell .ecm-search input::-webkit-search-cancel-button,
  #ec-mobile-shell .ecm-search input::-webkit-search-results-button,
  #ec-mobile-shell .ecm-search input::-webkit-search-results-decoration {
    -webkit-appearance: none !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-hero {
    min-height: 104px !important;
    max-height: 132px !important;
    margin: 0 14px 10px !important;
    padding: 12px !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    overflow: hidden !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-orbit {
    width: 44px !important;
    height: 44px !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-copy h2 {
    margin: 1px 0 0 !important;
    font-size: 17px !important;
    line-height: 1.12 !important;
    letter-spacing: -0.03em !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-copy p {
    margin: 4px 0 0 !important;
    font-size: 11px !important;
    line-height: 1.28 !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-security-grid {
    display: none !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-filter-row,
  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-trust-strip {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    margin: 0 14px 10px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    box-sizing: border-box !important;
    scrollbar-width: none !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-filter-row::-webkit-scrollbar,
  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-trust-strip::-webkit-scrollbar {
    display: none !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-filter-row button,
  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-trust-strip span {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    min-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(53, 215, 255, 0.16) !important;
    border-radius: 999px !important;
    background: rgba(12, 18, 38, 0.76) !important;
    color: rgba(225, 236, 255, 0.88) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  #ec-mobile-shell .ec-mobile-room-list,
  #ec-mobile-shell .ec-mobile-chat-list {
    padding-bottom: calc(122px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #ec-mobile-shell .ec-mobile-empty-actions button,
  #ec-mobile-shell .ecm-primary,
  #ec-mobile-shell .ecm-secondary {
    min-height: 46px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 17px !important;
  }
}

/* Final privacy overlay override: app-switcher shield only */
.ec-privacy-overlay {
  min-height: 100dvh !important;
  padding: max(24px, env(safe-area-inset-top, 0px)) clamp(18px, 4vw, 58px) max(28px, env(safe-area-inset-bottom, 0px)) !important;
  background:
    radial-gradient(circle at 50% 24%, rgba(23, 207, 255, 0.28), transparent 25%),
    radial-gradient(circle at 59% 32%, rgba(132, 91, 255, 0.28), transparent 32%),
    linear-gradient(rgba(28, 185, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 185, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, #020610 0%, #05091a 48%, #01030a 100%) !important;
  background-size: auto, auto, 64px 64px, 64px 64px, auto !important;
  color: #f7fbff !important;
}

.ec-privacy-overlay.is-active,
body.ec-blur-active .ec-privacy-overlay {
  pointer-events: auto !important;
  display: flex !important;
}

.ec-privacy-overlay::before {
  opacity: 0.34 !important;
  background:
    linear-gradient(rgba(45, 222, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 92, 255, 0.14) 1px, transparent 1px) !important;
  background-size: 78px 78px !important;
  mask-image: radial-gradient(circle at center, #000 0 52%, transparent 78%) !important;
}

.ec-privacy-globe {
  width: clamp(220px, 36vw, 430px) !important;
  height: clamp(220px, 36vw, 430px) !important;
  filter: drop-shadow(0 0 36px rgba(35, 219, 255, 0.42)) drop-shadow(0 0 56px rgba(128, 87, 255, 0.24)) !important;
}

.ec-privacy-grid {
  filter: hue-rotate(118deg) saturate(1.8) drop-shadow(0 0 10px rgba(36, 219, 255, 0.42)) !important;
}

.ec-privacy-orbit {
  border-color: rgba(47, 225, 255, 0.35) !important;
  box-shadow: 0 0 26px rgba(42, 222, 255, 0.18), 0 0 34px rgba(132, 91, 255, 0.15) !important;
}

.ec-privacy-node {
  background: #39eaff !important;
  box-shadow: 0 0 14px #39eaff, 0 0 30px rgba(137, 104, 255, 0.62) !important;
}

.ec-privacy-logo {
  position: relative;
  z-index: 3;
  width: clamp(92px, 13vw, 154px);
  height: clamp(92px, 13vw, 154px);
  display: grid;
  place-items: center;
  border-radius: 25%;
  background: rgba(1, 8, 16, 0.72);
  border: 1px solid rgba(52, 236, 255, 0.42);
  box-shadow: 0 0 28px rgba(43, 226, 255, 0.5), 0 0 52px rgba(132, 91, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: ecPrivacyLogoPulse 3s ease-in-out infinite;
  overflow: hidden;
}

.ec-privacy-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ec-privacy-card h1 {
  color: #ffffff !important;
  text-shadow: 0 0 28px rgba(52, 236, 255, 0.16) !important;
}

.ec-privacy-card h1 span {
  color: transparent !important;
  background: linear-gradient(110deg, #20dfff 0%, #4da9ff 44%, #8b5cff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  text-shadow: 0 0 30px rgba(70, 196, 255, 0.34) !important;
}

.ec-privacy-chips span {
  border-color: rgba(44, 220, 255, 0.3) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(7, 20, 42, 0.82), rgba(4, 9, 22, 0.78)) !important;
}

.ec-privacy-chips b {
  color: #26e4ff !important;
  text-shadow: 0 0 16px rgba(38, 228, 255, 0.72) !important;
}

.ec-privacy-card footer {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 58px !important;
  padding: 0 34px !important;
  border: 1px solid rgba(132, 91, 255, 0.42) !important;
  border-radius: 16px !important;
  background: rgba(2, 6, 16, 0.58) !important;
  color: #43dfff !important;
  box-shadow: 0 0 26px rgba(132, 91, 255, 0.16) !important;
}

@keyframes ecPrivacyLogoPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.035); filter: brightness(1.12); }
}

@media (max-width: 680px) {
  .ec-privacy-overlay {
    padding: max(18px, env(safe-area-inset-top, 0px)) 18px max(22px, env(safe-area-inset-bottom, 0px)) !important;
  }

  .ec-privacy-globe {
    width: min(72vw, 278px) !important;
    height: min(72vw, 278px) !important;
  }

  .ec-privacy-logo {
    width: min(30vw, 112px) !important;
    height: min(30vw, 112px) !important;
  }

  .ec-privacy-card h1 {
    font-size: clamp(34px, 11vw, 48px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-privacy-logo {
    animation: none !important;
  }
}

@media (max-width: 768px) {
  html body #ec-mobile-shell .ec-mobile-logo-mark {
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    background: rgba(8, 13, 28, 0.82) !important;
    border: 1px solid rgba(47, 239, 255, 0.22) !important;
    box-shadow: 0 0 22px rgba(47, 239, 255, 0.18) !important;
  }

  html body #ec-mobile-shell .ec-mobile-logo-mark img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
  }

  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-hero.ec-mobile-logo-hero {
    min-height: 104px !important;
    max-height: none !important;
    margin: 0 14px 10px !important;
    padding: 14px !important;
    display: grid !important;
    grid-template-columns: 74px minmax(0, 1fr) !important;
    align-items: center !important;
    justify-items: stretch !important;
    gap: 13px !important;
    overflow: hidden !important;
  }

  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-orbit {
    display: none !important;
  }

  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-hero-logo-img {
    position: relative !important;
    z-index: 1 !important;
    width: 68px !important;
    height: 68px !important;
    display: block !important;
    object-fit: cover !important;
    border-radius: 19px !important;
    box-shadow: 0 0 30px rgba(47, 239, 255, 0.2), 0 0 42px rgba(138, 91, 255, 0.14) !important;
  }

  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-copy {
    position: relative !important;
    z-index: 1 !important;
    min-width: 0 !important;
    text-align: left !important;
  }

  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-copy h2 {
    margin: 2px 0 4px !important;
    font-size: clamp(22px, 6vw, 29px) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.06em !important;
  }

  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-copy p {
    margin: 0 !important;
    max-width: 100% !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-kicker {
    font-size: 9px !important;
    letter-spacing: 0.22em !important;
  }

  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-security-grid {
    display: none !important;
  }

  html body #ec-mobile-shell .ec-mobile-search,
  html body #ec-mobile-shell .ecm-search {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    min-height: 48px !important;
    height: 48px !important;
    margin: 0 14px 12px !important;
    padding: 0 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(74, 219, 255, 0.14) !important;
    background: linear-gradient(180deg, rgba(17, 22, 42, 0.94), rgba(9, 12, 25, 0.92)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 28px rgba(0, 0, 0, 0.26) !important;
    color: rgba(190, 205, 230, 0.78) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  html body #ec-mobile-shell .ec-mobile-search input,
  html body #ec-mobile-shell .ecm-search input,
  html body #ec-mobile-shell input#ec-mobile-chat-search,
  html body #ec-mobile-shell input#ec-mobile-room-search,
  html body #ec-mobile-shell input#ec-mobile-vault-search {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #eef8ff !important;
    font: 600 14px/1.2 "Space Grotesk", "Poppins", sans-serif !important;
  }

  html body #ec-mobile-shell .ec-mobile-search input::placeholder,
  html body #ec-mobile-shell .ecm-search input::placeholder {
    color: rgba(174, 188, 216, 0.62) !important;
    opacity: 1 !important;
  }

  html body #ec-mobile-shell .ec-mobile-search input::-webkit-search-decoration,
  html body #ec-mobile-shell .ec-mobile-search input::-webkit-search-cancel-button,
  html body #ec-mobile-shell .ec-mobile-search input::-webkit-search-results-button,
  html body #ec-mobile-shell .ec-mobile-search input::-webkit-search-results-decoration {
    -webkit-appearance: none !important;
    display: none !important;
  }

  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-filter-row,
  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-trust-strip {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    margin: 0 14px 10px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    box-sizing: border-box !important;
  }

  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-filter-row button,
  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-trust-strip span {
    -webkit-appearance: none !important;
    appearance: none !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    min-height: 32px !important;
    padding: 0 13px !important;
    border: 1px solid rgba(70, 223, 255, 0.2) !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, rgba(18, 28, 50, 0.94), rgba(10, 16, 32, 0.9)) !important;
    color: rgba(232, 244, 255, 0.9) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 18px rgba(0, 0, 0, 0.18) !important;
    font: 800 11px/1 "Space Grotesk", "Poppins", sans-serif !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  html body #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-filter-row button.active {
    background: linear-gradient(135deg, rgba(37, 220, 255, 0.35), rgba(132, 87, 255, 0.34)) !important;
    border-color: rgba(91, 234, 255, 0.42) !important;
    color: #ffffff !important;
  }
}

/* Mobile structure cleanup: compact readable app sections without backend changes. */
@media (max-width: 768px) {
  #ec-mobile-shell,
  #ec-mobile-shell * {
    box-sizing: border-box !important;
  }

  #ec-mobile-shell .ec-mobile-content,
  #ec-mobile-shell .ecm-main {
    overflow-x: hidden !important;
  }

  #ec-mobile-shell .ec-mobile-panel {
    row-gap: 10px !important;
  }

  #ec-mobile-shell .ec-mobile-screen-head {
    min-height: 58px !important;
    padding: 10px 14px 8px !important;
    gap: 10px !important;
  }

  #ec-mobile-shell .ec-mobile-screen-head h1 {
    font-size: 24px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
  }

  #ec-mobile-shell .ec-mobile-screen-head p {
    margin-top: 3px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-hero {
    min-height: 74px !important;
    max-height: 96px !important;
    padding: 10px 12px !important;
    border-radius: 20px !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-kicker,
  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-orbit {
    display: none !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-copy h2 {
    font-size: 15px !important;
    letter-spacing: -0.02em !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-copy p {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  #ec-mobile-shell .ec-mobile-search,
  #ec-mobile-shell .ecm-search {
    height: 46px !important;
    min-height: 46px !important;
    border-radius: 18px !important;
  }

  #ec-mobile-shell .ec-mobile-search input,
  #ec-mobile-shell .ecm-search input,
  #ec-mobile-shell .ecm-search span {
    min-width: 0 !important;
    display: block !important;
    color: rgba(238, 248, 255, 0.94) !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
  }

  #ec-mobile-shell .ec-mobile-vault-summary {
    min-height: 70px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    padding: 12px 14px !important;
    border-radius: 20px !important;
  }

  #ec-mobile-shell .ec-mobile-vault-summary div {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
  }

  #ec-mobile-shell .ec-mobile-vault-summary strong,
  #ec-mobile-shell .ec-mobile-vault-summary small {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  #ec-mobile-shell .ec-mobile-vault-summary strong {
    font-size: 15px !important;
    line-height: 1.18 !important;
  }

  #ec-mobile-shell .ec-mobile-vault-summary small {
    font-size: 12px !important;
    line-height: 1.3 !important;
    color: rgba(185, 198, 230, 0.74) !important;
  }

  #ec-mobile-shell .ec-mobile-vault-summary span {
    min-height: 28px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 10px !important;
  }

  #ec-mobile-shell .ec-mobile-settings,
  #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-section,
  #ec-mobile-shell .ec-mobile-room-list,
  #ec-mobile-shell .ec-mobile-chat-list,
  #ec-mobile-shell .ec-mobile-chat-stream {
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-bottom: calc(136px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #ec-mobile-shell .ec-mobile-profile-card {
    min-height: 66px !important;
    padding: 11px 14px !important;
    border-radius: 20px !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
  }

  #ec-mobile-shell .ec-mobile-profile-card > span {
    width: 42px !important;
    height: 42px !important;
    border-radius: 16px !important;
  }

  #ec-mobile-shell .ec-mobile-profile-card strong,
  #ec-mobile-shell .ec-mobile-profile-card small {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #ec-mobile-shell .ec-mobile-settings-section,
  #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-section {
    padding: 8px !important;
    border-radius: 19px !important;
    gap: 0 !important;
  }

  #ec-mobile-shell .ec-mobile-section-title {
    margin: 0 0 6px !important;
    padding: 0 4px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    letter-spacing: .13em !important;
  }

  #ec-mobile-shell .ec-mobile-setting-row {
    min-height: 58px !important;
    grid-template-columns: 36px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    padding: 8px 6px !important;
    border-radius: 13px !important;
  }

  #ec-mobile-shell .ec-mobile-setting-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 13px !important;
    font-size: 10px !important;
  }

  #ec-mobile-shell .ec-mobile-setting-copy {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    min-width: 0 !important;
  }

  #ec-mobile-shell .ec-mobile-setting-title,
  #ec-mobile-shell .ec-mobile-setting-subtitle {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  #ec-mobile-shell .ec-mobile-setting-title {
    font-size: 14px !important;
    line-height: 1.18 !important;
    letter-spacing: -0.01em !important;
    font-weight: 800 !important;
  }

  #ec-mobile-shell .ec-mobile-setting-subtitle {
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    color: rgba(183, 196, 228, 0.74) !important;
  }

  #ec-mobile-shell .ec-mobile-setting-row.switch em {
    width: 40px !important;
    height: 24px !important;
    min-width: 40px !important;
  }

  #ec-mobile-shell .ec-mobile-plan-card {
    min-height: 58px !important;
    padding: 10px 8px !important;
    border-radius: 14px !important;
  }

  #ec-mobile-shell .ec-mobile-plan-card strong,
  #ec-mobile-shell .ec-mobile-plan-card small {
    display: block !important;
    line-height: 1.25 !important;
  }

  #ec-mobile-shell .ec-mobile-legal-note {
    margin: 2px 4px 0 !important;
    padding-bottom: 10px !important;
    font-size: 10.5px !important;
    line-height: 1.45 !important;
  }

  #ec-mobile-shell .ec-mobile-logo-mark {
    padding: 0 !important;
    overflow: hidden !important;
    background:
      radial-gradient(circle at 50% 25%, rgba(53, 255, 255, 0.2), transparent 45%),
      rgba(4, 8, 18, 0.92) !important;
  }

  #ec-mobile-shell .ec-mobile-logo-mark img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    border-radius: inherit !important;
    filter: drop-shadow(0 0 10px rgba(36, 216, 255, 0.35)) !important;
  }
}

/* Mobile bugfix: integrated search inputs and compact Rooms/Chats controls only. */
@media (max-width: 768px) {
  #ec-mobile-shell .ec-mobile-search,
  #ec-mobile-shell .ecm-search {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    min-height: 48px !important;
    height: 48px !important;
    margin: 0 14px 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(53, 215, 255, 0.16) !important;
    border-radius: 20px !important;
    background:
      radial-gradient(circle at 0% 0%, rgba(53, 215, 255, 0.1), transparent 42%),
      rgba(8, 12, 29, 0.9) !important;
    color: rgba(235, 250, 255, 0.9) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    overflow: hidden !important;
  }

  #ec-mobile-shell .ec-mobile-search input,
  #ec-mobile-shell .ecm-search input,
  #ec-mobile-shell input#ec-mobile-chat-search,
  #ec-mobile-shell input#ec-mobile-room-search {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: rgba(245, 252, 255, 0.96) !important;
    font: inherit !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
  }

  #ec-mobile-shell .ec-mobile-search input::placeholder,
  #ec-mobile-shell .ecm-search input::placeholder {
    color: rgba(175, 188, 220, 0.7) !important;
    opacity: 1 !important;
  }

  #ec-mobile-shell .ec-mobile-search input::-webkit-search-decoration,
  #ec-mobile-shell .ec-mobile-search input::-webkit-search-cancel-button,
  #ec-mobile-shell .ec-mobile-search input::-webkit-search-results-button,
  #ec-mobile-shell .ec-mobile-search input::-webkit-search-results-decoration,
  #ec-mobile-shell .ecm-search input::-webkit-search-decoration,
  #ec-mobile-shell .ecm-search input::-webkit-search-cancel-button,
  #ec-mobile-shell .ecm-search input::-webkit-search-results-button,
  #ec-mobile-shell .ecm-search input::-webkit-search-results-decoration {
    -webkit-appearance: none !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-hero {
    min-height: 104px !important;
    max-height: 132px !important;
    margin: 0 14px 10px !important;
    padding: 12px !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    overflow: hidden !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-orbit {
    width: 44px !important;
    height: 44px !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-copy h2 {
    margin: 1px 0 0 !important;
    font-size: 17px !important;
    line-height: 1.12 !important;
    letter-spacing: -0.03em !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-copy p {
    margin: 4px 0 0 !important;
    font-size: 11px !important;
    line-height: 1.28 !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-security-grid {
    display: none !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-filter-row,
  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-trust-strip {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    margin: 0 14px 10px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    box-sizing: border-box !important;
    scrollbar-width: none !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-filter-row::-webkit-scrollbar,
  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-trust-strip::-webkit-scrollbar {
    display: none !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-filter-row button,
  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-trust-strip span {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    min-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(53, 215, 255, 0.16) !important;
    border-radius: 999px !important;
    background: rgba(12, 18, 38, 0.76) !important;
    color: rgba(225, 236, 255, 0.88) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  #ec-mobile-shell .ec-mobile-room-list,
  #ec-mobile-shell .ec-mobile-chat-list {
    padding-bottom: calc(122px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #ec-mobile-shell .ec-mobile-empty-actions button,
  #ec-mobile-shell .ecm-primary,
  #ec-mobile-shell .ecm-secondary {
    min-height: 46px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 17px !important;
  }
}

/* Mobile final reference rebuild: dedicated EliteCrypt iPhone-style app shell only. */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  html,
  body.ec-mobile-shell-active {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    background: #02040f !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell,
  body.ec-mobile-shell-active #ec-mobile-shell * {
    box-sizing: border-box !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell {
    --ec-bg: #02040f;
    --ec-panel: rgba(9, 14, 30, 0.82);
    --ec-panel-2: rgba(16, 22, 45, 0.74);
    --ec-border: rgba(142, 176, 255, 0.16);
    --ec-cyan: #24d8ff;
    --ec-purple: #8b5cff;
    --ec-green: #52f6a8;
    --ec-red: #ff6077;
    --ec-yellow: #ffbf57;
    --ec-text: #f8fbff;
    --ec-muted: rgba(201, 210, 240, 0.66);
    --ec-radius: 26px;
    --ec-shadow: 0 26px 72px rgba(0, 0, 0, 0.54);
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    width: 100vw !important;
    height: 100dvh !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    color: var(--ec-text) !important;
    background: var(--ec-bg) !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell[hidden] {
    display: grid !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-bg {
    position: fixed !important;
    inset: 0 !important;
    background:
      radial-gradient(circle at 50% -12%, rgba(36, 216, 255, 0.26), transparent 31%),
      radial-gradient(circle at 88% 12%, rgba(139, 92, 255, 0.26), transparent 32%),
      radial-gradient(circle at 12% 84%, rgba(36, 216, 255, 0.13), transparent 30%),
      linear-gradient(rgba(191, 211, 255, 0.034) 1px, transparent 1px),
      linear-gradient(90deg, rgba(191, 211, 255, 0.034) 1px, transparent 1px),
      #02040f !important;
    background-size: auto, auto, auto, 30px 30px, 30px 30px, auto !important;
    pointer-events: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-bg::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background:
      radial-gradient(circle at 22% 18%, rgba(36, 216, 255, 0.85) 0 1px, transparent 2px),
      radial-gradient(circle at 72% 34%, rgba(139, 92, 255, 0.7) 0 1px, transparent 2px),
      radial-gradient(circle at 82% 72%, rgba(36, 216, 255, 0.45) 0 1px, transparent 2px) !important;
    opacity: 0.52 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-app {
    position: relative !important;
    z-index: 1 !important;
    width: min(100vw, 430px) !important;
    max-width: 430px !important;
    height: 100dvh !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    gap: 12px !important;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 13px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-topbar {
    min-width: 0 !important;
    min-height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 0 2px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-brand {
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-brand > span {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 18px !important;
    color: #e8fbff !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    letter-spacing: -0.03em !important;
    background:
      radial-gradient(circle at 34% 18%, rgba(255,255,255,.28), transparent 25%),
      linear-gradient(135deg, rgba(36, 216, 255, .25), rgba(139, 92, 255, .32)) !important;
    box-shadow: inset 0 0 0 1px rgba(111, 235, 255, .24), 0 0 32px rgba(36, 216, 255, .22) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-brand strong,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-brand small {
    display: block !important;
    max-width: 220px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-brand strong {
    color: var(--ec-text) !important;
    font-size: 19px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    letter-spacing: -0.05em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-brand small {
    margin-top: 4px !important;
    color: var(--ec-muted) !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-status {
    min-width: 74px !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(82, 246, 168, .28) !important;
    border-radius: 999px !important;
    background: rgba(82, 246, 168, .095) !important;
    color: var(--ec-green) !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    box-shadow: 0 0 24px rgba(82, 246, 168, .14) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-content {
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-panel {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    display: none !important;
    border: 1px solid var(--ec-border) !important;
    border-radius: 32px !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(36, 216, 255, .12), transparent 34%),
      linear-gradient(180deg, rgba(13, 18, 40, .91), rgba(4, 7, 18, .94)) !important;
    box-shadow: var(--ec-shadow), inset 0 1px 0 rgba(255,255,255,.07) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-panel.active {
    display: grid !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="rooms"].ec-mobile-panel.active {
    grid-template-rows: auto auto auto auto auto minmax(0, 1fr) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"].ec-mobile-panel.active {
    grid-template-rows: auto auto minmax(0, 1fr) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"].ec-mobile-panel.active {
    grid-template-rows: auto auto auto minmax(0, 1fr) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="more"].ec-mobile-panel.active {
    grid-template-rows: auto auto minmax(0, 1fr) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chat"].ec-mobile-panel.active {
    grid-template-rows: auto minmax(0, 1fr) auto !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-screen-head {
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 18px 16px 12px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-screen-head h1 {
    margin: 0 !important;
    color: var(--ec-text) !important;
    font-size: clamp(25px, 7vw, 32px) !important;
    line-height: .96 !important;
    font-weight: 950 !important;
    letter-spacing: -0.07em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-screen-head p {
    margin: 7px 0 0 !important;
    color: var(--ec-muted) !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-icon-btn,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-back {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid rgba(154, 181, 255, .16) !important;
    border-radius: 17px !important;
    background:
      radial-gradient(circle at 30% 12%, rgba(255,255,255,.18), transparent 32%),
      rgba(255,255,255,.065) !important;
    color: var(--ec-text) !important;
    font-size: 17px !important;
    font-weight: 950 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-search {
    margin: 0 14px 12px !important;
    min-height: 45px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(154, 181, 255, .12) !important;
    border-radius: 20px !important;
    background: rgba(255,255,255,.06) !important;
    color: var(--ec-muted) !important;
    font-size: 12px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-inline-status,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-filter-row,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-trust-strip {
    margin: 0 14px 12px !important;
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-inline-status::-webkit-scrollbar,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-filter-row::-webkit-scrollbar,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-trust-strip::-webkit-scrollbar {
    display: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-inline-status span,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-trust-strip span,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-filter-row button {
    flex: 0 0 auto !important;
    min-height: 31px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
    border: 1px solid rgba(36, 216, 255, .18) !important;
    border-radius: 999px !important;
    background: rgba(36, 216, 255, .08) !important;
    color: rgba(220, 250, 255, .92) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-filter-row button.active {
    color: #fff !important;
    background: linear-gradient(135deg, rgba(36,216,255,.32), rgba(139,92,255,.28)) !important;
    box-shadow: 0 0 24px rgba(36,216,255,.16) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-card,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-profile-card,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-vault-summary {
    margin: 0 14px 12px !important;
    padding: 15px !important;
    border: 1px solid rgba(36, 216, 255, .16) !important;
    border-radius: 26px !important;
    background:
      radial-gradient(circle at 9% 0%, rgba(36,216,255,.13), transparent 36%),
      linear-gradient(145deg, rgba(255,255,255,.074), rgba(255,255,255,.026)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.065), 0 18px 44px rgba(0,0,0,.28) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-home-hero {
    position: relative !important;
    min-height: 328px !important;
    display: grid !important;
    justify-items: center !important;
    align-content: center !important;
    gap: 14px !important;
    padding: 22px 15px 16px !important;
    overflow: hidden !important;
    background:
      radial-gradient(circle at 50% 9%, rgba(36,216,255,.24), transparent 31%),
      radial-gradient(circle at 76% 0%, rgba(139,92,255,.24), transparent 34%),
      linear-gradient(180deg, rgba(17,24,52,.86), rgba(6,9,24,.78)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-home-hero::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    background:
      radial-gradient(circle at 20% 18%, rgba(36,216,255,.8) 0 1px, transparent 2px),
      radial-gradient(circle at 70% 28%, rgba(139,92,255,.65) 0 1px, transparent 2px),
      radial-gradient(circle at 84% 72%, rgba(36,216,255,.46) 0 1px, transparent 2px) !important;
    opacity: .85 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-orbit {
    position: relative !important;
    z-index: 1 !important;
    width: 104px !important;
    height: 104px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    background:
      radial-gradient(circle at 36% 30%, rgba(255,255,255,.28), transparent 18%),
      radial-gradient(circle, rgba(36,216,255,.2), rgba(139,92,255,.18) 45%, rgba(4,7,20,.9) 69%) !important;
    box-shadow: inset 0 0 0 1px rgba(111,235,255,.3), 0 0 44px rgba(36,216,255,.28), 0 0 82px rgba(139,92,255,.18) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-orbit::before,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-orbit::after {
    content: "" !important;
    position: absolute !important;
    border-radius: 999px !important;
    border: 1px solid rgba(111,235,255,.2) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-orbit::before {
    inset: -12px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-orbit::after {
    inset: 16px !important;
    border-color: rgba(139,92,255,.24) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-orbit span {
    position: relative !important;
    z-index: 1 !important;
    color: #e8fbff !important;
    font-size: 20px !important;
    font-weight: 950 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-home-copy {
    position: relative !important;
    z-index: 1 !important;
    max-width: 272px !important;
    text-align: center !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-home-kicker {
    display: block !important;
    color: rgba(111,235,255,.88) !important;
    font-size: 10px !important;
    font-weight: 950 !important;
    letter-spacing: .34em !important;
    text-transform: uppercase !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-home-copy h2 {
    margin: 8px 0 0 !important;
    font-size: clamp(28px, 8vw, 36px) !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    letter-spacing: -0.075em !important;
    color: #fff !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-home-copy h2::after {
    content: "" !important;
    display: inline-block !important;
    width: 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-home-copy p {
    max-width: 250px !important;
    margin: 10px auto 0 !important;
    color: var(--ec-muted) !important;
    font-size: 13px !important;
    line-height: 1.42 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-security-grid {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-security-card {
    min-width: 0 !important;
    min-height: 66px !important;
    display: grid !important;
    align-content: center !important;
    gap: 4px !important;
    padding: 9px 7px !important;
    border: 1px solid rgba(111,235,255,.14) !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.055) !important;
    text-align: center !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-security-card strong,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-security-card small {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-security-card strong {
    color: rgba(238,252,255,.96) !important;
    font-size: 10px !important;
    line-height: 1.12 !important;
    font-weight: 950 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-security-card small {
    color: rgba(201,210,240,.63) !important;
    font-size: 9px !important;
    line-height: 1.18 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-room-list,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-list,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-stream,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-settings,
  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-section {
    min-width: 0 !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    padding: 0 14px calc(112px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-room {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 78px !important;
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 0 10px !important;
    padding: 12px !important;
    border: 1px solid rgba(154,181,255,.14) !important;
    border-radius: 24px !important;
    background:
      radial-gradient(circle at 0% 0%, rgba(36,216,255,.12), transparent 38%),
      rgba(255,255,255,.058) !important;
    color: var(--ec-text) !important;
    text-align: left !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 12px 28px rgba(0,0,0,.18) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-room.active {
    border-color: rgba(36,216,255,.35) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 28px rgba(36,216,255,.14) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-room > span {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 19px !important;
    color: #e8fbff !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    background: linear-gradient(135deg, rgba(36,216,255,.22), rgba(139,92,255,.3)) !important;
    box-shadow: inset 0 0 0 1px rgba(111,235,255,.2), 0 0 24px rgba(36,216,255,.12) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-room div {
    min-width: 0 !important;
    display: grid !important;
    gap: 5px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-room strong,
  body.ec-mobile-shell-active #ec-mobile-shell .ecm-room small {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-room strong {
    color: var(--ec-text) !important;
    font-size: 15px !important;
    line-height: 1.16 !important;
    font-weight: 900 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-room small {
    color: var(--ec-muted) !important;
    font-size: 11.5px !important;
    line-height: 1.25 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-room b {
    min-width: 42px !important;
    min-height: 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(36,216,255,.2) !important;
    border-radius: 999px !important;
    color: var(--ec-cyan) !important;
    background: rgba(36,216,255,.08) !important;
    font-size: 10px !important;
    font-weight: 950 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-empty-card,
  body.ec-mobile-shell-active #ec-mobile-shell .ecm-empty,
  body.ec-mobile-shell-active #ec-mobile-shell .ecm-placeholder {
    display: grid !important;
    align-content: center !important;
    justify-items: center !important;
    gap: 12px !important;
    text-align: center !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell #ec-mobile-room-list .ecm-empty,
  body.ec-mobile-shell-active #ec-mobile-shell #ec-mobile-chat-list .ecm-empty {
    min-height: 255px !important;
    padding: 24px 16px !important;
    border: 1px solid rgba(154,181,255,.13) !important;
    border-radius: 28px !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(36,216,255,.14), transparent 38%),
      rgba(255,255,255,.048) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 16px 38px rgba(0,0,0,.24) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-empty > span,
  body.ec-mobile-shell-active #ec-mobile-shell .ecm-placeholder > span {
    width: 76px !important;
    height: 76px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 28px !important;
    color: var(--ec-cyan) !important;
    font-size: 31px !important;
    background: linear-gradient(135deg, rgba(36,216,255,.18), rgba(139,92,255,.28)) !important;
    box-shadow: inset 0 0 0 1px rgba(111,235,255,.22), 0 0 38px rgba(36,216,255,.18) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-empty h2,
  body.ec-mobile-shell-active #ec-mobile-shell .ecm-placeholder h1 {
    margin: 0 !important;
    color: var(--ec-text) !important;
    font-size: 24px !important;
    line-height: 1.05 !important;
    font-weight: 950 !important;
    letter-spacing: -0.05em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-empty p,
  body.ec-mobile-shell-active #ec-mobile-shell .ecm-placeholder p {
    max-width: 292px !important;
    margin: 0 !important;
    color: var(--ec-muted) !important;
    font-size: 13px !important;
    line-height: 1.48 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-empty-actions {
    width: 100% !important;
    max-width: 302px !important;
    display: grid !important;
    gap: 10px !important;
    margin-top: 4px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-primary,
  body.ec-mobile-shell-active #ec-mobile-shell .ecm-secondary {
    width: 100% !important;
    min-height: 50px !important;
    border-radius: 19px !important;
    font-size: 13px !important;
    font-weight: 950 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-primary {
    border: 0 !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--ec-cyan), var(--ec-purple)) !important;
    box-shadow: 0 14px 34px rgba(36,216,255,.22) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-secondary {
    border: 1px solid rgba(154,181,255,.14) !important;
    color: rgba(239,246,255,.9) !important;
    background: rgba(255,255,255,.06) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-head {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px !important;
    border-bottom: 1px solid rgba(154,181,255,.09) !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(36,216,255,.09), transparent 38%),
      rgba(5,8,20,.46) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-meta {
    min-width: 0 !important;
    display: grid !important;
    gap: 4px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-meta strong,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-meta small {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-meta strong {
    color: var(--ec-text) !important;
    font-size: 16px !important;
    line-height: 1.12 !important;
    font-weight: 950 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-meta small {
    color: var(--ec-muted) !important;
    font-size: 12px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-stream {
    background:
      radial-gradient(circle at 22% 18%, rgba(36,216,255,.08), transparent 24%),
      radial-gradient(circle at 86% 64%, rgba(139,92,255,.08), transparent 26%) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-stream .ecm-empty {
    min-height: 100% !important;
    padding: 24px 16px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-stream .ecm-empty.error {
    min-height: 230px !important;
    margin: auto 0 !important;
    border: 1px solid rgba(255,96,119,.18) !important;
    border-radius: 28px !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(255,96,119,.12), transparent 38%),
      rgba(255,255,255,.045) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-msg {
    max-width: 82% !important;
    width: fit-content !important;
    margin: 0 0 10px !important;
    padding: 11px 13px !important;
    border: 1px solid rgba(154,181,255,.12) !important;
    border-radius: 20px 20px 20px 8px !important;
    background: rgba(255,255,255,.075) !important;
    color: var(--ec-text) !important;
    box-shadow: 0 12px 26px rgba(0,0,0,.2) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-msg.mine {
    margin-left: auto !important;
    border-radius: 20px 20px 8px 20px !important;
    border-color: rgba(36,216,255,.18) !important;
    background: linear-gradient(135deg, rgba(36,216,255,.78), rgba(139,92,255,.82)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-msg p {
    margin: 0 !important;
    color: inherit !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-composer {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 70px !important;
    gap: 8px !important;
    padding: 10px !important;
    border-top: 1px solid rgba(154,181,255,.1) !important;
    background: linear-gradient(180deg, rgba(10,14,31,.93), rgba(4,6,17,.98)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-composer button,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-composer input {
    min-width: 0 !important;
    min-height: 46px !important;
    border: 1px solid rgba(154,181,255,.14) !important;
    border-radius: 17px !important;
    background: rgba(255,255,255,.065) !important;
    color: var(--ec-text) !important;
    font-size: 16px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-composer input {
    padding: 0 13px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-composer .primary {
    border: 0 !important;
    background: linear-gradient(135deg, var(--ec-cyan), var(--ec-purple)) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 950 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-profile-card,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-vault-summary {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-vault-summary {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-profile-card > span {
    width: 48px !important;
    height: 48px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 18px !important;
    color: #e8fbff !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    background: linear-gradient(135deg, rgba(36,216,255,.22), rgba(139,92,255,.32)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-profile-card div,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-vault-summary div {
    min-width: 0 !important;
    display: grid !important;
    gap: 5px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-profile-card strong,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-vault-summary strong,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-profile-card small,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-vault-summary small {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-profile-card strong,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-vault-summary strong {
    color: var(--ec-text) !important;
    font-size: 15px !important;
    line-height: 1.16 !important;
    font-weight: 950 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-profile-card small,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-vault-summary small {
    color: var(--ec-muted) !important;
    font-size: 11.5px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-profile-card b,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-vault-summary span {
    min-height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(82,246,168,.2) !important;
    color: var(--ec-green) !important;
    background: rgba(82,246,168,.09) !important;
    font-size: 10px !important;
    font-weight: 950 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-settings-section,
  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-section {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    gap: 0 !important;
    margin: 0 0 14px !important;
    padding: 12px !important;
    border: 1px solid rgba(154,181,255,.12) !important;
    border-radius: 27px !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.026)),
      rgba(8,12,28,.84) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 14px 34px rgba(0,0,0,.24) !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-section-title {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 8px !important;
    padding: 0 4px 8px !important;
    border-bottom: 1px solid rgba(154,181,255,.075) !important;
    color: rgba(247,248,255,.75) !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 950 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 66px !important;
    display: grid !important;
    grid-template-columns: 41px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 10px 8px !important;
    border: 0 !important;
    border-radius: 19px !important;
    background: transparent !important;
    color: var(--ec-text) !important;
    text-align: left !important;
    box-shadow: none !important;
    overflow: hidden !important;
    font-size: 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-row + .ec-mobile-setting-row,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-plan-card + .ec-mobile-plan-card {
    border-top: 1px solid rgba(154,181,255,.075) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-row:active {
    background: rgba(255,255,255,.055) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-icon {
    width: 41px !important;
    height: 41px !important;
    min-width: 41px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 15px !important;
    color: var(--ec-cyan) !important;
    font-size: 10px !important;
    font-weight: 950 !important;
    background: linear-gradient(135deg, rgba(36,216,255,.16), rgba(139,92,255,.22)) !important;
    box-shadow: inset 0 0 0 1px rgba(111,235,255,.18) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-copy {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 4px !important;
    white-space: normal !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-title,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-subtitle {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-title {
    color: rgba(248,250,255,.97) !important;
    font-size: 14.5px !important;
    line-height: 1.16 !important;
    font-weight: 900 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-subtitle {
    color: rgba(201,210,240,.64) !important;
    font-size: 11.5px !important;
    line-height: 1.28 !important;
    font-weight: 650 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-chevron {
    min-width: 18px !important;
    color: rgba(111,235,255,.54) !important;
    font-size: 21px !important;
    line-height: 1 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-row.danger .ec-mobile-setting-icon {
    color: #ff9aaa !important;
    background: rgba(255,96,119,.13) !important;
    box-shadow: inset 0 0 0 1px rgba(255,96,119,.18) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-row.switch em {
    justify-self: end !important;
    width: 46px !important;
    height: 27px !important;
    min-width: 46px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.13) !important;
    box-shadow: inset 0 0 0 1px rgba(154,181,255,.14) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-row.switch.on em {
    background: linear-gradient(135deg, rgba(36,216,255,.76), rgba(139,92,255,.8)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-plan-card {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 74px !important;
    padding: 12px 8px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-plan-card strong,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-plan-card small {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-plan-card strong {
    color: var(--ec-text) !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
    font-weight: 950 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-plan-card small {
    margin-top: 5px !important;
    color: var(--ec-muted) !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-legal-note {
    margin: 4px 2px 18px !important;
    color: rgba(201,210,240,.52) !important;
    font-size: 10.5px !important;
    line-height: 1.45 !important;
    text-align: center !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-bottom-nav {
    width: 100% !important;
    min-height: 70px !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 8px !important;
    border: 1px solid rgba(154,181,255,.17) !important;
    border-radius: 29px !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(36,216,255,.12), transparent 42%),
      rgba(5,8,20,.94) !important;
    box-shadow: 0 18px 55px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.075) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-bottom-nav button {
    min-width: 0 !important;
    min-height: 52px !important;
    display: grid !important;
    place-items: center !important;
    gap: 3px !important;
    border: 0 !important;
    border-radius: 19px !important;
    background: transparent !important;
    color: rgba(245,244,255,.62) !important;
    font-size: 11px !important;
    font-weight: 850 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-bottom-nav button span {
    font-size: 16px !important;
    line-height: 1 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-bottom-nav button.active {
    color: #eaffff !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(36,216,255,.24), transparent 50%),
      linear-gradient(135deg, rgba(36,216,255,.13), rgba(139,92,255,.18)) !important;
    box-shadow: inset 0 0 0 1px rgba(36,216,255,.2), 0 0 26px rgba(36,216,255,.13) !important;
  }
}

#landing-screen .lp-hero-mini-title {
  max-width: min(24ch, 100%);
  line-height: 1.34;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

#landing-screen .lp-hero-mini-copy {
  max-width: min(34ch, 100%);
  line-height: 1.72;
  text-wrap: pretty;
}

@media (max-width: 820px) {
  #landing-screen .lp-hero-mini-title,
  #landing-screen .lp-hero-mini-copy {
    max-width: 100%;
  }
}

#landing-screen #lp-footer {
  padding-bottom: calc(7.25rem + env(safe-area-inset-bottom, 0px)) !important;
}

#landing-screen #lp-footer .lp-footer-inner {
  row-gap: 1rem !important;
}

@media (min-width: 821px) {
  #landing-screen #lp-footer .lp-footer-links {
    padding-right: 8.5rem !important;
  }
}

@media (max-width: 820px) {
  #landing-screen #lp-footer {
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  #landing-screen #lp-footer .lp-footer-links {
    gap: 1rem !important;
  }
}

/* ── Neon Glow Animations ──────────────────────────────────── */
@keyframes neonPulse {
  0%,100% { text-shadow: 0 0 10px rgba(0,255,255,0.6), 0 0 30px rgba(0,255,255,0.3), 0 0 60px rgba(0,255,255,0.1); }
  50%     { text-shadow: 0 0 20px rgba(0,255,255,0.9), 0 0 50px rgba(0,255,255,0.5), 0 0 100px rgba(0,255,255,0.2); }
}
@keyframes neonPulseGold {
  0%,100% { text-shadow: 0 0 10px rgba(255,215,0,0.5), 0 0 25px rgba(255,215,0,0.2); }
  50%     { text-shadow: 0 0 20px rgba(255,215,0,0.8), 0 0 50px rgba(255,215,0,0.4); }
}
@keyframes neonBorderSpin {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes cyberFadeIn {
  from { opacity:0; transform:translateY(24px) scale(0.97); filter:blur(4px); }
  to   { opacity:1; transform:translateY(0)    scale(1);    filter:blur(0); }
}
@keyframes cyberSlideIn {
  from { opacity:0; transform:translateX(-20px); }
  to   { opacity:1; transform:translateX(0); }
}
@keyframes gradientFlow {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}
@keyframes scanLine {
  0%   { transform:translateY(-100%); }
  100% { transform:translateY(100vh); }
}
@keyframes pulse   { 0%,100%{transform:scale(1);opacity:.8} 50%{transform:scale(1.05);opacity:1} }
@keyframes msg     { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
@keyframes slide   { from{transform:translateY(40px);opacity:0} to{transform:none;opacity:1} }
@keyframes shake   { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
@keyframes blink   { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes tdot    { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }
@keyframes sp      { from{transform:rotate(0)} to{transform:rotate(360deg)} }
@keyframes mic     { 0%,100%{box-shadow:0 0 0 0 rgba(255,71,87,.4)} 70%{box-shadow:0 0 0 10px rgba(255,71,87,0)} }
@keyframes gradient{ 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
@keyframes fade    { from{opacity:0} to{opacity:1} }
@keyframes float   { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes spin    { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes callPulse{ 0%,100%{box-shadow:0 0 0 0 rgba(46,204,113,.4)} 70%{box-shadow:0 0 0 16px rgba(46,204,113,0)} }
@keyframes typing  { 0%,100%{opacity:.3} 50%{opacity:1} }
@keyframes online  { 0%,100%{box-shadow:0 0 0 0 rgba(0,255,136,.4)} 70%{box-shadow:0 0 0 8px rgba(0,255,136,0)} }
@keyframes lockoutGlitch {
  0%,100%{ opacity:1; transform:none; }
  25%{ opacity:.85; transform:translateX(-3px) skew(-0.5deg); filter:hue-rotate(15deg); }
  50%{ opacity:.9;  transform:translateX(3px) skew(0.5deg); }
  75%{ opacity:.8;  transform:translateX(-1px); filter:hue-rotate(-15deg); }
}
@keyframes glitchPulse {
  0%,100%{ text-shadow:0 0 20px #ff0000,0 0 40px #ff0000; }
  50%{ text-shadow:0 0 40px #ff0000,0 0 80px #ff0000,3px 0 #ff0000,-3px 0 #00ffff; }
}
@keyframes stagger {
  from{ opacity:0; transform:translateY(16px); }
  to  { opacity:1; transform:translateY(0); }
}
@keyframes revealUp {
  from{ opacity:0; transform:translateY(40px) scale(0.96); }
  to  { opacity:1; transform:translateY(0) scale(1); }
}
@keyframes borderGlow {
  0%,100%{ border-color:rgba(0,255,255,0.2); box-shadow:0 0 10px rgba(0,255,255,0.05); }
  50%    { border-color:rgba(0,255,255,0.5); box-shadow:0 0 20px rgba(0,255,255,0.15); }
}
@keyframes slide-up { from{transform:translateY(100%);opacity:0} to{transform:translateY(0);opacity:1} }

/* ── Base Reset ────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { overflow:hidden; -webkit-tap-highlight-color:transparent; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  height: 100dvh;
  height: 100svh;
  overflow: hidden;
  position: relative;
  display: block;
}

/* Scanline-Overlay (subtil, gibt Depth) */
body::after {
  content:'';
  position:fixed;
  inset:0;
  pointer-events:none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,255,255,0.008) 2px,
    rgba(0,255,255,0.008) 4px
  );
  z-index:99997;
}

/* ── Screen System ─────────────────────────────────────────── */
.screen {
  display: none;
  position: fixed;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  z-index: 1;
}
.screen.active { display:block; animation: cyberFadeIn 0.4s cubic-bezier(.16,1,.3,1) both; }


/* ════════════════════════════════════════════════════
   V12 MASTER FIX — Icons · Vault · Footer · Mobile
════════════════════════════════════════════════════ */

/* ── TOP BAR ICONS: Rock-solid sticky positioning ── */
.top-bar,
.chat-top-bar {
  position: sticky !important;
  top: 0;
  z-index: 1000 !important;
  /* Prevent invisible elements stealing pointer events */
  pointer-events: auto;
  will-change: transform;
}
.top-bar > *,
.chat-top-bar > * {
  pointer-events: auto;
  position: relative;
  z-index: 2;
}
.icon-btn {
  pointer-events: auto !important;
  position: relative;
  z-index: 3;
  /* Ensure visible at all times - no visibility:hidden race conditions */
  opacity: 1 !important;
  visibility: visible !important;
  /* V12 Glass look */
  background: rgba(20, 10, 40, 0.6) !important;
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid rgba(138, 43, 226, 0.25) !important;
}
.icon-btn:hover {
  border-color: rgba(0, 209, 255, 0.5) !important;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.3),
              inset 0 0 10px rgba(0, 209, 255, 0.1);
  color: #00D1FF !important;
  transform: scale(1.08);
}

/* ── VAULT SCREEN: Remove invisible click-blockers ── */
#vault-screen {
  min-height: 100dvh !important;
  min-height: 100vh !important;
  max-height: 100dvh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  background: #000 !important;
}
#vault-screen > *:first-child {
  /* Top bar stays fixed */
  flex-shrink: 0;
}
#vault-screen .vault-content,
#vault-screen > div:not(.top-bar):not(.chat-top-bar) {
  flex: 1;
  overflow-y: auto !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  position: relative;
  z-index: 1;
}

/* Kill all invisible overlays that might block clicks inside vault */
#vault-screen::before,
#vault-screen::after,
#rooms-screen::before,
#rooms-screen::after {
  pointer-events: none !important;
}

/* Buttons + interactive elements always clickable */
#vault-screen button,
#vault-screen a,
#vault-screen .icon-btn,
#vault-screen [onclick],
#rooms-screen button,
#rooms-screen [onclick] {
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}

/* ── DESIGN-SYNC: Rooms + Vault OLED Black ── */
#rooms-screen,
#chat-screen,
#vault-screen {
  background: #000000 !important;
}
#rooms-screen .top-bar,
#chat-screen .chat-top-bar,
#vault-screen .top-bar {
  background: rgba(0, 0, 0, 0.92) !important;
  border-bottom: 1px solid rgba(138, 43, 226, 0.15) !important;
}
#rooms-screen .top-bar-title,
#vault-screen .top-bar-title {
  background: linear-gradient(135deg, #fff 0%, #8A2BE2 50%, #00D1FF 100%) !important;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Rooms list items - OLED glass */
.room-item, .chat-msg-card {
  background: rgba(20, 10, 40, 0.4) !important;
  border: 1px solid rgba(138, 43, 226, 0.15) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.room-item:hover {
  background: rgba(30, 15, 60, 0.6) !important;
  border-color: rgba(0, 209, 255, 0.3) !important;
}

/* ── FOOTER MOBILE CLICK FIX ── */
#v11-legal-footer {
  pointer-events: auto !important;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 2147483647 !important;
  cursor: default;
}
#v11-legal-footer a {
  pointer-events: auto !important;
  cursor: pointer !important;
  display: inline-block;
  padding: 10px 8px !important;
  margin: -4px 4px !important;
  min-height: 44px;
  min-width: 44px;
  vertical-align: middle;
  line-height: 24px;
  -webkit-tap-highlight-color: rgba(138,43,226,0.3);
  touch-action: manipulation;
  position: relative;
  z-index: 1;
}
#v11-legal-footer a:active {
  background: rgba(138,43,226,0.2);
  border-radius: 6px;
}

/* Anti-Screenshot: window.onblur CSS-Blur */
.ec-privacy-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 4vw, 58px);
  overflow: hidden;
  pointer-events: none;
  color: #f6f2ff;
  font-family: Poppins, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% 24%, rgba(136, 79, 255, 0.28), transparent 34%),
    radial-gradient(circle at 18% 16%, rgba(98, 220, 255, 0.13), transparent 28%),
    radial-gradient(circle at 78% 76%, rgba(126, 255, 187, 0.08), transparent 30%),
    linear-gradient(145deg, #05030d 0%, #0c0618 48%, #020106 100%);
}

.ec-privacy-overlay.is-active,
body.ec-blur-active .ec-privacy-overlay {
  display: flex;
}

.ec-privacy-overlay::before,
.ec-privacy-overlay::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
}

.ec-privacy-overlay::before {
  opacity: 0.2;
  background:
    linear-gradient(rgba(160, 111, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 111, 255, 0.16) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(circle at center, #000 0 42%, transparent 74%);
  animation: ecPrivacyGridDrift 18s linear infinite;
}

.ec-privacy-overlay::after {
  opacity: 0.58;
  background:
    radial-gradient(circle at 39% 26%, rgba(177, 109, 255, 0.34), transparent 2px),
    radial-gradient(circle at 59% 18%, rgba(110, 234, 255, 0.34), transparent 2px),
    radial-gradient(circle at 72% 36%, rgba(177, 109, 255, 0.28), transparent 2px),
    radial-gradient(circle at 25% 58%, rgba(110, 234, 255, 0.18), transparent 2px),
    radial-gradient(circle at 64% 70%, rgba(177, 109, 255, 0.22), transparent 2px);
  filter: blur(0.1px);
  animation: ecPrivacyFloat 8s ease-in-out infinite alternate;
}

.ec-privacy-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ec-privacy-ambient i {
  position: absolute;
  width: clamp(180px, 24vw, 360px);
  height: clamp(180px, 24vw, 360px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129, 80, 255, 0.16), transparent 68%);
  filter: blur(8px);
}

.ec-privacy-ambient i:nth-child(1) { left: 17%; top: 13%; }
.ec-privacy-ambient i:nth-child(2) { right: 14%; top: 42%; background: radial-gradient(circle, rgba(91, 221, 255, 0.12), transparent 70%); }
.ec-privacy-ambient i:nth-child(3) { left: 44%; bottom: -8%; background: radial-gradient(circle, rgba(177, 109, 255, 0.12), transparent 70%); }

.ec-privacy-card {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ec-privacy-globe {
  position: relative;
  width: clamp(188px, 32vw, 360px);
  height: clamp(188px, 32vw, 360px);
  display: grid;
  place-items: center;
  margin-bottom: clamp(18px, 3vw, 34px);
  border-radius: 50%;
  filter: drop-shadow(0 0 34px rgba(137, 83, 255, 0.35));
}

.ec-privacy-globe::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.14), transparent 18%),
    repeating-radial-gradient(circle, rgba(220, 198, 255, 0.18) 0 1px, transparent 1px 7px);
  box-shadow:
    inset 0 0 48px rgba(165, 92, 255, 0.28),
    0 0 64px rgba(137, 83, 255, 0.32);
  opacity: 0.64;
}

.ec-privacy-grid {
  position: absolute;
  inset: 6%;
  width: 88%;
  height: 88%;
  animation: ecPrivacySpin 22s linear infinite;
}

.ec-privacy-orbit {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(174, 110, 255, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(144, 82, 255, 0.16);
}

.ec-privacy-orbit-a { transform: rotateX(68deg) rotateZ(-18deg); }
.ec-privacy-orbit-b { transform: rotateX(64deg) rotateZ(64deg); animation: ecPrivacyOrbit 9s linear infinite; }
.ec-privacy-orbit-c { transform: rotateY(68deg) rotateZ(20deg); animation: ecPrivacyOrbit 12s linear infinite reverse; }

.ec-privacy-node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #caa7ff;
  box-shadow: 0 0 16px #a05cff, 0 0 28px rgba(111, 234, 255, 0.5);
}

.ec-privacy-node.n1 { left: 19%; top: 31%; }
.ec-privacy-node.n2 { right: 23%; top: 20%; }
.ec-privacy-node.n3 { right: 15%; top: 56%; }
.ec-privacy-node.n4 { left: 28%; bottom: 19%; }
.ec-privacy-node.n5 { left: 49%; top: 7%; }

.ec-privacy-lock {
  position: relative;
  z-index: 2;
  width: clamp(78px, 11vw, 132px);
  height: clamp(78px, 11vw, 132px);
  display: grid;
  place-items: center;
  color: #9d6bff;
  border-radius: 28%;
  background: linear-gradient(145deg, rgba(95, 58, 213, 0.78), rgba(34, 18, 72, 0.88));
  border: 1px solid rgba(224, 207, 255, 0.22);
  box-shadow:
    0 0 28px rgba(157, 107, 255, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  animation: ecPrivacyPulse 2.8s ease-in-out infinite;
}

.ec-privacy-lock svg {
  width: 72%;
  height: 72%;
  filter: drop-shadow(0 0 10px rgba(211, 186, 255, 0.55));
}

.ec-privacy-card h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 900;
  text-shadow: 0 0 28px rgba(157, 107, 255, 0.18);
}

.ec-privacy-card h1 span {
  color: #8f56ff;
  text-shadow: 0 0 24px rgba(143, 86, 255, 0.5);
}

.ec-privacy-card p {
  max-width: 720px;
  margin: 0 0 9px;
  color: rgba(238, 230, 255, 0.78);
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.55;
}

.ec-privacy-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(720px, 100%);
  margin-top: clamp(24px, 4vw, 44px);
}

.ec-privacy-chips span {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(146, 94, 255, 0.24);
  border-radius: 14px;
  color: rgba(246, 242, 255, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 42px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 800;
}

.ec-privacy-chips b {
  color: #8f56ff;
  font-size: 19px;
  text-shadow: 0 0 16px rgba(143, 86, 255, 0.72);
}

.ec-privacy-card footer {
  margin-top: clamp(30px, 5vw, 58px);
  color: rgba(160, 111, 255, 0.48);
  font-size: 14px;
  font-weight: 700;
}

.ec-privacy-card footer span {
  margin-right: 8px;
}

@keyframes ecPrivacyGridDrift {
  to { transform: translate3d(68px, 68px, 0); }
}

@keyframes ecPrivacyFloat {
  to { transform: translate3d(0, -18px, 0) scale(1.03); }
}

@keyframes ecPrivacySpin {
  to { transform: rotate(360deg); }
}

@keyframes ecPrivacyOrbit {
  to { transform: rotateX(64deg) rotateZ(424deg); }
}

@keyframes ecPrivacyPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 28px rgba(157, 107, 255, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
  50% { transform: scale(1.035); box-shadow: 0 0 42px rgba(157, 107, 255, 0.74), 0 0 64px rgba(111, 234, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
}

@media (max-width: 680px) {
  .ec-privacy-overlay {
    padding: 22px;
  }

  .ec-privacy-globe {
    width: min(64vw, 250px);
    height: min(64vw, 250px);
    margin-bottom: 18px;
  }

  .ec-privacy-card h1 {
    font-size: clamp(31px, 10vw, 42px);
  }

  .ec-privacy-card p {
    font-size: 13px;
  }

  .ec-privacy-chips {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .ec-privacy-chips span {
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-privacy-overlay::before,
  .ec-privacy-overlay::after,
  .ec-privacy-grid,
  .ec-privacy-orbit,
  .ec-privacy-lock {
    animation: none !important;
  }
}

/* Web-Worker Loading Animation - Elite Style */
#v12-crypt-loader {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: radial-gradient(circle at center, #0a0514 0%, #000 80%);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  pointer-events: none;
}
#v12-crypt-loader.active { display: flex; }
.v12-crypt-ring {
  width: 80px; height: 80px;
  border: 3px solid rgba(138,43,226,0.15);
  border-top-color: #8A2BE2;
  border-right-color: #00D1FF;
  border-radius: 50%;
  animation: v12CryptSpin 1s linear infinite;
  box-shadow: 0 0 40px rgba(138,43,226,0.4);
}
@keyframes v12CryptSpin {
  to { transform: rotate(360deg); }
}
.v12-crypt-text {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  background: linear-gradient(135deg, #8A2BE2, #00D1FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: v12TextPulse 1.6s ease-in-out infinite;
}
.v12-crypt-sub {
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
}
@keyframes v12TextPulse {
  0%,100% { opacity: 1; filter: drop-shadow(0 0 8px rgba(138,43,226,0.6)); }
  50% { opacity: 0.7; filter: drop-shadow(0 0 16px rgba(0,209,255,0.6)); }
}

/* Override v11 auth-gate: icon-btn inside top-bar always visible (prevent flash) */
body:not(.auth-ready) .top-bar .icon-btn,
body:not(.auth-ready) .chat-top-bar .icon-btn {
  visibility: hidden;
}
body.auth-ready .top-bar .icon-btn,
body.auth-ready .chat-top-bar .icon-btn {
  visibility: visible;
  animation: v12IconFadeIn 0.3s ease-out both;
}
@keyframes v12IconFadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* V11 AUTH GATE — Prevents DOM-flash before auth validation */
body:not(.auth-ready) #chat-screen,
body:not(.auth-ready) #vault-screen,
body:not(.auth-ready) #rooms-screen,
body:not(.auth-ready) #pin-screen {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}
body.auth-ready #chat-screen.active,
body.auth-ready #vault-screen.active,
body.auth-ready #rooms-screen.active,
body.auth-ready #pin-screen.active {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* V11 SCROLL FIX — iPhone 17 Pro Max & iOS Safari */
.screen {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
#vault-screen,
#rooms-screen,
#chat-screen {
  overflow-y: auto !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  height: 100dvh !important;
  height: 100vh;
  max-height: 100dvh !important;
  max-height: 100vh;
}
.vault-content, .rooms-content, .chat-messages {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  height: 100%;
}
/* Momentum scrolling iOS */
* {
  -webkit-tap-highlight-color: transparent;
}

/* V11 APP-SWITCHER BLUR — Auto-trigger on visibilitychange */
body.ec-hidden #splash,
body.ec-hidden #chat-screen,
body.ec-hidden #vault-screen,
body.ec-hidden #rooms-screen,
body.ec-hidden #login-screen,
body.ec-hidden #setup-new,
body.ec-hidden #setup-join {
  filter: blur(24px) brightness(0.3) saturate(0.5);
  transition: filter 0.15s ease-out;
}
body.ec-hidden::before {
  content: none;
  display: none;
}

/* V11 DESIGN-SYSTEM — Deep OLED + Gradients + Glassmorphism */
:root {
  --v11-black: #000000;
  --v11-violet: #8A2BE2;
  --v11-cyan: #00D1FF;
  --v11-gradient: linear-gradient(135deg, #8A2BE2 0%, #00D1FF 100%);
  --v11-glass: rgba(255,255,255,0.03);
  --v11-glass-border: rgba(255,255,255,0.08);
  --v11-glow: 0 0 32px rgba(138,43,226,0.15);
}
.v11-glass {
  background: var(--v11-glass);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid var(--v11-glass-border);
  border-radius: 16px;
}
.v11-glass-hover:hover {
  border-color: rgba(138,43,226,0.3);
  box-shadow: var(--v11-glow);
  transform: translateY(-2px);
  transition: all 0.25s cubic-bezier(.16,1,.3,1);
}
.v11-bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  padding: 14px;
}
.v11-bento > .v11-bento-wide { grid-column: span 2; }
.v11-gradient-text {
  background: var(--v11-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.v11-glow-border {
  position: relative;
}
.v11-glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--v11-gradient);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.2s;
}
.v11-glow-border:hover::before { opacity: 0.4; }

/* V11 FOOTER MODAL LINKS — ALWAYS clickable via body-level handlers */
.v11-footer-legal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  display: none;
  padding: 8px 16px;
  background: rgba(0,0,0,0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  pointer-events: auto;
}
.v11-footer-legal a {
  color: rgba(138,43,226,0.8);
  text-decoration: none;
  margin: 0 8px;
  cursor: pointer;
}
.v11-footer-legal a:hover { color: #00D1FF; text-decoration: underline; }
body.show-legal-footer .v11-footer-legal { display: block; }

#landing-screen { overflow-y:scroll!important; -webkit-overflow-scrolling:touch!important; }
#landing-screen.active { display:block; position:fixed; inset:0; overflow-y:scroll!important; z-index:1; }

/* ── Typography ────────────────────────────────────────────── */
h1,h2,h3,h4 { font-family:var(--font); font-weight:700; letter-spacing:-0.02em; }

.neon-text {
  background: linear-gradient(135deg, var(--cyan), var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientFlow 4s ease infinite;
}
.neon-glow {
  animation: neonPulse 3s ease-in-out infinite;
  color: var(--cyan);
}

/* ── Top Bar ───────────────────────────────────────────────── */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  padding-top: max(14px, env(safe-area-inset-top));
  background: rgba(0,0,0,0.85);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid rgba(0,255,255,0.06);
  min-height: 58px;
  position: relative;
  z-index: 10;
}
.top-bar::after {
  content:'';
  position:absolute;
  bottom:-1px; left:0; right:0;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,255,0.3), transparent);
}
.top-bar-title {
  font-family: var(--font);
  font-weight: 800;
  font-size: 18px;
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.chat-top-bar {
  background: rgba(0,0,0,0.9)!important;
  border-bottom: 1px solid rgba(0,255,255,0.06)!important;
  -webkit-backdrop-filter: var(--blur)!important;
  backdrop-filter: var(--blur)!important;
}

/* ── Glassmorphism Container ───────────────────────────────── */
.glass-card {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,255,255,0.15), rgba(147,51,234,0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  background: linear-gradient(135deg, var(--accent) 0%, #5a4fcf 50%, var(--purple) 100%);
  background-size: 200% 200%;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 16px 40px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  transition: all 0.3s cubic-bezier(.16,1,.3,1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cyan), var(--accent), var(--purple), var(--cyan));
  background-size: 300% 300%;
  opacity: 0;
  transition: opacity 0.3s;
  animation: gradientFlow 3s ease infinite;
}
.btn:hover::before { opacity: 0.25; }
.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(124,106,247,0.5), var(--glow-purple);
}
.btn:active { transform: translateY(-1px) scale(0.99); }

.btn.primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--accent) 100%);
  color: #000;
  font-weight: 700;
}
.btn.primary:hover {
  box-shadow: 0 8px 30px rgba(0,255,255,0.4), var(--glow-cyan);
}

.btn.secondary {
  background: var(--glass);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text2);
}
.btn.secondary:hover {
  border-color: rgba(0,255,255,0.3);
  color: var(--cyan);
  box-shadow: 0 4px 20px rgba(0,255,255,0.1);
}

.btn.danger {
  background: linear-gradient(135deg, #ff3355, #cc0033);
}
.btn.danger:hover {
  box-shadow: 0 8px 30px rgba(255,51,85,0.4);
}

/* Gold Buy Button — animierter Gradient-Flow */
.btn-gold, .btn-primary {
  background: linear-gradient(135deg, #ffd700 0%, #ffab00 25%, #ffd700 50%, #ffe066 75%, #ffd700 100%);
  background-size: 300% 300%;
  animation: gradientFlow 3s ease infinite;
  color: #000;
  font-weight: 800;
  border: none;
  border-radius: 50px;
  padding: 16px 40px;
  font-size: 15px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(.16,1,.3,1);
  letter-spacing: 0.02em;
}
.btn-gold:hover, .btn-primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--glow-gold), 0 12px 40px rgba(255,215,0,0.35);
}

/* Icon Button */
.icon-btn {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text2);
  font-size: 18px;
  transition: all 0.25s;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.icon-btn:hover {
  border-color: rgba(0,255,255,0.3);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0,255,255,0.15);
  transform: scale(1.08);
}

/* ── Input Fields ──────────────────────────────────────────── */
.input-group { display:flex; flex-direction:column; gap:8px; }
.input-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.input-group input,
.input-group textarea,
.input-group select,
input[type=text], input[type=password], input[type=email],
input[type=number], textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: all 0.25s cubic-bezier(.16,1,.3,1);
  width: 100%;
}
.input-group input:focus,
.input-group textarea:focus,
input[type=text]:focus, input[type=password]:focus,
input[type=number]:focus, textarea:focus {
  border-color: rgba(0,255,255,0.4);
  background: rgba(0,255,255,0.03);
  box-shadow: 0 0 0 3px rgba(0,255,255,0.08), inset 0 0 0 1px rgba(0,255,255,0.15);
}
input[type=text]:hover, input[type=password]:hover,
.input-group input:hover { border-color: rgba(0,255,255,0.2); }

.input-with-gen {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.input-with-gen input { flex: 1; }
.gen-btn {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text2);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font);
  white-space: nowrap;
  transition: all 0.2s;
}
.gen-btn:hover {
  border-color: rgba(0,255,255,0.3);
  color: var(--cyan);
  box-shadow: 0 0 8px rgba(0,255,255,0.1);
}

/* ── Modal System ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.modal-overlay.active { display:flex; animation:fade .25s ease; }
.modal {
  background: linear-gradient(160deg, rgba(10,10,20,0.97) 0%, rgba(5,5,15,0.98) 100%);
  border: 1px solid rgba(0,255,255,0.12);
  border-radius: 24px 24px 0 0;
  padding: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 88dvh;
  overflow-y: auto;
  animation: slide-up .35s cubic-bezier(.16,1,.3,1);
  position: relative;
}
.modal::before {
  content:'';
  position:absolute; top:0; left:20%; right:20%;
  height:1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.5;
}
.modal-handle {
  width: 40px; height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin: -8px auto 16px;
}
.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  font-family: var(--font);
}

/* ── Avatar & User Badge ───────────────────────────────────── */
.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 5px 10px 5px 5px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--border);
  transition: all 0.25s;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.user-badge:hover {
  border-color: rgba(0,255,255,0.3);
  box-shadow: 0 0 12px rgba(0,255,255,0.1);
}
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}
.avatar::after {
  content:'';
  position:absolute; inset:-2px;
  border-radius:50%;
  background: conic-gradient(var(--cyan), var(--accent), var(--purple), var(--cyan));
  z-index:-1;
  animation: spin 4s linear infinite;
  opacity: 0.4;
}

/* Avatar colors */
.color-a { background: linear-gradient(135deg,#7c6af7,#9333ea); }
.color-b { background: linear-gradient(135deg,#0ea5e9,#0284c7); }
.color-c { background: linear-gradient(135deg,#10b981,#059669); }
.color-d { background: linear-gradient(135deg,#f59e0b,#d97706); }
.color-e { background: linear-gradient(135deg,#ef4444,#dc2626); }
.color-f { background: linear-gradient(135deg,#ec4899,#db2777); }

/* ── Room / Chat List Items ────────────────────────────────── */
.room-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.16,1,.3,1);
  border: 1px solid transparent;
  position: relative;
}
.room-item:hover {
  background: rgba(0,255,255,0.04);
  border-color: rgba(0,255,255,0.1);
  transform: translateX(3px);
}
.room-item:active { transform:scale(0.99); }

/* ── Messages ──────────────────────────────────────────────── */
.msg-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  animation: msg 0.25s cubic-bezier(.16,1,.3,1);
  word-break: break-word;
}
.msg-bubble.mine {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 20px rgba(124,106,247,0.3);
}
.msg-bubble.theirs {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
}
/* ── Security Badge ────────────────────────────────────────── */
.security-badge {
  background: rgba(0,255,136,0.06);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(0,255,136,0.8);
  font-family: var(--font-mono);
}

/* ── Toast Notifications ───────────────────────────────────── */
#toast {
  position: fixed;
  bottom: max(100px, calc(env(safe-area-inset-bottom,0px) + 100px));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(10,10,20,0.92);
  border: 1px solid rgba(0,255,255,0.25);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-family: var(--font);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 20px rgba(0,255,255,0.1);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(.16,1,.3,1);
  white-space: nowrap;
  max-width: calc(100vw - 40px);
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Landing Page ──────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 140%;
  background: radial-gradient(
    ellipse at 50% 30%,
    rgba(0,255,255,0.08) 0%,
    rgba(124,106,247,0.06) 35%,
    transparent 70%
  );
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.section-title {
  font-family: var(--font);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.section-sub {
  font-size: 17px;
  color: var(--text2);
  line-height: 1.6;
  font-weight: 400;
}

/* Feature Cards — Glassmorphism + 3D Hover */
.feature-card {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(.16,1,.3,1);
  transform-style: preserve-3d;
  perspective: 1000px;
  cursor: default;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,255,255,0.04), rgba(147,51,234,0.04));
  opacity: 0;
  transition: opacity 0.4s;
}
.feature-card:hover {
  transform: perspective(800px) rotateX(-3deg) rotateY(2deg) translateY(-6px);
  border-color: rgba(0,255,255,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,255,255,0.08);
}
.feature-card:hover::before { opacity: 1; }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(16px,env(safe-area-inset-top)) 24px 16px;
  z-index: 100;
  background: rgba(0,0,0,0.6);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid rgba(0,255,255,0.04);
}
.nav-logo {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display:flex; align-items:center; gap:8px; }
.nav-btn {
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.25s;
  border: 1px solid transparent;
  text-decoration: none;
}
.nav-btn.outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text2);
}
.nav-btn.outline:hover {
  border-color: rgba(0,255,255,0.3);
  color: var(--cyan);
}
.nav-btn.solid {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
}
.nav-btn.solid:hover {
  box-shadow: var(--glow-purple);
  transform: translateY(-2px);
}

/* ── CTA Section ───────────────────────────────────────────── */
.cta-section {
  padding: clamp(60px,8vw,120px) clamp(20px,4vw,40px) clamp(80px,10vw,160px);
  text-align: center;
  position: relative;
  overflow: visible;
  z-index: 2;
  isolation: isolate;
  background: transparent;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(124,106,247,0.06) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.cta-glow {
  z-index: -1;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── Comparison Table ──────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.compare-table th {
  background: rgba(0,255,255,0.05);
  color: var(--text2);
  padding: 12px 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}
.compare-table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.compare-table tr:hover td {
  background: rgba(0,255,255,0.02);
}

/* ── Trust bar ─────────────────────────────────────────────── */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text2);
  font-family: var(--font-mono);
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 40px 24px max(48px,env(safe-area-inset-bottom,48px));
  background: rgba(0,0,0,0.95);
  overflow: visible;
}
footer::before {
  content:'';
  position:absolute; top:0; left:20%; right:20%;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,255,0.3), transparent);
}
.footer-logo {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  justify-content: center;
}
.footer-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cyan); }

/* ── Message Input ─────────────────────────────────────────── */
.msg-input-bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 14px;
  padding-bottom: max(10px, env(safe-area-inset-bottom,10px));
  background: rgba(0,0,0,0.9);
  border-top: 1px solid rgba(0,255,255,0.06);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
#msg-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  resize: none;
  max-height: 120px;
  outline: none;
  transition: all 0.25s;
  line-height: 1.4;
}
#msg-input:focus {
  border-color: rgba(0,255,255,0.3);
  box-shadow: 0 0 0 3px rgba(0,255,255,0.06);
}

/* Send Button */
.send-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--accent));
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s;
  box-shadow: 0 0 15px rgba(0,255,255,0.2);
}
.send-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--glow-cyan);
}

/* ── Stagger Animation für Listen ──────────────────────────── */
.stagger-item {
  animation: stagger 0.5s cubic-bezier(.16,1,.3,1) both;
}
.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.10s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.20s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }
.stagger-item:nth-child(6) { animation-delay: 0.30s; }
.stagger-item:nth-child(7) { animation-delay: 0.35s; }
.stagger-item:nth-child(8) { animation-delay: 0.40s; }

/* ── Reveal Animation ──────────────────────────────────────── */
.reveal { opacity:0; transition: opacity 0.7s ease, transform 0.7s ease; transform:translateY(30px); }
.reveal.visible { opacity:1; transform:translateY(0); }

/* ── Pill / Badge ──────────────────────────────────────────── */
.badge-cyber {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-gold {
  background: rgba(255,215,0,0.1);
  border: 1px solid rgba(255,215,0,0.3);
  color: var(--gold);
  animation: neonPulseGold 4s ease-in-out infinite;
}
.badge-cyan {
  background: rgba(0,255,255,0.08);
  border: 1px solid rgba(0,255,255,0.2);
  color: var(--cyan);
}
.badge-purple {
  background: rgba(147,51,234,0.1);
  border: 1px solid rgba(147,51,234,0.25);
  color: var(--accent-hi);
}

/* ── Avatar Grid ───────────────────────────────────────────── */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 8px;
}
.avatar-opt {
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  background: var(--glass);
}
.avatar-opt:hover {
  border-color: rgba(0,255,255,0.3);
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(0,255,255,0.15);
}
.avatar-opt.selected { border-color: var(--cyan); box-shadow: var(--glow-cyan); }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width:4px; height:4px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan), var(--accent));
  border-radius:4px;
  opacity:0.5;
}

/* ── Selection ─────────────────────────────────────────────── */
::selection { background:rgba(0,255,255,0.2); color:var(--cyan); }

/* ── Typing Indicator ──────────────────────────────────────── */
.typing-dot {
  width:6px; height:6px;
  border-radius:50%;
  background: var(--cyan);
  display:inline-block;
  animation:tdot .8s ease infinite;
}
.typing-dot:nth-child(2){ animation-delay:.15s; }
.typing-dot:nth-child(3){ animation-delay:.30s; }

/* ── Online Indicator ──────────────────────────────────────── */
.online-dot {
  width:8px; height:8px;
  border-radius:50%;
  background:var(--green);
  animation:online 2s ease-in-out infinite;
}

/* ── Neon Border Card ──────────────────────────────────────── */
.neon-border-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.neon-border-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--cyan), var(--accent), var(--purple), var(--cyan));
  background-size: 300% 300%;
  animation: gradientFlow 4s ease infinite;
  z-index: 0;
  opacity: 0.5;
}
.neon-border-card > * { position: relative; z-index: 1; }

/* ── Price Cards ───────────────────────────────────────────── */
.plan-card {
  background: var(--glass);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: all 0.35s cubic-bezier(.16,1,.3,1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.plan-card:hover {
  transform: translateY(-6px) perspective(600px) rotateX(-2deg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 30px rgba(0,255,255,0.1);
  border-color: rgba(0,255,255,0.3);
}
.plan-card.selected {
  border-color: var(--cyan);
  background: rgba(0,255,255,0.05);
  box-shadow: 0 0 30px rgba(0,255,255,0.15);
}

/* ── Settings Item ─────────────────────────────────────────── */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: all 0.2s;
}
.settings-row:hover { padding-left: 4px; }

/* ── Toggle Switch ─────────────────────────────────────────── */
.toggle-switch {
  position: relative;
  width: 48px; height: 26px;
  display: block;
  cursor: pointer;
}
.toggle-switch input { opacity:0; width:0; height:0; position:absolute; }
.toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  background: rgba(255,255,255,0.1);
  transition: background 0.3s;
  display: flex; align-items: center;
  padding: 0 3px;
}
.toggle-switch input:checked + .toggle-track {
  background: linear-gradient(135deg, var(--cyan), var(--accent));
  box-shadow: 0 0 10px rgba(0,255,255,0.3);
}
.toggle-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.toggle-switch input:checked ~ .toggle-track .toggle-thumb { transform: translateX(22px); }

/* ── Bento Grid ────────────────────────────────────────────── */
@media (max-width:767px) {
  #bento-grid { grid-template-columns:repeat(2,1fr)!important; }
  #bento-grid > div[style*="grid-column:span 2"] { grid-column:span 2!important; }
}
@media (max-width:480px) {
  #bento-grid { grid-template-columns:1fr!important; }
  #bento-grid > div[style*="grid-column:span 2"] { grid-column:span 1!important; }
}
@media (min-width:768px) {
  #bento-grid > div { min-height:160px!important; }
  #bento-grid { align-items:stretch!important; }
}

/* ── Bento Grid Desktop — gleichmäßig ─────────────────────── */
#bento-grid { display:grid; gap:14px; }

/* ── Premium Section Fixes ─────────────────────────────────── */
#premium { z-index:1; isolation:isolate; }

/* ── Mobile Fixes ──────────────────────────────────────────── */
#landing-screen section { position:relative; z-index:1; clear:both; }
.cta-section * { position:relative; z-index:2; }
.cta-section .cta-glow,
.cta-section::before,
.cta-section::after { z-index:-1!important; position:absolute!important; }

@media (max-width:767px) {
  #premium { padding:60px 16px!important; }
  #id-check-section { padding:24px 16px!important; }
  .cta-section { padding:60px 20px 80px!important; }
  .cta-section h2 { font-size:clamp(28px,8vw,48px)!important; line-height:1.15!important; }
}
footer { position:relative!important; z-index:10!important; overflow:visible!important; }

/* ── Logged-In State ───────────────────────────────────────── */
body.is-logged-in .lp-register-btn,
body.is-logged-in #lp-nav-open-btn,
body.is-logged-in .lp-login-btn { display:none!important; }

/* ── Lockout Screen ────────────────────────────────────────── */
#lockout-overlay { font-family:var(--font-mono); }

/* ── Aurora Theme Override ─────────────────────────────────── */
[data-theme="aurora"] {
  --bg: #020208;
  --bg2: #050510;
  --accent: #7c6af7;
}
[data-theme="aurora"] .top-bar,
.aurora-theme .top-bar {
  background:rgba(0,0,0,0.85)!important;
  border-bottom:1px solid rgba(0,255,255,0.06)!important;
}
[data-theme="aurora"] .chat-top-bar {
  background:rgba(0,0,0,0.9)!important;
  border-bottom:1px solid rgba(0,255,255,0.05)!important;
}

/* ── Trust Bar Mobile ──────────────────────────────────────── */
@media (max-width:480px) { .trust-bar { gap:0; } }
.footer-links { flex-wrap:wrap!important; justify-content:center!important; gap:12px!important; }

/* ── Textarea Resize None ──────────────────────────────────── */
textarea { resize:vertical; }

/* ── Details/Summary (FAQ) ─────────────────────────────────── */
details summary { list-style:none; }
details summary::-webkit-details-marker { display:none; }
details[open] summary { color:var(--cyan); }

/* ── Landing Page overflow fix ─────────────────────────────── */
#landing-screen { overflow-x:hidden!important; max-width:100vw; }
#landing-screen * { max-width:100%; word-wrap:break-word; overflow-wrap:break-word; }
#landing-screen table { table-layout:fixed; width:100%; }

/* ── Misc Fixes ────────────────────────────────────────────── */
.modal-overlay { align-items:flex-end; }
a { color:inherit; }
button { font-family:var(--font); }
img { max-width:100%; }


/* V15 FIX: Emoji Picker nur sichtbar wenn explizit .show */
.emoji-picker {
  display: none !important;
  position: fixed;
  bottom: 70px;
  left: 20px;
  z-index: 9999;
  padding: 8px 12px;
  background: rgba(20, 10, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-radius: 14px;
  gap: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
.emoji-picker.show {
  display: inline-flex !important;
  animation: epFadeIn 0.2s ease-out;
}
.emoji-picker .ep-emoji {
  cursor: pointer;
  font-size: 22px;
  padding: 4px 6px;
  border-radius: 8px;
  transition: transform 0.15s, background 0.15s;
  user-select: none;
}
.emoji-picker .ep-emoji:hover {
  background: rgba(138, 43, 226, 0.15);
  transform: scale(1.2);
}
@keyframes epFadeIn {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}



/* ═══════════════════════════════════════════════════════
   V16 GLOBAL BUTTON-CLICK FIX
   Guarantee all buttons/interactive elements are clickable
   on rooms-screen, chat-screen, vault-screen and all modals
   ═══════════════════════════════════════════════════════ */
.screen.active {
  pointer-events: auto !important;
}
.screen.active button,
.screen.active [onclick],
.screen.active a,
.screen.active input,
.screen.active textarea,
.screen.active select,
.screen.active [role="button"] {
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}
/* Disable pointer-events on all decorative pseudo-elements */
.screen.active *::before,
.screen.active *::after {
  pointer-events: none !important;
}
/* BUT: keep pseudo-elements interactive when they are the actual interactive surface */
.screen.active button::before,
.screen.active button::after,
.screen.active [onclick]::before,
.screen.active [onclick]::after {
  pointer-events: none !important;  /* Decorative only */
}
/* Ensure invisible screens don't block */
.screen:not(.active) {
  pointer-events: none !important;
  display: none !important;
}
/* Override v11 auth-gate display:none conflict */
body.auth-ready .screen.active {
  display: block !important;
}
body.auth-ready #rooms-screen.screen.active {
  display: block !important;
}
@media (min-width: 900px) {
  body.auth-ready #rooms-screen.screen.active {
    display: grid !important;  /* Three-column override */
  }
}

/* Modals: super high z-index + always pointer-events */
.modal.active,
.modal.show {
  pointer-events: auto !important;
  z-index: 99999 !important;
}
.modal-backdrop {
  pointer-events: auto !important;
  z-index: 99998 !important;
}

/* FAB floating over rooms */
.fab {
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 100 !important;
}


/* ═══ V17 POLISH ═══ */

/* Hide welcome card on mobile (< 900px) */
@media (max-width: 899px) {
  #v16-welcome-card { display: none !important; }
}

@media (min-width: 900px) {
  /* Hide welcome card when chat is open (body has active chat class) */
  body.ec-chat-open #v16-welcome-card { display: none !important; }

  /* Better contact items */
  #rooms-screen.screen.active .room-item {
    padding: 14px 12px !important;
    border-radius: 14px !important;
    transition: background 0.18s cubic-bezier(.16,1,.3,1) !important;
  }
  #rooms-screen.screen.active .room-item:active {
    background: rgba(138,43,226,0.22) !important;
    transform: scale(0.98) !important;
  }

  /* Avatar in contact item */
  #rooms-screen.screen.active .room-item .room-icon,
  #rooms-screen.screen.active .room-item .avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    font-size: 20px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, rgba(138,43,226,0.2), rgba(0,209,255,0.15)) !important;
    border: 1px solid rgba(138,43,226,0.15) !important;
  }

  /* Contact name + sub */
  #rooms-screen.screen.active .room-item .room-name,
  #rooms-screen.screen.active .room-item > div:not(.room-icon):not(.avatar) {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  #rooms-screen.screen.active .room-item .room-name {
    color: #fff !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    letter-spacing: -0.2px !important;
    margin-bottom: 2px !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
  }
  #rooms-screen.screen.active .room-item .room-last,
  #rooms-screen.screen.active .room-item .room-sub {
    font-size: 12.5px !important;
    color: rgba(255,255,255,0.45) !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
  }

  /* Time on the right */
  #rooms-screen.screen.active .room-item .room-time {
    font-size: 11px !important;
    color: rgba(255,255,255,0.35) !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    font-variant-numeric: tabular-nums !important;
  }

  /* Searchable contacts header */
  #rooms-screen.screen.active .rooms-list::before {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-right: 50px !important; /* room for FAB */
  }

  /* Empty state when no rooms */
  #rooms-screen.screen.active .rooms-list:empty::after {
    content: 'Noch keine Chats. Klick auf + um einen zu starten.';
    display: block;
    padding: 40px 20px;
    text-align: center;
    color: rgba(255,255,255,0.35);
    font-size: 13px;
    line-height: 1.6;
  }

  /* Chat screen becomes column 3 of the grid when open */
  body.ec-chat-open #chat-screen.screen.active {
    position: absolute !important;
    top: 0 !important;
    left: 412px !important; /* sidebar 72 + contacts 340 */
    right: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    z-index: 50 !important;
  }

  /* Smaller back button on desktop — feels more native */
  body.ec-chat-open #chat-screen .chat-top-bar .back-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
  }
}

/* ═══ Scrollbar polish (WebKit + Firefox) ═══ */
#rooms-screen .rooms-list::-webkit-scrollbar { width: 6px; }
#rooms-screen .rooms-list::-webkit-scrollbar-track { background: transparent; }
#rooms-screen .rooms-list::-webkit-scrollbar-thumb {
  background: rgba(138,43,226,0.2);
  border-radius: 3px;
}
#rooms-screen .rooms-list::-webkit-scrollbar-thumb:hover {
  background: rgba(138,43,226,0.4);
}
#rooms-screen .rooms-list { scrollbar-width: thin; scrollbar-color: rgba(138,43,226,0.25) transparent; }

/* ═══ Focus rings für Accessibility ═══ */
.screen.active button:focus-visible,
.screen.active [onclick]:focus-visible,
.screen.active a:focus-visible {
  outline: 2px solid #00D1FF !important;
  outline-offset: 2px !important;
  border-radius: 10px !important;
}

/* ═══════════════════════════════════════════════════════════
   V16 "VARIATION 1" — Ultra-Minimalist Chat Redesign
   Only active on Desktop (>= 900px) — Mobile stays unchanged
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 900px) {

  /* Three-column grid on rooms-screen when active */
  #rooms-screen.screen.active {
    display: grid !important;
    grid-template-columns: 72px 340px 1fr;
    grid-template-rows: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
    background:
      radial-gradient(ellipse 60% 50% at 75% 30%, rgba(138,43,226,0.08), transparent 60%),
      radial-gradient(ellipse 50% 40% at 25% 75%, rgba(0,209,255,0.06), transparent 60%),
      #050509;
    overflow: hidden;
  }

  /* ─── Sidebar (Column 1) ─────────────────────────────── */
  #rooms-screen.screen.active .top-bar {
    grid-column: 1;
    grid-row: 1;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 20px 0 !important;
    gap: 18px !important;
    background: rgba(0,0,0,0.6) !important;
    border-right: 1px solid rgba(255,255,255,0.04) !important;
    border-bottom: none !important;
    min-height: auto !important;
    max-height: none !important;
  }
  #rooms-screen.screen.active .top-bar-title {
    display: none !important;  /* Logo moves up */
  }
  #rooms-screen.screen.active .top-bar > *:not(.top-bar-title) {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: center !important;
    flex: 1 !important;
    width: 100% !important;
  }
  /* Logo in sidebar */
  #rooms-screen.screen.active .top-bar::before {
    content: '🔐';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #8A2BE2, #00D1FF);
    font-size: 22px;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(138,43,226,0.4);
  }
  /* Stack user-badge + icon-btns vertically in sidebar */
  #rooms-screen.screen.active .user-badge {
    flex-direction: column !important;
    gap: 2px !important;
    padding: 6px 0 !important;
    background: transparent !important;
    border: none !important;
  }
  #rooms-screen.screen.active .user-badge span {
    display: none !important;  /* Hide name, just avatar */
  }
  #rooms-screen.screen.active .user-badge .avatar {
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
  }
  #rooms-screen.screen.active .icon-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    background: transparent !important;
    border: none !important;
    color: rgba(255,255,255,0.4) !important;
    font-size: 18px !important;
    transition: all 0.2s !important;
  }
  #rooms-screen.screen.active .icon-btn:hover {
    background: rgba(138,43,226,0.15) !important;
    color: #00D1FF !important;
    transform: translateY(-1px) !important;
    box-shadow: none !important;
  }
  /* Push logout to bottom */
  #rooms-screen.screen.active .top-bar .icon-btn[onclick*="logout"] {
    margin-top: auto !important;
  }

  /* ─── Contacts (Column 2) ────────────────────────────── */
  #rooms-screen.screen.active .rooms-list {
    grid-column: 2;
    grid-row: 1;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 24px 16px 100px !important;
    background: rgba(8,5,15,0.5) !important;
    border-right: 1px solid rgba(255,255,255,0.04) !important;
    position: relative !important;
  }
  #rooms-screen.screen.active .rooms-list::before {
    content: 'Contacts';
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    padding: 0 8px;
    letter-spacing: -0.5px;
  }
  #rooms-screen.screen.active .room-item {
    background: transparent !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 10px !important;
    margin-bottom: 2px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
  }
  #rooms-screen.screen.active .room-item:hover {
    background: rgba(138,43,226,0.08) !important;
  }
  #rooms-screen.screen.active .room-item.active,
  #rooms-screen.screen.active .room-item.selected {
    background: rgba(138,43,226,0.18) !important;
  }
  /* FAB as small gradient button in upper-right of contacts */
  #rooms-screen.screen.active .fab {
    position: absolute !important;
    top: 22px !important;
    right: 18px !important;
    bottom: auto !important;
    left: auto !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #8A2BE2, #00D1FF) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 20px rgba(138,43,226,0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    transition: transform 0.2s !important;
  }
  #rooms-screen.screen.active .fab:hover {
    transform: scale(1.08) rotate(90deg) !important;
  }

  /* ─── Welcome Card (Column 3) — floating QR card ───── */
  #rooms-screen.screen.active::after {
    content: '';
    grid-column: 3;
    grid-row: 1;
    /* Welcome area is filled by #v16-welcome-card via JS */
  }

  #v16-welcome-card {
    grid-column: 3;
    grid-row: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
  }
  #v16-welcome-card .v16-card {
    position: relative;
    max-width: 420px;
    width: 100%;
    padding: 36px 32px;
    background: rgba(20, 14, 35, 0.55);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 28px;
    box-shadow:
      0 30px 80px rgba(0,0,0,0.5),
      0 0 0 1px rgba(255,255,255,0.04),
      inset 0 1px 0 rgba(255,255,255,0.05);
    overflow: hidden;
    text-align: center;
    animation: v16CardIn 0.8s cubic-bezier(.16,1,.3,1);
  }
  /* Soft glow behind card */
  #v16-welcome-card .v16-card::before {
    content: '';
    position: absolute;
    inset: -40%;
    background:
      radial-gradient(circle at 30% 30%, rgba(138,43,226,0.25), transparent 50%),
      radial-gradient(circle at 70% 70%, rgba(0,209,255,0.2), transparent 50%);
    filter: blur(50px);
    z-index: -1;
    animation: v16Glow 8s ease-in-out infinite alternate;
  }
  @keyframes v16Glow {
    from { transform: rotate(0deg) scale(1); }
    to   { transform: rotate(40deg) scale(1.1); }
  }
  @keyframes v16CardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); filter: blur(10px); }
    to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  }

  #v16-welcome-card .v16-qr-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 24px;
    padding: 14px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.08);
    overflow: hidden;
  }
  #v16-welcome-card .v16-qr-wrap canvas,
  #v16-welcome-card .v16-qr-wrap svg,
  #v16-welcome-card .v16-qr-wrap img {
    width: 100% !important;
    height: 100% !important;
    display: block;
  }
  /* 3D particle canvas behind QR */
  #v16-welcome-card .v16-3d-bg {
    position: absolute;
    inset: -20px;
    z-index: -1;
    border-radius: 28px;
    pointer-events: none;
  }

  #v16-welcome-card .v16-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
    margin: 0 0 6px;
  }
  #v16-welcome-card .v16-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    line-height: 1.55;
    margin: 0 0 20px;
    font-weight: 400;
  }
  #v16-welcome-card .v16-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(138,43,226,0.12);
    border: 1px solid rgba(138,43,226,0.3);
    color: #00D1FF;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
  }
  #v16-welcome-card .v16-download-btn:hover {
    background: rgba(138,43,226,0.2);
    border-color: rgba(0,209,255,0.4);
    transform: translateY(-1px);
  }

  #v16-welcome-card .v16-lang-row {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
  }
  #v16-welcome-card .v16-lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
  }
  #v16-welcome-card .v16-lang-pill:hover {
    background: rgba(138,43,226,0.1);
    border-color: rgba(138,43,226,0.3);
  }

  /* ─── CHAT SCREEN: center + max-width on Desktop ────── */
  #chat-screen.screen.active {
    max-width: 1100px !important;
    margin: 0 auto !important;
    background: rgba(10, 6, 20, 0.4) !important;
    border-left: 1px solid rgba(255,255,255,0.04) !important;
    border-right: 1px solid rgba(255,255,255,0.04) !important;
    box-shadow: 0 0 80px rgba(0,0,0,0.5) !important;
  }

  /* Ensure ALL buttons in rooms-screen click (master pointer-events fix) */
  #rooms-screen.screen.active button,
  #rooms-screen.screen.active [onclick],
  #rooms-screen.screen.active .icon-btn,
  #rooms-screen.screen.active .fab,
  #rooms-screen.screen.active .room-item,
  #rooms-screen.screen.active .user-badge {
    pointer-events: auto !important;
    position: relative;
    z-index: 2;
  }
}

/* Cleaner message bubbles on all screen sizes */
.chat-msg-card,
.message-bubble {
  transition: transform 0.15s;
}
.chat-msg-card:hover,
.message-bubble:hover {
  transform: translateY(-1px);
}

body:not(.auth-ready) #splash.ec-auth-landing {
  background:
    radial-gradient(circle at 50% 34%, rgba(138, 43, 226, 0.16), transparent 31%),
    radial-gradient(circle at 82% 15%, rgba(0, 209, 255, 0.1), transparent 25%),
    radial-gradient(circle at 10% 82%, rgba(124, 106, 247, 0.1), transparent 30%),
    linear-gradient(180deg, #03040a 0%, #060814 52%, #03040a 100%);
}

#splash.ec-auth-landing::before,
#splash.ec-auth-landing::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#splash.ec-auth-landing::before {
  background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px),
    radial-gradient(circle at 52% 78%, rgba(139, 92, 246, 0.18), transparent 28%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  opacity: 0.28;
}

#splash.ec-auth-landing::after {
  background-image:
    radial-gradient(circle at 18% 20%, rgba(0, 209, 255, 0.85) 0 1px, transparent 1.8px),
    radial-gradient(circle at 54% 15%, rgba(147, 51, 234, 0.8) 0 1px, transparent 1.7px),
    radial-gradient(circle at 72% 36%, rgba(255,255,255,0.62) 0 0.8px, transparent 1.6px);
  background-size: 320px 240px, 260px 220px, 420px 260px;
  opacity: 0.34;
}

#splash.ec-auth-landing #splash-back-nav {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 6;
}

#splash.ec-auth-landing .ec-auth-marketing,
#splash.ec-auth-landing .ec-auth-visual {
  display: none;
}

#splash.ec-auth-landing .ec-auth-card {
  width: min(100%, 360px);
  display: grid;
  gap: 16px;
  text-align: center;
}

#splash.ec-auth-landing .ec-auth-desktop-shell {
  box-sizing: border-box;
}

#splash.ec-auth-landing .ec-auth-card-brand {
  display: grid;
  justify-items: center;
  gap: 8px;
}

/* §NAV-LOGO-HOME-2026-09-06: Die Brand-Zeile im Splash ist ein Home-Link zur
   Startseite (onclick="return ecGoHome()"). Rein visuelles Affordance-Feedback —
   Cursor, dezenter Hover-Lift und ein sichtbarer Fokusring fuer Tastaturnutzer.
   Layout (Flex, Groessen, Gradient-Text) bleibt unveraendert. */
#splash.ec-auth-landing .ec-auth-brand-row[role="button"] {
  cursor: pointer;
  border-radius: 18px;
  transition: transform .2s, opacity .2s;
}
#splash.ec-auth-landing .ec-auth-brand-row[role="button"]:hover {
  transform: translateY(-1px);
  opacity: .9;
}
#splash.ec-auth-landing .ec-auth-brand-row[role="button"]:focus-visible {
  outline: 2px solid rgba(45, 220, 255, 0.65);
  outline-offset: 6px;
}
@media (prefers-reduced-motion: reduce) {
  #splash.ec-auth-landing .ec-auth-brand-row[role="button"] {
    transition: none;
  }
  #splash.ec-auth-landing .ec-auth-brand-row[role="button"]:hover {
    transform: none;
  }
}

#splash.ec-auth-landing .ec-auth-card-icon,
#splash.ec-auth-landing .ec-auth-logo-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(147,51,234,0.22), rgba(34,211,238,0.12));
  border: 1px solid rgba(124,106,247,0.3);
  box-shadow: 0 8px 32px rgba(147,51,234,0.2);
  font-size: 36px;
}

#splash.ec-auth-landing .ec-auth-card h2,
#splash.ec-auth-landing .ec-auth-brand-name {
  margin: 0;
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg,#9333ea,#22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#splash.ec-auth-landing .ec-auth-card p {
  margin: 0;
  color: var(--text2);
  font-size: 13px;
}

#splash.ec-auth-landing .ec-auth-card-divider {
  display: none;
}

#splash.ec-auth-landing .ec-auth-actions {
  display: grid;
  gap: 12px;
}

#splash.ec-auth-landing .ec-auth-primary-action,
#splash.ec-auth-landing .ec-auth-secondary-action {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

#splash.ec-auth-landing .ec-auth-primary-action {
  border: 0;
  background: linear-gradient(135deg,#9333ea,#7c6af7);
  color: #fff;
  box-shadow: 0 8px 24px rgba(147,51,234,0.35);
}

#splash.ec-auth-landing .ec-auth-secondary-action {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

#splash.ec-auth-landing .ec-auth-primary-action b,
#splash.ec-auth-landing .ec-auth-secondary-action b {
  margin-left: auto;
  font-size: 22px;
  line-height: 1;
}

#splash.ec-auth-landing .ec-auth-lang-wrap {
  display: flex;
  justify-content: center;
}

#splash.ec-auth-landing .ec-auth-privacy {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  margin-top: 2px;
  padding: 14px;
  text-align: left;
  border: 1px solid rgba(0,209,255,0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.026);
}

#splash.ec-auth-landing .ec-auth-privacy > span,
#splash.ec-auth-landing .ec-auth-trust > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #4fd8ff;
  border: 1px solid rgba(79,216,255,0.34);
  background: rgba(0,209,255,0.08);
}

#splash.ec-auth-landing .ec-auth-privacy strong,
#splash.ec-auth-landing .ec-auth-trust strong {
  display: block;
  color: #f5f8ff;
  font-size: 12px;
  line-height: 1.35;
}

#splash.ec-auth-landing .ec-auth-privacy small,
#splash.ec-auth-landing .ec-auth-trust small {
  display: block;
  margin-top: 3px;
  color: rgba(202,213,238,0.68);
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 899px) {
  #splash.ec-auth-landing .ec-auth-desktop-shell {
    padding: 80px 28px 48px !important;
  }

  #splash.ec-auth-landing .ec-auth-marketing {
    order: 2;
    width: min(100%, 340px);
    display: block;
    margin-top: 16px;
  }

  #splash.ec-auth-landing .ec-auth-marketing .ec-auth-brand-row,
  #splash.ec-auth-landing .ec-auth-copy,
  #splash.ec-auth-landing .ec-auth-trust,
  #splash.ec-auth-landing .ec-auth-footer {
    display: none;
  }

  #splash.ec-auth-landing .ec-auth-badge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  #splash.ec-auth-landing .ec-auth-badge {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(46,204,113,0.18);
    border-radius: 14px;
    background: rgba(46,204,113,0.06);
  }

  #splash.ec-auth-landing .ec-auth-badge > span {
    font-size: 20px;
  }

  #splash.ec-auth-landing .ec-auth-badge strong {
    display: block;
    color: #4ade80;
    font-family: monospace;
    font-size: 11px;
    line-height: 1.15;
  }

  #splash.ec-auth-landing .ec-auth-badge small {
    display: block;
    color: var(--text2);
    font-size: 10px;
    line-height: 1.2;
  }
}

@media (min-width: 900px) {
  #splash.ec-auth-landing {
    overflow: hidden !important;
  }

  #splash.ec-auth-landing #splash-back-nav {
    display: none !important;
  }

  #splash.ec-auth-landing .ec-auth-desktop-shell {
    min-height: 100dvh !important;
    width: min(100%, 1920px) !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: minmax(310px, 0.9fr) minmax(390px, 0.86fr) minmax(330px, 0.8fr) !important;
    align-items: center !important;
    gap: clamp(22px, 3.1vw, 64px) !important;
    padding: clamp(28px, 5vw, 72px) clamp(36px, 6vw, 92px) !important;
    overflow: hidden !important;
  }

  #splash.ec-auth-landing .ec-auth-marketing,
  #splash.ec-auth-landing .ec-auth-visual {
    display: grid;
  }

  #splash.ec-auth-landing .ec-auth-marketing {
    grid-column: 1;
    min-width: 0;
    min-height: min(640px, calc(100dvh - 96px));
    align-content: space-between;
    gap: clamp(24px, 4vh, 48px);
  }

  #splash.ec-auth-landing .ec-auth-brand-row {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  #splash.ec-auth-landing .ec-auth-logo-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 26px;
    margin: 0;
    overflow: hidden;
    box-shadow: 0 0 32px rgba(147,51,234,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
  }

  #splash.ec-auth-landing .ec-auth-logo-mark img,
  #splash.ec-auth-landing .ec-auth-card-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
  }

  #splash.ec-auth-landing .ec-auth-brand-name {
    font-size: clamp(20px, 1.7vw, 28px);
    letter-spacing: -0.05em;
  }

  #splash.ec-auth-landing .ec-auth-copy h1 {
    margin: 0;
    color: #f7f9ff;
    font-family: 'Syne', sans-serif;
    font-size: clamp(35px, 4.1vw, 64px);
    line-height: 1.03;
    font-weight: 850;
    letter-spacing: -0.06em;
  }

  #splash.ec-auth-landing .ec-auth-copy h1 span {
    background: linear-gradient(90deg, #9b4dff 0%, #32d6ff 92%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  #splash.ec-auth-landing .ec-auth-copy p {
    margin: 18px 0 0;
    color: rgba(230,238,255,0.78);
    font-size: clamp(15px, 1.25vw, 20px);
    line-height: 1.5;
  }

  #splash.ec-auth-landing .ec-auth-badge-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  #splash.ec-auth-landing .ec-auth-badge {
    min-height: 72px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(61, 239, 197, 0.13);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(13, 18, 36, 0.74), rgba(5, 18, 29, 0.5));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 16px 34px rgba(0,0,0,0.18);
    backdrop-filter: blur(16px) saturate(1.18);
    -webkit-backdrop-filter: blur(16px) saturate(1.18);
  }

  #splash.ec-auth-landing .ec-auth-badge > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #56e9ff;
    font-size: 23px;
  }

  #splash.ec-auth-landing .ec-auth-badge strong {
    display: block;
    color: #39f6bd;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.2;
  }

  #splash.ec-auth-landing .ec-auth-badge small {
    display: block;
    margin-top: 4px;
    color: rgba(210,221,244,0.62);
    font-size: 10px;
    line-height: 1.25;
  }

  #splash.ec-auth-landing .ec-auth-trust {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
  }

  #splash.ec-auth-landing .ec-auth-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(208,219,242,0.56);
    font-size: 12px;
    flex-wrap: wrap;
  }

  #splash.ec-auth-landing .ec-auth-footer b {
    color: #35d7ff;
  }

  /* Inline legal links + dot separators in splash/login auth footer */
  .ec-auth-footer .ec-auth-foot-link,
  .ec-login-desktop-footer .ec-auth-foot-link {
    color: rgba(208,219,242,0.72);
    text-decoration: none;
    cursor: pointer;
    transition: color .2s ease;
  }
  .ec-auth-footer .ec-auth-foot-link:hover,
  .ec-login-desktop-footer .ec-auth-foot-link:hover {
    color: #35d7ff;
  }
  .ec-auth-footer .ec-auth-foot-dot,
  .ec-login-desktop-footer .ec-auth-foot-dot {
    color: rgba(208,219,242,0.28);
  }
  .ec-login-desktop-footer {
    flex-wrap: wrap;
    gap: 10px;
  }
  @media (max-width: 720px) {
    .ec-auth-footer,
    .ec-login-desktop-footer,
    .ec-reg-desktop-footer {
      justify-content: center;
      text-align: center;
      row-gap: 6px;
    }
  }

  #splash.ec-auth-landing .ec-auth-visual {
    grid-column: 3;
    grid-row: 1;
    position: relative;
    min-height: clamp(380px, 54vh, 650px);
    place-items: center;
    justify-self: center;
    width: min(100%, clamp(300px, 28vw, 520px));
    filter: drop-shadow(0 0 46px rgba(151, 58, 255, 0.35)) drop-shadow(0 0 30px rgba(0, 209, 255, 0.16));
  }

  #splash.ec-auth-landing .ec-auth-shield-img {
    width: min(100%, clamp(300px, 30vw, 560px));
    height: auto;
    display: block;
    /* §AUTH-POLISH-2026-07-22: border-radius raus + Alpha-Maske — freies
       Schweben statt Bild-Karte (einheitlich mit Login/Register-Hero). */
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 58%, rgba(0, 0, 0, 0) 86%);
    mask-image: radial-gradient(ellipse at center, #000 58%, rgba(0, 0, 0, 0) 86%);
  }

  #splash.ec-auth-landing .ec-auth-orb {
    display: none;
    position: relative;
    width: clamp(300px, 28vw, 500px);
    aspect-ratio: 1;
    place-items: center;
    border-radius: 999px;
    background:
      radial-gradient(circle at 46% 48%, rgba(255,255,255,0.05), transparent 30%),
      radial-gradient(circle at 31% 33%, rgba(0,209,255,0.56), transparent 16%),
      radial-gradient(circle at 68% 34%, rgba(190,59,255,0.66), transparent 26%),
      radial-gradient(circle at 50% 52%, rgba(124,22,190,0.42), transparent 48%),
      radial-gradient(circle, rgba(2,8,23,0.12), rgba(6,8,18,0.02) 66%, transparent 67%);
    border: 1px solid rgba(164, 92, 255, 0.44);
    box-shadow:
      0 0 56px rgba(151, 58, 255, 0.48),
      0 0 74px rgba(0, 209, 255, 0.22),
      inset 0 0 42px rgba(0, 209, 255, 0.2),
      inset 0 0 70px rgba(183, 43, 255, 0.24);
  }

  #splash.ec-auth-landing .ec-auth-orb::before,
  #splash.ec-auth-landing .ec-auth-orb::after {
    content: '';
    position: absolute;
    inset: 7%;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,0.11);
    background:
      linear-gradient(115deg, transparent 0 44%, rgba(255,255,255,0.2) 45%, transparent 46% 100%),
      repeating-radial-gradient(circle at 50% 52%, rgba(255,255,255,0.11) 0 1px, transparent 1px 18px);
    opacity: 0.44;
    mix-blend-mode: screen;
  }

  #splash.ec-auth-landing .ec-auth-orb::after {
    inset: 19%;
    border-color: rgba(195, 84, 255, 0.5);
    background: transparent;
    box-shadow: 0 0 46px rgba(190, 59, 255, 0.46);
  }

  #splash.ec-auth-landing .ec-auth-lock {
    position: relative;
    z-index: 2;
    width: clamp(96px, 8.2vw, 146px);
    height: clamp(96px, 8.2vw, 146px);
    display: grid;
    place-items: center;
    border-radius: 26px;
    border: 2px solid rgba(193, 103, 255, 0.86);
    background: rgba(12, 16, 42, 0.52);
    color: #f7fbff;
    font-size: clamp(48px, 4.4vw, 78px);
    box-shadow:
      0 0 34px rgba(194, 74, 255, 0.68),
      0 0 52px rgba(0, 209, 255, 0.32),
      inset 0 1px 0 rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  #splash.ec-auth-landing .ec-auth-platform {
    display: none;
    position: absolute;
    left: 50%;
    bottom: clamp(20px, 5vh, 72px);
    width: clamp(250px, 26vw, 470px);
    height: clamp(66px, 7vh, 105px);
    transform: translateX(-50%) perspective(550px) rotateX(72deg);
    border-radius: 999px;
    background:
      radial-gradient(ellipse at center, rgba(226, 71, 255, 0.58), transparent 34%),
      repeating-radial-gradient(ellipse at center, rgba(210, 70, 255, 0.5) 0 2px, transparent 3px 18px);
    filter: blur(0.1px);
    box-shadow: 0 0 48px rgba(207, 60, 255, 0.48), 0 0 34px rgba(0, 209, 255, 0.2);
  }

  #splash.ec-auth-landing .ec-auth-card {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    width: min(100%, clamp(390px, 29vw, 520px));
    min-height: clamp(500px, 62vh, 650px);
    justify-self: center;
    align-content: center;
    gap: clamp(18px, 2.4vh, 30px);
    padding: clamp(36px, 4.2vw, 66px) clamp(34px, 4vw, 60px);
    border: 1px solid rgba(58, 217, 255, 0.32);
    border-radius: 28px;
    background:
      radial-gradient(circle at 0% 0%, rgba(147,51,234,0.28), transparent 39%),
      radial-gradient(circle at 100% 100%, rgba(0,209,255,0.24), transparent 34%),
      linear-gradient(145deg, rgba(20, 15, 45, 0.78), rgba(4, 14, 26, 0.86));
    box-shadow:
      0 30px 90px rgba(0,0,0,0.52),
      inset 0 1px 0 rgba(255,255,255,0.08),
      0 0 0 1px rgba(255,255,255,0.03),
      0 0 48px rgba(0,209,255,0.12);
    backdrop-filter: blur(28px) saturate(1.35);
    -webkit-backdrop-filter: blur(28px) saturate(1.35);
    overflow: hidden;
  }

  #splash.ec-auth-landing .ec-auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(147,51,234,0.58), rgba(0,209,255,0.48), rgba(255,255,255,0.06));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
  }

  #splash.ec-auth-landing .ec-auth-card-brand {
    position: relative;
    z-index: 1;
  }

  #splash.ec-auth-landing .ec-auth-card-icon {
    width: 78px;
    height: 78px;
    border-radius: 18px;
    font-size: 38px;
    overflow: hidden;
    box-shadow: 0 0 32px rgba(0,209,255,0.18), 0 18px 42px rgba(0,0,0,0.28);
  }

  #splash.ec-auth-landing .ec-auth-card h2 {
    font-size: clamp(32px, 2.7vw, 44px);
  }

  #splash.ec-auth-landing .ec-auth-card p {
    color: rgba(226,235,255,0.72);
    font-size: 14px;
  }

  #splash.ec-auth-landing .ec-auth-card-divider {
    position: relative;
    z-index: 1;
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(151, 166, 255, 0.22), rgba(0,209,255,0.36), rgba(151,166,255,0.22), transparent);
  }

  #splash.ec-auth-landing .ec-auth-actions,
  #splash.ec-auth-landing .ec-auth-lang-wrap,
  #splash.ec-auth-landing .ec-auth-privacy {
    position: relative;
    z-index: 1;
  }

  #splash.ec-auth-landing .ec-auth-primary-action,
  #splash.ec-auth-landing .ec-auth-secondary-action {
    min-height: 62px;
    justify-content: flex-start;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 14px;
  }

  #splash.ec-auth-landing .ec-auth-primary-action {
    background: linear-gradient(100deg, #9737ff 0%, #7367ff 52%, #18caff 100%);
    box-shadow: 0 18px 44px rgba(88, 73, 255, 0.36), 0 0 30px rgba(0,209,255,0.16);
  }

  #splash.ec-auth-landing .ec-auth-secondary-action {
    border-color: rgba(141, 156, 255, 0.2);
    background: rgba(7, 10, 23, 0.48);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
  }

  #splash.ec-auth-landing .ec-auth-primary-action:hover,
  #splash.ec-auth-landing .ec-auth-secondary-action:hover {
    transform: translateY(-2px);
  }

  #splash.ec-auth-landing .ec-auth-lang-wrap {
    margin-top: 0 !important;
  }

  #splash.ec-auth-landing .ec-auth-lang-btn {
    min-width: 142px !important;
    min-height: 44px !important;
    border-radius: 14px !important;
    background: rgba(5, 9, 22, 0.52) !important;
    border-color: rgba(138, 154, 255, 0.18) !important;
    color: rgba(239,244,255,0.82) !important;
    backdrop-filter: blur(12px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(12px) saturate(1.2) !important;
  }

  #splash.ec-auth-landing .ec-auth-privacy {
    margin-top: 4px;
    padding-top: 22px;
    border-width: 1px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
    background: transparent;
  }
}

@media (min-width: 900px) and (max-width: 1480px) {
  #splash.ec-auth-landing .ec-auth-desktop-shell {
    grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 0.86fr) minmax(280px, 0.74fr) !important;
    gap: clamp(18px, 2vw, 34px) !important;
    padding-left: clamp(28px, 4vw, 52px) !important;
    padding-right: clamp(28px, 4vw, 52px) !important;
  }

  #splash.ec-auth-landing .ec-auth-card {
    min-height: clamp(470px, 60vh, 590px);
  }

  #splash.ec-auth-landing .ec-auth-visual {
    width: min(100%, clamp(280px, 27vw, 400px));
  }

  #splash.ec-auth-landing .ec-auth-badge-grid {
    gap: 12px;
  }
}

@media (min-width: 900px) and (max-height: 820px) {
  #splash.ec-auth-landing .ec-auth-desktop-shell {
    padding-top: 26px !important;
    padding-bottom: 26px !important;
  }

  #splash.ec-auth-landing .ec-auth-marketing {
    min-height: min(600px, calc(100dvh - 52px));
    gap: 16px;
  }

  #splash.ec-auth-landing .ec-auth-copy h1 {
    font-size: clamp(30px, 3.4vw, 48px);
  }

  #splash.ec-auth-landing .ec-auth-badge-grid {
    gap: 10px;
  }

  #splash.ec-auth-landing .ec-auth-badge {
    min-height: 58px;
    padding: 10px 12px;
    gap: 10px;
  }

  #splash.ec-auth-landing .ec-auth-card {
    min-height: 0;
    gap: 14px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  #splash.ec-auth-landing .ec-auth-card-icon {
    width: 62px;
    height: 62px;
    font-size: 30px;
  }

  #splash.ec-auth-landing .ec-auth-card h2 {
    font-size: clamp(28px, 2.5vw, 36px);
  }

  #splash.ec-auth-landing .ec-auth-primary-action,
  #splash.ec-auth-landing .ec-auth-secondary-action {
    min-height: 54px;
  }

  #splash.ec-auth-landing .ec-auth-privacy {
    padding-top: 14px;
  }

  #splash.ec-auth-landing .ec-auth-visual {
    min-height: calc(100dvh - 60px);
  }
}

/* ── Premium Auth Screens ──────────────────────────────────── */
#login-screen.active,
#setup-new.active,
#setup-join.active,
#recovery-screen.active,
#pin-screen.active {
  display: flex !important;
  flex-direction: column;
}

.auth-screen {
  position: fixed;
  inset: 0;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 12%, rgba(0,209,255,0.14), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(147,51,234,0.18), transparent 24%),
    radial-gradient(circle at 50% 120%, rgba(124,106,247,0.12), transparent 38%),
    linear-gradient(180deg, #04060d 0%, #070913 52%, #04050b 100%);
}

.auth-screen::before,
.auth-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-screen::before {
  background:
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.015) 48%, transparent 50%, transparent 100%),
    linear-gradient(180deg, rgba(0,209,255,0.035), transparent 26%, transparent 74%, rgba(147,51,234,0.03));
  opacity: 0.85;
}

.auth-screen::after {
  background-image:
    radial-gradient(circle at center, rgba(255,255,255,0.95) 0.7px, transparent 1px),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 3px,
      rgba(0,209,255,0.03) 3px,
      rgba(0,209,255,0.03) 4px
    );
  background-size: 26px 26px, 100% 4px;
  background-position: 0 0, 0 0;
  opacity: 0.1;
  animation: authDustDrift 24s linear infinite;
}

.auth-screen > * {
  position: relative;
  z-index: 1;
}

.auth-topbar {
  position: sticky !important;
  top: 0;
  z-index: 5;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(5,7,14,0.9), rgba(5,7,14,0.72)) !important;
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border-bottom: 1px solid rgba(120,135,255,0.12) !important;
}

.auth-topbar--minimal {
  justify-content: flex-start;
}

.auth-topbar-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.auth-topbar-title {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.auth-topbar-subtitle {
  font-size: 11px;
  color: rgba(221,228,255,0.62) !important;
}

.auth-back-btn,
.auth-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(135,152,255,0.18) !important;
  background: rgba(10,15,28,0.64) !important;
  color: #eef4ff !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 10px 30px rgba(0,0,0,0.28);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-back-btn:hover,
.auth-back-link:hover {
  border-color: rgba(0,209,255,0.44) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(0,209,255,0.12),
    0 14px 34px rgba(0,0,0,0.34),
    0 0 22px rgba(0,209,255,0.12);
  transform: translateY(-1px);
}

.auth-shell {
  width: 100%;
  box-sizing: border-box;
}

.auth-shell--center {
  align-items: center !important;
}

.auth-screen--login .auth-shell,
.auth-screen--join .auth-shell,
.auth-screen--recovery .auth-shell {
  justify-content: center;
}

.auth-panel,
.auth-screen--signup .auth-shell,
.auth-screen--join .auth-shell {
  position: relative;
  width: min(100%, 560px) !important;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(11,15,28,0.86), rgba(7,10,20,0.82)),
    rgba(7,11,19,0.72);
  border: 1px solid rgba(123,136,255,0.16);
  backdrop-filter: blur(24px) saturate(1.28);
  -webkit-backdrop-filter: blur(24px) saturate(1.28);
  box-shadow:
    0 22px 60px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 0 0 1px rgba(255,255,255,0.015);
  overflow: hidden;
}

.auth-panel::before,
.auth-screen--signup .auth-shell::before,
.auth-screen--join .auth-shell::before,
.auth-pin-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,209,255,0.18), rgba(147,51,234,0.16), rgba(255,255,255,0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.auth-panel::after,
.auth-screen--signup .auth-shell::after,
.auth-screen--join .auth-shell::after,
.auth-pin-panel::after {
  content: '';
  position: absolute;
  inset: -35% auto auto 56%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,209,255,0.16), transparent 72%);
  filter: blur(16px);
  pointer-events: none;
  opacity: 0.65;
}

.auth-panel--login {
  width: min(100%, 480px) !important;
  max-width: 480px !important;
}

.auth-panel--recovery,
.auth-screen--join .auth-shell {
  width: min(100%, 520px) !important;
  max-width: 520px !important;
}

.auth-screen--signup .auth-shell {
  width: min(100%, 680px) !important;
  max-width: 680px !important;
}

.auth-hero {
  padding: 6px 0 12px !important;
  text-align: center;
}

.auth-hero--small {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.auth-hero-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(0,209,255,0.12), rgba(147,51,234,0.14));
  border: 1px solid rgba(136,151,255,0.16);
  box-shadow:
    0 20px 44px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 24px rgba(124,106,247,0.16);
}

.auth-hero-title,
.setup-title {
  font-size: clamp(24px, 4vw, 30px) !important;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #f4f8ff;
}

.auth-hero-subtitle,
.setup-desc {
  max-width: 42ch;
  margin: 0 auto;
  font-size: 14px !important;
  line-height: 1.65;
  color: rgba(214,221,243,0.68) !important;
}

.auth-screen .input-group {
  gap: 10px;
}

.auth-screen label {
  color: rgba(224,231,255,0.7) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
}

.auth-screen input[type="text"],
.auth-screen input[type="password"],
.auth-screen input[type="number"],
.auth-screen input[type="email"],
.auth-screen textarea,
.auth-screen select {
  min-height: 52px;
  background: rgba(6,11,22,0.72) !important;
  border: 1px solid rgba(128,146,255,0.16) !important;
  border-radius: 16px !important;
  color: #f3f7ff !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    inset 0 0 0 1px rgba(255,255,255,0.01);
}

.auth-screen input::placeholder,
.auth-screen textarea::placeholder {
  color: rgba(186,197,222,0.42);
}

.auth-screen input[type="text"]:hover,
.auth-screen input[type="password"]:hover,
.auth-screen input[type="number"]:hover,
.auth-screen input[type="email"]:hover,
.auth-screen textarea:hover,
.auth-screen select:hover {
  border-color: rgba(0,209,255,0.24) !important;
}

.auth-screen input[type="text"]:focus,
.auth-screen input[type="password"]:focus,
.auth-screen input[type="number"]:focus,
.auth-screen input[type="email"]:focus,
.auth-screen textarea:focus,
.auth-screen select:focus {
  border-color: rgba(0,209,255,0.46) !important;
  background: rgba(8,14,28,0.84) !important;
  box-shadow:
    0 0 0 3px rgba(0,209,255,0.09),
    0 0 0 1px rgba(0,209,255,0.16),
    inset 0 1px 0 rgba(255,255,255,0.035) !important;
}

.auth-screen input[type="checkbox"] {
  accent-color: var(--accent);
}

.auth-screen .input-with-gen {
  align-items: stretch;
  gap: 10px;
}

.auth-screen .gen-btn,
.auth-chip-btn {
  border-radius: 14px !important;
  border: 1px solid rgba(132,148,255,0.18) !important;
  background: rgba(255,255,255,0.045) !important;
  color: rgba(231,238,255,0.84) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.auth-screen .gen-btn:hover,
.auth-chip-btn:hover {
  border-color: rgba(0,209,255,0.34) !important;
  color: #f8fbff !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 1px rgba(0,209,255,0.08),
    0 12px 26px rgba(0,0,0,0.2);
}

.auth-chip-btn {
  min-height: auto !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.auth-primary-btn,
.auth-screen .btn.auth-btn:not(.secondary) {
  width: 100%;
  max-width: none !important;
  min-height: 54px;
  border-radius: 16px !important;
  border: 1px solid rgba(160,170,255,0.12) !important;
  background:
    linear-gradient(135deg, #13c8ff 0%, #7c6af7 46%, #8f38ec 100%) !important;
  color: #fff !important;
  box-shadow:
    0 18px 36px rgba(50,22,110,0.35),
    0 0 0 1px rgba(255,255,255,0.04) !important;
  letter-spacing: 0.01em;
}

.auth-primary-btn:hover,
.auth-screen .btn.auth-btn:not(.secondary):hover {
  box-shadow:
    0 24px 44px rgba(50,22,110,0.4),
    0 0 28px rgba(0,209,255,0.18),
    0 0 0 1px rgba(255,255,255,0.06) !important;
}

.auth-primary-btn:disabled,
#btn-create-acc:disabled {
  opacity: 0.48 !important;
  filter: saturate(0.7);
  box-shadow: none !important;
}

.auth-secondary-btn,
.auth-screen .btn.secondary.auth-btn,
.auth-pin-action {
  width: 100%;
  max-width: none !important;
  min-height: 52px;
  border-radius: 16px !important;
  border: 1px solid rgba(128,146,255,0.16) !important;
  background: rgba(255,255,255,0.04) !important;
  color: #eef3ff !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 14px 28px rgba(0,0,0,0.16);
}

.auth-secondary-btn:hover,
.auth-screen .btn.secondary.auth-btn:hover,
.auth-pin-action:hover {
  border-color: rgba(0,209,255,0.3) !important;
  background: rgba(0,209,255,0.06) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 16px 32px rgba(0,0,0,0.22),
    0 0 20px rgba(0,209,255,0.08);
}

.auth-pin-action {
  border-radius: 999px !important;
  font-family: var(--font-mono);
}

.auth-pin-action--danger {
  color: rgba(255,122,148,0.94) !important;
}

.auth-security-card,
.auth-captcha-card,
.auth-consent-card,
.auth-alert-card {
  position: relative;
  border-radius: 20px !important;
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(1.16);
  -webkit-backdrop-filter: blur(14px) saturate(1.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 12px 28px rgba(0,0,0,0.16);
}

.auth-security-card {
  background: linear-gradient(135deg, rgba(12,30,34,0.56), rgba(10,16,30,0.76)) !important;
  border: 1px solid rgba(0,255,170,0.16) !important;
}

.auth-captcha-card {
  background: linear-gradient(135deg, rgba(13,20,42,0.72), rgba(9,13,26,0.82)) !important;
  border: 1px solid rgba(123,136,255,0.18) !important;
}

.auth-captcha-title {
  color: #7fe9ff !important;
  letter-spacing: 0.12em !important;
}

#captcha-img-login,
#captcha-img-reg {
  width: 100%;
  max-width: min(280px, 100%);
  min-height: clamp(72px, 18vw, 96px);
  border: 1px solid rgba(133,150,255,0.16);
  border-radius: 16px !important;
  background:
    linear-gradient(135deg, rgba(0,209,255,0.08), rgba(147,51,234,0.08)),
    #0a0e1b !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  object-fit: contain;
}

#captcha-hint-login,
#captcha-hint-reg,
.auth-helper-row {
  color: rgba(197,206,228,0.6) !important;
  line-height: 1.6;
}

#login-screen > div:last-child,
#setup-new > div:last-child {
  min-height: 0;
}

#login-screen > div:last-child {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
}

#setup-new > div:last-child {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
}

#login-screen #btn-login,
#setup-new #btn-create-acc {
  margin-top: 6px;
}

#login-screen #captcha-answer-login,
#setup-new #captcha-answer-reg {
  min-height: 44px;
}

#setup-new #agb-consent + label,
#setup-new #datenschutz-consent + label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.auth-password-feedback {
  display: grid;
  gap: 8px;
  margin-top: -4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(11,16,30,0.7), rgba(8,11,22,0.82));
  border: 1px solid rgba(123,136,255,0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 10px 24px rgba(0,0,0,0.14);
}

.auth-password-rule,
.auth-password-note,
.auth-password-weak {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
}

.auth-password-rule {
  color: rgba(203,212,235,0.68);
}

.auth-password-rule::before,
.auth-password-note::before,
.auth-password-weak::before {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.auth-password-rule::before {
  content: '-';
  color: rgba(203,212,235,0.78);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.auth-password-rule.is-ok {
  color: #b7f7de;
}

.auth-password-rule.is-ok::before {
  content: 'v';
  color: #83f0c7;
  background: rgba(74,222,128,0.14);
  border: 1px solid rgba(74,222,128,0.26);
  box-shadow: 0 0 14px rgba(74,222,128,0.12);
}

.auth-password-rule.is-error {
  color: #ffc5d2;
}

.auth-password-rule.is-error::before {
  content: '!';
  color: #ff9cb5;
  background: rgba(255,71,120,0.14);
  border: 1px solid rgba(255,110,145,0.26);
}

.auth-password-note {
  color: rgba(173,184,212,0.62);
}

.auth-password-note::before {
  content: 'i';
  color: rgba(139,232,255,0.9);
  background: rgba(0,209,255,0.1);
  border: 1px solid rgba(0,209,255,0.18);
}

.auth-password-weak {
  color: #ffccd7;
}

.auth-password-weak::before {
  content: '!';
  color: #ff99b0;
  background: rgba(255,71,120,0.14);
  border: 1px solid rgba(255,110,145,0.26);
}

.auth-password-weak.is-ok {
  color: #b7f7de;
}

.auth-password-weak.is-ok::before {
  content: 'v';
  color: #83f0c7;
  background: rgba(74,222,128,0.14);
  border: 1px solid rgba(74,222,128,0.26);
}

.auth-consent-card {
  background: linear-gradient(135deg, rgba(17,18,38,0.74), rgba(10,13,26,0.82)) !important;
  border: 1px solid rgba(123,136,255,0.14) !important;
}

.auth-consent-card label {
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none;
  color: rgba(221,228,243,0.78) !important;
}

.auth-alert-card,
.danger-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(90,18,38,0.42), rgba(26,11,24,0.82)) !important;
  border: 1px solid rgba(255,110,145,0.2) !important;
  color: rgba(255,216,224,0.9) !important;
  font-size: 13px;
}

.auth-divider {
  margin: 4px 0 !important;
}

.auth-divider-line,
.auth-divider > div:first-child,
.auth-divider > div:last-child {
  opacity: 0.85;
}

.auth-inline-actions {
  color: rgba(213,221,243,0.74);
}

.auth-inline-actions a {
  color: #8be8ff !important;
}

#pin-screen {
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top, 24px)) 20px max(24px, env(safe-area-inset-bottom, 24px));
}

.auth-pin-panel {
  position: relative;
  width: min(100%, 420px);
  padding: 30px 22px 22px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(10,14,26,0.9), rgba(6,9,18,0.88)),
    rgba(8,11,20,0.76);
  border: 1px solid rgba(123,136,255,0.16);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(24px) saturate(1.28);
  -webkit-backdrop-filter: blur(24px) saturate(1.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  overflow: hidden;
}

.auth-pin-kicker {
  font-size: 12px !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(205,214,240,0.62) !important;
}

.auth-pin-title {
  font-size: clamp(30px, 6vw, 36px) !important;
  letter-spacing: -0.04em;
  color: #eef8ff !important;
}

.pin-dots {
  width: min(100%, 300px);
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  justify-items: center;
  margin-top: 2px;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pin-dot.filled {
  background: linear-gradient(135deg, #11d3ff, #7c6af7);
  border-color: rgba(0,209,255,0.52);
  box-shadow: 0 0 18px rgba(0,209,255,0.34);
  transform: scale(1.05);
}

#pin-error {
  min-height: 20px !important;
  font-size: 13px;
  text-align: center;
  font-family: var(--font-mono);
}

#pin-error:empty {
  opacity: 0;
}

.pin-pad {
  width: min(100%, 306px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pin-key {
  min-height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(128,146,255,0.16);
  color: #f3f7ff;
  font-size: 24px;
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: pointer;
  user-select: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 14px 28px rgba(0,0,0,0.16);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.pin-key:hover {
  transform: translateY(-1px);
  border-color: rgba(0,209,255,0.3);
  background: rgba(0,209,255,0.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 18px 32px rgba(0,0,0,0.2),
    0 0 18px rgba(0,209,255,0.08);
}

.pin-key:active {
  transform: scale(0.98);
}

.pin-key.empty {
  visibility: hidden;
  pointer-events: none;
}

.pin-key.del {
  font-size: 19px;
  color: #8be8ff;
}

.auth-pin-actions {
  width: min(100%, 306px) !important;
  max-width: none !important;
}

@keyframes authDustDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 180px, 0 0; }
}

@media (min-width: 900px) {
  .auth-topbar {
    padding-left: clamp(24px, 3vw, 34px) !important;
    padding-right: clamp(24px, 3vw, 34px) !important;
  }

  .auth-screen--login .auth-shell,
  .auth-screen--join .auth-shell,
  .auth-screen--recovery .auth-shell {
    padding-top: 42px !important;
    padding-bottom: 42px !important;
  }

  .auth-panel,
  .auth-screen--signup .auth-shell,
  .auth-screen--join .auth-shell,
  .auth-pin-panel {
    box-shadow:
      0 34px 80px rgba(0,0,0,0.46),
      inset 0 1px 0 rgba(255,255,255,0.05),
      0 0 0 1px rgba(255,255,255,0.015);
  }
}

@media (max-width: 720px) {
  .auth-topbar {
    gap: 12px !important;
  }

  .auth-panel,
  .auth-screen--signup .auth-shell,
  .auth-screen--join .auth-shell,
  .auth-pin-panel {
    border-radius: 24px;
  }

  .auth-screen::after {
    opacity: 0.08;
  }
}

@media (max-width: 520px) {
  .auth-shell {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .auth-panel,
  .auth-screen--signup .auth-shell,
  .auth-screen--join .auth-shell,
  .auth-pin-panel {
    padding: 18px 16px;
  }

  .auth-screen .input-with-gen {
    flex-direction: column;
  }

  .auth-screen .gen-btn {
    width: 100%;
  }

  .auth-captcha-card > div:first-child {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* Logged-in desktop app shell redesign */
@media (min-width: 900px) {
  body.auth-ready #rooms-screen.screen.active {
    grid-template-columns: 86px 360px minmax(0, 1fr) !important;
    background:
      radial-gradient(circle at 16% 12%, rgba(122,92,255,0.16), transparent 26%),
      radial-gradient(circle at 84% 18%, rgba(0,240,255,0.11), transparent 24%),
      linear-gradient(rgba(255,255,255,0.024) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
      linear-gradient(180deg, #06070d 0%, #050509 58%, #030407 100%) !important;
    background-size: auto, auto, 30px 30px, 30px 30px, auto !important;
    background-position: 0 0, 0 0, center center, center center, 0 0 !important;
  }

  body.auth-ready #rooms-screen .top-bar {
    margin: 20px 0 20px 20px !important;
    min-height: calc(100dvh - 40px) !important;
    border: 1px solid rgba(173,191,255,0.12) !important;
    border-right: 1px solid rgba(173,191,255,0.12) !important;
    border-radius: 30px !important;
    background: linear-gradient(180deg, rgba(18,18,36,0.88), rgba(7,9,18,0.82)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.06),
      0 24px 48px rgba(0,0,0,0.28),
      0 0 28px rgba(122,92,255,0.10) !important;
    backdrop-filter: blur(20px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(145%) !important;
  }

  body.auth-ready #rooms-screen .top-bar::before {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow:
      0 12px 26px rgba(122,92,255,0.28),
      0 0 24px rgba(0,240,255,0.12);
  }

  body.auth-ready #rooms-screen .user-badge {
    padding: 10px 7px !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)) !important;
    border: 1px solid rgba(173,191,255,0.13) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.05),
      0 12px 26px rgba(0,0,0,0.20) !important;
  }

  body.auth-ready #rooms-screen .icon-btn,
  body.auth-ready #chat-screen .icon-btn {
    border-radius: 16px !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)) !important;
    border: 1px solid rgba(173,191,255,0.13) !important;
    color: rgba(241,245,255,0.90) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.05),
      0 10px 24px rgba(0,0,0,0.18) !important;
  }

  body.auth-ready #rooms-screen .rooms-list {
    margin: 20px 0 20px 16px !important;
    height: calc(100dvh - 40px) !important;
    max-height: calc(100dvh - 40px) !important;
    padding: 90px 18px 28px !important;
    border: 1px solid rgba(173,191,255,0.10) !important;
    border-right: 1px solid rgba(173,191,255,0.10) !important;
    border-radius: 32px !important;
    background: linear-gradient(180deg, rgba(12,12,22,0.86), rgba(8,9,16,0.72)) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.04),
      0 28px 52px rgba(0,0,0,0.24),
      0 0 32px rgba(122,92,255,0.08) !important;
    backdrop-filter: blur(18px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  }

  body.auth-ready #rooms-screen .rooms-list::before {
    padding: 0 2px;
    color: #eef4ff;
    letter-spacing: -0.04em;
    text-shadow: 0 10px 24px rgba(0,0,0,0.24);
  }

  body.auth-ready #rooms-screen .room-card,
  body.auth-ready #rooms-screen .room-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 8px !important;
    padding: 14px 14px !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.022)) !important;
    border: 1px solid rgba(173,191,255,0.08) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.045),
      0 14px 30px rgba(0,0,0,0.16) !important;
  }

  body.auth-ready #rooms-screen .room-card::before,
  body.auth-ready #rooms-screen .room-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 0% 0%, rgba(0,240,255,0.06), transparent 24%),
      linear-gradient(135deg, rgba(255,255,255,0.028), transparent 42%);
    opacity: 0.92;
    pointer-events: none;
  }

  body.auth-ready #rooms-screen .room-card:hover,
  body.auth-ready #rooms-screen .room-item:hover {
    transform: translateY(-2px) !important;
    background: linear-gradient(180deg, rgba(122,92,255,0.15), rgba(255,255,255,0.03)) !important;
    border-color: rgba(122,92,255,0.20) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.06),
      0 18px 36px rgba(0,0,0,0.20),
      0 0 24px rgba(122,92,255,0.10) !important;
  }

  body.auth-ready #rooms-screen .room-card.active,
  body.auth-ready #rooms-screen .room-card.selected,
  body.auth-ready #rooms-screen .room-card.active-room,
  body.auth-ready #rooms-screen .room-item.active,
  body.auth-ready #rooms-screen .room-item.selected,
  body.auth-ready #rooms-screen .room-item.active-room {
    background: linear-gradient(180deg, rgba(122,92,255,0.22), rgba(12,16,26,0.82)) !important;
    border-color: rgba(122,92,255,0.28) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.06),
      0 20px 36px rgba(0,0,0,0.22),
      0 0 28px rgba(122,92,255,0.12) !important;
  }

  body.auth-ready #rooms-screen .room-card .room-icon {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.16),
      0 12px 24px rgba(0,0,0,0.18) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
  }

  body.auth-ready #rooms-screen .room-card .room-info {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  body.auth-ready #rooms-screen .room-card .room-name {
    color: #eef4ff !important;
    font-weight: 650 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.25 !important;
  }

  body.auth-ready #rooms-screen .room-card .room-preview,
  body.auth-ready #rooms-screen .room-card .room-last,
  body.auth-ready #rooms-screen .room-card .room-sub {
    color: rgba(212,220,242,0.68) !important;
    line-height: 1.45 !important;
  }

  body.auth-ready #rooms-screen .room-card .room-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    min-width: 62px;
    color: rgba(212,220,242,0.64) !important;
  }

  body.auth-ready #rooms-screen .room-card .room-meta [style*="#2ecc71"],
  body.auth-ready #rooms-screen .room-card .room-meta [style*="#4ade80"],
  body.auth-ready #rooms-screen .room-card .room-meta [style*="orange"] {
    color: rgba(212,220,242,0.72) !important;
    text-shadow: none !important;
    filter: saturate(0.72) brightness(0.96);
  }

  body.ec-chat-open.auth-ready #chat-screen.screen.active {
    left: 446px !important;
    padding: 20px 22px 22px 18px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  body.auth-ready.ec-chat-open #rooms-screen.screen.active {
    display: grid !important;
  }

  body.auth-ready.ec-chat-open #chat-screen.screen.active {
    display: flex !important;
  }

  body.auth-ready #chat-screen .chat-top-bar {
    flex-shrink: 0;
    min-height: 76px;
    padding: 16px 20px !important;
    background: linear-gradient(180deg, rgba(16,18,34,0.90), rgba(8,10,18,0.84)) !important;
    border: 1px solid rgba(173,191,255,0.12) !important;
    border-bottom: 1px solid rgba(173,191,255,0.09) !important;
    border-radius: 30px 30px 0 0 !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.05),
      0 22px 44px rgba(0,0,0,0.24) !important;
    backdrop-filter: blur(18px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
  }

  body.auth-ready #messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    background:
      radial-gradient(circle at 16% 12%, rgba(122,92,255,0.11), transparent 24%),
      radial-gradient(circle at 84% 14%, rgba(0,240,255,0.08), transparent 22%),
      linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px),
      linear-gradient(180deg, rgba(10,12,20,0.92), rgba(7,8,15,0.96)) !important;
    background-size: auto, auto, 26px 26px, 26px 26px, auto !important;
    border-left: 1px solid rgba(173,191,255,0.10) !important;
    border-right: 1px solid rgba(173,191,255,0.10) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.03),
      0 24px 50px rgba(0,0,0,0.18) !important;
  }

  body.auth-ready #chat-screen .input-bar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
    padding: 15px 18px 18px !important;
    padding-right: 98px !important;
    background: linear-gradient(180deg, rgba(15,16,30,0.94), rgba(8,10,18,0.96)) !important;
    border: 1px solid rgba(173,191,255,0.12) !important;
    border-top: none !important;
    border-radius: 0 0 30px 30px !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.03),
      0 24px 44px rgba(0,0,0,0.22) !important;
    backdrop-filter: blur(18px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
  }

  body.auth-ready #vault-screen.active {
    background:
      radial-gradient(circle at 16% 12%, rgba(122,92,255,0.14), transparent 24%),
      radial-gradient(circle at 84% 18%, rgba(0,240,255,0.09), transparent 20%),
      linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px),
      linear-gradient(180deg, #06070d 0%, #050509 60%, #030407 100%) !important;
    background-size: auto, auto, 30px 30px, 30px 30px, auto !important;
  }

  body.auth-ready #lp-footer {
    display: none !important;
  }

  body.auth-ready #aura-fab {
    right: 26px !important;
    bottom: max(26px, calc(env(safe-area-inset-bottom, 0px) + 26px)) !important;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    padding: 0 !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, rgba(16,19,35,0.94), rgba(8,10,18,0.92)) !important;
    border: 1px solid rgba(173,191,255,0.16) !important;
    box-shadow:
      0 18px 40px rgba(0,0,0,0.30),
      0 0 28px rgba(122,92,255,0.12) !important;
    backdrop-filter: blur(18px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
  }

  body.auth-ready #aura-fab .aura-fab-copy {
    display: none !important;
  }
}

/* Login CAPTCHA usability fix */
#login-screen {
  overflow: hidden !important;
}

#login-screen .auth-shell {
  min-height: 0 !important;
  justify-content: flex-start !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
}

#login-screen #ec-login-form {
  flex: 0 0 auto;
  max-height: min(100%, calc(100dvh - 132px)) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  gap: 20px !important;
}

#login-screen .auth-captcha-card {
  padding: 16px 16px 18px !important;
  margin-top: 2px;
  margin-bottom: 2px;
}

#login-screen .auth-captcha-card > div:first-child {
  align-items: flex-start !important;
  gap: 10px !important;
  flex-wrap: wrap;
}

#captcha-img-login {
  width: 100% !important;
  max-width: 100% !important;
  min-height: clamp(96px, 20vw, 126px) !important;
  display: block !important;
  margin: 0 auto 12px !important;
  object-fit: contain !important;
}

#login-screen #captcha-answer-login {
  display: block;
  width: 100%;
  min-height: 46px !important;
  margin: 0 0 10px !important;
}

#login-screen #captcha-hint-login {
  min-height: 18px;
  margin-top: 10px !important;
}

#login-screen #btn-login {
  margin-top: 12px !important;
}

.ec-login-desktop-brand,
.ec-login-desktop-lang,
.ec-login-desktop-copy,
.ec-login-desktop-hero,
.ec-login-desktop-footer {
  display: none;
}

/* §LOGIN-FOCUS-2026-09-10: `#login-screen > div:first-child` (app.css /
   responsive-polish.css) war auf den entfernten .ec-nav-back-Button gemuenzt und
   greift jetzt auf die Brand-Zeile. Karten-Optik dort explizit zuruecknehmen. */
#login-screen > div.ec-login-desktop-brand:first-child {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

#login-screen .ec-login-panel-logo {
  overflow: hidden;
}

#login-screen .ec-login-panel-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

@media (min-width: 900px) {
  #login-screen.auth-screen--login {
    overflow: hidden !important;
    background:
      radial-gradient(circle at 44% 38%, rgba(139, 55, 255, 0.26), transparent 29%),
      radial-gradient(circle at 34% 45%, rgba(0, 209, 255, 0.18), transparent 32%),
      radial-gradient(circle at 92% 12%, rgba(0, 209, 255, 0.12), transparent 24%),
      linear-gradient(180deg, #03040b 0%, #050613 53%, #02030a 100%) !important;
  }

  #login-screen.auth-screen--login::before {
    background:
      linear-gradient(rgba(255,255,255,0.016) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px),
      radial-gradient(circle at 48% 82%, rgba(139, 55, 255, 0.18), transparent 28%) !important;
    background-size: 42px 42px, 42px 42px, 100% 100% !important;
    opacity: 0.42 !important;
  }

  #login-screen.auth-screen--login::after {
    background-image:
      radial-gradient(circle at center, rgba(0, 209, 255, 0.76) 0 1px, transparent 1.7px),
      radial-gradient(circle at center, rgba(159, 75, 255, 0.72) 0 1px, transparent 1.7px) !important;
    background-size: 330px 250px, 250px 210px !important;
    background-position: 20px 30px, 140px 70px !important;
    opacity: 0.32 !important;
    animation: none !important;
  }

  #login-screen .auth-topbar {
    display: none !important;
  }

  /* §LOGIN-FOCUS-2026-09-10: Login-Screen ist kein 3-Spalten-Deko-Layout mehr.
     Der Screen selbst wird zum Page-Wrapper (Flex-Column, space-between):
     <main> = .auth-shell (flex:1, zentriert) · Footer sitzt unten in der Flow. */
  #login-screen.auth-screen--login.active {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  #login-screen .ec-login-desktop-brand,
  #login-screen .ec-login-desktop-lang,
  #login-screen .ec-login-desktop-copy,
  #login-screen .ec-login-desktop-hero,
  #login-screen .ec-login-desktop-footer {
    display: flex;
    position: absolute;
    z-index: 2;
  }

  #login-screen .ec-login-desktop-brand {
    top: clamp(26px, 4.2vh, 48px);
    left: clamp(34px, 4.8vw, 72px);
    align-items: center;
    gap: 14px;
  }

  #login-screen .ec-login-desktop-brand img {
    width: clamp(42px, 4.4vw, 58px);
    height: clamp(42px, 4.4vw, 58px);
    border-radius: 16px;
    object-fit: cover;
    box-shadow:
      0 0 0 1px rgba(124, 245, 255, 0.28),
      0 0 26px rgba(0, 209, 255, 0.18);
  }

  #login-screen .ec-login-desktop-brand span {
    font-family: 'Syne', sans-serif;
    font-size: clamp(20px, 1.7vw, 28px);
    font-weight: 850;
    letter-spacing: -0.055em;
    background: linear-gradient(90deg, #a84dff 0%, #2ddcff 86%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  #login-screen .ec-login-desktop-lang {
    top: clamp(24px, 3.6vh, 40px);
    right: clamp(34px, 4.8vw, 72px);
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(151, 166, 255, 0.13);
    border-radius: 999px;
    background: rgba(6, 9, 20, 0.56);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 16px 36px rgba(0,0,0,0.2);
    backdrop-filter: blur(16px) saturate(1.25);
    -webkit-backdrop-filter: blur(16px) saturate(1.25);
  }

  #login-screen .ec-login-desktop-lang button {
    min-height: 30px;
    padding: 0 11px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(239, 244, 255, 0.84);
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
  }

  #login-screen .ec-login-desktop-lang button:first-child {
    background: rgba(255,255,255,0.06);
    color: #f8fbff;
  }

  #login-screen .ec-login-desktop-copy {
    top: clamp(132px, 18vh, 208px);
    /* §LOGIN-WIDE-CAP-2026-07-21: below ~1640px keep the clamp (Image-2 look);
       on wider screens anchor to a centered ~1640px band so the column stops
       marching to the far-left corner and marooning the centered form (Image 1). */
    left: max(clamp(34px, 5vw, 78px), calc(50% - 820px));
    display: block;
    width: min(31vw, 430px);
    max-width: 430px;
  }

  #login-screen .ec-login-desktop-copy h1 {
    margin: 0;
    color: #f7f9ff;
    font-family: 'Syne', sans-serif;
    font-size: clamp(34px, 3.8vw, 62px);
    line-height: 1.02;
    font-weight: 850;
    letter-spacing: -0.055em;
  }

  #login-screen .ec-login-desktop-copy h1 span {
    background: linear-gradient(90deg, #a54dff 0%, #31d8ff 92%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  #login-screen .ec-login-desktop-copy p {
    margin: 16px 0 0;
    color: rgba(232, 239, 255, 0.78);
    font-size: clamp(14px, 1.2vw, 18px);
    line-height: 1.45;
  }

  #login-screen .ec-login-desktop-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: clamp(26px, 4vh, 42px);
  }

  #login-screen .ec-login-desktop-features div {
    min-height: 70px;
    padding: 13px 14px;
    border: 1px solid rgba(61, 239, 197, 0.13);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(13, 18, 36, 0.74), rgba(5, 18, 29, 0.5));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 16px 34px rgba(0,0,0,0.18);
    backdrop-filter: blur(16px) saturate(1.18);
    -webkit-backdrop-filter: blur(16px) saturate(1.18);
  }

  #login-screen .ec-login-desktop-features strong,
  #login-screen .ec-login-desktop-trust strong {
    display: block;
    color: #39f6bd;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.2;
  }

  #login-screen .ec-login-desktop-features small,
  #login-screen .ec-login-desktop-trust small {
    display: block;
    margin-top: 5px;
    color: rgba(210, 221, 244, 0.62);
    font-size: 10px;
    line-height: 1.35;
  }

  #login-screen .ec-login-desktop-trust {
    margin-top: clamp(22px, 3vh, 34px);
    padding-left: 54px;
    position: relative;
  }

  #login-screen .ec-login-desktop-trust::before {
    content: '◇';
    position: absolute;
    left: 0;
    top: -2px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #35d7ff;
    border-radius: 12px;
    border: 1px solid rgba(53, 215, 255, 0.16);
    background: rgba(6, 12, 24, 0.46);
  }

  #login-screen .ec-login-desktop-hero {
    /* §LOGIN-WIDE-CAP-2026-07-21: mirror of the copy cap on the right side. */
    right: max(clamp(34px, 5.2vw, 92px), calc(50% - 820px));
    left: auto;
    top: 50%;
    width: clamp(320px, 29vw, 560px);
    transform: translateY(-48%);
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 0 44px rgba(121, 66, 255, 0.3)) drop-shadow(0 0 28px rgba(0, 209, 255, 0.16));
  }

  #login-screen .ec-login-desktop-hero::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 8%;
    width: 76%;
    height: 18%;
    transform: translateX(-50%) perspective(600px) rotateX(72deg);
    border-radius: 999px;
    background: radial-gradient(ellipse at center, rgba(210, 63, 255, 0.42), transparent 52%);
    filter: blur(4px);
    z-index: -1;
  }

  #login-screen .ec-login-desktop-hero img {
    width: 100%;
    height: auto;
    display: block;
    /* §AUTH-POLISH-2026-07-22: border-radius raus (kein Karten-Look mehr) +
       radiale Alpha-Maske wie auf der Landing — Ränder faden zu echtem
       Transparent, das Shield schwebt frei statt in einem Kasten. */
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 58%, rgba(0, 0, 0, 0) 86%);
    mask-image: radial-gradient(ellipse at center, #000 58%, rgba(0, 0, 0, 0) 86%);
  }

  #login-screen .ec-login-desktop-footer {
    position: static;
    order: 99;
    width: 100%;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    color: rgba(208, 219, 242, 0.56);
    font-size: 12px;
    z-index: 2;
  }

  #login-screen .ec-login-desktop-footer b {
    color: #35d7ff;
  }

  #login-screen .auth-shell {
    position: static !important;
    inset: auto !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    padding: clamp(16px, 3vh, 32px) 16px !important;
    pointer-events: none;
  }

  /* `#login-screen > div:last-child { padding-bottom: 72px }` (style.css §V12,
     fuer das alte Scroll-Layout) ist (1,1,1) und wuerde die Karte nach oben
     druecken. Hier mit (1,2,0) symmetrisch zuruecknehmen — sonst ist die
     vertikale Zentrierung um ~28px daneben. */
  #login-screen > .auth-shell.auth-shell--center {
    padding-top: clamp(16px, 3vh, 32px) !important;
    padding-bottom: clamp(16px, 3vh, 32px) !important;
  }

  #login-screen #ec-login-form {
    pointer-events: auto;
    /* app.css setzt margin:24px auto 40px — asymmetrisch, verschiebt die
       optische Mitte. Fuer die exakte Zentrierung hier auf 0 auto. */
    margin: 0 auto !important;
    width: min(100%, clamp(390px, 27vw, 480px)) !important;
    max-width: 480px !important;
    max-height: 100% !important;
    gap: clamp(12px, 1.45vh, 18px) !important;
    padding: clamp(20px, 2.2vw, 28px) !important;
    border-radius: 28px !important;
    border-color: rgba(58, 217, 255, 0.3) !important;
    background:
      radial-gradient(circle at 0% 0%, rgba(147,51,234,0.22), transparent 36%),
      radial-gradient(circle at 100% 100%, rgba(0,209,255,0.2), transparent 34%),
      linear-gradient(145deg, rgba(17, 13, 38, 0.82), rgba(5, 13, 26, 0.88)) !important;
    box-shadow:
      0 30px 90px rgba(0,0,0,0.54),
      inset 0 1px 0 rgba(255,255,255,0.08),
      0 0 48px rgba(0,209,255,0.12) !important;
  }

  #login-screen #ec-login-form .auth-hero {
    padding: 4px 0 2px !important;
  }

  #login-screen .ec-login-panel-logo {
    width: 78px !important;
    height: 78px !important;
    border-radius: 19px !important;
    margin-bottom: 10px !important;
    padding: 0;
    background: rgba(0, 0, 0, 0.42) !important;
    border-color: rgba(0, 209, 255, 0.3) !important;
  }

  #login-screen .auth-hero-title {
    font-size: clamp(27px, 2.2vw, 36px) !important;
    font-weight: 820 !important;
    letter-spacing: -0.045em;
  }

  #login-screen .auth-hero-subtitle {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  #login-screen .auth-captcha-card {
    padding: 13px 14px 14px !important;
  }

  #captcha-img-login {
    min-height: clamp(78px, 10vh, 112px) !important;
  }

  #login-screen #btn-login {
    margin-top: 4px !important;
  }
}

@media (min-width: 900px) and (max-width: 1480px) {
  #login-screen .auth-shell {
    padding-left: 16px !important;
    padding-right: 16px !important;
    justify-content: center !important;
  }

  #login-screen .ec-login-desktop-hero {
    right: clamp(26px, 3.4vw, 50px);
    left: auto;
    width: clamp(270px, 24vw, 390px);
  }

  #login-screen .ec-login-desktop-copy {
    width: min(29vw, 350px);
    max-width: 350px;
  }

  #login-screen .ec-login-desktop-copy h1 {
    font-size: clamp(31px, 3.4vw, 46px);
  }
}

@media (min-width: 900px) and (max-width: 1180px) {
  /* §LOGIN-FOCUS-2026-09-10: Footer bleibt auch hier sichtbar (Pflichtangaben). */
  #login-screen .ec-login-desktop-brand span {
    display: none;
  }

  #login-screen .ec-login-desktop-copy {
    top: 20vh;
    width: 230px;
  }

  #login-screen .ec-login-desktop-copy h1 {
    font-size: 30px;
  }

  #login-screen .ec-login-desktop-features {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 20px;
  }

  #login-screen .ec-login-desktop-features div {
    min-height: 0;
    padding: 10px 12px;
  }

  #login-screen .ec-login-desktop-hero {
    width: 240px;
    right: 22px;
  }

  #login-screen #ec-login-form {
    width: 390px !important;
  }
}

@media (min-width: 900px) and (max-height: 820px) {
  #login-screen > .auth-shell.auth-shell--center {
    justify-content: center !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  #login-screen #ec-login-form {
    max-height: 100% !important;
    gap: 11px !important;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }

  #login-screen .ec-login-panel-logo {
    width: 58px !important;
    height: 58px !important;
    margin-bottom: 4px !important;
  }

  #login-screen .auth-hero-title {
    font-size: 27px !important;
  }

  #login-screen label {
    margin-bottom: 6px !important;
  }

  #login-screen .auth-captcha-card {
    padding: 11px 12px 12px !important;
  }

  #captcha-img-login {
    min-height: 70px !important;
    margin-bottom: 8px !important;
  }

  #login-screen #captcha-answer-login {
    min-height: 40px !important;
    margin-bottom: 6px !important;
  }

  #login-screen .ec-login-desktop-copy {
    top: 18vh;
  }

  #login-screen .ec-login-desktop-footer {
    bottom: 18px;
  }
}

@media (max-width: 720px) {
  #login-screen .auth-shell {
    padding: 18px 16px calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #login-screen #ec-login-form {
    max-height: calc(100dvh - 108px) !important;
    border-radius: 24px !important;
  }
}

@media (min-width: 900px) {
  body.auth-ready.ec-rooms-open #cd-shell {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 120 !important;
    overflow: hidden !important;
    pointer-events: auto !important;
    background:
      radial-gradient(ellipse at 16% -10%, rgba(138, 91, 255, 0.22), transparent 48%),
      radial-gradient(ellipse at 92% 8%, rgba(107, 234, 255, 0.12), transparent 38%),
      radial-gradient(ellipse at 60% 105%, rgba(122, 255, 176, 0.08), transparent 44%),
      #060612 !important;
  }

  body.auth-ready.ec-rooms-open #rooms-screen.active {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.auth-ready.ec-rooms-open #lp-footer,
  body.auth-ready.ec-rooms-open footer,
  body.auth-ready.ec-rooms-open .v11-footer-legal {
    display: none !important;
  }

  body.auth-ready.ec-rooms-open #aura-fab {
    width: 44px !important;
    height: 44px !important;
    right: 18px !important;
    bottom: 18px !important;
    opacity: 0.28 !important;
    transform: scale(0.82) !important;
    filter: saturate(0.7) blur(0.1px) !important;
  }

  body.auth-ready.ec-rooms-open #aura-fab:hover {
    opacity: 0.88 !important;
    transform: scale(1) !important;
  }

  body.auth-ready.ec-rooms-open #aura-fab .aura-fab-copy {
    display: none !important;
  }

  #ec-claude-shell {
    --ec-cld-bg-0: #060612;
    --ec-cld-bg-1: #0b0b1c;
    --ec-cld-bg-2: rgba(18, 18, 42, 0.68);
    --ec-cld-ink-0: #f4f3ff;
    --ec-cld-ink-1: #c8c6e7;
    --ec-cld-ink-2: #8a88b0;
    --ec-cld-line: rgba(138, 136, 176, 0.13);
    --ec-cld-line-strong: rgba(138, 136, 176, 0.24);
    --ec-cld-violet: #8a5bff;
    --ec-cld-violet-glow: #a484ff;
    --ec-cld-acid: #7affb0;
    --ec-cld-cyan: #6beaff;
    width: 100%;
    height: 100dvh;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    color: var(--ec-cld-ink-0);
    font-family: 'Space Grotesk', var(--font), system-ui, sans-serif;
    letter-spacing: -0.005em;
    position: relative;
    isolation: isolate;
  }

  #ec-claude-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(138, 136, 176, 0.055) 1px, transparent 1px),
      linear-gradient(90deg, rgba(138, 136, 176, 0.055) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 50% 40%, black 22%, transparent 78%);
    opacity: 0.82;
  }

  #ec-claude-shell::after {
    content: '';
    position: absolute;
    inset: 3.5% 4% 5%;
    z-index: -1;
    border-radius: 44px;
    background:
      linear-gradient(135deg, rgba(138, 91, 255, 0.2), transparent 32%, rgba(107, 234, 255, 0.08) 68%, rgba(122, 255, 176, 0.1)),
      rgba(255,255,255,0.018);
    filter: blur(34px);
    opacity: 0.9;
  }

  .ec-cld-rail {
    padding: 28px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    border-right: 1px solid var(--ec-cld-line);
    background: linear-gradient(180deg, rgba(10, 10, 24, 0.78), rgba(6, 6, 18, 0.88));
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
  }

  .ec-cld-rail-logo {
    width: 46px;
    height: 46px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    color: #fff;
    font: 800 14px/1 var(--font-mono);
    background: linear-gradient(135deg, rgba(138,91,255,0.96), rgba(107,234,255,0.78));
    box-shadow: 0 0 0 1px rgba(255,255,255,0.18), 0 18px 42px rgba(138,91,255,0.36);
  }

  .ec-cld-rail-btn {
    width: 46px;
    height: 46px;
    border: 1px solid var(--ec-cld-line);
    border-radius: 17px;
    background: rgba(255,255,255,0.025);
    color: var(--ec-cld-ink-2);
    font-size: 20px;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
  }

  .ec-cld-rail-btn:hover,
  .ec-cld-rail-btn.active {
    color: var(--ec-cld-ink-0);
    border-color: rgba(164, 132, 255, 0.4);
    background: linear-gradient(180deg, rgba(138, 91, 255, 0.22), rgba(138, 91, 255, 0.08));
    box-shadow: inset 0 0 0 1px rgba(164, 132, 255, 0.14), 0 14px 34px rgba(138,91,255,0.18);
    transform: translateY(-1px);
  }

  .ec-cld-rail-logout {
    margin-top: auto;
    color: #ffc0c4;
    border-color: rgba(255, 90, 106, 0.22);
    background: rgba(255, 90, 106, 0.055);
  }

  .ec-cld-main {
    min-width: 0;
    height: 100%;
    padding: clamp(22px, 2.2vw, 34px);
    display: grid;
    grid-template-columns: minmax(330px, 410px) minmax(0, 1fr);
    gap: clamp(18px, 2vw, 28px);
  }

  .ec-cld-sidebar,
  .ec-cld-stage {
    min-height: 0;
    border: 1px solid var(--ec-cld-line);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(20, 20, 42, 0.72), rgba(12, 12, 28, 0.82));
    box-shadow: 0 26px 80px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
    position: relative;
    overflow: hidden;
  }

  .ec-cld-sidebar::before,
  .ec-cld-stage::before,
  .ec-cld-chat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(138,91,255,0.35), transparent 30%, transparent 70%, rgba(122,255,176,0.22));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
  }

  .ec-cld-sidebar {
    padding: 24px;
    display: flex;
    flex-direction: column;
  }

  .ec-cld-side-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
  }

  .ec-cld-kicker,
  .ec-cld-chat-kicker {
    font: 600 10.5px/1 var(--font-mono);
    letter-spacing: 0.22em;
    color: var(--ec-cld-ink-2);
  }

  .ec-cld-side-head h1 {
    margin: 8px 0 8px;
    color: var(--ec-cld-ink-0);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 0.98;
    letter-spacing: -0.045em;
  }

  .ec-cld-side-head p {
    margin: 0;
    max-width: 28ch;
    color: var(--ec-cld-ink-2);
    font-size: 13px;
    line-height: 1.55;
  }

  .ec-cld-status,
  .ec-cld-stage-actions span,
  .ec-cld-meta-row span {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(122, 255, 176, 0.2);
    border-radius: 999px;
    background: rgba(122, 255, 176, 0.055);
    color: var(--ec-cld-acid);
    font: 600 10.5px/1 var(--font-mono);
    letter-spacing: 0.055em;
    padding: 8px 11px;
    white-space: nowrap;
  }

  .ec-cld-status span,
  .ec-cld-presence {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ec-cld-acid);
    box-shadow: 0 0 11px rgba(122,255,176,0.7);
  }

  .ec-cld-meta-row {
    display: flex;
    gap: 8px;
    padding: 12px 0 18px;
    border-top: 1px solid rgba(138,136,176,0.1);
  }

  .ec-cld-meta-row span:last-child {
    color: var(--ec-cld-cyan);
    border-color: rgba(107,234,255,0.22);
    background: rgba(107,234,255,0.06);
  }

  .ec-cld-room-list {
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
  }

  .ec-cld-room-list::-webkit-scrollbar,
  .ec-cld-messages::-webkit-scrollbar {
    width: 8px;
  }

  .ec-cld-room-list::-webkit-scrollbar-thumb,
  .ec-cld-messages::-webkit-scrollbar-thumb {
    background: rgba(138,136,176,0.18);
    border-radius: 10px;
  }

  .ec-cld-room {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    padding: 13px;
    border-radius: 20px;
    border: 1px solid rgba(138,136,176,0.11);
    background: rgba(255,255,255,0.025);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  }

  .ec-cld-room:hover,
  .ec-cld-room.active {
    transform: translateY(-1px);
    border-color: rgba(164,132,255,0.34);
    background: linear-gradient(180deg, rgba(138,91,255,0.16), rgba(255,255,255,0.035));
    box-shadow: 0 0 0 1px rgba(164,132,255,0.12), 0 20px 46px rgba(0,0,0,0.22);
  }

  .ec-cld-avatar {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    color: #fff;
    font: 800 13px/1 var(--font-mono);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 14px 28px rgba(0,0,0,0.24);
  }

  .ec-cld-avatar.large {
    width: 58px;
    height: 58px;
    border-radius: 21px;
    font-size: 15px;
  }

  .ec-cld-avatar.violet { background: linear-gradient(135deg, #8a5bff, #c084fc); }
  .ec-cld-avatar.cyan { background: linear-gradient(135deg, #0891b2, #6beaff); }
  .ec-cld-avatar.green { background: linear-gradient(135deg, #16a34a, #7affb0); }
  .ec-cld-avatar.amber { background: linear-gradient(135deg, #b45309, #ffb84a); }
  .ec-cld-avatar.rose { background: linear-gradient(135deg, #be185d, #ff6bd0); }
  .ec-cld-avatar.blue { background: linear-gradient(135deg, #2563eb, #60a5fa); }
  .ec-cld-avatar.mint { background: linear-gradient(135deg, #0f766e, #5eead4); }
  .ec-cld-avatar.orange { background: linear-gradient(135deg, #ea580c, #fb923c); }

  .ec-cld-room-copy {
    min-width: 0;
  }

  .ec-cld-room-copy div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
  }

  .ec-cld-room-copy strong {
    color: var(--ec-cld-ink-0);
    font-size: 14px;
    letter-spacing: -0.01em;
  }

  .ec-cld-room-copy time {
    color: var(--ec-cld-ink-2);
    font: 500 10.5px/1 var(--font-mono);
  }

  .ec-cld-room-copy p {
    margin: 5px 0 0;
    color: var(--ec-cld-ink-2);
    font-size: 12.5px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ec-cld-stage {
    padding: 26px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 20px;
  }

  .ec-cld-stage-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
  }

  .ec-cld-stage-user {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .ec-cld-stage-user h2 {
    margin: 0;
    color: var(--ec-cld-ink-0);
    font-size: clamp(24px, 2.2vw, 36px);
    line-height: 1;
    letter-spacing: -0.04em;
  }

  .ec-cld-stage-user p {
    margin: 8px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ec-cld-ink-2);
    font-size: 13px;
  }

  .ec-cld-stage-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .ec-cld-stage-actions button {
    border: 1px solid var(--ec-cld-line-strong);
    border-radius: 999px;
    background: linear-gradient(90deg, #7a48ff, #b77bff);
    color: #fff;
    padding: 11px 16px;
    font: 700 13px/1 var(--font);
    cursor: pointer;
    box-shadow: 0 14px 36px rgba(138,91,255,0.26);
  }

  .ec-cld-chat-card {
    min-height: 0;
    border: 1px solid var(--ec-cld-line);
    border-radius: 32px;
    padding: 22px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 18px;
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(ellipse at 10% 0%, rgba(138,91,255,0.18), transparent 42%),
      radial-gradient(ellipse at 92% 96%, rgba(107,234,255,0.1), transparent 44%),
      rgba(10,10,24,0.64);
  }

  .ec-cld-messages {
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
    padding: clamp(20px, 3vw, 38px);
    border-radius: 26px;
    background:
      linear-gradient(rgba(138,136,176,0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(138,136,176,0.035) 1px, transparent 1px),
      rgba(255,255,255,0.018);
    background-size: 34px 34px;
  }

  .ec-cld-bubble {
    max-width: min(540px, 72%);
    border: 1px solid rgba(138,136,176,0.13);
    border-radius: 22px;
    padding: 14px 16px 11px;
    background: rgba(18,18,38,0.72);
    box-shadow: 0 18px 38px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.04);
  }

  .ec-cld-bubble.me {
    align-self: flex-end;
    border-color: rgba(164,132,255,0.28);
    background: linear-gradient(135deg, rgba(138,91,255,0.34), rgba(122,72,255,0.16));
  }

  .ec-cld-bubble.them {
    align-self: flex-start;
  }

  .ec-cld-bubble.compact {
    max-width: min(480px, 64%);
  }

  .ec-cld-bubble p {
    margin: 0;
    color: var(--ec-cld-ink-0);
    font-size: 14px;
    line-height: 1.55;
  }

  .ec-cld-bubble time {
    display: block;
    margin-top: 8px;
    color: var(--ec-cld-ink-2);
    font: 600 10px/1 var(--font-mono);
    text-align: right;
  }

  .ec-cld-composer {
    min-height: 62px;
    border: 1px solid var(--ec-cld-line-strong);
    border-radius: 22px;
    background: rgba(255,255,255,0.035);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 10px 10px 20px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  }

  .ec-cld-composer span {
    color: var(--ec-cld-ink-2);
    font-size: 14px;
  }

  .ec-cld-composer button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--ec-cld-cyan), var(--ec-cld-violet));
    color: #fff;
    font-size: 18px;
    box-shadow: 0 14px 34px rgba(138,91,255,0.28);
  }
}

@media (max-width: 899px) {
  #cd-shell,
  #ec-claude-shell {
    display: none !important;
  }
}

@media (min-width: 900px) {
  body.auth-ready.ec-rooms-open #cd-shell {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 120 !important;
    overflow: hidden !important;
    pointer-events: auto !important;
    background:
      radial-gradient(ellipse at 20% -10%, rgba(138, 91, 255, 0.18), transparent 55%),
      radial-gradient(ellipse at 95% 90%, rgba(107, 234, 255, 0.08), transparent 50%),
      #060612 !important;
  }

  body.auth-ready.ec-rooms-open #rooms-screen.active {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.auth-ready.ec-rooms-open #lp-footer,
  body.auth-ready.ec-rooms-open footer,
  body.auth-ready.ec-rooms-open .v11-footer-legal {
    display: none !important;
  }

  body.auth-ready.ec-rooms-open #aura-fab {
    right: 16px !important;
    bottom: 16px !important;
    opacity: 0.22 !important;
    transform: scale(0.76) !important;
  }

  body.auth-ready.ec-rooms-open #aura-fab .aura-fab-copy {
    display: none !important;
  }

  #ec-claude-shell.ec-design-app-shell {
    --neon: 55;
    --bg-0: #060612;
    --bg-1: #0b0b1c;
    --bg-2: #12122a;
    --ink-0: #f4f3ff;
    --ink-1: #c8c6e7;
    --ink-2: #8a88b0;
    --ink-3: #5a587a;
    --line: rgba(138, 136, 176, 0.12);
    --line-strong: rgba(138, 136, 176, 0.22);
    --violet: #8a5bff;
    --violet-glow: #a484ff;
    --acid: #7affb0;
    --cyan: #6beaff;
    --magenta: #ff6bd0;
    --amber: #ffb84a;
    display: flex !important;
    min-height: 100vh;
    height: 100dvh;
    position: relative;
    z-index: 1;
    color: var(--ink-0);
    font-family: 'Space Grotesk', var(--font), ui-sans-serif, system-ui, sans-serif;
    letter-spacing: -0.005em;
    overflow: hidden;
  }

  #ec-claude-shell::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(rgba(138, 136, 176, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(138, 136, 176, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
    pointer-events: none;
    z-index: -1;
  }

  #ec-claude-shell .glass {
    background: linear-gradient(180deg, rgba(20, 20, 42, 0.72), rgba(12, 12, 28, 0.78));
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    border: 1px solid var(--line);
    border-radius: 16px;
    position: relative;
  }

  #ec-claude-shell .glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(138, 91, 255, 0.35), rgba(138, 91, 255, 0) 30%, rgba(107, 234, 255, 0) 70%, rgba(122, 255, 176, 0.25));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: calc(var(--neon) / 100);
    pointer-events: none;
  }

  .ec-design-rail {
    width: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    gap: 8px;
    border-radius: 0 22px 22px 0 !important;
    border-left: 0 !important;
    flex: 0 0 76px;
  }

  .ec-design-rail-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(138,91,255,0.25), rgba(107,234,255,0.1));
    border: 1px solid rgba(164,132,255,0.35);
    color: #a484ff;
    text-shadow: 0 0 10px currentColor;
    font: 700 18px/1 var(--font-mono);
  }

  .ec-design-rail-divider {
    width: 36px;
    height: 1px;
    background: var(--line);
    margin: 6px 0;
  }

  .ec-design-rail-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 0;
  }

  .ec-design-rail-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 0;
    background: transparent;
    color: var(--ink-2);
    display: grid;
    place-items: center;
    cursor: pointer;
    position: relative;
    transition: all 180ms ease;
    font-size: 19px;
  }

  .ec-design-rail-btn:hover {
    background: rgba(255,255,255,0.04);
  }

  .ec-design-rail-btn.active {
    color: #a484ff;
    background: linear-gradient(135deg, rgba(138,91,255,0.2), rgba(138,91,255,0.05));
    box-shadow: inset 0 0 0 1px rgba(164,132,255,0.35), 0 0 calc(22px * var(--neon) / 100) rgba(138,91,255,0.3);
  }

  .ec-design-rail-btn.active::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    border-radius: 2px;
    background: #a484ff;
    box-shadow: 0 0 calc(10px * var(--neon)/100) #a484ff;
  }

  .ec-design-rail-rooms {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    width: 100%;
  }

  .ec-design-rail-eyebrow,
  .ec-design-eyebrow {
    font: 500 10.5px/1 var(--font-mono);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-3);
  }

  .ec-design-rail-eyebrow {
    font-size: 9px;
    margin-bottom: 4px;
  }

  .ec-design-rail-room {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, hsla(var(--h),80%,65%,0.25), hsla(var(--h),80%,45%,0.12));
    border: 1px solid hsla(var(--h),80%,70%,0.25);
    font-size: 20px;
    cursor: pointer;
    position: relative;
    color: inherit;
    transition: all 180ms ease;
  }

  .ec-design-rail-room:hover {
    transform: translateY(-1px);
  }

  .ec-design-rail-room.active {
    box-shadow: 0 0 calc(22px * var(--neon)/100) hsla(var(--h),85%,65%,0.45);
  }

  .ec-design-rail-room.plus {
    background: rgba(138,91,255,0.08);
    border-color: rgba(164,132,255,0.25);
    color: #a484ff;
  }

  .ec-design-rail-room b {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff6bd0, #8a5bff);
    color: #fff;
    font: 600 9.5px/16px var(--font-mono);
    text-align: center;
    box-shadow: 0 0 10px rgba(255,107,208,0.5);
  }

  .ec-design-rail-avatar {
    width: 44px;
    height: 44px;
    margin-top: 12px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(135deg,#8a5bff,#6beaff);
    cursor: pointer;
  }

  .ec-design-app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .ec-design-top-header {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    flex: 0 0 auto;
  }

  .ec-design-top-header h1 {
    margin: 6px 0 0;
    font: 700 clamp(28px, 3vw, 42px)/1 var(--font);
    letter-spacing: -0.05em;
    color: var(--ink-0);
  }

  .ec-design-top-actions,
  .ec-design-contact-tools,
  .ec-design-filter-row,
  .ec-design-chat-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .ec-design-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font: 500 11px/1 var(--font-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-1);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
  }

  .ec-design-chip.acid,
  .ec-design-chip.key {
    color: var(--acid);
    border-color: rgba(122, 255, 176, 0.2);
    background: rgba(122, 255, 176, 0.05);
  }

  .ec-design-chip.acid i,
  .ec-design-chat-contact i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--acid);
    box-shadow: 0 0 calc(8px * var(--neon) / 100) var(--acid);
  }

  .ec-design-btn,
  .ec-design-chat-actions button,
  .ec-design-chat-compose button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.02);
    color: var(--ink-0);
    font: 500 13px/1 var(--font);
    cursor: pointer;
    transition: all 160ms ease;
  }

  .ec-design-btn:hover,
  .ec-design-chat-actions button:hover,
  .ec-design-chat-compose button:hover {
    border-color: rgba(138, 91, 255, 0.5);
    background: rgba(138, 91, 255, 0.07);
  }

  #ec-claude-shell .ec-design-btn.primary {
    border-color: rgba(164,132,255,0.46);
    background:
      linear-gradient(135deg, rgba(138,91,255,0.76), rgba(107,234,255,0.24)),
      rgba(20,18,42,0.92);
    color: #fff;
    box-shadow: 0 14px 30px rgba(138,91,255,0.18);
  }

  #ec-claude-shell .ec-design-btn.ghost {
    background: transparent;
    color: rgba(232,230,255,0.72);
  }

  .ec-design-app-body {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 20px;
    padding: 0 28px 20px;
    min-height: 0;
    overflow: hidden;
  }

  .ec-design-contacts-pane {
    padding: 20px 0 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }

  .ec-design-pane-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 20px;
  }

  .ec-design-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(18,18,38,0.6);
    border: 1px solid var(--line);
    width: min(300px, 26vw);
  }

  .ec-design-search input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--ink-0);
    font: 400 13px/1 var(--font);
  }

  .ec-design-search input::placeholder {
    color: var(--ink-3);
  }

  .ec-design-search kbd {
    font-family: var(--font-mono);
    font-size: 10.5px;
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    color: var(--ink-1);
  }

  .ec-design-filter-row {
    margin-bottom: 18px;
  }

  .ec-design-segment {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: rgba(10, 10, 24, 0.6);
    border: 1px solid var(--line);
    gap: 2px;
  }

  .ec-design-segment button {
    padding: 7px 14px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: var(--ink-2);
    font: 500 12px/1 var(--font);
    cursor: pointer;
  }

  .ec-design-segment button.active {
    background: linear-gradient(180deg, rgba(138, 91, 255, 0.22), rgba(138, 91, 255, 0.08));
    color: var(--ink-0);
    box-shadow: inset 0 0 0 1px rgba(164, 132, 255, 0.35);
  }

  .ec-design-contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
    overflow-y: auto;
    padding-right: 4px;
    padding-bottom: 10px;
  }

  .ec-design-contacts-grid::-webkit-scrollbar,
  .ec-design-chat-stream::-webkit-scrollbar {
    width: 8px;
  }

  .ec-design-contacts-grid::-webkit-scrollbar-thumb,
  .ec-design-chat-stream::-webkit-scrollbar-thumb {
    background: rgba(138,136,176,0.18);
    border-radius: 10px;
  }

  .ec-design-contact-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(18,18,38,0.5);
    cursor: pointer;
    text-align: left;
    transition: all 180ms ease;
    color: inherit;
    min-width: 0;
  }

  .ec-design-contact-card:hover {
    border-color: rgba(164,132,255,0.3);
    background: rgba(22,22,46,0.7);
    transform: translateY(-1px);
  }

  .ec-design-contact-card.active {
    border-color: rgba(164,132,255,0.55);
    background: linear-gradient(135deg, rgba(138,91,255,0.15), rgba(18,18,38,0.6));
    box-shadow: 0 0 calc(28px * var(--neon)/100) rgba(138,91,255,0.3);
  }

  .ec-design-contact-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 22px;
    border: 1px solid color-mix(in srgb, var(--c), transparent 40%);
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 30%, var(--c), color-mix(in srgb, var(--c), transparent 86%) 70%);
    box-shadow: 0 0 calc(18px * var(--neon)/100) color-mix(in srgb, var(--c), transparent 60%);
  }

  .ec-design-contact-avatar i,
  .ec-design-chat-avatar i {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #0b0b1c;
    background: #7affb0;
    box-shadow: 0 0 8px #7affb0;
  }

  .ec-design-contact-avatar.away i {
    background: #ffb84a;
    box-shadow: 0 0 8px #ffb84a;
  }

  .ec-design-contact-avatar.offline i {
    background: #5a587a;
    box-shadow: none;
  }

  .ec-design-contact-body {
    flex: 1;
    min-width: 0;
  }

  .ec-design-contact-body strong {
    font: 600 14px/1.2 var(--font);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ink-0);
  }

  .ec-design-contact-body em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 5px;
    background: rgba(122,255,176,0.08);
    border: 1px solid rgba(122,255,176,0.2);
    color: #7affb0;
    font: 700 9px/1 var(--font-mono);
  }

  .ec-design-contact-body small {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
  }

  .ec-design-contact-body b {
    color: #7affb0;
    font: 500 11px/1 var(--font-mono);
    letter-spacing: 0.02em;
  }

  .ec-design-contact-body u {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff6bd0, #8a5bff);
    color: white;
    font: 600 10px/18px var(--font-mono);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 0 calc(10px * var(--neon)/100) rgba(255,107,208,0.6);
  }

  .ec-design-chat-pane {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border-radius: 22px !important;
  }

  .ec-design-chat-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
  }

  .ec-design-chat-contact {
    display: flex;
    gap: 12px;
    align-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: inherit;
    padding: 0;
    text-align: left;
  }

  .ec-design-chat-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 22px;
    border: 1px solid rgba(255,255,255,0.1);
    background: radial-gradient(circle at 30% 30%, #8a5bff, rgba(138,91,255,0.14) 70%);
  }

  .ec-design-chat-contact strong {
    display: block;
    font: 600 15px/1.2 var(--font);
    color: var(--ink-0);
  }

  .ec-design-chat-contact small {
    display: flex;
    align-items: center;
    gap: 6px;
    font: 500 11px/1 var(--font-mono);
    color: var(--ink-2);
    margin-top: 4px;
  }

  .ec-design-chat-actions button {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    padding: 0;
  }

  .ec-design-chat-stream {
    flex: 1;
    overflow-y: auto;
    padding: 22px 22px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .ec-design-chat-day {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
    font: 500 10px/1 var(--font-mono);
    color: var(--ink-3);
    letter-spacing: 0.18em;
    padding: 16px 0;
  }

  .ec-design-chat-day span {
    height: 1px;
    background: var(--line);
  }

  .ec-design-chat-day b {
    font: inherit;
  }

  .ec-design-bubble-wrap {
    display: flex;
    gap: 8px;
    align-items: flex-end;
  }

  .ec-design-bubble-wrap.me {
    justify-content: flex-end;
  }

  .ec-design-bubble-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 14px;
    background: rgba(138,91,255,0.1);
    border: 1px solid var(--line);
  }

  .ec-design-bubble {
    max-width: 64%;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(22,22,46,0.6);
    border: 1px solid var(--line);
    position: relative;
  }

  .ec-design-bubble-wrap.me .ec-design-bubble {
    background: linear-gradient(135deg, rgba(138,91,255,0.25), rgba(107,234,255,0.15));
    border-color: rgba(164,132,255,0.3);
  }

  .ec-design-bubble.burn {
    background: linear-gradient(135deg, rgba(255,138,122,0.12), rgba(22,22,46,0.5));
    border-color: rgba(255,138,122,0.25);
  }

  .ec-design-bubble p {
    margin: 0;
    font: 400 13.5px/1.5 var(--font);
    color: var(--ink-0);
  }

  .ec-design-bubble time {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 6px;
    font: 500 10px/1 var(--font-mono);
    color: var(--ink-3);
  }

  .ec-design-chat-compose {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    background: rgba(10,10,24,0.5);
  }

  .ec-design-chat-compose button {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    padding: 0;
  }

  .ec-design-chat-compose button.primary {
    width: auto;
    height: 38px;
    padding: 0 16px;
    background: linear-gradient(90deg, #7a48ff, #b77bff);
    border-color: transparent;
    box-shadow: 0 0 0 1px rgba(180, 160, 255, 0.25), 0 10px 30px -10px rgba(138, 91, 255, 0.55);
  }

  .ec-design-chat-compose input {
    flex: 1;
    min-width: 0;
    background: rgba(18,18,38,0.6);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 11px 18px;
    color: var(--ink-0);
    font: 400 13.5px/1 var(--font);
    outline: 0;
  }

  .ec-design-chat-compose input::placeholder {
    color: var(--ink-3);
  }

  .ec-design-chat-compose span {
    padding: 5px 10px;
    border-radius: 999px;
    font: 500 10px/1 var(--font-mono);
    background: rgba(122,255,176,0.05);
    border: 1px solid rgba(122,255,176,0.2);
    color: #7affb0;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }
}

@media (min-width: 900px) {
  #ec-claude-shell .ec-shell-view {
    display: none;
    min-width: 0;
    min-height: 0;
    height: 100%;
  }

  #ec-claude-shell .ec-shell-view.active {
    display: flex;
    flex-direction: column;
  }

  #ec-claude-shell .ec-shell-view[data-ec-shell-panel="private-chat"].active {
    display: flex;
  }

  #ec-claude-shell button {
    pointer-events: auto;
  }

  .ec-design-contact-card.ec-real-card {
    overflow: hidden;
  }

  .ec-real-badge {
    position: absolute;
    top: 8px;
    right: 9px;
    z-index: 2;
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid rgba(122,255,176,0.24);
    background: rgba(122,255,176,0.06);
    color: rgba(122,255,176,0.78);
    font: 700 8px/1 var(--font-mono);
    letter-spacing: 0.14em;
  }

  .ec-real-preview {
    color: var(--ink-3);
    font: 400 11.5px/1.25 var(--font);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block !important;
  }

  .ec-settings-shell {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
    padding: 0 28px 20px;
    overflow: hidden;
  }

  .ec-settings-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 10px;
    border-radius: 18px !important;
    min-height: 0;
  }

  .ec-settings-nav > .ec-design-eyebrow {
    padding: 0 12px 12px;
  }

  .ec-settings-nav button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    color: var(--ink-1);
    font: 500 13px/1 var(--font);
    cursor: pointer;
    text-align: left;
  }

  .ec-settings-nav button:hover {
    background: rgba(255,255,255,0.03);
  }

  .ec-settings-nav button.active {
    background: linear-gradient(135deg, rgba(138,91,255,0.18), rgba(138,91,255,0.04));
    color: var(--ink-0);
    box-shadow: inset 0 0 0 1px rgba(164,132,255,0.3);
  }

  .ec-settings-nav button span {
    margin-left: auto;
    color: var(--ink-3);
  }

  .ec-settings-score {
    margin-top: auto;
    padding: 18px 12px 10px;
    border-top: 1px solid var(--line);
    text-align: center;
  }

  .ec-settings-score strong {
    display: block;
    margin-top: 12px;
    color: #7affb0;
    font: 700 42px/1 var(--font);
    text-shadow: 0 0 calc(16px * var(--neon)/100) rgba(122,255,176,0.6);
  }

  .ec-settings-score small {
    display: block;
    margin-top: 6px;
    color: var(--ink-3);
    font: 600 10px/1 var(--font-mono);
    letter-spacing: 0.1em;
  }

  .ec-settings-panel {
    min-height: 0;
    overflow-y: auto;
    border-radius: 22px !important;
    padding: 26px;
  }

  .ec-settings-section {
    display: none;
  }

  .ec-settings-section.active {
    display: block;
  }

  .ec-settings-card {
    position: relative;
    margin-bottom: 16px;
    padding: 22px;
    border: 1px solid rgba(138,136,176,0.13);
    border-radius: 20px;
    background:
      radial-gradient(ellipse at 0% 0%, rgba(138,91,255,0.08), transparent 58%),
      rgba(18,18,38,0.54);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.035),
      0 16px 44px rgba(0,0,0,0.18);
    overflow: hidden;
  }

  .ec-settings-card.danger {
    border-color: rgba(255,138,122,0.26);
    background:
      radial-gradient(ellipse at 0% 0%, rgba(255,138,122,0.12), transparent 58%),
      rgba(22,14,26,0.58);
  }

  .ec-settings-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
  }

  .ec-settings-section h2,
  .ec-placeholder-view h2 {
    margin: 0;
    color: var(--ink-0);
    font: 700 clamp(28px, 3vw, 42px)/1 var(--font);
    letter-spacing: -0.05em;
  }

  .ec-settings-section h3 {
    margin: 0 0 8px;
    color: var(--ink-0);
    font: 650 17px/1.15 var(--font);
    letter-spacing: -0.025em;
  }

  .ec-settings-section p,
  .ec-placeholder-view p {
    max-width: 68ch;
    margin: 8px 0 0;
    color: var(--ink-2);
    font: 400 13.5px/1.6 var(--font);
  }

  .ec-settings-identity-grid {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }

  .ec-settings-avatar-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    background: rgba(18,18,38,0.5);
    text-align: center;
  }

  .ec-settings-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 14px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    font-size: 56px;
    background: radial-gradient(circle at 30% 30%, #8a5bff, rgba(138,91,255,0.16) 70%);
    border: 1px solid rgba(164,132,255,0.35);
    box-shadow: 0 0 calc(50px * var(--neon)/100) rgba(138,91,255,0.38);
  }

  .ec-settings-kv {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(18,18,38,0.5);
    overflow: hidden;
  }

  .ec-settings-kv > div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
  }

  .ec-settings-kv > div:last-child {
    border-bottom: 0;
  }

  .ec-settings-kv span {
    color: var(--ink-2);
    font: 600 12.5px/1.2 var(--font);
  }

  .ec-settings-kv small,
  .ec-settings-row small,
  .ec-settings-fact-grid small {
    display: block;
    margin-top: 5px;
    color: var(--ink-3);
    font: 500 11px/1.25 var(--font);
  }

  .ec-settings-kv strong {
    color: var(--ink-0);
    font: 600 13px/1.2 var(--font-mono);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ec-settings-kv button {
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255,255,255,0.02);
    color: var(--ink-0);
    padding: 8px 12px;
    font: 600 11px/1 var(--font);
    cursor: pointer;
  }

  .ec-settings-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(138,136,176,0.16);
    border-radius: 999px;
    background: rgba(255,255,255,0.025);
    color: var(--ink-1);
    font: 800 10px/1 var(--font-mono);
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .ec-settings-pill.on {
    border-color: rgba(122,255,176,0.22);
    background: rgba(122,255,176,0.06);
    color: #7affb0;
  }

  .ec-settings-toggle-list {
    display: grid;
    border: 1px solid rgba(138,136,176,0.11);
    border-radius: 16px;
    background: rgba(6,6,18,0.32);
    overflow: hidden;
  }

  .ec-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 16px;
    border-bottom: 1px solid rgba(138,136,176,0.1);
  }

  .ec-settings-row:last-child {
    border-bottom: 0;
  }

  .ec-settings-row > span {
    min-width: 0;
    color: var(--ink-0);
    font: 650 13.5px/1.2 var(--font);
  }

  .ec-settings-switch {
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
    padding: 2px;
    border: 1px solid rgba(138,136,176,0.16);
    border-radius: 999px;
    background: rgba(255,255,255,0.045);
    cursor: pointer;
  }

  .ec-settings-switch i {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(232,230,255,0.72);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
  }

  .ec-settings-switch.on {
    border-color: rgba(122,255,176,0.28);
    background: rgba(122,255,176,0.12);
  }

  .ec-settings-switch.on i {
    transform: translateX(20px);
    background: #7affb0;
    box-shadow: 0 0 calc(16px * var(--neon)/100) rgba(122,255,176,0.64);
  }

  .ec-settings-key-block {
    display: grid;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(122,255,176,0.15);
    border-radius: 14px;
    background: rgba(6,6,18,0.54);
  }

  .ec-settings-key-block div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 7px 0;
    color: var(--ink-1);
    font: 650 12px/1.25 var(--font-mono);
  }

  .ec-settings-key-block span {
    color: var(--ink-3);
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .ec-settings-key-block strong {
    color: #7affb0;
    font-weight: 700;
    text-align: right;
  }

  .ec-settings-slider {
    margin-top: 10px;
  }

  .ec-settings-slider > div:first-child {
    display: flex;
    justify-content: space-between;
    color: var(--ink-1);
    font: 650 13px/1 var(--font);
  }

  .ec-settings-slider > div:first-child strong {
    color: #7affb0;
    font-family: var(--font-mono);
  }

  .ec-settings-slider-track {
    height: 7px;
    margin: 24px 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.055);
    box-shadow: inset 0 0 0 1px rgba(138,136,176,0.13);
    overflow: hidden;
  }

  .ec-settings-slider-track i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7affb0, #6beaff);
    box-shadow: 0 0 calc(16px * var(--neon)/100) rgba(122,255,176,0.44);
  }

  .ec-settings-marks {
    display: flex;
    justify-content: space-between;
    color: var(--ink-3);
    font: 700 10px/1 var(--font-mono);
    letter-spacing: 0.08em;
  }

  .ec-theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 14px;
  }

  .ec-theme-grid button {
    position: relative;
    min-height: 148px;
    padding: 14px;
    border: 1px solid rgba(138,136,176,0.14);
    border-radius: 18px;
    background: var(--bg);
    color: var(--ink-0);
    text-align: left;
    cursor: pointer;
    overflow: hidden;
  }

  .ec-theme-grid button.active {
    border-color: color-mix(in srgb, var(--c), transparent 24%);
    box-shadow:
      0 0 calc(28px * var(--neon)/100) color-mix(in srgb, var(--c), transparent 55%),
      inset 0 0 0 1px color-mix(in srgb, var(--c), transparent 38%);
  }

  .ec-theme-grid i {
    display: block;
    height: 78px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.055);
    border-radius: 12px;
    background:
      radial-gradient(circle at 28% 25%, color-mix(in srgb, var(--c), transparent 56%), transparent 58%),
      linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
  }

  .ec-theme-grid strong {
    display: block;
    color: var(--ink-0);
    font: 700 13px/1 var(--font);
  }

  .ec-theme-grid span {
    display: flex;
    gap: 5px;
    margin-top: 9px;
  }

  .ec-theme-grid span::before,
  .ec-theme-grid span::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c);
  }

  .ec-settings-segment {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 16px;
    padding: 5px;
    border: 1px solid rgba(138,136,176,0.12);
    border-radius: 14px;
    background: rgba(6,6,18,0.4);
  }

  .ec-settings-segment button {
    min-height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink-2);
    font: 700 11px/1 var(--font);
    cursor: pointer;
  }

  .ec-settings-segment button.active {
    background: rgba(138,91,255,0.16);
    color: var(--ink-0);
    box-shadow: inset 0 0 0 1px rgba(164,132,255,0.24);
  }

  .ec-settings-fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
  }

  .ec-settings-fact-grid > div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(122,255,176,0.13);
    border-radius: 14px;
    background: rgba(122,255,176,0.035);
  }

  .ec-settings-fact-grid b {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(122,255,176,0.08);
    font-size: 15px;
  }

  .ec-settings-fact-grid span {
    color: var(--ink-0);
    font: 700 13px/1.15 var(--font);
  }

  .ec-settings-actions,
  .ec-settings-danger-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
  }

  .ec-settings-danger-row input {
    flex: 1 1 280px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(255,138,122,0.22);
    border-radius: 14px;
    background: rgba(6,6,18,0.55);
    color: var(--ink-0);
    font: 600 12px/1 var(--font-mono);
    outline: 0;
  }

  .ec-settings-toggles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 22px;
  }

  .ec-settings-toggles span {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    background: rgba(18,18,38,0.5);
    color: var(--ink-1);
    font: 600 13px/1.2 var(--font);
  }

  .ec-settings-toggles b {
    display: block;
    margin-top: 8px;
    color: #7affb0;
    font: 700 11px/1 var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .ec-theme-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
  }

  .ec-theme-row i {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: var(--c);
    box-shadow: 0 0 calc(24px * var(--neon)/100) color-mix(in srgb, var(--c), transparent 45%);
  }

  .ec-placeholder-view {
    margin: 0 28px 20px;
    flex: 1;
    min-height: 0;
    border-radius: 26px !important;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
    padding: 40px;
  }

  .ec-placeholder-view > span {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(138,91,255,0.24), rgba(107,234,255,0.12));
    border: 1px solid rgba(164,132,255,0.3);
    color: #a484ff;
    font-size: 34px;
    box-shadow: 0 0 calc(36px * var(--neon)/100) rgba(138,91,255,0.32);
  }

  .ec-placeholder-view .ec-design-btn {
    margin-top: 22px;
  }
}

@media (min-width: 900px) {
  body.auth-ready.ec-rooms-open #cd-shell {
    background:
      radial-gradient(ellipse at 18% -12%, rgba(138,91,255,0.16), transparent 52%),
      radial-gradient(ellipse at 92% 88%, rgba(107,234,255,0.08), transparent 48%),
      #050511 !important;
  }

  #ec-claude-shell.ec-design-app-shell {
    background: transparent;
  }

  #ec-claude-shell .ec-shell-view[data-ec-shell-panel="private-chat"].active {
    height: 100dvh;
    overflow: hidden;
  }

  body.auth-ready footer,
  body.auth-ready .v11-footer-legal {
    display: none !important;
  }

  body.auth-ready:has(#ec-claude-shell[data-ec-view="private-chat"]) #aura-fab {
    right: 18px !important;
    bottom: 18px !important;
    width: 44px !important;
    height: 44px !important;
    opacity: 0.18 !important;
    transform: scale(0.74) !important;
    pointer-events: none !important;
  }

  body.auth-ready:has(#ec-claude-shell[data-ec-view="private-chat"]) #aura-fab .aura-fab-copy {
    display: none !important;
  }

  #ec-claude-shell .ec-shell-view[data-ec-shell-panel="private-chat"] .ec-design-top-header {
    height: 64px;
    padding: 0 18px 0 20px;
    border-bottom: 1px solid rgba(138,136,176,0.08);
  }

  #ec-claude-shell .ec-shell-view[data-ec-shell-panel="private-chat"] .ec-design-top-header h1 {
    font-size: clamp(22px, 1.8vw, 28px);
    letter-spacing: -0.045em;
  }

  #ec-claude-shell .ec-shell-view[data-ec-shell-panel="private-chat"] .ec-design-top-actions {
    gap: 8px;
  }

  #ec-claude-shell .ec-shell-view[data-ec-shell-panel="private-chat"] .ec-design-top-actions .ec-design-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  #ec-claude-shell .ec-design-app-body {
    grid-template-columns: clamp(360px, 28vw, 420px) minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px 12px;
    height: calc(100dvh - 64px);
    min-height: 0;
    align-items: stretch;
  }

  #ec-claude-shell .ec-design-contacts-pane {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 14px 12px;
    border: 1px solid rgba(138,136,176,0.12);
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(16,16,34,0.72), rgba(9,9,22,0.78)),
      rgba(10,10,24,0.66);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
  }

  #ec-claude-shell .ec-design-pane-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 10px;
  }

  #ec-claude-shell .ec-design-contact-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
  }

  #ec-claude-shell .ec-design-search {
    width: auto;
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    background: rgba(7,7,18,0.62);
  }

  #ec-claude-shell .ec-design-contact-tools .ec-design-btn {
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    white-space: nowrap;
    font-size: 12px;
  }

  #ec-claude-shell .ec-design-filter-row {
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }

  #ec-claude-shell .ec-design-filter-row .ec-design-chip {
    display: none;
  }

  #ec-claude-shell .ec-design-segment {
    width: 100%;
    border-radius: 12px;
  }

  #ec-claude-shell .ec-design-segment button {
    flex: 1;
    padding: 7px 8px;
    font-size: 11px;
  }

  #ec-claude-shell .ec-design-contacts-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 3px 4px 0;
  }

  #ec-claude-shell .ec-design-contact-card {
    min-height: 64px;
    width: 100%;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 48px;
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    border-radius: 14px;
    border-color: rgba(138,136,176,0.09);
    background: rgba(255,255,255,0.018);
    box-shadow: none;
  }

  #ec-claude-shell .ec-design-contact-card:hover {
    transform: none;
    background: rgba(138,91,255,0.075);
    border-color: rgba(164,132,255,0.22);
  }

  #ec-claude-shell .ec-design-contact-card.active {
    transform: none;
    border-color: rgba(164,132,255,0.46);
    background:
      linear-gradient(90deg, rgba(138,91,255,0.2), rgba(107,234,255,0.065)),
      rgba(18,18,38,0.62);
    box-shadow:
      inset 2px 0 0 rgba(164,132,255,0.9),
      0 12px 28px rgba(0,0,0,0.18);
  }

  #ec-claude-shell .ec-design-contact-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 19px;
  }

  #ec-claude-shell .ec-design-contact-body {
    min-width: 0;
  }

  #ec-claude-shell .ec-design-contact-body strong {
    padding-right: 0;
    font-size: 13.5px;
    letter-spacing: -0.01em;
  }

  #ec-claude-shell .ec-design-contact-body small {
    margin-top: 4px;
    min-width: 0;
  }

  #ec-claude-shell .ec-design-contact-body b {
    color: var(--ink-2);
    font-size: 10.5px;
  }

  #ec-claude-shell .ec-real-preview {
    margin-top: 3px !important;
    max-width: 100%;
    color: rgba(200,198,231,0.58);
    font-size: 11.5px;
  }

  #ec-claude-shell .ec-real-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 7px;
    min-width: 0;
  }

  #ec-claude-shell .ec-real-meta time {
    color: rgba(200,198,231,0.5);
    font: 600 9.5px/1 var(--font-mono);
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  #ec-claude-shell .ec-real-meta b,
  #ec-claude-shell .ec-real-meta i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    font: 800 10px/1 var(--font-mono);
    text-decoration: none;
  }

  #ec-claude-shell .ec-real-meta b {
    background: linear-gradient(135deg, rgba(122,255,176,0.95), rgba(107,234,255,0.86));
    color: #06100d;
    box-shadow: 0 0 18px rgba(122,255,176,0.18);
  }

  #ec-claude-shell .ec-real-meta i {
    border: 1px solid rgba(138,136,176,0.13);
    color: rgba(200,198,231,0.42);
    font-style: normal;
  }

  #ec-claude-shell .ec-design-contact-body u {
    position: absolute;
    right: 12px;
    bottom: 12px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
  }

  #ec-claude-shell .ec-shell-empty-rooms {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 1;
    min-height: 0;
    height: 100%;
    padding: 24px 18px;
    border: 1px solid rgba(138,136,176,0.14);
    border-radius: 18px;
    background:
      radial-gradient(circle at 50% 0%, rgba(138,91,255,0.18), transparent 45%),
      linear-gradient(180deg, rgba(18,18,38,0.72), rgba(8,8,20,0.76));
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.045),
      0 18px 48px rgba(0,0,0,0.22);
    text-align: center;
  }

  #ec-claude-shell .ec-shell-empty-orb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(164,132,255,0.32);
    border-radius: 20px;
    background:
      radial-gradient(circle at 30% 20%, rgba(107,234,255,0.24), transparent 38%),
      rgba(138,91,255,0.13);
    box-shadow:
      0 0 34px rgba(138,91,255,0.22),
      inset 0 1px 0 rgba(255,255,255,0.08);
    color: #e8e6ff;
    font-size: 24px;
  }

  #ec-claude-shell .ec-shell-empty-rooms strong {
    color: var(--ink-0);
    font-size: 18px;
    letter-spacing: -0.02em;
  }

  #ec-claude-shell .ec-shell-empty-rooms p,
  #ec-claude-shell .ec-shell-chat-empty-card p {
    max-width: 520px;
    margin: 0;
    color: rgba(200,198,231,0.66);
    font-size: 13px;
    line-height: 1.55;
  }

  #ec-claude-shell .ec-shell-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-top: 4px;
  }

  #ec-claude-shell .ec-shell-empty-actions .ec-design-btn {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 12px;
  }

  #ec-claude-shell .ec-design-chat-pane {
    height: 100%;
    min-width: 0;
    min-height: 0;
    border-radius: 18px !important;
    background:
      radial-gradient(ellipse at 18% 0%, rgba(138,91,255,0.12), transparent 36%),
      radial-gradient(ellipse at 85% 100%, rgba(107,234,255,0.075), transparent 40%),
      linear-gradient(180deg, rgba(13,13,30,0.82), rgba(7,7,18,0.88));
    box-shadow:
      0 20px 70px rgba(0,0,0,0.34),
      inset 0 1px 0 rgba(255,255,255,0.04);
  }

  #ec-claude-shell .ec-design-chat-head {
    min-height: 64px;
    padding: 10px 16px;
    background: rgba(10,10,24,0.58);
    border-bottom: 1px solid rgba(138,136,176,0.12);
  }

  #ec-claude-shell .ec-design-chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  #ec-claude-shell .ec-design-chat-contact strong {
    font-size: 15px;
  }

  #ec-claude-shell .ec-design-chat-contact small {
    margin-top: 5px;
    font-size: 10.5px;
    color: rgba(200,198,231,0.62);
  }

  #ec-claude-shell .ec-design-chat-actions {
    gap: 7px;
  }

  #ec-claude-shell .ec-design-chat-actions .ec-design-chip {
    padding: 5px 8px;
    font-size: 9.5px;
  }

  #ec-claude-shell .ec-design-chat-actions button {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  #ec-claude-shell .ec-design-chat-stream {
    padding: 18px clamp(20px, 4vw, 54px) 14px;
    gap: 8px;
    background:
      linear-gradient(rgba(138,136,176,0.026) 1px, transparent 1px),
      linear-gradient(90deg, rgba(138,136,176,0.026) 1px, transparent 1px);
    background-size: 34px 34px;
  }

  #ec-claude-shell .ec-shell-chat-empty {
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 20px;
  }

  #ec-claude-shell .ec-shell-chat-empty-card {
    width: min(540px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: clamp(26px, 4vw, 46px);
    border: 1px solid rgba(138,136,176,0.18);
    border-radius: 30px;
    background:
      radial-gradient(circle at 50% -10%, rgba(138,91,255,0.24), transparent 46%),
      radial-gradient(circle at 92% 112%, rgba(107,234,255,0.13), transparent 42%),
      linear-gradient(180deg, rgba(18,18,40,0.72), rgba(8,8,20,0.78));
    box-shadow:
      0 28px 90px rgba(0,0,0,0.32),
      inset 0 1px 0 rgba(255,255,255,0.055);
    text-align: center;
  }

  #ec-claude-shell .ec-shell-chat-empty-card h2 {
    max-width: 460px;
    margin: 0;
    color: var(--ink-0);
    font-size: clamp(23px, 2.6vw, 34px);
    line-height: 1.05;
    letter-spacing: -0.055em;
  }

  #ec-claude-shell .ec-shell-chat-empty-card small {
    margin-top: 2px;
    color: rgba(122,255,176,0.72);
    font-family: var(--mono, var(--font));
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  #ec-claude-shell .ec-design-chat-day {
    padding: 10px 0 18px;
    gap: 12px;
    font-size: 9.5px;
    letter-spacing: 0.14em;
  }

  #ec-claude-shell .ec-design-bubble-wrap {
    width: 100%;
  }

  #ec-claude-shell .ec-design-bubble-wrap.them {
    justify-content: flex-start;
  }

  #ec-claude-shell .ec-design-bubble-wrap.me {
    justify-content: flex-end;
  }

  #ec-claude-shell .ec-design-bubble-avatar {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    opacity: 0.78;
  }

  #ec-claude-shell .ec-design-bubble {
    max-width: min(620px, 72%);
    padding: 9px 12px 8px;
    border-radius: 16px;
    background: rgba(18,18,38,0.78);
    border-color: rgba(138,136,176,0.12);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  }

  #ec-claude-shell .ec-design-bubble-wrap.them .ec-design-bubble {
    border-top-left-radius: 7px;
  }

  #ec-claude-shell .ec-design-bubble-wrap.me .ec-design-bubble {
    border-top-right-radius: 7px;
    background:
      linear-gradient(135deg, rgba(138,91,255,0.34), rgba(107,234,255,0.13)),
      rgba(24,18,48,0.84);
    border-color: rgba(164,132,255,0.26);
  }

  #ec-claude-shell .ec-design-bubble.burn {
    background:
      linear-gradient(135deg, rgba(255,138,122,0.13), rgba(22,22,46,0.76));
    border-color: rgba(255,138,122,0.24);
  }

  #ec-claude-shell .ec-design-bubble p {
    font-size: 13.5px;
    line-height: 1.48;
  }

  #ec-claude-shell .ec-design-bubble time {
    margin-top: 5px;
    font-size: 9.5px;
    opacity: 0.72;
  }

  #ec-claude-shell .ec-design-chat-compose {
    min-height: 64px;
    padding: 10px 12px;
    gap: 8px;
    background: rgba(8,8,20,0.78);
    border-top: 1px solid rgba(138,136,176,0.13);
  }

  #ec-claude-shell .ec-design-chat-compose input {
    height: 40px;
    padding: 0 15px;
    border-radius: 14px;
    background: rgba(18,18,38,0.74);
    font-size: 13px;
  }

  #ec-claude-shell .ec-design-chat-compose button {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  #ec-claude-shell .ec-design-chat-compose button.primary {
    height: 38px;
    width: auto;
    min-width: 104px;
    padding: 0 15px;
    border-radius: 13px;
  }

  #ec-claude-shell .ec-design-chat-compose span {
    padding: 5px 8px;
    font-size: 9px;
    letter-spacing: 0.08em;
  }
}

@media (min-width: 900px) and (max-width: 1120px) {
  #ec-claude-shell .ec-design-app-body {
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 10px;
    padding-inline: 10px;
  }

  #ec-claude-shell .ec-design-top-actions .ec-design-chip.acid,
  #ec-claude-shell .ec-design-top-actions .ec-design-btn:first-of-type,
  #ec-claude-shell .ec-design-chat-compose span {
    display: none;
  }

  #ec-claude-shell .ec-design-chat-stream {
    padding-inline: 22px;
  }
}

@media (min-width: 900px) {
  #ec-claude-shell.ec-design-app-shell {
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr);
  }

  #ec-claude-shell .ec-design-rail {
    position: sticky;
    top: 0;
    height: 100dvh;
    z-index: 6;
  }

  #ec-claude-shell [hidden] {
    display: none !important;
  }

  #ec-claude-shell .ec-design-app-main {
    position: relative;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  #ec-claude-shell .ec-shell-view[data-ec-shell-panel] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  #ec-claude-shell[data-ec-view="private-chat"] .ec-shell-view[data-ec-shell-panel="private-chat"],
  #ec-claude-shell[data-ec-view="settings"] .ec-shell-view[data-ec-shell-panel="settings"],
  #ec-claude-shell[data-ec-view="vault"] .ec-shell-view[data-ec-shell-panel="vault"],
  #ec-claude-shell[data-ec-view="archive"] .ec-shell-view[data-ec-shell-panel="archive"],
  #ec-claude-shell[data-ec-view="security"] .ec-shell-view[data-ec-shell-panel="security"] {
    display: flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: absolute !important;
  }

  #ec-claude-shell:not([data-ec-view="settings"]) .ec-shell-view[data-ec-shell-panel="settings"] {
    display: none !important;
  }

  #ec-claude-shell:not([data-ec-view="settings"]) .ec-settings-shell,
  #ec-claude-shell:not([data-ec-view="settings"]) .ec-settings-nav,
  #ec-claude-shell:not([data-ec-view="settings"]) .ec-settings-panel,
  #ec-claude-shell:not([data-ec-view="settings"]) [data-ec-settings-section],
  #ec-claude-shell:not([data-ec-view="settings"]) [data-ec-settings-panel] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  #ec-claude-shell[data-ec-view="private-chat"] .ec-shell-view[data-ec-shell-panel="settings"],
  #ec-claude-shell[data-ec-view="settings"] .ec-shell-view[data-ec-shell-panel="private-chat"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  #ec-claude-shell[data-ec-view="settings"] .ec-settings-shell {
    height: calc(100dvh - 84px);
    grid-template-columns: 280px minmax(0, 1fr);
    padding: 0 28px 24px;
    gap: 20px;
  }

  #ec-claude-shell[data-ec-view="settings"] .ec-settings-nav {
    background:
      linear-gradient(180deg, rgba(20,20,42,0.76), rgba(11,11,28,0.84)),
      rgba(10,10,24,0.72);
    border: 1px solid rgba(138,136,176,0.13);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  }

  #ec-claude-shell[data-ec-view="settings"] .ec-settings-panel {
    background:
      radial-gradient(ellipse at 10% 0%, rgba(138,91,255,0.13), transparent 38%),
      radial-gradient(ellipse at 90% 100%, rgba(107,234,255,0.07), transparent 44%),
      linear-gradient(180deg, rgba(20,20,42,0.74), rgba(10,10,24,0.84));
    border: 1px solid rgba(138,136,176,0.13);
    box-shadow: 0 20px 70px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.04);
  }
}

@media (max-width: 899px) {
  #ec-claude-shell-v2 {
    display: none !important;
  }
}

@media (min-width: 900px) {
  body.auth-ready.ec-rooms-open #cd-shell {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 140 !important;
    overflow: hidden !important;
    background:
      radial-gradient(ellipse at 18% -12%, rgba(138,91,255,0.22), transparent 48%),
      radial-gradient(ellipse at 100% 96%, rgba(107,234,255,0.10), transparent 46%),
      #050510 !important;
  }

  body.auth-ready #ec-claude-shell {
    display: none !important;
  }

  body.auth-ready.ec-rooms-open footer,
  body.auth-ready.ec-rooms-open #lp-footer,
  body.auth-ready.ec-rooms-open .v11-footer-legal {
    display: none !important;
  }

  body.auth-ready.ec-rooms-open #aura-fab {
    right: 18px !important;
    bottom: 18px !important;
    width: 42px !important;
    height: 42px !important;
    opacity: 0.16 !important;
    transform: scale(0.72) !important;
    pointer-events: none !important;
  }

  body.auth-ready.ec-rooms-open #aura-fab .aura-fab-copy {
    display: none !important;
  }

  #ec-claude-shell-v2,
  #ec-claude-shell-v2 * {
    box-sizing: border-box;
  }

  #ec-claude-shell-v2 {
    --v2-bg: #050510;
    --v2-card: rgba(16,16,34,0.78);
    --v2-card-2: rgba(11,11,26,0.86);
    --v2-line: rgba(148,145,190,0.14);
    --v2-line-2: rgba(164,132,255,0.30);
    --v2-text: #f4f3ff;
    --v2-muted: #9d9abe;
    --v2-soft: #c9c6ea;
    --v2-violet: #8a5bff;
    --v2-violet-2: #b77bff;
    --v2-cyan: #6beaff;
    --v2-green: #7affb0;
    width: 100%;
    height: 100dvh;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    color: var(--v2-text);
    font-family: 'Space Grotesk', var(--font), ui-sans-serif, system-ui, sans-serif;
    letter-spacing: -0.01em;
    overflow: hidden;
    isolation: isolate;
    position: relative;
  }

  #ec-claude-shell-v2::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background-image:
      linear-gradient(rgba(148,145,190,0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(148,145,190,0.045) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse at 52% 42%, #000 22%, transparent 78%);
    mask-image: radial-gradient(ellipse at 52% 42%, #000 22%, transparent 78%);
  }

  #ec-claude-shell-v2::after {
    content: '';
    position: fixed;
    inset: 4% 5% 6%;
    z-index: -1;
    border-radius: 42px;
    background:
      linear-gradient(135deg, rgba(138,91,255,0.18), transparent 35%, rgba(107,234,255,0.08) 75%),
      rgba(255,255,255,0.015);
    filter: blur(34px);
    pointer-events: none;
  }

  #ec-claude-shell-v2 button,
  #ec-claude-shell-v2 input {
    font: inherit;
  }

  #ec-claude-shell-v2 button {
    cursor: pointer;
  }

  #ec-claude-shell-v2 .ecv2-rail {
    height: 100dvh;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    border-right: 1px solid var(--v2-line);
    background: linear-gradient(180deg, rgba(13,13,30,0.90), rgba(6,6,18,0.94));
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
  }

  #ec-claude-shell-v2 .ecv2-brand,
  #ec-claude-shell-v2 .ecv2-rail button {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
  }

  #ec-claude-shell-v2 .ecv2-brand {
    margin-bottom: 8px;
    color: #fff;
    font: 900 13px/1 var(--font-mono);
    background: linear-gradient(135deg, var(--v2-violet), var(--v2-cyan));
    box-shadow: 0 18px 42px rgba(138,91,255,0.34), inset 0 1px 0 rgba(255,255,255,0.25);
  }

  #ec-claude-shell-v2 .ecv2-rail-nav,
  #ec-claude-shell-v2 .ecv2-rail-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  #ec-claude-shell-v2 .ecv2-rail-actions {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--v2-line);
  }

  #ec-claude-shell-v2 .ecv2-rail button {
    border: 1px solid transparent;
    background: rgba(255,255,255,0.025);
    color: var(--v2-muted);
    font-size: 19px;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  }

  #ec-claude-shell-v2 .ecv2-rail button:hover,
  #ec-claude-shell-v2 .ecv2-rail button.active {
    transform: translateY(-1px);
    color: #fff;
    border-color: var(--v2-line-2);
    background: linear-gradient(180deg, rgba(138,91,255,0.22), rgba(255,255,255,0.035));
    box-shadow: 0 16px 34px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,255,255,0.08);
  }

  #ec-claude-shell-v2 .ecv2-logout {
    margin-top: 6px;
    color: #ffc4ca !important;
    background: rgba(255,91,111,0.06) !important;
  }

  #ec-claude-shell-v2 .ecv2-main {
    min-width: 0;
    height: 100dvh;
    padding: 14px;
    position: relative;
    overflow: hidden;
  }

  #ec-claude-shell-v2 .ecv2-view {
    position: absolute;
    inset: 14px;
    display: none;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }

  #ec-claude-shell-v2 .ecv2-view.active {
    display: flex;
    flex-direction: column;
  }

  #ec-claude-shell-v2 .ecv2-chat-layout {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    min-height: 0;
  }

  #ec-claude-shell-v2 .ecv2-rooms,
  #ec-claude-shell-v2 .ecv2-chat,
  #ec-claude-shell-v2 .ecv2-settings-nav,
  #ec-claude-shell-v2 .ecv2-settings-panel,
  #ec-claude-shell-v2 .ecv2-placeholder {
    border: 1px solid var(--v2-line);
    background:
      linear-gradient(180deg, rgba(20,20,42,0.76), rgba(9,9,24,0.86)),
      rgba(10,10,24,0.72);
    border-radius: 22px;
    box-shadow: 0 22px 70px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.045);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
  }

  #ec-claude-shell-v2 .ecv2-rooms {
    min-width: 0;
    min-height: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
  }

  #ec-claude-shell-v2 .ecv2-rooms-head,
  #ec-claude-shell-v2 .ecv2-chat-head,
  #ec-claude-shell-v2 .ecv2-view-head,
  #ec-claude-shell-v2 .ecv2-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  #ec-claude-shell-v2 .ecv2-kicker {
    display: block;
    color: var(--v2-muted);
    font: 700 10px/1 var(--font-mono);
    letter-spacing: 0.20em;
  }

  #ec-claude-shell-v2 h1,
  #ec-claude-shell-v2 h2,
  #ec-claude-shell-v2 h3,
  #ec-claude-shell-v2 p {
    margin: 0;
  }

  #ec-claude-shell-v2 .ecv2-rooms-head h1,
  #ec-claude-shell-v2 .ecv2-view-head h1 {
    margin-top: 7px;
    color: var(--v2-text);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 0.98;
    letter-spacing: -0.055em;
  }

  #ec-claude-shell-v2 .ecv2-primary,
  #ec-claude-shell-v2 .ecv2-secondary {
    min-height: 40px;
    border-radius: 14px;
    padding: 0 14px;
    border: 1px solid rgba(164,132,255,0.28);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
  }

  #ec-claude-shell-v2 .ecv2-primary {
    background: linear-gradient(135deg, var(--v2-violet), var(--v2-violet-2));
    box-shadow: 0 16px 34px rgba(138,91,255,0.25);
  }

  #ec-claude-shell-v2 .ecv2-primary.small {
    min-height: 36px;
    padding: 0 12px;
    white-space: nowrap;
  }

  #ec-claude-shell-v2 .ecv2-secondary {
    background: rgba(255,255,255,0.035);
    color: var(--v2-soft);
  }

  #ec-claude-shell-v2 .ecv2-search {
    height: 42px;
    margin: 14px 0 10px;
    border-radius: 14px;
    border: 1px solid rgba(148,145,190,0.12);
    background: rgba(4,4,14,0.48);
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    color: var(--v2-muted);
  }

  #ec-claude-shell-v2 .ecv2-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--v2-soft);
    font-size: 13px;
  }

  #ec-claude-shell-v2 .ecv2-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(148,145,190,0.10);
    margin-bottom: 12px;
  }

  #ec-claude-shell-v2 .ecv2-filters button {
    height: 30px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--v2-muted);
    font-size: 11px;
    font-weight: 800;
  }

  #ec-claude-shell-v2 .ecv2-filters button.active {
    background: rgba(138,91,255,0.22);
    color: #fff;
  }

  #ec-claude-shell-v2 .ecv2-room-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 3px;
  }

  #ec-claude-shell-v2 .ecv2-room {
    width: 100%;
    min-height: 68px;
    border: 1px solid rgba(148,145,190,0.10);
    border-radius: 16px;
    background: rgba(255,255,255,0.022);
    color: inherit;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 46px;
    gap: 10px;
    align-items: center;
    padding: 10px;
    text-align: left;
  }

  #ec-claude-shell-v2 .ecv2-room:hover,
  #ec-claude-shell-v2 .ecv2-room.active {
    border-color: rgba(164,132,255,0.40);
    background: linear-gradient(90deg, rgba(138,91,255,0.18), rgba(107,234,255,0.055));
  }

  #ec-claude-shell-v2 .ecv2-room-avatar,
  #ec-claude-shell-v2 .ecv2-avatar {
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(138,91,255,0.92), rgba(107,234,255,0.52));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 14px 26px rgba(0,0,0,0.22);
  }

  #ec-claude-shell-v2 .ecv2-room-avatar {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  #ec-claude-shell-v2 .ecv2-room-copy {
    min-width: 0;
  }

  #ec-claude-shell-v2 .ecv2-room-copy strong,
  #ec-claude-shell-v2 .ecv2-chat-person strong {
    display: block;
    color: var(--v2-text);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #ec-claude-shell-v2 .ecv2-room-copy small,
  #ec-claude-shell-v2 .ecv2-chat-person small {
    display: block;
    margin-top: 4px;
    color: var(--v2-muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #ec-claude-shell-v2 .ecv2-room-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    color: var(--v2-muted);
    font: 700 10px/1 var(--font-mono);
  }

  #ec-claude-shell-v2 .ecv2-room-meta b,
  #ec-claude-shell-v2 .ecv2-room-meta i {
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 99px;
    font-style: normal;
  }

  #ec-claude-shell-v2 .ecv2-room-meta b {
    background: var(--v2-green);
    color: #06100d;
  }

  #ec-claude-shell-v2 .ecv2-chat {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: 72px minmax(0, 1fr) 70px;
    overflow: hidden;
  }

  #ec-claude-shell-v2 .ecv2-chat-head {
    padding: 12px 18px;
    border-bottom: 1px solid var(--v2-line);
    background: rgba(7,7,20,0.46);
  }

  #ec-claude-shell-v2 .ecv2-chat-person {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  #ec-claude-shell-v2 .ecv2-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }

  #ec-claude-shell-v2 .ecv2-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    border: 1px solid rgba(107,234,255,0.18);
    border-radius: 99px;
    padding: 0 10px;
    color: var(--v2-cyan);
    background: rgba(107,234,255,0.055);
    font: 800 10px/1 var(--font-mono);
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  #ec-claude-shell-v2 .ecv2-chip.green {
    color: var(--v2-green);
    border-color: rgba(122,255,176,0.20);
    background: rgba(122,255,176,0.055);
  }

  #ec-claude-shell-v2 .ecv2-chat-body {
    min-height: 0;
    display: grid;
    place-items: center;
    overflow-y: auto;
    padding: 22px;
    background:
      linear-gradient(rgba(148,145,190,0.026) 1px, transparent 1px),
      linear-gradient(90deg, rgba(148,145,190,0.026) 1px, transparent 1px);
    background-size: 34px 34px;
  }

  #ec-claude-shell-v2 .ecv2-composer {
    border-top: 1px solid var(--v2-line);
    background: rgba(6,6,18,0.72);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto 46px;
    gap: 10px;
    align-items: center;
    padding: 11px 14px;
  }

  #ec-claude-shell-v2 .ecv2-composer button {
    height: 42px;
    border: 1px solid rgba(148,145,190,0.14);
    border-radius: 14px;
    background: rgba(255,255,255,0.035);
    color: var(--v2-soft);
    font-weight: 900;
  }

  #ec-claude-shell-v2 .ecv2-composer .send {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--v2-cyan), var(--v2-violet));
    box-shadow: 0 14px 30px rgba(138,91,255,0.25);
  }

  #ec-claude-shell-v2 .ecv2-composer input {
    height: 42px;
    min-width: 0;
    border: 1px solid rgba(148,145,190,0.12);
    border-radius: 14px;
    outline: 0;
    background: rgba(18,18,38,0.70);
    color: var(--v2-text);
    padding: 0 15px;
    font-size: 13px;
  }

  #ec-claude-shell-v2 .ecv2-composer span {
    color: var(--v2-green);
    font: 800 10px/1 var(--font-mono);
    letter-spacing: 0.08em;
  }

  #ec-claude-shell-v2 .ecv2-empty {
    width: min(560px, 100%);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 28px;
    border: 1px solid rgba(148,145,190,0.15);
    border-radius: 24px;
    background:
      radial-gradient(circle at 50% -10%, rgba(138,91,255,0.20), transparent 48%),
      linear-gradient(180deg, rgba(18,18,38,0.70), rgba(8,8,20,0.78));
  }

  #ec-claude-shell-v2 .ecv2-empty.small {
    width: 100%;
    min-height: 0;
    flex: 1;
    padding: 24px 18px;
  }

  #ec-claude-shell-v2 .ecv2-empty > span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(138,91,255,0.34), rgba(107,234,255,0.12));
    box-shadow: 0 18px 44px rgba(138,91,255,0.22);
  }

  #ec-claude-shell-v2 .ecv2-empty h2 {
    max-width: 440px;
    color: var(--v2-text);
    font-size: clamp(22px, 2.6vw, 34px);
    line-height: 1.05;
    letter-spacing: -0.055em;
  }

  #ec-claude-shell-v2 .ecv2-empty.small h2 {
    font-size: 20px;
  }

  #ec-claude-shell-v2 .ecv2-empty p {
    max-width: 470px;
    color: var(--v2-muted);
    font-size: 13px;
    line-height: 1.6;
  }

  #ec-claude-shell-v2 .ecv2-empty div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  #ec-claude-shell-v2 .ecv2-empty small {
    color: rgba(122,255,176,0.72);
    font: 800 10px/1 var(--font-mono);
    letter-spacing: 0.10em;
  }

  #ec-claude-shell-v2 .ecv2-view-head {
    height: 82px;
    flex: 0 0 82px;
    padding: 0 4px;
  }

  #ec-claude-shell-v2 .ecv2-settings {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 282px minmax(0, 1fr);
    gap: 14px;
  }

  #ec-claude-shell-v2 .ecv2-settings-nav {
    min-height: 0;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  #ec-claude-shell-v2 .ecv2-settings-nav button {
    width: 100%;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 15px;
    background: transparent;
    color: var(--v2-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 13px;
    font-weight: 800;
  }

  #ec-claude-shell-v2 .ecv2-settings-nav button:hover,
  #ec-claude-shell-v2 .ecv2-settings-nav button.active {
    border-color: rgba(164,132,255,0.30);
    background: linear-gradient(90deg, rgba(138,91,255,0.20), rgba(255,255,255,0.025));
    color: #fff;
  }

  #ec-claude-shell-v2 .ecv2-score {
    margin-top: auto;
    border: 1px solid rgba(122,255,176,0.16);
    border-radius: 18px;
    padding: 16px;
    background: rgba(122,255,176,0.045);
  }

  #ec-claude-shell-v2 .ecv2-score span,
  #ec-claude-shell-v2 .ecv2-score small {
    display: block;
    color: var(--v2-muted);
    font-size: 11px;
  }

  #ec-claude-shell-v2 .ecv2-score strong {
    display: block;
    margin: 7px 0 2px;
    color: var(--v2-green);
    font-size: 40px;
    line-height: 1;
    letter-spacing: -0.05em;
  }

  #ec-claude-shell-v2 .ecv2-settings-panel {
    min-width: 0;
    min-height: 0;
    padding: 18px;
    overflow-y: auto;
  }

  #ec-claude-shell-v2 .ecv2-settings-section {
    display: none;
  }

  #ec-claude-shell-v2 .ecv2-settings-section.active {
    display: grid;
    gap: 14px;
  }

  #ec-claude-shell-v2 .ecv2-card {
    border: 1px solid rgba(148,145,190,0.13);
    border-radius: 22px;
    padding: 20px;
    background: rgba(255,255,255,0.025);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  }

  #ec-claude-shell-v2 .ecv2-card h2 {
    color: var(--v2-text);
    font-size: 28px;
    letter-spacing: -0.045em;
  }

  #ec-claude-shell-v2 .ecv2-card h3 {
    color: #ffc4ca;
    font-size: 18px;
  }

  #ec-claude-shell-v2 .ecv2-card p,
  #ec-claude-shell-v2 .ecv2-card small {
    color: var(--v2-muted);
    font-size: 13px;
    line-height: 1.55;
  }

  #ec-claude-shell-v2 .ecv2-identity {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }

  #ec-claude-shell-v2 .ecv2-profile-orb {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border-radius: 30px;
    font-size: 42px;
    background: linear-gradient(135deg, rgba(138,91,255,0.38), rgba(107,234,255,0.16));
  }

  #ec-claude-shell-v2 .ecv2-kv,
  #ec-claude-shell-v2 .ecv2-toggle-list,
  #ec-claude-shell-v2 .ecv2-facts {
    display: grid;
    gap: 10px;
  }

  #ec-claude-shell-v2 .ecv2-kv > div,
  #ec-claude-shell-v2 .ecv2-toggle-list > div,
  #ec-claude-shell-v2 .ecv2-facts > div {
    min-height: 58px;
    border: 1px solid rgba(148,145,190,0.10);
    border-radius: 16px;
    background: rgba(6,6,18,0.32);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  #ec-claude-shell-v2 .ecv2-kv span,
  #ec-claude-shell-v2 .ecv2-toggle-list span,
  #ec-claude-shell-v2 .ecv2-facts span {
    color: var(--v2-text);
    font-weight: 800;
  }

  #ec-claude-shell-v2 .ecv2-kv small,
  #ec-claude-shell-v2 .ecv2-toggle-list small,
  #ec-claude-shell-v2 .ecv2-facts small {
    display: block;
    margin-top: 4px;
  }

  #ec-claude-shell-v2 .ecv2-kv strong {
    color: var(--v2-green);
    font: 800 12px/1 var(--font-mono);
  }

  #ec-claude-shell-v2 .ecv2-toggle-list button {
    width: 50px;
    height: 28px;
    border: 1px solid rgba(148,145,190,0.18);
    border-radius: 99px;
    padding: 3px;
    background: rgba(255,255,255,0.05);
  }

  #ec-claude-shell-v2 .ecv2-toggle-list button i {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--v2-muted);
    transition: transform 160ms ease, background 160ms ease;
  }

  #ec-claude-shell-v2 .ecv2-toggle-list button.on {
    background: rgba(122,255,176,0.12);
    border-color: rgba(122,255,176,0.28);
  }

  #ec-claude-shell-v2 .ecv2-toggle-list button.on i {
    transform: translateX(20px);
    background: var(--v2-green);
  }

  #ec-claude-shell-v2 .ecv2-slider {
    margin-top: 18px;
    border: 1px solid rgba(148,145,190,0.12);
    border-radius: 18px;
    padding: 15px;
    background: rgba(6,6,18,0.32);
  }

  #ec-claude-shell-v2 .ecv2-slider div {
    display: flex;
    justify-content: space-between;
    color: var(--v2-soft);
    font-weight: 800;
  }

  #ec-claude-shell-v2 .ecv2-slider i {
    display: block;
    height: 8px;
    margin-top: 14px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--v2-violet) 58%, rgba(255,255,255,0.08) 58%);
  }

  #ec-claude-shell-v2 .ecv2-theme-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  #ec-claude-shell-v2 .ecv2-theme-grid button {
    min-height: 112px;
    border: 1px solid rgba(148,145,190,0.13);
    border-radius: 18px;
    background: rgba(6,6,18,0.32);
    color: var(--v2-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
  }

  #ec-claude-shell-v2 .ecv2-theme-grid button.active {
    border-color: rgba(164,132,255,0.42);
    background: rgba(138,91,255,0.12);
  }

  #ec-claude-shell-v2 .ecv2-theme-grid i {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: radial-gradient(circle at 30% 20%, #fff, var(--c));
  }

  #ec-claude-shell-v2 .ecv2-facts {
    margin-top: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #ec-claude-shell-v2 .ecv2-facts b {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(138,91,255,0.16);
  }

  #ec-claude-shell-v2 .ecv2-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
  }

  #ec-claude-shell-v2 .ecv2-card.danger {
    margin-top: 14px;
    border-color: rgba(255,91,111,0.22);
    background: rgba(255,91,111,0.045);
  }

  #ec-claude-shell-v2 .ecv2-placeholder {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    padding: 34px;
  }

  #ec-claude-shell-v2 .ecv2-placeholder > span {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(138,91,255,0.32), rgba(107,234,255,0.12));
    font-size: 34px;
  }

  #ec-claude-shell-v2 .ecv2-placeholder h1 {
    font-size: clamp(38px, 5vw, 74px);
    line-height: 0.95;
    letter-spacing: -0.07em;
  }

  #ec-claude-shell-v2 .ecv2-placeholder p {
    max-width: 560px;
    color: var(--v2-muted);
    line-height: 1.65;
  }
}

@media (min-width: 900px) {
  body.auth-ready.ec-rooms-open #ec-claude-shell-v2,
  #ec-claude-shell-v2 {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.auth-ready.ec-rooms-open #ec-claude-shell.ec-design-app-shell {
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.auth-ready.ec-rooms-open #ec-claude-shell .ec-shell-view[data-ec-shell-panel] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.auth-ready.ec-rooms-open #ec-claude-shell[data-ec-view="private-chat"] .ec-shell-view[data-ec-shell-panel="private-chat"],
  body.auth-ready.ec-rooms-open #ec-claude-shell[data-ec-view="settings"] .ec-shell-view[data-ec-shell-panel="settings"],
  body.auth-ready.ec-rooms-open #ec-claude-shell[data-ec-view="vault"] .ec-shell-view[data-ec-shell-panel="vault"],
  body.auth-ready.ec-rooms-open #ec-claude-shell[data-ec-view="archive"] .ec-shell-view[data-ec-shell-panel="archive"],
  body.auth-ready.ec-rooms-open #ec-claude-shell[data-ec-view="security"] .ec-shell-view[data-ec-shell-panel="security"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

@media (min-width: 900px) {
  #ec-claude-shell-v2[hidden],
  #ec-claude-shell-v2[data-ec-disabled="true"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.auth-ready.ec-rooms-open #ec-claude-shell [hidden] {
    display: none !important;
  }
}

/* Final desktop shell from the imported Claude reference. Desktop only; mobile keeps the old app. */
#ec-claude-shell-final {
  display: none;
}

@media (max-width: 899px) {
  #ec-claude-shell-final {
    display: none !important;
  }
}

@media (min-width: 900px) {
  body:not(.auth-ready) #ec-claude-shell-final {
    display: none !important;
  }

  body.auth-ready #cd-shell {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 160 !important;
    overflow: hidden !important;
    background: #060612 !important;
    pointer-events: auto !important;
  }

  body.auth-ready #ec-claude-shell,
  body.auth-ready #ec-claude-shell-v2,
  body.auth-ready #rooms-screen.screen,
  body.auth-ready #chat-screen.screen,
  /* §VAULT-SCOPE-2026-09-14: war `#vault-screen.screen` ohne Einschraenkung.
     Fuer #rooms-screen und #chat-screen ist das Ausblenden richtig — deren
     Inhalt wird in die neue Shell gespiegelt. Der Vault hat aber KEINE
     Entsprechung in der neuen Shell: die Regel hat ihn ab 900px Breite
     schlicht unsichtbar gemacht (display:none + visibility:hidden +
     opacity:0, alle !important), obwohl showScreen ihn korrekt auf .active
     gesetzt hatte. Jetzt wird er nur noch im INAKTIVEN Zustand versteckt. */
  body.auth-ready #vault-screen.screen:not(.active) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  /* Der aktive Vault muss ueber #cd-shell (z-index 160) liegen, sonst waere
     er zwar gerendert, aber von der Shell verdeckt. */
  body.auth-ready #vault-screen.screen.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 200 !important;
  }

  body.auth-ready #lp-footer,
  body.auth-ready footer,
  body.auth-ready .v11-footer-legal {
    display: none !important;
  }

  body.auth-ready #aura-fab {
    right: 18px !important;
    bottom: 18px !important;
    transform: scale(0.76) !important;
    opacity: 0.24 !important;
  }

  body.auth-ready #aura-fab .aura-fab-copy {
    display: none !important;
  }

  body.auth-ready #ec-claude-shell-final {
    --ecf-bg: #060612;
    --ecf-panel: rgba(16, 16, 36, 0.72);
    --ecf-panel-2: rgba(22, 22, 48, 0.62);
    --ecf-line: rgba(214, 210, 255, 0.14);
    --ecf-line-strong: rgba(164, 132, 255, 0.34);
    --ecf-text: #f4f3ff;
    --ecf-muted: #9b99bd;
    --ecf-soft: #c8c6e7;
    --ecf-violet: #8a5bff;
    --ecf-cyan: #6beaff;
    --ecf-green: #7affb0;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr);
    color: var(--ecf-text);
    font-family: "Space Grotesk", var(--font), system-ui, sans-serif;
    letter-spacing: 0;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
      radial-gradient(ellipse at 18% 0%, rgba(138, 91, 255, 0.22), transparent 42%),
      radial-gradient(ellipse at 96% 88%, rgba(107, 234, 255, 0.12), transparent 48%),
      linear-gradient(rgba(214, 210, 255, 0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(214, 210, 255, 0.045) 1px, transparent 1px),
      var(--ecf-bg);
    background-size: auto, auto, 44px 44px, 44px 44px, auto;
  }

  #ec-claude-shell-final *,
  #ec-claude-shell-final *::before,
  #ec-claude-shell-final *::after {
    box-sizing: border-box;
  }

  #ec-claude-shell-final [hidden] {
    display: none !important;
  }

  #ec-claude-shell-final button,
  #ec-claude-shell-final input {
    font: inherit;
  }

  .ecf-rail {
    min-height: 0;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    border-right: 1px solid var(--ecf-line);
    background: rgba(8, 8, 22, 0.82);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
  }

  .ecf-logo,
  .ecf-rail button {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: grid;
    place-items: center;
  }

  .ecf-logo {
    color: #fff;
    font: 800 13px/1 var(--font-mono);
    background: linear-gradient(135deg, var(--ecf-violet), var(--ecf-cyan));
    box-shadow: 0 16px 42px rgba(138, 91, 255, 0.34);
  }

  .ecf-rail-nav,
  .ecf-rail-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .ecf-rail-actions {
    margin-top: auto;
  }

  .ecf-rail button {
    border: 1px solid var(--ecf-line);
    color: var(--ecf-muted);
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  }

  .ecf-rail button:hover,
  .ecf-rail button.active {
    color: var(--ecf-text);
    border-color: var(--ecf-line-strong);
    background: rgba(138, 91, 255, 0.18);
  }

  .ecf-logout {
    border-color: rgba(255, 112, 128, 0.3) !important;
    color: #ffc4ca !important;
  }

  .ecf-main {
    min-width: 0;
    min-height: 0;
    padding: 22px;
    display: block;
  }

  .ecf-view {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: none;
  }

  .ecf-view.active {
    display: flex !important;
    flex-direction: column;
  }

  .ecf-chat-layout {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(330px, 420px) minmax(0, 1fr);
    gap: 18px;
  }

  .ecf-contacts,
  .ecf-chat-panel,
  .ecf-settings-nav,
  .ecf-settings-panel,
  .ecf-placeholder {
    min-height: 0;
    border: 1px solid var(--ecf-line);
    border-radius: 8px;
    background: linear-gradient(180deg, var(--ecf-panel), rgba(9, 9, 24, 0.84));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(24px) saturate(135%);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
  }

  .ecf-contacts {
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .ecf-panel-head,
  .ecf-chat-head,
  .ecf-view-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .ecf-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--ecf-muted);
    font: 700 10px/1 var(--font-mono);
    letter-spacing: 0.16em;
  }

  .ecf-panel-head h1,
  .ecf-view-head h1 {
    margin: 0;
    color: var(--ecf-text);
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: 0;
  }

  .ecf-status,
  .ecf-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    border: 1px solid rgba(122, 255, 176, 0.22);
    border-radius: 999px;
    background: rgba(122, 255, 176, 0.06);
    color: var(--ecf-green);
    padding: 8px 10px;
    font: 700 10px/1 var(--font-mono);
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .ecf-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ecf-green);
    box-shadow: 0 0 12px rgba(122, 255, 176, 0.78);
  }

  .ecf-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 10px;
    margin: 18px 0 12px;
  }

  .ecf-search {
    min-width: 0;
    height: 42px;
    border: 1px solid var(--ecf-line);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--ecf-muted);
  }

  .ecf-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ecf-soft);
  }

  .ecf-btn,
  .ecf-filter-row button {
    border: 1px solid var(--ecf-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--ecf-soft);
    cursor: pointer;
  }

  .ecf-btn {
    min-height: 40px;
    padding: 0 14px;
  }

  .ecf-btn.primary,
  .ecf-composer button.primary {
    border-color: rgba(107, 234, 255, 0.38);
    color: #fff;
    background: linear-gradient(135deg, rgba(107, 234, 255, 0.72), rgba(138, 91, 255, 0.82));
  }

  .ecf-filter-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
  }

  .ecf-filter-row button {
    min-height: 32px;
    padding: 0 12px;
    color: var(--ecf-muted);
  }

  .ecf-filter-row button.active {
    color: var(--ecf-text);
    border-color: var(--ecf-line-strong);
    background: rgba(138, 91, 255, 0.16);
  }

  .ecf-room-list {
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
  }

  .ecf-room {
    min-height: 72px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(214, 210, 255, 0.11);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.028);
    color: var(--ecf-text);
    padding: 12px;
    text-align: left;
    cursor: pointer;
  }

  .ecf-room:hover,
  .ecf-room.active {
    border-color: var(--ecf-line-strong);
    background: rgba(138, 91, 255, 0.14);
  }

  .ecf-room-avatar,
  .ecf-avatar {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    font: 800 12px/1 var(--font-mono);
    background: radial-gradient(circle at 30% 30%, var(--ecf-violet), rgba(107, 234, 255, 0.2) 72%);
  }

  .ecf-room strong,
  .ecf-chat-person strong {
    display: block;
    color: var(--ecf-text);
    font-size: 14px;
  }

  .ecf-room small,
  .ecf-chat-person small,
  .ecf-chat-empty p,
  .ecf-empty p,
  .ecf-placeholder p,
  .ecf-settings-section p {
    color: var(--ecf-muted);
    line-height: 1.55;
  }

  .ecf-room small {
    display: block;
    margin-top: 5px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ecf-room time {
    color: var(--ecf-muted);
    font: 700 10px/1 var(--font-mono);
  }

  .ecf-empty,
  .ecf-chat-empty {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
  }

  #ec-claude-shell-final .ecf-chat-empty-globe {
    justify-content: center;
    align-items: center;
    padding: 30px 24px;
  }

  #ec-claude-shell-final .ec-empty-globe {
    width: 280px;
    height: 280px;
    max-width: min(52vw, 280px);
    max-height: min(42vh, 280px);
    position: relative;
    display: grid;
    place-items: center;
    border: 1px solid rgba(214, 210, 255, 0.13);
    border-radius: 28px;
    background:
      radial-gradient(ellipse at 50% 42%, rgba(107, 234, 255, 0.13), transparent 54%),
      radial-gradient(ellipse at 76% 12%, rgba(138, 91, 255, 0.14), transparent 44%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 24px 62px rgba(0, 0, 0, 0.28),
      0 0 60px rgba(107, 234, 255, 0.08);
    overflow: hidden;
  }

  #ec-claude-shell-final .ec-empty-globe::before,
  #ec-claude-shell-final .ec-empty-globe::after {
    content: "";
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    border: 1px solid rgba(107, 234, 255, 0.16);
    box-shadow: inset 0 0 34px rgba(138, 91, 255, 0.16), 0 0 34px rgba(107, 234, 255, 0.08);
    pointer-events: none;
  }

  #ec-claude-shell-final .ec-empty-globe::after {
    inset: 62px;
    border-color: rgba(138, 91, 255, 0.2);
    transform: rotateX(68deg);
  }

  #ec-claude-shell-final .ec-empty-globe canvas {
    width: 260px;
    height: 260px;
    position: relative;
    z-index: 1;
    display: block;
  }

  #ec-claude-shell-final .ec-empty-globe span {
    position: absolute;
    inset: 44px;
    border-radius: 50%;
    background:
      linear-gradient(rgba(107, 234, 255, 0.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(138, 91, 255, 0.08) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: radial-gradient(circle, #000 42%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle, #000 42%, transparent 72%);
    opacity: 0.7;
    pointer-events: none;
  }

  #ec-claude-shell-final .ecf-chat-empty-globe h2 {
    margin-top: 2px;
  }

  .ecf-empty div,
  .ecf-chat-empty div {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .ecf-chat-panel {
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .ecf-chat-head {
    padding: 18px 20px;
    border-bottom: 1px solid var(--ecf-line);
  }

  .ecf-chat-person {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
  }

  .ecf-chat-stream {
    min-height: 0;
    overflow-y: auto;
    padding: 20px;
    background:
      linear-gradient(rgba(214, 210, 255, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(214, 210, 255, 0.035) 1px, transparent 1px),
      rgba(255, 255, 255, 0.012);
    background-size: 34px 34px;
  }

  .ecf-composer {
    min-height: 70px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--ecf-line);
    background: rgba(8, 8, 22, 0.74);
  }

  #ec-claude-shell-final[data-ec-final-view="chat"] .ecf-chat-panel .ecf-composer {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    flex: 0 0 auto;
  }

  .ecf-composer input {
    min-width: 0;
    height: 42px;
    border: 1px solid var(--ecf-line);
    border-radius: 8px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--ecf-soft);
  }

  .ecf-composer button {
    min-width: 42px;
    height: 42px;
    border: 1px solid var(--ecf-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--ecf-soft);
  }

  .ecf-composer span {
    color: var(--ecf-muted);
    font: 700 10px/1 var(--font-mono);
  }

  .ecf-view-head {
    margin-bottom: 18px;
  }

  .ecf-settings {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
  }

  .ecf-settings-nav {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .ecf-settings-nav button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ecf-muted);
    text-align: left;
    padding: 0 12px;
    cursor: pointer;
  }

  .ecf-settings-nav button:hover,
  .ecf-settings-nav button.active {
    color: var(--ecf-text);
    background: rgba(138, 91, 255, 0.16);
  }

  .ecf-settings-panel {
    padding: 20px;
    overflow-y: auto;
  }

  .ecf-settings-section {
    display: none;
    max-width: 860px;
  }

  .ecf-settings-section.active {
    display: block;
  }

  .ecf-settings-section h2,
  .ecf-placeholder h1,
  .ecf-chat-empty h2 {
    margin: 0 0 10px;
    color: var(--ecf-text);
    font-size: 28px;
    letter-spacing: 0;
  }

  .ecf-kv {
    min-height: 58px;
    margin-top: 12px;
    border: 1px solid var(--ecf-line);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
  }

  .ecf-kv span {
    color: var(--ecf-muted);
  }

  .ecf-kv strong {
    color: var(--ecf-text);
  }

  .ecf-theme-row {
    display: flex;
    gap: 12px;
    margin-top: 18px;
  }

  .ecf-theme-row i {
    width: 72px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--ecf-line);
    background: linear-gradient(135deg, var(--ecf-violet), var(--ecf-cyan));
  }

  .ecf-theme-row i:nth-child(2) { background: linear-gradient(135deg, #4a9eff, #7affb0); }
  .ecf-theme-row i:nth-child(3) { background: linear-gradient(135deg, #7affb0, #ffb84a); }
  .ecf-theme-row i:nth-child(4) { background: linear-gradient(135deg, #ff6bd0, #8a5bff); }

  .ecf-placeholder {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 32px;
  }

  .ecf-placeholder > span {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(138, 91, 255, 0.18);
    color: var(--ecf-cyan);
    font: 800 22px/1 var(--font-mono);
  }

  /* Settings stabilization for the final desktop shell only. */
  #ec-claude-shell-final .ecf-view[data-ec-final-panel] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  #ec-claude-shell-final[data-ec-final-view="chat"] .ecf-view[data-ec-final-panel="chat"],
  #ec-claude-shell-final[data-ec-final-view="settings"] .ecf-view[data-ec-final-panel="settings"],
  #ec-claude-shell-final[data-ec-final-view="vault"] .ecf-view[data-ec-final-panel="vault"],
  #ec-claude-shell-final[data-ec-final-view="security"] .ecf-view[data-ec-final-panel="security"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  #ec-claude-shell-final[data-ec-final-view="settings"] .ecf-view[data-ec-final-panel="settings"] {
    min-height: 0;
    overflow: hidden;
  }

  #ec-claude-shell-final .ecf-settings {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    padding: 0;
  }

  #ec-claude-shell-final .ecf-settings-nav {
    min-height: 0;
    padding: 18px 10px;
    gap: 4px;
    overflow: hidden;
    background:
      radial-gradient(ellipse at 20% 0%, rgba(138, 91, 255, 0.14), transparent 55%),
      rgba(18, 18, 38, 0.58);
  }

  #ec-claude-shell-final .ecf-settings-nav::before {
    content: "EINSTELLUNGEN";
    display: block;
    padding: 0 12px 12px;
    color: var(--ecf-muted);
    font: 700 10px/1 var(--font-mono);
    letter-spacing: 0.16em;
  }

  #ec-claude-shell-final .ecf-settings-nav button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 13px;
    border: 0;
    border-radius: 8px;
    color: var(--ecf-soft);
    background: transparent;
    text-align: left;
    cursor: pointer;
  }

  #ec-claude-shell-final .ecf-settings-nav button::after {
    content: ">";
    color: var(--ecf-muted);
    font: 700 12px/1 var(--font-mono);
    opacity: 0.7;
  }

  #ec-claude-shell-final .ecf-settings-nav button:hover,
  #ec-claude-shell-final .ecf-settings-nav button.active {
    color: var(--ecf-text);
    background: linear-gradient(135deg, rgba(138, 91, 255, 0.2), rgba(138, 91, 255, 0.045));
    box-shadow: inset 0 0 0 1px rgba(164, 132, 255, 0.24);
  }

  #ec-claude-shell-final .ecf-settings-panel {
    min-height: 0;
    overflow-y: auto;
    padding: 22px;
    background:
      radial-gradient(ellipse at 0% 0%, rgba(107, 234, 255, 0.08), transparent 46%),
      rgba(18, 18, 38, 0.5);
  }

  #ec-claude-shell-final .ecf-settings-section {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    max-width: 900px;
  }

  #ec-claude-shell-final .ecf-settings-section.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #ec-claude-shell-final .ecf-settings-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
    color: var(--ecf-text);
    font-size: 18px;
    line-height: 1.15;
  }

  #ec-claude-shell-final .ecf-settings-section h2::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--ecf-violet), var(--ecf-cyan));
    box-shadow: 0 0 22px rgba(138, 91, 255, 0.24);
  }

  #ec-claude-shell-final .ecf-settings-section p {
    margin: 0 0 18px;
    max-width: 68ch;
    color: var(--ecf-muted);
    font-size: 13px;
    line-height: 1.55;
  }

  #ec-claude-shell-final .ecf-settings-section.active {
    border: 1px solid rgba(214, 210, 255, 0.12);
    border-radius: 8px;
    padding: 22px;
    background:
      radial-gradient(ellipse at 100% 0%, rgba(138, 91, 255, 0.11), transparent 48%),
      rgba(255, 255, 255, 0.032);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 20px 54px rgba(0, 0, 0, 0.2);
  }

  #ec-claude-shell-final .ecf-settings-section .ecf-kv {
    min-height: 62px;
    margin-top: 12px;
    border-color: rgba(214, 210, 255, 0.12);
    background: rgba(255, 255, 255, 0.035);
  }

  #ec-claude-shell-final .ecf-settings-head {
    margin-bottom: 18px;
  }

  #ec-claude-shell-final .ecf-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  #ec-claude-shell-final .ecf-icon-action {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(214, 210, 255, 0.14);
    border-radius: 8px;
    color: var(--ecf-soft);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
  }

  #ec-claude-shell-final .ecf-audit-card {
    margin-top: auto;
    border: 1px solid rgba(122, 255, 176, 0.18);
    border-radius: 8px;
    padding: 16px;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(122, 255, 176, 0.12), transparent 58%),
      rgba(255, 255, 255, 0.03);
    text-align: center;
  }

  #ec-claude-shell-final .ecf-audit-card span,
  #ec-claude-shell-final .ecf-audit-card small,
  #ec-claude-shell-final .ecf-audit-card b {
    display: block;
    color: var(--ecf-muted);
    font: 700 10px/1.4 var(--font-mono);
    letter-spacing: 0.08em;
  }

  #ec-claude-shell-final .ecf-audit-card strong {
    display: block;
    margin: 8px 0 0;
    color: var(--ecf-text);
    font-size: 48px;
    line-height: 0.9;
  }

  #ec-claude-shell-final .ecf-audit-card b {
    margin-top: 10px;
    color: var(--ecf-green);
  }

  #ec-claude-shell-final .ecf-settings-card {
    border: 1px solid rgba(214, 210, 255, 0.12);
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 16px;
    background:
      radial-gradient(ellipse at 100% 0%, rgba(138, 91, 255, 0.1), transparent 48%),
      rgba(255, 255, 255, 0.032);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 20px 54px rgba(0, 0, 0, 0.2);
  }

  #ec-claude-shell-final .ecf-settings-card.danger {
    border-color: rgba(255, 112, 128, 0.28);
    background:
      radial-gradient(ellipse at 0% 0%, rgba(255, 112, 128, 0.12), transparent 52%),
      rgba(255, 112, 128, 0.045);
  }

  #ec-claude-shell-final .ecf-identity-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
  }

  #ec-claude-shell-final .ecf-avatar-card {
    border: 1px solid rgba(214, 210, 255, 0.12);
    border-radius: 8px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
  }

  #ec-claude-shell-final .ecf-profile-orb {
    width: 96px;
    height: 96px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    font: 800 22px/1 var(--font-mono);
    background: radial-gradient(circle at 30% 30%, var(--ecf-violet), rgba(107, 234, 255, 0.28) 72%);
    box-shadow: 0 18px 54px rgba(138, 91, 255, 0.28);
  }

  #ec-claude-shell-final .ecf-stack,
  #ec-claude-shell-final .ecf-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  #ec-claude-shell-final .ecf-slider-card {
    border: 1px solid rgba(214, 210, 255, 0.12);
    border-radius: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
  }

  #ec-claude-shell-final .ecf-slider-card > div:first-child {
    display: flex;
    justify-content: space-between;
    color: var(--ecf-soft);
  }

  #ec-claude-shell-final .ecf-slider-track {
    height: 8px;
    margin: 18px 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
  }

  #ec-claude-shell-final .ecf-slider-track i {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--ecf-violet), var(--ecf-cyan), var(--ecf-green));
    transition: width 180ms ease;
  }

  #ec-claude-shell-final .ecf-slider-marks,
  #ec-claude-shell-final .ecf-segment {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--ecf-muted);
    font: 700 10px/1 var(--font-mono);
  }

  #ec-claude-shell-final .ecf-theme-grid,
  #ec-claude-shell-final .ecf-fact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #ec-claude-shell-final .ecf-theme-grid button,
  #ec-claude-shell-final .ecf-fact-grid > div,
  #ec-claude-shell-final .ecf-segment button {
    border: 1px solid rgba(214, 210, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--ecf-soft);
  }

  #ec-claude-shell-final .ecf-theme-grid button {
    min-height: 116px;
    padding: 12px;
    text-align: left;
    cursor: pointer;
  }

  #ec-claude-shell-final .ecf-theme-grid button.active {
    border-color: rgba(122, 255, 176, 0.36);
    box-shadow: inset 0 0 0 1px rgba(122, 255, 176, 0.12);
  }

  #ec-claude-shell-final .ecf-theme-grid i {
    display: block;
    height: 58px;
    border-radius: 8px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--c1), var(--c2));
  }

  #ec-claude-shell-final .ecf-theme-grid strong {
    color: var(--ecf-text);
  }

  #ec-claude-shell-final .ecf-segment {
    justify-content: flex-start;
    margin-top: 14px;
  }

  #ec-claude-shell-final .ecf-segment button {
    min-height: 36px;
    padding: 0 12px;
    cursor: pointer;
  }

  #ec-claude-shell-final .ecf-segment button.active {
    color: var(--ecf-text);
    border-color: var(--ecf-line-strong);
    background: rgba(138, 91, 255, 0.16);
  }

  #ec-claude-shell-final .ecf-slider-marks button.active {
    color: var(--ecf-text);
    border-color: rgba(122, 255, 176, 0.36);
    background: rgba(122, 255, 176, 0.12);
    box-shadow: inset 0 0 0 1px rgba(122, 255, 176, 0.08), 0 0 18px rgba(122, 255, 176, 0.08);
  }

  #ec-claude-shell-final .ecf-fact-grid > div {
    min-height: 86px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
  }

  #ec-claude-shell-final .ecf-fact-grid b {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--ecf-green);
    background: rgba(122, 255, 176, 0.08);
    font: 800 11px/1 var(--font-mono);
  }

  #ec-claude-shell-final .ecf-fact-grid span {
    color: var(--ecf-text);
    font-weight: 700;
  }

  #ec-claude-shell-final .ecf-fact-grid small {
    display: block;
    margin-top: 4px;
    color: var(--ecf-muted);
    font-weight: 500;
  }

  #ec-claude-shell-final .ecf-mini-action.danger {
    border-color: rgba(255, 112, 128, 0.34);
    color: #ffc4ca;
    background: rgba(255, 112, 128, 0.08);
  }

  #ec-claude-shell-final .ecf-ui-toggle {
    flex: 0 0 auto;
    width: 64px;
    height: 34px;
    border: 1px solid rgba(214, 210, 255, 0.18);
    border-radius: 999px;
    padding: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(ellipse at 18% 50%, rgba(138, 91, 255, 0.14), transparent 58%),
      rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 10px 24px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  }

  #ec-claude-shell-final .ecf-ui-toggle::before {
    content: "OFF";
    position: absolute;
    right: 9px;
    color: var(--ecf-muted);
    font: 800 8px/1 var(--font-mono);
    letter-spacing: 0.08em;
    opacity: 0.72;
    pointer-events: none;
  }

  #ec-claude-shell-final .ecf-ui-toggle i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #f4f3ff, #8f8cb2);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.42);
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
  }

  #ec-claude-shell-final .ecf-ui-toggle.on {
    justify-content: flex-start;
    border-color: rgba(122, 255, 176, 0.42);
    background:
      radial-gradient(ellipse at 78% 50%, rgba(122, 255, 176, 0.28), transparent 58%),
      linear-gradient(135deg, rgba(138, 91, 255, 0.32), rgba(122, 255, 176, 0.15));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 24px rgba(122, 255, 176, 0.13);
  }

  #ec-claude-shell-final .ecf-ui-toggle.on::before {
    content: "ON";
    left: 10px;
    right: auto;
    color: #dcffe9;
    opacity: 0.94;
  }

  #ec-claude-shell-final .ecf-ui-toggle.on i {
    transform: translateX(30px);
    background: linear-gradient(135deg, #ffffff, var(--ecf-green));
    box-shadow: 0 0 18px rgba(122, 255, 176, 0.72), 0 8px 20px rgba(0, 0, 0, 0.32);
  }

  #ec-claude-shell-final .ecf-ui-toggle:hover,
  #ec-claude-shell-final .ecf-ui-toggle:focus-visible {
    border-color: rgba(107, 234, 255, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 0 28px rgba(107, 234, 255, 0.12);
    outline: 0;
    transform: translateY(-1px);
  }

  #ec-claude-shell-final .ecf-theme-row i {
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  }

  #ec-claude-shell-final .ecf-theme-row i.active {
    border-color: rgba(122, 255, 176, 0.42);
    box-shadow: 0 0 0 2px rgba(122, 255, 176, 0.12), 0 14px 34px rgba(0, 0, 0, 0.26);
    transform: translateY(-1px);
  }

  #ec-claude-shell-final .ecf-mini-action {
    flex: 0 0 auto;
    min-height: 34px;
    border: 1px solid rgba(214, 210, 255, 0.18);
    border-radius: 999px;
    padding: 0 14px;
    color: var(--ecf-soft);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
      rgba(12, 12, 28, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.065), 0 10px 24px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    font: 700 11px/1 var(--font-mono);
    letter-spacing: 0.04em;
    transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, color 150ms ease;
  }

  #ec-claude-shell-final .ecf-mini-action:hover {
    color: var(--ecf-text);
    border-color: var(--ecf-line-strong);
    background:
      radial-gradient(ellipse at 20% 0%, rgba(107, 234, 255, 0.13), transparent 58%),
      linear-gradient(135deg, rgba(138, 91, 255, 0.22), rgba(107, 234, 255, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 14px 32px rgba(0, 0, 0, 0.24);
    transform: translateY(-1px);
  }

  #ec-claude-shell-final .ecf-mini-action.danger {
    border-color: rgba(255, 112, 128, 0.36);
    color: #ffd0d6;
    background:
      radial-gradient(ellipse at 20% 0%, rgba(255, 112, 128, 0.16), transparent 58%),
      rgba(255, 112, 128, 0.075);
  }

  #ec-claude-shell-final .ecf-mini-action.danger:hover {
    border-color: rgba(255, 112, 128, 0.58);
    color: #fff;
    background: rgba(255, 112, 128, 0.16);
  }

  #ec-claude-shell-final .ecf-kv {
    flex-wrap: wrap;
  }

  #ec-claude-shell-final .ecf-kv .ecf-mini-action {
    margin-left: auto;
  }

  #ec-claude-shell-final .ecf-kv .ecf-mini-action + .ecf-mini-action {
    margin-left: 0;
  }

  #ec-claude-shell-final .ecf-live-message {
    max-width: min(72%, 620px);
    margin: 0 0 12px;
    padding: 12px 14px;
    border: 1px solid rgba(214, 210, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--ecf-text);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  }

  #ec-claude-shell-final .ecf-live-message.mine {
    margin-left: auto;
    border-color: rgba(107, 234, 255, 0.24);
    background:
      radial-gradient(ellipse at 100% 0%, rgba(107, 234, 255, 0.16), transparent 58%),
      rgba(138, 91, 255, 0.12);
  }

  #ec-claude-shell-final .ecf-live-message small {
    display: block;
    margin-bottom: 5px;
    color: var(--ecf-muted);
    font: 700 10px/1 var(--font-mono);
    letter-spacing: 0.08em;
  }

  #ec-claude-shell-final .ecf-live-message p {
    margin: 0;
    line-height: 1.45;
    white-space: pre-wrap;
  }

  #ec-claude-shell-final .ecf-composer input:focus {
    outline: 0;
    border-color: rgba(107, 234, 255, 0.35);
    box-shadow: 0 0 0 3px rgba(107, 234, 255, 0.08);
  }

  #ec-claude-shell-final .ecf-composer button {
    cursor: pointer;
  }

  #ec-claude-shell-final .ecf-rail {
    padding: 16px 11px;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(138, 91, 255, 0.2), transparent 45%),
      rgba(7, 7, 18, 0.9);
  }

  #ec-claude-shell-final .ecf-rail-nav,
  #ec-claude-shell-final .ecf-rail-actions {
    padding: 8px;
    border: 1px solid rgba(214, 210, 255, 0.11);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  }

  #ec-claude-shell-final .ecf-logo,
  #ec-claude-shell-final .ecf-rail button {
    border-radius: 999px;
  }

  #ec-claude-shell-final .ecf-rail button {
    font: 800 13px/1 var(--font-mono);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  #ec-claude-shell-final .ecf-rail button:hover,
  #ec-claude-shell-final .ecf-rail button.active {
    color: #fff;
    border-color: rgba(107, 234, 255, 0.34);
    background:
      radial-gradient(circle at 35% 25%, rgba(107, 234, 255, 0.22), transparent 55%),
      rgba(138, 91, 255, 0.24);
    box-shadow: 0 0 0 3px rgba(107, 234, 255, 0.06), 0 12px 30px rgba(138, 91, 255, 0.2);
  }

  #ec-claude-shell-final .ecf-toast {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 5;
    max-width: min(360px, calc(100vw - 140px));
    border: 1px solid rgba(122, 255, 176, 0.24);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--ecf-text);
    background: rgba(12, 12, 28, 0.92);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  #ec-claude-shell-final .ecf-toast.show {
    opacity: 1;
    transform: translateY(0);
  }

  /* Final shell interaction hardening: override generic button rules without touching auth/mobile. */
  body.auth-ready #ec-claude-shell-final button.ecf-mini-action,
  body.auth-ready #ec-claude-shell-final .ecf-settings-card button.ecf-mini-action,
  body.auth-ready #ec-claude-shell-final .ecf-kv > button.ecf-mini-action {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: auto !important;
    min-width: 92px !important;
    height: 36px !important;
    min-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border: 1px solid rgba(164, 132, 255, 0.28) !important;
    border-radius: 999px !important;
    padding: 0 15px !important;
    color: #f4f3ff !important;
    background:
      radial-gradient(ellipse at 20% 0%, rgba(107, 234, 255, 0.12), transparent 58%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(138, 91, 255, 0.08)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 28px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer !important;
    font: 800 11px/1 var(--font-mono) !important;
    letter-spacing: 0.045em !important;
    text-decoration: none !important;
    text-transform: none !important;
    opacity: 1 !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-settings-nav {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-settings-panel button:not(.ecf-ui-toggle),
  body.auth-ready #ec-claude-shell-final .ecf-head-actions button {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 1px solid rgba(164, 132, 255, 0.24) !important;
    border-radius: 999px !important;
    color: var(--ecf-soft) !important;
    background:
      radial-gradient(ellipse at 20% 0%, rgba(107, 234, 255, 0.1), transparent 58%),
      rgba(255, 255, 255, 0.045) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 24px rgba(0, 0, 0, 0.16) !important;
    cursor: pointer !important;
    font: 800 11px/1 var(--font-mono) !important;
    letter-spacing: 0.045em !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-settings-section .ecf-kv {
    display: grid !important;
    grid-template-columns: minmax(160px, 1fr) auto auto !important;
    align-items: center !important;
    gap: 10px 14px !important;
    padding: 14px 16px !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-settings-section .ecf-kv > span {
    min-width: 0 !important;
    color: var(--ecf-soft) !important;
    font-weight: 700 !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-settings-section .ecf-kv > strong {
    justify-self: end !important;
    color: var(--ecf-muted) !important;
    font: 800 11px/1 var(--font-mono) !important;
    letter-spacing: 0.04em !important;
    white-space: nowrap !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-settings-section .ecf-kv > .ecf-ui-toggle,
  body.auth-ready #ec-claude-shell-final .ecf-settings-section .ecf-kv > .ecf-mini-action {
    justify-self: end !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-toggle-list .ecf-kv {
    grid-template-columns: minmax(160px, 1fr) auto auto !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-toggle-list .ecf-kv > strong {
    min-width: 54px !important;
    text-align: right !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-toggle-list .ecf-kv > .ecf-ui-toggle {
    margin-left: 4px !important;
  }

  body.auth-ready #ec-claude-shell-final button.ecf-mini-action:hover,
  body.auth-ready #ec-claude-shell-final .ecf-settings-card button.ecf-mini-action:hover,
  body.auth-ready #ec-claude-shell-final .ecf-kv > button.ecf-mini-action:hover,
  body.auth-ready #ec-claude-shell-final .ecf-settings-panel button:not(.ecf-ui-toggle):hover,
  body.auth-ready #ec-claude-shell-final .ecf-head-actions button:hover {
    color: #fff !important;
    border-color: rgba(107, 234, 255, 0.45) !important;
    background:
      radial-gradient(ellipse at 20% 0%, rgba(107, 234, 255, 0.18), transparent 58%),
      linear-gradient(135deg, rgba(138, 91, 255, 0.26), rgba(107, 234, 255, 0.11)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11), 0 16px 38px rgba(0, 0, 0, 0.26), 0 0 24px rgba(107, 234, 255, 0.08) !important;
    transform: translateY(-1px) !important;
  }

  body.auth-ready #ec-claude-shell-final button.ecf-mini-action.danger,
  body.auth-ready #ec-claude-shell-final .ecf-settings-card button.ecf-mini-action.danger {
    border-color: rgba(255, 112, 128, 0.44) !important;
    color: #ffd4da !important;
    background:
      radial-gradient(ellipse at 20% 0%, rgba(255, 112, 128, 0.18), transparent 58%),
      rgba(255, 112, 128, 0.08) !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-action-done {
    border-color: rgba(122, 255, 176, 0.54) !important;
    color: #ffffff !important;
    background:
      radial-gradient(ellipse at 20% 0%, rgba(122, 255, 176, 0.2), transparent 58%),
      rgba(122, 255, 176, 0.11) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 28px rgba(122, 255, 176, 0.12) !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-main,
  body.auth-ready #ec-claude-shell-final .ecf-view[data-ec-final-panel="chat"],
  body.auth-ready #ec-claude-shell-final .ecf-chat-layout,
  body.auth-ready #ec-claude-shell-final .ecf-chat-panel {
    height: 100% !important;
    min-height: 0 !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-main {
    overflow: hidden !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-chat-panel {
    position: relative !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    overflow: hidden !important;
    background:
      radial-gradient(ellipse at 95% 0%, rgba(138, 91, 255, 0.13), transparent 42%),
      radial-gradient(ellipse at 8% 100%, rgba(107, 234, 255, 0.08), transparent 46%),
      linear-gradient(180deg, var(--ecf-panel), rgba(9, 9, 24, 0.88)) !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-chat-stream {
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-composer {
    position: relative !important;
    z-index: 3 !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto auto !important;
    flex: 0 0 auto !important;
    min-height: 74px !important;
    border-top: 1px solid rgba(164, 132, 255, 0.18) !important;
    background:
      radial-gradient(ellipse at 20% 0%, rgba(107, 234, 255, 0.08), transparent 58%),
      rgba(8, 8, 22, 0.9) !important;
    box-shadow: 0 -18px 46px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
  }

  body.auth-ready #ec-claude-shell-final #ec-final-msg-input {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    user-select: text !important;
    height: 44px !important;
    border-radius: 999px !important;
    padding: 0 16px !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-composer-badge {
    min-height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(122, 255, 176, 0.22) !important;
    border-radius: 999px !important;
    padding: 0 12px !important;
    color: var(--ecf-green) !important;
    background: rgba(122, 255, 176, 0.065) !important;
    white-space: nowrap !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-attach-btn {
    border-radius: 999px !important;
    color: var(--ecf-cyan) !important;
    border-color: rgba(107, 234, 255, 0.24) !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-composer button.primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 92px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-send-btn {
    min-width: 104px !important;
    box-shadow: 0 14px 34px rgba(138, 91, 255, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-chat-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-chat-actions button {
    appearance: none !important;
    -webkit-appearance: none !important;
    min-width: 52px !important;
    min-height: 34px !important;
    border: 1px solid rgba(164, 132, 255, 0.24) !important;
    border-radius: 999px !important;
    background:
      radial-gradient(ellipse at 20% 0%, rgba(107, 234, 255, 0.12), transparent 58%),
      rgba(255, 255, 255, 0.045) !important;
    color: var(--ecf-soft) !important;
    font: 800 10px/1 var(--font-mono) !important;
    letter-spacing: 0.06em !important;
    cursor: pointer !important;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-chat-actions button:hover:not(:disabled) {
    color: #fff !important;
    border-color: rgba(107, 234, 255, 0.45) !important;
    background:
      radial-gradient(ellipse at 20% 0%, rgba(107, 234, 255, 0.18), transparent 58%),
      rgba(138, 91, 255, 0.12) !important;
    transform: translateY(-1px) !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-chat-actions button:disabled {
    opacity: 0.42 !important;
    cursor: not-allowed !important;
  }
}

#ec-claude-shell .ec-settings-shell--messenger {
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 18px;
}

#ec-claude-shell .ec-settings-shell--messenger .ec-settings-menu {
  padding: 16px 10px;
  gap: 7px;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(138,91,255,0.16), transparent 45%),
    linear-gradient(180deg, rgba(18,18,40,0.82), rgba(8,8,22,0.90));
  border: 1px solid rgba(164,132,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 20px 60px rgba(0,0,0,0.26);
}

#ec-claude-shell .ec-settings-shell--messenger .ec-settings-menu button {
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 15px;
  padding: 0 12px;
  background: rgba(255,255,255,0.018);
  color: var(--ink-1);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

#ec-claude-shell .ec-settings-shell--messenger .ec-settings-menu button i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  border-radius: 11px;
  background: rgba(138,91,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  font-style: normal;
}

#ec-claude-shell .ec-settings-shell--messenger .ec-settings-menu button:hover,
#ec-claude-shell .ec-settings-shell--messenger .ec-settings-menu button.active {
  transform: translateY(-1px);
  color: var(--ink-0);
  border-color: rgba(164,132,255,0.32);
  background: linear-gradient(135deg, rgba(138,91,255,0.22), rgba(107,234,255,0.045));
}

#ec-claude-shell .ec-settings-shell--messenger .ec-settings-content {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(138,91,255,0.12), transparent 42%),
    radial-gradient(ellipse at 100% 100%, rgba(107,234,255,0.06), transparent 48%),
    linear-gradient(180deg, rgba(18,18,40,0.72), rgba(8,8,22,0.86));
  border: 1px solid rgba(164,132,255,0.14);
}

#ec-claude-shell .ec-settings-shell--messenger .ec-settings-section {
  display: none !important;
}

#ec-claude-shell .ec-settings-shell--messenger .ec-settings-section.active {
  display: block !important;
}

#ec-claude-shell .ec-settings-shell--messenger .ec-settings-card {
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(138,91,255,0.09), transparent 55%),
    rgba(11,11,26,0.60);
  border-color: rgba(164,132,255,0.15);
}

#ec-claude-shell .ec-settings-shell--messenger .ec-settings-hero {
  min-height: 360px;
}

#ec-claude-shell .ec-settings-shell--messenger .ec-settings-card-head h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

#ec-claude-shell .ec-settings-shell--messenger .ec-settings-card-head p {
  max-width: 660px;
  margin-top: 8px;
  color: var(--ink-2);
  line-height: 1.55;
}

#ec-claude-shell .ec-settings-shell--messenger .ec-settings-kv > div,
#ec-claude-shell .ec-settings-shell--messenger .ec-settings-row {
  min-height: 62px;
  border-radius: 16px;
  border: 1px solid rgba(138,136,176,0.12);
  background: rgba(5,5,16,0.34);
}

#ec-claude-shell .ec-settings-shell--messenger .ec-settings-kv button,
#ec-claude-shell .ec-settings-shell--messenger .ec-settings-row > button:not(.ec-settings-switch),
#ec-claude-shell .ec-settings-shell--messenger .ec-settings-danger-row button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(164,132,255,0.24);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(138,91,255,0.22), rgba(255,255,255,0.035));
  color: var(--ink-0);
  font: 800 12px/1 var(--font);
  cursor: pointer;
}

#ec-claude-shell .ec-settings-shell--messenger .ec-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

#ec-claude-shell .ec-settings-shell--messenger .ec-settings-toggle-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#ec-claude-shell .ec-settings-shell--messenger .ec-settings-danger-row input {
  min-height: 42px;
  border: 1px solid rgba(255,91,111,0.22);
  border-radius: 14px;
  background: rgba(5,5,16,0.52);
  color: var(--ink-1);
  padding: 0 14px;
  outline: 0;
}

@media (max-width: 899px) {
  #ec-claude-shell .ec-settings-shell--messenger {
    display: flex;
    flex-direction: column;
    padding: 0 14px 18px;
    gap: 12px;
    overflow: auto;
  }

  #ec-claude-shell .ec-settings-shell--messenger .ec-settings-menu {
    min-height: auto;
  }

  #ec-claude-shell .ec-settings-shell--messenger .ec-settings-menu button {
    min-height: 46px;
  }

  #ec-claude-shell .ec-settings-shell--messenger .ec-settings-panel {
    padding: 14px;
    overflow: visible;
  }

  #ec-claude-shell .ec-settings-shell--messenger .ec-settings-identity-grid,
  #ec-claude-shell .ec-settings-shell--messenger .ec-settings-toggle-list.compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 899px) {
  #login-screen.auth-screen.active,
  #setup-new.auth-screen.active {
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    align-items: stretch !important;
  }

  #login-screen .auth-topbar,
  #setup-new .auth-topbar {
    flex: 0 0 auto !important;
    z-index: 20 !important;
  }

  #login-screen .auth-shell,
  #setup-new .auth-shell,
  #login-screen > div:last-child,
  #setup-new > div:last-child {
    flex: 1 0 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #login-screen #ec-login-form,
  #setup-new .auth-shell {
    max-height: none !important;
    overflow: visible !important;
  }

  #login-screen .auth-panel,
  #setup-new .auth-shell {
    transform: none !important;
    contain: none !important;
  }

  #login-screen .auth-captcha-card,
  #setup-new .auth-captcha-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 3 !important;
    margin: 8px 0 10px !important;
  }

  #captcha-img-login,
  #captcha-img-reg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 104px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    margin: 0 auto 12px !important;
  }

  #captcha-answer-login,
  #captcha-answer-reg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 48px !important;
    font-size: 16px !important;
    touch-action: manipulation;
  }

  #login-screen .auth-chip-btn,
  #setup-new .auth-chip-btn,
  #login-screen #btn-login,
  #setup-new #btn-create-acc {
    min-height: 44px !important;
    touch-action: manipulation;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 899px) {
    #login-screen.auth-screen.active,
    #setup-new.auth-screen.active {
      min-height: -webkit-fill-available !important;
    }

    #login-screen .auth-panel,
    #setup-new .auth-shell {
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }
  }
}

/* Mobile Phase 1: reuse the final app shell as a native-style phone layout only after login. */
#ec-claude-shell-final .ec-mobile-bottom-nav {
  display: none;
}

@media (max-width: 899px) {
  body.auth-ready #cd-shell {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 160 !important;
    overflow: hidden !important;
    background: #050611 !important;
  }

  body.auth-ready #ec-claude-shell,
  body.auth-ready #ec-claude-shell-v2,
  body.auth-ready #rooms-screen.screen,
  body.auth-ready #chat-screen.screen,
  /* §VAULT-SCOPE-2026-09-14: war `#vault-screen.screen` ohne Einschraenkung.
     Fuer #rooms-screen und #chat-screen ist das Ausblenden richtig — deren
     Inhalt wird in die neue Shell gespiegelt. Der Vault hat aber KEINE
     Entsprechung in der neuen Shell: die Regel hat ihn ab 900px Breite
     schlicht unsichtbar gemacht (display:none + visibility:hidden +
     opacity:0, alle !important), obwohl showScreen ihn korrekt auf .active
     gesetzt hatte. Jetzt wird er nur noch im INAKTIVEN Zustand versteckt. */
  body.auth-ready #vault-screen.screen:not(.active) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  /* Der aktive Vault muss ueber #cd-shell (z-index 160) liegen, sonst waere
     er zwar gerendert, aber von der Shell verdeckt. */
  body.auth-ready #vault-screen.screen.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 200 !important;
  }

  body.auth-ready #lp-footer,
  body.auth-ready .v11-footer-legal {
    display: none !important;
  }

  body.auth-ready #aura-fab {
    right: 10px !important;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
    transform: scale(0.72) !important;
    opacity: 0.34 !important;
  }

  body.auth-ready #aura-fab .aura-fab-copy {
    display: none !important;
  }

  body.auth-ready #ec-claude-shell-final {
    --ecf-bg: #050611;
    --ecf-panel: rgba(13, 17, 34, 0.78);
    --ecf-panel-2: rgba(20, 24, 48, 0.68);
    --ecf-line: rgba(214, 210, 255, 0.14);
    --ecf-line-strong: rgba(164, 132, 255, 0.34);
    --ecf-text: #f5f4ff;
    --ecf-muted: #9d9ab7;
    --ecf-soft: #cbc8e8;
    --ecf-violet: #8a5bff;
    --ecf-cyan: #35d7ff;
    --ecf-green: #43f08c;
    display: grid !important;
    grid-template-columns: 1fr;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 12px calc(88px + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    color: var(--ecf-text);
    font-family: "Space Grotesk", var(--font), system-ui, sans-serif;
    background:
      radial-gradient(circle at 50% -8%, rgba(53, 215, 255, 0.2), transparent 36%),
      radial-gradient(circle at 96% 14%, rgba(138, 91, 255, 0.22), transparent 38%),
      radial-gradient(circle at 12% 90%, rgba(53, 215, 255, 0.11), transparent 34%),
      linear-gradient(rgba(214, 210, 255, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(214, 210, 255, 0.04) 1px, transparent 1px),
      var(--ecf-bg);
    background-size: auto, auto, auto, 34px 34px, 34px 34px, auto;
    box-sizing: border-box;
  }

  body.auth-ready #ec-claude-shell-final *,
  body.auth-ready #ec-claude-shell-final *::before,
  body.auth-ready #ec-claude-shell-final *::after {
    box-sizing: border-box;
  }

  body.auth-ready #ec-claude-shell-final .ecf-rail {
    display: none !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-main {
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  body.auth-ready #ec-claude-shell-final .ecf-view[data-ec-final-panel] {
    display: none !important;
    height: 100%;
    min-height: 0;
  }

  body.auth-ready #ec-claude-shell-final[data-ec-final-view="chat"] .ecf-view[data-ec-final-panel="chat"],
  body.auth-ready #ec-claude-shell-final[data-ec-final-view="settings"] .ecf-view[data-ec-final-panel="settings"],
  body.auth-ready #ec-claude-shell-final[data-ec-final-view="vault"] .ecf-view[data-ec-final-panel="vault"],
  body.auth-ready #ec-claude-shell-final[data-ec-final-view="security"] .ecf-view[data-ec-final-panel="security"] {
    display: block !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-chat-layout {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
  }

  body.auth-ready #ec-claude-shell-final .ecf-contacts,
  body.auth-ready #ec-claude-shell-final .ecf-chat-panel,
  body.auth-ready #ec-claude-shell-final .ecf-settings-panel,
  body.auth-ready #ec-claude-shell-final .ecf-placeholder {
    min-height: 0;
    border: 1px solid rgba(214, 210, 255, 0.13);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(15, 19, 38, 0.86), rgba(7, 9, 20, 0.82));
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    overflow: hidden;
  }

  body.auth-ready #ec-claude-shell-final[data-ec-mobile-section="rooms"] .ecf-contacts {
    display: flex;
    flex-direction: column;
  }

  body.auth-ready #ec-claude-shell-final[data-ec-mobile-section="rooms"] .ecf-chat-panel,
  body.auth-ready #ec-claude-shell-final[data-ec-mobile-section="chat"] .ecf-contacts {
    display: none !important;
  }

  body.auth-ready #ec-claude-shell-final[data-ec-mobile-section="chat"] .ecf-chat-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  body.auth-ready #ec-claude-shell-final .ecf-panel-head,
  body.auth-ready #ec-claude-shell-final .ecf-chat-head,
  body.auth-ready #ec-claude-shell-final .ecf-view-head {
    padding: 18px 18px 12px;
    gap: 12px;
  }

  body.auth-ready #ec-claude-shell-final .ecf-panel-head h1,
  body.auth-ready #ec-claude-shell-final .ecf-view-head h1 {
    font-size: 28px;
    letter-spacing: -0.04em;
  }

  body.auth-ready #ec-claude-shell-final .ecf-status,
  body.auth-ready #ec-claude-shell-final .ecf-chip {
    font-size: 10px;
    white-space: nowrap;
  }

  body.auth-ready #ec-claude-shell-final .ecf-toolbar,
  body.auth-ready #ec-claude-shell-final .ecf-filter-row {
    margin: 0 14px 12px;
  }

  body.auth-ready #ec-claude-shell-final .ecf-room-list {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 14px 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.auth-ready #ec-claude-shell-final .ecf-room,
  body.auth-ready #ec-claude-shell-final .ecf-empty {
    border-radius: 22px;
  }

  body.auth-ready #ec-claude-shell-final .ecf-chat-stream {
    min-height: 0;
    padding: 16px 14px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.auth-ready #ec-claude-shell-final .ecf-chat-empty {
    min-height: 100%;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    padding: 18px;
  }

  body.auth-ready #ec-claude-shell-final .ecf-chat-empty-globe {
    gap: 10px;
  }

  body.auth-ready #ec-claude-shell-final .ec-empty-globe {
    width: min(62vw, 236px);
    height: min(62vw, 236px);
  }

  body.auth-ready #ec-claude-shell-final .ec-empty-globe canvas {
    width: 100%;
    height: 100%;
  }

  body.auth-ready #ec-claude-shell-final .ecf-composer {
    position: sticky;
    bottom: 0;
    margin: 0;
    padding: 10px;
    border-radius: 20px 20px 26px 26px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    background: rgba(6, 8, 18, 0.94);
  }

  body.auth-ready #ec-claude-shell-final .ecf-composer-badge {
    display: none;
  }

  body.auth-ready #ec-claude-shell-final #ec-final-msg-input {
    min-height: 46px;
    font-size: 16px;
  }

  body.auth-ready #ec-claude-shell-final .ecf-send-btn {
    min-width: 74px;
    min-height: 46px;
  }

  body.auth-ready #ec-claude-shell-final .ecf-settings {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
  }

  body.auth-ready #ec-claude-shell-final .ecf-settings-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 2px;
    min-height: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.auth-ready #ec-claude-shell-final .ecf-settings-nav button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
  }

  body.auth-ready #ec-claude-shell-final .ecf-audit-card {
    display: none;
  }

  body.auth-ready #ec-claude-shell-final .ecf-settings-panel {
    overflow-y: auto;
    padding: 14px;
    -webkit-overflow-scrolling: touch;
  }

  body.auth-ready #ec-claude-shell-final .ecf-settings-section .ecf-kv {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
  }

  body.auth-ready #ec-claude-shell-final .ecf-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
  }

  body.auth-ready #ec-claude-shell-final .ec-mobile-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    min-height: 64px;
    padding: 8px;
    border: 1px solid rgba(214, 210, 255, 0.14);
    border-radius: 24px;
    background: rgba(8, 10, 22, 0.9);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  body.auth-ready #ec-claude-shell-final .ec-mobile-bottom-nav button {
    display: grid;
    place-items: center;
    gap: 3px;
    min-height: 48px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: rgba(245, 244, 255, 0.62);
    font: 800 11px/1 var(--font);
    cursor: pointer;
    touch-action: manipulation;
  }

  body.auth-ready #ec-claude-shell-final .ec-mobile-bottom-nav span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 10px;
    color: currentColor;
    font-size: 14px;
  }

  body.auth-ready #ec-claude-shell-final .ec-mobile-bottom-nav button.active {
    color: #35d7ff;
    background: linear-gradient(135deg, rgba(53, 215, 255, 0.12), rgba(138, 91, 255, 0.16));
    box-shadow: inset 0 0 0 1px rgba(53, 215, 255, 0.18), 0 0 22px rgba(53, 215, 255, 0.12);
  }

  body.auth-ready #ec-claude-shell-final .ec-mobile-bottom-nav button.active span {
    background: rgba(53, 215, 255, 0.12);
    box-shadow: 0 0 18px rgba(53, 215, 255, 0.22);
  }
}

/* Mobile Phase 2: remove squeezed desktop cues and make the logged-in shell feel app-native. */
@media (max-width: 899px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden !important;
  }

  body.auth-ready {
    width: 100vw;
    min-height: 100dvh;
    overflow: hidden !important;
    background: #050611;
  }

  body.auth-ready #cd-shell,
  body.auth-ready #ec-claude-shell-final {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
  }

  body.auth-ready #cd-shell > #ec-claude-shell,
  body.auth-ready #cd-shell > #ec-claude-shell-v2,
  body.auth-ready #cd-shell .pc-meta-pill,
  body.auth-ready #cd-shell .pc-sidebar-kicker,
  body.auth-ready #cd-shell .pc-stage-kicker {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.auth-ready footer:not(.ecf-composer),
  body.auth-ready #lp-footer,
  body.auth-ready #v11-legal-footer,
  body.auth-ready .v11-footer-legal,
  body.auth-ready .legal-footer {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.auth-ready #ec-claude-shell-final {
    padding: calc(18px + env(safe-area-inset-top, 0px)) 10px calc(92px + env(safe-area-inset-bottom, 0px)) !important;
    background:
      radial-gradient(circle at 50% 4%, rgba(53, 215, 255, 0.22), transparent 30%),
      radial-gradient(circle at 100% 16%, rgba(138, 91, 255, 0.26), transparent 34%),
      radial-gradient(circle at 0% 82%, rgba(53, 215, 255, 0.11), transparent 34%),
      linear-gradient(rgba(214, 210, 255, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(214, 210, 255, 0.035) 1px, transparent 1px),
      #050611 !important;
    background-size: auto, auto, auto, 30px 30px, 30px 30px, auto !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-main,
  body.auth-ready #ec-claude-shell-final .ecf-chat-layout,
  body.auth-ready #ec-claude-shell-final .ecf-view[data-ec-final-panel] {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  body.auth-ready #ec-claude-shell-final .ecf-contacts,
  body.auth-ready #ec-claude-shell-final .ecf-chat-panel,
  body.auth-ready #ec-claude-shell-final .ecf-settings-panel,
  body.auth-ready #ec-claude-shell-final .ecf-placeholder {
    width: 100%;
    max-width: 100%;
    border-radius: 30px;
    background:
      linear-gradient(180deg, rgba(13, 18, 36, 0.92), rgba(5, 7, 18, 0.88)),
      radial-gradient(circle at 50% 0%, rgba(53, 215, 255, 0.12), transparent 36%);
  }

  body.auth-ready #ec-claude-shell-final .ecf-panel-head {
    min-height: 78px;
    align-items: center;
    padding: 18px 16px 10px !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-kicker {
    display: none !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-panel-head h1,
  body.auth-ready #ec-claude-shell-final .ecf-view-head h1 {
    font-size: 0 !important;
    line-height: 1 !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-panel-head h1::after {
    content: "EliteCrypt";
    display: inline-block;
    font-size: 25px;
    line-height: 1;
    letter-spacing: -0.045em;
    color: #f7f6ff;
  }

  body.auth-ready #ec-claude-shell-final .ecf-view-head h1::after {
    content: "Mehr";
    display: inline-block;
    font-size: 25px;
    line-height: 1;
    letter-spacing: -0.045em;
    color: #f7f6ff;
  }

  body.auth-ready #ec-claude-shell-final .ecf-panel-head h1::before {
    content: "";
    display: inline-grid;
    width: 34px;
    height: 34px;
    margin-right: 10px;
    vertical-align: -9px;
    border-radius: 13px;
    background:
      linear-gradient(135deg, rgba(53, 215, 255, 0.18), rgba(138, 91, 255, 0.28)),
      rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(107, 234, 255, 0.22), 0 0 28px rgba(53, 215, 255, 0.2);
  }

  body.auth-ready #ec-claude-shell-final .ecf-status {
    max-width: 88px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 0 !important;
    border-radius: 999px;
    background: rgba(40, 255, 150, 0.1);
    border-color: rgba(67, 240, 140, 0.25);
  }

  body.auth-ready #ec-claude-shell-final .ecf-status::after {
    content: "Sicher";
    font-size: 11px;
    line-height: 1;
    color: #72ffaf;
    font-weight: 900;
    letter-spacing: 0.02em;
  }

  body.auth-ready #ec-claude-shell-final .ecf-head-actions {
    gap: 6px;
    max-width: 96px;
    justify-content: flex-end;
  }

  body.auth-ready #ec-claude-shell-final .ecf-head-actions .ecf-chip,
  body.auth-ready #ec-claude-shell-final .ecf-head-actions .ecf-icon-action {
    display: none !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-toolbar {
    grid-template-columns: minmax(0, 1fr) 48px;
    margin: 0 14px 12px !important;
    gap: 10px;
  }

  body.auth-ready #ec-claude-shell-final .ecf-search {
    min-width: 0;
    min-height: 46px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
  }

  body.auth-ready #ec-claude-shell-final .ecf-search input {
    min-width: 0;
    font-size: 15px;
  }

  body.auth-ready #ec-claude-shell-final .ecf-toolbar .ecf-btn {
    width: 48px;
    min-width: 48px;
    height: 46px;
    padding: 0;
    border-radius: 18px;
  }

  body.auth-ready #ec-claude-shell-final .ecf-filter-row {
    margin: 0 14px 12px !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.auth-ready #ec-claude-shell-final .ecf-filter-row button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
  }

  body.auth-ready #ec-claude-shell-final .ecf-empty {
    margin-top: 10px;
    padding: 24px 16px !important;
    border-radius: 26px !important;
    text-align: center;
    background:
      radial-gradient(circle at 50% 0%, rgba(53, 215, 255, 0.14), transparent 38%),
      rgba(255, 255, 255, 0.055);
  }

  body.auth-ready #ec-claude-shell-final .ecf-empty::before {
    content: "◇";
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    border-radius: 22px;
    color: #35d7ff;
    font-size: 28px;
    background: linear-gradient(135deg, rgba(53, 215, 255, 0.14), rgba(138, 91, 255, 0.2));
    box-shadow: inset 0 0 0 1px rgba(107, 234, 255, 0.22), 0 0 34px rgba(53, 215, 255, 0.2);
  }

  body.auth-ready #ec-claude-shell-final .ecf-empty strong {
    display: block;
    font-size: 21px;
    letter-spacing: -0.035em;
  }

  body.auth-ready #ec-claude-shell-final .ecf-empty p {
    max-width: 280px;
    margin: 8px auto 18px;
    line-height: 1.45;
  }

  body.auth-ready #ec-claude-shell-final .ecf-empty div,
  body.auth-ready #ec-claude-shell-final .ecf-chat-empty div {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.auth-ready #ec-claude-shell-final .ecf-empty .ecf-btn,
  body.auth-ready #ec-claude-shell-final .ecf-chat-empty .ecf-btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    border-radius: 18px;
  }

  body.auth-ready #ec-claude-shell-final .ecf-chat-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding: 14px 14px 10px !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-chat-person {
    min-width: 0;
  }

  body.auth-ready #ec-claude-shell-final .ecf-chat-person strong,
  body.auth-ready #ec-claude-shell-final .ecf-chat-person small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.auth-ready #ec-claude-shell-final .ecf-chat-actions {
    width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  body.auth-ready #ec-claude-shell-final .ecf-chat-actions button,
  body.auth-ready #ec-claude-shell-final .ecf-chat-actions .ecf-chip {
    flex: 0 0 auto;
    min-height: 34px;
    border-radius: 999px;
  }

  body.auth-ready #ec-claude-shell-final .ecf-composer {
    gap: 8px;
    grid-template-columns: 40px minmax(0, 1fr) 68px !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-attach-btn,
  body.auth-ready #ec-claude-shell-final .ecf-send-btn {
    border-radius: 16px !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-settings-head {
    min-height: auto;
    padding: 14px 16px 8px !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-settings {
    gap: 8px;
  }

  body.auth-ready #ec-claude-shell-final .ecf-settings-nav {
    margin: 0;
    padding: 4px 0 8px !important;
  }

  body.auth-ready #ec-claude-shell-final .ecf-settings-card,
  body.auth-ready #ec-claude-shell-final .ecf-kv,
  body.auth-ready #ec-claude-shell-final .ecf-theme-grid button,
  body.auth-ready #ec-claude-shell-final .ecf-fact-grid > div {
    max-width: 100%;
  }

  body.auth-ready #ec-claude-shell-final .ec-mobile-bottom-nav {
    left: 10px !important;
    right: 10px !important;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 68px;
    border-radius: 26px;
    background:
      linear-gradient(180deg, rgba(15, 20, 42, 0.9), rgba(6, 8, 18, 0.94)),
      rgba(255, 255, 255, 0.04);
  }
}

/* Mobile Phase 2B: dedicated app shell, separated from the desktop shell. */
#ec-mobile-shell {
  display: none;
}

@media (min-width: 769px) {
  #ec-mobile-shell {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body.auth-ready #cd-shell {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 180 !important;
    overflow: hidden !important;
    background: #040511 !important;
  }

  body.auth-ready #ec-claude-shell-final,
  body.auth-ready #ec-claude-shell,
  body.auth-ready #ec-claude-shell-v2,
  body.auth-ready #rooms-screen.screen,
  body.auth-ready #chat-screen.screen,
  /* §VAULT-SCOPE-2026-09-14: war `#vault-screen.screen` ohne Einschraenkung.
     Fuer #rooms-screen und #chat-screen ist das Ausblenden richtig — deren
     Inhalt wird in die neue Shell gespiegelt. Der Vault hat aber KEINE
     Entsprechung in der neuen Shell: die Regel hat ihn ab 900px Breite
     schlicht unsichtbar gemacht (display:none + visibility:hidden +
     opacity:0, alle !important), obwohl showScreen ihn korrekt auf .active
     gesetzt hatte. Jetzt wird er nur noch im INAKTIVEN Zustand versteckt. */
  body.auth-ready #vault-screen.screen:not(.active) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  /* Der aktive Vault muss ueber #cd-shell (z-index 160) liegen, sonst waere
     er zwar gerendert, aber von der Shell verdeckt. */
  body.auth-ready #vault-screen.screen.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 200 !important;
  }

  body.auth-ready #ec-mobile-shell {
    --ecm-bg: #040511;
    --ecm-panel: rgba(13, 18, 36, 0.84);
    --ecm-panel-2: rgba(19, 24, 48, 0.72);
    --ecm-line: rgba(211, 216, 255, 0.14);
    --ecm-violet: #8a5bff;
    --ecm-cyan: #35d7ff;
    --ecm-green: #65ffab;
    --ecm-text: #f6f5ff;
    --ecm-muted: #9f9bb9;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100vw;
    height: 100dvh;
    min-width: 0;
    min-height: 0;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 12px calc(10px + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    color: var(--ecm-text);
    font-family: "Space Grotesk", var(--font), system-ui, sans-serif;
    background:
      radial-gradient(circle at 50% -4%, rgba(53, 215, 255, 0.2), transparent 32%),
      radial-gradient(circle at 100% 12%, rgba(138, 91, 255, 0.25), transparent 38%),
      radial-gradient(circle at 0% 84%, rgba(53, 215, 255, 0.1), transparent 36%),
      linear-gradient(rgba(214, 210, 255, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(214, 210, 255, 0.035) 1px, transparent 1px),
      var(--ecm-bg);
    background-size: auto, auto, auto, 30px 30px, 30px 30px, auto;
    box-sizing: border-box;
  }

  body.auth-ready #ec-mobile-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(circle at 50% 10%, rgba(53, 215, 255, 0.14), transparent 22%),
      radial-gradient(circle at 72% 18%, rgba(138, 91, 255, 0.14), transparent 26%),
      radial-gradient(circle at 18% 86%, rgba(53, 215, 255, 0.09), transparent 24%);
    opacity: 0.86;
  }

  body.auth-ready #ec-mobile-shell *,
  body.auth-ready #ec-mobile-shell *::before,
  body.auth-ready #ec-mobile-shell *::after {
    box-sizing: border-box;
  }

  body.auth-ready #ec-mobile-shell[hidden] {
    display: grid !important;
  }

  body.auth-ready #ec-mobile-shell .ecm-header {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px 12px;
  }

  body.auth-ready #ec-mobile-shell .ecm-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  body.auth-ready #ec-mobile-shell .ecm-brand > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    color: var(--ecm-cyan);
    font-weight: 950;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, rgba(53, 215, 255, 0.14), rgba(138, 91, 255, 0.24));
    box-shadow: inset 0 0 0 1px rgba(107, 234, 255, 0.22), 0 0 28px rgba(53, 215, 255, 0.18);
  }

  body.auth-ready #ec-mobile-shell .ecm-brand strong {
    display: block;
    font-size: 19px;
    line-height: 1;
    letter-spacing: -0.045em;
  }

  body.auth-ready #ec-mobile-shell .ecm-brand small {
    display: block;
    margin-top: 4px;
    color: var(--ecm-muted);
    font-size: 11px;
    white-space: nowrap;
  }

  body.auth-ready #ec-mobile-shell .ecm-status,
  body.auth-ready #ec-mobile-shell button {
    font: inherit;
    touch-action: manipulation;
  }

  body.auth-ready #ec-mobile-shell .ecm-status {
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid rgba(101, 255, 171, 0.24);
    border-radius: 999px;
    background: rgba(101, 255, 171, 0.09);
    color: var(--ecm-green);
    font-size: 12px;
    font-weight: 900;
  }

  body.auth-ready #ec-mobile-shell .ecm-main {
    min-height: 0;
    overflow: hidden;
  }

  body.auth-ready #ec-mobile-shell .ecm-panel {
    display: none;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--ecm-line);
    border-radius: 30px;
    background:
      radial-gradient(circle at 50% 0%, rgba(53, 215, 255, 0.14), transparent 34%),
      radial-gradient(circle at 94% 8%, rgba(138, 91, 255, 0.12), transparent 32%),
      linear-gradient(180deg, var(--ecm-panel), rgba(5, 7, 18, 0.88));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  body.auth-ready #ec-mobile-shell .ecm-panel.active {
    display: flex;
    flex-direction: column;
  }

  body.auth-ready #ec-mobile-shell .ecm-title-row,
  body.auth-ready #ec-mobile-shell .ecm-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 16px 12px;
  }

  body.auth-ready #ec-mobile-shell .ecm-title-row h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.055em;
  }

  body.auth-ready #ec-mobile-shell .ecm-title-row p {
    margin: 6px 0 0;
    color: var(--ecm-muted);
    font-size: 13px;
  }

  body.auth-ready #ec-mobile-shell .ecm-trust-strip {
    display: flex;
    gap: 8px;
    margin: 0 14px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.auth-ready #ec-mobile-shell .ecm-trust-strip span {
    flex: 0 0 auto;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border: 1px solid rgba(53, 215, 255, 0.18);
    border-radius: 999px;
    background: rgba(53, 215, 255, 0.08);
    color: rgba(210, 248, 255, 0.9);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
  }

  body.auth-ready #ec-mobile-shell .ecm-icon-btn,
  body.auth-ready #ec-mobile-shell .ecm-back {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(214, 210, 255, 0.13);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--ecm-text);
    font-weight: 900;
  }

  body.auth-ready #ec-mobile-shell .ecm-search {
    margin: 0 14px 12px;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    border: 1px solid rgba(214, 210, 255, 0.1);
    border-radius: 18px;
    color: var(--ecm-muted);
    background: rgba(255, 255, 255, 0.055);
  }

  body.auth-ready #ec-mobile-shell .ecm-room-list,
  body.auth-ready #ec-mobile-shell .ecm-chat-stream {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 14px 16px;
    -webkit-overflow-scrolling: touch;
  }

  body.auth-ready #ec-mobile-shell .ecm-room {
    width: 100%;
    min-width: 0;
    min-height: 74px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid rgba(214, 210, 255, 0.13);
    border-radius: 22px;
    background:
      radial-gradient(circle at 0% 0%, rgba(53, 215, 255, 0.1), transparent 38%),
      rgba(255, 255, 255, 0.058);
    color: var(--ecm-text);
    text-align: left;
  }

  body.auth-ready #ec-mobile-shell .ecm-room.active {
    border-color: rgba(53, 215, 255, 0.32);
    box-shadow: 0 0 26px rgba(53, 215, 255, 0.12);
  }

  body.auth-ready #ec-mobile-shell .ecm-room > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(53, 215, 255, 0.15), rgba(138, 91, 255, 0.24));
    color: var(--ecm-cyan);
    font-weight: 950;
  }

  body.auth-ready #ec-mobile-shell .ecm-room strong,
  body.auth-ready #ec-mobile-shell .ecm-room small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.auth-ready #ec-mobile-shell .ecm-room small {
    margin-top: 4px;
    color: var(--ecm-muted);
    font-size: 12px;
  }

  body.auth-ready #ec-mobile-shell .ecm-room b {
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(53, 215, 255, 0.1);
    color: var(--ecm-cyan);
    font-size: 10px;
  }

  body.auth-ready #ec-mobile-shell .ecm-empty,
  body.auth-ready #ec-mobile-shell .ecm-placeholder {
    min-height: 100%;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 11px;
    padding: 24px 16px;
    text-align: center;
  }

  body.auth-ready #ec-mobile-shell .ecm-empty.compact {
    min-height: 100%;
  }

  body.auth-ready #ec-mobile-shell .ecm-empty > span,
  body.auth-ready #ec-mobile-shell .ecm-placeholder > span {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 24px;
    color: var(--ecm-cyan);
    font-size: 30px;
    background: linear-gradient(135deg, rgba(53, 215, 255, 0.15), rgba(138, 91, 255, 0.24));
    box-shadow: inset 0 0 0 1px rgba(107, 234, 255, 0.22), 0 0 34px rgba(53, 215, 255, 0.18);
  }

  body.auth-ready #ec-mobile-shell .ecm-empty.error > span {
    color: #ff6b7f;
    background: rgba(255, 91, 111, 0.12);
  }

  body.auth-ready #ec-mobile-shell .ecm-empty h2,
  body.auth-ready #ec-mobile-shell .ecm-placeholder h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: -0.045em;
  }

  body.auth-ready #ec-mobile-shell .ecm-empty p,
  body.auth-ready #ec-mobile-shell .ecm-placeholder p {
    max-width: 270px;
    margin: 0 0 8px;
    color: var(--ecm-muted);
    line-height: 1.45;
  }

  body.auth-ready #ec-mobile-shell .ecm-primary,
  body.auth-ready #ec-mobile-shell .ecm-secondary {
    width: 100%;
    max-width: 280px;
    min-height: 48px;
    border-radius: 18px;
    font-weight: 900;
  }

  body.auth-ready #ec-mobile-shell .ecm-primary {
    border: 0;
    background: linear-gradient(135deg, var(--ecm-cyan), var(--ecm-violet));
    color: white;
  }

  body.auth-ready #ec-mobile-shell .ecm-secondary {
    border: 1px solid rgba(214, 210, 255, 0.14);
    background: rgba(255, 255, 255, 0.055);
    color: var(--ecm-text);
  }

  body.auth-ready #ec-mobile-shell .ecm-chat-panel.active {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  body.auth-ready #ec-mobile-shell .ecm-chat-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
  }

  body.auth-ready #ec-mobile-shell .ecm-chat-head strong,
  body.auth-ready #ec-mobile-shell .ecm-chat-head small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.auth-ready #ec-mobile-shell .ecm-chat-head small {
    margin-top: 4px;
    color: var(--ecm-muted);
    font-size: 12px;
  }

  body.auth-ready #ec-mobile-shell .ecm-composer {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 72px;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid rgba(214, 210, 255, 0.1);
    background: linear-gradient(180deg, rgba(9, 12, 25, 0.92), rgba(4, 5, 17, 0.94));
  }

  body.auth-ready #ec-mobile-shell .ecm-composer button,
  body.auth-ready #ec-mobile-shell .ecm-composer input {
    min-width: 0;
    min-height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(214, 210, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--ecm-text);
    font-size: 16px;
  }

  body.auth-ready #ec-mobile-shell .ecm-composer input {
    padding: 0 13px;
    outline: 0;
  }

  body.auth-ready #ec-mobile-shell .ecm-composer .primary {
    border: 0;
    background: linear-gradient(135deg, var(--ecm-cyan), var(--ecm-violet));
    color: white;
    font-size: 12px;
    font-weight: 900;
  }

  body.auth-ready #ec-mobile-shell .ecm-msg {
    max-width: 84%;
    margin: 0 0 10px;
    padding: 11px 13px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--ecm-text);
  }

  body.auth-ready #ec-mobile-shell .ecm-msg.mine {
    margin-left: auto;
    background: linear-gradient(135deg, rgba(53, 215, 255, 0.34), rgba(138, 91, 255, 0.42));
  }

  body.auth-ready #ec-mobile-shell .ecm-msg p {
    margin: 0;
    line-height: 1.45;
  }

  body.auth-ready #ec-mobile-shell .ecm-more-list {
    display: grid;
    gap: 10px;
    padding: 0 14px 16px;
    overflow-y: auto;
  }

  body.auth-ready #ec-mobile-shell .ecm-more-list button {
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid rgba(214, 210, 255, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--ecm-text);
    text-align: left;
    font-weight: 850;
  }

  body.auth-ready #ec-mobile-shell .ecm-settings-list {
    gap: 16px;
    padding-bottom: 18px;
  }

  body.auth-ready #ec-mobile-shell .ecm-settings-group {
    display: grid;
    gap: 9px;
    min-width: 0;
  }

  body.auth-ready #ec-mobile-shell .ecm-settings-group h2 {
    margin: 4px 4px 0;
    color: rgba(246, 245, 255, 0.72);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  body.auth-ready #ec-mobile-shell .ecm-setting-row {
    width: 100%;
    min-height: 66px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 11px 12px !important;
    border: 1px solid rgba(214, 210, 255, 0.12) !important;
    border-radius: 22px !important;
    background:
      radial-gradient(circle at 0% 0%, rgba(53, 215, 255, 0.08), transparent 40%),
      rgba(255, 255, 255, 0.055) !important;
    color: var(--ecm-text) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  body.auth-ready #ec-mobile-shell .ecm-setting-row > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    color: var(--ecm-cyan);
    font-size: 11px;
    font-weight: 950;
    background: linear-gradient(135deg, rgba(53, 215, 255, 0.13), rgba(138, 91, 255, 0.2));
    box-shadow: inset 0 0 0 1px rgba(107, 234, 255, 0.16);
  }

  body.auth-ready #ec-mobile-shell .ecm-setting-row div {
    min-width: 0;
  }

  body.auth-ready #ec-mobile-shell .ecm-setting-row strong,
  body.auth-ready #ec-mobile-shell .ecm-setting-row small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.auth-ready #ec-mobile-shell .ecm-setting-row strong {
    font-size: 14px;
    line-height: 1.15;
  }

  body.auth-ready #ec-mobile-shell .ecm-setting-row small {
    margin-top: 5px;
    color: var(--ecm-muted);
    font-size: 11px;
    line-height: 1.25;
  }

  body.auth-ready #ec-mobile-shell .ecm-setting-row b {
    color: rgba(246, 245, 255, 0.48);
    font-size: 22px;
    line-height: 1;
  }

  body.auth-ready #ec-mobile-shell .ecm-setting-row.danger {
    border-color: rgba(255, 91, 111, 0.2) !important;
    background: rgba(255, 91, 111, 0.075) !important;
  }

  body.auth-ready #ec-mobile-shell .ecm-setting-row.danger > span {
    color: #ff7c8e;
    background: rgba(255, 91, 111, 0.12);
  }

  body.auth-ready #ec-mobile-shell .ecm-setting-row.switch em {
    position: relative;
    width: 46px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(214, 210, 255, 0.12);
  }

  body.auth-ready #ec-mobile-shell .ecm-setting-row.switch em::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(246, 245, 255, 0.86);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
    transition: transform 0.18s ease, background 0.18s ease;
  }

  body.auth-ready #ec-mobile-shell .ecm-setting-row.switch.on em {
    background: linear-gradient(135deg, rgba(53, 215, 255, 0.48), rgba(138, 91, 255, 0.62));
  }

  body.auth-ready #ec-mobile-shell .ecm-setting-row.switch.on em::after {
    transform: translateX(18px);
    background: #ffffff;
  }

  body.auth-ready #ec-mobile-shell .ecm-plan-card {
    min-height: 78px;
    display: grid;
    gap: 7px;
    align-content: center;
    padding: 14px;
    border: 1px solid rgba(214, 210, 255, 0.12);
    border-radius: 22px;
    background:
      linear-gradient(135deg, rgba(138, 91, 255, 0.13), rgba(53, 215, 255, 0.07)),
      rgba(255, 255, 255, 0.045);
  }

  body.auth-ready #ec-mobile-shell .ecm-plan-card strong {
    color: var(--ecm-text);
    font-size: 18px;
    letter-spacing: -0.035em;
  }

  body.auth-ready #ec-mobile-shell .ecm-plan-card small {
    color: var(--ecm-muted);
    line-height: 1.35;
  }

  body.auth-ready #ec-mobile-shell .ecm-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    min-height: 66px;
    margin-top: 10px;
    padding: 8px;
    border: 1px solid rgba(214, 210, 255, 0.14);
    border-radius: 26px;
    background:
      radial-gradient(circle at 50% 0%, rgba(53, 215, 255, 0.1), transparent 42%),
      rgba(8, 10, 22, 0.92);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  body.auth-ready #ec-mobile-shell .ecm-bottom-nav button {
    display: grid;
    place-items: center;
    gap: 3px;
    min-width: 0;
    min-height: 48px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: rgba(245, 244, 255, 0.62);
    font: 850 11px/1 var(--font);
  }

  body.auth-ready #ec-mobile-shell .ecm-bottom-nav span {
    font-size: 15px;
  }

  body.auth-ready #ec-mobile-shell .ecm-bottom-nav button.active {
    color: var(--ecm-cyan);
    background: linear-gradient(135deg, rgba(53, 215, 255, 0.13), rgba(138, 91, 255, 0.17));
    box-shadow: inset 0 0 0 1px rgba(53, 215, 255, 0.18), 0 0 22px rgba(53, 215, 255, 0.12);
  }
}

/* Mobile Phase 2C: force the dedicated shell above every desktop wrapper on phones/touch screens. */
@media (max-width: 899px), (hover: none) and (pointer: coarse) {
  html,
  body.ec-mobile-shell-active {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    background: #040511 !important;
  }

  body.ec-mobile-shell-active #cd-shell {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow: hidden !important;
    background: #040511 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.ec-mobile-shell-active #ec-claude-shell-final,
  body.ec-mobile-shell-active #ec-claude-shell,
  body.ec-mobile-shell-active #ec-claude-shell-v2,
  body.ec-mobile-shell-active #rooms-screen.screen,
  body.ec-mobile-shell-active #chat-screen.screen,
  body.ec-mobile-shell-active #vault-screen.screen,
  body.ec-mobile-shell-active .ec-design-app-shell,
  body.ec-mobile-shell-active .pc-private-chat {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell,
  body.ec-mobile-shell-active #ec-mobile-shell[hidden] {
    display: grid !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483001 !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 12px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    overflow: hidden !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    color: var(--ecm-text, #f6f5ff) !important;
    background:
      radial-gradient(circle at 50% -4%, rgba(53, 215, 255, 0.22), transparent 32%),
      radial-gradient(circle at 100% 12%, rgba(138, 91, 255, 0.28), transparent 38%),
      radial-gradient(circle at 0% 84%, rgba(53, 215, 255, 0.11), transparent 36%),
      linear-gradient(rgba(214, 210, 255, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(214, 210, 255, 0.035) 1px, transparent 1px),
      #040511 !important;
    background-size: auto, auto, auto, 30px 30px, 30px 30px, auto !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell[aria-hidden="true"] {
    visibility: visible !important;
  }

  body.ec-mobile-shell-active #lp-footer,
  body.ec-mobile-shell-active #v11-legal-footer,
  body.ec-mobile-shell-active footer:not(.ecm-composer),
  body.ec-mobile-shell-active .v11-footer-legal,
  body.ec-mobile-shell-active .legal-footer {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-header,
  body.ec-mobile-shell-active #ec-mobile-shell .ecm-main,
  body.ec-mobile-shell-active #ec-mobile-shell .ecm-bottom-nav {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-main {
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-panel {
    max-width: 100% !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-bottom-nav {
    flex: 0 0 auto;
  }
}

/* Mobile Phase 3B: polished native-style Mehr / Einstellungen screen. */
@media (max-width: 899px), (hover: none) and (pointer: coarse) {
  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="more"].ecm-panel {
    padding: 0 !important;
    background:
      radial-gradient(circle at 20% 0%, rgba(53, 215, 255, 0.1), transparent 34%),
      radial-gradient(circle at 90% 10%, rgba(138, 91, 255, 0.13), transparent 42%),
      rgba(7, 9, 21, 0.76) !important;
    border-color: rgba(214, 210, 255, 0.1) !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="more"] .ecm-title-row {
    margin: 0 0 12px !important;
    padding: 15px 15px 14px !important;
    border: 1px solid rgba(214, 210, 255, 0.12) !important;
    border-radius: 26px !important;
    background:
      linear-gradient(135deg, rgba(53, 215, 255, 0.1), rgba(138, 91, 255, 0.12)),
      rgba(255, 255, 255, 0.045) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 40px rgba(0, 0, 0, 0.32) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="more"] .ecm-title-row h1 {
    margin: 0 !important;
    font-size: clamp(22px, 6vw, 28px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.06em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="more"] .ecm-title-row p {
    margin-top: 5px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    color: rgba(222, 228, 255, 0.62) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="more"] .ecm-icon-btn {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    border-radius: 18px !important;
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-settings-list {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    padding: 0 2px calc(112px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-settings-group {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    gap: 2px !important;
    margin: 0 0 16px !important;
    padding: 12px !important;
    border: 1px solid rgba(214, 210, 255, 0.1) !important;
    border-radius: 26px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
      rgba(7, 10, 24, 0.86) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 16px 40px rgba(0, 0, 0, 0.26) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-settings-group h2 {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 8px !important;
    padding: 0 4px 6px !important;
    border-bottom: 1px solid rgba(214, 210, 255, 0.07) !important;
    color: rgba(245, 246, 255, 0.78) !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 950 !important;
    letter-spacing: 0.075em !important;
    text-transform: uppercase !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-settings-group h2::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, #35d7ff, #8a5bff);
    box-shadow: 0 0 14px rgba(53, 215, 255, 0.45);
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-setting-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 64px !important;
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 10px 8px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ecm-text) !important;
    text-align: left !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-setting-row + .ecm-setting-row,
  body.ec-mobile-shell-active #ec-mobile-shell .ecm-plan-card + .ecm-plan-card,
  body.ec-mobile-shell-active #ec-mobile-shell .ecm-plan-card + .ecm-setting-row {
    border-top: 1px solid rgba(214, 210, 255, 0.07) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-setting-row:active {
    background: rgba(53, 215, 255, 0.055) !important;
    transform: scale(0.992);
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-setting-row > span {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 15px !important;
    color: #6beaff !important;
    font-size: 10px !important;
    font-weight: 950 !important;
    background:
      radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.18), transparent 28%),
      linear-gradient(135deg, rgba(53, 215, 255, 0.16), rgba(138, 91, 255, 0.22)) !important;
    box-shadow: inset 0 0 0 1px rgba(107, 234, 255, 0.18), 0 0 18px rgba(53, 215, 255, 0.08) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-setting-row > div {
    min-width: 0 !important;
    display: grid !important;
    gap: 4px !important;
    align-content: center !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-setting-row strong,
  body.ec-mobile-shell-active #ec-mobile-shell .ecm-setting-row small {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-setting-row strong {
    margin: 0 !important;
    color: rgba(248, 250, 255, 0.95) !important;
    font-size: 14px !important;
    line-height: 1.18 !important;
    font-weight: 850 !important;
    letter-spacing: -0.015em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-setting-row small {
    margin: 0 !important;
    color: rgba(190, 198, 230, 0.64) !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    font-weight: 650 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-setting-row b {
    min-width: 18px !important;
    color: rgba(107, 234, 255, 0.48) !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: right !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-setting-row.switch em {
    justify-self: end !important;
    width: 44px !important;
    height: 26px !important;
    min-width: 44px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.11) !important;
    box-shadow: inset 0 0 0 1px rgba(214, 210, 255, 0.14) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-setting-row.switch em::after {
    top: 4px !important;
    left: 4px !important;
    width: 18px !important;
    height: 18px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-setting-row.switch.on em {
    background: linear-gradient(135deg, rgba(53, 215, 255, 0.78), rgba(138, 91, 255, 0.78)) !important;
    box-shadow: 0 0 20px rgba(53, 215, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.18) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-setting-row.switch.on em::after {
    transform: translateX(18px) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-setting-row.danger {
    color: #ff8b9a !important;
    background: rgba(255, 91, 111, 0.045) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-setting-row.danger > span {
    color: #ff8b9a !important;
    background: rgba(255, 91, 111, 0.13) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 91, 111, 0.18) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-plan-card {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 74px !important;
    margin: 0 !important;
    padding: 12px 8px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-plan-card strong,
  body.ec-mobile-shell-active #ec-mobile-shell .ecm-plan-card small {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-plan-card strong {
    color: rgba(248, 250, 255, 0.96) !important;
    font-size: 15px !important;
    line-height: 1.16 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-plan-card small {
    margin-top: 5px !important;
    color: rgba(190, 198, 230, 0.66) !important;
    font-size: 11px !important;
    line-height: 1.28 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-settings-subpage {
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 12px !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-settings-subpage[hidden] {
    display: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-settings-frame.is-subpage {
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-settings-subhead {
    margin: 0 0 2px !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    justify-content: start !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-settings-subhead .ec-mobile-back {
    margin: 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-profile-sub-content {
    min-width: 0 !important;
    min-height: 0 !important;
    display: grid !important;
    align-content: start !important;
    gap: 12px !important;
    padding: 0 2px calc(112px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-sub-card {
    display: grid !important;
    gap: 5px !important;
    padding: 16px !important;
    border: 1px solid rgba(53, 215, 255, 0.16) !important;
    border-radius: 24px !important;
    background:
      radial-gradient(circle at 10% 0%, rgba(53, 215, 255, 0.14), transparent 36%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.026)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 42px rgba(0, 0, 0, 0.28) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-sub-card strong {
    color: rgba(248, 250, 255, 0.96) !important;
    font-size: 16px !important;
    line-height: 1.16 !important;
    font-weight: 900 !important;
    letter-spacing: -0.025em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-sub-card small {
    color: rgba(190, 198, 230, 0.68) !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-sub-row {
    border: 1px solid rgba(214, 210, 255, 0.1) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.025)),
      rgba(7, 10, 24, 0.84) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 12px 32px rgba(0, 0, 0, 0.2) !important;
  }
}

/* Mobile Phase 4: reference-style dedicated iPhone app layer. Desktop selectors stay untouched. */
@media (max-width: 899px), (hover: none) and (pointer: coarse) {
  body.ec-mobile-shell-active #ec-mobile-shell,
  body.ec-mobile-shell-active #ec-mobile-shell * {
    box-sizing: border-box !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell {
    --ec-mobile-bg: #030512;
    --ec-mobile-ink: #f7f8ff;
    --ec-mobile-muted: rgba(199, 207, 238, 0.68);
    --ec-mobile-soft: rgba(12, 17, 35, 0.82);
    --ec-mobile-card: rgba(13, 19, 39, 0.72);
    --ec-mobile-line: rgba(173, 191, 255, 0.14);
    --ec-mobile-cyan: #35d7ff;
    --ec-mobile-violet: #8a5bff;
    --ec-mobile-green: #65ffab;
    display: block !important;
    padding: 0 !important;
    color: var(--ec-mobile-ink) !important;
    background: var(--ec-mobile-bg) !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-bg {
    position: fixed !important;
    inset: 0 !important;
    pointer-events: none !important;
    background:
      radial-gradient(circle at 50% -8%, rgba(53, 215, 255, 0.24), transparent 31%),
      radial-gradient(circle at 92% 16%, rgba(138, 91, 255, 0.3), transparent 35%),
      radial-gradient(circle at 2% 78%, rgba(53, 215, 255, 0.12), transparent 30%),
      linear-gradient(rgba(220, 225, 255, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(220, 225, 255, 0.035) 1px, transparent 1px),
      #030512 !important;
    background-size: auto, auto, auto, 28px 28px, 28px 28px, auto !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-app {
    position: relative !important;
    z-index: 2 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    gap: 12px !important;
    padding: calc(13px + env(safe-area-inset-top, 0px)) 14px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-topbar {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-brand {
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-brand > span {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 18px !important;
    color: var(--ec-mobile-cyan) !important;
    font-size: 15px !important;
    font-weight: 950 !important;
    background:
      radial-gradient(circle at 35% 18%, rgba(255, 255, 255, 0.22), transparent 28%),
      linear-gradient(135deg, rgba(53, 215, 255, 0.18), rgba(138, 91, 255, 0.26)) !important;
    box-shadow: inset 0 0 0 1px rgba(107, 234, 255, 0.24), 0 0 30px rgba(53, 215, 255, 0.18) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-brand strong {
    display: block !important;
    color: var(--ec-mobile-ink) !important;
    font-size: 19px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    letter-spacing: -0.045em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-brand small {
    display: block !important;
    margin-top: 4px !important;
    color: var(--ec-mobile-muted) !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-status {
    min-width: 72px !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(101, 255, 171, 0.28) !important;
    border-radius: 999px !important;
    background: rgba(101, 255, 171, 0.1) !important;
    color: var(--ec-mobile-green) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    box-shadow: 0 0 22px rgba(101, 255, 171, 0.12) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-content {
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-panel {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: none !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    border: 1px solid rgba(173, 191, 255, 0.12) !important;
    border-radius: 30px !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(53, 215, 255, 0.12), transparent 30%),
      linear-gradient(180deg, rgba(13, 18, 38, 0.82), rgba(5, 8, 20, 0.9)) !important;
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-panel.active {
    display: grid !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="rooms"].ec-mobile-panel.active {
    grid-template-rows: auto auto auto auto minmax(0, 1fr) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chat"].ec-mobile-panel.active {
    grid-template-rows: auto minmax(0, 1fr) auto !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-screen-head {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 18px 16px 12px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-screen-head h1 {
    margin: 0 !important;
    color: var(--ec-mobile-ink) !important;
    font-size: clamp(24px, 6.5vw, 30px) !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    letter-spacing: -0.06em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-screen-head p {
    margin: 6px 0 0 !important;
    color: var(--ec-mobile-muted) !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-icon-btn,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-back {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid rgba(173, 191, 255, 0.16) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.055) !important;
    color: var(--ec-mobile-ink) !important;
    font-size: 17px !important;
    font-weight: 900 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-hero-card,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-card {
    margin: 0 14px 12px !important;
    padding: 15px !important;
    border: 1px solid rgba(53, 215, 255, 0.16) !important;
    border-radius: 24px !important;
    background:
      radial-gradient(circle at 8% 0%, rgba(53, 215, 255, 0.13), transparent 35%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 42px rgba(0, 0, 0, 0.28) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-home-hero {
    display: grid !important;
    justify-items: center !important;
    gap: 14px !important;
    padding: 18px 15px 15px !important;
    overflow: hidden !important;
    background:
      radial-gradient(circle at 50% 12%, rgba(53, 215, 255, 0.22), transparent 31%),
      radial-gradient(circle at 74% 0%, rgba(138, 91, 255, 0.2), transparent 34%),
      linear-gradient(180deg, rgba(16, 22, 48, 0.82), rgba(7, 10, 26, 0.78)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(circle at 22% 18%, rgba(53, 215, 255, 0.7) 0 1px, transparent 2px),
      radial-gradient(circle at 70% 34%, rgba(138, 91, 255, 0.55) 0 1px, transparent 2px),
      radial-gradient(circle at 86% 68%, rgba(53, 215, 255, 0.42) 0 1px, transparent 2px);
    opacity: 0.8;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-orbit {
    position: relative !important;
    z-index: 1 !important;
    width: 86px !important;
    height: 86px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    background:
      radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.24), transparent 18%),
      radial-gradient(circle, rgba(53, 215, 255, 0.18), rgba(138, 91, 255, 0.16) 46%, rgba(4, 7, 20, 0.86) 68%) !important;
    box-shadow: inset 0 0 0 1px rgba(107, 234, 255, 0.28), 0 0 36px rgba(53, 215, 255, 0.26), 0 0 64px rgba(138, 91, 255, 0.18) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-orbit::before,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-orbit::after {
    content: "";
    position: absolute;
    inset: -9px;
    border: 1px solid rgba(107, 234, 255, 0.18);
    border-radius: 999px;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-orbit::after {
    inset: 12px;
    border-color: rgba(138, 91, 255, 0.22);
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-orbit span {
    position: relative !important;
    z-index: 1 !important;
    color: #dffaff !important;
    font-size: 18px !important;
    font-weight: 950 !important;
    letter-spacing: -0.05em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-home-copy {
    position: relative !important;
    z-index: 1 !important;
    max-width: 260px !important;
    text-align: center !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-home-kicker {
    display: block !important;
    color: rgba(107, 234, 255, 0.86) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.32em !important;
    text-transform: uppercase !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-home-copy h2 {
    margin: 8px 0 0 !important;
    color: var(--ec-mobile-ink) !important;
    font-size: clamp(24px, 7vw, 31px) !important;
    line-height: 1.02 !important;
    font-weight: 950 !important;
    letter-spacing: -0.06em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-home-copy h2::first-line {
    color: #ffffff !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-home-copy p {
    margin: 8px auto 0 !important;
    color: var(--ec-mobile-muted) !important;
    font-size: 12px !important;
    line-height: 1.38 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-security-grid {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-security-card {
    min-width: 0 !important;
    min-height: 62px !important;
    display: grid !important;
    align-content: center !important;
    gap: 4px !important;
    padding: 9px 8px !important;
    border: 1px solid rgba(107, 234, 255, 0.13) !important;
    border-radius: 17px !important;
    background: rgba(255, 255, 255, 0.052) !important;
    text-align: center !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-security-card strong,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-security-card small {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-security-card strong {
    color: rgba(230, 251, 255, 0.96) !important;
    font-size: 10.5px !important;
    line-height: 1.1 !important;
    font-weight: 950 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-security-card small {
    color: rgba(190, 198, 230, 0.66) !important;
    font-size: 9px !important;
    line-height: 1.18 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-hero-card {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-hero-card strong,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-hero-card small {
    display: block !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-hero-card strong {
    font-size: 15px !important;
    letter-spacing: -0.02em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-hero-card small {
    margin-top: 4px !important;
    color: var(--ec-mobile-muted) !important;
    font-size: 11px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-hero-card span {
    flex: 0 0 auto !important;
    min-height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 11px !important;
    border-radius: 999px !important;
    color: var(--ec-mobile-cyan) !important;
    background: rgba(53, 215, 255, 0.1) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-search {
    margin: 0 14px 12px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(173, 191, 255, 0.11) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.055) !important;
    color: var(--ec-mobile-muted) !important;
    font-size: 12px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-trust-strip {
    margin: 0 14px 14px !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 9px !important;
    overflow-x: auto !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-trust-strip span {
    min-width: 0 !important;
    min-height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 8px !important;
    border: 1px solid rgba(53, 215, 255, 0.18) !important;
    border-radius: 999px !important;
    background: rgba(53, 215, 255, 0.08) !important;
    color: rgba(210, 248, 255, 0.92) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-room-list,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-list,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-stream,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-settings,
  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-section {
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    padding: 0 14px calc(106px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-room {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 74px !important;
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 0 10px !important;
    padding: 12px !important;
    border: 1px solid rgba(173, 191, 255, 0.13) !important;
    border-radius: 23px !important;
    background:
      radial-gradient(circle at 0% 0%, rgba(53, 215, 255, 0.1), transparent 36%),
      rgba(255, 255, 255, 0.058) !important;
    color: var(--ec-mobile-ink) !important;
    text-align: left !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-empty-card,
  body.ec-mobile-shell-active #ec-mobile-shell .ecm-empty,
  body.ec-mobile-shell-active #ec-mobile-shell .ecm-placeholder {
    min-height: 100% !important;
    display: grid !important;
    align-content: center !important;
    justify-items: center !important;
    gap: 12px !important;
    text-align: center !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-empty-actions {
    width: 100% !important;
    max-width: 292px !important;
    display: grid !important;
    gap: 9px !important;
    justify-items: stretch !important;
    margin-top: 4px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell #ec-mobile-room-list .ecm-empty {
    min-height: 230px !important;
    margin: 0 !important;
    padding: 22px 16px !important;
    border: 1px solid rgba(173, 191, 255, 0.12) !important;
    border-radius: 25px !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(53, 215, 255, 0.13), transparent 36%),
      rgba(255, 255, 255, 0.045) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 16px 38px rgba(0, 0, 0, 0.24) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-orb,
  body.ec-mobile-shell-active #ec-mobile-shell .ecm-empty > span,
  body.ec-mobile-shell-active #ec-mobile-shell .ecm-placeholder > span {
    width: 72px !important;
    height: 72px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 26px !important;
    color: var(--ec-mobile-cyan) !important;
    font-size: 30px !important;
    background: linear-gradient(135deg, rgba(53, 215, 255, 0.17), rgba(138, 91, 255, 0.28)) !important;
    box-shadow: inset 0 0 0 1px rgba(107, 234, 255, 0.22), 0 0 34px rgba(53, 215, 255, 0.18) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-empty-card h2,
  body.ec-mobile-shell-active #ec-mobile-shell .ecm-empty h2,
  body.ec-mobile-shell-active #ec-mobile-shell .ecm-placeholder h1 {
    margin: 0 !important;
    color: var(--ec-mobile-ink) !important;
    font-size: 24px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.045em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-empty-card p,
  body.ec-mobile-shell-active #ec-mobile-shell .ecm-empty p,
  body.ec-mobile-shell-active #ec-mobile-shell .ecm-placeholder p {
    max-width: 280px !important;
    margin: 0 !important;
    color: var(--ec-mobile-muted) !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-primary,
  body.ec-mobile-shell-active #ec-mobile-shell .ecm-primary,
  body.ec-mobile-shell-active #ec-mobile-shell .ecm-secondary {
    width: 100% !important;
    max-width: 290px !important;
    min-height: 48px !important;
    border-radius: 18px !important;
    font-weight: 900 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-head {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 12px 10px !important;
    border-bottom: 1px solid rgba(173, 191, 255, 0.09) !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(53, 215, 255, 0.08), transparent 36%),
      rgba(5, 8, 20, 0.42) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-meta {
    min-width: 0 !important;
    display: grid !important;
    gap: 4px !important;
    align-content: center !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-meta strong,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-meta small {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-meta strong {
    color: rgba(248, 250, 255, 0.98) !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-meta small {
    color: var(--ec-mobile-muted) !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-stream {
    background:
      radial-gradient(circle at 24% 18%, rgba(53, 215, 255, 0.08), transparent 22%),
      radial-gradient(circle at 86% 66%, rgba(138, 91, 255, 0.07), transparent 24%) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-stream .ecm-empty {
    min-height: 100% !important;
    padding: 24px 16px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-stream .ecm-empty.error {
    min-height: 210px !important;
    margin: auto 0 !important;
    border: 1px solid rgba(255, 91, 111, 0.16) !important;
    border-radius: 25px !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 91, 111, 0.12), transparent 36%),
      rgba(255, 255, 255, 0.042) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-composer {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 72px !important;
    gap: 8px !important;
    padding: 10px 10px 11px !important;
    border-top: 1px solid rgba(173, 191, 255, 0.1) !important;
    background:
      linear-gradient(180deg, rgba(10, 14, 31, 0.9), rgba(4, 6, 17, 0.96)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-composer button,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-composer input {
    min-width: 0 !important;
    min-height: 46px !important;
    border: 1px solid rgba(173, 191, 255, 0.14) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--ec-mobile-ink) !important;
    font-size: 16px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-composer .primary {
    border: 0 !important;
    background: linear-gradient(135deg, var(--ec-mobile-cyan), var(--ec-mobile-violet)) !important;
    color: white !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-settings-section,
  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-section {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    gap: 0 !important;
    margin: 0 0 14px !important;
    padding: 12px !important;
    border: 1px solid rgba(173, 191, 255, 0.11) !important;
    border-radius: 26px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.026)),
      rgba(8, 12, 28, 0.82) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 14px 34px rgba(0, 0, 0, 0.24) !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-section-title {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 8px !important;
    padding: 0 4px 7px !important;
    border-bottom: 1px solid rgba(173, 191, 255, 0.07) !important;
    color: rgba(247, 248, 255, 0.76) !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 950 !important;
    letter-spacing: 0.075em !important;
    text-transform: uppercase !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 64px !important;
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 10px 8px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: transparent !important;
    color: var(--ec-mobile-ink) !important;
    text-align: left !important;
    box-shadow: none !important;
    overflow: hidden !important;
    font-size: 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-row + .ec-mobile-setting-row,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-plan-card + .ec-mobile-plan-card {
    border-top: 1px solid rgba(173, 191, 255, 0.075) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 15px !important;
    color: var(--ec-mobile-cyan) !important;
    font-size: 10px !important;
    font-weight: 950 !important;
    background: linear-gradient(135deg, rgba(53, 215, 255, 0.16), rgba(138, 91, 255, 0.22)) !important;
    box-shadow: inset 0 0 0 1px rgba(107, 234, 255, 0.18) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-copy {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    align-items: flex-start !important;
    justify-content: center !important;
    white-space: normal !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-title,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-subtitle {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-title {
    color: rgba(248, 250, 255, 0.96) !important;
    font-size: 14.5px !important;
    line-height: 1.16 !important;
    font-weight: 850 !important;
    margin: 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-subtitle {
    color: rgba(190, 198, 230, 0.66) !important;
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    font-weight: 650 !important;
    margin: 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-chevron {
    min-width: 18px !important;
    color: rgba(107, 234, 255, 0.5) !important;
    font-size: 20px !important;
    line-height: 1 !important;
    text-align: right !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-row.danger .ec-mobile-setting-icon {
    color: #ff8b9a !important;
    background: rgba(255, 91, 111, 0.13) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 91, 111, 0.18) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-row.switch em {
    justify-self: end !important;
    width: 44px !important;
    height: 26px !important;
    min-width: 44px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: inset 0 0 0 1px rgba(173, 191, 255, 0.14) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-plan-card {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 72px !important;
    padding: 12px 8px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-plan-card strong,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-plan-card small {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-plan-card strong {
    color: rgba(248, 250, 255, 0.96) !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-plan-card small {
    margin-top: 5px !important;
    color: rgba(190, 198, 230, 0.66) !important;
    font-size: 11.5px !important;
    line-height: 1.28 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-bottom-nav {
    width: 100% !important;
    min-height: 68px !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 8px !important;
    border: 1px solid rgba(173, 191, 255, 0.16) !important;
    border-radius: 27px !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(53, 215, 255, 0.12), transparent 42%),
      rgba(5, 8, 20, 0.92) !important;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-bottom-nav button {
    min-width: 0 !important;
    min-height: 50px !important;
    display: grid !important;
    place-items: center !important;
    gap: 3px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: transparent !important;
    color: rgba(245, 244, 255, 0.62) !important;
    font-size: 11px !important;
    font-weight: 850 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-bottom-nav button span {
    font-size: 15px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-bottom-nav button.active {
    color: var(--ec-mobile-cyan) !important;
    background: linear-gradient(135deg, rgba(53, 215, 255, 0.13), rgba(138, 91, 255, 0.18)) !important;
    box-shadow: inset 0 0 0 1px rgba(53, 215, 255, 0.18), 0 0 24px rgba(53, 215, 255, 0.14) !important;
  }
}

/* Mobile final reference lock: phone-native app frame and 1:1-inspired hierarchy. */
@media (max-width: 768px) {
  body.ec-mobile-shell-active #ec-mobile-shell {
    display: grid !important;
    place-items: center !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    height: 100dvh !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-app {
    width: min(100vw, 430px) !important;
    max-width: 430px !important;
    margin: 0 auto !important;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 13px calc(9px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 11px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-panel {
    border-radius: 31px !important;
    border-color: rgba(145, 167, 255, 0.17) !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(53, 215, 255, 0.12), transparent 34%),
      radial-gradient(circle at 85% 12%, rgba(138, 91, 255, 0.11), transparent 32%),
      linear-gradient(180deg, rgba(10, 14, 31, 0.92), rgba(3, 5, 16, 0.94)) !important;
    box-shadow:
      0 28px 88px rgba(0, 0, 0, 0.58),
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      inset 0 0 0 1px rgba(255, 255, 255, 0.015) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-topbar {
    min-height: 48px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-brand > span {
    width: 46px !important;
    height: 46px !important;
    border-radius: 19px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-status::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    display: inline-block;
    background: var(--ec-mobile-green);
    box-shadow: 0 0 12px rgba(101, 255, 171, 0.65);
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-screen-head {
    padding: 17px 15px 11px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-screen-head h1 {
    font-size: clamp(25px, 7vw, 32px) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-search {
    min-height: 45px !important;
    border-radius: 19px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.045)),
      rgba(9, 12, 27, 0.82) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-home-hero {
    min-height: 298px !important;
    border-radius: 29px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-home-copy h2 {
    max-width: 260px !important;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 42%, #35d7ff 62%, #8a5bff 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-trust-strip {
    overflow: visible !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-trust-strip span {
    min-height: 31px !important;
    border-radius: 999px !important;
    background:
      linear-gradient(135deg, rgba(53, 215, 255, 0.1), rgba(138, 91, 255, 0.09)),
      rgba(255, 255, 255, 0.035) !important;
    box-shadow: inset 0 0 0 1px rgba(107, 234, 255, 0.08), 0 0 18px rgba(53, 215, 255, 0.06) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-room-list,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-list,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-stream,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-settings,
  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-list .ecm-room,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-room-list .ecm-room {
    min-height: 78px !important;
    grid-template-columns: 52px minmax(0, 1fr) auto !important;
    padding: 12px !important;
    border-radius: 24px !important;
    border-color: rgba(145, 167, 255, 0.13) !important;
    background:
      radial-gradient(circle at 0 0, rgba(53, 215, 255, 0.11), transparent 38%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.064), rgba(255, 255, 255, 0.035)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 12px 26px rgba(0, 0, 0, 0.22) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-list .ecm-room > span,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-room-list .ecm-room > span {
    width: 52px !important;
    height: 52px !important;
    border-radius: 19px !important;
    background:
      radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.22), transparent 24%),
      linear-gradient(135deg, rgba(53, 215, 255, 0.18), rgba(138, 91, 255, 0.28)) !important;
    box-shadow: inset 0 0 0 1px rgba(107, 234, 255, 0.2), 0 0 22px rgba(53, 215, 255, 0.09) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-list .ecm-room strong,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-room-list .ecm-room strong {
    color: rgba(249, 250, 255, 0.98) !important;
    font-size: 15px !important;
    font-weight: 900 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-list .ecm-room small,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-room-list .ecm-room small {
    color: rgba(190, 198, 230, 0.68) !important;
    font-size: 11.5px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-list .ecm-room b,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-room-list .ecm-room b {
    min-height: 25px !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    color: #6beaff !important;
    background: rgba(53, 215, 255, 0.1) !important;
    font-size: 9.5px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-settings-section,
  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-section {
    border-radius: 25px !important;
    padding: 11px !important;
    background:
      radial-gradient(circle at 100% 0, rgba(138, 91, 255, 0.08), transparent 34%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.028)),
      rgba(8, 12, 28, 0.86) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-row {
    min-height: 66px !important;
    grid-template-columns: 42px minmax(0, 1fr) 22px !important;
    padding: 10px 8px !important;
    font-size: 0 !important;
    line-height: normal !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-copy {
    display: grid !important;
    grid-template-rows: auto auto !important;
    row-gap: 4px !important;
    min-width: 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-title {
    display: block !important;
    font-size: 14.5px !important;
    line-height: 1.16 !important;
    white-space: nowrap !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-subtitle {
    display: block !important;
    font-size: 11.5px !important;
    line-height: 1.24 !important;
    white-space: nowrap !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-head {
    min-height: 68px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-stream {
    padding-top: 12px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-msg {
    max-width: 82% !important;
    margin-bottom: 11px !important;
    padding: 12px 13px !important;
    border: 1px solid rgba(145, 167, 255, 0.12) !important;
    border-radius: 18px 18px 18px 7px !important;
    background: rgba(255, 255, 255, 0.065) !important;
    color: rgba(249, 250, 255, 0.96) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-msg.mine {
    border-radius: 18px 18px 7px 18px !important;
    border-color: rgba(53, 215, 255, 0.18) !important;
    background: linear-gradient(135deg, rgba(53, 215, 255, 0.72), rgba(138, 91, 255, 0.72)) !important;
    color: #ffffff !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-composer {
    border-radius: 0 0 30px 30px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-bottom-nav {
    min-height: 70px !important;
    border-radius: 28px !important;
    padding: 8px !important;
  }
}

/* Mobile final override: keep the reference-style shell decisive after older mobile rules. */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  body.ec-mobile-shell-active #ec-mobile-shell {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    display: grid !important;
    place-items: center !important;
    width: 100vw !important;
    height: 100dvh !important;
    overflow: hidden !important;
    background: #02040f !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-app {
    width: min(100vw, 430px) !important;
    max-width: 430px !important;
    height: 100dvh !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    gap: 12px !important;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 13px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    overflow: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-panel {
    border-radius: 32px !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(36, 216, 255, 0.13), transparent 34%),
      linear-gradient(180deg, rgba(13, 18, 40, 0.92), rgba(4, 7, 18, 0.95)) !important;
    box-shadow: 0 26px 72px rgba(0, 0, 0, 0.54), inset 0 1px 0 rgba(255,255,255,0.07) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="rooms"].ec-mobile-panel.active {
    grid-template-rows: auto auto auto auto auto minmax(0, 1fr) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"].ec-mobile-panel.active {
    grid-template-rows: auto auto auto minmax(0, 1fr) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"].ec-mobile-panel.active {
    grid-template-rows: auto auto auto minmax(0, 1fr) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="more"].ec-mobile-panel.active {
    grid-template-rows: auto auto minmax(0, 1fr) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-inline-status,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-filter-row,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-trust-strip {
    margin: 0 14px 12px !important;
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-inline-status span,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-trust-strip span,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-filter-row button {
    flex: 0 0 auto !important;
    min-height: 31px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(36, 216, 255, 0.18) !important;
    background: rgba(36, 216, 255, 0.08) !important;
    color: rgba(220, 250, 255, 0.92) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-filter-row button.active {
    background: linear-gradient(135deg, rgba(36,216,255,.32), rgba(139,92,255,.28)) !important;
    color: #fff !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-home-hero {
    min-height: 328px !important;
    align-content: center !important;
    background:
      radial-gradient(circle at 50% 9%, rgba(36,216,255,.24), transparent 31%),
      radial-gradient(circle at 76% 0%, rgba(139,92,255,.24), transparent 34%),
      linear-gradient(180deg, rgba(17,24,52,.86), rgba(6,9,24,.78)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-orbit {
    width: 104px !important;
    height: 104px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-home-copy h2 {
    font-size: clamp(28px, 8vw, 36px) !important;
    line-height: 1 !important;
    letter-spacing: -0.075em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-room-list,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-list,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-stream,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-settings,
  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="vault"] .ec-mobile-section {
    padding: 0 14px calc(112px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-room {
    min-height: 78px !important;
    grid-template-columns: 52px minmax(0, 1fr) auto !important;
    border-radius: 24px !important;
    background:
      radial-gradient(circle at 0% 0%, rgba(36,216,255,.12), transparent 38%),
      rgba(255,255,255,.058) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ecm-room > span {
    width: 52px !important;
    height: 52px !important;
    border-radius: 19px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-profile-card,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-vault-summary {
    display: grid !important;
    align-items: center !important;
    gap: 12px !important;
    border-radius: 26px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-profile-card {
    grid-template-columns: 48px minmax(0, 1fr) auto !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-vault-summary {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-row {
    min-height: 66px !important;
    grid-template-columns: 41px minmax(0, 1fr) auto !important;
    gap: 12px !important;
    padding: 10px 8px !important;
    font-size: 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-copy {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    min-width: 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-title,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-subtitle {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-title {
    font-size: 14.5px !important;
    line-height: 1.16 !important;
    font-weight: 900 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-setting-subtitle {
    font-size: 11.5px !important;
    line-height: 1.28 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-head {
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    border-radius: 32px 32px 0 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-composer {
    grid-template-columns: 42px minmax(0, 1fr) 70px !important;
    border-radius: 0 0 32px 32px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-bottom-nav {
    min-height: 70px !important;
    border-radius: 29px !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(36,216,255,.12), transparent 42%),
      rgba(5,8,20,.94) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-search {
    min-height: 46px !important;
    max-height: 52px !important;
    flex: 0 0 auto !important;
    margin-bottom: 12px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-chat-list {
    padding-top: 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-inline-status {
    display: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"].ec-mobile-panel.active {
    grid-template-rows: auto auto minmax(0, 1fr) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-hero {
    min-height: 142px !important;
    margin: 0 14px 10px !important;
    padding: 12px !important;
    grid-template-columns: 52px minmax(0, 1fr) !important;
    align-content: start !important;
    align-items: center !important;
    justify-items: stretch !important;
    gap: 10px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-orbit {
    width: 52px !important;
    height: 52px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-copy {
    max-width: none !important;
    text-align: left !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-kicker {
    font-size: 8.5px !important;
    letter-spacing: .18em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-copy h2 {
    max-width: none !important;
    margin-top: 2px !important;
    font-size: 19px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.04em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-copy p {
    max-width: none !important;
    margin: 5px 0 0 !important;
    font-size: 11.5px !important;
    line-height: 1.32 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-security-grid {
    grid-column: 1 / -1 !important;
    gap: 7px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-security-card {
    min-height: 44px !important;
    padding: 7px 5px !important;
    border-radius: 14px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-security-card strong {
    font-size: 9px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-security-card small {
    font-size: 8px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-filter-row,
  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-trust-strip {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-trust-strip span {
    flex: 0 0 auto !important;
    min-width: max-content !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-search input {
    min-width: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: rgba(238, 252, 255, 0.96) !important;
    font: inherit !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-search input::placeholder {
    color: rgba(190, 198, 230, 0.68) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-local-empty] {
    min-height: 170px !important;
    margin-top: 8px !important;
  }
}

/* Mobile bugfix effective override: loaded after all earlier mobile theme blocks. */
@media (max-width: 768px) {
  #ec-mobile-shell .ec-mobile-search,
  #ec-mobile-shell .ecm-search {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    min-height: 48px !important;
    height: 48px !important;
    margin: 0 14px 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(53, 215, 255, 0.16) !important;
    border-radius: 20px !important;
    background: radial-gradient(circle at 0% 0%, rgba(53, 215, 255, 0.1), transparent 42%), rgba(8, 12, 29, 0.92) !important;
    color: rgba(235, 250, 255, 0.9) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    overflow: hidden !important;
  }

  #ec-mobile-shell .ec-mobile-search input,
  #ec-mobile-shell .ecm-search input,
  #ec-mobile-shell input#ec-mobile-chat-search,
  #ec-mobile-shell input#ec-mobile-room-search {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: rgba(245, 252, 255, 0.96) !important;
    font: inherit !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
  }

  #ec-mobile-shell .ec-mobile-search input::placeholder,
  #ec-mobile-shell .ecm-search input::placeholder {
    color: rgba(175, 188, 220, 0.7) !important;
    opacity: 1 !important;
  }

  #ec-mobile-shell .ec-mobile-search input::-webkit-search-decoration,
  #ec-mobile-shell .ec-mobile-search input::-webkit-search-cancel-button,
  #ec-mobile-shell .ec-mobile-search input::-webkit-search-results-button,
  #ec-mobile-shell .ec-mobile-search input::-webkit-search-results-decoration,
  #ec-mobile-shell .ecm-search input::-webkit-search-decoration,
  #ec-mobile-shell .ecm-search input::-webkit-search-cancel-button,
  #ec-mobile-shell .ecm-search input::-webkit-search-results-button,
  #ec-mobile-shell .ecm-search input::-webkit-search-results-decoration {
    -webkit-appearance: none !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-hero {
    min-height: 104px !important;
    max-height: 132px !important;
    margin: 0 14px 10px !important;
    padding: 12px !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    overflow: hidden !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-orbit {
    width: 44px !important;
    height: 44px !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-copy h2 {
    margin: 1px 0 0 !important;
    font-size: 17px !important;
    line-height: 1.12 !important;
    letter-spacing: -0.03em !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-home-copy p {
    margin: 4px 0 0 !important;
    font-size: 11px !important;
    line-height: 1.28 !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-security-grid {
    display: none !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-filter-row,
  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-trust-strip {
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    margin: 0 14px 10px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    box-sizing: border-box !important;
    scrollbar-width: none !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-filter-row::-webkit-scrollbar,
  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-trust-strip::-webkit-scrollbar {
    display: none !important;
  }

  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-filter-row button,
  #ec-mobile-shell [data-ecm-panel="rooms"] .ec-mobile-trust-strip span {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    min-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(53, 215, 255, 0.16) !important;
    border-radius: 999px !important;
    background: rgba(12, 18, 38, 0.76) !important;
    color: rgba(225, 236, 255, 0.88) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  #ec-mobile-shell .ec-mobile-room-list,
  #ec-mobile-shell .ec-mobile-chat-list {
    padding-bottom: calc(122px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #ec-mobile-shell .ec-mobile-empty-actions button,
  #ec-mobile-shell .ecm-primary,
  #ec-mobile-shell .ecm-secondary {
    min-height: 46px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 17px !important;
  }
}
/* Final privacy overlay override: app-switcher shield only */
.ec-privacy-overlay {
  min-height: 100dvh !important;
  padding: max(24px, env(safe-area-inset-top, 0px)) clamp(18px, 4vw, 58px) max(28px, env(safe-area-inset-bottom, 0px)) !important;
  background:
    radial-gradient(circle at 50% 24%, rgba(23, 207, 255, 0.28), transparent 25%),
    radial-gradient(circle at 59% 32%, rgba(132, 91, 255, 0.28), transparent 32%),
    linear-gradient(rgba(28, 185, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 185, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, #020610 0%, #05091a 48%, #01030a 100%) !important;
  background-size: auto, auto, 64px 64px, 64px 64px, auto !important;
  color: #f7fbff !important;
}

.ec-privacy-overlay.is-active,
body.ec-blur-active .ec-privacy-overlay {
  pointer-events: auto !important;
  display: flex !important;
}

.ec-privacy-overlay::before {
  opacity: 0.34 !important;
  background:
    linear-gradient(rgba(45, 222, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 92, 255, 0.14) 1px, transparent 1px) !important;
  background-size: 78px 78px !important;
  mask-image: radial-gradient(circle at center, #000 0 52%, transparent 78%) !important;
}

.ec-privacy-globe {
  width: clamp(220px, 36vw, 430px) !important;
  height: clamp(220px, 36vw, 430px) !important;
  filter: drop-shadow(0 0 36px rgba(35, 219, 255, 0.42)) drop-shadow(0 0 56px rgba(128, 87, 255, 0.24)) !important;
}

.ec-privacy-grid {
  filter: hue-rotate(118deg) saturate(1.8) drop-shadow(0 0 10px rgba(36, 219, 255, 0.42)) !important;
}

.ec-privacy-orbit {
  border-color: rgba(47, 225, 255, 0.35) !important;
  box-shadow: 0 0 26px rgba(42, 222, 255, 0.18), 0 0 34px rgba(132, 91, 255, 0.15) !important;
}

.ec-privacy-node {
  background: #39eaff !important;
  box-shadow: 0 0 14px #39eaff, 0 0 30px rgba(137, 104, 255, 0.62) !important;
}

.ec-privacy-logo {
  position: relative;
  z-index: 3;
  width: clamp(92px, 13vw, 154px);
  height: clamp(92px, 13vw, 154px);
  display: grid;
  place-items: center;
  border-radius: 25%;
  background: rgba(1, 8, 16, 0.72);
  border: 1px solid rgba(52, 236, 255, 0.42);
  box-shadow: 0 0 28px rgba(43, 226, 255, 0.5), 0 0 52px rgba(132, 91, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: ecPrivacyLogoPulse 3s ease-in-out infinite;
  overflow: hidden;
}

.ec-privacy-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ec-privacy-card h1 {
  color: #ffffff !important;
  text-shadow: 0 0 28px rgba(52, 236, 255, 0.16) !important;
}

.ec-privacy-card h1 span {
  color: transparent !important;
  background: linear-gradient(110deg, #20dfff 0%, #4da9ff 44%, #8b5cff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  text-shadow: 0 0 30px rgba(70, 196, 255, 0.34) !important;
}

.ec-privacy-chips span {
  border-color: rgba(44, 220, 255, 0.3) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(7, 20, 42, 0.82), rgba(4, 9, 22, 0.78)) !important;
}

.ec-privacy-chips b {
  color: #26e4ff !important;
  text-shadow: 0 0 16px rgba(38, 228, 255, 0.72) !important;
}

.ec-privacy-card footer {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  min-height: 58px !important;
  padding: 0 34px !important;
  border: 1px solid rgba(132, 91, 255, 0.42) !important;
  border-radius: 16px !important;
  background: rgba(2, 6, 16, 0.58) !important;
  color: #43dfff !important;
  box-shadow: 0 0 26px rgba(132, 91, 255, 0.16) !important;
}

@keyframes ecPrivacyLogoPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.035); filter: brightness(1.12); }
}

@media (max-width: 680px) {
  .ec-privacy-overlay {
    padding: max(18px, env(safe-area-inset-top, 0px)) 18px max(22px, env(safe-area-inset-bottom, 0px)) !important;
  }

  .ec-privacy-globe {
    width: min(72vw, 278px) !important;
    height: min(72vw, 278px) !important;
  }

  .ec-privacy-logo {
    width: min(30vw, 112px) !important;
    height: min(30vw, 112px) !important;
  }

  .ec-privacy-card h1 {
    font-size: clamp(34px, 11vw, 48px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-privacy-logo {
    animation: none !important;
  }
}

/* EOF privacy shield composition override */
.ec-privacy-overlay {
  background:
    radial-gradient(circle at 68% 34%, rgba(44, 188, 255, 0.2), transparent 24%),
    radial-gradient(circle at 82% 50%, rgba(168, 42, 255, 0.18), transparent 30%),
    radial-gradient(circle at 28% 36%, rgba(18, 221, 255, 0.13), transparent 28%),
    linear-gradient(120deg, #030713 0%, #06091a 42%, #09031a 72%, #02040b 100%) !important;
  background-size: auto !important;
}

.ec-privacy-overlay::before {
  opacity: 0.16 !important;
  background:
    radial-gradient(circle at 28% 35%, rgba(32, 223, 255, 0.26), transparent 34%),
    radial-gradient(circle at 78% 42%, rgba(157, 54, 255, 0.22), transparent 40%) !important;
  background-size: auto !important;
  mask-image: none !important;
}

/* Final asset-based privacy lock screen. The artwork is the full visual design. */
.ec-privacy-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  min-height: 100dvh !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding:
    max(16px, env(safe-area-inset-top, 0px))
    max(16px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-left, 0px)) !important;
  overflow: hidden !important;
  pointer-events: none !important;
  background: #020610 !important;
}

.ec-privacy-overlay.is-active,
body.ec-blur-active .ec-privacy-overlay {
  display: flex !important;
  pointer-events: auto !important;
}

.ec-privacy-overlay::before,
.ec-privacy-overlay::after {
  content: none !important;
  display: none !important;
}

.ec-privacy-image-shell {
  position: relative !important;
  z-index: 1 !important;
  width: min(96vw, 1672px) !important;
  max-width: 100% !important;
  max-height: min(92vh, 920px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
}

.ec-privacy-reference-image {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: min(92vh, 920px) !important;
  object-fit: contain !important;
  border-radius: clamp(10px, 1.25vw, 22px) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45), 0 0 46px rgba(28, 207, 255, 0.12) !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
}

@media (max-width: 768px) {
  .ec-privacy-overlay {
    padding:
      max(10px, env(safe-area-inset-top, 0px))
      max(10px, env(safe-area-inset-right, 0px))
      max(10px, env(safe-area-inset-bottom, 0px))
      max(10px, env(safe-area-inset-left, 0px)) !important;
  }

  .ec-privacy-image-shell,
  .ec-privacy-reference-image {
    width: 100% !important;
    max-height: 92dvh !important;
    border-radius: 12px !important;
  }
}

.ec-privacy-card {
  width: min(1320px, 100%) !important;
  min-height: min(720px, calc(100dvh - 64px)) !important;
  display: grid !important;
  grid-template-columns: minmax(420px, 0.88fr) minmax(360px, 1.12fr) !important;
  align-items: center !important;
  gap: clamp(34px, 5vw, 86px) !important;
  text-align: left !important;
  overflow: visible !important;
}

.ec-privacy-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ec-privacy-copy .ec-privacy-globe {
  width: clamp(164px, 18vw, 260px) !important;
  height: clamp(164px, 18vw, 260px) !important;
  margin: 0 0 clamp(24px, 3vw, 38px) !important;
}

.ec-privacy-copy .ec-privacy-logo {
  width: clamp(78px, 9vw, 118px) !important;
  height: clamp(78px, 9vw, 118px) !important;
}

.ec-privacy-copy .ec-privacy-grid {
  opacity: 0.42 !important;
}

.ec-privacy-card h1 {
  max-width: 760px;
  margin-bottom: 18px !important;
  font-size: clamp(48px, 6vw, 82px) !important;
  letter-spacing: -0.065em !important;
}

.ec-privacy-card p {
  max-width: 760px !important;
  margin: 0 0 10px !important;
  font-size: clamp(16px, 1.55vw, 21px) !important;
  line-height: 1.55 !important;
}

.ec-privacy-chips {
  width: min(760px, 100%) !important;
}

.ec-privacy-hero {
  position: relative;
  min-height: clamp(520px, 72vh, 780px);
  align-self: stretch;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 38px;
}

.ec-privacy-hero-glow {
  position: absolute;
  inset: 6% 0 0 4%;
  background:
    radial-gradient(circle at 50% 35%, rgba(30, 207, 255, 0.22), transparent 26%),
    radial-gradient(circle at 60% 44%, rgba(255, 31, 235, 0.2), transparent 30%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(54, 218, 255, 0.08);
  border-radius: 42px;
}

.ec-privacy-girl {
  position: relative;
  width: min(94%, 560px);
  height: min(78vh, 720px);
  min-height: 500px;
  transform: translateX(4%);
}

.ec-privacy-hair {
  position: absolute;
  left: 28%;
  top: 2%;
  width: 42%;
  height: 32%;
  border-radius: 48% 52% 42% 44%;
  background:
    radial-gradient(circle at 54% 26%, rgba(19, 24, 45, 0.98), transparent 42%),
    radial-gradient(circle at 28% 34%, rgba(236, 35, 255, 0.55), transparent 46%),
    radial-gradient(circle at 78% 27%, rgba(28, 190, 255, 0.54), transparent 48%),
    #070b19;
  box-shadow: -28px 0 60px rgba(255, 36, 234, 0.18), 34px 0 64px rgba(33, 202, 255, 0.22);
}

.ec-privacy-face {
  position: absolute;
  left: 34%;
  top: 22%;
  width: 31%;
  height: 29%;
  border-radius: 46% 46% 52% 52%;
  background:
    radial-gradient(circle at 32% 40%, rgba(44, 224, 255, 0.42), transparent 4%),
    radial-gradient(circle at 68% 40%, rgba(44, 224, 255, 0.42), transparent 4%),
    linear-gradient(135deg, rgba(254, 160, 204, 0.78), rgba(88, 55, 126, 0.94) 54%, rgba(19, 21, 48, 0.98));
  box-shadow: inset 18px -18px 38px rgba(9, 13, 34, 0.42), 0 0 40px rgba(44, 224, 255, 0.18);
}

.ec-privacy-glasses {
  position: absolute;
  left: 34%;
  top: 33%;
  width: 31%;
  height: 7%;
  border-radius: 999px;
  border-top: 2px solid rgba(95, 232, 255, 0.88);
  box-shadow: 0 0 18px rgba(48, 222, 255, 0.5);
}

.ec-privacy-glasses::before,
.ec-privacy-glasses::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 38%;
  aspect-ratio: 1.45;
  border: 2px solid rgba(95, 232, 255, 0.74);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 221, 255, 0.28), rgba(114, 72, 255, 0.1));
}

.ec-privacy-glasses::before { left: 0; }
.ec-privacy-glasses::after { right: 0; }

.ec-privacy-hood {
  position: absolute;
  left: 17%;
  top: 47%;
  width: 67%;
  height: 45%;
  border-radius: 42% 42% 18% 18%;
  background:
    radial-gradient(circle at 32% 4%, rgba(255, 45, 227, 0.28), transparent 22%),
    radial-gradient(circle at 68% 0%, rgba(38, 217, 255, 0.3), transparent 24%),
    linear-gradient(145deg, rgba(9, 14, 32, 0.98), rgba(3, 5, 14, 0.98));
  box-shadow: 0 0 74px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ec-privacy-tablet {
  position: absolute;
  left: 14%;
  bottom: 3%;
  width: 68%;
  height: 28%;
  border-radius: 28px;
  transform: rotate(-7deg);
  background:
    radial-gradient(circle at 62% 38%, rgba(36, 222, 255, 0.22), transparent 19%),
    linear-gradient(150deg, rgba(9, 13, 34, 0.96), rgba(2, 5, 13, 0.98));
  border: 1px solid rgba(74, 225, 255, 0.45);
  box-shadow: 0 0 34px rgba(42, 222, 255, 0.28), 0 28px 80px rgba(0, 0, 0, 0.52);
}

.ec-privacy-tablet::after {
  content: "";
  position: absolute;
  right: 16%;
  top: 26%;
  width: 32%;
  height: 38%;
  border-radius: 18px;
  border: 2px solid rgba(43, 224, 255, 0.7);
}

.ec-privacy-hud {
  position: absolute;
  width: 104px;
  height: 104px;
  border-radius: 22px;
  border: 1px solid rgba(74, 225, 255, 0.2);
  background: rgba(7, 13, 31, 0.42);
}

.ec-privacy-hud.hud-a { right: 6%; top: 18%; }
.ec-privacy-hud.hud-b { right: 0; top: 48%; border-color: rgba(179, 71, 255, 0.26); }

.ec-privacy-hud::before {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 14px;
  border: 2px solid rgba(60, 224, 255, 0.7);
  opacity: 0.7;
}

@media (max-width: 980px) {
  .ec-privacy-card {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
    text-align: center !important;
    min-height: auto !important;
    overflow: hidden auto !important;
  }

  .ec-privacy-copy {
    align-items: center !important;
  }

  .ec-privacy-hero {
    min-height: 300px !important;
    width: min(100%, 520px);
    justify-self: center;
  }

  .ec-privacy-girl {
    width: min(88vw, 420px);
    height: 330px;
    min-height: 330px;
    transform: none;
  }
}

@media (max-width: 620px) {
  .ec-privacy-hero {
    min-height: 210px !important;
    opacity: 0.86;
  }

  .ec-privacy-girl {
    width: min(86vw, 320px);
    height: 230px;
    min-height: 230px;
  }

  .ec-privacy-hud {
    display: none;
  }

  .ec-privacy-card h1 {
    font-size: clamp(36px, 11vw, 48px) !important;
  }
}
/* Final Mobile Chats override: must stay after older mobile/privacy rules. */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  body.ec-mobile-shell-active #ec-mobile-shell[data-ecm-view="chats"] .ec-mobile-topbar {
    display: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"].ec-mobile-panel.active {
    grid-template-rows: auto auto auto minmax(0, 1fr) !important;
    gap: 11px !important;
    padding: 18px 14px 0 !important;
    border-radius: 31px !important;
    overflow: hidden !important;
    background:
      radial-gradient(circle at 8% 9%, rgba(30, 218, 255, 0.18), transparent 26%),
      radial-gradient(circle at 85% 0%, rgba(134, 75, 255, 0.2), transparent 34%),
      linear-gradient(180deg, rgba(7, 12, 30, 0.97), rgba(2, 6, 17, 0.98)) !important;
    border: 1px solid rgba(90, 206, 255, 0.16) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-head {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 54px !important;
    margin: 0 2px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-menu-btn,
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-plus {
    width: 42px !important;
    height: 42px !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid rgba(48, 218, 255, 0.2) !important;
    border-radius: 999px !important;
    background: radial-gradient(circle at 35% 20%, rgba(41, 224, 255, 0.2), rgba(102, 56, 255, 0.13) 60%, rgba(255,255,255,0.035)) !important;
    color: #3beaff !important;
    font-size: 21px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-menu-btn {
    letter-spacing: -2px !important;
    padding-bottom: 7px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-title {
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-logo {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    background: rgba(13, 18, 41, 0.78) !important;
    box-shadow: 0 0 24px rgba(33, 223, 255, 0.18) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-title h1 {
    margin: 0 !important;
    color: #fff !important;
    font-size: 25px !important;
    line-height: 1 !important;
    letter-spacing: -0.055em !important;
    font-weight: 900 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-title p {
    margin: 4px 0 0 !important;
    max-width: 190px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: rgba(190, 199, 226, 0.74) !important;
    font-size: 11px !important;
    line-height: 1.18 !important;
    font-weight: 650 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-actions {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-secure {
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(36, 216, 255, 0.22) !important;
    color: #38efff !important;
    background: rgba(21, 216, 255, 0.1) !important;
    font-size: 10px !important;
    font-weight: 950 !important;
    letter-spacing: .05em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-action-menu {
    position: absolute !important;
    left: 3px !important;
    top: 50px !important;
    z-index: 6 !important;
    width: min(248px, calc(100vw - 58px)) !important;
    overflow: hidden !important;
    border: 1px solid rgba(75, 213, 255, 0.16) !important;
    border-radius: 20px !important;
    background: radial-gradient(circle at 0 0, rgba(130, 92, 255, 0.24), transparent 38%), rgba(9, 13, 31, 0.92) !important;
    backdrop-filter: blur(24px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(145%) !important;
    box-shadow: 0 22px 60px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.08) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-action-menu[hidden] {
    display: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-action-menu button {
    width: 100% !important;
    min-height: 54px !important;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 15px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.075) !important;
    background: transparent !important;
    color: #f4f7ff !important;
    text-align: left !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-action-menu button:last-child {
    border-bottom: 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-action-menu span {
    width: 30px !important;
    height: 30px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 12px !important;
    color: #42eaff !important;
    background: rgba(32, 217, 255, 0.11) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-action-menu strong {
    min-width: 0 !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-search {
    height: 43px !important;
    min-height: 43px !important;
    max-height: 43px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255,255,255,0.085) !important;
    background: rgba(255,255,255,0.06) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-search input {
    font-size: 12.5px !important;
    font-weight: 650 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-filters {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    padding: 0 1px 2px !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-filters::-webkit-scrollbar {
    display: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-filters button {
    flex: 0 0 auto !important;
    min-height: 35px !important;
    padding: 0 17px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(180, 198, 255, 0.12) !important;
    background: rgba(255,255,255,0.045) !important;
    color: rgba(199, 205, 226, 0.82) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    letter-spacing: -0.025em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-filters button.active {
    border-color: rgba(34, 225, 255, 0.42) !important;
    background: rgba(18, 209, 255, 0.15) !important;
    color: #30efff !important;
    box-shadow: 0 0 28px rgba(27, 206, 255, 0.18), inset 0 1px 0 rgba(255,255,255,0.08) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-filters .ec-mobile-chat-filter-plus {
    width: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    color: #42e8ff !important;
    font-size: 23px !important;
    border-color: rgba(145, 86, 255, 0.32) !important;
    background: rgba(115, 64, 255, 0.12) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ec-mobile-chat-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    overflow-y: auto !important;
    padding: 5px 0 calc(92px + env(safe-area-inset-bottom, 0px)) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 22px !important;
    background: radial-gradient(circle at 12% 0%, rgba(30, 215, 255, 0.1), transparent 34%), rgba(5, 10, 24, 0.72) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.055) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row {
    position: relative !important;
    width: 100% !important;
    min-height: 63px !important;
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 8px 11px 8px 13px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.055) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #f7fbff !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row:last-child {
    border-bottom: 0 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row.active {
    background: linear-gradient(90deg, rgba(30, 220, 255, 0.075), transparent 74%) !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row > span {
    position: relative !important;
    width: 43px !important;
    height: 43px !important;
    border-radius: 16px !important;
    display: grid !important;
    place-items: center !important;
    overflow: visible !important;
    border: 1px solid rgba(44, 229, 255, 0.22) !important;
    background: radial-gradient(circle at 30% 20%, rgba(39, 232, 255, 0.22), transparent 36%), linear-gradient(135deg, rgba(95, 42, 255, 0.56), rgba(4, 100, 116, 0.42)) !important;
    color: #f7fbff !important;
    font-size: 13px !important;
    font-weight: 950 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row > span i {
    position: absolute !important;
    right: -2px !important;
    bottom: -2px !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 999px !important;
    border: 2px solid #06101f !important;
    background: #12e6d2 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row div {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    text-align: left !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row strong {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: #fbfdff !important;
    font-size: 15px !important;
    line-height: 1.06 !important;
    font-weight: 900 !important;
    letter-spacing: -0.035em !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row small {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: rgba(184, 194, 222, 0.76) !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    font-weight: 650 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row b {
    align-self: start !important;
    margin-top: 7px !important;
    min-width: 36px !important;
    color: rgba(190, 198, 224, 0.78) !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    text-align: right !important;
    font-size: 11.5px !important;
    line-height: 1 !important;
    font-weight: 750 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell [data-ecm-panel="chats"] .ecm-chat-row em {
    position: absolute !important;
    right: 13px !important;
    bottom: 11px !important;
    min-width: 20px !important;
    height: 20px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #22dfff, #416bff) !important;
    color: #fff !important;
    font-size: 10.5px !important;
    font-style: normal !important;
    font-weight: 950 !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-empty {
    min-height: 168px !important;
    margin: 8px !important;
    padding: 18px 14px !important;
    border-radius: 20px !important;
  }
}

@media (max-width: 390px) {
  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chats-secure {
    display: none !important;
  }

  body.ec-mobile-shell-active #ec-mobile-shell .ec-mobile-chat-filters button {
    padding: 0 14px !important;
    font-size: 12.5px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   EIN-SCHRITT-ZURÜCK — Desktop-Floating-Button  §NAV-ONESTEP-2026-07-21
   Sichtbar nur ≥900px (mobil übernehmen die vorhandenen Topbar-Pfeile,
   die auf Desktop versteckt sind). Sitzt oben links unterhalb des
   Brand-Badges; Glas-Look wie die Sprach-Pille. ecGoBack() läuft über
   die Browser-History → identisches Verhalten wie der Browser-Back.
   ═══════════════════════════════════════════════════════════════ */
.ec-nav-back { display: none; }

@media (min-width: 900px) {
  .auth-screen .ec-nav-back {
    display: flex;
    position: absolute;
    top: clamp(84px, 12vh, 108px);
    left: clamp(34px, 4.8vw, 72px);
    z-index: 40;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(6, 9, 20, 0.56);
    border: 1px solid rgba(151, 166, 255, 0.13);
    color: rgba(239, 244, 255, 0.85);
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 16px 36px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px) saturate(1.25);
    -webkit-backdrop-filter: blur(16px) saturate(1.25);
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
  }

  .auth-screen .ec-nav-back:hover {
    color: #2ddcff;
    border-color: rgba(45, 220, 255, 0.35);
    transform: translateX(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-screen .ec-nav-back,
  .auth-screen .ec-nav-back:hover {
    transition: none;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   AUTH-FLOW ENTRANCE  §AUTH-POLISH-2026-07-22
   Sanfte Einblendung beim Öffnen von Splash/Login/Register/Recovery
   (analog zur Landing-Hero-Entrance). Nur opacity/transform.
   WICHTIG: .ec-login-desktop-hero ist per transform positioniert
   (translateY(-48%)) → bekommt Fade-ONLY, sonst springt er.
   ═══════════════════════════════════════════════════════════════ */
@keyframes ecAuthRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ecAuthFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#splash.active .ec-auth-desktop-shell > *,
#login-screen.active .auth-panel--login,
#login-screen.active .ec-login-desktop-copy,
#setup-new.active .auth-shell,
#setup-new.active .ec-reg-desktop-copy,
#setup-new.active .ec-reg-desktop-hero,
#recovery-screen.active .auth-panel--recovery {
  animation: ecAuthRise 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

#login-screen.active .ec-login-desktop-hero {
  animation: ecAuthFade 0.7s ease-out both;
}

#login-screen.active .ec-login-desktop-copy,
#setup-new.active .ec-reg-desktop-copy { animation-delay: 0.08s; }
#login-screen.active .ec-login-desktop-hero,
#setup-new.active .ec-reg-desktop-hero { animation-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  #splash.active .ec-auth-desktop-shell > *,
  #login-screen.active .auth-panel--login,
  #login-screen.active .ec-login-desktop-copy,
  #login-screen.active .ec-login-desktop-hero,
  #setup-new.active .auth-shell,
  #setup-new.active .ec-reg-desktop-copy,
  #setup-new.active .ec-reg-desktop-hero,
  #recovery-screen.active .auth-panel--recovery {
    animation: none !important;
  }
}
