/* Adapted from the user's ambient-glow.css: radial gradient + fixed blur.
   Scoped to three decorative hosts; never covers content or catches input.
   Only transform and opacity animate. No canvas, WebGL, CDN or added font files. */
.ambient-host { position: relative; isolation: isolate; }
.ambient-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; border-radius: inherit; contain: paint; }
.ambient-blob { position: absolute; left: var(--glow-x,50%); top: var(--glow-y,50%); width: var(--glow-width,600px); height: var(--glow-height,300px); transform: translate(-50%,-50%); opacity: var(--glow-power,.3); pointer-events: none; }
.ambient-blob::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(ellipse closest-side, rgb(var(--glow-rgb) / .94) 0%, rgb(var(--glow-rgb) / .5) 35%, rgb(var(--glow-rgb) / .16) 65%, rgb(var(--glow-rgb) / 0) 100%); filter: blur(var(--glow-blur,24px)); opacity: .72; animation: var(--glow-animation,ambient-drift) var(--glow-duration,22s) ease-in-out var(--glow-delay,-5s) infinite both; animation-play-state: paused; }
.ambient-host[data-glow-active="true"] .ambient-blob::before { animation-play-state: running; }
/* 01 — wide warm cloud behind the hero preview. */
.ambient-hero { --glow-animation: ambient-drift; --glow-blur: 26px; }
.ambient-hero .ambient-blob:nth-child(1) { --glow-rgb: 239 125 54; --glow-x: 63%; --glow-y: 43%; --glow-width: 850px; --glow-height: 600px; --glow-duration: 24s; --glow-delay: -9s; --glow-power: .38; }
.ambient-hero .ambient-blob:nth-child(2) { --glow-rgb: 180 61 82; --glow-x: 81%; --glow-y: 80%; --glow-width: 570px; --glow-height: 470px; --glow-duration: 31s; --glow-delay: -19s; --glow-power: .27; }
/* 02 — a closer, rounder violet/blue breath within the editor card. */
.ambient-editor { --glow-animation: ambient-breathe; --glow-blur: 22px; }
.ambient-editor .ambient-blob:nth-child(1) { --glow-rgb: 151 103 242; --glow-x: 93%; --glow-y: 40%; --glow-width: 510px; --glow-height: 400px; --glow-duration: 16s; --glow-delay: -7s; --glow-power: .31; }
.ambient-editor .ambient-blob:nth-child(2) { --glow-rgb: 78 121 245; --glow-x: 27%; --glow-y: 110%; --glow-width: 410px; --glow-height: 220px; --glow-duration: 23s; --glow-delay: -11s; --glow-power: .21; }
/* 03 — still, smoky lavender tongues of light. No time-dependent property. */
.ambient-about { --glow-blur: 24px; }
.ambient-about .ambient-blob:nth-child(1) { --glow-rgb: 131 133 177; --glow-x: 34%; --glow-y: 78%; --glow-width: 350px; --glow-height: 240px; --glow-power: .28; transform: translate(-50%,-50%) rotate(-13deg); }
.ambient-about .ambient-blob:nth-child(2) { --glow-rgb: 157 126 163; --glow-x: 51%; --glow-y: 82%; --glow-width: 260px; --glow-height: 190px; --glow-power: .23; transform: translate(-50%,-50%) rotate(18deg); }
.ambient-about .ambient-blob::before { animation: none !important; transform: none; opacity: .72; border-radius: 65% 35% 55% 45% / 80% 75% 25% 20%; background: radial-gradient(ellipse at 50% 68%, rgb(var(--glow-rgb) / .8), rgb(var(--glow-rgb) / .28) 38%, transparent 71%); }
.ambient-about .ambient-blob::after { content: ''; position: absolute; left: 12%; top: -22%; width: 36%; height: 100%; border-radius: 80% 20% 55% 45%; background: radial-gradient(ellipse at 50% 70%, rgb(var(--glow-rgb) / .6), transparent 70%); filter: blur(20px); transform: rotate(16deg); }
html[data-theme="dark"] .ambient-hero .ambient-blob:nth-child(1) { --glow-power: .53; }
html[data-theme="dark"] .ambient-hero .ambient-blob:nth-child(2) { --glow-power: .36; }
html[data-theme="dark"] .ambient-editor .ambient-blob:nth-child(1) { --glow-power: .33; }
html[data-theme="dark"] .ambient-about .ambient-blob:nth-child(1) { --glow-power: .38; }
@keyframes ambient-drift { 0%,100% { opacity: .55; transform: translate(-7%,5%) rotate(-4deg) scale(.92,.86); } 38% { opacity: .96; transform: translate(8%,-5%) rotate(4deg) scale(1.06,1.03); } 72% { opacity: .68; transform: translate(-2%,7%) rotate(-1deg) scale(1.02,.96); } }
@keyframes ambient-breathe { 0%,100% { opacity: .5; transform: scale(.87); } 50% { opacity: .92; transform: scale(1.07); } }

html[data-motion="reduced"] .ambient-blob::before { animation: none; opacity: .72; transform: none; }
@media (prefers-reduced-motion:reduce) { .ambient-blob::before { animation: none; opacity: .72; transform: none; } }
@media (max-width:800px) { .ambient-hero .ambient-blob:nth-child(1) { --glow-width: 640px; --glow-height: 460px; } .ambient-hero .ambient-blob:nth-child(2) { --glow-width: 380px; --glow-height: 370px; } }
@media (max-width:620px) { .ambient-hero .ambient-blob:nth-child(1) { --glow-x: 54%; --glow-y: 73%; --glow-width: 470px; --glow-height: 460px; } .ambient-hero .ambient-blob:nth-child(2) { --glow-x: 90%; --glow-y: 71%; --glow-width: 340px; --glow-height: 350px; } .ambient-about .ambient-blob { --glow-width: 240px; --glow-height: 190px; } .ambient-layer { --glow-blur: 20px; } }

:root { --accent-violet: 151 103 242; --accent-blue: 103 135 195; --accent-mauve: 157 126 163; --accent-power: .18; }
html[data-theme="dark"] { --accent-power: .24; }
.compact-toolbox { position: relative; isolation: isolate; }
.ambient-accent-zone { position: absolute !important; right: 10px; bottom: 8px; width: 160px; height: 82px; z-index: 0 !important; pointer-events: none; contain: paint; }
.compact-toolbox > .ambient-accent-zone { top: 0; bottom: auto; height: 60px; }
.ambient-accent { position: absolute; right: 0; bottom: 0; pointer-events: none; opacity: 0; border-radius: 60% 40% 45% 55%; background: radial-gradient(ellipse, rgb(var(--accent-color) / var(--accent-power)), transparent 70%); filter: blur(9px); animation: accent-arrive var(--accent-life) ease-in-out both; }
.ambient-accent[data-preset="1"] { border-radius: 35% 65% 70% 30%; transform: rotate(-12deg); }
.ambient-accent[data-preset="2"] { border-radius: 70% 30% 45% 55%; transform: rotate(14deg); background: radial-gradient(ellipse at 35% 65%, rgb(var(--accent-color) / var(--accent-power)), transparent 65%), radial-gradient(ellipse at 75% 35%, rgb(var(--accent-color) / .1), transparent 65%); }
@keyframes accent-arrive { 0%,100% { opacity: 0; } 32%,68% { opacity: 1; } }
html[data-motion="reduced"] .ambient-accent { display: none; animation: none; }
@media (prefers-reduced-motion:reduce) { .ambient-accent { display: none; animation: none; } }
@media (max-width:620px) { .ambient-accent-zone { width: 100px; height: 60px; } }
