:root{--bg:#111923;--panel:#18222f;--panel2:#1d2937;--line:#2b3949;--muted:#8799ae;--text:#dce5f0;--accent:#56d5bb;--accent-bg:#203d3e;--canvas:#111b27;--danger:#fa8b8b;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px;color:var(--text);color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:var(--bg);overflow:hidden}button,input,select{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{opacity:.32;cursor:default}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}button:hover{color:#fff}svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button svg{pointer-events:none}button span{pointer-events:none}button,input,select{border-radius:5px}input,select{color:var(--text);background:#111b27;border:1px solid var(--line);padding:8px 9px;outline:none;min-width:0}input:focus,select:focus{border-color:var(--accent)}input[type=number]{width:100%;font-variant-numeric:tabular-nums}input[type=color]{width:32px;height:30px;padding:3px;cursor:pointer}input[type=checkbox]{accent-color:var(--accent)}kbd{font:10px Segoe UI,Arial,sans-serif;color:var(--muted);border:1px solid #425065;border-radius:3px;padding:1px 4px;white-space:nowrap}#app{height:100vh;height:100dvh;display:flex;flex-direction:column;min-width:730px}.topbar{display:flex;align-items:center;gap:30px;height:68px;padding:0 22px;background:#16202c;border-bottom:1px solid var(--line);flex-shrink:0}.brand{display:flex;gap:10px;color:#edf3f8;text-decoration:none;font-size:20px;letter-spacing:1.3px;font-weight:750;align-items:center;width:202px;flex-shrink:0}.brand-mark{display:flex;align-items:center;justify-content:center;width:37px;height:39px;background:var(--accent);border-radius:8px;color:#17302f;box-shadow:0 0 25px #56d5bb12}.brand-mark svg{width:29px;height:29px;stroke-width:2.4}.brand-light{font-weight:350}.brand small{display:block;font-size:8px;color:#91a9b8;font-weight:500;letter-spacing:2.5px;margin-top:3px}.menus{display:flex;gap:3px}.menus>button{padding:9px 10px;font-size:12px;color:#a5b4c6}.menus>button:hover{background:var(--panel2);color:#fff}.menus kbd{border:0;margin-left:5px;font-size:11px}.top-actions{margin-left:auto;display:flex;gap:8px;align-items:center}.button{display:inline-flex;align-items:center;gap:7px;padding:9px 13px;background:#233141;border:1px solid #354456;white-space:nowrap;font-size:12px;font-weight:600;transition:background .15s}.button:hover{background:#304255}.button.primary{background:var(--accent);color:#12322e;border-color:var(--accent)}.button.primary:hover{background:#7ae4ce}.button.subtle{background:transparent;border-color:transparent;color:#97a9bf}.button.icon-only{padding:7px}.divider{width:1px;background:var(--line);height:24px;margin:0 3px}#save-state{font-size:10px;color:#94a6b7;margin-right:12px;white-space:nowrap;display:flex;gap:6px;align-items:center}#save-state i{width:5px;height:5px;background:#60bd9c;border-radius:100%}.document-bar{height:39px;display:flex;align-items:center;border-bottom:1px solid var(--line);background:#121c28;padding-left:14px;flex-shrink:0}.document-tab{display:flex;gap:9px;align-items:center;background:#202c3b;align-self:stretch;padding:0 12px;border-top:2px solid var(--accent);min-width:220px;font-size:11px}.document-tab svg{width:15px;color:#a8bdcf}.document-tab>button{margin-left:auto;color:#91a4b7}.dirty-dot{width:5px;height:5px;border-radius:50%;background:#6bb8a3;margin-left:5px}.add-document{font-size:20px;color:#7f93ab;padding:0 13px}.document-info{display:flex;gap:10px;align-items:center;margin-left:auto;margin-right:20px;font-size:10px;color:#8ea0b4}.tag{background:#263343;color:#a8bbc9;font-size:9px;padding:3px 5px;border-radius:3px}.small-dot{width:3px;height:3px;border-radius:50%;background:#64758a}.ribbon{background:#1a2533;flex-shrink:0;border-bottom:1px solid var(--line)}.ribbon-tabs{display:flex;gap:24px;padding:0 23px;height:33px;border-bottom:1px solid #293647}.ribbon-tabs button{font-size:11px;position:relative;padding:0 1px;color:#91a3b9;border-radius:0}.ribbon-tabs button.active{color:var(--accent)}.ribbon-tabs button.active:after{content:'';position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--accent)}.ribbon-tools{height:75px;display:flex;align-items:center;padding:6px 15px;gap:4px;overflow-x:auto}.ribbon-tool{min-width:63px;height:59px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#c3d0df;position:relative;padding:4px 11px;font-size:10px}.ribbon-tool:hover{background:#263647}.ribbon-tool.active{background:#24433f;color:#70e5cd;box-shadow:inset 0 0 0 1px #3a6f63}.ribbon-tool svg{width:23px;height:23px;stroke-width:1.35}.ribbon-tool small{position:absolute;right:4px;top:2px;font-size:8px;color:#6f859c}.ribbon-separator{height:43px;background:var(--line);width:1px;margin:0 10px;flex-shrink:0}.ribbon-group-label{display:flex;flex-direction:column;gap:5px;font-size:10px;color:var(--muted);padding:0 15px;margin-left:auto}.ribbon-group-label strong{font-size:11px;color:#bed1df;font-weight:500}.workspace{flex:1;min-height:180px;display:flex}.left-panel{width:225px;flex-shrink:0;border-right:1px solid var(--line);background:#17222f;display:flex;flex-direction:column;overflow-y:auto}.panel-top{height:43px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;font-size:9px;color:#a2b0c2;font-weight:650;letter-spacing:1.1px;flex-shrink:0}.panel-top button{padding:3px;color:#7d92a9}.panel-top svg{width:15px;height:15px}.project-overview{display:flex;align-items:center;gap:10px;padding:5px 16px 22px;border-bottom:1px solid #293646}.project-icon{width:34px;height:38px;background:#223544;display:flex;align-items:center;justify-content:center;border-radius:5px;color:#71cdb8}.project-icon svg{width:22px;height:22px}.project-overview>div{min-width:0}.project-overview strong{font-size:11px;font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:150px}.project-overview small{font-size:9px;color:#7d91a8;display:block;margin-top:6px}.project-overview small span:not([id]){margin:0 4px}.section-head{display:flex;align-items:center;justify-content:space-between;padding:17px 16px 10px;letter-spacing:1px;font-size:9px;color:#9aabc0;font-weight:650}.section-head button{font-size:17px;line-height:15px;font-weight:400}.layer-row{display:flex;align-items:center;gap:8px;padding:9px 12px 9px 16px;border-left:2px solid transparent;cursor:pointer;font-size:11px;color:#a8bbcd}.layer-row.active{background:#233741;border-left-color:var(--accent);color:#e1eee9}.layer-row:hover{background:#263443}.layer-swatch{width:8px;height:8px;border-radius:2px;flex-shrink:0}.layer-name{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layer-row button{color:#8095a8;padding:0;display:flex}.layer-row button svg{width:13px;height:13px}.layer-row .hidden-layer{opacity:.38}.layer-row .layer-edit{width:12px;font-size:13px;opacity:.3}.layer-row:hover .layer-edit{opacity:1}.layer-active-dot{color:var(--accent);font-size:8px;position:absolute}.layer-note{display:flex;align-items:flex-start;gap:6px;color:#70869e;font-size:9px;line-height:1.6;padding:12px 17px 17px}.layer-note svg{width:12px;height:12px;margin-top:1px}.tools-head{border-top:1px solid #293646;padding-top:18px}.muted{color:#647b94;font-weight:400;letter-spacing:0;text-transform:none}.quick-tool{display:flex;align-items:center;gap:10px;width:calc(100% - 18px);margin:1px 9px;padding:8px 10px;font-size:11px;color:#98adc2;text-align:left}.quick-tool svg{width:16px;height:16px}.quick-tool kbd{margin-left:auto;border:none;color:#6b8199;font-size:9px}.quick-tool:hover{background:#263545}.quick-tool.active{background:#243f40;color:#71d9c0}.left-footer{margin:auto 17px 20px;padding-top:24px;display:flex;flex-direction:column;gap:7px;position:relative;color:#7f96ad}.left-footer strong{font-size:10px;color:#b2c3d2;font-weight:500}.left-footer>span:not(.mini-logo){font-size:9px;line-height:1.6}.mini-logo svg{width:29px;height:29px;color:#4e7083;margin-bottom:8px}.left-footer button{font-size:10px;color:#70c8b3;text-align:left;padding:7px 0 0}.left-footer button span{margin-left:8px}.drawing-area{flex:1;min-width:100px;position:relative;overflow:hidden;background:var(--canvas)}#canvas{width:100%;height:100%;display:block;outline:none;touch-action:none;cursor:crosshair}.canvas-head{position:absolute;top:15px;left:19px;right:15px;display:flex;align-items:center;justify-content:space-between;pointer-events:none;z-index:1}.view-name{font:9px Segoe UI,Arial,sans-serif;color:#839aaf;display:flex;align-items:center;gap:8px;letter-spacing:.5px}.view-name i{width:5px;height:5px;background:var(--accent);border-radius:50%}.view-name span{color:#3e566d;margin:0 1px}.canvas-top-actions{display:flex;gap:4px;pointer-events:auto;background:#172535df;border:1px solid #2a3d50;padding:3px;border-radius:6px}.canvas-top-actions button{display:flex;padding:5px;color:#92acc0}.canvas-top-actions button:hover{background:#2e4357;color:var(--accent)}.canvas-top-actions svg{width:15px;height:15px}.drawing-badge{position:absolute;bottom:65px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;background:#1b2a38ec;border:1px solid #304456;border-radius:9px;box-shadow:0 6px 22px #0002;padding:13px 17px;white-space:nowrap}.badge-icon{color:#6dd9be;background:#27453f;padding:8px;border-radius:6px;display:flex}.drawing-badge strong{display:block;font-size:11px;letter-spacing:.1px;font-weight:500}.drawing-badge small{font-size:9px;color:#7f99af;display:block;margin-top:5px}.drawing-badge button{margin-left:16px;font-size:10px;color:#81d3bd;padding:8px 0}.drawing-badge button span{margin-left:6px}.axis-widget{width:70px;height:70px;position:absolute;bottom:35px;left:17px;pointer-events:none}.axis-widget svg{width:100%;height:100%;font:10px Segoe UI;stroke-width:1.3}.canvas-bottom{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;padding:11px 18px;background:linear-gradient(transparent,#101a27dd);font-size:9px;color:#5f7b93;pointer-events:none}.canvas-bottom button{font-size:9px;color:#8098ae;pointer-events:auto}.canvas-bottom kbd{margin-left:7px;border-color:#334960;font-size:8px}.dotsep{margin:0 6px}.mouse-icon{font-size:13px;color:#6f91ad;margin-right:4px}.right-panel{width:250px;flex-shrink:0;background:#17222f;border-left:1px solid var(--line);overflow-y:auto;display:flex;flex-direction:column}.right-panel .panel-top{border-bottom:1px solid #293748;margin-bottom:3px}.property-intro{padding:19px 18px 15px;display:flex;align-items:center;gap:9px;color:#a9bbce}.property-intro>span{background:#223546;display:flex;padding:7px;border-radius:5px}.property-intro svg{width:17px;height:17px;color:#8ba7be}.property-intro strong{font-size:11px;font-weight:550}.property-intro small{font-size:9px;color:#758fa8;display:block;margin-top:4px}.prop-section-title{font-size:9px;letter-spacing:.8px;text-transform:uppercase;color:#7f95ac;border-top:1px solid #2b3949;padding-top:14px;margin-top:13px}.prop-content{padding:0 17px 12px}.prop-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0;color:#8da3bb;font-size:10px}.prop-row label{flex:1;min-width:60px}.prop-row input:not([type=color]),.prop-row select{width:117px;padding:7px 8px;font-size:10px;max-width:65%}.prop-row .prop-value{color:#bccbdc;font-size:10px}.prop-row input[type=color]{width:35px;height:27px;padding:3px}.color-pair{display:flex;gap:7px;align-items:center;color:#bdd0dd}.color-pair small{font-size:9px}.property-empty{padding:11px 18px 15px;font-size:10px;color:#829aaf;line-height:1.8}.selection-stats{margin:0 17px;display:flex;flex-wrap:wrap;gap:10px}.selection-stat{padding:11px;background:#1e2d3c;border:1px solid #2b3d50;border-radius:6px;flex:1;min-width:80px}.selection-stat small{font-size:8px;display:block;color:#7590a9;margin-bottom:6px}.selection-stat strong{font-size:11px;color:#a8d5cb;font-weight:500}.inspector-help{display:flex;align-items:flex-start;gap:9px;margin:17px;padding:13px 10px;background:#1e303e;border-radius:5px;color:#7da0b4}.inspector-help>svg{width:14px;height:14px}.inspector-help strong{font-size:10px;font-weight:500;color:#b7cbd8}.inspector-help p{font-size:9px;line-height:1.8;margin:6px 0 0;color:#7b96ad}.right-footer{margin:auto 17px 21px;padding-top:25px}.precision-indicator{display:flex;gap:7px;align-items:center;font-size:8px;letter-spacing:1px;color:#81a398}.precision-indicator i{width:4px;height:4px;background:#77c5ac;border-radius:100%}.right-footer p{font-size:9px;line-height:1.9;color:#6d879f}.right-footer code{color:#a8bdc9;font-size:10px;background:#233342;padding:2px 4px;border-radius:2px}.right-footer button{font-size:9px;padding:2px 0;color:#84b7b0}.right-footer button span{margin-left:12px}.command-panel{background:#121e2b;border-top:1px solid var(--line);padding:0 17px;flex-shrink:0}.command-history{height:28px;overflow-y:auto;padding:7px 4px 3px 0;font-size:10px;font-family:Consolas,monospace;color:#7d97af;line-height:17px}.command-history strong{font-weight:400;color:#93c7bb}.command-row{display:flex;align-items:center;gap:11px;height:39px}.command-chevron{color:var(--accent);font-size:22px}.command-row label{font-size:10px;color:#b1c5d8;white-space:nowrap}.command-row input{border:0;background:none;padding:8px 0;flex:1;min-width:50px;font-family:Consolas,monospace;font-size:11px;color:#dbe8f3}.command-row input::placeholder{color:#4f6a84}.command-tip{font-size:9px;color:#56728c;white-space:nowrap}.command-tip kbd{font-size:8px;border-color:#314a60;margin:0 5px 0 10px}.statusbar{height:30px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;background:#1d2a39;border-top:1px solid #304052;padding:0 13px;font-size:9px}.status-left{display:flex;align-items:center;gap:8px;color:#8ba2b7;white-space:nowrap}.status-live{width:5px;height:5px;background:#63c5a6;border-radius:50%}.status-divider{width:1px;height:13px;background:#3a4a5d;margin:0 3px}#coords{font-family:Consolas,monospace;color:#8ea9be;font-size:9px;min-width:160px}#status-text{max-width:170px;overflow:hidden;text-overflow:ellipsis}.status-toggles{display:flex;align-items:center;gap:3px;height:100%}.status-toggles button{font-size:9px;color:#738ba2;padding:4px 7px;border-radius:3px}.status-toggles button.on{color:#75dbc0;background:#25443f}.status-toggles kbd{font-size:8px;margin-left:5px;border:0;padding:0;color:inherit;opacity:.6}#zoom-label{padding:0 8px;color:#8ea5b9}.snap-label{position:absolute;color:#8be7d0;background:#223c3ce8;border:1px solid #507b70;font-size:10px;padding:4px 7px;pointer-events:none;border-radius:4px}.floating-hint{position:absolute;bottom:60px;left:50%;transform:translateX(-50%);padding:9px 15px;border:1px solid #3f675e;background:#1f3b38e8;color:#a7e5d6;border-radius:5px;font-size:11px;pointer-events:none;white-space:nowrap}.dropdown{position:fixed;z-index:30;min-width:225px;background:#202e3e;border:1px solid #425164;box-shadow:0 15px 40px #0005;border-radius:7px;padding:6px}.dropdown button{display:flex;width:100%;padding:9px 11px;text-align:left;gap:20px;justify-content:space-between;font-size:11px;color:#c3d3e2}.dropdown button:hover{background:#304357}.dropdown kbd{border:0;color:#748da5}.dropdown hr{border:0;border-top:1px solid #35465a;margin:5px}.toasts{position:fixed;top:120px;left:50%;transform:translateX(-50%);z-index:60;display:flex;flex-direction:column;gap:8px;pointer-events:none}.toast{font-size:12px;background:#26413d;border:1px solid #47776b;box-shadow:0 8px 30px #0003;border-radius:7px;padding:12px 20px;color:#c3eadd;max-width:620px;text-align:center}.toast.error{background:#492d34;border-color:#9b515d;color:#ffd4d4}dialog{background:#1b2837;color:var(--text);border:1px solid #405367;border-radius:12px;padding:0;width:min(580px,90vw);max-height:86vh;box-shadow:0 35px 100px #0008}dialog::backdrop{background:#08121dc9;backdrop-filter:blur(5px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:25px 28px 20px}.dialog-eyebrow{font-size:8px;letter-spacing:2px;color:var(--accent)}.dialog-head h2{font-size:22px;letter-spacing:-.4px;margin:7px 0 0;font-weight:550}.dialog-close{font-size:26px;color:#829eb6;width:30px;height:30px;line-height:25px}#dialog-body{padding:0 28px 24px;line-height:1.7;font-size:12px;color:#9fb3c7;overflow-y:auto;max-height:60vh}#dialog-body p{margin:0 0 15px}#dialog-body strong{color:#d7e5ef;font-weight:550}#dialog-body input:not([type=checkbox]):not([type=color]),#dialog-body select{width:100%;margin-top:5px}#dialog-body label{display:block;font-size:11px;margin:10px 0}#dialog-body .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}#dialog-body .help-note{padding:12px 14px;background:#223a42;color:#90c7c0;border-radius:5px;font-size:11px;margin-top:16px}.dialog-foot{display:flex;gap:8px;justify-content:flex-end;padding:16px 28px;border-top:1px solid var(--line);background:#192431}.export-options{display:grid;grid-template-columns:1fr 1fr;gap:11px}.export-option{display:flex;flex-direction:column;gap:4px;text-align:left;background:#233445;border:1px solid #3a4e63;border-radius:7px;padding:15px;color:#ccdae5}.export-option:hover{background:#2d4655;border-color:#70b7aa}.export-option svg{color:#75d4bd;margin-bottom:5px;width:24px;height:24px}.export-option strong{font-size:12px}.export-option small{font-size:10px;color:#8aa3b7;line-height:1.6}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px 24px}.help-item{display:flex;justify-content:space-between;gap:15px;font-size:11px;padding:5px 0;border-bottom:1px solid #2d3f51}.help-item kbd{padding:1px 5px;font-size:10px;color:#bfd5e3}.help-title{font-size:11px;letter-spacing:.5px;text-transform:uppercase;color:#c7dedc;margin:20px 0 7px}.help-title:first-child{margin-top:0}.selection-actions{display:flex;gap:5px;padding:3px 17px 13px;flex-wrap:wrap}.selection-actions button{font-size:9px;border:1px solid #3a5268;padding:6px 9px;color:#9db6c9}.selection-actions button:hover{background:#2d4156}.modal-warning{font-size:10px;color:#bca876;padding:10px 0}.file-badge{display:inline-flex;gap:5px;align-items:center;background:#2c453e;color:#8cd8bd;padding:4px 7px;border-radius:4px;font-size:9px}.empty-properties-icon{display:flex;justify-content:center;padding:22px 0 5px}.empty-properties-icon svg{width:42px;height:42px;color:#3c586e}.mobile-notice{display:none}
@media(min-width:1600px){.left-panel{width:245px}.right-panel{width:280px}.ribbon-tool{min-width:74px}.topbar{gap:42px}.topbar .brand{width:200px}.drawing-badge{bottom:78px}}@media(max-height:820px){.left-footer{display:none}.right-footer{display:none}.quick-tool{padding:6px 10px}.ribbon-tools{height:68px}.ribbon-tool{height:54px}.topbar{height:59px}.inspector-help{margin-top:8px}.drawing-badge{bottom:50px}.project-overview{padding-bottom:15px}.section-head{padding-top:13px}.tools-head{padding-top:13px}.layer-note{padding-bottom:10px}.layer-row{padding-top:8px;padding-bottom:8px}}@media(max-width:1200px){.left-panel{width:190px}.right-panel{width:220px}.brand{width:168px}.topbar{gap:15px;padding:0 15px}.menus>button{padding:8px}#save-state{display:none}.ribbon-tool{min-width:57px;padding:4px 8px}.command-tip{display:none}.status-toggles kbd{display:none}#coords{min-width:135px}.drawing-badge{padding:10px 13px;gap:9px}.drawing-badge button{margin-left:3px}.drawing-badge strong{font-size:10px}.project-overview strong{max-width:125px}.canvas-bottom>span{display:none}.canvas-bottom{justify-content:flex-end}}@media(max-width:960px){.right-panel{display:none}.topbar{gap:12px}.menus kbd{display:none}.top-actions .subtle{display:none}.ribbon-group-label{display:none}.left-panel{width:185px}.drawing-badge{bottom:55px}.status-left #status-text{max-width:100px}.status-toggles button{padding:4px}#coords{min-width:120px;font-size:8px}}@media(max-width:750px){#app{min-width:360px}.left-panel{display:none}.menus{gap:0}.menus>button{font-size:10px;padding:8px 6px}.menus>button:nth-child(2),.menus>button:nth-child(3){display:none}.brand{font-size:17px;width:145px;gap:8px}.brand-mark{width:31px;height:34px}.brand small{font-size:7px;letter-spacing:1.4px}.topbar{padding:0 10px;gap:3px}.top-actions{gap:5px}.top-actions .button{padding:8px}.top-actions .button span:not([data-icon]){display:none}.top-actions .divider{display:none}.ribbon-tabs{gap:22px;padding:0 15px}.ribbon-tool{min-width:56px}.ribbon-tools{padding:5px 8px}.document-info{margin-right:10px}.document-info>span:not(.tag):not(:last-child){display:none}.document-tab{min-width:190px;padding:0 8px}.drawing-badge{white-space:normal;min-width:290px;max-width:90%}.drawing-badge button{white-space:nowrap;font-size:9px}.drawing-badge strong{font-size:10px}.drawing-badge small{line-height:1.5}.statusbar{height:auto;min-height:52px;flex-wrap:wrap;gap:0;padding:3px 9px}.status-left{height:21px}#coords{min-width:145px;font-size:9px}.status-toggles{height:24px;width:100%;justify-content:space-between;font-size:8px}.status-toggles button{font-size:8px;padding:3px 4px}.status-toggles #zoom-label{margin-left:auto;font-size:8px}.command-row label{max-width:130px;overflow:hidden;text-overflow:ellipsis}.command-history{font-size:9px}.canvas-head{left:12px;top:12px}.canvas-bottom button{font-size:8px}.axis-widget{left:8px;bottom:28px}.help-grid{grid-template-columns:1fr}dialog{width:94vw}.dialog-head{padding:22px 20px}#dialog-body{padding:0 20px 20px}.dialog-foot{padding:15px 20px}}
@media print{body{overflow:visible;background:white}#app,.dropdown,.toasts,dialog{display:none!important}}
textarea{width:100%;font:12px Consolas,monospace;background:#111b27;color:#dce6f1;border:1px solid #3a5166;border-radius:5px;padding:12px;resize:vertical;line-height:1.7}dialog:has(.tool-catalog),dialog:has(.layer-manager){width:min(850px,94vw)}.tool-catalog{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.tool-catalog>button{display:grid;grid-template-columns:24px 1fr;text-align:left;gap:6px 8px;padding:12px;background:#223545;border:1px solid #324a5e;border-radius:6px}.tool-catalog svg{color:#6fdac6}.tool-catalog strong{font-size:11px}.tool-catalog small{grid-column:2;font-size:9px;color:#90a7ba;line-height:1.6}.tool-catalog>button:hover{border-color:#65bca6}.property-wide{font-size:10px;width:calc(100% - 32px);margin:8px 16px;justify-content:center}.block-card{display:flex;gap:13px;align-items:center;padding:13px 0;border-bottom:1px solid #35465a}.block-card>span{color:#6fdac6}.block-card>div{flex:1}.block-card small{display:block;font-size:10px;color:#90a7ba;margin-top:3px}.manager-row{display:grid;grid-template-columns:minmax(100px,1fr) 65px 65px 65px 130px;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #314459;font-size:11px}.manager-heading{color:#82aaac;font-size:9px}.manager-row select{margin:0!important;font-size:10px;padding:6px!important}.ribbon-tools{scrollbar-width:thin;scrollbar-color:#456174 #1a2533}.ribbon-tabs{gap:22px}.ribbon-tool{min-width:62px}.ribbon-tool span{white-space:nowrap}.ribbon-tool svg{stroke-width:1.5}@media(max-width:900px){.tool-catalog{grid-template-columns:1fr 1fr}.ribbon-tabs{gap:12px}.manager-row{grid-template-columns:1fr 45px 45px 45px 100px}}

/* ZEL2CAD 5.1: classic desktop ribbon, dark palette. */
:root{font-family:'Segoe UI',Arial,sans-serif;--panel:#202833;--panel2:#293442;--line:#3b4655;--accent:#75b9ef;--accent-bg:#25415b}
.topbar{height:43px;min-height:43px;padding:0 14px;gap:24px;background:linear-gradient(#283646,#1c2835);border-bottom-color:#46556a}
.topbar .brand{width:185px;font-size:19px;letter-spacing:.3px;gap:8px}.brand small{display:none}.brand-mark{height:29px;width:30px;border-radius:4px;background:#69a9d7;color:#10283c}.brand-mark svg{width:25px;height:25px}.topbar .menus>button{color:#c5d3e1;font-size:12px;padding:7px 10px}.topbar .button{padding:5px 9px;font-size:11px;border-radius:3px}.topbar .button.primary{background:#294d6b;border-color:#50799a;color:#e5f4ff}.topbar #save-state{font-size:10px}.topbar .divider{height:20px}
.ribbon{background:#263240;border-color:#566274;box-shadow:0 2px 5px #0004;z-index:2}.ribbon-tabs{height:33px;gap:2px;padding:0 12px;background:linear-gradient(#202a37,#1a242f);border-bottom:1px solid #46596e;overflow-x:auto;scrollbar-width:none;flex-shrink:0}.ribbon-tabs button{padding:0 16px;font-size:12px;white-space:nowrap;color:#bdcbd9;border:1px solid transparent;border-bottom:0;border-radius:4px 4px 0 0;margin-top:4px}.ribbon-tabs button:hover{background:#304357;color:#fff}.ribbon-tabs button.active{background:linear-gradient(#3b5067,#2c3c4f);border-color:#5a728d;color:#eef7ff;box-shadow:inset 0 1px #8babc54d}.ribbon-tabs button.active:after{display:none}
.ribbon-tools{height:113px;padding:4px 8px 0;gap:0;align-items:stretch;background:linear-gradient(#2c3c4f 0%,#273544 69%,#22303e 100%);overflow-x:auto;scrollbar-width:thin;scrollbar-color:#59738d #22303e}.cad-ribbon-group{display:flex;flex-direction:column;flex:0 0 auto;min-width:70px;border-right:1px solid #506073;box-shadow:1px 0 #15213080;padding:0 7px}.cad-ribbon-group:last-child{border-right:0;box-shadow:none}.cad-group-buttons{display:flex;gap:2px;align-items:stretch;flex:1;min-height:0}.cad-group-caption{height:21px;display:flex;align-items:center;justify-content:center;color:#a7bdd2;font-size:10px;letter-spacing:.15px;white-space:nowrap;padding:0 6px;background:#17232f35;border-top:1px solid #62768d22;margin:0 -6px}.ribbon-tool{height:84px;min-width:69px;max-width:102px;padding:7px 7px 5px;gap:7px;justify-content:flex-start;border:1px solid transparent;border-radius:3px;font-size:11px;color:#e0e9f2;flex:0 0 auto}.ribbon-tool svg{width:33px;height:33px;stroke-width:1.6;color:#7ebdec;filter:drop-shadow(0 1px 1px #0007);margin-top:3px}.ribbon-tool span{max-width:94px;line-height:1.15;text-align:center;white-space:normal;min-height:24px;display:flex;align-items:center;justify-content:center}.ribbon-tool small{color:#96adc4;top:3px;right:4px;font-size:8px}.ribbon-tool:hover{border-color:#a1c2dc;background:linear-gradient(#567189,#364e66);color:white;box-shadow:inset 0 1px #b9daf344}.ribbon-tool.active{background:linear-gradient(#416b8d,#294c68);border-color:#7fb3d5;color:#f2f9ff;box-shadow:inset 0 1px #a1d8fb55}.ribbon-tool[data-action='new'] svg{color:#d4e1ed}.ribbon-tool[data-action='open'] svg{color:#eccb76}.ribbon-tool[data-action='save'] svg,.ribbon-tool[data-action='save-as'] svg{color:#8ccaf4}.ribbon-tool[data-action='print'] svg{color:#c3cbd5}.ribbon-tool[data-action='export'] svg{color:#8cd4b4}.cad-ribbon-group:nth-child(3) .ribbon-tool svg{color:#e8c27c}.cad-ribbon-group:nth-child(4) .ribbon-tool svg{color:#b9a9e4}
.document-bar{height:31px;padding-left:4px;background:#18222e;border-bottom-color:#485b70}.document-tab{min-width:225px;padding:0 12px;background:linear-gradient(#35475b,#293b4d);border-top:0;border-right:1px solid #5b7187;border-radius:4px 4px 0 0;margin-top:3px;color:#e4eef8;font-size:11px}.document-info{color:#a0b2c3}.document-info .tag{background:#354b61}.file-badge5{color:#93a8bd}.add-document{font-size:18px;color:#aac7dd}
.left-panel,.right-panel{background:#1d2733}.panel-top{height:30px;background:linear-gradient(#3a4b5e,#2c3d50);color:#cdddea;border-bottom:1px solid #536a80;letter-spacing:.3px;font-size:10px;padding:0 10px}.panel-top svg{color:#a8c7dd}.left-panel{width:220px}.right-panel{width:250px}.project-overview{padding:14px 12px;border-bottom-color:#354658}.section-head{background:#253342;margin-top:0;padding:10px 12px;color:#a9bdd0;letter-spacing:.5px;border-bottom:1px solid #3b4d60}.layer-row{padding-left:12px}.layer-row.active{background:#2d465a;color:#e6f3ff;border-left-color:#81bee9}.left-footer{display:none}.quick-tool.active{background:#2c465c;color:#b6e0ff}.quick-tool:hover{background:#2a3a4c}.right-panel .panel-top{margin-bottom:0}.inspector-help{background:#263849}
.command-panel{background:#16222f}.command-history{height:27px}.command-row{height:35px}.statusbar{background:#253445;border-top-color:#4a6076;height:28px}.status-toggles button.on{background:#355772;color:#b1dfff}.space-tabs{height:29px;background:#1d2a38}.space-tabs button{padding:5px 12px}.space-tabs button.active{background:#304b61;border-top-color:#86c3ef;color:#d8efff}.space-info{color:#8ca4ba}
@media(max-width:1200px){.topbar{gap:12px}.topbar .brand{width:170px}.ribbon-tabs button{padding:0 11px;font-size:11px}.left-panel{width:195px}.right-panel{width:220px}.ribbon-tool{min-width:65px;padding-left:5px;padding-right:5px}.cad-ribbon-group{padding:0 5px}}
@media(max-height:760px){.ribbon-tools{height:103px}.ribbon-tool{height:75px}.ribbon-tool svg{width:29px;height:29px;margin-top:1px}.ribbon-tool span{font-size:10px}.cad-group-caption{height:20px}}
@media(max-width:750px){.topbar .brand{width:140px;font-size:17px}.topbar{padding:0 8px;gap:4px}.ribbon-tabs button{padding:0 12px}.ribbon-tools{height:103px}.ribbon-tool{height:75px}.ribbon-tool svg{width:29px;height:29px}.topbar .menus>button{font-size:10px;padding:5px}.document-tab{min-width:190px}.statusbar{height:auto;min-height:48px}}

.space-tabs{display:flex;align-items:center;gap:3px;height:34px;flex-shrink:0;background:#15212e;border-top:1px solid #33475b;padding:0 12px;overflow:auto;scrollbar-width:thin}.space-tabs button{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:10px;padding:7px 12px;color:#8da9ba}.space-tabs button.active{background:#28463f;color:#83e6ce;border-top:2px solid #56d5bb}.space-tabs svg{width:13px;height:13px}.space-info{margin-left:auto;font-size:8px;letter-spacing:1px;color:#6b879b;white-space:nowrap}.paper-board{position:absolute;inset:0;display:flex;flex-direction:column;background:#2b3b4a;z-index:4}.paper-board[hidden]{display:none}.paper-toolbar{display:flex;align-items:center;gap:7px;padding:10px 12px;background:#1c2d3c;border-bottom:1px solid #476071;font-size:10px;min-height:40px}.paper-toolbar strong{margin-right:auto;font-size:10px;font-weight:500;color:#bed1dd}.paper-toolbar button{padding:6px 8px;background:#293e4c;color:#adcecd;font-size:9px;border:1px solid #3b5868}.paper-toolbar button.on{color:#8ff5d9;background:#2c5448;border-color:#6cafa0}.paper-stage{flex:1;min-height:0;padding:22px;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none}.paper-stage>svg{width:100%;height:100%;stroke:none;stroke-width:0;filter:drop-shadow(0 7px 15px #0004);user-select:none}.paper-footnote{height:27px;padding:7px 15px;font-size:9px;color:#9db9c8;background:#203342}.paper-check{display:flex;gap:8px;font-size:10px;margin:12px 0;color:#9bb6c6}.paper-check input{margin:0}.plot-rows>div{display:grid;grid-template-columns:1fr 80px 145px 35px;gap:12px;align-items:center;padding:8px 0;border-bottom:1px solid #344c5e;font-size:10px}.plot-rows label{margin:0!important;font-size:9px!important}.plot-rows input{margin:3px 0!important}.audit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.audit-grid>div{background:#233747;padding:15px;border-radius:6px}.audit-grid strong{font-size:25px;color:#75d8be;display:block}.audit-grid span{display:block;font-size:10px;color:#91adbe;line-height:1.5;margin-top:4px}.command-history.expanded{height:150px}.pro-export{margin-top:12px}.pro-export .export-option{padding:13px}#dialog-body .layout-list p{color:#9bb8c6}.paper-stage svg text{font-family:ZEL2CADPlot,'DejaVu Sans',Arial,sans-serif}.ribbon-tabs{gap:18px}.ribbon-tabs button{white-space:nowrap}.ribbon-tool{min-width:62px}@media(max-width:1100px){.paper-toolbar{flex-wrap:wrap}.paper-toolbar strong{width:100%}.paper-stage{padding:12px}.space-info{display:none}.ribbon-tabs{gap:12px}.plot-rows>div{grid-template-columns:1fr 70px 100px 30px}}@media(max-width:750px){.audit-grid{grid-template-columns:1fr 1fr}.ribbon-tabs{overflow:auto}.paper-toolbar{gap:4px}.paper-toolbar button{font-size:8px;padding:5px}.paper-stage{padding:5px}}

.draft-hud{position:absolute;z-index:8;width:270px;padding:10px 12px;border:1px solid #54bea8;border-radius:7px;background:#142a37f5;box-shadow:0 5px 20px #0005;color:#dafff3;font:11px 'Segoe UI',Arial,sans-serif;pointer-events:auto}.draft-hud[hidden]{display:none}.draft-hud-title{color:#8ce7c9;font-size:10px;font-weight:600;letter-spacing:.3px;margin-bottom:5px}.draft-coordinates{font:10px Consolas,monospace;color:#96b6c8;padding:3px 0 6px}.draft-field{display:grid;grid-template-columns:1fr 94px 28px;gap:7px;align-items:center;margin:4px 0}.draft-field>label{font-size:10px;color:#a9c9cd}.draft-field>input{width:94px;font:12px Consolas,monospace;padding:5px 7px;border:1px solid #486c78;background:#0d1f2a;color:#e8fff7;text-align:right}.draft-field>input:focus{border-color:#92f2ce;box-shadow:0 0 0 1px #5dd7aa;outline:none}.draft-field>input[readonly]{border-color:#2f4b5c;color:#89b6c1}.draft-lock{display:flex;align-items:center;gap:3px;font-size:15px!important}.draft-lock input{width:12px;height:12px;accent-color:#6ce0b7;margin:0;padding:0}.draft-deltas{font:10px Consolas,monospace;color:#9bbbbf;border-top:1px solid #345563;margin-top:7px;padding-top:7px}.draft-note{font-size:9px;color:#85a2b5;margin-top:7px}.draft-options{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:15px 0}.draft-options label{font-size:11px;display:flex;align-items:center;gap:6px;margin:3px 0}#draft-toggle-liveReadout,#draft-toggle-objectTracking{white-space:nowrap}@media(max-width:1100px){.status-toggles,.status-right{gap:2px}.ribbon-tabs{gap:12px}.draft-hud{width:250px}.draft-options{grid-template-columns:1fr}}
.colour-palette5{display:grid;grid-template-columns:repeat(10,1fr);gap:7px;margin:12px 0 20px}.colour-palette5 button{height:30px;border:1px solid #708496;border-radius:4px;background:var(--swatch)}.colour-palette5 button:hover{outline:2px solid #7ce8c5}.material-preview5{height:150px;background:#fff;border:1px solid #608091;margin:14px 0;border-radius:5px;padding:10px}.material-preview5>svg,.library-picture5>svg{width:100%;height:100%;stroke:none;stroke-width:0}.library-controls5{display:grid;grid-template-columns:1fr 190px;gap:12px;margin:10px 0 18px}.library-grid5{display:grid;grid-template-columns:1fr 1fr;gap:12px}.library-card5{display:flex;flex-direction:column;gap:7px;border:1px solid #385266;border-radius:6px;padding:12px;background:#203343}.library-card5 strong{font-size:12px}.library-card5 small{font-size:10px;color:#9bb5c6}.library-picture5{height:100px;background:#fff;border-radius:3px;padding:8px}.studio-properties5{padding:14px;border-top:1px solid #334c5e;display:flex;flex-direction:column;gap:8px}.file-badge5{align-self:center;margin-left:16px;color:#89a4b8;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:420px}@media(max-width:1050px){.ribbon-tabs{gap:10px}.ribbon-tabs button{font-size:10px}.file-badge5{max-width:200px}.library-controls5{grid-template-columns:1fr}.library-grid5{grid-template-columns:1fr 1fr}}

.drawing-loading5{position:fixed;inset:0;z-index:10000;background:#122330e8;display:flex;align-items:center;justify-content:center;color:#9debd2;font:16px 'Segoe UI',sans-serif}.drawing-loading5[hidden]{display:none}
/* Contextual 2D dimension controls, dark desktop layout. */
.dimension-options{display:flex;align-items:end;gap:10px;flex-shrink:0;min-height:64px;padding:7px 14px;background:linear-gradient(#283d51,#203245);border-bottom:1px solid #58758f;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#6888a2 #203245}.dimension-options[hidden]{display:none}.dim-context-label{font-size:11px;color:#abd7fa;align-self:center;min-width:108px;max-width:148px}.dim-option{display:flex;flex-direction:column;gap:4px;font-size:10px;color:#b6cce0;white-space:normal}.dim-option>span{white-space:nowrap}.dim-option input,.dim-option select{padding:6px 7px;height:29px;font-size:11px;border-color:#56728e;background:#152638;color:#e7f2ff}.dimension-options .dim-option input{width:77px}.dimension-options .dim-option select{max-width:136px}.dimension-options>.button{height:29px;align-self:flex-end;font-size:10px;padding:5px 9px;white-space:nowrap}.dim-scale-buttons{display:flex;gap:3px;margin-right:3px}.dim-scale-buttons button{height:29px;border:1px solid #5a7691;background:#2c4861;color:#deefff;padding:4px 6px;font-weight:600;font-size:11px}.dim-scale-buttons button:hover{background:#406887}#dialog-body .dim-option{display:flex;gap:4px;margin:10px 0}#dialog-body .dim-option input{width:100%;margin:0}.studio-properties5 small{font-size:10px;color:#9fb5c9;line-height:1.6}@media(max-width:1100px){.dimension-options{gap:7px;padding-left:9px}.dim-context-label{min-width:95px;font-size:10px}}@media(max-height:750px){.dimension-options{min-height:59px;padding-top:5px;padding-bottom:5px}}

.grid-indicator{position:absolute;bottom:8px;left:14px;z-index:3;padding:6px 10px;font:10px Segoe UI,Arial,sans-serif;letter-spacing:.1px;background:#1e3346f2;border:1px solid #55738c;color:#c9e9ff;box-shadow:0 2px 6px #0004;white-space:nowrap}.grid-indicator:hover{background:#31506a;color:#fff}.canvas-bottom>span{display:none}.axis-widget{bottom:44px}@media(max-width:750px){.grid-indicator{font-size:9px;padding:5px 7px;left:8px}}

/* Full written wordmark on a faded monochrome technical drawing. */
.topbar .brand{width:190px;gap:0}.brand-wordmark{display:block;width:184px;height:36px;object-fit:cover;object-position:center;background:#fff;border-radius:2px}@media(max-width:750px){.topbar .brand{width:142px}.brand-wordmark{width:136px;height:32px}}

/* Compact drafting workspace. Sidebar visibility is independent of drawing data. */
.workspace-controls{display:flex;align-items:center;gap:3px;margin:0 8px;flex:0 0 auto}.workspace-controls button,.history-toggle{font:10px 'Segoe UI',sans-serif;padding:4px 8px;white-space:nowrap;color:#b3cadd;border:1px solid #40566b;background:#223343;border-radius:3px}.workspace-controls button:hover,.history-toggle:hover{background:#3a5269;color:#fff}.workspace-controls button.on,.history-toggle.on{background:#305571;border-color:#6c9fc5;color:#e8f6ff}.workspace-controls button[data-workspace="focus"]{color:#abd8f9}.ui-left-closed .left-panel,.ui-right-closed .right-panel,.ui-ribbon-closed .ribbon-tools,.ui-history-closed .command-history{display:none}.ui-ribbon-closed .ribbon-tabs{border-bottom:0}.history-toggle{margin-left:3px;flex-shrink:0}.workspace-restore{position:absolute;right:155px;top:8px;z-index:7;padding:6px 12px;font:11px 'Segoe UI',sans-serif;background:#29465deb;color:#d7eeff;border:1px solid #6b99b9;border-radius:4px;box-shadow:0 2px 5px #0005}.workspace-restore[hidden]{display:none}.workspace-restore:hover{background:#416582}.ellipse-properties label{font-size:10px;color:#a8c2d6;display:flex;flex-direction:column;gap:5px}.ellipse-properties input{font-size:11px;padding:6px;min-width:0;width:100%}
.ui-compact .topbar{height:35px;min-height:35px;padding:0 9px;gap:12px}.ui-compact .topbar .brand{width:150px}.ui-compact .brand-wordmark{width:144px;height:28px}.ui-compact .topbar .menus>button{padding:5px 8px;font-size:11px}.ui-compact .topbar .button{padding:4px 7px;font-size:10px}.ui-compact .topbar #save-state{font-size:9px}.ui-compact .top-actions{gap:5px}.ui-compact .top-actions svg{width:14px;height:14px}
.ui-compact .ribbon-tabs{height:25px;padding:0 7px;gap:0}.ui-compact .ribbon-tabs button{font-size:11px;padding:0 11px;margin-top:2px}.ui-compact .ribbon-tools{height:70px;padding:2px 4px 0}.ui-compact .cad-ribbon-group{padding:0 4px;min-width:55px}.ui-compact .cad-group-buttons{gap:1px}.ui-compact .cad-group-caption{height:16px;font-size:9px;margin:0 -3px;padding:0 3px}.ui-compact .ribbon-tool{height:50px;min-width:55px;max-width:88px;padding:3px 5px 2px;gap:3px;font-size:10px}.ui-compact .ribbon-tool svg{height:22px;width:22px;margin-top:0}.ui-compact .ribbon-tool span{min-height:19px;max-width:78px;line-height:1.05}.ui-compact .ribbon-tool small{font-size:7px;right:2px;top:1px}
.ui-compact .document-bar{height:27px;min-height:27px}.ui-compact .document-tab{min-width:150px;max-width:225px;padding:0 8px;font-size:10px;flex-shrink:1}.ui-compact #doc-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:170px}.ui-compact .add-document{width:26px;flex-shrink:0}.ui-compact .document-info{margin-right:8px;font-size:9px;gap:7px}.ui-compact .file-badge5{display:none}.ui-compact .workspace-controls{margin:0 6px;gap:3px}.ui-compact .workspace-controls button{font-size:10px;height:23px;padding:3px 7px}
.ui-compact .left-panel{width:200px}.ui-compact .right-panel{width:215px}.ui-compact .panel-top{height:26px;min-height:26px;font-size:9px;padding:0 10px}.ui-compact .project-overview{padding:7px 10px 10px}.ui-compact .section-head{padding:10px 10px 7px}.ui-compact .left-footer,.ui-compact .right-footer{display:none}.ui-compact .property-intro{padding:11px}.ui-compact .prop-content{padding:0 11px}.ui-compact .prop-row{font-size:10px}.ui-compact .prop-row input,.ui-compact .prop-row select{font-size:10px;padding:4px}.ui-compact .inspector-help{padding:10px}.ui-compact .inspector-help p{font-size:10px}.ui-compact .studio-properties5{padding:10px}
.ui-compact .space-tabs{height:26px;min-height:26px;padding:0 8px}.ui-compact .space-tabs button{padding:4px 9px;font-size:10px}.ui-compact .command-panel{padding:0 11px}.ui-compact .command-row{height:33px;gap:8px}.ui-compact .command-row input{padding:5px 0}.ui-compact .command-history{height:43px;padding:5px 0}.ui-compact .statusbar{height:26px;min-height:26px;padding:0 8px}.ui-compact .status-toggles button{padding:3px 5px}.ui-compact .status-toggles kbd{margin-left:3px}.ui-compact .dimension-options{min-height:48px;padding:4px 9px;gap:7px}.ui-compact .dim-option{gap:2px;font-size:9px}.ui-compact .dim-option input,.ui-compact .dim-option select{height:24px;padding:3px 5px;font-size:10px}.ui-compact .dimension-options>.button,.ui-compact .dim-scale-buttons button{height:24px;font-size:10px;padding:3px 5px}.ui-compact .dim-context-label{font-size:10px;min-width:94px}.ui-compact .canvas-head{top:8px;left:12px}.ui-compact .drawing-badge{padding:8px 12px;bottom:41px}.ui-compact .drawing-badge small{display:none}.ui-compact .canvas-bottom{bottom:7px}
#app.ui-focus>.topbar,#app.ui-focus>.ribbon,#app.ui-focus>.document-bar,#app.ui-focus>.space-tabs,#app.ui-focus .left-panel,#app.ui-focus .right-panel,#app.ui-focus .command-history{display:none}#app.ui-focus .drawing-badge{display:none}#app.ui-focus .command-panel{padding:0 11px}#app.ui-focus .command-row{height:31px}#app.ui-focus .statusbar{height:26px;min-height:26px}
@media(max-width:1100px){.ui-compact #save-state{display:none}.ui-compact .document-info{display:none}.ui-compact .topbar{gap:7px}.ui-compact .topbar .brand{width:140px}.ui-compact .brand-wordmark{width:134px}.ui-compact .ribbon-tabs button{padding:0 9px}.ui-compact .command-tip{display:none}.ui-compact #status-text{max-width:75px}.ui-compact #coords{min-width:123px}.ui-compact .status-toggles kbd{display:none}}
@media(max-width:800px){.workspace-controls{margin:0 4px;gap:2px}.workspace-controls button{font-size:9px;padding:3px 4px}.ui-compact .workspace-controls button{font-size:9px;padding:3px 4px}.ui-compact .document-tab{min-width:115px;max-width:155px}.ui-compact #doc-title{max-width:90px}.ui-compact .top-actions .subtle{display:none}.ui-compact .statusbar{min-height:46px;height:auto}.workspace-restore{right:10px;top:43px}}

/* Classic CAD ribbon: a large primary tool beside three rows of small tools. */
.ui-compact .ribbon-tools{height:75px;background:linear-gradient(#44464a,#34363a)}.ui-compact .cad-group-buttons{display:grid;grid-template-rows:repeat(3,18px);grid-auto-flow:column;grid-auto-columns:max-content;column-gap:2px;row-gap:0;flex:0 0 auto}.ui-compact .ribbon-tool:first-child{grid-row:1 / span 3;height:54px;min-width:55px;max-width:76px;gap:4px;padding:4px 5px 2px}.ui-compact .ribbon-tool:first-child svg{width:25px;height:25px}.ui-compact .ribbon-tool:not(:first-child){display:flex;flex-direction:row;align-items:center;justify-content:flex-start;height:18px;min-width:88px;max-width:152px;padding:1px 5px;gap:5px;font-size:10px}.ui-compact .ribbon-tool:not(:first-child) svg{width:15px;height:15px;flex-shrink:0}.ui-compact .ribbon-tool:not(:first-child) span{white-space:nowrap;min-height:0;max-width:none;line-height:1.1;text-align:left}.ui-compact .ribbon-tool:not(:first-child) small{display:none}.ui-compact .cad-group-caption{height:16px;font-size:9px;background:#292b2e77;color:#b8bec5;border-top-color:#ffffff10}.ui-compact .cad-ribbon-group{border-right-color:#5c5e62;box-shadow:1px 0 #1c1d20}.ui-compact .ribbon-tabs{background:linear-gradient(#36383c,#2c2e32);border-bottom-color:#5c6066}.ui-compact .ribbon-tabs button{color:#c5cbd3}.ui-compact .ribbon-tabs button.active{background:linear-gradient(#53565a,#42454a);border-color:#6c7178;color:#fff}.ui-compact .ribbon-tool:hover{background:linear-gradient(#606773,#414953)}.ui-compact .ribbon-tool.active{background:linear-gradient(#3c607c,#2e4a62)}.ui-compact .topbar{background:linear-gradient(#42464b,#30343a)}.ui-compact .document-bar{background:#292c31}.ui-compact .document-tab{background:linear-gradient(#50565d,#3c444d)}.ui-compact .left-panel,.ui-compact .right-panel{background:#292d33}.ui-compact .panel-top{background:linear-gradient(#444a52,#353c45)}
.cloud-status{font:10px 'Segoe UI',sans-serif;padding:4px 7px;border:1px solid #526272;border-radius:3px;color:#a8b8c7;background:#25303b;white-space:nowrap}.cloud-status.on{color:#b4dfcd;border-color:#5b8976;background:#263f38}.cloud-status.cloud-error{color:#ffd0b3;border-color:#a47653}.cloud-folder{padding:10px;background:#142433;border:1px solid #3d576e;border-radius:4px;overflow-wrap:anywhere}.cloud-note,.developer-credit{color:#a2b7c8;font-size:11px;line-height:1.6}.cloud-actions{display:flex;gap:8px;margin:14px 0}.cloud-actions button:disabled{opacity:.4;cursor:default}@media(max-width:1050px){.ui-compact .top-actions .subtle{display:none}.ui-compact .cloud-status{font-size:9px;padding:4px 5px}}

.cad-context-menu{position:fixed;z-index:8000;min-width:245px;max-width:calc(100vw - 12px);max-height:calc(100vh - 12px);overflow-y:auto;background:#292f37;color:#e6edf5;border:1px solid #657485;box-shadow:0 8px 25px #0009;border-radius:4px;padding:4px 0;font:12px 'Segoe UI',sans-serif;scrollbar-width:thin}.cad-context-menu[hidden]{display:none}.cad-context-heading{font-size:10px;color:#b2c4d5;padding:7px 13px 8px;border-bottom:1px solid #465363;margin-bottom:3px}.cad-context-menu button{width:100%;display:grid;grid-template-columns:14px 1fr auto;gap:7px;align-items:center;text-align:left;padding:5px 12px;min-height:27px;color:#e0e8f2;border:0;border-radius:0;font-size:11px;white-space:nowrap;outline:none}.cad-context-menu button:hover,.cad-context-menu button:focus-visible{background:#35536e;color:white}.cad-context-menu button:disabled{color:#77828d;cursor:default}.cad-context-menu button:disabled:hover{background:transparent}.cad-context-menu kbd{font-size:10px;color:#9eafc0;border:0;padding:0;margin-left:14px;background:transparent}.cad-context-menu hr{margin:4px 10px;border:0;border-top:1px solid #465363}.cad-context-tick{color:#8ce3b7;font-weight:700}

#ui-language{width:96px;height:24px;font:10px 'Segoe UI',sans-serif;border:1px solid #5c6d80;background:#263441;color:#e1ecf5;border-radius:3px;padding:2px 5px;margin-left:7px}.ui-compact #ui-language{height:22px;font-size:10px;width:91px;margin-left:4px}.ui-compact .menus{align-items:center}@media(max-width:1100px){.ui-compact #ui-language{width:79px;font-size:9px}.ui-compact .topbar #save-state{display:none}}

.underlay-preview-next{height:210px;background:#fff;border:1px solid #536d82;display:flex;align-items:center;justify-content:center;margin:12px 0}.underlay-preview-next img{max-width:100%;max-height:100%;object-fit:contain}.next-properties label{font-size:11px;color:#adc2d5}.next-properties input{max-width:100%;font-size:11px}dialog details{margin:12px 0}dialog summary{cursor:pointer;color:#9fc9ec;font-size:12px}dialog h3{font-size:13px}
.revision-badge-next{position:absolute;right:12px;top:50px;padding:7px 10px;background:#283e50;color:#e8d78e;border:1px solid #b09c65;font-size:11px;z-index:8}.revision-badge-next[hidden]{display:none}.revision-counts-next{display:flex;gap:10px;flex-wrap:wrap;padding:10px 0}.revision-added-next{color:#7ce4ac}.revision-removed-next{color:#ff8c8c}.revision-changed-next{color:#f5d586}.live-reference-next{padding:12px 0;border-bottom:1px solid #405568;display:flex;flex-direction:column;gap:7px}.live-reference-next small{overflow-wrap:anywhere;color:#9cb8ce}
.support-articles-next{max-height:260px;overflow:auto;margin:12px 0;border:1px solid var(--line,#334657);border-radius:5px}
.support-articles-next details{padding:10px 12px;border-bottom:1px solid #334657}
.support-articles-next details:last-child{border-bottom:0}
.support-articles-next summary{cursor:pointer;font-weight:600;color:#d9e8f2}
.support-articles-next p{line-height:1.6;margin:10px 0 0}
.service-text-next{white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;background:#10202d;border:1px solid #334657;border-radius:5px;padding:12px;font:13px/1.65 'Segoe UI',sans-serif;user-select:text}
.service-state-next{border-left:3px solid #63bf92;padding:9px 12px;background:#142735}

#dialog.dimension-plus-dialog{width:min(960px,96vw);max-width:96vw}#dialog.dimension-plus-dialog #dialog-body{max-height:72vh;overflow:auto}.dim-plus-tabs{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:10px}.dim-plus-tabs button{border:1px solid #46596b;background:#243342;color:#e9f0f5;border-radius:4px;padding:7px 10px;cursor:pointer}.dim-plus-tabs button:focus{outline:2px solid #83c5eb}.dim-plus-preview{height:160px;background:#fff;border:1px solid #7591a6;border-radius:5px;overflow:hidden}.dim-plus-preview svg{height:100%;width:100%}#dim-plus-value{display:block;white-space:pre-wrap;text-align:center;margin:8px;color:#91d6ba}#dim-plus-error{color:#ff9696;min-height:1em}.dim-plus-field{display:flex;flex-direction:column;gap:5px}.dim-plus-field input[type=checkbox]{align-self:flex-start;width:20px;height:20px}.dimension-plus-dialog section{margin-top:12px}#dialog.dimension-plus-dialog .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dimension-plus-dialog [hidden]{display:none!important}@media(max-width:700px){#dialog.dimension-plus-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dim-plus-preview{height:120px}}

:root{--panel:#303235;--panel2:#393c40;--line:#4a4e53;--accent:#77b9f0;font-family:'Segoe UI',Arial,sans-serif}body,#app{background:#25282b;color:#e5e7e9}.topbar,.ui-compact .topbar{background:#242629;border-bottom:1px solid #474b50}.ribbon,.ribbon-tabs,.ui-compact .ribbon-tabs{background:#2d3034;border-color:#4a4e52}.ribbon-tabs button{border-radius:2px 2px 0 0;color:#d8dadd}.ribbon-tabs button.active{background:#40454b;border-color:#626a73;box-shadow:inset 0 2px #73b7f4;color:white}.ribbon-tools,.ui-compact .ribbon-tools{background:linear-gradient(#3d4146,#32363b)}.cad-group-caption{background:#303337;border-color:#50565d;color:#bdc3c9}.cad-ribbon-group{border-color:#535960;box-shadow:none}.ribbon-tool:hover,.ui-compact .ribbon-tool:hover{background:#445a70;border-color:#80b7e4}.ribbon-tool.active,.ui-compact .ribbon-tool.active{background:#345b7c;border-color:#78b5e8}.document-bar,.ui-compact .document-bar,.space-tabs{background:#25282b;border-color:#4a4e53}.document-tab{background:#3b4047;border:1px solid #5a626d;border-bottom:0;border-radius:3px 3px 0 0}.left-panel,.right-panel{background:#2d3034;border-color:#52575d}.panel-top{background:#41464d;border-color:#5a626c;letter-spacing:0;color:#e2e6eb}.section-head{background:#34383d;letter-spacing:0}.layer-row.active{background:#385d7e;border-color:#80bbef}.command-panel,.command-row input{background:#24272b;color:#e5e7ea}.statusbar{background:#303840;border-color:#515a64}.status-toggles button.on{background:#426d94;color:#e4f2ff}.button,button,input,select,textarea{border-radius:2px!important}.button.primary{background:#3f83b7;color:#fff;border-color:#6eb1e4}input,select,textarea{accent-color:#438ecc}input:focus,select:focus,textarea:focus{outline:1px solid #70b6f2;box-shadow:none}.dropdown,.cad-context-menu{background:#30343a;border:1px solid #69717b;border-radius:2px;box-shadow:0 4px 12px #0006}.dropdown button:hover,.cad-context-menu button:hover{background:#405d78}dialog,#dialog{background:#30343a;color:#e8ebee;border:1px solid #737b86;border-radius:3px;box-shadow:0 10px 32px #0008;resize:both;overflow:auto;max-height:94vh;min-width:350px}dialog::backdrop{background:#0005;backdrop-filter:none}.dialog-head{padding:9px 10px 9px 14px;background:#42474f;border-bottom:1px solid #646c77;align-items:center;gap:4px;cursor:move;user-select:none;touch-action:none}.dialog-head>div{flex:1}.dialog-head h2{font-size:14px;font-weight:600;margin:0}.dialog-eyebrow{display:none}.dialog-close,.dialog-maximize{width:34px;height:28px;border:0!important;background:transparent;color:#f0f2f5;display:grid;place-items:center;font-size:20px;cursor:pointer}.dialog-close:hover{background:#bc3e43}.dialog-maximize:hover{background:#596473}.dialog-foot{padding:11px 15px;background:#2b2f34;border-top:1px solid #505761}#dialog-body{padding-top:16px}#dialog.window-maximized,#dialog.dimension-plus-dialog.window-maximized{inset:10px!important;margin:0!important;width:calc(100vw - 20px)!important;height:calc(100vh - 20px)!important;max-width:none;max-height:none;resize:none}#dialog.window-maximized #dialog-form{height:100%;display:flex;flex-direction:column}#dialog.window-maximized #dialog-body{flex:1;max-height:none;overflow:auto}.dim-plus-tabs button{border-radius:2px;background:#3c424a}.dim-plus-tabs button:hover{background:#475f77}.dim-plus-preview{border-color:#8b949f;border-radius:1px}.workspace-controls button{background:#363d46;border-color:#646e7a}.workspace-controls button.on{background:#3d6385}.cloud-status{background:#303840}.canvas-head,.canvas-bottom{color:#a6afb9}

.personal-toolbar63{display:flex;gap:2px;align-items:center;min-height:30px;flex:0 0 auto;padding:2px 8px;background:#34383d;border-bottom:1px solid #50565f;overflow-x:auto}.personal-toolbar63[hidden],.cad-palette63[hidden],.dock-zone63[hidden]{display:none!important}.personal-toolbar63 strong{font-size:10px;font-weight:500;color:#bcc5ce;padding-right:7px;white-space:nowrap}.personal-toolbar63 button,#palette-buttons63 button{display:flex;align-items:center;gap:5px;font-size:11px;padding:4px 7px;white-space:nowrap;border:1px solid transparent}.personal-toolbar63 button:hover,#palette-buttons63 button:hover{background:#425f7d;border-color:#83b4e1}.personal-toolbar63 svg,#palette-buttons63 svg{width:17px;height:17px}.personal-config63{margin-left:auto}.dock-zone63{display:flex;flex-direction:column;flex:0 0 auto;min-height:0;background:#2b2f34}.dock-zone63>.cad-palette63{flex:1 1 0;min-height:100px;max-width:340px;overflow:auto}.dock-zone63 .left-panel,.dock-zone63 .right-panel{width:var(--palette-width63,220px)}.palette-head63{display:flex!important;cursor:move;user-select:none;touch-action:none;gap:3px;padding:3px 6px!important;min-height:32px!important;height:auto!important}.palette-head63>span:first-child{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.palette-controls63{display:flex;align-items:center;gap:2px;margin-left:auto}.palette-controls63 select{max-width:64px;padding:2px;font-size:10px}.palette-controls63 button{font-size:17px;line-height:20px;padding:0 4px}.palette-controls63 button:hover{background:#b54248;color:white}.palette-floating63{position:fixed;z-index:22;display:flex!important;flex-direction:column;min-width:190px;min-height:160px;max-width:calc(100vw - 16px);max-height:calc(100vh - 32px);resize:both;overflow:auto;border:1px solid #858f9b!important;background:#30343a!important;box-shadow:0 8px 22px #0007}.palette-floating63 .palette-head63{position:sticky;top:0;z-index:2;background:#484f59!important}.ui-focus .cad-palette63,.ui-focus .personal-toolbar63{display:none!important}#tool-palette63{background:#2d3034;border:1px solid #535a65}#palette-buttons63{padding:5px}#palette-buttons63 button{width:100%;text-align:left}#palette-buttons63 p{font-size:11px;padding:8px;line-height:1.6}#dialog.workspace-dialog63{width:min(800px,95vw)}.workspace-dialog63 h3{font-size:13px;margin-top:20px}.favorite-list63{padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}.favorite-list63 li{display:flex;align-items:center;background:#3a414a;padding:3px 6px;font-size:11px;gap:3px;min-width:0}.favorite-list63 li span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.favorite-list63 li button{padding:3px 6px;border:1px solid #657485}.workspace-add63{display:flex;gap:7px}.workspace-add63 select{flex:1}.shortcut-row63{display:grid;grid-template-columns:160px 1fr 28px;gap:7px;margin:6px 0}.shortcut-row63 input,.shortcut-row63 select{width:100%}#workspace-error63{color:#ffb3af;font-size:12px}.ui-compact .personal-toolbar63 button{font-size:10px}.ui-compact .personal-toolbar63{min-height:28px}

.audit-findings63{display:grid;gap:8px}.audit-findings63 article{padding:8px 12px;background:#3a414b;border-left:3px solid #7caeda}.audit-findings63 p{margin:5px 0;font-size:12px}.audit-findings63 .audit-warning63{border-color:#d7b062}.audit-findings63 .audit-error63{border-color:#ee8c86}
.view-compass{position:absolute;top:54px;right:14px;width:66px;height:66px;z-index:4;display:block;pointer-events:none;user-select:none;color:#dce6f1;font:600 14px 'Segoe UI',Arial,sans-serif}
.view-compass::before,.view-compass::after{content:'';position:absolute;background:#8496a7;opacity:.8}
.view-compass::before{left:32px;top:17px;width:1px;height:32px}
.view-compass::after{left:17px;top:32px;width:32px;height:1px}
.view-compass span{position:absolute;display:block;text-align:center;width:18px;height:18px;line-height:18px}
.compass-north{top:0;left:24px;color:#81c7ff}.compass-east{right:0;top:24px}.compass-south{bottom:0;left:24px}.compass-west{left:0;top:24px}

.web-mode-label{font-size:9px;color:#9adbb9;margin-right:8px;white-space:nowrap}.web-cad .cloud-status,.web-cad [data-cloud],.web-cad .drawing-badge{display:none!important}.web-cad .topbar{height:40px;min-height:40px}.web-viewer .ribbon-tabs,.web-viewer .left-panel,.web-viewer .right-panel,.web-viewer .workspace-controls,.web-viewer .personal-toolbar63,.web-viewer .menus [data-menu="edit"],.web-viewer .document-tab button,.web-viewer .add-document,.web-viewer .top-actions [data-action="undo"],.web-viewer .top-actions [data-action="redo"],.web-viewer .top-actions [data-action="save"],.web-viewer .status-toggles [data-toggle="gridSnap"],.web-viewer .status-toggles [data-toggle="ortho"],.web-viewer .status-toggles [data-toggle="polar"],.web-viewer .status-toggles [data-toggle="tracking"]{display:none!important}.web-viewer .ribbon-tools{height:66px}.web-viewer #app{min-width:700px}.web-viewer .ribbon-tool{height:54px;max-width:150px;min-width:90px;display:flex;align-items:center;justify-content:center;flex-direction:column}.web-viewer .command-tip{display:none}.web-viewer .space-tabs>button:not(.active){display:none}.web-cad .document-bar{overflow:hidden}.web-cad .document-info{gap:5px;margin-right:8px}.web-cad .brand{pointer-events:none}.web-cad .command-row{height:35px}
