.workspace{grid-template-columns:minmax(0,1fr) 290px}.intro{margin-bottom:16px}.intro h2{font-size:25px}.metrics{margin-bottom:18px}.metric{padding:12px 19px}.metric .number{font-size:27px}.draw-tools,.edit-actions{display:flex;gap:5px;flex-wrap:wrap;padding:11px 14px;background:#fbfdfd;border-bottom:1px solid #e2eaed;align-items:center}.draw-tools button{font-size:11px;padding:7px 9px}.draw-tools .selected{background:#127c6a;color:#fff;border-color:#127c6a}.edit-actions{padding:8px 14px;background:#fff}.edit-actions button{font-size:10px;padding:5px 8px}button:disabled{opacity:.4;cursor:default}.tool-sep{border-left:1px solid #dbe5e7;height:20px;margin:0 3px}.snap-label{display:flex;align-items:center;gap:4px;font-size:10px;margin-left:auto;white-space:nowrap}.snap-label input{width:auto;margin:0;accent-color:#127c6a}.studio-viewport{position:relative;height:550px;background:#eef3f5;overflow:hidden;touch-action:none;outline:none}.studio-viewport:focus-visible{box-shadow:inset 0 0 0 2px #199c87}#layout,#threeCanvas{width:100%;height:100%;display:block;touch-action:none}#layout[hidden],#threeCanvas[hidden],[hidden]{display:none!important}#studioBadge,#coordinateReadout{position:absolute;pointer-events:none;font-size:10px;letter-spacing:.8px;color:#69808d;background:#ffffffd9;border:1px solid #d9e3e7;border-radius:5px;padding:7px 10px;top:14px;left:14px}#coordinateReadout{top:auto;bottom:14px;font-variant-numeric:tabular-nums;letter-spacing:0}.studio-status{padding:10px 16px;display:flex;gap:12px;justify-content:space-between;border-top:1px solid #e0e9ed;font-size:10px;color:#66828e;min-height:44px}.studio-status strong{color:#1d786a;white-space:nowrap}.studio-card .canvas-footer a{color:#397d79;text-decoration:none;font-size:10px}.studio-card .canvas-footer{padding:8px 14px}.studio-card .canvas-footer span{width:auto}.settings{max-height:840px;overflow:auto}#objectInspector{padding:15px 16px;background:#fafcfb}.inspector-title{font-size:11px;font-weight:650;color:#315a62;margin-bottom:10px}.inspector-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.inspector-grid label.full{grid-column:1/-1}.inspector-grid input,.inspector-grid select{font-size:11px;padding:6px;width:100%;min-width:0}.inspector-desc{font-size:10px;color:#7a8d93;margin:9px 0}.inspector-buttons{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.inspector-buttons button{font-size:10px;padding:6px 9px}.inspector-divider{padding:10px 16px 2px;font-size:9px;letter-spacing:1.2px;color:#8a9ca3}.scene-list{display:flex;flex-direction:column;gap:5px;margin-bottom:12px;max-height:120px;overflow:auto}.scene-list button{text-align:left;font-size:10px;padding:6px 9px}.scene-list button.selected{background:#e1f3ed;border-color:#85bfab;color:#127361}.roof-node{fill:#fdfefe;stroke:#9eb7c2;stroke-width:.09;cursor:move}.roof-node.selected{stroke:#17a78c;stroke-width:.13}.panel-node{fill:#28576d;stroke:#b3d2df;stroke-width:.025;cursor:move}.panel-node.invalid{fill:#d59246}.panel-node.selected{fill:#258d85;stroke:#083f3b;stroke-width:.05}.vertex{fill:white;stroke:#128b77;stroke-width:.06;cursor:grab}.vertex:hover{fill:#8be3ca}.member-node{stroke:#627f8d;stroke-width:.12;cursor:move}.member-node.selected{stroke:#06a889;stroke-width:.2}.obstacle-node{fill:#d8c6a1;stroke:#b3996d;stroke-width:.07;cursor:move}.obstacle-node.selected{stroke:#07917c;stroke-width:.15}.draft-path{stroke:#0a997e;stroke-width:.09;fill:#1dba9120;stroke-dasharray:.3 .15;pointer-events:none}.dimension{font-size:.35px;fill:#7a929d;pointer-events:none;paint-order:stroke;stroke:#f4f8fa;stroke-width:.05px}.studio-viewport .roof-name{font-size:.45px;fill:#617c87;pointer-events:none}.tool-select .studio-viewport{cursor:default}.tool-freehand .studio-viewport,.tool-polygon .studio-viewport,.tool-rectangle .studio-viewport,.tool-rack .studio-viewport,.tool-panel .studio-viewport,.tool-obstacle .studio-viewport,.tool-beam .studio-viewport,.tool-post .studio-viewport{cursor:crosshair}.tool-navigate .studio-viewport{cursor:grab}#emptyHint{position:absolute;top:42%;width:100%;text-align:center;pointer-events:none;color:#6a8794;font-size:14px;line-height:2}#geometryWarning{font-size:11px;color:#956026;background:#fff4e4;padding:10px 16px;border-top:1px solid #f0dcc0}#threeError{position:absolute;inset:25%;background:#fff;border:1px solid #d8e3e6;border-radius:10px;padding:25px;color:#725d42}.settings #inputs{max-height:260px}.scene-select{display:block;width:100%;padding:7px;font-size:11px;border:1px solid #d3e1e5;border-radius:5px;background:white;color:#284754;margin-bottom:12px}.draft-count{font-size:10px;color:#67838c;margin-left:5px}.outline-coordinates{width:100%;height:85px;font:11px/1.5 Consolas,monospace;color:#3a5964;border:1px solid #d9e4e8;border-radius:5px;resize:vertical;padding:7px}.inspector-details{margin-top:12px;font-size:10px;color:#5d7d88}.inspector-details summary{cursor:pointer;margin-bottom:6px}@media(min-width:1400px){.workspace{grid-template-columns:minmax(0,1fr) 310px}.studio-viewport{height:600px}}@media(max-width:1000px){main{padding:16px}.workspace{grid-template-columns:minmax(0,1fr) 255px}.draw-tools button{padding:6px;font-size:10px}.studio-viewport{height:500px}.snap-label{margin-left:0}}@media(max-width:800px){.workspace{grid-template-columns:1fr}.settings{order:0;max-height:none}.studio-viewport{height:470px}.metrics{gap:8px}.metric{padding:10px}.studio-card .card-head{padding:12px}.studio-status{flex-direction:column;gap:3px}.draw-tools{gap:4px;padding:8px}.inspector-grid{grid-template-columns:1fr 1fr}.edit-actions{padding:7px}.canvas-footer{flex-wrap:wrap}.settings #inputs{max-height:340px}}@media print{.draw-tools,.edit-actions,#objectInspector,.inspector-divider,.studio-status,.canvas-footer,#studioBadge,#coordinateReadout{display:none!important}.studio-viewport{height:400px}#layout{display:block!important}#threeCanvas{display:none!important}.studio-card{break-inside:avoid}}

.panel-node.pending{fill:#3f6f86;stroke-dasharray:.08 .06}

/* multi-selection and groups */.tool-marquee .studio-viewport{cursor:crosshair}.sel-marquee{position:absolute;pointer-events:none;border:1.5px solid #1f6fd1;background:rgba(31,111,209,.10);z-index:4}.sel-marquee.crossing{border:1.5px dashed #0f8a5f;background:rgba(15,138,95,.10)}.sel-frame{fill:none;stroke:#07917c;stroke-width:1.2px;stroke-dasharray:4 3;vector-effect:non-scaling-stroke}.group-frame{fill:rgba(122,63,176,.04);stroke:#7a3fb0;stroke-width:1.5px;stroke-dasharray:7 4;vector-effect:non-scaling-stroke}.group-label{fill:#5b2a86;font-weight:700;paint-order:stroke;stroke:#fff;stroke-width:3px;vector-effect:non-scaling-stroke}.in-selection:not(.panel-node):not(.roof-node):not(.obstacle-node):not(.member-node){stroke:#07917c;stroke-width:.1}.selection-panel{margin:4px 0 8px}.group-list{display:flex;flex-direction:column;gap:4px;margin-bottom:8px}.group-list button{text-align:left;font-size:12px}#selectionCount{font-size:11px}
.tool-measure .studio-viewport{cursor:crosshair}.smart-guide{stroke:#e0249a;stroke-width:1.2px;stroke-dasharray:5 3;vector-effect:non-scaling-stroke}.measure-line{fill:none;stroke:#d9480f;stroke-width:1.8px;vector-effect:non-scaling-stroke}.measure-pt{fill:#d9480f}.measure-snap{fill:none;stroke:#d9480f;stroke-width:1.5px;vector-effect:non-scaling-stroke}.measure-text,.measure-total{fill:#8a2c05;font-weight:700;paint-order:stroke;stroke:#fff;stroke-width:3px;vector-effect:non-scaling-stroke}.group-frame.nested{stroke:#9a67c8;stroke-dasharray:3 3}.group-frame.locked{stroke:#8a5a00;fill:rgba(160,110,0,.05)}

/* guided workflow */
.workflow{padding:10px 14px 8px;border-bottom:1px solid #e2eaed;background:linear-gradient(#fbfefd,#f4f9f8)}
.wf-steps{display:flex;gap:6px;list-style:none;margin:0;padding:0;overflow-x:auto;scrollbar-width:thin}
.wf-steps li{flex:1 0 auto}
.wf-steps button{width:100%;display:flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #d3e1e5;border-radius:999px;background:#fff;font-size:12px;white-space:nowrap;cursor:pointer}
.wf-num{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#e6eef1;color:#35505a;font-weight:700;font-size:11px}
.wf-steps button[data-status=done] .wf-num{background:#127c6a;color:#fff}
.wf-steps button[data-status=warn] .wf-num{background:#d98a1b;color:#fff}
.wf-steps button.current{border-color:#127c6a;box-shadow:0 0 0 2px #127c6a33;font-weight:700}
.wf-state{margin-left:auto;font-weight:700;color:#127c6a}.wf-steps button[data-status=warn] .wf-state{color:#b0620b}
.wf-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:7px}.wf-next{flex:1 1 320px;margin:0;font-size:12px;color:#36505a}
.wf-foot button{font-size:11px;padding:5px 9px}.wf-go{margin-left:6px;border:1px solid #127c6a;color:#127c6a;background:#fff;border-radius:6px;font-weight:700}
.mixed-bar.wf-hidden{display:none}.wf-pulse{animation:wfpulse 1.2s ease-out}@keyframes wfpulse{0%{box-shadow:inset 0 0 0 3px #127c6a}100%{box-shadow:inset 0 0 0 0 transparent}}
.keys-dialog{width:min(640px,96vw)}.keys-table{width:100%;border-collapse:collapse;font-size:13px}.keys-table th{text-align:left;padding:4px 10px 4px 0;white-space:nowrap;font-weight:600;vertical-align:top}.keys-table td{padding:4px 0}
kbd{background:#f2f5f7;border:1px solid #cfd9de;border-bottom-width:2px;border-radius:4px;padding:1px 6px;font:12px/1.4 ui-monospace,Consolas,monospace}
.tour-dialog{width:min(560px,94vw)}.tour-text{font-size:15px;line-height:1.55}.tour-dots{display:flex;gap:6px;justify-content:center}.tour-dots span{width:8px;height:8px;border-radius:50%;background:#cfdce1}.tour-dots span.on{background:#127c6a}
/* tablets and touch screens: larger targets */
@media (pointer:coarse){.draw-tools button,.edit-actions button,.mixed-bar button,.wf-steps button{min-height:42px;padding-inline:12px;font-size:13px}.edit-actions .snap-label,.mixed-bar label{min-height:40px}.vertex{r:.32px}.studio-viewport{height:min(70vh,640px)}.inspector-grid input,.inspector-grid select{min-height:40px;font-size:15px}}
@media (max-width:700px){.wf-steps button .wf-label{font-size:11px}.wf-next{font-size:11px}}

/* collaboration */
.versions-dialog,.review-dialog{width:min(820px,96vw)}.ver-row{display:flex;gap:8px;align-items:center;justify-content:space-between;border-bottom:1px solid #e6edf0;padding:6px 0;font-size:12px}.ver-server{margin:8px 0}
.rev-item{border:1px solid #dfe8ec;border-radius:8px;padding:8px 10px;margin:6px 0}.rev-item.resolved{opacity:.65}.rev-item.focus{border-color:#127c6a;box-shadow:0 0 0 2px #127c6a33}.rev-head{font-size:12px;color:#46606a}.rev-item p{margin:4px 0}.rev-reply{font-size:12px;padding-left:12px;border-left:2px solid #dfe8ec}
.rev-pin{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#d9480f;color:#fff;font-size:11px;font-weight:700;margin-right:4px}.rev-status{float:right;font-size:11px;text-transform:uppercase}.rev-item textarea,.review-dialog textarea{width:100%}
.rev-sign{font-size:12px;padding:4px 0}.rev-sign.void{color:#a4461c}.rev-filter{display:flex;justify-content:space-between;align-items:center;font-size:12px}
.rev-pin-g path{fill:#d9480f;stroke:#fff;stroke-width:1.5px;vector-effect:non-scaling-stroke;cursor:pointer}.rev-pin-g.resolved path{fill:#7d8d93}.rev-pin-g text{fill:#fff;font-weight:700;pointer-events:none}.tool-comment .studio-viewport{cursor:cell}
.contour{fill:none;stroke:#8a6d3b;stroke-width:.8px;opacity:.7;vector-effect:non-scaling-stroke}.contour.major{stroke-width:1.5px;opacity:.9}.contour-label{fill:#6b5327;font-weight:600;paint-order:stroke;stroke:#fff;stroke-width:3px;vector-effect:non-scaling-stroke}.survey-pt{fill:#6b5327}.tool-tracker .studio-viewport{cursor:crosshair}
.capture-bar{display:flex;flex-direction:column;gap:6px}.cap-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:12px}.cap-row select{max-width:220px}.cap-op input{width:80px;vertical-align:middle}.cap-rot input{width:64px}.cal-line{stroke:#e0249a;stroke-width:1.5px;stroke-dasharray:4 3;vector-effect:non-scaling-stroke}.cal-pt{fill:#e0249a}.tile-attr{fill:#fff;paint-order:stroke;stroke:#0008;stroke-width:3px;vector-effect:non-scaling-stroke}.tool-calibrate .studio-viewport,.tool-dsmroof .studio-viewport{cursor:crosshair}.tool-underlay .studio-viewport{cursor:move}
.google-attr{position:absolute;right:14px;bottom:14px;z-index:3;pointer-events:none;font:400 12px Roboto,Arial,sans-serif;color:#5E5E5E;background:#fff;border:1px solid #d9e3e7;border-radius:4px;padding:3px 7px}.solar-api-dialog .note{font-size:12px;color:#5d6f76}.solar-api-dialog [data-gstatus]{min-height:1.2em;color:#8a2c05;font-size:13px}
/* electrical design */
.electrical-bar strong{font-size:13px;margin-right:2px}
.electrical-bar .chk{display:inline-flex;align-items:center;gap:4px}
.electrical-bar .elec-status{color:var(--muted,#5b6b73);font-size:12px}
.electrical-bar .elec-status.warn{color:#9a5b00}
.electrical-bar .elec-edit{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;background:#eef5ff;border:1px solid #c9dcf5;border-radius:6px;padding:2px 8px;font-size:12px}
.electrical-bar button.selected{outline:2px solid #0a7cff}
.electrical-dialog fieldset{border:1px solid #d5dfe3;border-radius:8px;margin:8px 0;padding:6px 10px}
.electrical-dialog .dlg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:6px 12px}
.electrical-dialog .dlg-grid label{display:flex;flex-direction:column;font-size:12px;gap:2px}
.shed-dialog.sld-dialog{width:min(1400px,96vw);max-width:96vw}
.sld-dialog .sld-view{overflow:auto;max-height:70vh;border:1px solid #d5dfe3;background:#fff}
.sld-dialog .sld-view svg{width:100%;height:auto;min-width:900px;display:block}
.sld-dialog .sld-tabs{display:flex;gap:6px;margin-bottom:8px}
.sld-dialog .sld-tabs .selected{background:#1d4fa8;color:#fff}
.sld-dialog .dlg-foot{flex-wrap:wrap}
@media (max-width:640px){.sld-dialog .sld-view svg{min-width:640px}}
