:root{color-scheme:dark;--blue:#27377b;--gold:#f3a717;--navy:#101933;--edge:#334369}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--navy);font-family:Tahoma,sans-serif}body{height:100dvh}.pl{height:100dvh;padding:0;display:flex;flex-direction:column;background:#101933;color:#f4f6ff;overflow:hidden}.pl-header{max-width:none;width:100%;margin:0;padding:14px 22px;gap:20px;border-bottom:1px solid #3a4772;background:#172450;min-height:78px}.pl-home{font-size:18px;font-weight:700;color:#f3a717;text-decoration:none;white-space:nowrap;padding:10px 15px;border:1px solid #f3a71755;border-radius:8px}.pl-header>div:first-of-type{margin-right:auto}.pl-header span{color:#bac8ed;font-size:9px;letter-spacing:2px}.pl h2{font-size:21px;margin:5px 0 0;letter-spacing:0;font-weight:600}.pl-header p{display:none}.pl-actions{margin:0;gap:6px}.pl button{background:#202f5a;color:#e5ecff;border:1px solid #42517b;border-radius:7px}.pl button:hover{background:#31447c;border-color:#f3a717}.pl button.active,.pl .pl-primary{background:#f3a717;color:#14203c;border-color:#f3a717;font-weight:700}.pl-shell{width:100%;max-width:none;flex:1;min-height:0;border:0;border-radius:0;grid-template-columns:162px minmax(0,1fr) 344px;background:#101933;box-shadow:none}.pl-rooms{background:#111c3b;border-right-color:#334369;padding:18px 12px;overflow:auto}.pl-rooms>button{color:#dee6fb;border-color:#35466f}.pl-rooms>button.active{background:#27377b;color:white;border-color:#f3a717}.pl-rooms b{color:#f3a717}.pl-rooms small,.pl-label,.pl-legend{color:#a7b8de}.pl-stage{min-height:0;display:flex;flex-direction:column;overflow:hidden;background:#101933}.pl-toolbar{padding:10px 14px;min-height:56px;border-color:#334369;flex-shrink:0;background:#172347}.pl-toggle{background:#101933}.pl-toggle button.active{background:#f3a717;color:#101933;box-shadow:none}.pl-toolbar>span{color:#c3d0eb}.pl-view{flex:1;min-height:160px;height:auto!important;position:relative;background:#f3f5f8}.pl-plan,.pl-plan *,.ds-fps-canvas{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.pl-plan,.ds-fps-canvas{touch-action:none}.pl-view .ds-fps-wrap,.pl-view .ds-fps-view{height:100%!important;min-height:0}.pl-view .ds-fps-wrap{position:absolute;inset:0}.pl-status{padding:10px 14px;gap:13px;border-color:#334369;background:#172347;color:#c0cceb;flex-shrink:0}.pl-status>span:first-child,.pl-status b{color:#f2f5ff}.pl-surface-tabs{padding:8px 12px;flex-wrap:nowrap;overflow-x:auto;flex-shrink:0}.pl-surface-tabs button{white-space:nowrap}.pl-surface-tabs button.active{background:#27377b;color:white;border-color:#f3a717}.pl-footnote{color:#a7b7d9;font-size:9px;padding:0 12px 7px;flex-shrink:0}.pl-settings{min-height:0;display:flex;flex-direction:column;background:#162141;border-color:#334369}.pl-settings nav{grid-template-columns:repeat(5,1fr);padding:10px 7px;border-color:#334369;flex-shrink:0}.pl-settings nav button{color:#c1ceec;font-size:10px}.pl-settings nav button.active{background:#f3a717;color:#13203c}.pl-panel{max-height:none!important;flex:1;min-height:0;overflow:auto;padding:18px;scrollbar-color:#566795 #162141}.pl h3{font-size:17px;color:#f5f7ff}.pl h4{color:#e2eaff;margin:20px 0 12px}.pl label,.pl .pl-panel small,.pl small{color:#b7c7e9}.pl input:not([type=checkbox]),.pl select,.pl textarea{color:#eef3ff;background:#0f1933;border-color:#425279}.pl input[type=range]{accent-color:#f3a717}.pl input[type=color]{background:#fff}.pl-note{background:#22315a;color:#cedbfa;border:1px solid #3e507b}.pl details{border-color:#3e4d6c}.pl summary,.pl details p{color:#b7c7e9}.pl-panel>p{color:#b7c7e9}.pl-result{background:#1e2d53;border-color:#3a4f7a}.pl-result p,.pl-result strong{color:#d7e3ff}.pl-paging{color:#b5c6e9}.pl-brand-logo{display:block;width:auto;max-width:116px;height:38px;object-fit:contain;background:white;padding:5px 9px;border-radius:5px;margin-bottom:12px}.pl-palette-top{border-bottom:1px solid #405078;padding-bottom:14px}.pl-palette-top h3{font-size:15px;margin-bottom:15px}.pl-palette-top .pl-swatches{max-height:220px}.pl-swatches b,.pl-swatches small{color:#d4e0f8}.pl-palette-top a,.pl-panel a{color:#fac569}.pl-inline{display:flex;gap:7px;margin:0 0 16px}.pl-inline button{flex:1;font-size:11px;padding:9px 6px}.pl-paint-popup{position:absolute;left:20px;top:20px;width:280px;max-width:calc(100% - 40px);padding:18px;border:1px solid #546386;background:#111b35f2;color:white;border-radius:12px;box-shadow:0 15px 40px #0005;backdrop-filter:blur(14px);z-index:6}.pl-popup-close{position:absolute;right:9px;top:9px;padding:2px 8px!important;font-size:20px!important}.pl-popup-brand{display:flex;align-items:center;gap:12px;padding-right:18px}.pl-popup-brand .pl-brand-logo{max-width:80px;height:30px;margin:0}.pl-popup-brand span{font-size:11px;color:#f3a717}.pl-custom-brand{font-size:9px!important;letter-spacing:1px;color:#c5d2ed!important}.pl-popup-colour{display:flex;gap:10px;margin:16px 0}.pl-popup-colour i{width:42px;height:42px;border:1px solid #fff4;border-radius:7px;flex-shrink:0}.pl-popup-colour b,.pl-popup-colour span{display:block;font-size:12px;line-height:1.7}.pl-popup-colour span{color:#b7c7e9}.pl-paint-popup p{font-size:11px;line-height:1.6}.pl-paint-popup label{margin-bottom:4px}.pl-paint-popup small{display:block;font-size:9px;color:#b9c6df}.pl-message{margin:0;border-radius:0;flex-shrink:0}.pl-view:fullscreen{height:100dvh!important}.pl :focus-visible{outline:2px solid #f3a717;outline-offset:2px}
.pl .pl-primary:hover{background:#ffbf42;color:#14203c}.pl-view:fullscreen{width:100vw!important;flex:none}.pl-view:fullscreen .ds-fps-wrap{height:100dvh!important}
@media(min-width:1700px){.pl-shell{grid-template-columns:185px minmax(0,1fr) 370px}.pl-header{min-height:86px}.pl-panel{padding:22px}}
@media(max-width:1050px){.pl-shell{grid-template-columns:122px minmax(0,1fr) 296px}.pl-header{padding:10px 12px}.pl h2{font-size:17px}.pl-actions button{padding:8px}.pl-panel{padding:13px}.pl-status{gap:7px}.pl-toolbar{flex-wrap:wrap}}
@media(max-width:740px){.pl-header{display:flex;flex-wrap:wrap;gap:8px;min-height:0;padding:9px}.pl-home{font-size:14px;padding:8px}.pl-header span{font-size:7px}.pl h2{font-size:14px}.pl-actions{width:100%;justify-content:flex-end}.pl-actions button{font-size:10px;padding:6px 9px}.pl-shell{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:54px minmax(210px,1fr) 32vh}.pl-rooms{display:flex;padding:6px;overflow-x:auto;border:0;gap:5px}.pl-rooms>button{min-width:105px;padding:6px;margin:0}.pl-rooms small{display:none}.pl-label,.pl-legend{display:none}.pl-stage{min-height:0}.pl-toolbar{padding:5px;min-height:42px;flex-wrap:nowrap}.pl-toolbar button{font-size:9px;padding:7px}.pl-toolbar>select{max-width:92px;flex-basis:92px}.pl-view{min-height:90px}.pl-status{padding:6px;font-size:9px}.pl-status>span:first-child,.pl-status b{font-size:10px}.pl-surface-tabs{padding:5px}.pl-footnote{display:none}.pl-settings{border-top:1px solid #435377}.pl-settings nav{padding:4px}.pl-settings nav button{padding:7px}.pl-panel{padding:12px}.pl-paint-popup{top:8px;left:8px;width:225px;padding:12px;max-height:calc(100% - 16px);overflow:auto}.pl-popup-colour{margin:8px 0}.pl-popup-colour i{width:28px;height:28px}.pl-paint-popup p{margin:5px 0}.ds-live,.ds-heading{font-size:9px}.ds-fps-top{padding:8px}.pl-paint-popup~.ds-fps-top{display:none}}

/* Light interface only; surface colours and physical paint rendering are unchanged. */
:root{color-scheme:light;--navy:#fff;--edge:#dde4ef}html,body,.pl{background:#fff;color:#27377b}.pl-header{background:#fff;border-color:#e2e7f0}.pl-home{background:#fff;color:#27377b;border-color:#dee5f1;border-bottom:3px solid #f3a717}.pl-header span{color:#7383a0}.pl h2{color:#27377b}.pl-shell,.pl-stage{background:#fff}.pl-rooms{background:#f9fafc;border-color:#e1e6f0}.pl-rooms>button{color:#34476c;border-color:#e2e7f0}.pl-rooms>button.active{background:#edf2fc;color:#27377b;border-color:#bccbea;border-left:3px solid #f3a717}.pl-rooms b{color:#27377b}.pl-rooms small,.pl-label,.pl-legend{color:#73829a}.pl button{background:#fff;color:#27377b;border-color:#dce3ef}.pl button:hover{background:#f2f5fb;border-color:#a5b7dc}.pl button.active,.pl .pl-primary{background:#27377b;color:#fff;border-color:#27377b}.pl .pl-primary:hover{background:#354a95;color:white}.pl-toolbar{background:#fff;border-color:#e3e8f0}.pl-toggle{background:#f0f3f9}.pl-toggle button.active{background:#fff;color:#27377b;box-shadow:0 2px 6px #27377b14;border-bottom:2px solid #f3a717}.pl-toolbar>span{color:#71809a}.pl-status{background:#fff;color:#71809a;border-color:#e1e7f0}.pl-status>span:first-child,.pl-status b{color:#27377b}.pl-surface-tabs button.active{background:#eef3fd;color:#27377b;border-color:#bac9e5}.pl-footnote{color:#7b889c}.pl-settings{background:#fff;border-color:#e0e6ef}.pl-settings nav{border-color:#e0e6ef}.pl-settings nav button{color:#6b7c96}.pl-settings nav button.active{background:#fff5d9;color:#27377b}.pl-panel{scrollbar-color:#c9d3e4 #f7f9fc}.pl h3,.pl h4{color:#27377b}.pl label,.pl .pl-panel small,.pl small,.pl-panel>p{color:#66768f}.pl input:not([type=checkbox]),.pl select,.pl textarea{background:#fff;color:#27377b;border-color:#d5deed}.pl input[type=range]{accent-color:#27377b}.pl-note{background:#f4f7fc;color:#5d7092;border-color:#e1e7f2}.pl details{border-color:#e1e7f2}.pl summary,.pl details p{color:#627795}.pl-result{background:#fff;border-color:#e0e7f1}.pl-result p{color:#647894}.pl-result strong{color:#27377b}.pl-paging{color:#6c7f9e}.pl-palette-top{border-color:#e3e9f2}.pl-swatches b,.pl-swatches small{color:#536d92}.pl-palette-top a,.pl-panel a{color:#27377b}.pl-paint-popup{background:#ffffffed;border-color:#d9e2ef;color:#27377b;box-shadow:0 12px 36px #23376b20}.pl-popup-brand span{color:#8a5b05}.pl-custom-brand{color:#6e819f!important}.pl-popup-colour span,.pl-paint-popup small{color:#687d9b}.pl-popup-colour i{border-color:#d9e1ec}.pl-view .ds-live,.pl-view .ds-heading{background:#ffffffdc;color:#27377b}.pl-view .ds-drag-hint{background:#ffffffd9;color:#536888}

.pl .pl-rooms>button.active{background:#edf2fc;color:#27377b;border-color:#bccbea;border-left:3px solid #f3a717}.pl .pl-rooms>button.active small{color:#64799d}
/* v508: stable tools, contextual handles and compact working panels. */
.pl-home{padding:2px 10px;border:0;border-bottom:2px solid #f3a717;border-radius:0}.pl-home img{display:block;width:125px;height:53px;object-fit:contain}.pl-header{padding:10px 20px;min-height:76px}.pl-header h2{font-size:19px}.pl-tools{display:flex;gap:4px;flex-wrap:wrap;width:100%;border-top:1px solid #e9edf4;padding-top:8px}.pl-toolbar{flex-wrap:wrap;gap:5px;padding:10px 14px}.pl-toolbar .pl-tools button{padding:7px 10px;font-size:11px}.pl-tools button.active{background:#edf2fc;color:#27377b;border-color:#bac8e6}.pl-shell{grid-template-columns:148px minmax(0,1fr) 350px}.pl-settings nav{grid-template-columns:repeat(6,1fr);gap:0;padding:10px 6px}.pl-settings nav button{font-size:10px;padding:10px 1px}.pl-panel{padding:20px;scroll-behavior:auto;overflow-anchor:none}.pl-shape-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.pl-shape-picker button{padding:9px 5px;text-align:center}.pl-shape-picker svg{width:33px;height:33px;display:block;margin:0 auto 6px;fill:#e2e9f6;stroke:#6f85af;stroke-width:2}.pl-shape-picker .active{background:#f1f5fe!important;color:#27377b!important;border-color:#27377b!important}.pl-shape-picker .active svg{fill:#27377b;stroke:#27377b}.pl-shape-picker span{font-size:9px}.pl-help{font-size:11px;color:#67768e;line-height:1.8}.pl-prop-library{grid-template-columns:repeat(3,1fr);gap:6px}.pl-prop-library button{padding:10px 4px;font-size:10px}.pl-prop-library span{font-size:24px;color:#7185aa}.pl-swatches{max-height:165px;gap:5px}.pl-swatches i{height:36px}.pl-swatches small{font-size:9px}.pl-color-display{height:78px;margin-top:14px}.pl-palette-top h3{margin-bottom:14px}.pl-wheel{width:155px;height:155px;margin:12px auto}.pl-connection{border:1px solid #dce5f2;background:#f8faff;border-radius:9px;padding:14px;margin-top:20px}.pl-connection p,.pl-link-status{font-size:11px;line-height:1.7}.pl-clearances{border:1px solid #e0e7f2;border-radius:7px;padding:10px;margin-bottom:15px;background:#f8faff}.pl-clearances>div{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:11px;margin-top:8px}.pl-clearances b{float:right}.pl-plan [data-resize-prop],.pl-plan [data-resize-room]{cursor:nwse-resize}.pl-plan [data-rotate-room],.pl-plan [data-rotate-prop]{cursor:grab}.pl-plan [data-vertex]{cursor:crosshair}.pl-plan [data-light-plan]{cursor:move}.pl-message:not([hidden]){position:absolute;top:78px;left:calc(50% - 230px);width:460px;max-width:90vw;z-index:50;border:1px solid #e9c66e;box-shadow:0 8px 28px #27377b22;border-radius:8px}.pl input[aria-invalid=true]{border-color:#b64147;background:#fff5f5}.pl-paint-popup{width:260px;padding:16px}.pl-view .ds-drag-hint{font-size:10px}.pl-panel input[type=range]{cursor:ew-resize}.pl-panel output{float:right;color:#27377b;font-weight:bold}.pl-panel details{margin-top:12px}
@media(max-width:1100px){.pl-shell{grid-template-columns:118px minmax(0,1fr) 305px}.pl-panel{padding:14px}.pl-toolbar .pl-tools button{padding:6px}.pl-home img{width:100px}.pl-header h2{font-size:16px}}
@media(max-width:800px){.pl-header{padding:8px 10px;gap:10px}.pl-home img{width:92px;height:40px}.pl-shell{grid-template-columns:1fr}.pl-settings nav{grid-template-columns:repeat(6,1fr)}.pl-rooms{min-height:70px}.pl-header>div:first-of-type span{display:none}.pl-actions button{font-size:10px;padding:7px}.pl-tools{overflow:auto;flex-wrap:nowrap}.pl-message:not([hidden]){left:5vw;top:105px;width:90vw}.pl-paint-popup{width:230px}.pl-settings{min-height:280px}.pl-panel{max-height:42dvh}.pl-plan [data-resize-room],.pl-plan [data-resize-prop]{stroke-width:.04}}
.pl-prop-library{max-height:245px;overflow:auto;padding:3px;align-content:start}.pl-prop-library button{min-height:70px}.pl-clearances{margin-top:15px}.pl-home img{max-width:100%}

.pl-camera-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex-basis:100%;padding-top:5px;border-top:1px solid #edf0f7}.pl-camera-tools label{display:flex;align-items:center;gap:7px;font-size:12px}.pl-camera-tools input[type=range]{width:105px;accent-color:#27377b}.pl-camera-tools output{min-width:32px}.pl-camera-tools select{width:auto!important;min-width:0!important}.pl-flight{display:flex;align-items:center;flex-direction:column;gap:5px;margin-left:8px}.pl-flight[hidden]{display:none}.pl-flight button{min-width:58px;min-height:36px;background:#fff;color:#27377b;border:1px solid #cad4e8;border-radius:7px}.pl-flight output{font-size:11px;color:#27377b;background:#ffffffdf;padding:3px 8px;border-radius:5px}.ds-walk button,.pl-flight button{touch-action:none;user-select:none}.ds-fps-bottom{align-items:flex-end}.ds-drag-hint{margin-left:auto}.pl-camera-tools button.active{background:#27377b!important;color:white!important}@media(max-width:650px){.pl-camera-tools{gap:5px}.pl-camera-tools label{font-size:11px}.pl-camera-tools input[type=range]{width:80px}.ds-drag-hint{font-size:9px;max-width:155px}.pl-flight{margin-left:4px}}

.pl-flight{pointer-events:auto}.pl-flight button{cursor:pointer}
@media(max-width:740px){.pl-camera-tools label{margin:0}.pl-camera-tools input[type=range]{margin:0;padding:0}.pl-camera-tools select{padding:5px;margin:0}.pl-camera-tools{padding:5px 0;gap:5px}.pl-toolbar{gap:4px}.pl-toggle{padding:2px;gap:0}.pl-toggle button{padding:6px 5px}.pl-toolbar>select{width:78px;max-width:78px;flex-basis:78px;padding:6px 3px}.pl-toolbar>button{padding:6px 5px}.pl-camera-tools button{padding:6px 5px}.ds-drag-hint{text-shadow:none;font-size:8px;max-width:140px}}

.pl-settings>nav{flex-wrap:wrap}.pl-settings>nav button{min-width:42px}
