/* V21: stable viewport, shape-aware sizing and readable pricing. */
:root{--studio-height:100dvh;--studio-top:0px;--ink:#14213a;--muted:#526079;--blue:#1454e8;--line:#dbe3ef}html:has(body.uv-studio19){overflow:hidden;overscroll-behavior:none}body.uv-studio19{margin:0;height:var(--studio-height);width:100%;overflow:hidden;overscroll-behavior:none;-webkit-text-size-adjust:100%;text-size-adjust:100%}.uv-studio19 main{margin:0;min-height:0;overflow:hidden}.workspace{align-items:stretch;min-width:0}.controls{min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scroll-padding:16px 0 24px;-webkit-overflow-scrolling:touch}.visual{min-width:0}.dimension-mode21{font-size:14px;color:#53637c;margin:4px 0 12px;font-weight:650}.size-presets{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.size-presets button{min-height:72px!important;justify-content:center;align-items:center;gap:5px}.size-presets .size-icon{max-width:32px;max-height:32px;border-radius:3px}.size-presets strong{font-size:15px!important;line-height:1.2}.size-presets small{font-size:12px!important}.size-heading20 button{font-size:14px;min-height:38px}.pair label,.customqty{font-size:16px;font-weight:650}.pair input,#qty,#notes{font-size:18px!important;min-height:46px;line-height:1.3}.bulk20{font-size:14px;line-height:1.5;margin-bottom:10px}.qty-step20 button{min-width:44px;height:44px}.qty-step20{max-width:220px}#p-size #quantities,#p-size #quantities:has(button:nth-child(6)){grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}#p-size #quantities button{min-height:108px;gap:4px;padding:12px;align-items:flex-start;line-height:1.25}#p-size #quantities strong{font-size:20px}.qhead20 span{font-size:13px}.qtotal20{font-size:21px}#p-size #quantities small{font-size:14px;line-height:1.3}.save21{font-size:12px;font-weight:650;color:#176343;background:#eaf6ee;border-radius:6px;padding:3px 5px;line-height:1.25}.choices strong{font-size:15px}.choices small,.hint,#minimum{font-size:14px;line-height:1.45}.choices button{min-height:115px}.price18 small{font-size:13px!important;line-height:1.4}.footer-actions19 .primary,.footer-actions19 #prev18{font-size:15px;min-height:46px}.orderbar18{flex-shrink:0}.preview-actions19 .upload,.preview-actions19 button{min-height:44px;font-size:14px}.file-status19{font-size:13px}.preview-label19{font-size:12px}.preview-label19 button{min-height:36px;font-size:13px}.progress-title19{font-size:14px}.progress-title19>span:first-child{font-size:12px}.uv-studio19 #message{font-size:14px}.approval-footer20{font-size:12px!important}.summary{font-size:15px}.review-title19{font-size:24px}.approval19{font-size:14px}.controls [data-panel]>h3:first-child,.option-section h3{font-size:24px}.controls [data-panel] h3{font-size:18px}.controls [data-panel]>h3:first-child,.option-section h3{font-size:23px}.controls [data-panel]{max-width:100%}.uv-studio19 [hidden]{display:none!important}.preview-expanded19 .visual{height:var(--studio-height)!important;top:0}.editing21 .controls{scroll-padding-bottom:24px}
@media(max-width:740px){body.uv-studio19{position:fixed;top:var(--studio-top);left:0;right:0;bottom:auto;height:var(--studio-height)}body.uv-studio19>header{height:48px}.intro19 h1{font-size:21px}.intro19{padding:9px 15px}.progress19{padding:7px 15px}.visual,body[data-step=size] .visual,body[data-step=review] .visual{height:clamp(164px,25dvh,250px);flex-shrink:0}.controls{padding:15px 15px 24px}.size-presets{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#p-size .size-presets button{min-height:58px!important;padding:6px!important}.size-presets .size-icon{max-width:26px;max-height:22px}.size-presets strong{font-size:14px!important}#p-size #quantities,#p-size #quantities:has(button:nth-child(6)){grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#p-size #quantities button{min-height:100px;padding:9px 11px;gap:2px}#p-size #quantities strong{font-size:18px}.qtotal20{font-size:20px}#p-size #quantities small{font-size:13px}.size-heading20 button{font-size:13px}.size-heading20{margin:12px 0 4px}.pair label,.customqty{font-size:15px}.choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.choices canvas{max-height:76px}.choices strong{font-size:15px}.choices small{font-size:13px}.choices button{min-height:100px;padding:8px}.controls [data-panel]>h3:first-child,.option-section h3{font-size:21px}.controls [data-panel] h3{font-size:17px}.controls [data-panel]>h3:first-child,.option-section h3{font-size:21px}.hint,#minimum{font-size:13px}.orderbar18{padding:10px 12px max(10px,env(safe-area-inset-bottom));gap:8px}.price18 strong{font-size:23px}.price18 small{font-size:12px!important}.footer-actions19 .primary{font-size:13px;padding:10px 12px;white-space:normal;max-width:155px}.footer-actions19 #prev18{font-size:13px;min-width:44px;padding:10px}.preview-actions19 .upload,.preview-actions19 button{font-size:14px;min-height:42px}.preview-label19{font-size:10px}.preview-label19 button{font-size:12px;min-height:30px}.file-status19{font-size:11px}.editing21 .visual{display:none!important}.editing21 .intro19{display:none}.editing21 .orderbar18{display:none}.editing21 .controls{flex:1;padding-top:12px}.editing21 .progress19{padding:6px 15px}.editing21 .editor19{position:absolute}.editing21 .controls [data-panel]{animation:none}.preview-expanded19 .visual{inset:0;position:absolute;height:var(--studio-height)!important}.preview-expanded19 .editor19{position:absolute;max-height:calc(var(--studio-height) - 80px)}.editor19{position:absolute;bottom:8px;max-height:calc(var(--studio-height) - 110px)}.editing21 .visual:has(.editor19:not([hidden])){display:flex!important;flex:1;height:auto}.editing21 .visual:has(.editor19:not([hidden])) .editor19{max-height:100%}.price18{min-width:0}.footer-actions19{gap:5px}.uv-studio19 #message{font-size:13px}}
@media(max-width:360px){.footer-actions19 .primary{max-width:125px}.price18 strong{font-size:21px}.size-presets strong{font-size:13px!important}.price18 small{font-size:11px!important}}
/* Keep key labels legible even when earlier mobile styles are loaded. */
#p-size h3{font-size:18px;line-height:1.3;margin:12px 0 7px}#p-size>h3:first-child{font-size:21px;margin-top:0}#p-size .size-heading20 h3{font-size:17px}#p-size .unit18{font-size:13px}#p-size #minimum{font-size:13px;line-height:1.45}#p-size #dimError{font-size:14px;line-height:1.4}#p-size .bulk20{font-size:14px}#p-size .customqty{font-size:15px}#p-size #quantities button:not(.active):hover{background:#f8faff;outline:0;border-color:#dbe3ef}@media(max-width:740px){body:not(.editing21)[data-step=shape] .visual,body:not(.editing21)[data-step=material] .visual,body:not(.editing21)[data-step=finish] .visual{height:clamp(205px,30dvh,265px)}}
