/* Dedicated editor shell. Customer website styles remain inside the canvas. */
.tool-icon{width:18px;height:18px;flex-shrink:0;vertical-align:middle;pointer-events:none;margin-right:6px}button>.tool-icon{display:inline-block}summary{display:flex!important;align-items:center;gap:8px;list-style:none;padding:12px!important;border:1px solid var(--line);border-radius:8px;background:var(--subtle);font-weight:650;min-height:44px}summary::-webkit-details-marker{display:none}summary:after{content:'＋';margin-left:auto;font-size:20px;color:var(--lime)}details[open]>summary:after{content:'−'}.detail-group>summary:after{margin-left:auto}select{border:1px solid var(--line);border-radius:8px;min-height:44px;padding:8px;max-width:100%}.panel [hidden]{display:none!important}
.tool-rail,.panel-heading{display:none}body[data-view=edit]{height:var(--editor-height,100dvh)!important;min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}body[data-view=edit] .studio-footer{display:none}body[data-view=edit] .header .studio-nav,body[data-view=edit] .header .hire{display:none}body[data-view=edit] .header{min-height:48px;padding:6px 14px;flex-shrink:0}body[data-view=edit] .header .mark{width:32px;height:32px}body[data-view=edit] .header .brand{font-size:11px}body[data-view=edit] .toolbar{flex-direction:row;align-items:center;padding:8px 12px;gap:10px;flex-shrink:0}body[data-view=edit] .actions{flex-wrap:wrap;width:auto;margin-left:auto}body[data-view=edit] .actions button{min-height:36px;font-size:11px;padding:7px 9px}body[data-view=edit] .workspace{display:grid!important;grid-template-columns:82px 310px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;flex:1;min-height:0!important;overflow:hidden!important}body[data-view=edit][data-tools=closed] .workspace{grid-template-columns:82px minmax(0,1fr)!important}body[data-view=edit] .tool-rail{display:flex;flex-direction:column;gap:5px;padding:8px 5px;border-right:1px solid var(--line);background:var(--panel);overflow:auto}body[data-view=edit] .tool-rail button{display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:10px;gap:5px;min-height:60px;border:0;background:transparent;padding:6px 3px}body[data-view=edit] .tool-rail .tool-icon{width:22px;height:22px;margin:0}body[data-view=edit] .tool-rail [aria-pressed=true]{background:var(--subtle);color:var(--lime);box-shadow:inset 3px 0 var(--lime)}body[data-view=edit] .sidebar{width:auto!important;height:auto!important;max-height:none!important;min-height:0;border-right:1px solid var(--line);overflow:hidden!important;display:flex;flex-direction:column}body[data-view=edit][data-tools=closed] .sidebar{display:none!important}body[data-view=edit] .tabs{display:none}body[data-view=edit] .panel-heading{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid var(--line);flex-shrink:0}.panel-heading button{font-size:11px;min-height:36px}body[data-view=edit] .panel{max-height:none!important;min-height:0;flex:1;padding:16px!important;overflow:auto!important}body[data-view=edit] .panel h2{font-size:21px;margin:0 0 10px}body[data-view=edit] .panel .eyebrow{display:none}body[data-view=edit] .canvas-area{height:100%!important;min-height:0!important;padding:12px!important;display:flex;flex-direction:column;overflow:hidden}body[data-view=edit] #editor{height:100%!important;min-height:0!important;flex:1}body[data-view=edit] .canvas-note{display:none}body[data-view=edit] .selection-bar{display:flex;align-items:center;gap:8px;flex-shrink:0}.shell-templates{display:grid;gap:12px;margin-top:14px}.shell-template{border:1px solid var(--line);border-radius:10px;padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.shell-template strong,.shell-template small{grid-column:1/-1}.shell-template small{color:var(--muted)}#panel-text>button,#panel-uploads>button{display:block;width:100%;margin-top:12px;min-height:44px}.design-results{max-height:none;overflow:visible}.design-filters button{min-height:40px}.design-card{min-height:100px}.design-card .tool-icon{display:none}.publish-dialog button,.draft-manager button{min-height:44px}.draft-row{align-items:center}.draft-row small{display:block;color:var(--muted)}
@media(max-width:1000px) and (min-width:761px){body[data-view=edit] .workspace{grid-template-columns:76px 270px minmax(0,1fr)!important}body[data-view=edit][data-tools=closed] .workspace{grid-template-columns:76px minmax(0,1fr)!important}}
@media(max-width:760px){body[data-view=edit] .header{padding:5px 10px;gap:6px}body[data-view=edit] .header .brand small{display:none}body[data-view=edit] .header #studio-help-open{margin-left:auto;font-size:10px}body[data-view=edit] .header .theme-toggle{font-size:10px;padding:5px}body[data-view=edit] .toolbar{padding:6px 8px;gap:5px;flex-wrap:wrap}body[data-view=edit] .project{width:100%;display:flex;align-items:center;gap:8px}body[data-view=edit] .project input{width:50%;min-width:0;padding:6px;font-size:12px}body[data-view=edit] #save-status{font-size:9px}body[data-view=edit] .actions{margin:0;display:flex;flex-wrap:nowrap;overflow-x:auto;width:100%;gap:5px}body[data-view=edit] .actions button{white-space:nowrap;font-size:10px;min-height:34px;padding:5px 7px;flex-shrink:0}body[data-view=edit] .actions #edit-selected{display:none}body[data-view=edit] .actions .tool-icon{width:15px;height:15px;margin-right:3px}body[data-view=edit] .workspace,body[data-view=edit][data-tools=closed] .workspace{display:flex!important;flex-direction:column!important;position:relative;padding-bottom:74px;overflow:hidden!important}body[data-view=edit] .tool-rail{position:absolute;bottom:0;left:0;right:0;height:74px;z-index:12;display:flex;flex-direction:row;overflow-x:auto;border-right:0;border-top:1px solid var(--line);padding:4px;gap:2px;padding-bottom:max(4px,env(safe-area-inset-bottom))}body[data-view=edit] .tool-rail button{min-width:64px;min-height:58px;flex-shrink:0;font-size:10px}body[data-view=edit] .tool-rail [aria-pressed=true]{box-shadow:inset 0 3px var(--lime)}body[data-view=edit][data-tools=open] .sidebar{position:absolute;bottom:74px;left:0;right:0;height:58%!important;max-height:calc(100% - 90px)!important;z-index:10;border:1px solid var(--line);border-radius:16px 16px 0 0;box-shadow:0 -8px 24px #0002;background:var(--panel)}body[data-view=edit] .panel{padding:14px!important;overscroll-behavior:contain}body[data-view=edit] .panel-heading{padding:7px 12px}body[data-view=edit] .canvas-area{flex:1;min-height:0!important;padding:6px!important;width:100%}body[data-view=edit] .canvas-bar{gap:5px;flex-wrap:wrap;font-size:10px;margin-bottom:5px}body[data-view=edit] .canvas-bar #template-label{display:none}body[data-view=edit] .devices button{font-size:10px;padding:5px 7px;min-height:30px}body[data-view=edit] .canvas-view{margin-left:auto}body[data-view=edit] #editor{min-height:0!important;height:100%!important;flex:1}body[data-view=edit] .selection-bar{display:none;gap:4px;padding:5px 0;flex-wrap:nowrap;overflow-x:auto}body[data-view=edit][data-selected=true] .selection-bar{display:flex}body[data-view=edit] .selection-bar>span{display:none}body[data-view=edit] .selection-bar button{white-space:nowrap;font-size:10px;min-height:36px;padding:5px}body[data-view=edit] .selection-bar>div{display:flex;gap:4px}.panel input,.panel textarea,.panel select{font-size:16px}dialog{max-height:85dvh!important;overflow:auto}#panel-text>button{min-height:48px}}

/* Isolated Pulse Hatch editor refinement: panel states are distinct from canvas controls. */
body[data-view=edit] .panel-heading .ph-sheet-toggle{display:none}
body[data-view=edit] .panel-heading{gap:8px}
body[data-view=edit] .panel-heading strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-view=edit] .tool-rail button{transition:background-color .18s ease,color .18s ease,box-shadow .18s ease}
body[data-view=edit] :is(.tool-rail button,.panel-heading button,.library-back):focus-visible{outline:3px solid #6d4aff;outline-offset:2px}
@media(max-width:760px){
 body[data-view=edit] .panel-heading .ph-sheet-toggle{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;min-width:72px;margin-left:auto}
 body[data-view=edit] .panel-heading button{min-height:44px}
 body[data-view=edit][data-tools=open][data-sheet=partial] .sidebar{height:min(55%,460px)!important;max-height:calc(100% - 96px)!important}
 body[data-view=edit][data-tools=open][data-sheet=expanded] .sidebar{height:calc(100% - 86px)!important;max-height:calc(100% - 86px)!important}
 body[data-view=edit] .sidebar{transition:height .19s ease}
 body[data-view=edit] .tool-rail button{min-width:68px;min-height:54px}
 body[data-view=edit] .selection-bar button{min-height:44px;min-width:44px}
 body[data-view=edit] .panel-heading{background:var(--panel);z-index:1}
}
@media (prefers-reduced-motion:reduce){
 body[data-view=edit] .sidebar,body[data-view=edit] .tool-rail button{transition:none!important}
}
