/* Phase 2IV — Crystal-only molded liquid lenses; zero application logic changes.
   Clears opaque panel paints, adds an actual thick bevel and edge-only spectral
   refraction, plus a textured environment that is visible through the panels. */
@property --p2iv-angle { syntax:'<angle>'; initial-value:0deg; inherits:false; }
@keyframes p2iv-rim-turn { to { --p2iv-angle:360deg; } }
@keyframes p2iv-caustic {0%,100% {background-position:0% 50%,100% 0%,center;} 50%{background-position:100% 45%,0% 100%,center;}}
html.prismThemeCrystal{
 --p2iv-shell:radial-gradient(ellipse at 72% 12%,rgba(255,255,255,.95),transparent 41%),radial-gradient(ellipse at 8% 55%,rgba(165,211,250,.35),transparent 46%),linear-gradient(128deg,#e4eaf3 0%,#f5f8fd 25%,#dae5f2 55%,#f2f6fb 80%,#e2eaf4 100%);
 --p2iv-liquid:radial-gradient(ellipse 83% 48% at 51% -24%,rgba(255,255,255,.48),rgba(255,255,255,0) 79%),linear-gradient(153deg,rgba(255,255,255,.15),rgba(219,239,255,.035) 52%,rgba(246,250,255,.18));
 --p2iv-spectrum:linear-gradient(128deg,#ffffff 0%,#d2f3ff 14%,#ffffff 31%,#e5d6ff 46%,#fff 60%,#fce9c5 78%,#fff 100%);
 --p2iv-shadow:inset 0 5px 3px rgba(255,255,255,.93),inset 0 -6px 6px rgba(100,132,177,.30),inset 5px 0 6px rgba(163,214,242,.33),inset -5px 0 5px rgba(166,142,211,.20),0 8px 14px rgba(86,107,145,.19),0 1px 1px #fff;
}
html.prismThemeCrystal body,html.prismThemeCrystal #app,html.prismThemeCrystal #app#app .main{
 background:var(--p2iv-shell)!important;color:#172237!important;
}
/* Gentle water/light pattern visible under every transparent surface. */
html.prismThemeCrystal #app#app .main{
 background-image:radial-gradient(ellipse at 65% 25%,rgba(255,255,255,.76),transparent 39%),radial-gradient(ellipse at 35% 75%,rgba(157,212,255,.23),transparent 43%),linear-gradient(123deg,rgba(247,252,255,.55) 0%,rgba(214,229,249,.35) 21%,rgba(255,255,255,.5) 36%,rgba(195,223,245,.23) 51%,rgba(255,255,255,.6) 73%,rgba(217,228,248,.38) 100%)!important;
 background-size:140% 140%,145% 145%,cover!important;
 animation:p2iv-caustic 34s ease-in-out infinite!important;
}
/* A panel material with almost no central paint: thickness comes from the rim. */
html.prismThemeCrystal #app#app#app .side,
html.prismThemeCrystal #app#app#app #homePage#homePage#homePage :is(.prismReferenceHero,.prismDeskPulse,.prismReferenceWorkflow,.prismRefKpi,.prismModuleTile,.prismRefProcessing,.prismRefAppStatus,.prismRefNotifications,.prismGlassPanel,#gdDashboardStage){
 background:var(--p2iv-liquid) padding-box,var(--p2iv-spectrum) border-box!important;
 border:4px solid transparent!important;border-radius:29px!important;
 box-shadow:var(--p2iv-shadow)!important;
 backdrop-filter:blur(3px) saturate(170%) contrast(105%)!important;
 -webkit-backdrop-filter:blur(3px) saturate(170%) contrast(105%)!important;
 position:relative!important;isolation:isolate!important;
}
/* Top convex lens and rim caustics, without flat white overlays. */
html.prismThemeCrystal #app#app#app #homePage#homePage#homePage :is(.prismDeskPulse,.prismReferenceWorkflow,.prismRefKpi,.prismModuleTile,.prismRefProcessing,.prismRefAppStatus,.prismRefNotifications,.prismGlassPanel)::before{
 content:""!important;position:absolute!important;inset:3px!important;display:block!important;
 border-radius:inherit!important;opacity:.56!important;pointer-events:none!important;
 background:radial-gradient(ellipse 100% 34% at 50% -8%,rgba(255,255,255,.86),transparent 93%),linear-gradient(175deg,rgba(255,255,255,.35),transparent 21%)!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.95)!important;
 filter:none!important;transform:none!important;
}
html.prismThemeCrystal #app#app#app #homePage#homePage#homePage :is(.prismDeskPulse,.prismReferenceWorkflow,.prismRefKpi,.prismModuleTile,.prismRefProcessing,.prismRefAppStatus,.prismRefNotifications,.prismGlassPanel)::after{
 content:""!important;display:block!important;position:absolute!important;inset:0!important;
 border:5px solid transparent!important;border-radius:inherit!important;
 background:conic-gradient(from 40deg,#ffffffdc 0%,#c2f6ffb8 8%,#ffffff 14%,#f0b7ffaf 25%,#fff9e6e8 37%,#ffffff 51%,#a9eaffcd 64%,#ffffff 71%,#ffd9b4d0 81%,#d5beffcf 89%,#ffffff 100%) border-box!important;
 -webkit-mask:linear-gradient(#fff 0 0) padding-box,linear-gradient(#fff 0 0)!important;
 -webkit-mask-composite:xor!important;mask-composite:exclude!important;
 pointer-events:none!important;opacity:.8!important;mix-blend-mode:normal!important;
 box-shadow:none!important;transform:none!important;animation:none!important;
}
html.prismThemeCrystal #app#app#app #homePage#homePage#homePage :is(.prismDeskPulse,.prismReferenceWorkflow,.prismRefKpi,.prismModuleTile,.prismRefProcessing,.prismRefAppStatus,.prismRefNotifications,.prismGlassPanel)>*{position:relative;z-index:1}
/* Raised meniscus capsules on buttons and left rail. */
html.prismThemeCrystal #app#app#app .side .nav>:is(button,a.gdPublicNav):not(.hide):not([hidden]),
html.prismThemeCrystal #app#app#app #homePage#homePage#homePage .prismModuleTile{
 box-shadow:inset 0 4px 2px #ffffffed,inset 0 -5px 5px rgba(88,130,178,.32),inset 3px 0 4px #b4f0ffac,inset -3px 0 4px #e1c8ffa8,0 7px 13px rgba(75,105,158,.22),0 0 1px #fff!important;
}
html.prismThemeCrystal #app#app#app .side .nav>:is(button,a.gdPublicNav):not(.active){
 background:var(--p2iv-liquid) padding-box,var(--p2iv-spectrum) border-box!important;
 border:3px solid transparent!important;border-radius:999px!important;
}
html.prismThemeCrystal #app#app#app #homePage#homePage#homePage :is(.prismKpiIcon,.prismModuleIcon){
 color:#951b4a!important;-webkit-text-fill-color:#951b4a!important;
 background:radial-gradient(ellipse at 50% 0%,#fff,rgba(255,255,255,.16) 65%) padding-box,var(--p2iv-spectrum) border-box!important;
 box-shadow:inset 0 3px 2px #fff,inset 0 -4px 5px #8fb2ce69,0 4px 8px #729db36e!important;
}
html.prismThemeCrystal #app#app#app #homePage#homePage#homePage :is(.prismKpiIcon,.prismModuleIcon) :is(svg,i,span){color:#951b4a!important;stroke:#951b4a!important;-webkit-text-fill-color:#951b4a!important;filter:none!important}
/* Keep stage status and audit significance legible. */
html.prismThemeCrystal #app#app#app #homePage#homePage#homePage #prismWorkflowTrack .prismWorkflowStep:not(.current){
 background:var(--p2iv-liquid) padding-box,var(--p2iv-spectrum) border-box!important;
 border:4px solid transparent!important;box-shadow:var(--p2iv-shadow)!important;
}
html.prismThemeCrystal #app#app#app #homePage#homePage#homePage #prismWorkflowTrack .prismWorkflowStep.current{
 background:radial-gradient(ellipse at 50% -6%,#ffffff72,transparent 50%) padding-box,linear-gradient(135deg,#a61a4d,#740b38) padding-box,conic-gradient(from var(--p2iv-angle),#fff,#ffafdd,#ffdfaf,#fff,#5ee5f2,#fff,#ef8cff,#fff) border-box!important;
 border:4px solid transparent!important;color:#fff!important;box-shadow:inset 0 4px 4px #ffe5f2a9,inset 0 -5px 5px #4f032f88,0 0 15px #bd2e7599,0 8px 12px #6d366166!important;
 animation:p2iv-rim-turn 6s linear infinite!important;
}
html.prismThemeCrystal #app#app#app #homePage#homePage#homePage #prismWorkflowTrack .prismWorkflowStep.current :is(strong,small,span){color:#fff!important;-webkit-text-fill-color:#fff!important}
@media(prefers-reduced-motion:reduce){
 html.prismThemeCrystal #app#app .main,html.prismThemeCrystal #app#app#app #homePage#homePage#homePage #prismWorkflowTrack .prismWorkflowStep.current{animation:none!important}
}
/* Optical correction: color must not bleed through transparent centers from a border-box gradient. */
html.prismThemeCrystal #app#app#app .side,
html.prismThemeCrystal #app#app#app #homePage#homePage#homePage :is(.prismReferenceHero,.prismDeskPulse,.prismReferenceWorkflow,.prismRefKpi,.prismModuleTile,.prismRefProcessing,.prismRefAppStatus,.prismRefNotifications,.prismGlassPanel,#gdDashboardStage){
 background:var(--p2iv-liquid)!important;
 border:4px solid rgba(252,254,255,.90)!important;
 box-shadow:inset 0 4px 3px rgba(255,255,255,.98),inset 0 -5px 6px rgba(76,119,177,.25),inset 5px 0 7px rgba(130,223,253,.25),inset -5px 0 6px rgba(193,161,247,.17),0 8px 15px rgba(65,85,120,.20),0 0 0 1px rgba(175,206,240,.42)!important;
}
html.prismThemeCrystal #app#app#app #homePage#homePage#homePage #prismWorkflowTrack .prismWorkflowStep:not(.current){
 background:var(--p2iv-liquid)!important;border:4px solid #ffffffdf!important;
 box-shadow:var(--p2iv-shadow)!important;
}
html.prismThemeCrystal #app#app#app .side .nav>:is(button,a.gdPublicNav):not(.active){
 background:var(--p2iv-liquid)!important;border:3px solid #fff!important;
}
html.prismThemeCrystal #app#app#app #homePage#homePage#homePage :is(.prismKpiIcon,.prismModuleIcon){
 background:radial-gradient(ellipse at 50% 0%,#ffffffba,rgba(255,255,255,.06) 82%)!important;border:2px solid #fff!important;
}
/* Final neutralization: do not reintroduce the lavender/plastic cast. */
html.prismThemeCrystal body,html.prismThemeCrystal #app,html.prismThemeCrystal #app#app .main{
 background:radial-gradient(ellipse at 72% 7%,#ffffff 0%,transparent 37%),radial-gradient(ellipse at 9% 72%,#dceaf5a8,transparent 51%),linear-gradient(143deg,#eff4f9,#e7f0f7 55%,#f6f9fc)!important;
}
html.prismThemeCrystal #app#app#app .side,
html.prismThemeCrystal #app#app#app #homePage#homePage#homePage :is(.prismReferenceHero,.prismDeskPulse,.prismReferenceWorkflow,.prismRefKpi,.prismModuleTile,.prismRefProcessing,.prismRefAppStatus,.prismRefNotifications,.prismGlassPanel,#gdDashboardStage){
 backdrop-filter:blur(2px) saturate(120%)!important;
 -webkit-backdrop-filter:blur(2px) saturate(120%)!important;
}
/* Keep artwork uncovered by faux-glass highlight planes. */
html.prismThemeCrystal #app#app#app #homePage#homePage#homePage .prismReferenceHero::before,
html.prismThemeCrystal #app#app#app #homePage#homePage#homePage .prismReferenceHero::after{opacity:0!important}
