/* Additive staging-only Studio chrome. The canvas keeps its full dimensions. */
#planer.has-stage-editing{--se-accent:#0071e3;--se-ink:#1d1d1f;--se-muted:#6e6e73;--se-line:rgba(30,40,55,.13)}
#planer.has-stage-editing :is(.se-tools,.se-panel,.se-selection,.se-toast,.se-placebar,.se-handles,.se-preview){font:400 14px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--se-ink);box-sizing:border-box}
#planer.has-stage-editing [hidden]{display:none!important}
#planer.has-stage-editing [class^=se-] button{font:inherit;letter-spacing:normal;text-transform:none;cursor:pointer}
#planer.has-stage-editing :is(.se-tools,.se-panel,.se-selection,.se-toast,.se-placebar,.se-preview) button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px 13px;border:1px solid var(--se-line);border-radius:13px;background:rgba(255,255,255,.68);color:var(--se-ink);box-shadow:none;transform:none;transition:background .16s,border-color .16s,opacity .16s}
#planer.has-stage-editing :is(.se-tools,.se-panel,.se-selection,.se-toast,.se-placebar,.se-preview) button:hover{background:#fff;border-color:rgba(30,40,55,.27);transform:none}
#planer.has-stage-editing :is(.se-tools,.se-panel,.se-selection,.se-toast,.se-placebar,.se-preview) button:active{background:#e9edf2}
#planer.has-stage-editing :is(.se-tools,.se-panel,.se-selection,.se-toast,.se-placebar,.se-preview) button:disabled{opacity:.42;cursor:default}
#planer.has-stage-editing :is(.se-tools,.se-panel,.se-selection,.se-toast,.se-placebar,.se-preview) :focus-visible{outline:3px solid #0071e377;outline-offset:3px}
#planer.has-stage-editing [data-se] svg{width:18px;height:18px;flex:none;pointer-events:none}
#planer.has-stage-editing .se-glass{background:rgba(249,250,252,.87);border:1px solid rgba(255,255,255,.85);box-shadow:0 10px 40px #1d304018,inset 0 0 0 1px #ffffff50;backdrop-filter:blur(28px) saturate(1.3);-webkit-backdrop-filter:blur(28px) saturate(1.3)}
#planer.has-stage-editing .se-tools{position:absolute;z-index:22;top:84px;left:50%;transform:translateX(-50%);display:flex;gap:6px;padding:5px;border-radius:18px;background:rgba(250,251,253,.86);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);box-shadow:0 3px 14px #1020300b}
#planer.has-stage-editing .se-tools button[aria-pressed=true]{background:#e8f2ff;border-color:#0071e355;color:#0067ce}
#planer.has-stage-editing .se-panel{position:absolute;left:94px;top:165px;width:330px;max-height:calc(100% - 300px);z-index:34;display:flex;flex-direction:column;border-radius:24px;overflow:hidden;animation:se-open .2s cubic-bezier(.2,.75,.25,1)}
#planer.has-stage-editing .se-panel header,#planer.has-stage-editing .se-preview header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px;border-bottom:1px solid var(--se-line);flex:none}
#planer.has-stage-editing .se-panel h2,#planer.has-stage-editing .se-preview h2{margin:2px 0 0;font:600 22px/1.2 system-ui;letter-spacing:-.035em}
#planer.has-stage-editing .se-panel small,#planer.has-stage-editing .se-preview small{font-size:12px;color:var(--se-muted)}
#planer.has-stage-editing .se-icon{width:40px;padding:8px!important;flex:none}
#planer.has-stage-editing .se-icon span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#planer.has-stage-editing .se-body{overflow:auto;overscroll-behavior:contain;padding:18px 20px;min-height:0;display:flex;flex-direction:column;gap:14px;scrollbar-width:thin}
#planer.has-stage-editing .se-body p{margin:0;color:var(--se-muted);font-size:13px;line-height:1.55}
#planer.has-stage-editing .se-body h3{font-size:16px;margin:5px 0 0;letter-spacing:-.02em}
#planer.has-stage-editing [data-se-form=height]>.se-field{margin-bottom:12px}
#planer.has-stage-editing .se-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-bottom:12px}
#planer.has-stage-editing .se-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:12px;font-weight:550}
#planer.has-stage-editing .se-field>span{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;border:1px solid #b9bdc6;border-radius:12px;padding:0 12px;background:#fff;min-width:0;margin-top:auto;transition:border-color .15s,box-shadow .15s}
#planer.has-stage-editing .se-field input{font:500 17px/1.2 system-ui!important;min-width:0;width:100%;height:48px;min-height:48px;padding:10px 0!important;border:0!important;box-shadow:none!important;background:transparent!important;color:#1d1d1f;appearance:textfield}
#planer.has-stage-editing .se-field input::-webkit-inner-spin-button{appearance:none}
/* Use the existing accessibility layer: its important rules outrank unlayered CSS.
   Focus stays visible on the complete measurement field, not inside its input. */
@layer poz-button-contract {
#planer#planer#planer.has-stage-editing .se-field input:is(:focus,:focus-visible){outline:none!important;outline-offset:0!important;box-shadow:none!important}
}
#planer.has-stage-editing .se-field>span>span{white-space:nowrap;font:400 13px/1.2 system-ui;color:var(--se-muted);pointer-events:none}
#planer.has-stage-editing .se-field>span:focus-within{border-color:var(--se-accent);box-shadow:0 0 0 1px var(--se-accent);outline:none}
@media(forced-colors:active){#planer.has-stage-editing .se-field>span:focus-within{outline:2px solid Highlight;outline-offset:2px}}
@media(prefers-reduced-motion:reduce){#planer.has-stage-editing .se-field>span{transition:none}}
#planer.has-stage-editing .se-panel footer{padding:14px 16px;border-top:1px solid var(--se-line);flex:none;display:flex;flex-direction:column;gap:10px}
#planer.has-stage-editing .se-panel footer>div:last-child{display:flex;gap:6px;flex-wrap:wrap}
#planer.has-stage-editing .se-preview-status{font-size:13px;line-height:1.4;max-height:100px;overflow:auto}
#planer.has-stage-editing .se-preview-status small{display:block;margin-top:5px}
#planer.has-stage-editing button.se-primary{color:white;background:var(--se-accent);border-color:transparent}
#planer.has-stage-editing button.se-primary:hover{color:white;background:#0077ed;border-color:transparent}
#planer.has-stage-editing .se-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#planer.has-stage-editing .se-scope{border-left:2px solid #0071e366;padding-left:10px;color:#555e6b;font:400 12px/1.5 system-ui}
#planer.has-stage-editing .se-toggle{display:flex;align-items:center;gap:10px;min-height:44px}
#planer.has-stage-editing .se-toggle input{accent-color:var(--se-accent);width:20px;height:20px}
#planer.has-stage-editing .se-selection{position:absolute;bottom:177px;left:50%;transform:translateX(-50%);z-index:33;display:flex;align-items:center;gap:5px;padding:7px;border-radius:19px;max-width:calc(100% - 170px)}
#planer.has-stage-editing .se-selection>span{padding:0 9px;font-size:13px;white-space:nowrap}
#planer.has-stage-editing .se-selection button{padding:8px;min-width:42px}
#planer.has-stage-editing .se-selection button span{font-size:12px}
#planer.has-stage-editing .stage-studio[data-se-open=true] .se-selection{display:none}
#planer.has-stage-editing .se-placement{position:absolute;bottom:160px;left:50%;transform:translateX(-50%);max-width:calc(100% - 180px);padding:4px 12px;border-radius:10px;font:400 12px/1.4 system-ui;color:#465260;background:#ffffffbd;pointer-events:none;text-align:center;z-index:20}
#planer.has-stage-editing .se-handles{position:absolute;display:flex;gap:10px;z-index:38;touch-action:none}
#planer.has-stage-editing .se-handles button{width:46px;height:46px;border-radius:50%;background:#0071e3;color:white;border:3px solid #fff;font:500 23px system-ui;box-shadow:0 3px 18px #003c6e40;touch-action:none;cursor:grab}
#planer.has-stage-editing .se-toast{position:absolute;left:50%;bottom:220px;transform:translateX(-50%);z-index:60;max-width:min(540px,calc(100% - 40px));display:flex;align-items:center;gap:12px;padding:10px 12px 10px 18px;border-radius:18px;font-size:13px;animation:se-open .2s ease-out}
#planer.has-stage-editing .se-issue{border:1px solid #d7dce4;border-radius:16px;background:#ffffff70;padding:14px;display:grid;gap:8px}
#planer.has-stage-editing .se-issue>span{font-size:11px;color:#8c5d13}
#planer.has-stage-editing .se-preview{position:fixed;inset:0;margin:auto;width:min(900px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;border:1px solid #fff9;border-radius:28px;background:rgba(250,251,253,.96);backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);box-shadow:0 30px 100px #15203044;overflow:hidden}
#planer.has-stage-editing .se-preview[open]{display:flex;flex-direction:column;animation:se-open .2s ease-out}
#planer.has-stage-editing .se-preview::backdrop{background:#16243845;backdrop-filter:blur(8px)}
#planer.has-stage-editing .se-preview-body{padding:24px;overflow:auto;min-height:0;overscroll-behavior:contain}
#planer.has-stage-editing .se-preview figure{margin:0 0 20px;min-height:180px;background:#f2f3f6;border-radius:20px;overflow:hidden;display:flex;justify-content:center}
#planer.has-stage-editing .se-preview figure img{width:100%;max-height:340px;object-fit:contain;display:block}
#planer.has-stage-editing .se-preview footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;padding:18px 24px;border-top:1px solid var(--se-line);flex:none}
#planer.has-stage-editing :is(.se-compare-row,.se-compare-head){display:grid;grid-template-columns:1fr 70px 70px;gap:12px;padding:13px 0;border-bottom:1px solid var(--se-line);align-items:center}
#planer.has-stage-editing .se-compare-row small{display:block;margin-top:4px}
#planer.has-stage-editing .se-compare-head{font-size:12px;color:var(--se-muted)}
#planer.has-stage-editing .se-sheet-handle{display:none}
#planer.has-stage-editing .poz-ctx{display:none!important}
#planer[data-experience=guided] :is(.se-tools,.se-panel,.se-selection,.se-placement,.se-handles,.se-toast,.se-placebar){display:none!important}
@keyframes se-open{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}
/* One component rail, one contextual window, one camera strip. */
#planer#planer.has-stage-editing:not([data-experience=guided]){box-sizing:border-box}
#planer.has-stage-editing .se-tools{position:static;inset:auto;transform:none;box-shadow:none;background:none;backdrop-filter:none;display:flex;flex-direction:column;margin-top:6px;padding:6px 0 0;border-top:1px solid #1d304018;border-radius:0;width:100%}
#planer.has-stage-editing .se-tools button{flex-direction:column;min-height:52px;padding:6px 2px;font-size:11px;gap:4px;border:0;background:none;border-radius:12px}
#planer.has-stage-editing .se-tools button[aria-pressed=true]{background:#e5efff;color:#0069d0}
#planer#planer#planer#planer.has-stage-editing .stage-studio.stage-canvas .studio-editbar{display:none!important}
#planer#planer#planer#planer.has-stage-editing .stage-studio.stage-canvas .studio-viewbar .studio-history{position:static;display:flex;align-items:center;gap:2px;border:0;border-left:1px solid #1d30401a;background:none;box-shadow:none;padding:0 0 0 5px;margin:0 0 0 3px;transform:none}
#planer.has-stage-editing .studio-viewbar .studio-reset{display:none!important}
#planer#planer#planer#planer.has-stage-editing .stage-studio.stage-canvas .studio-viewbar .studio-history button{width:38px;height:38px;min-height:38px;padding:8px;border:0;background:none}
#planer.has-stage-editing .studio-preview-caption{display:none!important}
#planer.has-stage-editing .se-review-link{display:flex;gap:6px;align-items:center;border:0;background:none;color:#5b6571;font:500 12px system-ui;min-height:40px;cursor:pointer;margin-left:auto;margin-right:16px;padding:6px}
#planer.has-stage-editing .se-review-link svg{width:16px;height:16px}
#planer.has-stage-editing .se-build-entry{margin-top:16px;padding-top:14px;border-top:1px solid #1d304018}
#planer.has-stage-editing .se-build-entry button{font:500 13px system-ui;color:#0069d0;background:#eaf2fe;border:0;border-radius:12px;padding:12px;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;cursor:pointer}
#planer.has-stage-editing .se-details{border-top:1px solid var(--se-line);padding-top:12px}
#planer.has-stage-editing .se-details summary{cursor:pointer;font-size:13px;font-weight:550;min-height:36px}
#planer.has-stage-editing .se-details>div{display:grid;gap:8px;padding-top:8px}
#planer.has-stage-editing .se-chosen{display:grid;grid-template-columns:10px 1fr;gap:4px 10px;align-items:center}
#planer.has-stage-editing .se-chosen i{width:8px;height:8px;border-radius:50%;background:#0071e3}
#planer.has-stage-editing .se-chosen span{grid-column:2;color:var(--se-muted);font-size:12px}
#planer.has-stage-editing .se-selection{position:absolute;left:50%;top:50%;bottom:auto;transform:none;width:342px;max-width:calc(100% - 108px);display:grid;grid-template-columns:repeat(5,1fr);gap:4px;padding:8px;border-radius:22px;z-index:34;animation:se-context-in .18s cubic-bezier(.2,.75,.25,1)}
#planer.has-stage-editing .se-selection>span{grid-column:1/-1;font-size:12px;font-weight:550;color:#005fbf;padding:2px 6px 5px;white-space:normal}
#planer.has-stage-editing .se-selection button{display:flex;flex-direction:column;gap:5px;min-height:52px;min-width:0;padding:7px 2px;background:transparent;border:0;border-radius:13px}
#planer.has-stage-editing .se-selection button span{font-size:11px}
#planer.has-stage-editing .se-selection [data-se=remove]{color:#a42a2a}
#planer.has-stage-editing .stage-studio[data-se-open=true] .se-selection{display:none}
#planer.has-stage-editing .stage-studio:has(.se-placebar:not([hidden])) .se-selection{display:none}
#planer.has-stage-editing .se-panel{top:96px;left:94px;width:330px;max-height:calc(100% - 216px);z-index:42}
#planer.has-stage-editing .se-panel header{padding:16px 18px}
#planer.has-stage-editing .se-panel h2{font-size:21px}
#planer.has-stage-editing .se-panel header small{display:none}
#planer.has-stage-editing .se-panel footer:empty{display:none}
#planer.has-stage-editing .se-panel footer{padding:12px}
#planer.has-stage-editing .se-panel footer>div:last-child{flex-wrap:nowrap;gap:6px}
#planer.has-stage-editing .se-panel footer button{padding:9px 11px;font-size:12px;min-width:0}
#planer.has-stage-editing .se-panel footer :is([data-se=review],[data-se=apply]) svg{display:none}
#planer.has-stage-editing .se-panel footer [data-se=apply]{margin-left:auto}
#planer.has-stage-editing .se-placebar{position:absolute;left:50%;bottom:120px;transform:translateX(-50%);padding:10px;display:flex;align-items:center;gap:8px;border-radius:20px;z-index:44;max-width:calc(100% - 110px)}
#planer.has-stage-editing .se-placebar>span{padding:0 8px;font-size:13px}
#planer.has-stage-editing .se-placement{left:50%;bottom:120px;max-width:calc(100% - 180px)}
#planer.has-stage-editing .stage-studio:has(.studio-toolpanel:not([hidden])) .se-placement,#planer.has-stage-editing .stage-studio[data-se-open=true] .se-placement,#planer.has-stage-editing .stage-studio[data-se-selected=true] .se-placement{display:none}
#planer.has-stage-editing .se-toast{bottom:120px;pointer-events:none}
#planer.has-stage-editing .se-toast button{pointer-events:auto}
body:has(#planer.has-stage-editing .stage-studio[data-se-open=true]) #studio-guidance{display:none!important}
#planer.has-stage-editing .se-sheet-handle{display:none!important}
#planer#planer#planer#planer.has-stage-editing .stage-studio .canvas-toolrail{top:100px;left:20px;transform:none;max-height:calc(100% - 210px);overflow-y:auto;scrollbar-width:none}
#planer#planer#planer#planer.has-stage-editing .stage-studio .studio-toolpanel{transform:none;translate:none;top:96px;left:94px;right:auto;bottom:auto;width:330px;max-height:calc(100% - 216px)}
#planer#planer#planer#planer.has-stage-editing .stage-studio[data-se-open=true] :is(.studio-toolpanel,.studio-inspector){display:none!important;pointer-events:none!important}
@keyframes se-context-in{from{opacity:0;translate:0 5px;scale:.98}to{opacity:1;translate:0 0;scale:1}}
@media(max-width:700px){
 #planer#planer#planer#planer.has-stage-editing .stage-studio .canvas-toolrail{top:138px;left:10px;width:52px;padding:5px;max-height:calc(100% - 240px)}
 #planer.has-stage-editing .se-tools button{min-height:44px;font-size:9px;gap:3px}
 #planer#planer#planer#planer.has-stage-editing .stage-studio .studio-viewbar{top:78px;left:12px;right:12px;width:auto;max-width:none;transform:none;justify-content:center;gap:2px;padding:4px}
 #planer#planer#planer#planer.has-stage-editing .stage-studio .studio-viewbar button{font-size:11px;padding:6px;min-height:38px}
 #planer.has-stage-editing .studio-viewbar [data-studio=expand]{display:none!important}
 #planer#planer#planer#planer.has-stage-editing .stage-studio .studio-viewbar .studio-history button{width:32px;padding:6px}
 #planer.has-stage-editing .se-selection{position:absolute;top:auto;left:74px;right:10px;bottom:108px;width:auto;max-width:none;padding:6px;border-radius:18px;gap:1px}
 #planer.has-stage-editing .se-selection button{min-height:48px;padding:5px 1px;gap:5px}
 #planer.has-stage-editing .se-selection button span{font-size:9px}
 #planer.has-stage-editing .se-selection>span{font-size:12px;padding:3px 4px 6px}
 #planer.has-stage-editing .se-panel,#planer#planer#planer#planer.has-stage-editing .stage-studio .studio-toolpanel{position:absolute;top:auto;bottom:104px;left:74px;right:10px;width:auto;max-height:min(300px,40%,calc(100% - 300px));border-radius:20px}
 #planer.has-stage-editing .se-panel{max-height:calc(100% - 300px)}
 #planer.has-stage-editing .se-panel header{padding:12px 14px}
 #planer.has-stage-editing .se-panel h2{font-size:18px}
 #planer.has-stage-editing .se-body{padding:14px;gap:12px}
 #planer.has-stage-editing .se-fields{gap:8px}
 #planer.has-stage-editing .se-field{font-size:11px}
 #planer.has-stage-editing .se-field>span{padding:0 10px}
 #planer.has-stage-editing .se-field:has(input[name=copies]){grid-column:1/-1}
 #planer.has-stage-editing .se-panel footer{padding:8px}
 #planer.has-stage-editing .se-panel footer button{font-size:11px;padding:8px}
 #planer.has-stage-editing .se-placebar{left:74px;right:10px;bottom:108px;transform:none;flex-wrap:wrap;max-width:none;padding:8px}
 #planer.has-stage-editing .se-placebar>span{width:100%;font-size:12px}
 #planer.has-stage-editing .se-placebar button{flex:1;font-size:12px;padding:8px}
 #planer.has-stage-editing .se-toast{left:74px;right:10px;transform:none;font-size:12px;bottom:108px;max-width:none;flex-wrap:wrap;padding:10px}
 #planer.has-stage-editing .se-review-link{font-size:11px;margin:0;padding:6px;min-width:36px}
 #planer.has-stage-editing .se-preview{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:23px}
 #planer.has-stage-editing .se-preview-body,#planer.has-stage-editing .se-preview header{padding:16px}
 #planer.has-stage-editing .se-preview h2{font-size:22px}
 #planer.has-stage-editing .se-preview footer{padding:12px;gap:7px}
 #planer.has-stage-editing .se-preview footer button{flex:1;font-size:12px}
}
@media(max-height:600px) and (min-width:701px){
 #planer#planer#planer#planer.has-stage-editing .stage-studio .canvas-toolrail{top:16px;left:12px;width:300px;max-height:56px;padding:5px;display:flex;align-items:center;overflow:visible}
 #planer.has-stage-editing .se-tools{margin:0 0 0 4px;padding:0 0 0 4px;border-top:0;border-left:1px solid #1d304018;width:auto}
 #planer.has-stage-editing .se-tools button{width:42px;height:44px;min-height:44px;font-size:0}
 #planer.has-stage-editing .studio-rail-label,#planer.has-stage-editing .studio-project,#planer.has-stage-editing .studio-save{display:none!important}
 #planer#planer#planer#planer.has-stage-editing .stage-studio .canvas-guide-toggle{position:absolute;margin:0;top:8px;left:304px;right:auto;width:80px;font-size:11px;padding:8px;min-height:44px}
 @layer poz-button-contract{
 #planer#planer#planer#planer#planer.has-stage-editing .stage-canvas .canvas-toolrail :is(.poz-plan__tools,[data-toollist]){flex-direction:row!important;gap:3px!important;width:auto!important}
 #planer#planer#planer#planer#planer.has-stage-editing .stage-canvas .canvas-toolrail [data-tool]{width:44px!important;min-height:44px!important;height:44px!important;font-size:0!important}
 }
 #planer#planer#planer#planer.has-stage-editing .stage-studio .studio-viewbar{top:16px;left:auto;right:12px;transform:none;width:264px;gap:1px;padding:4px}
 #planer#planer#planer#planer.has-stage-editing .stage-studio .studio-viewbar button{font-size:10px;min-height:36px;padding:5px}
 #planer.has-stage-editing .studio-viewbar [data-studio=expand]{display:none!important}
 #planer#planer#planer#planer.has-stage-editing .stage-studio .studio-viewbar .studio-history button{width:30px;min-height:36px;height:36px;padding:6px}
 #planer.has-stage-editing .se-panel,#planer#planer#planer#planer.has-stage-editing .stage-studio :is(.studio-toolpanel,.studio-inspector){position:absolute;top:80px;bottom:12px;left:auto;right:12px;width:330px;max-height:calc(100% - 92px);z-index:45}
 #planer#planer#planer#planer.has-stage-editing .stage-studio:is([data-se-open=true],[data-tools-open=true],[data-panel-visible=true]) .studio-footer{right:356px;width:auto}
 #planer.has-stage-editing .se-panel header{padding:8px 12px}
 #planer.has-stage-editing .se-panel h2{font-size:18px}
 #planer.has-stage-editing .se-panel header button{width:32px;min-height:32px;height:32px}
 #planer.has-stage-editing .se-body{padding:8px 12px;gap:8px}
 #planer.has-stage-editing .se-panel footer{padding:6px 8px;gap:4px}
 #planer.has-stage-editing .se-panel footer button{min-height:32px;padding:5px 8px;font-size:11px}
 #planer.has-stage-editing .se-preview-status{font-size:11px;max-height:28px}
 #planer.has-stage-editing .se-selection{left:12px;top:82px;right:auto;bottom:auto;width:340px;max-width:none;padding:6px;gap:2px}
 #planer.has-stage-editing .se-selection button{min-height:44px;padding:4px 2px;gap:3px}
 #planer.has-stage-editing .se-selection>span{padding:0 4px;font-size:11px}
 #planer.has-stage-editing .se-placebar{left:12px;bottom:94px;right:auto;transform:none;max-width:calc(100% - 370px);flex-wrap:wrap}
 #planer.has-stage-editing .se-placebar>span{width:100%}
 #planer.has-stage-editing .se-review-link{font-size:0;margin:0}
}
@media(prefers-reduced-motion:reduce){#planer.has-stage-editing :is(.se-selection,.se-panel,.se-toast,.se-placebar,.se-preview){animation:none}#planer.has-stage-editing button{transition:none!important}}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){#planer.has-stage-editing .se-glass{background:#f9fafb;backdrop-filter:none;-webkit-backdrop-filter:none;border-color:#b7bdc5}}

#planer.has-stage-editing .se-sr-only{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;overflow:hidden!important;clip-path:inset(50%)}

/* Direct dragging has no easing between the hand and the selected object. */
#planer.has-stage-editing .se-dragging [data-scene],#planer.has-stage-editing .se-dragging canvas{cursor:grabbing!important;touch-action:none}
#planer.has-stage-editing .se-dragging :is(.se-selection,.se-panel,.se-placebar,.se-handles,.se-toast,.se-placement){display:none!important}
#planer.has-stage-editing .se-drag-status{position:absolute;left:50%;top:82px;transform:translateX(-50%);z-index:50;max-width:min(440px,calc(100% - 108px));border-radius:14px;padding:10px 16px;font:500 12px/1.4 system-ui;color:#005fbf;pointer-events:none;text-align:center}
#planer.has-stage-editing .se-drag-status.is-invalid{color:#a1251b;background:#fff1edee}
@media(max-width:700px){#planer.has-stage-editing .se-drag-status{top:128px;left:74px;right:10px;max-width:none;transform:none;padding:8px;font-size:11px}}
@media(max-height:600px) and (min-width:701px){#planer.has-stage-editing .se-drag-status{top:80px;left:12px;max-width:320px;transform:none}}

#planer.has-stage-editing .se-over-selection [data-scene] canvas{cursor:grab!important}
#planer.has-stage-editing .se-over-selection.se-dragging [data-scene] canvas{cursor:grabbing!important}
@media(max-width:700px) and (max-height:650px){
 #planer.has-stage-editing .se-panel header{padding:8px 12px}
 #planer.has-stage-editing .se-panel h2{font-size:16px}
 #planer.has-stage-editing .se-panel header button{width:32px;min-height:32px;height:32px}
 #planer.has-stage-editing .se-body{padding:8px 12px;gap:8px}
 #planer.has-stage-editing .se-panel footer{padding:6px 8px;gap:4px}
 #planer.has-stage-editing .se-panel footer button{min-height:32px;padding:5px 8px;font-size:11px}
 #planer.has-stage-editing .se-preview-status{font-size:11px;max-height:28px}
}

/* Placement, blocked position, and editable object: color plus shape. */
#planer.has-stage-editing[data-se-cursor="place"] [data-scene],#planer.has-stage-editing[data-se-cursor="place"] [data-scene] :is(canvas,svg,svg *){cursor:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2236%22%20height%3D%2236%22%20viewBox%3D%220%200%2036%2036%22%3E%3Cpath%20d%3D%22M4%203l1%2021%205-6%205%208%204-2-5-8%208-1Z%22%20fill%3D%22%230071e3%22%20stroke%3D%22white%22%20stroke-width%3D%221.8%22%20stroke-linejoin%3D%22round%22%2F%3E%3Ccircle%20cx%3D%2225%22%20cy%3D%2225%22%20r%3D%227%22%20fill%3D%22%230071e3%22%20stroke%3D%22white%22%20stroke-width%3D%221.5%22%2F%3E%3Cpath%20d%3D%22M21.5%2025h7M25%2021.5v7%22%20stroke%3D%22white%22%20stroke-width%3D%221.7%22%2F%3E%3C%2Fsvg%3E") 4 3,crosshair!important}
#planer.has-stage-editing[data-se-cursor="blocked"] [data-scene],#planer.has-stage-editing[data-se-cursor="blocked"] [data-scene] :is(canvas,svg,svg *){cursor:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2236%22%20height%3D%2236%22%20viewBox%3D%220%200%2036%2036%22%3E%3Cpath%20d%3D%22M4%203l1%2021%205-6%205%208%204-2-5-8%208-1Z%22%20fill%3D%22%23d45518%22%20stroke%3D%22white%22%20stroke-width%3D%221.8%22%20stroke-linejoin%3D%22round%22%2F%3E%3Ccircle%20cx%3D%2225%22%20cy%3D%2225%22%20r%3D%227%22%20fill%3D%22%23d45518%22%20stroke%3D%22white%22%20stroke-width%3D%221.5%22%2F%3E%3Cpath%20d%3D%22m21%2021%208%208%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%2F%3E%3C%2Fsvg%3E") 4 3,not-allowed!important}
#planer.has-stage-editing[data-se-cursor="edit"] [data-scene],#planer.has-stage-editing[data-se-cursor="edit"] [data-scene] :is(canvas,svg,svg *){cursor:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2244%22%20height%3D%2244%22%20viewBox%3D%220%200%2044%2044%22%3E%3Cpath%20d%3D%22M4%203l1%2025%206-7%206%2010%205-3-6-10%2010-2Z%22%20fill%3D%22%2320242b%22%20stroke%3D%22white%22%20stroke-width%3D%222.2%22%20stroke-linejoin%3D%22round%22%2F%3E%3Crect%20x%3D%2222%22%20y%3D%2222%22%20width%3D%2220%22%20height%3D%2220%22%20rx%3D%227%22%20fill%3D%22%2320242b%22%20stroke%3D%22white%22%20stroke-width%3D%221.5%22%2F%3E%3Cpath%20d%3D%22M30%2027h-3v3m7-3h3v3m0%204v3h-3m-4%200h-3v-3%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E") 4 3,pointer!important}
#planer.has-stage-editing .se-dragging [data-scene],#planer.has-stage-editing .se-dragging [data-scene] :is(canvas,svg,svg *){cursor:grabbing!important}
/* Hover feedback follows the real item's silhouette without intercepting input. */
#planer .se-hover-feedback{position:absolute;inset:0;z-index:2;pointer-events:none!important;overflow:hidden;border-radius:inherit}
#planer .se-hover-feedback[hidden]{display:none!important}
#planer .se-hover-feedback *{pointer-events:none!important}
#planer .se-hover-outline{position:absolute;inset:0;width:100%;height:100%;overflow:hidden}
#planer .se-hover-outline polygon{vector-effect:non-scaling-stroke;stroke-linejoin:round}
#planer .se-hover-underlay{fill:rgba(255,255,255,.14);stroke:rgba(255,255,255,.94);stroke-width:6}
#planer .se-hover-edge{fill:none;stroke:#343942;stroke-width:2.5}
#planer .se-hover-feedback[data-selected="true"] .se-hover-underlay{fill:none}
#planer .se-hover-feedback[data-selected="true"] .se-hover-edge{stroke:#0071e3}
#planer .se-hover-label{position:absolute;left:0;top:0;display:grid;gap:2px;padding:9px 13px;max-width:220px;border:1px solid rgba(255,255,255,.92);border-radius:13px;background:rgba(255,255,255,.92);box-shadow:0 3px 16px #17202b20;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);font:12px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#62666e;white-space:nowrap}
#planer .se-hover-label b{font-size:13px;font-weight:600;color:#20242b}
@media(prefers-reduced-motion:reduce){#planer .se-hover-feedback *{animation:none!important;transition:none!important}}

/* Module formats share one scale, with enough visible area to read narrow decks. */
@layer poz-button-contract{
#planer#planer#planer#planer.has-stage-editing .stage-studio.stage-canvas .studio-toolbody .poz-mod{min-height:78px!important;padding:8px 4px!important;gap:5px!important}
#planer#planer#planer#planer.has-stage-editing .stage-studio.stage-canvas .studio-toolbody .poz-mod svg{width:48px!important;height:44px!important;max-width:100%;flex:none;filter:none}
#planer#planer#planer#planer.has-stage-editing .stage-studio.stage-canvas .studio-toolbody :is(.poz-plan__panelwrap,[data-panel],.poz-plan__chips){background:transparent!important;background-image:none!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
#planer#planer#planer#planer.has-stage-editing .stage-studio.stage-canvas .studio-toolbody :is(.poz-plan__panelwrap,[data-panel],.poz-plan__chips)::before,
#planer#planer#planer#planer.has-stage-editing .stage-studio.stage-canvas .studio-toolbody :is(.poz-plan__panelwrap,[data-panel],.poz-plan__chips)::after{content:none!important;display:none!important}
}

/* Camera controls remain available independently of component settings. */
#planer.has-stage-editing .se-camera{position:absolute;top:70px;left:50%;transform:translateX(-50%);z-index:26;padding:4px;border-radius:14px}
@layer poz-button-contract{
#planer#planer#planer#planer.has-stage-editing .se-camera .poz-tb{position:static!important;inset:auto!important;transform:none!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:2px!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;backdrop-filter:none!important}
#planer#planer#planer#planer.has-stage-editing .se-camera .poz-tb>:not([data-tbmode]):not([data-tbact=zin]):not([data-tbact=zout]){display:none!important}
#planer#planer#planer#planer.has-stage-editing .se-camera button{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;width:46px!important;height:44px!important;min-height:44px!important;gap:3px!important;padding:4px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#535b65!important;box-shadow:none!important;transform:none!important}
#planer#planer#planer#planer.has-stage-editing .se-camera button.is-on{background:#e5efff!important;color:#0069d0!important}
#planer#planer#planer#planer.has-stage-editing .se-camera button:hover{background:#ffffffaa!important}
#planer#planer#planer#planer.has-stage-editing .se-camera button svg{width:21px!important;height:21px!important}
#planer#planer#planer#planer.has-stage-editing .se-camera .poz-tb__lb{display:block!important;font:500 9px/1.2 system-ui!important;white-space:nowrap!important;color:inherit!important}
}
@media(max-width:700px){#planer.has-stage-editing .se-camera{top:130px;left:auto;right:12px;transform:none;padding:3px}}
@media(max-width:360px){@layer poz-button-contract{#planer#planer#planer#planer.has-stage-editing .se-camera button{width:42px!important}}}
@media(max-height:520px) and (orientation:landscape){#planer.has-stage-editing .se-camera{top:66px;left:auto;right:12px;transform:none}#planer.has-stage-editing .se-panel,#planer#planer#planer#planer.has-stage-editing .stage-studio :is(.studio-toolpanel,.studio-inspector){top:124px;max-height:calc(100% - 136px)}}

/* Reserve the camera row when a narrow canvas places it above the editor. */
@media(min-width:701px) and (max-width:1100px) and (min-height:601px){
 #planer.has-stage-editing .se-panel,#planer#planer#planer#planer.has-stage-editing .stage-studio .studio-toolpanel{top:134px;max-height:calc(100% - 254px)}
}

@media(max-width:700px) and (max-height:650px){
 #planer.has-stage-editing .se-panel header{padding:6px 12px}
 #planer.has-stage-editing .se-panel h2{font-size:16px}
 #planer.has-stage-editing .se-body{padding:10px 12px}
 #planer.has-stage-editing .se-body>p:first-child{display:none}
}

/* Dense comparison text needs a quiet surface above the working canvas. */
body:has(#planer.has-stage-editing) dialog.stage-options{background:rgba(255,255,255,.96)}

/* A non-blocking warning beside the attempted action, visible above the glass panels. */
body:has(#planer.has-stage-editing) .se-caution{position:fixed;z-index:100010;box-sizing:border-box;width:min(330px,calc(100vw - 24px));display:flex;gap:12px;padding:16px 18px;border:1px solid #c880284d;border-radius:18px;background:rgba(255,250,241,.98);box-shadow:0 8px 32px #5c390f26,0 1px 3px #5c390f12;color:#382b1d;font:400 13px/1.5 system-ui,-apple-system,sans-serif;pointer-events:none!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
body:has(#planer.has-stage-editing) .se-caution[hidden],body:has(#planer.has-stage-editing) .se-caution-point[hidden]{display:none!important}
body:has(#planer.has-stage-editing) .se-caution>svg{width:22px;height:22px;flex:none;color:#a45c0a}
body:has(#planer.has-stage-editing) .se-caution strong{display:block;font-size:14px;font-weight:600;margin-bottom:5px;color:#70420b}
body:has(#planer.has-stage-editing) .se-caution p{font:inherit;margin:0;overflow-wrap:anywhere}
body:has(#planer.has-stage-editing) .se-caution small{display:block;font-size:11px;color:#77634a;margin-top:8px}
body:has(#planer.has-stage-editing) .se-caution-point{position:fixed;z-index:100009;width:18px;height:18px;transform:translate(-50%,-50%);border:2px solid #bd721c;border-radius:50%;background:#f0aa3033;box-shadow:0 0 0 5px #f0aa3022;pointer-events:none!important}
@media(max-width:700px){body:has(#planer.has-stage-editing) .se-caution{width:min(304px,calc(100vw - 24px));padding:13px 15px;gap:10px;font-size:12px;border-radius:16px}}

/* Keep placement guidance and the reversible success message from stacking. */
#planer.has-stage-editing .stage-studio:has(.se-toast:not([hidden])) .se-placement{visibility:hidden}
/* Short phones must still show an entire focused measurement field. */
@media(max-width:700px) and (max-height:700px){
 #planer.has-stage-editing .se-panel:has(.se-field){max-height:calc(100% - 240px)}
 #planer.has-stage-editing .stage-studio[data-se-open=true]:has(.se-field) .se-camera{top:16px}
 #planer.has-stage-editing .stage-studio[data-se-open=true]:has(.se-field) :is(.studio-project,.canvas-guide-toggle){visibility:hidden}
}
