/* C7LGRAD_PATCH_V1 — per-layer overlays do not move or resize existing native layers. */
.chs-scene-active .chs-scene-item.c7layer-shaded,
#chs-canvas .chs-node.c7layer-shaded {--c7l-shade-opacity:0.60;--c7l-shade-blend:multiply;--c7l-shade-bg:#10251b;}
/* Overrides from sanitized inline CSS variables take priority over these fallbacks. */
.chs-scene-active .chs-scene-item.c7layer-shaded::after,
#chs-canvas .chs-node.c7layer-shaded::after {
    content:"";position:absolute;inset:0;width:100%;height:100%;box-sizing:border-box;
    background:var(--c7l-shade-bg)!important;
    opacity:var(--c7l-shade-opacity,0.60)!important;
    mix-blend-mode:var(--c7l-shade-blend,multiply);
    pointer-events:none!important;
    border-radius:inherit;
    z-index:2;
}
/* For text and buttons, tint the frame behind the foreground, not the readable letters. */
.chs-scene-active .chs-scene-item.c7layer-shaded:is(.chs-scene-title,.chs-scene-text,.chs-scene-button,.chs-scene-newsletter)::after,
#chs-canvas .chs-node.c7layer-shaded:is(.chs-node-title,.chs-node-text,.chs-node-button)::after {z-index:0;}
.chs-scene-active .chs-scene-item.c7layer-shaded:is(.chs-scene-title,.chs-scene-text,.chs-scene-button) > :is(h1,h2,h3,h4,p,a),
.chs-scene-active .chs-scene-item.c7layer-shaded.chs-scene-newsletter > .chs-newsletter-hero,
#chs-canvas .chs-node.c7layer-shaded > :not(.chs-handle) {position:relative!important;z-index:1;}
/* Preserve the editor resize handle over any color overlay. */
#chs-canvas .chs-node.c7layer-shaded>.chs-handle {position:absolute;z-index:5!important;}
/* A freely draggable, responsive shade scene layer. It has no visible default solid fill. */
.chs-scene-active .chs-scene-item.chs-scene-gradient,
#chs-canvas .chs-node.c7layer-gradient-node {
    background:transparent!important;border-radius:var(--sc-radius,0px);
}
.chs-scene-active .chs-scene-item.chs-scene-gradient {pointer-events:none!important;mix-blend-mode:var(--c7l-shade-blend,normal)}
.chs-scene-active .chs-scene-item.chs-scene-gradient::after,
#chs-canvas .chs-node.c7layer-gradient-node::after {mix-blend-mode:normal!important;}
#chs-canvas .chs-node.c7layer-gradient-node {cursor:move;}
/* Inspector: independent per-layer section, not a global hero adjustment. */
.chs-selected-group>.c7layer-shade-panel {grid-column:1/-1;padding:12px;margin:7px 0;
  border:1px solid #a1b8a6;border-left:4px solid #476d52;border-radius:8px;
  background:linear-gradient(135deg,#eaf1e9,#fffdf5);box-sizing:border-box;min-width:0;}
.c7layer-shade-panel>legend {font-size:14px;font-weight:700;color:#264533;padding:0 8px}
.c7layer-shade-panel>.description {font-size:12px;line-height:1.45;margin:4px 0 10px}
.c7layer-shade-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.c7layer-shade-grid>label{font-size:12px;font-weight:600;display:flex;flex-direction:column;gap:4px;min-width:0}
.c7layer-shade-grid>label:has(input[type=checkbox]) {grid-column:1/-1;flex-direction:row;align-items:center;gap:8px}
.c7layer-shade-grid input:not([type=checkbox]),.c7layer-shade-grid select{min-width:0;width:100%;max-width:100%;box-sizing:border-box}
.c7layer-shade-grid input[type=color]{height:38px;cursor:pointer}
.c7layer-shade-panel .c7layer-preset{margin-top:10px;white-space:normal;height:auto;min-height:33px}
@media(max-width:700px){.c7layer-shade-grid{grid-template-columns:1fr}}
