nav.top-nav,.top-nav{display:flex!important;visibility:visible!important;opacity:1!important;z-index:30000!important;position:sticky!important;top:0!important;left:auto!important;right:auto!important;background:#fff!important;border-bottom:1px solid #e0e0e0!important;box-shadow:0 2px 4px #0000001a!important;min-height:60px!important;align-items:center!important;justify-content:center!important;width:100%!important;flex-shrink:0!important}.body-product-new-page .step-2,.face-product-new-page .step-2,.reference-product-new-page .step-2,.body-product-new-page .step-3,.face-product-new-page .step-3,.reference-product-new-page .step-3{padding:0 2rem 2rem;margin:0 auto;width:100%;max-width:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:center}html body div.body-product-new-page,html body div.face-product-new-page,html body div.reference-product-new-page{padding:0!important;margin:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important}.guide-grid{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:clamp(4px,2vw,12px)!important;padding:clamp(6px,2vw,16px)!important;flex-wrap:unset!important;flex-direction:unset!important}:root{--nav-height: 60px;--toast-z-index: 1000;--debug-panel-z-index: 10000;--loading-overlay-z-index: 999;--primary-color: #007bff;--primary-hover: #0056b3;--error-color: #dc3545;--success-color: #28a745;--warning-color: #ffc107;--info-color: #17a2b8;--page-padding: 1rem;--mobile-padding: .75rem;--small-mobile-padding: .5rem;--mobile-max: 768px;--small-mobile-max: 480px;--tablet-min: 769px;--tablet-max: 1024px;--desktop-min: 1200px}.app-shell{display:flex;flex-direction:column;min-height:100vh;width:100%}.app-content{flex:1;width:100%;overflow-x:hidden;display:flex;flex-direction:column}.body-home-page,.face-home-page,.reference-home-page,.body-measurement-page,.body-product-new-page,.face-measurement-page,.face-product-new-page,.reference-product-new-page{flex:1;width:100%}.app{min-height:100vh;display:flex;flex-direction:column;width:100%;max-width:100%;overflow-x:hidden;position:relative}.app-header{background-color:#f5f5f5;padding:1rem;border-bottom:1px solid #ddd}.app-header h1{margin:0 0 .5rem;font-size:1.5rem}.app-nav{display:flex;gap:1rem}.app-nav a{text-decoration:none;color:#007bff;padding:.5rem 1rem;border-radius:4px;border:1px solid #007bff}.app-nav a:hover{background-color:#007bff;color:#fff}.app-main{flex:1;padding:0}.body-home-page{max-width:1200px;margin:0 auto;padding:12px 1rem 0}.body-home-layout{display:flex;gap:2rem;min-height:600px;justify-content:center;align-items:flex-start}.face-home-page{max-width:1200px;margin:0 auto;padding:12px 1rem 0}.face-home-layout{display:flex;gap:2rem;min-height:600px;justify-content:center;align-items:flex-start}.reference-home-page{max-width:1200px;margin:0 auto;padding:12px 1rem 0}.reference-home-layout{display:flex;gap:2rem;min-height:600px;justify-content:center;align-items:flex-start}.body-home-page,.face-home-page,.reference-home-page{height:100%;min-height:0;width:100%;max-width:100%;overflow-x:hidden}.loading-state,.error-state{text-align:center;padding:2rem;font-size:1.2rem}.error-state{color:#dc3545}.canvas-action-buttons{display:flex;margin-top:1rem;padding:0;gap:.5rem;justify-content:center;flex-wrap:wrap}.action-btn{flex:1;min-width:100px;max-width:150px;padding:.75rem 1rem;border:1px solid #007bff;background-color:#007bff;color:#fff;border-radius:4px;font-size:.75rem!important;font-weight:500!important;line-height:1!important;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif!important;text-transform:uppercase!important;letter-spacing:.5px!important;cursor:pointer;transition:all .2s ease;touch-action:manipulation;min-height:44px}.action-btn:hover{background-color:#0056b3;border-color:#0056b3}.action-btn.secondary{background-color:transparent;color:#007bff}.action-btn.secondary:hover{background-color:#007bff;color:#fff}@media (max-width: 768px){.app-content{padding-bottom:calc(env(safe-area-inset-bottom) + 140px)!important}.canvas-action-buttons{display:flex}.strip-actions-desktop,.strip-empty-actions-desktop,.step-1 h2,.step-2 h2,.step-3 h2,.step-4 h2,.step-5 h2{display:none!important}.body-product-new-page .step-1,.face-product-new-page .step-1,.reference-product-new-page .step-1{padding:0 1rem 1rem!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important}.step-1>div[style*="display: flex"]{flex-direction:column!important;align-items:center!important;justify-content:center!important;width:100%!important;max-width:100%!important;gap:1.5rem!important;flex-wrap:nowrap!important}.step-1>div[style*="display: flex"]>div:first-child{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;width:100%!important;max-width:300px!important;min-width:unset!important;height:auto!important;min-height:auto!important;max-height:none!important}.step-1 div[style*="width: 220"]{margin:0 auto!important;display:flex!important;align-items:center!important;justify-content:center!important}.step-1 img[style*="maxWidth: 220"]{margin:0 auto!important;display:block!important}.step-1 div[style*="marginTop: 10"]{width:100%!important;display:flex!important;flex-direction:column!important;align-items:center!important}.step-1 div[style*="display: flex"][style*="gap: 8px"]{justify-content:center!important;width:100%!important;flex-wrap:wrap!important;max-width:300px!important}.step-1>div[style*="display: flex"]>div:last-child{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;width:100%!important;max-width:300px!important;min-width:unset!important;height:auto!important;min-height:auto!important;max-height:none!important}.step-1 label[style*="display: block"]{text-align:center!important;width:100%!important}.step-1 input[type=number]{width:100%!important;max-width:300px!important;text-align:center!important}.step-1 div[style*="marginTop: 8"][style*="opacity: 0.85"]{text-align:center!important;width:100%!important}.body-product-new-page .step-1>div:last-child,.face-product-new-page .step-1>div:last-child,.reference-product-new-page .step-1>div:last-child,.body-product-new-page .step-1 .navigation-buttons,.face-product-new-page .step-1 .navigation-buttons,.reference-product-new-page .step-1 .navigation-buttons{display:flex!important;justify-content:center!important;width:100%!important;max-width:400px!important;margin:1rem auto 0!important;gap:12px!important;align-items:center!important;flex-direction:row!important;flex-wrap:nowrap!important}.body-product-new-page .step-1>div:last-child button,.face-product-new-page .step-1>div:last-child button,.reference-product-new-page .step-1>div:last-child button,.body-product-new-page .step-1 .navigation-buttons button,.face-product-new-page .step-1 .navigation-buttons button,.reference-product-new-page .step-1 .navigation-buttons button{flex:1!important;max-width:140px!important;min-width:120px!important;height:44px!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important}.body-product-new-page .step-2,.face-product-new-page .step-2,.body-product-new-page .step-3,.face-product-new-page .step-3,.body-product-new-page .step-4,.face-product-new-page .step-4{padding:0 1rem 1rem!important;overflow:visible!important;height:auto!important;margin:0 auto!important;width:100%!important;max-width:100%!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:center!important;box-sizing:border-box!important}.body-product-new-page .step-4,.face-product-new-page .step-4{align-items:center!important}.step-2 div[style*=minWidth],.step-3 div[style*=minWidth],.step-4 div[style*=minWidth],.step-2 .step-2-controls[style*=minWidth],.step-3 .refine-controls[style*=minWidth],.step-4 .step-4-controls[style*=minWidth]{min-width:unset!important;width:100%!important;max-width:100%!important}.step-2 .step-2-container,.step-3 .refine-mask-editor,.step-4 .step-4-container{justify-content:center!important;align-items:center!important;width:100%!important;margin:0 auto!important}.face-display.mobile,.body-display.mobile{position:relative;width:auto;max-width:100%;height:350px;min-height:300px;aspect-ratio:4 / 5;border:1px solid #ddd;border-radius:8px;overflow:hidden;-webkit-user-select:none;user-select:none;touch-action:none;cursor:crosshair;margin:0 auto 1rem;display:flex;align-items:center;justify-content:center}}.face-display.desktop,.body-display.desktop{position:relative;width:min(520px,100%);aspect-ratio:420 / 520;height:auto;border:1px solid #444;border-radius:8px;overflow:hidden;-webkit-user-select:none;user-select:none;touch-action:none;cursor:crosshair}.step-2 .step-2-container{width:100%!important;margin:0!important;padding:0!important;gap:.5rem!important;flex-direction:column!important;align-items:center!important;flex-wrap:nowrap!important;max-width:100%!important;box-sizing:border-box!important}.step-2 .step-2-canvas-container{width:100%!important;max-width:100%!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;margin:0 auto!important;box-sizing:border-box!important}.step-2 .step-2-controls{width:100%!important;min-width:unset!important;background:#f8f9faf2;border-radius:12px;padding:1rem;box-shadow:0 2px 15px #0000001a;margin:1rem auto;max-width:100%;display:flex;flex-direction:column;align-items:center}.step-2 .step-2-navigation{width:100%!important;background:#f8f9faf2!important;border-radius:12px!important;padding:1rem!important;box-shadow:0 2px 15px #0000001a!important;margin:1rem auto 2rem!important;display:flex!important;justify-content:center!important;max-width:100%!important}.face-display.mobile img,.body-display.mobile img{width:100%;height:100%;object-fit:contain;display:block;max-width:100%;max-height:350px}.step-3 .refine-controls,.step-4 .step-4-controls{width:calc(100% - 4rem);background:#f8f9faf2;border-radius:12px;padding:1rem;box-shadow:0 2px 15px #0000001a;margin:1rem auto;max-width:calc(100% - 4rem);box-sizing:border-box;display:flex;flex-direction:column;align-items:center}.step-3>div:last-child,.step-4>div:last-child{width:100%!important;background:#fff!important;border-radius:12px!important;padding:1rem!important;box-shadow:0 2px 15px #0000001a!important;margin:1rem auto 2rem!important;display:flex!important;justify-content:center!important;max-width:100%!important}.step-2 .step-navigation,.step-3 .step-navigation,.step-4 .step-navigation{background:#f8f9faf2!important;border-radius:12px!important;padding:1rem!important;box-shadow:0 2px 15px #0000001a!important;margin:1rem auto 2rem!important;width:100%!important;max-width:100%!important;justify-content:center!important}.step-2 .step-2-container[style*=flexWrap],.step-2 .step-2-container[style*=flex-wrap]{flex-wrap:nowrap!important;flex-direction:column!important;width:100%!important;max-width:100%!important;gap:.5rem!important}.step-2 .step-2-canvas-container[style*=display]{display:flex!important;flex-direction:column!important;align-items:center!important;width:100%!important;max-width:100%!important}} .canvas-controls{position:absolute;bottom:1rem;right:1rem;z-index:1100;display:flex;gap:.5rem;pointer-events:none}.canvas-controls-inner,.canvas-controls-body-image{position:absolute;bottom:.5rem;right:.5rem;z-index:1100;display:flex;gap:.5rem;pointer-events:none}@media (max-width: 768px){.canvas-controls{bottom:1rem;right:.5rem}.canvas-controls-inner,.canvas-controls-body-image{bottom:.5rem;right:.5rem}}.guidelines-toggle-btn{background:#f8f9faf2;border:1px solid rgba(0,0,0,.2);border-radius:50%;width:44px;height:44px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:18px;transition:all .2s ease;box-shadow:0 2px 8px #00000026;pointer-events:auto}.guidelines-toggle-btn:hover{background:#f8f9fa;box-shadow:0 4px 8px #00000026;transform:translateY(-1px)}.guidelines-toggle-btn:active{transform:translateY(0);box-shadow:0 2px 4px #0000001a}.body-canvas{flex:1;display:flex;justify-content:center;align-items:center;background-color:#f8f9fa;border-radius:8px;padding:1rem}.body-visualization-container{position:relative;display:inline-block}.body-cutout-image{display:block;max-width:100%;height:auto}.guidelines-overlay{position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none}.guideline{position:absolute;left:0;right:0;height:2px;background-color:#007bff;opacity:.8}.product-overlay{position:absolute;pointer-events:none;z-index:10}.canvas-empty-state{text-align:center;padding:2rem}.calculating-overlay{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#000000b3;color:#fff;padding:1rem;border-radius:4px}.body-product-strip,.face-product-strip{width:300px;background-color:#f8f9fa;border-radius:8px;padding:1rem;border:none}.face-canvas{flex:1;display:flex;justify-content:center;align-items:center;background-color:#f8f9fa;border-radius:8px;padding:1rem}.reference-product-strip{width:300px;background-color:#f8f9fa;border-radius:8px;padding:1rem;border:none}.reference-canvas{display:flex;flex-direction:column;align-items:center;background-color:#f8f9fa;border-radius:8px;padding:1rem}.strip-empty-state{text-align:center;padding:2rem}.product-thumbnails{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem}.product-thumbnail{display:flex;align-items:center;gap:.5rem;padding:.5rem;border-radius:4px;cursor:pointer;transition:background-color .2s}.product-thumbnail:hover{background-color:#e9ecef}.product-thumbnail.selected{background-color:#e3f2fd}.product-info{flex:1}.product-name{margin:0;font-weight:700;font-size:.9rem}.product-length{margin:0;font-size:.8rem;color:#666}.clear-selection,.add-product{width:100%;padding:.5rem;margin-bottom:.5rem;border:1px solid #007bff;background-color:#fff;color:#007bff;border-radius:4px;cursor:pointer;font-size:.75rem;font-weight:600}.clear-selection:hover,.add-product:hover{background-color:#007bff;color:#fff}.body-empty-state{display:flex;justify-content:center;align-items:center;min-height:400px}.empty-state-content{text-align:center;max-width:400px}.empty-state-actions{display:flex;flex-direction:column;gap:1rem;margin-top:2rem}.primary-action,.secondary-action{padding:1rem 2rem;border:none;border-radius:4px;font-size:.75rem;font-weight:600;cursor:pointer}.primary-action{background-color:#007bff;color:#fff}.secondary-action{background-color:#6c757d;color:#fff}.primary-action:hover{background-color:#0056b3}.secondary-action:hover{background-color:#545b62}.body-measurement-page,.body-product-new-page,.face-product-new-page,.face-measurement-page{max-width:800px;margin:0 auto;padding:0;padding-bottom:1rem;position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;width:100%;box-sizing:border-box;overflow:visible!important;overflow-y:visible!important;height:auto!important;min-height:0!important;max-height:none!important}.measurement-header,.product-header{text-align:center;margin-bottom:2rem;width:100%;display:flex;flex-direction:column;align-items:center}.measurement-content,.product-content{background-color:#f8f9fa;padding:0 2rem 2rem;border-radius:8px;width:100%;max-width:100%;display:flex;flex-direction:column;align-items:center;box-sizing:border-box}.page-header{text-align:center;margin-bottom:2rem;width:100%;display:flex;flex-direction:column;align-items:center;padding:1rem}.step-1,.step-2,.step-3,.step-4,.step-5{text-align:center;width:100%;max-width:100%;display:flex;flex-direction:column;align-items:center;margin:0 auto;box-sizing:border-box}.step-navigation{display:flex;justify-content:center;margin-top:2rem;margin-bottom:2rem!important;padding-bottom:1rem!important;width:100%;max-width:400px;margin-left:auto;margin-right:auto;gap:1rem;flex-wrap:wrap}.step-navigation button{padding:.75rem 1.5rem;border:1px solid #007bff;background-color:#fff;color:#007bff;border-radius:4px;cursor:pointer;font-size:.75rem;font-weight:600}.step-navigation button:hover{background-color:#007bff;color:#fff}.measurement-summary{background-color:#fff;padding:1rem;border-radius:4px;margin:1rem 0}label{display:block;margin-bottom:1rem}input,textarea{width:100%;padding:.5rem;border:1px solid #ddd;border-radius:4px;margin-top:.25rem}textarea{min-height:80px;resize:vertical}.toast-container{position:fixed;top:20px;right:20px;z-index:var(--toast-z-index);display:flex;flex-direction:column;gap:.5rem;max-width:400px}.toast{background-color:#fff;border-radius:8px;box-shadow:0 4px 12px #00000026;border-left:4px solid;opacity:0;transform:translate(100%);transition:all .3s ease-in-out;max-width:100%}.toast-success{border-left-color:var(--success-color)}.toast-error{border-left-color:var(--error-color)}.toast-warning{border-left-color:var(--warning-color)}.toast-info{border-left-color:var(--info-color)}.toast-content{display:flex;align-items:center;justify-content:space-between;padding:1rem;gap:.5rem}.toast-message{flex:1;font-size:.9rem;line-height:1.4}.toast-close{background:none;border:none;font-size:1.2rem;cursor:pointer;color:#666;padding:0;width:20px;height:20px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background-color .2s}.toast-close:hover{background-color:#f0f0f0}.spinner-circle{width:100%;height:100%;border:3px solid #f3f3f3;border-top:3px solid #007bff;border-radius:50%;animation:spin 1s linear infinite}.loading-message{font-size:.9rem;color:#666;text-align:center}.loading-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:var(--loading-overlay-z-index)}.loading-overlay-content{background-color:#fff;padding:2rem;border-radius:8px;box-shadow:0 4px 12px #00000026}.error-message{border-radius:8px;border:1px solid #dc3545;background-color:#f8d7da;color:#721c24}.error-message-inline{padding:.5rem;font-size:.9rem}.error-message-card{padding:1rem}.error-message-banner{padding:1rem;border-radius:0;border-left:none;border-right:none}.error-icon{font-size:1.2rem;flex-shrink:0}.error-title{margin:0 0 .25rem;font-weight:700;font-size:.9rem}.error-description{margin:0;font-size:.85rem;line-height:1.4}.error-retry-button{background-color:#dc3545;color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;cursor:pointer;font-size:.75rem;font-weight:600;transition:background-color .2s}.error-retry-button:hover{background-color:#c82333}.validation-error{background-color:#f8d7da;border:1px solid #f5c6cb;color:#721c24;padding:.75rem;border-radius:4px;margin-top:.5rem}.validation-error-message{margin:0;font-size:.9rem}.validation-error-list{margin:0;padding-left:1.5rem;font-size:.9rem}.validation-error-item{margin-bottom:.25rem}.validation-error-item:last-child{margin-bottom:0}.loading-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 2rem;text-align:center;background-color:#f8f9fa;border-radius:8px;min-height:200px}.button-loading{position:relative;color:transparent!important}*:focus{outline:2px solid #007bff;outline-offset:2px}button:focus,input:focus,textarea:focus,select:focus{outline:2px solid #007bff;outline-offset:2px}.skip-link{position:absolute;top:-40px;left:6px;background:#007bff;color:#fff;padding:8px;text-decoration:none;border-radius:4px;z-index:1001}.skip-link:focus{top:6px}@media (prefers-contrast: high){.toast{border:2px solid}.loading-spinner .spinner-circle{border-width:4px}.error-message{border-width:2px}}@media (prefers-reduced-motion: reduce){.toast{transition:none}.spinner-circle{animation:none}.loading-spinner .spinner-circle{border-top-color:transparent;border-right-color:#007bff}button,.product-thumbnail{transition:none}}@media (max-width: 768px){.step-2-container,.step-4>div[style*="display: flex"]{position:relative!important;padding-top:0!important}.step-2-container>button[style*="position: absolute"],.step-4>div[style*="display: flex"]>button[style*="position: absolute"]{position:absolute!important;top:10px!important;left:10px!important;z-index:10!important;background:#f8f9faf2!important;border:1px solid #ddd!important;border-radius:6px!important;padding:8px 12px!important;font-size:14px!important;cursor:pointer!important;box-shadow:0 2px 4px #0000001a!important;min-height:44px!important;min-width:auto!important}.step-2-canvas-container button[style*="position: absolute"],.step-3 .refine-mask-editor button[style*="position: absolute"],.step-4 div[style*="position: relative"]>button[style*="position: absolute"]{display:none!important}.previous-btn.mobile{padding:0!important;margin:0!important;border:none!important}.product-header{padding:8px 0 0!important;margin:0!important}}@media (max-width: 480px){.app-header{padding:.5rem}.app-nav{justify-content:center}.app-nav a{flex:1;text-align:center;min-width:0}.toast-container{left:10px;right:10px;top:10px}.loading-overlay-content{margin:.5rem;padding:1rem}.body-canvas img:not(.product-overlay-img){max-width:100%;height:auto}.image-with-guidelines img{max-width:250px!important;max-height:300px!important}}@media (min-width: 769px) and (max-width: 1024px){.body-home-layout,.reference-home-layout{gap:1.5rem}.body-product-strip,.face-product-strip,.reference-product-strip{width:250px}.measurement-content,.product-content{padding:0 1.5rem 1.5rem}}@media (min-width: 1200px){.body-home-page,.reference-home-page{max-width:1400px}.body-home-layout,.reference-home-layout{gap:3rem}.body-product-strip,.face-product-strip,.reference-product-strip{width:350px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}button:disabled{opacity:.6;cursor:not-allowed}button:disabled:hover{background-color:inherit;color:inherit}.app-nav a{color:#0056b3}.app-nav a:hover,.app-nav a:focus{background-color:#0056b3;color:#fff}label{font-weight:500;color:#333}input:invalid{border-color:#dc3545}input:valid{border-color:#28a745}.validation-error{border-left:4px solid #dc3545}.loading-spinner[role=status]{position:relative}.loading-spinner[role=status]:after{content:"Loading...";position:absolute;left:-9999px}.toast[role=alert]{border-radius:8px;box-shadow:0 4px 12px #00000026,0 0 0 1px #0000001a}@media (pointer: coarse){button:not(.guide-toggle),.product-thumbnail,.toast-close,input[type=file]+button{min-height:44px;min-width:44px}.guideline{height:4px}.guideline:before{content:"";position:absolute;top:-10px;bottom:-10px;left:0;right:0}}@media print{.toast-container,.loading-overlay,.app-nav,.step-navigation{display:none!important}.app{background:#fff}.body-home-layout{flex-direction:column}.body-product-strip{width:100%}}.measurement-required-notice{font-size:.85rem;color:#666;font-style:italic;margin-top:1rem;padding:.5rem;background-color:#f8f9fa;border-radius:4px;border-left:3px solid #ffc107}.product-memo{font-size:.75rem;color:#666;margin:.25rem 0 0;line-height:1.3}.product-thumbnail[aria-disabled=true]{cursor:not-allowed;opacity:.5}.product-thumbnail[aria-pressed=true]{background-color:#e3f2fd;border-color:#007bff!important}.product-thumbnail:focus{outline:2px solid #007bff;outline-offset:2px}.canvas-empty-state h2{margin:0 0 1rem;font-size:1.25rem;color:#333}.canvas-empty-state p{margin:0 0 1.5rem;color:#666;line-height:1.4}.strip-empty-state h2{margin:0 0 1rem;font-size:1.1rem;color:#333}.strip-empty-state p{margin:0 0 1.5rem;color:#666;font-size:.9rem;line-height:1.4}input[type=number]:focus,input[type=text]:focus,textarea:focus{border-color:#007bff;box-shadow:0 0 0 2px #007bff40}.button-loading{position:relative}.button-loading .loading-spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.guideline[role=img]{position:relative}.guideline[role=img]:after{content:attr(aria-label);position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.step-navigation button:focus{z-index:1;position:relative}.validation-error{background-color:#f8d7da;border-color:#f5c6cb;color:#721c24}.validation-error-message,.validation-error-item{font-weight:500}.step h2{color:#333;margin-bottom:1.5rem}.loading-overlay[role=dialog]{display:flex;align-items:center;justify-content:center}.loading-overlay-content{text-align:center}@media (max-width: 480px){.toast-container{top:60px}}@media (prefers-contrast: high){.product-thumbnail{border-width:2px}.product-thumbnail[aria-pressed=true]{border-width:3px}.guideline{opacity:1!important;height:3px}.validation-error{border-left-width:6px}}@media (prefers-reduced-motion: reduce){.product-overlay{transition:none}.calculating-overlay{animation:none}}html,body{height:100%;overflow-x:hidden;position:relative}body{margin:0;width:100%;max-width:100%}.app-shell{height:100dvh;display:flex;flex-direction:column;width:100%;max-width:100%;overflow-x:hidden;position:relative}@media (max-width: 768px){.app-shell{height:100dvh;min-height:100dvh;padding-top:0;padding-left:0;padding-right:0}}.app-content{flex:1;min-height:0;padding:0}.top-nav{flex:0 0 auto!important;background-color:#fff!important;border-bottom:1px solid #e0e0e0!important;display:flex!important;justify-content:center!important;padding-top:calc(.75rem + env(safe-area-inset-top,0px))!important;padding-bottom:.5rem!important;padding-left:.25rem!important;padding-right:.25rem!important;z-index:9999!important;position:relative!important;visibility:visible!important;opacity:1!important;min-height:var(--nav-height)!important;width:100%!important;box-sizing:border-box!important;box-shadow:0 2px 8px #0000001a}.top-nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:.25rem 1rem;text-decoration:none;color:#666;transition:color .2s ease;min-width:60px}.top-nav-item:hover,.top-nav-item.active{color:#007bff}.nav-icon{font-size:1rem;margin-bottom:.125rem}.nav-label{font-size:.625rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.page-container{max-width:1200px;margin:0 auto;padding-bottom:1rem}.page-header{text-align:center;margin-bottom:2rem}.page-header h1{margin:0 0 .5rem;font-size:2rem;color:#333}.page-header p{margin:0;color:#666;font-size:1.1rem}.page-content{background-color:#f8f9fa;padding:2rem;border-radius:8px}.action-buttons{display:flex;gap:1rem;justify-content:center;margin-bottom:2rem}.btn{padding:.75rem 1.5rem;border:none;border-radius:4px;font-size:.75rem;font-weight:600;cursor:pointer;text-decoration:none;display:inline-block;text-align:center;transition:background-color .2s ease}.btn-primary{background-color:#007bff;color:#fff}.btn-primary:hover{background-color:#0056b3}.btn-secondary{background-color:#6c757d;color:#fff}.btn-secondary:hover{background-color:#545b62}.measurement-summary{background-color:#fff;padding:1.5rem;border-radius:8px;margin-top:2rem}.measurement-summary h2{margin:0 0 1rem;font-size:1.25rem;color:#333}.measurement-info{display:flex;flex-wrap:wrap;gap:1rem;margin-bottom:1rem}.measurement-info p{margin:0;padding:.5rem 1rem;background-color:#f8f9fa;border-radius:4px;font-size:.9rem}.empty-state{text-align:center;padding:3rem 2rem}.empty-state h2{margin:0 0 1rem;font-size:1.5rem;color:#333}.empty-state p{margin:0 0 2rem;color:#666;font-size:1.1rem}.step-indicator{background-color:#e9ecef;padding:.5rem 1rem;border-radius:20px;font-size:.9rem;color:#495057;margin-top:.5rem}.step-content{text-align:center;margin-bottom:2rem;display:flex;flex-direction:column;align-items:center}.step-content h2{margin:0 0 1rem;font-size:1.5rem;color:#333}.step-content p{margin:0 0 2rem;color:#666;font-size:1.1rem}.file-input-container{margin:2rem 0}.file-input{display:none}.file-input-label{display:inline-block;padding:1rem 2rem;background-color:#007bff;color:#fff;border-radius:4px;cursor:pointer;transition:background-color .2s ease;font-size:.75rem;font-weight:600}.file-input-label:hover{background-color:#0056b3}.image-preview,.image-annotation{margin:2rem 0;text-align:center}.image-preview img,.image-annotation img{border-radius:8px;box-shadow:0 2px 8px #0000001a}.measurement-inputs{display:flex;gap:2rem;justify-content:center;margin:2rem 0}.measurement-inputs label{display:flex;flex-direction:column;align-items:center;gap:.5rem}.measurement-inputs input{width:120px;padding:.5rem;border:1px solid #ddd;border-radius:4px;text-align:center}.step-controls{display:flex;justify-content:space-between;margin-top:2rem}.step-controls .btn{min-width:120px}.tryon-container{display:flex;gap:2rem;margin-bottom:2rem}.face-display,.overlay-display{flex:1;background-color:#fff;padding:1.5rem;border-radius:8px;text-align:center}.face-display h3,.overlay-display h3{margin:0 0 1rem;font-size:1.25rem;color:#333}.face-display img{border-radius:8px;box-shadow:0 2px 8px #0000001a;margin-bottom:1rem}.face-info{text-align:left;background-color:#f8f9fa;padding:1rem;border-radius:4px}.face-info p{margin:0 0 .5rem;font-size:.9rem}.face-info p:last-child{margin-bottom:0}.face-annotator svg{touch-action:none}.face-annotator img{-webkit-user-select:none;user-select:none}.overlay-placeholder{background-color:#f8f9fa;padding:2rem;border-radius:8px;border:2px dashed #dee2e6;color:#666}.overlay-placeholder p{margin:0 0 1rem}.overlay-placeholder p:last-child{margin-bottom:0}.tryon-controls{display:flex;gap:1rem;justify-content:center}.debug-panel{margin-top:1rem;border:1px solid #dee2e6;border-radius:4px}.debug-panel summary{padding:.75rem;background-color:#f8f9fa;cursor:pointer;font-weight:500;border-radius:4px 4px 0 0}.debug-panel summary:hover{background-color:#e9ecef}.debug-content{padding:1rem;background-color:#fff}.debug-section{margin-bottom:1rem}.debug-section:last-child{margin-bottom:0}.debug-section h4{margin:0 0 .5rem;font-size:.9rem;color:#495057;text-transform:uppercase;letter-spacing:.5px}.debug-section p{margin:0 0 .25rem;font-size:.8rem;font-family:monospace;color:#666}.debug-section p:last-child{margin-bottom:0}@media (max-width: 480px){.page-header h1{font-size:1.5rem}.page-header p{font-size:1rem}.measurement-info{flex-direction:column;gap:.5rem}.measurement-info p{text-align:center}}.top-nav-item:focus{outline:2px solid #007bff;outline-offset:2px}.debug-panel summary:focus{outline:2px solid #007bff;outline-offset:2px}@media (prefers-contrast: high){.bottom-nav{border-top-width:2px}.bottom-nav-item.active{background-color:#007bff;color:#fff;border-radius:4px}.debug-panel{border-width:2px}}.loading-state,.error-state{display:flex;justify-content:center;align-items:center;min-height:300px;padding:2rem;text-align:center}.error-state{color:var(--error-color)}.loading-spinner-container{display:flex;flex-direction:column;align-items:center;gap:1rem}.loading-spinner{display:inline-block;position:relative}.loading-spinner-small{width:20px;height:20px}.loading-spinner-medium{width:40px;height:40px}.loading-spinner-large{width:60px;height:60px}.spinner-circle{width:100%;height:100%;border:3px solid #f3f3f3;border-top:3px solid var(--primary-color);border-radius:50%;animation:spin 1s linear infinite}.loading-spinner-small .spinner-circle{border-width:2px}.loading-spinner-large .spinner-circle{border-width:4px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-message{color:#666;font-size:.9rem;text-align:center}.loading-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:var(--loading-overlay-z-index)}.loading-overlay-content{background:#fff;padding:2rem;border-radius:8px;box-shadow:0 4px 12px #00000026}.loading-state-inline{padding:1rem;min-height:auto}.button-loading{position:relative;color:transparent!important;cursor:not-allowed!important;opacity:.7}.button-loading:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:16px;height:16px;border:2px solid transparent;border-top:2px solid currentColor;border-radius:50%;animation:spin 1s linear infinite}.error-message{border-radius:8px;padding:1rem;margin:1rem 0}.error-message-inline{background-color:#fee;border:1px solid #fcc;color:#c33}.error-message-card{background-color:#fff5f5;border:1px solid #fed7d7;color:#c53030;box-shadow:0 2px 4px #0000001a}.error-message-banner{background-color:#fed7d7;border:1px solid #fc8181;color:#742a2a;border-radius:0;margin:0}.error-content{display:flex;align-items:flex-start;gap:.75rem}.error-icon{font-size:1.25rem;flex-shrink:0}.error-text{flex:1}.error-title{font-weight:600;margin:0 0 .25rem}.error-description{margin:0;opacity:.9}.error-retry-button{background-color:#c53030;color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;cursor:pointer;font-size:.75rem;font-weight:600;margin-left:auto}.error-retry-button:hover{background-color:#9b2c2c}.validation-error{background-color:#fff5f5;border:1px solid #fed7d7;border-radius:4px;padding:.75rem;margin:.5rem 0;color:#c53030}.validation-error-message{margin:0;font-size:.875rem}.validation-error-list{margin:0;padding-left:1.25rem}.validation-error-item{font-size:.875rem;margin:.25rem 0}.toast-container{position:fixed;top:1rem;right:1rem;z-index:1000;display:flex;flex-direction:column;gap:.5rem;max-width:400px}.toast{background:#fff;border-radius:8px;box-shadow:0 4px 12px #00000026;border-left:4px solid;opacity:0;transform:translate(100%);transition:all .3s ease-in-out}.toast-visible{opacity:1;transform:translate(0)}.toast-success{border-left-color:#38a169}.toast-error{border-left-color:#e53e3e}.toast-warning{border-left-color:#d69e2e}.toast-info{border-left-color:#3182ce}.toast-content{display:flex;align-items:center;justify-content:space-between;padding:1rem}.toast-message{flex:1;font-size:.875rem;line-height:1.4}.toast-close{background:none;border:none;font-size:1.25rem;cursor:pointer;color:#666;padding:0;margin-left:.75rem;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px}.toast-close:hover{background-color:#0000001a}.button-loading{position:relative;cursor:not-allowed!important;opacity:.7}.button-loading:disabled{pointer-events:none}.strip-loading-state{display:flex;justify-content:center;align-items:center;min-height:200px}.strip-error-state{padding:1rem}.strip-empty-state{text-align:center;padding:2rem 1rem}.strip-empty-state h2{margin:0 0 .5rem;color:#333}.strip-empty-state p{margin:0 0 1rem;color:#666;font-size:.9rem}.strip-empty-state button{background-color:#007bff;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:4px;cursor:pointer;font-size:.75rem;font-weight:600}.strip-empty-state button:hover{background-color:#0056b3}.debug-panel{position:fixed;left:12px;right:12px;bottom:calc(env(safe-area-inset-bottom) + 12px);z-index:var(--debug-panel-z-index);border-radius:12px;overflow:hidden;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.debug-panel summary{display:flex;justify-content:flex-end;gap:8px;padding:10px 12px;cursor:pointer;-webkit-user-select:none;user-select:none}.debug-content{max-height:min(55dvh,520px);overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;-webkit-user-select:text!important;user-select:text!important;touch-action:pan-y}.debug-content,.debug-content *{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;-webkit-user-select:text!important;user-select:text!important}.debug-panel,.debug-panel *{touch-action:auto!important}.debug-panel{pointer-events:auto}.fv-debug-toggle{position:fixed;top:10px;right:10px;z-index:99999;padding:8px 12px;background:#007acc;color:#fff;border:none;border-radius:8px;font-size:12px}@media (max-width: 768px){.fv-debug-toggle{display:none}}.fv-debug-sheet{position:fixed;top:10px;right:10px;z-index:99999;pointer-events:auto}.fv-debug-panel{width:min(460px,calc(100vw - 20px));max-height:80dvh;background:#000000e6;color:#fff;border-radius:12px;overflow:hidden;border:1px solid rgba(255,255,255,.12)}.fv-debug-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 12px 10px}.fv-debug-title{font-size:14px;font-weight:700}.fv-debug-hide{background:#dc3545;color:#fff;border:none;border-radius:8px;padding:6px 10px;font-size:12px}.fv-debug-summary{padding:12px;cursor:pointer;-webkit-user-select:none;user-select:none}.fv-debug-content{padding:12px;overflow:auto;max-height:calc(80dvh - 52px);-webkit-overflow-scrolling:touch;overscroll-behavior:contain;-webkit-user-select:text!important;user-select:text!important;touch-action:pan-y!important;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:11px;line-height:1.35}[data-fv-debug=true],[data-fv-debug=true] *{pointer-events:auto!important;-webkit-user-select:text!important;user-select:text!important}@media (max-width: 768px){.body-measurement-page,.face-measurement-page,.body-product-new-page,.face-product-new-page{width:100%!important;max-width:100%!important;padding:0!important;overflow:visible!important;overflow-y:visible!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0 auto!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;box-sizing:border-box!important}.page-header,.product-content,.measurement-content{width:100%!important;max-width:100%!important;margin:0 auto!important;display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important;box-sizing:border-box!important}.body-measurement-page img,.face-measurement-page img,.face-annotator img{max-width:100%!important;width:auto!important;height:auto!important;display:block;margin:0 auto}.body-measurement-page [style*="position: relative"],.face-measurement-page [style*="position: relative"]{display:flex!important;justify-content:center!important;width:100%!important}input[type=number],input[type=text],textarea{font-size:16px!important;padding:12px!important;border-radius:8px!important;border:2px solid #ddd!important;width:100%!important;box-sizing:border-box!important;-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important}button:not(.guide-toggle),.btn{min-height:44px!important;padding:12px 16px!important;font-size:.75rem!important;font-weight:600!important;border-radius:8px!important;touch-action:manipulation!important;-webkit-tap-highlight-color:transparent!important}.step-navigation,.step-controls{flex-direction:column!important;gap:12px!important;width:100%!important;max-width:400px!important;margin:0 auto!important}.body-canvas,.face-canvas{padding:.5rem!important;width:100%!important}.body-visualization-container,.face-visualization-container{width:100%!important;display:flex!important;justify-content:center!important;align-items:center!important}}@media (max-width: 375px){.body-measurement-page,.face-measurement-page{padding:0!important;overflow:visible!important;overflow-y:visible!important;height:auto!important;min-height:0!important}.measurement-inputs,[style*="display: grid"]{grid-template-columns:1fr 1fr!important;gap:8px!important}h1{font-size:1.5rem!important}h2{font-size:1.25rem!important}p{font-size:.9rem!important}}@media (pointer: coarse){[data-draggable=true]{height:8px!important;transform:translateY(-4px)!important}[data-draggable=true]:before{content:"";position:absolute;top:-15px;bottom:-15px;left:-15px;right:-15px;background:transparent}button:not(.guide-toggle),.btn,.product-thumbnail{min-height:48px!important;min-width:48px!important}}.body-canvas,.face-canvas{display:flex!important;justify-content:center!important;align-items:center!important;width:100%!important;padding:1rem!important}.body-visualization-container,.face-visualization-container{display:flex!important;flex-direction:column!important;align-items:center!important;width:100%!important;max-width:100%!important}.body-visualization-container>div:first-child,.face-display>div:first-child{display:flex!important;justify-content:center!important;width:100%!important}button,input,textarea,select,a,.btn,.product-thumbnail,[role=button]{touch-action:manipulation!important;-webkit-user-select:auto!important;user-select:auto!important}.debug-panel,.debug-content,.product-thumbnails,.body-product-strip,.face-product-strip,.reference-product-strip,.page-content{touch-action:auto!important;-webkit-overflow-scrolling:touch}@media (pointer: coarse){[data-draggable=true]{height:8px!important;transform:translateY(-4px)!important}[data-draggable=true]:before{content:"";position:absolute;top:-20px;bottom:-20px;left:-20px;right:-20px;background:transparent;z-index:-1}}@supports (-webkit-touch-callout: none){input[type=number],input[type=text],textarea{font-size:16px!important}.body-measurement-page,.face-measurement-page,.body-product-new-page,.face-product-new-page,.reference-product-new-page{-webkit-overflow-scrolling:touch;overscroll-behavior:contain}}@media (max-width: 768px){html{scroll-behavior:auto!important;-webkit-text-size-adjust:100%!important;-webkit-overflow-scrolling:touch!important}body{scroll-behavior:auto!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important}.body-product-new-page,.face-product-new-page,.reference-product-new-page{scroll-behavior:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important}}body,.app-shell,.app-content{touch-action:pan-y!important;overflow-x:hidden!important;width:100%!important;max-width:100%!important}.body-product-new-page,.face-product-new-page,.reference-product-new-page{touch-action:auto!important}.crop-container{touch-action:auto!important;overflow:visible!important}.crop-container>div[ref]{touch-action:none!important;-webkit-user-select:none!important;user-select:none!important}.body-canvas,.face-canvas{touch-action:auto!important;-webkit-user-select:none;user-select:none}.body-visualization-container{touch-action:auto!important}.body-visualization-container [style*="cursor: grab"],.body-visualization-container [onPointerDown]{touch-action:none!important}.body-visualization-container,.face-visualization-container{touch-action:auto!important;-webkit-user-select:none!important;user-select:none!important}.body-measurement-page .guideline[onPointerDown],.face-measurement-page .guideline[onPointerDown],.body-measurement-page [data-draggable=true],.face-measurement-page [data-draggable=true]{touch-action:none!important;-webkit-user-select:none!important;user-select:none!important;cursor:grab!important;transition:opacity .2s ease}.body-measurement-page .guideline[onPointerDown]:active,.face-measurement-page .guideline[onPointerDown]:active,.body-measurement-page [data-draggable=true]:active,.face-measurement-page [data-draggable=true]:active{cursor:grabbing!important;opacity:.8!important}.body-measurement-page .guideline[onPointerDown]:hover,.face-measurement-page .guideline[onPointerDown]:hover,.body-measurement-page [data-draggable=true]:hover,.face-measurement-page [data-draggable=true]:hover{opacity:.9!important}button,.product-thumbnail,.clear-selection,.add-product,.btn,.toast-close,input,textarea,select,a,[role=button],[tabindex]:not([tabindex="-1"]){touch-action:manipulation!important;pointer-events:auto!important}.body-product-strip,.face-product-strip,.reference-product-strip,.product-thumbnails,.strip-actions,.debug-panel,.debug-content,.fv-debug-panel,.fv-debug-content,.step-navigation,.product-details-form,.page-content{touch-action:auto!important}.body-product-new-page,.face-product-new-page{-webkit-overflow-scrolling:touch;height:auto!important;min-height:100vh!important;padding-bottom:1rem;touch-action:auto!important}.product-content,.step-1,.step-2,.step-2a,.step-3,.step-3-refine,.step-4,.step-4-guidelines,.step-5{overflow:visible!important;height:auto!important;min-height:auto!important}.cropping-section{overflow:visible!important;touch-action:auto!important}.crop-container{overflow:visible!important;touch-action:auto!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:1rem!important}@media (max-width: 768px){.body-product-new-page,.face-product-new-page{height:auto!important;min-height:calc(100vh - 80px)!important;padding-bottom:1rem;max-width:100%!important;overflow-x:hidden!important}.crop-container{width:100%!important;max-width:100%!important;padding:0!important;margin:0!important}.crop-container>div:first-child{width:100%!important;height:calc(100vh - var(--nav-height) - 120px)!important;max-width:100%!important;border-radius:0!important;border:none!important}.processed-image-container{overflow:visible!important;flex-direction:column!important;align-items:center!important;width:100%!important;max-width:100%!important}.image-with-guidelines{width:min(340px,calc(100vw - 2rem))!important;height:min(460px,60vh)!important;max-width:100%!important}}@media (pointer: coarse){.body-product-new-page,.face-product-new-page{touch-action:pan-y!important}.crop-container>div[ref]{touch-action:none!important}}.face-measurement-drag,.face-measurement-drag *{touch-action:none!important;-webkit-user-select:none!important;user-select:none!important}@media (max-width: 768px){.app{align-items:center;justify-content:flex-start;padding:0}.app-shell{align-items:center;justify-content:flex-start;padding-top:0;padding-left:0;padding-right:0;padding-bottom:env(safe-area-inset-bottom)}.app-content{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;max-width:100%;padding:0}.app-header{padding:.75rem;width:100%;max-width:100%;display:flex;flex-direction:column;align-items:center;margin:0 auto}.app-header h1{font-size:1.25rem;margin-bottom:.75rem;text-align:center}.app-nav{flex-wrap:wrap;gap:.5rem;justify-content:center;width:100%;max-width:400px;margin:0 auto}.app-nav a{padding:.5rem .75rem;font-size:.9rem}.page-header{width:100%!important;max-width:100%!important;text-align:center!important;margin:0 auto!important;display:flex!important;flex-direction:column!important;align-items:center!important}.step-tabs{display:flex!important;justify-content:center!important;align-items:center!important;gap:8px!important;margin:16px auto!important;max-width:400px!important;flex-wrap:wrap!important;width:100%!important}.app-main{padding:0;width:100%;max-width:100%;display:flex;flex-direction:column;align-items:center}.app-content{padding:0}.body-home-page,.face-home-page,.reference-home-page{max-width:none;margin:0 auto;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;padding:0 1rem;width:100%;height:auto!important;overflow:visible!important;box-sizing:border-box}.body-home-layout,.face-home-layout,.reference-home-layout{flex-direction:column;gap:1rem;width:100%;max-width:100%;min-height:0;height:auto!important;overflow:visible!important;align-items:center;justify-content:flex-start;margin:0 auto;padding:0}.body-product-strip,.face-product-strip,.reference-product-strip{width:100%;max-width:100%;order:2;margin:0 auto;align-self:center;padding:1rem;box-sizing:border-box}.body-canvas,.face-canvas{order:1;padding:1rem!important;width:100%;max-width:100%;min-height:300px;align-self:center;display:flex;justify-content:center;align-items:center;margin:0 auto;box-sizing:border-box}.body-measurement-page,.body-product-new-page,.face-measurement-page,.face-product-new-page,.reference-product-new-page{max-width:100%;padding:0;height:auto;min-height:100%;padding-bottom:1rem;overflow-x:hidden;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;box-sizing:border-box}.measurement-content,.product-content{padding:0 1rem 1rem;width:100%;max-width:100%;display:flex;flex-direction:column;align-items:center;text-align:center}.step-navigation,.step-controls{flex-direction:column;gap:.75rem;margin-bottom:3rem!important;padding-bottom:1rem;width:100%;max-width:100%;align-items:center;justify-content:center}.step-navigation button,.step-controls button{width:100%;padding:1rem;min-height:44px!important}.body-visualization-container,.face-visualization-container{width:100%!important;padding:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important}.body-visualization-container img:not(.product-overlay-img),.face-canvas img:not(.product-overlay-img),.face-display img:not(.product-overlay-img){max-width:100%!important;max-height:60vh!important;width:auto!important;height:auto!important;object-fit:contain!important}.top-nav{justify-content:center;align-items:center;width:100%;max-width:100%}.top-nav-item{padding:.25rem .75rem;min-width:50px;display:flex;flex-direction:row;align-items:center;justify-content:center}.top-nav-item .nav-icon{display:none}.top-nav-item .nav-label{font-size:.75rem;font-weight:600}}.nav-icon{font-size:1.25rem}.nav-label{font-size:.7rem}.toast-container{left:20px;right:20px;max-width:none}.loading-overlay-content{margin:1rem;padding:1.5rem}.error-content{flex-direction:column;gap:.5rem}.error-retry-button{align-self:flex-start}.debug-panel{left:8px;right:8px;bottom:calc(env(safe-area-inset-bottom) + 8px)}.debug-content{max-height:60dvh}.canvas-add-product-btn{display:none!important}.guideline-inputs{flex-direction:column;gap:1rem}.guideline-inputs label{width:100%}input[type=number],input[type=text],textarea{font-size:16px!important;padding:12px!important;border-radius:8px!important;border:2px solid #ddd!important;width:100%!important;box-sizing:border-box!important;-webkit-appearance:none!important;-moz-appearance:none!important;appearance:none!important}button:not(.guide-toggle),.btn{min-height:44px!important;padding:12px 16px!important;font-size:.75rem!important;border-radius:8px!important;touch-action:manipulation!important;-webkit-tap-highlight-color:transparent!important}.image-cropping-container{flex-direction:column;align-items:center}.guideline-controls{width:100%;margin-top:1rem}.summary-content{flex-direction:column;align-items:center;text-align:center}.summary-image{margin-bottom:1rem}.step-3-refine .refine-controls{width:calc(100% - 2rem);background:#f8f9faf2;border-radius:12px;padding:1rem;box-shadow:0 2px 15px #0000001a;margin:1rem auto;max-width:calc(100% - 2rem);box-sizing:border-box}.step-4-guidelines .processed-image-container{flex-direction:column!important;align-items:center!important;gap:1rem!important}.step-4-guidelines .image-with-guidelines{width:100%!important;max-width:min(520px,calc(100vw - 2rem))!important}.step-4-guidelines .guideline-controls{width:100%!important;max-width:none!important;margin-top:1rem!important}.step-3-refine canvas{max-width:100%;max-height:60vh;width:auto;height:auto;object-fit:contain;display:block}.step-4-guidelines .image-with-guidelines:not(.body-product-step4)>div{width:min(520px,calc(100vw - 2rem))!important;aspect-ratio:420 / 520!important;height:auto!important;max-width:100%!important}.step-3-refine .refine-controls>div{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center}.step-3-refine .refine-controls button{flex:1;min-width:120px;min-height:44px;padding:.75rem 1rem}.step-3-refine .refine-controls input[type=range]{width:100%;height:44px}.step-3-refine .refine-controls label{font-size:1rem;margin-bottom:.5rem}.step-4-guidelines .guideline-inputs{display:flex!important;flex-direction:column!important;gap:1rem!important}.step-4-guidelines .guideline-inputs label{width:100%!important}.step-4-guidelines .guideline-inputs input{width:100%!important;padding:.75rem!important;font-size:1rem!important;min-height:44px!important}.body-product-new-page,.face-product-new-page{height:auto!important;min-height:calc(100vh - var(--nav-height))!important;padding-bottom:1rem;max-width:100vw!important;overflow-x:hidden!important}.crop-container{width:100vw!important;max-width:100vw!important;padding:0!important}.crop-container>div:first-child{width:100vw!important;height:calc(100vh - var(--nav-height) - 120px)!important;max-width:100vw!important;border-radius:0!important;border:none!important}.processed-image-container{overflow:visible!important;flex-direction:column!important;align-items:center!important;width:100%!important;max-width:100%!important}.image-with-guidelines{width:min(340px,calc(100vw - 2rem))!important;height:min(460px,60vh)!important;max-width:100%!important}@media (max-width: 480px){.app-header{padding:.5rem}.app-nav{justify-content:center}.app-nav a{flex:1;text-align:center;min-width:0}.toast-container{left:10px;right:10px;top:10px}.loading-overlay-content{margin:.5rem;padding:1rem}.body-canvas img:not(.product-overlay-img){max-width:100%;height:auto}.image-with-guidelines img{max-width:250px!important;max-height:300px!important}.page-header h1{font-size:1.5rem}.page-header p{font-size:1rem}.measurement-info{flex-direction:column;gap:.5rem}.measurement-info p{text-align:center}}@media (max-width: 375px){.body-measurement-page,.face-measurement-page{padding:.5rem!important}.measurement-inputs,[style*="display: grid"]{grid-template-columns:1fr 1fr!important;gap:8px!important}h1{font-size:1.5rem!important}h2{font-size:1.25rem!important}p{font-size:.9rem!important}.body-canvas,.face-canvas{min-height:250px}.debug-panel{left:4px!important;right:4px!important}}@media (max-width: 430px){.body-home-layout,.face-home-layout,.reference-home-layout{flex-direction:column!important}.body-canvas,.face-canvas{order:1;width:100%!important;min-height:300px}.body-visualization-container,.face-canvas-container{position:relative;width:100%}.body-visualization-container img:not(.product-overlay-img),.face-canvas-container img:not(.product-overlay-img){max-width:100%;height:auto;display:block}.body-visualization-container [style*="position: absolute"],.face-canvas-container [style*="position: absolute"]{max-width:none;max-height:none}.body-product-strip,.face-product-strip,.reference-product-strip{order:2;width:100%!important;margin-top:1rem}.body-product-new-page,.face-product-new-page,.reference-product-new-page{display:flex;flex-direction:column}.body-measurement-page img,.face-measurement-page img,.face-annotator img{min-height:200px}.step-navigation,.step-controls{flex-direction:column!important;gap:.5rem!important}.step-navigation button,.step-controls button{width:100%!important;min-height:44px}.product-details-form,.span-input-section,.length-input-section{padding:.5rem!important}.product-details-form button,.upload-buttons button,.crop-controls button{width:100%!important;min-height:44px;margin:.25rem 0}}@media (min-width: 769px) and (max-width: 1024px){.body-home-layout,.face-home-layout,.reference-home-layout{gap:1.5rem}.body-product-strip,.face-product-strip,.reference-product-strip{width:250px}.measurement-content,.product-content{padding:0 1.5rem 1.5rem}}@media (min-width: 1200px){.body-home-page,.face-home-page,.reference-home-page{max-width:1400px}.body-home-layout,.face-home-layout,.reference-home-layout{gap:3rem}.body-product-strip,.face-product-strip,.reference-product-strip{width:350px}}@media (pointer: coarse){[data-draggable=true]{height:8px!important;transform:translateY(-4px)!important}[data-draggable=true]:before{content:"";position:absolute;top:-15px;bottom:-15px;left:-15px;right:-15px;background:transparent}button:not(.guide-toggle),.btn,.product-thumbnail{min-height:48px!important;min-width:48px!important}.guideline{height:4px}.guideline:before{content:"";position:absolute;top:-10px;bottom:-10px;left:0;right:0}.body-measurement-page [style*="height: 4px"],.face-measurement-page [style*="height: 4px"]{height:8px!important;transform:translateY(-4px)!important}.body-measurement-page [onPointerDown]:before,.face-measurement-page [onPointerDown]:before{content:"";position:absolute;top:-10px;bottom:-10px;left:-10px;right:-10px;background:transparent}.body-product-new-page,.face-product-new-page{touch-action:pan-y!important}.crop-container>div[ref]{touch-action:none!important}}@media (max-width: 768px){.app-shell{height:100dvh!important;min-height:100dvh!important;width:100%!important;max-width:100%!important;padding:0!important;position:relative!important}.top-nav{position:sticky!important;top:0!important;z-index:20000!important;padding-top:calc(.75rem + env(safe-area-inset-top,0px))!important;background-color:#fff!important;border-bottom:1px solid #e0e0e0!important;width:100%!important;box-sizing:border-box!important}.app-content{flex:none!important;height:auto!important;overflow:visible!important;width:100%!important;max-width:100%!important;padding:0!important}body{width:100%!important;max-width:100%!important;overflow-x:hidden!important}.body-product-new-page,.face-product-new-page{padding:1rem!important;width:100%!important;max-width:100%!important}.body-product-new-page .product-header,.face-product-new-page .product-header,.reference-product-new-page .product-header{position:sticky!important;top:0!important;-webkit-backdrop-filter:blur(10px)!important;backdrop-filter:blur(10px)!important;z-index:100!important;padding:.5rem 0!important;margin-bottom:1rem!important}}@media (max-width: 768px){.step-3{padding-left:0!important;padding-right:0!important}.step-3 canvas{max-width:100%!important}}html,body{height:100%;overflow:hidden!important}.app{height:100dvh;height:100vh;overflow:hidden!important}@supports (height: 100dvh){.app{height:100dvh}}.app-shell{height:100dvh;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;padding-top:0;padding-bottom:calc(24px + env(safe-area-inset-bottom))}@media (min-width: 769px){.app-content{padding-bottom:120px!important}}.app-content,.product-content{overflow:visible!important;height:auto!important;min-height:0!important}.body-display,.face-display,.step-2-canvas-container,.step-2,.step-3{z-index:1!important}.body-display>div[style*="position: absolute"],.face-display>div[style*="position: absolute"]{z-index:2!important}.body-display.mobile,.face-display.mobile{overflow:hidden!important}.device-strip{margin-bottom:.75rem;width:100%}.device-category-tabs{display:flex;gap:0;margin-bottom:.5rem;border-bottom:2px solid #e9ecef}.device-category-tab{flex:1;padding:.5rem .25rem;border:none;border-bottom:2px solid transparent;margin-bottom:-2px;background:transparent;color:#888;font-size:.8rem;font-weight:500;cursor:pointer;transition:all .15s ease;text-align:center}.device-category-tab:hover{color:#555}.device-category-tab.active{color:var(--primary-color, #007bff);border-bottom-color:var(--primary-color, #007bff);font-weight:600}.device-select{width:100%;padding:.5rem .75rem;border-radius:6px;border:1px solid #dee2e6;background:#fff;color:#333;font-size:.875rem;cursor:pointer;min-height:40px;-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}.source-badge{font-size:.55rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;line-height:1}.source-badge.face{color:#b06b35}.source-badge.body{color:#3d8582}.source-badge.reference{color:#8a4da6}.reference-canvas svg{max-width:100%;height:auto}.device-strip{margin-bottom:.75rem}.reference-product-strip .product-thumbnails::-webkit-scrollbar{width:0;display:none}.reference-product-strip .product-thumbnails{scrollbar-width:none}.reference-canvas .canvas-empty-state{text-align:center;padding:2rem;color:#888;font-size:.875rem}.reference-product-strip .product-thumbnails{max-height:60vh;overflow-y:auto;-webkit-overflow-scrolling:touch}@media (max-width: 768px){.body-home-page,.face-home-page,.reference-home-page{justify-content:flex-start!important}.device-category-tab{min-height:44px;font-size:.85rem}.device-select{min-height:44px;font-size:1rem}.reference-canvas{flex:none!important;order:1;width:100%!important;padding:1rem!important;box-sizing:border-box;align-items:center;justify-content:flex-start!important}.reference-product-strip .product-thumbnails{max-height:40vh}.reference-product-strip{order:2;width:100%!important}}@media (pointer: coarse){.device-category-tab,.device-select{min-height:44px}}@media (max-width: 768px){.product-header-mobile{display:flex!important;flex-direction:column!important;align-items:center!important;margin-bottom:20px!important;width:100%!important;padding:16px 0!important;border-radius:8px!important;gap:16px!important}.product-header-mobile .previous-text{font-size:.75rem!important;color:#007bff!important;cursor:pointer!important}.body-product-new-page .product-content{margin-top:0!important;padding-top:0!important}}@media (max-width: 768px){.step-1{padding:16px;display:flex;flex-direction:column;align-items:center}.step-1 h2{text-align:center;margin-bottom:24px;font-size:.9rem}.step-2,.step-3{padding:16px;display:flex;flex-direction:column;align-items:stretch}.step-2 h2{text-align:center;margin-bottom:24px;font-size:.9rem}.step-2 h3{text-align:center!important;margin-bottom:16px!important}.step-2>div>div:last-child{display:flex!important;flex-direction:column!important;align-items:center!important;width:100%!important;max-width:320px!important}.step-2>div>div:last-child>div{display:flex!important;gap:12px!important;flex-wrap:wrap!important;justify-content:center!important;width:100%!important}.step-2>div>div:last-child>div button{flex:1!important;max-width:140px!important;min-width:120px!important;height:44px!important;padding:12px 20px!important;font-size:14px!important;font-weight:500!important;border-radius:8px!important;cursor:pointer!important;transition:all .2s ease!important;display:flex!important;align-items:center!important;justify-content:center!important}.step-1 .image-section{width:100%!important;max-width:300px!important;display:flex!important;flex-direction:column!important;align-items:center!important;margin-bottom:16px!important}.step-1 .image-section img{width:100%!important;max-width:280px!important;height:auto!important;max-height:280px!important;object-fit:contain!important;border-radius:8px!important}.step-1 .image-section>div{width:100%!important;max-width:280px!important;height:200px!important}.step-1 .upload-buttons{display:flex!important;justify-content:center!important;width:100%!important;max-width:280px!important;margin-top:12px!important;height:44px!important}.step-1 .upload-buttons button{max-width:200px!important;min-width:160px!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding:12px 20px!important;font-size:14px!important;font-weight:500!important;border:1px solid #007bff!important;background-color:#007bff!important;color:#fff!important;border-radius:8px!important;cursor:pointer!important;transition:all .2s ease!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important}.step-1 .upload-buttons button:hover,.step-1 .upload-buttons button:active{background-color:#0056b3!important;border-color:#0056b3!important;transform:scale(.98)}.step-1 .span-section{width:100%!important;max-width:280px!important;display:flex!important;flex-direction:column!important;align-items:center!important;margin:0 auto 16px!important}.step-1 .span-section input{width:100%!important;padding:12px!important;border-radius:8px!important;border:none!important;background-color:#ffffff1a!important;font-size:16px!important;text-align:center!important}.step-1 .navigation-buttons{display:flex!important;gap:12px!important;width:100%!important;max-width:280px!important;margin:20px auto 0!important;justify-content:center!important;align-items:center!important}.step-1 .navigation-buttons button{flex:1!important;max-width:140px!important;min-width:120px!important;height:44px!important;padding:12px 20px!important;font-size:14px!important;font-weight:500!important;border-radius:8px!important;cursor:pointer!important;transition:all .2s ease!important;display:flex!important;align-items:center!important;justify-content:center!important}.step-1 .navigation-buttons button:first-child{border:1px solid #6c757d!important;background-color:#6c757d!important;color:#fff!important}.step-1 .navigation-buttons button:first-child:hover,.step-1 .navigation-buttons button:first-child:active{background-color:#545b62!important;border-color:#545b62!important;transform:scale(.98)}.step-1 .navigation-buttons button:last-child{border:1px solid #007bff!important;background-color:#007bff!important;color:#fff!important}.step-1 .navigation-buttons button:last-child:hover,.step-1 .navigation-buttons button:last-child:active{background-color:#0056b3!important;border-color:#0056b3!important;transform:scale(.98)}}@media (max-width: 320px){.step-1 .upload-buttons{flex-direction:column!important;gap:8px!important}.step-1 .upload-buttons button{width:100%!important;min-width:unset!important}.step-1 .navigation-buttons button{max-width:unset!important;min-width:100px!important}.step-1 .image-section,.step-1 .span-section,.step-1 .navigation-buttons{max-width:260px!important}}@media (hover: none) and (pointer: coarse){.step-1 .navigation-buttons button{min-height:44px!important;-webkit-tap-highlight-color:transparent}.step-1 .upload-buttons button{height:44px!important;-webkit-tap-highlight-color:transparent}.step-1 button:active{transform:scale(.98)!important}}@media (min-width: 769px){.step-1{display:flex;flex-direction:column;align-items:center;max-width:500px;margin:0 auto}.step-1 .image-section{max-width:350px!important}.step-1 .span-section,.step-1 .navigation-buttons{max-width:400px!important}}@media (max-width: 768px){.refine-mask-editor{padding:16px}.refine-mask-editor button[style*="position: absolute"]{background:#1a1a1af2!important;border:1px solid #444!important;color:#fff!important;box-shadow:0 2px 4px #0000004d!important}.refine-mask-editor .refine-button-row button{background:#1a1a1acc!important;border:1px solid #444!important;color:#fff!important;padding:8px 16px!important;border-radius:6px!important;min-height:36px!important}.refine-mask-editor .refine-button-row button:hover{background:#282828e6!important;border-color:#555!important}.refine-mask-editor .refine-button-row button:disabled{opacity:.5!important;cursor:not-allowed!important}.refine-mask-editor h3,.refine-mask-editor label{color:#fff!important}.refine-mask-editor div[style*="opacity: 0.75"]{color:#ffffffbf!important}.refine-mask-editor input[type=range]{background:#ffffff1a!important;border-radius:4px!important}.refine-mask-editor input[type=range]::-webkit-slider-thumb{background:#007bff!important;border:none!important;border-radius:50%!important;cursor:pointer!important}.refine-mask-editor input[type=range]::-moz-range-thumb{background:#007bff!important;border:none!important;border-radius:50%!important;cursor:pointer!important}}@media (max-width: 768px){.step-4{padding:16px!important;display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important;width:100%!important;max-width:100%!important;border:none!important;border-width:0!important;outline:none!important;box-shadow:none!important}.step-4 h2{text-align:center!important;margin-bottom:24px!important;font-size:.9rem!important}.step-4>div{display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important;width:100%!important}.step-4>div:last-child{display:flex!important;justify-content:center!important;align-items:center!important;text-align:center!important;width:100%!important;max-width:320px!important;margin:20px auto 0!important}.step-4 button{padding:12px 20px!important;font-size:14px!important;font-weight:500!important;border:none!important;border-width:0!important;outline:none!important;border-radius:8px!important;cursor:pointer!important;transition:all .2s ease!important;display:flex!important;align-items:center!important;justify-content:center!important}.step-4 button:hover,.step-4 button:active{background-color:#0056b3!important;transform:scale(.98)!important}}@media (max-width: 768px){.face-product-new-page *,.body-product-new-page *{font-size:.75rem!important}.face-product-new-page h1,.face-product-new-page h2,.face-product-new-page h3,.body-product-new-page h1,.body-product-new-page h2,.body-product-new-page h3{font-size:.9rem!important}.face-product-new-page button,.body-product-new-page button,.face-product-new-page input,.face-product-new-page textarea,.body-product-new-page input,.body-product-new-page textarea,.face-product-new-page label,.body-product-new-page label,.face-product-new-page div,.body-product-new-page div,.refine-mask-editor *{font-size:.75rem!important}.refine-mask-editor h3{font-size:.9rem!important}}@media (max-width: 768px){.step-4,.step-4>div,.step-4>div>div,.step-4 div[style*="display: flex"]{border:none!important;border-width:0!important;border-color:transparent!important;outline:none!important;box-shadow:none!important}.step-4>div:last-child,.step-4 div[style*="justify-content: center"]{border:none!important;border-width:0!important;border-color:transparent!important;outline:none!important;box-shadow:none!important;background:transparent!important}.step-4 .validation-error,.step-4 [class*=validation],.step-4 [class*=error]{border:none!important;border-width:0!important;outline:none!important}}@media (max-width: 768px){.step-3>div:last-child,.step-4>div:last-child{background:transparent!important}}@media (max-width: 768px){.body-measurement-page .step-3>div:last-child{display:flex!important;justify-content:center!important;align-items:center!important;margin:20px auto 0!important;width:100%!important;padding:0!important;box-shadow:none!important;border:none!important;background:transparent!important}.body-measurement-page .step-3>div:last-child button{width:auto!important;max-width:140px!important;min-width:120px!important;padding:12px 20px!important;font-size:14px!important;font-weight:500!important;border:1px solid #007bff!important;background-color:#007bff!important;color:#fff!important;border-radius:8px!important;cursor:pointer!important;transition:all .2s ease!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;box-shadow:none!important;outline:none!important;margin:0 auto!important}.body-measurement-page .step-3>div:last-child button:hover,.body-measurement-page .step-3>div:last-child button:active{background-color:#0056b3!important;border-color:#0056b3!important;transform:scale(.98)!important;box-shadow:none!important}.body-measurement-page .step-3>div:last-child button:disabled{opacity:.5!important;cursor:not-allowed!important;transform:none!important;box-shadow:none!important}.face-measurement-page .step-3 button.btn.btn-primary{width:auto!important;max-width:140px!important;min-width:120px!important;padding:12px 20px!important;font-size:14px!important;font-weight:500!important;border:1px solid #007bff!important;background-color:#007bff!important;color:#fff!important;border-radius:8px!important;cursor:pointer!important;transition:all .2s ease!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important}.face-measurement-page .step-3 button.btn.btn-primary:hover,.face-measurement-page .step-3 button.btn.btn-primary:active{background-color:#0056b3!important;border-color:#0056b3!important;transform:scale(.98)!important}.face-measurement-page .step-3 button.btn.btn-primary:disabled{opacity:.5!important;cursor:not-allowed!important;transform:none!important}}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light;color:#213547;background-color:#fff;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#f9f9f9;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}#root{width:100%;margin:0;padding:0;text-align:left}
