/* Original reference composition: full canvas, white pills, four floating tools. */
body{font-family:Arial,'Microsoft YaHei',sans-serif;background:#dce5e9;color:#242222}#stage{background:#dce5e9}#stage:before{display:none}header{top:32px;left:32px;right:32px;height:36px}.brand{height:36px;border-radius:30px;background:white;padding:0 18px 0 14px;gap:9px}.brand:before{content:'←';font-size:20px;line-height:1;color:#777}.brand strong{font-size:15px;letter-spacing:0}.brand strong span{display:none}.brand .xhs{width:29px;height:22px;border-radius:7px;font-size:8px;order:2}.brand small,.status,.canvas-label,.signature{display:none}.nav{position:absolute;left:50%;top:0;transform:translateX(-50%);width:250px;height:36px;padding:2px;border:0;background:#fff;gap:0}.nav button{flex:1;padding:0;font-size:14px;border-radius:24px}.nav .active{background:#262323;color:white}.tools{left:auto;right:32px;top:50%;transform:translateY(-50%);gap:9px;padding:0;border:0;background:none;box-shadow:none;border-radius:0}.tools button{width:76px;height:76px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-size:0;color:#323333;padding:10px;position:relative;box-shadow:none}.tools button>span{font-size:30px;line-height:1}.tools button svg{width:54px;height:54px}.tools button:hover,.tools button.active{background:white;box-shadow:0 0 0 2px #ffffff80}.tools button:after{content:attr(data-label);position:absolute;right:88px;top:28px;background:white;border-radius:5px;padding:5px 9px;font-size:11px;white-space:nowrap;opacity:0;pointer-events:none;transition:.15s}.tools button:hover:after{opacity:1}.tools button[data-tool=layers]{width:45px;height:45px;align-self:center;margin-top:7px}.tools button[data-tool=layers]>span{font-size:22px}.inspector{display:none;right:126px;top:50%;bottom:auto;transform:translateY(-50%);width:284px;max-height:72vh;min-height:220px;border-radius:5px;background:#fff;box-shadow:0 10px 55px #4b61651c;border:0}.panel-open .inspector{display:flex}.panel-head{padding:20px 18px 13px}.panel-head h2{font-size:14px;font-weight:500}.panel-head small{font-size:8px;letter-spacing:.2px;margin-right:18px}.panel-content{padding:16px 18px;max-height:calc(72vh - 58px);overflow-y:auto}.inspector-close{position:absolute;right:8px;top:10px;font-size:20px;color:#999;line-height:25px;z-index:1}.section-label{font-size:11px;color:#777}.micro,.tooltip-note{color:#888}.primary{background:#005e38;border-color:#005e38;border-radius:24px}.secondary{border-color:#dedede;border-radius:24px}.swatch{border-color:white}.swatch.active{outline-color:#005e38}.divider{background:#ececec}.field>span{color:#777}.field input[type=range]{accent-color:#005e38}.field input[type=text],.field select,.field textarea{border-radius:4px;border-color:#ddd}.layer.active{background:#f0f4f1;border-color:#d4e2d7}.icon-grid button{border-radius:5px}.global-actions{position:absolute;right:32px;bottom:31px;z-index:5;display:flex;gap:9px;align-items:center}.global-actions .panel-actions{padding:0;border:0;display:flex;gap:9px}.global-actions .panel-actions button{height:45px;border:0;padding:0 24px;font-size:13px;flex:none}.global-actions #save-design{background:#fff;min-width:90px}.global-actions #export-open{min-width:170px}.bottom-center{bottom:32px;left:50%;gap:7px;flex-direction:column}.views{position:relative;left:auto;top:auto;transform:none;padding:3px;border:0;background:#ffffffd9;gap:0;border-radius:25px}.views button{min-width:56px;padding:7px 9px;font-size:11px}.views .active{background:#282525;color:white}.view-mode{padding:0;background:transparent;border:0}.view-mode button{padding:4px 9px;font-size:10px;color:#6d777b}.view-mode .active{background:none;color:#005e38;box-shadow:none}.bottom-center>.zoom{display:none}.footer{bottom:31px;left:32px;font-size:12px;color:#3c4446;gap:7px;height:22px}.footer .xhs{display:none}.footer:before{content:'🇨🇳';font-size:17px}.footer>span:last-child:before{content:'中国　 ';font-weight:400}.footer b{color:#005e38;text-decoration:underline;text-underline-offset:4px}.tutorial{position:absolute;bottom:80px;left:32px;width:335px;height:180px;border-radius:3px;background:#fff;z-index:3;display:flex;align-items:center;padding:30px 18px 18px;box-shadow:none;transition:opacity .25s}.tutorial>div{width:50%;text-align:center;line-height:1.15;font-size:12px;color:#333}.tutorial>div+div{border-left:1px solid #d0d0d0;padding:0 8px}.tutorial svg{width:55px;height:58px;display:block;margin:0 auto 18px}.tutorial strong{color:#005e38}.tutorial .tip-close{position:absolute;right:10px;top:8px;color:#a5aaa9;font-size:15px}.tutorial .tip-mark{position:absolute;left:18px;top:15px;font-size:15px;color:#a5aaa9}.has-design .tutorial,.panel-open .tutorial,.tutorial.dismissed{opacity:0;pointer-events:none}.toast{background:#232725e6;border-radius:4px;font-family:Arial,'Microsoft YaHei',sans-serif}.dialog{border-radius:7px;background:#fff}.modal{background:#30444b2e}.export-previews img{border-radius:3px}.design-card{border-radius:4px}.loading{background:#dce5e9}.loading span{color:#6f7f85}.brand strong{order:1}
@media(max-width:1100px){.global-actions .panel-actions button{padding:0 16px}.global-actions #export-open{min-width:140px}.global-actions #save-design{min-width:80px}.tutorial{width:280px;height:155px}.tools{right:25px}.tools button{width:67px;height:67px}.inspector{right:106px}}
@media(max-width:700px){header{top:18px;left:16px;right:16px;height:34px}.brand{height:34px;padding:0 11px;gap:6px}.brand:before{font-size:17px}.brand strong{font-size:12px}.brand .xhs{width:23px;height:19px;font-size:7px}.nav{width:159px;left:auto;right:0;transform:none;height:34px}.nav button{font-size:12px}.tools{right:16px;left:auto;top:49%;transform:translateY(-50%);gap:8px}.tools button{width:53px;height:53px;padding:8px}.tools button svg{width:41px;height:41px}.tools button>span{font-size:25px}.tools button[data-tool=layers]{width:35px;height:35px}.tools button:after{display:none}.bottom-center{left:50%;bottom:78px;width:auto;gap:5px}.views{padding:2px;background:#ffffffdb;white-space:nowrap}.views button{min-width:51px;font-size:10px;padding:6px 7px}.view-mode button{min-width:auto;white-space:nowrap;font-size:9px}.footer{left:18px;bottom:24px;font-size:10px;height:20px}.footer:before{font-size:14px}.footer>span:last-child:before{content:'中国　'}.global-actions{right:16px;bottom:19px;gap:5px}.global-actions .panel-actions{gap:6px}.global-actions #save-design{padding:0 10px;min-width:52px;font-size:10px;height:35px}.global-actions #export-open{padding:0 14px;min-width:95px;font-size:10px;height:35px}.tutorial{bottom:151px;left:18px;width:260px;height:130px;padding:25px 12px 12px}.tutorial svg{width:37px;height:35px;margin-bottom:12px}.tutorial>div{font-size:10px}.tutorial .tip-close{top:4px}.tutorial .tip-mark{top:7px}.inspector{left:16px;right:80px;top:50%;bottom:auto;transform:translateY(-50%);width:auto;height:auto;max-height:65vh;min-height:160px;border-radius:4px}.panel-head{padding:15px 13px 10px}.panel-head h2{font-size:12px}.panel-head small{font-size:7px}.panel-content{padding:12px 13px;max-height:calc(65vh - 52px)}.icon-grid{grid-template-columns:repeat(3,1fr)}.toast{bottom:140px}.dialog{max-height:87vh}.panel-content .field{margin:10px 0}.form-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.inspector{left:16px;right:80px;top:auto;bottom:132px;transform:none;height:auto;min-height:0;max-height:230px}.panel-content{max-height:180px}}

.footer:before{content:'';width:18px;height:12px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Cpath fill='%23de2910' d='M0 0h30v20H0z'/%3E%3Cpath fill='%23ffde00' d='m6 3 1 3h3L7.5 8l1 3L6 9 3.5 11l1-3L2 6h3z'/%3E%3C/svg%3E")}

/* Reference refinements: four tools, contextual editing, no bottom switcher. */
.part-options{display:flex;gap:4px;border-bottom:1px solid #eee;padding-bottom:12px}.part-options button{flex:1;font-size:11px;padding:7px 3px;border-radius:18px}.part-options button.active{background:#272424;color:white}.global-actions{opacity:0;pointer-events:none;transition:opacity .25s}.edited .global-actions,.has-design .global-actions{opacity:1;pointer-events:auto}.palette-open .inspector{width:38px;min-height:0;max-height:none;right:122px;overflow:visible;background:transparent;box-shadow:none;border:0}.palette-open .panel-head,.palette-open .inspector-close{display:none}.palette-open .panel-content{padding:0;overflow:visible;max-height:none}.palette-open .swatches{display:flex;flex-direction:column;gap:8px;align-items:center}.palette-open .swatch{width:23px;height:23px;border:2px solid white;border-radius:50%;flex-shrink:0;box-shadow:0 1px 4px #0001}.palette-open .custom-swatch input{width:24px;height:24px;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer}.palette-open[data-palette=garment] .inspector{margin-top:-18px}.palette-open[data-palette=collar] .inspector{margin-top:48px}.palette-open[data-palette=sleeves] .inspector{margin-top:90px}.tools button.active{outline:1px solid #ffffff80;outline-offset:3px}
@media(max-width:700px){.palette-open .inspector{left:auto;right:79px;top:48%;bottom:auto;transform:translateY(-50%);width:32px;max-height:none}.palette-open .swatches{gap:5px}.palette-open .swatch{width:20px;height:20px}.palette-open[data-palette=garment] .inspector{margin-top:-12px}.palette-open[data-palette=collar] .inspector{margin-top:20px}.palette-open[data-palette=sleeves] .inspector{margin-top:40px}}

/* Dimensions and easing recovered from the reference stylesheet. */
@font-face{font-family:ReferenceArchivo;src:url('/studio/fonts/reference-archivo.woff2') format('woff2');font-display:swap}
:root{--ref-pad:16px;--ref-head:36px;--ref-main:16px;--ref-ease:cubic-bezier(.55,0,.1,1)}
@media(min-width:375px) and (max-width:768px){:root{--ref-pad:calc(2.0356234097vw + 8.3664122137px)}}
@media(min-width:768px) and (max-width:1440px){:root{--ref-pad:calc(1.1904761905vw + 14.8571428571px)}}
@media(min-width:1440px) and (max-width:1900px){:root{--ref-pad:calc(6.9565217391vw - 68.1739130435px);--ref-head:calc(2.6086956522vw - 1.5652173913px);--ref-main:calc(1.9565217391vw - 12.1739130435px)}}
@media(min-width:1901px){:root{--ref-pad:64px;--ref-head:48px;--ref-main:25px}}
body{font-family:ReferenceArchivo,'Microsoft YaHei',sans-serif}button{font-family:inherit}header{top:var(--ref-pad);left:var(--ref-pad);right:var(--ref-pad);height:var(--ref-head)}.brand{height:var(--ref-head);padding:0 calc(var(--ref-head)/2);gap:calc(var(--ref-pad)/4)}.brand:before{font-size:calc(var(--ref-head)/2)}.brand strong{font-size:calc(var(--ref-head)*.35)}.nav{height:var(--ref-head);width:250px;padding:2px}.nav button{font-size:clamp(12px,calc(var(--ref-pad)/2),14px);transition:background .15s cubic-bezier(.645,.045,.355,1),color .15s cubic-bezier(.645,.045,.355,1)}.tools{right:var(--ref-pad);gap:8px}.tools button{width:75px;height:75px;padding:0;border:2px solid white;transition:transform .3s var(--ref-ease),border-color .2s var(--ref-ease);outline:0!important;box-shadow:none!important}.tools button.active{border:2px solid #231f20;transform:scale(1)}.tools button:hover:not(.active){transform:scale(.9)}.tools button:after{display:none}.tools button>img{width:100%;height:100%;object-fit:contain;border-radius:50%;pointer-events:none}.tools button[data-tool=icons]>img{width:82%;height:82%}.tools button svg{width:75%;height:75%}.footer{left:var(--ref-pad);bottom:var(--ref-pad)}.global-actions{right:var(--ref-pad);bottom:var(--ref-pad)}.global-actions .panel-actions button{height:50px;font-size:var(--ref-main);font-weight:400;padding:0 32px;border-radius:50px}.global-actions #export-open{min-width:200px;background:#105a33}.inspector{right:calc(var(--ref-pad) + 95px);border-radius:0;box-shadow:none}.tutorial{left:var(--ref-pad);bottom:calc(var(--ref-pad) + 45px)}.palette-open .inspector{right:calc(var(--ref-pad) + 93px);width:22px;min-height:0;margin-top:0!important;transition:none;transform:translateY(-50%)}.palette-open .swatches{gap:5px}.palette-open .swatch{width:22px;height:22px;box-shadow:none;outline:0;border:2px solid white;animation:ref-swatch-in .3s var(--ref-ease) backwards;transition:transform .3s var(--ref-ease),border-color .2s var(--ref-ease)}.palette-open .swatch.active{border:2px solid #231f20;transform:scale(1.15)}.palette-open .swatch:hover{transform:scale(1.15)}.palette-open .swatch:nth-child(2){animation-delay:50ms}.palette-open .swatch:nth-child(3){animation-delay:100ms}.palette-open .swatch:nth-child(4){animation-delay:150ms}.palette-open .swatch:nth-child(5){animation-delay:200ms}.custom-swatch{display:none}@keyframes ref-swatch-in{from{opacity:0;translate:10px 0}to{opacity:1;translate:0 0}}.sticker-actions{margin:12px 0;gap:6px}.sticker-actions button{flex:1;font-size:11px;padding:8px 5px}.sticker-categories{display:flex;gap:6px;overflow-x:auto;padding:3px 0 12px;scrollbar-width:thin}.sticker-categories button{font-size:10px;white-space:nowrap;padding:5px 8px;border-radius:15px;color:#666}.sticker-categories .active{background:#231f20;color:#fff}.sticker-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.sticker-grid button{aspect-ratio:1;border:0;background:transparent;padding:5px;transition:transform .2s var(--ref-ease)}.sticker-grid button:hover{transform:scale(1.1)}.sticker-grid img{width:100%;height:100%;object-fit:contain}.panel-head h2{font-size:14px}.panel-content{scrollbar-width:thin}.global-actions #export-open:hover{background:#0b4828}
@media(max-width:768px){.nav{width:159px}.tools{right:var(--ref-pad);gap:8px}.tools button{width:53px;height:53px}.palette-open .inspector{right:calc(var(--ref-pad) + 66px);left:auto;width:22px;bottom:auto}.footer{font-size:10px}.global-actions .panel-actions button{height:36px;font-size:11px;padding:0 16px}.global-actions #export-open{min-width:110px}.inspector:not(.palette-open .inspector){right:calc(var(--ref-pad) + 67px);left:var(--ref-pad)}.brand{padding:0 11px;gap:6px}}

/* Ready-to-edit streetwear templates and a visible custom color picker. */
.template-entry{position:absolute;right:0;top:0;pointer-events:auto;background:#fff;border-radius:30px;height:var(--ref-head);padding:0 20px;font-size:13px}.template-entry:hover{background:#f5f6f2}.template-dialog{width:min(1000px,94vw);max-height:90vh}.template-options{display:flex;justify-content:space-between;gap:15px;color:#69716b;font-size:12px;margin-bottom:20px}.template-options label{display:flex;align-items:center;gap:7px;white-space:nowrap}.template-options input{accent-color:#105a33}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.template-card{border:1px solid #e5e7e1;overflow:hidden}.template-card-preview{height:190px;background:#f1f1eb;position:relative;display:flex;align-items:center;padding:14px 0 5px}.template-front,.template-back{width:62%;flex-shrink:0}.template-front{z-index:1;margin-left:-5px}.template-back{margin-left:-50px;opacity:.94}.template-card-preview svg{width:100%;height:auto;display:block}.template-number{position:absolute;top:12px;left:14px;font-size:10px;color:#778078}.template-view-label{position:absolute;right:12px;bottom:9px;font-size:9px;color:#899087}.template-card-info{padding:16px}.template-card-info small{font-size:8px;letter-spacing:1.8px;color:#83897c}.template-card-info h3{font-size:17px;font-weight:500;margin:5px 0}.template-card-info p{font-size:11px;color:#788074;margin:0 0 13px}.template-card-info button{width:100%;font-size:11px;padding:9px}.template-note{font-size:11px;color:#889084;margin:18px 0 0}.custom-color-toggle{width:22px;height:22px;border:2px solid #fff;border-radius:50%;background:conic-gradient(#d7635d,#dfcc67,#68a788,#779bc3,#d7635d);font-size:17px;line-height:17px;color:white;display:grid;place-items:center;margin-top:5px;flex-shrink:0}.custom-color-panel{position:absolute;right:0;top:calc(100% + 10px);width:184px;padding:13px;background:#fff;box-shadow:0 5px 25px #20352a15;border-radius:4px;color:#444}.custom-color-panel[hidden]{display:none}.custom-color-row{display:flex;align-items:center;justify-content:space-between;font-size:11px;gap:12px}.custom-color-row input{width:33px;height:26px;padding:0;border:0;background:none;cursor:pointer}.hex-field{display:flex;align-items:center;gap:7px;margin-top:10px;font-size:10px;color:#7b857e}.hex-field input{width:94px;min-width:0;font:12px monospace;padding:5px;border:1px solid #ddd;border-radius:2px;user-select:text}.hex-field button{font-size:18px}.apply-all-colors{display:flex;align-items:center;gap:5px;font-size:10px;margin-top:10px}.apply-all-colors input{accent-color:#105a33}#color-error{font-size:9px;line-height:1.4;color:#b53c39;margin:6px 0 0}.template-card button:disabled{opacity:.5}
@media(max-width:768px){.template-entry{top:48px;height:30px;font-size:10px;padding:0 14px}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.template-card-preview{height:130px}.template-back{margin-left:-30px}.template-card-info{padding:11px}.template-card-info h3{font-size:14px}.template-card-info small{font-size:7px;letter-spacing:.8px}.template-card-info p{font-size:9px}.template-options{flex-direction:column;gap:10px}.template-dialog{padding:20px 14px}.custom-color-panel{top:50%;right:35px;transform:translateY(-50%);width:178px}}

/* A single reading size across the designer; artwork and the brand badge keep their own geometry. */
body,button,input,textarea,select,.brand strong,.footer,.footer span,.footer b,.panel-head h2,.panel-head small,.section-label,.field span,.field output,.micro,.eyebrow,.tooltip-note,.layer-info b,.layer-info small,.dialog h2,.dialog h3,.dialog p,.template-card-info small,.template-card-info h3,.template-card-info p,.template-options,.template-options span,.template-options label,.template-note,.toast,#save-status,#tutorial strong,#tutorial div{font-size:14px!important;}
.global-actions{opacity:1!important;pointer-events:auto!important;}
.global-actions .panel-actions #export-open{height:36px!important;min-width:0!important;padding:0 18px!important;font-size:14px!important;line-height:1.4!important;}
body.over-sticker #stage canvas{cursor:var(--cursor-pointer),pointer!important;}
body.grabbing #stage canvas{cursor:grabbing!important;}
