/* 39.53: equipment composition matching the approved spatial concept.
   Bitmaps contain no readings. All text, fills and flow directions stay live. */
.tech3d{padding:14px 26px 24px}
.tech3d-header{margin-bottom:12px}
.tech3d h2{font-size:clamp(21px,2vw,29px);margin:5px 0}
.tech3d-eyebrow{font-size:9px;letter-spacing:1.7px}
.tech3d-description{font-size:11px}
.tech3d-health{padding:8px 12px}
.tech3d-tabs{margin:12px 0 6px}
.tech3d-overview{margin:0 0 10px}
.tech3d-overview summary{color:var(--muted);font-size:11px;padding:6px 0;cursor:pointer;width:fit-content}
.tech3d-overview summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.tech3d-overview[open] .tech3d-metrics{margin:5px 0 12px}
.tech3d-section>header{padding:14px 18px 6px}
.tech3d-electric-section{background:linear-gradient(145deg,#152a24,#10221f 48%,#142a25)}
.tech3d-electric-scene{grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:250px 255px;grid-template-areas:none;gap:4px 10px;padding:4px 26px 22px;background:radial-gradient(ellipse at 47% 48%,#84a05c13,transparent 60%)}
.tech3d-electric-scene .tech3d-node{min-height:0;padding:7px 8px}
.tech3d-solar{grid-column:1/5;grid-row:1}
.tech3d-battery{grid-column:1/3;grid-row:2}
.tech3d-inverter{position:relative;display:flex;grid-column:3/5;grid-row:2;left:auto;bottom:auto;width:auto;height:auto;padding:7px 8px;z-index:1}
.tech3d-house{grid-column:5/9;grid-row:1/3;align-self:center;min-height:390px!important}
.tech3d-grid{grid-column:10/13;grid-row:1}
.tech3d-ev{grid-column:9/13;grid-row:2}
.tech3d-electric-scene .tech3d-node-title{font-size:12px;letter-spacing:.35px}
.tech3d-electric-scene strong{font-size:25px}
.tech3d-electric-scene .tech3d-open{opacity:.7;margin-top:2px;font-size:9px}
.tech3d-electric-scene .tech3d-node:hover{border-color:#55746255;background:#88b7a208}
.tech3d-solar .tech3d-art{height:166px;flex:0 0 166px;margin:2px 0}
.tech3d-solar-art{height:100%;width:100%;display:block}
.tech3d-solar-art .tech3d-panel-array{position:absolute;left:0;bottom:0;width:82%;height:100%;max-width:none;object-fit:contain;filter:drop-shadow(0 10px 9px #0005)}
.tech3d-pv-inverters{position:absolute;right:0;top:9%;width:29%;height:86%;display:flex;align-items:center;justify-content:flex-end}
.tech3d-pv-inverters img{width:58%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 6px #0007)}
.tech3d-pv-inverters img+img{margin-left:-7%}
.tech3d-battery .tech3d-art,.tech3d-inverter .tech3d-art{height:162px;flex:0 0 162px;margin:0}
.tech3d-battery .tech3d-art img{max-height:185px;height:185px;width:100%;max-width:190px}
.tech3d-battery .tech3d-art img.tech3d-kstar-cabinet{max-height:175px;height:175px;max-width:190px}
.tech3d-inverter .tech3d-art img{max-height:174px;height:174px;width:174px;max-width:none;filter:drop-shadow(0 14px 10px #0005)}
.tech3d-inverter strong{font-size:17px;line-height:1.9;color:var(--blue)}
.tech3d-inverter .tech3d-node-title{font-size:13px}
.tech3d-inverter .tech3d-note,.tech3d-inverter .tech3d-open{display:block}
.tech3d-battery .tech3d-note{font-size:10px;white-space:normal}
.tech3d-house .tech3d-node-title{order:0;font-size:15px}
.tech3d-house strong{order:1;font-size:35px}
.tech3d-house .tech3d-note{order:2;font-size:10px;max-width:270px}
.tech3d-house .tech3d-art{order:3;height:270px;min-height:0;flex:0 0 270px;margin:2px 0}
.tech3d-house .tech3d-art img{height:100%;width:120%;max-width:120%;max-height:340px;object-fit:contain;mix-blend-mode:normal;filter:drop-shadow(0 18px 16px #0005)}
.tech3d-house-net{order:4;display:flex;align-items:baseline;gap:9px;font-size:10px;color:var(--muted);border-top:1px solid var(--line);padding-top:8px}
.tech3d-house-net b{font-size:22px;color:var(--blue);font-variant-numeric:tabular-nums}
.tech3d-house .tech3d-open{order:5}
.tech3d-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(80px,1.1fr);grid-template-rows:1fr auto auto 1fr;align-items:center;column-gap:5px}
.tech3d-grid .tech3d-art{grid-column:2;grid-row:1/5;height:225px;width:100%;margin:0}
.tech3d-grid .tech3d-art img{max-height:225px;height:225px;max-width:180px;filter:none}
.tech3d-grid .tech3d-node-title{grid-column:1;grid-row:1;align-self:end}
.tech3d-grid strong{grid-column:1;grid-row:2;white-space:nowrap;margin-top:6px}
.tech3d-grid .tech3d-note{grid-column:1;grid-row:3}
.tech3d-grid .tech3d-open{grid-column:1;grid-row:4;align-self:start}
.tech3d-ev .tech3d-art{height:161px;flex:0 0 161px;margin:1px 0}
.tech3d-ev-art{position:relative;display:block;width:100%;height:100%}
.tech3d-ev-art img{position:absolute;object-fit:contain;filter:drop-shadow(0 12px 8px #0005)}
.tech3d-ev-art .tech3d-car{right:0;bottom:0;width:84%;height:100%}
.tech3d-ev-art .tech3d-charger{left:0;top:3%;height:88%;width:26%}
.tech3d-connections .tech3d-route-base{stroke:#597873;stroke-width:2;opacity:.45}
.tech3d-connections .active .tech3d-route-base{stroke:#56cde9;stroke-width:2.5;opacity:.95;stroke-linecap:round;stroke-linejoin:round}
.tech3d-connections .tech3d-route-glow{stroke:#61d9fa;stroke-width:8;opacity:.16;filter:blur(3px);stroke-linecap:round}
.tech3d-connections .tech3d-route-current{stroke:#c4f6ff;stroke-width:2.5;stroke-dasharray:3 50;opacity:.9;animation:tech3d-current 3s linear infinite;stroke-linecap:round}
.tech3d-route-arrow{fill:#a5efff;filter:drop-shadow(0 0 4px #38cef5)}
@keyframes tech3d-current{to{stroke-dashoffset:-106}}
.tech3d[data-theme=light] .tech3d-electric-section{background:linear-gradient(145deg,#f4f9f2,#e5efe8)}
.tech3d[data-theme=light] .tech3d-connections .active .tech3d-route-base{stroke:#1688a1}
.tech3d[data-theme=light] .tech3d-route-arrow{fill:#08738d}
.tech3d-water-scene{grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;padding:10px 6px}
.tech3d-water{padding:10px 4px}
.tech3d-water strong{font-size:23px}
.tech3d-water .tech3d-art{height:180px;flex-basis:180px}
.tech3d-water .tech3d-freshness{font-size:9px}
@media(min-width:761px) and (max-width:1100px){
  .tech3d-electric-scene{grid-template-rows:230px 245px;padding:6px 10px 20px;gap:5px}
  .tech3d-solar .tech3d-art{height:140px;flex-basis:140px}
  .tech3d-electric-scene .tech3d-node-title{font-size:11px}
  .tech3d-electric-scene strong{font-size:23px}
  .tech3d-inverter .tech3d-art img{width:174px;height:174px}
  .tech3d-grid{grid-column:9/13;grid-template-columns:1fr 1fr}
  .tech3d-grid .tech3d-art,.tech3d-grid .tech3d-art img{height:205px}
  .tech3d-grid strong{font-size:22px}
  .tech3d-house .tech3d-art{height:220px;flex-basis:220px}
  .tech3d-house strong{font-size:29px}
  .tech3d-house-net{display:block}.tech3d-house-net b{display:block}
  .tech3d-ev .tech3d-art{height:150px;flex-basis:150px}
  .tech3d-inverter strong{font-size:16px}
}
@media(max-width:760px){
  .tech3d{padding:12px}
  .tech3d-electric-scene{grid-template-columns:1fr 1fr;grid-template-rows:auto;grid-template-areas:none;padding:10px;gap:8px}
  .tech3d-electric-scene .tech3d-node{grid-column:auto;grid-row:auto;min-height:235px}
  .tech3d-electric-scene .tech3d-house{grid-column:1/3;grid-row:1;min-height:340px!important}
  .tech3d-house .tech3d-art{height:210px;flex-basis:210px}
  .tech3d-house .tech3d-art img{width:100%;max-width:100%}
  .tech3d-electric-scene .tech3d-solar{grid-column:1;grid-row:2}
  .tech3d-electric-scene .tech3d-grid{grid-column:2;grid-row:2}
  .tech3d-electric-scene .tech3d-battery{grid-column:1;grid-row:3}
  .tech3d-electric-scene .tech3d-inverter{grid-column:2;grid-row:3}
  .tech3d-electric-scene .tech3d-ev{grid-column:1/3;grid-row:4;min-height:255px}
  .tech3d-grid{display:flex}
  .tech3d-grid .tech3d-node-title,.tech3d-grid .tech3d-open{align-self:auto}
  .tech3d-grid .tech3d-art,.tech3d-solar .tech3d-art{height:140px;flex:0 0 140px}
  .tech3d-grid .tech3d-art img{height:145px;max-height:145px}
  .tech3d-solar-art .tech3d-panel-array{width:90%;left:-4%}
  .tech3d-pv-inverters{width:28%;top:21%;height:69%}
  .tech3d-inverter .tech3d-art{height:162px;flex-basis:162px}
  .tech3d-inverter .tech3d-art img{height:174px;width:174px;max-width:140%}
  .tech3d-inverter strong{font-size:17px}
  .tech3d-electric-scene .tech3d-note{font-size:10px}
  .tech3d-ev .tech3d-art{max-width:360px}
  .tech3d-water-scene{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tech3d-water .tech3d-art{height:185px;flex-basis:185px}
}
@media(max-width:420px){
  .tech3d-electric-scene{padding:6px;gap:3px}
  .tech3d-electric-scene .tech3d-node{padding:8px 4px}
  .tech3d-electric-scene .tech3d-node-title{font-size:11px}
  .tech3d-house .tech3d-art{height:185px;flex-basis:185px}
  .tech3d-house strong{font-size:29px}
  .tech3d-electric-scene .tech3d-house{min-height:315px!important}
  .tech3d-solar .tech3d-art{height:125px;flex-basis:125px}
  .tech3d-solar-art .tech3d-panel-array{width:96%;left:0}
  .tech3d-pv-inverters{height:62%;width:34%;top:31%}
  .tech3d-water-scene{grid-template-columns:1fr}
  .tech3d-water .tech3d-art{height:230px;flex-basis:230px}
}
@media print{.tech3d-overview{display:none!important}}
/* 39.56: boiler -> buffer -> DHW. These are static schematic pipes, not measured flow. */
.tech3d-heat-scene{position:relative;isolation:isolate;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px 16px}
.tech3d-heat-scene .tech3d-boiler{grid-column:1;grid-row:1}
.tech3d-heat-scene .tech3d-aku{grid-column:2;grid-row:1/3;min-height:455px!important}
.tech3d-heat-scene .tech3d-tuv{grid-column:3;grid-row:1}
.tech3d-heat-scene .tech3d-pool{grid-column:1;grid-row:2}
.tech3d-heat-scene .tech3d-spa{grid-column:3;grid-row:2}
.tech3d-heat-scene .tech3d-aku .tech3d-art,.tech3d-heat-scene .tech3d-aku-art{min-height:285px}
.tech3d-heat-scene .tech3d-art>img{height:128px;width:auto;max-width:100%;object-fit:contain}
.tech3d-heat-connections{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;overflow:visible}
.tech3d-heat-connections path{fill:none;stroke-linejoin:round;stroke-linecap:round}
.tech3d-heat-pipe-shadow{stroke:#152a25;stroke-width:8}
.tech3d-heat-pipe{stroke:#ed9958;stroke-width:3}
.tech3d-heat-current{fill:none;stroke:#ffd09a;stroke-width:2.5;stroke-dasharray:4 28;stroke-linecap:round;animation:tech3d-current 2s linear infinite;filter:drop-shadow(0 0 3px #ff9b50)}
.tech3d-heat-connections circle{fill:#ffd4a4;stroke:#bc6438;stroke-width:1.5}
.tech3d-heat-legend{margin:0 18px 16px;padding-top:10px;border-top:1px solid var(--line);font-size:11px;color:var(--orange)}
.tech3d-heat-legend span{display:block;margin-top:4px;color:var(--muted);font-size:10px}
.tech3d[data-theme=light] .tech3d-heat-pipe{stroke:#b65f24}
.tech3d[data-theme=light] .tech3d-heat-pipe-shadow{stroke:#fff}
@media(max-width:600px){
 .tech3d-heat-scene{grid-template-columns:1fr;gap:22px;padding:16px 20px 16px 40px}
 .tech3d-heat-scene .tech3d-node{grid-column:1;grid-row:auto;min-height:225px}
 .tech3d-heat-scene .tech3d-aku{min-height:415px!important}
 .tech3d-heat-scene .tech3d-art{flex:none;height:140px}
 .tech3d-heat-scene .tech3d-aku .tech3d-art{height:285px}
}
/* 39.59: authenticated Hikvision preview cards. Video bytes never go directly from NVR to browser. */
.tech3d-camera-art{width:min(220px,88%);max-height:165px;object-fit:contain;filter:drop-shadow(0 12px 13px rgba(0,0,0,.32))}
.tech3d-cameras-section{margin-top:18px}.tech3d-cameras-scene{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;align-items:stretch}
.tech3d-camera-preview{display:block;width:100%;max-height:58vh;object-fit:contain;border-radius:12px;background:#071412;border:1px solid rgba(109,194,160,.28)}
[data-camera-preview] p{margin:9px 0 0;font-size:12px;line-height:1.45;color:var(--tech3d-muted,#9bb8ae)}
