:root{--green:#0d7056;--dark:#123d33;--line:#cad8d3;--bg:#edf3f1;--panel:#fff;--text:#233b34;--muted:#72847e}*{box-sizing:border-box}body{margin:0;min-height:100vh;overflow:hidden;background:var(--bg);color:var(--text);font:14px Inter,system-ui,sans-serif}.app-header{height:66px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;background:#fff;border-bottom:1px solid var(--line)}.app-brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none}.app-brand>span{width:39px;height:39px;display:grid;place-items:center;border-radius:10px;background:var(--green);color:#fff;font-size:24px}.app-brand div{display:flex;flex-direction:column}.app-brand b{letter-spacing:.08em}.app-brand small{color:var(--muted);font-size:9px}.header-actions{display:flex;gap:8px}.header-actions button,.properties button{min-height:38px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 14px;font-weight:750;cursor:pointer}.header-actions .primary{border-color:var(--green);background:var(--green);color:#fff}.cad-app{height:calc(100vh - 66px);display:grid;grid-template-columns:82px 1fr 290px}.toolbar{display:flex;flex-direction:column;gap:8px;padding:12px 9px;background:#f8faf9;border-right:1px solid var(--line)}.tool{min-height:64px;border:1px solid transparent;border-radius:9px;background:transparent;color:#52665f;font-size:10px;cursor:pointer}.tool span{display:block;margin-bottom:5px;color:#2f5147;font-size:24px}.tool:hover,.tool.active{border-color:#a9c6bb;background:#e2f1eb;color:var(--green)}.tool.danger{margin-top:auto}.workspace{min-width:0;display:grid;grid-template-rows:48px 1fr 30px}.workspace-top,.statusbar{display:flex;align-items:center;justify-content:space-between;padding:0 15px;background:#f8faf9}.workspace-top{border-bottom:1px solid var(--line)}.workspace-top b,.workspace-top span{display:block}.workspace-top span,.zoom-info,.statusbar{color:var(--muted);font-size:10px}.workspace svg{width:100%;height:100%;background:#fff;touch-action:none;cursor:crosshair}.axis{stroke-width:1.5}.x-axis{stroke:#e7a39a}.y-axis{stroke:#96c3ae}.shape{fill:rgba(13,112,86,.16);stroke:#0d7056;stroke-width:3;vector-effect:non-scaling-stroke}.shape.selected{fill:rgba(255,138,61,.17);stroke:#ff7e2a}.preview{fill:rgba(13,112,86,.08);stroke:#0d7056;stroke-width:2;stroke-dasharray:8 6;vector-effect:non-scaling-stroke}.dimension-text{fill:#4c625a;font-size:13px;font-weight:700;paint-order:stroke;stroke:#fff;stroke-width:4}.properties{overflow:auto;padding:12px;background:#f8faf9;border-left:1px solid var(--line)}.panel{margin-bottom:10px;padding:15px;border:1px solid var(--line);border-radius:11px;background:#fff}.panel h2{margin:0 0 13px;font-size:13px}.panel p{color:var(--muted);font-size:11px;line-height:1.5}.panel label{display:block;margin:9px 0;color:#5e716a;font-size:10px;font-weight:700}.panel input{width:100%;margin-top:5px;border:1px solid var(--line);border-radius:7px;padding:9px}.two{display:grid;grid-template-columns:1fr 1fr;gap:8px}.properties button{width:100%;margin-top:5px}.estimate{margin-top:13px;padding:12px;border-radius:9px;background:#edf7f3}.estimate span,.estimate strong,.estimate small{display:block}.estimate span,.estimate small{color:var(--muted);font-size:9px}.estimate strong{margin:3px 0;color:var(--green);font-size:22px}.model-tree #tree{display:grid;gap:5px}.tree-item{display:flex;align-items:center;justify-content:space-between;padding:8px;border-radius:7px;background:#f1f6f4;font-size:10px;cursor:pointer}.tree-item.active{background:#dff1ea;color:var(--green);font-weight:800}.empty{color:#8b9994;font-size:10px}.note{border-color:#d9c79e;background:#fff9e9}.note b{font-size:11px}.note p{margin-bottom:0;color:#796c4b}@media(max-width:900px){body{overflow:auto}.app-header{height:auto;min-height:66px;flex-wrap:wrap;gap:8px;padding:10px}.cad-app{height:auto;min-height:calc(100vh - 80px);grid-template-columns:68px 1fr}.properties{grid-column:1/-1;border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.panel{margin:0}.workspace{height:600px}.toolbar{grid-row:1}.header-actions button{font-size:11px;padding:0 9px}}@media(max-width:600px){.app-brand small{display:none}.cad-app{grid-template-columns:56px 1fr}.tool{min-height:55px}.tool span{font-size:20px}.workspace{height:500px}.properties{grid-template-columns:1fr}.header-actions button:first-child{display:none}}
