/* Each surface owns its clipped atmosphere; effects never intercept input. */
body.zone-ambient-page{isolation:isolate;background-color:var(--zone-bg,#0c1420)}
.zone-ambient{position:fixed;inset:0;z-index:-1;overflow:hidden;contain:strict;pointer-events:none;background:var(--atmosphere-base,linear-gradient(145deg,#0a1520,#111a2a 58%,#090f16));color:#82d3d5}
.zone-ambient.atmosphere-local{position:absolute;inset:0;min-height:100%;border-radius:inherit}
.atmosphere-art,.cosmos-stars{position:absolute;inset:0;width:100%;height:100%}
.atmosphere-art{opacity:.7}.atmosphere-car{opacity:.3}.atmosphere-energy{stroke-dasharray:1250 600;animation:atmosphere-flow 26s linear infinite;opacity:.65}.atmosphere-mountains{display:none}.atmosphere-grid{display:none}
.atmosphere-glow{position:absolute;width:75vmax;height:65vmax;left:-25%;top:-45%;border-radius:50%;background:radial-gradient(ellipse,#20777b40,transparent 66%);animation:atmosphere-drift 28s ease-in-out infinite alternate;opacity:.65}
.atmosphere-glow:nth-child(2){left:45%;top:10%;background:radial-gradient(ellipse,#5d32623d,transparent 64%);animation-delay:-12s;animation-duration:36s}.atmosphere-glow:nth-child(3){left:5%;top:60%;background:radial-gradient(ellipse,#28537a50,transparent 64%);animation-delay:-20s}
.cosmos-stars{display:none}
html[data-ambient=aurora] .zone-ambient{background:linear-gradient(155deg,#081c24,#10252a 48%,#10132a)}
html[data-ambient=aurora] .atmosphere-glow{border-radius:40%;width:120vmax;height:45vmax;left:-30%;top:-15%;background:radial-gradient(ellipse,#3bce9a38,transparent 64%);transform:rotate(-24deg);animation:atmosphere-aurora 24s ease-in-out infinite alternate}
html[data-ambient=aurora] .atmosphere-glow:nth-child(2){top:15%;left:0;background:radial-gradient(ellipse,#5889ed38,transparent 60%);animation-delay:-12s}
html[data-ambient=aurora] .atmosphere-glow:nth-child(3){top:40%;left:-15%;background:radial-gradient(ellipse,#7549bd30,transparent 65%);animation-delay:-18s}
html[data-ambient=aurora] .atmosphere-art{opacity:.18}
html[data-ambient=cosmos] .zone-ambient{background:radial-gradient(ellipse at 80% 15%,#1b38554d,transparent 52%),radial-gradient(ellipse at 20% 80%,#492f5a35,transparent 60%),#0a1120}
html[data-ambient=cosmos] .cosmos-stars{display:block}
html[data-ambient=cosmos] .atmosphere-art{opacity:.12}
html[data-ambient=dunes] .zone-ambient{background:radial-gradient(circle at 80% 17%,#d6936030,transparent 30%),linear-gradient(180deg,#192f3d,#34313a 58%,#41352d)}
html[data-ambient=dunes] .atmosphere-mountains{display:block;fill:#704d3b;opacity:.45;animation:atmosphere-horizon 32s ease-in-out infinite alternate}
html[data-ambient=dunes] .atmosphere-mountains path+path{fill:#3e3030}
html[data-ambient=dunes] :is(.atmosphere-car,.atmosphere-energy){display:none}
html[data-ambient=dunes] .atmosphere-glow{background:radial-gradient(ellipse,#cf94552c,transparent 68%)}
html[data-ambient=grid] .zone-ambient{background:radial-gradient(ellipse at 50% 40%,#123e4e77,transparent 65%),#0b1420}
html[data-ambient=grid] .atmosphere-grid{display:block;position:absolute;inset:35% -30% -30%;background-image:linear-gradient(#6cbdce25 1px,transparent 1px),linear-gradient(90deg,#6cbdce25 1px,transparent 1px);background-size:90px 80px;transform:perspective(700px) rotateX(58deg);mask-image:linear-gradient(transparent,#000 40%);animation:atmosphere-grid 30s linear infinite}
html[data-ambient=grid] .atmosphere-art{opacity:.15}
html[data-ambient=off] .zone-ambient{background:var(--zone-bg,#101922)}
html[data-ambient=off] .zone-ambient>*{display:none}
html[data-ambience-intensity=rich] .atmosphere-art{opacity:.95}
html[data-ambience-intensity=rich] .atmosphere-glow{opacity:1}
html[data-motion=off] .zone-ambient *, .zone-ambient.ambient-paused *{animation-play-state:paused!important}
body.in-theater-mode>.zone-ambient,body.dashboard-open>.zone-ambient{visibility:hidden}
.tz-dashboard:not(.dash-custom-background){background:var(--zone-bg,#0e1821)!important}
.tz-dashboard.dash-custom-background>.zone-ambient{display:none}
html[data-tone=day] .zone-ambient{background:linear-gradient(150deg,#e0edef,#f4f1e9 58%,#d9e8ed);color:#277c86}
html[data-tone=day] .atmosphere-art{opacity:.46}
html[data-tone=day] .atmosphere-glow{background:radial-gradient(ellipse,#4ca3a028,transparent 67%)}
html[data-tone=day][data-ambient=aurora] .zone-ambient{background:linear-gradient(150deg,#d6eae4,#e4edf4 55%,#e8e3f3)}
html[data-tone=day][data-ambient=cosmos] .zone-ambient{background:radial-gradient(ellipse at 80% 15%,#94bcd24d,transparent 52%),linear-gradient(130deg,#dceaf0,#eef0f4)}
html[data-tone=day][data-ambient=dunes] .zone-ambient{background:radial-gradient(circle at 80% 17%,#fff9e4 0,#fff3d56b 10%,transparent 30%),linear-gradient(180deg,#d2e8eb,#eee2cb 60%,#cdae85)}
html[data-tone=day][data-ambient=dunes] .atmosphere-mountains{fill:#a47e59;opacity:.55}
html[data-tone=day][data-ambient=dunes] .atmosphere-mountains path+path{fill:#c4a278}
html[data-tone=day][data-ambient=grid] .atmosphere-grid{background-image:linear-gradient(#326c8222 1px,transparent 1px),linear-gradient(90deg,#326c8222 1px,transparent 1px)}
html[data-tone=day][data-ambient=off] .zone-ambient{background:var(--zone-bg)}
@keyframes atmosphere-drift{to{transform:translate3d(12vw,8vh,0) rotate(12deg)}}
@keyframes atmosphere-aurora{from{transform:translate3d(-3%,0,0) rotate(-24deg) scale(.9)}to{transform:translate3d(5%,8%,0) rotate(-15deg) scale(1.1)}}
@keyframes atmosphere-flow{to{stroke-dashoffset:-1850}}
@keyframes atmosphere-horizon{to{transform:translate3d(-18px,8px,0)}}
@keyframes atmosphere-grid{to{background-position:0 160px}}
@media(prefers-reduced-motion:reduce){.zone-ambient *{animation:none!important}}
