/* Workspace roof & panel designer */
.dz-host{min-height:640px}
.dz{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:16px;align-items:start}
.dz-mapcol{position:relative;border-radius:var(--r-l);overflow:hidden;box-shadow:var(--shadow-2);background:#0b1d3f;height:calc(100vh - 170px);min-height:560px}
.dz-stage{position:absolute;inset:0}.dz-map{position:absolute;inset:0}
.dz-svg{position:absolute;inset:0;width:100%;height:100%}.dz-svg.over{pointer-events:none}.dz-svg.grid{background:#f6f8fb;cursor:grab}
.dz-stage:not([data-mode="pan"]) .dz-svg.grid{cursor:crosshair}
.dz-svg .gridlines line{stroke:#e3e8f0;stroke-width:1}.dz-svg .gridlines line.major{stroke:#cfd7e4}
.dz-svg .roofpoly{fill:rgba(255,183,3,.10);stroke:#ffb703;stroke-width:2.5;stroke-linejoin:round}
.dz-svg .roof.sel .roofpoly{stroke:#fff;stroke-dasharray:6 4;fill:rgba(255,183,3,.16)}
.dz-svg .panel{fill:#1d3f8f;stroke:#9cc0ff;stroke-width:1;fill-opacity:.92}.dz-svg .panel.off{fill:none;stroke:rgba(255,255,255,.55);stroke-dasharray:3 3}
.dz-svg .wire{fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;opacity:.95}
.dz-svg .obs polygon{fill:rgba(207,58,46,.35);stroke:#ff6b5e;stroke-width:2}.dz-svg .obs.sel polygon{stroke:#fff;stroke-dasharray:5 3}
.dz-svg .obs text{font:700 11px var(--font);fill:#fff;paint-order:stroke;stroke:rgba(0,0,0,.6);stroke-width:3px}
.dz-svg .shadow{fill:rgba(6,12,30,.42);stroke:none}
.dz-svg .handle{fill:#fff;stroke:#081e45;stroke-width:2;pointer-events:all;cursor:grab}
.dz-svg .draft{fill:none;stroke:#fff;stroke-width:2;stroke-dasharray:6 4}.dz-svg .draft.ob{stroke:#ff6b5e}
.dz-svg .dpt{fill:#fff;stroke:#081e45;stroke-width:1.5}.dz-svg .dpt.first{fill:#ffb703}
.dz-svg .len{font:700 12px var(--font);fill:#fff;paint-order:stroke;stroke:rgba(0,0,0,.65);stroke-width:3px}
.dz-svg.grid .len,.dz-svg.grid .obs text{fill:#0d1b33;stroke:#fff}.dz-svg.grid .draft{stroke:#081e45}.dz-svg.grid .roof.sel .roofpoly{stroke:#081e45}
.dz-tools{position:absolute;left:12px;top:12px;display:flex;flex-direction:column;gap:4px;background:rgba(8,30,69,.82);backdrop-filter:blur(8px);border-radius:14px;padding:6px;z-index:2}
.dz-tool{display:flex;align-items:center;gap:8px;background:transparent;border:0;color:#c9d6ee;padding:8px 10px;border-radius:9px;cursor:pointer;font:600 13px var(--font);text-align:left}
.dz-tool:hover{background:rgba(255,255,255,.1);color:#fff}.dz-tool.on{background:var(--sun);color:var(--night)}.dz-tool:disabled{opacity:.35;cursor:default}
.dz-tool .lbl{white-space:nowrap}.dz-tools .sep{height:1px;background:rgba(255,255,255,.15);margin:4px 2px}
.dz-hud{position:absolute;left:50%;transform:translateX(-50%);top:12px;background:rgba(8,30,69,.82);color:#fff;font:600 13px var(--font);padding:8px 14px;border-radius:99px;z-index:2;max-width:70%;text-align:center;pointer-events:none}
.dz-sunbar{position:absolute;left:12px;right:12px;bottom:12px;display:flex;gap:10px;align-items:center;background:rgba(8,30,69,.86);backdrop-filter:blur(8px);color:#fff;border-radius:14px;padding:8px 12px;z-index:2}
.dz-sunbar input[type=range]{flex:1;accent-color:var(--sun)}.dz-sunbar .input{width:auto;padding:6px 8px}.dz-sunbar b{font:700 16px var(--display);min-width:48px}
.dz-panel{background:#fff;border-radius:var(--r-l);box-shadow:var(--shadow-1);border:1px solid var(--line);overflow:hidden;height:calc(100vh - 170px);min-height:560px;display:flex;flex-direction:column}.dz-scroll{flex:1;overflow:auto;overscroll-behavior:contain}
.dz-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border-bottom:1px solid var(--line);flex:none}
.dz-summary div{background:linear-gradient(180deg,#fff,#fbfcfe);padding:12px;display:flex;flex-direction:column}
.dz-summary b{font:800 20px var(--display);letter-spacing:-.02em}.dz-summary b.ok{color:var(--leaf-ink)}.dz-summary b.warn{color:var(--amber)}.dz-summary b.bad{color:var(--red)}.dz-summary span{font-size:12px;color:var(--muted)}
.dz-sec{border-bottom:1px solid var(--line)}.dz-sec>summary{cursor:pointer;padding:14px 16px;font:700 15px var(--display);list-style:none;display:flex;justify-content:space-between}
.dz-sec>summary::after{content:"+";color:var(--muted);font-weight:500}.dz-sec[open]>summary::after{content:"–"}
.dz-sec>summary::-webkit-details-marker{display:none}.dz-body{padding:0 16px 16px;display:flex;flex-direction:column;gap:12px}
.dz-list{display:flex;flex-direction:column;gap:6px}
.dz-item{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;text-align:left;background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:8px 10px;font:inherit;cursor:pointer}
.dz-item b{font-weight:700}.dz-item span{font-size:12.5px;color:var(--muted)}.dz-item.on{border-color:var(--sun);box-shadow:0 0 0 3px rgba(255,183,3,.2)}
.dz-item select.input{width:auto;flex:1;padding:6px 8px}.dz-item input.input{padding:6px 8px}
.dz-form{background:var(--surface-2);border-radius:12px;padding:12px}
.dz-strings{display:flex;flex-direction:column;gap:6px}.dz-strings div{display:flex;align-items:center;gap:8px;font-size:13px}.dz-strings i{width:14px;height:14px;border-radius:4px;flex:none}.dz-strings span{color:var(--muted)}
.dz-checks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:13px}
.dz-checks li{padding:8px 10px 8px 30px;border-radius:9px;position:relative;line-height:1.45}
.dz-checks li::before{position:absolute;left:10px;top:8px;font-weight:800}
.dz-checks li.pass{background:var(--leaf-soft);color:#1e5a0a}.dz-checks li.pass::before{content:"✓"}
.dz-checks li.warn{background:var(--amber-soft);color:#6b4300}.dz-checks li.warn::before{content:"!"}
.dz-checks li.fail{background:var(--red-soft);color:var(--red)}.dz-checks li.fail::before{content:"✕"}
.dz-save{padding:14px 16px;border-top:1px solid var(--line);background:#fff;display:flex;flex-direction:column;gap:6px}.dz-save .btn{justify-content:center}
.sld-dlg{max-width:min(1200px,96vw)!important}.sld-view{border:1px solid var(--line);border-radius:12px;overflow:auto;background:#fff}.sld-view svg{display:block;width:100%;height:auto;min-width:900px}
.print-only{display:none}
@media print{body.printing-sld>*:not(.print-only){display:none!important}body.printing-sld .print-only{display:block}body.printing-sld .print-only svg{width:100%;height:auto}@page{size:A4 landscape;margin:8mm}}
@media (max-width:1100px){.dz{grid-template-columns:1fr}.dz-mapcol{height:62vh;min-height:420px}.dz-panel{height:auto;min-height:0}.dz-scroll{overflow:visible}.dz-tool .lbl{display:none}}
.dz-connect{background:linear-gradient(135deg,#081e45,#16397a);color:#fff;border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:10px}
.dz-connect b{font:700 16px var(--display)}.dz-connect p{margin:0;color:#c9d6ee;font-size:13px}.dz-connect a{color:var(--sun-2)}
.dz-connect details summary{cursor:pointer;color:var(--sun-2);font-weight:600}.dz-connect ol{margin:8px 0 0;padding-left:18px;color:#dbe5f7;line-height:1.6}
.dz-keyform{display:flex;gap:8px}.dz-keyform .input{flex:1;min-width:0}.dz-keyform .btn.primary{background:var(--sun);border-color:var(--sun);color:var(--night)}
