/* C7SHADE_PATCH_V1 — standalone per-hero shading: below text/layers, above photos. */
.chs-visual-library-hero,
.chs-shaded-hero{isolation:isolate}
.chs-shaded-hero{position:relative!important}
:is(.chs-shaded-hero,.chs-visual-library-hero)>.chs-color-shade-overlay{
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
 display:block!important;z-index:3!important;pointer-events:none!important;
 border-radius:inherit;max-width:none!important;max-height:none!important;
}
/* Preserve native header and independent layer positioning. */
body.chakras-site .chs-visual-library-hero>.chs-scene-layer,
body.chakras-site .chs-shaded-hero>.chs-scene-layer{z-index:8!important}
body.chakras-site .chs-shaded-hero> :is(
 .hero-brand-lockup,.home-date,.home-location,.home-theme,.home-tagline,.home-buttons,
 .page-title,.page-subtitle,.page-readmore,.hero-actions,.chakras-hero-extra-logo,.chakras-hero-audio,
 .chakras-canvas-layers
){z-index:7!important}
/* The overlay must not intercept link clicks, touch interactions, or drag handles. */
.chs-color-shade-overlay *{pointer-events:none!important}

/* New Visual Hero Studio editor panel. No changes to existing UI unless injected. */
.chs-library-background>.c7shade-panel{
 flex:1 1 100%;box-sizing:border-box;margin:7px 0 10px;padding:17px 18px;
 border:1px solid #98b0a0;border-left:5px solid #40644b;border-radius:9px;
 background:linear-gradient(135deg,#edf4ec,#fffcf4);
}
.c7shade-panel>legend{font-weight:700;font-size:16px;color:#244333;padding:0 8px}
.c7shade-panel .description{width:100%;margin:2px 0 10px}
.c7shade-grid{display:grid;grid-template-columns:repeat(4,minmax(145px,1fr));gap:12px;align-items:end}
.c7shade-grid>label,.c7shade-opacity{display:grid;gap:5px;font-weight:600;min-width:0}
.c7shade-grid>label input:not([type=checkbox]),.c7shade-grid>label select{width:100%;max-width:100%}
.c7shade-grid input[type=color]{height:40px;min-width:0;cursor:pointer;padding:2px}
.c7shade-check{align-self:center;display:flex!important;flex-direction:row;gap:9px;align-items:center;grid-column:1 / -1;font-size:15px}
.c7shade-check input{width:19px;height:19px}
.c7shade-opacity{grid-column:span 2}
.c7shade-opacity-controls{display:flex;align-items:center;gap:9px}
.c7shade-opacity-controls input[type=range]{flex:1;min-width:80px;max-width:none;width:auto}
.c7shade-opacity-controls input[type=number]{width:68px!important;flex:none}
.c7shade-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 10px}
.c7shade-grid [hidden]{display:none!important}
@media(max-width:1050px){.c7shade-grid{grid-template-columns:repeat(2,minmax(150px,1fr))}}
@media(max-width:620px){.c7shade-grid{grid-template-columns:1fr}.c7shade-opacity{grid-column:1}}
