/**
 * Liquid Scripture — optional enhancements layer (loaded after main inline CSS).
 * Valley scene + verse card; mockup verse controls at EOF (high specificity vs FL inline).
 */

/* ══ Study shell · sky/sapphire void (matches mockup ridge + horizon glow) ══ */
html {
  background-color: #03050a !important;
  color-scheme: dark !important;
  /* Calmer void — less side “violet” read vs heavy corner blooms */
  background-image:
    radial-gradient(ellipse 110% 78% at 50% -26%, rgba(59, 130, 246, 0.07) 0%, transparent 52%),
    radial-gradient(ellipse 72% 48% at 50% 68%, rgba(59, 130, 246, 0.08) 0%, rgba(37, 99, 235, 0.05) 38%, transparent 58%),
    radial-gradient(ellipse 72% 56% at 100% 36%, rgba(12, 28, 52, 0.14) 0%, transparent 46%),
    radial-gradient(ellipse 58% 48% at 0% 88%, rgba(18, 32, 52, 0.06) 0%, transparent 44%) !important;
  background-attachment: fixed !important;
}

body {
  background: transparent !important;
}

.page {
  background: transparent !important;
}

.brand {
  padding: 22px 16px 12px !important;
  margin-bottom: 0 !important;
  border-bottom: 1px solid rgba(37, 99, 235, 0.12) !important;
  background: linear-gradient(180deg, rgba(8, 14, 22, 0.94) 0%, rgba(3, 8, 16, 0.5) 100%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}

.header {
  border-bottom: 1px solid rgba(37, 99, 235, 0.1) !important;
  background: linear-gradient(180deg, rgba(6, 12, 20, 0.6) 0%, transparent 100%) !important;
}

.brand-liquid {
  color: #2563eb !important;
  text-shadow: 0 0 28px rgba(29, 78, 216, 0.45) !important;
}

.brand-dot {
  background: radial-gradient(circle at 32% 28%, #dbeafe 0%, #2563eb 42%, #1e3a8a 100%) !important;
  box-shadow: 0 0 14px rgba(29, 78, 216, 0.5) !important;
}

.cat-nav .tab[class*="active-"] {
  border-bottom-color: rgba(37, 99, 235, 0.45) !important;
}

/* Name gate: OLED void — maison warmth + sapphire depth (pairs with inline gate) */
#lsNameGate {
  background-color: #040608 !important;
  /* Tighter than inline max(6px,…) so less dead band above home indicator (inline still sets other sides) */
  padding-bottom: max(2px, env(safe-area-inset-bottom, 0px)) !important;
  background-image:
    radial-gradient(ellipse 88% 48% at 50% 0%, rgba(232, 214, 184, 0.04) 0%, transparent 54%),
    radial-gradient(ellipse 92% 50% at 50% 0%, rgba(59, 130, 246, 0.034) 0%, transparent 56%),
    radial-gradient(ellipse 72% 42% at 50% 100%, rgba(22, 28, 42, 0.12) 0%, transparent 54%),
    linear-gradient(168deg, #040608 0%, #06080c 42%, #090c12 100%) !important;
  background-repeat: no-repeat !important;
}
/*
 * Name gate only (Liquid Scripture login after splash): high-end calm void — no
 * mountain raster, no extra splash PNGs. Dubai composite splash is unchanged elsewhere.
 */
#lsNameGate::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 112% 72% at 50% -12%, rgba(8, 14, 28, 0.52) 0%, transparent 54%),
    radial-gradient(ellipse 92% 44% at 50% 6%, rgba(232, 214, 184, 0.055) 0%, transparent 58%),
    radial-gradient(ellipse 82% 50% at 50% 100%, rgba(2, 5, 12, 0.78) 0%, rgba(6, 10, 20, 0.32) 44%, transparent 58%),
    radial-gradient(ellipse 98% 40% at 50% 86%, rgba(37, 99, 235, 0.09) 0%, rgba(200, 175, 125, 0.04) 48%, transparent 72%),
    linear-gradient(172deg, #05070d 0%, #080c16 36%, #0a101c 72%, #060810 100%);
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  transform: none;
  filter: none;
  opacity: 1;
}

html body #lsNameGate #lsRainCanvas {
  opacity: 0.05 !important;
}
#lsNameGate .ls-gate-atmos::before,
#lsNameGate .ls-gate-atmos::after {
  opacity: 0.18 !important;
}

/* Create-account rail: soft column scrim (all viewports) — behind transparent card, fades at sides */
#lsNameGate.ls-gate-lf .ls-gate-shell {
  isolation: isolate;
}
#lsNameGate.ls-gate-lf .ls-gate-shell::before {
  content: "";
  position: fixed;
  left: 50%;
  top: 0;
  bottom: 0;
  width: min(520px, 92vw);
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  background:
    /* Strongest at bottom: legal copy, Google, OR, CTA, password */
    radial-gradient(
      ellipse min(520px, 92vw) 118% at 50% 96%,
      rgba(2, 3, 8, 0.72) 0%,
      rgba(4, 7, 16, 0.42) 34%,
      rgba(5, 9, 18, 0.2) 58%,
      transparent 82%
    ),
    radial-gradient(
      ellipse min(480px, 90vw) 88% at 50% 46%,
      rgba(3, 5, 10, 0.58) 0%,
      rgba(4, 7, 14, 0.22) 48%,
      transparent 76%
    ),
    linear-gradient(
      90deg,
      rgba(2, 4, 8, 0) 0%,
      rgba(2, 4, 8, 0.28) 10%,
      rgba(3, 6, 15, 0.52) 50%,
      rgba(2, 4, 8, 0.28) 90%,
      rgba(2, 4, 8, 0) 100%
    );
}
#lsNameGate.ls-gate-lf .ls-gate-card {
  position: relative;
  z-index: 1;
}

/* Desktop: slightly deeper floor for wide layouts */
@media (min-width: 900px) {
  #lsNameGate::before {
    background-image:
      radial-gradient(ellipse 108% 66% at 50% -10%, rgba(8, 16, 32, 0.5) 0%, transparent 56%),
      radial-gradient(ellipse 88% 42% at 50% 4%, rgba(232, 214, 184, 0.05) 0%, transparent 58%),
      radial-gradient(ellipse 86% 52% at 50% 100%, rgba(2, 5, 12, 0.82) 0%, rgba(5, 10, 22, 0.26) 46%, transparent 60%),
      radial-gradient(ellipse 100% 36% at 50% 82%, rgba(45, 110, 210, 0.08) 0%, rgba(200, 175, 125, 0.035) 50%, transparent 74%),
      linear-gradient(172deg, #04060c 0%, #090e18 40%, #0c1222 68%, #05070e 100%);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    transform: none;
    filter: none;
    opacity: 1;
  }
}

/* In-app intro: mountain + sky under grain (royal sapphire stack) */
#lsMarketingIntro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to top, rgba(4, 8, 16, 0.68) 0%, transparent 48%),
    radial-gradient(ellipse 96% 56% at 50% 100%, rgba(37, 99, 235, 0.26) 0%, rgba(29, 78, 216, 0.12) 40%, transparent 58%),
    -webkit-image-set(
      url("../img/ls-og-share-mountain-chrome.png") 1x,
      url("../img/ls-og-share-mountain-chrome@2x.png") 2x
    );
  background-image:
    linear-gradient(to top, rgba(4, 8, 16, 0.68) 0%, transparent 48%),
    radial-gradient(ellipse 96% 56% at 50% 100%, rgba(37, 99, 235, 0.26) 0%, rgba(29, 78, 216, 0.12) 40%, transparent 58%),
    image-set(
      url("../img/ls-og-share-mountain-chrome.png") 1x,
      url("../img/ls-og-share-mountain-chrome@2x.png") 2x
    );
  background-repeat: no-repeat;
  background-position: center bottom, center bottom, center min(100%, calc(100% - 9vh));
  background-size: 100% 55%, 100% 48%, min(min(122vw, 100vw), 2048px) auto;
  opacity: 0.56;
  /* Negative hue pulls rim-light away from LV-style cyan/teal toward royal sapphire */
  filter: hue-rotate(-12deg) saturate(1.14) brightness(1.04) contrast(1.03);
}

/* Splash scene: mobile + phone landscape — mountain intro (not Dubai mockup) */
@media (max-width: 1023px) {
  #lsMarketingIntro:not(.ls-mkg-splash-mockup)::before {
    background-image:
      linear-gradient(to top, rgba(4, 8, 16, 0.38) 0%, rgba(4, 8, 16, 0.14) 26%, transparent 48%),
      radial-gradient(ellipse 96% 56% at 50% 100%, rgba(37, 99, 235, 0.26) 0%, rgba(29, 78, 216, 0.12) 40%, transparent 58%),
      -webkit-image-set(
        url("../img/ls-og-share-mountain-chrome.png") 1x,
        url("../img/ls-og-share-mountain-chrome@2x.png") 2x
      );
    background-image:
      linear-gradient(to top, rgba(4, 8, 16, 0.38) 0%, rgba(4, 8, 16, 0.14) 26%, transparent 48%),
      radial-gradient(ellipse 96% 56% at 50% 100%, rgba(37, 99, 235, 0.26) 0%, rgba(29, 78, 216, 0.12) 40%, transparent 58%),
      image-set(
        url("../img/ls-og-share-mountain-chrome.png") 1x,
        url("../img/ls-og-share-mountain-chrome@2x.png") 2x
      );
    background-size: 100% 54%, 100% 48%, min(min(178vw, 1260px), 2048px) auto;
    background-position: center bottom, center bottom, center calc(100% + 1.25vh);
    filter: hue-rotate(-12deg) saturate(1.14) brightness(1.04) contrast(1.03);
    opacity: 0.6;
  }
}

/* Splash mockup — four Dubai-luxwater plates (Gulf waterfront, blue+gold lights, reflections; card = HTML). ?ls_splash_variant=a|b|c|d|1–4 */
@media (min-width: 1024px) {
  #lsMarketingIntro.ls-mkg-splash-mockup.ls-mkg-splash-a::before,
  #lsMarketingIntro.ls-mkg-splash-mockup:not(.ls-mkg-splash-a):not(.ls-mkg-splash-b):not(.ls-mkg-splash-c):not(.ls-mkg-splash-d)::before {
    background-image:
      linear-gradient(90deg, #030304 0%, rgba(3, 3, 4, 0) 11%, rgba(3, 3, 4, 0) 89%, #030304 100%),
      linear-gradient(to top, rgba(4, 6, 18, 0.14) 0%, rgba(3, 5, 14, 0.04) 34%, transparent 56%),
      radial-gradient(ellipse 98% 70% at 50% 44%, rgba(28, 52, 120, 0.1) 0%, rgba(95, 78, 40, 0.06) 44%, transparent 60%),
      url("../img/ls-splash-dubai-luxwater-a.png?v=ls_topfrost_20260606");
    background-image:
      linear-gradient(90deg, #030304 0%, rgba(3, 3, 4, 0) 11%, rgba(3, 3, 4, 0) 89%, #030304 100%),
      linear-gradient(to top, rgba(4, 6, 18, 0.14) 0%, rgba(3, 5, 14, 0.04) 34%, transparent 56%),
      radial-gradient(ellipse 98% 70% at 50% 44%, rgba(28, 52, 120, 0.1) 0%, rgba(95, 78, 40, 0.06) 44%, transparent 60%),
      url("../img/ls-splash-dubai-luxwater-a.png?v=ls_topfrost_20260606");
    background-repeat: no-repeat;
    background-position: center, center bottom, center, 48% 62%;
    background-size: 100% 100%, 100% 100%, 100% 100%, min(138vw, 128vh);
    opacity: 1;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    filter: contrast(1.12) saturate(1.08) brightness(1.04) hue-rotate(-12deg);
  }

  #lsMarketingIntro.ls-mkg-splash-mockup.ls-mkg-splash-b::before {
    background-image:
      linear-gradient(90deg, #030304 0%, rgba(3, 3, 4, 0) 11%, rgba(3, 3, 4, 0) 89%, #030304 100%),
      linear-gradient(to top, rgba(4, 8, 22, 0.15) 0%, rgba(4, 10, 26, 0.05) 36%, transparent 58%),
      radial-gradient(ellipse 96% 72% at 52% 42%, rgba(20, 48, 110, 0.11) 0%, rgba(110, 88, 44, 0.06) 46%, transparent 60%),
      url("../img/ls-splash-dubai-luxwater-b.png?v=ls_topfrost_20260606");
    background-image:
      linear-gradient(90deg, #030304 0%, rgba(3, 3, 4, 0) 11%, rgba(3, 3, 4, 0) 89%, #030304 100%),
      linear-gradient(to top, rgba(4, 8, 22, 0.15) 0%, rgba(4, 10, 26, 0.05) 36%, transparent 58%),
      radial-gradient(ellipse 96% 72% at 52% 42%, rgba(20, 48, 110, 0.11) 0%, rgba(110, 88, 44, 0.06) 46%, transparent 60%),
      url("../img/ls-splash-dubai-luxwater-b.png?v=ls_topfrost_20260606");
    background-repeat: no-repeat;
    background-position: center, center bottom, center, 50% 60%;
    background-size: 100% 100%, 100% 100%, 100% 100%, min(140vw, 128vh);
    opacity: 1;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    filter: contrast(1.12) saturate(1.07) brightness(1.03) hue-rotate(-14deg);
  }

  #lsMarketingIntro.ls-mkg-splash-mockup.ls-mkg-splash-c::before {
    background-image:
      linear-gradient(90deg, #030304 0%, rgba(3, 3, 4, 0) 11%, rgba(3, 3, 4, 0) 89%, #030304 100%),
      linear-gradient(to top, rgba(6, 6, 18, 0.14) 0%, rgba(4, 4, 14, 0.04) 36%, transparent 58%),
      radial-gradient(ellipse 100% 74% at 48% 46%, rgba(32, 56, 128, 0.1) 0%, rgba(100, 80, 36, 0.07) 42%, transparent 58%),
      url("../img/ls-splash-dubai-luxwater-c.png?v=ls_topfrost_20260606");
    background-image:
      linear-gradient(90deg, #030304 0%, rgba(3, 3, 4, 0) 11%, rgba(3, 3, 4, 0) 89%, #030304 100%),
      linear-gradient(to top, rgba(6, 6, 18, 0.14) 0%, rgba(4, 4, 14, 0.04) 36%, transparent 58%),
      radial-gradient(ellipse 100% 74% at 48% 46%, rgba(32, 56, 128, 0.1) 0%, rgba(100, 80, 36, 0.07) 42%, transparent 58%),
      url("../img/ls-splash-dubai-luxwater-c.png?v=ls_topfrost_20260606");
    background-repeat: no-repeat;
    background-position: center, center bottom, center, 52% 62%;
    background-size: 100% 100%, 100% 100%, 100% 100%, min(142vw, 130vh);
    opacity: 1;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    filter: contrast(1.12) saturate(1.08) brightness(1.04) hue-rotate(-10deg);
  }

  #lsMarketingIntro.ls-mkg-splash-mockup.ls-mkg-splash-d::before {
    background-image:
      linear-gradient(90deg, #030304 0%, rgba(3, 3, 4, 0) 11%, rgba(3, 3, 4, 0) 89%, #030304 100%),
      linear-gradient(to top, rgba(4, 6, 20, 0.14) 0%, rgba(3, 6, 16, 0.04) 34%, transparent 56%),
      radial-gradient(ellipse 98% 70% at 50% 44%, rgba(26, 50, 118, 0.1) 0%, rgba(92, 74, 38, 0.06) 44%, transparent 60%),
      url("../img/ls-splash-dubai-luxwater-d.png?v=ls_topfrost_20260606");
    background-image:
      linear-gradient(90deg, #030304 0%, rgba(3, 3, 4, 0) 11%, rgba(3, 3, 4, 0) 89%, #030304 100%),
      linear-gradient(to top, rgba(4, 6, 20, 0.14) 0%, rgba(3, 6, 16, 0.04) 34%, transparent 56%),
      radial-gradient(ellipse 98% 70% at 50% 44%, rgba(26, 50, 118, 0.1) 0%, rgba(92, 74, 38, 0.06) 44%, transparent 60%),
      url("../img/ls-splash-dubai-luxwater-d.png?v=ls_topfrost_20260606");
    background-repeat: no-repeat;
    background-position: center, center bottom, center, 50% 63%;
    background-size: 100% 100%, 100% 100%, 100% 100%, min(148vw, 134vh);
    opacity: 1;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    filter: contrast(1.12) saturate(1.08) brightness(1.04) hue-rotate(-12deg);
  }
}

@media (max-width: 1023px) {
  #lsMarketingIntro.ls-mkg-splash-mockup.ls-mkg-splash-a::before,
  #lsMarketingIntro.ls-mkg-splash-mockup:not(.ls-mkg-splash-a):not(.ls-mkg-splash-b):not(.ls-mkg-splash-c):not(.ls-mkg-splash-d)::before {
    background-image:
      linear-gradient(to top, rgba(4, 6, 18, 0.12) 0%, rgba(3, 5, 14, 0.03) 30%, transparent 52%),
      radial-gradient(ellipse 100% 76% at 50% 42%, rgba(26, 48, 108, 0.08) 0%, rgba(88, 72, 38, 0.05) 44%, transparent 56%),
      url("../img/ls-splash-dubai-luxwater-a.png?v=ls_topfrost_20260606");
    background-image:
      linear-gradient(to top, rgba(4, 6, 18, 0.12) 0%, rgba(3, 5, 14, 0.03) 30%, transparent 52%),
      radial-gradient(ellipse 100% 76% at 50% 42%, rgba(26, 48, 108, 0.08) 0%, rgba(88, 72, 38, 0.05) 44%, transparent 56%),
      url("../img/ls-splash-dubai-luxwater-a.png?v=ls_topfrost_20260606");
    background-repeat: no-repeat;
    /* Photo: cover + lower Y anchor crops empty sky, pulls towers into upper frame. */
    background-size: 100% 100%, 100% 100%, cover;
    background-position: center bottom, center, center 76%;
    filter: contrast(1.1) saturate(1.07) brightness(1.04) hue-rotate(-12deg);
    opacity: 1;
    transform: translateZ(0) scale(1.13);
    transform-origin: 50% 92%;
  }

  #lsMarketingIntro.ls-mkg-splash-mockup.ls-mkg-splash-b::before {
    background-image:
      linear-gradient(to top, rgba(4, 8, 22, 0.13) 0%, rgba(4, 10, 26, 0.04) 32%, transparent 54%),
      radial-gradient(ellipse 102% 78% at 52% 40%, rgba(18, 44, 100, 0.09) 0%, rgba(100, 82, 42, 0.05) 46%, transparent 58%),
      url("../img/ls-splash-dubai-luxwater-b.png?v=ls_topfrost_20260606");
    background-image:
      linear-gradient(to top, rgba(4, 8, 22, 0.13) 0%, rgba(4, 10, 26, 0.04) 32%, transparent 54%),
      radial-gradient(ellipse 102% 78% at 52% 40%, rgba(18, 44, 100, 0.09) 0%, rgba(100, 82, 42, 0.05) 46%, transparent 58%),
      url("../img/ls-splash-dubai-luxwater-b.png?v=ls_topfrost_20260606");
    background-repeat: no-repeat;
    background-size: 100% 100%, 100% 100%, cover;
    background-position: center bottom, center, center 76%;
    filter: contrast(1.1) saturate(1.06) brightness(1.03) hue-rotate(-14deg);
    opacity: 1;
    transform: translateZ(0) scale(1.13);
    transform-origin: 50% 92%;
  }

  #lsMarketingIntro.ls-mkg-splash-mockup.ls-mkg-splash-c::before {
    background-image:
      linear-gradient(to top, rgba(6, 6, 18, 0.12) 0%, rgba(4, 4, 14, 0.03) 32%, transparent 54%),
      radial-gradient(ellipse 104% 80% at 48% 44%, rgba(30, 52, 120, 0.09) 0%, rgba(96, 76, 36, 0.06) 42%, transparent 56%),
      url("../img/ls-splash-dubai-luxwater-c.png?v=ls_topfrost_20260606");
    background-image:
      linear-gradient(to top, rgba(6, 6, 18, 0.12) 0%, rgba(4, 4, 14, 0.03) 32%, transparent 54%),
      radial-gradient(ellipse 104% 80% at 48% 44%, rgba(30, 52, 120, 0.09) 0%, rgba(96, 76, 36, 0.06) 42%, transparent 56%),
      url("../img/ls-splash-dubai-luxwater-c.png?v=ls_topfrost_20260606");
    background-repeat: no-repeat;
    background-size: 100% 100%, 100% 100%, cover;
    background-position: center bottom, center, center 79%;
    filter: contrast(1.1) saturate(1.07) brightness(1.04) hue-rotate(-10deg);
    opacity: 1;
    transform: translateZ(0) scale(1.13);
    transform-origin: 50% 92%;
  }

  #lsMarketingIntro.ls-mkg-splash-mockup.ls-mkg-splash-d::before {
    background-image:
      linear-gradient(to top, rgba(4, 6, 20, 0.12) 0%, rgba(3, 6, 16, 0.03) 30%, transparent 52%),
      radial-gradient(ellipse 100% 76% at 50% 42%, rgba(24, 46, 112, 0.08) 0%, rgba(90, 72, 36, 0.05) 44%, transparent 56%),
      url("../img/ls-splash-dubai-luxwater-d.png?v=ls_topfrost_20260606");
    background-image:
      linear-gradient(to top, rgba(4, 6, 20, 0.12) 0%, rgba(3, 6, 16, 0.03) 30%, transparent 52%),
      radial-gradient(ellipse 100% 76% at 50% 42%, rgba(24, 46, 112, 0.08) 0%, rgba(90, 72, 36, 0.05) 44%, transparent 56%),
      url("../img/ls-splash-dubai-luxwater-d.png?v=ls_topfrost_20260606");
    background-repeat: no-repeat;
    background-size: 100% 100%, 100% 100%, cover;
    background-position: center bottom, center, center 79%;
    filter: contrast(1.1) saturate(1.07) brightness(1.04) hue-rotate(-12deg);
    opacity: 1;
    transform: translateZ(0) scale(1.13);
    transform-origin: 50% 92%;
  }
}

.ls-split-mountain-bg__side {
  width: min(54vw, 600px) !important;
  transform: translateY(8vh) !important;
  filter: hue-rotate(-8deg) saturate(1.06) brightness(0.86) contrast(1.05)
    drop-shadow(0 -6px 28px rgba(29, 78, 216, 0.38))
    drop-shadow(0 0 36px rgba(30, 58, 138, 0.34))
    drop-shadow(0 0 56px rgba(29, 78, 216, 0.2)) !important;
  opacity: 0.58 !important;
}

/* Nudge river pano so wings flank verse column (not only screen edges) */
.ls-split-mountain-bg__side.ls-split-mountain-bg__side--left {
  background-position: 14% 78% !important;
}
.ls-split-mountain-bg__side.ls-split-mountain-bg__side--right {
  background-position: 86% 78% !important;
}

@media (max-width: 480px) {
  .ls-split-mountain-bg__side {
    width: min(60vw, 360px) !important;
    opacity: 0.58 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #lsMarketingIntro::before {
    filter: hue-rotate(-12deg) saturate(1.14) brightness(1.04) contrast(1.03);
  }
  #lsMarketingIntro.ls-mkg-splash-mockup.ls-mkg-splash-a::before,
  #lsMarketingIntro.ls-mkg-splash-mockup:not(.ls-mkg-splash-a):not(.ls-mkg-splash-b):not(.ls-mkg-splash-c):not(.ls-mkg-splash-d)::before,
  #lsMarketingIntro.ls-mkg-splash-mockup.ls-mkg-splash-b::before,
  #lsMarketingIntro.ls-mkg-splash-mockup.ls-mkg-splash-c::before,
  #lsMarketingIntro.ls-mkg-splash-mockup.ls-mkg-splash-d::before {
    filter: contrast(1.06) saturate(1.04) brightness(1.01) hue-rotate(-10deg);
  }
  .ls-split-mountain-bg__side {
    transform: translateY(4vh) !important;
    filter: hue-rotate(-8deg) saturate(1.06) brightness(0.86) contrast(1.05)
      drop-shadow(0 -4px 22px rgba(29, 78, 216, 0.32))
      drop-shadow(0 0 32px rgba(30, 58, 138, 0.28)) !important;
  }
}

/* Welcome pill — no disc around water / play / chips (icons only; pathway read in FL.14) */
.ls-welcome-pill .ls-pill-icon {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: rgba(148, 186, 235, 0.82) !important;
}
.ls-welcome-pill .ls-pill-play {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: rgba(147, 165, 220, 0.88) !important;
}
.ls-welcome-pill .ls-top-pill-chip {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.ls-welcome-pill .ls-top-icon-ghost {
  -webkit-tap-highlight-color: transparent;
}
.ls-welcome-pill .ls-top-icon-ghost:active {
  opacity: 0.68;
}

/* Elite bar: ☰ · verses · library hug the right edge so #pillName can use flex space */
.ls-elite-topbar .ls-welcome-pill .ls-pill-text + .pathway-entry-btn {
  margin-left: auto !important;
}
.ls-elite-topbar #lsWelcomePill.ls-welcome-pill,
.ls-elite-topbar .ls-welcome-pill {
  gap: 6px !important;
}

/* Verse pager dots — muted sapphire active */
.sc-card .v-dot {
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}
.sc-card .v-dot.v-active {
  background: rgba(96, 165, 235, 0.95) !important;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.38) !important;
}

/* STUDY THE WORD / SEND A WORD — mockup ghosts: crisp frost outline + faint sky ring */
.section.active > .sc-card > .ls-slat-row > .ls-slat-btn,
.sc-card .ls-slat-row > .ls-slat-btn {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 1px solid rgba(252, 252, 255, 0.38) !important;
  color: rgba(248, 250, 255, 0.78) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(37, 99, 235, 0.12),
    0 10px 36px rgba(0, 0, 0, 0.35) !important;
}
.section.active > .sc-card > .ls-slat-row > .ls-slat-btn:active,
.sc-card .ls-slat-row > .ls-slat-btn:active {
  border-color: rgba(37, 99, 235, 0.45) !important;
  color: rgba(255, 255, 255, 0.98) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(37, 99, 235, 0.22) !important;
}
.section.active > .sc-card > .ls-slat-row > .ls-slat-btn .ls-btn-label,
.sc-card .ls-slat-row > .ls-slat-btn .ls-btn-label {
  color: rgba(240, 244, 252, 0.78) !important;
}
.section.active > .sc-card > .ls-slat-row > .ls-slat-btn .ls-btn-icon,
.section.active > .sc-card > .ls-slat-row > .ls-slat-btn .ls-btn-icon svg,
.sc-card .ls-slat-row > .ls-slat-btn .ls-btn-icon,
.sc-card .ls-slat-row > .ls-slat-btn .ls-btn-icon svg {
  color: rgba(224, 236, 255, 0.75) !important;
}

#whyModal .why-trinity-slab {
  border-color: rgba(100, 140, 200, 0.14) !important;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* ── Name gate: reassurance under BEGIN STUDY ─────────────────────────── */
.ls-gate-reassurance {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.55;
  margin: 0 0 14px;
  max-width: 340px;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

/* ── Why modal toolbar: quiet text actions (not pill buttons) ─────────── */
.ls-why-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 4px;
  margin: 4px 0 12px;
  padding: 6px 2px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ls-why-toolbar__action {
  font-family: system-ui, -apple-system, "Segoe UI", Inter, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  padding: 6px 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  line-height: 1.3;
}

.ls-why-toolbar__action:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-right: 14px;
  margin-right: 4px;
}

.ls-why-toolbar__action:hover {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: transparent !important;
}

.ls-why-toolbar__action:focus-visible {
  outline: 2px solid rgba(120, 165, 230, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Short view: hide long essay slabs only — keep witnesses + apologetics (scripture cites / arguments). */
#whyModal.ls-why-view-short .why-trinity-historical {
  display: none !important;
}

/* Trust explainer */
.ls-trust-details {
  margin: 18px 0 6px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(100, 140, 200, 0.2) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  text-align: left;
}

.ls-trust-details summary {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(252, 250, 246, 0.96) !important;
  cursor: pointer;
  list-style: none;
}

.ls-trust-details summary::-webkit-details-marker {
  display: none;
}

.ls-trust-body {
  margin-top: 12px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(252, 250, 246, 0.96) !important;
}

.ls-trust-body a {
  color: rgba(220, 232, 255, 0.95) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Why modal: all copy pure white (beats v7 grey tag reset + ivory kickers) ─ */
#whyModal .ls-trust-details summary,
#whyModal .ls-trust-body,
#whyModal .ls-trust-body a,
#whyModal .why-modal-verse,
#whyModal .why-modal-ref,
#whyModal #whyRef,
#whyModal #whyBody,
#whyModal .why-footer-note,
#whyModal .why-loading-text,
#whyModal .why-passage-verified,
#whyModal .why-trinity-body,
#whyModal .why-disp-line-1,
#whyModal .why-disp-line-2,
#whyModal .why-disp-sep,
#whyModal .why-trinity-history-p,
#whyModal .why-trinity-history-extended-p,
#whyModal .why-trinity-history-structure-p,
#whyModal .why-history-structure-kicker,
#whyModal .why-trinity-apologetics-p,
#whyModal .why-trinity-encourage-p,
#whyModal .why-trinity-prayer-p,
#whyModal .why-prayer-label,
#whyModal .why-prayer-body,
#whyModal .why-trinity-golden-thread,
#whyModal .why-witness-ref,
#whyModal .why-witness-snippet,
#whyModal .why-lex-label,
#whyModal .why-lex-value,
#whyModal .why-lex-row-highlight .why-lex-label,
#whyModal .why-lex-row-highlight .why-lex-value,
#whyModal .why-lex-high-grit-label,
#whyModal .why-lex-high-grit-p,
#whyModal .why-lemma-word,
#whyModal .why-lemma-trans,
#whyModal .why-lemma-gloss,
#whyModal .why-lemma-strong,
#whyModal .why-lemma-src,
#whyModal .why-integrity,
#whyModal .why-academic-note-text,
#whyModal .why-life-direct,
#whyModal .why-life-direct.why-life-soft,
#whyModal .why-marketplace-bridge,
#whyModal .why-marketplace-bridge a,
#whyModal .why-marketplace-bridge a:hover,
#whyModal .why-share-verse-btn,
#whyModal .why-share-verse-btn:hover,
#whyModal .altar-btn,
#whyModal .why-consecrate-btn,
#whyModal .ls-cinematic-title,
#whyModal .ls-cinematic-subtitle,
#whyModal .ls-cinematic-cta,
#whyModal .ls-cinematic-cta-badge,
#whyModal .ls-cinematic-duration,
.ls-why-toolbar__action,
.ls-why-toolbar__action:hover,
.ls-why-toolbar-link {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* Liquid Vault callout in “How we source” — sapphire, beats modal white-link sweep */
.ls-trust-body a.ls-trust-vault-link,
#whyModal .ls-trust-body a.ls-trust-vault-link {
  color: #60a5fa !important;
  -webkit-text-fill-color: #60a5fa !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-color: rgba(37, 99, 235, 0.55) !important;
  text-shadow: 0 0 22px rgba(37, 99, 235, 0.45) !important;
  opacity: 1 !important;
}
.ls-trust-body a.ls-trust-vault-link:hover,
#whyModal .ls-trust-body a.ls-trust-vault-link:hover {
  color: #bfdbfe !important;
  -webkit-text-fill-color: #bfdbfe !important;
  text-decoration-color: rgba(37, 99, 235, 0.75) !important;
}

#whyModal .why-trinity-dispensation .why-trinity-header .why-trinity-tag {
  text-transform: none !important;
  letter-spacing: 0.06em !important;
}
#whyModal .ls-cinematic-icon svg {
  stroke: rgba(255, 255, 255, 0.88) !important;
}

/* Chamber deck + Topics UI (same reading as user list) */
#lsChamberDeck .ls-deck-name,
#lsChamberDeck .ls-deck-tile .ls-deck-name,
#lsChamberDeck .ls-deck-tile.active .ls-deck-name,
#lsChamberDeck .ls-deck-tile.ls-apologetics-tile .ls-deck-name {
  color: rgba(247, 244, 238, 0.96) !important;
}
#lsChamberDeck .ls-deck-sub {
  color: rgba(200, 214, 238, 0.78) !important;
}
/* Why modal blur sits on full viewport — lift dock so TOPICS is not washed out */
body:has(#whyModal.open) #lsBottomDock {
  z-index: 10002 !important;
}

/* Bottom bar TOPICS label (#lsLuxTopicsTrigger) — not Why modal headers */
#lsLuxTopicsTrigger .ls-lux-word,
.ls-topics-sapphire .ls-lux-word {
  color: #2563eb !important;
  -webkit-text-fill-color: #2563eb !important;
  font-family: "JetBrains Mono", ui-monospace, monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  opacity: 1 !important;
  text-shadow: 0 0 24px rgba(37, 99, 235, 0.65) !important;
}
#lsLuxTopicsTrigger,
.ls-topics-sapphire.ls-topics-luxury-trigger {
  border-top: 1px solid rgba(37, 99, 235, 0.4) !important;
}
#lsLuxTopicsTrigger .ls-lux-chev,
.ls-topics-sapphire .ls-lux-chev {
  color: #60a5fa !important;
  -webkit-text-fill-color: #60a5fa !important;
  opacity: 1 !important;
}
#lsLuxTopicsTrigger .ls-lux-handle,
.ls-topics-sapphire .ls-lux-handle {
  background: #2563eb !important;
  opacity: 1 !important;
  height: 4px !important;
  box-shadow:
    0 0 18px rgba(37, 99, 235, 0.7),
    0 0 0 1px rgba(37, 99, 235, 0.45) inset !important;
}
#lsTopicFromLine.ls-topic-from {
  color: #2563eb !important;
  -webkit-text-fill-color: #2563eb !important;
  opacity: 1 !important;
}
#whyModal .why-passage-verified {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: linear-gradient(
    135deg,
    rgba(12, 20, 36, 0.72) 0%,
    rgba(6, 10, 18, 0.5) 100%
  ) !important;
}
#whyModal .why-pv-dot {
  background: radial-gradient(
    circle at 35% 30%,
    rgba(219, 234, 254, 0.98),
    rgba(59, 130, 246, 0.75) 55%,
    rgba(29, 78, 216, 0.4)
  ) !important;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.5) !important;
}
.ls-topic-drawer .ls-drawer-title {
  color: rgba(247, 244, 238, 0.94) !important;
}
.ls-topic-drawer .ls-topic-pill,
.ls-topic-drawer .ls-topic-pill.active {
  color: rgba(247, 244, 238, 0.94) !important;
}
.ls-topic-grid .ls-topic-btn,
.ls-topic-grid .ls-topic-btn.active {
  color: rgba(236, 242, 252, 0.9) !important;
}
.ls-topic-from {
  color: rgba(232, 238, 248, 0.88) !important;
}

/* ══ Reading shell — valley mockup (glass card: verse sits between mountain wings) ══ */
.section.active > .sc-card,
.sc-card {
  position: relative !important;
  max-width: min(calc(100% - 20px), 400px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  /* Verse card — translucent black; a touch heavier toward bottom */
  background: linear-gradient(
    168deg,
    rgba(0, 0, 0, 0.48) 0%,
    rgba(0, 0, 0, 0.34) 34%,
    rgba(0, 0, 0, 0.52) 68%,
    rgba(0, 0, 0, 0.64) 100%
  ) !important;
  background-color: rgba(0, 0, 0, 0.32) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 20px 56px rgba(0, 0, 0, 0.42) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.12) !important;
  backdrop-filter: blur(20px) saturate(1.12) !important;
  overflow: hidden !important;
}

.section.active > .sc-card {
  margin-top: 12px !important;
  padding-top: 24px !important;
  padding-bottom: 24px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* Pull the active reading block into the vertical “saddle” vs FL.desktop-elite */
.section.active > .sec-head {
  /* Space under welcome / top chrome only — does not change gap from verse card to declarations */
  margin-top: 18px !important;
  margin-bottom: 6px !important;
}

/* Title ↔ verse card: .sc-card uses inline margin-top: 8px !important (beats author CSS).
   This spacer lives inside .sec-head so it always shows between label and card. */
.section.active > .sec-head::after {
  content: "";
  display: block;
  height: 18px;
  width: 100%;
}

.section.active {
  margin-top: 16px !important;
  padding-top: 0 !important;
}

@media (min-width: 768px) {
  .section.active > .sec-head {
    margin-top: 22px !important;
  }
  .section.active > .sec-head::after {
    height: 24px;
  }
  .section.active {
    margin-top: 10px !important;
  }
  .section.active > .sc-card {
    margin-top: 22px !important;
    margin-bottom: 48px !important;
    padding: 38px 34px 32px !important;
    max-width: min(calc(100% - 24px), 420px) !important;
  }
}

.sc-verse {
  color: rgba(255, 255, 255, 0.96) !important;
  text-shadow: 0 1px 22px rgba(0, 0, 0, 0.65) !important;
  line-height: 1.82 !important;
  letter-spacing: 0.01em !important;
}

/* iOS / WebKit: verse is sometimes focused programmatically — kill the loud system ring */
.sc-verse:focus {
  outline: none !important;
}

.sc-verse:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
}

.sc-ref {
  color: rgba(236, 242, 255, 0.9) !important;
  font-family: "JetBrains Mono", ui-monospace, monospace !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.26em !important;
  text-transform: uppercase !important;
}

.sc-speaker,
.sc-location,
.sc-dispensation {
  color: rgba(148, 162, 190, 0.68) !important;
}

.sec-head .sec-title,
.section.active .sec-head .sec-title,
.sec-title {
  color: rgba(236, 240, 250, 0.78) !important;
  text-shadow: none !important;
}

.sc-card::before {
  background: radial-gradient(
    ellipse 85% 55% at 50% 18%,
    rgba(37, 99, 235, 0.08) 0%,
    rgba(56, 120, 200, 0.04) 42%,
    transparent 72%
  ) !important;
  opacity: 0.4 !important;
}

/* Why / slat chrome colors live in EOF “Mockup verse deck” (beats FL inline). Layout only: */
.section.active > .sc-card .ls-slat-row .why-btn,
.sc-card .ls-slat-row .why-btn,
.sc-card .why-btn {
  border-radius: 999px !important;
  min-height: 46px !important;
  justify-content: center !important;
  display: flex !important;
  align-items: center !important;
}

/* Slat row: flex + order (WebKit-safe). DOM is often ♡ · Study · Send — order restores Study | Send | ♡. */
.section.active > .sc-card > .ls-slat-row,
.sc-card > .ls-slat-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-bottom: 20px !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
}

.sc-card > .ls-slat-row:has(> .why-btn),
.section.active > .sc-card > .ls-slat-row:has(> .why-btn) {
  flex-wrap: wrap !important;
}

.sc-card > .ls-slat-row > .why-btn,
.section.active > .sc-card > .ls-slat-row > .why-btn {
  flex: 1 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  order: 0 !important;
  grid-column: unset !important;
  grid-row: unset !important;
}

.sc-card > .ls-slat-row > .ls-slat-btn[data-slat-role="memorize"],
.section.active > .sc-card > .ls-slat-row > .ls-slat-btn[data-slat-role="memorize"] {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  order: 1 !important;
  grid-column: unset !important;
  grid-row: unset !important;
}

.sc-card > .ls-slat-row > .ls-slat-btn[data-slat-role="send"],
.section.active > .sc-card > .ls-slat-row > .ls-slat-btn[data-slat-role="send"] {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  order: 2 !important;
  grid-column: unset !important;
  grid-row: unset !important;
}

.sc-card > .ls-slat-row > .ls-vault-btn,
.section.active > .sc-card > .ls-slat-row > .ls-vault-btn {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  z-index: auto !important;
  flex: 0 0 auto !important;
  order: 3 !important;
  align-self: center !important;
  grid-column: unset !important;
  grid-row: unset !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(252, 252, 255, 0.32) !important;
  background: rgba(4, 8, 16, 0.35) !important;
  color: rgba(224, 236, 255, 0.88) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(37, 99, 235, 0.1) !important;
}

/* Legacy rows without data-slat-role (fallback — vault first, then two .ls-slat-btn) */
.sc-card > .ls-slat-row > .ls-slat-btn:nth-child(2):not([data-slat-role]),
.section.active > .sc-card > .ls-slat-row > .ls-slat-btn:nth-child(2):not([data-slat-role]) {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: auto !important;
  order: 1 !important;
  grid-column: unset !important;
  grid-row: unset !important;
}

.sc-card > .ls-slat-row > .ls-slat-btn:nth-child(3):not([data-slat-role]),
.section.active > .sc-card > .ls-slat-row > .ls-slat-btn:nth-child(3):not([data-slat-role]) {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: auto !important;
  order: 2 !important;
  grid-column: unset !important;
  grid-row: unset !important;
}

.section.active > .sc-card > .ls-slat-row > .ls-slat-btn,
.sc-card .ls-slat-row > .ls-slat-btn {
  /* Mockup secondary: soft stadium, not full pill */
  border-radius: 14px !important;
  min-height: 44px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Space between Study|Send row and in-card pagination */
.sc-card > .sc-nav {
  margin-top: 12px !important;
  flex-shrink: 0 !important;
}

.section.active .sc-nav .btn,
.section.active .sc-nav > div[onclick],
.sc-nav .btn,
.sc-nav > div[onclick] {
  color: rgba(190, 202, 228, 0.78) !important;
}

.sc-nav-count {
  color: rgba(155, 170, 200, 0.65) !important;
}

.ls-welcome-pill {
  background: rgba(3, 5, 10, 0.9) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important;
}

.ls-welcome-pill .ls-pill-icon,
.ls-welcome-pill .ls-pill-play {
  color: rgba(150, 185, 235, 0.85) !important;
}

.ls-deck-tile {
  background: rgba(6, 8, 14, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
}

.ls-deck-tile.active {
  border: 1px solid rgba(90, 135, 205, 0.45) !important;
  background: rgba(14, 22, 40, 0.55) !important;
  box-shadow: 0 0 14px rgba(40, 70, 130, 0.28) !important;
}

.ls-deck-tile.active .ls-deck-icon {
  color: rgba(150, 190, 255, 0.9) !important;
}

.ls-deck-icon {
  color: rgba(130, 145, 170, 0.58) !important;
}

#lsChamberDeck .ls-deck-sub,
.ls-deck-sub {
  color: rgba(140, 158, 190, 0.65) !important;
}

.ls-topics-luxury-trigger {
  background: rgba(4, 6, 12, 0.92) !important;
}

/* Apologetics tile — navy family (no LV cyan) */
.ls-deck-tile.ls-apologetics-tile {
  border: 1px solid rgba(90, 135, 200, 0.38) !important;
  background: rgba(12, 20, 38, 0.55) !important;
  box-shadow: 0 0 16px rgba(30, 55, 100, 0.25) !important;
}
.ls-deck-tile.ls-apologetics-tile .ls-deck-icon {
  color: rgba(145, 185, 245, 0.86) !important;
}

/* ══ Mockup verse deck + mountains — final (high specificity beats FL inline) ══ */

/* Split wings — match enhancements: low hue drift, softer ridge glow */
html body .page .ls-split-mountain-bg .ls-split-mountain-bg__side.ls-split-mountain-bg__side--left,
html body .page .ls-split-mountain-bg .ls-split-mountain-bg__side.ls-split-mountain-bg__side--right {
  opacity: 0.6 !important;
  transform: translateY(8vh) !important;
  filter: hue-rotate(-8deg) saturate(1.05) brightness(0.86) contrast(1.05)
    drop-shadow(0 -6px 28px rgba(29, 78, 216, 0.38))
    drop-shadow(0 0 36px rgba(30, 58, 138, 0.34))
    drop-shadow(0 0 56px rgba(29, 78, 216, 0.2)) !important;
}

@media (max-width: 480px) {
  html body .page .ls-split-mountain-bg .ls-split-mountain-bg__side {
    opacity: 0.68 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .page .ls-split-mountain-bg .ls-split-mountain-bg__side.ls-split-mountain-bg__side--left,
  html body .page .ls-split-mountain-bg .ls-split-mountain-bg__side.ls-split-mountain-bg__side--right {
    transform: translateY(4vh) !important;
    filter: hue-rotate(-8deg) saturate(1.05) brightness(0.86) contrast(1.05)
      drop-shadow(0 -4px 22px rgba(29, 78, 216, 0.32))
      drop-shadow(0 0 32px rgba(30, 58, 138, 0.28)) !important;
  }
}

/* WHY THIS MATTERS — flat ghost (FL.13 moves Why to .sc-card > div.why-btn) */
html body .page .section .sc-card .ls-slat-row div.why-btn[class*="-why"],
html body .page .section .sc-card > div.why-btn[class*="-why"] {
  background: rgba(255, 255, 255, 0.07) !important;
  background-color: rgba(255, 255, 255, 0.07) !important;
  background-image: none !important;
  /* Same sapphire as bottom TOPICS (#3b82f6 + soft halo) */
  border: 1px solid rgba(59, 130, 246, 0.82) !important;
  color: #ffffff !important;
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.12),
    0 0 22px rgba(59, 130, 246, 0.28) !important;
  text-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  animation: none !important;
}

html body .page .section .sc-card .ls-slat-row div.why-btn[class*="-why"]:active,
html body .page .section .sc-card > div.why-btn[class*="-why"]:active {
  border-color: rgba(37, 99, 235, 0.95) !important;
  color: #ffffff !important;
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.2),
    0 0 26px rgba(59, 130, 246, 0.38) !important;
}

html body .page .section .sc-card .ls-slat-row div.why-btn[class*="-why"] .ls-btn-label,
html body .page .section .sc-card .ls-slat-row div.why-btn[class*="-why"] .ls-btn-icon,
html body .page .section .sc-card .ls-slat-row div.why-btn[class*="-why"] .ls-btn-icon svg,
html body .page .section .sc-card > div.why-btn[class*="-why"] .ls-btn-label,
html body .page .section .sc-card > div.why-btn[class*="-why"] .ls-btn-icon,
html body .page .section .sc-card > div.why-btn[class*="-why"] .ls-btn-icon svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  text-shadow: none !important;
  filter: none !important;
}

/* STUDY THE WORD / SEND A WORD — white ghost outline, white type */
html body .page .section .sc-card .ls-slat-row button.ls-slat-btn {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.52) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

html body .page .section .sc-card .ls-slat-row button.ls-slat-btn:active {
  border-color: rgba(255, 255, 255, 0.88) !important;
  color: #ffffff !important;
}

html body .page .section .sc-card .ls-slat-row button.ls-slat-btn .ls-btn-label,
html body .page .section .sc-card .ls-slat-row button.ls-slat-btn .ls-btn-icon,
html body .page .section .sc-card .ls-slat-row button.ls-slat-btn .ls-btn-icon svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* ♡ vault chip — same ghost language as Study/Send */
html body .page .section .sc-card .ls-slat-row button.ls-vault-btn {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* Study note — soft neutral white (not harsh #fff); no white halo on mountain. */
html body .page .section.active .note-text,
html body .page .section.active .note-text b {
  color: rgba(255, 255, 255, 0.78) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.78) !important;
  opacity: 1 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.88) !important;
}

html body .page .section.active .note-label {
  color: rgba(255, 255, 255, 0.78) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.78) !important;
  opacity: 1 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.78) !important;
}

html body .page .section.active .note-sign {
  color: rgba(255, 255, 255, 0.78) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.78) !important;
  opacity: 1 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.78) !important;
}

html body .page .section.active .streak-message {
  color: rgba(241, 245, 255, 0.9) !important;
  -webkit-text-fill-color: rgba(241, 245, 255, 0.9) !important;
  opacity: 1 !important;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.45) !important;
}

html body .page .section.active .streak-label,
html body .page .section.active .streak-unit,
html body .page .section.active .streak-verse {
  color: rgba(220, 228, 245, 0.78) !important;
  -webkit-text-fill-color: rgba(220, 228, 245, 0.78) !important;
  opacity: 1 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72) !important;
}

html body .page .section.active .streak-number {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.75),
    0 0 22px rgba(15, 40, 90, 0.35) !important;
}

/* Why as direct child of .sc-card (FL.13) — never pull above .sc-display in column flex */
html body .page .section.active .sc-card > div.why-btn[class*="-why"] {
  order: 0 !important;
}

/* Mobile: study note — lighten type only (keep transparent card over mountain) */
@media (max-width: 480px) {
  html body .page .section.active > .note-card .note-text,
  html body .page .section.active > .note-card .note-text b,
  html body .page .section.active .note-card .note-text,
  html body .page .section.active .note-card .note-text b {
    color: rgba(255, 255, 255, 0.78) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.78) !important;
    opacity: 1 !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.88) !important;
  }

  html body .page .section.active > .note-card .note-sign,
  html body .page .section.active .note-card .note-sign {
    color: rgba(255, 255, 255, 0.78) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.78) !important;
    opacity: 1 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.82) !important;
  }

  html body .page .section.active > .note-card .note-label,
  html body .page .section.active .note-card .note-label {
    color: rgba(255, 255, 255, 0.78) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.78) !important;
    opacity: 1 !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.78) !important;
  }
}

/* Footer brand — above .page::after grain + glass slab (parity with #ls-verse-mockup-final) */
html body .page .footer {
  position: relative !important;
  z-index: 24 !important;
  isolation: isolate !important;
  mix-blend-mode: normal !important;
  color: #ffffff !important;
  opacity: 1 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: min(520px, calc(100% - 28px)) !important;
  margin-top: 28px !important;
  padding: 18px 20px 22px !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(6, 10, 20, 0.78) 100%
  ) !important;
  border: 1px solid rgba(37, 99, 235, 0.42) !important;
  border-radius: 16px !important;
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 0 1px rgba(59, 130, 246, 0.12) !important;
  backdrop-filter: blur(16px) saturate(1.18) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.18) !important;
}
html body .page .footer .brand-footer,
html body .page .footer p.brand-footer {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.38em !important;
  text-shadow:
    0 0 32px rgba(29, 78, 216, 0.55),
    0 0 12px rgba(255, 255, 255, 0.45),
    0 2px 18px rgba(0, 0, 0, 0.92) !important;
}
html body .page .footer > p:not(.brand-footer) {
  color: #bfdbfe !important;
  -webkit-text-fill-color: #bfdbfe !important;
  opacity: 1 !important;
  font-weight: 600 !important;
  font-size: 10.5px !important;
  letter-spacing: 0.16em !important;
  line-height: 1.95 !important;
  text-shadow:
    0 0 26px rgba(29, 78, 216, 0.55),
    0 0 10px rgba(37, 99, 235, 0.35),
    0 2px 16px rgba(0, 0, 0, 0.9) !important;
}

/* ── Mobile / outdoor glare: lift contrast (sun + OLED auto-dim + frosted glass wash) ── */
@media (max-width: 767px) {
  html body .page::before {
    background:
      radial-gradient(ellipse 100% 28% at 50% 0%, rgba(29, 78, 216, 0.12) 0%, transparent 58%),
      radial-gradient(ellipse 82% 28% at 50% 100%, rgba(0, 0, 0, 0.2) 0%, transparent 68%),
      radial-gradient(ellipse 40% 78% at 0% 50%, rgba(0, 0, 0, 0.16) 0%, transparent 52%),
      radial-gradient(ellipse 40% 78% at 100% 50%, rgba(0, 0, 0, 0.16) 0%, transparent 52%) !important;
  }

  html body .page::after {
    opacity: 0.42 !important;
    mix-blend-mode: soft-light !important;
  }

  html body .brand {
    background: linear-gradient(180deg, rgba(10, 16, 26, 0.97) 0%, rgba(5, 10, 18, 0.72) 100%) !important;
  }

  html body .section.active > .sc-card,
  html body .sc-card {
    background: linear-gradient(
      168deg,
      #080808 0%,
      #040404 45%,
      #000000 100%
    ) !important;
    background-color: #000000 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 18px 48px rgba(0, 0, 0, 0.78) !important;
  }

  html body .sc-card::before {
    opacity: 0.35 !important;
  }

  html body .sc-verse {
    color: #ffffff !important;
    text-shadow:
      0 1px 0 rgba(0, 0, 0, 0.55),
      0 2px 14px rgba(0, 0, 0, 0.88),
      0 0 1px rgba(0, 0, 0, 0.9) !important;
  }

  html body .sc-ref {
    color: rgba(248, 250, 255, 0.95) !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75) !important;
  }

  html body .sc-speaker,
  html body .sc-location {
    color: rgba(196, 208, 230, 0.85) !important;
  }

  html body .sec-head .sec-title,
  html body .section.active .sec-head .sec-title,
  html body .sec-title {
    color: rgba(244, 248, 255, 0.9) !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45) !important;
  }

  html body #activeTopicHeading {
    color: rgba(236, 240, 250, 0.84) !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5) !important;
  }

  html body .header-tagline {
    color: rgba(244, 246, 252, 0.88) !important;
  }

  html body .header-for {
    color: rgba(236, 240, 248, 0.78) !important;
  }

  html body .date-pill {
    color: rgba(232, 236, 245, 0.84) !important;
  }

  html body .ls-elite-topbar {
    background: linear-gradient(180deg, rgba(18, 20, 28, 0.99) 0%, rgba(10, 12, 18, 0.94) 100%) !important;
    border-bottom-color: rgba(37, 99, 235, 0.2) !important;
  }

  html body .section.active > .sc-card > .ls-slat-row > .ls-slat-btn,
  html body .sc-card .ls-slat-row > .ls-slat-btn {
    color: rgba(252, 252, 255, 0.9) !important;
    border-color: rgba(252, 252, 255, 0.44) !important;
  }

  html body .section.active > .sc-card > .ls-slat-row > .why-btn,
  html body .sc-card > .ls-slat-row > .why-btn,
  html body .sc-card .why-btn {
    color: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(160, 200, 255, 0.42) !important;
  }

  /* Name gate + intro: lift void slightly in daylight; warm rim */
  html body #lsNameGate {
    background-image:
      radial-gradient(ellipse 88% 48% at 50% 0%, rgba(232, 214, 184, 0.05) 0%, transparent 54%),
      radial-gradient(ellipse 92% 50% at 50% 0%, rgba(59, 130, 246, 0.048) 0%, transparent 56%),
      radial-gradient(ellipse 72% 42% at 50% 100%, rgba(28, 32, 48, 0.14) 0%, transparent 54%),
      linear-gradient(168deg, #08090c 0%, #0a0c12 42%, #0d1018 100%) !important;
  }

  /* Name gate ::before is gradient-only; light OS mode keeps same stack */
  html body #lsNameGate::before {
    filter: none !important;
    opacity: 1 !important;
  }

  html body #lsMarketingIntro::before {
    opacity: 0.62 !important;
    filter: hue-rotate(-12deg) saturate(1.14) brightness(1.05) contrast(1.03) !important;
  }

  html body #lsMarketingIntro.ls-mkg-splash-mockup.ls-mkg-splash-a::before,
  html body #lsMarketingIntro.ls-mkg-splash-mockup:not(.ls-mkg-splash-a):not(.ls-mkg-splash-b):not(.ls-mkg-splash-c):not(.ls-mkg-splash-d)::before {
    opacity: 1 !important;
    filter: contrast(1.06) saturate(1.04) brightness(1.04) hue-rotate(-10deg) !important;
  }

  html body #lsMarketingIntro.ls-mkg-splash-mockup.ls-mkg-splash-b::before {
    opacity: 1 !important;
    filter: contrast(1.06) saturate(1.04) brightness(1.03) hue-rotate(-12deg) !important;
  }

  html body #lsMarketingIntro.ls-mkg-splash-mockup.ls-mkg-splash-c::before {
    opacity: 1 !important;
    filter: contrast(1.06) saturate(1.04) brightness(1.03) hue-rotate(-10deg) !important;
  }

  html body #lsMarketingIntro.ls-mkg-splash-mockup.ls-mkg-splash-d::before {
    opacity: 1 !important;
    filter: contrast(1.06) saturate(1.04) brightness(1.03) hue-rotate(-10deg) !important;
  }
}

/* Elite bar — badge floats so ☰ / bookmark / library stay on one optical line */
.ls-elite-topbar .ls-welcome-pill > .pathway-entry-btn.ls-top-icon-ghost,
.ls-elite-topbar .ls-welcome-pill > .pathway-entry-btn.ls-top-pill-chip {
  position: relative !important;
  align-self: center !important;
}
.ls-elite-topbar .ls-welcome-pill > .pathway-entry-btn.ls-top-icon-ghost .pe-count,
.ls-elite-topbar .ls-welcome-pill > .pathway-entry-btn.ls-top-icon-ghost .ve-count,
.ls-elite-topbar .ls-welcome-pill > .pathway-entry-btn.ls-top-pill-chip .pe-count,
.ls-elite-topbar .ls-welcome-pill > .pathway-entry-btn.ls-top-pill-chip .ve-count {
  position: absolute !important;
  top: 1px !important;
  right: 1px !important;
  margin: 0 !important;
  z-index: 3 !important;
  pointer-events: none !important;
}
.ls-elite-topbar .ls-welcome-pill > .ls-unlock-library-btn.ls-top-icon-ghost,
.ls-elite-topbar .ls-welcome-pill > .ls-unlock-library-btn.ls-top-pill-chip {
  align-self: center !important;
}

/* Wide 1× DPR (~4K logical width): river ribbon only when ?ls_plate=river (defaults live in #ls-verse-mockup-final). */
@media (min-width: 1920px) and (max-resolution: 1.1dppx) {
  html[data-ls-reading-plate="river"] body .page .ls-split-mountain-bg::before {
    background-image: url("../img/ls-calm-plate-02-desert-river-ribbon.png?v=ls_reading_plate_v1") !important;
    background-position: center bottom !important;
    background-size: 122% 122% !important;
  }

  @media (min-width: 900px) {
    #lsNameGate::before {
      background-image:
        radial-gradient(ellipse 108% 66% at 50% -10%, rgba(8, 16, 32, 0.5) 0%, transparent 56%),
        radial-gradient(ellipse 88% 42% at 50% 4%, rgba(232, 214, 184, 0.05) 0%, transparent 58%),
        radial-gradient(ellipse 86% 52% at 50% 100%, rgba(2, 5, 12, 0.82) 0%, rgba(5, 10, 22, 0.26) 46%, transparent 60%),
        radial-gradient(ellipse 100% 36% at 50% 82%, rgba(45, 110, 210, 0.08) 0%, rgba(200, 175, 125, 0.035) 50%, transparent 74%),
        linear-gradient(172deg, #04060c 0%, #090e18 40%, #0c1222 68%, #05070e 100%);
      background-size: 100% 100%;
      background-position: center;
      background-repeat: no-repeat;
      transform: none;
      filter: none;
      opacity: 1;
    }
  }

  #lsMarketingIntro:not(.ls-mkg-splash-mockup)::before {
    background-image:
      linear-gradient(to top, rgba(4, 8, 16, 0.68) 0%, transparent 48%),
      radial-gradient(ellipse 96% 56% at 50% 100%, rgba(37, 99, 235, 0.26) 0%, rgba(29, 78, 216, 0.12) 40%, transparent 58%),
      url("../img/ls-og-share-mountain-chrome-4k.png");
    background-size: 100% 55%, 100% 48%, min(min(122vw, 100vw), 3840px) auto;
  }

  #lsMarketingIntro.ls-mkg-splash-mockup.ls-mkg-splash-a::before,
  #lsMarketingIntro.ls-mkg-splash-mockup:not(.ls-mkg-splash-a):not(.ls-mkg-splash-b):not(.ls-mkg-splash-c):not(.ls-mkg-splash-d)::before {
    background-image:
      linear-gradient(90deg, #030304 0%, rgba(3, 3, 4, 0) 11%, rgba(3, 3, 4, 0) 89%, #030304 100%),
      linear-gradient(to top, rgba(4, 6, 18, 0.14) 0%, rgba(3, 5, 14, 0.04) 34%, transparent 56%),
      radial-gradient(ellipse 98% 70% at 50% 44%, rgba(28, 52, 120, 0.1) 0%, rgba(95, 78, 40, 0.06) 44%, transparent 60%),
      url("../img/ls-splash-dubai-luxwater-a.png?v=ls_topfrost_20260606");
    background-image:
      linear-gradient(90deg, #030304 0%, rgba(3, 3, 4, 0) 11%, rgba(3, 3, 4, 0) 89%, #030304 100%),
      linear-gradient(to top, rgba(4, 6, 18, 0.14) 0%, rgba(3, 5, 14, 0.04) 34%, transparent 56%),
      radial-gradient(ellipse 98% 70% at 50% 44%, rgba(28, 52, 120, 0.1) 0%, rgba(95, 78, 40, 0.06) 44%, transparent 60%),
      url("../img/ls-splash-dubai-luxwater-a.png?v=ls_topfrost_20260606");
    background-repeat: no-repeat;
    background-position: center, center bottom, center, 48% 62%;
    background-size: 100% 100%, 100% 100%, 100% 100%, min(138vw, 128vh);
    filter: contrast(1.12) saturate(1.08) brightness(1.04) hue-rotate(-12deg);
    transform: translateZ(0);
  }

  #lsMarketingIntro.ls-mkg-splash-mockup.ls-mkg-splash-b::before {
    background-image:
      linear-gradient(90deg, #030304 0%, rgba(3, 3, 4, 0) 11%, rgba(3, 3, 4, 0) 89%, #030304 100%),
      linear-gradient(to top, rgba(4, 8, 22, 0.15) 0%, rgba(4, 10, 26, 0.05) 36%, transparent 58%),
      radial-gradient(ellipse 96% 72% at 52% 42%, rgba(20, 48, 110, 0.11) 0%, rgba(110, 88, 44, 0.06) 46%, transparent 60%),
      url("../img/ls-splash-dubai-luxwater-b.png?v=ls_topfrost_20260606");
    background-image:
      linear-gradient(90deg, #030304 0%, rgba(3, 3, 4, 0) 11%, rgba(3, 3, 4, 0) 89%, #030304 100%),
      linear-gradient(to top, rgba(4, 8, 22, 0.15) 0%, rgba(4, 10, 26, 0.05) 36%, transparent 58%),
      radial-gradient(ellipse 96% 72% at 52% 42%, rgba(20, 48, 110, 0.11) 0%, rgba(110, 88, 44, 0.06) 46%, transparent 60%),
      url("../img/ls-splash-dubai-luxwater-b.png?v=ls_topfrost_20260606");
    background-repeat: no-repeat;
    background-position: center, center bottom, center, 50% 60%;
    background-size: 100% 100%, 100% 100%, 100% 100%, min(140vw, 128vh);
    filter: contrast(1.12) saturate(1.07) brightness(1.03) hue-rotate(-14deg);
    transform: translateZ(0);
  }

  #lsMarketingIntro.ls-mkg-splash-mockup.ls-mkg-splash-c::before {
    background-image:
      linear-gradient(90deg, #030304 0%, rgba(3, 3, 4, 0) 11%, rgba(3, 3, 4, 0) 89%, #030304 100%),
      linear-gradient(to top, rgba(6, 6, 18, 0.14) 0%, rgba(4, 4, 14, 0.04) 36%, transparent 58%),
      radial-gradient(ellipse 100% 74% at 48% 46%, rgba(32, 56, 128, 0.1) 0%, rgba(100, 80, 36, 0.07) 42%, transparent 58%),
      url("../img/ls-splash-dubai-luxwater-c.png?v=ls_topfrost_20260606");
    background-image:
      linear-gradient(90deg, #030304 0%, rgba(3, 3, 4, 0) 11%, rgba(3, 3, 4, 0) 89%, #030304 100%),
      linear-gradient(to top, rgba(6, 6, 18, 0.14) 0%, rgba(4, 4, 14, 0.04) 36%, transparent 58%),
      radial-gradient(ellipse 100% 74% at 48% 46%, rgba(32, 56, 128, 0.1) 0%, rgba(100, 80, 36, 0.07) 42%, transparent 58%),
      url("../img/ls-splash-dubai-luxwater-c.png?v=ls_topfrost_20260606");
    background-repeat: no-repeat;
    background-position: center, center bottom, center, 52% 62%;
    background-size: 100% 100%, 100% 100%, 100% 100%, min(142vw, 130vh);
    filter: contrast(1.12) saturate(1.08) brightness(1.04) hue-rotate(-10deg);
    transform: translateZ(0);
  }

  #lsMarketingIntro.ls-mkg-splash-mockup.ls-mkg-splash-d::before {
    background-image:
      linear-gradient(90deg, #030304 0%, rgba(3, 3, 4, 0) 11%, rgba(3, 3, 4, 0) 89%, #030304 100%),
      linear-gradient(to top, rgba(4, 6, 20, 0.14) 0%, rgba(3, 6, 16, 0.04) 34%, transparent 56%),
      radial-gradient(ellipse 98% 70% at 50% 44%, rgba(26, 50, 118, 0.1) 0%, rgba(92, 74, 38, 0.06) 44%, transparent 60%),
      url("../img/ls-splash-dubai-luxwater-d.png?v=ls_topfrost_20260606");
    background-image:
      linear-gradient(90deg, #030304 0%, rgba(3, 3, 4, 0) 11%, rgba(3, 3, 4, 0) 89%, #030304 100%),
      linear-gradient(to top, rgba(4, 6, 20, 0.14) 0%, rgba(3, 6, 16, 0.04) 34%, transparent 56%),
      radial-gradient(ellipse 98% 70% at 50% 44%, rgba(26, 50, 118, 0.1) 0%, rgba(92, 74, 38, 0.06) 44%, transparent 60%),
      url("../img/ls-splash-dubai-luxwater-d.png?v=ls_topfrost_20260606");
    background-repeat: no-repeat;
    background-position: center, center bottom, center, 50% 63%;
    background-size: 100% 100%, 100% 100%, 100% 100%, min(148vw, 134vh);
    filter: contrast(1.12) saturate(1.08) brightness(1.04) hue-rotate(-12deg);
    transform: translateZ(0);
  }
}

/* Reading-plate A/B preview (?ls_preview_plates=1) — built by ls-enhancements.js */
#lsPlatePreviewDock {
  position: fixed;
  left: 50%;
  bottom: max(52px, calc(env(safe-area-inset-bottom, 0px) + 44px));
  transform: translateX(-50%);
  z-index: 12000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px 8px 12px;
  max-width: min(520px, calc(100vw - 20px));
  border-radius: 999px;
  background: rgba(4, 10, 22, 0.78);
  border: 1px solid rgba(147, 197, 253, 0.38);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 1;
}
#lsPlatePreviewDock button[data-ls-plate] {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 9px 12px;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: rgba(248, 250, 252, 0.95);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}
#lsPlatePreviewDock button[data-ls-plate]:hover {
  border-color: rgba(96, 165, 250, 0.65);
  background: rgba(30, 41, 59, 0.85);
}
#lsPlatePreviewDock button[data-ls-plate].is-active {
  border-color: rgba(59, 130, 246, 0.95);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.45), 0 0 18px rgba(37, 99, 235, 0.35);
  color: #fff;
}
#lsPlatePreviewDock .ls-plate-preview-close {
  appearance: none;
  margin: 0 0 0 4px;
  padding: 6px 10px;
  min-width: 36px;
  min-height: 36px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(226, 232, 240, 0.85);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
#lsPlatePreviewDock .ls-plate-preview-close:hover {
  color: #fff;
  background: rgba(248, 113, 113, 0.2);
}

/* Reading plate — soft vignette (wow without fighting verse contrast) */
html body .page .ls-split-mountain-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 92% 88% at 50% 44%,
    transparent 0%,
    rgba(2, 4, 10, 0.22) 55%,
    rgba(2, 4, 10, 0.5) 100%
  );
  opacity: 0.85;
}

/* First-run atmosphere chooser (after gate) — built by ls-enhancements.js */
#lsAtmosphereOnboarding.ls-atmo-root {
  position: fixed;
  inset: 0;
  z-index: 12500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
    max(20px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
#lsAtmosphereOnboarding .ls-atmo-scrim {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 10, 0.78);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
}
#lsAtmosphereOnboarding .ls-atmo-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(92vh, 640px);
  overflow: auto;
  border-radius: 20px;
  padding: 22px 20px 18px;
  background: linear-gradient(165deg, rgba(12, 18, 32, 0.96) 0%, rgba(5, 8, 16, 0.94) 100%);
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
#lsAtmosphereOnboarding .ls-atmo-title {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.96);
}
#lsAtmosphereOnboarding .ls-atmo-lead {
  margin: 0 0 18px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.92);
}
#lsAtmosphereOnboarding .ls-atmo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 380px) {
  #lsAtmosphereOnboarding .ls-atmo-grid {
    grid-template-columns: 1fr;
  }
}
#lsAtmosphereOnboarding .ls-atmo-opt {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0 0 10px;
  border-radius: 14px;
  border: 1px solid rgba(100, 116, 139, 0.45);
  background: rgba(15, 23, 42, 0.55);
  color: rgba(248, 250, 252, 0.96);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
#lsAtmosphereOnboarding .ls-atmo-opt:hover {
  border-color: rgba(96, 165, 250, 0.75);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}
#lsAtmosphereOnboarding .ls-atmo-opt--rec {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}
#lsAtmosphereOnboarding .ls-atmo-thumb {
  display: block;
  width: 100%;
  height: 86px;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}
#lsAtmosphereOnboarding .ls-atmo-opt-label {
  display: block;
  padding: 10px 12px 0;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
#lsAtmosphereOnboarding .ls-atmo-skip-wrap {
  margin: 16px 0 0;
  text-align: center;
}
#lsAtmosphereOnboarding .ls-atmo-skip {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(30, 41, 59, 0.75);
  color: rgba(226, 232, 240, 0.95);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
#lsAtmosphereOnboarding .ls-atmo-skip:hover {
  border-color: rgba(96, 165, 250, 0.7);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  #lsAtmosphereOnboarding .ls-atmo-opt {
    transition: none;
  }
  #lsAtmosphereOnboarding .ls-atmo-opt:hover {
    transform: none;
  }
}

/* Study comfort — Aa panel + verse text steps (additive; wins via load order) */
.ls-study-comfort-wrap {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 4px;
  z-index: 620;
}
.ls-study-comfort-btn {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0 8px;
  min-width: 36px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.55);
  color: rgba(248, 250, 252, 0.95);
  font: 700 15px/1 ui-serif, "Playfair Display", Georgia, serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.12);
}
.ls-study-comfort-btn:hover {
  border-color: rgba(96, 165, 250, 0.75);
  color: #fff;
}
.ls-study-comfort-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(300px, calc(100vw - 24px));
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: rgba(8, 12, 22, 0.96);
  border: 1px solid rgba(96, 165, 250, 0.4);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: left;
}
.ls-study-comfort-panel[hidden] {
  display: none !important;
}
.ls-study-comfort-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.92);
  margin-bottom: 8px;
}
.ls-study-comfort-summary {
  margin: 0 0 12px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(148, 163, 184, 0.95);
  min-height: 0;
}
.ls-study-comfort-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.88);
  margin-bottom: 6px;
}
.ls-study-font-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.ls-study-font-btn {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 8px 0;
  border-radius: 10px;
  border: 1px solid rgba(71, 85, 105, 0.55);
  background: rgba(15, 23, 42, 0.65);
  color: rgba(248, 250, 252, 0.92);
  font: 700 13px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.ls-study-font-btn:hover {
  border-color: rgba(96, 165, 250, 0.65);
}
.ls-study-font-btn.is-active {
  border-color: rgba(59, 130, 246, 0.95);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
  color: #fff;
}
.ls-study-comfort-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.ls-study-comfort-action {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: rgba(30, 58, 138, 0.35);
  color: rgba(224, 242, 254, 0.98);
  font: 600 12px/1.25 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  text-align: center;
}
.ls-study-comfort-action--soft {
  border-color: rgba(100, 116, 139, 0.5);
  background: rgba(15, 23, 42, 0.55);
  color: rgba(203, 213, 225, 0.95);
}
.ls-study-comfort-action:hover {
  border-color: rgba(96, 165, 250, 0.75);
}
.ls-study-comfort-close {
  appearance: none;
  width: 100%;
  margin: 0;
  padding: 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(148, 163, 184, 0.95);
  font: 600 12px ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.ls-study-comfort-close:hover {
  color: #fff;
}

html[data-ls-study-font="0"] body .page .section.active .sc-verse {
  font-size: clamp(0.92rem, 2.45vw, 1.05rem) !important;
  line-height: 1.65 !important;
}
html[data-ls-study-font="1"] body .page .section.active .sc-verse {
  font-size: clamp(1.02rem, 2.85vw, 1.22rem) !important;
  line-height: 1.7 !important;
}
html[data-ls-study-font="2"] body .page .section.active .sc-verse {
  font-size: clamp(1.12rem, 3.15vw, 1.38rem) !important;
  line-height: 1.72 !important;
}
html[data-ls-study-font="3"] body .page .section.active .sc-verse {
  font-size: clamp(1.22rem, 3.45vw, 1.54rem) !important;
  line-height: 1.74 !important;
}

html[data-ls-study-font="0"] body .page .section.active .sc-ref {
  font-size: clamp(0.68rem, 2vw, 0.78rem) !important;
}
html[data-ls-study-font="1"] body .page .section.active .sc-ref {
  font-size: clamp(0.72rem, 2.1vw, 0.82rem) !important;
}
html[data-ls-study-font="2"] body .page .section.active .sc-ref {
  font-size: clamp(0.76rem, 2.2vw, 0.88rem) !important;
}
html[data-ls-study-font="3"] body .page .section.active .sc-ref {
  font-size: clamp(0.8rem, 2.35vw, 0.94rem) !important;
}

/* ── Study tools: one quiet “Mark this passage” row; expand for copy / colors / note ── */
.ls-study-tools-shell {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

.ls-study-lux-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 6px 8px 14px;
  border: none;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(198, 218, 252, 0.78);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ls-study-lux-toggle:hover,
.ls-study-lux-toggle:focus-visible {
  color: rgba(226, 236, 255, 0.92);
  outline: none;
}

.ls-study-lux-toggle-text {
  flex: 0 1 auto;
}

/* Small L-shaped hint — not a fat triangle */
.ls-study-lux-chevron {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1px solid rgba(186, 212, 246, 0.55);
  border-bottom: 1px solid rgba(186, 212, 246, 0.55);
  transform: rotate(45deg);
  margin-top: -2px;
  opacity: 0.65;
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.ls-study-lux-toggle:hover .ls-study-lux-chevron,
.ls-study-lux-toggle:focus-visible .ls-study-lux-chevron {
  border-right-color: rgba(210, 232, 255, 0.75);
  border-bottom-color: rgba(210, 232, 255, 0.75);
  opacity: 0.88;
}

.ls-study-lux-toggle[aria-expanded="true"] .ls-study-lux-chevron {
  transform: rotate(225deg);
  margin-top: 1px;
  border-right-color: rgba(186, 220, 255, 0.82);
  border-bottom-color: rgba(186, 220, 255, 0.82);
  opacity: 0.92;
}

.ls-study-lux-toggle--has {
  color: rgba(214, 228, 255, 0.88);
}

.ls-study-lux-toggle--has .ls-study-lux-toggle-text {
  box-shadow: inset 0 -1px 0 rgba(212, 175, 122, 0.35);
}

.ls-study-lux-panel {
  overflow: hidden;
}

.ls-study-lux-panel:not(.is-open) {
  display: none !important;
}

.ls-study-lux-panel.is-open {
  display: block !important;
  margin-top: 6px;
  padding-top: 10px;
  padding-bottom: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  animation: ls-study-lux-in 0.22s ease-out;
}

.ls-study-lux-panel.is-open .ls-study-card-bar {
  border-top-color: rgba(255, 255, 255, 0.04);
  margin-top: 0;
  padding-top: 8px;
}

@keyframes ls-study-lux-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Breathing room: verse + ref stay primary; shell sits under the reference line. */
.sc-inner:has(.ls-study-card-bar) .sc-verse {
  margin-bottom: 18px !important;
}

.sc-inner:has(.ls-study-tools-shell) .sc-ref {
  margin-bottom: 12px !important;
}

.sc-inner:has(.ls-study-tools-shell) .ls-study-tools-shell {
  margin-bottom: 10px;
}

/* ── Per-verse study bar: copy, highlights, private note (localStorage) ─── */
.ls-study-card-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 16px;
  margin-bottom: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  box-sizing: border-box;
}

.ls-study-copy-btn,
.ls-study-note-toggle,
.ls-study-hl-clear,
.ls-study-hl-pill {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(142, 182, 245, 0.28);
  background: rgba(4, 8, 16, 0.45);
  color: rgba(230, 238, 255, 0.88);
  padding: 8px 12px;
  cursor: pointer;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
}

.ls-study-hl-pill {
  text-transform: none;
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: 50%;
  letter-spacing: 0;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
}

.ls-study-hl-pill--amber {
  border-color: rgba(251, 191, 36, 0.45);
  color: rgba(251, 191, 36, 0.85);
}
.ls-study-hl-pill--sapphire {
  border-color: rgba(96, 165, 250, 0.45);
  color: rgba(147, 197, 253, 0.9);
}
.ls-study-hl-pill--rose {
  border-color: rgba(244, 114, 182, 0.45);
  color: rgba(251, 207, 232, 0.92);
}

.ls-study-hl-pill.is-active {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  background: rgba(12, 18, 32, 0.75);
}

.ls-study-hl-clear {
  text-transform: none;
  padding: 8px 10px;
  letter-spacing: 0.1em;
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(180, 190, 210, 0.75);
  position: relative;
}

.ls-study-none-label {
  display: inline;
}

.ls-study-hl-clear.is-active {
  border-color: rgba(142, 182, 245, 0.35);
  color: rgba(224, 236, 255, 0.95);
}

.ls-study-hl-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-bottom: 6px;
}

/* Narrow phones: tighter toggle + two-row toolbar */
@media (max-width: 520px) {
  .ls-study-tools-shell {
    margin-bottom: 8px;
  }

  .ls-study-lux-toggle {
    padding: 8px 10px 12px;
    font-size: clamp(8px, 2.1vw, 9.5px);
    letter-spacing: 0.22em;
    gap: 9px;
  }

  .ls-study-card-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 8px;
    row-gap: 12px;
    margin-top: 14px;
    margin-bottom: 16px;
    padding-top: 10px;
    align-items: center;
  }

  .ls-study-copy-btn {
    grid-column: 1;
    grid-row: 1;
    justify-self: stretch;
    text-align: center;
    padding: 7px 8px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .ls-study-note-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: stretch;
    text-align: center;
    padding: 7px 8px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .ls-study-hl-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-left: 0;
    margin-bottom: 0;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 5px;
    padding: 6px 0 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.04);
  }

  .ls-study-hl-pill {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 11px;
  }

  .ls-study-hl-clear {
    padding: 6px 9px;
    font-size: 9px;
    letter-spacing: 0.06em;
    min-width: 32px;
  }

  /* Compact “no highlight” control — keeps aria-label on button */
  .ls-study-hl-clear .ls-study-none-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .ls-study-hl-clear::after {
    content: "∅";
    font-size: 15px;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    opacity: 0.92;
  }

  .ls-study-note-wrap {
    margin-top: 8px;
  }

  .ls-study-note-input {
    min-height: 64px;
    font-size: 13px;
    padding: 8px 10px;
  }
}

@media (min-width: 521px) {
  .ls-study-lux-toggle {
    font-size: clamp(9px, 0.85vw, 10px);
    letter-spacing: 0.24em;
    padding-top: 8px;
    padding-bottom: 12px;
  }
}

.ls-study-note-toggle--has {
  border-color: rgba(34, 197, 94, 0.45);
  color: rgba(187, 247, 208, 0.95);
}

.ls-study-note-wrap {
  width: 100%;
  margin-top: 10px;
  box-sizing: border-box;
}

.ls-study-note-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 72px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(245, 245, 247, 0.95);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  padding: 10px 12px;
}

.ls-study-note-input::placeholder {
  color: rgba(160, 170, 195, 0.55);
}

.ls-study-note-input:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.section.active .sc-verse.ls-study-hl--amber,
.sc-verse.ls-study-hl--amber {
  background: linear-gradient(
    180deg,
    rgba(251, 191, 36, 0.2),
    rgba(251, 191, 36, 0.06)
  ) !important;
  border-radius: 14px !important;
  box-decoration-break: clone !important;
  -webkit-box-decoration-break: clone !important;
}

.section.active .sc-verse.ls-study-hl--sapphire,
.sc-verse.ls-study-hl--sapphire {
  background: linear-gradient(
    180deg,
    rgba(59, 130, 246, 0.22),
    rgba(59, 130, 246, 0.07)
  ) !important;
  border-radius: 14px !important;
  box-decoration-break: clone !important;
  -webkit-box-decoration-break: clone !important;
}

.section.active .sc-verse.ls-study-hl--rose,
.sc-verse.ls-study-hl--rose {
  background: linear-gradient(
    180deg,
    rgba(244, 114, 182, 0.2),
    rgba(244, 114, 182, 0.07)
  ) !important;
  border-radius: 14px !important;
  box-decoration-break: clone !important;
  -webkit-box-decoration-break: clone !important;
}

/* ── Find your way — ref / topic search (ls-enhancements.js) ─────────────── */
.ls-find-root {
  position: fixed;
  inset: 0;
  z-index: 9488;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 14px 22px;
  box-sizing: border-box;
  pointer-events: none;
}

.ls-find-root[hidden] {
  display: none !important;
}

.ls-find-root.is-open {
  pointer-events: auto;
}

.ls-find-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(2, 6, 14, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.ls-find-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  margin-top: max(8vh, 36px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    165deg,
    rgba(12, 16, 28, 0.97) 0%,
    rgba(4, 8, 18, 0.98) 100%
  );
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 18px 16px 14px;
  box-sizing: border-box;
}

.ls-find-head {
  position: relative;
  padding-right: 36px;
  margin-bottom: 12px;
}

.ls-find-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(248, 250, 255, 0.96);
}

.ls-find-lead {
  margin: 6px 0 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(186, 198, 220, 0.72);
}

.ls-find-close {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(220, 228, 245, 0.75);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ls-find-close:hover,
.ls-find-close:focus-visible {
  color: #fff;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
}

.ls-find-input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(248, 250, 255, 0.95);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.ls-find-examples {
  margin-bottom: 12px;
}

.ls-find-examples-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(168, 186, 218, 0.55);
  margin-bottom: 8px;
}

.ls-find-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ls-find-chip {
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 999px;
  padding: 7px 12px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(214, 228, 255, 0.92);
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ls-find-chip:hover,
.ls-find-chip:focus-visible {
  border-color: rgba(147, 197, 253, 0.55);
  background: rgba(30, 41, 72, 0.75);
  outline: none;
}

.ls-find-input::placeholder {
  color: rgba(148, 162, 190, 0.55);
}

.ls-find-input:focus {
  outline: none;
  border-color: rgba(147, 197, 253, 0.55);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.ls-find-results {
  max-height: min(52vh, 360px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px 4px;
}

.ls-find-empty {
  padding: 16px 10px 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(170, 184, 210, 0.75);
  line-height: 1.45;
}

.ls-find-empty--prompt .ls-find-empty-line,
.ls-find-empty .ls-find-empty-line {
  margin: 0 0 8px;
  color: rgba(200, 212, 235, 0.88);
}

.ls-find-empty-sub {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(148, 162, 190, 0.72);
}

.ls-find-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.ls-find-row:hover,
.ls-find-row:focus-visible {
  border-color: rgba(147, 197, 253, 0.35);
  background: rgba(20, 28, 48, 0.55);
  outline: none;
}

.ls-find-row-title {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(252, 252, 255, 0.96);
  line-height: 1.25;
}

.ls-find-row-meta {
  font-size: 11px;
  line-height: 1.35;
  color: rgba(168, 184, 212, 0.78);
}

.ls-find-hint {
  margin: 10px 0 0;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(140, 156, 188, 0.55);
  line-height: 1.4;
}

html body .ls-find-open-btn.ls-top-pill-chip {
  color: rgba(191, 219, 254, 0.92) !important;
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.22) !important;
}

html body .ls-find-open-btn.ls-top-pill-chip:hover,
html body .ls-find-open-btn.ls-top-pill-chip:focus-visible {
  color: #e8f2ff !important;
  outline: none;
}

/* ── Welcome pill: one “⋯” menu (all viewports). Icon chips use inline display:flex
   in liquidscripture.html — visibility is forced off in ls-enhancements.js. ── */
.ls-pill-overflow-btn {
  display: none;
  color: rgba(200, 215, 232, 0.95) !important;
}

html body #lsWelcomePill .ls-pill-overflow-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0 !important;
  margin-left: auto !important;
  flex: 0 0 auto !important;
  box-sizing: border-box;
}

/* “Aa” is opened from the ⋯ menu; keep the control in DOM for the panel anchor */
html[data-ls-pill-overflow="1"] .ls-elite-topbar .ls-study-comfort-btn {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ls-pill-overflow-glyph {
  display: block;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  font-size: 20px;
  transform: translateY(-1px);
}

.ls-pill-overflow-root {
  position: fixed;
  inset: 0;
  z-index: 9390;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 max(10px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  pointer-events: none;
}

.ls-pill-overflow-root[hidden] {
  display: none !important;
}

.ls-pill-overflow-root.is-open {
  pointer-events: auto;
}

.ls-pill-overflow-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(2, 6, 14, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.ls-pill-overflow-sheet {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  background: linear-gradient(
    168deg,
    rgba(14, 18, 30, 0.98) 0%,
    rgba(4, 8, 18, 0.99) 100%
  );
  box-shadow:
    0 -12px 48px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 16px 16px 20px;
  box-sizing: border-box;
  max-height: min(72vh, 420px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ls-pill-overflow-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ls-pill-overflow-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(248, 250, 255, 0.96);
}

.ls-pill-overflow-sub {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(170, 186, 214, 0.75);
}

.ls-pill-overflow-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.ls-pill-overflow-row:hover,
.ls-pill-overflow-row:focus-visible {
  border-color: rgba(147, 197, 253, 0.35);
  background: rgba(22, 30, 52, 0.55);
  outline: none;
}

.ls-pill-overflow-row-title {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(226, 236, 255, 0.92);
}

.ls-pill-overflow-row-sub {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(160, 176, 208, 0.78);
}

/* Desktop / tablet: centered card instead of bottom-sheet dock */
@media (min-width: 521px) {
  .ls-pill-overflow-root.is-open {
    align-items: center;
    justify-content: center;
    padding: 24px max(20px, env(safe-area-inset-right)) 24px
      max(20px, env(safe-area-inset-left));
  }

  .ls-pill-overflow-sheet {
    border-radius: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-height: min(80vh, 520px);
    box-shadow:
      0 24px 64px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
}

/* Reading comfort — optional account sync (not on first-time gate) */
.ls-study-comfort-sync {
  margin: 14px 0 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.ls-study-comfort-sync-hint {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(170, 186, 214, 0.88);
}

.ls-study-comfort-sync-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(147, 197, 253, 0.35);
  background: rgba(30, 58, 138, 0.45);
  color: rgba(248, 250, 255, 0.96);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.ls-study-comfort-sync-btn:hover,
.ls-study-comfort-sync-btn:focus-visible {
  border-color: rgba(147, 197, 253, 0.55);
  background: rgba(37, 99, 235, 0.5);
  outline: none;
}

.ls-study-comfort-sync-sub {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(148, 163, 184, 0.82);
}
