:root{--bg:#e9eef5;--panel:#f8fafc;--line:#bcc8d6;--text:#1f2937;--muted:#64748b;--accent:#d7a51c;--accent2:#f7d86b;--blue:#2563eb;--green:#15803d;--danger:#b91c1c;--ribbon:#fff;--shadow:0 2px 10px rgba(15,23,42,.09)}
*{box-sizing:border-box}html,body,#app{margin:0;width:100%;height:100%;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--text);background:var(--bg);overflow:hidden}button,input,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.muted{color:var(--muted)}
.topbar{height:58px;display:flex;align-items:center;border-bottom:1px solid var(--line);background:#f4f7fb;padding:0 12px;gap:18px}.brand{display:flex;align-items:center;gap:9px;min-width:248px}.brandMark{display:grid;place-items:center;width:32px;height:32px;background:linear-gradient(145deg,#f4ce5a,#bb8510);border-radius:7px;font-weight:900;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.brand div{display:flex;flex-direction:column}.brand small{color:var(--muted);font-size:11px}.tabs{display:flex;align-self:stretch}.tab{border:0;background:transparent;padding:0 13px;border-bottom:3px solid transparent;color:#334155}.tab.active{background:#fff;border-bottom-color:var(--accent);font-weight:650}.top-actions{margin-left:auto;display:flex;align-items:center;gap:7px}.top-actions button{border:1px solid var(--line);border-radius:6px;background:#fff;padding:7px 11px}.top-actions .primary,.primary{background:var(--blue)!important;color:#fff!important;border-color:var(--blue)!important}.badge{font-size:10px;background:#e2e8f0;padding:5px 8px;border-radius:999px;white-space:nowrap}.badge-ok{background:#dcfce7;color:#166534}.badge-warn{background:#fef3c7;color:#92400e}.badge-bad{background:#fee2e2;color:#991b1b}
.ribbon{height:94px;display:flex;align-items:stretch;border-bottom:1px solid var(--line);background:var(--ribbon);padding:7px 10px;gap:9px;box-shadow:var(--shadow);z-index:4;overflow-x:auto;overflow-y:hidden}.toolgroup{display:none;gap:4px;padding-right:8px;border-right:1px solid #e3e8ef;flex:0 0 auto}.toolgroup[data-group="home"]{display:flex}.tool{min-width:64px;border:1px solid transparent;background:transparent;border-radius:7px;color:#334155;padding:6px 5px;font-size:11px;white-space:nowrap}.tool span{display:block;font-size:21px;line-height:25px;font-weight:700;min-height:25px}.tool:hover,.tool.active{background:#fff7d6;border-color:#e9c85b}
.workspace{height:calc(100% - 152px);display:grid;grid-template-columns:238px minmax(0,1fr) 300px;gap:6px;padding:6px}.panel,.card{background:var(--panel);border:1px solid var(--line);border-radius:6px;box-shadow:var(--shadow);min-height:0}.panel{display:flex;flex-direction:column;overflow:hidden}.panel-title{font-weight:700;padding:9px 10px;background:linear-gradient(#f8fafc,#e9eef5);border-bottom:1px solid var(--line);font-size:13px}.row-title{display:flex;align-items:center;justify-content:space-between}.tiny{border:0;background:transparent;color:#64748b}.count-pill{display:inline-flex;min-width:22px;height:20px;border-radius:999px;background:#dbeafe;color:#1d4ed8;align-items:center;justify-content:center;font-size:11px}.tree{padding:8px;font-size:12px;overflow:auto;flex:1}.tree details{margin:3px 0}.tree summary{cursor:pointer;user-select:none}.tree-row{padding:5px 7px 5px 22px;border-radius:4px;display:flex;justify-content:space-between;gap:5px}.tree-row:hover{background:#edf2f7}.tree-row.active{background:#fff3a8}.tree-row small{color:#64748b}.project-stats{border-top:1px solid var(--line);padding:8px}.project-stats div{display:flex;justify-content:space-between;padding:3px 0;font-size:11px}
.center-area{min-width:0;display:flex;flex-direction:column}.view-tabs{height:34px;display:flex;gap:2px;align-items:flex-end}.viewtab{height:31px;border:1px solid var(--line);background:#e9eef5;border-radius:5px 5px 0 0;padding:4px 10px;font-size:11px}.viewtab.active{background:#fff;border-bottom-color:#fff}.view-spacer{flex:1}.view-tabs select{height:28px;border:1px solid var(--line);border-radius:4px;background:#fff;font-size:11px;padding:2px 6px;max-width:180px}.view-grid{flex:1;min-height:0;display:grid;gap:6px}.view-grid.split{grid-template-columns:1fr 1fr}.view-grid.plan{grid-template-columns:1fr}.view-grid.plan #threeViewport{display:none}.view-grid.three{grid-template-columns:1fr}.view-grid.three #planViewport{display:none}.viewport{position:relative;overflow:hidden;background:#fff;display:flex;flex-direction:column}.viewport-title{height:30px;padding:7px 9px;background:#f5f7fb;border-bottom:1px solid var(--line);font-size:11px;font-weight:650}.viewport-title span{float:right;font-weight:400;color:var(--muted)}#cadCanvas,#renderCanvas{width:100%;height:calc(100% - 30px);display:block;background:#fff;touch-action:none;user-select:none}#renderCanvas{outline:none;background:#dfe8ef}.render-fallback{position:absolute;inset:30px 0 0;display:grid;place-items:center;background:#e8edf3;color:#475569;font-size:13px;padding:20px;text-align:center}.navcube{position:absolute;right:10px;bottom:12px;width:46px;height:46px;border:1px solid rgba(51,65,85,.4);background:rgba(255,255,255,.8);display:grid;place-items:center;border-radius:6px;font-size:9px;color:#334155;pointer-events:none}.navcube b{font-size:12px}.navcube span{position:absolute;top:3px;font-weight:700}.commandbar{height:35px;display:flex;align-items:center;gap:7px;background:#111827;color:#e5e7eb;padding:4px 8px;font-family:Consolas,monospace;font-size:12px}.commandbar input{width:280px;background:#0b1220;border:1px solid #334155;color:#fff;border-radius:4px;padding:4px 7px}.commandbar .hint{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#94a3b8}.statusbar{height:25px;display:flex;align-items:center;background:#e8eef5;border:1px solid #c6d0dc;border-top:0;padding:0 6px;gap:4px;font-size:10px}.status-toggle{height:20px;border:1px solid #bac6d4;background:#f8fafc;padding:0 6px;border-radius:3px;font-size:9px}.status-toggle.active{background:#dbeafe;border-color:#93c5fd;color:#1d4ed8}.status-spacer{flex:1}#osnapReadout{color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:380px}
.properties{padding:10px;overflow:auto;min-height:180px}.empty-state{font-size:12px;color:var(--muted);line-height:1.5;padding:12px;border:1px dashed var(--line);border-radius:6px}.prop-section{font-weight:700;font-size:11px;color:#475569;margin:12px 0 5px;border-bottom:1px solid #d9e1eb;padding-bottom:4px}.prop-row{display:grid;grid-template-columns:42% 58%;gap:6px;margin:6px 0;align-items:center;font-size:11px}.prop-row input,.prop-row select{width:100%;padding:5px;border:1px solid var(--line);border-radius:4px;background:#fff}.prop-row input[type="checkbox"]{width:auto}.catalog-title{margin-top:auto}.catalog-search{padding:7px}.catalog-search input{width:100%;padding:7px;border:1px solid var(--line);border-radius:5px}.catalog-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:0 7px 10px;max-height:310px;overflow:auto}.family{border:1px solid var(--line);border-radius:6px;background:#fff;padding:7px;text-align:left}.family:hover{border-color:#d6a72b;background:#fffaf0}.family b,.family small{display:block}.family b{font-size:10px;margin-top:4px}.family small{color:var(--muted);font-size:9px}.preview{display:block;height:48px;border-radius:3px;background:#e5e7eb;position:relative}.wall-preview{background:linear-gradient(135deg,#d7dce4 45%,#aab3c0 46%,#aab3c0 54%,#d7dce4 55%)}.door-preview:after{content:"";position:absolute;left:20%;bottom:0;width:45%;height:80%;border:5px solid #9a6428;border-bottom:0;background:#d9b887}.window-preview:after{content:"";position:absolute;inset:15% 12%;border:5px solid #536b7d;background:#c8e9f6}.slab-preview{background:linear-gradient(#d1d5db,#9ca3af)}.column-preview:after{content:"";position:absolute;inset:10px 28px;background:#94a3b8;border:2px solid #475569}.beam-preview:after{content:"";position:absolute;left:8px;right:8px;top:20px;height:9px;background:#9ca3af;border:1px solid #475569}.curtain-preview{background:repeating-linear-gradient(90deg,#d8f1f7 0,#d8f1f7 22px,#506979 23px,#506979 25px)}.room-preview{background:#dff7df;border:1px dashed #469a46}
.cad-line,.cad-polyline,.cad-spline{fill:none;stroke-width:2.2;vector-effect:non-scaling-stroke}.cad-wall{fill:none;stroke-linecap:square;vector-effect:non-scaling-stroke}.cad-shape{fill:rgba(14,116,144,.03);stroke-width:2;vector-effect:non-scaling-stroke}.cad-bim-shape{fill:rgba(22,163,74,.08);stroke-width:2.2;vector-effect:non-scaling-stroke}.cad-room{fill:rgba(34,197,94,.08);stroke:#15803d;stroke-dasharray:8 5;stroke-width:2}.cad-opening-cut{stroke:#fff;stroke-linecap:butt;vector-effect:none}.cad-door-leaf{stroke:#915b1f;stroke-width:2;fill:none}.cad-window-symbol{stroke:#087ea4;stroke-width:2;fill:none}.cad-section{stroke:#b91c1c;stroke-width:2.2;stroke-dasharray:10 5}.cad-hatch{fill:url(#hatch45);stroke:#64748b;stroke-width:1}.entity-selected{filter:drop-shadow(0 0 3px #f59e0b)}.selection-box{fill:none;stroke:#f59e0b;stroke-width:1.5;stroke-dasharray:5 3;vector-effect:non-scaling-stroke}.preview-entity{stroke:#ef4444;stroke-width:2;stroke-dasharray:8 5;fill:none;vector-effect:non-scaling-stroke}.snap-marker{fill:#fff;stroke:#ef4444;stroke-width:2;vector-effect:non-scaling-stroke}.snap-label{font-size:12px;fill:#b91c1c;font-family:Segoe UI,Arial}.locked{opacity:.7}
.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.35);z-index:100}.modal{position:fixed;z-index:101;left:50%;top:50%;transform:translate(-50%,-50%);width:min(720px,calc(100vw - 28px));max-height:86vh;background:#fff;border:1px solid #aab7c6;border-radius:9px;box-shadow:0 20px 60px rgba(15,23,42,.25);display:flex;flex-direction:column}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;border-bottom:1px solid #d9e1eb;background:#f5f8fb;border-radius:9px 9px 0 0}.modal-header h2{font-size:15px;margin:0}.modal-header button{border:0;background:transparent;font-size:22px;color:#64748b}.modal-body{padding:14px;overflow:auto;font-size:12px}.modal-footer{padding:10px 14px;border-top:1px solid #d9e1eb;display:flex;justify-content:flex-end;gap:8px}.modal-footer button{border:1px solid var(--line);background:#fff;border-radius:5px;padding:7px 12px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form-field{display:flex;flex-direction:column;gap:4px}.form-field label{font-weight:650;color:#475569}.form-field input,.form-field select{border:1px solid #c3cedb;border-radius:5px;padding:7px}.modal-table{width:100%;border-collapse:collapse}.modal-table th,.modal-table td{border-bottom:1px solid #e2e8f0;padding:7px;text-align:left}.modal-table input,.modal-table select{width:100%;border:1px solid #cbd5e1;border-radius:4px;padding:4px}.modal-actions{display:flex;gap:6px;margin-bottom:10px}.modal-actions button{border:1px solid #c5cfdb;background:#fff;border-radius:5px;padding:6px 9px}.diag-list{display:grid;gap:7px}.diag-item{display:flex;justify-content:space-between;gap:15px;padding:8px;border:1px solid #e2e8f0;border-radius:5px}.diag-ok{color:#15803d}.diag-warn{color:#b45309}.diag-bad{color:#b91c1c}.codebox{font-family:Consolas,monospace;background:#0f172a;color:#dbeafe;border-radius:5px;padding:10px;white-space:pre-wrap;max-height:280px;overflow:auto}
.toast{position:fixed;right:16px;bottom:18px;background:#111827;color:#fff;padding:10px 14px;border-radius:7px;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s;z-index:200;font-size:12px;max-width:min(440px,calc(100vw - 32px))}.toast.show{opacity:1;transform:none}
@media(max-width:1180px){.workspace{grid-template-columns:205px minmax(0,1fr) 265px}.top-actions .badge{display:none}.brand{min-width:210px}.tool{min-width:60px}}
@media(max-width:960px){.workspace{grid-template-columns:190px minmax(0,1fr)}.right-panel{position:fixed;right:7px;top:159px;width:270px;height:calc(100% - 168px);z-index:6;box-shadow:0 8px 30px rgba(15,23,42,.2)}.view-grid.split{grid-template-columns:1fr}.view-grid.split #threeViewport{display:none}.tabs{overflow:auto}.brand{min-width:auto}.brand small{display:none}}
@media(max-width:700px){html,body,#app{overflow:hidden}.topbar{height:52px;position:sticky;top:0;z-index:10}.brand strong{font-size:12px}.tabs,.badge{display:none}.top-actions button:not(.primary){display:none}.ribbon{height:78px;position:sticky;top:52px;z-index:9;padding:4px 6px}.tool{min-width:57px;padding:3px;font-size:9px}.tool span{font-size:18px;line-height:22px;min-height:22px}.workspace{height:calc(100% - 130px);grid-template-columns:1fr;padding:4px}.left-panel,.right-panel{display:none}.center-area{height:100%}.view-grid.split{grid-template-columns:1fr}.view-grid.split #threeViewport{display:none}.view-tabs select{max-width:120px}.commandbar .hint,.cmd-label{display:none}.commandbar input{width:100%}.statusbar{overflow-x:auto}.statusbar #osnapReadout{display:none}}
/* 0.3 Advanced additions */
.foundation-preview{background:linear-gradient(#a3a3a3 0 34%,#737373 35% 100%)}
.pipe-preview{background:linear-gradient(180deg,transparent 42%,#3182a8 43% 57%,transparent 58%)}
.pipe-preview:after{content:"";position:absolute;right:14px;top:18px;width:12px;height:12px;border-radius:50%;border:3px solid #1f6f8c;background:#d9f1fb}
.duct-preview{background:linear-gradient(180deg,transparent 35%,#cbd5e1 36% 64%,transparent 65%)}
.duct-preview:after{content:"";position:absolute;left:8px;right:8px;top:18px;height:14px;border:2px solid #64748b;background:rgba(203,213,225,.65)}
.equipment-preview:after{content:"⚙";position:absolute;inset:4px;display:grid;place-items:center;font-size:30px;color:#7c3aed}
.furniture-preview:after{content:"";position:absolute;left:10px;right:10px;top:14px;height:24px;border-radius:5px;background:#b08968;box-shadow:inset 0 -8px 0 #8b6f54}
.terrain-preview{background:linear-gradient(170deg,#d5e8c6 0 38%,#95b47b 39% 55%,#6e8e59 56% 100%)}
.annotation-text{fill:#172554;font-family:Segoe UI,Arial,sans-serif;font-size:16px;pointer-events:all}
.cad-dimension{stroke:#475569;stroke-width:1.4;fill:none;vector-effect:non-scaling-stroke}
.cad-dimension-text{fill:#334155;font-family:Segoe UI,Arial,sans-serif;font-size:12px}
.cad-gridline{stroke:#0f766e;stroke-width:1.4;stroke-dasharray:14 5 2 5;vector-effect:non-scaling-stroke}
.cad-mep-pipe{stroke:#0ea5e9;stroke-linecap:round;fill:none;vector-effect:non-scaling-stroke}
.cad-mep-duct{stroke:#64748b;stroke-width:7;fill:none;vector-effect:non-scaling-stroke}
.cad-terrain{fill:rgba(101,163,79,.16);stroke:#4d7c3d;stroke-width:2;stroke-dasharray:5 3}
.cad-object{fill:rgba(124,58,237,.10);stroke:#7c3aed;stroke-width:2}
.selection-window{fill:rgba(59,130,246,.08);stroke:#2563eb;stroke-width:1.4;stroke-dasharray:6 4;vector-effect:non-scaling-stroke}
.metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:8px 0 14px}.metric-card{border:1px solid #dbe3ec;border-radius:7px;padding:10px;background:#f8fafc}.metric-card small{display:block;color:#64748b;font-size:10px}.metric-card strong{display:block;font-size:18px;margin-top:3px;color:#0f172a}
.report-table{width:100%;border-collapse:collapse;font-size:11px}.report-table th,.report-table td{border-bottom:1px solid #e2e8f0;padding:6px 7px;text-align:left;white-space:nowrap}.report-table th{position:sticky;top:0;background:#f8fafc;z-index:1}.report-scroll{max-height:420px;overflow:auto;border:1px solid #e2e8f0;border-radius:6px}
.issue-card{border:1px solid #e2e8f0;border-left:4px solid #f59e0b;border-radius:6px;padding:9px;margin:7px 0;background:#fff}.issue-card.error{border-left-color:#dc2626}.issue-card.resolved{border-left-color:#16a34a;opacity:.75}.issue-card h4{margin:0 0 4px;font-size:12px}.issue-card p{margin:3px 0;color:#64748b;font-size:11px}.issue-actions{display:flex;gap:5px;margin-top:7px}.issue-actions button{border:1px solid #cbd5e1;background:#fff;border-radius:4px;padding:4px 7px;font-size:10px}
.progress-track{height:8px;border-radius:999px;background:#e2e8f0;overflow:hidden;min-width:90px}.progress-fill{height:100%;background:#3b82f6}
.help-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.help-card{border:1px solid #e2e8f0;border-radius:7px;padding:10px;background:#fff}.help-card h3{font-size:12px;margin:0 0 6px}.help-card code{display:block;background:#f1f5f9;padding:5px 7px;border-radius:4px;font-size:10px;margin:4px 0}
.badge-mini{display:inline-block;border-radius:999px;background:#e2e8f0;padding:2px 6px;font-size:9px;margin-right:4px}.badge-mini.high{background:#fee2e2;color:#991b1b}.badge-mini.ok{background:#dcfce7;color:#166534}
@media(max-width:1400px){.tabs{max-width:680px}.tool{min-width:56px}.ribbon{overflow-x:auto;overflow-y:hidden}}

/* 0.7 Real Use workbench */
:root{--workbench:#0f172a;--grip:#2563eb;--grip-hot:#f59e0b;--panel2:#eef3f8}
.doc-canvas{height:calc(100% - 30px);overflow:auto;background:#d7dce3;padding:18px;display:flex;align-items:flex-start;justify-content:center}.doc-canvas svg{background:white;box-shadow:0 8px 26px rgba(15,23,42,.18);max-width:100%;height:auto}.view-grid.section,.view-grid.elevation,.view-grid.sheet{grid-template-columns:1fr}.view-grid.section #planViewport,.view-grid.section #threeViewport,.view-grid.elevation #planViewport,.view-grid.elevation #threeViewport,.view-grid.sheet #planViewport,.view-grid.sheet #threeViewport{display:none}.view-grid.section #docViewport,.view-grid.elevation #docViewport,.view-grid.sheet #docViewport{display:flex!important}
.status-select{height:20px;border:1px solid #bac6d4;background:#f8fafc;border-radius:3px;font-size:9px;padding:0 4px;color:#334155;max-width:120px}
.cad-grip{fill:#fff;stroke:var(--grip);stroke-width:2;vector-effect:non-scaling-stroke;cursor:crosshair}.cad-grip.center{fill:#dbeafe}.cad-grip:hover,.cad-grip.hot{fill:#fde68a;stroke:var(--grip-hot)}.cad-grip-line{stroke:#60a5fa;stroke-width:1;stroke-dasharray:4 3;vector-effect:non-scaling-stroke;pointer-events:none}.selection-box{pointer-events:none}
.context-menu{position:fixed;z-index:500;min-width:176px;background:#fff;border:1px solid #aeb9c7;border-radius:7px;box-shadow:0 15px 36px rgba(15,23,42,.23);padding:5px}.context-menu button{width:100%;text-align:left;border:0;background:transparent;border-radius:4px;padding:7px 9px;font-size:11px;color:#1f2937}.context-menu button:hover{background:#eaf1f8}.context-menu hr{border:0;border-top:1px solid #e2e8f0;margin:4px}.danger-text{color:#b91c1c!important}
.tree-row.entity-row{padding-left:34px;cursor:pointer}.tree-row.entity-row.selected{background:#dbeafe;color:#1d4ed8}.tree-row.entity-row.hidden-model{opacity:.48;text-decoration:line-through}.tree-row.entity-row .entity-icon{display:inline-block;width:18px}.tree-search{padding:6px 8px;border-bottom:1px solid #dbe3ec}.tree-search input{width:100%;padding:6px 7px;border:1px solid #c6d0dc;border-radius:5px;font-size:11px}
.type-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 6px;border-radius:999px;background:#e0ecff;color:#1d4ed8;font-size:9px;font-weight:700}.prop-toolbar{display:flex;gap:5px;margin:6px 0 10px}.prop-toolbar button{flex:1;border:1px solid #c6d0dc;background:#fff;border-radius:5px;padding:6px 5px;font-size:10px}.prop-toolbar button:hover{background:#eef5ff}.metric-mini{background:#f8fafc;border:1px solid #dbe3ec;border-radius:6px;padding:8px;line-height:1.55;font-size:10px}
.ribbon-section-label{writing-mode:vertical-rl;transform:rotate(180deg);font-size:8px;color:#94a3b8;text-transform:uppercase;letter-spacing:.08em;display:flex;align-items:center;justify-content:center;padding:0 3px}
.hidden-model-entity{display:none!important}.viewport-loading{position:absolute;inset:30px 0 0;background:rgba(241,245,249,.88);z-index:8;display:grid;place-items:center;font-size:12px;color:#475569}
.quickbar{display:flex;align-items:center;gap:4px}.quickbar button{border:1px solid #cbd5e1;background:#fff;border-radius:4px;padding:4px 7px;font-size:10px}.quickbar button.active{background:#dbeafe;color:#1d4ed8;border-color:#93c5fd}
.report-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px}.report-grid>div{border:1px solid #dbe3ec;border-radius:7px;padding:10px;background:#f8fafc}.report-grid b{display:block;font-size:10px;color:#64748b}.report-grid strong{display:block;font-size:18px;margin-top:3px}
@media(max-width:1250px){.tabs{max-width:760px}.tab{padding:0 9px}.topbar{gap:10px}.brand{min-width:210px}.top-actions #updateBtn{display:none}}
/* Nexsoon BIM 2.0 Production */
:root{--accent:#8b5cf6;--blue:#6d28d9;--line:#ded9ef;--bg:#f2f0f8;--panel:#fbfaff;--ribbon:#fff;--shadow:0 8px 28px rgba(70,40,110,.10)}
html,body,#app{font-family:Inter,"SF Pro Display","Segoe UI",Arial,sans-serif;background:linear-gradient(135deg,#f7f5fc,#eef1f8)}
.topbar{height:64px;background:linear-gradient(110deg,#171125,#261a43 55%,#35215f);border:0;color:#fff;box-shadow:0 4px 18px rgba(31,18,56,.28)}.brand{min-width:285px}.brandMark{width:38px;height:38px;border-radius:11px;background:linear-gradient(145deg,#a78bfa,#6d28d9);color:#fff;box-shadow:0 7px 18px rgba(124,58,237,.38)}.brand small{color:#c4b5fd}.tab{color:#ddd6fe;border-radius:7px 7px 0 0}.tab:hover{background:rgba(255,255,255,.08);color:#fff}.tab.active{background:#fff;color:#4c1d95;border-bottom-color:#8b5cf6;font-weight:750}.top-actions button{border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#fff}.top-actions .primary,.primary{background:linear-gradient(135deg,#7c3aed,#5b21b6)!important;border:0!important}.badge{background:rgba(255,255,255,.11);color:#ede9fe}.badge-ok{background:#14532d;color:#dcfce7}.badge-warn{background:#78350f;color:#fef3c7}.badge-bad{background:#7f1d1d;color:#fee2e2}
.ribbon{height:100px;border:0;border-bottom:1px solid #e9e5f4;box-shadow:0 5px 16px rgba(38,24,64,.08)}.tool{border-radius:9px;color:#34284b;transition:.14s}.tool:hover,.tool.active{background:linear-gradient(#f4efff,#ebe3ff);border-color:#c4b5fd;color:#5b21b6;transform:translateY(-1px)}.tool span{color:#6d28d9}.workspace{height:calc(100% - 164px);gap:7px;padding:7px}.panel,.card{border-color:#ded9ea;border-radius:10px;box-shadow:var(--shadow)}.panel-title{background:linear-gradient(#fff,#f5f2fb);color:#312044}.viewport{border-radius:10px}.viewport-title{background:linear-gradient(90deg,#fbfaff,#f2edfb);color:#4c1d95}.viewtab.active{color:#5b21b6;border-top:2px solid #8b5cf6}.commandbar{background:linear-gradient(90deg,#171125,#25163c);border-radius:7px;margin-top:5px}.status-toggle.active{background:#ede9fe;border-color:#c4b5fd;color:#5b21b6}.tree-row:hover{background:#f2edff}.tree-row.active,.tree-row.entity-row.selected{background:#e9ddff;color:#5b21b6}.type-chip{background:#ede9fe;color:#6d28d9}.family:hover{border-color:#a78bfa;background:#faf7ff}.modal{border-color:#cfc6df;border-radius:14px;box-shadow:0 28px 80px rgba(31,18,56,.3)}.modal-header{background:linear-gradient(90deg,#f8f5ff,#eee8ff)}.toast{background:linear-gradient(135deg,#2e1b4c,#171125)}
.nx-launcher{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:999;width:min(920px,92vw);max-height:84vh;overflow:auto;background:rgba(250,248,255,.98);border:1px solid #d8cfeb;border-radius:18px;box-shadow:0 35px 100px rgba(36,19,63,.35);padding:18px}.nx-launcher.hidden{display:none}.nx-launcher-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}.nx-logo{width:42px;height:42px;border-radius:12px;background:linear-gradient(145deg,#a78bfa,#6d28d9);display:grid;place-items:center;color:#fff;font-weight:900;font-size:20px}.nx-launcher input{width:100%;padding:13px 15px;border:1px solid #d8cfeb;border-radius:10px;font-size:14px}.nx-command-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;margin-top:12px}.nx-command{border:1px solid #e3ddee;background:#fff;border-radius:10px;padding:11px;text-align:left}.nx-command:hover{border-color:#a78bfa;background:#faf7ff}.nx-command b{display:block;color:#3b235d}.nx-command small{color:#766a84}.nx-mobile-tools{display:none}
@media(max-width:700px){.topbar{height:56px}.ribbon{top:56px;height:76px}.workspace{height:calc(100% - 132px)}.nx-mobile-tools{display:flex;position:fixed;left:50%;bottom:8px;transform:translateX(-50%);z-index:30;background:rgba(31,18,56,.92);backdrop-filter:blur(12px);padding:5px;border-radius:14px;gap:4px}.nx-mobile-tools button{border:0;background:transparent;color:#ddd6fe;padding:8px 10px;border-radius:9px;font-size:10px}.commandbar{margin-bottom:48px}.nx-launcher{width:94vw;padding:12px}.nx-command-list{grid-template-columns:1fr 1fr}}
/* ================================================================
   Nexsoon BIM 3.2 — Production UI system
   ================================================================ */
:root{
  --nx-ink:#211631;--nx-ink2:#35234e;--nx-purple:#6d28d9;--nx-purple2:#8b5cf6;--nx-purple3:#a78bfa;--nx-cyan:#22d3ee;
  --nx-soft:#f7f5fc;--nx-soft2:#efeaf8;--nx-surface:#ffffff;--nx-line:#e1daed;--nx-line2:#d0c6e0;--nx-muted:#756b82;
  --nx-success:#15803d;--nx-warning:#a16207;--nx-danger:#b91c1c;--left-w:270px;--right-w:330px;
}
.nexsoon-production{background:linear-gradient(135deg,#faf9fd,#f0eef7);color:var(--nx-ink)}
.nexsoon-production .topbar{height:66px;gap:12px;padding:0 12px;background:linear-gradient(108deg,#171125 0%,#26173f 52%,#35205d 100%);box-shadow:0 8px 28px rgba(31,17,50,.22)}
.brand{min-width:250px;flex:0 0 auto}.brandLogoMark{width:42px;height:42px;display:block;filter:drop-shadow(0 7px 12px rgba(45,20,80,.35))}.brand strong{font-size:15px;letter-spacing:.01em}.brand small{font-size:10px;color:#d8ccef;white-space:nowrap}
.tabs{min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;flex:1}.tabs::-webkit-scrollbar{display:none}.tab{flex:0 0 auto;height:66px;padding:0 11px;color:#ddd6fe;border-radius:0;border-bottom:3px solid transparent;font-size:13px}.tab.active{background:#fff;color:#4c1d95;border-bottom-color:#8b5cf6}.tab:hover{background:rgba(255,255,255,.08)}
.top-actions{flex:0 0 auto;gap:5px;max-width:52vw;overflow-x:auto;scrollbar-width:none}.top-actions::-webkit-scrollbar{display:none}.top-actions button{height:32px;padding:0 10px;border-radius:9px;font-size:11px;white-space:nowrap}.top-actions .badge{height:24px;display:inline-flex;align-items:center;padding:0 7px;font-size:9px}
.ribbon{height:104px;padding:7px 9px;gap:8px;align-items:stretch;scrollbar-width:thin;scrollbar-color:#c4b5fd transparent}.toolgroup{gap:3px;align-items:stretch}.tool{width:72px;min-width:72px;height:84px;padding:7px 5px 5px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;border-radius:10px;font-size:10px;line-height:1.08;text-align:center;color:#382a4b;white-space:normal}.tool .tool-icon{display:grid;place-items:center;width:34px;height:34px;min-height:34px;margin:0;color:#6d28d9}.nx-icon{width:25px;height:25px;display:block}.nx-icon-text{font-weight:850;font-size:11px;line-height:1;letter-spacing:-.02em;border:1px solid currentColor;border-radius:6px;width:32px;height:27px!important;min-height:27px!important;padding:0 3px}.tool:hover,.tool.active{background:linear-gradient(180deg,#faf7ff,#eee8ff);border-color:#c4b5fd;box-shadow:inset 0 0 0 1px rgba(124,58,237,.03);transform:none}.tool:focus-visible{outline:2px solid #22d3ee;outline-offset:1px}
.workspace{height:calc(100% - 170px);grid-template-columns:var(--left-w) minmax(420px,1fr) var(--right-w);gap:8px;padding:8px;position:relative}.panel,.card,.viewport{border-color:var(--nx-line);border-radius:12px;box-shadow:0 7px 26px rgba(51,30,80,.08)}.panel{position:relative}.panel-title{min-height:38px;padding:10px 11px;background:linear-gradient(180deg,#fff,#f6f3fb);color:#322146;border-bottom-color:var(--nx-line);font-size:12px}.tree{padding:7px}.tree-row{padding-top:6px;padding-bottom:6px;border-radius:7px}.tree-row.entity-row .entity-icon{width:20px;height:20px;display:inline-grid;place-items:center;margin-right:4px;color:#6d28d9;vertical-align:middle}.tree-row.entity-row .entity-icon .nx-icon{width:15px;height:15px}.tree-row.entity-row.selected{background:#eee7ff}.tree details>summary{padding:3px 1px;border-radius:6px}.tree details>summary:hover{background:#f5f1fc}.tree-search input,.catalog-search input{border-color:var(--nx-line2);border-radius:8px;background:#fff;min-height:33px}.project-stats{background:#fcfbff}.project-stats div{padding:4px 1px}
.center-area{min-width:420px}.view-tabs{height:38px;gap:3px}.viewtab{height:34px;padding:6px 11px;border-radius:8px 8px 0 0;background:#f3f0f8;border-color:var(--nx-line);font-size:10px}.viewtab.active{background:#fff;color:#5b21b6;border-top:2px solid #8b5cf6}.view-tabs select{height:31px;border-color:var(--nx-line2);border-radius:7px;min-width:110px}.view-grid{gap:8px}.viewport-title{height:32px;padding:8px 10px;font-size:10px}.viewport{min-width:0}.commandbar{height:38px;border-radius:9px;padding:5px 9px}.commandbar input{min-width:260px;border-radius:6px}.statusbar{height:29px;border-radius:0 0 9px 9px;padding:0 7px;gap:5px;background:#f5f2fa;border-color:var(--nx-line)}.status-toggle,.status-select{height:22px;border-color:#cfc6df;background:#fff;border-radius:5px}.status-toggle.active{background:#ede9fe;border-color:#bba8df;color:#5b21b6}
.properties{padding:11px}.empty-state{border-color:#d8cfeb;background:#fcfbff}.prop-section{color:#5b21b6;border-bottom-color:#e8e1f2}.prop-row{grid-template-columns:minmax(100px,42%) minmax(0,58%);gap:8px;margin:7px 0}.prop-row input,.prop-row select,.form-field input,.form-field select,.form-field textarea{min-height:32px;border-color:var(--nx-line2);border-radius:7px}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:36vh}.family{border-color:var(--nx-line);border-radius:9px}.family:hover{border-color:#a78bfa;box-shadow:0 5px 14px rgba(124,58,237,.08)}
.nx-resizer{position:absolute;top:0;bottom:0;width:8px;z-index:25;cursor:col-resize}.nx-resizer-left{right:-5px}.nx-resizer-right{left:-5px}.nx-resizer:after{content:"";position:absolute;top:42%;bottom:42%;left:3px;width:2px;border-radius:99px;background:#c4b5fd;opacity:.18}.nx-resizer:hover:after,.nx-resizing .nx-resizer:after{opacity:1}.nx-resizing{cursor:col-resize!important;user-select:none!important}
.modal{width:min(900px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:min(88vh,920px);border-radius:16px;overflow:hidden;border-color:#cfc5df}.modal-header{min-height:50px;background:linear-gradient(90deg,#faf8ff,#f0eafd);border-bottom:1px solid var(--nx-line)}.modal-body{overflow:auto;max-height:calc(88vh - 118px);padding:16px}.modal-footer{background:#fbfaff;border-top:1px solid var(--nx-line);padding:10px 14px}.modal-table,.data-table,.report-table{width:100%;min-width:720px;border-collapse:separate;border-spacing:0}.modal-body:has(.modal-table),.modal-body:has(.data-table){overflow:auto}.modal-table th,.modal-table td,.data-table th,.data-table td{padding:9px 10px;border-bottom:1px solid #eee8f4;vertical-align:middle}.modal-table thead th,.data-table thead th{position:sticky;top:0;background:#f7f4fc;color:#4c1d95;z-index:3;white-space:nowrap}.modal-table input,.modal-table select,.data-table input,.data-table select{min-width:88px;max-width:none}.report-scroll{max-height:62vh;overflow:auto;border-color:var(--nx-line)}
.demo-library-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}.demo-library-head p{margin:5px 0 0;color:var(--nx-muted);font-size:12px}.demo-library-head input{min-width:300px;max-width:420px;width:42%;padding:10px 12px;border:1px solid var(--nx-line2);border-radius:10px}.demo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:13px}.demo-card{border:1px solid var(--nx-line);border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 7px 18px rgba(54,28,87,.06)}.demo-card[hidden]{display:none}.demo-card img{width:100%;height:145px;object-fit:cover;display:block;background:#f7f5fc}.demo-card-body{padding:13px}.demo-kicker{font-size:9px;text-transform:uppercase;letter-spacing:.1em;font-weight:800;color:#7c3aed}.demo-card h3{margin:3px 0 6px;font-size:14px}.demo-card p{margin:0;color:#766a84;font-size:11px;min-height:50px}.demo-meta{display:flex;gap:9px;margin-top:9px;color:#6b6077;font-size:10px}.demo-tags{display:flex;flex-wrap:wrap;gap:4px;margin:9px 0}.demo-tags span{font-size:9px;padding:3px 6px;border-radius:999px;background:#ede9fe;color:#5b21b6}.demo-load{width:100%;border:0;border-radius:8px;background:linear-gradient(135deg,#7c3aed,#5b21b6);color:#fff;padding:9px;font-weight:700;font-size:11px}
.print-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}.print-summary>div{border:1px solid var(--nx-line);border-radius:10px;padding:9px;background:#fbfaff}.print-summary b,.print-summary span{display:block}.print-summary b{color:#4c1d95}.print-summary span{font-size:10px;color:#766a84}.print-preview-wrap{height:min(58vh,600px);border:1px solid var(--nx-line);border-radius:12px;overflow:hidden;background:#d6d2dd;padding:10px}.print-preview{width:100%;height:100%;border:0;background:white}.nx-print-actions{margin-top:12px;justify-content:flex-end}.nx-print-actions button{padding:9px 12px;border-radius:8px;border:1px solid var(--nx-line2);background:#fff}.nx-print-actions .primary{color:#fff}
/* production cleanup: technical diagnostics remain available but visually secondary */
.tool[data-cmd="fullIntegrationTest"],.tool[data-cmd="kernelTest"],.tool[data-cmd="nativeRuntime"],.tool[data-cmd="proDiagnostics"]{opacity:.84}
@media(max-width:1500px){.brand{min-width:215px}.brand small{max-width:185px;overflow:hidden;text-overflow:ellipsis}.tab{padding:0 9px}.tool{width:68px;min-width:68px}.top-actions .badge:nth-of-type(1){display:none}}
@media(max-width:1180px){.workspace{grid-template-columns:220px minmax(420px,1fr) 285px}.top-actions .badge{display:none}.brand{min-width:195px}.tab{padding:0 8px;font-size:12px}.tool{width:64px;min-width:64px}.catalog-grid{grid-template-columns:1fr}.demo-library-head{align-items:stretch;flex-direction:column}.demo-library-head input{width:100%;max-width:none}}
@media(max-width:900px){html,body,#app{overflow:auto}.topbar{position:sticky;top:0;z-index:60;height:58px}.brandLogoMark{width:36px;height:36px}.brand{min-width:160px}.brand small{display:none}.tabs{order:3;position:absolute;left:0;right:0;top:58px;height:44px;background:#211631;padding:0 6px}.tab{height:44px;font-size:11px}.top-actions{margin-left:auto}.top-actions #updateBtn,.top-actions #commandPaletteBtn{display:none}.ribbon{position:sticky;top:102px;z-index:55;height:88px;padding:5px}.tool{width:61px;min-width:61px;height:76px;font-size:9px}.tool .tool-icon{height:30px;min-height:30px}.workspace{height:auto;min-height:calc(100vh - 190px);display:grid;grid-template-columns:minmax(0,1fr);padding:6px}.left-panel,.right-panel{position:fixed;top:104px;bottom:8px;z-index:70;width:min(360px,88vw);box-shadow:0 18px 50px rgba(33,22,49,.28);transition:transform .2s}.left-panel{left:6px;transform:translateX(calc(-100% - 18px))}.right-panel{right:6px;transform:translateX(calc(100% + 18px))}.left-panel.mobile-open,.right-panel.mobile-open{transform:none}.center-area{min-width:0;width:100%;grid-column:1}.view-grid.split{grid-template-columns:1fr}.view-grid.split #threeViewport{min-height:42vh}.view-grid.split #planViewport{min-height:42vh}.nx-resizer{display:none}.commandbar input{width:36vw;min-width:120px}.statusbar{overflow-x:auto}.catalog-grid{max-height:none}.print-summary{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.brand div{display:none}.brand{min-width:44px}.top-actions button{padding:0 8px;font-size:10px}.top-actions #demoLibraryBtn{display:none}.ribbon{height:82px}.tool{width:58px;min-width:58px;height:71px}.tool .tool-icon{width:28px;height:28px;min-height:28px}.view-tabs{overflow-x:auto}.view-tabs select{min-width:100px}.commandbar{font-size:10px}.commandbar input{width:150px}.demo-grid{grid-template-columns:1fr}.print-summary{grid-template-columns:1fr 1fr}.modal{max-width:calc(100vw - 12px);width:calc(100vw - 12px)!important}.modal-body{padding:11px}.prop-row{grid-template-columns:1fr}.prop-row label{font-weight:700;color:#5b21b6}}
.nx-logo{overflow:hidden;background:transparent!important}.nx-logo img{width:42px;height:42px;display:block}.tree summary>.entity-icon{display:inline-grid;place-items:center;width:18px;height:18px;vertical-align:middle;color:#6d28d9}.tree summary>.entity-icon .nx-icon{width:14px;height:14px}

/* Nexsoon BIM 3.2 final icon/layout normalization */
.tool>span.tool-icon{display:grid!important;place-items:center!important;width:34px!important;height:34px!important;min-height:34px!important;margin:0!important;font-size:initial!important;line-height:1!important;color:#6d28d9!important;flex:0 0 34px}
.tool>span.tool-icon .nx-icon{width:25px!important;height:25px!important;min-height:0!important;font-size:initial!important;line-height:1!important;margin:0!important}
.tool>span.tool-icon .nx-icon-text{display:grid!important;place-items:center!important;width:32px!important;height:27px!important;min-height:27px!important;padding:0 3px!important;font-size:10px!important;font-weight:850!important;line-height:1!important;letter-spacing:-.03em!important}
.toolgroup{align-items:flex-start!important}.tool{overflow:hidden}.tool br{display:none}.tool:not(:hover){box-shadow:none}
.panel,.viewport,.modal,.family,.demo-card{backdrop-filter:none}
.data-table-wrap,.table-scroll,.schedule-table-wrap{overflow:auto;max-width:100%;scrollbar-gutter:stable}
@media(min-width:901px){.left-panel,.right-panel{min-width:210px}.workspace{min-width:960px}.ribbon{scroll-snap-type:x proximity}.toolgroup{scroll-snap-align:start}}
@media(max-width:900px){.tool>span.tool-icon{width:30px!important;height:30px!important;min-height:30px!important;flex-basis:30px}.tool>span.tool-icon .nx-icon{width:22px!important;height:22px!important}.right-panel .catalog{max-height:45vh;overflow:auto}.modal-table,.data-table,.report-table{min-width:640px}.mobile-workspace-actions{display:flex}}
@media(pointer:coarse){button,.tool,.viewtab,.status-toggle{touch-action:manipulation}.tool{min-height:72px}.tree-row{min-height:32px}.prop-row input,.prop-row select{min-height:38px}}
.nx-print-note{margin:10px 2px 0;color:#766a84;font-size:11px}.top-actions{gap:6px}.top-actions button{min-height:30px;border-radius:8px}.badge{white-space:nowrap}.panel-title{font-weight:750}.modal-actions{display:flex;gap:8px;flex-wrap:wrap}.modal-actions button{min-height:34px}.report-grid,.metric-cards{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.report-grid>div,.metric-card{min-width:0}.data-table td,.data-table th{max-width:440px;overflow-wrap:anywhere}.properties{overflow:auto}.catalog{min-height:0}.ribbon::-webkit-scrollbar{height:7px}.ribbon::-webkit-scrollbar-thumb{background:#c4b5fd;border-radius:999px}.ribbon::-webkit-scrollbar-track{background:transparent}

/* === Nexsoon BIM 4.0 production workspace stabilization === */
html,body,#app{width:100%;height:100%;max-height:100dvh;overflow:hidden}
.nexsoon-production .topbar{display:flex;min-width:0}.nexsoon-production .brand{flex:0 0 auto}.nexsoon-production .tabs{flex:1 1 auto;min-width:220px;max-width:none;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity}.nexsoon-production .tab{white-space:nowrap;scroll-snap-align:start}.nexsoon-production .top-actions{flex:0 0 auto;white-space:nowrap;min-width:0}.top-icon-btn{white-space:nowrap}.top-icon-btn.cloud-active{background:#14532d!important;border-color:#166534!important;color:#dcfce7!important}
.ribbon{overscroll-behavior-x:contain}.toolgroup{min-width:max-content}.tool{flex:0 0 auto}.tool .tool-icon{flex:0 0 auto}
.workspace{overflow:hidden;min-height:0}.left-panel,.right-panel,.center-area,.view-grid,.viewport{min-height:0}.center-area{overflow:hidden}.view-tabs{flex:0 0 38px;min-width:0;overflow-x:auto;overflow-y:hidden;align-items:flex-end;scrollbar-width:thin}.viewtab,.view-tabs select{flex:0 0 auto;white-space:nowrap}.view-spacer{min-width:12px}.view-grid{overflow:hidden}.view-grid.plan,.view-grid.three,.view-grid.section,.view-grid.elevation,.view-grid.sheet{min-height:0}.viewport{height:100%;max-height:100%;overflow:hidden}.doc-canvas{height:calc(100% - 32px);max-height:calc(100% - 32px);overflow:auto;overscroll-behavior:contain}.doc-canvas svg{max-height:none}.commandbar,.statusbar{flex:0 0 auto}.report-scroll,.data-table-wrap,.table-scroll,.schedule-table-wrap{width:100%;max-width:100%;overflow:auto;overscroll-behavior:contain}.data-table,.modal-table,.report-table{min-width:780px;width:max-content;max-width:none}.data-table th,.data-table td,.modal-table th,.modal-table td{white-space:nowrap}.data-table td.wrap,.modal-table td.wrap{white-space:normal;min-width:220px}
/* professional CAD plan graphics */
#cadCanvas{shape-rendering:geometricPrecision;text-rendering:geometricPrecision;background-color:#fff;background-image:linear-gradient(rgba(124,58,237,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(124,58,237,.035) 1px,transparent 1px);background-size:20px 20px}.cad-wall{vector-effect:non-scaling-stroke;stroke-linejoin:miter}.cad-wall-edge{stroke:#1f1827;stroke-width:1.2;vector-effect:non-scaling-stroke;pointer-events:none}.cad-wall-technical{fill:#f6f3ed}.cad-wall-coordination{fill:#e8edf3}.cad-wall-presentation{fill:#ece3d8}.cad-opening-cut{stroke:#fff;stroke-linecap:butt;vector-effect:none}.cad-door-leaf,.cad-window-symbol{stroke-width:1.7;vector-effect:non-scaling-stroke;fill:none}.cad-room{fill:rgba(167,139,250,.08)}.cad-bim-shape{fill:rgba(100,116,139,.10)}.cad-foundation{fill:rgba(120,113,108,.15)}.cad-ceiling{fill:rgba(129,140,248,.07);stroke-dasharray:7 4}.cad-terrain{fill:rgba(101,128,74,.10)}.cad-pipe,.cad-duct{opacity:.88;vector-effect:non-scaling-stroke}.cad-gridline{opacity:.68;vector-effect:non-scaling-stroke}.cad-dimension,.cad-dim-ext,.cad-section{vector-effect:non-scaling-stroke}.selection-box{stroke:#7c3aed!important;stroke-width:1.5!important;fill:none;stroke-dasharray:5 3;vector-effect:non-scaling-stroke}.cad-grip{fill:#fff;stroke:#6d28d9;stroke-width:1.5;vector-effect:non-scaling-stroke}
.account-center{text-align:center;padding:12px}.account-avatar{width:64px;height:64px;border-radius:20px;margin:0 auto 10px;display:grid;place-items:center;color:#fff;font-weight:900;font-size:26px;background:linear-gradient(135deg,#8b5cf6,#5b21b6);box-shadow:0 10px 24px rgba(124,58,237,.22)}.account-center h3{margin:4px 0}.account-center p{color:#766a84}.account-center .modal-actions{justify-content:center}.help-card{padding:12px 14px;border:1px solid #e4dcf0;border-radius:10px;background:#fbf9ff;color:#5f536b;line-height:1.5}
/* avoid cropped tabs/actions at common laptop widths */
@media(max-width:1500px){.nexsoon-production .top-actions .badge{display:none}.nexsoon-production .brand{min-width:220px}.nexsoon-production .brand small{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nexsoon-production .tab{padding:0 9px}.nexsoon-production .top-actions #demoLibraryBtn,.nexsoon-production .top-actions #guideBtn{display:none}}
@media(max-width:1260px){.nexsoon-production .brand{min-width:175px}.nexsoon-production .brand small{display:none}.nexsoon-production .top-actions #commandPaletteBtn{display:none}.nexsoon-production .tab{padding:0 8px;font-size:11px}.workspace{grid-template-columns:205px minmax(360px,1fr) 260px}.tool{width:62px;min-width:62px}}
@media(max-width:1024px){html,body,#app{height:100dvh;overflow:hidden}.nexsoon-production .topbar{height:58px;position:relative}.nexsoon-production .brand{min-width:150px}.nexsoon-production .tabs{position:absolute;left:0;right:0;top:58px;height:42px;background:#211631;z-index:62;padding:0 6px}.nexsoon-production .tab{height:42px}.nexsoon-production .top-actions{margin-left:auto}.nexsoon-production .top-actions #printQuickBtn{display:inline-flex}.nexsoon-production .top-actions #accountBtn{max-width:92px;overflow:hidden;text-overflow:ellipsis}.ribbon{position:absolute;left:0;right:0;top:100px;height:84px;z-index:55;padding:4px 6px}.tool{width:58px;min-width:58px;height:72px;font-size:8.5px}.tool>span.tool-icon{width:28px!important;height:28px!important;min-height:28px!important}.workspace{position:absolute;left:0;right:0;top:184px;bottom:0;height:auto!important;min-height:0!important;grid-template-columns:1fr;padding:5px}.center-area{min-width:0}.left-panel,.right-panel{position:fixed;top:184px;bottom:6px;z-index:80;width:min(360px,90vw);height:auto}.left-panel{left:5px;transform:translateX(calc(-100% - 20px))}.right-panel{right:5px;transform:translateX(calc(100% + 20px))}.left-panel.mobile-open,.right-panel.mobile-open{transform:none}.view-grid.split{grid-template-columns:1fr 1fr}.view-grid.split #planViewport,.view-grid.split #threeViewport{display:flex;min-height:0}.view-tabs{height:36px;flex-basis:36px}.commandbar input{min-width:130px;width:30vw}.nx-resizer{display:none}.modal{max-height:92dvh}.modal-body{max-height:calc(92dvh - 116px)}}
@media(max-width:760px){.nexsoon-production .brand div{display:none}.nexsoon-production .brand{min-width:45px}.nexsoon-production .top-actions #accountBtn,.nexsoon-production .top-actions #printQuickBtn{font-size:0;width:38px;padding:0}.nexsoon-production .top-actions #accountBtn:before{content:'☁';font-size:16px}.nexsoon-production .top-actions #printQuickBtn:before{content:'⎙';font-size:17px}.view-grid.split{grid-template-columns:1fr}.view-grid.split #planViewport,.view-grid.split #threeViewport{min-height:0}.view-grid.split #threeViewport{display:none}.view-tabs select{max-width:120px}.commandbar .hint{display:none}.statusbar{overflow-x:auto}.data-table,.modal-table,.report-table{min-width:640px}.print-preview-wrap{height:48dvh}}
@media(pointer:coarse){.tab,.viewtab,.tool,.top-icon-btn{touch-action:manipulation}.viewtab{min-height:36px}.tool{min-height:70px}.panel-title{min-height:42px}.tree-row{min-height:36px}.prop-row input,.prop-row select,.form-field input,.form-field select{min-height:42px}}

/* === Nexsoon BIM 5.0 Deep BIM workbenches === */
.metric-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:8px 0 14px}.metric-card{display:flex;flex-direction:column;gap:3px;padding:13px 14px;border:1px solid #e0d6ee;border-radius:12px;background:linear-gradient(180deg,#fff,#fbf8ff);min-height:76px}.metric-card b{font-size:20px;color:#5b21b6;line-height:1.1}.metric-card span{font-size:11px;color:#766a84}.modal-actions.vertical{flex-direction:column;align-items:stretch}.modal-actions.vertical button{width:100%}.family-studio{display:grid;grid-template-columns:minmax(260px,330px) minmax(360px,1fr);gap:14px;min-height:430px}.family-studio>aside,.family-studio>main{border:1px solid #e0d6ee;border-radius:12px;background:#fbfaff;min-width:0}.family-studio>aside{padding:12px;overflow:auto}.family-studio>main{display:grid;place-items:center;padding:10px;overflow:auto;background:#f7f4fc}.family-studio select{width:100%;margin:6px 0 10px;padding:9px;border:1px solid #d9cee9;border-radius:9px;background:#fff}.family-studio svg{width:100%;height:auto;max-height:540px}.mini-row{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid #ece5f5;font-size:11px}.mini-row span{font-weight:700;color:#33283e}.mini-row b,.mini-row small{font-weight:500;color:#766a84;text-align:right;overflow-wrap:anywhere}.status-pill{display:inline-flex;padding:3px 7px;border-radius:999px;font-size:9px;font-weight:800;letter-spacing:.03em}.status-pill.ok{background:#dcfce7;color:#166534}.status-pill.bad{background:#fee2e2;color:#991b1b}.status-pill.warn{background:#fef3c7;color:#92400e}.report-scroll{max-height:min(58vh,620px);overflow:auto;border:1px solid #e2d9ef;border-radius:10px;background:#fff}.report-scroll>.data-table{margin:0}.help-card b{color:#5b21b6}.toolgroup[data-group="professional"] .tool{min-width:74px}.toolgroup[data-group="professional"] .tool-icon{color:#7c3aed!important}.workspace.precise-active .viewport-title{box-shadow:inset 3px 0 0 #7c3aed}.precision-badge{display:inline-flex;align-items:center;gap:5px;background:#ede9fe;color:#5b21b6;border-radius:999px;padding:3px 8px;font-size:9px;font-weight:800}.data-table{border-collapse:separate;border-spacing:0}.data-table thead th{position:sticky;top:0;z-index:2;background:#f4effb;color:#34233f}.data-table tr:hover td{background:#fcfaff}.data-table td,.data-table th{border-bottom:1px solid #ece6f2;padding:8px 10px}.data-table th:first-child{border-top-left-radius:8px}.data-table th:last-child{border-top-right-radius:8px}
@media(max-width:900px){.family-studio{grid-template-columns:1fr;min-height:0}.family-studio>aside{max-height:42vh}.metric-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.report-scroll{max-height:48vh}.toolgroup[data-group="professional"] .tool{min-width:64px}}
@media(max-width:520px){.metric-cards{grid-template-columns:1fr 1fr}.metric-card{padding:10px}.family-studio>main{padding:4px}.modal-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.modal-actions button{min-width:0;white-space:normal}.report-scroll .data-table{min-width:720px}}
/* Nexsoon BIM 5.1 – catalogo professionale e viewport authoring */
.catalog-search-pro{display:grid;grid-template-columns:minmax(0,1fr) 116px;gap:6px;align-items:center}.catalog-search-pro select{min-width:0;width:100%;padding:7px 5px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--text);font-size:10px}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}.family{min-width:0;transition:border-color .15s,box-shadow .15s,transform .15s}.family:hover{box-shadow:0 5px 14px rgba(79,43,140,.09);transform:translateY(-1px)}.object-preview{height:54px;display:grid;place-items:center;background:linear-gradient(145deg,#faf9ff,#f1edff);border:1px solid #e5defa}.catalog-svg{width:64px;height:43px;display:block}.catalog-object small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.viewport-quickbar{position:absolute;left:10px;top:39px;z-index:15;display:flex;gap:4px;padding:4px;background:rgba(255,255,255,.9);border:1px solid rgba(119,94,166,.2);box-shadow:0 3px 14px rgba(38,24,68,.08);border-radius:8px;backdrop-filter:blur(8px)}.viewport-quickbar button{height:25px;border:1px solid #ddd4f4;background:#fff;color:#4c287b;border-radius:5px;padding:0 7px;font-size:9px;font-weight:650}.viewport-quickbar button:hover{background:#f4efff;border-color:#a78bfa}.right-panel{min-width:250px}.left-panel{min-width:220px}@media (min-width:1500px){.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.right-panel{min-width:285px}}@media (max-width:1180px){.catalog-search-pro{grid-template-columns:1fr}.catalog-grid{grid-template-columns:1fr}.right-panel{min-width:210px}.viewport-quickbar{max-width:calc(100% - 20px);overflow-x:auto}}@media (pointer:coarse),(max-width:900px){.viewport-quickbar{left:6px;top:36px}.viewport-quickbar button{min-width:52px;height:30px;font-size:10px}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Explicit fills: SVG defaults to black when no fill is specified. */
.cad-furniture{fill:#fbfcfe;fill-opacity:.94;stroke-linejoin:round}
#startupError{position:fixed;z-index:10000;top:160px;left:50%;transform:translateX(-50%);max-width:640px;width:90vw;padding:22px;background:#fff7f4;color:#721d11;border:1px solid #d97760;border-radius:10px;box-shadow:0 12px 60px #0004;font:14px/1.5 system-ui}
#startupError p{overflow-wrap:anywhere}#startupError a{color:#852b15}#startupError button{margin-left:20px;padding:8px 16px}

@media(min-width:1025px){
  .nexsoon-production .topbar{display:grid;grid-template-columns:250px minmax(0,1fr);grid-template-rows:54px 38px;height:92px;gap:0 12px;padding:0 12px;overflow:visible}
  .nexsoon-production .brand{grid-row:1;grid-column:1;min-width:0}.brand small{font-size:10px}
  .nexsoon-production .tabs{position:static;grid-column:1/-1;grid-row:2;display:flex;height:38px;min-width:0;overflow-x:auto;width:100%;max-width:none;scrollbar-width:thin;align-self:end}
  .tabs .tab{height:38px;flex:1 0 auto;min-width:64px;padding:0 12px;font-size:12px}
  .nexsoon-production .top-actions{grid-row:1;grid-column:2;max-width:100%;min-width:0;justify-content:flex-end;overflow-x:auto;gap:5px}
  .ribbon{position:relative;top:auto;height:92px}.workspace{height:calc(100% - 184px);min-width:0;grid-template-columns:var(--left-w) minmax(0,1fr) var(--right-w)}
  .center-area{min-width:0}.viewtabs{flex-wrap:wrap;gap:3px}.viewtab{font-size:11px}
}
@media(min-width:901px) and (max-width:1350px){.top-actions #occBadge,.top-actions #ifcBadge{display:none}.topbar{grid-template-columns:205px minmax(0,1fr)}.brand{min-width:0}.brand small{display:none}}
.viewport-quickbar{max-width:calc(100% - 20px);flex-wrap:wrap}
#assetStatus{position:absolute;bottom:12px;left:12px;right:64px;z-index:12;font:11px/1.4 system-ui;background:#ffffffed;color:#334155;padding:7px 10px;border-radius:6px;pointer-events:none}
#assetStatus:empty{display:none}#assetStatus.asset-error{color:#8a251a;background:#fff0ec}
#geometryStatus{position:absolute;top:64px;left:12px;right:64px;z-index:12;padding:7px 11px;border:1px solid #ccd9dc;border-radius:5px;background:#fffffff2;color:#29464e;font:11px/1.45 system-ui;pointer-events:none;overflow-wrap:anywhere}
#geometryStatus[hidden]{display:none}#geometryStatus.geometry-error{background:#fff0ec;border-color:#e2afa5;color:#862e20}
.catalog-sources{padding:4px 8px}.catalog-sources select{width:100%;padding:8px;border:1px solid #d9dfe7;border-radius:6px;background:white;font-size:11px}
.catalog-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.catalog-title .panel-action{width:auto;margin:0;padding:4px 8px;font-size:10px}
.catalog-object .object-preview{height:95px;background:#f4f5f7;border:0}.object-preview img{width:100%;height:100%;object-fit:contain;border-radius:6px}
.family[hidden],.asset-card[hidden]{display:none!important}.asset-source,.asset-license{font-size:11px;color:#64748b;line-height:1.6}
.asset-browser-head{display:flex;justify-content:space-between;align-items:center;gap:24px}.asset-browser-head p{max-width:700px;color:#64748b;line-height:1.5;font-size:13px}
.asset-browser-filters{display:flex;gap:12px;margin:12px 0 20px}.asset-browser-filters input{flex:1}.asset-browser-filters input,.asset-browser-filters select{padding:10px;border:1px solid #cbd5e1;border-radius:7px}
.asset-browser-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}
.asset-card{border:1px solid #dbe1e9;border-radius:10px;overflow:hidden;background:white}.asset-card img{width:100%;height:190px;object-fit:contain;background:#f4f5f7;display:block}.asset-card-body{padding:14px}.asset-card h3{margin:5px 0 10px;font-size:15px}.asset-card p{margin:5px 0;font-size:12px;color:#526071}.asset-card small{display:block;color:#64748b;font-size:11px}.asset-card button{display:block;width:100%;margin-top:12px;padding:9px}.asset-card a{font-size:11px;color:#6345ad;display:block;margin-top:9px}.asset-user-preview{height:190px;display:grid;place-items:center;background:#eef2f7;color:#526071}

.catalog-grid .family{height:auto;min-height:145px;overflow:visible}.catalog-grid .family b{display:block;white-space:normal;line-height:1.4}.catalog-grid .family small{display:block}

.catalog-grid .catalog-object{display:flex;flex-direction:column;gap:4px;align-items:stretch;min-height:150px}
.catalog-grid .object-preview{height:90px;min-height:90px;max-height:90px;display:block;overflow:hidden;flex:0 0 90px}
.catalog-grid .object-preview img{height:90px;width:100%;display:block;object-fit:contain}
.catalog-grid .catalog-object b,.catalog-grid .catalog-object small{flex:0 0 auto;position:static;margin:0}
@media(min-width:1025px){.nexsoon-production .top-actions #demoLibraryBtn{display:inline-flex}}

/* === Nexsoon BIM 5.4 Structural & Seismic Workspace === */
.structural-shell{display:flex;flex-direction:column;gap:12px;min-height:500px}.structural-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:2px 2px 6px}.structural-head h3{margin:0;color:#33214a;font-size:18px}.structural-head p{margin:4px 0 0;color:#756a80;font-size:12px}.structural-tabs{display:flex;gap:4px;overflow-x:auto;padding:4px;border:1px solid #e1d8ef;border-radius:10px;background:#f8f5fc}.structural-tabs button{border:0;border-radius:7px;background:transparent;padding:9px 12px;white-space:nowrap;color:#5f526b;font-size:11px;font-weight:700}.structural-tabs button.active{background:#fff;color:#5b21b6;box-shadow:0 1px 5px #3b1b5d1c}.structural-pane{display:none;padding:12px;border:1px solid #e3daef;border-radius:12px;background:#fff}.structural-pane.active{display:block}.structural-output{min-height:210px;max-height:390px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#17131d;color:#e9e3f2;border-radius:9px;padding:13px;font:11px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace}.structural-pane .modal-actions{flex-wrap:wrap}.structural-pane .modal-actions button{min-height:34px}.structural-pane .help-card{margin-top:12px}.structural-shell .metric-card b{overflow-wrap:anywhere;font-size:17px}
@media(max-width:700px){.structural-head{flex-direction:column}.structural-tabs{scroll-snap-type:x proximity}.structural-tabs button{scroll-snap-align:start}.structural-pane{padding:8px}.structural-pane .modal-actions{grid-template-columns:1fr 1fr}.structural-output{max-height:44vh}}


/* Nexsoon BIM 5.6 Professional Workflow */
:root{--nx-ribbon-h:114px;--nx-context-h:34px;--nx-top-h:64px;--left-w:286px;--right-w:320px}
.topbar{gap:10px}.brand{min-width:252px}.brand small{max-width:245px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace-profile{height:32px;min-width:126px;border:1px solid rgba(255,255,255,.22);border-radius:7px;background:#fff;color:#3b2751;padding:0 28px 0 9px;font-size:11px;font-weight:700}
.tabs{border-left:1px solid rgba(255,255,255,.12);padding-left:4px}.tab{height:64px;padding:0 10px;font-size:12px}
.ribbon{height:var(--nx-ribbon-h);padding:6px 10px 3px;align-items:stretch;background:#fbfbfd;border-bottom:1px solid #d9dce5;box-shadow:0 2px 7px rgba(24,32,52,.08)}
.toolgroup{align-items:stretch!important;gap:6px;padding:0;min-width:max-content;border:0}
.ribbon-cluster{display:flex;flex-direction:column;min-width:max-content;border-right:1px solid #dfe3ea;padding:0 7px 0 0;margin-right:1px;position:relative}
.ribbon-cluster-tools{display:flex;align-items:flex-start;gap:2px;min-height:82px}.ribbon-cluster-label{height:18px;display:flex;align-items:center;justify-content:center;color:#687386;font-size:9px;text-transform:uppercase;letter-spacing:.045em;font-weight:750;border-top:1px solid #eef0f4;margin-top:auto}
.tool{width:68px;min-width:68px;height:78px;border-radius:6px;padding:5px 3px;font-size:9.5px;color:#283446}.tool .tool-icon{width:31px;height:31px;min-height:31px;color:#5b4b73}.tool:hover,.tool.active{background:#eef4fb;border-color:#bccce0;color:#173a66}.tool:hover .tool-icon,.tool.active .tool-icon{color:#2563a7}
.context-bar{height:var(--nx-context-h);display:flex;align-items:center;gap:5px;padding:3px 10px;background:#eef2f7;border-bottom:1px solid #d5dce6;color:#445063;font-size:11px}.context-label{font-weight:750;min-width:170px;max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:5px}.context-tool{height:26px;border:1px solid #c9d1dc;border-radius:5px;background:#fff;color:#344155;padding:0 9px;font-size:10px}.context-tool:hover{background:#e4edf7;border-color:#91a9c3}.context-tool[data-cmd="delete"]{margin-left:auto;color:#a21b2d}
.workspace{height:calc(100% - var(--nx-top-h) - var(--nx-ribbon-h) - var(--nx-context-h));grid-template-columns:var(--left-w) minmax(460px,1fr) var(--right-w);padding:6px;gap:6px;background:#e9edf3}
.panel,.card,.viewport{border-radius:5px;box-shadow:0 1px 4px rgba(25,35,50,.08);border-color:#ccd4df}.panel-title{min-height:36px;border-radius:4px 4px 0 0;background:#f5f7fa;color:#28384b;font-size:12px}.left-panel,.right-panel{background:#fff}
.dock-tabs{height:33px;display:flex;border-bottom:1px solid #d8dee7;background:#f2f4f7;padding:3px 4px 0;gap:2px}.dock-tab{flex:1;border:0;border-bottom:2px solid transparent;background:transparent;font-size:10px;font-weight:700;color:#59677a}.dock-tab.active{color:#1f4f85;border-bottom-color:#2e70b7;background:#fff}.dock-pane{display:none;min-height:0;flex:1;overflow:hidden;flex-direction:column}.dock-pane.active{display:flex}.dock-pane .tree{flex:1}.dock-pane .catalog-title{border-top:0}.dock-pane .catalog-grid{flex:1;overflow:auto;padding:6px;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.dock-pane .family{min-height:112px!important}.dock-pane .object-preview{height:62px!important;min-height:62px!important}.dock-pane .object-preview img{height:62px!important}
.right-panel .properties{flex:1;overflow:auto}.right-panel .catalog-title,.right-panel .catalog-sources,.right-panel .catalog-search,.right-panel #catalogGrid{display:none!important}
.view-tabs{background:#eef1f6;padding:3px 4px 0;border:1px solid #cfd6e0;border-bottom:0;border-radius:5px 5px 0 0}.viewtab{border-radius:4px 4px 0 0;background:#e3e8ef}.viewtab.active{border-top:2px solid #3378bd;color:#194f82}.viewport-title{background:#f4f6f8;color:#334357}.commandbar{margin-top:3px;border-radius:3px;background:#202a36}.statusbar{border-radius:0 0 3px 3px;background:#eef1f5}
@media(max-width:1250px){.brand{min-width:205px}.brand small{display:none}.workspace-profile{display:none}.tab{padding:0 8px;font-size:11px}.workspace{grid-template-columns:250px minmax(400px,1fr) 285px}.tool{width:64px;min-width:64px}}
@media(max-width:900px){.context-bar{overflow-x:auto}.context-label{min-width:120px}.workspace{height:calc(100% - 64px - 114px - 34px)}.left-panel.mobile-open,.right-panel.mobile-open{z-index:60}}

/* 5.7 Content Center */
.content-center{display:flex;flex-direction:column;gap:10px;min-height:560px}.cc-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.cc-head h3{margin:0 0 3px;font-size:18px;color:#38245c}.cc-head p{margin:0;color:#64748b}.cc-head-actions{display:flex;gap:7px}.cc-tabs{display:flex;gap:4px;border-bottom:1px solid #e5dfef;overflow:auto}.cc-tabs button{border:0;border-bottom:3px solid transparent;background:transparent;padding:9px 12px;font-weight:650;color:#5b6474;white-space:nowrap}.cc-tabs button.active{color:#6d28d9;border-bottom-color:#8b5cf6;background:#faf8ff}.cc-tabs b{display:inline-block;margin-left:4px;padding:1px 6px;border-radius:10px;background:#ede9fe;color:#6d28d9;font-size:10px}.cc-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) 210px 170px;gap:8px}.cc-toolbar input,.cc-toolbar select{min-height:36px;border:1px solid #d8d1e6;border-radius:8px;padding:6px 10px;background:#fff}.cc-notice{padding:8px 10px;border:1px solid #e7e2f0;border-radius:8px;background:#fbfaff;color:#5f5a6b}.asset-browser-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;align-content:start}.asset-card{border:1px solid #e1dbe9;border-radius:10px;background:#fff;overflow:hidden;display:flex;flex-direction:column;min-height:235px;box-shadow:0 2px 8px rgba(40,24,65,.05)}.asset-card:hover{border-color:#bba7df;box-shadow:0 6px 18px rgba(68,43,104,.10)}.asset-card>img,.asset-user-preview{width:100%;height:118px;object-fit:cover;background:linear-gradient(135deg,#f0ecf8,#e9eef5);display:grid;place-items:center;color:#6b6280;font-weight:700}.asset-card-body{padding:10px;display:flex;flex-direction:column;gap:5px;height:100%}.asset-card-body h3{font-size:13px;margin:0;color:#2e2440}.asset-card-body p{margin:0;font-size:10px;color:#64748b;min-height:28px}.asset-card-body small{font-size:9px;color:#7a7088}.asset-card-body button{margin-top:auto;border:1px solid #cfc6dd;border-radius:7px;padding:6px 8px;background:#fff}.asset-card-body button.primary{background:#6d28d9;border-color:#6d28d9;color:#fff}.asset-card-body button.primary:hover{background:#5b21b6}@media(max-width:900px){.cc-toolbar{grid-template-columns:1fr}.asset-browser-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}}
/* 5.8 Professional Open/Import Center */
.nx-open-center{display:grid;gap:14px}.nx-open-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.nx-open-big{min-height:78px;text-align:left;display:flex;flex-direction:column;gap:5px;align-items:flex-start;justify-content:center;padding:13px 15px}.nx-open-big b{font-size:14px}.nx-open-big span{font-size:11px;opacity:.78;line-height:1.35}.nx-url-open{display:flex;gap:8px;margin-top:9px}.nx-url-open input{flex:1;min-width:0}.nx-open-samples{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.nx-open-sample{display:grid;grid-template-columns:1fr auto;gap:3px 9px;text-align:left;padding:10px 12px;align-items:center}.nx-open-sample b{grid-column:1;font-size:12px}.nx-open-sample small{grid-column:1;color:var(--muted,#667085)}.nx-open-sample span{grid-column:2;grid-row:1/3;font-size:10px;border:1px solid #cfd5df;border-radius:12px;padding:3px 7px}.nx-file-drag{outline:3px dashed #6b4eff!important;outline-offset:-6px;filter:saturate(.92)}
@media(max-width:720px){.nx-open-actions,.nx-open-samples{grid-template-columns:1fr}.nx-url-open{flex-direction:column}}

/* === Nexsoon BIM 6.1 professional CAD viewport === */
#cadCanvas{preserve-aspect-ratio:xMidYMid meet;overflow:hidden;cursor:crosshair}
#planViewport{contain:layout paint;isolation:isolate}
.cad-quickbar{right:auto;max-width:calc(100% - 20px)}
.cad-scale-lock{display:inline-flex;align-items:center;height:25px;padding:0 8px;border-radius:5px;background:#ecfdf5;border:1px solid #a7f3d0;color:#166534;font-size:9px;font-weight:800;letter-spacing:.03em;white-space:nowrap}
.nx-resizing #cadCanvas{pointer-events:none}
@media (pointer:coarse),(max-width:900px){.cad-scale-lock{height:30px;font-size:9px}.cad-quickbar{max-width:calc(100% - 12px)}}

/* Nexsoon BIM 6.2 · Professional CAD Toolkit */
#planViewport{position:relative}
.cad-dynamic-input{position:absolute;z-index:22;pointer-events:none;min-width:190px;max-width:310px;padding:5px 8px;border:1px solid #7c3aed;background:rgba(19,24,38,.94);color:#fff;border-radius:4px;font:11px/1.25 Consolas,'SFMono-Regular',monospace;box-shadow:0 4px 16px rgba(15,23,42,.2);white-space:nowrap}
.cad-dynamic-input.hidden{display:none}
.tracking-line{stroke:#2d8cff;stroke-width:1;stroke-dasharray:7 5;opacity:.78;vector-effect:non-scaling-stroke;pointer-events:none}
.ucs-axis{stroke-width:1.6;vector-effect:non-scaling-stroke;pointer-events:none}
.ucs-x{stroke:#d14b43}.ucs-y{stroke:#2f8f54}.ucs-label{font:700 11px Arial;fill:#263445;paint-order:stroke;stroke:#fff;stroke-width:2px;pointer-events:none}
#ucsOverlay{pointer-events:none}
#ucsReadout{font-weight:700;min-width:72px}
#osnapSettingsBtn{min-width:24px;padding:0 4px}
.status-toggle[title*="F11"],.status-toggle[title*="F12"]{font-weight:650}


/* === Nexsoon BIM 6.4 — Professional Sheets & Print === */
.professional-sheet-preview{max-height:74vh;overflow:auto;background:#4b5057;padding:18px;border-radius:10px;display:flex;justify-content:center;align-items:flex-start}
.professional-sheet-preview>svg{display:block;max-width:100%;height:auto;background:#fff;box-shadow:0 8px 34px rgba(0,0,0,.35)}
.sheet-manager-table{min-width:1180px!important}.sheet-manager-table .sheet-actions{display:flex;gap:4px;min-width:460px}.sheet-manager-table .sheet-actions button{border:1px solid #d8cfdf;background:#fff;border-radius:6px;padding:5px 7px;font-size:9px;white-space:nowrap}.sheet-manager-table .sheet-actions button:hover{background:#f4efff;border-color:#a78bfa}.sheet-vp-editor input[type=number]{width:82px;border:1px solid #d8cfdf;border-radius:6px;padding:6px;background:#fff}.sheet-vp-editor input[type=checkbox]{width:18px;height:18px}.print-preview-wrap.professional{height:min(65vh,720px);background:#4b5057;padding:8px}.print-preview-wrap.professional .print-preview{background:#4b5057}.nx-print-note b{color:#4c1d95}
@media(max-width:900px){.sheet-manager-table{min-width:1040px!important}.professional-sheet-preview{padding:8px}.print-preview-wrap.professional{height:54dvh}}

.nx-production-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:12px 0}.nx-production-json{white-space:pre-wrap;overflow-wrap:anywhere;max-height:600px;overflow:auto}.nx-pro-table input{min-width:95px;max-width:220px}.nx-pro-table{overflow-x:auto}.nx-pro-nav{flex-wrap:wrap}

.nx-study-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.nx-study-fields>label{display:flex;flex-direction:column;gap:5px}.nx-study-array{grid-column:1/-1;min-width:0;border:1px solid #dbd5e6;border-radius:10px;padding:14px}.nx-study-array details{margin:8px 0;padding:10px;background:#f6f3fa;border-radius:8px}.nx-study-array summary{display:flex;justify-content:space-between;gap:10px}.nx-study-array input{max-width:100%;box-sizing:border-box}.nx-study-fields input{padding:8px;border:1px solid #bbb;border-radius:6px}@media(max-width:700px){.nx-study-fields{grid-template-columns:1fr}}

.nx-study-layout>section{max-height:calc(100vh - 360px);overflow:auto;padding:0 10px 12px 0}.nx-study-layout .nx-module-actions{position:static!important;top:auto!important;box-shadow:none!important}.nx-study-layout #nxStudyResult{padding-left:12px}.nx-study-layout .nx-pro-preview{max-height:320px}.nx-study-layout summary button{font-size:12px}@media(max-width:1200px){.nx-study-layout{grid-template-columns:1fr}.nx-study-layout>section{max-height:none;overflow:visible}.nx-study-layout #nxStudyResult{padding-left:0}}

/* One property table for CAD and BIM; columns include the gap. */
.properties .prop-row{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);width:100%;gap:8px}
.properties .prop-row>*{min-width:0}.properties .prop-row label{overflow-wrap:anywhere}
.properties .prop-toolbar{flex-wrap:wrap}.properties .prop-toolbar button{min-width:0}
.properties .prop-conversion{margin-top:14px;border-top:1px solid var(--line);padding-top:8px}
.properties .prop-conversion summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:12px;font-weight:600}
/* R20: CAD parameters live in the existing inspector, including narrow screens. */
#nxCadCommandForm{display:flex;flex-direction:column;gap:12px;min-width:0}
#nxCadCommandForm h3{margin:8px 0;font-size:17px}
#nxCadCommandForm label{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:12px}
#nxCadCommandForm input:not([type=checkbox]),#nxCadCommandForm select,#nxCadCommandForm textarea{width:100%;min-width:0;box-sizing:border-box}
#nxCadCommandForm input[type=checkbox]{align-self:flex-start}
#nxCadCommandForm>.prop-toolbar{position:sticky;bottom:0;background:#fff;padding:10px 0;border-top:1px solid #ccd4df;z-index:2;display:flex;gap:8px}
#nxCadFormError{color:#a82323;font-size:12px;margin:0}
.nx-cad-vertex-editor p{font-size:12px;line-height:1.5}
@media(max-width:1024px){.right-panel.cad-form-open{display:flex!important;transform:none!important;z-index:80}.right-panel.cad-form-open .properties{min-height:0;overflow:auto}}
/* R21 CAD labels stay inside their buttons and clear the cluster caption. */
.ribbon .tool[data-cad-r21] .cad-r21-tool-label{font-size:9.5px;font-weight:400;line-height:11px;max-height:22px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;width:100%}

/* Opening cut masks use wall dimensions in drawing units; symbol strokes remain screen-scaled. */
#cadCanvas .cad-opening-cut{vector-effect:none}
