body[data-ui03=true][data-casting-ambient=true]{position:relative;background:#17191c;color:#f2efe9;--cw-ambient-panel:#17191c}
body[data-ui03=true][data-casting-ambient=true]>.cw-ambient-backdrop{position:absolute;top:0;left:0;right:0;z-index:0;pointer-events:none}
.cw-ambient-layer{position:absolute;inset:0;background:radial-gradient(ellipse 110% 72% at 52% 22%,var(--cw-ambient-glow),transparent 74%),linear-gradient(180deg,#1e2523 0%,#17191c 100%);opacity:1}
body[data-ui03=true][data-casting-ambient=true]>.cw-ambient-backdrop[hidden]{display:none}
body[data-ui03=true][data-casting-ambient=true] .cw{position:relative;z-index:1}
body[data-ui03=true][data-casting-ambient=true] .cw-cinema::after{background:linear-gradient(180deg,#1417199c 0%,#14171912 34%,#17191cbf 76%,#17191c 100%)}
.cw-back-to-top{position:fixed;z-index:29;right:max(16px,env(safe-area-inset-right));bottom:calc(var(--shell-nav-clearance,90px) + 14px);display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #ffffff55;border-radius:50%;background:#1b2522d9;color:#f2efe9;box-shadow:0 5px 18px #0006;backdrop-filter:blur(10px);cursor:pointer}
.cw-back-to-top svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cw-back-to-top:hover{background:#33423b}
.cw-back-to-top:focus-visible{outline:2px solid #f2efe9;outline-offset:3px}
.cw-back-to-top[hidden],body:not([data-ui03=true]) .cw-back-to-top,body:has(dialog[open]) .cw-back-to-top{display:none!important}

.cw-ambient-layer.is-incoming{opacity:0;transition:opacity 1100ms ease-in-out}
.cw-ambient-layer.is-incoming.is-visible{opacity:1}

@media(prefers-reduced-motion:reduce){.cw-ambient-layer.is-incoming{transition:none}}

/* Industry editor has its own sticky save controls. */
body:has(#cw-professional) .cw-back-to-top{display:none!important}

/* Keep the v41 top treatment and opaque slide backing; only the bottom meets black. */
/* Owner 23 Oct 2026 night: the search result list keeps the same top light and black page as the cover page. */
body[data-ui03=true][data-casting-ambient=true]:has(.cw-discovery-stage .cw-cinema),body[data-ui03=true][data-casting-ambient=true]:has(.cw-discovery-stage.is-search){--cw-ambient-panel:#000;background:#000}
body:has(.cw-discovery-stage .cw-cinema)>.cw-ambient-backdrop .cw-ambient-layer,body:has(.cw-discovery-stage.is-search)>.cw-ambient-backdrop .cw-ambient-layer{background:radial-gradient(ellipse 110% 72% at 52% 22%,var(--cw-ambient-glow),transparent 74%),linear-gradient(180deg,#1e2523 0%,#101513 62%,#000 100%)}
body[data-ui03=true][data-casting-ambient=true] .cw-discovery-stage .cw-cinema::after{background:linear-gradient(180deg,#1417199c 0%,#14171912 34%,#17191cbf 76%,#000 100%)}

/* FB67: feather the shared top edge once, after opaque slides are composited. */
.cw-discovery-stage .cw-rotator-stage{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 56px);mask-image:linear-gradient(to bottom,transparent 0,#000 56px)}
