/* Scoped layout restoration for the AI Video Factory page only. */
body.lsm-wide-factory .wp-site-blocks:has(.avf-shell) > main,
body.lsm-wide-factory .wp-site-blocks:has(.avf-shell) > .wp-block-group,
body.lsm-wide-factory main:has(.avf-shell),
body.lsm-wide-factory .entry-content:has(.avf-shell),
body.lsm-wide-factory .wp-block-post-content:has(.avf-shell){max-width:none!important;width:100%!important}
body.lsm-wide-factory .avf-shell{width:min(100% - 24px,1440px)!important;max-width:1440px!important;margin:24px auto!important;box-sizing:border-box!important}
body.lsm-wide-factory .avf-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.18fr)!important;gap:20px!important}
body.lsm-wide-factory .avf-panel{min-width:0!important;overflow-wrap:anywhere}
body.lsm-wide-factory .avf-shell input,body.lsm-wide-factory .avf-shell textarea,body.lsm-wide-factory .avf-shell select{max-width:100%;box-sizing:border-box}
@media(max-width:850px){body.lsm-wide-factory .avf-grid{grid-template-columns:minmax(0,1fr)!important}body.lsm-wide-factory .avf-shell{width:calc(100% - 16px)!important;padding:16px!important}}
