@font-face{font-family:Poppins;src:url('../fonts/poppins-400.woff2')}@font-face{font-family:Poppins;src:url('../fonts/poppins-600.woff2');font-weight:600}*{box-sizing:border-box}body{margin:0;font:14px Poppins,system-ui,sans-serif;color:#273b49;background:#f5f7f8}button,input,select{font:inherit}button{min-height:44px;border:1px solid #dae2e7;border-radius:11px;background:white;color:#344b59;padding:9px 12px;cursor:pointer;transition:background .15s}button:hover{background:#fff0eb;border-color:#FE5D44}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #3188ac;outline-offset:2px}button:disabled{opacity:.4;cursor:default}button.active{background:#FE5D44;color:white;border-color:#FE5D44}header{height:80px;display:flex;align-items:center;justify-content:space-between;padding:0 25px;background:white;border-bottom:1px solid #e1e8ed;gap:15px}.brand{display:flex;align-items:center;gap:12px;font-weight:600;font-size:18px}.brand span:not(.mark){font-weight:400;color:#667f8c;font-size:15px}.mark{display:grid;place-items:center;background:#FE5D44;border-radius:12px;width:40px;height:40px;color:#fff;font-weight:600}nav{display:flex;gap:8px}main{display:grid;grid-template-columns:258px minmax(320px,1fr) 246px;height:calc(100dvh - 80px);min-height:650px}aside{background:white;padding:23px 20px;overflow-y:auto}.left{border-right:1px solid #e0e7eb}.right{border-left:1px solid #e0e7eb}.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:600;color:#b65c49}h1{font-size:24px;line-height:1.35;margin:10px 0}h2{font-size:14px;margin:0 0 13px;font-weight:600}p{line-height:1.65}.intro{font-size:12px;color:#6a7e89;margin-bottom:26px}section{margin-bottom:25px}.forms{display:flex;gap:6px}.forms button{flex:1;font-size:11px;padding:8px 4px;display:grid;gap:5px}.forms span{font-size:27px;line-height:30px}.segmented{display:flex;gap:4px}.segmented button{flex:1;padding:8px 4px;font-size:12px}.small{font-size:11px;color:#6b7e89;line-height:1.7}.quiet{min-height:36px;font-size:11px;padding:5px 9px}.tools{display:grid;grid-template-columns:1fr 1fr;gap:6px}.tools button:first-child{grid-column:1/-1}.tip{padding:15px;background:#fff4e6;border-radius:12px;font-size:11px;color:#8b6944}.tip p{margin:6px 0 0}.workspace{position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 40%,#fafdfd,#e9f0f3)}#viewport{position:absolute;inset:0}canvas{display:block;touch-action:none;width:100%;height:100%}.viewbar{position:absolute;z-index:2;top:18px;left:16px;right:16px;display:flex;justify-content:center;gap:5px;flex-wrap:wrap}.viewbar button{font-size:11px;min-height:38px;padding:7px 11px;box-shadow:0 3px 12px #273b4910}.scene-footer{position:absolute;bottom:18px;left:18px;right:18px;display:flex;gap:10px;align-items:center;pointer-events:none;font-size:10px;color:#6d8491}.pill{white-space:nowrap;background:#fff;padding:5px 9px;border-radius:20px;letter-spacing:1px;font-size:9px}#status{position:absolute;left:50%;bottom:65px;transform:translateX(-50%);background:#ffffffeb;border:1px solid #e0e7eb;border-radius:22px;padding:10px 18px;font-size:11px;max-width:90%;text-align:center;pointer-events:none}.check{display:flex;align-items:center;gap:10px;min-height:43px;font-size:12px}input[type=checkbox]{width:19px;height:19px;accent-color:#FE5D44}.field{display:block;font-size:12px;margin:16px 0 8px}select,input[type=number]{border:1px solid #dae2e7;background:#f5f8fa;border-radius:10px;padding:11px;width:100%;min-height:44px;color:#344b59}.colors{display:flex;gap:10px;margin-top:18px}.swatch{background:var(--swatch);width:35px;min-height:35px;border:3px solid white;box-shadow:0 0 0 1px #dce5ea;border-radius:50%;padding:0}.swatch:hover{background:var(--swatch);box-shadow:0 0 0 2px #FE5D44}.printing{border-top:1px solid #e5ebef;padding-top:23px}.printing h2{font-size:17px;margin-top:10px}.height-row{display:flex;align-items:center;gap:8px}.dimensions{margin-top:15px;background:#f4f7f9;border-radius:10px;padding:12px;font-size:12px;line-height:2}.printing button{width:100%;margin-bottom:8px}.primary{background:#FE5D44;color:#fff;border-color:#FE5D44}.primary:hover{background:#e84c35;color:white}#print-result{border-radius:9px;padding:8px 0}dialog{border:0;border-radius:18px;padding:25px;max-width:430px;box-shadow:0 20px 80px #273b4933}dialog::backdrop{background:#233a4866}dialog div{display:flex;gap:10px}@media(max-width:1100px){main{grid-template-columns:220px minmax(300px,1fr) 210px}aside{padding:18px 14px}.brand span:not(.mark){display:none}nav button{font-size:12px}}@media(max-width:1900px){header{height:auto;min-height:100px;padding:12px;flex-wrap:wrap}.brand{font-size:16px}nav{width:100%;gap:5px}nav button{flex:1;padding:6px;font-size:11px}main{display:flex;flex-wrap:wrap;height:auto;min-height:0}.workspace{order:0;width:100%;height:58dvh;min-height:420px}.left{order:1;width:55%}.right{order:2;width:45%}h1{font-size:20px}.scene-footer{font-size:9px}.viewbar{top:10px}.viewbar button{padding:6px 8px}.tools button{font-size:12px}}@media(prefers-reduced-motion:reduce){button{transition:none}}
.forms{display:grid;grid-template-columns:repeat(3,1fr)}.segmented{display:grid;grid-template-columns:1fr 1fr}.colors{flex-wrap:wrap}#custom-color{width:100%;height:44px;padding:4px;border:1px solid #dae2e7;border-radius:10px;background:white}.object-row{display:flex;align-items:center;gap:8px;margin-bottom:6px}.object-row input{width:19px;height:19px;accent-color:#FE5D44;flex-shrink:0}.object-row button{flex:1;text-align:left;font-size:11px;display:flex;align-items:center;gap:7px;padding:8px;min-width:0}.object-dot{width:13px;height:13px;border-radius:50%;border:1px solid #abb9c4;flex-shrink:0}.object-actions{display:flex;gap:6px;margin:10px 0}.object-actions button{flex:1;font-size:11px;padding:7px}.left #join,.left #snowman{width:100%;font-size:11px;margin-top:5px}.left{scrollbar-width:thin}#objects{max-height:230px;overflow-y:auto}.left h1{font-size:22px}
.left #join-selected{width:100%;font-size:11px;margin-top:6px}#union-result{padding:12px;background:#fff3dc;border:1px solid #f2c77b;border-radius:10px;color:#80582b}.needs-contact button{box-shadow:0 0 0 2px #e3a128}
@media(max-width:1900px){nav{display:grid;grid-template-columns:repeat(3,1fr)}}

.brand{flex-shrink:0;gap:13px}.official-logo{display:block;width:190px;height:50px;object-fit:contain}.brand .brand-title{border-left:1px solid #dce4e9;padding-left:13px;font-size:14px;white-space:nowrap}@media(max-width:1250px){.official-logo{width:160px;height:44px}.brand .brand-title{display:none}}@media(max-width:1900px){.official-logo{width:180px;height:44px}.brand .brand-title{display:inline;font-size:12px}}
#custom-add{width:100%;margin:10px 0 18px;font-size:12px}.custom-measures{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}#custom-dialog{width:520px;max-width:95vw}#custom-dialog form>div:last-of-type{display:flex;gap:8px}#custom-error{color:#b54431}

.precise-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.precise-actions button{margin:0;min-width:0;padding:10px 6px;font-size:12px}#rotation-dialog{width:520px;max-width:95vw}#rotation-error{color:#b54431}

#translation-dialog{width:520px;max-width:95vw}#translation-error{color:#b54431}

#add-text{margin:0}#text-dialog{width:450px;max-width:95vw}#text-word{width:100%;min-height:44px;border:1px solid #dae2e7;border-radius:10px;padding:10px;font:inherit;background:#f5f8fa}#text-error{color:#b54431}
/* Compact grouped toolbar; all actions retain accessible names and native tooltips. */
body{height:100dvh;display:flex;flex-direction:column}header{flex-shrink:0}.model-toolbar{flex-shrink:0;display:flex;gap:16px;align-items:center;justify-content:center;padding:8px 14px;background:#fff;border-bottom:1px solid #dce4e9;flex-wrap:wrap}.toolbar-group{display:flex;align-items:center;gap:4px;border-right:1px solid #dce4e9;padding-right:14px}.toolbar-group:last-child{border:0;padding-right:0}.toolbar-label{font-size:10px;color:#71818b;margin-right:4px;white-space:nowrap}.model-toolbar button{width:38px;height:38px;min-height:38px;padding:7px;border-radius:9px;flex-shrink:0}.model-toolbar svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;display:block}.model-toolbar #rotate-exact{margin:0}.model-toolbar #round-edge{margin:0}main{flex:1;height:auto;min-height:0}.left h1{font-size:18px}.intro{margin-bottom:18px}#orientation-widget{position:absolute;right:12px;top:12px;width:120px;height:120px;z-index:3;cursor:pointer}#orientation-widget canvas{width:100%;height:100%}.scene-footer{flex-wrap:wrap}.toolbar-group button:focus-visible{outline-offset:1px}
@media(max-width:1100px){.model-toolbar{gap:6px;padding:6px}.toolbar-label{display:none}.toolbar-group{padding-right:6px}.model-toolbar button{width:36px;height:36px;min-height:36px;padding:6px}}
@media(max-width:1900px){body{height:auto;min-height:100dvh}.model-toolbar{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;max-width:100vw;min-height:54px}.toolbar-group{flex-shrink:0}main{flex:auto}.workspace{height:65dvh;min-height:420px}#orientation-widget{width:100px;height:100px}.left,.right{padding-top:16px}}
.model-toolbar{gap:20px;padding:6px 14px}.toolbar-group{flex-direction:column;align-items:flex-start;gap:5px;padding-right:20px}.toolbar-label{display:block;font-size:10px;margin:0}.toolbar-buttons{display:flex;gap:4px}.cube-controls{position:absolute;right:12px;top:137px;z-index:3;display:flex;gap:3px}.cube-controls button{width:28px;height:32px;min-height:32px;padding:5px;border-radius:7px}.cube-controls svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:1100px){.model-toolbar{gap:10px}.toolbar-group{padding-right:10px}.toolbar-label{display:block}}
@media(max-width:1900px){.model-toolbar{min-height:70px;gap:10px}.toolbar-group{padding-right:10px}.cube-controls{top:116px;right:9px}.cube-controls button{width:25px}}
/* Figure actions join the top toolbar; object layers stay on the left. */
.model-toolbar{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;max-width:100vw;gap:14px}.toolbar-group{flex-shrink:0;padding-right:14px}.model-toolbar #join,.model-toolbar #join-selected{margin:0;width:38px;font-size:inherit}.model-toolbar button{flex:0 0 38px}.toolbar-buttons{flex-wrap:nowrap}
@media(min-width:1450px){.model-toolbar{justify-content:center}}
@media(max-width:1100px){.model-toolbar{gap:10px}.toolbar-group{padding-right:10px}.model-toolbar button,.model-toolbar #join,.model-toolbar #join-selected{width:36px;flex-basis:36px}}

/* Project tools and live help share the compact top bars. */
header{height:auto;min-height:80px;padding-top:10px;padding-bottom:10px}.header-messages{flex:1;min-width:0;max-width:900px;display:grid;gap:3px}.header-messages p{margin:0;font-size:11px;line-height:1.45}.header-messages #selection-text{font-size:13px;font-weight:600;color:#344b59}.header-messages #status{position:static;transform:none;max-width:none;text-align:left;padding:0;border:0;border-radius:0;background:none;color:#b64934;font-size:11px;line-height:1.45}.header-messages #tool-help{color:#6b7e89}@media(max-width:1900px){header{min-height:0;gap:8px}.header-messages{flex-basis:100%;max-width:none}.header-messages #selection-text{font-size:12px}}

.header-messages{margin-left:auto;text-align:right}.header-messages #status{text-align:right;color:#FE5D44}

#save-dialog,#stl-dialog{width:430px;max-width:95vw}#save-name,#stl-name{width:100%;min-height:44px;border:1px solid #dae2e7;border-radius:10px;padding:10px;background:#f5f8fa}#save-error,#stl-error{color:#b54431}

#round-dialog{width:430px;max-width:95vw}#round-amount{width:100%;min-height:44px;accent-color:#FE5D44}#round-value{font-weight:600;color:#FE5D44}

#resize-dialog{width:520px;max-width:95vw}#mirror-dialog{width:430px;max-width:95vw}#resize-error,#mirror-error{color:#b54431}

#custom-rounded-row[hidden]{display:none}

/* Equal tiles for every primitive and text tool. */
.forms{grid-template-columns:repeat(3,minmax(0,1fr))}.forms button{min-width:0;height:76px;grid-template-rows:30px 18px;align-content:center;white-space:nowrap}

/* Group names below the compact icon buttons. */
.toolbar-group{align-items:center}.toolbar-buttons{order:0}.toolbar-label{order:1;align-self:stretch;text-align:center;margin:0}

/* Hidden conditional fields must override their display rules. */
[hidden]{display:none!important}

#zone-dialog,#align-dialog{width:430px;max-width:95vw}.dialog-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.dialog-actions button{flex:1;min-width:110px}

#step-dialog,#symmetry-dialog,#measure-dialog{width:430px;max-width:95vw}

#rename-dialog{width:430px;max-width:95vw}#rename-name{width:100%;min-height:44px;border:1px solid #dae2e7;border-radius:10px;padding:10px;background:#f5f8fa}#rename-error{color:#b54431}.object-row .rename-figure{flex:0 0 44px;width:44px;min-height:44px;justify-content:center;font-size:20px;padding:4px}.object-row button[data-object-id]{overflow-wrap:anywhere}

.object-row{gap:3px;flex-wrap:wrap}.object-row button[data-object-id]{flex:1 1 90px}.object-row .rename-figure,.object-row .figure-state{flex:0 0 32px;width:32px;min-height:36px;padding:5px;justify-content:center}.figure-state svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.figure-state[aria-pressed=true]{color:#FE5D44;background:#fff0eb}.figure-hidden button[data-object-id]{opacity:.5}
.object-row{display:grid;grid-template-columns:19px minmax(0,1fr) repeat(3,32px);gap:3px}.object-row button[data-object-id]{width:100%;padding:7px 5px}.object-row .figure-state,.object-row .rename-figure{width:32px}

/* Balanced side panels and comfortable spacing around the selection checkbox. */
@media(min-width:1101px){main{grid-template-columns:300px minmax(320px,1fr) 300px}}

.object-row{grid-template-columns:19px minmax(0,1fr) repeat(3,32px);column-gap:6px}.object-row input{margin:0}.object-row button[data-object-id]{font-size:10px;overflow-wrap:normal;word-break:normal;gap:5px;line-height:1.4}.object-row .object-dot{width:11px;height:11px}
#corner-handle{position:absolute;z-index:4;width:36px;min-height:36px;transform:translate(-50%,-50%);border:2px solid white;border-radius:8px;background:#FE5D44;color:white;font-size:23px;padding:0;box-shadow:0 2px 9px #273b4940;touch-action:none;cursor:nwse-resize}

@media(max-width:1900px){.left,.right{width:50%}}@media(max-width:600px){.left,.right{width:100%}}

.colors{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;justify-items:center}.colors .swatch{width:35px;height:35px;min-height:35px}

.example-label{margin:15px 0 7px}.example-buttons{display:flex;gap:8px;flex-wrap:wrap}.example-buttons button{width:32px;min-height:36px;height:36px;padding:5px;display:grid;place-items:center}.example-buttons svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#capture-dialog{width:430px;max-width:95vw}#capture-error{color:#b54431}

#capture-name{width:100%;min-height:44px;border:1px solid #dae2e7;border-radius:10px;padding:10px;background:#f5f8fa}
/* Recover the empty space after adding a custom figure. */
.left{padding-top:14px;padding-bottom:12px}.left .intro{margin:8px 0 12px}.left section{margin-bottom:12px}.left #custom-add{margin:8px 0 0}.left h1{margin:8px 0}.left #figure-dimensions{margin:10px 0}.left .example-label{margin-top:10px}
.model-toolbar{overflow-x:visible;flex-wrap:wrap;justify-content:center}.toolbar-group{max-width:100%;min-width:0}.toolbar-buttons{flex-wrap:wrap}

@media(max-width:1900px){
 body{padding-bottom:var(--toolbar-height,250px)}
 .model-toolbar{position:fixed;bottom:0;left:0;right:0;z-index:20;display:grid;grid-template-columns:repeat(auto-fit,minmax(32px,1fr));gap:4px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));border-top:1px solid #dce4e9;border-bottom:0;box-shadow:0 -3px 14px #273b4914;max-width:100%;min-height:0;overflow:visible}
 .model-toolbar .toolbar-group,.model-toolbar .toolbar-buttons{display:contents}.model-toolbar .toolbar-label{display:none}
 .model-toolbar button,.model-toolbar #join,.model-toolbar #join-selected{width:100%;max-width:40px;height:36px;min-height:36px;padding:6px;justify-self:center}
 .workspace{height:calc(100dvh - var(--header-height,100px) - var(--toolbar-height,250px));min-height:260px}
 .scene-footer{bottom:8px}.left,.right{padding-top:14px}
 dialog{max-height:calc(100dvh - 24px);overflow-y:auto}
}

/* Two independent rows avoid forcing the long edit group into a narrow column. */
.toolbar-row{display:contents}



@media(max-width:1900px){.model-toolbar .toolbar-row{display:contents}}
.left .example-buttons{gap:6px}.left .example-label{margin-bottom:5px}
.left h2{margin-bottom:10px}

#custom-coil-row,#custom-gear-row{grid-template-columns:repeat(2,minmax(0,1fr))}#custom-dialog .dialog-actions{margin-top:16px}

.custom-measures:has(#custom-depth-row[hidden]){grid-template-columns:repeat(2,minmax(0,1fr))}

.left .example-buttons{gap:5px}
/* Seven examples always share a single row, including scrollbar space. */
.left .example-buttons{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;flex-wrap:nowrap}.left .example-buttons button{width:100%;max-width:32px;min-width:0;justify-self:center}
