/* V13.34: simpler controls, one matching table, and uninterrupted scrolling. */
@layer properties {
body.workspace-v12>header{gap:24px!important;background:#123c5c!important}
body.workspace-v12>header .brand,body.workspace-v12>header .brand img{width:220px!important;min-width:0!important;height:auto!important;max-height:48px!important;object-fit:contain!important;border:0!important;border-radius:0!important;padding:0!important;background:transparent!important}
body.workspace-v12>header .project .project-logo{width:195px!important;height:52px!important}
body.workspace-v12>header .project{flex:1!important;gap:24px!important}
.gb-filter-inline{display:flex!important;flex-wrap:wrap;align-items:end;gap:12px!important}
.gb-filter-inline .gb-budget{flex:1;min-width:210px}.gb-filter-inline .gb-result{flex-basis:100%}
#compareDialog,#compareDialog *{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;scroll-behavior:auto!important}
#compareDialog .compare-scroll{overflow:visible!important;max-height:none!important;scrollbar-gutter:auto!important}
#compareDialog .compare-modal-body{overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable both-edges}
#compareDialog #comparisonSection{overflow:visible!important}
#compareDialog .compare-modal-head{background:#fff!important}
}
#view3d{display:none!important}
.availability-control{position:relative;font-size:11px;color:#fff}.availability-control summary{cursor:pointer;list-style:none;text-decoration:underline;text-underline-offset:3px}.availability-control form{position:absolute;top:24px;right:0;z-index:200;width:275px;display:flex;flex-wrap:wrap;gap:8px;padding:16px;border-radius:12px;background:white;color:#173e54;box-shadow:0 8px 24px #0003}.availability-control label,.availability-control small{width:100%}.availability-control input{width:100%;padding:8px}.availability-control small{font-size:11px;line-height:1.4}
#comparableGrid{display:block;overflow:visible;max-height:none}
#matchingFinance{margin:0;padding:0;border:0;container-type:inline-size}
#matchingFinanceIntro{font-size:12px;line-height:1.5;margin:0 0 12px}
#matchingFinanceTable{overflow:visible;border:1px solid #d6e1e7;border-radius:10px}
#matchingFinance table{min-width:0!important;width:100%;table-layout:fixed}
#matchingFinance .unit-col{width:18%}#matchingFinance .price-col{width:20%}#matchingFinance .psf-col{width:11%}#matchingFinance .adjusted-col{width:19%}#matchingFinance .monthly-col{width:16%}
#matchingFinance th:first-child{position:static}
#matchingFinance [data-stack]{display:inline;padding:0!important;margin:0;min-width:0;min-height:24px;border:0;border-radius:0;background:transparent;box-shadow:none;color:#235bb1;font-size:inherit;white-space:nowrap;text-decoration:underline}
#matchingFinance .unit-layout{color:#647782;font-weight:400;font-size:.85em;white-space:normal}
#matchingFinance .matching-legend{font-size:10px;line-height:1.5;color:#657b89}
.workspace-v12 .model-pane #sunControlsPanel.sunlight-dock{display:flex;align-items:center;gap:12px;overflow:visible;padding:7px 10px;max-height:none}
.sun-dock-main{display:contents}.sun-dock-main>div{display:none}.sun-dock-main #clock{font-size:13px;order:0}.sun-dock-main #playSun{order:2;min-height:32px;min-width:46px;padding:4px 8px;font-size:12px}
.sun-dock-time{flex:1;min-width:60px;order:1}.sun-dock-ticks{display:none}
.sunlight-dock .sun-settings{position:relative;order:3;border:0;margin:0;padding:0}.sunlight-dock .sun-settings>summary{font-size:12px;white-space:nowrap;padding:8px;cursor:pointer}
.sunlight-dock .sun-settings[open]{position:absolute;bottom:0;right:0;z-index:80;max-height:320px;overflow:auto;width:min(400px,95vw);padding:12px;border:1px solid #ccdae4;border-radius:12px;background:white;box-shadow:0 4px 24px #0002}
.sunlight-dock .sun-settings[open]>summary{font-weight:700}.sun-dock-controls{flex-wrap:wrap}
#financeDialog{width:min(1080px,96vw);overflow:hidden}#financeDialog[open]{display:flex;flex-direction:column}.finance-heading{flex:none;padding:16px 22px;background:#fff}.finance-content{overflow:auto;min-height:0;padding:20px;display:grid;grid-template-columns:minmax(250px,.8fr) minmax(0,1.2fr);gap:18px;align-items:start}.finance-intro,#financeSource{display:none}#financeForm{grid-column:1;grid-row:1 / span 2;background:#f4f8fa;padding:16px;border-radius:12px}#financeForm:before{content:'Your financing';display:block;font-size:17px;font-weight:700;margin-bottom:14px}.finance-inputs,.finance-inputs tbody{display:block;width:100%}.finance-inputs tr{display:grid;grid-template-columns:1fr auto;margin-bottom:10px}.finance-inputs th{width:auto;grid-column:1 / -1;border:0;padding:0 0 5px;font-size:12px}.finance-inputs td{border:0!important;padding:0!important}.finance-inputs td:nth-child(2){width:100%}.finance-inputs td:nth-child(3){width:auto;padding:10px 0 0 8px!important}.finance-inputs input,.finance-inputs select{background:white;border-radius:7px;text-align:left;font-size:14px;min-height:40px}#financeResults{grid-column:2;grid-row:1 / span 3;min-width:0}.finance-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px}.finance-kpis>div{border:1px solid #c9dce7;padding:12px 8px;border-radius:10px;background:#edf6fa}.finance-kpis span{display:block;font-size:11px;margin-bottom:8px}.finance-kpis strong{font-size:18px}.finance-summary{width:100%;font-size:12px;margin:12px 0}.finance-breakdown summary,.finance-schedule-details summary{cursor:pointer;padding:12px 0;font-size:14px;font-weight:650}.finance-stage-cards{display:grid;gap:8px}.finance-stage{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #dae4e9;padding:10px 0;font-size:12px}.finance-stage small{display:block;color:#637b89;margin-top:4px}.finance-stage>div:last-child{text-align:right}.finance-stage strong{display:block}.finance-scroll{margin:0}.finance-schedule{min-width:750px;font-size:11px}.finance-schedule td,.finance-schedule th{padding:8px}#financeReset{grid-column:1;font-size:12px}.finance-content>.finance-notes{grid-column:1 / -1;font-size:11px}.finance-notes summary{cursor:pointer;font-weight:650}#financeError{grid-column:2}
@media(max-width:700px){.finance-content{display:block;padding:12px}#financeForm{margin-bottom:16px}.finance-heading{padding:12px}.finance-heading h2{font-size:20px}.finance-kpis strong{font-size:15px}.finance-content>.finance-notes{margin-top:16px}}
@media(max-width:800px){@layer properties{body.workspace-v12>header{flex-wrap:wrap!important;gap:8px!important;padding:10px!important}body.workspace-v12>header .brand,body.workspace-v12>header .brand img{width:150px!important;height:auto!important;max-height:28px!important}body.workspace-v12>header .project{display:contents!important}body.workspace-v12>header .project .project-logo{width:140.4px!important;height:52px!important}body.workspace-v12>header .project-facts{width:100%;display:flex;flex-direction:row;flex-wrap:wrap;gap:4px 12px}body.workspace-v12>header .project-facts strong{font-size:10px}body.workspace-v12>header .project-facts span{max-width:none;font-size:10px}}
.availability-control{font-size:10px}.availability-control form{left:0;right:auto}.sun-dock-main #clock{font-size:11px}.workspace-v12 .model-pane #sunControlsPanel.sunlight-dock{gap:6px}.sunlight-dock .sun-settings>summary{font-size:11px;padding:5px}}

@layer properties{body.workspace-v12>header{height:auto!important;min-height:78px!important;flex-shrink:0!important;overflow:visible!important}body.workspace-v12>header .project-facts{overflow:visible!important}body.workspace-v12>header .availability-control{margin:0!important;padding:0!important;border:0!important}body.workspace-v12>header .availability-control summary{color:#fff!important;font-size:11px!important;padding:0!important}}
#financeHighlights{grid-column:2;grid-row:1;margin:0}#financeResults{grid-row:2 / span 3}#financeForm{grid-row:1 / span 3}.finance-kpis strong{font-size:clamp(14px,1.7vw,20px)}
@media(max-width:700px){#financeHighlights{margin-bottom:16px}.finance-inputs tbody{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}.finance-inputs tr:first-child,.finance-inputs tr:nth-child(2){grid-column:1 / -1}.finance-inputs input,.finance-inputs select{min-width:0}.finance-inputs td:nth-child(3){font-size:10px}.finance-kpis strong{font-size:15px}}
@layer properties{body.workspace-v12>header{flex:0 0 auto!important}}
@media(min-width:801px){#matchingFinance thead th{top:54px}}

/* V13.35: grouped branding and simple directional controls. */
@layer properties{body.workspace-v12>header{justify-content:flex-start!important}body.workspace-v12>header .brand{flex:0 0 auto!important}body.workspace-v12>header .project{flex:0 1 auto!important;justify-content:flex-start!important;margin-left:0!important;margin-right:auto!important}}
.workspace-v12 #modelSection .unit-walk{display:flex;flex-wrap:wrap;justify-content:flex-end;max-width:250px}
.workspace-v12 #modelSection .walk-arrows{display:grid;grid-template-columns:repeat(3,40px);gap:4px;flex:0 0 100%;justify-content:end;margin-bottom:6px}
.workspace-v12 #modelSection .walk-arrows button{width:40px;height:40px;min-width:40px;min-height:40px;margin:0;padding:0;border-radius:50%;background:#fff;color:#123b5c;border:1px solid #c5d7e3;font-size:20px;box-shadow:0 2px 8px #183b531a}
.walk-arrows [data-walk=forward]{grid-column:2}.walk-arrows [data-walk=left]{grid-column:1;grid-row:2}.walk-arrows [data-walk=back]{grid-column:2;grid-row:2}.walk-arrows [data-walk=right]{grid-column:3;grid-row:2}
/* V13.36: compact header and one coherent finder. */
@layer properties {
body.workspace-v12>header{min-height:64px!important;padding:6px 22px!important;gap:20px!important}
body.workspace-v12>header .project{gap:12px!important}
body.workspace-v12>header .project .project-logo{width:126px!important;height:48px!important;object-position:left center!important}
body.workspace-v12>header .project-facts{gap:2px!important;line-height:1.3!important}
body.workspace-v12>header .project-facts strong{font-size:13px!important}
body.workspace-v12>header .project-facts span{font-size:11px!important}
.workspace-v12 .unit-filter-group{padding-top:12px!important;margin-top:12px!important;border-top:1px solid #dbe5ec!important}
.workspace-v12 .filter-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.workspace-v12 .unit-filter-group h3{font-size:13px!important;margin:0!important;line-height:1.4!important}
.workspace-v12 .collection-key{display:flex;align-items:center;gap:5px;font-size:11px;color:#4c6575}
.collection-key i{width:9px;height:9px;border:1px solid #a2b8c6;border-radius:2px;background:#e3edf3}
.collection-key i.luxury{background:#f1e6d1;border-color:#bdac85;margin-left:7px}
.workspace-v12 :is(#blockTabs,.match-block-pills){gap:6px!important;margin-top:7px!important}
.workspace-v12 :is(#blockTabs,.match-block-pills) button,.workspace-v12 .gb-ui.gb-inline-rooms .gb-check-row{min-height:34px!important;height:auto!important;min-width:0!important;padding:6px 9px!important;border-radius:8px!important;font-size:12px!important;line-height:1.3!important;box-shadow:none!important;margin:0!important}
.workspace-v12 :is(#blockTabs,.match-block-pills) button{background:#e3edf3!important;color:#294b60!important;border:1px solid #bdceda!important}
.workspace-v12 :is(#blockTabs,.match-block-pills) button[data-block="5"],.workspace-v12 :is(#blockTabs,.match-block-pills) button[data-block="7"]{background:#f1e6d1!important;color:#71501e!important;border-color:#d3c3a1!important}
.workspace-v12 :is(#blockTabs,.match-block-pills) button:is(.active,[aria-pressed=true]){outline:2px solid #123c5c;outline-offset:1px;font-weight:700!important}
.workspace-v12 :is(#blockTabs,.match-block-pills) button[data-block="all"]{background:#fff!important}
.workspace-v12 :is(#blockTabs,.match-block-pills) button[data-block="all"]:is(.active,[aria-pressed=true]){background:#123c5c!important;color:#fff!important}
.workspace-v12 .gb-ui.gb-inline-rooms{padding:12px 0 0!important}
.workspace-v12 .gb-inline-rooms .gb-room-list{gap:6px!important;margin-top:7px!important}
.workspace-v12 .gb-ui.gb-inline-rooms .gb-room-colour{border-left-width:4px!important}
.workspace-v12 .gb-ui.gb-inline-rooms .gb-room-colour:has([data-state=checked]){box-shadow:none!important}
@media(max-width:800px){
body.workspace-v12>header{gap:8px 14px!important;padding:6px 12px!important;min-height:60px!important}
body.workspace-v12>header .project .project-logo{width:112px!important;height:42px!important}
body.workspace-v12>header .project-facts{gap:2px 10px!important}
body.workspace-v12>header .project-facts strong,body.workspace-v12>header .project-facts span{font-size:10px!important}
}
}
/* V13.37: compact budgets and consistent pill actions. */
@layer properties {
.workspace-v12 .gb-filter-bar{padding:10px 12px!important;margin-bottom:0!important;border-radius:16px!important}
.workspace-v12 .gb-filter-inline{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px 10px!important;align-items:center!important}
.workspace-v12 .gb-filter-inline .gb-budget{grid-column:1/-1;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;min-width:0!important;margin:0!important}
.workspace-v12 .gb-budget label{font-size:11px!important;margin:0 0 3px!important;line-height:1.2!important}
.workspace-v12 .gb-budget select{height:34px!important;min-height:34px!important;padding:4px 10px!important;font-size:12px!important;line-height:1.3!important;border-radius:999px!important;box-shadow:none!important}
.workspace-v12 .gb-filter-inline .gb-result{min-width:0!important;margin:0!important;padding:0!important;font-size:11px!important;line-height:1.3!important}
.workspace-v12 .gb-filter-inline .gb-result strong{font-size:11px!important}
.workspace-v12 .gb-filter-inline .gb-result small{display:none!important}
.workspace-v12 .gb-filter-inline>button{height:30px!important;min-height:30px!important;padding:4px 9px!important;font-size:11px!important;border-radius:999px!important;box-shadow:none!important}
.workspace-v12 .gb-filter-inline>button svg{width:13px!important;height:13px!important}
.workspace-v12 .unit-filter-group{margin-top:8px!important;padding-top:8px!important}
.workspace-v12 :is(#blockTabs,.match-block-pills) button,.workspace-v12 .gb-ui.gb-inline-rooms .gb-check-row{border-radius:999px!important}
.workspace-v12 .unit-quick-actions button,.workspace-v12 .compare-balcony{border-radius:999px!important;min-height:34px!important;height:auto!important;padding:6px 12px!important;font-size:12px!important;line-height:1.3!important}
.workspace-v12 .unit-quick-actions .view-unit-button,.workspace-v12 .unit-quick-actions [data-slot=button]:has(+.view-unit-button),.workspace-v12 .compare-balcony{background:#e6f0ff!important;border:1px solid #92b8f0!important;color:#123c5c!important;box-shadow:none!important}
.workspace-v12 .compare-plan{border-radius:0!important;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;overflow:visible!important}
.workspace-v12 .compare-plan:focus-visible{outline:2px solid #28679b!important;outline-offset:3px!important}
.workspace-v12 .map-glass-controls .explore-toggle input{box-sizing:border-box!important;width:30px!important;min-width:30px!important;height:18px!important;min-height:18px!important;flex:0 0 30px!important;margin:0!important;padding:0!important;align-self:center!important}
.workspace-v12 .map-glass-controls .explore-toggle input:before{width:12px!important;height:12px!important;top:3px!important;left:3px!important}
.workspace-v12 .map-glass-controls .explore-toggle input:checked:before{transform:translateX(12px)!important}
}
@layer properties{
.workspace-v12 .unit-quick-actions .gb-action:has(+.view-unit-button) button{background:#e6f0ff!important;border:1px solid #92b8f0!important;color:#123c5c!important;box-shadow:none!important}
}
@layer properties{
.workspace-v12 .gb-filter-inline .gb-budget,.workspace-v12 .gb-budget>div,.workspace-v12 .gb-budget select{width:100%!important;max-width:none!important}
.workspace-v12 .gb-quick button{border-radius:999px!important}
.workspace-v12 .chart-title{padding:12px 16px 6px!important}
.workspace-v12 .quick-unit{padding:8px 16px 12px!important}
}
/* V13.38: colour identifies type; outline and weight identify selection. */
@layer properties {
.workspace-v12 .gb-ui.gb-inline-rooms .gb-check-row{font-weight:400!important;background:#fff!important;color:#123c5c!important;border:1px solid #afc5d3!important;outline:none!important;box-shadow:none!important}
.workspace-v12 .gb-ui.gb-inline-rooms .gb-room-colour{background:var(--room-colour)!important;color:#101d25!important;border:1px solid transparent!important}
.workspace-v12 .gb-ui.gb-inline-rooms .gb-check-row:has([data-state=checked]){font-weight:700!important;outline:2px solid #123c5c!important;outline-offset:1px!important}
.workspace-v12 .gb-inline-rooms .gb-room-list{gap:8px!important}
.workspace-v12 .gb-ui.gb-inline-rooms .gb-check-row:has(button:focus-visible){outline:3px solid #328bdd!important;outline-offset:3px!important}
.workspace-v12 .gb-price-controls{display:flex!important;flex-wrap:wrap!important;width:100%!important;gap:12px!important}
.workspace-v12 .match-block-filter{flex:1 1 100%;min-width:0}
.workspace-v12 .match-block-filter h3{font-size:13px!important;margin:0!important}
.workspace-v12 .match-block-pills button:focus-visible{outline:3px solid #328bdd;outline-offset:3px}
}
/* V13.39 */
@layer properties{
body.workspace-v12>header .brand,body.workspace-v12>header .brand img{width:192px!important;max-height:none!important}
@media(max-width:800px){body.workspace-v12>header .brand,body.workspace-v12>header .brand img{width:168px!important;max-height:none!important}}
.workspace-v12 .gb-ui.gb-inline-rooms{overflow:visible!important;padding:14px 0 4px!important;min-width:0!important}
.workspace-v12 .gb-inline-rooms .gb-room-list{padding:2px!important;gap:8px!important;align-items:center!important;overflow:visible!important;margin-top:8px!important}
.workspace-v12 .gb-ui.gb-inline-rooms .gb-check-row{outline-offset:-2px!important;min-height:34px!important;line-height:18px!important;padding:7px 11px!important;box-sizing:border-box!important}
.workspace-v12 .gb-ui.gb-inline-rooms .gb-room-list[data-all-selected=true] .gb-room-colour{outline:none!important;font-weight:400!important}
.workspace-v12 .gb-ui.gb-inline-rooms .gb-check-row:has(button:focus-visible){outline:3px solid #328bdd!important;outline-offset:-3px!important}
.workspace-v12 .gb-price-controls .match-rooms{flex:1 1 100%;width:100%!important;padding-top:0!important}
}
@layer properties{
.workspace-v12 #clearPrice,.workspace-v12 #dialogFinance{width:fit-content!important;max-width:100%!important;min-width:0!important;display:inline-flex!important;padding:8px 14px!important;border-radius:999px!important;margin:8px 6px 8px 0!important}
}
@layer properties{
body.workspace-v12.inspector-collapsed>main{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important}
body.workspace-v12.inspector-collapsed .inspector-pane{display:none!important}
.workspace-v12 #toggleInspector{width:42px!important;min-width:42px!important;height:42px!important;padding:0!important;border-radius:50%!important;font-size:23px!important;line-height:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
}
@layer properties{
.workspace-v12 .model-pane>#toggleInspector{position:absolute!important;right:0!important;top:50%!important;transform:translateY(-50%)!important;z-index:45!important;width:30px!important;min-width:30px!important;height:52px!important;border-radius:14px 0 0 14px!important;background:#fff!important;border:1px solid #b7cbd9!important;color:#123c5c!important;box-shadow:-2px 2px 10px #123c5c20!important;font-size:22px!important;margin:0!important}
}
@layer properties{
@media(min-width:801px){
body.workspace-v12>main{grid-template-columns:minmax(0,1fr) minmax(0,max(390px,36%))!important;transition:grid-template-columns .28s ease!important}
body.workspace-v12.inspector-collapsed>main{grid-template-columns:minmax(0,1fr) minmax(0,0px)!important}
.workspace-v12 .inspector-pane{transition:transform .28s ease,opacity .2s ease!important;transform:translateX(0);opacity:1}
body.workspace-v12.inspector-collapsed .inspector-pane{display:block!important;transform:translateX(100%)!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important}
}
@media(prefers-reduced-motion:reduce){body.workspace-v12>main,.workspace-v12 .inspector-pane{transition:none!important}}
}

/* V15.5: map views join the floating controls inside the canvas. */
@layer properties {
.workspace-v12 .map-glass-controls>.map-tools-anchor{pointer-events:auto;position:relative!important;margin:0!important;width:fit-content!important;max-width:calc(100% - 64px)!important;z-index:40}
.workspace-v12 .map-glass-controls .map-tools-bar{width:fit-content!important;max-width:100%!important;display:flex!important;gap:3px!important;padding:4px!important;flex-wrap:wrap!important;overflow:visible!important;border:1px solid #ffffffcf!important;border-radius:999px!important;background:linear-gradient(145deg,#ffffffbf,#e2effa8c)!important;box-shadow:0 5px 20px #163c5626,inset 0 1px 0 #fff!important;backdrop-filter:blur(22px) saturate(170%);-webkit-backdrop-filter:blur(22px) saturate(170%)}
.workspace-v12 .map-glass-controls .map-tools-bar button{min-height:34px!important;padding:7px 11px!important;font-size:12px!important;border-radius:999px!important}
.workspace-v12 .stage .mapnote{top:116px!important}
@media(max-width:800px){
.workspace-v12 .map-glass-controls .map-tools-bar button{font-size:11px!important;padding:6px 8px!important;min-height:32px!important}
.workspace-v12 .stage .mapnote{top:108px!important}
.workspace-v12 .stage .nav-compass{top:10px!important}
}
}
@layer properties {
.workspace-v12 .model-pane .map-glass-controls{width:calc(100% - 20px)!important;max-width:none!important;right:10px!important}
.workspace-v12 .map-glass-controls .map-tools-bar{flex-wrap:nowrap!important}
.workspace-v12 .map-glass-controls .map-tools-bar>button,.workspace-v12 .map-glass-controls .map-tools-ura,.workspace-v12 .map-glass-controls .map-tools-ura>button{width:auto!important;flex:0 0 auto!important}
}
@layer properties {
.workspace-v12 .model-pane .map-glass-controls{background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;padding:0!important}
}

/* V15.7: shared finder/matching filters and count immediately above sorting. */
@layer properties {
.workspace-v12 .match-filter-group{width:100%;min-width:0}
.workspace-v12 .match-block-pills{display:flex;flex-wrap:wrap}
.workspace-v12 .match-sort{width:100%;min-width:0}
.workspace-v12 .match-count{font-size:12px;color:#4c6575;line-height:1.4;margin:0 0 8px}
.workspace-v12 #comparableSection{padding:0!important;overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}
.workspace-v12 #comparableSection>.chart-title{padding:0!important;background:transparent!important}
.workspace-v12 #comparableSection .comparable-controls{width:100%;margin:0}
}

/* Approved matching-unit list reference; financial differences remain available on demand. */
#matchingFinance.matching-unit-list #matchingFinanceTable{border:0;border-radius:0}
#matchingFinance.matching-unit-list table{font-size:clamp(10px,2.6cqw,14px);letter-spacing:normal}
#matchingFinance.matching-unit-list th,#matchingFinance.matching-unit-list td{text-align:center;vertical-align:middle;padding:10px 5px!important;font-size:inherit!important}
#matchingFinance.matching-unit-list thead th{font-weight:500;background:#edf4f8}
#matchingFinance.matching-unit-list tbody td:first-child{border-left:5px solid var(--unit-colour)}
#matchingFinance.matching-unit-list [data-stack]{display:inline-block;padding:6px 8px!important;min-height:36px!important;border:1px solid #60756b;border-radius:999px;background:var(--unit-colour);color:#172b25;text-decoration:none;font-size:inherit!important;box-shadow:inset 0 0 0 2px #ffffff55}
#matchingFinance.matching-unit-list [data-stack]:focus-visible{outline:2px solid #235bb1;outline-offset:2px}
#matchingFinanceView{margin:12px 0}

/* Matching rows choose a reference; the pill remains a distinct navigation action. */
#matchingFinance.matching-unit-list tbody tr{cursor:pointer}
#matchingFinance.matching-unit-list tbody tr:focus-visible{outline:2px solid #235bb1;outline-offset:-2px}
#matchingFinance.matching-unit-list .reference td{background:#dff4f7}
#matchingFinance.matching-row-comparison #matchingFinanceTable{overflow-x:auto}
#matchingFinance.matching-row-comparison table{min-width:420px!important}
#matchingFinance.matching-row-comparison thead th{position:static!important;top:auto}
#matchingFinance.matching-row-comparison td{white-space:nowrap}
#matchingFinance.matching-row-comparison small{display:block;white-space:nowrap}
#matchingReference{font-size:12px;line-height:1.5;color:#4c6575;margin:10px 0}
#clearMatchingReference{margin-bottom:10px}

#matchingFinance.matching-row-comparison td:nth-child(2){white-space:normal}

/* Keep the unit list and calculator results together in one accessible scroll region. */
#matchingFinance.matching-integrated #matchingFinanceTable{overflow-x:auto}
#matchingFinance.matching-integrated table{min-width:660px!important}
#matchingFinance.matching-integrated thead th{position:static!important;top:auto}
#matchingFinance.matching-integrated td:not(:nth-child(2)){white-space:nowrap}
#matchingFinance.matching-integrated td strong{font-weight:500}
#matchingFinance.matching-integrated .reference td strong{font-weight:700}
#matchingFinance.matching-integrated td small{display:block;white-space:nowrap}
@layer properties {
.workspace-v12 #unitDetails .unit-quick-actions{justify-content:flex-start!important;align-items:center;margin-left:0!important;width:100%}
.workspace-v12 #unitDetails .unit-quick-actions #dialogFinance{width:auto!important;min-height:30px!important;margin:0!important;padding:4px 7px!important;font-size:11px!important;line-height:1.3!important}
}

/* Compact metadata and reserve comparison space so row selection does not shift the table. */
#matchingFinance.matching-integrated table{min-width:480px!important}
#matchingFinance.matching-integrated .matching-unit-description{white-space:normal;font-weight:400;color:#526577;font-size:11px;line-height:1.4;margin-top:5px}
#matchingFinance .matching-reference-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:52px}
#matchingFinance .matching-reference-controls #matchingReference{margin:0}
#matchingFinance .matching-reference-controls #clearMatchingReference{margin:0;white-space:nowrap}
#matchingFinance .matching-difference-placeholder{visibility:hidden}
#matchingFinance.matching-integrated td small{min-height:14px;line-height:14px}
#matchingFinance.matching-integrated td .difference-percent{min-height:14px;line-height:14px}
@layer properties {
.workspace-v12 #unitDetails .unit-quick-actions{align-items:center!important}
.workspace-v12 #unitDetails .unit-quick-actions .gb-action{display:flex;align-items:center;margin:0!important}
.workspace-v12 #unitDetails .unit-quick-actions #dialogFinance,.workspace-v12 #unitDetails .unit-quick-actions .gb-action button,.workspace-v12 #unitDetails .unit-quick-actions #addComparison:not(.gb-legacy){display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;height:32px!important;min-height:32px!important;margin:0!important;padding:4px 7px!important;font-size:11px!important;line-height:1.3!important}
}

#matchingFinance.matching-integrated td:nth-child(2)>small,#matchingFinance.matching-integrated td:nth-child(3)>small{height:28px;min-height:28px;box-sizing:border-box}

/* Comparison plans open separately, preserving the active comparison and model selection. */
#threeUnitTable .compare-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
@layer properties {
.workspace-v12 #threeUnitTable :is(.compare-plan,.compare-balcony,[data-unit-view]){display:inline-flex!important;align-items:center;justify-content:center;width:130px!important;font:600 12px/1.4 Manrope,Arial,sans-serif!important;padding:8px 18px!important;border:1px solid #92b8f0!important;border-radius:999px!important;background:#e6f0ff!important;color:#123c5c!important;min-height:36px!important}
}
#comparePlanDialog{width:min(900px,calc(100vw - 24px));max-height:92dvh;box-sizing:border-box;padding:18px;border:1px solid #cad5df;border-radius:16px;color:#17344c;background:#fff;overflow:auto}
#comparePlanDialog::backdrop{background:#102a4377}
#comparePlanDialog .compare-plan-header{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;padding:0;margin:0}
#comparePlanDialog h2{margin:0;font-size:20px}
#comparePlanDialog .compare-plan-image{overflow:auto;text-align:center}
#comparePlanImage{display:block;max-width:100%;max-height:65dvh;width:auto;height:auto;margin:auto;object-fit:contain}
#comparePlanDialog p{font-size:12px;line-height:1.5;color:#526577}
#mapPreview{border-radius:999px;white-space:pre-line;max-width:min(340px,calc(100% - 32px));padding:8px 16px;line-height:1.4}

#matchingFinance #matchingReference{display:flex;align-items:center;gap:8px}
#matchingFinance #matchingReference [data-stack]{flex:0 0 auto}

/* Compact Compare around search and the selected-unit summary. */
@layer properties {
.workspace-v12 #comparisonSection{margin:0!important;padding:10px!important}
.workspace-v12 #comparisonSection>.chart-title{margin:0 0 6px!important;padding:0!important;min-height:0}
.workspace-v12 #threeUnitTable th,.workspace-v12 #threeUnitTable td{padding:8px 10px!important}
.workspace-v12 #threeUnitTable .compare-picker>strong{margin:0 0 5px!important}
.workspace-v12 #threeUnitTable .compare-picker input[type=search]{min-height:34px!important;margin:3px 0 5px!important;padding:6px 8px!important}
.workspace-v12 #threeUnitTable .compare-current{margin:3px 0!important;font-size:12px!important}
.workspace-v12 #threeUnitTable .clear-compare{min-height:30px!important;padding:4px 9px!important;margin-top:5px!important}
}

#threeUnitTable .compare-reference{padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:600;min-height:28px;cursor:pointer}
#threeUnitTable .compare-reference[aria-pressed=true]{color:#176c7a;text-decoration:underline;text-underline-offset:3px}
#threeUnitTable .compare-financial-row td[data-compare-reference]{cursor:pointer}
#threeUnitTable .is-finance-reference{background:#dff4f7}
#threeUnitTable .compare-finance-difference{display:block;min-height:18px;font-size:12px;line-height:1.5}
#threeUnitTable .compare-finance-difference.lower{color:#23753b}
#threeUnitTable .compare-finance-difference.higher{color:#9b5700}
#threeUnitTable .compare-finance-difference.same{color:#607582}
#threeUnitTable .compare-price-status{display:block;font-size:11px;color:#607582}
#threeUnitTable .compare-finance-heading th{background:#edf4f8;text-align:left}
#threeUnitTable .compare-sun-summary span{display:block;font-weight:400}
#threeUnitTable .compare-financial-row td:focus-visible{outline:2px solid #235bb1;outline-offset:-2px}
@layer properties {
.workspace-v12 #threeUnitTable td.is-finance-reference{background:#dff4f7!important}
}

/* Approved unit-details order and compact matching presentation. */
#matchingFinance.matching-integrated :is(th,td){text-align:center!important;vertical-align:middle!important}
#matchingFinance .matching-unit-description{text-align:center!important}
#matchingFinanceIntro{display:none!important}
#unitDialog :is(#dialogLayout,#dialogArea),#unitDetails .stack-context .outlook-meta,#unitDetails>.gb-enquiries{display:none!important}
#unitDialog .dialog-body>.stats{margin:12px 0}
@layer properties {
/* The selected unit identity follows its volume in the model, not a screen-edge box. */
.workspace-v12 #modelSection .selected-unit-label{left:var(--selected-unit-x)!important;top:var(--selected-unit-y)!important;bottom:auto!important;transform:translate(-50%,-50%)!important;max-width:none!important;padding:2px 4px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#fff!important;font-size:12px!important;line-height:1.2!important;white-space:nowrap;text-shadow:0 1px 3px #000,1px 0 2px #000;pointer-events:none}
.workspace-v12 #inspector-tab-4:not([hidden]){display:grid!important;gap:12px!important}
.workspace-v12 #inspector-tab-4>.maphead{margin:0!important;padding:0!important}
.workspace-v12 #inspector-tab-4 .maphead h1{margin:0 0 6px!important}
.workspace-v12 #inspector-tab-4 .maphead p{margin:0!important}
.workspace-v12 #inspector-tab-4 .explore-onemap{margin:0!important}
.workspace-v12 #inspector-tab-4 .model-controls{margin:0!important;padding:0!important;display:contents!important}
.workspace-v12 #inspector-tab-4 :is(.tools-panel,.ura-panel,.osm-controls,.model-help){margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.workspace-v12 #inspector-tab-4 :is(.tools-panel,.ura-panel,.osm-controls,.model-help)>summary{box-sizing:border-box;width:100%!important;min-height:44px;padding:10px 16px!important;border:1px solid #bdcdd9!important;border-radius:999px!important;background:#edf4f9!important;font-size:13px!important;font-weight:600!important;line-height:1.5;color:#123b5c}
.workspace-v12 #inspector-tab-4 :is(.tools-panel,.ura-panel,.osm-controls,.model-help)[open]{padding:10px!important;border:1px solid #d5e0e7!important;border-radius:18px!important;background:white!important}
.workspace-v12 #inspector-tab-4 :is(.tools-panel,.ura-panel,.osm-controls,.model-help)[open]>summary{margin-bottom:10px}
}
@media(min-width:801px){body.workspace-v12{padding-bottom:0!important}}

/* V15.28 audit: keep mobile facts in separate rows, including Safari text sizing. */
@layer properties {
@media(max-width:800px){
body.workspace-v12>header .project-facts{display:grid!important;grid-template-columns:minmax(0,1fr);align-items:start;gap:3px!important;min-width:0;width:100%;height:auto}
body.workspace-v12>header .project-facts>strong,body.workspace-v12>header .project-facts>span{line-height:1.4!important;max-width:100%;white-space:normal;overflow-wrap:anywhere}
body.workspace-v12>header .availability-control{min-width:0;max-width:100%;line-height:1.5}
body.workspace-v12>header .availability-control summary{display:block;line-height:1.5!important;white-space:normal;overflow-wrap:anywhere}
body.workspace-v12>header .availability-control summary::-webkit-details-marker{display:none}
body.workspace-v12>header .availability-control form{top:calc(100% + 6px);width:min(275px,100%);max-width:100%}
}
}

/* V16.1: keep the map and camera viewport fixed when Sun is toggled. */
.workspace-v12 .model-pane .stage #sunControlsPanel.sunlight-dock{
 position:absolute;inset:auto 10px calc(var(--map-credit-height,48px) + var(--map-toolbar-height,40px) + 16px) 10px;
 width:auto;max-width:none;margin:0;z-index:35;box-sizing:border-box;
 background:linear-gradient(135deg,#fffffff0,#edf4f9eb);border:1px solid #ffffffc9;
 box-shadow:0 4px 18px #123b5c24;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}
.workspace-v12 .stage:has(#sunControlsPanel:not([hidden])) .legend{
 bottom:calc(var(--map-credit-height,48px) + var(--map-toolbar-height,40px) + 76px)!important;
}
.sunlight-dock .sun-settings[open]{width:min(400px,100%);max-height:min(260px,40dvh);box-sizing:border-box}
@media(max-width:800px){
 .workspace-v12 .model-pane .stage #sunControlsPanel.sunlight-dock{left:6px;right:6px;padding:6px;gap:5px}
 .sunlight-dock .sun-settings>summary{font-size:10px;padding:5px 2px}
}
@media(prefers-reduced-transparency:reduce){
 .workspace-v12 .model-pane .stage #sunControlsPanel.sunlight-dock{background:#f0f6fa;backdrop-filter:none;-webkit-backdrop-filter:none}
}

/* V16.4: compact hologram readout and visible sky navigation. */
.workspace-v12 #mapPreview{white-space:pre-line;background:#082e3eea;color:#c3faff;border:1.5px solid #67eaff;box-shadow:0 0 12px #42dff540;border-radius:8px;padding:7px 11px;font-weight:600}
.sun-dock-main #findSkySun{white-space:nowrap;padding:6px 9px;font-size:11px}

/* V16.5: consistent Manrope hierarchy and readable numeric information. */
body.workspace-v12{font-family:Manrope,Arial,sans-serif;line-height:1.5}
.workspace-v12 :is(button,input,select,textarea){font-family:inherit}
.workspace-v12 :is(h1,h2,h3){font-weight:700;line-height:1.3;letter-spacing:-.02em}
.workspace-v12 :is(button,summary){font-weight:600}
.workspace-v12 :is(input,select,textarea){font-weight:400}
.workspace-v12 :is(#clock,.stats strong,.unit-grid,.comparable-table,#threeUnitTable,#financeResults,input[type=number]){font-variant-numeric:tabular-nums lining-nums}
.workspace-v12 :is(.muted,.compare-hint,.plan-note){line-height:1.5}
.workspace-v12 .door-compass{font-family:Manrope,Arial,sans-serif}

/* V16.6: align matching actions and sunlight ranking with inspector typography. */
.workspace-v12 #clearMatchingReference,.workspace-v12 #matchingFinanceMore{font-size:12px;line-height:1.4;font-weight:600}
.workspace-v12 #sunlightRanking{font-size:12px;line-height:1.5}
.workspace-v12 #sunlightRanking h3{font-size:14px;line-height:1.35;font-weight:700}
.workspace-v12 #sunlightRanking :is(p,label,button,select,[role=status]){font-size:12px;line-height:1.5}
.workspace-v12 #sunlightRanking :is(button,select){min-height:36px}

/* V16.7: centred financial figures, concise outlook and daily sun graphic. */
.workspace-v12 #matchingFinance :is(th,td):not(:first-child){text-align:center;vertical-align:middle}
.workspace-v12 #sunlightStudy{background:linear-gradient(155deg,#f4f9ff,#fffaf0);border-color:#d4e2ed}
.sun-weather-total{display:flex;align-items:baseline;gap:10px}.sun-weather-total strong{font-size:32px;font-weight:700;color:#153d58}.sun-weather-total span{font-size:12px;color:#52677b}
.sun-weather svg{display:block;width:100%;height:auto;overflow:visible}.sun-horizon{stroke:#b9cbd8;stroke-width:1;stroke-dasharray:3 4}.sun-day-arc{stroke:#c3cfdb;stroke-width:3;fill:none}.sun-exposure-arc{stroke:#e6a52d;stroke-width:5;fill:none;stroke-linecap:round}.sun-weather-now{fill:#ffd46b;stroke:#fff;stroke-width:2;filter:drop-shadow(0 0 4px #efba47)}.sun-weather text{font:11px Manrope,Arial,sans-serif;fill:#52677b}
#sunlightStudy .sun-weather-key{display:flex;align-items:center;gap:6px;font-size:11px;margin:4px 0 14px}.sun-weather-key i{width:14px;height:4px;border-radius:3px;background:#e6a52d}.sun-weather-key span{color:#52677b}
.sun-weather-split{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #dbe4eb;padding-top:12px;gap:16px}.sun-weather-split>span{font-size:11px;color:#52677b}.sun-weather-split strong{display:block;font-size:18px;color:#153d58;margin-top:3px}
.outlook-key-points{list-style:none;margin:8px 0;padding:0}.outlook-key-points li{display:grid;grid-template-columns:90px 1fr;gap:10px;padding:8px 0;border-bottom:1px solid #e3eaf0;font-size:12px;line-height:1.5}.outlook-key-points strong{font-weight:600}.outlook-key-points span{color:#52677b}.outlook-caveat{font-size:11px!important;line-height:1.5}

/* V16.8: consistent comparison actions and Explore panel rhythm. */
.workspace-v12 #threeUnitTable :is(.compare-plan,.compare-balcony,[data-unit-view]){display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:130px;min-height:36px;margin:0;padding:7px 16px;border:1px solid #94b9ea;border-radius:999px;background:#e7f0ff;color:#123b5c;font:600 12px/1.4 Manrope,Arial,sans-serif;box-shadow:none;text-decoration:none}
.workspace-v12 #threeUnitTable :is(.compare-plan,.compare-balcony,[data-unit-view]):hover{background:#d9e9ff}
.workspace-v12 #inspector-tab-4:not([hidden]){gap:12px!important;align-content:start}
.workspace-v12 #inspector-tab-4 .maphead h1{font-size:20px;line-height:1.3;margin-bottom:6px!important}
.workspace-v12 #inspector-tab-4 .maphead p{font-size:12px;line-height:1.5}
.workspace-v12 #inspector-tab-4 .model-controls:empty{display:none!important}
.workspace-v12 #inspector-tab-4 .model-controls{display:contents!important}
.workspace-v12 #inspector-tab-4 :is(.explore-onemap,.disclosures-group){margin:0!important}
.workspace-v12 #inspector-tab-4 :is(#oneMapToolsButton,.tools-panel>summary,.ura-panel>summary,.model-help>summary,.disclosures-group>summary){display:block;box-sizing:border-box;width:100%!important;min-height:44px;margin:0!important;padding:11px 16px!important;border:1px solid #bdcdd9!important;border-radius:14px!important;background:#edf4f9!important;color:#123b5c;font:600 13px/1.5 Manrope,Arial,sans-serif!important;text-align:left;box-shadow:none!important}
.workspace-v12 #inspector-tab-4 details>summary{cursor:pointer}
.workspace-v12 #inspector-tab-4 :is(.tools-panel,.ura-panel,.model-help,.disclosures-group)[open]>summary{margin-bottom:12px!important}
.workspace-v12 #explorerInspector #inspector-tab-4 .model-controls{display:contents!important}
.workspace-v12 #explorerInspector #inspector-tab-4 details>summary{border-radius:14px!important}
.workspace-v12 #explorerInspector #inspector-tab-4 details>summary::before{content:'▸';display:inline-block;margin-right:7px}
.workspace-v12 #explorerInspector #inspector-tab-4 details[open]>summary::before{content:'▾'}

/* V16.9: embedded panorama and finance form alignment. */
#panoramaDialog{width:min(1200px,96vw);max-width:96vw;height:90dvh;max-height:94dvh;padding:0;border:1px solid #cfdde7;border-radius:18px;color:#123b5c;background:white}
#panoramaDialog[open]{display:flex;flex-direction:column}.panorama-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 20px}.panorama-heading h2{margin:0;font-size:20px}#panoramaDialog iframe{flex:1;width:100%;min-height:0;border:0}#panoramaDialog>p{font-size:12px;margin:0;padding:10px 20px}#panoramaDialog::backdrop{background:#123b5cc9}
.workspace-v12 #finance-cpf-hint{display:none!important}
.workspace-v12 #financeForm tr:has(#finance-cpf){grid-template-columns:1fr}
.workspace-v12 #financeForm tr:has(#finance-max){grid-template-columns:1fr auto;align-items:center;gap:12px}
.workspace-v12 #financeForm tr:has(#finance-max)>th{grid-column:1;grid-row:1;padding:0;line-height:1.4}
.workspace-v12 #financeForm tr:has(#finance-max)>td:nth-child(2){grid-column:2;grid-row:1;width:auto;line-height:1.4}
.workspace-v12 #finance-max-hint{display:none!important}


/* Master 0.4.9: immersive canvas and a single on-demand workspace. */
@layer properties {
 body.workspace-v12.model-first>main{display:block!important;position:relative!important;isolation:isolate;overflow:hidden!important;grid-template-columns:none!important;transition:none!important}
 body.workspace-v12.model-first .model-pane{position:absolute!important;inset:0!important;padding:0!important;width:100%!important;height:100%!important}
 body.workspace-v12.model-first .model-pane>.stage:not(.model-expanded){position:absolute!important;inset:0!important;width:100%!important;height:100%!important;border:0!important;border-radius:0!important;margin:0!important}
 body.workspace-v12.model-first>header{height:58px!important;flex-basis:58px!important;padding:6px 24px!important;box-shadow:none!important;background:#102f46!important}
 body.workspace-v12.model-first .inspector-pane{position:absolute!important;inset:16px 16px 16px auto!important;width:min(460px,calc(100% - 32px))!important;height:auto!important;display:block!important;transform:none!important;opacity:1!important;pointer-events:auto!important;border:1px solid #ffffffbd!important;border-radius:22px!important;background:#f7f9fbfa!important;box-shadow:0 18px 64px #102f4633!important;z-index:65!important;overflow:auto!important;scrollbar-gutter:auto}
 body.workspace-v12.model-first.inspector-collapsed .inspector-pane{display:none!important;pointer-events:none!important}
 .model-first .explorer-drawer-heading{position:sticky;top:0;z-index:40;display:flex;justify-content:space-between;align-items:center;padding:20px 20px 12px;background:#f7f9fb;gap:16px}
 .model-first .explorer-drawer-heading small{font-size:9px;letter-spacing:.16em;color:#6a8191;font-weight:700}
 .model-first .explorer-drawer-heading h2{font-size:22px;margin:5px 0 0;color:#123b5c;line-height:1.3}
 .model-first .model-first-close{width:40px;height:40px;min-width:40px;padding:0;border:1px solid #d9e3ea;border-radius:50%;background:white;color:#123b5c;font-size:24px;cursor:pointer}
 body.model-first .inspector-pane .section-nav{top:87px!important;padding:6px 12px!important;min-height:46px!important;background:#f7f9fb!important}
 .model-first .inspector-content{padding:18px 20px 32px}
 .model-first .explorer-dock{position:absolute;bottom:28px;left:50%;transform:translateX(-50%);z-index:50;display:flex;gap:4px;padding:6px;background:#f8fbf3e8;border:1px solid #fff;border-radius:20px;box-shadow:0 8px 32px #102f4626;backdrop-filter:blur(18px)}
 .model-first .explorer-dock button{display:flex;align-items:center;gap:9px;min-height:46px;padding:12px 17px;border:0;border-radius:14px;background:transparent;color:#193e58;font:600 12px Manrope,Arial,sans-serif;cursor:pointer;white-space:nowrap}
 .model-first .explorer-dock button:first-child{background:#123b5c;color:white}
 .model-first .explorer-dock button:hover{background:#dde8ef;color:#123b5c}
 .model-first svg{flex-shrink:0}
 .model-first .explorer-dock svg,.model-first #toggleInspector svg,.model-first .explorer-sun-shortcut svg{width:20px;height:20px}
 body.workspace-v12.model-first .model-pane>#toggleInspector,.model-first .explorer-sun-shortcut{position:absolute!important;top:20px!important;left:20px!important;right:auto!important;bottom:auto!important;transform:none!important;width:46px!important;height:46px!important;min-width:46px!important;padding:12px!important;display:grid!important;place-items:center!important;z-index:50!important;border-radius:15px!important;border:1px solid white!important;background:#f8fbf3e8!important;color:#123b5c!important;box-shadow:0 4px 18px #102f4620!important;backdrop-filter:blur(16px);cursor:pointer}
 .model-first .explorer-sun-shortcut{left:74px!important}
 body.workspace-v12.model-first .stage .nav-compass{top:18px!important;right:20px!important}
 body.workspace-v12.model-first .stage .tools{bottom:30px!important;right:20px!important;left:auto!important;gap:4px!important}
 .model-first .stage .tools button{min-height:40px!important;padding:8px 12px!important}
 .model-first .explorer-view-settings{padding:0 0 20px;border-bottom:1px solid #dbe4eb;margin-bottom:24px}
 .model-first .explorer-view-settings h3{font-size:15px;margin:0 0 12px}
 body.model-first .explorer-view-settings .map-glass-controls{position:static!important;display:flex!important;max-width:100%!important;width:100%!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;pointer-events:auto!important;backdrop-filter:none!important}
 body.model-first .explorer-view-settings .map-tools-anchor{width:100%;margin:0!important}
 body.model-first .explorer-view-settings .map-tools-bar,body.model-first .explorer-view-settings .map-tools-secondary{display:flex!important;flex-wrap:wrap!important;gap:6px!important;background:none!important;box-shadow:none!important;border:0!important;padding:4px 0!important;width:100%!important}
 body.model-first .explorer-view-settings .map-tools-bar button,body.model-first .explorer-view-settings .explore-toggle{min-height:42px!important;border-radius:10px!important;background:#e8eff4!important;text-shadow:none!important;color:#123b5c!important}
 body.model-first .explorer-view-settings :is(#uraOpacityPanel,#oneMapDrawer,#sunControlsPanel,.sunlight-dock){position:relative!important;inset:auto!important;width:100%!important;max-width:100%!important;transform:none!important;box-sizing:border-box;margin:12px 0!important;max-height:none!important;box-shadow:none!important}
 body.model-first .explorer-view-settings .sunlight-dock[hidden]{display:none!important}
 .model-first :is(.explorer-dock button,#toggleInspector,.explorer-sun-shortcut,.model-first-close):focus-visible{outline:3px solid #2d86ca!important;outline-offset:3px}
 @media(max-width:1000px){body.workspace-v12.model-first .stage .tools{bottom:110px!important}.model-first .explorer-dock button{padding:12px}}
 @media(max-width:800px){
 body.workspace-v12.model-first>header{height:54px!important;flex-basis:54px!important;padding:6px 12px!important}
 body.workspace-v12.model-first .inspector-pane{inset:auto 0 0!important;width:100%!important;height:min(72dvh,680px)!important;max-height:calc(100% - 20px)!important;border-radius:24px 24px 0 0!important;border-bottom:0!important}
 .model-first .explorer-drawer-heading{padding:16px 18px 10px}.model-first .explorer-drawer-heading h2{font-size:20px}
 body.model-first .inspector-pane .section-nav{top:76px!important}
 .model-first .explorer-dock{bottom:max(20px,env(safe-area-inset-bottom));width:max-content;max-width:calc(100% - 24px);gap:2px;padding:5px;border-radius:18px}
 .model-first .explorer-dock button{flex-direction:column;gap:5px;min-width:70px;min-height:54px;padding:7px 10px;font-size:10px}
 body.workspace-v12.model-first .model-pane>#toggleInspector{top:14px!important;left:14px!important}.model-first .explorer-sun-shortcut{top:14px!important;left:68px!important}
 body.workspace-v12.model-first .stage .nav-compass{top:14px!important;right:14px!important}
 body.workspace-v12.model-first .stage .tools{bottom:110px!important;right:14px!important}
 .model-first .model-evidence-note{bottom:160px!important;max-width:240px!important;font-size:9px!important;padding:5px 8px!important}
 .model-first .inspector-content{padding:14px 16px 28px}
 }
 @media(prefers-reduced-transparency:reduce){.model-first .explorer-dock,body.workspace-v12.model-first .model-pane>#toggleInspector,.model-first .explorer-sun-shortcut{background:#f7f9fb!important;backdrop-filter:none}}
}
@layer properties {
 body.model-first .explorer-dock button{background:transparent!important;border:0!important;border-radius:14px!important;box-shadow:none!important}
 body.model-first .explorer-dock button:first-child{background:#123b5c!important;color:white!important}
 body.model-first .explorer-dock button:hover{background:#dce8f0!important;color:#123b5c!important}
 .model-first .explorer-contact{gap:10px;margin-top:20px;width:100%}
 .model-first .explorer-contact svg{width:22px;height:22px}
}
@layer properties {
 body.workspace-v12.model-first>header{min-height:58px!important;flex-wrap:nowrap!important}
 body.workspace-v12.model-first>header .project{display:flex!important}
 body.workspace-v12.model-first .model-pane .stage:not(.model-expanded) .nav-compass{top:18px!important;right:20px!important}
 body.workspace-v12.model-first .explorer-dock button:first-child :is(span,svg){color:white!important}
 body.workspace-v12.model-first .explorer-dock button:hover :is(span,svg){color:#123b5c!important}
 body.workspace-v12.model-first .explorer-view-settings .sunlight-dock{display:block!important;position:relative!important;inset:auto!important;width:100%!important;padding:14px!important;border-radius:14px!important;transform:none!important}
 body.workspace-v12.model-first .explorer-view-settings .sunlight-dock[hidden]{display:none!important}
 .model-first .explorer-view-settings .sun-dock-main{display:flex;flex-wrap:wrap;gap:8px}
 .model-first .explorer-project-facts{display:flex;flex-direction:column;gap:8px;padding:18px 0;font-size:12px;color:#526b80}
 .model-first .explorer-project-facts strong{color:#123b5c}
 @media(max-width:800px){body.workspace-v12.model-first>header{min-height:54px!important}.model-first .explorer-drawer-heading{min-height:76px;box-sizing:border-box}body.workspace-v12.model-first .model-pane .stage:not(.model-expanded) .nav-compass{top:14px!important;right:14px!important}}
}
@layer properties {
 body.workspace-v12.model-first:not(.inspector-collapsed) .explorer-dock{visibility:hidden;pointer-events:none}
}
/* Native unit selectors keep keyboard and mobile system-picker behavior reliable. */
@layer properties {
 body.workspace-v12.model-first .quick-unit{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px!important}
 body.workspace-v12.model-first .quick-unit>.gb-legacy{display:block!important}
 body.workspace-v12.model-first .quick-unit>.gb-ui{display:none!important}
 body.workspace-v12.model-first .quick-unit>div:first-child,body.workspace-v12.model-first .quick-unit>button{grid-column:1/-1}
 body.workspace-v12.model-first .quick-unit>div:first-child span{display:block;font-size:11px;color:#647c90;margin:4px 0 10px}
 body.workspace-v12.model-first .quick-unit>label{font-size:12px!important;min-width:0}
 body.workspace-v12.model-first .quick-unit select{width:100%;min-height:44px;border-radius:10px;padding:8px;border:1px solid #becedb;background:white;color:#123b5c;font:inherit}
 body.workspace-v12.model-first .quick-unit>button{min-height:44px!important;margin:0!important}
}
@layer properties {
 body.workspace-v12.model-first .inspector-pane .section-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible!important;gap:2px!important}
 body.workspace-v12.model-first .inspector-pane .section-nav a{padding:9px 2px!important;font-size:11px!important;min-width:0!important;white-space:normal!important;text-align:center!important;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:3px}
}
/* Dedicated map views remain within reach without opening the inspector. */
@layer properties {
 body.workspace-v12.model-first .explorer-map-views{position:absolute;left:128px;top:20px;z-index:64;color:#123b5c}
 body.workspace-v12.model-first #mapViewsButton{display:flex;align-items:center;gap:9px;min-height:46px;padding:12px 14px;border-radius:15px;border:1px solid white;background:#f8fbf3e8;color:#123b5c;box-shadow:0 4px 18px #102f4620;backdrop-filter:blur(16px);font:600 12px Manrope,Arial,sans-serif;cursor:pointer}
 body.workspace-v12.model-first #mapViewsButton svg{width:20px;height:20px}
 body.workspace-v12.model-first #mapViewsButton[aria-expanded=true]{background:#123b5c!important;color:white!important}
 body.workspace-v12.model-first #mapViewsButton[aria-expanded=true] span{color:white!important}
 body.workspace-v12.model-first #mapViewsPopover{position:absolute;top:56px;left:0;width:280px;max-width:calc(100vw - 28px);padding:14px;box-sizing:border-box;border:1px solid #fff;border-radius:20px;background:#f7fafcf5;box-shadow:0 12px 40px #102f462b;backdrop-filter:blur(20px)}
 body.workspace-v12.model-first #mapViewsPopover[hidden]{display:none!important}
 .model-first .map-views-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:14px}
 .model-first .map-views-heading button{width:32px;height:32px;padding:0;border:0;border-radius:50%;background:#e9eff4;color:#123b5c;font-size:20px;cursor:pointer}
 body.workspace-v12.model-first #mapViewsPopover .map-tools-anchor{margin:0!important}
 body.workspace-v12.model-first #mapViewsPopover .map-tools-dock{position:static!important;border:0!important;background:none!important;box-shadow:none!important;padding:0!important;width:100%!important}
 body.workspace-v12.model-first #mapViewsPopover .map-tools-bar{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;overflow:visible!important}
 body.workspace-v12.model-first #mapViewsPopover .map-tools-ura{display:block!important;width:100%}
 body.workspace-v12.model-first #mapViewsPopover .floating-map-option{display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;min-height:48px!important;padding:12px!important;border:1px solid transparent!important;border-radius:12px!important;background:transparent!important;box-shadow:none!important;color:#123b5c!important;font:600 12px Manrope,Arial,sans-serif!important;text-align:left;cursor:pointer}
 body.workspace-v12.model-first #mapViewsPopover .floating-map-option::before{content:'';display:block;width:22px;height:22px;flex:0 0 22px;background:currentColor;mask-image:var(--map-option-icon);mask-size:contain;mask-repeat:no-repeat}
 body.workspace-v12.model-first #mapViewsPopover .floating-map-option:hover{background:#e7eff5!important}
 body.workspace-v12.model-first #mapViewsPopover .floating-map-option[aria-pressed=true]{background:#123b5c!important;color:#fff!important}
 body.workspace-v12.model-first #mapViewsPopover .floating-map-option[hidden]{display:none!important}
 body.workspace-v12.model-first #mapViewsPopover #uraOpacityPanel{position:static!important;width:100%!important;box-sizing:border-box;margin-top:8px;border-radius:12px;box-shadow:none!important;background:#eaf0f5!important}
 .model-first .map-views-note{font-size:11px;line-height:1.5;color:#60788b;margin:12px 2px 0;padding-top:12px;border-top:1px solid #dce5ec}
 .model-first .explorer-map-views :is(button,input):focus-visible{outline:3px solid #2d86ca!important;outline-offset:2px}
 @media(max-width:800px){body.workspace-v12.model-first .explorer-map-views{top:14px;left:122px}body.workspace-v12.model-first #mapViewsButton{width:46px;padding:12px}body.workspace-v12.model-first #mapViewsButton span{display:none}body.workspace-v12.model-first #mapViewsPopover{left:-108px}}
 @media(prefers-reduced-transparency:reduce){body.workspace-v12.model-first #mapViewsButton,body.workspace-v12.model-first #mapViewsPopover{background:#f7fafc!important;backdrop-filter:none}}
}
@layer properties {
 body.workspace-v12.model-first .model-pane:has(.document-plan-mode)>:is(#toggleInspector,.explorer-sun-shortcut,.explorer-map-views){visibility:hidden!important;pointer-events:none!important}
}
/* Two matching icon-only launchers: Layers first, Display settings second. */
@layer properties {
 body.workspace-v12.model-first .explorer-map-views{left:20px;top:20px}
 body.workspace-v12.model-first .explorer-display-settings{position:absolute;left:74px;top:20px;z-index:64}
 body.workspace-v12.model-first .explorer-floating-button:is(#mapViewsButton,#toggleInspector){position:static!important;inset:auto!important;transform:none!important;display:grid!important;place-items:center!important;box-sizing:border-box!important;width:46px!important;min-width:46px!important;height:46px!important;min-height:46px!important;margin:0!important;padding:12px!important;border-radius:15px!important;border:1px solid white!important;background:#f8fbf3e8!important;color:#123b5c!important;box-shadow:0 4px 18px #102f4620!important;backdrop-filter:blur(16px);cursor:pointer}
 body.workspace-v12.model-first .explorer-floating-button:is(#mapViewsButton,#toggleInspector)[aria-expanded=true]{background:#e4edf4!important;color:#123b5c!important;border-color:#b5cbdc!important}
 .model-first .explorer-floating-button svg{width:20px;height:20px}
 body.workspace-v12.model-first #mapViewsPopover{left:0}
 body.workspace-v12.model-first #openOSMView{display:none!important}
 body.workspace-v12.model-first #displaySettingsPopover{position:absolute;top:56px;left:-54px;width:320px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 160px);overflow:auto;padding:14px;box-sizing:border-box;border:1px solid white;border-radius:20px;background:#f7fafcf5;box-shadow:0 12px 40px #102f462b;backdrop-filter:blur(20px);color:#123b5c}
 body.workspace-v12.model-first #displaySettingsPopover[hidden]{display:none!important}
 body.workspace-v12.model-first #displaySettingsPopover .explorer-view-settings{padding:0;margin:0;border:0}
 body.workspace-v12.model-first #displaySettingsPopover .map-tools-secondary{flex-direction:column!important;align-items:stretch!important;width:100%!important;gap:4px!important}
 body.workspace-v12.model-first #displaySettingsPopover .map-tools-secondary .explore-toggle{display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;box-sizing:border-box;min-height:48px!important;padding:10px 12px!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#123b5c!important;text-shadow:none!important;font-size:12px!important}
 body.workspace-v12.model-first #displaySettingsPopover .map-tools-secondary .explore-toggle[hidden]{display:none!important}
 body.workspace-v12.model-first #displaySettingsPopover .map-tools-secondary .explore-toggle:has(input:checked){background:#e7eff5!important}
 .model-first .display-setting-icon,.model-first .display-setting-icon svg{display:block;width:22px;height:22px;flex:0 0 22px}
 .model-first .display-setting-label{flex:1;font-weight:600}
 body.workspace-v12.model-first #displaySettingsPopover .explore-toggle input{flex:0 0 32px!important;min-width:32px!important;width:32px!important;margin:0!important}
 body.workspace-v12.model-first .model-pane:has(.document-plan-mode)>.explorer-display-settings{visibility:hidden!important;pointer-events:none!important}
 .model-first .explorer-display-settings :is(button,input):focus-visible{outline:3px solid #2d86ca!important;outline-offset:2px}
 @media(max-width:800px){body.workspace-v12.model-first .explorer-map-views{left:14px;top:14px}body.workspace-v12.model-first .explorer-display-settings{left:68px;top:14px}body.workspace-v12.model-first #mapViewsPopover{left:0}}
 @media(prefers-reduced-transparency:reduce){body.workspace-v12.model-first #displaySettingsPopover,body.workspace-v12.model-first .explorer-floating-button:is(#mapViewsButton,#toggleInspector){background:#f7fafc!important;backdrop-filter:none}}
}
@layer properties {
 body.workspace-v12.model-first #legacyModelReturn{display:none!important}
 body.workspace-v12.model-first .selected-unit-view{position:absolute;bottom:102px;left:50%;transform:translateX(-50%);z-index:49;display:flex;align-items:center;gap:12px;min-height:54px;max-width:calc(100% - 28px);padding:10px 18px;border:1px solid white;border-radius:17px;background:#f8fbf3f2;color:#123b5c;box-shadow:0 6px 24px #102f4626;backdrop-filter:blur(16px);font:600 12px Manrope,Arial,sans-serif;cursor:pointer;text-align:left}
 body.workspace-v12.model-first .selected-unit-view svg{width:22px;height:22px;flex:0 0 22px}
 body.workspace-v12.model-first .selected-unit-view span{display:grid;gap:3px}
 body.workspace-v12.model-first .selected-unit-view strong{font-size:13px;color:#123b5c}
 body.workspace-v12.model-first .selected-unit-view small{font-size:10px;font-weight:500;color:#526b80}
 body.workspace-v12.model-first .selected-unit-view[hidden],body.workspace-v12.model-first:not(.inspector-collapsed) .selected-unit-view,body.workspace-v12.model-first .model-pane:has(.balcony-mode,.document-plan-mode)>.selected-unit-view{display:none!important}
 .model-first .selected-unit-view:focus-visible{outline:3px solid #2d86ca!important;outline-offset:3px}
 @media(max-width:1000px){body.workspace-v12.model-first .selected-unit-view{bottom:166px}}
 @media(prefers-reduced-transparency:reduce){body.workspace-v12.model-first .selected-unit-view{background:#f7fafc;backdrop-filter:none}}
}
@layer properties {
 @media(max-width:800px){body.workspace-v12.model-first .model-pane:has(.selected-unit-view:not([hidden])) .model-evidence-note{bottom:236px!important}}
}
@layer properties {
 body.workspace-v12.model-first .model-pane .stage.balcony-mode .tools{top:90px!important;bottom:auto!important;right:20px!important;left:auto!important}
}

/* Shared comparison workspace: reuse the three-unit table and its finance state. */
#comparisonTray{position:absolute;left:20px;bottom:24px;z-index:51;width:350px;max-width:calc(100% - 28px);box-sizing:border-box;padding:10px;border:1px solid #cfdee6;border-radius:18px;background:#f8fbff;box-shadow:0 8px 32px #102f4626;color:#123b5c;font:600 12px/1.4 Manrope,Arial,sans-serif}
#comparisonTray[hidden]{display:none!important}
.comparison-tray-units{display:flex;gap:5px;overflow-x:auto}
.comparison-chip{display:flex;align-items:center;flex:1;white-space:nowrap;border:1px solid #a7c8cd;border-radius:10px;background:#e9f5f3}
#comparisonTray button{font:inherit;color:inherit;border:0;background:transparent;cursor:pointer;min-height:44px;padding:6px}
.comparison-chip button:first-child{flex:1;font-size:10px!important}
#comparisonTray .comparison-chip button:last-child{font-size:20px;min-width:30px}
.comparison-tray-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:4px;padding-left:4px}
#comparisonTray [data-open-comparison]{background:#123b5c;color:white;border-radius:10px;padding:8px 14px;min-height:40px}
#comparisonTray button:focus-visible,#addComparison:focus-visible{outline:3px solid #2d86ca;outline-offset:-3px}
.comparison-selection-hint{font:12px/1.5 Manrope,Arial,sans-serif;color:#526b80;margin:8px 0 12px}
#unitDetails.no-selection .comparison-selection-hint{display:none}
body.workspace-v12 #unitDetails #addComparison{display:inline-flex!important;min-height:44px!important;padding:8px 12px!important;align-items:center;border:1px solid #8fabbc!important;background:#eef5fa!important;color:#123b5c!important}
body.workspace-v12 #unitDetails #addComparison[aria-pressed=true]{background:#d9f0eb!important;border-color:#318471!important;color:#175c4e!important}
body.workspace-v12 #unitDetails #addComparison[aria-disabled=true]{border-style:dashed!important}
.selected-unit-label.is-compared::after{content:' · In comparison';color:#b3ffde}
#comparisonStatus:empty{display:none}
#comparisonStatus{margin:0 0 12px;color:#34576c;font-size:13px}
body #compareDialog{width:min(1080px,calc(100vw - 40px));max-width:calc(100vw - 40px);height:82dvh;max-height:calc(100dvh - 32px);inset:0;margin:auto;box-sizing:border-box;border:1px solid #b9ceda;border-radius:22px;box-shadow:0 20px 80px #102f4633}
#compareDialog::backdrop{background:#102f462e}
body #compareDialog.is-expanded{width:calc(100vw - 32px);max-width:calc(100vw - 32px);height:calc(100dvh - 32px);margin:auto}
#compareDialog .compare-modal-head>div{flex:1}
#compareDialog .compare-modal-head button{min-height:44px;border:1px solid #c2d4df;border-radius:10px;background:#f2f7fa;color:#123b5c;padding:8px 12px;white-space:nowrap}
#compareDialog #threeUnitTable{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;min-width:790px}
#compareDialog #threeUnitTable th:first-child{width:130px}
#compareDialog #threeUnitTable thead th{position:sticky;top:0;z-index:3;background:#edf4f8;vertical-align:top;border-bottom:2px solid #b6cedb}
#compareDialog #threeUnitTable tbody th{position:sticky;left:0;z-index:2;background:#f2f6f9;white-space:normal}
#compareDialog #threeUnitTable td{white-space:normal;vertical-align:top}
#compareDialog #threeUnitTable :is(td,th){padding:14px 12px}
#compareDialog .compare-picker{gap:8px;text-align:left}
#compareDialog .compare-unit-heading{display:block;color:#123b5c;font-size:17px;line-height:1.4;white-space:nowrap}
#compareDialog .compare-reference{font-size:12px;line-height:1.4;text-align:left;min-height:44px}
#compareDialog .compare-reference[aria-pressed=true]{color:#175c4e}
#compareDialog .compare-replace summary{cursor:pointer;min-height:44px;display:list-item;padding-top:10px;box-sizing:border-box;font-size:12px;color:#294f6b}
#compareDialog .compare-replace input{width:100%;box-sizing:border-box;min-height:44px!important}
#compareDialog .compare-show-model{min-height:44px;padding:6px 10px;border:1px solid #a3becf;border-radius:9px;background:white;color:#123b5c;font:600 12px Manrope,Arial,sans-serif}
#compareDialog .clear-compare{min-height:44px!important;background:transparent;color:#526b80;text-decoration:underline;border:0}
#compareDialog .compare-finance-value{font-weight:700;font-variant-numeric:tabular-nums}
#compareDialog .compare-finance-difference{font-variant-numeric:tabular-nums}
#compareDialog .compare-price-status{display:inline-block;background:#edf3f6;border-radius:5px;padding:3px 6px;color:#345367}
#compareDialog .compare-unavailable,.compare-empty{font-size:12px;color:#526b80}
body.model-first:not(.inspector-collapsed) #comparisonTray{visibility:hidden;pointer-events:none}
.model-first .model-pane:has(.document-plan-mode) #comparisonTray{display:none}
@media(max-width:1200px){
 #comparisonTray{left:50%;transform:translateX(-50%);bottom:100px;width:360px}
 body.workspace-v12.model-first.has-comparison .selected-unit-view{bottom:222px}
 body.workspace-v12.model-first.has-comparison .stage .tools{bottom:222px!important}
 .model-first.has-comparison .model-evidence-note{display:none!important}
}
@media(max-width:800px){
 body #compareDialog,body #compareDialog.is-expanded{inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}
 #compareDialog .compare-modal-head{padding:12px!important;gap:8px!important}
 #compareDialog .compare-modal-head p{max-width:230px;font-size:11px}
 #compareDialog .compare-modal-head h2{font-size:19px}
 #expandCompareDialog{display:none}
 #compareDialog #threeUnitTable{min-width:790px}
 #compareDialog .compare-modal-body{padding:0 8px max(16px,env(safe-area-inset-bottom))!important}
 #comparisonTray{bottom:calc(96px + env(safe-area-inset-bottom));padding:6px 8px}
 body.workspace-v12.model-first.has-comparison .selected-unit-view{bottom:220px;min-height:44px;padding:6px 12px}
}
@media(max-height:540px) and (min-width:601px){
 #comparisonTray{left:16px;bottom:16px;transform:none;width:300px}
 body.workspace-v12.model-first.has-comparison .selected-unit-view{bottom:102px}
 body.workspace-v12.model-first.has-comparison .stage .tools{bottom:110px!important}
 .model-first.has-comparison .explorer-dock{left:auto;right:16px;transform:none;bottom:16px}
 body #compareDialog{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}
}
/* Keep the native toggle exposed so pressed/limit semantics stay on one control. */
body.workspace-v12 #unitDetails .gb-action:has(+#addComparison){display:none!important}
#compareDialog .compare-picker{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
#compareDialog .compare-replace{width:100%;margin:0}
#compareDialog .compare-reference{background:transparent;box-shadow:none;padding:4px 0;border:0;white-space:normal}
#compareDialog::backdrop{backdrop-filter:none!important}
@layer properties {
 @media(max-width:1200px){body.workspace-v12.model-first.has-comparison .model-pane .stage .tools{top:90px!important;bottom:auto!important;right:14px!important}}
 @media(min-width:1201px){body.workspace-v12.model-first.has-comparison .model-evidence-note{bottom:150px!important}}
}
@layer properties {
 @media(max-width:1200px) and (min-height:541px){
  body.workspace-v12.model-first.has-comparison #modelSection .unit-walk{bottom:216px!important}
  body.workspace-v12.model-first.has-comparison #modelSection .unit-view-navigator{bottom:280px!important}
 }
}
@media(max-height:540px){#compareDialog #threeUnitTable thead th{position:static}}
#compareDialog #threeUnitTable thead th:first-child{left:0;z-index:4}
@media(max-width:800px){#compareDialog .compare-modal-head p::after{content:' Swipe the table to see all units.'}}
#compareDialog .compare-picker{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:6px}
#compareDialog .compare-unit-heading,#compareDialog .compare-empty{grid-column:1/-1}
#compareDialog .compare-reference{font-size:12px}
#compareDialog .compare-replace{grid-column:1}
#compareDialog .compare-replace[open]{grid-column:1/-1}
#compareDialog .compare-replace summary{font-size:12px;white-space:nowrap;border:0;margin:0}
#compareDialog .clear-compare{grid-column:2;font-size:12px;margin:0!important;padding:4px!important;justify-self:end}
#compareDialog .compare-show-model{padding:6px;font-size:11px}

/* Comparison review: one native action, key points first, two homes on phones. */
body.workspace-v12 #unitDetails #addComparison{width:auto!important;max-width:100%;margin:0!important;justify-content:center;gap:6px;font:600 12px/1.4 Manrope,Arial,sans-serif!important;cursor:pointer;box-shadow:none!important;white-space:normal}
body.workspace-v12 #unitDetails #addComparison::before{content:'+';font-size:18px;line-height:1}
body.workspace-v12 #unitDetails #addComparison[aria-pressed=true]::before{content:'−'}
body.workspace-v12 #unitDetails #addComparison[aria-haspopup=dialog]::before{content:'↔'}
#compareDialog:not(.is-expanded) :is(.compare-expanded-detail,.compare-sun-details-row){display:none!important}
#compareDialog .compare-modal-head{flex-wrap:wrap}
#compareDialog .compare-modal-head>div{min-width:180px}
#expandCompareDialog{display:inline-flex!important;align-items:center;justify-content:center}
body.mobile-comparison #compareDialog #threeUnitTable{min-width:0;width:100%}
body.mobile-comparison #compareDialog #threeUnitTable th:first-child{width:68px}
body.mobile-comparison #compareDialog #threeUnitTable :is(th,td){padding:10px 6px;font-size:11px;overflow-wrap:anywhere}
body.mobile-comparison #compareDialog .compare-unit-heading{font-size:13px;white-space:normal}
body.mobile-comparison #compareDialog .compare-picker{gap:2px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
body.mobile-comparison #compareDialog .compare-picker button{font-size:10px;min-width:0;white-space:normal;line-height:1.4}
body.mobile-comparison #compareDialog .compare-replace summary{font-size:10px;white-space:normal}
body.mobile-comparison #compareDialog .compare-sun-summary{min-width:0;font-size:11px}
body.workspace-v12.mobile-comparison #threeUnitTable :is(.compare-plan,.compare-balcony,[data-unit-view]){width:100%!important;min-width:0!important;padding:8px 4px!important;font-size:11px!important;box-sizing:border-box}
body.mobile-comparison #compareDialog .compare-modal-head{padding:10px 12px!important}
body.mobile-comparison #compareDialog .compare-modal-head>div{flex-basis:100%}
body.mobile-comparison #compareDialog .compare-modal-head p{max-width:none}
body.mobile-comparison #compareDialog .compare-modal-head p::after{content:''}
body.mobile-comparison #comparisonTray .comparison-chip button:first-child{font-size:12px!important}
@layer properties {
 body.workspace-v12 #unitDetails #addComparison{min-height:44px!important;height:auto!important;padding:8px 12px!important}
 body #compareDialog .compare-modal-head{height:auto!important;min-height:0!important;flex:0 0 auto!important}
}
body.mobile-comparison #compareDialog .clear-compare{font-size:0!important;text-decoration:none;min-width:44px!important;min-height:44px!important}
body.mobile-comparison #compareDialog .clear-compare::after{content:'×';font-size:20px}

/* Floor-plan modal: keep controls visible while the drawing moves. */
body #comparePlanDialog{width:min(1100px,calc(100vw - 32px));max-width:calc(100vw - 32px);height:90dvh;max-height:calc(100dvh - 24px);box-sizing:border-box;overflow:hidden}
body #comparePlanDialog[open]{display:flex;flex-direction:column}
#comparePlanDialog .compare-plan-header,#comparePlanDialog>p{flex-shrink:0}
#comparePlanDialog .compare-plan-image{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-height:100px;overflow:hidden;touch-action:none;cursor:zoom-in;background:#edf2f5}
#comparePlanDialog .compare-plan-image.is-zoomed{cursor:grab}
#comparePlanDialog .compare-plan-image.is-zoomed:active{cursor:grabbing}
#comparePlanDialog .compare-plan-image img{flex:none;max-width:none!important;max-height:none!important;object-fit:contain;transform-origin:center;user-select:none;pointer-events:none}
#floorPlan[role=button]{cursor:zoom-in}
#floorPlan:focus-visible,.compare-plan-image:focus-visible{outline:3px solid #2d86ca;outline-offset:-3px}
@media(max-width:600px){body #comparePlanDialog{inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:12px}#comparePlanDialog>p{font-size:11px;margin:6px 0}}

#comparePlanDialog .compare-plan-header{padding:0 0 10px!important;min-height:0;height:auto;align-items:flex-start}
#comparePlanDialog #comparePlanLayout{margin:4px 0 0}
#comparePlanDialog .compare-plan-image{margin:0}

/* Compact Explorer identity; the model uses the full viewport. */
@layer properties {
 body.workspace-v12.model-first>header{display:none!important}
 body.workspace-v12.model-first>main{height:100dvh!important;min-height:0!important;flex:1 1 auto!important}
 .model-first .explorer-project-info{padding:16px;border:1px solid #d5e2ea;border-radius:14px;background:white;margin:0 0 16px}
 .model-first .explorer-project-info .project-logo{display:block;max-width:100%;width:auto;height:auto;max-height:85px;object-fit:contain;object-position:left;margin-bottom:12px}
 .model-first .explorer-project-info .explorer-project-facts{margin:0;padding:0;border:0}

}

@layer properties {
 .model-first .explorer-drawer-heading>div{min-width:0;flex:1}
 .model-first .explorer-drawer-brands{display:flex;align-items:center;gap:12px;background:#102f46;border-radius:9px;padding:8px 10px;max-width:290px;box-sizing:border-box}
 .model-first .explorer-drawer-brands img{display:block;min-width:0;max-width:50%;height:32px;width:auto;object-fit:contain;flex:1}
 .model-first .explorer-drawer-brands .project-logo{height:48px;border-left:1px solid #ffffff40;padding-left:12px;box-sizing:border-box}
 .model-first .explorer-drawer-heading h2{margin-top:8px}
 body.model-first .inspector-pane .section-nav{top:var(--drawer-heading-height,108px)!important}
 @media(max-width:420px){.model-first .explorer-drawer-brands{gap:6px;padding:6px}.model-first .explorer-drawer-brands .project-logo{height:42px;padding-left:6px}.model-first .explorer-drawer-brands img{height:28px}}
}

@layer properties {.model-first .explorer-drawer-brands .project-logo[src*="lucerne"]{background:#fff;border-radius:4px;object-fit:cover;padding:0;border:0}}

@layer properties {
 .model-first .explorer-drawer-brands{background:transparent;padding:0;gap:12px}
 .model-first .explorer-drawer-brands .drawer-home{display:flex;align-items:center;min-width:0;flex:1;min-height:44px}
 .model-first .explorer-drawer-brands .drawer-home img{width:100%;max-width:100%;height:auto;filter:none;opacity:1}
 .model-first .explorer-drawer-brands>.project-logo{filter:none;opacity:1;border:0;padding:4px;background:transparent;border-radius:4px}
 .model-first .explorer-drawer-brands>.project-logo[src*="lucerne"]{background:white;object-fit:cover;padding:0}
 .model-first .drawer-home:focus-visible{outline:3px solid #2d86ca;outline-offset:3px}
}

/* Keep the comparison action aligned with the other selected-unit actions. */
@layer properties {
.workspace-v12 #unitDetails .unit-quick-actions :is(#addComparison,.gb-action:has(+ #addComparison) button){border:1px solid #28523e!important;border-radius:999px!important;background:#28523e!important;color:#fff!important;box-shadow:none!important}
.workspace-v12 #unitDetails .unit-quick-actions :is(#addComparison,.gb-action:has(+ #addComparison) button):hover{background:#1e402f!important;border-color:#1e402f!important}
.workspace-v12 #unitDetails .unit-quick-actions :is(#addComparison,.gb-action:has(+ #addComparison) button):focus-visible{outline:2px solid #28523e!important;outline-offset:3px}
}
