/* Electrical Studio — a canvas, two contextual rails, and a quiet product shell. */
.sp-subpage .ep-page{--ep-navy:#090044;--ep-blue:#185bff;--ep-ink:#17243b;--ep-muted:#5b677a;--ep-line:#e1e5eb;background:#fff;color:var(--ep-ink);font:14px/1.5 Inter,Arial,sans-serif}
.sp-subpage .ep-page *{box-sizing:border-box}
.sp-subpage .ep-page [hidden]{display:none!important}
.ep-page ::selection{background:#dce7ff;color:#090044}
.ep-page :is(input,textarea){caret-color:#185bff}
.ep-page :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid #185bff;outline-offset:3px}
.ep-page :is(input,textarea)::placeholder{color:#667184;opacity:1}
.sp-subpage .ep-sr-only,.sp-subpage .ep-stage-help{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.sp-subpage .ep-wrap{width:min(96%,1664px);margin:auto;padding-bottom:48px}
.sp-subpage .ep-breadcrumb{display:flex;gap:8px;align-items:center;padding:24px 0 14px;font-size:12px;color:var(--ep-muted)}
.ep-breadcrumb a{color:var(--ep-muted);text-decoration:none}.ep-breadcrumb a:hover{color:var(--ep-blue)}
.sp-subpage .ep-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:12px 0 20px;background:none;color:var(--ep-ink)}
.sp-subpage .ep-intro h2{margin:0 0 3px;color:var(--ep-navy);font-size:24px;font-weight:600;letter-spacing:-.03em;line-height:1.3}
.sp-subpage .ep-intro p{margin:0;color:var(--ep-muted);font-size:13px}
.sp-subpage .ep-intro-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.sp-subpage :is(.ep-button,.ep-inline-button,.ep-delete,.ep-library-reset,.ep-project-file>summary){display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:38px;border:1px solid #d2d8e0;border-radius:6px;padding:8px 12px;background:#fff;color:#34435a;font:500 12px/1.35 Inter,Arial,sans-serif;cursor:pointer;transition:background-color 150ms ease-out,border-color 150ms ease-out,color 150ms ease-out}
.sp-subpage .ep-button-primary,.sp-subpage .ep-inline-button{border-color:#185bff;background:#185bff;color:#fff}
.sp-subpage .ep-inline-button{width:100%;margin:8px 0 0}
.sp-subpage :is(.ep-button-primary,.ep-inline-button):hover{background:#104cde;border-color:#104cde}
.sp-subpage :is(.ep-button-outline,.ep-inline-button-secondary,.ep-library-reset,.ep-project-file>summary):hover{background:#f1f4f8;border-color:#a7b3c3}
.sp-subpage .ep-inline-button-secondary{background:#fff;color:#34435a;border-color:#d2d8e0}
.sp-subpage button:disabled{opacity:.42;cursor:not-allowed}
.sp-subpage .ep-delete{width:100%;margin-top:16px;color:#a72b3e}.sp-subpage .ep-delete:hover{background:#fff3f4;border-color:#e2a2ad}
.sp-subpage .ep-project-file{position:relative;z-index:20}.sp-subpage .ep-project-file>summary{list-style:none}.ep-project-file>summary::-webkit-details-marker{display:none}
.sp-subpage .ep-project-file-menu{position:absolute;right:0;top:calc(100% + 8px);width:min(300px,88vw);display:grid;gap:10px;padding:16px;background:#fff;border:1px solid #d9dfe8;border-radius:8px;box-shadow:0 12px 30px #17243b1a}
.sp-subpage .ep-project-file-menu p{font-size:12px;line-height:1.6;color:var(--ep-muted)}
.ep-project-file-menu .ep-button{width:100%}.ep-load-label,.ep-focus-open{position:relative;overflow:hidden}
.ep-load-label input,.ep-focus-open input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.sp-subpage .ep-open-card{display:flex;justify-content:space-between;align-items:center;gap:24px;border-top:1px solid var(--ep-line);padding:14px 0;margin:0;background:#fff}
.sp-subpage .ep-open-copy{display:flex;gap:16px;align-items:center;flex:none}.sp-subpage .ep-open-copy h2{margin:0;font-size:13px;font-weight:600;color:#34435a}
.sp-subpage .ep-open-copy .ep-open-privacy{margin:0;color:#657083;font-size:12px}
.sp-subpage .ep-open-upload{display:flex;align-items:center;gap:16px;min-width:0}
.sp-subpage .ep-open-drop{position:relative;display:flex;gap:9px;align-items:center;padding:8px 12px;border:1px solid #d2d8e0;border-radius:6px;background:#fff;cursor:pointer;color:#34435a}
.sp-subpage .ep-open-drop:hover,.sp-subpage .ep-open-drop.is-dragging{background:#eef3ff;border-color:#185bff}.ep-open-drop:focus-within{outline:2px solid #185bff;outline-offset:3px}
.sp-subpage .ep-open-icon{width:18px;height:18px;display:block;color:#185bff}.ep-open-icon svg{width:100%;height:100%}
.sp-subpage .ep-open-drop strong{font-size:12px;font-weight:600}.sp-subpage .ep-open-drop small{display:none}
.ep-open-drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.sp-subpage .ep-open-status{margin:0;color:#657083;font-size:12px;max-width:42ch}
/* Unified shell. Its separators indicate regions; the canvas is the dominant surface. */
.sp-subpage .ep-workbench{display:grid;grid-template-columns:56px 238px minmax(0,1fr) 264px;height:780px;max-height:88svh;min-height:560px;gap:0;border:1px solid #d8dde5;border-radius:10px;overflow:hidden;position:relative;background:#f4f5f7}
.sp-subpage :is(.ep-library,.ep-properties){min-width:0;min-height:0;overflow:auto;background:#fff;scrollbar-width:thin;scrollbar-color:#c9d0db transparent}
.sp-subpage .ep-library{border-right:1px solid var(--ep-line)}.sp-subpage .ep-properties{border-left:1px solid var(--ep-line)}
.sp-subpage .ep-tool-rail{background:#f8f9fb;border-right:1px solid var(--ep-line);padding:14px 6px}
.sp-subpage .ep-mode-row{display:flex;flex-direction:column;gap:9px}
.sp-subpage .ep-mode{display:grid;justify-items:center;align-content:center;gap:3px;width:42px;min-height:52px;padding:5px 2px;border:0;border-radius:6px;background:transparent;color:#5d687a;font:500 10px/1.2 Inter,Arial,sans-serif;cursor:pointer}
.ep-mode svg{width:19px;height:19px}.sp-subpage .ep-mode:hover{background:#eef1f6;color:#253752}.sp-subpage .ep-mode[aria-pressed=true]{background:#e8efff;color:#185bff}
.sp-subpage .ep-rail-actions{display:grid;justify-items:center;gap:9px;margin-top:10px;padding-top:12px;border-top:1px solid #dce2ea}
.sp-subpage .ep-rail-action span{text-align:center;line-height:1.15}
.sp-subpage .ep-rail-heading{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:3;background:#fff;padding:18px 16px 12px}
.sp-subpage .ep-rail-heading h2{margin:0;font-size:13px;font-weight:600;color:#26344b;letter-spacing:-.01em}
.sp-subpage .ep-panel-close{display:none;width:32px;height:32px;padding:6px;background:#fff;border:0;border-radius:5px;color:#5b677a;cursor:pointer}.ep-panel-close svg{width:100%;height:100%}
.sp-subpage .ep-library-tabs{display:flex;padding:0 16px;border-bottom:1px solid var(--ep-line);gap:17px}
.sp-subpage .ep-library-tabs button{position:relative;background:none;border:0;border-bottom:2px solid transparent;padding:8px 0 10px;color:#667184;font:500 12px Inter,Arial,sans-serif;cursor:pointer}
.sp-subpage .ep-library-tabs button[aria-selected=true]{color:#185bff;border-color:#185bff}
.sp-subpage .ep-library-panel{padding:16px 12px}.sp-subpage #ep-library-devices{padding:16px}
.sp-subpage .ep-library-search{display:flex;align-items:center;gap:8px;border:1px solid #d8dfe8;border-radius:6px;padding:0 9px;background:#f9fafc}
.ep-library-search svg{width:15px;height:15px;flex:none;color:#667184}.sp-subpage .ep-library-search input{border:0;min-width:0;width:100%;height:36px;padding:0;background:transparent;color:#27364f;font:12px Inter,Arial,sans-serif;outline-offset:5px}
.sp-subpage .ep-library-categories{display:flex;gap:5px;flex-wrap:wrap;margin:12px 0 17px}
.sp-subpage .ep-library-categories button{border:0;border-radius:5px;background:transparent;padding:5px 7px;color:#667184;font:500 11px Inter,Arial,sans-serif;cursor:pointer}
.sp-subpage .ep-library-categories button[aria-pressed=true]{background:#eaf0ff;color:#185bff}.sp-subpage .ep-library-categories button:hover{background:#f1f4f8}
.sp-subpage .ep-palette{display:grid;grid-template-columns:1fr;gap:3px}
.sp-subpage .ep-palette button{display:flex;align-items:center;gap:11px;width:100%;min-height:48px;padding:9px;border:1px solid transparent;border-radius:6px;background:#fff;color:#34435a;text-align:left;font:500 12px/1.35 Inter,Arial,sans-serif;cursor:pointer}
.sp-subpage .ep-palette button:hover{background:#f5f7fa}.sp-subpage .ep-palette button[aria-pressed=true]{background:#edf3ff;border-color:#c3d5ff;color:#185bff}
.sp-subpage .ep-palette-icon{display:grid;place-items:center;width:28px;height:28px;flex:none;color:#4b5a70}.ep-palette-icon svg{width:23px;height:23px}.ep-palette button[aria-pressed=true] .ep-palette-icon{color:#185bff}
.sp-subpage .ep-library-tip{margin:24px 0 0;padding-top:16px;border-top:1px solid var(--ep-line);font-size:11px;line-height:1.7;color:#657083}
.sp-subpage .ep-appliance-choice{margin:9px 0}.sp-subpage .ep-library-reset{width:100%;margin-top:14px}
.sp-subpage .ep-rail-disclosure{border-bottom:1px solid #e7ebf0}.sp-subpage .ep-rail-disclosure>summary,.sp-subpage .ep-inspector-disclosure>summary{position:relative;list-style:none;padding:14px 2px;color:#35435a;font-size:12px;font-weight:500;cursor:pointer}
:is(.ep-rail-disclosure,.ep-inspector-disclosure)>summary::-webkit-details-marker{display:none}
:is(.ep-rail-disclosure,.ep-inspector-disclosure)>summary::after{content:"";position:absolute;right:5px;top:19px;width:6px;height:6px;border-right:1.5px solid #78859a;border-bottom:1.5px solid #78859a;transform:rotate(45deg)}
:is(.ep-rail-disclosure,.ep-inspector-disclosure)[open]>summary::after{transform:rotate(225deg);top:23px}
.sp-subpage .ep-control-section{padding:6px 2px 18px}.sp-subpage .ep-rail-disclosure .ep-control-section>h3{display:none}
.sp-subpage .ep-control-section h3{font-size:12px;margin:20px 0 12px;color:#34435a}.sp-subpage .ep-background-controls h4{font-size:12px;margin:24px 0 9px}
.sp-subpage .ep-field{display:grid;gap:5px;min-width:0;margin:0 0 13px;color:#536178;font-size:11px;font-weight:500;line-height:1.4}
.sp-subpage .ep-field small{font:inherit;color:#657083}.sp-subpage .ep-field :is(input,select,textarea),.sp-subpage .ep-zoom select{width:100%;min-width:0;min-height:36px;border:1px solid #d3dae4;border-radius:5px;background:#fff;padding:8px;color:#25344c;font:12px/1.35 Inter,Arial,sans-serif;font-variant-numeric:tabular-nums}
.sp-subpage .ep-field :is(input,select,textarea):hover{border-color:#9eacc2}.sp-subpage .ep-field textarea{resize:vertical;min-height:64px}
.sp-subpage .ep-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sp-subpage .ep-check{display:flex;align-items:center;gap:8px;font-size:11px;color:#536178;line-height:1.5}.ep-check input{flex:none;width:14px;height:14px;accent-color:#185bff}
.sp-subpage .ep-hint{font-size:11px;line-height:1.65;color:#657083;margin:10px 0 14px}.sp-subpage .ep-background-preview{display:block;width:100%;max-height:130px;object-fit:contain;border:1px solid var(--ep-line);margin:12px 0}.ep-background-toggles,.ep-layer-list{display:grid;gap:9px;margin:12px 0}.ep-background-actions{display:grid;gap:4px}
.sp-subpage .ep-properties .ep-control-section{padding:10px 18px 22px}.sp-subpage .ep-inspector>h3{display:none}.sp-subpage .ep-inspector-type{margin:0 0 18px;font-size:12px;font-weight:600;color:#26344b}
.sp-subpage .ep-inspector-disclosure{margin-bottom:14px;border-bottom:1px solid var(--ep-line)}.sp-subpage .ep-inspector-disclosure>summary{padding-top:10px;padding-bottom:12px}.sp-subpage .ep-inspector-disclosure>summary::after{top:14px}.sp-subpage .ep-inspector-disclosure[open]>summary::after{top:17px}
/* One project row; drawing controls float over the canvas. */
.sp-subpage .ep-content{min-width:0;min-height:0;display:block}
.sp-subpage .ep-plan-card{position:relative;height:100%;min-height:0;display:flex;flex-direction:column;background:#f3f5f7;overflow:hidden;border:0;border-radius:0;box-shadow:none}
.sp-subpage .ep-plan-card> :not(.ep-stage-scroll,.ep-panel-view,.ep-3d-view){flex-shrink:0}
.sp-subpage .ep-plan-head{display:flex;align-items:center;justify-content:space-between;gap:12px;height:50px;min-height:50px;padding:5px 12px;background:#fff;border-bottom:1px solid var(--ep-line)}
.sp-subpage .ep-project-identity{display:flex;align-items:center;min-width:0;flex:1}
.sp-subpage .ep-project-identity .ep-project-file{min-width:0;max-width:280px;width:100%}
.sp-subpage .ep-project-identity .ep-project-file>summary{justify-content:space-between;width:100%;min-width:0;font:600 13px/1.3 Inter,Arial,sans-serif;letter-spacing:-.01em}
.sp-subpage #ep-plan-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sp-subpage #ep-plan-meta,.sp-subpage #ep-scale-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sp-subpage .ep-header-actions,.sp-subpage .ep-level-controls{display:flex;align-items:center;gap:5px;flex:none;min-width:0}
.sp-subpage .ep-header-history{gap:2px;flex:none;padding-right:6px;margin-right:2px;border-right:1px solid #dce3ec}
.sp-subpage .ep-level-picker select{width:clamp(92px,11vw,148px);min-height:36px;padding:5px 23px 5px 9px;border:1px solid #d5deea;border-radius:7px;background:#fff;color:#2d4058;font:500 12px/1.3 Inter,Arial,sans-serif;overflow:hidden;text-overflow:ellipsis}
.sp-subpage .ep-level-menu,.sp-subpage .ep-project-file{position:relative;z-index:31}
.sp-subpage :is(.ep-level-menu,.ep-project-file)>summary{display:flex;align-items:center;justify-content:center;min-height:36px;list-style:none;border:1px solid #d5deea;border-radius:7px;background:#fff;color:#344b67;cursor:pointer;font:600 12px/1 Inter,Arial,sans-serif}
.sp-subpage :is(.ep-level-menu,.ep-project-file)>summary::-webkit-details-marker{display:none}
.sp-subpage .ep-level-menu>summary{width:36px;padding:6px}
.sp-subpage .ep-level-menu>summary svg{width:19px;height:19px}
.sp-subpage .ep-project-file>summary{min-width:75px;padding:7px 10px;gap:5px}
.sp-subpage :is(.ep-level-menu,.ep-project-file)>summary:hover{background:#f1f5fb;border-color:#b8c8dd}
.sp-subpage :is(.ep-level-menu,.ep-project-file)>summary:focus-visible{outline:2px solid #185bff;outline-offset:2px}
.sp-subpage .ep-level-menu-body,.sp-subpage .ep-project-file-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:36;width:min(270px,calc(100vw - 28px));display:grid;gap:2px;padding:8px;border:1px solid #d6dfeb;border-radius:10px;background:#fff;box-shadow:0 14px 30px #1b355425}
.sp-subpage .ep-level-menu-body{width:min(220px,calc(100vw - 28px));gap:8px;padding:12px}
.sp-subpage .ep-level-menu-body .ep-field{margin:0}
.sp-subpage .ep-level-menu-body button{min-height:36px;margin:0;text-align:left}
.sp-subpage .ep-project-file-menu :is(button,label){display:flex;align-items:center;width:100%;min-height:40px;padding:8px 10px;border:0;border-radius:6px;background:#fff;color:#2b405b;text-align:left;font:500 12px/1.35 Inter,Arial,sans-serif;cursor:pointer;white-space:normal}
.sp-subpage .ep-project-file-menu :is(button,label):hover{background:#edf3ff;color:#174bb1}
.sp-subpage .ep-project-file-menu .ep-open-drop{gap:9px;position:relative}
.sp-subpage .ep-project-file-menu .ep-open-drop svg{width:18px;height:18px;flex:none}
.sp-subpage .ep-project-file-menu p{margin:5px 8px 3px;color:#65758c;font-size:12px;line-height:1.45}
.sp-subpage .ep-project-identity .ep-project-file-menu{left:0;right:auto}
.sp-subpage .ep-connected-toolbar{position:absolute;top:60px;left:12px;right:12px;z-index:22;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-height:0;padding:0;border:0;background:transparent;pointer-events:none}
.sp-subpage .ep-canvas-control-cluster{display:flex;align-items:center;max-width:calc(100% - 92px);min-height:42px;padding:3px;border:1px solid #d7e0ea;border-radius:11px;background:#fff;box-shadow:0 5px 16px #253d5b1c;overflow-x:auto;scrollbar-width:thin;pointer-events:auto}
.sp-subpage .ep-canvas-actions,.sp-subpage .ep-canvas-button-group,.sp-subpage .ep-view-tabs,.sp-subpage .ep-narrow-panels{display:flex;align-items:center;gap:2px;flex:none}
.sp-subpage .ep-canvas-actions{gap:3px}
.sp-subpage .ep-view-tabs{padding-right:5px;margin-right:3px;border-right:1px solid #dce3ec}
.sp-subpage .ep-view-tabs button,.sp-subpage .ep-canvas-button-group button,.sp-subpage .ep-narrow-panels button{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;padding:5px 7px;border:0;border-radius:6px;background:transparent;color:#435873;font:600 11px/1 Inter,Arial,sans-serif;white-space:nowrap;cursor:pointer}
.sp-subpage .ep-view-tabs button[aria-pressed=true]{background:#185bff;color:#fff}
.sp-subpage .ep-canvas-button-group button:hover,.sp-subpage .ep-view-tabs button:hover:not([aria-pressed=true]){background:#edf3ff;color:#185bff}
.sp-subpage .ep-canvas-button-group button:disabled{opacity:.38;cursor:default}
.sp-subpage .ep-canvas-button-group button svg{width:17px;height:17px}
.sp-subpage .ep-zoom{display:flex;align-items:center}.sp-subpage .ep-zoom label{display:none}
.sp-subpage .ep-zoom select{width:67px;min-height:34px;padding:4px 17px 4px 7px;border:0;border-radius:6px;background:#fff;color:#2e4663;font:500 11px/1 Inter,Arial,sans-serif}
.sp-subpage .ep-narrow-panels{display:none}
.sp-subpage .ep-canvas-more{position:relative;display:none;flex:none}
.sp-subpage .ep-canvas-more>summary{display:flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;list-style:none;border:0;border-radius:6px;background:transparent;color:#435873;font:700 18px/1 Inter,Arial,sans-serif;cursor:pointer}
.sp-subpage .ep-canvas-more>summary::-webkit-details-marker{display:none}
.sp-subpage .ep-canvas-more>summary:hover,.sp-subpage .ep-canvas-more>summary:focus-visible{background:#edf3ff;color:#185bff}
.sp-subpage .ep-canvas-more:not([open]) .ep-narrow-panels{display:none!important}
.sp-subpage .ep-overlay-menu{position:relative;flex:none;pointer-events:auto}
.sp-subpage .ep-overlay-menu>summary{display:flex;align-items:center;justify-content:center;min-width:75px;min-height:42px;padding:7px 10px;list-style:none;border:1px solid #d7e0ea;border-radius:9px;background:#fff;box-shadow:0 5px 16px #253d5b1c;color:#34506c;font:600 11px/1 Inter,Arial,sans-serif;cursor:pointer;white-space:nowrap}
.sp-subpage .ep-overlay-menu>summary::-webkit-details-marker{display:none}
.sp-subpage .ep-overlay-tabs{position:absolute;top:calc(100% + 6px);right:0;z-index:30;display:grid;gap:2px;min-width:140px;padding:5px;border:1px solid #d9e2ed;border-radius:9px;background:#fff;box-shadow:0 12px 28px #253d5b24}
/* Open canvas menus sit above the contextual palettes they control. */
.sp-subpage .ep-connected-toolbar:has(.ep-overlay-menu[open],.ep-canvas-more[open]){z-index:30}
.sp-subpage .ep-overlay-tabs button{min-height:34px;padding:6px 10px;border:0;border-radius:5px;background:#fff;text-align:left;color:#34506c;font:500 11px/1.3 Inter,Arial,sans-serif;cursor:pointer}
.sp-subpage .ep-overlay-tabs button[aria-pressed=true],.sp-subpage .ep-overlay-tabs button:hover{background:#edf3ff;color:#185bff}
.sp-subpage .ep-stage-toolbar{position:absolute;top:111px;left:12px;z-index:20;display:flex;align-items:center;gap:8px;max-width:min(470px,calc(100% - 24px));padding:7px 10px;border:1px solid #dbe3ec;border-radius:8px;background:#fff;color:#486079;box-shadow:0 4px 12px #1d345018;font-size:11px;line-height:1.4;pointer-events:none}
.sp-subpage .ep-stage-toolbar #ep-coordinate-readout{white-space:nowrap;font-variant-numeric:tabular-nums;color:#60748b;font-size:10px}
.sp-subpage .ep-stage-toolbar[hidden],.sp-subpage .ep-connected-toolbar[hidden]{display:none!important}
.sp-subpage .ep-panel-mode .ep-connected-toolbar{display:none!important}
.sp-subpage .ep-panel-mode .ep-level-controls{display:none!important}
.sp-subpage .ep-stage-scroll{display:flex;flex:1 1 auto;min-height:0;overflow:auto;max-width:100%;padding:26px;background:#f3f5f7;scrollbar-width:thin;scrollbar-color:#c9d0db transparent;outline-offset:-4px}
.sp-subpage #ep-plan{flex:none;display:block;width:100%;height:auto;margin:auto;max-width:none;touch-action:none;background:#fff;box-shadow:0 5px 18px #17243b0d}
.sp-subpage #ep-plan[data-mode=place]{cursor:copy}.sp-subpage #ep-plan[data-mode=draw],.sp-subpage #ep-plan[data-mode=wall],.sp-subpage #ep-plan[data-mode=calibrate]{cursor:crosshair}.sp-subpage #ep-plan[data-mode=pan]{cursor:grab}.sp-subpage #ep-plan[data-mode=pan]:active{cursor:grabbing}
.sp-subpage .ep-canvas-dock{display:flex;justify-content:flex-end;align-items:center;gap:10px;border-top:1px solid var(--ep-line);padding:6px 18px;background:#fff;min-height:41px}
.sp-subpage .ep-coordinate-disclosure{position:relative}.sp-subpage .ep-coordinate-disclosure>summary{list-style:none;min-height:28px;padding:5px 8px;border-radius:4px;background:#f3f5f8;color:#536178;font-size:11px;cursor:pointer}
.ep-coordinate-disclosure>summary::-webkit-details-marker{display:none}.sp-subpage .ep-coordinate-body{position:absolute;right:0;bottom:calc(100% + 9px);width:230px;z-index:15;background:#fff;border:1px solid #d8dfe8;border-radius:8px;padding:16px;box-shadow:0 10px 30px #17243b20}.ep-place-fields p{font-size:11px;color:#657083;margin:0 0 12px}.ep-place-fields strong{color:#26344b}
.sp-subpage .ep-status{min-height:26px;margin:0;padding:5px 18px;background:#fff;color:#526781;font-size:10px;line-height:1.5;border-top:1px solid #f0f2f6}.ep-status:empty{display:none}
.sp-subpage .ep-coverage-note{margin:0;padding:8px 18px;font-size:11px;line-height:1.5;background:#eef3ff;color:#415775;border-top:1px solid #dce6fc}
.sp-subpage .ep-focus-actions{display:none;gap:8px;margin-top:16px}.sp-subpage .ep-is-focused .ep-focus-actions{display:grid}.ep-focus-open{display:flex;align-items:center;justify-content:center;min-height:38px;border:1px solid #d2d8e0;border-radius:6px;color:#34435a;font-size:12px;cursor:pointer}
/* The panel is an alternate canvas view, with rows for circuit relationships. */
.sp-subpage .ep-panel-view,.sp-subpage .ep-3d-view{flex:1;min-height:0;overflow:auto;padding:24px;background:#f3f5f7}.sp-subpage .ep-panel-heading{display:flex;justify-content:space-between;align-items:start;gap:18px}.ep-panel-heading h3{font-size:22px;letter-spacing:-.025em;color:#26344b;margin:0 0 6px}.ep-panel-heading p{max-width:56ch;margin:0;color:#657083;font-size:12px}.ep-panel-heading .ep-inline-button{width:auto;flex:none;margin:0}
.sp-subpage .ep-panel-summary{padding:16px 0;margin:12px 0 20px;border-bottom:1px solid #d9dfe8;color:#34435a;font-size:13px;font-weight:500;font-variant-numeric:tabular-nums}
.sp-subpage .ep-panel-layout{display:grid;grid-template-columns:minmax(220px,.85fr) minmax(260px,1.15fr);gap:24px;align-items:start}.ep-panel-diagram{background:#e2e7ed;padding:16px;border-radius:7px;border:1px solid #c5ceda}.ep-main-breaker{display:grid;gap:6px;background:#17243b;color:#fff;padding:20px 12px;text-align:center;border-radius:5px;margin-bottom:14px}.ep-main-breaker span{font-size:9px;letter-spacing:.09em;color:#c6d0df}.ep-main-breaker strong{font-size:14px;font-weight:500}.ep-main-breaker small{font-size:10px;color:#c6d0df}
.ep-breaker-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px;background:linear-gradient(90deg,transparent 48%,#91a0b3 48%,#91a0b3 52%,transparent 52%)}.ep-breaker-slot{position:relative;display:grid;grid-template-columns:16px 1fr;align-content:center;gap:3px;min-height:62px;background:#fff;border:1px solid #bdc7d5;border-radius:4px;padding:8px;text-align:left;color:#34435a;cursor:pointer;font:inherit}.ep-breaker-slot strong{font-size:12px;font-weight:600}.ep-breaker-slot small{grid-column:2;font-size:9px;overflow-wrap:anywhere}.ep-slot-number{font-size:9px;color:#5b677a}.ep-breaker-leg{position:absolute;top:3px;right:5px;font-size:8px;color:#657083}.ep-breaker-slot.is-spare{background:#edf0f4;cursor:default}.ep-breaker-slot:hover{border-color:#185bff}
.sp-subpage .ep-panel-circuits{display:grid;gap:0}.sp-subpage .ep-circuit-card{padding:18px 0;border-bottom:1px solid #d9dfe8;background:none;box-shadow:none;border-radius:0}.ep-circuit-card:first-child{padding-top:0}.ep-circuit-button{border:0;padding:0;background:none;text-align:left;color:#185bff;font:600 12px Inter,Arial,sans-serif;cursor:pointer}.ep-circuit-button:hover{text-decoration:underline}.ep-circuit-card p{font-size:11px;margin:7px 0;color:#657083}.ep-circuit-setting{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:9px 0;font-size:11px;color:#536178}.ep-circuit-setting select{border:1px solid #d3dae4;padding:5px;border-radius:4px;color:#34435a;font-size:11px;background:#fff}.ep-circuit-setting input{accent-color:#185bff}.ep-circuit-devices{display:flex;gap:5px;flex-wrap:wrap;margin-top:14px}.ep-circuit-devices :is(button,span){border:1px solid #d8dfe8;border-radius:4px;padding:6px 8px;background:#fff;font:10px Inter,Arial,sans-serif;color:#536178;text-align:left}.ep-circuit-devices button{cursor:pointer}.ep-circuit-devices button:hover,.ep-circuit-devices button.is-selected{color:#185bff;border-color:#185bff}.ep-circuit-card .ep-circuit-alert{color:#95471e}
.sp-subpage .ep-3d-view{position:relative;display:flex;flex-direction:column;justify-content:center;padding:12px}.ep-3d-view #ep-3d-canvas{flex:1;min-height:0;width:100%}.ep-3d-canvas svg,#ep-3d-canvas svg{width:100%;height:100%;min-height:280px}.ep-3d-caption{text-align:center;color:#657083;font-size:11px;margin:12px 0}
/* Secondary review content is available in explicit disclosures. */
.sp-subpage :is(.ep-legend-disclosure,.ep-inventory-disclosure,.ep-method){border-bottom:1px solid var(--ep-line);padding:19px 0;margin:0}.sp-subpage :is(.ep-legend-disclosure,.ep-inventory-disclosure,.ep-method)>summary{font-size:13px;font-weight:500;color:#34435a;cursor:pointer}.ep-legend-disclosure>summary span,.ep-inventory-disclosure>summary span{margin-left:12px;color:#657083;font-size:11px;font-weight:400}
.sp-subpage .ep-legend{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 22px;list-style:none;margin:16px 0 2px;padding:0}.sp-subpage .ep-legend-item{display:flex;align-items:center;gap:10px;min-width:0;min-height:43px;border-bottom:1px solid #edf0f5;color:#34435a;font-size:11px}.sp-subpage .ep-legend-icon{display:grid;place-items:center;flex:none;width:27px;height:27px;color:#34435a}.ep-legend-icon svg{display:block;width:25px;height:25px}.sp-subpage .ep-legend-name{min-width:0;flex:1;line-height:1.35}.sp-subpage .ep-legend-quantity{flex:none;color:#526178;font-variant-numeric:tabular-nums}.sp-subpage .ep-legend-empty{grid-column:1/-1;padding:8px 0;color:#526178;font-size:11px}
.sp-subpage .ep-legend-disclosure:not([open])>.ep-legend{display:none}
.sp-subpage .ep-inventory{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;padding:22px 0}.sp-subpage .ep-inventory-card{min-width:0;padding:0;border:0;border-radius:0;box-shadow:none;background:#fff}.ep-inventory-head{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:12px}.ep-inventory-head h2{font-size:12px;margin:0;color:#34435a;font-weight:600}.ep-inventory-head strong{font-size:11px;font-weight:500;color:#657083}.ep-inventory-list{max-height:300px;overflow:auto}.ep-inventory-item{display:grid;gap:4px;width:100%;padding:12px 8px;background:#fff;border:0;border-bottom:1px solid #edf0f5;text-align:left;color:#34435a;cursor:pointer;font:inherit}.ep-inventory-item:hover{background:#f7f9fc}.ep-inventory-item.is-selected{background:#edf3ff;color:#185bff}.ep-inventory-item-title{font-size:12px;font-weight:500}.ep-inventory-item-sub{font-size:10px;color:#657083}.ep-count-strip{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px;font-size:10px;color:#657083}.ep-empty-list{font-size:12px;color:#657083}.ep-method p{max-width:75ch;font-size:12px;line-height:1.8;color:#536178}.ep-method a,.ep-scope a{color:#185bff;text-decoration:underline;text-underline-offset:3px}.sp-subpage .ep-scope{max-width:100ch;font-size:11px;line-height:1.7;color:#657083;padding:0;margin:20px 0 0;border:0}.ep-print-footer{display:none}
/* Electrical hero: copy and geometry always occupy separate regions. */
.sp-subpage.ep-studio-page .tool-hero{background:#090044;background-image:none;overflow:hidden}.sp-subpage.ep-studio-page .tool-hero-wrap{width:min(88%,1440px);grid-template-columns:1.08fr 1fr;gap:60px;padding-block:70px}.sp-subpage.ep-studio-page .tool-hero-copy h1{font-size:64px;line-height:1.04;letter-spacing:-.04em;font-weight:450;margin:0 0 24px}.sp-subpage.ep-studio-page .tool-hero-copy>p{font-size:15px;line-height:1.7;max-width:45ch}.sp-subpage.ep-studio-page .tool-hero-jump{font-size:11px;letter-spacing:.04em;min-height:44px;margin-top:26px}.sp-subpage.ep-studio-page .tool-hero-art{min-height:300px;border:0;border-radius:0;background:none;box-shadow:none}.sp-subpage.ep-studio-page .tool-hero-art-grid{display:none}.sp-subpage.ep-studio-page .tool-hero-art svg{position:relative;inset:auto;width:100%;height:300px;display:block}
body.sp-subpage.ep-workspace-open{overflow:hidden}.sp-subpage .ep-workbench.ep-is-focused{position:fixed;inset:0;z-index:1000;width:100%;height:100dvh;max-height:none;min-height:0;border:0;border-radius:0}.sp-subpage .ep-is-focused .ep-canvas-actions #ep-focus{position:static;max-width:none;background:#fff}
@media(max-width:1380px){.sp-subpage .ep-workbench{grid-template-columns:52px 216px minmax(0,1fr) 242px}}
@media(max-width:1180px){.sp-subpage .ep-workbench{grid-template-columns:52px 228px minmax(0,1fr);height:740px}.sp-subpage .ep-properties{display:none}.sp-subpage .ep-narrow-panels{display:flex}.sp-subpage .ep-narrow-panels #ep-show-library{display:none}.sp-subpage .ep-show-properties .ep-properties{display:block;position:absolute;z-index:25;right:0;top:0;bottom:0;width:280px;box-shadow:-10px 0 30px #17243b12}.sp-subpage .ep-panel-close{display:block}.sp-subpage.ep-studio-page .tool-hero-copy h1{font-size:56px}}
@media(max-width:900px){.sp-subpage .ep-workbench{grid-template-columns:52px minmax(0,1fr);height:720px}.sp-subpage .ep-library{display:none}.sp-subpage .ep-narrow-panels #ep-show-library{display:block}.sp-subpage .ep-show-library .ep-library{display:block;position:absolute;z-index:25;left:52px;top:0;bottom:0;width:280px;box-shadow:10px 0 30px #17243b12}.sp-subpage .ep-show-properties .ep-properties{width:280px}.sp-subpage .ep-open-copy .ep-open-privacy{display:none}.sp-subpage .ep-open-status{font-size:11px}.sp-subpage.ep-studio-page .tool-hero-wrap{gap:28px;padding-block:50px}.sp-subpage.ep-studio-page .tool-hero-copy h1{font-size:48px}.sp-subpage.ep-studio-page .tool-hero-art{min-height:240px}.sp-subpage.ep-studio-page .tool-hero-art svg{height:240px}.sp-subpage .ep-inventory{gap:20px;grid-template-columns:1fr 1fr}}
@media(max-width:900px){.sp-subpage .ep-legend{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.sp-subpage .ep-legend{grid-template-columns:minmax(0,1fr)}.sp-subpage .ep-legend-disclosure>summary span{display:block;margin:4px 0 0}}
@media(max-width:768px){.sp-subpage.ep-studio-page .tool-hero-wrap{grid-template-columns:1fr;gap:30px;padding-block:42px}.sp-subpage.ep-studio-page .tool-hero-copy h1{font-size:48px;max-width:14ch}.sp-subpage.ep-studio-page .tool-hero-art{width:100%;max-width:460px;min-height:220px;margin:0 auto}.sp-subpage.ep-studio-page .tool-hero-art svg{height:220px}.sp-subpage .ep-intro{align-items:flex-start;gap:18px;flex-direction:column}.sp-subpage .ep-intro-actions{justify-content:flex-start}.sp-subpage .ep-open-status{display:none}.sp-subpage .ep-open-card{gap:10px}.sp-subpage .ep-stage-scroll{padding:16px}}
@media(max-width:520px){.sp-subpage .ep-wrap{width:calc(100% - 24px)}.sp-subpage .ep-breadcrumb{padding-top:18px}.sp-subpage .ep-intro h2{font-size:22px}.sp-subpage .ep-intro p{font-size:12px;max-width:35ch}.sp-subpage .ep-intro-actions{gap:6px}.sp-subpage .ep-intro-actions .ep-button,.sp-subpage .ep-project-file>summary{min-height:40px;font-size:11px;padding:8px 10px}.sp-subpage .ep-open-copy h2{font-size:12px}.sp-subpage .ep-open-drop{padding:8px;min-height:40px}.sp-subpage .ep-open-drop strong{font-size:11px}.sp-subpage .ep-mode-row{flex-direction:row;gap:8px}.sp-subpage .ep-mode{display:flex;gap:5px;width:auto;min-height:43px;padding:9px 8px;font-size:10px}.sp-subpage .ep-mode svg{width:17px;height:17px}.sp-subpage #ep-coordinate-readout{display:none}.sp-subpage .ep-stage-scroll{padding:10px}.sp-subpage .ep-canvas-dock{padding:5px 10px}.sp-subpage .ep-status{padding:6px 10px}.sp-subpage .ep-show-library .ep-library{left:0;top:53px;width:min(290px,100%);max-height:none}.sp-subpage .ep-show-properties .ep-properties{top:53px;width:min(290px,100%)}.sp-subpage .ep-coordinate-body{width:min(230px,calc(100vw - 42px))}.sp-subpage .ep-inventory{grid-template-columns:1fr}.ep-inventory-disclosure>summary span{display:block;margin:4px 0 0}.sp-subpage.ep-studio-page .tool-hero-copy h1{font-size:40px;letter-spacing:-.04em;line-height:1.08}.sp-subpage.ep-studio-page .tool-hero-copy>p{font-size:14px}.sp-subpage.ep-studio-page .tool-hero-wrap{width:calc(100% - 40px);padding-block:36px;gap:24px}.sp-subpage.ep-studio-page .tool-hero-art{min-height:185px}.sp-subpage.ep-studio-page .tool-hero-art svg{height:185px}.sp-subpage .ep-3d-caption{font-size:10px}}
@media(max-height:520px) and (orientation:landscape){.sp-subpage .ep-is-focused{grid-template-columns:48px minmax(0,1fr)}.sp-subpage .ep-is-focused .ep-library{display:none}.sp-subpage .ep-is-focused .ep-narrow-panels #ep-show-library{display:block}.sp-subpage .ep-is-focused .ep-canvas-dock{min-height:32px;padding:2px 10px}.sp-subpage .ep-is-focused .ep-show-library .ep-library{left:48px;top:0}.sp-subpage .ep-is-focused.ep-show-library .ep-library{display:block;left:48px;top:0}.sp-subpage .ep-is-focused .ep-stage-scroll{padding:8px}.sp-subpage .ep-is-focused .ep-status{min-height:20px;padding:2px 10px}}
@media(prefers-reduced-motion:reduce){.ep-page *{transition:none!important;animation:none!important}}
.sp-subpage #ep-plan[data-has-background=true] .ep-svg-room rect{fill:rgba(255,255,255,.12)}
.sp-subpage #ep-plan[data-has-background=true] .ep-svg-room:hover rect{fill:rgba(234,242,255,.4)}
.sp-subpage .ep-svg-room{cursor:pointer}
.sp-subpage #ep-plan [data-wall-id],.sp-subpage #ep-plan [data-opening-id]{cursor:pointer}
.sp-subpage .ep-svg-room.is-selected,.sp-subpage #ep-plan [data-wall-id].is-selected,.sp-subpage #ep-plan [data-opening-id].is-selected{cursor:grab}
.sp-subpage .ep-geometry-handle{cursor:crosshair}
.sp-subpage .ep-geometry-handle[data-geometry-handle=nw],.sp-subpage .ep-geometry-handle[data-geometry-handle=se]{cursor:nwse-resize}
.sp-subpage .ep-geometry-handle[data-geometry-handle=ne],.sp-subpage .ep-geometry-handle[data-geometry-handle=sw]{cursor:nesw-resize}
.sp-subpage #ep-plan [data-wall-id]:focus-visible line:first-child,.sp-subpage #ep-plan [data-opening-id]:focus-visible line:first-child{stroke:#185bff;stroke-width:.25}
.sp-subpage .ep-svg-room:hover rect{fill:#eaf2ff}
.sp-subpage .ep-svg-room-name{fill:#3e557b;font-family:Inter,Arial,sans-serif;font-size:.75px;font-weight:750;letter-spacing:.01em;pointer-events:none}
.sp-subpage .ep-svg-room-size{fill:#6c7d99;font-family:Inter,Arial,sans-serif;font-size:.59px;font-weight:580;pointer-events:none}
.sp-subpage .ep-svg-dimension,.sp-subpage .ep-svg-scale{fill:#4e6384;font-family:Inter,Arial,sans-serif;font-size:.47px;font-weight:750;pointer-events:none}
.sp-subpage .ep-svg-device{cursor:grab}
.sp-subpage .ep-svg-device:active{cursor:grabbing}
.sp-subpage .ep-svg-device-label{fill:#1f385f;font-family:Inter,Arial,sans-serif;font-size:.55px;font-weight:700;paint-order:stroke;stroke:#fff;stroke-width:.19px;stroke-linejoin:round;pointer-events:none}
.sp-subpage .ep-svg-circuit-label{fill:#174fc5;font-family:Inter,Arial,sans-serif;font-size:.44px;font-weight:800;paint-order:stroke;stroke:#fff;stroke-width:.17px;stroke-linejoin:round;pointer-events:none}
.sp-subpage .ep-svg-calibration{fill:#9b5a00;font-family:Inter,Arial,sans-serif;font-size:.65px;font-weight:800;paint-order:stroke;stroke:#fff;stroke-width:.16px;pointer-events:none}
.sp-subpage .ep-svg-room:focus-visible rect,.sp-subpage .ep-svg-device:focus-visible .ep-svg-hit{stroke:#ffad20;stroke-width:.24;outline:none}
.sp-subpage .ep-stage-help{margin:0;border-top:1px solid #e3e9f4;padding:.5rem 1rem;color:#61708a;font-size:.66rem;line-height:1.4}
.sp-subpage #ep-plan[data-example-background=true] .ep-svg-room:not(.is-selected) rect{stroke:transparent;fill:transparent}
.sp-subpage #ep-plan[data-example-background=true] .ep-svg-room:hover rect{fill:rgba(24,91,255,.04)}
.sp-subpage #ep-plan[data-example-background=true] .ep-svg-room-name,.sp-subpage #ep-plan[data-example-background=true] .ep-svg-room-size{paint-order:stroke;stroke:#fff;stroke-width:.25px;stroke-linejoin:round}
.sp-subpage #ep-plan[data-mode=pan]{cursor:grab}
.sp-subpage #ep-plan[data-mode=pan]:active{cursor:grabbing}
.sp-subpage .ep-open-drop.is-dragging{border-color:#185bff;background:#eaf2ff}@media print{body.sp-subpage{background:#fff!important}.sp-subpage :is(.sp-navigation,.sp-footer,.tool-hero,.ep-breadcrumb,.ep-intro-actions,.ep-open-card,.ep-tool-rail,.ep-library,.ep-properties,.ep-canvas-actions,.ep-connected-toolbar,.ep-stage-toolbar,.ep-canvas-dock,.ep-status,.ep-coverage-note,.ep-method,.ep-scope){display:none!important}.sp-subpage .ep-page{background:#fff!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}.sp-subpage .ep-wrap{width:100%;padding:0}.sp-subpage .ep-intro{padding:0 0 .15in}.sp-subpage .ep-workbench,.sp-subpage .ep-workbench.ep-is-focused{display:block;position:static;width:100%;height:auto;max-height:none;min-height:0;border:0;overflow:visible}.sp-subpage .ep-content,.sp-subpage .ep-plan-card{display:block;height:auto;overflow:visible;background:#fff}.sp-subpage .ep-plan-head{padding:.1in 0;border:0}.sp-subpage .ep-stage-scroll{display:block;max-height:none;min-height:0;overflow:visible;padding:0;background:#fff}.sp-subpage #ep-plan{width:min(100%,9.4in)!important;height:auto;max-height:6.5in;box-shadow:none}.sp-subpage .ep-inventory-disclosure{display:block;border:0;padding:0}.sp-subpage .ep-inventory-disclosure>summary{display:none}.sp-subpage .ep-inventory-disclosure:not([open])>.ep-inventory{display:grid}.sp-subpage .ep-inventory{grid-template-columns:1fr 1fr;gap:.15in;padding:.15in 0}.ep-inventory-list{max-height:none;overflow:visible}.ep-inventory-item{break-inside:avoid;padding:.05in;border:0}.sp-subpage .ep-print-footer{display:flex;gap:.3in;border-top:1px solid #ccd2dc;padding-top:.1in;color:#34435a;font-size:8pt}.ep-panel-view{overflow:visible}.ep-panel-layout{display:block}.ep-panel-diagram{break-inside:avoid}}
.sp-subpage .ep-3d-view .ep-spatial-shell{min-height:0;border-radius:0;background:#f3f5f7}
.sp-subpage .ep-3d-view .ep-spatial-note{color:#657083}.sp-subpage .ep-3d-view .ep-spatial-instructions{color:#657083}
/* Mobile controls keep a practical touch area without enlarging desktop chrome. */
@media screen and (max-width:900px){
 .sp-subpage .ep-canvas-button-group button,.sp-subpage .ep-narrow-panels button,.sp-subpage #ep-focus,.sp-subpage .ep-zoom select{min-height:40px}
 .sp-subpage :is(#ep-zoom-in,#ep-zoom-out){min-width:40px}
 .sp-subpage :is(.ep-view-tabs,.ep-overlay-tabs) button{min-height:40px}
 .sp-subpage .ep-coordinate-disclosure>summary{min-height:40px;display:flex;align-items:center}
 .sp-subpage .ep-panel-close{width:40px;height:40px}
 .sp-subpage .ep-library-tabs button,.sp-subpage .ep-library-categories button{min-height:40px}
 .sp-subpage :is(.ep-rail-disclosure,.ep-inspector-disclosure)>summary{min-height:44px}
 .sp-subpage .ep-field :is(input,select),.sp-subpage .ep-library-search input{min-height:40px}
 .sp-subpage .ep-check{min-height:40px}
 .sp-subpage .ep-spatial-controls button{height:40px;min-width:40px}
}

/* Integrated panel schedule */
.sp-subpage .ep-panel-view{background:#f5f7fa;color:#25354b;scrollbar-color:#aebbd0 #eef2f6}
.sp-subpage .ep-panel-view::selection{background:#cfe0ff;color:#173761}
.sp-subpage .ep-panel-heading{padding-bottom:18px;border-bottom:1px solid #d9e1eb}
.sp-subpage .ep-panel-heading h3{font-size:clamp(22px,2vw,30px);font-weight:650;letter-spacing:-.025em}
.sp-subpage .ep-panel-heading p{font-size:13px;line-height:1.55;color:#53657c}
.sp-subpage .ep-panel-summary{padding:16px 0;margin:0 0 20px;color:#203c66;font-size:13px;line-height:1.5;font-weight:600}
.sp-subpage .ep-panel-layout{grid-template-columns:minmax(260px,.85fr) minmax(320px,1.15fr);gap:clamp(18px,2vw,32px)}
.ep-panel-left,.ep-panel-right{min-width:0}
.sp-subpage .ep-panel-diagram{background:#e5eaf0;border:0;border-radius:14px;padding:clamp(14px,2vw,22px)}
.sp-subpage .ep-main-breaker{padding:19px 16px;margin-bottom:18px;border-radius:9px;background:#172d4c;box-shadow:0 8px 20px #142c4b21}
.sp-subpage .ep-main-breaker span{font-size:10px;letter-spacing:.07em;color:#d0e0f0}
.sp-subpage .ep-main-breaker strong{font-size:18px;font-weight:650;letter-spacing:-.025em}
.sp-subpage .ep-main-breaker small{font-size:11px;line-height:1.5;color:#d0e0f0}
.sp-subpage .ep-breaker-slot{border:0;border-radius:6px;min-width:0;min-height:58px;box-shadow:0 2px 7px #142c4b13;transition:background .16s ease,box-shadow .16s ease}
.sp-subpage .ep-breaker-slot:hover{background:#eef5ff;box-shadow:0 4px 12px #142c4b21}
.sp-subpage .ep-breaker-slot:focus-visible,.sp-subpage .ep-panel-view :is(button,input,select,summary):focus-visible{outline:2px solid #185bff;outline-offset:2px}
.sp-subpage .ep-breaker-slot.is-spare{box-shadow:none;background:#f5f7fa;color:#586a80}
.sp-subpage .ep-breaker-slot small{font-size:10px;line-height:1.3}
.ep-panel-scope{background:#fff;border:1px solid #d9e1eb;border-radius:12px;margin-top:18px}
.ep-panel-scope>summary{list-style:none;cursor:pointer;padding:15px 17px;font-size:13px;font-weight:650;color:#203c66}
.ep-panel-scope>summary::-webkit-details-marker{display:none}
.ep-panel-scope>summary span{font-size:11px;font-weight:500;color:#63758b}
.ep-panel-scope-body{padding:0 17px 18px}
.ep-panel-scope-body>p{font-size:12px;line-height:1.55;color:#52657b;margin:0 0 14px}
.ep-panel-input-grid,.ep-circuit-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.ep-panel-input-grid label,.ep-panel-edit-field{display:grid;gap:5px;font-size:11px;font-weight:600;color:#41556f}
.ep-panel-input-grid :is(input,select),.ep-panel-edit-field :is(input,select),.ep-panel-device-row select{width:100%;min-width:0;min-height:36px;padding:7px 9px;background:#fff;border:1px solid #c8d3e0;border-radius:7px;color:#213955;font:12px Inter,Arial,sans-serif;caret-color:#185bff}
.ep-panel-confirm{display:flex;align-items:flex-start;gap:8px;margin:14px 0 0;font-size:11px;line-height:1.5;color:#445974;cursor:pointer}
.ep-panel-confirm input{flex:none;margin-top:2px;accent-color:#185bff}
.ep-panel-issues{margin:18px 0;color:#445974}
.ep-panel-issues h4,.ep-panel-schedule-head h4,.ep-panel-add h4,.ep-panel-unassigned h4{margin:0 0 10px;font-size:14px;letter-spacing:-.01em;color:#263e5c}
.ep-panel-issues ul{margin:0;padding-left:18px}
.ep-panel-issues li{font-size:11px;line-height:1.55;margin:5px 0;overflow-wrap:anywhere}
.ep-panel-issues li.is-error{color:#8d3f26}
.ep-panel-schedule-head{margin:1px 0 14px}.ep-panel-schedule-head p{margin:0;color:#5c6d82;font-size:12px}
.ep-panel-unassigned{margin-bottom:14px}.ep-panel-unassigned:empty{display:none}
.ep-panel-unassigned:not(:empty){background:#fff3eb;padding:13px;border-radius:10px}
.sp-subpage .ep-circuit-card{background:#fff;border:1px solid #dce4ed;border-radius:12px;padding:16px;margin-bottom:12px;box-shadow:0 4px 14px #142c4b0a}
.ep-circuit-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.ep-circuit-head strong{font-size:15px;color:#1d395c}.ep-circuit-head button{border:0;background:none;color:#185bff;cursor:pointer;font:600 11px Inter,Arial,sans-serif;text-decoration:underline;text-underline-offset:3px}
.ep-circuit-load{font-size:11px;font-variant-numeric:tabular-nums;color:#40566f;margin:12px 0!important}
.ep-panel-devices{display:grid;gap:6px}
.ep-panel-device-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(112px,42%);gap:7px;align-items:center}
.ep-panel-device-row button{border:0;background:#f1f5fa;color:#2a4565;text-align:left;min-height:36px;padding:7px 9px;border-radius:7px;cursor:pointer;font:11px Inter,Arial,sans-serif;overflow-wrap:anywhere}
.ep-panel-device-row button:hover{background:#e5efff;color:#174cae}
.ep-panel-remove{border:0;background:none;color:#9a442f;padding:7px 0 0;margin-top:9px;cursor:pointer;font:600 11px Inter,Arial,sans-serif}
.ep-panel-add{margin-top:18px;padding:17px;background:#fff;border:1px dashed #a8bad0;border-radius:12px}.ep-panel-add button{margin-top:15px}
.ep-panel-disclaimer{margin:20px 0 0;max-width:75ch;color:#596d83;font-size:11px;line-height:1.55}
@media(max-width:1380px){.sp-subpage .ep-panel-layout{grid-template-columns:1fr}.sp-subpage .ep-panel-left{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.8fr);gap:15px;align-items:start}.sp-subpage .ep-panel-scope{margin:0}.sp-subpage .ep-panel-issues{grid-column:1/-1;margin:0}}
@media(max-width:768px){.sp-subpage .ep-panel-left{display:block}.sp-subpage .ep-panel-scope{margin-top:16px}.sp-subpage .ep-panel-issues{margin:16px 0}.sp-subpage .ep-panel-heading{flex-direction:row;align-items:center}.sp-subpage .ep-panel-heading .ep-inline-button{white-space:nowrap}}
@media(max-width:520px){.sp-subpage .ep-panel-heading{align-items:flex-start;flex-direction:column}.sp-subpage .ep-panel-heading .ep-inline-button{min-height:36px}.sp-subpage .ep-panel-summary{font-size:11px}.sp-subpage .ep-panel-input-grid,.ep-circuit-edit-grid{gap:9px}.sp-subpage .ep-circuit-card{padding:13px}.sp-subpage .ep-panel-device-row{grid-template-columns:1fr}.sp-subpage .ep-panel-view{padding:15px 12px}}
@media(max-width:520px){.sp-subpage .ep-breaker-grid{max-height:330px;overflow:auto;scrollbar-color:#aebbd0 #e5eaf0}}

.sp-subpage .ep-library-tabs{gap:0;justify-content:space-between;padding:0 12px}
.sp-subpage .ep-library-tabs button{font-size:11px;white-space:nowrap;padding-inline:2px}
.sp-subpage .ep-room-label-controls{min-width:0;margin:18px 0 0;padding:14px 0 0;border:0;border-top:1px solid var(--ep-line)}
.sp-subpage .ep-room-label-controls legend{float:left;width:100%;padding:0;margin:0 0 12px;font-size:12px;font-weight:600;color:#34435a}
.sp-subpage .ep-room-label-controls .ep-check{margin:0 0 13px}
.sp-subpage .ep-panel-review{padding:18px 16px}
.sp-subpage .ep-panel-review-intro{margin:0 0 13px;font-size:11px;line-height:1.6;color:#647084}
.sp-subpage .ep-panel-review-summary{padding:13px;border:1px solid #d6e2f7;border-radius:8px;background:#f3f7ff;color:#203d69;font-size:11px;line-height:1.6;font-weight:600;font-variant-numeric:tabular-nums}
.sp-subpage .ep-panel-review h3{margin:20px 0 10px;color:#34435a;font-size:12px}
.sp-subpage .ep-panel-review-circuits{display:grid;gap:7px}
.sp-subpage .ep-panel-review-row{display:flex;align-items:center;gap:8px;min-width:0;padding:10px;background:#fff;border:1px solid var(--ep-line);border-radius:7px}
.sp-subpage .ep-panel-review-info{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.sp-subpage .ep-panel-review-info strong{font-size:11px;line-height:1.35;color:#26344b}
.sp-subpage .ep-panel-review-info span{font-size:10px;line-height:1.4;color:#647084;font-variant-numeric:tabular-nums}
.sp-subpage .ep-panel-review-row button{flex:none;margin-left:auto;border:0;border-radius:5px;padding:8px 5px;background:transparent;color:#185bff;font:600 11px Inter,Arial,sans-serif;cursor:pointer}
.sp-subpage .ep-panel-review-row button:hover{background:#edf3ff}
.sp-subpage .ep-panel-review>.ep-inline-button{margin-top:16px}

@media(max-width:520px){
  .sp-subpage .ep-tool-rail{overflow-x:auto;scrollbar-width:thin;padding:3px 6px}
  .sp-subpage .ep-dock-modes{flex:1 1 auto;min-width:0}
  .sp-subpage .ep-mode-row{gap:2px;justify-content:space-between}
  .sp-subpage .ep-mode{display:grid;justify-items:center;align-content:center;flex:1 1 0;min-width:0;min-height:46px;padding:2px 1px;font-size:9px;line-height:1.1}
  .sp-subpage .ep-tool-rail{display:flex;align-items:center;gap:3px}
  .sp-subpage .ep-rail-actions{display:flex;flex:0 0 32%;min-width:0;gap:2px;margin:0;padding:0;border:0}
  .sp-subpage .ep-rail-action{width:50%}
  }
.sp-subpage .ep-open-status{max-width:none;margin:0 0 10px;overflow-wrap:anywhere;line-height:1.45}


/* Calibration is a focused setup pane; general project controls remain in Plan. */
.sp-subpage .ep-scale-setup .ep-library-tabs{display:none}
.sp-subpage .ep-scale-panel>h3:not(.ep-sr-only){margin:0 0 12px;font-size:15px;color:#26344b}
.sp-subpage .ep-scale-panel .ep-open-status{display:block;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.sp-subpage .ep-scale-panel .ep-background-preview{max-height:150px;object-fit:contain;width:100%;margin:12px 0}
.sp-subpage .ep-scale-panel .ep-background-actions{display:grid;gap:8px}
.sp-subpage .ep-scale-panel .ep-field{margin-top:16px}
.sp-subpage .ep-scale-panel #ep-background-active{margin-top:20px}
.sp-subpage .ep-scale-actions{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.sp-subpage .ep-scale-footer{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #dce2ea;margin-top:24px;padding-top:12px}
.sp-subpage .ep-scale-text-button{border:0;background:transparent;color:#185bff;font:600 11px/1.4 Inter,Arial,sans-serif;padding:8px 0;cursor:pointer;min-height:40px}
.sp-subpage .ep-scale-text-button:focus-visible{outline:2px solid #185bff;outline-offset:2px}
.sp-subpage #ep-scale-feedback{color:#344c6d;margin-top:12px}
.sp-subpage #ep-canvas-feedback{color:#a32537}
.sp-subpage .ep-field input[aria-invalid=true]{border-color:#a32537}
.sp-subpage .ep-open-drop input[type=file]{position:absolute;inset:auto;left:0;bottom:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);opacity:0}
/* Structure tracing keeps common actions visible and precision settings folded. */
.ep-structure-intro{font-size:13px;line-height:1.5;color:#53647c;margin:0 0 16px}
.ep-structure-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:18px}
.ep-structure-tools button{padding:13px 10px;text-align:left;border:1px solid #d9e1ec;border-radius:10px;background:#fff;color:#243b60;font-family:inherit;font-size:13px;font-weight:600;cursor:pointer}
.ep-structure-tools button span{display:block;font-size:11px;font-weight:400;color:#667790;margin-top:4px}
.ep-structure-tools button[aria-pressed=true]{border-color:#185bff;background:#eef4ff;color:#185bff}
.ep-structure-openings,.ep-structure-detect{padding:16px 0;border-top:1px solid #e2e8f0}
.ep-structure-actions{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}
.ep-structure-actions>button{flex:1;min-width:85px}
.ep-structure-actions>button:not(.ep-inline-button){border:1px solid #d9e1ec;background:#fff;border-radius:7px;padding:7px;color:#45617d;font:inherit;font-size:12px;cursor:pointer}
.ep-wall-review-list{max-height:210px;overflow:auto;margin:10px 0;border:1px solid #e2e8f0;border-radius:8px}
.ep-wall-review-list label{display:flex;align-items:center;gap:8px;padding:8px 10px;font-size:12px;border-bottom:1px solid #eef1f6}
.ep-wall-review-list label:last-child{border-bottom:0}
.ep-wall-review-list input{accent-color:#185bff}
.ep-structure-panel button:disabled{opacity:.45;cursor:default}
.ep-structure-panel button:focus-visible,.ep-wall-review-list input:focus-visible{outline:2px solid #185bff;outline-offset:3px}
.ep-structure-marking{border-top:1px solid #e2e8f0;padding:16px 0}
.ep-structure-openings button[aria-pressed=true],.ep-structure-marking button[aria-pressed=true]{border-color:#185bff;background:#edf3ff;color:#185bff}
.ep-structure-marking .ep-delete{width:100%;margin-top:0;font-size:12px}
.ep-detection-detail{margin-top:12px}
.sp-subpage #ep-library-structure h3{font-size:15px;line-height:1.35;font-weight:600;letter-spacing:0;margin:0 0 8px}
.sp-subpage #ep-properties h3{font-size:15px;line-height:1.35;font-weight:600;letter-spacing:0;margin:0 0 8px}

.sp-subpage .ep-pdf-pages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:210px;overflow:auto;margin:10px 0;padding:4px}
.ep-pdf-pages label{display:flex;align-items:center;gap:7px;padding:8px;border:1px solid #dce2eb;border-radius:5px;font-size:12px;min-width:0}.ep-pdf-pages input{width:16px;height:16px;accent-color:#185bff}
.sp-subpage .ep-workbench.ep-panel-mode{grid-template-columns:56px minmax(0,1fr)}
.sp-subpage .ep-panel-mode :is(.ep-library,.ep-properties,.ep-narrow-panels){display:none!important}
.sp-subpage .ep-panel-mode .ep-content{grid-column:2}.sp-subpage .ep-panel-view{background:#fff;padding:24px 28px}
.sp-subpage .ep-panel-page{padding-top:22px;max-width:1220px;margin-inline:auto}
.sp-subpage .ep-panel-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0}
.sp-subpage .ep-panel-view .ep-inline-button{width:auto;margin:0;min-height:38px;background:#fff;color:#24415d;border-color:#cbd4e2}
.sp-subpage .ep-panel-view .ep-inline-button:hover{background:#edf3ff;border-color:#185bff}
.sp-subpage .ep-panel-view [data-action="configure"]{background:#185bff;border-color:#185bff;color:#fff}
.sp-subpage .ep-panel-summary{background:none;border:0;padding:0;margin:14px 0;color:#586b82;font-size:12px}
.sp-subpage .ep-panel-tabs{display:flex;border-bottom:1px solid #dbe1e9;gap:20px;overflow:auto}
.sp-subpage .ep-panel-tabs button{min-height:44px;flex-shrink:0;border:0;border-bottom:2px solid transparent;background:none;color:#617085;padding:8px 3px;font:600 13px/1.4 Inter,Arial,sans-serif}
.sp-subpage .ep-panel-tabs button[aria-selected="true"]{border-bottom-color:#185bff;color:#185bff}
.sp-subpage .ep-pedit-setup{display:grid;grid-template-columns:minmax(260px,.75fr) minmax(0,1.25fr);gap:32px;align-items:start}
.sp-subpage .ep-panel-view .ep-panel-diagram{max-width:none;width:100%;min-width:0}.sp-subpage .ep-panel-view h4{margin:0 0 16px;font-size:17px;letter-spacing:-.015em}.sp-subpage .ep-panel-view h5{margin:22px 0 10px;font-size:14px}
.sp-subpage .ep-panel-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.sp-subpage .ep-pedit-field{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:12px;font-weight:500;color:#344962}
.sp-subpage .ep-pedit-field :is(input,select){width:100%;min-width:0;min-height:40px;border:1px solid #cdd6e3;border-radius:5px;background-color:#fff;padding:8px 10px;color:#22354e;font:400 13px/1.4 Inter,Arial,sans-serif}
.sp-subpage .ep-pedit-field select{padding-right:28px}.sp-subpage .ep-pedit-field input:disabled{background:#f3f5f8;color:#627188}
.sp-subpage .ep-panel-view .ep-panel-confirm{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.6;margin:14px 0}.sp-subpage .ep-panel-confirm input{flex:none;min-width:16px;width:16px;height:16px;margin:2px 0;accent-color:#185bff}
.sp-subpage .ep-pedit-disclosure{border-top:1px solid #e0e6ed;margin-top:20px;padding-top:14px}.ep-pedit-disclosure>summary{cursor:pointer;font-size:13px;font-weight:600;color:#344b68;padding:5px 0}.ep-pedit-disclosure[open]>summary{margin-bottom:14px}
.sp-subpage .ep-pedit-table-wrap{max-width:100%;overflow:auto;margin:14px 0 24px}.ep-pedit-table-wrap table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;font-variant-numeric:tabular-nums}.ep-pedit-table-wrap :is(td,th){padding:10px 12px;border-bottom:1px solid #e0e6ed;vertical-align:top}.ep-pedit-table-wrap th{font-weight:600;color:#475e7b;background:#f5f7fa;white-space:nowrap}
.sp-subpage .ep-pedit-circuit-tools{display:grid;grid-template-columns:minmax(160px,1fr) minmax(160px,1fr) auto;gap:12px;align-items:end;margin-bottom:18px}
.sp-subpage .ep-pedit-circuit-layout{display:grid;grid-template-columns:minmax(180px,.55fr) minmax(0,1.45fr);gap:24px}
.sp-subpage .ep-pedit-circuit-list{display:flex;flex-direction:column;gap:3px;max-height:620px;overflow:auto;align-self:start}
.sp-subpage .ep-pedit-circuit-list button{display:flex;flex-direction:column;gap:4px;text-align:left;border:0;border-left:3px solid transparent;border-radius:0;background:#fff;padding:12px;color:#344962;font:400 12px/1.5 Inter,Arial,sans-serif;overflow-wrap:anywhere;cursor:pointer}
.sp-subpage .ep-pedit-circuit-list button[aria-pressed="true"]{background:#edf3ff;border-left-color:#185bff;color:#174bb1}.ep-pedit-circuit-list span{color:#65768c}.ep-pedit-circuit-editor{min-width:0;border-left:1px solid #e0e6ed;padding-left:24px}
.sp-subpage .ep-pedit-device{display:grid;grid-template-columns:minmax(120px,1fr) minmax(115px,1fr) 90px;gap:10px;align-items:end;padding:13px 0;border-bottom:1px solid #e6eaf0}
.sp-subpage .ep-pedit-device>button{align-self:center;border:0;background:none;padding:0;color:#245aba;text-align:left;font:500 12px/1.5 Inter,Arial,sans-serif;cursor:pointer}.sp-subpage .ep-pedit-device>.ep-panel-confirm{grid-column:2 / -1;margin:0}
.sp-subpage .ep-pedit-additional{margin-top:24px;padding-top:1px;border-top:1px solid #dbe2eb}.sp-subpage .ep-panel-issues{font-size:12px;line-height:1.65;margin:0 0 26px;padding-left:20px}.ep-panel-issues li{margin:8px 0}.ep-panel-issues .is-error{color:#a6233e}
.sp-subpage .ep-panel-disclaimer{margin:26px auto 0;max-width:1220px;border-top:1px solid #e0e6ed;padding-top:14px;font-size:11px;line-height:1.6;color:#65758c}
@media(max-width:900px){.sp-subpage .ep-pedit-setup{grid-template-columns:1fr;gap:24px}.sp-subpage .ep-panel-view .ep-panel-diagram{max-width:520px}.sp-subpage .ep-panel-view{padding:20px}.sp-subpage .ep-pedit-circuit-layout{grid-template-columns:minmax(130px,.6fr) minmax(0,1.4fr);gap:16px}.ep-pedit-circuit-editor{padding-left:16px}.sp-subpage .ep-pedit-device{grid-template-columns:1fr 1fr}.sp-subpage .ep-pedit-device>button{grid-column:1 / -1}.sp-subpage .ep-pedit-device>.ep-panel-confirm{grid-column:1 / -1}}
@media(max-width:600px){.sp-subpage .ep-pedit-circuit-layout{grid-template-columns:1fr}.sp-subpage .ep-pedit-circuit-list{max-height:180px;border-bottom:1px solid #dbe2eb}.ep-pedit-circuit-editor{border-left:0;padding-left:0}.sp-subpage .ep-pedit-circuit-tools{grid-template-columns:1fr 1fr}.sp-subpage .ep-pedit-circuit-tools>label:first-child{grid-column:1 / -1}.sp-subpage .ep-panel-tabs{gap:14px}.sp-subpage .ep-panel-tabs button{font-size:12px}.sp-subpage .ep-panel-heading>div p{font-size:12px}}

.sp-subpage .ep-room-tags{border-top:1px solid #e0e6ed;margin-top:18px;padding-top:12px}.sp-subpage .ep-room-tag-row{display:grid;grid-template-columns:36px minmax(0,1fr);gap:6px;margin:10px 0}.ep-room-tag-row label{display:flex;gap:5px;align-items:center;font-size:12px}.ep-room-tag-row input[type="text"]{width:100%;min-width:0;padding:7px;border:1px solid #cbd4e2;border-radius:5px;font:12px/1.4 Inter,Arial,sans-serif}.ep-room-tag-row small{grid-column:2;font-size:11px;color:#617085}.ep-room-tag-row input[type="checkbox"]{accent-color:#185bff}
/* Editing controls remain legible at compact viewport sizes. */
.sp-subpage .ep-mode{font-size:11px;line-height:1.35}.sp-subpage .ep-mode span{font-size:11px}
@media(max-width:900px){.sp-subpage .ep-pedit-settings{order:-1}}
@media(max-width:520px){.sp-subpage .ep-mode{font-size:11px;padding-inline:7px}.sp-subpage :is(.ep-canvas-button-group button,.ep-narrow-panels button,.ep-zoom select,.ep-view-tabs button,.ep-overlay-tabs button){font-size:11px}.sp-subpage .ep-mode-row{gap:3px}}

/* Import stays one decision and one primary action; long files reveal navigation only when needed. */
.sp-subpage .ep-scale-panel #ep-scale-source-chooser{display:grid;gap:10px}
.sp-subpage .ep-scale-panel .ep-import-destination{margin:0}
.sp-subpage .ep-scale-panel #ep-background-import-mode-help{margin:0 0 3px}
.sp-subpage .ep-import-selection-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:5px 0 0;color:#26344b;font-size:12px}
.sp-subpage .ep-import-selection-head .ep-hint{margin:0;white-space:nowrap}
.sp-subpage .ep-scale-panel .ep-pdf-pages{grid-template-columns:repeat(2,minmax(0,1fr));max-height:180px;margin:0;padding:2px}
.sp-subpage .ep-scale-panel .ep-pdf-pages label{min-height:36px;padding:6px 8px}
.sp-subpage .ep-import-selection-actions{display:flex;gap:14px}
.sp-subpage .ep-import-selection-actions button{min-height:28px;padding:2px 0}
.sp-subpage .ep-scale-panel .ep-import-primary{width:100%;background:#185bff;border-color:#185bff;color:#fff}
.sp-subpage .ep-scale-panel .ep-import-primary:hover{background:#1248ce;border-color:#1248ce}
.sp-subpage .ep-import-limit{margin:3px 0 0;color:#66758b;font-size:10px;line-height:1.45}
.sp-subpage .ep-import-one-page{margin-top:2px}
.sp-subpage .ep-import-one-page .ep-background-preview{max-height:120px}
.sp-subpage .ep-scale-panel #ep-background-page-navigation .ep-field{margin-top:7px}
.sp-subpage .ep-scale-panel #ep-background-page-navigation .ep-background-actions{display:flex;align-items:center;justify-content:space-between;gap:5px}
.sp-subpage .ep-scale-side-note{margin:8px 0 16px;color:#52647e;font-size:12px;line-height:1.45}
.sp-subpage .ep-scale-setup .ep-properties #ep-scale-inspector{display:block}
.sp-subpage .ep-properties #ep-scale-inspector{display:none}
.sp-subpage .ep-scale-setup .ep-properties :is(#ep-selection-empty,#ep-creation-settings,#ep-multi-wall-properties,#ep-room-inspector,#ep-device-inspector,#ep-wall-inspector,#ep-opening-inspector){display:none!important}
.sp-subpage .ep-properties #ep-scale-inspector>h3{margin:0 0 12px;font-size:15px;color:#26344b}
.sp-subpage #ep-import-inspector h3{margin:0 0 12px;font-size:15px;color:#26344b}
.sp-subpage #ep-import-inspector img{display:block;width:100%;max-height:260px;object-fit:contain;background:#f5f7fa;border:1px solid #e0e6ed;border-radius:5px}
.sp-subpage #ep-import-inspector p{font-size:11px;line-height:1.5;color:#53647c}
.sp-subpage .ep-properties #ep-scale-inspector #ep-background-active{margin:0}
.sp-subpage .ep-properties #ep-scale-inspector .ep-field{margin-top:12px}
.sp-subpage .ep-properties #ep-scale-inspector .ep-scale-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.sp-subpage .ep-properties #ep-scale-inspector .ep-scale-actions>button{min-width:0}
.sp-subpage .ep-properties #ep-scale-inspector #ep-calibration-points{margin:8px 0}
.sp-subpage .ep-properties #ep-scale-inspector #ep-scale-feedback{margin:10px 0}
.sp-subpage .ep-room-tag-row [data-draw-room-tag]{grid-column:2;justify-self:start;padding:4px 0;min-height:30px}
.sp-subpage .ep-scale-point-hit{cursor:grab;outline:none}
.sp-subpage .ep-scale-point-hit:active{cursor:grabbing}
.sp-subpage .ep-scale-point-hit:focus-visible{stroke:#185bff;stroke-width:.13}
/* Scale uses one contextual palette; the source chooser replaces it temporarily. */
.sp-subpage .ep-workbench.ep-scale-setup:not(.ep-panel-mode){grid-template-columns:56px minmax(0,1fr)!important}
.sp-subpage .ep-scale-setup .ep-library{display:none!important}
.sp-subpage .ep-scale-setup .ep-properties{display:block!important;position:absolute;z-index:26;top:106px;right:14px;bottom:auto;left:auto;width:min(292px,calc(100% - 78px));height:auto;max-height:calc(100% - 188px);border:1px solid #d9e1eb;border-radius:11px;box-shadow:0 16px 40px #17243b24;overflow:auto}
.sp-subpage .ep-scale-setup .ep-properties .ep-rail-heading{display:none}
.sp-subpage .ep-scale-setup .ep-properties .ep-inspector{padding:12px}
.sp-subpage .ep-scale-palette-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:-5px 0 8px}
.sp-subpage .ep-scale-setup:has(#ep-scale-source-chooser:not([hidden])) .ep-properties{display:none!important}
.sp-subpage .ep-scale-setup:has(#ep-scale-source-chooser:not([hidden])) .ep-library{display:block!important;position:absolute;z-index:27;top:106px;right:14px;bottom:auto;left:auto;width:min(330px,calc(100% - 78px));height:auto;max-height:calc(100% - 188px);border:1px solid #d9e1eb;border-radius:11px;box-shadow:0 16px 40px #17243b24;overflow:auto}
.sp-subpage .ep-scale-setup .ep-scale-choose-file{width:100%;margin:0 0 8px}
@media(max-width:520px){
  .sp-subpage .ep-scale-setup .ep-properties,.sp-subpage .ep-scale-setup:has(#ep-scale-source-chooser:not([hidden])) .ep-library{top:auto;right:7px;bottom:70px;left:7px;width:auto;max-height:min(50%,420px)}
}
@media(max-width:1180px){
  .sp-subpage .ep-scale-setup:has(#ep-plan[data-mode="calibrate"]) .ep-properties{top:auto;right:14px;bottom:70px;left:auto;width:auto;max-height:none}
  .sp-subpage .ep-scale-setup:has(#ep-plan[data-mode="calibrate"]) #ep-scale-inspector>:not(#ep-background-active),
  .sp-subpage .ep-scale-setup:has(#ep-plan[data-mode="calibrate"]) #ep-background-active>:not(.ep-scale-actions),
  .sp-subpage .ep-scale-setup:has(#ep-plan[data-mode="calibrate"]) #ep-calibrate-apply{display:none!important}
  .sp-subpage .ep-scale-setup:has(#ep-plan[data-mode="calibrate"]) #ep-scale-inspector .ep-scale-actions{display:block}
  .sp-subpage .ep-scale-setup:has(#ep-plan[data-mode="calibrate"]) #ep-calibrate-cancel{min-height:44px}
}
@media print{.sp-subpage .ep-scale-setup .ep-properties,.sp-subpage .ep-scale-setup:has(#ep-scale-source-chooser:not([hidden])) .ep-library{display:none!important}}

/* Drawing modes occupy their own reserved row below the canvas. */
.sp-subpage .ep-canvas-dock{justify-content:space-between;gap:12px}
.sp-subpage .ep-bottom-tools{display:flex;align-items:center;gap:3px;min-width:0;flex:1;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#bdc8d7 transparent}
.sp-subpage .ep-bottom-tools .ep-mode{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:6px;width:auto;min-height:38px;padding:6px 10px;font-size:11px;white-space:nowrap}
.sp-subpage .ep-bottom-tools .ep-mode svg{width:17px;height:17px;flex:none}
.sp-subpage .ep-bottom-tools .ep-mode:focus-visible{outline:2px solid #185bff;outline-offset:-2px}
.sp-subpage .ep-canvas-dock>.ep-coordinate-disclosure{flex:none}
.sp-subpage .ep-toolbar-more{display:none}
.sp-subpage #ep-library-devices .ep-coordinate-disclosure{border-top:1px solid #e2e8f0;margin-top:16px;padding-top:10px}
.sp-subpage #ep-library-devices .ep-coordinate-disclosure>summary{display:flex;align-items:center;min-height:40px;background:transparent;color:#185bff;font-size:12px;font-weight:600}
.sp-subpage #ep-library-devices .ep-coordinate-body{position:static;width:100%;box-sizing:border-box;padding:12px 0;border:0;border-radius:0;box-shadow:none}
.sp-subpage .ep-panel-mode .ep-bottom-tools{display:none}
.sp-subpage .ep-tool-rail{display:flex;justify-content:flex-start;flex-direction:column;align-items:center}
.sp-subpage .ep-tool-rail .ep-rail-actions{margin-top:0;padding-top:0;border:0}
@media(max-width:520px){.sp-subpage .ep-tool-rail{flex-direction:row;justify-content:center}.sp-subpage .ep-tool-rail .ep-rail-actions{flex:0 1 auto;display:flex;justify-content:center;gap:12px;width:100%}.sp-subpage .ep-tool-rail .ep-rail-action{width:auto;min-width:86px}.sp-subpage .ep-canvas-dock{padding:5px 8px;gap:6px}.sp-subpage .ep-bottom-tools .ep-mode{min-height:44px;padding:8px 10px;font-size:12px}.sp-subpage .ep-bottom-tools .ep-mode span{font-size:12px}.sp-subpage .ep-bottom-tools .ep-mode svg{width:17px;height:17px}.sp-subpage .ep-toolbar-more{display:flex;align-items:center;justify-content:center;flex:none;min-height:44px;padding:0 3px;border:0;background:#fff;color:#52647e;font:600 12px/1 Inter,Arial,sans-serif;cursor:pointer}.sp-subpage #ep-library-devices .ep-coordinate-disclosure>summary{min-height:44px}}

.sp-subpage .ep-inspector-mode-toggle{display:flex;gap:3px;padding:3px;margin:0 0 14px;background:#f1f4f8;border-radius:7px}
.sp-subpage .ep-inspector-mode-toggle button{flex:1;min-height:34px;border:0;border-radius:5px;background:transparent;color:#52647b;font:600 12px/1.2 Inter,Arial,sans-serif;cursor:pointer}
.sp-subpage .ep-inspector-mode-toggle button[aria-pressed=true]{background:#fff;color:#185bff;box-shadow:0 1px 4px #17243b16}
.sp-subpage .ep-inspector-mode-toggle button:focus-visible{outline:2px solid #185bff;outline-offset:1px}
.sp-subpage .ep-context-review{display:block;width:100%;min-height:36px;margin:-4px 0 12px;padding:7px 0;border:0;background:none;color:#185bff;text-align:left;font:600 12px/1.35 Inter,Arial,sans-serif;cursor:pointer}
.sp-subpage .ep-context-review::after{content:"  →"}
.sp-subpage .ep-context-review[hidden]{display:none}
.sp-subpage .ep-context-review:focus-visible{outline:2px solid #185bff;outline-offset:2px}
.sp-subpage #ep-creation-settings>.ep-hint{display:none}
.sp-subpage #ep-library-structure .ep-structure-openings{display:none}
.sp-subpage #ep-library-structure .ep-structure-marking .ep-structure-actions,.sp-subpage #ep-library-structure .ep-structure-marking>.ep-delete{display:none}
.sp-subpage #ep-library-structure #ep-detect-walls:disabled~.ep-detection-detail{display:none}
.sp-subpage .ep-material-choices{border:0;margin:0 0 16px;padding:0;min-width:0}
.sp-subpage .ep-material-choices legend{padding:0;margin:0 0 5px;color:#536178;font-size:11px;font-weight:600}
.sp-subpage .ep-material-choice{display:flex;align-items:center;gap:9px;min-height:33px;padding:5px 8px;border-radius:5px;color:#35465e;font-size:12px;cursor:pointer}
.sp-subpage .ep-material-choice:hover{background:#f2f5fa}
.sp-subpage .ep-material-choice:has(input:checked){background:#eaf0ff;color:#164baf;font-weight:600}
.sp-subpage .ep-material-choice:has(input:focus-visible){outline:2px solid #185bff;outline-offset:-2px}
.sp-subpage .ep-material-choice input{width:14px;height:14px;flex:none;margin:0;accent-color:#185bff}
.sp-subpage .ep-material-swatch{width:17px;height:17px;flex:none;border:1px solid #abb9c9;border-radius:3px;background:#cbd4df}
.sp-subpage .ep-material-wood{background:#ae835d}.sp-subpage .ep-material-brick{background:#b96659}.sp-subpage .ep-material-concrete{background:#a4aab0}.sp-subpage .ep-material-glass{background:#a6d2e8}.sp-subpage .ep-material-metal{background:#687d8f}

/* The drawing owns the default workspace; tasks and properties appear on demand. */
.sp-subpage .ep-workbench.ep-library-collapsed:not(.ep-panel-mode) .ep-library{display:none}
.sp-subpage .ep-workbench.ep-inspector-collapsed:not(.ep-scale-setup):not(.ep-panel-mode) .ep-properties{display:none}
.sp-subpage .ep-workbench.ep-library-collapsed.ep-inspector-collapsed:not(.ep-scale-setup):not(.ep-panel-mode){grid-template-columns:56px minmax(0,1fr)}
.sp-subpage .ep-workbench.ep-library-collapsed:not(.ep-inspector-collapsed):not(.ep-panel-mode){grid-template-columns:56px minmax(0,1fr) 264px}
.sp-subpage .ep-workbench.ep-inspector-collapsed:not(.ep-library-collapsed):not(.ep-scale-setup):not(.ep-panel-mode){grid-template-columns:56px 238px minmax(0,1fr)}
.sp-subpage .ep-workbench.ep-scale-setup.ep-library-collapsed:not(.ep-panel-mode){grid-template-columns:56px minmax(0,1fr) 264px}
.sp-subpage .ep-rail-actions{margin:0;padding:0;gap:5px}
.sp-subpage .ep-tool-rail{padding:8px 6px}
.sp-subpage :is(.ep-legend-disclosure,.ep-inventory-disclosure,.ep-method){padding:11px 0}
.sp-subpage .ep-review-disclosure{border-bottom:1px solid var(--ep-line);padding:12px 0;margin:0}
.sp-subpage .ep-review-disclosure>summary{cursor:pointer;color:#34435a;font-size:13px;font-weight:600}
.sp-subpage .ep-review-disclosure>summary span{margin-left:8px;color:#657083;font-size:11px;font-weight:400}
.sp-subpage .ep-review-body{padding:5px 0 0}
.sp-subpage .ep-stage-help{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:521px) and (max-width:1380px){
  .sp-subpage .ep-workbench.ep-library-collapsed.ep-inspector-collapsed:not(.ep-scale-setup):not(.ep-panel-mode){grid-template-columns:52px minmax(0,1fr)}
  .sp-subpage .ep-workbench.ep-library-collapsed:not(.ep-inspector-collapsed):not(.ep-panel-mode){grid-template-columns:52px minmax(0,1fr) 242px}
  .sp-subpage .ep-workbench.ep-inspector-collapsed:not(.ep-library-collapsed):not(.ep-scale-setup):not(.ep-panel-mode){grid-template-columns:52px 216px minmax(0,1fr)}
  .sp-subpage .ep-workbench.ep-scale-setup.ep-library-collapsed:not(.ep-panel-mode){grid-template-columns:52px minmax(0,1fr) 242px}
}
@media(min-width:521px) and (max-width:1180px){
  .sp-subpage .ep-workbench.ep-library-collapsed:not(.ep-panel-mode),.sp-subpage .ep-workbench.ep-scale-setup.ep-library-collapsed:not(.ep-panel-mode){grid-template-columns:52px minmax(0,1fr)}
}
@media(max-width:520px){
  .sp-subpage .ep-workbench.ep-library-collapsed.ep-inspector-collapsed:not(.ep-scale-setup):not(.ep-panel-mode){grid-template-columns:minmax(0,1fr)}
  .sp-subpage .ep-workbench.ep-library-collapsed:not(.ep-panel-mode),.sp-subpage .ep-workbench.ep-scale-setup.ep-library-collapsed:not(.ep-panel-mode),.sp-subpage .ep-workbench.ep-inspector-collapsed:not(.ep-library-collapsed):not(.ep-scale-setup):not(.ep-panel-mode){grid-template-columns:1fr}
  .sp-subpage .ep-tool-rail .ep-rail-actions{flex:1 1 auto;gap:4px}
  .sp-subpage .ep-tool-rail .ep-rail-action{min-width:0;flex:1 1 0}
  .sp-subpage #ep-focus{flex:none;width:38px;font-size:0;padding:5px}
  .sp-subpage #ep-focus::before{content:"⛶";font-size:17px;line-height:1}
  .sp-subpage .ep-bottom-tools{scrollbar-width:auto;scrollbar-color:#8296b3 #e7ebf2}
}
@media print{.sp-subpage .ep-workbench.ep-library-collapsed:not(.ep-panel-mode),.sp-subpage .ep-workbench.ep-inspector-collapsed:not(.ep-panel-mode){display:block}.sp-subpage .ep-review-disclosure{display:block;border:0;padding:0}.sp-subpage .ep-review-disclosure>summary{display:none}.sp-subpage .ep-review-disclosure:not([open])>.ep-review-body{display:block!important}}

/* Context palettes float over the drawing; the stage keeps its width. */
.sp-subpage .ep-workbench:not(.ep-scale-setup):not(.ep-panel-mode).ep-library-collapsed{grid-template-columns:56px minmax(0,1fr)}
.sp-subpage .ep-workbench:not(.ep-scale-setup):not(.ep-panel-mode):not(.ep-library-collapsed){grid-template-columns:56px 238px minmax(0,1fr)}
.sp-subpage .ep-workbench:not(.ep-scale-setup):not(.ep-panel-mode) .ep-properties{position:absolute;z-index:24;top:106px;right:14px;bottom:auto;width:min(284px,calc(100% - 76px));height:auto;max-height:calc(100% - 210px);border:1px solid #d9e1eb;border-radius:12px;box-shadow:0 16px 40px #17243b24;overflow:auto}
.sp-subpage .ep-workbench:not(.ep-scale-setup):not(.ep-panel-mode) .ep-properties .ep-rail-heading{padding:10px 12px 7px}
.sp-subpage .ep-workbench:not(.ep-scale-setup):not(.ep-panel-mode) .ep-properties .ep-panel-close{display:block;width:34px;height:34px}
.sp-subpage .ep-workbench:not(.ep-scale-setup):not(.ep-panel-mode) .ep-properties .ep-inspector{padding:0 12px 12px}
.sp-subpage .ep-workbench.ep-review-open:not(.ep-scale-setup) .ep-properties{display:none!important}
.sp-subpage .ep-workbench.ep-contents-open :is(.ep-library,.ep-properties,.ep-review-tray){display:none!important}
.sp-subpage .ep-scale-setup.ep-contents-open:has(#ep-scale-source-chooser:not([hidden])) .ep-library{display:none!important}
.sp-subpage .ep-plan-contents{position:absolute;z-index:30;top:106px;right:14px;display:flex;flex-direction:column;width:min(360px,calc(100% - 78px));max-height:calc(100% - 180px);min-height:0;border:1px solid #d7e0eb;border-radius:11px;background:#fff;box-shadow:0 16px 40px #17243b24;overflow:hidden}
.sp-subpage .ep-contents-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;padding:12px 12px 8px}
.sp-subpage .ep-contents-head h2{margin:0;color:#26344b;font:600 14px/1.3 Inter,Arial,sans-serif}
.sp-subpage .ep-contents-head button{display:grid;place-items:center;width:36px;height:36px;flex:none;border:0;border-radius:6px;background:transparent;color:#52647c;font:400 24px/1 Inter,Arial,sans-serif;cursor:pointer}
.sp-subpage .ep-contents-head button:hover{background:#edf3ff;color:#185bff}
.sp-subpage .ep-contents-tabs{display:flex;flex:none;gap:2px;padding:0 10px 8px;border-bottom:1px solid #e1e7ef}
.sp-subpage .ep-contents-tabs button{flex:1;min-height:38px;padding:7px 8px;border:0;border-radius:6px;background:transparent;color:#52647c;font:600 12px/1.2 Inter,Arial,sans-serif;cursor:pointer}
.sp-subpage .ep-contents-tabs button[aria-selected=true]{background:#eaf0ff;color:#185bff}
.sp-subpage .ep-contents-body{min-height:0;overflow:auto;padding:12px;scrollbar-width:thin;scrollbar-color:#b9c7d7 transparent}
.sp-subpage .ep-plan-contents .ep-inventory{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding:0}
.sp-subpage .ep-plan-contents .ep-inventory-card{padding:0}
.sp-subpage .ep-plan-contents .ep-inventory-head{margin:0 0 4px}
.sp-subpage .ep-plan-contents .ep-inventory-head h2{font-size:12px}
.sp-subpage .ep-plan-contents .ep-inventory-list{max-height:none;overflow:visible}
.sp-subpage .ep-plan-contents .ep-inventory-item{padding:9px 8px}
.sp-subpage .ep-plan-contents .ep-inventory-item-sub{font-size:11px;line-height:1.4}
.sp-subpage .ep-plan-contents .ep-count-strip{font-size:11px}
.sp-subpage .ep-plan-contents .ep-legend{grid-template-columns:minmax(0,1fr);gap:0;margin:0;padding:0}
.sp-subpage .ep-plan-contents .ep-legend-item{min-height:39px;font-size:12px}
.sp-subpage .ep-contents-count{margin:0 0 7px;color:#627188;font-size:12px}
.sp-subpage .ep-plan-contents .ep-method p{margin:0 0 14px;max-width:none;font-size:12px;line-height:1.55}
.sp-subpage .ep-plan-contents .ep-empty-list{margin:6px 0 0;font-size:12px;line-height:1.45}
.sp-subpage .ep-workbench:not(.ep-scale-setup):not(.ep-panel-mode) .ep-properties:not([hidden]) .ep-field{margin-top:8px}
.sp-subpage #ep-room-tag-inspector .ep-hint{margin:8px 0;color:#5a6d84}
.sp-subpage #ep-draw-room-area{display:block;width:100%;min-height:38px;margin:8px 0 2px;text-align:left}
.sp-subpage #ep-plan[data-mode=draw-area]{cursor:crosshair}
.sp-subpage .ep-svg-room-tag{cursor:grab}.sp-subpage .ep-svg-room-tag:active{cursor:grabbing}
.sp-subpage #ep-plan .ep-svg-room-tag:focus{outline:none}
.sp-subpage .ep-svg-room-tag:focus-visible rect:first-child{stroke:#185bff;stroke-width:.16}
.sp-subpage #ep-wall-suggestions [data-wall-suggestion],.sp-subpage #ep-room-tag-suggestions [data-room-tag-suggestion]{cursor:pointer}
.sp-subpage #ep-wall-suggestions [data-wall-suggestion]:focus-visible,.sp-subpage #ep-room-tag-suggestions [data-room-tag-suggestion]:focus-visible{outline:2px solid #185bff;outline-offset:2px}
.sp-subpage .ep-plan-card{position:relative}
.sp-subpage .ep-review-tray{position:absolute;z-index:27;top:118px;right:16px;width:min(318px,calc(100% - 28px));max-height:calc(100% - 205px);overflow:auto;padding:12px;border:1px solid #d7e0ea;border-radius:12px;background:#fff;box-shadow:0 18px 45px #17243b30;color:#2c3d55}
.sp-subpage .ep-review-tray[hidden]{display:none}
.sp-subpage .ep-review-tray-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}
.sp-subpage .ep-review-tray-head strong{font:650 14px/1.3 Inter,Arial,sans-serif}
.sp-subpage .ep-review-tray-head button{width:36px;height:36px;border:0;border-radius:6px;background:#f2f5f8;color:#40536d;font-size:22px;cursor:pointer}
.sp-subpage .ep-review-tray :is(.ep-structure-detect,.ep-room-tags){margin:0;padding:0;border:0}
.sp-subpage .ep-review-tray .ep-structure-detect>button,.sp-subpage .ep-review-tray #ep-find-room-tags{width:auto;min-height:36px;padding:7px 10px;margin:0 0 6px}
.sp-subpage .ep-review-tray .ep-detection-detail{margin:4px 0}
.sp-subpage .ep-review-tray :is(#ep-wall-review>h3,#ep-wall-review>p){display:none}
.sp-subpage .ep-review-tray .ep-hint{font-size:12px;line-height:1.4;margin:5px 0 8px}
.sp-subpage .ep-review-tray .ep-structure-actions{margin:5px 0;gap:6px}
.sp-subpage .ep-review-tray .ep-structure-actions>button{min-height:34px}
.sp-subpage .ep-review-tray #ep-wall-review-type{max-width:100%}
.sp-subpage .ep-review-details{margin:5px 0;border-top:1px solid #e4e9f0}
.sp-subpage .ep-review-details>summary{padding:8px 0;font:600 12px/1.3 Inter,Arial,sans-serif;color:#415775;cursor:pointer}
.sp-subpage .ep-review-details :is(#ep-wall-review-list,#ep-room-tags-list){max-height:160px;overflow:auto}
.sp-subpage .ep-review-tray :is(#ep-room-tags-apply,#ep-wall-review-apply){min-height:38px}
.sp-subpage .ep-review-tray #ep-room-tags-cancel{min-height:36px}
/* A centered tool capsule leaves the canvas dominant and preserves every tool's name. */
.sp-subpage .ep-canvas-dock{align-self:center;justify-content:center;flex:0 0 auto;width:max-content;max-width:calc(100% - 20px);min-height:52px;margin:0 auto 10px;padding:4px;border:1px solid #d9e1eb;border-radius:13px;background:#fff;box-shadow:0 8px 25px #17243b20}
.sp-subpage .ep-bottom-tools{flex:0 1 auto;gap:2px;overflow-x:auto;scrollbar-width:none}
.sp-subpage .ep-bottom-tools::-webkit-scrollbar{height:0}
.sp-subpage .ep-bottom-tools .ep-mode{position:relative;width:44px;min-width:44px;height:44px;min-height:44px;padding:8px;border-radius:9px;font-size:0}
.sp-subpage .ep-bottom-tools .ep-mode svg{width:21px;height:21px}
.sp-subpage .ep-bottom-tools .ep-mode span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sp-subpage .ep-bottom-tools .ep-mode[aria-pressed=true]{background:#185bff;color:#fff}
.sp-subpage .ep-bottom-tools #ep-bottom-devices{width:auto;min-width:112px;gap:8px;padding:8px 12px;font-size:12px;font-weight:600;border-left:1px solid #e4e9f0;border-radius:0 9px 9px 0}
.sp-subpage .ep-bottom-tools #ep-bottom-devices span{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:nowrap}
.sp-subpage .ep-tool-tip{position:absolute;z-index:28;bottom:69px;left:50%;transform:translateX(-50%);max-width:220px;padding:6px 10px;border-radius:6px;background:#243550;color:#fff;font:500 12px/1.2 Inter,Arial,sans-serif;white-space:nowrap;pointer-events:none}
.sp-subpage .ep-tool-tip[hidden]{display:none}
.sp-subpage .ep-status{position:absolute;z-index:23;left:50%;bottom:71px;transform:translateX(-50%);width:max-content;max-width:min(430px,calc(100% - 26px));min-height:0;padding:8px 12px;border:1px solid #d9e1eb;border-radius:8px;background:#fff;box-shadow:0 8px 22px #17243b18;color:#40536d;font-size:12px;line-height:1.35;text-align:center;pointer-events:none}
.sp-subpage .ep-status:empty{display:none}
.sp-subpage .ep-toolbar-more{border-radius:8px;min-width:38px}
@media(max-width:1180px){.sp-subpage .ep-workbench:not(.ep-scale-setup):not(.ep-panel-mode){grid-template-columns:52px minmax(0,1fr)!important}.sp-subpage .ep-workbench:not(.ep-scale-setup):not(.ep-panel-mode) .ep-properties{top:92px;right:10px;bottom:auto;width:min(284px,calc(100% - 68px));max-height:calc(100% - 180px)}}
@media(max-width:520px){.sp-subpage .ep-workbench:not(.ep-scale-setup):not(.ep-panel-mode){grid-template-columns:1fr!important}.sp-subpage .ep-workbench:not(.ep-scale-setup):not(.ep-panel-mode) .ep-properties{top:62px;right:7px;bottom:auto;width:min(302px,calc(100% - 14px));max-height:calc(100% - 142px)}.sp-subpage .ep-review-tray{top:112px;right:7px;width:calc(100% - 14px);max-height:calc(100% - 190px)}.sp-subpage .ep-canvas-dock{max-width:calc(100% - 12px);margin-bottom:8px;min-height:52px;padding:4px}.sp-subpage .ep-bottom-tools .ep-mode{width:44px;min-width:44px;height:44px;min-height:44px;padding:9px}.sp-subpage .ep-bottom-tools #ep-bottom-devices{min-width:44px;width:44px;padding:9px}.sp-subpage .ep-bottom-tools #ep-bottom-devices span{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}.sp-subpage .ep-toolbar-more{min-height:44px;padding:0 5px;font-size:12px}.sp-subpage .ep-status{bottom:69px;font-size:12px}.sp-subpage .ep-tool-tip{bottom:67px}}
@media print{.sp-subpage :is(.ep-review-tray,.ep-tool-tip){display:none!important}.sp-subpage .ep-status{display:none!important}}
.sp-subpage .ep-workbench:not(.ep-scale-setup):not(.ep-panel-mode):not(.ep-inspector-collapsed) .ep-properties{display:block}
.sp-subpage .ep-status{bottom:120px}
@media(max-width:520px){.sp-subpage .ep-status{bottom:119px}.sp-subpage .ep-workbench:not(.ep-scale-setup):not(.ep-panel-mode):not(.ep-inspector-collapsed) .ep-properties{display:block}}
.sp-subpage .ep-workbench:not(.ep-scale-setup):not(.ep-panel-mode) .ep-properties #ep-creation-settings{padding:0}
.sp-subpage .ep-workbench:not(.ep-scale-setup):not(.ep-panel-mode) .ep-properties #ep-create-room-fields{padding:0 0 5px}
.sp-subpage .ep-workbench:not(.ep-scale-setup):not(.ep-panel-mode) .ep-inspector-mode-toggle{margin-bottom:8px}
.sp-subpage .ep-workbench:not(.ep-scale-setup):not(.ep-panel-mode) .ep-context-review{margin:3px 0 4px}
.sp-subpage .ep-scale-setup .ep-properties #ep-room-tag-inspector{display:none!important}
@media(max-width:520px){.sp-subpage .ep-workbench:not(.ep-scale-setup):not(.ep-panel-mode) .ep-properties{top:auto;bottom:69px;max-height:50%}}
@media(max-width:520px){.sp-subpage .ep-workbench:not(.ep-scale-setup):not(.ep-panel-mode) .ep-properties{top:62px;bottom:auto;max-height:calc(100% - 140px)}}

@media(max-width:1180px){
  .sp-subpage .ep-canvas-more{display:block}
  .sp-subpage .ep-canvas-control-cluster{overflow:visible}
  .sp-subpage .ep-canvas-more .ep-narrow-panels{position:absolute;top:calc(100% + 7px);left:0;z-index:33;display:grid;gap:2px;min-width:132px;padding:5px;border:1px solid #d9e2ed;border-radius:9px;background:#fff;box-shadow:0 12px 28px #253d5b24}
  .sp-subpage .ep-canvas-more .ep-narrow-panels button{justify-content:flex-start;min-height:38px;width:100%;padding:7px 10px}
}
@media(max-width:760px){
  .sp-subpage .ep-plan-head{height:50px;min-height:50px;padding:5px 9px;gap:6px;flex-wrap:nowrap}
  .sp-subpage .ep-plan-head>.ep-project-identity{display:flex;flex:1 1 0;width:auto;min-width:0;justify-content:flex-start}
  .sp-subpage .ep-header-actions{gap:4px;min-width:0}
  .sp-subpage .ep-level-controls{width:auto;margin:0;gap:3px;flex:none}
  .sp-subpage .ep-level-picker select{width:94px;min-height:36px;font-size:11px}
  .sp-subpage .ep-level-menu>summary{width:34px;min-height:36px}
  .sp-subpage .ep-project-file>summary{min-width:64px;min-height:36px;padding:6px 8px;font-size:11px}
  .sp-subpage .ep-connected-toolbar{top:59px;left:8px;right:8px;min-height:0;padding:0;gap:5px;background:transparent}
  .sp-subpage .ep-canvas-control-cluster{max-width:calc(100% - 76px);min-height:40px}
  .sp-subpage .ep-canvas-actions{width:auto;max-width:none;gap:2px}
  .sp-subpage .ep-canvas-button-group[aria-label="Zoom controls"]{display:flex}
  .sp-subpage .ep-canvas-button-group[aria-label="History and workspace controls"]{margin-left:0;flex-wrap:nowrap}
  .sp-subpage .ep-canvas-button-group button,.sp-subpage .ep-view-tabs button{min-height:32px;min-width:32px;padding:5px 6px;font-size:11px}
  .sp-subpage .ep-zoom select{width:60px;min-height:32px;font-size:11px}
  .sp-subpage #ep-focus{width:32px;min-height:32px;padding:5px;font-size:0}
  .sp-subpage #ep-focus::before{content:none}
  .sp-subpage .ep-overlay-menu>summary{min-width:68px;min-height:40px;padding:6px;font-size:11px}
  .sp-subpage .ep-stage-toolbar{top:106px;left:8px;max-width:calc(100% - 16px);min-height:0;padding:6px 8px;font-size:10px}
  .sp-subpage #ep-coordinate-readout{display:none}
}
@media(max-width:520px){
  .sp-subpage .ep-plan-contents{top:auto;right:7px;bottom:70px;left:7px;width:auto;max-height:min(63%,500px)}
  .sp-subpage .ep-contents-head button,.sp-subpage .ep-contents-tabs button{min-height:44px}
  .sp-subpage .ep-header-actions{width:auto}
  .sp-subpage .ep-header-history{padding-right:4px;margin-right:0}
  .sp-subpage .ep-header-history button{min-width:30px;min-height:34px;width:30px;padding:5px}
  .sp-subpage .ep-level-picker select{width:86px}
  .sp-subpage .ep-level-menu>summary{width:30px;min-height:34px}
  .sp-subpage .ep-project-file>summary{min-width:58px;min-height:34px;padding:5px 7px}
  .sp-subpage .ep-canvas-control-cluster{max-width:calc(100% - 72px);min-height:38px;padding:2px}
  .sp-subpage .ep-view-tabs{padding-right:3px;margin-right:1px}
  .sp-subpage .ep-view-tabs button,.sp-subpage .ep-canvas-button-group[aria-label="Zoom controls"] button,.sp-subpage .ep-canvas-more>summary{min-width:30px;width:30px;min-height:32px;padding:4px}
  .sp-subpage .ep-zoom{display:none}
  .sp-subpage .ep-overlay-menu>summary{min-width:62px;font-size:11px}
  .sp-subpage .ep-workbench,.sp-subpage .ep-workbench.ep-panel-mode{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
  .sp-subpage .ep-workbench.ep-scale-setup:not(.ep-panel-mode){grid-template-columns:minmax(0,1fr)!important}
  .sp-subpage .ep-content{grid-column:1;grid-row:1}
  .sp-subpage .ep-tool-rail{position:absolute;z-index:19;top:107px;left:7px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:47px;height:auto;padding:3px;border:1px solid #d6dfe9;border-radius:10px;background:#fff;box-shadow:0 5px 16px #253d5b1c;overflow:visible}
  .sp-subpage .ep-tool-rail .ep-rail-actions{display:flex;flex-direction:column;align-items:center;gap:2px;width:100%;min-width:0;margin:0;padding:0}
  .sp-subpage .ep-tool-rail .ep-rail-action{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;flex:none;width:40px;min-width:40px;min-height:47px;padding:4px 2px;border-radius:6px;font-size:11px;line-height:1.05}
  .sp-subpage .ep-tool-rail .ep-rail-action svg{width:17px;height:17px}
  .sp-subpage .ep-tool-rail .ep-rail-action span{font-size:11px}
  .sp-subpage .ep-panel-mode .ep-tool-rail{display:none}
  .sp-subpage .ep-stage-toolbar{left:61px;max-width:calc(100% - 69px)}
  .sp-subpage .ep-stage-scroll{padding:10px}
  .sp-subpage .ep-workbench:not(.ep-scale-setup):not(.ep-panel-mode) .ep-properties{top:105px;max-height:calc(100% - 180px)}
  .sp-subpage .ep-review-tray{top:106px;max-height:calc(100% - 180px)}
}
@media print{.sp-subpage :is(.ep-header-actions,.ep-connected-toolbar,.ep-stage-toolbar){display:none!important}}
@media print{.sp-subpage .ep-page #ep-plan-contents[hidden]{display:block!important}.sp-subpage .ep-plan-contents{position:static;width:100%;max-height:none;border:0;border-radius:0;box-shadow:none;overflow:visible}.sp-subpage .ep-contents-head,.sp-subpage .ep-contents-tabs,.sp-subpage .ep-plan-contents #ep-contents-symbols,.sp-subpage .ep-plan-contents #ep-contents-methods{display:none!important}.sp-subpage .ep-contents-body{overflow:visible;padding:0}.sp-subpage .ep-page #ep-contents-items[hidden]{display:block!important}.sp-subpage .ep-plan-contents .ep-inventory{grid-template-columns:1fr 1fr;gap:.15in;padding:.15in 0}.sp-subpage .ep-plan-contents .ep-inventory-list{max-height:none;overflow:visible}.sp-subpage .ep-plan-contents .ep-inventory-item{break-inside:avoid;padding:.05in}}
@media print{
  body.sp-subpage.ep-studio-page{padding:0!important}
  .sp-subpage #ep-plan{height:auto!important;min-height:0;break-inside:avoid}
  .sp-subpage :is(.ep-project-file-menu,.ep-stage-help,.ep-project-file>summary>span:last-child,.ep-level-menu){display:none!important}
  .sp-subpage .ep-plan-head{height:auto;min-height:0;padding:0 0 .12in}
  .sp-subpage .ep-project-file>summary{border:0;box-shadow:none;padding:0;min-height:0}
  .sp-subpage #ep-plan-title{font-size:14pt;white-space:normal}
  .sp-subpage #ep-plan-meta{position:static;clip:auto;width:auto;height:auto;margin:4pt 0;white-space:normal;font-size:8pt}
  .sp-subpage .ep-plan-contents .ep-inventory{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:.16in}
  .sp-subpage .ep-plan-contents .ep-inventory-head{break-after:avoid}
  .sp-subpage .ep-plan-contents :is(.ep-inventory-head h2,.ep-inventory-head strong,.ep-inventory-item-title){font-size:8pt}
  .sp-subpage .ep-plan-contents :is(.ep-inventory-item-sub,.ep-count-strip){font-size:7pt;line-height:1.35}
  .sp-subpage .ep-plan-contents .ep-inventory-item{padding:3pt 0;background:transparent;color:#24334a}
  .sp-subpage :is(#ep-edit-handles,#ep-draw-preview,#ep-calibration-layer,#ep-wall-suggestions,#ep-layout-suggestions){display:none!important}
}

/* Contextual studies stay with the device library. */
.ep-study-actions{display:flex;gap:6px;padding:4px 0 12px;flex-wrap:wrap}.ep-study-actions button{border:1px solid #dfe5ee;border-radius:8px;background:#fff;padding:8px 10px;color:#225bff;font:inherit;font-size:12px;cursor:pointer}.ep-study-actions button:hover{background:#f2f6ff}.ep-study-actions button:focus-visible{outline:2px solid #225bff;outline-offset:2px}

/* Compact palettes start below the project bar and canvas controls. */
.sp-subpage .ep-workbench{scroll-margin-top:70px}
@media (min-width:521px) and (max-width:1180px){
  .sp-subpage .ep-workbench.ep-show-library:not(.ep-scale-setup) .ep-library{top:106px;bottom:12px;left:64px;width:min(284px,calc(100% - 76px));height:auto;min-height:0;border:1px solid #d9e1eb;border-radius:11px;box-shadow:0 16px 40px #17243b24;overscroll-behavior:contain}
}
@media (max-width:520px){
  .sp-subpage .ep-workbench.ep-show-library:not(.ep-scale-setup) .ep-library{top:105px;right:7px;bottom:70px;left:7px;width:auto;height:auto;min-height:0;max-height:none;border:1px solid #d9e1eb;border-radius:11px;box-shadow:0 16px 40px #17243b24;overscroll-behavior:contain}
}
@media (max-width:1180px){
  .sp-subpage .ep-workbench:not(.ep-scale-setup):not(.ep-panel-mode) .ep-library{display:none}
  .sp-subpage .ep-workbench.ep-show-library:not(.ep-scale-setup):not(.ep-panel-mode) .ep-library{display:block;position:absolute;z-index:25}
  .sp-subpage .ep-narrow-panels #ep-show-library{display:block}
  .sp-subpage .ep-workbench.ep-show-library .ep-library>.ep-rail-heading{position:sticky;top:0;z-index:4;min-height:52px;border-bottom:1px solid #e7ebf0}
  .sp-subpage .ep-workbench.ep-show-library .ep-library .ep-panel-close{display:grid;place-items:center;width:40px;height:40px;flex:none}
}

/* Two full-width actions keep both labels legible in the device drawer. */
.sp-subpage #ep-library-devices .ep-study-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;padding:4px 0 12px}
.sp-subpage #ep-library-devices .ep-study-actions button{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:40px;padding:8px 10px;white-space:nowrap}

/* Selected symbol orientation stays visible beside placement properties. */
.ep-symbol-orientation-actions{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.ep-symbol-orientation-actions .ep-inline-button{flex:1 1 110px}
.sp-subpage .ep-symbol-orientation-actions #ep-device-rotate{background:#185bff;border-color:#185bff;color:#fff}
.sp-subpage .ep-symbol-orientation-actions #ep-device-rotate:hover{background:#104cde;border-color:#104cde;color:#fff}
.sp-subpage .ep-symbol-orientation-actions .ep-inline-button[aria-pressed="true"],.sp-subpage .ep-symbol-orientation-actions .ep-inline-button[aria-pressed="true"]:hover{background:#e8efff;border-color:#185bff;color:#1246b8}

/* Guided setup stays beside the plan, and detection starts above tool properties. */
.sp-subpage #ep-creation-settings .ep-context-review{margin:0;padding:9px 10px;background:#edf3ff;border-radius:7px;min-height:40px}
.sp-subpage #ep-creation-settings #ep-context-room-review{margin:5px 0 14px;background:#fff}
.sp-subpage .ep-review-tray #ep-wall-review>.ep-wall-review-guide{display:block}
.sp-subpage #ep-trace-missing-walls{width:100%;min-height:40px;margin:4px 0}
.sp-subpage .ep-plan-setup{position:absolute;z-index:26;top:112px;right:14px;width:min(310px,calc(100% - 28px));max-height:calc(100% - 195px);overflow:auto;padding:16px;background:#fff;border:1px solid #d9e1eb;border-radius:12px;color:#243550;box-shadow:0 12px 32px #17243b24}
.sp-subpage .ep-plan-setup[hidden],.sp-subpage .ep-resume-wall-review[hidden]{display:none}
.sp-subpage .ep-plan-setup>strong{display:block;font:650 15px/1.35 Inter,Arial,sans-serif}
.sp-subpage .ep-plan-setup>p{margin:8px 0 12px;font:400 13px/1.45 Inter,Arial,sans-serif;color:#52647b}
.sp-subpage .ep-setup-actions{display:grid;gap:6px}
.sp-subpage .ep-setup-actions button{min-height:40px;text-align:left}
.sp-subpage .ep-setup-actions #ep-setup-later{border:0;background:none;margin-top:4px}
.sp-subpage .ep-resume-wall-review{position:absolute;z-index:26;top:112px;left:18px;min-height:40px;max-width:calc(100% - 36px);padding:9px 14px;background:#185bff;border:0;border-radius:8px;color:#fff;font:600 13px/1.3 Inter,Arial,sans-serif;cursor:pointer}
@media(max-width:520px){.sp-subpage .ep-plan-setup{top:112px;right:7px;width:calc(100% - 14px)}.sp-subpage .ep-resume-wall-review{top:112px;left:10px}}
@media print{.sp-subpage :is(.ep-plan-setup,.ep-resume-wall-review){display:none!important}}

@media(max-width:900px){
.sp-subpage .ep-in-3d .ep-spatial-modes{margin-left:52px}
.sp-subpage .ep-in-3d .ep-spatial-controls{margin-left:52px;width:calc(100% - 52px)}
.sp-subpage .ep-workbench.ep-in-3d:not(.ep-scale-setup):not(.ep-panel-mode) .ep-properties{top:220px;right:7px;width:calc(100% - 64px);max-width:318px;max-height:min(300px,calc(100% - 400px))}
}

.sp-subpage .ep-lighting-preview-controls{position:absolute;z-index:23;left:18px;top:112px;display:flex;align-items:center;gap:6px;padding:5px;background:#fff;border:1px solid #d9e1eb;border-radius:9px;box-shadow:0 6px 18px #17243b16}
.sp-subpage .ep-lighting-preview-controls[hidden]{display:none}
.sp-subpage .ep-lighting-preview-controls select{width:auto;max-width:180px;height:38px;margin:0;border:1px solid #d9e1eb;border-radius:6px;padding:4px 8px;color:#26344b;background:#fff;font:12px Inter,Arial,sans-serif}
.sp-subpage .ep-lighting-preview-controls button{width:auto;min-height:38px;margin:0}
@media(max-width:520px){.sp-subpage .ep-view-tabs #ep-view-lighting{width:auto;min-width:56px}.sp-subpage .ep-lighting-preview-controls{top:112px;left:58px;max-width:calc(100% - 68px)}.sp-subpage .ep-lighting-preview-controls select{max-width:130px;min-height:44px}.sp-subpage .ep-lighting-preview-controls button{min-height:44px;font-size:12px}}
@media print{.sp-subpage .ep-lighting-preview-controls{display:none!important}}

/* New drawings use the existing history, while responsive contextual rows follow
   the measured top controls rather than a fixed browser-specific height. */
.sp-subpage .ep-start-blank{flex:none;min-height:36px;margin-left:8px;padding:7px 10px;border:1px solid #d5deea;border-radius:7px;background:#fff;color:#344b67;font:600 12px/1.2 Inter,Arial,sans-serif;white-space:nowrap;cursor:pointer}
.sp-subpage .ep-start-blank:hover{background:#edf3ff;border-color:#b8c8dd;color:#174bb1}
.sp-subpage .ep-start-blank:focus-visible{outline:2px solid #185bff;outline-offset:2px}
.sp-subpage .ep-lighting-preview-controls{top:var(--ep-controls-bottom,112px);max-width:calc(100% - 36px);flex-wrap:wrap}
.sp-subpage .ep-lighting-preview-controls select{min-width:0}
.sp-subpage .ep-stage-toolbar{top:calc(var(--ep-controls-bottom,112px) + var(--ep-lighting-controls-space,0px))}
@media(max-width:760px){.sp-subpage .ep-start-blank{display:none}}
@media(max-width:520px){.sp-subpage .ep-lighting-preview-controls{max-width:calc(100% - 68px)}}
@media print{.sp-subpage .ep-start-blank{display:none!important}}

/* PDF page selector: a bounded thumbnail beside each independent import choice. */
.sp-subpage .ep-scale-panel .ep-pdf-pages{max-height:290px;gap:7px}
.sp-subpage .ep-pdf-page-card{min-width:0;overflow:hidden;border:1px solid #dce2eb;border-radius:7px;background:#fff}
.sp-subpage .ep-pdf-page-card:has(input:checked){border-color:#8aacf8;background:#f7f9ff}
.sp-subpage .ep-pdf-page-card.is-previewed{box-shadow:inset 0 0 0 2px #185bff}
.sp-subpage .ep-pdf-page-preview{display:flex;align-items:center;justify-content:center;width:100%;height:92px;padding:5px;border:0;border-bottom:1px solid #e7ebf1;background:#f4f6f9;cursor:pointer}
.sp-subpage .ep-pdf-page-preview:hover{background:#eaf0ff}
.sp-subpage .ep-pdf-page-preview:focus-visible{outline:2px solid #185bff;outline-offset:-3px}
.sp-subpage .ep-pdf-page-preview img{display:block;max-width:100%;max-height:100%;object-fit:contain}
.sp-subpage .ep-pdf-page-preview img[hidden],.sp-subpage .ep-pdf-page-placeholder[hidden]{display:none}
.sp-subpage .ep-pdf-page-placeholder{color:#60718a;font:11px/1.3 Inter,Arial,sans-serif;text-align:center}
.sp-subpage .ep-scale-panel .ep-pdf-page-card label{min-height:36px;padding:6px 8px;border:0;border-radius:0;background:transparent;color:#243550}
