.editor-page{background:#101a2b;color:#e7eef2;min-width:320px}
.editor-header{height:70px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:#f7f8f8;color:#172227;border-bottom:1px solid #dbe1e4}
.editor-brand{display:flex;align-items:center;gap:10px;font:800 12px/1.05 Manrope,Arial,sans-serif;letter-spacing:.035em;flex:none}.editor-brand strong{font-size:16px}.editor-brand-mark{display:grid;place-items:center;width:37px;height:37px;background:#19292b;color:#b8ea57;border-radius:9px;font-size:27px;font-weight:400}
.editor-header-title{font:800 14px Manrope,Arial,sans-serif}.editor-stage-tag{display:inline-block;margin-left:12px;padding:6px 8px;border-radius:3px;background:#e9efdf;color:#667e35;font:800 9px 'DM Sans',Arial,sans-serif;letter-spacing:.08em;vertical-align:middle}.editor-header-back{font-size:12px;font-weight:800}.editor-header-back span{margin-left:10px;color:#759e3a}
.editor-subbar{height:55px;padding:0 25px;display:flex;align-items:center;justify-content:space-between;gap:15px;background:#e9eff1;color:#26343b}.editor-back{font-size:12px;font-weight:700}.editor-document{display:flex;align-items:center;gap:9px;padding:6px 10px;border:1px solid #d7e0e4;border-radius:7px;background:#fff;box-shadow:0 1px 3px #17222713}.editor-document-icon{color:#6e9b43}.editor-document label,.editor-version,.editor-subbar-note{font-size:10px;color:#88969c}.editor-document input{border:0;outline:0;width:130px;color:#172227;font-size:12px;font-weight:800;background:transparent}.editor-version{padding-left:10px;border-left:1px solid #e6e9ec}.editor-subbar-note{font-weight:800;text-transform:uppercase;letter-spacing:.07em}
.editor-workspace{display:grid;grid-template-columns:116px minmax(0,1fr) 316px;height:calc(100vh - 125px);min-height:580px;overflow:hidden}
.editor-tools{background:#131f32;border-right:1px solid #2f3d55;overflow-y:auto;padding:8px 6px 16px}.editor-tools-section{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:10px 0;border-bottom:1px solid #35445e}.editor-tools-section:first-child{padding-top:0}.editor-tools-caption{grid-column:1/-1;color:#8294b1;font-size:9px;font-weight:800;letter-spacing:.11em;text-align:center;margin:7px 0 4px}.editor-tool{border:1px solid transparent;background:transparent;color:#d8e4ef;min-height:57px;padding:4px 1px;border-radius:5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:9px}.editor-tool:hover:not(:disabled){background:#243b5b}.editor-tool.is-active{background:#2865e5;color:#fff}.editor-tool:disabled{opacity:.46;cursor:not-allowed}.editor-tool-icon{font-size:24px;line-height:1}
.editor-center{min-width:0;min-height:0;display:flex;flex-direction:column;background:#101a2b}.editor-canvas-top{height:36px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 15px;border-bottom:1px solid #32425e;color:#93a6c1;font-size:10px;font-weight:800;letter-spacing:.07em}.editor-canvas-top>div{display:flex;align-items:center;gap:10px;letter-spacing:0}.editor-canvas-top button{border:1px solid #405474;background:#23344f;color:#dce7f5;border-radius:3px;width:23px;height:23px;line-height:1}.editor-canvas-top strong{min-width:33px;text-align:center;color:#dbe4f2}.editor-canvas-dot{display:inline-block;width:5px;height:5px;background:#b8ea57;border-radius:50%;margin:0 6px 1px}.editor-canvas-shell{position:relative;flex:1;min-height:0;overflow:hidden}.editor-canvas-shell svg{display:block;width:100%;height:100%}.editor-axis{stroke:#547093;stroke-width:1;stroke-dasharray:5 5;opacity:.7}.editor-part{fill:#69788a99;stroke:#8de15a;stroke-width:2}.editor-hole{fill:#101a2b;stroke:#8de15a;stroke-width:2}.editor-dimensions line{stroke:#d7e7f6;stroke-width:1}.editor-dimensions text{fill:#e5f0fa;font:700 15px 'DM Sans',Arial,sans-serif;paint-order:stroke;stroke:#101a2b;stroke-width:5px}.editor-canvas-tip{position:absolute;bottom:18px;left:20px;color:#aebdd0;background:#1b2a43de;border:1px solid #3e5270;padding:9px 12px;border-radius:4px;font-size:11px}.editor-statusbar{height:36px;flex:none;display:flex;align-items:center;gap:0;overflow-x:auto;border-top:1px solid #35465f;color:#a8b8cb;font-size:10px;white-space:nowrap}.editor-statusbar span{padding:0 15px;border-right:1px solid #35465f}.editor-statusbar span:first-child{color:#b8ea57}
.editor-inspector{min-height:0;overflow-y:auto;background:#435672;color:#fff;border-left:1px solid #536b8a;display:flex;flex-direction:column}.editor-inspector-section{padding:18px 15px;border-bottom:1px solid #61738c}.editor-figures{background:#17243a;padding:0 0 12px}.editor-inspector-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:11px;font-weight:800;letter-spacing:.05em;margin-bottom:15px}.editor-inspector-heading span{color:#8da2bd;font-size:9px;font-weight:500;letter-spacing:0}.editor-figures .editor-inspector-heading{padding:13px 15px;margin:0;border-bottom:1px solid #34445d}.editor-figure{min-height:54px;display:flex;align-items:center;gap:9px;padding:7px 14px;border-bottom:1px solid #34445d}.editor-figure strong,.editor-figure small{display:block}.editor-figure strong{font-size:11px}.editor-figure small{font-size:9px;color:#a2b2c7;margin-top:3px}.figure-symbol{display:grid;place-items:center;width:26px;height:26px;border:1px solid #56708d;border-radius:4px;font-size:22px;color:#a4ee72}.figure-operation{margin-left:auto;background:#176f60;color:#d6ffe9;padding:3px 7px;border-radius:3px;font-size:15px}.figure-subtract{background:#804632;color:#ffe3d7}.editor-input-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.editor-input-grid label,.editor-material label{font-size:10px;font-weight:700;color:#dfebf6}.editor-input-grid input,.editor-material select{display:block;width:100%;height:37px;margin-top:5px;border:1px solid #c8d4df;background:#fff;color:#18242a;border-radius:4px;padding:7px 9px;outline:0;font-size:13px}.editor-input-grid input:focus,.editor-material select:focus{border-color:#9ce658;box-shadow:0 0 0 3px #a7e86b55}.editor-shape-note{font-size:10px;line-height:1.5;color:#d1ddec;margin:12px 0 0}.editor-shape-note.is-error{color:#ffd9b5}.editor-material label{display:block;margin-bottom:11px}.editor-material p,.editor-next p{font-size:10px;line-height:1.5;color:#d1ddec;margin:10px 0 0}.editor-next{margin-top:auto}.editor-next strong{display:block;font:800 17px Manrope,Arial,sans-serif}.editor-next button{display:block;width:100%;min-height:43px;background:#b8ea57;color:#1d2a22;border:0;border-radius:4px;margin-top:18px;font-weight:800;font-size:12px}.editor-next button:disabled{opacity:.55;cursor:not-allowed}.editor-next a{display:block;margin-top:13px;color:#e4f3d2;font-size:10px;text-decoration:underline}
@media(max-width:1000px){.editor-workspace{grid-template-columns:116px minmax(0,1fr) 280px}.editor-tools{padding:5px 3px}.editor-tool{font-size:8px}.editor-inspector-section{padding:15px 12px}}
@media(max-width:760px){.editor-header{height:62px;padding:0 14px}.editor-header-title{display:none}.editor-subbar{height:54px;padding:0 12px}.editor-subbar-note{display:none}.editor-workspace{height:auto;min-height:0;display:flex;flex-direction:column;overflow:visible}.editor-tools{order:1;display:flex;overflow-x:auto;border-right:0;border-bottom:1px solid #33425e;padding:0 8px}.editor-tools-section{display:flex;align-items:center;flex:none;border-bottom:0;border-right:1px solid #35445e;padding:3px 7px}.editor-tools-caption{display:none}.editor-tool{width:58px;min-height:52px}.editor-center{order:2;height:480px;flex:none}.editor-inspector{order:3;overflow:visible}.editor-figures{padding-bottom:0}.editor-input-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-next{margin-top:0}.editor-canvas-tip{font-size:10px;max-width:70%}}
@media(max-width:440px){.editor-header-back{font-size:10px}.editor-brand{font-size:10px}.editor-brand strong{font-size:13px}.editor-document input{width:95px}.editor-back{font-size:10px}.editor-center{height:390px}.editor-canvas-top{padding:0 7px;font-size:9px}.editor-canvas-top>div>span{display:none}.editor-statusbar span{padding:0 8px}.editor-input-grid{gap:9px}}
#editor-minor-grid path{stroke:#2c3a52;stroke-opacity:.26}
#editor-major-grid path{stroke:#40526b;stroke-opacity:.34}
.editor-axis{stroke:#647895;opacity:.36}
.editor-rulers rect{fill:#18253a;stroke:#34455e;stroke-width:.7}
.editor-rulers #editor-ruler-corner{fill:#1d2e46}
.editor-rulers line{stroke:#627894;stroke-width:1}
.editor-rulers .ruler-minor{opacity:.46}
.editor-rulers .ruler-major{opacity:.76}
.editor-rulers text{fill:#91a4ba;font:600 9px 'DM Sans',Arial,sans-serif}
.editor-canvas-shell svg{cursor:grab;touch-action:none}
.editor-canvas-shell svg.is-panning{cursor:grabbing}
.editor-canvas-tip{pointer-events:none}
.editor-hole-measures>line{stroke:#afc4d8;stroke-width:1;stroke-dasharray:4 4;opacity:.64;pointer-events:none}
.editor-hole-measures #editor-hole-center-marker{fill:#95e259;stroke:#142033;stroke-width:1;pointer-events:none}
.editor-measure-control{cursor:pointer}
.editor-measure-control[data-dimension="holeX"]{cursor:ew-resize}
.editor-measure-control[data-dimension="holeY"]{cursor:ns-resize}
.editor-measure-control[data-dimension="diameter"]{cursor:nwse-resize}
.editor-measure-control line{stroke:#b8d0e6;stroke-width:1.2;pointer-events:stroke}
.editor-measure-control rect{fill:#1a2b46;stroke:#6782a3;stroke-width:1}
.editor-measure-control:hover rect{fill:#234b83;stroke:#95c2ff}
.editor-measure-control text{fill:#f2f7ff;font:700 13px 'DM Sans',Arial,sans-serif;paint-order:stroke;stroke:#15233a;stroke-width:2;pointer-events:none}
.editor-measure-control circle{fill:#a4ec65;stroke:#142033;stroke-width:1.5}
.editor-dimension-input{position:absolute;z-index:5;width:96px;height:35px;padding:5px 8px;border:2px solid #8ac1ff;border-radius:5px;background:#183e76;color:#fff;font:700 14px 'DM Sans',Arial,sans-serif;box-shadow:0 5px 18px #0008;outline:none}
.editor-dimension-input:focus{border-color:#a7ec67}
.editor-dimensions text[data-dimension="width"]{cursor:ew-resize}
.editor-dimensions text[data-dimension="height"]{cursor:ns-resize}
.editor-dimensions text[data-dimension]:hover{fill:#b7f18a}
#editor-svg.hide-sizes .editor-dimensions,#editor-svg.hide-sizes .editor-hole-measures,#editor-svg.hide-sizes #editor-added-measures .draft-measure-line,#editor-svg.hide-sizes #editor-added-measures .draft-measure-chip,#editor-svg.hide-sizes #editor-added-measures .template-measure-line,#editor-svg.hide-sizes #editor-added-measures .template-measure-chip,#editor-svg.hide-sizes #editor-fillets .fillet-label,#editor-svg.hide-sizes #editor-fillets line{display:none}
#editor-svg.has-imported-template .editor-dimensions{display:none}
.editor-production{border-top:1px solid #34445d;padding:12px 15px 0;color:#a4ee72;font-size:11px}
.editor-production.is-error{color:#ff8c89}
.editor-production p{margin:5px 0 0;line-height:1.4}
#editor-svg #editor-part.has-corner-fillets{stroke:transparent;pointer-events:all}
#editor-fillets line{stroke:#a4b8d0;stroke-width:1;pointer-events:none}
#editor-fillets .fillet-label{cursor:text}
#editor-fillets .fillet-label rect{fill:#142238;stroke:#728aa8;stroke-width:.7}
#editor-fillets .fillet-label text{fill:#eef5ff;font-family:'DM Sans',Arial,sans-serif;font-weight:700}
#editor-fillets .fillet-hit{fill:#263a54;stroke:#a8c7e8;stroke-width:1;cursor:crosshair}
#editor-fillets .fillet-hit:hover{fill:#f9ab44;stroke:#ffdf9d}
#editor-svg[data-tool=fillet]{cursor:crosshair}
#editor-svg.has-no-material #editor-part{stroke:#8ca1bb;stroke-dasharray:8 6}
#editor-svg.has-no-material #editor-hole{stroke:#62a9ff}
.editor-added-shape{fill:#9fbacb55;stroke:#8de15a;stroke-width:2;cursor:pointer}
.editor-added-shape.is-selected{stroke:#9ac8ff;stroke-width:2.5}
.editor-added-shape.is-preview{stroke:#b8ea57;stroke-dasharray:5 4;opacity:.8;pointer-events:none}
line.editor-added-shape,path.editor-added-shape{fill:none;stroke-width:3;pointer-events:stroke}
.editor-canvas-shell svg[data-tool="rect"],.editor-canvas-shell svg[data-tool="circle"],.editor-canvas-shell svg[data-tool="line"],.editor-canvas-shell svg[data-tool="arc"],.editor-canvas-shell svg[data-tool="ellipse"],.editor-canvas-shell svg[data-tool="slot"],.editor-canvas-shell svg[data-tool="polygon"]{cursor:crosshair}
.editor-canvas-shell svg.is-drawing{cursor:crosshair}
.editor-figure-draft{width:100%;border:0;border-bottom:1px solid #34445d;background:transparent;color:#fff;text-align:left;cursor:pointer}
.editor-figure-draft:hover,.editor-figure-draft.is-selected{background:#274162}
.editor-figure-draft .figure-symbol{flex:none}
.editor-figure-row{gap:7px;padding:6px 9px}
.editor-figure-row.is-selected{background:#274162}
.editor-figure-select{min-width:0;flex:1;border:0;background:transparent;color:#fff;text-align:left;cursor:pointer;padding:3px 0}
.editor-figure-select:hover strong{color:#b8ea57}
.editor-figure-actions{display:flex;gap:3px;margin-left:auto}
.editor-figure-actions .figure-operation{margin-left:0;border:1px solid #56708d;opacity:.55;min-width:26px;min-height:27px;cursor:pointer}
.editor-figure-actions .figure-operation.is-current{opacity:1;border-color:#9ce658;box-shadow:0 0 0 1px #9ce65855}
.editor-figure-remove{border:0;background:transparent;color:#adbed1;font-size:19px;cursor:pointer;padding:0 3px}
.editor-figure-remove:hover{color:#ffb5a6}
#editor-selected-fields>strong{display:block;margin:0 0 12px;font-size:12px}
#editor-selected-fields[hidden],#editor-base-fields[hidden]{display:none}
.editor-part.is-selected,.editor-hole.is-selected{stroke:#9ac8ff;stroke-width:3}
.editor-hole.is-add{fill:#9fbacb88}
.editor-added-shape.is-subtract{fill:#101a2b}
#editor-added-measures .draft-measure-line{stroke:#a2b5ce;stroke-width:.8;opacity:.7;pointer-events:none}
#editor-added-measures .draft-measure-chip{cursor:pointer}
#editor-added-measures .draft-measure-chip rect{fill:#17263e;stroke:#6885aa;stroke-width:.8}
#editor-added-measures .draft-measure-chip:hover rect{fill:#244d83;stroke:#a4e974}
#editor-added-measures .draft-measure-chip text{fill:#e9f1fb;font:600 10px 'DM Sans',Arial,sans-serif;pointer-events:none}
#editor-added-measures .template-measure-line{stroke:#9cafc9;stroke-width:.8;opacity:.72;pointer-events:none}
#editor-added-measures .template-measure-chip{pointer-events:none}
#editor-added-measures .template-measure-chip rect{fill:#16243a;stroke:#67809d;stroke-width:.8}
#editor-added-measures .template-measure-chip:hover rect{fill:#244d83;stroke:#a4e974}
#editor-added-measures .template-measure-chip text{fill:#e9f1fb;font:600 10px 'DM Sans',Arial,sans-serif;pointer-events:none}
#editor-added-measures .draft-move-handle{cursor:pointer}
#editor-added-measures .draft-move-hit{fill:transparent;stroke:none}
#editor-added-measures .draft-move-ring{fill:none;stroke:#8de15a;stroke-width:1.4;opacity:0;pointer-events:none}
#editor-added-measures .draft-move-square{fill:#86b9f5;stroke:#1b344d;stroke-width:1.2;pointer-events:none}
#editor-added-measures .draft-move-handle:hover .draft-move-ring{opacity:1}
#editor-added-measures .draft-move-handle:hover .draft-move-square{fill:#a7ed68;stroke:#2a6f32}
#editor-svg.has-draft-selection .editor-hole-measures{display:none}
#editor-result{fill:#69788a99;stroke:#8de15a;stroke-width:1.5;pointer-events:none}
#editor-part,#editor-hole,.editor-added-shape,.editor-added-shape.is-subtract,.editor-hole.is-add{fill:transparent}
.editor-added-shape.is-preview{fill:#9fbacb55}
.editor-added-shape.is-imported{fill:transparent;fill-rule:evenodd;pointer-events:all;cursor:default}
#editor-svg.has-imported-template #editor-part,#editor-svg.has-imported-template #editor-hole,#editor-svg.has-imported-template .editor-hole-measures{display:none}

/* Fixed columns keep base and added shapes aligned, including the delete slot. */
.editor-figure-row{display:grid;grid-template-columns:28px minmax(0,1fr) 59px 22px;align-items:center;gap:7px;min-height:54px;padding:8px 10px;box-sizing:border-box}
.editor-figure-row .figure-symbol{box-sizing:border-box;width:28px;height:28px;display:flex;align-items:center;justify-content:center;line-height:1;font-size:0}
.figure-symbol svg{display:block;width:20px;height:20px;flex:none}
.editor-figure-select{overflow:hidden}
.editor-figure-select strong,.editor-figure-select small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.35}
.editor-figure-actions{display:grid;grid-template-columns:28px 28px;gap:3px;margin:0}
.editor-figure-actions .figure-operation{box-sizing:border-box;width:28px;height:28px;min-width:0;min-height:0;padding:0;display:flex;align-items:center;justify-content:center;font:16px/1 Arial,sans-serif}
.editor-figure-remove{box-sizing:border-box;width:22px;height:28px;padding:0;display:flex;align-items:center;justify-content:center;font:20px/1 Arial,sans-serif}

.editor-text-shape{fill:#8de15a;stroke:none;cursor:pointer;user-select:none}.editor-text-shape.is-selected{fill:#9ac8ff} #editor-svg[data-tool=text]{cursor:text}
#editor-added-measures .draft-measure-chip{cursor:ew-resize}
#editor-added-measures [data-draft-dimension^=y],#editor-added-measures [data-draft-dimension=height]{cursor:ns-resize}
#editor-added-measures [data-draft-dimension=diameter]{cursor:nesw-resize}
#editor-added-measures .draft-measure-chip[data-draft-dimension=diameter][aria-label="Внутренний диаметр"]{cursor:nwse-resize}
#editor-added-measures .template-measure-chip[data-draft-dimension=width]{cursor:ew-resize}
#editor-added-measures .template-measure-chip[data-draft-dimension=height]{cursor:ns-resize}

.editor-text-shape{fill:transparent;stroke:#8de15a;stroke-width:1;pointer-events:all}.editor-text-shape.is-selected{fill:#9ac8ff22;stroke:#9ac8ff}.editor-input-grid select{width:100%;height:37px;margin-top:5px;border-radius:4px;padding:4px;color:#18242a;background:white}.editor-text-help{font-size:10px;line-height:1.5;color:#cbd7e6;margin:4px 0}.editor-next .editor-dxf-button{background:#b8ea57}

/* Keep problem geometry identifiable even when another item is selected. */
#editor-svg .has-geometry-error{stroke:#ffac76!important;stroke-dasharray:6 3;stroke-width:2.2}
.editor-figure-row.has-geometry-error{box-shadow:inset 3px 0 #ffac76;background:#49332655}
.editor-figure-row.has-geometry-error .editor-figure-select strong,.editor-figure-row.has-geometry-error .editor-figure-select small{color:#ffc49c}
.editor-issue-marker{cursor:pointer;pointer-events:all}
.editor-issue-marker path{fill:#172437;stroke:#ffac76;stroke-width:1.6}
.editor-issue-marker text{fill:#ffca9e;stroke:none;font:bold 14px sans-serif;pointer-events:none}
.editor-issue-marker:focus path,.editor-issue-marker:hover path{fill:#68432b}
.editor-issue-link{display:inline-block;margin:7px 6px 0 0;padding:4px 7px;border:1px solid #ba7954;border-radius:4px;background:#392c29;color:#ffd0af;font:inherit;cursor:pointer}

#editor-drawing-tools .editor-tool-icon{display:flex;align-items:center;justify-content:center;width:28px;height:28px;margin-inline:auto;line-height:1}
.editor-tool-icon svg{display:block;width:24px;height:24px;flex:none}
.editor-canvas-shell svg[data-tool="polyline"]{cursor:crosshair}
.polyline-start-marker{fill:#b5ec5c;stroke:#173957;stroke-width:2;pointer-events:none}
#editor-added-measures .poly-vertex-handle{cursor:pointer}
#editor-added-measures .poly-vertex-hit{fill:transparent;stroke:none}
#editor-added-measures .poly-vertex-ring{fill:none;stroke:#a3ed65;stroke-width:1.5;opacity:0;pointer-events:none}
#editor-added-measures .poly-vertex-square{fill:#86b9f5;stroke:#1b344d;stroke-width:1.2;pointer-events:none}
#editor-added-measures .poly-vertex-handle:hover .poly-vertex-ring{opacity:1}
#editor-added-measures .poly-vertex-handle:hover .poly-vertex-square{fill:#a7ed68;stroke:#2a6f32}

.editor-header-links{display:flex;align-items:center;gap:20px}@media(max-width:440px){.editor-header-links{gap:9px}}
.editor-join-tools{grid-template-columns:1fr;gap:6px}
.editor-join-tolerance{display:block;color:#aebfd4;font-size:9px;font-weight:700;text-align:center}
.editor-join-tolerance,.editor-join-button{width:100%;min-width:0;box-sizing:border-box}
.editor-join-tolerance input{display:block;width:100%;height:34px;box-sizing:border-box;margin:5px auto 0;padding:3px 6px;border:1px solid #58718f;border-radius:4px;background:#1d2d45;color:#fff;text-align:center;font:700 13px 'DM Sans',Arial,sans-serif}
.editor-join-button{min-height:49px;border-color:#506783;color:#dceafb}
.editor-join-button .editor-tool-icon{font-size:20px}
.editor-join-message{min-height:0;color:#b8ea80;font-size:9px;line-height:1.3;text-align:center;overflow-wrap:anywhere}
#editor-join-preview{pointer-events:none}
#editor-join-preview line{stroke:#b8ea57;stroke-width:3;stroke-dasharray:4 3}
#editor-join-preview circle{fill:#b8ea57;stroke:#15243a;stroke-width:1}
.editor-canvas-shell svg[data-tool="measure"]{cursor:crosshair}
#editor-distance-measure{pointer-events:none}
#editor-distance-measure .distance-line{stroke:#f6cf68;stroke-width:1.5;stroke-dasharray:5 3}
#editor-distance-measure .distance-point{fill:#f6cf68;stroke:#142033;stroke-width:1.2}
#editor-distance-measure .distance-point.is-snapped{fill:#8de15a;stroke:#142033;stroke-width:1.5}
#editor-distance-measure .distance-snap-halo{fill:#8de15a22;stroke:#8de15a;stroke-width:1.4}
#editor-distance-measure .distance-chip{fill:#1b2e4b;stroke:#f6cf68;stroke-width:1}
#editor-distance-measure .distance-label{fill:#fff2ca;font:700 11px 'DM Sans',Arial,sans-serif}
#editor-measure-status{color:#f6cf68}
@media(max-width:760px){.editor-join-tools{display:grid;min-width:115px;grid-template-columns:1fr}.editor-join-tools .editor-tools-caption{display:block}.editor-join-tools .editor-join-button{width:100%}}
/* Phone and tablet editor menu. Desktop tools keep their existing layout. */
.editor-mobile-menu-toggle,.editor-mobile-menu-head,.editor-mobile-menu-scrim{display:none}
.editor-mobile-menu-head + .editor-tools-section{padding-top:0}
@media(max-width:760px){
  .editor-mobile-menu-toggle{order:0;display:flex;align-items:center;gap:12px;width:100%;min-height:50px;padding:8px 15px;border:0;border-bottom:1px solid #35445e;background:#131f32;color:#e4eff9;font:800 13px Manrope,Arial,sans-serif;text-align:left}
  .editor-mobile-menu-icon{font-size:23px;font-weight:400;line-height:1}
  .editor-mobile-menu-current{margin-left:auto;color:#a8bad0;font-size:11px;font-weight:600}
  .editor-mobile-menu-scrim.is-open{display:block;position:fixed;inset:0;z-index:1000;border:0;background:#07101bb8}
  .editor-tools,.editor-tools.is-mobile-open{order:initial;position:fixed;top:0;bottom:0;left:0;z-index:1001;width:min(320px,88vw);max-height:100dvh;overflow-y:auto;overflow-x:hidden;padding:12px 16px 24px;border-right:1px solid #42536c;border-bottom:0;box-shadow:10px 0 35px #06101b70}
  .editor-tools{display:none}
  .editor-tools.is-mobile-open{display:block}
  .editor-mobile-menu-head{display:flex;align-items:center;justify-content:space-between;min-height:44px;margin-bottom:8px;color:#e4eff9;font:800 15px Manrope,Arial,sans-serif}
  .editor-mobile-menu-close{width:36px;height:36px;border:1px solid #43536b;border-radius:5px;background:#24344d;color:#e4eff9;font-size:24px;line-height:1}
  .editor-tools-section,.editor-join-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-width:0;padding:10px 0;border-right:0;border-bottom:1px solid #35445e}
  .editor-tools-caption,.editor-join-tools .editor-tools-caption{display:block;grid-column:1/-1;margin:4px 0 5px;text-align:left}
  .editor-tool,.editor-join-tools .editor-join-button{width:100%;min-height:62px;padding:6px 3px;font-size:11px}
  .editor-join-tolerance,.editor-join-message{grid-column:1/-1}
  body.editor-mobile-menu-open{overflow:hidden}
}

/* Denser tool drawer on phones; desktop toolbar remains unchanged. */
@media(max-width:760px){
  .editor-tools,.editor-tools.is-mobile-open{width:min(308px,88vw);padding:8px 12px 16px}
  .editor-mobile-menu-head{min-height:38px;margin-bottom:4px}
  .editor-tools-section,.editor-join-tools{grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;padding:6px 0}
  .editor-tools-caption,.editor-join-tools .editor-tools-caption{margin:3px 0 4px}
  .editor-tool,.editor-join-tools .editor-join-button{min-height:53px;padding:4px 1px;gap:2px;font-size:9px}
  .editor-tool-icon{font-size:21px}
  .editor-tool-icon svg{width:21px;height:21px}
  #editor-drawing-tools .editor-tool-icon{width:22px;height:22px}
  .editor-join-tools .editor-join-button{grid-column:1/-1}
}
/* WeCut brand matches the main site on desktop and mobile. */
.editor-header .editor-brand{display:block;flex:none;width:210px;height:64px;background:url('/wecut-logo-dark-preview.png') center/contain no-repeat;mix-blend-mode:multiply}
.editor-header .editor-brand>span{display:none}
@media(max-width:760px){.editor-header .editor-brand{width:155px;height:52px}}
