:root{color-scheme:dark;font-family:Arial,Helvetica,sans-serif;color:#e7e7ed;background:#000;font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:14px}button,input{font:inherit}button{cursor:pointer;color:inherit}button,input{outline-offset:4px}button:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:2px solid #2ce3df}button{border:0}button:hover{background:#303033}button:disabled{opacity:.4;cursor:default}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button svg{pointer-events:none}button, input{-webkit-tap-highlight-color:transparent}::selection{background:#2ce3df;color:#101113}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-thumb{background:#414146;border-radius:5px}::-webkit-scrollbar-track{background:transparent}[hidden]{display:none!important}.viewer{height:100dvh;display:grid;grid-template-columns:340px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 54px;overflow:hidden}.locations{background:#151517;border-right:1px solid #2a2a2e;display:flex;flex-direction:column;min-height:0;z-index:3}.panel-header{padding:24px 22px 21px;border-bottom:1px solid #2a2a2e}.title-line{display:flex;align-items:center;gap:10px}h1{font-size:21px;font-weight:500;margin:0}.count{font-size:12px;color:#c4c4ce;padding:4px 7px;border-radius:5px;background:#2c2c31}.icon-button{width:34px;height:34px;display:grid;place-items:center;border-radius:7px;background:transparent}.title-line .icon-button{margin-left:auto;color:#a8a8b3}.totals{font-size:14px;color:#a9a9b4;display:flex;gap:9px;margin-top:12px;font-variant-numeric:tabular-nums}.separator{color:#65656f}.selection-intro{padding:22px 22px 17px}h2{margin:0;font-size:14px;font-weight:500}.selection-intro p{margin:10px 0 0;color:#a9a9b4;line-height:1.8;font-size:13px}kbd{font:inherit;font-size:11px;background:#29292e;border:1px solid #45454d;border-radius:4px;padding:2px 5px;color:#c9c9d1}.search-wrap{margin:0 20px 18px;display:flex;align-items:center;gap:8px;border:1px solid #3b3b42;border-radius:6px;padding:0 10px;color:#9696a4}.search-wrap svg{width:17px;height:17px}.search-wrap input{background:none;border:0;height:38px;width:100%;font-size:13px;color:#eee;min-width:0}.search-wrap:focus-within{border-color:#2ce3df}.search-wrap input:focus{outline:none}.search-wrap input::placeholder{color:#a0a0ac}.list-toolbar{display:flex;justify-content:space-between;align-items:center;padding:0 22px 14px;color:#a3a3af;font-size:12px}.list-toolbar button,.group-title button{font-size:12px;background:transparent;color:#36dcd7;padding:3px 0}.list-toolbar button:hover,.group-title button:hover{color:#a3ffff}.surface-list{overflow:auto;flex:1;scroll-behavior:smooth;padding-bottom:14px;min-height:70px}.group-title{position:sticky;top:0;z-index:1;background:#202023;padding:11px 22px;display:flex;align-items:center;gap:8px;color:#d2d2da;font-size:12px;letter-spacing:.01em}.group-title .group-number{color:#b4b4bf}.group-title button{margin-left:auto}.empty-group{font-size:12px;color:#aaaab5;padding:16px 22px;margin:0;line-height:1.6}.surface-row{padding:13px 20px;display:flex;align-items:center;gap:12px;position:relative;cursor:pointer;border-bottom:1px solid #242428;min-height:77px}.surface-row:hover{background:#242428}.surface-row.selected{background:#15302f}.surface-row.selected:hover{background:#1c3b3a}.surface-row.active{box-shadow:inset 0 0 0 1px #46d1c3}.surface-checkbox{appearance:none;width:17px;height:17px;border:1px solid #73737f;border-radius:3px;flex-shrink:0;margin:0;cursor:pointer;position:relative}.surface-checkbox:checked{background:#2ce3df;border-color:#2ce3df}.surface-checkbox:checked:after{content:'';position:absolute;left:5px;top:2px;width:4px;height:8px;border:solid #102324;border-width:0 2px 2px 0;transform:rotate(45deg)}.swatch{width:10px;height:28px;border-radius:3px;flex-shrink:0;background:var(--surface-color)}.row-copy{min-width:0;flex:1}.parent-name{color:#a9a9b5;font-size:12px;margin-bottom:7px}.surface-name{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-area{font-size:12px;color:#c5c5cf;white-space:nowrap;font-variant-numeric:tabular-nums;align-self:flex-end;padding-bottom:3px}.row-area span{color:#9c9ca8}.selection-footer{border-top:1px solid #35353d;padding:19px 22px 17px;background:#1c1c20}.selection-footer>div{display:flex;justify-content:space-between;gap:8px;font-size:13px}.selection-footer strong{font-weight:400;color:#44e2dc;font-variant-numeric:tabular-nums}.selection-footer p{color:#a6a6b1;font-size:12px;margin:10px 0 0}.map{position:relative;min-width:0;overflow:hidden;background:#000}.canvas{height:100%;width:100%;touch-action:none;cursor:grab;user-select:none}.canvas.dragging{cursor:grabbing}#map-svg{width:100%;height:100%;display:block}#map-scene{transform-origin:0 0}#map-scene.animate{transition:transform .45s cubic-bezier(.16,1,.3,1)}.surface-polygon{fill:var(--surface-color);fill-opacity:.24;stroke:var(--surface-color);stroke-width:1.5;vector-effect:non-scaling-stroke;cursor:pointer;transition:fill-opacity .15s,stroke-opacity .15s}.surface-polygon:hover{fill-opacity:.43;stroke-width:2.5}.surface-polygon.selected{fill-opacity:.46;stroke-width:2.5;stroke:#fff}.has-selection .surface-polygon:not(.selected){fill-opacity:.09;stroke-opacity:.5}.has-selection .surface-polygon:not(.selected):hover{fill-opacity:.3;stroke-opacity:1}.map-label{pointer-events:none}.map-label rect{fill:#131316;fill-opacity:.92;stroke:#48484e;stroke-width:1;vector-effect:non-scaling-stroke}.map-label text{fill:#f0f0f4;font-size:18px;stroke:none;text-anchor:middle;font-family:Arial,Helvetica,sans-serif}.map-label circle{fill:var(--surface-color);stroke:none}.map-label .selection-tick{stroke:#102324;stroke-width:2.5;fill:none}.map-mode{position:absolute;top:22px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:7px;color:#2ce3df;background:#131315;border-radius:9px;padding:10px 12px;font-size:12px;font-weight:600;z-index:2}.map-mode svg{width:30px;height:30px}.layer-control{position:absolute;right:23px;top:22px;z-index:4}.floating{background:#1c1c20;border-radius:8px}.layer-button{display:flex;align-items:center;gap:9px;padding:13px 15px}.layers-menu{width:230px;background:#222226;border:1px solid #3d3d43;border-radius:9px;margin-top:8px;padding:17px;position:absolute;right:0}.layers-menu h2{margin-bottom:16px;color:#acacb9;font-size:12px}.layers-menu label{display:flex;gap:10px;align-items:center;cursor:pointer}.layers-menu input{accent-color:#2ce3df;width:17px;height:17px;margin:0}.layers-menu kbd{margin-left:auto}.map-bottom{position:absolute;bottom:22px;left:24px;right:23px;display:flex;align-items:flex-end;justify-content:space-between;gap:15px;pointer-events:none}.map-help{display:flex;align-items:center;gap:9px;color:#aaaab4;font-size:12px;background:#111113d9;padding:10px 12px;border-radius:6px}.map-help svg{width:16px;height:16px}.camera-controls{display:flex;gap:7px;align-items:flex-end;pointer-events:auto}.camera-controls button{background:#1a1a1e;border-radius:8px;padding:14px 16px;font-size:14px;white-space:nowrap}.camera-controls button:hover{background:#333338}.zoom{display:flex;flex-direction:column;background:#1a1a1e;border-radius:8px}.zoom button{padding:11px;border-radius:8px;width:43px;height:43px;display:grid;place-items:center}.zoom svg{width:17px;height:17px}.details{position:absolute;right:23px;bottom:132px;width:258px;background:#1c1c20;border:1px solid #393940;border-radius:10px;padding:19px;z-index:2}.detail-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#aaaab7;font-size:12px;margin-bottom:12px}.detail-top .icon-button{width:25px;height:25px}.detail-top svg{width:16px;height:16px}.detail-name{display:flex;align-items:center;gap:10px}.detail-name h2{font-size:18px;font-weight:400}.detail-name .swatch{height:20px;width:9px}.detail-area{margin-top:19px;display:flex;justify-content:space-between;color:#a9a9b5;font-size:13px}.detail-area strong{color:#e7e7ef;font-weight:400}.detail-selected{margin:16px 0 0;font-size:12px;color:#66ded6;display:flex;gap:7px;align-items:center}.detail-selected svg{width:15px;height:15px}.detail-hint{font-size:12px;line-height:1.6;color:#b5b5c1;margin:13px 0 0}.detail-clear{margin-top:16px;width:100%;padding:9px;border:1px solid #505058;background:transparent;border-radius:5px;font-size:12px}.map-tooltip{position:absolute;pointer-events:none;background:#28282e;color:#eee;padding:8px 11px;border:1px solid #575761;border-radius:5px;z-index:5;font-size:12px}.asset-footer{grid-column:1/-1;background:#131315;border-top:1px solid #2a2a2f;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 20px;z-index:4}.asset-name{display:flex;align-items:center;gap:11px;min-width:0;font-size:13px}.asset-name strong{font-size:14px;font-weight:500;white-space:nowrap}.asset-icon{display:grid;place-items:center;width:29px;height:29px;background:#ffce00;color:#171717;border-radius:5px;flex-shrink:0}.asset-icon svg{width:20px;height:20px;stroke-width:2.8}.asset-description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#afafb9}.asset-date{white-space:nowrap;color:#afafb9}.prototype-label{font-size:11px;color:#9696a3;white-space:nowrap}#expand{position:absolute;top:22px;left:22px;z-index:3;width:45px;height:45px}.viewer.list-collapsed{grid-template-columns:0 minmax(0,1fr)}.list-collapsed .locations{visibility:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:1600px){.viewer{grid-template-columns:370px minmax(0,1fr)}.surface-row{min-height:83px}}@media(max-width:1100px){.viewer{grid-template-columns:305px minmax(0,1fr)}.asset-description{max-width:250px}.map-help{display:none}.map-bottom{justify-content:flex-end}.details{width:226px;right:18px}.prototype-label{display:none}}@media(max-width:650px){.viewer{grid-template-columns:245px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 46px}.panel-header{padding:17px 15px}.selection-intro{padding:15px}.search-wrap{margin:0 13px 13px}.list-toolbar,.group-title{padding-left:15px;padding-right:15px}.surface-row{padding:12px 13px;gap:8px;flex-wrap:wrap}.row-area{font-size:11px}.surface-name{font-size:13px}.selection-footer{padding:15px 12px}.selection-footer>div{font-size:11px}.selection-footer p{font-size:11px}.map-mode{left:22px;transform:none;top:18px;padding:7px}.map-mode svg{width:22px;height:22px}.map-mode span,.layer-button span{display:none}.layer-control{top:18px;right:14px}.layer-button{padding:8px}.details{left:12px;right:12px;bottom:130px;width:auto;padding:12px}.detail-name h2{font-size:14px}.detail-area{flex-direction:column;gap:6px}.map-bottom{left:10px;right:10px;bottom:15px}.camera-controls{flex-direction:column-reverse;align-items:flex-end}.zoom{flex-direction:row}.camera-controls #reset{font-size:11px;padding:10px}.zoom button{width:32px;height:32px}.asset-description,.asset-date{display:none}.asset-footer{padding:0 13px}.asset-name strong{font-size:13px}.layers-menu{width:190px}.list-collapsed .map-mode{left:50%}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
/* Parent organization. Checkbox inclusion is independent of map highlighting. */
.viewer{grid-template-columns:370px minmax(0,1fr)}.search-wrap{margin-top:20px;margin-bottom:12px}.action-bar{display:flex;align-items:center;gap:10px;padding:0 20px 18px}.secondary-button,.primary-button{display:flex;align-items:center;justify-content:center;gap:7px;border-radius:6px;padding:10px 12px;font-size:13px;line-height:18px}.secondary-button{background:#29292e;border:1px solid #42424a;white-space:nowrap}.secondary-button svg{width:18px;height:18px}.primary-button{background:#35ded6;color:#092522;font-weight:600}.primary-button:hover{background:#76eee7}.primary-button:disabled{background:#34343b;color:#b5b5bf}.sort-control{position:relative;display:flex;align-items:center;gap:6px;min-width:0;margin-left:auto;color:#c9c9d2}.sort-control svg{width:17px;height:17px}.sort-control:after{content:'';position:absolute;right:4px;top:14px;width:5px;height:5px;transform:rotate(45deg);border-right:1px solid #c9c9d2;border-bottom:1px solid #c9c9d2;pointer-events:none}.sort-control select{appearance:none;background:transparent;color:inherit;border:0;font:inherit;font-size:12px;max-width:128px;padding:9px 19px 9px 0;cursor:pointer}.sort-control option{background:#25252a;color:#e7e7ed}.list-toolbar{padding:12px 20px;background:#202023;border-block:1px solid #323238;gap:10px}.master-label{display:flex;align-items:center;gap:12px;font-size:13px;color:#d6d6df;cursor:pointer}.surface-checkbox:indeterminate{background:#2ce3df;border-color:#2ce3df}.surface-checkbox:indeterminate:after{content:'';position:absolute;left:3px;top:7px;width:9px;height:2px;background:#102324}.parent-group{border-bottom:1px solid #36363c}.parent-row{display:flex;gap:11px;align-items:center;padding:12px 20px 4px}.parent-title{display:flex;align-items:center;gap:6px;background:transparent;padding:5px 0;min-width:0;flex:1;text-align:left;font-size:13px}.parent-title>span:not(.child-count){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.parent-title svg{width:13px;height:13px;color:#9494a2}.child-count{font-size:11px;color:#a5a5b2;margin-left:2px}.rename-parent{width:24px;height:24px;color:#9c9ca9}.rename-parent svg{width:14px;height:14px}.surface-row{padding:0 20px;gap:12px;min-height:52px;border:0}.surface-row.active{box-shadow:none}.surface-row.excluded .surface-name,.surface-row.excluded .row-area{color:#858591}.surface-focus{display:flex;flex:1;align-items:center;gap:10px;min-width:0;text-align:left;background:transparent;padding:16px 0 16px 18px}.surface-focus:hover{background:transparent}.surface-focus .swatch{width:8px;height:18px}.surface-focus .surface-name{flex:1;font-size:13px}.surface-focus .row-area{align-self:auto;padding:0;font-size:12px}.highlight-bar{display:flex;align-items:center;justify-content:space-between;padding:10px 20px;background:#17332f;color:#84e6dc;font-size:12px}.highlight-bar button{background:transparent;color:#b8f2ec;padding:0;font-size:12px}.selection-footer .primary-button{width:100%;margin-top:15px}.selection-footer p{line-height:1.5}.parent-form{background:#222227;border-block:1px solid #42424b;padding:17px 20px;margin-bottom:12px}.parent-form>label{font-size:13px;display:block;margin-bottom:10px}.parent-form input{width:100%;background:#161619;border:1px solid #686874;border-radius:5px;padding:10px;color:#eee;font-size:14px}.parent-form p{font-size:12px;line-height:1.5;color:#b6b6c2;margin:10px 0 13px}.parent-form #parent-error{color:#ffaaa5}.form-actions{display:flex;gap:8px;justify-content:flex-end}.surface-polygon{stroke-width:1;fill-opacity:.25}.surface-polygon.selected{fill-opacity:.39;stroke-width:2;stroke:#fff}.surface-polygon.excluded{fill-opacity:.04;stroke-opacity:.35}.has-selection .surface-polygon:not(.selected){fill-opacity:.19;stroke-opacity:.8}.has-selection .surface-polygon.excluded:not(.selected){fill-opacity:.04;stroke-opacity:.35}.surface-polygon:hover{fill-opacity:.4}.surface-polygon.selected.excluded{fill-opacity:.2;stroke-opacity:1}.ai-panel{position:absolute;right:22px;top:22px;bottom:132px;width:310px;max-height:600px;background:#1c1c20;border:1px solid #393940;border-radius:9px;padding:20px;z-index:4;display:flex;flex-direction:column}.ai-panel .detail-top{margin-bottom:4px}.ai-panel h2{font-size:16px;color:#eee}.ai-summary{font-size:13px;color:#c2c2cc}.ai-items{overflow:auto;flex:1;border-block:1px solid #38383f;padding:8px 0}.ai-items>div{display:flex;align-items:center;gap:10px;padding:10px 0;font-size:13px}.ai-items .swatch{height:23px;width:8px}.ai-items small{display:block;color:#a4a4b1;margin-top:5px;font-size:12px}.ai-note{font-size:12px;color:#b5b5c0;line-height:1.6}.ai-panel .primary-button{width:100%}#ai-result{font-size:13px;color:#8ce6da;line-height:1.6;margin-bottom:0}@media(max-width:1100px){.viewer{grid-template-columns:340px minmax(0,1fr)}}@media(max-width:650px){.viewer{grid-template-columns:245px minmax(0,1fr)}.action-bar{padding:0 12px 12px;gap:6px;flex-wrap:wrap}.action-bar .secondary-button{font-size:12px;padding:8px}.sort-control{margin-left:0}.list-toolbar,.parent-row{padding-left:13px;padding-right:13px}.master-label{gap:9px}.surface-row{padding:0 13px;flex-wrap:nowrap;gap:7px}.surface-focus{padding-left:8px;gap:6px;flex-wrap:wrap}.surface-focus .row-area{margin-left:14px;flex-basis:100%}.parent-form{padding:14px}.ai-panel{left:10px;right:10px;top:15px;bottom:130px;width:auto;padding:13px}.ai-panel h2{font-size:13px}.ai-panel .primary-button{font-size:11px}.highlight-bar{padding:9px 13px;font-size:11px}}
/* Dense dam fixture: reveal labels only for highlighted surfaces. */
.map-label{visibility:hidden}.map-label.visible-label{visibility:visible}.map-label text{font-size:12px}.surface-polygon{fill-opacity:.19;stroke-width:.85}.surface-polygon:hover{fill-opacity:.38;stroke-width:1.6}.surface-polygon.selected{fill-opacity:.38;stroke-width:2}.has-selection .surface-polygon:not(.selected){fill-opacity:.13;stroke-opacity:.65}.surface-focus .surface-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}.surface-copy .surface-name{display:block}.face-meta{font-size:11px;color:#a9a9b5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.detail-face{font-size:12px;color:#bdbdc9;margin:14px 0 0}.surface-focus{padding-top:12px;padding-bottom:12px}.surface-row.excluded .face-meta{color:#858591}.asset-icon{background:#00c692}.map-tooltip{max-width:300px;white-space:normal;line-height:1.5}.child-count{padding:1px 5px;background:#303037;border-radius:3px}.surface-list{overscroll-behavior:contain}@media(max-width:650px){.surface-focus .surface-copy{flex-basis:calc(100% - 14px)}.face-meta{max-width:150px}}
/* Component groups, a quieter action bar, and title-level search. */
.title-line{gap:7px}.title-line h1{font-size:19px;white-space:nowrap}.title-line .count{font-size:11px;padding:4px 5px}.title-line #toggle-search{margin-left:auto}.title-line .icon-button{margin-left:0;width:29px;height:29px;flex-shrink:0}.title-line .icon-button svg{width:18px;height:18px}.panel-header .search-wrap{margin:16px 0 0}.panel-header .search-wrap input{font-size:13px}.action-bar{padding-top:18px}.action-bar #create-parent{min-width:88px;border-color:#35c9c2;background:transparent;color:#e7e7ed}.action-bar #create-parent:disabled{border-color:#55555e;opacity:.5}.primary-button{background:transparent;color:#e7e7ed;border:1px solid #35c9c2;font-weight:500}.primary-button:hover{background:#2a2a30;color:#fff}.primary-button:disabled{background:transparent;border-color:#55555e;color:#9e9eaa}.secondary-button:hover{background:#303036}.surface-checkbox:checked,.surface-checkbox:indeterminate{background:transparent;border-color:#35c9c2}.surface-checkbox:checked:after{border-color:#35c9c2}.surface-checkbox:indeterminate:after{background:#35c9c2}.surface-row.selected{background:#28282e}.surface-row.selected:hover{background:#303036}.highlight-bar{background:#242429;color:#d6d6df}.highlight-bar button{color:#d6d6df}.selection-footer strong{color:#d6d6df}.asset-icon{background:#26262b;color:#d6d6df}.child-count{background:transparent;color:#a9a9b5}#expand.panel-toggle{width:auto;height:40px;padding:0 13px;display:flex;gap:9px;align-items:center;color:#dedee6;border:1px solid #42424b;border-radius:6px;font-size:13px}#expand.panel-toggle svg{width:18px;height:18px}@media(max-width:650px){.title-line{gap:4px;flex-wrap:wrap}.title-line h1{font-size:16px}.title-line #toggle-search{margin-left:0}.title-line .icon-button{width:24px;height:26px}.panel-header{padding:14px 12px}.action-bar{padding-top:13px}}
/* Ungrouped-first review with a fixed name readout and restrained overlays. */
.total-area-summary{white-space:nowrap}.totals{gap:7px;font-size:12px;flex-wrap:wrap}.action-bar #create-parent{color:#35c9c2;min-width:70px}.action-bar #ungroup{padding-inline:10px;font-size:12px}.sort-control{gap:6px}.sort-control select{padding-right:17px;max-width:none;min-width:0}.sort-control:after{right:3px}.surface-focus{padding-left:0;display:grid;grid-template-columns:3px minmax(0,1fr) auto;gap:11px;align-items:center;flex-wrap:nowrap}.surface-focus .swatch{width:3px;height:100%;min-height:34px;align-self:stretch;border-radius:1px}.surface-focus .surface-copy{gap:5px;min-width:0}.surface-focus .surface-name{line-height:16px}.surface-focus .face-meta{line-height:14px}.surface-focus .row-area{margin:0;flex-basis:auto}.parent-group .surface-focus{padding-left:16px}.surface-row{min-height:60px}.swatch,.ai-items .swatch{width:3px;border-radius:1px}.has-selection .surface-polygon:not(.selected),.has-selection .surface-polygon:not(.selected):hover,.has-selection .surface-polygon.excluded:not(.selected),.has-selection .surface-polygon.excluded:not(.selected):hover{fill-opacity:.025;stroke-opacity:.16;stroke-width:.7}.has-selection .surface-polygon.selected,.has-selection .surface-polygon.selected:hover,.has-selection .surface-polygon.selected.excluded{fill-opacity:.5;stroke:#fff;stroke-width:2;stroke-opacity:1}.map-bottom{justify-content:space-between;align-items:flex-end}.surface-name-status{margin-right:auto;max-width:260px;min-height:44px;padding:13px 16px;background:#1a1a1e;border-radius:7px;font-size:13px;color:#e1e1e9;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}@media(max-width:650px){.surface-focus{grid-template-columns:3px minmax(0,1fr);gap:8px}.surface-focus .swatch{grid-row:1/3}.surface-focus .surface-copy{flex-basis:auto}.surface-focus .row-area{grid-column:2}.surface-name-status{font-size:11px;padding:10px;min-height:35px;max-width:150px}.action-bar{gap:6px}.sort-control{margin-left:auto}.parent-group .surface-focus{padding-left:8px}}

/* Single selection outlines; no browser focus rectangles around map geometry. */
.surface-polygon,.surface-polygon:focus,.surface-polygon:focus-visible{outline:none;outline-offset:0;box-shadow:none;filter:none}
.has-selection .surface-polygon.selected,.has-selection .surface-polygon.selected:hover,.has-selection .surface-polygon.selected.excluded{stroke:#35c9c2;stroke-width:1.5;stroke-opacity:1}
.surface-polygon:focus-visible{stroke:#35c9c2;stroke-width:1.5;stroke-opacity:1}
.surface-focus:focus,.surface-focus:focus-visible{outline:none;box-shadow:none}
.surface-row:focus-within{box-shadow:inset 0 0 0 1px #35c9c2}
.surface-row:has(.surface-checkbox:focus):not(:has(.surface-focus:focus)){box-shadow:none}
.surface-checkbox:focus,.surface-checkbox:focus-visible{outline:none;box-shadow:none;border-color:#35c9c2}
#parent-name{background:transparent;color:#f0f0f4;caret-color:#f0f0f4;border:1px solid #686874;outline:none;outline-offset:0;box-shadow:none}
#parent-name:focus,#parent-name:focus-visible{border-color:#35c9c2;outline:none;box-shadow:none}
#parent-name::selection{background:#47474f;color:#fff}
.parent-form .form-actions button{padding:5px 10px;min-height:29px;min-width:0;font-size:12px;line-height:17px;border-radius:5px;background:transparent}
#save-parent,#save-parent:hover,#continue-ai,#continue-ai:hover,#send-ai,#send-ai:hover{color:#35c9c2}
#cancel-parent{color:#c6c6d0;border-color:#4c4c55}

/* Floating canvas: full-width map, right surface panel, bottom action shelf. */
.viewer[data-layout="canvas"]{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 54px;position:relative}
[data-layout="canvas"] .map{grid-column:1;grid-row:1}
[data-layout="canvas"] .asset-footer{grid-column:1;grid-row:2}
[data-layout="canvas"] .locations{position:absolute;top:24px;right:24px;left:auto;bottom:150px;width:350px;min-width:0;border:1px solid #484850;border-radius:9px;overflow:visible;background:#19191c}
[data-layout="canvas"] .panel-header{padding:18px;border-radius:9px 9px 0 0}
[data-layout="canvas"] .action-bar{padding:14px 18px}
[data-layout="canvas"] .list-toolbar{justify-content:flex-start;gap:8px;padding:12px 18px;flex-shrink:0;font-size:12px;white-space:nowrap}
[data-layout="canvas"] .master-label{font-size:12px;gap:11px}
[data-layout="canvas"] .list-toolbar .total-area-summary{color:#bdbdc8;font-variant-numeric:tabular-nums}
[data-layout="canvas"] .list-toolbar .separator{color:#8b8b97}
[data-layout="canvas"] .surface-row{padding-inline:18px}
[data-layout="canvas"] .surface-list{padding-bottom:8px;border-radius:0 0 9px 9px}
[data-layout="canvas"] .selection-footer{position:fixed;bottom:72px;left:24px;right:24px;display:flex;gap:24px;align-items:center;padding:14px 18px;border:1px solid #484850;border-radius:7px;background:#1c1c20;flex-shrink:0}
[data-layout="canvas"] .selection-footer>div{flex:1;justify-content:flex-start;gap:28px}
[data-layout="canvas"] .selection-footer .primary-button{width:150px;margin:0}
[data-layout="canvas"] .selection-footer p{margin:0}
[data-layout="canvas"] .map-bottom{left:24px;right:398px;bottom:104px}
[data-layout="canvas"] #expand{left:auto;right:24px;top:24px}
[data-layout="canvas"] .ai-panel{left:24px;right:auto;bottom:172px}
.viewer.list-collapsed[data-layout="canvas"] .map-bottom{left:24px;right:24px;bottom:22px}
.viewer.list-collapsed[data-layout="canvas"] .locations{visibility:hidden}
@media(max-width:1000px){
 [data-layout="canvas"] .locations{width:335px;right:16px}
 [data-layout="canvas"] .map-bottom{left:16px;right:375px}
 [data-layout="canvas"] .selection-footer{left:16px;right:16px}
 [data-layout="canvas"] #expand{right:16px}
}
@media(max-width:700px){
 [data-layout="canvas"] .locations{width:min(310px,calc(100% - 32px));top:16px;bottom:250px}
 [data-layout="canvas"] .list-toolbar{gap:5px;font-size:10px}
 [data-layout="canvas"] .master-label{font-size:10px;gap:7px}
 [data-layout="canvas"] .map-bottom{left:16px;right:16px;bottom:110px}
 [data-layout="canvas"] .selection-footer>div{gap:6px;flex-direction:column}
 [data-layout="canvas"] .selection-footer .primary-button{width:100px}
 [data-layout="canvas"] .ai-panel{left:16px;right:16px;width:auto}
}

/* Layers sit above the floating list; the popover never changes selection. */
.map-layers-control{position:absolute;top:24px;right:24px;z-index:6}
#toggle-layers{width:44px;height:44px;background:#1c1c20;border:1px solid #484850;border-radius:7px;color:#e7e7ed}
#toggle-layers:hover{background:#303036}
#toggle-layers[aria-expanded="true"]{border-color:#35c9c2}
#toggle-layers svg{width:24px;height:24px}
.layer-popover{position:fixed;inset:76px 24px auto auto;margin:0;width:252px;max-width:calc(100vw - 32px);padding:15px 16px 9px;color:#e7e7ed;background:#202024;border:1px solid #484850;border-radius:7px}
.layer-popover::backdrop{background:transparent}
.layer-popover h2{font-size:13px;font-weight:500;color:#bdbdc8;margin:0 0 8px}
.layer-visibility-row{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:46px;font-size:13px}
.layer-visibility-row+.layer-visibility-row{border-top:1px solid #36363d}
.layer-visibility{color:#e7e7ed;background:transparent}
.layer-visibility svg{width:20px;height:20px}
.layer-visibility .eye-slash{display:none}
.layer-visibility[aria-pressed="false"]{color:#a9a9b5}
.layer-visibility[aria-pressed="false"] .eye-slash{display:block}
[data-layout="canvas"] .locations{top:80px}
[data-layout="canvas"] #expand{top:80px}
@media(max-width:1000px){.map-layers-control{right:16px}.layer-popover{right:16px}}
@media(max-width:700px){.map-layers-control{top:16px}.layer-popover{top:68px}[data-layout="canvas"] .locations,[data-layout="canvas"] #expand{top:72px}}

/* Bottom-left surface actions, with the list anchored above them. */
[data-layout="canvas"] .locations{left:24px;right:auto;top:24px;bottom:150px;height:auto}
[data-layout="canvas"] .selection-footer{justify-content:flex-start;gap:12px;z-index:5}
[data-layout="canvas"] .selection-footer .primary-button{width:auto;min-width:108px}
[data-layout="canvas"] .selection-footer #expand{position:static;width:auto;height:40px;margin:0}
[data-layout="canvas"] .selection-footer #expand[aria-expanded="true"]{border-color:#35c9c2}
[data-layout="canvas"] .map-bottom{left:398px;right:24px;bottom:104px}
.viewer.list-collapsed[data-layout="canvas"] .map-bottom{left:24px;right:24px;bottom:104px}
[data-layout="canvas"] .ai-panel{left:auto;right:24px}
@media(max-width:1000px){
 [data-layout="canvas"] .locations{left:16px;right:auto}
 [data-layout="canvas"] .map-bottom{left:375px;right:16px}
}
@media(max-width:700px){
 [data-layout="canvas"] .locations{top:16px;bottom:205px;height:auto}
 [data-layout="canvas"] .map-bottom{left:16px;right:16px;bottom:104px}
 [data-layout="canvas"] .camera-controls{flex-direction:row;align-items:flex-end}
 [data-layout="canvas"] .selection-footer{padding:12px;gap:8px;flex-wrap:wrap}
 [data-layout="canvas"] .selection-footer .primary-button{min-width:85px}
 [data-layout="canvas"] .selection-footer #expand{font-size:12px;padding-inline:10px}
 [data-layout="canvas"] .ai-panel{left:16px;right:16px}
}

/* Camera controls remain on the right after removing the map count readout. */
[data-layout="canvas"] .map-bottom{justify-content:flex-end}

/* The list and camera controls end on the same baseline above the asset footer. */
.viewer[data-layout="canvas"]{--camera-bottom:24px;--asset-footer-height:54px}
[data-layout="canvas"] .locations{bottom:calc(var(--asset-footer-height) + var(--camera-bottom));height:auto}
[data-layout="canvas"] .map-bottom{bottom:var(--camera-bottom)}
.panel-run-action{margin-top:16px}
.panel-run-action .primary-button{width:100%;margin:0}
.panel-run-action p{font-size:12px;line-height:1.5;color:#bdbdc8;margin:10px 0 0}
[data-layout="canvas"] .surface-list{min-height:0}
