.model-editor-dialog{width:min(1600px,calc(100vw - 24px));height:calc(100dvh - 24px);max-width:none;max-height:none;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink)}.model-editor-dialog::backdrop{background:#000a}.model-editor-fullscreen{width:100vw;height:100dvh;border-radius:0}.model-editor-shell{display:flex;flex-direction:column;height:100%;min-height:0}.model-editor-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid var(--line)}.model-editor-actions,.model-header-actions,.model-title{display:flex;gap:8px;align-items:center}.model-title h2{margin:0;font-size:17px;white-space:nowrap}.model-format{color:var(--muted);font-size:11px;margin-left:6px;white-space:nowrap}.model-name{max-width:170px;height:34px}.model-tool{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;border:1px solid transparent;border-radius:7px;padding:0;background:transparent;color:var(--muted);cursor:pointer}.model-tool:hover:not(:disabled):not([aria-disabled=true]){background:var(--surface-raised);color:var(--ink)}.model-tool.active,.model-tool[aria-pressed=true]{color:var(--orange);background:var(--accent-soft);border-color:var(--orange)}.model-tool:disabled,.model-tool[aria-disabled=true]{opacity:.35;cursor:default}.model-tool:focus-visible{outline:2px solid var(--orange);outline-offset:2px}.model-selection-bar{display:flex;align-items:center;gap:12px;padding:7px 14px;border-bottom:1px solid var(--line);flex-wrap:wrap}.model-selection-modes{display:flex;gap:3px}.model-selection-modes .model-tool{height:30px;width:34px}.model-current-tool{color:var(--muted);font-size:12px;flex:1 1}.model-snap{gap:8px}.model-snap,.model-snap label{display:flex;align-items:center}.model-snap label{gap:6px;font-size:11px;color:var(--muted)}.model-snap input{width:58px;height:29px;padding:3px 6px}.model-editor-workarea{display:grid;grid-template-columns:104px minmax(0,1fr) 242px;flex:1 1;min-height:0}.model-tool-rail{display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;align-items:center;justify-content:center;gap:5px;padding:9px 5px;border-right:1px solid var(--line);overflow:auto}.model-tool-rail .model-tool{width:43px;height:39px}.model-rail-label{width:100%;text-align:center;font-size:9px;color:var(--muted);padding-top:5px}.model-rail-separator{width:100%;border-top:1px solid var(--line);margin:5px 0}.model-canvas-panel{position:relative;min-height:260px;min-width:0;overflow:hidden;background:var(--bg)}.direct-model-canvas,.direct-model-viewport{position:absolute;inset:0}.direct-model-canvas canvas{width:100%;height:100%;display:block;outline:none;touch-action:none}.direct-model-canvas canvas:focus-visible{outline:2px solid var(--orange);outline-offset:-2px}.model-view-cube{position:absolute;right:12px;top:12px;display:flex;gap:3px;padding:4px;background:var(--surface);border:1px solid var(--line);border-radius:7px}.model-view-cube button{width:30px;height:30px;padding:0;background:transparent;border:0;color:var(--muted);font-size:10px;cursor:pointer}.model-view-cube button:hover{color:var(--orange);background:var(--surface-raised)}.model-canvas-hint{left:12px;right:12px;bottom:10px;font-size:10px;line-height:1.7}.model-canvas-hint,.model-empty-hint{position:absolute;text-align:center;color:var(--muted);pointer-events:none}.model-empty-hint{inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:30px}.model-empty-hint strong{color:var(--ink);font-size:18px}.model-empty-hint span{max-width:280px;font-size:12px;line-height:1.7}.model-building-chip{position:absolute;top:58px;right:12px;padding:8px 12px;border-radius:7px;align-items:center;gap:8px;font-size:11px}.model-inspector{border-left:1px solid var(--line);padding:12px;overflow:auto;min-width:0}.model-inspector section{padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--line)}.model-inspector h3{margin:0 0 10px;font-size:12px;display:flex;align-items:center;justify-content:space-between}.model-inspector h3>span{color:var(--muted);font-size:11px;font-weight:400}.model-inspector label{display:flex;flex-direction:column;gap:6px;margin-bottom:10px;font-size:12px;color:var(--muted)}.model-inspector input{min-width:0;width:100%;padding:7px 9px}.model-body-list{display:flex;flex-direction:column;gap:4px}.model-body-list button{display:flex;gap:9px;align-items:center;padding:8px;background:transparent;border:1px solid transparent;border-radius:6px;color:var(--muted);cursor:pointer;text-align:left}.model-body-list button[aria-pressed=true]{background:var(--accent-soft);color:var(--orange);border-color:var(--line)}.model-body-list button:hover{background:var(--surface-raised)}.model-inspector-actions{display:flex;justify-content:flex-end;margin-top:5px}.model-plane-buttons{display:flex;gap:5px}.model-plane-buttons button{flex:1 1;padding:6px;border:1px solid var(--line);border-radius:5px;color:var(--muted);background:transparent;cursor:pointer;font-size:11px}.model-plane-buttons button[aria-pressed=true]{color:var(--orange);border-color:var(--orange);background:var(--accent-soft)}.model-vector-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:0;border:0;min-width:0;margin:0 0 4px}.model-vector-fields legend{font-size:11px;color:var(--muted);margin-bottom:8px}.model-vector-fields label{font-size:10px}.model-vector-fields input{font-size:12px;padding:6px 4px}.model-inspector .text-button{font-size:11px}.model-inspector form+form{margin-top:14px}.model-faceted-note{font-size:10px;line-height:1.7;color:var(--muted);border-left:2px solid var(--orange);padding-left:9px;margin:12px 0 0}.model-history{padding:4px 0 12px;font-size:11px;color:var(--muted)}.model-history summary{cursor:pointer;display:flex;align-items:center;gap:6px}.model-history summary span{margin-left:auto}.model-history ol{padding-left:22px;line-height:2;max-height:180px;overflow:auto}.model-shortcuts p{display:flex;flex-direction:column;gap:4px;font-size:10px;color:var(--muted)}.model-shortcuts kbd{color:var(--ink);font:inherit}.model-inspector label.model-checkbox{flex-direction:row;align-items:flex-start;font-size:11px}.model-checkbox input{width:16px;margin:2px 0}.model-editor-status{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:10px;line-height:1.7;color:var(--muted);padding:7px 14px;border-top:1px solid var(--line)}.model-editor-status [role=alert]{color:var(--ink)}.model-editor-status .text-button{margin-left:8px;font-size:10px}.model-editor-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border-top:1px solid var(--line)}.model-editor-footer strong{font-size:11px}.model-editor-footer p{font-size:10px;color:var(--muted);margin:5px 0 0}.model-editor-footer .button{white-space:nowrap}@media (max-width:1000px){.model-format{display:none}.model-name{max-width:130px}.model-editor-workarea{grid-template-columns:58px minmax(0,1fr) 210px}}@media (max-width:700px){.model-editor-dialog{width:100vw;height:100dvh;border-radius:0}.model-editor-header{padding:8px;flex-wrap:wrap;gap:6px}.model-title h2{font-size:15px}.model-header-actions{gap:2px;margin-left:auto}.model-name{max-width:110px}.model-selection-bar{padding:5px 8px;gap:6px}.model-current-tool{display:none}.model-snap{margin-left:auto;gap:2px}.model-snap label{gap:3px}.model-snap input{width:43px}.model-editor-workarea{grid-template-columns:1fr;grid-template-rows:52px minmax(240px,1fr) minmax(105px,24%);min-height:0}.model-tool-rail{flex-wrap:nowrap;justify-content:flex-start;flex-direction:row;gap:4px;padding:4px 6px;border-right:0;border-bottom:1px solid var(--line);overflow-x:auto;overflow-y:hidden}.model-tool-rail .model-tool{width:42px;height:42px}.model-rail-label{display:none}.model-rail-separator{width:1px;height:25px;border-top:0;border-left:1px solid var(--line);flex-shrink:0;margin:0 4px}.model-inspector{border-left:0;border-top:1px solid var(--line);display:flex;align-items:flex-start;gap:16px;overflow:auto;padding:10px}.model-inspector section{min-width:190px;flex-shrink:0;border:0;margin:0;padding:0}.model-inspector section:first-child{min-width:125px}.model-inspector section:nth-child(2){min-width:130px}.model-inspector .model-history{min-width:145px;flex-shrink:0}.model-inspector>p{min-width:160px}.model-inspector input,.model-name,.model-snap input{font-size:16px}.model-body-list button,.model-plane-buttons button,.model-tool,.model-view-cube button{min-height:36px}.model-tool{min-width:36px}.model-canvas-hint{font-size:9px;line-height:1.4;bottom:7px}.model-view-cube{right:7px;top:7px;padding:2px}.model-view-cube button{width:27px}.model-editor-status{padding:5px 8px;max-height:60px;overflow:auto}.model-editor-footer{padding:8px;flex-wrap:wrap;gap:7px}.model-editor-footer>div:first-child{flex:1 1}.model-editor-footer .model-editor-actions{width:100%}.model-editor-footer .button{flex:1 1;min-height:42px;padding:8px;font-size:12px}}.model-shape-palette{position:absolute;z-index:20;top:10px;left:10px;width:min(430px,calc(100% - 20px));max-height:calc(100% - 20px);overflow:auto;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:0 12px 35px #0005}.model-shape-palette header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.model-shape-palette h3{margin:0;font-size:14px}.model-shape-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:16px}.model-shape-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:76px;padding:8px 4px;border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--ink);cursor:pointer;font:inherit;font-size:11px}.model-shape-grid button:hover{border-color:var(--orange);color:var(--orange)}.model-shape-settings{display:flex;flex-direction:column;gap:9px}.model-primitive-settings label,.model-revolve-properties>label,.model-shape-settings label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:var(--muted)}.model-shape-settings .model-checkbox{flex-direction:row;align-items:center}.model-primitive-settings input,.model-revolve-properties>label input:not([type=checkbox]),.model-shape-settings input:not([type=checkbox]){min-width:0;width:100%;height:34px;padding:6px 8px;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--ink);font:inherit}.model-primitive-settings{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:16px}.model-revolve-properties .text-button{display:flex;gap:6px;align-items:center;text-align:left;margin:10px 0}@media (max-width:720px){.model-shape-palette{padding:12px}.model-primitive-settings input,.model-revolve-properties>label input:not([type=checkbox]),.model-shape-settings input:not([type=checkbox]){font-size:16px;min-height:44px}.model-inspector section:has(.model-shape-settings),.model-revolve-properties{min-width:250px}}.model-building-chip{top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);z-index:15;display:flex;flex-direction:column;gap:16px;padding:28px 36px;min-width:230px;max-width:calc(100% - 32px);text-align:center;font-size:16px;font-weight:600;border:1px solid var(--line);background:var(--surface);box-shadow:0 12px 60px #0008;pointer-events:none}.model-machining-choices,.model-thread-presets{display:flex;flex-wrap:wrap;gap:6px}.model-machining-choices .button[aria-pressed=true],.model-machining-entry .button[aria-pressed=true],.model-thread-presets .button[aria-pressed=true]{border-color:var(--orange);color:var(--orange)}.model-machining-entry{border:0;padding:0;margin:10px 0;display:flex;flex-direction:column;gap:6px}.model-machining-entry legend{font-size:12px;color:var(--muted);margin-bottom:6px}.model-machining-entry .button{white-space:normal;justify-content:flex-start}@media (max-width:640px){.model-machining-choices .button,.model-machining-entry .button,.model-thread-presets .button{min-height:44px}}.model-inspector .model-checkbox input[type=checkbox]{width:16px;height:16px;min-height:16px;padding:0;flex:0 0 16px}@media (max-width:720px){.model-machining-panel label.model-checkbox{min-height:44px;align-items:center}}.model-operation-hint{position:absolute;z-index:12;top:12px;left:12px;max-width:min(410px,calc(100% - 24px));display:flex;align-items:flex-start;gap:8px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font-size:12px;line-height:1.6;box-shadow:0 4px 24px #0003}.model-machining-panel h3{gap:8px}.model-machining-targets h4{margin:12px 0 6px;font-size:12px}.model-machining-target-list{display:flex;flex-direction:column;gap:6px;max-height:180px;overflow:auto}.model-machining-target-list .button{white-space:normal;text-align:left;justify-content:flex-start}.model-machining-target-list .button[aria-pressed=true]{color:var(--orange);border-color:var(--orange);background:var(--accent-soft)}.model-machining-requirement{padding:10px;border:1px solid var(--line);border-radius:6px;background:var(--accent-soft);color:var(--ink);line-height:1.6}@media (max-width:720px){.model-machining-target-list .button{min-height:44px}}.model-snap-options{position:relative}.model-snap-options summary{display:flex;align-items:center;justify-content:center;padding:8px;cursor:pointer;border-radius:6px;list-style:none}.model-snap-options summary:hover{background:var(--accent-soft)}.model-snap-options>div{position:absolute;right:0;top:100%;z-index:35;width:270px;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:0 12px 30px #0005}.model-snap-options>div label.model-checkbox{display:flex;align-items:center;justify-content:flex-start;gap:9px;min-height:36px}.model-snap-options>div input[type=checkbox]{width:16px;height:16px;padding:0;flex:0 0 16px;accent-color:var(--orange)}.model-tree-row{display:flex;align-items:center;gap:2px;min-width:0}.model-tree-row>button{flex-shrink:0;padding:5px;border:0;background:transparent;color:inherit}.model-tree-row .model-tree-name{display:flex;align-items:center;gap:7px;flex:1 1;min-width:0;text-align:left;border-radius:6px}.model-tree-name span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-tree-name[aria-pressed=true],.model-tree-row button:hover{background:var(--accent-soft,#ad741f33)}.model-tree-spacer{width:24px;flex-shrink:0}.model-tree-rename{display:flex;gap:4px;margin:4px 0}.model-tree-rename input{width:100%;min-width:0}.model-tree-actions{display:grid;gap:6px;margin-top:12px}.model-tree-actions button{display:flex;align-items:center;gap:7px;text-align:left}.model-tree-name[data-active=true]{box-shadow:inset 0 0 0 1px var(--accent,#ffab00)}.model-building-chip.is-background{top:12px;right:12px;left:auto;bottom:auto;transform:none;flex-direction:row;gap:8px;padding:8px 12px;min-width:0;font-size:12px;box-shadow:0 4px 16px #0003}.model-building-chip.is-background svg{width:16px;height:16px}