/* ============================================================================
   SYLLOVO BRAND HOMEPAGE — PURE WHITE ELEVENLABS BRAND DESIGN SYSTEM
   Rule: SYLLOVO-IMMUTABLE-BRAND-CSS-01 (syllovo-brand-theme.css parity)
   Default Surface: Pure Crisp ElevenLabs White (#FFFFFF) + Subtle (#FAFAFA)
   Primary Ink & Active Pill: Pitch Black (#09090B)
   Borders: 1px Hairline (#E4E4E7)
   Typography: Inter (UI) + JetBrains Mono (Timecodes / Code / CLI)
   ============================================================================ */

#syllovo-mandatory-login-gate.el-home-root {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-app, #ffffff);
  color: var(--text-main, #09090b);
  overflow-y: auto;
  overflow-x: hidden;
  font-family: var(--font-sans, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

#syllovo-mandatory-login-gate.el-home-root *,
#syllovo-mandatory-login-gate.el-home-root *::before,
#syllovo-mandatory-login-gate.el-home-root *::after {
  box-sizing: border-box;
}

#syllovo-mandatory-login-gate.el-home-root code {
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.91em;
  background: var(--bg-subtle, #f4f4f5);
  border: 1px solid var(--border, #e4e4e7);
  color: var(--text-main, #09090b);
  padding: 1px 5px;
  border-radius: 5px;
}

/* Subtle Monochrome ElevenLabs Studio Glow */
.el-ambient-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 100vw);
  height: 480px;
  background: radial-gradient(
    ellipse at 50% 24%,
    rgba(9, 9, 11, 0.025) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  pointer-events: none;
  z-index: 0;
}

.el-container {
  position: relative;
  z-index: 1;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   1. STICKY PURE WHITE BRAND NAVBAR (SINGLE SLEEK ROW ON MOBILE & DESKTOP)
   -------------------------------------------------------------------------- */
.el-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border, #e4e4e7);
}

.el-header-inner {
  max-width: 1260px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.el-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  color: #09090b;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.el-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #09090b;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.04em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.el-brand-wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}

.el-brand-wave span {
  width: 2.5px;
  border-radius: 999px;
  background: #ffffff;
  display: block;
}

.el-brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #09090b;
}

.el-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.el-nav-link {
  color: var(--text-secondary, #3f3f46);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  transition: color 0.14s ease, background 0.14s ease;
}

.el-nav-link:hover {
  color: var(--text-main, #09090b);
  background: var(--bg-hover, #f4f4f5);
}

.el-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.el-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: var(--radius-sm, 8px);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
  white-space: nowrap;
}

.el-btn:active {
  transform: scale(0.985);
}

.el-btn-primary {
  background: var(--accent, #09090b);
  color: var(--accent-fg, #ffffff);
  border: 1px solid var(--accent, #09090b);
  font-weight: 700;
}

.el-btn-primary:hover {
  background: var(--accent-hover, #27272a);
  border-color: var(--accent-hover, #27272a);
}

.el-btn-ghost {
  background: var(--bg-surface, #ffffff);
  color: var(--text-main, #09090b);
  border: 1px solid var(--border, #e4e4e7);
}

.el-btn-ghost:hover {
  background: var(--bg-hover, #f4f4f5);
  border-color: var(--border-strong, #d4d4d8);
}

.el-mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #d4d4d8;
  background: #ffffff;
  color: #09090b;
  font-size: 16px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.el-mobile-drawer {
  display: none;
  padding: 12px 20px 16px;
  background: #ffffff;
  border-bottom: 1px solid #e4e4e7;
  flex-direction: column;
  gap: 6px;
}

.el-mobile-drawer.open {
  display: flex;
}

.el-mobile-drawer a {
  color: #18181b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f4f5;
}

/* --------------------------------------------------------------------------
   2. HERO + INTERACTIVE STUDIO PLAYGROUND + AUTH CARD
   -------------------------------------------------------------------------- */
.el-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(350px, 0.88fr);
  gap: 32px;
  padding: 44px 0 48px;
  align-items: start;
}

.el-hero-grid > *,
.el-bento-grid > *,
.el-roi-grid > *,
.el-pricing-grid > *,
.el-archetype-grid > * {
  min-width: 0;
  max-width: 100%;
}

.el-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  color: #18181b;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.el-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #059669;
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.45);
}

.el-hero-title {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.038em;
  color: #09090b;
  margin: 0 0 16px;
}

.el-hero-title-muted {
  color: #52525b;
  font-weight: 700;
}

.el-hero-sub {
  font-size: 16px;
  line-height: 1.6;
  color: #3f3f46;
  margin: 0 0 24px;
  max-width: 640px;
}

/* Interactive Studio Showcase Card (Light Studio v13 Card) */
.el-playground-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.el-playground-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e4e4e7;
}

.el-playground-tabs::-webkit-scrollbar {
  display: none;
}

.el-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border, #e4e4e7);
  background: var(--bg-subtle, #f4f4f5);
  color: var(--text-secondary, #3f3f46);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.14s ease;
}

.el-tab-pill:hover {
  color: var(--text-main, #09090b);
  background: #e4e4e7;
}

.el-tab-pill.active {
  background: var(--accent, #09090b);
  color: var(--accent-fg, #ffffff);
  border-color: var(--accent, #09090b);
  font-weight: 700;
}

.el-playground-stage {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e4e4e7;
  background: #fafafa;
}

.el-playground-video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  position: relative;
}

.el-playground-video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
}

.el-playground-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  background: #fafafa;
  border-top: 1px solid #e4e4e7;
  flex-wrap: wrap;
}

.el-waveform-bars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}

.el-waveform-bars i {
  display: block;
  width: 3px;
  border-radius: 999px;
  background: #09090b;
}

.el-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.el-kpi-tile {
  padding: 12px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.el-kpi-val {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #09090b;
}

.el-kpi-lbl {
  font-size: 11.5px;
  color: #52525b;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   3. RIGHT COLUMN: AUTHENTICATION & VERIFIED WORKSPACE STUDIO CARD
   -------------------------------------------------------------------------- */
.el-auth-shell {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.el-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  margin-bottom: 18px;
}

.el-seg-btn {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 7px;
  border: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: #52525b;
  transition: all 0.14s ease;
}

.el-seg-btn.active {
  background: #ffffff;
  color: #09090b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.el-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #09090b;
  margin-bottom: 5px;
}

.el-input,
.el-select,
.el-textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #09090b;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.el-input::placeholder,
.el-textarea::placeholder {
  color: #71717a;
}

.el-input:focus,
.el-select:focus,
.el-textarea:focus {
  border-color: #09090b;
  box-shadow: 0 0 0 3px rgba(9, 9, 11, 0.08);
}

.el-eye-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 36px;
  min-height: 36px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #52525b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.el-eye-btn:hover {
  color: #09090b;
  background: #f4f4f5;
}

.el-subbox {
  padding: 11px 12px;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid #e4e4e7;
}

.el-submit-btn {
  width: 100%;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid var(--accent, #09090b);
  background: var(--accent, #09090b);
  color: var(--accent-fg, #ffffff);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.el-submit-btn:hover {
  background: var(--accent-hover, #27272a);
  border-color: var(--accent-hover, #27272a);
}

.el-qr-mini-card {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   4. BENTO SECTIONS, CREATOR ROI STUDIO & PRICING CARDS
   -------------------------------------------------------------------------- */
.el-section {
  padding: 56px 0;
  border-top: 1px solid #e4e4e7;
}

.el-section-kicker {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #52525b;
  margin-bottom: 8px;
}

.el-section-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #09090b;
  margin: 0 0 10px;
}

.el-section-sub {
  font-size: 15px;
  line-height: 1.6;
  color: #3f3f46;
  margin: 0;
  max-width: 680px;
}

.el-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.el-bento-card {
  grid-column: span 6;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.el-bento-card.span-7 {
  grid-column: span 7;
}

.el-bento-card.span-5 {
  grid-column: span 5;
}

.el-bento-card.span-4 {
  grid-column: span 4;
}

.el-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  color: #09090b;
  font-size: 11px;
  font-weight: 700;
}

.el-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.el-price-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.el-price-card.featured {
  background: #ffffff;
  border: 2px solid #09090b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.el-price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: #3f3f46;
}

.el-roi-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  margin-top: 26px;
}

.el-archetype-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.el-archetype-card {
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE BREAKPOINTS (TABLET & MOBILE — ZERO OVERFLOW, 16px INPUTS)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .el-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 0 36px;
  }

  .el-bento-card,
  .el-bento-card.span-7,
  .el-bento-card.span-5,
  .el-bento-card.span-4 {
    grid-column: span 6;
  }

  .el-pricing-grid {
    grid-template-columns: 1fr;
  }

  .el-roi-grid {
    grid-template-columns: 1fr;
  }

  .el-archetype-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .el-nav-links {
    display: none;
  }

  .el-mobile-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .el-container {
    padding: 0 16px;
  }

  .el-header-inner {
    height: 56px;
    padding: 0 14px;
    gap: 8px;
  }

  .el-brand-name {
    font-size: 16px;
  }

  .el-btn {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .el-hero-title {
    font-size: 31px;
    line-height: 1.08;
  }

  .el-hero-sub {
    font-size: 14.5px;
    margin-bottom: 18px;
  }

  .el-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .el-bento-grid {
    grid-template-columns: 1fr;
  }

  .el-bento-card,
  .el-bento-card.span-7,
  .el-bento-card.span-5,
  .el-bento-card.span-4 {
    grid-column: 1 / -1;
    padding: 18px;
  }

  .el-archetype-grid {
    grid-template-columns: 1fr;
  }

  .el-section {
    padding: 38px 0;
  }

  .el-auth-shell {
    padding: 18px 16px;
  }

  .el-signup-two-col {
    grid-template-columns: 1fr !important;
  }

  .el-qr-mini-card {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Prevent iOS Safari zoom on input focus */
  .el-input,
  .el-select,
  .el-textarea {
    font-size: 16px !important;
    min-height: 42px;
  }
}

/* ============================================================================
   DESKTOP 1-CLICK MOBILE VIEW SIMULATOR FRAME (body.force-mobile-preview & body.mobile-preview-active)
   Renders Syllovo Studio inside an interactive 390px iPhone-grade studio frame
   on desktop monitors so any page or Video Editor flow can be tested in 1 click!
   ============================================================================ */
body.force-mobile-preview,
body.mobile-preview-active {
  background: radial-gradient(circle at 50% 0%, #1c1e29 0%, #0b0c10 70%) !important;
}

@media (min-width: 769px) {
  body:is(.force-mobile-preview, .mobile-preview-active) #app-layout-root {
    max-width: 390px !important;
    width: 390px !important;
    height: min(844px, calc(100vh - 28px)) !important;
    min-height: 0 !important;
    margin: 14px auto !important;
    border-radius: 32px !important;
    border: 6px solid #232634 !important;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    overflow: hidden !important;
    position: relative !important;
    background: var(--bg-app, #ffffff) !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body:is(.force-mobile-preview, .mobile-preview-active) .app-sidebar,
  body:is(.force-mobile-preview, .mobile-preview-active) .desktop-only,
  body:is(.force-mobile-preview, .mobile-preview-active) .header-course-pill,
  body:is(.force-mobile-preview, .mobile-preview-active) #mobile-header-new-btn {
    display: none !important;
  }

  body:is(.force-mobile-preview, .mobile-preview-active) .mobile-only-logo {
    display: flex !important;
    align-items: center;
  }

  body:is(.force-mobile-preview, .mobile-preview-active) .mobile-only-inline {
    display: inline-flex !important;
  }

  body:is(.force-mobile-preview, .mobile-preview-active) .app-main {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  body:is(.force-mobile-preview, .mobile-preview-active) .top-header {
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 8px !important;
    gap: 4px !important;
  }

  body:is(.force-mobile-preview, .mobile-preview-active) .header-left {
    gap: 5px !important;
  }

  body:is(.force-mobile-preview, .mobile-preview-active) #header-nav-back-btn,
  body:is(.force-mobile-preview, .mobile-preview-active) #header-nav-fwd-btn {
    display: none !important;
  }

  body:is(.force-mobile-preview, .mobile-preview-active) .header-right {
    gap: 4px !important;
  }

  body:is(.force-mobile-preview, .mobile-preview-active) .page-current-title {
    font-size: 13.5px !important;
    max-width: 110px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body:is(.force-mobile-preview, .mobile-preview-active) .workspace-scroll {
    flex: 1 1 auto !important;
    padding: 10px 10px 76px 10px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: none !important;
  }

  body:is(.force-mobile-preview, .mobile-preview-active) .grid-2,
  body:is(.force-mobile-preview, .mobile-preview-active) .grid-3,
  body:is(.force-mobile-preview, .mobile-preview-active) .grid-4 {
    grid-template-columns: 1fr !important;
  }

  body:is(.force-mobile-preview, .mobile-preview-active) .mobile-bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 378px !important;
    height: 58px !important;
    z-index: 1500 !important;
    border-radius: 0 0 26px 26px !important;
    background: var(--bg-surface, #ffffff) !important;
    border-top: 1px solid var(--border, #e4e4e7) !important;
    padding: 2px 4px !important;
  }

  body:is(.force-mobile-preview, .mobile-preview-active) .mobile-nav-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    border: none !important;
    background: transparent !important;
    color: var(--text-secondary, #52525b) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 4px 2px !important;
    cursor: pointer !important;
  }

  body:is(.force-mobile-preview, .mobile-preview-active) .mobile-nav-btn .m-icon {
    font-size: 16px !important;
    line-height: 1 !important;
  }

  body:is(.force-mobile-preview, .mobile-preview-active) .mobile-nav-btn.active {
    color: var(--text-main, #09090b) !important;
    font-weight: 800 !important;
  }
}

/* Unconditional Mobile YouTube Studio Component Styling (Works on Real <=820px Mobile AND Desktop Mobile-View Toggle!) */
.mobile-yt-studio-root {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  padding-bottom: 10px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.mobile-yt-player-card {
  position: relative;
  width: 100%;
  background: #000000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.mobile-yt-video-aspect {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  position: relative;
  overflow: hidden;
}

.mobile-yt-video-aspect video,
#mobile-mp4-player-mount video {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
  background: #000000 !important;
}

.mobile-yt-cc-bar,
#mobile-cc-live-bar {
  position: absolute !important;
  left: 8px !important;
  right: 8px !important;
  bottom: 34px !important;
  transform: none !important;
  width: auto !important;
  max-width: calc(100% - 16px) !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  background: rgba(10, 12, 18, 0.48) !important;
  backdrop-filter: blur(3px) !important;
  -webkit-backdrop-filter: blur(3px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
  font-size: 11.5px !important;
  line-height: 1.32 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  pointer-events: none !important;
  z-index: 15 !important;
}

.mobile-cc-badge-inline {
  display: inline-block;
  padding: 0 5px;
  margin-right: 5px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #93c5fd;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
}

.mobile-editor-controls-strip {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 4px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.mobile-editor-clip-select {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 6px !important;
  border-radius: 8px !important;
  border: 1px solid var(--border-strong, #d4d4d8) !important;
  background: var(--bg-surface, #ffffff) !important;
  color: var(--text-main, #09090b) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
}

.mobile-editor-ctrl-btn {
  width: 32px !important;
  min-width: 32px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  border: 1px solid var(--border-strong, #d4d4d8) !important;
  background: var(--bg-surface, #ffffff) !important;
  color: var(--text-main, #09090b) !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.mobile-editor-ctrl-btn.active {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}

[data-theme="dark"] .mobile-editor-ctrl-btn.active {
  background: #f8fafc !important;
  color: #09090b !important;
  border-color: #f8fafc !important;
}

.mobile-editor-ctrl-btn.emerald {
  background: rgba(16, 185, 129, 0.14) !important;
  color: #047857 !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
}

[data-theme="dark"] .mobile-editor-ctrl-btn.emerald {
  color: #6ee7b7 !important;
}

.mobile-yt-editor-drawer {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #272935;
  background: #0c0d12;
  max-width: 100%;
}

.mobile-yt-chat-card,
.mobile-studio-chat-card {
  background: #0b0f19;
  color: #f8fafc;
  border: 1px solid #1e293b;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mobile-yt-chat-header,
.mobile-chat-header-bar {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  border-bottom: 1px solid #1e293b !important;
  background: #0f1626 !important;
}

.mobile-yt-time-badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: #141a2b;
  border: 1px solid #2b3550;
  color: #c7d2fe;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.mobile-yt-chat-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 10px;
  min-height: 210px;
  max-height: 290px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #0b0f19;
}

.mobile-chat-empty-state {
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-chat-empty-greeting {
  font-size: 12px;
  line-height: 1.35;
  color: #e2e8f0 !important;
}

.mobile-chat-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.mobile-chat-quick-chip {
  min-height: 32px;
  padding: 4px 9px;
  border-radius: 8px;
  background: #131c31 !important;
  border: 1px solid #2b3958 !important;
  color: #f8fafc !important;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.mobile-chat-quick-chip:hover {
  border-color: #6366f1 !important;
  background: #192440 !important;
}

.mobile-yt-chat-composer,
.mobile-chat-composer-bar {
  padding: 6px 8px;
  background: #0f1626;
  border-top: 1px solid #1e293b;
  border-bottom: none;
}

.mobile-chat-composer-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
}

.mobile-yt-chat-composer textarea {
  flex: 1 1 0%;
  min-width: 0;
  width: auto;
  min-height: 34px;
  max-height: 80px;
  border: 1px solid #2d3a56;
  border-radius: 17px;
  padding: 6px 11px;
  background: #0b0f19;
  color: #f8fafc;
  font-family: var(--font-sans);
  font-size: 16px !important;
  line-height: 1.35;
  resize: none;
  outline: none;
  box-sizing: border-box;
  overflow-y: auto;
}

.mobile-yt-frame-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #2d3a56;
  background: #172036;
  color: #f8fafc;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-yt-send-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #4f46e5, #10b981);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-yt-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: 10px;
  border-bottom: 1px solid #172033;
}

.mobile-yt-user-bubble {
  padding: 8px 11px;
  border-radius: 10px;
  background: #182034;
  border: 1px solid #2d3a56;
}

/* Floating Desktop Exit Pill when Force-Mobile Preview is Active */
.force-mobile-floating-exit {
  display: none;
}

@media (min-width: 769px) {
  body:is(.force-mobile-preview, .mobile-preview-active) .force-mobile-floating-exit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 2500;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(17, 19, 25, 0.92);
    color: #fafafa;
    font-family: "Inter", sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  }
}
