/* App Blue: a view inside the cell, with the existing navy/cyan UI palette. */
html[data-style-choice="app"]{background:#07172c;color-scheme:dark}
html[data-style-choice="app"] :is(.home-style-picker,.site-style-picker) .style-swatch--app{
 background:linear-gradient(135deg,#50e1ef,#146995 45%,#07172c)!important;border-color:#43e5ff;
}
@media(forced-colors:active){
 html[data-style-choice="app"] body:has(#main){background:Canvas!important;color:CanvasText!important}
}

/* The still image uses the same artwork as the animated Home scene. */
@media (forced-colors: none) {
  html[data-style-choice="app"] body:has(#main):not(:has([data-page="home"].active)) {
    position: relative;
    isolation: isolate;
    background: #071b31 !important;
  }
  html[data-style-choice="app"] body:has(#main):not(:has([data-page="home"].active))::before {
    content: "";
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100lvh;
    z-index: -1;
    pointer-events: none;
    background: var(--cell-atmosphere), var(--cell-art) center / cover no-repeat, #071b31;
  }
  html[data-style-choice="app"] body:has(#main) > .ambient { display: none; }
}

html[data-style-choice="app"] {
  --cell-atmosphere: radial-gradient(ellipse 37% 26% at 48% 15%, #00132972, transparent 95%);
  --cell-art: url("cell-interior-20261124.webp");
}
@media (max-width: 700px) {
  html[data-style-choice="app"] { --cell-art: url("cell-interior-mobile-20261124.webp"); }
}

.home-cell-bubbles {
  display: none;
}

@media (forced-colors: none) {
  html[data-style-choice="app"] body:has(#main [data-page="home"].active) {
    background: #061a30 !important;
  }
  html[data-style-choice="app"] #main [data-page="home"].active > .home-cell-bubbles {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block;
    contain: strict;
    isolation: isolate;
    overflow: hidden;
    pointer-events: none;
    background-color: #071b31;
  }
  .cell-optics {
    display: block;
    position: absolute;
    inset: -2.5%;
    background: var(--cell-atmosphere),
      var(--cell-art) var(--cell-framing,50% 50%) / cover no-repeat;
  }
  .home-cell-bubbles canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  html[data-style-choice="app"] #main [data-page="home"] > .home-workspace,
  html[data-style-choice="app"] body:has(#main) > :is(.newsletter-teaser,footer) {
    position: relative;
  }
}

@media (max-width: 700px) and (forced-colors: none) {
  .cell-optics {
    inset: 0;
    --cell-framing: 50% 50%;
  }
}

@media (min-width: 1101px) and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .cell-optics {
    animation: cell-macro-focus 34s ease-in-out infinite alternate;
  }
  .home-cell-bubbles:is([data-paused],[data-inactive]) .cell-optics {
    animation-play-state: paused;
  }
  @keyframes cell-macro-focus {
    from { transform: translate3d(-.7%, .5%, 0) scale(1); }
    to   { transform: translate3d(.9%, -.8%, 0) scale(1.035); }
  }
}

@media (min-width: 1101px) and (forced-colors: none) {
  html[data-style-choice="app"] [data-page="home"] .home-world-brand p {
    padding: 5px 12px;
    border-radius: 18px;
    background: radial-gradient(ellipse, #06172ee6 14%, #06172eb0 56%, transparent 78%);
  }
  html[data-style-choice="app"] [data-page="home"] .home-world-brand p span,
  html[data-style-choice="app"] [data-page="home"] .home-navigation > summary {
    text-shadow: 0 1px 3px #001023, 0 0 8px #001023 !important;
  }
}
