/* FIX11HZ72P — shared acceptance sizing. Shell host/iframe ownership stays intact. */
body.hz72p-studio{--studio-max:1380px}
html body.hz72p-studio.hz72p-studio main.hz72p-workspace{box-sizing:border-box;width:auto!important;max-width:var(--studio-max)!important;margin-right:auto!important;margin-left:auto!important;padding:20px!important;min-width:0}
@media(min-width:1001px){html:not([data-guidon-embedded="1"])[data-guidon-shared-shell="1"] body.hz72p-studio.guidon-sidebar-enabled main.hz72p-workspace{margin-left:calc(var(--guidon-sidebar-current,268px) + 20px)!important;margin-right:20px!important}}
.hz72p-workspace :is(input,select,textarea){max-width:100%;min-width:0;box-sizing:border-box}
.hz72p-workspace :is(.program-panel,.menu-build-main,.communications-panel,.campaign-card){min-width:0}
/* Program and menu share a compact document workspace; Venue retains the full canvas. */
.hz72p-workspace .program-workspace{grid-template-columns:minmax(230px,.75fr) minmax(0,1.75fr)!important;gap:20px}
.hz72p-workspace .program-status-grid{display:flex!important;flex-wrap:wrap;gap:10px}
.hz72p-workspace .program-status-card{min-width:150px;padding:10px 14px}
.hz72p-workspace .program-publish-panel{width:min(100%,850px);box-sizing:border-box;grid-template-columns:minmax(0,1fr) 150px!important;gap:18px;padding:16px}
.hz72p-workspace .program-public-url-row{display:flex;flex-wrap:wrap;gap:8px}
.hz72p-workspace .program-public-url-row input{flex:1 1 100%;width:100%}
.hz72p-workspace .program-qr-canvas :is(img,canvas){max-width:130px;height:auto}
.hz72p-workspace .menu-build-grid{grid-template-columns:minmax(0,1fr) minmax(280px,350px);gap:16px}
.hz72p-workspace .menu-editor-card{grid-template-columns:18px 26px minmax(130px,.8fr) minmax(150px,1.5fr) auto;gap:8px;padding:12px}
.hz72p-workspace .menu-guidance-rail{grid-template-columns:1fr}
.hz72p-workspace .menu-guide-card.preview p{font-size:.9rem;font-weight:400;white-space:pre-wrap;overflow-wrap:anywhere}
.hz72p-workspace .menu-savebar{gap:12px;flex-wrap:wrap}.hz72p-workspace .menu-savebar>div{flex-wrap:wrap}
.hz72p-workspace .communications-grid{grid-template-columns:minmax(0,1fr) minmax(340px,.9fr)!important;gap:20px;align-items:start}
.communications-review-column{position:sticky;top:20px;display:grid;gap:12px;min-width:0;max-height:calc(100dvh - 40px);overflow:auto}
.communications-review-column .email-live-preview{margin:0}
.communications-review-column .communications-panel{position:static!important;max-height:none!important}
.hz72p-workspace .locked-content{padding:12px;font-size:.88rem}
.hz72p-workspace .recipient-table-wrap{max-height:250px;overflow:auto}
/* Card controls → scaled design → inspector, with no fourth grid child. */
body.hz72p-cards{--studio-max:1700px}
.hz72p-workspace .pc-grid,body.pc-inspector-collapsed .hz72p-workspace .pc-grid{grid-template-columns:240px minmax(0,1fr) 260px!important;gap:12px}
.hz72p-workspace .pc-grid>.pc-panel{grid-column:auto!important;top:20px;max-height:calc(100dvh - 40px)}
.hz72p-workspace .pc-stage{position:sticky;top:20px;min-height:0;max-height:none;overflow:visible;padding:14px;min-width:0}
.hz72p-workspace .pc-proof{position:relative;display:block;min-height:0;overflow:hidden;width:100%}
.hz72p-workspace .pc-preview-toolbar{flex-wrap:wrap;font-size:.8rem}.hz72p-workspace .pc-print-note{max-width:30ch}
.hz72p-workspace .pc-meal-library{grid-column:auto!important;box-shadow:none;padding:8px;margin-top:10px;min-width:0}
.hz72p-workspace .pc-meal-library h3{display:none}.hz72p-workspace .pc-meal-library summary{font-size:.82rem;font-weight:700;cursor:pointer}
.hz72p-workspace .pc-meal-row{display:grid!important;grid-template-columns:1fr!important;gap:6px;min-width:0}
.hz72p-workspace .pc-meal-library :is(input,select,button){width:100%;min-width:0;max-width:100%;box-sizing:border-box}
/* Venue: document scrolls; expanding tools increase its height. Canvas panning chains to page. */
body.hz72p-venue:not(.guidon-workspace-host){height:auto!important;min-height:100dvh;overflow-y:auto!important;overflow-x:clip}
html body.hz72p-venue.hz72p-studio main.hz72p-workspace{max-width:none!important;height:auto!important;overflow:visible!important}
.hz72p-workspace .venue-studio-grid{grid-template-columns:220px minmax(0,1fr) 240px!important;align-items:start;overflow:visible}
.hz72p-workspace .venue-tool-panel{position:static!important;max-height:none!important;height:auto!important;overflow:visible!important;overscroll-behavior:auto!important}
.hz72p-workspace .venue-canvas-panel{min-width:0;overflow:visible}.hz72p-workspace .venue-canvas-stage{height:65dvh!important;min-height:320px!important;max-height:750px!important;overflow:auto!important;overscroll-behavior:auto!important;touch-action:pan-x pan-y}
@media(max-width:1150px){.hz72p-workspace .pc-grid,body.pc-inspector-collapsed .hz72p-workspace .pc-grid{grid-template-columns:200px minmax(0,1fr) 220px!important}.hz72p-workspace .menu-editor-card{grid-template-columns:20px 28px minmax(0,1fr) auto}.hz72p-workspace .menu-desc-field{grid-column:3/-1}}
@media(max-width:1000px){html body.hz72p-studio.hz72p-studio main.hz72p-workspace{padding:14px!important}.hz72p-workspace .communications-grid,.hz72p-workspace .menu-build-grid,.hz72p-workspace .venue-studio-grid{grid-template-columns:1fr!important}.communications-review-column{position:static;max-height:none;overflow:visible}.hz72p-workspace .venue-canvas-panel{grid-row:1}.hz72p-workspace .pc-grid,body.pc-inspector-collapsed .hz72p-workspace .pc-grid{grid-template-columns:1fr!important}.hz72p-workspace .pc-grid>.pc-panel,.hz72p-workspace .pc-stage{position:static;max-height:none;overflow:visible}.hz72p-workspace .pc-stage{grid-row:1}}
@media(max-width:650px){.hz72p-workspace .program-workspace,.hz72p-workspace .program-publish-panel{grid-template-columns:1fr!important}.hz72p-workspace .menu-editor-card{grid-template-columns:24px minmax(0,1fr)}.hz72p-workspace .menu-editor-card>label,.hz72p-workspace .menu-desc-field{grid-column:2}.hz72p-workspace .menu-remove{grid-column:2}.hz72p-workspace .menu-header-fields{grid-template-columns:1fr}.hz72p-workspace .program-hero{flex-wrap:wrap}.hz72p-workspace .program-actions{flex-wrap:wrap}}

/* Structured SOE: focused inputs alongside the output; full document is a review disclosure. */
.hz72p-workspace .soe-grid{display:flex!important;flex-direction:column;gap:16px}
.hz72p-workspace .soe-grid>*{width:100%;min-width:0;box-sizing:border-box}
.hz72p-workspace .soe-support-details{order:3;position:static;max-height:none}
.hz72p-workspace .soe-script-panel{order:1}.hz72p-workspace .soe-preview{order:2;position:static;max-height:none}
.hz72p-workspace #soeBlocks{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;max-height:none;overflow:visible}
.soe-event-inputs{display:grid;gap:20px;min-width:0}.soe-event-inputs section{border-top:1px solid #dce4ec;padding-top:12px}
.soe-event-inputs label{display:grid;gap:6px;font-weight:650}.soe-event-inputs :is(textarea,input){width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:8px;font:inherit}.soe-event-inputs textarea{resize:vertical;line-height:1.45;min-height:90px}
.soe-event-variables,.soe-custom-block{display:grid;gap:10px}.soe-custom-block{margin-block:16px}.soe-reset{justify-self:start}
.soe-event-review{position:sticky;top:20px;align-self:start;min-width:0}.soe-event-paper{background:#fff;border:1px solid #dce4ec;border-radius:10px;padding:20px;line-height:1.6;max-height:70dvh;overflow:auto;overflow-wrap:anywhere;font-family:Georgia,serif}.soe-event-paper .cue{color:#475569}.soe-event-paper .music{font-weight:bold}.soe-event-paper .heading{font-weight:bold}
@media(max-width:850px){.hz72p-workspace #soeBlocks{grid-template-columns:1fr}.soe-event-review{position:static}.soe-event-paper{max-height:none}.hz72p-workspace .soe-editor-head{display:block}.hz72p-workspace .soe-editor-head select{width:100%}}

/* Override embedded-shell scrolling only for the full-height Venue document. */
html[data-guidon-embedded="1"] body.hz72p-venue{height:auto!important;overflow-y:auto!important;overflow-x:clip!important}
html[data-guidon-embedded="1"] body.hz72p-venue main.hz72p-workspace{height:auto!important;overflow:visible!important;overscroll-behavior:auto!important}
.hz72p-workspace .venue-table-rules,.hz72p-workspace .venue-color-legend{max-height:none;overflow:visible}
.hz72p-workspace .pc-meal-library h2{display:none}
