/* V19: a dedicated, viewport-sized design workspace. One navigation action per step. */
:root{--blue:#1457ef;--ink:#152139;--muted:#69778c;--line:#dce4f0;--surface:#f5f8fd}html{height:100%;overscroll-behavior:none}body.uv-studio19{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:#f6f8fc;color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,sans-serif}body.uv-studio19>header{flex:none;height:62px;padding:0 28px;border-bottom:1px solid var(--line);background:white}header a{font-size:18px}header img{width:68px}.exit19{font-size:13px!important;color:var(--muted)!important}.exit19 span{font-size:21px}.progress19{flex:none;display:none;padding:8px 18px;background:#fff}.progress-title19{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:750}.progress-title19>span:first-child{font-size:10px;letter-spacing:.10em;color:var(--blue)}.progress-track19{height:3px;border-radius:4px;background:#e5ecf6;margin-top:7px;overflow:hidden}.progress-track19 span{display:block;height:100%;width:20%;background:var(--blue);transition:width .22s ease}.uv-studio19 main{padding:0;max-width:none;width:100%;min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden}.intro19{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 28px;background:white;flex:none}.intro19 h1{font-size:clamp(21px,2.3vw,34px);letter-spacing:-.045em;margin:0;line-height:1.12}.studio-label19{font-size:10px;font-weight:800;letter-spacing:.15em;color:var(--blue);white-space:nowrap}.workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.18fr) minmax(360px,.82fr);grid-template-rows:55px minmax(0,1fr);align-items:stretch;gap:0;background:#eaf0f9}.visual{grid-column:1;grid-row:1/3;display:flex;min-width:0;min-height:0;flex-direction:column;position:relative;top:auto;padding:20px 28px 15px;border:0;border-radius:0;box-shadow:none;background:radial-gradient(ellipse at 47% 42%,#fff 0,#edf3ff 58%,#d9e6f9 100%);overflow:hidden}.preview-label19{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;letter-spacing:.12em;font-weight:800;color:#466080;flex:none}.preview-label19 i{display:inline-block;width:7px;height:7px;background:#0a9c76;border-radius:50%;margin-right:6px}.preview-label19 button{padding:7px 11px;background:#ffffffc7;font-size:12px;letter-spacing:0;border-radius:9px}.stage{flex:1;min-height:0;position:relative;width:100%;height:auto;aspect-ratio:auto;display:flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:0;overflow:hidden}.stage canvas{display:block;width:100%;height:100%;object-fit:contain;max-height:100%;touch-action:none}.dim-width{bottom:8%}.dim-height{right:10%}.preview-actions19{flex:none;display:flex;gap:8px;align-items:center;max-width:660px;width:100%;margin:0 auto}.preview-actions19 .upload{margin:0;flex:1;padding:12px 10px;white-space:nowrap}.preview-actions19 button{font-size:13px;font-weight:700;white-space:nowrap;background:#ffffffdf}.file-status19{font-size:11px;line-height:1.3;margin:7px auto 0;text-align:center;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preview-selection19{font-size:12px;text-align:center;margin:8px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor19{position:absolute;z-index:8;bottom:12px;left:18px;right:18px;max-height:90%;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:0 12px 60px #132a5a30}.editor-title19{display:flex;justify-content:space-between;align-items:center}.editor-title19 button{padding:4px 11px;font-size:22px}.editor19 .hint{margin:4px 0}.editor19 #fileName,.editor19 #artStatus{font-size:12px;margin:5px 0}.editor19 #comparePanel{max-height:240px;overflow:auto}.step-tabs19{display:grid;grid-column:2;grid-row:1;grid-template-columns:repeat(5,minmax(0,1fr));background:white;border:0;border-bottom:1px solid var(--line);padding:7px 10px;margin:0;gap:5px}.step-tabs19 button{font-size:10px;padding:5px 6px;background:transparent;line-height:1.1;border-radius:8px;overflow:hidden}.step-tabs19 button b{font-size:11px;margin:4px 0 0}.step-tabs19 button small{display:none}.step-tabs19 button.current{box-shadow:none;background:#edf3ff}.step-tabs19 button.completed{color:#1353d6}.step-tabs19 button:disabled{opacity:.58}.controls{grid-column:2;grid-row:2;background:white;border:0;border-radius:0;box-shadow:none;padding:22px 25px 28px;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.controls [data-panel]:not([hidden]){animation:appear19 .18s ease-out}@keyframes appear19{from{opacity:.45;transform:translateY(5px)}to{opacity:1;transform:none}}[data-panel] h3{font-size:18px;margin:12px 0 7px;letter-spacing:-.025em}[data-panel]>h3:first-child,.option-section h3{font-size:24px;margin:0 0 5px}.option-section>.hint{margin-bottom:12px}.size-presets{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.size-presets button{min-height:72px;padding:6px;gap:5px;border-radius:11px}.size-icon{max-width:30px;max-height:30px}.size-presets strong{font-size:12px}.pair input,#qty{margin:3px 0;padding:9px 10px;font-size:16px}.divider18{margin:12px 0}.customqty{margin-top:8px}#quantities{gap:7px}#quantities button{min-height:54px;padding:8px 10px;gap:4px}#quantities strong{font-size:17px}.choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.choices button{position:relative;border-radius:13px;gap:4px;padding:8px}.choices canvas{max-height:115px;object-fit:contain}.choices button.active:after{content:'✓';position:absolute;top:12px;right:12px;width:20px;height:20px;display:grid;place-items:center;color:white;background:var(--blue);border-radius:50%;font-size:12px}.choices strong{font-size:13px}.choices small{font-size:11px}.review-title19{font-size:25px;margin:0}.approval19{display:flex;gap:9px;align-items:flex-start;font-size:13px;line-height:1.5;padding:13px;background:#f1f5fc;border-radius:12px}.approval19 input{margin-top:3px;accent-color:var(--blue)}#notes{min-height:60px}.summary{margin:10px 0;padding:12px;font-size:12px}.summary div{padding:4px 0;border-bottom:1px solid #dde6f4}.summary div:last-child{border:0;font-size:15px}.orderbar18{position:relative;bottom:auto;left:auto;right:auto;flex:none;width:100%;margin:0;border:0;border-top:1px solid var(--line);border-radius:0;padding:12px 28px max(12px,env(safe-area-inset-bottom));background:#fff;gap:14px;box-shadow:0 -5px 22px #132d5010;z-index:15}.orderbar18>div:first-child{display:block;flex:1}.price18{min-width:150px}.price18 strong{font-size:19px;line-height:1.12}.footer-actions19{display:flex;align-items:center;gap:8px;flex:none}.footer-actions19 button{margin:0!important;white-space:nowrap;font-size:13px;font-weight:750}.footer-actions19 .primary{width:auto;padding:12px 19px}.footer-actions19 #prev18{padding:12px 14px}.uv-studio19 #message{margin:0;background:#fff1ec;padding:7px 18px;font-size:12px;color:#a03220;flex:none}.uv-studio19 #message:empty{display:none}.preview-expanded19 .visual{position:fixed;inset:0;z-index:30;padding:max(15px,env(safe-area-inset-top)) 20px max(15px,env(safe-area-inset-bottom))}.preview-expanded19 .stage{max-height:none!important}.preview-expanded19 .editor19{max-height:90%}
@media(max-width:740px){body.uv-studio19>header{height:49px;padding:0 15px}header img{width:52px}header a{font-size:15px}.exit19{font-size:12px!important}.progress19{display:block;padding:6px 15px}.intro19{padding:8px 15px}.intro19 h1{font-size:19px}.studio-label19{display:none}.workspace{display:flex;flex-direction:column;min-height:0;gap:0}.step-tabs19{display:none}.visual{flex:none;height:clamp(190px,34dvh,300px);padding:7px 14px 8px;overflow:visible;z-index:5}.preview-label19{font-size:9px}.preview-label19 button{font-size:10px;padding:4px 8px}.stage{min-height:0}.dim-width{bottom:8%;left:22%;right:22%;font-size:10px}.dim-height{right:7%;font-size:10px}.preview-actions19 .upload{font-size:13px;padding:9px}.preview-actions19 button{font-size:12px;padding:9px 10px}.file-status19{margin:4px 0 0;font-size:10px}.preview-selection19{display:none}.controls{flex:1;min-height:0;padding:12px 15px 16px;border-top:1px solid #e2e9f3;overflow:auto}.controls [data-panel]>h3:first-child,.option-section h3{font-size:20px}.hint{font-size:11px;margin:4px 0 8px}.size-presets button{min-height:46px;padding:4px;gap:3px}.size-icon{max-width:18px;max-height:18px}.size-presets strong{font-size:11px}[data-panel] h3{font-size:15px;margin:9px 0 5px}.pair label,.customqty{font-size:12px}.pair input,#qty{font-size:16px;padding:6px 10px}.divider18{margin:7px 0}#quantities button{min-height:42px;padding:6px 8px;gap:2px}#quantities strong{font-size:15px}#quantities small{font-size:10px}.customqty{margin-top:6px}#minimum{margin:3px 0;font-size:10px}.choices{gap:7px}.choices button{padding:6px;gap:3px}.choices canvas{max-height:65px}.choices strong{font-size:12px}.choices small{font-size:10px;line-height:1.2}.choices button.active:after{top:8px;right:8px;width:17px;height:17px;font-size:10px}.orderbar18{padding:9px 12px max(9px,env(safe-area-inset-bottom));gap:7px}.orderbar18>div:first-child{display:none}.price18{min-width:0;flex:1}.price18 strong{font-size:14px}.price18 small{font-size:10px;line-height:1.2}.footer-actions19{gap:5px}.footer-actions19 .primary{padding:11px 10px;font-size:12px}.footer-actions19 #prev18{font-size:11px;padding:11px 8px}.editor19{position:fixed;top:auto;bottom:70px;max-height:72dvh;left:10px;right:10px;z-index:25}.preview-expanded19 .visual{height:100dvh;padding:15px 14px;z-index:30;overflow:hidden}.preview-expanded19 .editor19{z-index:35}.preview-expanded19 .preview-selection19{display:block}.review-title19{font-size:21px}body[data-step=review] .visual{height:clamp(220px,39dvh,340px)}body[data-step=review] .preview-actions19{display:none}body[data-step=review] .file-status19{margin-top:5px}body[data-step=review].preview-expanded19 .visual{height:100dvh}body[data-step=review] .controls{padding-top:10px}}
@media(max-height:650px) and (max-width:740px){.visual{height:clamp(150px,29dvh,210px)}.intro19{padding:5px 12px}.intro19 h1{font-size:17px}.progress19{padding:4px 12px}body[data-step=review] .visual{height:32dvh}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Compact size and quantity selection on phones. */
@media(max-width:740px){body[data-step=size] .controls{padding-top:9px}body[data-step=size] .controls [data-panel]>h3:first-child{font-size:18px;margin-bottom:6px}body[data-step=size] #p-size>p.hint:first-of-type{display:none}.size-presets{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.size-presets button{min-height:40px;padding:3px;gap:2px}.size-presets strong{font-size:10px;white-space:nowrap}.size-icon{max-height:15px;max-width:15px}.size-presets button:nth-child(1) .size-icon{width:9px;height:9px}.size-presets button:nth-child(2) .size-icon{width:11px;height:11px}.size-presets button:nth-child(3) .size-icon{width:13px;height:13px}#p-size h3{font-size:13px;margin:7px 0 4px}#p-size #sizeLimits{display:none}#p-size .divider18{margin:8px 0 4px}#p-size #quantities{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}#p-size #quantities:has(button:nth-child(6)){grid-template-columns:repeat(6,minmax(0,1fr))}#p-size #quantities button{min-height:38px;align-items:center;text-align:center;padding:4px 2px}#p-size #quantities strong{font-size:13px}#p-size #quantities small{font-size:9px}#p-size .customqty{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-top:6px}#p-size #qty{width:45%;margin:0}#p-size #minimum{margin:3px 0 0}#p-size #dimError:empty{display:none}body[data-step=review]:not(.has-art19) .preview-actions19{display:flex}}
.preview-label19>span{flex:1}.preview-label19 #light19{display:none}body[data-step=finish] .preview-label19 #light19,body[data-step=material] .preview-label19 #light19,body[data-step=review] .preview-label19 #light19{display:inline-block}.advanced19{margin:10px 0 0;border:1px solid var(--line);border-radius:12px;padding:9px 12px}.advanced19 summary{cursor:pointer;font-size:12px;font-weight:700;list-style:none;display:flex;justify-content:space-between;gap:8px}.advanced19 summary::-webkit-details-marker{display:none}.advanced19[open] summary span{transform:rotate(45deg)}.advanced19 select{padding:8px 10px;font-size:13px}
@media(max-width:740px){.choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.choices button{padding:5px;gap:3px;min-height:0;justify-content:flex-start}.choices canvas{max-height:55px}.choices strong{font-size:11px;line-height:1.2}.choices small{font-size:9px;line-height:1.18}.option-section>.hint{margin-bottom:7px}.advanced19{margin-top:8px;padding:8px 10px}.advanced19 summary{font-size:11px}.preview-label19{gap:5px}}
