.facade-switch{display:flex;background:hsl(169 16% 94%);padding:3px;border:1px solid hsl(168 15% 85%);border-radius:7px;gap:2px}
.facade-switch button{font-size:12px;white-space:nowrap;padding:4px 10px;border:0;background:transparent}
.facade-switch button[aria-pressed=true],.fc-modes button[aria-pressed=true]{background:hsl(177 34% 22%);color:white}
.facade-active .header .brief,.facade-active #tour,.facade-active #sources{display:none}
#facade-view{height:calc(100svh - 50px);display:grid;grid-template-columns:minmax(0,1fr) minmax(285px,350px);background:hsl(150 16% 93%)}
.fc-stage{position:relative;min-width:0;overflow:hidden;min-height:350px}
#facade-canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab}
#facade-canvas:active{cursor:grabbing}
.fc-top{position:absolute;top:22px;left:22px;right:22px;display:flex;align-items:start;justify-content:space-between;gap:8px;pointer-events:none}
.fc-top button{pointer-events:auto;font-size:12px}
.fc-map-title{display:grid;gap:2px;filter:drop-shadow(0 1px 3px white)}
.fc-map-title small,.fc-heading>small{letter-spacing:.12em;font-weight:700;font-size:10px;color:hsl(169 33% 31%)}
.fc-map-title strong{font-size:clamp(16px,2vw,25px);line-height:1.2;letter-spacing:-.035em;color:hsl(168 31% 18%)}
.fc-modes{position:absolute;top:84px;left:22px;display:flex;padding:3px;gap:2px;background:hsl(0 0% 100%/.93);border:1px solid hsl(165 15% 75%);border-radius:7px}
.fc-modes button{font-weight:550;border:0;background:transparent;font-size:12px;padding:5px 10px}
.fc-locator{position:absolute;bottom:18px;right:18px;padding:0;overflow:hidden;background:white;display:grid;width:122px;border:3px solid white;box-shadow:0 2px 10px #263d3629}
.fc-locator img{width:100%;height:67px;object-fit:cover;object-position:center 63%}
.fc-locator span{font-size:10px;font-weight:bold;padding:3px}
.fc-legend{position:absolute;bottom:20px;left:22px;background:#fffffff5;border-radius:6px;padding:8px 10px;min-width:170px;font-size:11px}
.fc-legend i{height:7px;display:block;margin:4px 0}
.fc-legend i.absolute{background:linear-gradient(90deg,#fff0b9,#e9aa60,#be6951,#8b3453,#492644)}
.fc-legend i.difference{background:linear-gradient(90deg,#074348,#126969,#33988d,#6eb7a8,#b0d6c7,#f8efe0)}
.fc-legend span{display:flex;justify-content:space-between}.fc-legend em{font-style:normal}
.fc-panel{background:#fafcfb;border-left:1px solid var(--line);overflow:auto;padding:22px 18px;color:var(--ink)}
.fc-panel p{font-size:13px;color:var(--muted);margin:4px 0 12px}
.fc-heading h2{font-size:31px;font-weight:650;letter-spacing:-.055em;line-height:1.13;margin:5px 0 9px}
.fc-select{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:13px 0 18px}
.fc-select button{text-align:left;border-color:#cdd9d2;background:white;min-height:31px;font-size:12px}
.fc-select button[aria-pressed=true]{background:#d9e9df;border-color:#548477;color:#174d41;font-weight:700;box-shadow:inset 3px 0 #377d6e}
.fc-case-heading{display:flex;align-items:center;gap:7px}.fc-case-heading h3{margin:0;font-size:19px;letter-spacing:-.025em}
#facade-mark{border-radius:50%;background:#7b8378;width:9px;height:9px}#facade-mark[data-case=hood],#facade-mark[data-case=both]{background:#bc6c42}
#facade-mark[data-case=pv]{background:#385675}#facade-mark[data-case=fin]{background:#719180}
.fc-metrics{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#dbe3de;border:1px solid #dbe3de}
.fc-metric{display:flex;flex-direction:column;align-items:start;background:#fff;padding:10px 9px}
.fc-metric span{font-size:11px;font-weight:650;color:#48625b}
.fc-metric strong{font-size:clamp(22px,2.4vw,32px);line-height:1.15;letter-spacing:-.055em}
.fc-metric small,.fc-metric em{font-size:10px;color:var(--muted);font-style:normal}.fc-metric em{margin-top:6px}
.fc-actions{display:flex;gap:5px;flex-wrap:wrap;margin:13px 0 8px}.fc-actions button{font-size:12px}
.fc-panel p.fc-foot{font-size:10px}.fc-note{border-left:3px solid #56817a;margin:8px 0;padding:5px 9px;background:#e5eeea;font-size:12px}
#facade-dialog{width:min(650px,94vw);max-height:83svh;overflow:auto}
#facade-dialog form{display:flex;justify-content:space-between;align-items:center;gap:9px}#facade-dialog h2{margin:0;font-size:20px}
#facade-dialog table{margin-top:10px;width:100%;border-collapse:collapse;font-size:12px}
#facade-dialog th,#facade-dialog td{text-align:left;vertical-align:top;border-top:1px solid var(--line);padding:7px}
#facade-dialog th{width:24%}.fc-survey{display:block;width:100%;max-height:52vh;object-fit:contain;margin-top:12px}
@media(max-width:760px){
 .facade-switch{margin-left:auto}.facade-switch button{font-size:10px;padding:4px 6px}
 .header .project{display:none}.header #tour{margin-left:0}
 #facade-view{height:auto;grid-template-columns:1fr}.fc-stage{height:49svh;min-height:310px}
 .fc-panel{border:0;padding:13px 16px;overflow:visible}.fc-heading h2{font-size:25px}.fc-heading p{margin-bottom:5px}
 .fc-select{grid-template-columns:repeat(3,1fr);margin:9px 0 12px}
 .fc-top{left:12px;right:12px;top:11px}.fc-top button{font-size:10px}.fc-modes{left:12px;top:57px}
 .fc-modes button{font-size:10px;padding:4px 7px}.fc-locator{width:82px;bottom:7px;right:8px}.fc-locator img{height:33px}
 .fc-locator span{font-size:8px}.fc-legend{left:9px;bottom:9px;font-size:9px;min-width:132px}
}

.fc-wall-cut{display:flex;height:12px;max-width:220px;margin:4px 0;gap:2px}
.fc-wall-cut i:first-child{width:64%;background:repeating-linear-gradient(115deg,#9c7964 0px,#9c7964 4px,#b5947b 5px,#b5947b 9px)}
.fc-wall-cut i:nth-child(2){width:31%;background:repeating-linear-gradient(55deg,#b7933f 0px,#b7933f 1px,#edcf78 2px,#edcf78 5px)}
.fc-wall-cut i:last-child{width:5%;background:#d6d5c9}
.fc-shared-stage,.fc-shared-stage #stage {position:absolute;inset:0;height:100%;min-height:0}
.fc-shared-stage #stage>nav,.fc-shared-stage #stage>.layers,.fc-shared-stage #split,
.fc-shared-stage #overview,.fc-shared-stage #legend,.fc-shared-stage #status {display:none!important}
#facade-map-pin {position:absolute;transform:translate(-50%,-100%);padding:4px 7px;background:#25594e;color:white;border:1px solid white;font-size:11px;box-shadow:0 1px 4px #18251c55}
#facade-map-pin::after {content:"";position:absolute;left:50%;top:100%;height:9px;border-left:2px solid #25594e}
.fc-cameras {display:flex;gap:4px;pointer-events:auto}
.fc-legend i.difference{background:linear-gradient(90deg,#074347,#75bcb1 40%,#f7efe0 80%,#b34d28)}
.fc-legend span{position:relative}
.fc-cameras button[aria-pressed=true]{background:#25594e;color:white}

.fc-basis{font-size:11px;color:#476358;margin:4px 0 8px;line-height:1.35}
.fc-legend i.storey{background:linear-gradient(90deg,#e8f2eb,#f0b675,#b5553d,#743445)}
