/* STLBEAST V666 Global Contrast Shield
   Final public-facing contrast and background safety layer for Store + Hub.
   It intentionally uses high specificity and !important to defeat legacy light-theme collisions.
*/
:root{color-scheme:dark;--v666-bg:#020711;--v666-bg2:#061425;--v666-card:#07182a;--v666-card2:#03101d;--v666-text:#f4f9ff;--v666-body:#bfd1e0;--v666-muted:#91a9bc;--v666-line:rgba(58,184,255,.30);--v666-cyan:#4fd5ff;--v666-link:#77dcff}
html{background:#020711!important}
html body:not([class*="admin"]):not(.admin-page):not(.stl-admin){background:#020711!important;background-color:#020711!important;color:#f4f9ff!important;color-scheme:dark!important}
html body:not([class*="admin"]):not(.admin-page):not(.stl-admin) :is(.site-shell,.main,.legacy-main,main,[role="main"],.page,.page-wrap,.content-wrap,.content-shell,.hub-page,.resource-page,.guide-page,.v662-search-page,.v662-guide,.v662-guide-library,.v663-settings-page){background-color:#020711!important;color:#f4f9ff!important}
html body:not([class*="admin"]):not(.admin-page):not(.stl-admin) :is(section,article,aside,header,footer,nav,form,details,dialog,.card,.panel,.box,.tile,.content-card,.guide-card,.tool-card,.result-card,.hero-card,.feature-card,.membership-card,.settings-card,.profile-card,[class*="-card"],[class*="-panel"]){color:#f4f9ff!important}
html body:not([class*="admin"]):not(.admin-page):not(.stl-admin) :is(.card,.panel,.box,.tile,.content-card,.guide-card,.tool-card,.result-card,.hero-card,.feature-card,.membership-card,.settings-card,.profile-card,[class*="-card"],[class*="-panel"]){background-color:#061425!important;border-color:rgba(58,184,255,.28)!important}
html body:not([class*="admin"]):not(.admin-page):not(.stl-admin) :is(.hero,.page-hero,.hub-hero,.guide-hero,.search-hero,[class*="-hero"]){background-color:#03101d!important;color:#f4f9ff!important}
html body:not([class*="admin"]):not(.admin-page):not(.stl-admin) :is(h1,h2,h3,h4,h5,h6,.title,.headline,.heading,[class*="-title"],[class*="-heading"]){color:#f7fbff!important;-webkit-text-fill-color:#f7fbff!important;-webkit-text-stroke:0 transparent!important;text-shadow:none!important;background-image:none!important;background-clip:border-box!important;-webkit-background-clip:border-box!important;opacity:1!important;filter:none!important;mix-blend-mode:normal!important}
html body:not([class*="admin"]):not(.admin-page):not(.stl-admin) :is(p,li,dd,dt,td,th,figcaption,blockquote,.lead,.description,.summary,.intro,.copy,.muted,[class*="-lead"],[class*="-description"],[class*="-summary"],[class*="-intro"]){color:#bfd1e0!important;-webkit-text-fill-color:#bfd1e0!important;opacity:1!important;filter:none!important;mix-blend-mode:normal!important}
html body:not([class*="admin"]):not(.admin-page):not(.stl-admin) :is(strong,b,label,legend,summary){color:#eef7ff!important;-webkit-text-fill-color:#eef7ff!important;opacity:1!important}
html body:not([class*="admin"]):not(.admin-page):not(.stl-admin) :is(small,.meta,.eyebrow,.kicker,.caption,[class*="-meta"],[class*="-eyebrow"],[class*="-kicker"]){color:#91a9bc!important;-webkit-text-fill-color:#91a9bc!important;opacity:1!important}
html body:not([class*="admin"]):not(.admin-page):not(.stl-admin) a:not(.button):not(.btn):not([class*="btn"]){color:#77dcff!important;text-decoration-color:rgba(119,220,255,.45)!important}
html body:not([class*="admin"]):not(.admin-page):not(.stl-admin) :is(input,select,textarea){background:#020b15!important;color:#f4f9ff!important;-webkit-text-fill-color:#f4f9ff!important;border-color:rgba(76,195,255,.42)!important;caret-color:#4fd5ff!important}
html body:not([class*="admin"]):not(.admin-page):not(.stl-admin) ::placeholder{color:#8fa8bc!important;-webkit-text-fill-color:#8fa8bc!important;opacity:1!important}
html body:not([class*="admin"]):not(.admin-page):not(.stl-admin) :is(table,thead,tbody,tr,th,td){background-color:transparent!important;border-color:rgba(74,174,231,.22)!important}
html body:not([class*="admin"]):not(.admin-page):not(.stl-admin) thead th{background-color:#081a2d!important;color:#f4f9ff!important}
html body:not([class*="admin"]):not(.admin-page):not(.stl-admin) details{background-color:#061526!important;border-color:rgba(70,185,245,.25)!important}
html body:not([class*="admin"]):not(.admin-page):not(.stl-admin) :is(hr,.divider,[class*="-divider"]){border-color:rgba(70,185,245,.24)!important;background-color:rgba(70,185,245,.24)!important}
html body:not([class*="admin"]):not(.admin-page):not(.stl-admin) :is(img,video,svg){max-width:100%}
html body:not([class*="admin"]):not(.admin-page):not(.stl-admin) :focus-visible{outline:3px solid #54d8ff!important;outline-offset:3px!important}

/* Hub-specific hard overrides for the white-on-white collision seen in search, guide library, and older guide pages. */
html body.hub-v663-body,html body.hub-v665-body,html body.profile-vault-body{background:#020711!important;color:#f4f9ff!important}
html body :is(.v662-search-hero,.v662-guide-hero,.v662-guide-library,.v662-search-page,.v662-guide,.v662-library-section,.v662-shell,.v663-settings-page,.pv-wrap,.pv-hero,.hub348-discovery,.hub374-next-links){background-color:#020711!important;color:#f4f9ff!important}
html body :is(.v662-search-hero,.v662-guide-hero,.pv-hero){background-image:radial-gradient(circle at 82% 8%,rgba(26,131,255,.17),transparent 34%),linear-gradient(180deg,#071a30,#020711)!important}
html body :is(.v662-search-hero h1,.v662-guide-hero h1,.v662-guide-library h1,.v662-guide-library h2,.v662-card h2,.v662-result-card h3,.pv-wrap h1,.pv-wrap h2,.pv-wrap h3,.hub348-discovery h2,.hub374-next-links h2){color:#f7fbff!important;-webkit-text-fill-color:#f7fbff!important;-webkit-text-stroke:0 transparent!important;background:none!important;opacity:1!important}
html body :is(.v662-search-hero p,.v662-guide-hero p,.v662-guide-library p,.v662-card p,.v662-result-card p,.pv-wrap p,.hub348-discovery p,.hub374-next-links span){color:#bfd1e0!important;-webkit-text-fill-color:#bfd1e0!important;opacity:1!important}
html body :is(.v662-card,.v662-result-card,.v662-library-start a,.pv-card,.pv-example-card,.hub348-link-card,.hub374-next-grid a){background:linear-gradient(180deg,#07182a,#03101d)!important;border-color:rgba(58,184,255,.28)!important;color:#f4f9ff!important}
html body .v662-search-form :is(input,select){background:#020b15!important;color:#f4f9ff!important}

/* Store-specific hard overrides for older and current public templates. */
html body :is(.v648-homepage,.v650-catalog,.v650-product-page,.v651-members,.v651-ai-doctor,.store-page,.catalog-page,.product-page){background:#020711!important;color:#f4f9ff!important}
html body :is(.v648-homepage,.v650-catalog,.v650-product-page,.v651-members,.v651-ai-doctor) :is(h1,h2,h3,h4,strong,b){color:#f7fbff!important;-webkit-text-fill-color:#f7fbff!important;-webkit-text-stroke:0 transparent!important;opacity:1!important}
html body :is(.v648-homepage,.v650-catalog,.v650-product-page,.v651-members,.v651-ai-doctor) :is(p,li,small,span:not([class*="badge"])){opacity:1}

@media (prefers-contrast:more){html body:not([class*="admin"]){--v666-body:#d7e5f1;--v666-muted:#b3c6d7}html body:not([class*="admin"]) :is(p,li,dd,dt,td,th,figcaption){color:#d7e5f1!important;-webkit-text-fill-color:#d7e5f1!important}}
@media (forced-colors:active){html body:not([class*="admin"]){forced-color-adjust:auto!important}html body:not([class*="admin"]) :is(h1,h2,h3,h4,h5,h6,p,li,a,label,input,select,textarea){-webkit-text-fill-color:currentColor!important}}
