/* twinspirit Content Builder 12: deterministic visibility engine. */

/* Public frontend and Elementor preview: generated empty branches are hidden.
 * Visibility is decided from the saved placeholder slots, not from incidental
 * static text, spacers or decorative widgets. */
body:not(.elementor-editor-active):not(.elementor-editor-page) .elementor-element.twstg-empty-element,
body:not(.elementor-editor-active):not(.elementor-editor-page) .twstg-empty-element {
    display: none !important;
}

/* Elementor editor canvas: keep hidden branches selectable and editable. */
body.elementor-editor-active .twstg-empty-element,
body.elementor-editor-page .twstg-empty-element {
    display: revert !important;
    opacity: .42;
    outline: 1px dashed rgba(59, 130, 246, .75);
    outline-offset: -2px;
    min-height: 32px;
}
