#shape-workspace{flex:1;min-width:0;height:100dvh;display:flex;flex-direction:column;background:#f7f8fa;color:#343b43;overflow:hidden;font-family:inherit}#shape-workspace *{box-sizing:border-box}#shape-workspace .sw-header{display:flex;align-items:center;gap:14px;padding:14px 22px;background:white;border-bottom:1px solid #ddd}#shape-workspace h1{font-size:20px;margin:0}#shape-workspace .sw-header small{color:#7a8490}#shape-workspace input,#shape-workspace button,#shape-workspace select{font:inherit;border:1px solid #d7dce1;border-radius:5px;background:white;color:inherit;padding:8px;min-width:0}#shape-workspace button{cursor:pointer}#shape-workspace button:hover,#shape-workspace button[aria-pressed=true]{background:#f1e7d9;border-color:#b28a55}#shape-workspace button:disabled{opacity:.4;cursor:default}#shape-workspace .sw-layout{display:flex;flex:1;min-height:0}#shape-workspace .sw-panel{width:280px;flex-shrink:0;padding:16px;overflow:auto;background:#fff;border-left:1px solid #dde1e5}#shape-workspace .sw-tools{display:grid;grid-template-columns:1fr 1fr;gap:7px}#shape-workspace .sw-tools button:last-child{grid-column:1/-1}#shape-workspace h2{font-size:14px;margin:20px 0 10px}#shape-workspace label{display:flex;flex-direction:column;gap:5px;font-size:12px;margin:9px 0}#shape-workspace input[type=number]{direction:ltr;width:100%}#shape-workspace .sw-row{display:flex;gap:7px}#shape-workspace .sw-row>*{flex:1}#shape-workspace .sw-list{display:grid;gap:6px}#shape-workspace .sw-list button{text-align:right}#shape-workspace .sw-canvas-wrap{flex:1;position:relative;min-width:0;overflow:hidden;direction:ltr}#shape-workspace svg{display:block;width:100%;height:100%;touch-action:none;user-select:none}#shape-workspace .sw-actions{position:absolute;top:12px;left:12px;display:flex;gap:6px;direction:rtl}#shape-workspace .sw-hint{position:absolute;bottom:12px;left:15px;right:15px;pointer-events:none;text-align:center;color:#737b85;font-size:12px}#shape-workspace .sw-message{min-height:24px;color:#a13f34;font-size:12px;line-height:1.5}#shape-workspace .sw-points{max-height:240px;overflow:auto}#shape-workspace .sw-point{display:grid;grid-template-columns:20px 1fr 1fr 28px;gap:4px;align-items:center;margin:5px 0;direction:ltr}#shape-workspace .sw-point button{padding:4px}#shape-workspace .sw-summary{font-size:12px;line-height:1.8;color:#717b87}#shape-workspace .sw-title{max-width:220px}#shape-workspace .sw-file{display:none}@media(max-width:800px){#shape-workspace .sw-panel{width:220px;padding:10px}#shape-workspace .sw-header{flex-wrap:wrap;padding:10px}#shape-workspace .sw-header small{display:none}}

#shape-workspace .sw-segment{display:grid;grid-template-columns:1fr 1fr;gap:4px 8px;padding:8px;margin:0 0 12px;background:#f7f4ef;border:1px solid #e5dccf;border-radius:5px}#shape-workspace .sw-segment>span{grid-column:1/-1;font-size:11px;color:#967449}#shape-workspace .sw-segment label{margin:2px 0}#shape-workspace .sw-segment select{width:100%;padding:6px 2px;font-size:11px}#shape-workspace .sw-points{max-height:48vh}
/* Match the compact room planner controls within this workspace only. */
#shape-workspace{font-family:'Google Sans',Arial,sans-serif;font-size:11px;color:#73808c;background:#f7f8fa}
#shape-workspace .sw-header{min-height:49px;padding:8px 20px;gap:10px;border-bottom:1px solid #e0e3e7}
#shape-workspace h1{font-size:14px;font-weight:500;color:#4c5661;line-height:1.5}
#shape-workspace h2{font-size:12px;font-weight:500;color:#946f41;margin:16px 0 9px}
#shape-workspace .sw-header small{font-size:10px;color:#929aa5}
#shape-workspace :is(input,button,select){font-family:inherit;font-size:11px;font-weight:400;line-height:1.5;min-height:30px;border:1px solid #d9dfe6;border-radius:4px;padding:7px;color:#73808c;box-shadow:none}
#shape-workspace :is(input,select){background:#f4f6f8}
#shape-workspace button{background:#fff;transition:background .16s,color .16s,border-color .16s}
#shape-workspace button:hover{background:#f3e8d9;color:#97682f;border-color:#be965e}
#shape-workspace button[aria-pressed=true]{background:#f3e8d9;color:#97682f;border-color:#be965e}
#shape-workspace button:focus-visible{outline:2px solid #b9905c;outline-offset:2px}
#shape-workspace :is(input,select,textarea):is(:focus,:focus-visible){border-color:#c9ae8e!important;outline:none;box-shadow:none}
#shape-workspace .sw-panel{width:270px;background:#f1f3f5;padding:18px 24px;border-left:1px solid #dfe3e7}
#shape-workspace .sw-tools{grid-template-columns:1fr 1fr;gap:6px}
#shape-workspace .sw-tools button{font-size:11px;min-height:38px}
#shape-workspace .sw-tools .sw-circle-tool{cursor:grab;touch-action:none;user-select:none;display:flex;align-items:center;justify-content:center;gap:8px}
#shape-workspace .sw-tools .sw-circle-tool:active{cursor:grabbing}
#shape-workspace .sw-circle-icon{font-size:24px;line-height:1;color:#a47843}
#shape-workspace .sw-circle-settings{padding-bottom:15px;margin-bottom:14px;border-bottom:1px solid #dfe3e7}
#shape-workspace .sw-mode-tabs{display:flex;gap:5px}
#shape-workspace .sw-mode-tabs button{flex:1;padding:7px 3px;font-size:10px}
#shape-workspace .sw-circle-size{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#shape-workspace .sw-circle-help{font-size:10px;line-height:1.8;color:#929aa5;margin:8px 0 0}
#shape-workspace label{font-size:11px;color:#73808c;margin:9px 0;gap:5px}
#shape-workspace .sw-summary{font-size:10px;line-height:1.8;color:#929aa5}
#shape-workspace .sw-list button{font-size:11px;background:#fff;border:1px solid #e0e4e8;min-height:34px}
#shape-workspace .sw-list button[aria-pressed=true]{background:#f1e8da;border-color:#b58a53;color:#946d3b}
#shape-workspace [data-action=apply],#shape-workspace [data-action=close]{background:#a47843;color:#fff;border-color:#a47843;font-size:11px;width:100%;margin:8px 0}
#shape-workspace .sw-actions button{font-size:11px;min-height:32px;padding:7px 10px;border:0;background:#fff;box-shadow:0 2px 9px #2634480a}
#shape-workspace .sw-actions :is([data-action=undo],[data-action=redo]){color:#98652f;background:#fff8ed}
#shape-workspace .sw-hint{font-size:10px;color:#929aa5}
#shape-workspace .sw-message{font-size:11px}
#shape-workspace [hidden]{display:none!important}
@media(max-width:800px){#shape-workspace .sw-panel{width:220px;padding:12px}#shape-workspace .sw-header{padding:8px 12px}}
/* The shaped-work rail follows the room planner rail dimensions and controls. */
#shape-workspace{padding:0;margin:0;background:#f7f8f9}
#shape-workspace .sw-layout{height:100%;gap:0}
#shape-workspace .sw-panel{box-sizing:border-box;width:260px;padding:0 14px;background:#f2f3f5;border-left:1px solid #dedfe2;display:flex;flex-direction:column;gap:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bfc5cd transparent;scrollbar-gutter:stable}
#shape-workspace .sw-view-dock{position:sticky;top:0;z-index:12;background:#f2f3f5;padding:13px 0 12px;border-bottom:1px solid #dce1e7;margin-bottom:5px;flex-shrink:0}
#shape-workspace .sw-view-dock>span{display:block;font-size:10px;color:#87919e;margin-bottom:8px}
#shape-workspace .sw-view-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:65px;padding:9px 3px;border:1px solid #343b45;border-radius:6px;font-size:11px;background:#343b45;color:#fff;width:calc((100% - 12px)/3)}
#shape-workspace .sw-view-button svg{width:23px;height:23px;stroke:currentColor;stroke-width:1.5;fill:none}
#shape-workspace .sw-tools-heading{display:grid;gap:5px;padding:22px 4px 18px}
#shape-workspace .sw-tools-heading>span{font-size:10px;color:#8d929a}
#shape-workspace .sw-tools-heading>strong{font-size:18px;font-weight:600;color:#30343b}
#shape-workspace .sw-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;flex-shrink:0}
#shape-workspace .sw-tools button,#shape-workspace .sw-tools .sw-circle-tool{position:relative;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;min-width:0;min-height:53px;padding:10px 8px;background:#fafbfc;border:1px solid #e3e6e9;border-radius:6px;text-align:right;color:#79828c}
#shape-workspace .sw-tools button:last-child{grid-column:1/-1}
#shape-workspace .sw-tools button:hover{background:#fff;transform:translateY(-1px);border-color:#c6b399}
#shape-workspace .sw-tools button[aria-pressed=true]{background:#f2e7d8;border-color:#b58a53;color:#946d3b}
#shape-workspace .sw-tools button svg{width:22px;height:22px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
#shape-workspace .sw-tools button span{font-size:10px;line-height:1.5}
#shape-workspace .sw-circle-settings{padding-top:16px;margin-top:18px;border-top:1px solid #dfe3e7}
#shape-workspace .sw-circle-size input,#shape-workspace .sw-circle-size select{background:#fff;border:0;min-height:36px;font-size:12px;border-radius:6px;text-align:right}
#shape-workspace .sw-mode-tabs button{min-height:36px;background:#fff;border:1px solid #dce1e7;border-radius:6px;font-size:11px}
#shape-workspace .sw-mode-tabs button[aria-pressed=true]{background:#f3e8d9;color:#97682f;border-color:#be965e}
#shape-workspace .sw-panel>h2{font-size:12px}
@media(max-width:1100px){#shape-workspace .sw-panel{width:230px;padding:0 14px}}
#shape-workspace .sw-shape-dock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;position:sticky;top:0;z-index:12;padding:13px 0 12px;border-bottom:1px solid #dce1e7;background:#f2f3f5;flex-shrink:0}
#shape-workspace .sw-shape-dock button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:65px;padding:9px 3px;background:#343b45;color:#fff;border:1px solid #343b45;border-radius:6px;font-size:11px;line-height:1.5}
#shape-workspace .sw-shape-dock button:hover{background:#454d58;border-color:#454d58}
#shape-workspace .sw-shape-dock button[aria-pressed=true]{background:#343b45;color:#fff;border-color:#b58a53;box-shadow:inset 0 -3px #b58a53}
#shape-workspace .sw-shape-dock button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5;flex-shrink:0;pointer-events:none}
#shape-workspace .sw-shape-dock .sw-circle-tool{cursor:grab;touch-action:none;user-select:none}
#shape-workspace .sw-shape-dock .sw-circle-tool:active{cursor:grabbing}
#shape-workspace .sw-select-tool{border-radius:6px;min-height:32px;font-size:11px}
/* Use the room view selector's exact control styling for the six drawing tools. */
#shape-workspace .sw-shape-dock{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 5px;padding:13px 0 12px}
#shape-workspace .sw-shape-dock .sw-dock-title{grid-column:1/-1;display:block;font-size:10px;color:#87919e;margin-bottom:2px}
#shape-workspace .sw-shape-dock button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:65px;padding:9px 3px;color:#76818e;background:#fff;border:1px solid #d9dfe6;border-radius:6px;font-size:11px;box-shadow:none;transition:background .16s,color .16s,border-color .16s}
#shape-workspace .sw-shape-dock button:hover{color:#76818e;background:#fafbfc;border-color:#c6cdd6}
#shape-workspace .sw-shape-dock button[aria-pressed=true]{background:#343b45;color:#fff;border-color:#343b45;box-shadow:none}
#shape-workspace .sw-shape-dock button svg{width:23px;height:23px;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;fill:none}
#shape-workspace .sw-shape-dock button:focus-visible{outline:2px solid #b58b52;outline-offset:2px}
#shape-workspace .sw-parameters{grid-column:1/-1;display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .25s ease,opacity .2s ease;min-width:0}
#shape-workspace .sw-parameters.is-open{grid-template-rows:1fr;opacity:1}
#shape-workspace .sw-parameters-inner{min-height:0;overflow:hidden}
#shape-workspace .sw-parameters .sw-circle-settings{margin:0;padding:0 0 4px;border:0}
#shape-workspace .sw-parameters .sw-inspector{padding:0 0 4px}
#shape-workspace .sw-parameters h2{margin:12px 0 8px}
#shape-workspace .sw-parameters button{display:inline-flex;min-height:30px;padding:6px 8px;gap:4px;font-size:11px;flex-direction:row;border-radius:6px!important;background:#fff;color:#73808c;border:1px solid #d9dfe6;box-shadow:none}
#shape-workspace .sw-parameters button[aria-pressed=true]{background:#f3e8d9;color:#97682f;border-color:#be965e}
#shape-workspace .sw-parameters :is([data-action=apply],[data-action=close]){background:#a47843;color:#fff;border-color:#a47843}
#shape-workspace .sw-parameters .sw-points{max-height:40vh}
#shape-workspace .sw-canvas-wrap>.sw-message{position:absolute;bottom:40px;left:16px;right:16px;pointer-events:none;direction:rtl;text-align:center;margin:0}
#shape-workspace .sw-actions [data-action=reset]{color:#a05238}
@media(prefers-reduced-motion:reduce){#shape-workspace .sw-parameters{transition:none}}
#shape-workspace .sw-measure-tabs{display:flex;gap:6px;margin:8px 0}
#shape-workspace .sw-measure-tabs button{flex:1;justify-content:center}
#shape-workspace .sw-measure-tabs button[aria-pressed=true]{background:#343b45;color:#fff;border-color:#343b45}
#shape-workspace .sw-ellipse-settings{padding-bottom:4px}
#shape-workspace .sw-hit{pointer-events:stroke}
#shape-workspace .sw-canvas-wrap .sw-hit *{pointer-events:stroke}
#shape-workspace .sw-hint{display:none}

/* Keep intrinsic form widths within the full-width parameter grid cell. */
#shape-workspace .sw-parameters{min-width:0;max-width:100%;width:100%}
#shape-workspace .sw-parameters-inner{min-width:0;max-width:100%;padding-inline:1px}
#shape-workspace .sw-parameters :is(section,label,.sw-inspector,.sw-row,.sw-point,.sw-segment){min-width:0;max-width:100%;box-sizing:border-box}
#shape-workspace .sw-parameters :is(input,select){box-sizing:border-box;min-width:0;max-width:100%;width:100%}
#shape-workspace .sw-parameters .sw-end-tool,#shape-workspace [data-transform-close],#shape-workspace .sw-layout-tools-wrap [data-layout-close]{display:flex;width:100%;align-items:center;justify-content:center;margin:12px 0 4px;min-height:34px;background:#343b45;border-color:#343b45;color:#fff;border-radius:6px!important}

#shape-workspace .sw-line-readout{position:absolute;bottom:12px;left:15px;right:15px;direction:rtl;text-align:center;font-size:11px;color:#73808c;line-height:1.8;pointer-events:none;padding:5px 9px;background:#f7f8f9e8;border-radius:6px;font-variant-numeric:tabular-nums}

#shape-workspace .sw-snap-modes{position:absolute;top:12px;left:50%;transform:translateX(-50%);display:flex;gap:5px;direction:rtl;z-index:3;background:#f7f8f9ed;padding:4px;border-radius:6px}
#shape-workspace .sw-snap-modes button{white-space:nowrap;border-radius:6px!important;font-size:11px;min-height:32px;padding:6px 9px}
#shape-workspace .sw-snap-modes button[aria-pressed=true]{background:#343b45;color:#fff;border-color:#343b45}
#shape-workspace .sw-actions{top:60px}
#shape-workspace .sw-line-readout{pointer-events:auto;left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:calc(100% - 30px);padding:8px 12px}
#shape-workspace .sw-line-values{display:flex;justify-content:center;gap:8px;align-items:end}
#shape-workspace .sw-line-values label{margin:4px 0;text-align:right;font-size:10px}
#shape-workspace .sw-line-values input{width:100px;font-size:11px;direction:ltr;border-radius:6px!important;background:white;min-height:30px}
#shape-workspace .sw-line-values button{margin-bottom:4px;border-radius:6px!important;font-size:11px}
#shape-workspace .sw-line-readout small{display:block;font-size:10px;direction:rtl}
#shape-workspace .sw-canvas-wrap>svg:focus{outline:none}

#shape-workspace .sw-operation-groups{display:grid;gap:7px;padding:14px 0;flex-shrink:0}
#shape-workspace .sw-operation-group{border:1px solid #d8dfe6;border-radius:6px;overflow:hidden;background:#e9edf1}
#shape-workspace .sw-operation-heading{display:flex;align-items:center;gap:8px;width:100%;min-height:43px;padding:11px 10px;text-align:right;color:#5c6673;background:#e9edf1;border:0;border-radius:6px!important;font-size:11px}
#shape-workspace .sw-operation-heading>svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
#shape-workspace .sw-operation-heading .sw-operation-chevron{width:18px;height:18px;stroke-width:1.5;margin-inline-start:auto;transition:transform 220ms ease}
#shape-workspace .sw-operation-group.is-open .sw-operation-heading{background:#e7e0d5;color:#886236}
#shape-workspace .sw-operation-group.is-open .sw-operation-chevron{transform:rotate(180deg)}
#shape-workspace .sw-operation-panel{display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;transition:grid-template-rows 220ms ease,opacity 180ms ease,visibility 0s linear 220ms;background:#f2f3f5}
#shape-workspace .sw-operation-group.is-open .sw-operation-panel{grid-template-rows:1fr;opacity:1;visibility:visible;transition:grid-template-rows 220ms ease,opacity 180ms ease,visibility 0s}
#shape-workspace .sw-operation-panel>div{min-height:0;overflow:hidden}
#shape-workspace .sw-operation-panel p{font-size:10px;line-height:1.8;color:#929aa5;margin:0;padding:12px 10px}
@media(prefers-reduced-motion:reduce){#shape-workspace .sw-operation-panel,#shape-workspace .sw-operation-chevron{transition:none}}

#shape-workspace .sw-drawing-group{margin-top:13px;flex-shrink:0}
#shape-workspace .sw-drawing-group .sw-shape-dock{position:static;margin:0;padding:8px 7px;border:0;background:#f2f3f5}
#shape-workspace .sw-drawing-group .sw-operation-panel{background:#f2f3f5}
#shape-workspace .sw-operation-groups{padding-top:7px}

#shape-workspace .sw-transform-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px 7px}
#shape-workspace .sw-transform-tools button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:65px;padding:9px 3px;color:#76818e;background:#fff;border:1px solid #d9dfe6;border-radius:6px!important;font-size:11px}
#shape-workspace .sw-transform-tools button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#shape-workspace .sw-transform-tools button[aria-pressed=true]{background:#343b45;color:#fff;border-color:#343b45}
#shape-workspace .sw-transform-parameters{padding:0 8px 10px;min-width:0}
#shape-workspace .sw-transform-parameters input[type=number],#shape-workspace .sw-transform-parameters select{width:100%;box-sizing:border-box;min-width:0;min-height:36px;padding:8px 10px;background:#fff;border:0;border-radius:6px!important;font-size:12px;color:#46515e;text-align:right;direction:ltr}
#shape-workspace .sw-transform-parameters input:focus{outline:1px solid #c9ae8e;outline-offset:0}
#shape-workspace .sw-transform-parameters [data-transform-apply]{width:100%;border-radius:6px!important;margin-top:8px;min-height:34px}
#shape-workspace .sw-transform-parameters [data-transform-apply]{background:#a47843;border-color:#a47843;color:#fff}
#shape-workspace .sw-transform-parameters .sw-transform-selection{padding:8px 0;color:#8b949f}
#shape-workspace .sw-transform-anchor-wrap{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:#8b949f;padding:6px 0}
#shape-workspace .sw-transform-anchors{display:grid;grid-template-columns:repeat(3,18px);gap:4px;direction:ltr}
#shape-workspace .sw-transform-anchors button{padding:3px;min-height:18px;width:18px;border:0;background:transparent}
#shape-workspace .sw-transform-anchors i{display:block;width:9px;height:9px;border-radius:50%;background:#cbd1d8}
#shape-workspace .sw-transform-anchors [aria-pressed=true] i{background:#a47843;box-shadow:0 0 0 3px #eadfce}
#shape-workspace .sw-transform-check{display:flex;flex-direction:row;align-items:center;gap:7px}
#shape-workspace .sw-transform-check input{width:auto;min-height:0}

/* Shared fields for drawing and transform parameters. */
#shape-workspace :is(.sw-parameters,.sw-transform-parameters,.sw-layer-cam) :is(input[type=number],select){box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:36px;padding:8px 10px;background:#fff;border:1px solid #d9dfe6!important;border-radius:6px!important;font-family:inherit;font-size:12px;color:#46515e;direction:ltr;text-align:right;line-height:1.5}
#shape-workspace :is(.sw-parameters,.sw-transform-parameters,.sw-layer-cam) :is(input[type=number],select):focus{border-color:#c9ae8e!important;outline:none}
#shape-workspace .sw-transform-parameters select{direction:rtl}

#shape-workspace [data-transform-form=move],#shape-workspace [data-transform-form=rotate]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 8px}
#shape-workspace [data-transform-form] label{min-width:0}
#shape-workspace [data-transform-form] h2,#shape-workspace [data-transform-form] [data-transform-apply]{grid-column:1/-1}
#shape-workspace [data-transform-form=move]>label:has([data-move-mode]){grid-column:1/-1}

#shape-workspace .sw-transform-parameters select:not([multiple]){appearance:none;-webkit-appearance:none;cursor:pointer;padding-left:30px;padding-right:10px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2376818e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:left 8px center;background-size:16px 16px}

#shape-workspace .sw-move-mode-field{grid-column:1/-1;font-size:11px;color:#73808c;margin:9px 0 0}
#shape-workspace .sw-move-mode-field .sw-measure-tabs button{display:flex;flex:1;justify-content:center;border-radius:6px!important;min-height:34px}

#shape-workspace .sw-mirror-directions{direction:ltr;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0}
#shape-workspace .sw-mirror-directions [data-transform-apply]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;margin:0;padding:8px 3px;min-height:57px;background:#fff;color:#76818e;border:1px solid #d9dfe6;border-radius:6px!important;font-size:10px}
#shape-workspace .sw-mirror-directions [data-transform-apply]:first-child{grid-column:2}
#shape-workspace .sw-mirror-directions [data-transform-apply]:nth-child(2){grid-column:1;grid-row:2}
#shape-workspace .sw-mirror-directions [data-transform-apply]:nth-child(3){grid-column:3;grid-row:2}
#shape-workspace .sw-mirror-directions [data-transform-apply]:last-child{grid-column:2;grid-row:3}
#shape-workspace .sw-mirror-directions svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
#shape-workspace .sw-mirror-directions [data-transform-apply]:hover{background:#f3e8d9;border-color:#be965e;color:#97682f}
#shape-workspace .sw-mirror-line{border-top:1px solid #dce1e7;margin-top:14px;padding-top:3px}
#shape-workspace .sw-mirror-line p{padding:0;font-size:10px;line-height:1.8;color:#8b949f}

#shape-workspace .sw-edit-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px 7px}
#shape-workspace .sw-edit-tools button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:65px;padding:9px 3px;background:#fff;color:#76818e;border:1px solid #d9dfe6;border-radius:6px!important;font-size:10px}
#shape-workspace .sw-edit-tools button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
#shape-workspace .sw-edit-tools button[aria-pressed=true]{background:#343b45;color:#fff;border-color:#343b45}
#shape-workspace .sw-edit-parameters{padding:0 8px 10px}
#shape-workspace .sw-edit-parameters p{padding:5px 0;font-size:10px;line-height:1.8}
#shape-workspace .sw-edit-parameters input[type=number]{width:100%;box-sizing:border-box;min-width:0;min-height:36px;background:#fff;border:1px solid #d9dfe6;border-radius:6px!important;padding:8px 10px;font-size:12px;direction:ltr;text-align:right}
#shape-workspace [data-edit-apply],#shape-workspace [data-edit-close]{width:100%;border-radius:6px!important;min-height:34px;margin-top:8px}
#shape-workspace [data-edit-apply]{background:#a47843;color:#fff;border-color:#a47843}
#shape-workspace [data-edit-close]{background:#343b45;color:#fff;border-color:#343b45}

#shape-workspace .sw-fillet-types{display:grid;gap:6px;margin:9px 0}
#shape-workspace .sw-fillet-types label{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0;padding:7px 8px;background:#f2f3f5;border:1px solid #d9dfe6;border-radius:6px;font-size:11px}
#shape-workspace .sw-fillet-types input[type=radio]{width:auto;min-height:0;margin:0;accent-color:#a47843}

#shape-workspace .sw-align-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:8px 7px}
#shape-workspace .sw-align-tools button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:62px;padding:8px 2px;background:#fff;color:#76818e;border:1px solid #d9dfe6;border-radius:6px!important;font-size:9px;line-height:1.5}
#shape-workspace .sw-align-tools svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
#shape-workspace .sw-align-tools button:hover{background:#f3e8d9;color:#97682f;border-color:#be965e}
#shape-workspace .sw-align-help{padding:5px 8px 10px!important;font-size:10px;line-height:1.8}

#shape-workspace .sw-material-group{margin-top:13px;flex-shrink:0}
#shape-workspace .sw-material-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 8px;padding:6px 8px 10px}
#shape-workspace .sw-material-fields label{min-width:0}
#shape-workspace .sw-material-fields label:last-child{grid-column:1/-1}
#shape-workspace .sw-material-fields input[type=number]{box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:36px;padding:8px 10px;background:#fff;border:1px solid #d9dfe6;border-radius:6px!important;font-family:inherit;font-size:12px;color:#46515e;direction:ltr;text-align:right;line-height:1.5}
#shape-workspace .sw-material-fields input:focus{border-color:#c9ae8e;outline:none}
#shape-workspace .sw-drawing-group{margin-top:7px}

/* Controls and rulers have dedicated space; drawing is clipped below them. */
#shape-workspace .sw-canvas-wrap{--sw-toolbar-height:104px;isolation:isolate}
#shape-workspace .sw-toolbar-shield{position:absolute;top:0;left:0;right:0;height:var(--sw-toolbar-height);background:#f7f8f9;border-bottom:1px solid #dce1e7;z-index:2}
#shape-workspace .sw-snap-modes,#shape-workspace .sw-actions{z-index:3}
#shape-workspace .sw-actions{max-width:calc(100% - 24px);flex-wrap:wrap}
#shape-workspace .sw-drawing-viewport{position:absolute;top:calc(var(--sw-toolbar-height) + 24px);left:26px;right:0;bottom:0;overflow:hidden;contain:paint;direction:ltr}
#shape-workspace .sw-drawing-viewport>svg{display:block;width:100%;height:100%;overflow:hidden;touch-action:none}
#shape-workspace svg.sw-ruler{position:absolute;display:block;pointer-events:none;user-select:none;direction:ltr;overflow:hidden;z-index:2}
#shape-workspace svg.sw-ruler-x{top:var(--sw-toolbar-height);left:26px;width:calc(100% - 26px);height:24px}
#shape-workspace svg.sw-ruler-y{top:calc(var(--sw-toolbar-height) + 24px);left:0;width:26px;height:calc(100% - var(--sw-toolbar-height) - 24px)}
#shape-workspace .sw-ruler-corner{position:absolute;top:var(--sw-toolbar-height);left:0;width:26px;height:24px;display:flex;align-items:center;justify-content:center;background:#f2f3f5;border-left:0;border-bottom:1px solid #dce1e7;border-right:1px solid #dce1e7;color:#87919e;font-size:8px;z-index:3}
#shape-workspace .sw-drawing-viewport>svg:focus{outline:none}

#shape-workspace .sw-drawing-viewport{bottom:26px}
#shape-workspace svg.sw-ruler-y{height:calc(100% - var(--sw-toolbar-height) - 50px)}
#shape-workspace .sw-coordinate-footer{position:absolute;bottom:0;left:26px;right:0;height:26px;display:flex;align-items:center;justify-content:flex-start;gap:22px;padding:0 12px;background:#f2f3f5;border-top:1px solid #dce1e7;color:#73808c;font-size:10px;direction:ltr;font-variant-numeric:tabular-nums;z-index:2;pointer-events:none}
#shape-workspace .sw-coordinate-footer b{font-weight:500;color:#946f41;display:inline-block;min-width:44px;text-align:right}
#shape-workspace .sw-line-readout{bottom:38px}
#shape-workspace .sw-canvas-wrap>.sw-message{bottom:66px}

#shape-workspace .sw-canvas-wrap{--sw-toolbar-height:50px}
#shape-workspace .sw-canvas-toolbar{position:absolute;top:7px;left:12px;right:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;direction:rtl;z-index:3;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;padding-bottom:1px}
#shape-workspace .sw-canvas-toolbar .sw-snap-modes,#shape-workspace .sw-canvas-toolbar .sw-actions{position:static;top:auto;left:auto;right:auto;transform:none;display:flex;align-items:center;flex-wrap:nowrap;flex-shrink:0;max-width:none;gap:5px;margin:0;padding:0;background:transparent}
#shape-workspace .sw-canvas-toolbar .sw-snap-modes button{min-height:32px;padding:6px 10px;font-size:10px}
#shape-workspace .sw-canvas-toolbar .sw-actions button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;min-height:32px;padding:7px;border:1px solid #d9dfe6;border-radius:6px!important;background:#fff;color:#76818e;box-shadow:none}
#shape-workspace .sw-canvas-toolbar .sw-actions button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#shape-workspace .sw-canvas-toolbar .sw-actions button:hover{background:#f3e8d9;color:#97682f;border-color:#be965e}
#shape-workspace .sw-canvas-toolbar .sw-actions button:disabled{opacity:.4;cursor:default}
#shape-workspace .sw-canvas-toolbar .sw-actions [data-action=reset],#shape-workspace .sw-canvas-toolbar .sw-actions [data-action=delete]{color:#a05238}

#shape-workspace .sw-layer-tools{padding:8px 0;font-size:11px;color:#8290a0}
#shape-workspace .sw-layer-tools p{margin:0 0 8px}
#shape-workspace .sw-layer-list{display:flex;flex-direction:column;gap:6px}
#shape-workspace .sw-layer-row{display:grid;grid-template-columns:22px 24px minmax(0,1fr) 25px 25px;gap:3px;align-items:center;padding:4px;border:1px solid #d9dfe6;border-radius:6px;background:transparent}
#shape-workspace .sw-layer-row.is-active{border-color:#bc945e;background:#f1e8dc}
#shape-workspace .sw-layer-row button{padding:3px;min-width:0;width:100%;height:26px;border:0;background:transparent;color:#8290a0;border-radius:6px!important}
#shape-workspace .sw-layer-row button[aria-pressed=true]{color:#a47843}
#shape-workspace .sw-layer-row svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}
#shape-workspace .sw-layer-row input{min-width:0;width:100%;box-sizing:border-box;height:28px;border:1px solid #d9dfe6;border-radius:6px!important;background:#fff;color:#405c7a;font:inherit;padding:3px}
#shape-workspace .sw-layer-row input[type=color]{padding:2px;cursor:pointer}
#shape-workspace .sw-layer-actions{display:flex;gap:5px;margin-top:8px}
#shape-workspace .sw-layer-actions button{padding:7px 5px;border:1px solid #d9dfe6;background:#fff;color:#61748a;border-radius:6px!important;font:inherit}
#shape-workspace .sw-layer-actions button:disabled{opacity:.4}

#shape-workspace .sw-canvas-toolbar{flex-wrap:wrap;overflow:visible;gap:6px 12px}
#shape-workspace .sw-layers-toggle{display:flex;align-items:center;gap:6px;height:32px;max-width:220px;padding:5px 8px;border:1px solid #d9dfe6;border-radius:6px!important;background:#fff;color:#61748a;font:inherit;font-size:11px;flex-shrink:0}
#shape-workspace .sw-layers-toggle>span{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#shape-workspace .sw-layers-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.4}
#shape-workspace [data-layer-swatch],#shape-workspace .sw-layer-label i{display:block;width:9px;height:9px;border-radius:50%;flex-shrink:0}
#shape-workspace .sw-layer-popover{position:absolute;top:var(--sw-toolbar-height);right:12px;width:420px;max-width:calc(100% - 24px);max-height:calc(100% - var(--sw-toolbar-height) - 35px);overflow:auto;z-index:10;direction:rtl;background:#f2f3f5;border:1px solid #d9dfe6;border-radius:6px;box-shadow:0 6px 18px #27323e20;padding:10px;box-sizing:border-box}
#shape-workspace .sw-layer-popover[hidden]{display:none}
#shape-workspace .sw-layer-popover .sw-layer-tools{padding:0}
#shape-workspace .sw-layer-menu-title{font-size:12px;color:#a47843;margin-bottom:9px}
#shape-workspace .sw-layer-popover .sw-layer-row{grid-template-columns:minmax(80px,1fr) repeat(6,27px);gap:3px}
#shape-workspace .sw-layer-row button.sw-layer-label{display:flex;align-items:center;gap:7px;text-align:right;height:29px;font:inherit;overflow:hidden}
#shape-workspace .sw-layer-label span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#shape-workspace .sw-layer-label small{margin-inline-start:auto;font-size:10px;opacity:.6}
#shape-workspace .sw-layer-row button:disabled{opacity:.3;cursor:default}
#shape-workspace .sw-layer-row button:hover:not(:disabled){background:#e6e9ed}
#shape-workspace .sw-layer-editor{display:flex;gap:5px;align-items:center;padding:5px}
#shape-workspace .sw-layer-editor input{min-width:0;height:30px;border:1px solid #d9dfe6;border-radius:6px!important;background:white;color:#405c7a;font:inherit;padding:4px;box-sizing:border-box}
#shape-workspace .sw-layer-editor input[data-layer-edit-name]{flex:1;width:80px}
#shape-workspace .sw-layer-editor input[type=color]{width:30px;padding:2px}
#shape-workspace .sw-layer-editor button{border:1px solid #d9dfe6;border-radius:6px!important;background:#fff;color:#61748a;font:inherit;padding:5px}

#shape-workspace .sw-layer-popover .sw-layer-row{grid-template-columns:18px minmax(65px,1fr) repeat(5,27px)}
#shape-workspace .sw-layer-grip{display:flex;align-items:center;justify-content:center;cursor:grab;user-select:none;color:#8a97a5;height:28px}
#shape-workspace .sw-layer-grip:active{cursor:grabbing}
#shape-workspace .sw-layer-grip svg{pointer-events:none}
#shape-workspace .sw-layer-row.is-dragging{opacity:.4}
#shape-workspace .sw-layer-row.sw-layer-drop-before{box-shadow:0 -3px #a47843}
#shape-workspace .sw-layer-row.sw-layer-drop-after{box-shadow:0 3px #a47843}
#shape-workspace .sw-layer-menu-title{display:flex;align-items:center;justify-content:space-between}
#shape-workspace [data-layers-close]{display:flex;align-items:center;justify-content:center;width:26px;height:26px;background:transparent;border:1px solid #d9dfe6;border-radius:6px!important;color:#61748a;padding:4px}
#shape-workspace [data-layers-close] svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}
#shape-workspace .sw-layer-color-picker{display:flex;align-items:center;gap:4px;white-space:nowrap;font:inherit}
#shape-workspace .sw-layer-row [data-layer-delete]{color:#aa7164}

#shape-workspace .sw-layer-row .sw-layer-label{display:flex;align-items:center;gap:5px;min-width:0;overflow:hidden}
#shape-workspace .sw-layer-label button[data-layer-active]{display:flex;align-items:center;gap:5px;text-align:right;font:inherit;min-width:0;flex:1;width:auto;height:29px}
#shape-workspace .sw-layer-row input.sw-layer-direct-color{flex:0 0 20px;width:20px;height:20px;min-width:20px;border:0;background:transparent;padding:3px;border-radius:50%!important;cursor:pointer}
#shape-workspace .sw-layer-direct-color::-webkit-color-swatch-wrapper{padding:0}
#shape-workspace .sw-layer-direct-color::-webkit-color-swatch{border:0;border-radius:50%}
#shape-workspace .sw-layer-direct-color::-moz-color-swatch{border:0;border-radius:50%}
#shape-workspace .sw-layer-direct-color:focus-visible{outline:1px solid #a47843;outline-offset:1px}

#shape-workspace .sw-shape-context{position:absolute;z-index:12;width:245px;max-width:calc(100% - 12px);max-height:calc(100% - 12px);overflow:auto;direction:rtl;box-sizing:border-box;background:#f2f3f5;border:1px solid #d9dfe6;border-radius:6px;padding:9px;box-shadow:0 6px 18px #27323e20;font-size:11px;color:#61748a}
#shape-workspace .sw-shape-context[hidden]{display:none}
#shape-workspace .sw-shape-context .sw-layer-menu-title{margin-bottom:5px}
#shape-workspace .sw-shape-context button{font:inherit;color:#61748a;background:transparent;border:0;border-radius:6px!important;padding:8px;text-align:right;cursor:pointer}
#shape-workspace .sw-shape-context button:hover:not(:disabled){background:#e6e9ed}
#shape-workspace .sw-context-content>button{display:flex;align-items:center;gap:8px;width:100%}
#shape-workspace .sw-context-content button:disabled{opacity:.4;cursor:default}
#shape-workspace .sw-context-content i{width:9px;height:9px;border-radius:50%;flex-shrink:0}
#shape-workspace .sw-context-subtitle{color:#a47843;padding:7px 8px}
#shape-workspace .sw-context-content label{display:flex;flex-direction:column;gap:5px;margin:8px 0;font:inherit}
#shape-workspace .sw-context-content input{width:100%;height:31px;box-sizing:border-box;border:1px solid #d9dfe6;border-radius:6px!important;padding:5px;background:#fff;color:#405c7a;font:inherit}
#shape-workspace .sw-context-content label.sw-context-color{flex-direction:row;align-items:center}
#shape-workspace .sw-context-color input{width:36px}
#shape-workspace [data-context-error]{margin:4px 0 0;color:#aa7164;font-size:11px}

#shape-workspace .sw-layer-row.has-selection{box-shadow:inset -3px 0 #617f99}
#shape-workspace .sw-layer-row.has-selection [data-layer-active]>span{font-weight:600;color:#405c7a}
#shape-workspace .sw-layer-label .sw-layer-selected-count{margin-inline-start:auto;flex-shrink:0;padding:2px 4px;border-radius:4px;background:#e1e8ef;color:#405c7a;opacity:1;font-size:9px;white-space:nowrap}
#shape-workspace .sw-layer-label .sw-layer-selected-count+small{margin-inline-start:0}

#shape-workspace .sw-layer-row button.sw-layer-direct-color{display:block;box-sizing:border-box;flex:0 0 14px;width:14px!important;min-width:14px!important;max-width:14px;height:14px!important;min-height:14px;padding:0!important;border:0;border-radius:50%!important;background:var(--sw-layer-color)!important;aspect-ratio:1;align-self:center;cursor:pointer}
#shape-workspace .sw-layer-row button.sw-layer-direct-color:hover{outline:1px solid #a47843;outline-offset:2px}
#shape-workspace .sw-layer-palette{display:grid;grid-template-columns:repeat(8,26px);justify-content:start;gap:7px;margin:6px 0;padding:9px;border:1px solid #d9dfe6;border-radius:6px;background:#f7f8f9}
#shape-workspace .sw-layer-palette button.sw-palette-color{display:block;box-sizing:border-box;width:26px!important;height:26px!important;min-width:26px;padding:0!important;border:2px solid transparent;border-radius:5px!important;background:var(--sw-choice-color)!important;cursor:pointer}
#shape-workspace .sw-layer-palette button.sw-palette-color[aria-pressed=true]{outline:2px solid #a47843;outline-offset:2px;border-color:#f7f8f9}
#shape-workspace .sw-layer-palette button.sw-palette-color:hover{outline:1px solid #61748a;outline-offset:2px}
#shape-workspace .sw-shape-context .sw-layer-palette{grid-template-columns:repeat(6,24px);gap:7px}
#shape-workspace .sw-shape-context .sw-layer-palette button.sw-palette-color{width:24px!important;height:24px!important;min-width:24px}
#shape-workspace [data-layer-swatch],#shape-workspace .sw-context-content>button>i{width:9px!important;height:9px!important;min-width:9px;min-height:9px;flex:0 0 9px;aspect-ratio:1;border-radius:50%}

#shape-workspace .sw-layer-row .sw-layer-label button[data-layer-active],
#shape-workspace .sw-layer-row .sw-layer-label button[data-layer-active]:is(:hover,:focus,:focus-visible,:active,:disabled){background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important}

#shape-workspace .sw-layer-row button:is([data-layer-visible],[data-layer-lock],[data-layer-edit]),
#shape-workspace .sw-layer-row button:is([data-layer-visible],[data-layer-lock],[data-layer-edit]):is(:hover,:focus,:focus-visible,:active,:disabled){background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important}

#shape-workspace .sw-canvas-toolbar .sw-layers-toggle{box-sizing:border-box;flex:0 0 200px;width:200px;min-width:200px;max-width:200px;height:32px;min-height:32px;max-height:32px}
#shape-workspace .sw-layers-toggle>span{flex:1;min-width:0;max-width:none;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#shape-workspace .sw-layers-toggle>svg{flex:0 0 17px;width:17px;height:17px}

#shape-workspace .sw-canvas-wrap{container-type:inline-size;container-name:sw-canvas}
#shape-workspace .sw-canvas-toolbar{left:38px;right:12px;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:6px 12px}
#shape-workspace .sw-canvas-toolbar .sw-layers-toggle{grid-column:1;grid-row:1;justify-self:start}
#shape-workspace .sw-canvas-toolbar .sw-snap-modes{grid-column:2;grid-row:1;justify-self:center}
#shape-workspace .sw-canvas-toolbar .sw-actions{grid-column:3;grid-row:1;justify-self:end}
@container sw-canvas (max-width:760px){
#shape-workspace .sw-canvas-toolbar{grid-template-columns:1fr 1fr;left:38px;right:12px}
#shape-workspace .sw-canvas-toolbar .sw-snap-modes{grid-column:1 / -1;grid-row:1;justify-self:center}
#shape-workspace .sw-canvas-toolbar .sw-layers-toggle{grid-column:1;grid-row:2;justify-self:start}
#shape-workspace .sw-canvas-toolbar .sw-actions{grid-column:2;grid-row:2;justify-self:end}
}
#shape-workspace .sw-layer-row button:is([data-layer-delete],[data-layer-select]),
#shape-workspace .sw-layer-row button:is([data-layer-delete],[data-layer-select]):is(:hover,:focus,:focus-visible,:active,:disabled){background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important}

#shape-workspace .sw-layer-palette{width:fit-content;max-width:100%;box-sizing:border-box;background:transparent;grid-template-columns:repeat(8,26px);justify-content:start}
#shape-workspace .sw-layer-palette button.sw-palette-color[aria-pressed=true],
#shape-workspace .sw-layer-palette button.sw-palette-color:hover{outline:1px solid #a47843;outline-offset:2px;border:2px solid transparent}
#shape-workspace .sw-layer-row button.sw-layer-direct-color:hover{outline:none;box-shadow:inset 0 0 0 1px #a47843}
#shape-workspace .sw-layer-row button.sw-layer-direct-color:focus-visible{outline:none;box-shadow:inset 0 0 0 1px #a47843}

#shape-workspace .sw-layout-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding-top:8px}
#shape-workspace .sw-layout-tools button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;height:65px;padding:6px 3px;border:1px solid #d9dfe6;border-radius:6px!important;background:#fff;color:#8290a0;font-size:11px}
#shape-workspace .sw-layout-tools button[aria-pressed=true]{background:#343b45;color:#fff;border-color:#343b45}
#shape-workspace .sw-layout-tools svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.3}
#shape-workspace .sw-layout-tools-wrap [hidden]{display:none!important}
#shape-workspace .sw-layout-tools-wrap p{font-size:10px;line-height:1.7;color:#8d98a4;margin:9px 0}
#shape-workspace .sw-layout-tools-wrap h2{font-size:12px;margin:12px 0 7px;color:#a47843}
#shape-workspace .sw-layout-tools-wrap input[type=number],#shape-workspace .sw-layout-tools-wrap select{width:100%;height:36px;border:1px solid #d9dfe6;border-radius:6px!important;background:#fff;color:#405c7a;padding:6px 9px;font:inherit;min-width:0}
#shape-workspace .sw-layout-row{display:flex;gap:7px;margin-top:5px}
#shape-workspace .sw-layout-row>*{flex:1;min-width:0}
#shape-workspace .sw-layout-tools-wrap label{font-size:11px;color:#8290a0}
#shape-workspace .sw-layout-tools-wrap .sw-layout-check,#shape-workspace .sw-layout-radios label{display:flex;flex-direction:row;align-items:center;gap:6px;font-size:11px}
#shape-workspace .sw-layout-tools-wrap input:is([type=radio],[type=checkbox]){width:13px;height:13px;min-height:13px;margin:0;padding:0;accent-color:#a47843;flex-shrink:0}
#shape-workspace .sw-layout-inline{display:flex;gap:8px;flex-wrap:wrap}
#shape-workspace .sw-layout-tools-wrap [data-layout-apply],#shape-workspace .sw-layout-tools-wrap [data-layout-preview]{width:100%;background:#343b45;color:#fff;border:1px solid #343b45;border-radius:6px!important;font:inherit;padding:7px;margin-top:8px}
#shape-workspace .sw-layout-tools-wrap [data-layout-clear-preview]{width:100%;background:transparent;color:#8290a0;border:1px solid #d9dfe6;border-radius:6px!important;font:inherit;padding:7px;margin-top:8px}
#shape-workspace .sw-layout-tools-wrap [data-layout-message]{color:#a47843}

#shape-workspace .sw-layout-tools-wrap{padding:0 8px 10px;min-width:0}
#shape-workspace .sw-layout-tools-wrap h2{margin:8px 0 5px}
#shape-workspace .sw-layout-tools-wrap label{margin:5px 0;gap:3px}
#shape-workspace .sw-layout-tools-wrap p{margin:4px 0;padding:0;line-height:1.5}
#shape-workspace .sw-layout-tools-wrap p:empty{display:none}
#shape-workspace .sw-layout-tools-wrap .sw-layout-row{gap:6px;margin-top:2px}
#shape-workspace .sw-layout-tools-wrap .sw-layout-radios label,#shape-workspace .sw-layout-tools-wrap .sw-layout-check{margin:4px 0}
#shape-workspace .sw-offset-apply-row{display:flex;align-items:flex-end;gap:7px;margin-top:7px}
#shape-workspace .sw-offset-apply-row>label{flex:1;min-width:0;margin:0}
#shape-workspace .sw-layout-tools-wrap .sw-offset-apply-row>[data-layout-apply]{flex:1;width:auto;height:36px;min-height:36px;margin:0;padding:6px}
#shape-workspace .sw-layout-tools-wrap [data-layout-close]{margin:9px 0 0}

#shape-workspace [data-layout-form=offset]{padding-top:3px}
#shape-workspace .sw-layout-tools-wrap [data-layout-form=offset] h2{margin:12px 0 8px}
#shape-workspace .sw-offset-directions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
#shape-workspace .sw-offset-directions>label{position:relative;display:block;margin:0;cursor:pointer;min-width:0}
#shape-workspace .sw-offset-directions>label>input[type=radio]{position:absolute;width:1px;height:1px;min-height:0;opacity:0;padding:0;border:0;pointer-events:none}
#shape-workspace .sw-offset-direction-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:63px;padding:7px 2px;border:1px solid #d9dfe6;border-radius:6px;color:#8290a0;background:#fff;text-align:center;font-size:10px;line-height:1.4}
#shape-workspace .sw-offset-direction-card svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.25;flex-shrink:0}
#shape-workspace .sw-offset-directions input:checked+.sw-offset-direction-card{background:#f1e8dc;border-color:#bc945e;color:#946f41}
#shape-workspace .sw-offset-directions label:hover .sw-offset-direction-card{border-color:#bc945e}
#shape-workspace .sw-offset-directions input:focus-visible+.sw-offset-direction-card{outline:1px solid #a47843;outline-offset:2px}
#shape-workspace .sw-offset-options{display:grid;gap:7px;margin:13px 0}
#shape-workspace .sw-layout-tools-wrap .sw-offset-options .sw-layout-check{margin:0;line-height:1.5}
#shape-workspace .sw-offset-apply-row{gap:8px;margin:2px 0 11px}
#shape-workspace .sw-offset-apply-row>label{flex:0 0 90px;gap:5px}
#shape-workspace .sw-layout-tools-wrap .sw-offset-apply-row>[data-layout-apply=offset]{background:#f1e8dc;color:#946f41;border:1px solid #bc945e;min-height:36px;height:36px;border-radius:6px!important;font-weight:500}
#shape-workspace .sw-layout-tools-wrap .sw-offset-apply-row>[data-layout-apply=offset]:hover{background:#eadcc9;border-color:#a47843}
#shape-workspace [data-layout-form=offset]+[data-layout-message]:empty{display:none}

#shape-workspace .sw-offset-directions{align-items:stretch}
#shape-workspace .sw-offset-directions>label{height:72px;min-height:72px;max-height:72px}
#shape-workspace .sw-offset-direction-card{width:100%;height:72px;min-height:72px;max-height:72px;box-sizing:border-box}
#shape-workspace .sw-offset-direction-card>span{display:flex;align-items:center;justify-content:center;min-height:28px;line-height:14px}

#shape-workspace .sw-layout-tools-wrap button[data-layout-apply],
#shape-workspace .sw-layout-tools-wrap button[data-layout-preview]{background:#f1e8dc;color:#946f41;border:1px solid #bc945e;font-weight:500}
#shape-workspace .sw-layout-tools-wrap button[data-layout-apply]:hover,
#shape-workspace .sw-layout-tools-wrap button[data-layout-preview]:hover{background:#eadcc9;border-color:#a47843}

#shape-workspace .sw-nest-dimensions,#shape-workspace .sw-nest-rotation{direction:rtl}
#shape-workspace .sw-nest-dimensions>label{flex:1 1 0;min-width:0;white-space:nowrap}
#shape-workspace .sw-nest-dimensions input[type=number]{padding:6px}
#shape-workspace .sw-nest-rotation{align-items:center}
#shape-workspace .sw-nest-rotation>.sw-layout-check{white-space:nowrap;margin:0}
#shape-workspace .sw-nest-rotation>label:not(.sw-layout-check){flex:1 1 0;min-width:0}

#shape-workspace .sw-layout-tools-wrap [data-layout-form=nest] input[type=number]{text-align:center}
#shape-workspace .sw-layout-tools-wrap .sw-nest-rotation>.sw-layout-check{align-self:stretch;align-items:center;justify-content:center;min-height:36px;padding-top:17px}
#shape-workspace [data-layout-form=nest]>.sw-nest-dimensions{padding-bottom:10px;margin-bottom:9px;border-bottom:1px solid #dce1e7}
#shape-workspace [data-layout-form=nest]>.sw-nest-rotation{padding-bottom:10px;margin-bottom:9px;border-bottom:1px solid #dce1e7}
#shape-workspace [data-layout-form=nest]>.sw-layout-check{padding-bottom:10px;margin-bottom:9px;border-bottom:1px solid #dce1e7}
#shape-workspace [data-layout-form=nest]>.sw-layout-radios{padding-bottom:9px;margin-bottom:5px;border-bottom:1px solid #dce1e7}

#shape-workspace .sw-canvas-toolbar .sw-actions [data-action=measure][aria-pressed=true]{background:#343b45;border-color:#343b45;color:#fff}
#shape-workspace .sw-measure-readout{position:absolute;bottom:36px;left:38px;right:12px;z-index:4;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;direction:rtl;padding:7px 9px;background:#f2f3f5f5;border:1px solid #d9dfe6;border-radius:6px;font-size:11px;color:#61748a}
#shape-workspace .sw-measure-readout[hidden]{display:none}
#shape-workspace .sw-measure-modes{display:flex;gap:4px}
#shape-workspace .sw-measure-readout button{padding:5px 8px;border:1px solid #d9dfe6;border-radius:6px!important;background:#fff;color:#61748a;font:inherit;min-height:30px}
#shape-workspace .sw-measure-readout button[aria-pressed=true]{background:#f1e8dc;border-color:#bc945e;color:#946f41}
#shape-workspace .sw-measure-readout [data-measure-close]{background:#343b45;color:#fff;border-color:#343b45}
#shape-workspace [data-measure-value]{font-variant-numeric:tabular-nums;text-align:center;line-height:1.6}

#shape-workspace [data-measure-value]:empty{display:none}

#shape-workspace .sw-edit-parameters [data-edit-form=move] input[type=number],#shape-workspace .sw-edit-parameters [data-edit-form=size] input[type=number]{width:100%;height:36px;min-width:0;padding:6px 8px;border:1px solid #d9dfe6;border-radius:6px!important;background:#fff;color:#405c7a;font:inherit}
#shape-workspace .sw-edit-anchor-row{display:flex;align-items:center;justify-content:space-between;margin:8px 0;color:#8290a0;font-size:11px}
#shape-workspace .sw-edit-choice-row{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
#shape-workspace .sw-edit-choice-row label,#shape-workspace .sw-edit-parameters .sw-edit-size-link{display:flex;flex-direction:row;align-items:center;gap:5px;margin:4px 0;font-size:11px}
#shape-workspace .sw-edit-choice-row input[type=radio],#shape-workspace .sw-edit-size-link input[type=checkbox]{width:13px;height:13px;min-height:13px;padding:0;margin:0;accent-color:#a47843}
#shape-workspace .sw-edit-parameters [data-edit-execute]{width:100%;min-height:34px;margin-top:8px;background:#f1e8dc;color:#946f41;border:1px solid #bc945e;border-radius:6px!important}
#shape-workspace .sw-edit-parameters [data-edit-selected-info]{padding:3px 0;margin:3px 0;color:#8290a0;font-size:10px}
#shape-workspace .sw-edit-parameters [data-edit-form=move] .sw-row>label,#shape-workspace .sw-edit-parameters [data-edit-form=size] .sw-row>label{min-width:0}

#shape-workspace .sw-measure-readout{display:none!important}

#shape-workspace .sw-canvas-toolbar{grid-template-columns:minmax(0,1fr) auto auto;column-gap:10px}
#shape-workspace .sw-canvas-toolbar .sw-snap-modes{justify-self:end}
#shape-workspace .sw-snap-label{display:flex;align-items:center;gap:4px;font-size:10px;color:#8290a0;white-space:nowrap;margin-inline-end:3px}
#shape-workspace .sw-snap-label svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}
@container sw-canvas (max-width:760px){
#shape-workspace .sw-canvas-toolbar{grid-template-columns:minmax(0,1fr) auto}
#shape-workspace .sw-canvas-toolbar .sw-layers-toggle{grid-column:1;grid-row:1}
#shape-workspace .sw-canvas-toolbar .sw-actions{grid-column:2;grid-row:1}
#shape-workspace .sw-canvas-toolbar .sw-snap-modes{grid-column:1 / -1;grid-row:2;justify-self:end}
}

#shape-workspace [data-cloud-status]{margin-inline-end:auto;font-size:10px;color:#8290a0}
#shape-workspace .sw-coordinate-footer button{min-height:20px;height:20px;padding:1px 5px;font-size:10px;border-radius:4px!important}
#shape-workspace .sw-coordinate-footer [hidden]{display:none!important}

/* Cloud customer/project library uses the editor's existing colors and spacing. */
#shape-workspace .sw-project-tools{margin-bottom:8px;min-width:0}
#shape-workspace .sw-project-tools>button{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;height:34px;background:#eee7db;border-color:#dfd4c3;color:#a47843;font-size:12px}
#shape-workspace .sw-project-tools svg,#shape-workspace .sw-project-dialog svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.4;flex:none}
#shape-workspace [data-project-label]{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#8290a0;margin-top:5px}
#shape-workspace .sw-project-dialog{position:fixed;inset:0;margin:auto;width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:16px;border:1px solid #d6dce4;border-radius:8px;background:#f7f8fa;color:#586674;font:inherit;box-shadow:0 12px 50px #26333f30}
#shape-workspace .sw-project-dialog::backdrop{background:#25313f55}
#shape-workspace .sw-project-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #d6dce4}
#shape-workspace .sw-project-dialog h2{font-size:16px;color:#a47843;margin:0 0 3px}
#shape-workspace .sw-project-dialog h3{font-size:12px;color:#a47843;margin:0 0 8px;font-weight:500}
#shape-workspace .sw-project-dialog small{font-size:11px;color:#8290a0}
#shape-workspace .sw-project-dialog header>button{border:0;background:none!important;font-size:17px;padding:4px}
#shape-workspace .sw-library-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:16px}
#shape-workspace .sw-library-customers{border-inline-end:1px solid #d6dce4;padding-inline-end:16px}
#shape-workspace .sw-project-dialog input:not([type=checkbox]){width:100%;height:34px;font-size:12px;padding:7px}
#shape-workspace .sw-project-dialog label{display:block;font-size:11px;color:#8290a0;margin:0 0 8px}
#shape-workspace .sw-project-dialog label input{margin-top:4px}
#shape-workspace [data-customers],#shape-workspace [data-projects]{max-height:240px;min-height:68px;overflow:auto;margin:8px 0;display:flex;flex-direction:column;gap:5px}
#shape-workspace [data-customers]>button,#shape-workspace [data-projects]>button{display:flex;flex-direction:column;align-items:stretch;gap:3px;text-align:start;font-size:12px;padding:8px}
#shape-workspace [data-projects]>button>span{display:flex;align-items:center;gap:7px}
#shape-workspace [data-projects] strong{font-weight:500;overflow-wrap:anywhere}
#shape-workspace [data-projects] [aria-current=true]{background:#eee7db;border-color:#b28a55}
#shape-workspace .sw-library-empty{font-size:12px;color:#8290a0;margin:8px 0}
#shape-workspace .sw-library-message{font-size:12px;color:#a47843;min-height:16px;margin:8px 0}
#shape-workspace .sw-project-dialog form{padding-top:10px;border-top:1px solid #d6dce4}
#shape-workspace .sw-project-dialog details summary{font-size:12px;color:#a47843;cursor:pointer;margin-bottom:8px}
#shape-workspace .sw-project-dialog .sw-library-check{display:flex;flex-direction:row;align-items:center;gap:6px;margin:8px 0}
#shape-workspace .sw-library-check input{margin:0!important;padding:0;min-height:13px;flex:none;width:13px;height:13px;accent-color:#a47843}
#shape-workspace .sw-project-dialog .sw-library-apply{width:100%;font-size:12px;background:#eee7db;border-color:#b28a55;color:#a47843}
#shape-workspace .sw-project-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;margin-top:12px;border-top:1px solid #d6dce4}
#shape-workspace .sw-project-dialog footer button{font-size:12px;padding:7px 14px}
#shape-workspace .sw-project-dialog .sw-library-finish{background:#343b43!important;border-color:#343b43!important;color:white}
@media(max-width:560px){#shape-workspace .sw-library-columns{grid-template-columns:1fr;gap:12px}#shape-workspace .sw-library-customers{border-inline-end:0;padding-inline-end:0}#shape-workspace [data-customers],#shape-workspace [data-projects]{max-height:150px}}

#shape-workspace .sw-project-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:6px}
#shape-workspace .sw-project-tools>[data-project-label]{grid-column:1/-1}
#shape-workspace .sw-project-tools>.sw-dxf-open{width:auto;padding:5px 8px;gap:4px;font-size:11px}
#shape-workspace .sw-project-tools>[data-project-library]{font-size:11px;padding-inline:6px;gap:5px}
#shape-workspace .sw-dxf-dialog{width:min(480px,calc(100vw - 32px))}
#shape-workspace .sw-dxf-dialog .sw-dxf-fields{display:flex;flex-direction:column;gap:4px}
#shape-workspace .sw-dxf-dialog select{width:100%;margin-top:4px;height:34px;font-size:12px;padding:6px}
#shape-workspace .sw-dxf-summary{font-size:12px;color:#586674;padding:10px 0;border-block:1px solid #d6dce4;min-height:36px}
#shape-workspace .sw-dxf-notes{font-size:11px;color:#8290a0;line-height:1.7;margin:10px 0}
#shape-workspace .sw-dxf-skipped{font-size:11px;color:#a47843}
#shape-workspace .sw-dxf-skipped ul{max-height:110px;overflow:auto;padding-inline-start:18px;color:#8290a0}
#shape-workspace .sw-dxf-dialog footer .sw-library-apply{width:auto;min-width:112px}

/* Customer projects are a regular workspace page; DXF stays in the side panel. */
#shape-workspace>.sw-layout[hidden],#shape-workspace .sw-inline-library[hidden],#shape-workspace .sw-inline-dxf[hidden]{display:none!important}
#shape-workspace .sw-project-dialog.sw-inline-library{position:static;inset:auto;display:flex;flex-direction:column;flex:1;min-height:0;width:100%;max-height:none;margin:0;padding:20px;border:0;border-radius:0;box-shadow:none;overflow:auto}
#shape-workspace .sw-inline-library .sw-library-columns{grid-template-columns:260px minmax(0,1fr);flex:1;align-items:start}
#shape-workspace .sw-inline-library [data-customers]{max-height:55vh}
#shape-workspace .sw-inline-library [data-projects]{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px;max-height:none;min-height:100px;align-content:start}
#shape-workspace .sw-inline-library [data-projects]>button{min-height:76px;justify-content:center;padding:12px}
#shape-workspace .sw-inline-library [data-new-project]{max-width:480px;margin-top:16px}
#shape-workspace .sw-project-filters{display:flex;gap:6px;margin:8px 0}
#shape-workspace .sw-project-filters button{font-size:11px;padding:5px 12px}
#shape-workspace .sw-project-dialog.sw-inline-dxf{position:static;inset:auto;display:block;width:100%;max-height:none;margin:8px 0;padding:10px;border-radius:6px;box-shadow:none;background:#f7f8fa;overflow:visible}
#shape-workspace .sw-inline-dxf h2{font-size:12px}
#shape-workspace .sw-inline-dxf header small{font-size:10px;overflow-wrap:anywhere}
#shape-workspace .sw-inline-dxf .sw-dxf-fields select{font-size:11px}
#shape-workspace .sw-inline-dxf .sw-library-check{align-items:start;line-height:1.6;font-size:10px}
#shape-workspace .sw-inline-dxf footer{gap:5px;padding-top:8px;margin-top:8px}
#shape-workspace .sw-inline-dxf footer button{font-size:11px;padding:5px 8px}
#shape-workspace .sw-inline-dxf footer .sw-library-apply{min-width:0}
@media(max-width:680px){#shape-workspace .sw-inline-library .sw-library-columns{grid-template-columns:1fr}#shape-workspace .sw-inline-library [data-customers]{max-height:180px}}

#shape-workspace .sw-project-tools.sw-dxf-tools{display:block;width:100%;margin:0 0 10px}#shape-workspace .sw-dxf-tools>.sw-dxf-open{display:flex;width:100%;min-height:34px;height:34px;align-items:center;justify-content:center;gap:7px;border:1px solid #dfd4c3;border-radius:6px!important;background:#eee7db;color:#a47843}

/* Existing canvas controls occupy the shared project row; their event scope stays intact. */
#shape-workspace .sw-canvas-wrap{isolation:auto;--sw-toolbar-height:0px}
#shape-workspace .sw-toolbar-shield{display:none}
#shape-workspace .sw-canvas-toolbar{position:fixed;top:var(--cp-stage-top,7px);left:var(--cp-stage-left,12px);right:var(--cp-stage-right,220px);z-index:430;display:flex;align-items:center;justify-content:space-between;gap:12px;height:32px;padding:0;flex-wrap:nowrap;overflow:visible;direction:rtl}
#shape-workspace .sw-canvas-toolbar .sw-layers-toggle{flex:0 0 200px;width:200px}
#shape-workspace .sw-canvas-toolbar .sw-actions{position:static;display:flex;flex-wrap:nowrap;flex-shrink:0;transform:none;padding:0}
#shape-workspace .sw-canvas-toolbar .sw-snap-modes{position:fixed;top:var(--cp-stage-top,7px);left:var(--cp-snap-center,50%);right:auto;transform:translateX(-50%);height:32px;padding:0;background:transparent}
#shape-workspace .sw-canvas-toolbar.sw-toolbar-narrow{overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;justify-content:flex-start}
#shape-workspace .sw-canvas-toolbar.sw-toolbar-narrow .sw-snap-modes{position:static;transform:none;flex-shrink:0}

/* Building tools are grouped on the left; project identity has a separate fixed region. */
#shape-workspace .sw-canvas-toolbar{display:flex;flex-direction:row;direction:ltr;justify-content:flex-start;align-items:center;flex-wrap:wrap;height:auto;min-height:32px;gap:8px 12px;overflow:visible}
#shape-workspace .sw-canvas-toolbar .sw-actions{order:0;direction:rtl;box-sizing:border-box;padding-inline-end:12px;border-inline-end:1px solid #d9dfe6}
#shape-workspace .sw-canvas-toolbar .sw-snap-modes,#shape-workspace .sw-canvas-toolbar.sw-toolbar-narrow .sw-snap-modes{order:1;position:static;direction:rtl;transform:none;box-sizing:border-box;padding-inline-end:12px;border-inline-end:1px solid #d9dfe6;flex-shrink:0}
#shape-workspace .sw-canvas-toolbar .sw-layers-toggle{order:2;direction:rtl;flex:0 0 200px}

#shape-workspace .sw-layer-popover{position:fixed;top:var(--cp-layer-menu-top,50px);left:var(--cp-layer-menu-left,12px);right:auto;z-index:490;max-width:calc(100vw - 16px);max-height:calc(100dvh - var(--cp-layer-menu-top,50px) - 12px)}


/* Bound the editor to its shell row so the side panel owns its scrolling. */
.production-shell>#shape-workspace{height:100%;min-height:0;max-height:100%;overflow:hidden}
#shape-workspace>.sw-layout{flex:1 1 0;min-height:0;height:auto;overflow:hidden}
#shape-workspace .sw-panel{height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;padding-bottom:16px}
#shape-workspace .sw-panel>*{flex-shrink:0}
#shape-workspace .sw-panel>[hidden]{display:none!important}
#shape-workspace .sw-mode-switch{position:sticky;top:0;z-index:3;display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:9px 0;background:#f2f3f5;border-bottom:1px solid #dce1e7;margin-bottom:8px}
#shape-workspace .sw-mode-switch button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:32px;padding:5px 6px;font-size:10px;white-space:nowrap;border-radius:6px}
#shape-workspace .sw-mode-switch svg{width:15px;height:15px;flex:0 0 15px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
#shape-workspace .sw-mode-switch button[aria-pressed=true]{background:#343b45;border-color:#343b45;color:#fff}
#shape-workspace[data-workspace-mode=cam] .sw-actions :is([data-action=delete],[data-action=reset],[data-action=undo],[data-action=redo]){display:none}

/* CAM uses a warmer shade of the existing neutral and brown palette. */
#shape-workspace[data-workspace-mode=cam] .sw-panel,
#shape-workspace[data-workspace-mode=cam] .sw-mode-switch,
#shape-workspace[data-workspace-mode=cam] .sw-operation-panel{background:#f3f0eb}
#shape-workspace[data-workspace-mode=cam] .sw-panel{border-left-color:#ddd6cc}
#shape-workspace[data-workspace-mode=cam] .sw-mode-switch{border-bottom-color:#d5c5af}
#shape-workspace[data-workspace-mode=cam] .sw-operation-heading{background:#ece7df;border-color:#ded5c8}
#shape-workspace[data-workspace-mode=cam] .is-open>.sw-operation-heading{background:#e9dfd0;border-color:#d6c3a9}
#shape-workspace[data-workspace-mode=cam] .sw-mode-switch [data-shape-mode=cam][aria-pressed=true]{background:#6b5a46;border-color:#6b5a46;color:#fff}

#shape-workspace .sw-layer-cam{padding:2px 0 16px;min-width:0;min-height:160px}
#shape-workspace .sw-cam-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:0 0 9px;color:#946f41;font-size:12px}
#shape-workspace .sw-cam-heading button{min-height:28px;padding:3px 8px;background:transparent}
#shape-workspace .sw-cam-layers{display:grid;gap:9px}
#shape-workspace .sw-cam-layer{padding:10px 8px;border:1px solid #ded5c8;border-radius:6px;background:#f7f4ef;min-width:0}
#shape-workspace .sw-cam-layer>header{display:flex;align-items:center;gap:6px;margin-bottom:9px}
#shape-workspace .sw-cam-layer>header i{width:9px;height:9px;flex:0 0 9px;border-radius:50%}
#shape-workspace .sw-cam-layer strong{font-size:11px;font-weight:500;overflow-wrap:anywhere;min-width:0;flex:1}
#shape-workspace .sw-cam-layer small{font-size:10px;color:#89909a;line-height:1.6}
#shape-workspace .sw-cam-layer>header button{border:0;background:transparent;padding:2px;min-height:24px}
#shape-workspace .sw-cam-layer label{margin:7px 0;gap:4px}
#shape-workspace .sw-cam-layer select{width:100%;background:white;direction:rtl!important;font-size:11px!important}
#shape-workspace .sw-cam-dimensions{display:grid;grid-template-columns:repeat(auto-fit,minmax(70px,1fr));gap:6px}
#shape-workspace .sw-cam-dimensions input{text-align:center!important}
#shape-workspace .sw-cam-status{margin:8px 0 0;font-size:10px;line-height:1.65;color:#946f41}
#shape-workspace .sw-cam-status.needs-attention,#shape-workspace [data-cam-feedback]{color:#a13f34}

#shape-workspace .sw-cam-layer>header{margin-bottom:0}
#shape-workspace .sw-cam-layer .sw-cam-layer-toggle{display:flex;flex:1;align-items:center;gap:6px;min-width:0;min-height:28px;padding:0;border:0;background:transparent;text-align:right}
#shape-workspace .sw-cam-layer-toggle i{width:9px;height:9px;flex:0 0 9px;border-radius:50%}
#shape-workspace .sw-cam-layer-toggle svg{width:15px;height:15px;flex:0 0 15px;fill:none;stroke:currentColor;stroke-width:1.4;transition:transform 180ms ease}
#shape-workspace .sw-cam-layer-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
#shape-workspace .sw-cam-layer-body{overflow:hidden;padding-top:4px}
#shape-workspace .sw-cam-layer-body[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){#shape-workspace .sw-cam-layer-toggle svg{transition:none}}

#shape-workspace .sw-circle-settings [data-circle-measure]{display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px}
#shape-workspace .sw-circle-settings [data-circle-measure] svg{width:22px;height:22px;flex:0 0 22px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#shape-workspace .sw-layer-delete{padding:10px;margin:4px 0 8px;border:1px solid #d9dfe6;border-radius:6px;background:#f7f8f9;color:#61748a}
#shape-workspace .sw-layer-delete p{margin:0 0 9px;font-size:11px;line-height:1.6}
#shape-workspace .sw-layer-delete-options{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin-bottom:9px}
#shape-workspace .sw-layer-delete label{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0;font-size:11px;line-height:1.5}
#shape-workspace .sw-layer-delete input[type=radio]{appearance:auto;flex:0 0 13px;width:13px;height:13px;min-width:0;min-height:0;max-width:13px;padding:0;accent-color:#a47843;margin:0;border:0;border-radius:50%;box-shadow:none}
#shape-workspace .sw-layer-delete .sw-layer-delete-target{gap:8px;margin:0 0 9px}
#shape-workspace .sw-layer-delete select{flex:0 1 180px;width:180px;max-width:100%;height:30px;min-height:30px;padding:4px 7px;border:1px solid #d9dfe6;border-radius:6px!important;background:#fff;color:#405c7a;font:inherit}
#shape-workspace .sw-layer-delete:has(input[value=delete]:checked) .sw-layer-delete-target{display:none}
#shape-workspace .sw-layer-delete-actions{display:flex;align-items:center;gap:6px}
#shape-workspace .sw-layer-delete button{min-height:30px;padding:5px 9px;margin:0;border:1px solid #d9dfe6;border-radius:6px!important;background:#fff;color:#61748a;font:inherit}
#shape-workspace .sw-layer-delete [data-layer-delete-confirm]{background:#343b45;border-color:#343b45;color:#fff}

#shape-workspace .sw-cam-layer-toggle svg{width:18px;height:18px;flex-basis:18px}
#shape-workspace .sw-cam-layer>header button[data-cam-select],#shape-workspace .sw-cam-heading [data-cam-reload]{display:flex;align-items:center;justify-content:center;width:30px;height:30px;min-height:30px;flex:0 0 30px;padding:5px}
#shape-workspace .sw-cam-layer [data-cam-select] svg,#shape-workspace .sw-cam-heading [data-cam-reload] svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#shape-workspace .sw-cam-review{margin-top:12px;padding-top:12px;border-top:1px solid #ded5c8;min-height:100px}
#shape-workspace [data-cam-review]{width:100%;min-height:34px;border-radius:6px;background:#343b45;border-color:#343b45;color:#fff}
#shape-workspace [data-cam-review-result]{font-size:11px;line-height:1.65}
#shape-workspace [data-cam-review-result] strong{font-weight:500}
#shape-workspace .sw-cam-review-success,#shape-workspace .sw-cam-review-problems{margin-top:9px;padding:9px;border:1px solid #d9dfe6;border-radius:6px;background:#fff}
#shape-workspace .sw-cam-review-success{border-color:#bad3c6;color:#35745a;background:#f1f7f3}
#shape-workspace .sw-cam-review-success p{margin:5px 0;font-size:10px}
#shape-workspace .sw-cam-review-success small{font-size:10px}
#shape-workspace .sw-cam-review-problems{color:#a13f34;border-color:#e2c7ba}
#shape-workspace .sw-cam-review-problems article{padding:8px 0;border-bottom:1px solid #ece4dc}
#shape-workspace .sw-cam-review-problems article:last-child{border-bottom:0;padding-bottom:0}
#shape-workspace .sw-cam-review-problems p{margin:0 0 6px;font-size:10px}
#shape-workspace .sw-cam-review-problems button{font-size:10px;min-height:28px;padding:4px 6px}
#shape-workspace .sw-cam-review-stale{font-size:10px;color:#946f41;margin:8px 0}

#shape-workspace .sw-cam-preview-section{margin-top:10px;min-height:40px}
#shape-workspace .sw-cam-preview-section.cutplus-is-loading{min-height:180px}
#shape-workspace [data-cam-preview]{width:100%;min-height:34px;border-radius:6px;background:#f1e8dc;border-color:#bc945e;color:#946f41}
#shape-workspace .sw-cam-preview-controls{margin-top:9px;display:grid;gap:7px;font-size:10px}
#shape-workspace .sw-cam-preview-controls p{margin:0;font-size:10px;line-height:1.6}
#shape-workspace .sw-cam-preview-controls label{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0;font-size:10px}
#shape-workspace .sw-cam-preview-controls input[type=checkbox]{appearance:auto;width:13px;height:13px;min-width:0;min-height:0;flex:0 0 13px;padding:0;margin:0;accent-color:#a47843;border:0}
#shape-workspace .sw-cam-preview-controls small{font-size:10px;color:#89909a;line-height:1.6}
#shape-workspace .sw-cam-preview-step{display:flex;align-items:center;gap:5px;direction:ltr}
#shape-workspace .sw-cam-preview-step input[type=range]{flex:1;width:60px;min-height:22px;padding:0;border:0;background:transparent;accent-color:#a47843}
#shape-workspace .sw-cam-preview-step button{font-size:18px;padding:0 8px;min-height:28px}
#shape-workspace .sw-cam-layer>header [data-cam-preview-layer]{display:flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;padding:4px}
#shape-workspace [data-cam-preview-layer] svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.4}
#shape-workspace [data-cam-preview-layer][aria-pressed=false]{opacity:.4}

#shape-workspace .sw-cam-extension{margin-top:8px;padding:8px;border:1px solid #dac7aa;border-radius:6px;background:#f4ecdf}
#shape-workspace .sw-cam-extension p{margin:0 0 7px;font-size:10px;line-height:1.7;color:#946f41}
#shape-workspace .sw-cam-extension button{width:100%;border-radius:6px;background:#fff;font-size:10px}

#shape-workspace .sw-cam-nc-section{margin-top:12px;padding-top:12px;border-top:1px solid #ded7cd;min-height:40px}
#shape-workspace .sw-cam-nc-section.cutplus-is-loading{min-height:150px}
#shape-workspace [data-cam-nc]{width:100%;min-height:34px;border-radius:6px;background:#343b43;border:1px solid #343b43;color:#fff}
#shape-workspace [data-cam-nc]:disabled{opacity:.45;cursor:default}

#shape-workspace .sw-nest-part-help{margin:0 0 8px;font-size:10px;line-height:1.6;color:#89909a}
#shape-workspace [data-layout-form=nest].cutplus-is-loading{min-height:220px}

#shape-workspace .sw-shape-dimensions{position:fixed;z-index:75;box-sizing:border-box;padding:10px;border:1px solid #d9dfe6;border-radius:6px;background:#f5f6f8;box-shadow:0 4px 15px #29344118;color:#8995a3;font-size:11px}
#shape-workspace .sw-shape-dimensions[hidden]{display:none}
#shape-workspace .sw-shape-dimensions header{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;color:#946f41}
#shape-workspace .sw-shape-dimensions header button{min-width:24px;width:24px;min-height:24px;padding:0;background:transparent;border:0;font-size:18px}
#shape-workspace .sw-rectangle-size-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#shape-workspace .sw-shape-dimensions label{display:grid;gap:4px;font-size:11px}
#shape-workspace .sw-shape-dimensions input{width:100%;min-width:0;height:32px;min-height:32px;text-align:center;border-radius:6px}
#shape-workspace .sw-shape-dimensions p{margin:6px 0;font-size:10px;color:#a13f34;line-height:1.5}
#shape-workspace .sw-shape-dimensions p:empty{display:none}
#shape-workspace .sw-shape-dimensions>button{margin-top:8px;width:100%;min-height:30px;border-radius:6px;background:#f1e8dc;color:#946f41;border:1px solid #bc945e}

#shape-workspace .sw-shape-dimensions[data-kind=circle] .sw-rectangle-size-fields{grid-template-columns:1fr}

#shape-workspace .sw-cam-extension .sw-cam-extension-message{display:block;margin:0 0 7px;padding:0;min-height:0;border:0;background:transparent;box-shadow:none;color:#946f41;font-size:10px;line-height:1.7;text-align:right;cursor:pointer}
#shape-workspace .sw-cam-extension .sw-cam-extension-message:hover,#shape-workspace .sw-cam-extension .sw-cam-extension-message:active{border:0;background:transparent;color:#946f41}
#shape-workspace .sw-cam-extension .sw-cam-extension-message:focus-visible{outline:1px solid #bc945e;outline-offset:2px}
