.sketch-plate,.three-workplane-host{touch-action:none;-webkit-touch-callout:none}.touch-controls{position:absolute;z-index:18;bottom:calc(54px + env(safe-area-inset-bottom, 0px));left:8px;right:8px;width:fit-content;max-width:calc(100% - 16px);margin-inline:auto;color:var(--foreground);background:var(--panel);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow)}.touch-controls-buttons{display:flex;flex-wrap:wrap;gap:4px;padding:4px}.touch-controls button{display:grid;place-items:center;min-width:36px;min-height:36px;padding:4px 8px;border-radius:6px;color:var(--foreground);background:var(--tile);font-size:12px;font-weight:700;touch-action:manipulation}.touch-controls button[aria-pressed=true]{color:white;background:var(--active-tab)}.touch-controls button:disabled{opacity:.4}.touch-controls p{max-width:360px;margin:0;padding:10px 12px;font-size:13px;line-height:1.5;border-top:1px solid var(--border)}.sketch-arc-help{position:absolute;top:8px;left:50%;transform:translateX(-50%);z-index:18;max-width:calc(100% - 112px);padding:6px 10px;border:1px solid var(--border);border-radius:8px;background:var(--panel);color:var(--foreground);font-size:12px;text-align:center}.sketch-arc-help button{margin-left:8px;padding:6px;color:var(--foreground);background:var(--tile);border-radius:4px}@media (any-pointer:coarse){.cadverix-editor{--editor-toolbar-height:calc(100px + env(safe-area-inset-top, 0px));--editor-toolbar-tools-height:60px;height:100dvh}.editor-body{height:calc(100dvh - var(--editor-toolbar-height));bottom:auto}.sketch-workspace-stage,.workplane-stage{height:100%}.toolbar-title-row{top:env(safe-area-inset-top,0);height:40px}.toolbar-workspace-tabs{height:40px}.toolbar-project-name-field,.toolbar-project-name-field input{height:36px}.toolbar-section-label{height:20px;padding:2px 6px 0;font-size:10px}.toolbar-section-tools{height:40px}.toolbar-icon{height:36px;width:36px}.touch-controls{bottom:calc(54px + env(safe-area-inset-bottom, 0px))}.action-buttons button,.camera-controls button,.scene-shape-row>button,.scene-sidebar-actions button,.scene-sidebar-header button,.shape-inspector button,.toolbar-icon,.toolbar-workspace-tabs button,.workspace-modal button{min-height:36px;min-width:36px;touch-action:manipulation}.scene-shape-row>button{flex-basis:44px}.scene-shape-delete{opacity:1}.scene-shape-copy strong{font-size:13px}.scene-shape-copy small{font-size:11px}.scene-shape-row{min-height:52px}.rotate-handle,.transform-handle{min-width:22px;min-height:22px;touch-action:none}.rotate-handle{width:22px;height:22px}.rotate-handle-icon,.rotate-handle-icon svg{width:13px;height:13px}.transform-handle.height-lift{translate:0 -16px}.cadverix-editor input:not([type=range]):not([type=checkbox]):not([type=color]),.cadverix-editor select,.cadverix-editor textarea{font-size:16px}.toolbar-mode-content.geometry,.toolbar-mode-content.sculpt,.toolbar-mode-content.sketch{overflow-x:auto;overscroll-behavior-x:contain}}@media (max-width:1100px){.cadverix-editor{height:100dvh}.editor-body{height:calc(100dvh - var(--editor-toolbar-height));bottom:auto}.sketch-workspace-stage,.workplane-stage{height:100%}.workspace-modal-card{max-height:calc(100dvh - var(--editor-toolbar-height) - 24px)}}@media (max-width:760px){.cadverix-editor{--editor-toolbar-height:calc(100px + env(safe-area-inset-top, 0px));--editor-toolbar-tools-height:60px}.toolbar-title-row{top:env(safe-area-inset-top,0);height:40px;left:max(6px,env(safe-area-inset-left));right:max(6px,env(safe-area-inset-right));gap:6px}.toolbar-workspace-tabs{flex-shrink:0;height:40px}.toolbar-workspace-tabs button{min-height:36px;padding-inline:6px;font-size:11px}.toolbar-project-name{min-width:0;flex:1}.toolbar-project-name-field,.toolbar-project-name-field input{min-width:0;width:100%;height:36px}.toolbar-section-label{height:20px;padding:2px 6px 0;font-size:10px}.toolbar-section-tools{height:40px}.toolbar-icon{min-height:36px;min-width:36px;height:36px;width:36px}.toolbar-actions-section{flex-basis:auto;min-width:0}.toolbar-section{flex-shrink:0}.toolbar-mode-content{overscroll-behavior-x:contain;scroll-padding-inline:8px;padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}.sculpt-toolbar-target{min-width:130px;max-width:180px;overflow:hidden}.sculpt-toolbar-field{min-width:160px}.sculpt-toolbar-help{display:none}.scene-overview-sidebar.collapsed{width:44px;min-width:44px}.scene-sidebar-expand,.shape-inspector-rail-expand{left:0;width:44px;min-width:44px}.scene-overview-sidebar:not(.collapsed){width:min(340px,calc(100vw - 44px));min-width:0}.shape-inspector,.shape-inspector.gear-inspector,.shape-inspector.sketch-revolve-inspector{top:auto;bottom:calc(102px + env(safe-area-inset-bottom, 0px));right:8px;left:auto;width:min(280px,calc(100% - 56px));max-height:min(26dvh,220px);overflow-y:auto;overscroll-behavior:contain;border-radius:12px}.shape-inspector-header{position:sticky;top:0;z-index:1;height:38px;min-height:38px;padding:0 6px;flex-shrink:0;background:var(--panel)}.shape-inspector-header strong{font-size:14px;padding-left:6px}.inspector-header-actions{gap:4px}.shape-state-card{margin:6px;padding:4px;gap:4px;min-height:44px}.shape-state-card>button{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;padding:4px}.large-hole-swatch,.large-solid-swatch{width:26px;height:26px;min-width:26px}.inspector-snap-dock{padding:6px}.view-cube{left:8px;top:10px;transform:scale(.72);transform-origin:top left}.camera-controls,.sketch-camera-controls{left:8px;top:90px;width:max-content;max-width:calc(100% - 16px);height:auto;display:flex;flex-direction:row;overflow-x:auto;transform:none}.camera-controls button{flex-shrink:0;width:36px;height:36px;min-width:36px}.camera-controls.collapsed{width:36px}.sketch-camera-controls{top:44px}.ruler-tool-popover{position:fixed;top:calc(var(--editor-toolbar-height) + 140px);left:54px}.grid-settings{right:8px;bottom:max(8px,env(safe-area-inset-bottom));max-width:calc(100% - 16px)}.construction-plane-panel,.sketch-operation-panel{top:8px;right:8px;width:min(340px,calc(100% - 16px));max-height:calc(100% - 128px);overflow-y:auto}.sketch-revolve-preview{right:8px;width:min(160px,40vw)}.shape-menu-dropdown{max-height:calc(100dvh - var(--editor-toolbar-height) - 16px);overflow-y:auto}.workspace-modal{padding-bottom:env(safe-area-inset-bottom)}}@media (any-pointer:coarse) and (orientation:landscape) and (max-height:600px){.shape-inspector,.shape-inspector.gear-inspector,.shape-inspector.sketch-revolve-inspector{top:8px;bottom:8px;right:max(8px,env(safe-area-inset-right));width:min(260px,32vw);max-height:calc(100% - 16px);overflow-y:auto}}@media (any-pointer:coarse),(max-width:760px){.toolbar-section-label{flex-shrink:0}.toolbar-mode-content .action-buttons,.toolbar-section-tools{height:40px;min-height:40px;flex-shrink:0;padding-block:0}.toolbar-mode-content .action-buttons button,.toolbar-mode-content .shape-menu-trigger{width:36px;height:36px;min-width:36px;min-height:36px}.toolbar-mode-content .action-buttons button>*,.toolbar-mode-content .shape-menu-trigger>*,.toolbar-mode-content .toolbar-icon>*{max-width:32px;max-height:32px}}@media (max-width:360px){.touch-controls{left:4px;right:4px;max-width:calc(100% - 8px)}.touch-controls-buttons{gap:0;padding:1px}.touch-controls button{padding-inline:4px;font-size:11px}}.toolbar-section[data-tool-group=home]{--tool-accent:#d99018}.toolbar-section[data-tool-group=clipboard]{--tool-accent:#22b8d4}.toolbar-section[data-tool-group=history]{--tool-accent:#39b96c}.toolbar-section[data-tool-group=shapes]{--tool-accent:#e9ba28}.toolbar-section[data-tool-group=generators]{--tool-accent:#36b7a5}.toolbar-section[data-tool-group=visibility]{--tool-accent:#94a0b1}.toolbar-section[data-tool-group=combine]{--tool-accent:#a16cf2}.toolbar-section[data-tool-group=modify]{--tool-accent:#f29b17}.toolbar-section[data-tool-group=arrange]{--tool-accent:#e77558}.toolbar-section[data-tool-group=manage]{--tool-accent:#758cea}.toolbar-mode-content:is(.geometry,.sketch,.sculpt){overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;scroll-padding-inline:8px}.toolbar-mode-content:is(.geometry,.sketch,.sculpt)::-webkit-scrollbar{display:none}.toolbar-mode-content>:is(.sketch-toolbar-ribbon,.sculpt-toolbar-ribbon){min-width:max-content}.toolbar-mode-content.geometry>.tool-group{height:100%;flex-shrink:0;border:0}.toolbar-mode-content .toolbar-section[data-tool-group]{height:100%;min-width:64px;flex:0 0 auto;padding:0 4px 3px;border:0;background:transparent}.toolbar-section[data-tool-group]>.toolbar-section-label{flex:0 0 22px;height:22px;padding:3px 4px 0;font-size:11px;line-height:16px;color:var(--foreground);text-shadow:none}.toolbar-section[data-tool-group]>:is(.toolbar-section-tools,.action-buttons){flex:1 0 auto;height:auto;min-height:0;padding:0 4px;border:2px solid var(--tool-accent);border-radius:10px;background:color-mix(in srgb,var(--tool-accent) 7%,var(--tile))}.toolbar-section[data-tool-group] :is(.toolbar-icon,.shape-menu-trigger,.action-icon-button){flex-shrink:0;border-radius:6px}.shape-palette-close:focus-visible,.toolbar-section[data-tool-group] :is(.toolbar-icon,.shape-menu-trigger,.action-icon-button):focus-visible{outline:2px solid var(--tool-accent,var(--foreground));outline-offset:-3px}.cadverix-editor .shape-menu-dropdown.shape-palette{border-radius:12px;color:var(--foreground);background:var(--panel);border-color:var(--border);scrollbar-width:thin}.shape-menu-dropdown.shape-palette .shape-menu-title{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;height:52px;padding:0 16px;font-size:22px;line-height:1.2;background:var(--panel);border-bottom:2px solid var(--tool-accent,var(--border))}.shape-palette-close{display:grid;place-items:center;width:36px;height:36px;padding:0;border-radius:6px;color:var(--foreground);background:transparent;cursor:pointer}.shape-palette-close:hover{background:var(--tile)}.shape-menu-dropdown.shape-palette .shape-menu-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px;max-height:none;overflow:visible}.shape-menu-dropdown.shape-palette .shape-menu-item{min-width:0;min-height:72px;gap:12px;padding:8px 12px;border:1px solid var(--border);border-radius:8px;color:var(--foreground);background:var(--tile);font-size:18px;line-height:1.2}.shape-menu-dropdown.shape-palette .shape-menu-item img{width:52px;height:52px}.shape-menu-dropdown.shape-palette .shape-menu-item span{max-width:none;overflow:visible;white-space:normal;overflow-wrap:anywhere}.shape-menu-dropdown.shape-palette .shape-menu-item:focus-visible,.shape-menu-dropdown.shape-palette .shape-menu-item:hover{background:color-mix(in srgb,var(--tool-accent) 12%,var(--tile));border-color:var(--tool-accent);outline:2px solid var(--tool-accent);outline-offset:-2px;box-shadow:none;transform:none}@media (any-pointer:coarse),(max-width:760px){.toolbar-mode-content .toolbar-section[data-tool-group]{padding-bottom:1px}.toolbar-section[data-tool-group]>.toolbar-section-label{flex-basis:18px;height:18px;padding-top:1px;font-size:10px}}@media (max-width:700px){.shape-menu-dropdown.shape-palette .shape-menu-list{grid-template-columns:repeat(2,minmax(0,1fr))}.shape-menu-dropdown.shape-palette .shape-menu-item{min-height:68px;gap:8px;padding:8px;font-size:14px}.shape-menu-dropdown.shape-palette .shape-menu-item img{width:44px;height:44px}.shape-menu-dropdown.shape-palette .shape-menu-title{height:48px;font-size:19px}}@media (max-width:359px){.shape-menu-dropdown.shape-palette .shape-menu-list{grid-template-columns:minmax(0,1fr)}}.toolbar-mode-content.drawing{overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.toolbar-mode-content.drawing::-webkit-scrollbar{display:none}.drawing-toolbar,.drawing-toolbar-host{min-width:max-content;height:100%}.drawing-toolbar{display:flex}.drawing-toolbar .toolbar-section-tools{gap:4px}.drawing-toolbar button,.drawing-toolbar select{min-height:32px;padding:3px 8px;border:1px solid var(--border);border-radius:5px;background:var(--tile);color:var(--foreground);font-size:12px;white-space:nowrap}.drawing-toolbar button{display:inline-flex;align-items:center;justify-content:center;gap:4px;cursor:pointer}.drawing-toolbar button:disabled{opacity:.45;cursor:default}.drawing-toolbar button:hover:not(:disabled){background:var(--panel)}.drawing-workspace{display:flex;flex:1;min-width:0;min-height:0;height:100%;background:var(--background);color:var(--foreground)}.drawing-properties{width:270px;flex:0 0 270px;padding:14px;overflow-y:auto;border-right:1px solid var(--border);background:var(--panel)}.drawing-properties h2{margin:0 0 14px;font-size:17px}.drawing-properties h3{margin:18px 0 8px;font-size:14px;text-transform:capitalize}.drawing-field{display:flex;flex-direction:column;gap:4px;margin-bottom:10px;font-size:12px;font-weight:700}.drawing-field input,.drawing-field select,.drawing-field textarea{width:100%;min-width:0;min-height:34px;padding:6px 8px;border:1px solid var(--border);border-radius:5px;background:var(--tile);color:var(--foreground);font:inherit}.drawing-field textarea{min-height:64px;resize:vertical}.drawing-checkbox{display:flex;gap:8px;align-items:center;font-size:12px;margin:10px 0}.drawing-help{font-size:11px;line-height:1.5;opacity:.8}.drawing-view-list{display:grid;gap:5px}.drawing-delete,.drawing-view-list button,.drawing-warning button{padding:8px;border:1px solid var(--border);border-radius:5px;color:var(--foreground);background:var(--tile);text-align:left;font-size:12px;cursor:pointer}.drawing-view-list button[aria-pressed=true]{border-color:#1684ca;box-shadow:inset 0 0 0 1px #1684ca}.drawing-delete{width:100%;margin-top:14px}.drawing-delete:disabled{opacity:.45}.drawing-warning{padding:8px;margin:10px 0;border:1px solid #d79b22;border-radius:6px;font-size:12px;line-height:1.4}.drawing-warning button{margin-top:6px}.drawing-paper-area{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.drawing-zoom{display:flex;align-items:center;gap:6px;min-height:42px;padding:5px 10px;background:var(--panel);border-bottom:1px solid var(--border);font-size:12px}.drawing-zoom button{display:grid;place-items:center;min-width:32px;min-height:30px;padding:4px 8px;border-radius:4px;color:var(--foreground);background:var(--tile);cursor:pointer}.drawing-zoom span{margin-left:auto}.drawing-paper-viewport{flex:1;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;background:#75808c}.drawing-paper-canvas{display:flex;justify-content:center;align-items:center;width:max-content;min-width:100%;min-height:100%;padding:24px}.drawing-paper-svg{display:block;flex-shrink:0;background:white;box-shadow:0 4px 20px #0004;user-select:none}.drawing-paper-svg [data-drawing-id]{cursor:pointer}.drawing-paper-svg [data-drawing-kind=entity]{pointer-events:all}.drawing-paper-svg [data-dimension-label]{cursor:move}.drawing-status{min-height:40px;padding:8px 12px;font-size:12px;line-height:1.4;background:var(--panel);border-top:1px solid var(--border)}.drawing-status button{margin-left:12px;padding:3px 8px;border-radius:4px;color:var(--foreground);background:var(--tile)}.drawing-properties-toggle{display:none}@media (any-pointer:coarse){.drawing-toolbar select{font-size:16px}.drawing-toolbar button{min-height:36px}}@media (max-width:760px){.drawing-workspace{position:relative;flex-direction:column}.drawing-properties-toggle{display:block;min-height:36px;padding:5px 12px;border-bottom:1px solid var(--border);color:var(--foreground);background:var(--panel);text-align:left}.drawing-properties{display:none;position:absolute;bottom:40px;right:8px;z-index:25;width:min(320px,calc(100% - 16px));max-height:32dvh;box-shadow:3px 4px 12px #0003;border:1px solid var(--border);border-radius:8px}.drawing-properties.open{display:block}.drawing-zoom{min-height:38px}.drawing-zoom span{font-size:10px}.drawing-status{font-size:11px}}@media print{body:has(.drawing-workspace),body:has(.drawing-workspace) .cadverix-editor{height:auto!important;min-height:0!important;overflow:visible!important}body:has(.drawing-workspace) *{visibility:hidden}body:has(.drawing-workspace) :is(.secondary-toolbar,.drawing-properties,.drawing-properties-toggle,.drawing-zoom,.drawing-status){display:none!important}body:has(.drawing-workspace) :is(.editor-body,.drawing-workspace,.drawing-paper-area,.drawing-paper-viewport,.drawing-paper-canvas){position:static!important;display:block!important;height:auto!important;min-height:0!important;width:auto!important;min-width:0!important;padding:0!important;margin:0!important;overflow:visible!important}body:has(.drawing-workspace) .drawing-paper-svg,body:has(.drawing-workspace) .drawing-paper-svg *{visibility:visible}body:has(.drawing-workspace) .drawing-paper-svg{position:relative;left:0;top:0;box-shadow:none;print-color-adjust:exact;-webkit-print-color-adjust:exact}body:has(.drawing-workspace) [data-drawing-ui]{display:none!important}}