*{box-sizing:border-box}body{margin:0;background:#f4f3ef;color:#262b28;font:14px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}header{height:94px;background:#fff;border-bottom:1px solid #dedfd7;display:flex;align-items:center;justify-content:space-between;padding:0 30px;gap:20px}.brand{display:flex;align-items:center;gap:13px;font-weight:800;letter-spacing:1.8px}.logo{background:#263e32;color:#d4ee8a;border-radius:13px;padding:13px;font-size:23px}.brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:6px;color:#777e74}.actions{display:flex;gap:8px}button,.upload{background:#fff;border:1px solid #d4d9d0;border-radius:8px;padding:10px 13px;color:inherit;font:inherit;cursor:pointer}button:hover,.upload:hover{background:#eff3e8}button.primary{background:#263e32;color:white;border-color:#263e32}main{display:grid;grid-template-columns:245px minmax(350px,1fr) 290px;min-height:calc(100vh - 134px)}aside{padding:28px 23px;background:#fff}.surfaces{border-right:1px solid #dedfd7}.controls{border-left:1px solid #dedfd7;max-height:calc(100vh - 134px);overflow:auto}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.7px;color:#74816d}h2{font-size:22px;letter-spacing:-.6px;margin:15px 0 10px}p{line-height:1.6;color:#7b8178;font-size:12px}#parts{display:grid;gap:9px;margin-top:28px}.part{display:flex;align-items:center;text-align:left;gap:12px;width:100%;padding:9px}.part.active{background:#edf4df;border-color:#829666}.part svg{width:36px;height:43px;flex-shrink:0}.part small{display:block;color:#858b80;font-size:10px;margin-top:4px}.note{border-top:1px solid #e5e7e0;margin-top:28px;padding-top:18px;color:#899080;font-size:11px;line-height:1.8}.workspace{padding:23px;display:flex;flex-direction:column;min-width:0}.toolbar,.workspace-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px}.tabs{display:flex;background:#e7e8e1;border-radius:9px;padding:4px}.tabs button{border:0;background:transparent;font-size:12px;padding:9px}.tabs button.active{background:white;box-shadow:0 1px 4px #0001}#dimensions{font-size:11px;color:#78816f}#canvas{background-color:#ebece6;background-image:radial-gradient(#cfd2c7 .8px,transparent .8px);background-size:16px 16px;border-radius:18px;flex:1;min-height:490px;margin-top:22px;display:flex;align-items:center;justify-content:center;overflow:hidden}#canvas>svg{width:100%;height:100%;max-height:65vh;min-height:460px;touch-action:none}#canvas.layout>svg{background:white;width:90%;height:auto;min-height:0;max-height:65vh;box-shadow:0 5px 24px #0001;margin:24px}#canvas [data-drag]{cursor:move}.workspace-bottom{padding:17px 0;color:#717a68;font-size:12px}.workspace-bottom button{font-size:11px;background:transparent}.notice{font-size:11px;line-height:1.6;color:#8a8065;background:#eeebe1;padding:12px;border-radius:8px}label{display:flex;flex-direction:column;gap:7px;margin:14px 0;font-size:11px;font-weight:600;color:#626d5b}input,select{width:100%;border:1px solid #d8ddd2;background:#fafbf8;border-radius:6px;padding:9px;color:#293225;font:13px inherit;min-width:0}input[type=color]{height:35px;padding:3px;cursor:pointer}.row{display:flex;gap:12px}.row label{width:50%;margin:5px 0}hr{border:0;border-top:1px solid #e8eae3;margin:23px 0}h3{font-size:13px;margin:0}.upload{font-weight:500;text-align:center;display:block}.upload input{display:block;font-size:10px;margin-top:8px;padding:0;border:0}.hint{font-size:11px}#removeImage,#resetLayout{font-size:11px;width:100%;margin-top:10px}footer{height:40px;background:#fff;border-top:1px solid #dedfd7;display:flex;align-items:center;justify-content:space-between;padding:0 24px;font-size:10px;color:#848e7c;letter-spacing:.3px}@media(max-width:1050px){main{grid-template-columns:185px minmax(270px,1fr) 250px}aside{padding:24px 15px}.workspace{padding:15px}.toolbar{flex-wrap:wrap}header{padding:12px;height:auto;flex-wrap:wrap}}@media(max-width:760px){main{display:flex;flex-direction:column}.controls{max-height:none}.surfaces{padding:15px}#parts{grid-template-columns:repeat(2,1fr);margin-top:12px}.note{display:none}#canvas{min-height:400px}.actions{flex-wrap:wrap}footer{height:auto;min-height:40px;gap:15px}.workspace{min-height:520px}}
.tool-buttons,.shape-buttons{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:12px}.tool-buttons button,.shape-buttons button{font-size:11px;padding:8px}.tool-buttons button.active{background:#dcebc4;border-color:#829666}.checkbox{flex-direction:row;align-items:center}.checkbox input{width:auto}#canvas.drawing svg{cursor:crosshair}#canvas.drawing [data-drag],#canvas.drawing [data-object]{cursor:crosshair}#canvas [data-object]{cursor:move}
/* Customer-facing workspace */
body:not(.production) .production-only{display:none!important}.part small{display:none}.editor-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:22px 0}.editor-tabs button{padding:11px 3px;font-size:11px;display:flex;flex-direction:column;align-items:center;gap:6px;border:0;background:#f2f3ed}.editor-tabs button.active{background:#e5efd4;color:#314b2a}.icon{width:18px;height:18px;display:inline-block;vertical-align:middle;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}button{display:inline-flex;align-items:center;justify-content:center;gap:7px}.part{justify-content:flex-start}.editor-panel h3{margin:18px 0 14px}.editor-panel[hidden]{display:none}.controls{padding-top:28px}.toolbar:has(.tabs.production-only){min-height:8px}body:not(.production) .workspace{padding-top:20px}body:not(.production) #canvas{margin-top:0}#canvas [data-corner]{cursor:nwse-resize;pointer-events:all}#canvas [data-corner="ne"],#canvas [data-corner="sw"]{cursor:nesw-resize}input[type=range]{padding:0;accent-color:#42633c;cursor:pointer;height:28px}.editor-tabs .icon{width:21px;height:21px}.workspace-bottom #caption{font-size:12px}.tool-buttons button:disabled{opacity:.35}.hint{line-height:1.7}.upload input{width:100%;font-size:11px}.shape-buttons button{min-height:45px}.shape-buttons .icon{width:20px;height:20px}.actions button{font-size:12px}body:not(.production) .controls{max-height:calc(100vh - 134px)}
.assembled-card{background:#f5f6ef;border:1px solid #e5e8dc;border-radius:13px;padding:10px;margin-top:18px}.preview-switch{display:flex;background:#e8ebdf;padding:3px;border-radius:8px;gap:3px}.preview-switch button{flex:1;border:0;background:transparent;font-size:11px;padding:7px}.preview-switch button.active{background:white;box-shadow:0 1px 4px #0001}.assembled-card svg{display:block;width:100%;height:255px;margin:6px auto}.assembled-card p{font-size:10px;text-align:center;margin:3px 0;color:#79846e;line-height:1.5}.assembled-card [data-preview-part]{cursor:pointer;outline:none}.assembled-card [data-preview-part]:hover>.preview-hit,.assembled-card [data-preview-part]:focus>.preview-hit{fill:#8cb853;fill-opacity:.18;stroke:#527c39;stroke-width:.2}.surfaces{max-height:calc(100vh - 134px);overflow-y:auto}#parts{margin-top:16px;gap:5px}.part{padding:6px 9px;font-size:12px}.part svg{width:25px;height:29px}.note{margin-top:16px}#assembledPreview text{pointer-events:none}@media(max-width:760px){.surfaces{max-height:none}.assembled-card{max-width:300px;margin:12px auto}.assembled-card svg{height:240px}#parts{grid-template-columns:repeat(2,1fr)}}
.piece-color-control{display:flex;align-items:center;gap:10px}.piece-color-control select{flex:1}.piece-color-control>span{width:32px;height:32px;border:1px solid #bfc5b7;border-radius:7px;flex-shrink:0}
.artwork-color-control{gap:5px}.artwork-color-control>span{width:20px;height:29px;border-radius:5px}.artwork-color-control select{width:0;min-width:0;padding:8px 3px;font-size:11px}
.upload-image-button{margin-bottom:12px;font-size:12px;background:white}.toolbar{flex-wrap:wrap}.image-drop{outline:3px dashed #63844b;outline-offset:-8px}
#textEditor{border:0;padding:0;margin:12px 0;min-width:0}#textEditor:disabled{opacity:.4}#addText{width:100%;margin-top:10px}#canvas text[data-text-id]{cursor:move;user-select:none}
.assembled-card{background:#fff;border-color:#e0e4d8;padding:12px}.assembled-card svg{height:300px;margin:14px auto 10px}.assembled-card [data-preview-part]:hover>.preview-hit,.assembled-card [data-preview-part]:focus>.preview-hit{stroke:#729d48;stroke-width:1.7;fill-opacity:.12}@media(max-width:760px){.assembled-card svg{height:300px}}
.color-explainer{border-radius:9px;padding:13px;margin:14px 0 18px;border:1px solid}.plastic-explainer{background:#edf3e3;border-color:#d4dfc1}.ink-explainer{background:#eef1fa;border-color:#d9dff1}.color-category{font-size:9px;letter-spacing:1.3px;font-weight:750;color:#4b6536}.ink-explainer .color-category{color:#536496}.color-explainer h3{font-size:13px;margin:8px 0 0}.color-explainer p{font-size:11px;line-height:1.6;margin:7px 0 0;color:#626e59}.ink-explainer p{color:#646b81}.artwork-color-control select{border-color:#cdd5ea}.piece-color-control:not(.artwork-color-control) select{border-color:#bdcea5}
.design-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px;background:white;border:1px solid #dfe4d7;border-radius:12px;padding:8px}.design-toolbar .editor-tabs{display:flex;gap:6px;margin:0;flex-wrap:wrap}.design-toolbar .editor-tabs button{flex-direction:row;padding:10px 14px;gap:8px}.design-toolbar .editor-tabs .icon{width:18px;height:18px}.history-buttons{display:flex;gap:6px}.history-buttons button{font-size:12px;padding:10px}.history-buttons button:disabled{opacity:.35;cursor:default}.controls .eyebrow{margin-bottom:10px}@media(max-width:760px){.design-toolbar{align-items:flex-start;flex-wrap:wrap}.design-toolbar .editor-tabs button{padding:9px}.history-buttons{margin-left:auto}}
/* Clear, color-coded toolbar tools. */
.design-toolbar{padding:10px;box-shadow:0 2px 7px #25352208}.design-toolbar .editor-tabs{gap:9px}.design-toolbar .editor-tabs button{--tool-color:#46702e;--tool-tint:#edf5e4;background:var(--tool-tint);color:var(--tool-color);border:1px solid transparent;border-radius:9px;min-height:46px;padding:10px 16px;font-size:13px;font-weight:650}.design-toolbar [data-panel="shapePanel"]{--tool-color:#315bb5;--tool-tint:#edf2ff}.design-toolbar [data-panel="textPanel"]{--tool-color:#7950ae;--tool-tint:#f3edfb}.design-toolbar [data-panel="imagePanel"]{--tool-color:#ad5b17;--tool-tint:#fff2e4}.design-toolbar .editor-tabs .icon{width:24px;height:24px;stroke-width:2}.design-toolbar .editor-tabs button:hover{border-color:var(--tool-color);filter:brightness(.98)}.design-toolbar .editor-tabs button.active{background:var(--tool-color);border-color:var(--tool-color);color:white;box-shadow:0 2px 5px #24352320}.design-toolbar .editor-tabs button:focus-visible{outline:3px solid #b5c6e5;outline-offset:3px}.history-buttons button{min-height:44px;background:#f4f5f1;font-weight:600}.history-buttons .icon{width:21px;height:21px}@media(max-width:1050px){.design-toolbar{flex-wrap:wrap}.design-toolbar .editor-tabs{flex:1}.design-toolbar .editor-tabs button{padding:9px 12px}.history-buttons{margin-left:auto}}@media(max-width:760px){.design-toolbar .editor-tabs{display:grid;grid-template-columns:repeat(4,1fr);width:100%}.design-toolbar .editor-tabs button{padding:10px 7px;flex-direction:column;font-size:11px}.design-toolbar .editor-tabs .icon{width:25px;height:25px}}
/* Neutral interface palette; artwork and plastic swatches retain their colors. */
body{background:#f2f2f2;color:#242424}header,footer,.surfaces,.controls{border-color:#dedede}.logo{background:#202020;color:white}.brand small,.eyebrow{color:#777}.note,p,.hint{color:#777}.note,hr{border-color:#e4e4e4}.part{border-color:#dedede}.part.active{background:#eeeeee;border-color:#777}.part small{color:#888}button,.upload{border-color:#d6d6d6}button:hover,.upload:hover{background:#ececec}button.primary{background:#252525;border-color:#252525;color:white}input,select{background:#fafafa;border-color:#d7d7d7;color:#272727}input[type=range]{accent-color:#474747}.tabs,.preview-switch{background:#e8e8e8}.tabs button.active,.preview-switch button.active{background:white}.workspace-bottom,#dimensions,.assembled-card p{color:#737373}#canvas{background:#eaeaea;background-image:radial-gradient(#cfcfcf .8px,transparent .8px)}.assembled-card{border-color:#dedede;background:white}.tool-buttons button.active{background:#e2e2e2;border-color:#777}.editor-tabs button{background:#ededed;color:#444}.editor-tabs button.active{background:#333;color:white}.plastic-explainer,.ink-explainer{background:#f1f1f1;border-color:#dedede}.color-category,.ink-explainer .color-category{color:#555}.color-explainer p,.ink-explainer p{color:#717171}.artwork-color-control select,.piece-color-control:not(.artwork-color-control) select{border-color:#ccc}.notice{background:#e9e9e9;color:#707070}.design-toolbar{border-color:#d9d9d9;box-shadow:0 2px 7px #00000006}.design-toolbar .editor-tabs button,.design-toolbar [data-panel="shapePanel"],.design-toolbar [data-panel="textPanel"],.design-toolbar [data-panel="imagePanel"]{--tool-color:#292929;--tool-tint:#ededed}.design-toolbar .editor-tabs button.active{background:#252525;color:white;border-color:#252525;box-shadow:0 2px 5px #0002}.design-toolbar .editor-tabs button:focus-visible{outline-color:#a5a5a5}.history-buttons button{background:#f3f3f3}.assembled-card [data-preview-part]:hover>.preview-hit,.assembled-card [data-preview-part]:focus>.preview-hit{fill:#777;stroke:#555}.image-drop{outline-color:#777}footer{color:#777}
.canvas-with-tools{position:relative;display:flex;flex:1;min-height:0}.canvas-with-tools #canvas{width:100%;flex:1}.canvas-side-tools{position:absolute;z-index:2;top:18px;left:14px}.piece-side-button{display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid #ccc;border-radius:10px;padding:12px 9px;font-size:10px;font-weight:600;box-shadow:0 2px 7px #00000012;min-width:68px}.piece-side-button .icon{width:25px;height:25px;stroke-width:1.8}.piece-side-button.active{background:#252525;color:white;border-color:#252525}.piece-side-button:hover{background:#e8e8e8}.piece-side-button.active:hover{background:#383838}.piece-side-button:focus-visible{outline:3px solid #aaa;outline-offset:3px}@media(max-width:760px){.canvas-side-tools{top:10px;left:10px}.piece-side-button{min-width:56px;padding:9px 6px;font-size:9px}}
.canvas-side-tools #colorPanel{position:absolute;top:0;left:80px;width:255px;padding:16px;background:white;border:1px solid #d1d1d1;border-radius:12px;box-shadow:0 5px 22px #00000018}.canvas-side-tools #colorPanel[hidden]{display:none}.canvas-side-tools .color-explainer{margin:0 0 14px;padding:10px}.canvas-side-tools .color-explainer h3{font-size:12px}.canvas-side-tools #colorPanel label{margin:0}.canvas-side-tools #colorPanel .piece-color-control{margin-top:5px}@media(max-width:760px){.canvas-side-tools #colorPanel{left:64px;width:min(235px,calc(100vw - 125px));padding:12px}}
.shapes-menu-anchor{position:relative}.design-toolbar .editor-tabs .shapes-menu-anchor>button{height:100%}#shapesMenu{position:absolute;left:0;top:calc(100% + 9px);width:240px;padding:12px;background:white;border:1px solid #d1d1d1;border-radius:11px;box-shadow:0 5px 22px #0002;z-index:10}#shapesMenu[hidden]{display:none}#shapesMenu .shape-buttons{margin:0;gap:8px}#shapesMenu .shape-buttons button{background:#f5f5f5;color:#333;border:1px solid #ddd;font-size:12px;font-weight:500;padding:12px;min-height:46px}#shapesMenu .shape-buttons button:hover{background:#e7e7e7;border-color:#999}#shapesMenu .shape-buttons .icon{width:21px;height:21px}@media(max-width:760px){.shapes-menu-anchor{display:flex}.shapes-menu-anchor>button{width:100%}#shapesMenu{width:220px}}
.text-menu-anchor{position:relative}.design-toolbar .editor-tabs .text-menu-anchor>button{height:100%}.text-menu-anchor #textPanel{position:absolute;top:calc(100% + 9px);left:0;width:290px;max-height:65vh;overflow:auto;padding:18px;background:#fff;border:1px solid #d1d1d1;border-radius:11px;box-shadow:0 5px 22px #0002;z-index:11}.text-menu-anchor #textPanel[hidden]{display:none}.text-menu-anchor #textPanel button{font-size:12px;padding:9px;min-height:36px;font-weight:500}.text-menu-anchor #textPanel button.primary{background:#252525;color:white}.text-menu-anchor #textPanel .icon{width:17px;height:17px}.text-menu-anchor #textPanel h3{margin:0 0 12px;font-size:14px}.text-menu-anchor #textPanel label{margin:12px 0}.text-menu-anchor #textPanel .row label{margin:5px 0}.text-menu-anchor #textPanel .hint{margin-bottom:0}@media(max-width:760px){.text-menu-anchor{display:flex}.text-menu-anchor>button{width:100%}.text-menu-anchor #textPanel{left:auto;right:-55px;width:min(280px,calc(100vw - 65px));max-height:60vh}}
.layers-section{border-bottom:1px solid #ddd;padding-bottom:18px;margin:20px 0}.layers-section h3{margin:0}.layers-section>.hint{margin:6px 0 12px}.layer-row{display:flex;align-items:center;gap:3px;border:1px solid #ddd;border-radius:7px;margin-top:6px;padding:4px;background:#fafafa}.layer-row.selected{border-color:#555;background:#ececec}.layer-row button{padding:5px;border:0;background:transparent;font-size:12px;min-width:24px}.layer-row .layer-name{flex:1;min-width:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.layers-empty{font-size:11px;color:#888}#canvas [data-extra-corner]{cursor:nwse-resize;pointer-events:all}#canvas [data-extra-corner=ne],#canvas [data-extra-corner=sw]{cursor:nesw-resize}
.copy-tools{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:12px 0}.copy-tools button{font-size:11px;padding:8px}.copy-tools #copyPartDesign{grid-column:1/-1}.copy-tools button:disabled{opacity:.4;cursor:default}
.mirror-tools{border-top:1px solid #e2e2e2;padding-top:8px;margin:12px 0}.mirror-tools>label{margin:4px 0;font-size:11px}.mirror-tools .tool-buttons{margin-top:7px}
#shapesMenu{width:285px;max-height:65vh;overflow:auto}#shapesMenu .shape-buttons button{justify-content:flex-start;font-size:11px}.arrange-tools{margin:12px 0;padding:10px;border:1px solid #ddd;border-radius:8px;font-size:12px}.arrange-tools summary{cursor:pointer;font-weight:600}.arrange-tools label{margin:12px 0 3px}.arrange-tools .hint{font-size:10px}@media(max-width:760px){#shapesMenu{width:min(270px,calc(100vw - 60px));max-height:55vh}}
#drawTool[hidden]{display:none}.design-toolbar [data-panel="drawPanel"]{--tool-color:#292929;--tool-tint:#ededed}#shapePanel .tool-buttons:has(#selectTool){grid-template-columns:1fr}
.layer-order-hint{font-size:10px;color:#888;margin:4px 0 9px}.layer-row{padding:3px 8px}.layer-row .layer-name{font-size:12px;padding:9px 2px;white-space:normal}.layer-name>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layer-name small{display:block;font-size:10px;color:#888;margin-top:3px}.layer-selected-mark{font-size:13px;padding:0 4px;color:#444}.layer-selection-tools{border-top:1px solid #ddd;margin-top:14px;padding-top:10px}.layer-selection-tools p{font-size:11px;overflow-wrap:anywhere;margin:0 0 9px}.layer-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.layer-action-grid button{padding:9px 6px;font-size:11px;min-height:35px}.layer-action-grid button:disabled{opacity:.35;cursor:default}
.layer-drag-grip{font-size:18px;color:#999;cursor:grab;padding:0 3px;user-select:none}.layer-row[draggable=true]{cursor:grab;position:relative}.layer-row.dragging{opacity:.4}.layer-row.drop-before:before,.layer-row.drop-after:after{content:'';position:absolute;left:0;right:0;height:3px;background:#333;border-radius:2px;pointer-events:none}.layer-row.drop-before:before{top:-5px}.layer-row.drop-after:after{bottom:-5px}
.arrange-tools h3{font-size:12px;margin:0 0 10px;font-weight:600}
.arrange-tools{border:0;border-radius:0;padding:14px 0;margin:12px 0;border-top:1px solid #e2e2e2}.mirror-tools h3,.arrange-tools h3{font-size:12px;margin:0 0 10px;font-weight:600}.arrange-tools .style-heading{margin-top:20px;padding-top:16px;border-top:1px solid #e2e2e2}
.controls[hidden]{display:none!important}main.no-context-sidebar{grid-template-columns:245px minmax(350px,1fr)}@media(max-width:1050px){main.no-context-sidebar{grid-template-columns:185px minmax(270px,1fr)}}@media(max-width:760px){main.no-context-sidebar{display:flex}}
.draw-menu-anchor{position:relative}.design-toolbar .editor-tabs .draw-menu-anchor>button{height:100%}.draw-menu-anchor #drawPanel{position:absolute;top:calc(100% + 9px);left:0;width:245px;padding:17px;background:white;border:1px solid #d1d1d1;border-radius:11px;box-shadow:0 5px 22px #0002;z-index:12}.draw-menu-anchor #drawPanel[hidden]{display:none}.draw-menu-anchor #drawPanel h3{font-size:13px;margin:0 0 12px}.draw-menu-anchor #drawPanel .hint{margin-bottom:0}@media(max-width:760px){.draw-menu-anchor{display:flex}.draw-menu-anchor>button{width:100%}.draw-menu-anchor #drawPanel{left:auto;right:-45px;width:min(245px,calc(100vw - 60px))}}
#drawPanel .tool-buttons{margin:0 0 12px}#drawPanel .tool-buttons button{font-size:12px;padding:8px;background:#f5f5f5;color:#333}#drawPanel .tool-buttons button.active{background:#252525;color:white;border-color:#252525}#canvas.erasing.drawing svg,#canvas.erasing.drawing [data-object]{cursor:cell}
.editing-piece-label{position:absolute;z-index:2;top:18px;left:50%;transform:translateX(-50%);padding:9px 15px;background:#ffffffed;border:1px solid #d5d5d5;border-radius:8px;color:#333;font-size:12px;font-weight:650;pointer-events:none;white-space:nowrap;box-shadow:0 1px 5px #00000008}@media(max-width:760px){.editing-piece-label{top:12px;left:auto;right:12px;transform:none;font-size:11px;padding:8px 10px}}
.controls #textPanel.sidebar-text-options{position:static;width:auto;max-height:none;border:0;box-shadow:none;padding:18px 0 0;margin-top:18px;border-top:1px solid #ddd;background:transparent}.controls #textPanel.sidebar-text-options h3{font-size:14px;margin:0 0 12px}
.controls>h2{font-size:22px;margin:9px 0 7px}.properties-item-type{font-size:14px;font-weight:650;color:#333;margin:0}.properties-piece-name{font-size:11px;color:#888;margin:4px 0 18px}#propertiesSpecific .editor-panel{padding:16px 0 18px;margin:0 0 16px;border-top:1px solid #ddd;border-bottom:1px solid #ddd}#propertiesSpecific .editor-panel h3{font-size:12px;margin:0 0 12px;color:#555}#propertiesSpecific .ink-explainer{display:none}#propertiesSpecific .editor-panel label{font-size:11px}#propertiesSpecific #textPanel.sidebar-text-options{padding:16px 0 18px;margin:0 0 16px}.controls .layers-section{margin-top:0}#propertiesSpecific #textPanel.sidebar-text-options>h3{font-size:12px;color:#555}#propertiesSpecific #imagePanel>h3{font-size:12px;color:#555}
#canvas [data-rotate-handle]{cursor:grab;pointer-events:all}#canvas [data-rotate-handle]:active{cursor:grabbing}
.canvas-side-tools{display:flex;flex-direction:column;gap:9px}.canvas-side-tools #showLayers{order:2}.canvas-side-tools>button[data-panel=colorPanel]{order:1}.canvas-side-tools #colorPanel{order:3}
.independent-layers{position:absolute;top:16px;right:14px;bottom:16px;width:250px;z-index:4;padding:16px;background:#fffffffa;border:1px solid #d4d4d4;border-radius:12px;box-shadow:0 4px 18px #00000015;overflow-y:auto}.independent-layers[hidden]{display:none}.layers-panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.layers-panel-header h3{font-size:15px;margin:0}.layers-panel-header button{border:0;background:transparent;padding:4px 8px;font-size:22px;color:#777}.independent-layers>.hint{font-size:11px;margin:0 0 12px}.independent-layers .layer-action-grid{grid-template-columns:1fr 1fr}@media(max-width:760px){.independent-layers{width:min(235px,calc(100% - 85px));top:65px;right:8px;bottom:8px;padding:12px}}
/* Layers occupies its own column rather than floating over artwork. */
.canvas-with-tools:has(#independentLayersPanel:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:14px;align-items:stretch}.canvas-with-tools #independentLayersPanel{position:static;top:auto;right:auto;bottom:auto;width:auto;min-width:0;z-index:auto;max-height:calc(100vh - 270px);align-self:stretch;margin:0;box-shadow:none}.canvas-with-tools:has(#independentLayersPanel:not([hidden])) #canvas{min-width:0}.canvas-with-tools #independentLayersPanel .layers-panel-header{position:sticky;top:-16px;background:white;padding:6px 0;z-index:1}@media(max-width:1050px){.canvas-with-tools:has(#independentLayersPanel:not([hidden])){grid-template-columns:minmax(0,1fr) 210px;gap:10px}}@media(max-width:760px){.canvas-with-tools:has(#independentLayersPanel:not([hidden])){grid-template-columns:minmax(0,1fr)}.canvas-with-tools #independentLayersPanel{max-height:300px;min-height:120px}.canvas-with-tools #independentLayersPanel .layers-panel-header{top:-12px}}
.canvas-with-tools:has(#independentLayersPanel:not([hidden])){grid-template-columns:250px minmax(0,1fr)}.canvas-with-tools:has(#independentLayersPanel:not([hidden])) #independentLayersPanel{grid-column:1;grid-row:1}.canvas-with-tools:has(#independentLayersPanel:not([hidden])) #canvas{grid-column:2;grid-row:1}.canvas-with-tools:has(#independentLayersPanel:not([hidden])) .canvas-side-tools{left:278px}.canvas-with-tools:has(#independentLayersPanel:not([hidden])) .editing-piece-label{left:calc(50% + 132px)}@media(max-width:1050px){.canvas-with-tools:has(#independentLayersPanel:not([hidden])){grid-template-columns:210px minmax(0,1fr)}.canvas-with-tools:has(#independentLayersPanel:not([hidden])) .canvas-side-tools{left:234px}.canvas-with-tools:has(#independentLayersPanel:not([hidden])) .editing-piece-label{left:calc(50% + 110px)}}@media(max-width:760px){.canvas-with-tools:has(#independentLayersPanel:not([hidden])){grid-template-columns:minmax(0,1fr)}.canvas-with-tools:has(#independentLayersPanel:not([hidden])) #canvas{grid-column:1;grid-row:1}.canvas-with-tools:has(#independentLayersPanel:not([hidden])) #independentLayersPanel{grid-column:1;grid-row:2}.canvas-with-tools:has(#independentLayersPanel:not([hidden])) .canvas-side-tools{left:10px}.canvas-with-tools:has(#independentLayersPanel:not([hidden])) .editing-piece-label{left:auto;right:12px}}
#showLayers[hidden],#closeLayersPanel[hidden]{display:none!important}
/* Unified piece navigation and layers rail. */
main,main.no-context-sidebar{grid-template-columns:minmax(0,1fr) 290px}main.no-context-sidebar{grid-template-columns:minmax(0,1fr)}.piece-navigation>h3{font-size:14px;margin:0 0 7px}.piece-navigation>p{font-size:11px;margin:0 0 12px}.piece-navigation .assembled-card{margin-top:0;padding:8px}.piece-navigation .assembled-card svg{height:205px;margin:9px auto}.piece-navigation #parts{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:12px 0 18px}.piece-navigation .part{padding:6px;font-size:10px;gap:6px;min-width:0}.piece-navigation .part svg{width:19px;height:23px}.independent-layers .layers-panel-header{border-top:1px solid #ddd;margin-top:10px;padding-top:16px}.canvas-with-tools #independentLayersPanel{max-height:calc(100vh - 235px)}@media(max-width:1050px){main{grid-template-columns:minmax(0,1fr) 250px}main.no-context-sidebar{grid-template-columns:minmax(0,1fr)}}@media(max-width:760px){main,main.no-context-sidebar{display:flex}.piece-navigation .assembled-card svg{height:170px}.canvas-with-tools #independentLayersPanel{max-height:430px}}
#closeDrawing{font-size:12px;padding:9px 12px;margin-bottom:5px}#closeDrawing[hidden],#drawingClosureHint[hidden]{display:none!important}#closeDrawing:disabled{opacity:.55;cursor:default}
#canvas [data-group-corner]{cursor:nwse-resize;pointer-events:all}#canvas [data-group-corner=ne],#canvas [data-group-corner=sw]{cursor:nesw-resize}
#canvas [data-group-rotate]{cursor:grab;pointer-events:all}#canvas [data-group-rotate]:active{cursor:grabbing}
/* Consistent main section headings throughout Properties. */
.controls h3,.controls #propertiesSpecific .editor-panel h3,.controls #propertiesSpecific #textPanel.sidebar-text-options>h3,.controls #propertiesSpecific #imagePanel>h3,.controls .mirror-tools h3,.controls .arrange-tools h3{font-size:12px;font-weight:650;line-height:1.4;letter-spacing:0;color:#4a4a4a;margin:20px 0 10px;padding:0}.controls #propertiesSpecific .editor-panel h3:first-child,.controls #propertiesSpecific #textPanel.sidebar-text-options>h3:first-child,.controls #propertiesSpecific #imagePanel>h3:first-child{margin-top:0}.controls .mirror-tools,.controls .arrange-tools{border-top:0;margin:0;padding:0}.controls .arrange-tools .style-heading{border-top:0;padding:0;margin:20px 0 10px}.controls .copy-tools,.controls .mirror-tools .tool-buttons,.controls .arrange-tools .tool-buttons{margin-top:0;margin-bottom:0}.controls .layers-section{border:0;padding-bottom:0}.controls .layers-section>h3:first-child{margin-top:20px}
/* Compact Properties with common editing controls first. */
.controls{padding:20px 16px}.controls>h2{font-size:20px;margin:6px 0}.properties-piece-name{margin-bottom:12px}#propertiesSpecific .editor-panel,#propertiesSpecific #textPanel.sidebar-text-options{padding:10px 0 12px;margin:0 0 10px}.controls label{margin:9px 0;gap:5px}.controls input,.controls select{padding:7px}.controls input[type=range]{height:22px;padding:0}.controls .tool-buttons,.controls .copy-tools{gap:5px}.controls .tool-buttons button,.controls .copy-tools button{padding:7px 5px;min-height:30px;font-size:11px}.controls h3,.controls .arrange-tools h3{margin:14px 0 8px}.controls .properties-primary-style>h3{margin:0 0 8px}.controls #shapeStyleControls>.row{gap:8px}.controls #shapeStyleControls .checkbox{display:inline-flex;margin:7px 10px 5px 0;font-size:10px}.controls .properties-primary-style>label{margin-bottom:10px}.controls .arrange-tools{margin:0}.controls .arrange-tools .tool-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.controls .arrange-tools .hint{display:none}.properties-more{border-top:1px solid #ddd;margin-top:14px;padding-top:12px}.properties-more>summary{cursor:pointer;font-size:12px;font-weight:650;color:#555;list-style-position:inside}.properties-more[open]>summary{margin-bottom:8px}.properties-more h3{margin-top:14px}.controls #propertiesSpecific .hint{font-size:10px;line-height:1.5;margin:7px 0}.controls #propertiesSpecific #shapePanel .hint{display:none}.controls #propertiesSpecific #shapePanel .tool-buttons:has(#selectTool){display:none}
.properties-visible-actions{padding-top:0;margin-top:10px}.controls .properties-visible-actions h3{margin:12px 0 7px}.controls .properties-visible-actions .tool-buttons,.controls .properties-visible-actions .copy-tools{margin-top:0;margin-bottom:0}.controls .properties-visible-actions .mirror-tools{padding:0;margin:0;border:0}
