.building-detail .building-detail-head{gap:16px;margin-bottom:14px}
.building-detail .detail-explorer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;margin:0 0 14px;border:1px solid #b9dcea;border-radius:6px;background:#f1f8fb}
.building-detail .detail-explorer[hidden],.building-detail .detail-explorer-coverage[hidden]{display:none}
.building-detail .detail-explorer-note{margin:0;max-width:1000px;line-height:1.5}
.building-detail .detail-explorer-actions{display:flex;flex-wrap:wrap;gap:7px;flex-shrink:0}
.building-detail .detail-explorer-actions button{min-height:32px;font-size:11px;padding:6px 10px}
.building-detail .detail-explorer-coverage{display:block;margin-top:15px;font-size:11px;font-weight:600}
.building-detail .detail-explorer-coverage>div{display:flex;align-items:center;gap:8px;margin:7px 0;font-weight:400}
.building-detail .detail-explorer-coverage input{width:78px;min-height:32px;padding:6px 8px;font:inherit;text-align:right}
.building-detail .detail-explorer-coverage small{display:block;font-weight:400;color:var(--muted);font-size:10px;line-height:1.5}
@media(max-width:1000px){.building-detail .detail-explorer{align-items:flex-start;flex-direction:column}.building-detail .detail-explorer-actions{flex-shrink:1}}
.building-detail .building-detail-head>div{flex:1;min-width:0;overflow-wrap:anywhere;display:grid;grid-template-columns:minmax(260px,1fr) minmax(240px,1fr);column-gap:24px;align-items:start}
.building-detail .building-detail-head>div:has(.detail-search-address[hidden]){grid-template-columns:minmax(0,1fr)}
.building-detail .building-detail-head .eyebrow{display:none}
.building-detail .detail-building-label{font-weight:700}
.building-detail .building-detail-head h3{grid-column:1;font-size:17px;line-height:1.4;letter-spacing:-.15px;margin:0;font-variant-numeric:tabular-nums}
.building-detail .detail-search-address{grid-column:2;grid-row:1;min-width:0;max-width:560px;margin:0;padding-left:20px;border-left:1px solid var(--border);font-size:11px;color:var(--muted);line-height:1.45}
.building-detail .detail-search-address>span{display:block;font-size:10px;font-weight:500;line-height:1.4;margin:0 0 3px}
.building-detail .detail-search-address .small{font-size:12px;line-height:1.45;margin:0;color:var(--navy)}
.building-row>td:first-child{position:relative;width:clamp(240px,22vw,420px);min-width:240px;max-width:420px;white-space:normal;overflow:visible;overflow-wrap:anywhere}
.building-row .building-toggle{display:grid;grid-template-columns:12px minmax(0,1fr);align-items:center;column-gap:8px;width:100%;min-height:24px;padding:0;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.4;font-size:12px}
.building-row .building-toggle::before{grid-column:1;grid-row:1;float:none;margin:0;line-height:24px;justify-self:center}
.building-row .building-toggle>.building-context-label,.building-row .building-toggle>.building-context-title{grid-column:2}
.building-context-label{display:block;font-size:10px;font-weight:500;line-height:1.4;white-space:nowrap;color:var(--muted)}
.building-row .building-toggle>.building-context-label{font-weight:600;color:var(--navy)}
.building-context-title{display:block;margin:0;font-weight:600;line-height:1.45}
.building-row td>.building-selected-context{display:block;margin:2px 0 0;padding-left:20px;font-size:11px;line-height:1.4;color:var(--muted)}
.building-selected-context{font-variant-numeric:tabular-nums}
@media(max-width:1000px){.building-detail .building-detail-head>div{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;row-gap:0}.building-detail .detail-search-address{grid-column:1;grid-row:auto;max-width:100%;border:0;padding:0;margin-top:8px}.building-detail .building-detail-head h3{font-size:16px}.building-detail .building-detail-head{gap:12px}}
.building-detail .detail-roof-summary{display:grid;grid-template-columns:repeat(var(--roof-summary-count,5),minmax(0,1fr));margin:0 0 20px;padding:14px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);row-gap:14px}
.building-detail .detail-roof-summary>div{min-width:0;padding:0 20px;border-left:1px solid var(--border)}
.building-detail .detail-roof-summary>div[data-visible-index="1"]{padding-left:0;border-left:0}
.building-detail .detail-roof-summary dt{font-size:11px;line-height:1.5;color:var(--muted);margin-bottom:5px}
.building-detail .detail-roof-summary dd{margin:0;color:var(--navy,#102e52);font-size:20px;line-height:1.35;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.building-detail .building-detail-grid{grid-template-columns:minmax(270px,300px) minmax(300px,1fr) 360px;grid-template-rows:auto;height:auto;gap:16px;align-items:stretch}
.building-detail .detail-controls{padding:18px;border-radius:7px;min-width:0;min-height:0;box-sizing:border-box;overflow:visible}
.building-detail .detail-controls:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.building-detail .detail-section-head{margin-bottom:16px}
.building-detail .detail-section-head h4{margin:0 0 5px;font-size:17px;font-weight:600;letter-spacing:-.2px}
.building-detail .detail-section-head .small{margin:0;font-size:11px;line-height:1.55}
.building-detail .detail-map-column{display:flex;flex-direction:column;min-height:480px;position:relative}
.building-detail .detail-map{height:auto;flex:1 1 0;min-width:0;min-height:420px}
.building-detail .detail-display-controls{flex:none;min-width:0;margin-top:10px;padding:11px 13px;background:#fff;border:1px solid var(--border);border-radius:6px}
.building-detail .detail-map-toolbar{position:absolute;z-index:900;top:12px;left:12px;right:64px;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;gap:8px;margin:0;pointer-events:none}
.building-detail .detail-map-column:has(.leaflet-control-zoom) .detail-map-toolbar{left:54px;right:12px}
.building-detail .detail-map-toolbar .detail-map-note{max-width:240px;box-sizing:border-box;margin:0;padding:8px 10px;border:1px solid var(--border);border-radius:5px;background:#fff;color:#385675;font-size:11px;line-height:1.5;box-shadow:0 1px 5px #102e521a}
.building-detail .detail-map-toolbar .detail-map-note[hidden]{display:none}
.building-detail .detail-recenter{flex:none;min-height:34px;pointer-events:auto;background:#fff;border-color:var(--border);box-shadow:0 1px 5px #102e521a}
.building-detail .detail-roof-layers:empty{display:none}
.building-detail .detail-technical .detail-roof-layers{border-top:0;padding:0;margin:0 0 18px}
.building-detail .detail-system{padding-top:17px;border-top:1px solid var(--border)}
.building-detail .detail-roof-layers .roof-layer-footnote,.building-detail .detail-roof-layers[data-state=ready] .roof-layer-status{display:none}
.building-detail .detail-select-label{display:block;font-size:11px;color:var(--muted);margin:0 0 7px}
.building-detail .detail-controls select{width:100%;min-width:0;font-size:12px;padding:9px 8px;min-height:38px}
.building-detail .detail-model-note{font-size:10px;margin:8px 0 0;overflow-wrap:anywhere}
.building-detail .detail-show-toggle{padding:0;margin:0 0 18px;border-top:0;min-height:24px;font-size:12px;line-height:1.5}
.building-detail .roof-layer-switches .detail-show-toggle{margin:0}
.building-detail .detail-show-label{min-width:0}
.building-detail .detail-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:18px;padding-top:18px;border-top:1px solid var(--border)}
.building-detail .detail-stat-grid>div{padding:12px 9px;border-radius:5px}
.building-detail .detail-stat-grid svg{margin-bottom:8px;width:23px;height:23px}
.building-detail .detail-stat-grid strong{font-size:16px;line-height:1.35;overflow-wrap:anywhere}
.building-detail .detail-stat-grid .detail-savings-card svg{color:#249c79}
.building-detail .detail-count{margin-top:17px}
.building-detail .detail-count-input input{width:100%;min-width:0;flex:1}
.building-detail .detail-count-input button{flex:none}
.building-detail .detail-finance-group{min-width:0;margin-top:20px}
.building-detail .detail-finance-group h5{margin:0;padding-bottom:9px;border-bottom:1px solid var(--border);color:var(--navy,#102e52);font-size:11px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.building-detail .detail-electricity h5,.building-detail .detail-estimates h5{text-transform:uppercase;letter-spacing:.8px}
.building-detail .detail-finance-group .detail-facts{margin:0;padding-top:0;border-top:0}
.building-detail .detail-finance-group .detail-facts>div{margin:11px 0}
.building-detail .detail-finance-group .detail-facts>div:last-child{margin-bottom:0}
.building-detail .detail-facts>div{font-size:11px;align-items:baseline;gap:9px}
.building-detail .detail-facts dt{min-width:0}
.building-detail .detail-financial .detail-facts>div{display:grid;grid-template-columns:minmax(0,1fr) 146px;align-items:center;min-height:32px;gap:8px;margin:6px 0}
.building-detail .detail-financial .detail-facts dt{align-items:center;line-height:1.5}
.building-detail .detail-financial .detail-facts dt>span{min-width:0}
.building-detail .detail-financial .detail-facts dt>svg{width:15px;height:15px;flex:none}
.building-detail .detail-financial .detail-facts dd{min-width:0;margin:0;text-align:right;font-variant-numeric:tabular-nums}
.building-detail .detail-financial .detail-facts dd:not(.detail-financial-field){padding-right:71px}
.building-detail .detail-facts dd{flex:none;font-size:13px;white-space:nowrap}
.building-detail .detail-prices dd{font-size:11px}
.building-detail .detail-total dt,.building-detail .detail-total dd,.building-detail .detail-emphasis dt,.building-detail .detail-emphasis dd{color:var(--navy,#102e52);font-weight:600}
.building-detail .detail-total{padding-top:11px;border-top:1px solid var(--border)}
.building-detail .detail-self-consumption{margin:0;padding:0;border:0}
.building-detail .detail-self-consumption>label{display:block;margin-bottom:8px;font-size:11px;font-weight:600;color:var(--navy)}
.building-detail .detail-self-consumption-shares{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.building-detail .detail-self-consumption-shares>span:first-child{color:#1765b5}
.building-detail .detail-self-consumption input[type=range]{width:100%;height:26px;padding:0;margin:5px 0 0;accent-color:var(--blue);cursor:pointer}
.building-detail .detail-self-consumption .small{font-size:10px;line-height:1.5;margin:4px 0 0}
.building-detail .detail-financial .detail-financial-field{white-space:normal}
.building-detail .detail-financial-input-row{display:grid;grid-template-columns:minmax(0,1fr) 58px;align-items:center;gap:6px;min-width:0}
.building-detail .detail-financial-input{box-sizing:border-box;min-width:0;width:100%;height:32px;min-height:32px;padding:5px 7px;border:1px solid var(--border);border-radius:4px;background:#fff;color:var(--navy);font:inherit;font-size:12px;line-height:20px;font-variant-numeric:tabular-nums;text-align:right;appearance:textfield;-moz-appearance:textfield}
.building-detail .detail-financial-input::-webkit-inner-spin-button,.building-detail .detail-financial-input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}
.building-detail .detail-financial-input:hover{border-color:#a1b9d4}
.building-detail .detail-financial-input:focus{outline:2px solid #b8dcfb;outline-offset:1px;border-color:var(--blue)}
.building-detail .is-overridden .detail-financial-input{border-color:#8cbce5;color:#1765b5;background:#f7fbff}
.building-detail .detail-financial-input[aria-invalid=true]{border-color:#c44949}
.building-detail .detail-financial-input:disabled{background:#f5f7fa;color:var(--muted);cursor:default}
.building-detail .detail-financial-unit{text-align:left;white-space:nowrap;font-size:10px;color:var(--muted)}
.building-detail .detail-financial-reset-all{justify-self:start;min-height:30px;margin:16px 0 0;padding:5px 0;border:0;background:transparent;color:var(--muted);font-size:11px;font-weight:500;text-decoration:underline;text-underline-offset:3px}
.building-detail .detail-financial-reset-all:hover{color:var(--navy);background:transparent}
.building-detail .detail-financial-reset-all:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.building-detail .detail-financial-reset-all[hidden]{display:none}
.building-detail .detail-financial-error,.building-detail .detail-financial-reset-error{font-size:10px;line-height:1.5;margin:5px 0 0}
.building-detail .detail-selection-error{font-size:11px;margin:10px 0 0}
.building-detail .detail-selection-error:empty{display:none}
@media(max-width:1250px){
  .building-detail .detail-roof-summary{grid-template-columns:repeat(min(3,var(--roof-summary-count,5)),minmax(0,1fr))}
  .building-detail .detail-roof-summary>div[data-visible-index="4"]{padding-left:0;border-left:0}
  .building-detail .building-detail-grid{grid-template-columns:minmax(270px,300px) minmax(0,1fr);grid-template-rows:auto auto;gap:14px}
  .building-detail .detail-financial{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 26px}
  .building-detail .detail-financial .detail-section-head{grid-column:1/-1}
  .building-detail .detail-self-consumption{grid-column:1;grid-row:2}
  .building-detail .detail-electricity{grid-column:1;grid-row:3}
  .building-detail .detail-system-prices{grid-column:1;grid-row:4}
  .building-detail .detail-estimates{grid-column:2;grid-row:2/5;margin-top:0}
  .building-detail .detail-financial-reset-all{grid-column:1/-1}
}
@media(max-width:800px){
  .building-detail .detail-roof-summary{grid-template-columns:repeat(min(2,var(--roof-summary-count,5)),minmax(0,1fr));margin-bottom:16px}
  .building-detail .detail-roof-summary>div{padding:0 14px}
  .building-detail .detail-roof-summary>div[data-visible-index="1"],.building-detail .detail-roof-summary>div[data-visible-index="3"],.building-detail .detail-roof-summary>div[data-visible-index="5"]{padding-left:0;border-left:0}
  .building-detail .detail-roof-summary>div[data-visible-index="4"]{padding-left:14px;border-left:1px solid var(--border)}
  .building-detail .building-detail-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:none;gap:14px}
  .building-detail .detail-controls{padding:16px}
  .building-detail .detail-map-column{grid-row:2;min-height:0}
  .building-detail .detail-map{height:clamp(330px,55dvh,530px);min-height:0;flex:none}
  .building-detail .detail-technical{display:block}
}
@media(max-width:640px){
  .building-detail .detail-financial{display:block}
  .building-detail .detail-estimates{margin-top:20px}
  .building-detail .detail-financial .detail-facts>div{grid-template-columns:minmax(0,1fr) 140px}
}
@media(max-width:520px){
  .building-detail .detail-roof-summary dd{font-size:18px}
  .building-detail .detail-map-toolbar{flex-direction:column}
  .building-detail .detail-map-toolbar .detail-map-note{max-width:100%}
  .building-detail .detail-stat-grid strong{font-size:18px}
}
