:root{color:#20272b;font-synthesis:none;--paper:#f7f5f0;--panel:#fff;--line:#d5d8d8;--ink-soft:#667078;--blue:#1679b8;--blue-dark:#0b5e92;--orange:#e46f2b;font-family:Segoe UI,Arial,sans-serif}*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}button,input,textarea{font:inherit}button{color:inherit}.topbar{background:var(--paper);z-index:10;border-bottom:1px solid #c9cccd;justify-content:space-between;align-items:center;height:62px;padding:0 18px;display:flex;position:relative;box-shadow:0 1px 5px #1e262a1a}.brand{z-index:2;align-items:center;gap:9px;min-width:178px;display:flex;position:relative}.brand-mark{flex:none;width:42px;height:42px;display:block}.brand-mark svg{width:100%;height:100%;display:block}.logo-wire{fill:none;stroke:#172637;stroke-linecap:round;stroke-linejoin:round;stroke-width:3.6px}.logo-wire circle{fill:#172637;stroke:none}.logo-core path{fill:var(--orange);stroke:#fff;stroke-linejoin:round;stroke-width:1.6px}.brand-wordmark{color:#172637;letter-spacing:0;align-items:baseline;font-size:20px;font-weight:800;display:flex}.brand-wordmark span:last-child{color:var(--orange)}.topbar-file{z-index:1;max-width:clamp(120px,100vw - 820px,520px);position:absolute;left:50%;transform:translate(-50%)}.topbar-file-name{max-width:100%;color:var(--ink-soft);cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:8px;padding:5px 8px;font-size:13px;font-weight:700;display:flex}.topbar-file-name:hover,.topbar-file-name[aria-expanded=true]{background:#ffffffbf}.topbar-file-name #file-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.file-complexity-badge{color:#263238;text-transform:uppercase;background:#e8edef;border-radius:999px;flex:none;padding:2px 6px;font-size:10px;font-weight:800}.file-complexity-badge.complexity-light{color:#1f6f3a;background:#dff1e6}.file-complexity-badge.complexity-medium{color:#6b5b11;background:#f5edc8}.file-complexity-badge.complexity-large{color:#8a451c;background:#f7dfcc}.file-complexity-badge.complexity-very-large{color:#8d2b2b;background:#f2d1d1}.file-info-popover{z-index:35;color:#2d373c;background:#fff;border:1px solid #c8ced0;border-radius:7px;gap:8px;width:300px;padding:11px;font-size:12px;display:grid;position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%);box-shadow:0 10px 26px #202a2f2e}.file-info-popover[hidden]{display:none}.file-info-popover strong{font-size:13px}.file-info-popover dl{grid-template-columns:auto minmax(0,1fr);gap:5px 12px;margin:0;display:grid}.file-info-popover dt{color:var(--ink-soft);font-weight:700}.file-info-popover dd{text-align:right;margin:0;font-weight:700}.file-info-popover p{color:var(--ink-soft);margin:0;line-height:1.35}.file-actions{z-index:2;align-items:center;gap:8px;display:flex;position:relative}.top-menu{position:relative}.menu-caret{margin-left:5px;display:inline-block;transform:rotate(90deg)}.top-menu-panel{z-index:30;background:#fff;border:1px solid #c8ced0;border-radius:7px;gap:8px;width:210px;padding:10px;display:grid;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 10px 28px #202a2f2e}.top-menu-panel[hidden]{display:none}.top-menu-panel label{color:#5d686e;font-size:11px;font-weight:800}.top-menu-panel select{background:#fff;border:1px solid #aeb8bc;border-radius:5px;height:34px}.top-menu-panel .top-button{text-align:left;width:100%}.help-button{align-items:center;gap:6px;display:inline-flex}.help-button[aria-expanded=true]{background:#eef7fb;border-color:#9fb5c3}.help-popover{z-index:36;color:#243139;background:#fffffffa;border:1px solid #c8ced0;border-radius:8px;gap:12px;width:min(560px,100vw - 28px);max-height:calc(100vh - 86px);padding:14px;display:grid;position:absolute;top:calc(100% + 8px);right:0;overflow-y:auto;box-shadow:0 14px 34px #202a2f38}.help-popover[hidden]{display:none}.help-heading{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.help-heading h2{margin:2px 0 0;font-size:22px}.help-popover p{color:var(--ink-soft);margin:0;font-size:12px;line-height:1.38}.help-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.help-card{background:#fbfcfc;border:1px solid #d7dcde;border-radius:7px;grid-template-columns:34px minmax(0,1fr);align-items:start;gap:9px;min-width:0;padding:10px;display:grid}.help-card svg{width:30px;height:30px;color:var(--blue-dark);fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;background:#eef7fb;border:1px solid #d7e2e8;border-radius:6px;padding:5px}.help-card h3{margin:0 0 3px;font-size:13px}.top-button,.action-button{cursor:pointer;background:#fff;border:1px solid #bfc5c7;border-radius:6px;padding:9px 14px;font-weight:600}.top-button:hover{background:#eef2f3}.top-button:disabled{color:#9aa3a8;cursor:default;background:#e7eaeb}.top-button.danger{color:#8b3d18;border-color:#cfb4a3}.top-button.danger:hover:not(:disabled){color:#fff;background:var(--orange);border-color:#bf561f}.top-button.primary,.action-button{color:#fff;border-color:var(--blue-dark);background:var(--blue)}.top-button.primary:hover,.action-button:hover{background:var(--blue-dark)}.button-icon{border:1px solid;border-radius:4px;place-items:center;width:20px;height:20px;margin-right:4px;font-size:11px;display:inline-grid}#workspace{grid-template-columns:76px minmax(0,1fr);height:calc(100% - 92px);display:grid;position:relative}.toolbar{z-index:6;background:var(--paper);border-right:1px solid #c9cccd;flex-direction:column;align-items:stretch;padding:8px 6px;display:flex;overflow:visible;box-shadow:1px 0 5px #1e262a14}.tool{cursor:pointer;color:#3f4b51;background:0 0;border:0;border-radius:7px;flex-direction:column;flex:none;justify-content:center;align-items:center;gap:4px;min-height:64px;font-size:10px;display:flex}.tool-menu{position:relative}.tool-menu:after{content:"";width:8px;position:absolute;top:0;bottom:0;left:100%}.tool-menu-trigger{width:100%}.tool-menu-trigger i{color:#6f7a80;font-style:normal;font-weight:900;position:absolute;right:7px}.tool-submenu{z-index:20;background:var(--paper);border:1px solid #c8ced0;border-radius:7px;min-width:130px;padding:6px;display:none;position:absolute;top:0;left:calc(100% + 7px);box-shadow:0 8px 24px #202a2f2e}.tool-menu:hover .tool-submenu,.tool-menu:focus-within .tool-submenu{gap:4px;display:grid}.tool.compact{text-align:left;flex-direction:row;justify-content:flex-start;gap:8px;width:100%;min-height:34px;padding:0 10px;font-size:12px}.tool.compact svg{stroke-width:1.8px;flex:none;width:20px;height:20px}.tool.compact span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.tool:hover{background:#e8edef}.tool.active{color:var(--blue-dark);box-shadow:inset 3px 0 var(--blue);background:#d9edf8}.tool svg{fill:none;stroke:currentColor;stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;width:28px;height:28px}.tool-divider{background:#d1d5d5;height:1px;margin:6px 8px}.tool-divider-bottom{margin-top:auto}#viewport{min-width:0;position:relative;overflow:hidden}#canvas{outline:none;width:100%;height:100%;display:block}.hint{color:#435058;white-space:nowrap;background:#ffffffe0;border:1px solid #606d7440;border-radius:5px;max-width:calc(100% - 260px);padding:8px 13px;font-size:12px;position:absolute;bottom:18px;left:50%;transform:translate(-50%);box-shadow:0 2px 8px #202a2f1f}.view-cube{width:108px;height:88px;position:absolute;top:20px;left:20px}.view-cube button{color:#415058;cursor:pointer;background:#f7fafbeb;border:1px solid #7c8b93;font-size:9px;font-weight:700;position:absolute}.view-cube button:hover{color:var(--blue-dark);background:#fff}.view-cube [data-view=top]{clip-path:polygon(23% 0,100% 0,77% 100%,0 100%);width:78px;height:24px;top:7px;left:16px}.view-cube [data-view=front]{width:60px;height:42px;top:31px;left:16px}.view-cube [data-view=iso]{clip-path:polygon(0 30%,100% 0,100% 70%,0 100%);width:24px;height:60px;top:13px;left:76px}.axis-labels{gap:8px;font-size:11px;font-weight:800;display:flex;position:absolute;bottom:22px;right:22px}.axis.x{color:#cc3737}.axis.y{color:#2e9a52}.axis.z{color:#2477bd}.objects-drawer,.history-drawer,.pattern-drawer{z-index:8;color:#243139;background:#fffffff5;border:1px solid #c8ced0;border-radius:8px;grid-template-rows:auto auto minmax(0,1fr);gap:10px;width:268px;max-width:calc(100% - 28px);max-height:calc(100% - 28px);padding:13px;transition:transform .16s;display:grid;position:absolute;bottom:14px;left:14px;transform:translate(calc(-100% - 26px));box-shadow:0 10px 28px #202a2f2e}.objects-drawer.open,.history-drawer.open{transform:translate(0)}.pattern-drawer{grid-template-rows:auto minmax(0,1fr);left:296px;transform:translate(calc(-100% - 308px))}.pattern-drawer.open{transform:translate(0)}.objects-drawer-heading,.history-drawer-heading{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.objects-drawer-heading strong,.history-drawer-heading strong{font-size:20px;display:block}.objects-drawer-summary,.history-drawer-summary{color:var(--ink-soft);gap:6px;font-size:12px;font-weight:700;display:flex}.objects-list,.history-list{align-content:start;gap:7px;min-height:0;padding-right:2px;display:grid;overflow-y:auto}.history-row{width:100%;color:inherit;text-align:left;cursor:pointer;background:#fff;border:1px solid #d7dcde;border-radius:6px;gap:3px;padding:8px;display:grid}.history-row.current{border-color:var(--blue);box-shadow:inset 3px 0 var(--blue)}.history-row:hover{background:#f4f8fa}.history-row strong{font-size:12px}.history-row small{color:var(--ink-soft);font-size:11px;line-height:1.35}.object-row{background:#fff;border:1px solid #d7dcde;border-radius:6px;gap:5px;padding:8px;display:grid}.object-row.selected{border-color:var(--blue);box-shadow:inset 3px 0 var(--blue)}.object-row input{border:1px solid #bec8cc;border-radius:4px;width:100%;min-width:0;padding:5px 6px;font-size:12px;font-weight:700}.object-row small{color:var(--ink-soft);font-size:11px}.object-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;display:grid}.object-actions button{cursor:pointer;background:#f7f9fa;border:1px solid #b8c3c7;border-radius:4px;min-width:0;padding:5px 4px;font-size:11px;font-weight:700}.object-actions button:hover{background:#eaf1f5}.pattern-panel{align-content:start;gap:8px;min-height:0;display:grid;overflow-y:auto}.pattern-panel label{font-size:12px;font-weight:800}.pattern-panel select{background:#fff;border:1px solid #b7c2c7;border-radius:5px;height:34px}.pattern-panel small{color:var(--ink-soft);line-height:1.35}.inspector{z-index:7;scrollbar-gutter:stable;background:#fffffff7;border:1px solid #c8ced0;border-radius:8px;width:292px;max-height:calc(100% - 28px);padding:18px;transition:transform .16s;position:absolute;top:14px;right:14px;overflow-y:auto;transform:translate(calc(100% + 24px));box-shadow:0 8px 28px #202a2f33}.inspector.open{transform:translate(0)}.inspector-heading{justify-content:space-between;align-items:flex-start;display:flex}.inspector h2{margin:2px 0 0;font-size:20px}.eyebrow{color:#7a858b;letter-spacing:.12em;font-size:10px;font-weight:800}.icon-button{cursor:pointer;color:#68747a;background:0 0;border:0;border-radius:4px;width:28px;height:28px}.icon-button:hover{background:#edf0f1}#panel-description{color:#5d686e;font-size:13px;line-height:1.45}.tool-form{background:#f5f7f7;border:1px solid #d7dcde;border-radius:6px;gap:8px;margin:18px 0;padding:15px;display:grid}.tool-form[hidden]{display:none}.tool-form label{font-size:12px;font-weight:700}.field-with-unit{grid-template-columns:1fr 42px;display:grid}.field-with-unit.has-decimal-steppers{grid-template-columns:1fr 24px 42px}.field-with-unit input{background:#fff;border:1px solid #aeb8bc;border-radius:5px 0 0 5px;outline:none;min-width:0;height:38px;padding:0 10px;font-weight:600}.field-with-unit input:focus{border-color:var(--blue);box-shadow:0 0 0 2px #1679b826}.tool-form select,.tool-form textarea{color:#263239;background:#fff;border:1px solid #aeb8bc;border-radius:5px;outline:none;height:38px;padding:0 10px;font-weight:600}.tool-form textarea{resize:vertical;height:auto;min-height:76px;padding:9px 10px;line-height:1.35}.tool-form select:focus,.tool-form textarea:focus{border-color:var(--blue);box-shadow:0 0 0 2px #1679b826}.field-with-unit span{color:#68747a;background:#e9edee;border:1px solid #aeb8bc;border-left:0;border-radius:0 5px 5px 0;place-items:center;font-size:12px;display:grid}.decimal-steppers{background:#f4f6f6;border-top:1px solid #aeb8bc;border-bottom:1px solid #aeb8bc;grid-template-rows:1fr 1fr;height:38px;display:grid}.decimal-stepper{color:#7d878c;cursor:pointer;background:0 0;border:0;border-left:1px solid #d2d7da;place-items:center;width:24px;padding:0;font-size:9px;line-height:1;display:grid}.decimal-stepper:first-child{border-bottom:1px solid #d2d7da}.decimal-stepper:hover{color:#2f3b42;background:#e9edef}.field-with-unit input:disabled+.decimal-steppers{background:#e5e9ea}.field-with-unit input:disabled+.decimal-steppers .decimal-stepper{color:#aab2b6;cursor:default;pointer-events:none}.tool-form small{color:#727d82;line-height:1.35}.select-instructions{gap:4px;display:grid}.select-instructions strong{font-size:13px}.select-instructions small+strong{margin-top:8px}.hole-form,.move-hole-form,.primitive-form{max-height:calc(100vh - 190px);overflow-y:auto}.hole-readout{border-left:4px solid var(--orange);background:#fff;border-radius:4px;gap:4px;padding:10px;display:grid}.hole-readout span,.hole-readout small{color:#67737a;font-size:11px}.hole-readout strong{font-size:13px}.offset-grid{gap:6px;padding-top:5px;display:grid}.offset-grid label{margin-top:3px}.axis-x{color:#cc3737}.axis-y{color:#2e9a52}.axis-z{color:#2477bd}.field-with-unit input:disabled{color:#8b9498;background:#e5e9ea}.toggle-row{grid-template-columns:1fr 1fr;gap:8px;display:grid}.toggle-row.single{grid-template-columns:1fr}.toggle-row label{background:#fff;border:1px solid #d5dadd;border-radius:5px;align-items:center;gap:7px;padding:8px 9px;display:flex}.toggle-row input{width:15px;height:15px}.quick-actions{grid-template-columns:1fr;gap:6px;padding-top:6px;display:grid}.action-button{margin-top:6px}.action-button.danger{background:var(--orange)}.action-button.danger:hover{background:#c85d22}.measure-panel{gap:8px;margin:18px 0;display:grid}.measure-panel[hidden]{display:none}.measure-total,.axis-measure{background:#f7f8f8;border:1px solid #d5dadd;border-radius:5px;justify-content:space-between;align-items:center;padding:10px 11px;display:flex}.measure-total{color:#49555b;border-left:4px solid var(--orange);gap:4px;display:grid}.measure-total span{font-size:11px}.measure-total strong{color:#253036;font-size:22px}.axis-measure span{align-items:center;gap:7px;font-size:12px;font-weight:700;display:flex}.axis-measure i{background:currentColor;border-radius:2px;width:18px;height:3px;display:inline-block}.axis-measure.x{color:#cc3737}.axis-measure.y{color:#2e9a52}.axis-measure.z{color:#2477bd}.axis-measure strong{color:#303b40}#measure-axis-summary{color:#5d696f;min-height:34px;margin:3px 0;font-size:12px;line-height:1.4}.secondary-button{cursor:pointer;background:#fff;border:1px solid #aeb8bc;border-radius:5px;padding:8px 12px;font-weight:600}.secondary-button:hover{background:#edf1f2}.selection-info{border-top:1px solid #daddde;gap:4px;padding-top:14px;display:grid}.selection-info[hidden]{display:none}.selection-info strong{font-size:13px}.selection-info>span:last-child{color:#6a757b;font-size:12px;line-height:1.4}.statusbar{color:#525e64;background:var(--paper);border-top:1px solid #c8cccd;grid-template-columns:180px 1fr 230px;align-items:center;height:30px;padding:0 8px;font-size:11px;display:grid}.history-actions{gap:4px;display:flex}.history-actions button{cursor:pointer;background:0 0;border:0;border-radius:3px;padding:3px 8px}.history-actions button:hover:not(:disabled){background:#e3e7e8}.history-actions button:disabled{color:#acb2b5;cursor:default}#status{text-align:center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.busy-overlay{z-index:80;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);cursor:wait;background:#20272b57;place-items:center;display:grid;position:fixed;inset:0}.busy-overlay[hidden]{display:none}.busy-dialog{background:#fff;border:1px solid #cfd5d7;border-radius:8px;grid-template-columns:40px 1fr;align-items:center;gap:14px;width:min(360px,100vw - 32px);padding:18px;display:grid;box-shadow:0 18px 55px #161f2442}.busy-dialog strong,.busy-dialog span{display:block}.busy-dialog strong{margin-bottom:5px;font-size:15px}.busy-dialog span{color:var(--ink-soft);font-size:12px;line-height:1.35}.busy-spinner{border:4px solid #dce4e7;border-top-color:var(--orange);border-radius:50%;width:34px;height:34px;animation:.9s linear infinite busy-spin}.is-busy{cursor:wait}.repair-report-overlay{z-index:82;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#20272b4d;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.repair-report-overlay[hidden]{display:none}.repair-report-dialog{background:#fff;border:1px solid #cfd5d7;border-radius:8px;width:min(440px,100vw - 32px);max-height:min(640px,100vh - 34px);padding:18px;overflow:auto;box-shadow:0 18px 55px #161f2442}.repair-report-heading{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.repair-report-dialog h2{margin:4px 0 8px;font-size:20px}.repair-report-dialog p{color:var(--ink-soft);margin:0 0 14px;font-size:13px;line-height:1.45}.repair-report-metrics{background:#f6f8f8;border:1px solid #dde3e5;border-radius:6px;grid-template-columns:1fr auto;gap:7px 12px;margin:0;padding:12px;font-size:12px;display:grid}.repair-report-metrics dt{color:#68747a}.repair-report-metrics dd{color:#263239;text-align:right;margin:0;font-weight:800}.repair-report-warning-box{background:#fff6ed;border:1px solid #e5b88f;border-radius:6px;margin-top:12px;padding:11px 12px}.repair-report-warning-box strong{color:#9d4f1d;margin-bottom:6px;font-size:12px;display:block}.repair-report-warning-box ul{color:#5f5148;margin:0;padding-left:18px;font-size:12px;line-height:1.35}@keyframes busy-spin{to{transform:rotate(360deg)}}.measurement{justify-content:flex-end;align-items:center;gap:7px;font-weight:700;display:flex}.measurement input{text-align:right;background:#fff;border:1px solid #aeb7bb;border-radius:3px;width:132px;height:22px;padding:0 7px;font-size:11px}.measurement input.length-entry{width:150px}.measurement input.length-entry-active{border-color:var(--blue);color:#1f3038;background:#fff;box-shadow:0 0 0 2px #1679b829}@media (width<=760px){.topbar-file,.button-icon,.view-cube,.objects-drawer,.pattern-drawer{display:none}.top-button{padding:8px 10px}.help-popover{width:min(360px,100vw - 20px);right:-8px}.help-grid{grid-template-columns:1fr}.hint{text-overflow:ellipsis;max-width:calc(100% - 24px);overflow:hidden}.inspector{width:min(292px,100% - 104px)}}
