:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#202b33;background:#eef1f3;font-size:16px;font-synthesis:none;--lime:#bff46b;--ink:#141d25;--line:#dde2e5;--muted:#65737c}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #6b9e2a;outline-offset:3px}button{border:1px solid var(--line);background:#fff;border-radius:6px;padding:10px 15px;font-size:.875rem;font-weight:600;color:inherit;transition:background .15s}button:hover{background:#edf2e7}button:disabled{opacity:.45;cursor:default}.topbar{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 30px;background:var(--ink);color:white;border-bottom:1px solid #33404c}.brand{display:flex;align-items:center;gap:7px;font-size:1.1rem;letter-spacing:.06em}.brand strong{font-weight:400;color:#b6c0c8}.brand-icon{background:var(--lime);color:#182820;font-weight:900;border-radius:5px;padding:6px 8px;margin-right:10px;letter-spacing:-3px;font-size:1.3rem}.beta{font-size:.6875rem;letter-spacing:.12em;color:#9daab6;border-left:1px solid #47515a;padding-left:18px;margin-left:15px}.file-actions{display:flex;gap:9px}.file-actions button{background:transparent;color:#ecf1f4;border-color:#45515c}.file-actions .primary{background:var(--lime);color:#1b301b;border-color:var(--lime)}.primary span{margin-left:18px}main{display:grid;grid-template-columns:340px minmax(0,1fr);max-width:1900px;margin:auto}.controls{background:#fff;border-right:1px solid var(--line);padding:28px 25px}.eyebrow{font-size:.6875rem;font-weight:700;letter-spacing:.14em;color:var(--muted)}h1{font-size:1.75rem;margin:8px 0 4px;letter-spacing:-.04em}.project-heading p{color:var(--muted);font-size:.875rem;margin:0 0 26px}section{padding:23px 0;border-top:1px solid var(--line)}.section-title{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:20px}h2{font-size:.9375rem;margin:0;font-weight:650}.section-title h2 span{font-family:monospace;font-size:.75rem;color:#86939c;font-weight:400;margin-right:9px}.text-button{padding:0;border:0;background:none;color:#60764c;font-size:.8125rem}.unit-label{font: .8125rem monospace;color:var(--muted)}.presets{display:grid;grid-template-columns:1fr 1fr;gap:8px}.presets button{padding:10px 5px;font-size:.8125rem;font-weight:500}.presets button.selected{background:#eef8e2;border-color:#95bd65;color:#385320;box-shadow:inset 0 0 0 1px #95bd65}.hint{font-size:.75rem;line-height:1.6;color:var(--muted);margin:13px 0 0}.field{margin-top:17px}.field-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px}.field-top label{font-size:.875rem}.number-wrap{display:flex;align-items:center;border:1px solid var(--line);border-radius:5px;overflow:hidden;background:#f8fafb}.number-wrap input{width:66px;font: .875rem ui-monospace,monospace;border:0;background:none;padding:6px 2px 6px 9px;appearance:textfield;-moz-appearance:textfield;color:#1d2b34}.number-wrap input::-webkit-inner-spin-button{appearance:none}.number-wrap span{font-size:.6875rem;padding:0 7px 0 0;color:#75838c}input[type=range]{appearance:none;width:100%;height:4px;background:#dce3e7;border-radius:6px;margin:7px 0 9px;cursor:pointer;accent-color:#5d842e}input[type=range]::-webkit-slider-thumb{appearance:none;width:14px;height:14px;border-radius:50%;background:#344734;box-shadow:0 0 0 3px white,0 0 0 4px #bccab6}input[type=range]::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#344734;border:2px solid white}.select-label{font-size:.875rem;display:block;margin-bottom:8px}select{width:100%;border:1px solid var(--line);border-radius:5px;background:#fafbfc;padding:9px 10px;font-size:.875rem;color:#2f3b43}.switch{position:relative;display:block;width:33px;height:19px}.switch input{opacity:0;position:absolute;width:100%;height:100%;margin:0}.switch span{position:absolute;inset:0;background:#b8c0c6;border-radius:20px;pointer-events:none}.switch span:after{content:"";position:absolute;width:13px;height:13px;left:3px;top:3px;background:white;border-radius:50%;transition:transform .15s}.switch input:checked+span{background:#587d31}.switch input:checked+span:after{transform:translateX(14px)}.switch input:focus-visible+span{outline:3px solid #89af52;outline-offset:3px}.profile-hint{margin:-6px 0 15px}.point-labels,.point-row{display:grid;grid-template-columns:1fr 1fr 23px;gap:9px}.point-labels{font-size:.6875rem;color:var(--muted);margin-bottom:8px}.point-row{margin-bottom:7px}.point-row input{width:100%;min-width:0;padding:7px 9px;border:1px solid var(--line);border-radius:4px;font:.8125rem ui-monospace,monospace;background:#fbfcfd}.point-row button{padding:0;border:0;background:none;color:#81909b}.point-row input:disabled{color:#85929d;background:#f1f4f6}.checkbox-label{display:flex;gap:8px;align-items:center;font-size:.8125rem;margin-top:15px}input[type=checkbox]{accent-color:#587d31}.reference-note{font-size:.75rem;line-height:1.65;color:#7c8992;border-top:1px solid var(--line);padding-top:19px;margin:0}.workspace{padding:25px 28px 16px;min-width:0}.workspace-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px;gap:10px}.view-tabs{display:flex;background:#e2e7ea;padding:4px;border-radius:7px;gap:3px}.view-tabs button{border:0;background:transparent;color:#66757f;font-size:.8125rem;padding:8px 15px}.view-tabs button[aria-selected=true]{background:#fff;color:#23333e;box-shadow:0 1px 4px #202b3314}.scale-label{font-size:.625rem;letter-spacing:.12em;color:#74838e}.stage{height:clamp(350px,48vw,555px);min-height:320px;position:relative;border-radius:9px;overflow:hidden;background-color:#1a2530;background-image:radial-gradient(ellipse at 50% 42%,#34435077,transparent 65%),linear-gradient(#ffffff04 1px,transparent 1px),linear-gradient(90deg,#ffffff04 1px,transparent 1px);background-size:auto,28px 28px,28px 28px;border:1px solid #263540;box-shadow:0 8px 22px #1b283312}.stage-heading{position:absolute;top:23px;left:24px;right:24px;display:flex;justify-content:space-between;align-items:center;font: .6875rem ui-monospace,monospace;letter-spacing:.12em;color:#9eafba;z-index:1;pointer-events:none}.model-badge{color:#c5e79b;font-size:.625rem;border:1px solid #6c8d5244;padding:5px 7px;border-radius:3px}#model{display:block;width:100%;height:100%;touch-action:none;cursor:grab}#model:active{cursor:grabbing}.stage-bottom{position:absolute;bottom:20px;left:24px;right:24px;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none;color:#9dafbc;font-size:.75rem}.camera-actions{display:flex;gap:5px;pointer-events:auto}.camera-actions button{background:#243440;color:#bfcdd7;border:1px solid #42525f;font-size:.8125rem;padding:6px 10px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);background:white;border:1px solid var(--line);border-radius:8px;margin-top:18px;padding:22px 0}.metrics>div{padding:0 22px;border-right:1px solid var(--line)}.metrics>div:last-child{border:0}.metrics span{display:block;font-size:.75rem;color:#74818b;margin-bottom:9px}.metrics strong{font:500 1.7rem ui-monospace,SFMono-Regular,monospace;letter-spacing:-.055em;white-space:nowrap}.metrics small{font:400 .75rem sans-serif;letter-spacing:0;color:#7c8992}.bottom-panel{padding:25px 2px 0}.export-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.export-heading h2{font-size:1.15rem;margin-top:8px;letter-spacing:-.025em}.export-actions{display:flex;gap:8px}.export-actions button{font-size:.8125rem;display:flex;flex-direction:column;gap:5px;text-align:left;padding:11px 14px;background:#f9fbfc}.export-actions button span{font: .6875rem monospace;color:#6b7b84}.bottom-panel p{font-size:.75rem;color:#77858f;line-height:1.7;max-width:760px;margin:21px 0}footer{border-top:1px solid var(--line);padding-top:16px;margin-top:22px;display:flex;justify-content:space-between;gap:12px;font-size:.6875rem;color:#7f8b93}footer i{display:inline-block;width:5px;height:5px;background:#72964b;border-radius:50%;margin-right:6px}#profile-view,#drawing-view{height:100%;width:100%}#profile-view svg,#drawing-view svg{width:100%;height:100%}.stage.light{background:#fff}.stage.light .stage-heading{color:#6a7a85}.stage.light .model-badge{color:#476531}.stage.light .stage-bottom{color:#6b7b86}.stage.light .camera-actions{display:none}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(80px);opacity:0;background:#233c2c;color:white;border-radius:7px;padding:13px 22px;font-size:.875rem;z-index:20;box-shadow:0 5px 30px #0003;transition:.2s;max-width:90vw}#toast.show{transform:translateX(-50%) translateY(0);opacity:1}#render-error{position:absolute;top:45%;left:15%;right:15%;color:#eee;line-height:1.7;text-align:center}button,select{min-height:32px}[hidden]{display:none!important}@media(min-width:1450px){.workspace{padding:30px 40px}.stage{height:575px}}@media(max-width:1050px){main{grid-template-columns:300px minmax(0,1fr)}.controls{padding:24px 20px}.workspace{padding:24px 18px}.metrics>div{padding:0 12px}.metrics strong{font-size:1.3rem}.export-heading{align-items:flex-start;flex-direction:column}.scale-label{display:none}.stage-bottom{left:16px;right:16px}.beta{display:none}}@media(max-width:720px){.topbar{padding:13px 16px;flex-wrap:wrap;gap:12px}.brand{font-size:.95rem}.file-actions button{font-size:.75rem;padding:7px 10px}main{display:flex;flex-direction:column}.workspace{order:0;padding:18px 14px}.controls{order:1;border-right:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:0 28px;padding:25px 22px}.project-heading,.reference-note{grid-column:1/-1}.project-heading p{margin-bottom:22px}.stage{height:330px;min-height:330px}.stage-heading{left:16px;right:16px;top:18px}.stage-bottom{font-size:.6875rem;bottom:15px}.metrics{padding:15px 0;gap:18px 0;grid-template-columns:1fr 1fr}.metrics>div:nth-child(2){border:0}.metrics strong{font-size:1.4rem}.metrics span{margin-bottom:5px}.export-heading h2{font-size:1rem}.export-heading{gap:15px}.bottom-panel{padding-top:22px}footer{flex-direction:column;margin-top:10px}.export-actions{width:100%}.export-actions button{flex:1}.stage-bottom>span{max-width:160px}.view-tabs button{padding:8px 14px}.controls section:nth-of-type(4){grid-column:1/-1}}@media(max-width:420px){.controls{display:block}.brand-icon{margin-right:4px}.file-actions{width:100%}.file-actions button{flex:1}.stage-bottom>span{max-width:115px}}

/* Shape and texture workbench */
.section-order-row{display:grid;grid-template-columns:44px minmax(0,1fr) 36px 36px;align-items:center;gap:4px;border-bottom:1px solid #dce3e7;padding:8px 0}.section-order-row button{min-height:44px;padding:6px}.section-select{text-align:left;font-size:13px;overflow-wrap:anywhere}.section-select[aria-pressed=true]{background:#eef8e2;border-color:#95bd65}.section-drag{touch-action:none;cursor:grab;font-size:22px;user-select:none}.section-order-row.dragging{opacity:.6}.section-order-row.drop-target{box-shadow:0 -3px #658d39}.section-step{font-size:18px}.cg-readout{position:absolute;top:58px;left:24px;color:#ecc36a;font:12px system-ui;pointer-events:none}.stage.light .cg-readout{display:none}@media(max-width:720px){.cg-readout{top:40px;left:16px;font-size:11px}.editing-number .cg-readout{display:none}.section-select{font-size:14px}}
.pro-variant-label{margin-top:16px}.pro-load{width:100%;margin-top:16px;background:#eef8e2;border-color:#95bd65;min-height:44px}.pro-section{min-width:0}@media(max-width:720px){.pro-section{grid-column:1/-1}}
.swatches{display:flex;flex-wrap:wrap;gap:8px}.swatches button{background:var(--swatch);width:44px;height:44px;padding:0;border:3px solid white;box-shadow:0 0 0 1px #bcc6cc;border-radius:6px}.swatches button[aria-pressed=true]{outline:3px solid #557737;outline-offset:2px}.colour-label{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;font-size:14px}.colour-label input{width:64px;height:44px;padding:3px;border:1px solid #bcc6cc;border-radius:5px;background:white}.engraving-input{display:block;width:100%;min-height:44px;padding:9px;border:1px solid #bcc6cc;border-radius:5px;font-size:16px;margin-bottom:16px}.engraving-proof{margin-top:18px;padding:14px 4px;border-block:1px solid #bcc6cc;font-size:20px;text-align:center;overflow-wrap:anywhere}.engraving-section,.finish-section{min-width:0}@media(max-width:720px){.engraving-section,.finish-section{grid-column:1/-1}.engraving-section .select-label,.colour-label{font-size:16px}}
.workspace{position:sticky;top:0;align-self:start}.shape-catalog{display:grid;grid-template-columns:1fr 1fr;gap:8px}.shape-card{padding:8px 7px 10px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;font-weight:500;background:#f8fafb;transition:background .15s,border-color .15s}.shape-card svg,.shape-card canvas{width:100%;height:auto;max-height:58px;display:block}.shape-card span{font-size:.8125rem;line-height:1.35}.shape-card small{font-size:.625rem;color:#74818a;text-align:center;line-height:1.4}.shape-card[aria-pressed=true]{background:#eef8e2;border-color:#7b9f53;box-shadow:inset 0 0 0 1px #7b9f53}.shape-card[aria-pressed=true] span{color:#375822}.zone-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:16px}#grip-zones{display:flex;gap:5px}#grip-zones button{width:31px;padding:5px;min-height:31px}#grip-zones button[aria-pressed=true]{background:#283f2b;color:#e0fbbd;border-color:#283f2b}.zone-footer{display:flex;gap:15px;justify-content:space-between;margin-top:18px}.zone-footer button{font-size:.75rem}.catalog-filter{display:flex;gap:5px;flex-wrap:wrap;margin:12px 0}.catalog-filter button{font-size:.6875rem;padding:5px 9px;min-height:28px;font-weight:500}.catalog-filter button[aria-pressed=true]{background:#e6ecdf;border-color:#839f66;color:#304528}#grip-catalog{max-height:380px;overflow-y:auto;padding:2px 4px 2px 2px;scrollbar-width:thin}details>summary{cursor:pointer;font-size:.875rem;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;list-style:none}details>summary:before{content:'▾';color:#5d734c}details:not([open])>summary:before{content:'▸'}details>summary strong{margin-left:auto;font-size:.75rem;color:#60724f}#pattern-detail{min-height:38px;margin-bottom:10px}.hint a{color:#4a6b3a}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.preview-jump{display:none}#nose-catalog{max-height:325px;overflow-y:auto;padding:2px 4px 2px 2px;scrollbar-width:thin}.model-badge.busy{color:#f7d69f}#texture-fields{padding-top:5px}#grip-controls{transition:opacity .2s}@media(min-width:1500px){main{grid-template-columns:380px minmax(0,1fr)}}@media(max-width:720px){.workspace{position:static}.controls section{grid-column:auto}.controls .nose-section,.controls .grip-section{grid-column:1/-1}.controls section:last-of-type{grid-column:1/-1}.shape-catalog{grid-template-columns:repeat(3,minmax(0,1fr))}#nose-catalog{max-height:none}#grip-catalog{max-height:390px}.shape-card small{font-size:.6875rem}.preview-jump{display:block;position:fixed;right:15px;bottom:18px;background:#c1f279;color:#233a1e;border-color:#93bd60;box-shadow:0 3px 14px #1c2b2d33;z-index:10;font-size:.8125rem;padding:10px 15px}footer{padding-bottom:20px}.reference-note{padding-bottom:55px}}@media(max-width:420px){.shape-catalog{grid-template-columns:1fr 1fr}.shape-card svg,.shape-card canvas{max-height:62px}.controls{display:block}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.mobile-preview{display:none}.preview-toggle{display:none}@media(max-width:720px){
 main{display:block}.mobile-preview{display:block;position:sticky;top:0;z-index:6;padding:8px 12px 10px;background:#eef1f3;border-bottom:1px solid #cdd5da;box-shadow:0 3px 12px #14232b12}.mobile-preview .workspace-toolbar{margin:0 0 7px;gap:5px}.mobile-preview .view-tabs{padding:3px;gap:1px}.mobile-preview .view-tabs button{min-height:40px;padding:7px 11px;font-size:.8125rem}.preview-toggle{display:block;border:0;background:none;font-size:.75rem;min-height:44px;padding:7px 8px;color:#65767f}.mobile-preview .stage{height:clamp(170px,26vh,225px);min-height:170px;border-radius:6px}.mobile-preview .stage-heading{top:12px;font-size:.625rem}.mobile-preview .stage-bottom{bottom:10px}.mobile-preview .camera-actions button{min-width:36px;min-height:36px}.mobile-preview .metrics{grid-template-columns:repeat(4,minmax(0,1fr));padding:9px 0;margin-top:7px;gap:0;border-radius:5px}.mobile-preview .metrics>div{padding:0 8px}.mobile-preview .metrics>div:nth-child(2){border-right:1px solid var(--line)}.mobile-preview .metrics strong{font-size:1.0625rem;letter-spacing:-.035em}.mobile-preview .metrics small{font-size:.625rem}.mobile-preview .metrics span{font-size:.625rem;line-height:1.2;margin-bottom:5px}.mobile-preview.collapsed .stage,.mobile-preview.collapsed .metrics{display:none}.mobile-preview.collapsed .workspace-toolbar{margin:0}.controls{border-top:0;padding-top:24px}.workspace{padding-top:0}.workspace .bottom-panel{padding-top:20px}.number-wrap input{font-size:1rem;width:80px;min-height:42px}.number-wrap span{font-size:.75rem}.field{margin-top:23px}.field-top{margin-bottom:6px}.field-top label{font-size:.9375rem}.point-row input{font-size:1rem;min-height:44px}.point-row{grid-template-columns:1fr 1fr 35px}.point-row button{min-height:44px;font-size:1.25rem}.point-labels{grid-template-columns:1fr 1fr 35px}.select-label,select{font-size:1rem}input[type=range]{height:28px;margin:3px 0 2px;background:linear-gradient(#dce3e7,#dce3e7) center/100% 5px no-repeat;touch-action:pan-y}input[type=range]::-webkit-slider-thumb{width:24px;height:24px;box-shadow:0 0 0 2px white,0 0 0 3px #acbd9d}input[type=range]::-moz-range-thumb{width:24px;height:24px}.catalog-filter button{min-height:40px;font-size:.8125rem}.text-button{min-height:40px}.shape-card span{font-size:.875rem}#grip-zones button{width:40px;min-height:40px}.switch{width:44px;height:26px}.switch span:after{width:20px;height:20px}.switch input:checked+span:after{transform:translateX(18px)}.preview-jump{display:none}.topbar{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}.bottom-panel{padding-bottom:env(safe-area-inset-bottom)}.editing-number .mobile-preview .stage{height:105px;min-height:105px}.editing-number .mobile-preview .stage-heading,.editing-number .mobile-preview .stage-bottom,.editing-number .mobile-preview .metrics{display:none}.editing-number .mobile-preview{padding-bottom:7px}.stage.light .stage-heading{font-size:.5625rem}.stage.light .stage-bottom{display:none}
}@media(max-width:720px) and (max-height:500px){.mobile-preview{position:relative}.mobile-preview .stage{height:190px}}@media(max-width:360px){.mobile-preview{padding:6px 8px}.mobile-preview .view-tabs button{padding:7px 8px}.mobile-preview .metrics>div{padding:0 5px}.mobile-preview .metrics small{display:none}}

.weight-readout{background:#edf5e4;border:1px solid #c0d5a8;border-radius:7px;padding:16px;display:flex;flex-direction:column;gap:6px}.weight-readout>span{font-size:.8125rem;color:#567143}.weight-readout strong{font:500 1.7rem ui-monospace,monospace}.weight-readout small{font-size:.75rem;line-height:1.5;color:#617354}.engineering-issues{padding:12px;background:#fff0e4;border:1px solid #ecc4a3;border-radius:5px;font-size:.8125rem;line-height:1.6;color:#884924}.engineering-section .checkbox-label{margin-top:24px}.number-wrap input:disabled{color:#6b7983;background:#eef1f3;cursor:not-allowed}.point-row input:disabled{cursor:not-allowed}@media(max-width:720px){.engineering-section{grid-column:1/-1}}
