@font-face{font-family:DM Sans;src:url(fonts/dm-sans-latin.woff2) format("woff2");font-weight:100 900;font-display:swap}
:root{color-scheme:light;--bg:#f7f8f5;--sheet:#fff;--ink:#1d2926;--muted:#606d68;--line:#dce1dc;--soft:#f1f4ef;--green:#31644e;--wash:#eaf3e9;--cta:#285d46;--on:#fff;--shadow:0 3px 14px #182e2210;--stage:#e9edf4;--glass:#ffffffdf}
:root[data-theme=dark]{color-scheme:dark;--bg:#151b1c;--sheet:#202829;--ink:#edf3ed;--muted:#b0beb9;--line:#394748;--soft:#283332;--green:#aae2b9;--wash:#2b3c33;--cta:#a4dcb3;--on:#182b21;--shadow:0 4px 16px #0002;--stage:#293341;--glass:#263035e8}
*{box-sizing:border-box}[hidden],.defs{display:none!important}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.45 'DM Sans',system-ui,sans-serif}a{color:inherit;text-decoration:none}button,input,select{font:inherit;color:inherit}button{background:none;border:0;cursor:pointer}button:disabled{opacity:.45;cursor:default}button:hover:not(:disabled){filter:brightness(.94)}:focus-visible{outline:3px solid #68a6e2;outline-offset:3px}h1,h2,h3,p{margin:0}button,.icon-button{font-weight:600}.icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linejoin:round;stroke-linecap:round;flex:none}.bar{background:var(--sheet);border-bottom:1px solid var(--line)}.bar-inner,main,footer{width:min(1224px,calc(100% - 80px));margin:auto}.bar-inner{display:flex;align-items:center;height:68px;gap:46px}.brand{display:inline-flex;align-items:center;font-size:30px;font-weight:800;letter-spacing:-1.9px;line-height:1}.brand-mark{width:35px;height:35px;margin-right:8px}.brand-dot,h1 span{color:var(--green)}nav,.header-tools,.guide-open,.local-status,.icon-button{display:flex;align-items:center}nav{gap:26px;height:100%;font-size:13px;font-weight:650}nav .nav-current{height:100%;display:grid;align-items:center;border-bottom:3px solid var(--green);padding-top:3px}.guide-open{gap:8px;color:var(--muted);padding:0}.header-tools{margin-left:auto;gap:20px}.local-status,.live{font-size:12px;gap:8px;font-weight:600}.local-status span,.live b{width:7px;height:7px;border-radius:50%;background:#60a982}.icon-button,.camera-tools button{height:34px;width:34px;border:1px solid var(--line);border-radius:8px;display:grid;place-items:center}.icon-button span{display:flex}.icon-button .sun,[data-theme=dark] .icon-button .moon{display:none}[data-theme=dark] .icon-button .sun{display:flex}
.intro{padding:36px 0 25px}.intro h1{font-size:clamp(38px,4vw,54px);line-height:1.04;letter-spacing:-.06em}.intro p,.library-head p{color:var(--muted);margin-top:8px}.workspace{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(325px,.94fr);gap:20px}.card{border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);overflow:hidden;background:var(--sheet)}.viewport,.setup{display:flex;flex-direction:column}.stage{min-height:355px;position:relative;flex:1;background:var(--stage)}#preview{width:100%;height:100%;position:absolute;inset:0;touch-action:none;cursor:grab}#preview:active{cursor:grabbing}.stage-top,.stage-bottom{display:flex;align-items:center;justify-content:space-between;position:absolute;left:18px;right:18px;pointer-events:none}.stage-top{top:16px}.stage-bottom{bottom:15px;align-items:end}.stage-top button,.stage-bottom button{pointer-events:auto}.live,.mode-switch,.camera-tools{display:inline-flex;align-items:center;background:var(--glass);border:1px solid var(--line);border-radius:9px}.live{padding:6px 10px}.mode-switch{padding:3px;gap:2px}.mode-switch button,.pose-group button{border-radius:6px;padding:5px 9px;display:flex;align-items:center;gap:5px;font-size:12px;color:var(--muted)}button[aria-pressed=true]:is([data-mode],[data-pose]){background:var(--wash);color:var(--green)}.mode-switch .icon{width:14px}.model-caption{max-width:65%;display:grid}.model-caption span,.model-caption strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-caption span{color:var(--muted);font-size:11px;font-weight:600}.model-caption strong{font-size:21px;letter-spacing:-.04em}.camera-tools{padding:2px}.camera-tools button{width:29px;height:29px;border:0}.pose-bar,.metrics,.setup-head,.row-label,.library-head,.range-ends,.download-area small,.primary,.arm-options,.choice-strip,.switch-row,.chips,.test-card strong{display:flex;align-items:center}.pose-bar{min-height:48px;justify-content:space-between;gap:10px;padding:8px 19px;border-top:1px solid var(--line);font-size:13px}.pose-group,.orbit-hint{display:flex;align-items:center;gap:5px}.pose-group>span{font-weight:650;margin-right:8px}.orbit-hint,.subtle,.hint,small,.range-ends,.library-head p{color:var(--muted)}.orbit-hint{font-size:12px}.orbit-hint .icon{width:14px}.metrics{border-top:1px solid var(--line);padding:17px 18px}.metrics>div{flex:1;display:flex;align-items:center;gap:11px;padding-left:16px;border-left:1px solid var(--line)}.metrics>div:first-child{padding-left:0;border:0}.metrics .icon{color:var(--muted);width:20px;height:20px}.metrics span,.switch-row>span:first-child{display:grid}.metrics small{font-size:11px}.metrics strong{font-size:15px}
.setup-head{padding:19px 22px 10px;gap:9px}.setup-head .icon{color:var(--green)}h2{font-size:21px;letter-spacing:-.045em}.tabs{display:flex;padding:0 18px;border-bottom:1px solid var(--line)}.tabs button{flex:1;font-size:13px;color:var(--muted);border-bottom:2px solid transparent;padding:10px 0}.tabs [aria-selected=true]{border-color:var(--green);color:var(--green)}.settings-body{padding:18px 22px;flex:1}.settings-body h3,.row-label label,.field-title,.switch-row strong{font-size:14px;font-weight:650}.dropzone{width:100%;background:var(--soft);border:1.5px dashed color-mix(in srgb,var(--green) 48%,var(--line));border-radius:10px;display:grid;justify-items:center;gap:2px;padding:12px;margin:9px 0 16px}.dropzone.over{background:var(--wash);outline:2px solid var(--green)}.upload-mark,.dialog-icon{display:inline-grid;place-items:center;background:var(--wash);color:var(--green);border-radius:9px}.upload-mark{width:35px;height:35px;margin-bottom:3px}.dropzone>span:not(.upload-mark),.dropzone small,.hint,.switch-row small{font-size:12px;font-weight:400;color:var(--muted)}.dropzone u{color:var(--green);font-weight:600}.dropzone small{font-size:10px;margin-top:3px}.row-label,.range-ends{justify-content:space-between}.row-label small,.range-ends{font-size:11px}.arm-options,.choice-strip{gap:6px;margin:8px 0 14px}.arm-options button,.choice-strip button{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;border:1px solid var(--line);border-radius:7px;padding:7px;font-size:13px}.arm-options button[aria-pressed=true],.choice-strip button[aria-pressed=true]{color:var(--green);border-color:var(--green);background:var(--wash)}.arm-icon{height:14px;width:11px;background:currentColor;clip-path:polygon(25% 0,75% 0,75% 32%,98% 32%,98% 70%,78% 70%,78% 100%,56% 100%,56% 71%,44% 71%,44% 100%,22% 100%,22% 70%,2% 70%,2% 32%,25% 32%)}.slim-arm{width:9px}.switch-row{border-top:1px solid var(--line);padding-top:13px;gap:8px;justify-content:space-between;position:relative;cursor:pointer}.switch-row input{position:absolute;right:0;opacity:0}.switch-track{width:34px;height:20px;border-radius:12px;background:var(--muted);padding:3px;flex:none}.switch-track:after{content:'';display:block;width:14px;height:14px;background:white;border-radius:50%}input:checked+.switch-track{background:var(--cta)}input:checked+.switch-track:after{transform:translateX(14px);background:var(--on)}input:focus-visible+.switch-track{outline:3px solid #69a6df}.download-area{padding:14px 22px 13px;border-top:1px solid var(--line)}.primary{gap:10px;width:100%;background:var(--cta);color:var(--on);border-radius:9px;min-height:44px;padding:8px 14px;justify-content:center}.primary b{font:600 10px/1.6 monospace;letter-spacing:.04em;border:1px solid currentColor;padding:0 4px;border-radius:4px}.download-area small{justify-content:center;gap:5px;margin-top:6px;font-size:10px}.download-area small .icon{width:11px;height:11px}.field-title{display:block;margin:18px 0 7px}select{width:100%;padding:8px;border:1px solid var(--line);border-radius:7px;background:var(--soft)}input[type=range]{width:100%;accent-color:var(--green)}output{font-weight:700;color:var(--green)}.test-card{padding:12px;background:var(--soft);margin-top:12px;border-radius:9px}.test-card strong{gap:7px;font-size:14px}.test-card p,.guide-note{font-size:13px;color:var(--muted)}.test-card button{color:var(--green);padding:5px 0 0;display:flex;align-items:center;gap:6px;font-size:13px}.hint{margin:8px 0 14px}.swatches{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.swatches input{padding:0;width:31px;height:31px;border:1px solid var(--line);border-radius:6px;cursor:pointer;background:none}.swatches input::-webkit-color-swatch-wrapper{padding:2px}.swatches input::-webkit-color-swatch{border:0;border-radius:4px}
.library{margin:25px 0 35px}.library-head{gap:14px;margin-bottom:12px}.library-head p{font-size:13px;margin:0}.sample-list{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.sample{border:1px solid var(--line);background:var(--sheet);display:flex;gap:14px;align-items:center;text-align:left;border-radius:11px;padding:8px 13px 8px 8px}.sample[aria-pressed=true]{border-color:var(--green)}.sample canvas{width:61px;height:59px;background:#eddcca;border-radius:6px}.sample.lilac canvas{background:#dcdbee}.sample.sage canvas{background:#d2dfd8}.chips{margin-top:6px;gap:3px}.chips i{width:12px;height:7px;border-radius:2px}.selected-dot{margin-left:auto;width:14px;height:14px;border:1px solid var(--line);border-radius:50%}.sample[aria-pressed=true] .selected-dot{border:4px solid var(--green);background:var(--sheet)}footer{min-height:60px;border-top:1px solid var(--line);display:flex;gap:12px;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted)}footer>div{display:flex;align-items:center;gap:15px}.foot-brand{font-size:18px;letter-spacing:-1px;font-weight:750;color:var(--ink)}dialog{width:min(490px,94vw);max-height:88dvh;background:var(--sheet);color:var(--ink);border:1px solid var(--line);border-radius:14px;padding:25px}dialog::backdrop{background:#101b22a8}dialog form{float:right}.dialog-icon{width:36px;height:36px}dialog h2{margin:10px 0}dialog li{padding-left:3px;margin:12px 0}dialog p{font-size:14px;color:var(--muted)}.error{color:#c44839}.toast{position:fixed;bottom:15px;left:50%;transform:translateX(-50%);width:max-content;max-width:90vw;padding:12px 18px;border-radius:9px;background:var(--ink);color:var(--sheet);z-index:5;box-shadow:var(--shadow)}
@media(max-width:850px){.bar-inner,main,footer{width:calc(100% - 32px)}.workspace{grid-template-columns:minmax(0,1fr) 315px;gap:12px}.orbit-hint{display:none}.metrics{padding:12px}.metrics .icon{display:none}.metrics>div{padding-left:8px}.sample{gap:7px}.selected-dot{display:none}.sample[aria-pressed=true]{background:var(--wash)}}
@media(max-width:680px){.bar-inner{height:57px;gap:16px}.brand{font-size:25px}.brand-mark{width:27px;height:27px}.local-status,.nav-current{display:none!important}nav{margin-left:auto}.header-tools{margin-left:0}nav .icon{width:15px}.intro{padding:24px 0 16px}.intro p{font-size:14px}.workspace{grid-template-columns:1fr}.stage{min-height:330px}.stage-top,.stage-bottom{left:10px;right:10px}.stage-top{top:10px}.stage-bottom{bottom:10px}.metrics .icon{display:block}.setup-head{padding-top:15px}.sample-list{grid-template-columns:1fr}.sample{gap:15px}.sample canvas{height:48px;width:50px}.selected-dot{display:block}.library-head{flex-wrap:wrap;gap:6px 12px}.pose-bar{padding:7px 12px}.library{margin:20px 0}.foot-brand,footer>.guide-open{display:none}footer{min-height:48px}.model-caption strong{font-size:17px}.bar .guide-open{font-size:12px}}
.scad-export{display:block;width:100%;margin-top:7px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;color:var(--green);font-size:14px;background:var(--sheet)}
.paint-toggle{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:8px;padding:7px 10px;background:var(--glass);font-size:13px}.paint-toggle[aria-pressed=true]{color:var(--green);background:var(--wash);border-color:var(--green)}#preview.painting{cursor:crosshair}.paint-tools{border-top:1px solid var(--line);padding:14px 18px}.paint-head,.paint-actions,.paint-actions label,.brushes{display:flex;align-items:center;gap:8px}.paint-head{justify-content:space-between}.paint-head button,.paint-actions button{font-size:13px;color:var(--green)}.brushes{flex-wrap:wrap;margin:10px 0}.brushes button{background:var(--chip);color:var(--chip-text);border-radius:6px;border:1px solid var(--line);width:38px;height:36px;font-size:13px;font-weight:700}.brushes button[aria-pressed=true]{outline:2px solid var(--green);outline-offset:2px}.brushes button:focus-visible{outline:3px solid #68a6e2}.paint-actions,.paint-tools p{font-size:13px}.paint-tools p{margin:8px 0 0;color:var(--muted)}.paint-actions input{width:32px;height:25px;border:1px solid var(--line);padding:0;cursor:pointer}.paint-actions label{gap:5px}

.stand-actions{display:flex;flex-wrap:wrap;gap:4px 18px}.pose-group{flex-wrap:wrap}

.helmet-export{margin-top:14px}#panel-armor .row-label{flex-wrap:wrap;gap:6px}#helmet-color{width:38px;height:28px;cursor:pointer}
