:root{--color-primary: #06b6d4;--color-background: #0d0d14;--color-surface: #1e1e2e;--color-border: #2a2a3e;--color-border-light: #353548;--color-text-primary: #e4e4e7;--color-text-secondary: #a1a1aa;--color-text-tertiary: #71717a;--color-text-muted: #52525b;--color-success: #10b981;--color-warning: #f59e0b;--color-error: #ef4444;--spacing-xs: 4px;--spacing-sm: 8px;--spacing-md: 12px;--spacing-lg: 16px;--spacing-xl: 24px;--spacing-2xl: 32px;--radius-none: 0;--radius-sm: 2px;--font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;--font-size-xs: 10px;--font-size-sm: 11px;--font-size-base: 14px;--font-size-lg: 16px;--font-size-xl: 18px;--font-size-2xl: 28px;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--transition-fast: .15s ease;--transition-base: .2s ease;--shadow-sm: 0 2px 4px rgba(0, 0, 0, .1);--shadow-md: 0 4px 12px rgba(0, 0, 0, .08);--shadow-lg: 0 4px 20px rgba(0, 0, 0, .15);--focus-ring: 3px solid var(--color-primary);--focus-offset: 2px}*{margin:0;padding:0;box-sizing:border-box}html{height:100%;overflow:hidden}body{margin:0;font-family:var(--font-family);overflow:hidden;background:var(--color-background);color:var(--color-text-primary);font-weight:var(--font-weight-normal);line-height:1.5;height:100%;width:100%;position:fixed;inset:0}.hidden{display:none!important}.loading-screen{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:var(--color-background);z-index:9999}.loading-content{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;max-width:500px;padding:40px;animation:fadeIn .6s ease-out}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.loading-logo{display:block;width:80px;height:80px}.loading-text{color:var(--color-text-secondary);font-size:var(--font-size-base);font-weight:var(--font-weight-medium);letter-spacing:.02em;margin:0}.loading-status{color:var(--color-text-muted);font-size:12px;margin-top:-12px;min-height:16px}.loading-dots:after{content:"";animation:dots 1.5s steps(4,end) infinite}@keyframes dots{0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}}@keyframes spin{to{transform:rotate(360deg)}}body.desktop-embed,body.embed-mode:not(.mobile-embed){height:100vh!important;width:100vw!important;overflow:hidden!important;position:fixed!important;inset:0!important}body.desktop-embed .app-container,body.embed-mode:not(.mobile-embed) .app-container{height:100%!important;width:100%!important;display:flex!important;flex-direction:column!important;position:absolute!important;inset:0!important}body.desktop-embed .compact-header,body.embed-mode:not(.mobile-embed) .compact-header{display:flex!important;align-items:center!important;justify-content:space-between!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding:0 40px 0 12px!important;background:var(--color-surface)!important;border-bottom:1px solid var(--color-border)!important;flex-shrink:0!important}body.desktop-embed .compact-header-left,body.embed-mode:not(.mobile-embed) .compact-header-left{display:flex!important;align-items:center!important;flex-shrink:0!important}body.desktop-embed .compact-header-brand,body.embed-mode:not(.mobile-embed) .compact-header-brand{font-size:14px!important;font-weight:600!important;color:var(--color-text-primary)!important;letter-spacing:.08em!important;white-space:nowrap!important}body.desktop-embed .compact-header-right,body.embed-mode:not(.mobile-embed) .compact-header-right{display:flex!important;align-items:center!important;flex-shrink:0!important}body.desktop-embed .main-workspace,body.embed-mode:not(.mobile-embed) .main-workspace{flex:1!important;display:flex!important;flex-direction:row!important;height:100%!important;width:100%!important;overflow:hidden!important;min-height:0!important}body.desktop-embed .products-sidebar,body.embed-mode:not(.mobile-embed) .products-sidebar{display:flex!important;flex-direction:column!important;width:14%!important;min-width:200px!important;max-width:320px!important;flex-shrink:0!important;height:100%!important;background:var(--color-surface)!important;border-right:1px solid var(--color-border)!important;overflow-y:auto!important;overflow-x:hidden!important}body.desktop-embed .faces-sidebar,body.embed-mode:not(.mobile-embed) .faces-sidebar{display:flex!important;flex-direction:column!important;width:72px!important;min-width:72px!important;max-width:72px!important;flex-shrink:0!important;height:100%!important;background:var(--color-surface)!important;border-left:1px solid var(--color-border)!important;overflow:hidden!important}body.desktop-embed .preview-sidebar,body.embed-mode:not(.mobile-embed) .preview-sidebar{display:flex!important;flex-direction:column!important;width:18%!important;min-width:220px!important;max-width:320px!important;flex-shrink:0!important;height:100%!important;background:var(--color-surface)!important;border-left:1px solid var(--color-border)!important;overflow-y:auto!important;overflow-x:hidden!important}body.desktop-embed .materials-sidebar,body.embed-mode:not(.mobile-embed) .materials-sidebar{display:flex!important;flex-direction:column!important;width:18%!important;min-width:220px!important;max-width:380px!important;flex-shrink:0!important;height:100%!important;background:var(--color-surface)!important;border-left:1px solid var(--color-border)!important;overflow-y:auto!important;overflow-x:hidden!important}body.desktop-embed .center-area,body.embed-mode:not(.mobile-embed) .center-area{flex:1!important;display:flex!important;flex-direction:column!important;min-width:0!important;height:100%!important;overflow:hidden!important}body.desktop-embed .canvas-wrapper,body.embed-mode:not(.mobile-embed) .canvas-wrapper{flex:1!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:8px!important;overflow:hidden!important;background:var(--color-background)!important;min-height:0!important}body.desktop-embed #designer-container,body.embed-mode:not(.mobile-embed) #designer-container{width:auto!important;height:auto!important;max-width:600px!important;max-height:600px!important;min-width:400px!important;min-height:400px!important}body.desktop-embed .toolbar-bottom,body.embed-mode:not(.mobile-embed) .toolbar-bottom{flex-shrink:0!important;height:auto!important;min-height:44px!important;max-height:72px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:4px 8px!important;background:var(--color-surface)!important;border-top:1px solid var(--color-border)!important;overflow:visible!important}body.desktop-embed .toolbar-row,body.embed-mode:not(.mobile-embed) .toolbar-row{max-width:100%!important;gap:6px!important;padding-top:4px!important}body.desktop-embed .canvas-wrapper:before,body.embed-mode:not(.mobile-embed) .canvas-wrapper:before,body.desktop-embed .canvas-wrapper:after,body.embed-mode:not(.mobile-embed) .canvas-wrapper:after{display:none!important}body.desktop-embed .tool-group-label,body.embed-mode:not(.mobile-embed) .tool-group-label{font-size:9px!important}body.desktop-embed .tool-btn,body.embed-mode:not(.mobile-embed) .tool-btn{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important}body.desktop-embed .tool-btn i,body.embed-mode:not(.mobile-embed) .tool-btn i{width:15px!important;height:15px!important}body.desktop-embed .product-item,body.embed-mode:not(.mobile-embed) .product-item{margin-bottom:6px!important;padding:2px!important}body.desktop-embed .product-item img,body.embed-mode:not(.mobile-embed) .product-item img{aspect-ratio:1!important;border-radius:4px!important}body.desktop-embed .rec-badge,body.embed-mode:not(.mobile-embed) .rec-badge{display:none!important}body.desktop-embed .sidebar-header,body.embed-mode:not(.mobile-embed) .sidebar-header{height:36px!important;min-height:36px!important;padding:0 10px!important}body.desktop-embed .sidebar-title,body.embed-mode:not(.mobile-embed) .sidebar-title{font-size:10px!important}body.desktop-embed .sidebar-actions .icon-btn,body.embed-mode:not(.mobile-embed) .sidebar-actions .icon-btn{width:26px!important;height:26px!important}body.desktop-embed .sidebar-actions .icon-btn i,body.embed-mode:not(.mobile-embed) .sidebar-actions .icon-btn i{width:14px!important;height:14px!important}body.desktop-embed .waterfall-column,body.embed-mode:not(.mobile-embed) .waterfall-column{padding:0 3px!important}body.desktop-embed .waterfall-container,body.embed-mode:not(.mobile-embed) .waterfall-container{gap:4px!important}body.desktop-embed .products-grid,body.embed-mode:not(.mobile-embed) .products-grid{padding:8px!important}body.desktop-embed .materials-grid,body.embed-mode:not(.mobile-embed) .materials-grid{padding:8px!important}body.desktop-embed .material-item,body.embed-mode:not(.mobile-embed) .material-item{margin-bottom:4px!important;border-radius:6px!important}body.desktop-embed .material-item img,body.embed-mode:not(.mobile-embed) .material-item img{border-radius:4px!important}body.desktop-embed .materials-sidebar .rec-badge,body.embed-mode:not(.mobile-embed) .materials-sidebar .rec-badge{display:none!important}body.desktop-embed .products-sidebar .product-label,body.desktop-embed .products-sidebar .product-tag,body.desktop-embed .products-sidebar .product-name,body.embed-mode:not(.mobile-embed) .products-sidebar .product-label,body.embed-mode:not(.mobile-embed) .products-sidebar .product-tag,body.embed-mode:not(.mobile-embed) .products-sidebar .product-name{display:none!important}body.desktop-embed .preview-sidebar .preview-container,body.embed-mode:not(.mobile-embed) .preview-sidebar .preview-container{padding:8px!important}body.desktop-embed .preview-sidebar .preview-box,body.embed-mode:not(.mobile-embed) .preview-sidebar .preview-box{aspect-ratio:1!important;min-height:0!important;max-height:none!important;overflow:hidden!important}body.desktop-embed .preview-sidebar #previewBoxContent,body.embed-mode:not(.mobile-embed) .preview-sidebar #previewBoxContent{width:100%!important;height:100%!important;min-height:0!important}body.desktop-embed .preview-sidebar #previewBoxContent img,body.embed-mode:not(.mobile-embed) .preview-sidebar #previewBoxContent img{max-width:100%!important;max-height:100%!important;width:auto!important;height:auto!important;object-fit:contain!important}body.desktop-embed .preview-sidebar .preview-info,body.embed-mode:not(.mobile-embed) .preview-sidebar .preview-info{padding:8px!important;border-bottom:none!important}body.desktop-embed .preview-sidebar .product-name,body.embed-mode:not(.mobile-embed) .preview-sidebar .product-name{font-size:12px!important;line-height:1.3!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}body.desktop-embed .preview-sidebar .product-description,body.embed-mode:not(.mobile-embed) .preview-sidebar .product-description{display:none!important}body.desktop-embed .preview-sidebar .variant-section,body.embed-mode:not(.mobile-embed) .preview-sidebar .variant-section{padding:6px 8px!important;border-top:none!important;background:transparent!important}body.desktop-embed .preview-sidebar .variant-group,body.embed-mode:not(.mobile-embed) .preview-sidebar .variant-group{margin-bottom:6px!important}body.desktop-embed .preview-sidebar .variant-label,body.embed-mode:not(.mobile-embed) .preview-sidebar .variant-label{font-size:10px!important;margin-bottom:3px!important}body.desktop-embed .preview-sidebar .variant-option,body.embed-mode:not(.mobile-embed) .preview-sidebar .variant-option{padding:3px 8px!important;font-size:11px!important}body.desktop-embed .preview-sidebar .variant-options,body.embed-mode:not(.mobile-embed) .preview-sidebar .variant-options{gap:4px!important}body.desktop-embed .preview-sidebar .preview-actions,body.embed-mode:not(.mobile-embed) .preview-sidebar .preview-actions{flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin-top:8px!important}body.desktop-embed .preview-sidebar .product-price,body.embed-mode:not(.mobile-embed) .preview-sidebar .product-price{font-size:16px!important}body.desktop-embed .preview-sidebar .btn-buy-now,body.embed-mode:not(.mobile-embed) .preview-sidebar .btn-buy-now{padding:6px 12px!important;font-size:12px!important;flex:1!important;background:var(--color-primary)!important;color:#fff!important;border-color:var(--color-primary)!important}body.desktop-embed .preview-sidebar .placeholder-text,body.embed-mode:not(.mobile-embed) .preview-sidebar .placeholder-text{padding:4px!important;font-size:10px!important}body.desktop-embed .preview-sidebar .preview-expand-btn,body.embed-mode:not(.mobile-embed) .preview-sidebar .preview-expand-btn{width:24px!important;height:24px!important;top:6px!important;right:6px!important}body.desktop-embed.mobile-embed .products-sidebar,body.desktop-embed.mobile-embed .faces-sidebar,body.desktop-embed.mobile-embed .preview-sidebar{display:flex!important}body.desktop-embed.mobile-embed .faces-sidebar{width:72px!important;min-width:72px!important}body.desktop-embed.mobile-embed #designer-container{width:auto!important;height:auto!important;max-width:600px!important;max-height:600px!important}.app-container{display:flex;flex-direction:column;height:100%;width:100%;position:absolute;inset:0;overflow:hidden}.compact-header{display:flex;align-items:center;justify-content:space-between;height:36px;padding:0 16px;background:var(--color-surface);border-bottom:1px solid var(--color-border);flex-shrink:0}.compact-header-left{display:flex;align-items:center;flex-shrink:0}.compact-header-brand{font-size:14px;font-weight:var(--font-weight-semibold);color:var(--color-text-primary);letter-spacing:.08em;white-space:nowrap}.compact-header-right{display:flex;align-items:center;flex-shrink:0}.faces-sidebar{width:72px;min-width:72px;max-width:72px;background:var(--color-surface);border-left:1px solid var(--color-border);display:flex;flex-direction:column;overflow:hidden;flex-shrink:0}.faces-sidebar .sidebar-header{height:36px;min-height:36px;padding:0 8px;justify-content:center}.faces-sidebar .sidebar-title{font-size:9px}.faces-list-vertical{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 6px;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}.faces-list-vertical::-webkit-scrollbar{display:none}.faces-list-vertical .face-item{width:56px;height:56px;min-height:56px;flex-shrink:0;border-radius:4px;cursor:pointer;position:relative;overflow:hidden;border:2px solid var(--color-border-light);opacity:.85;transition:all .15s ease}.faces-list-vertical .face-item:hover{border-color:var(--color-primary);opacity:1;transform:scale(1.05)}.faces-list-vertical .face-item.active{border-color:var(--color-primary);box-shadow:0 0 0 1px var(--color-primary),0 0 8px #7c3aed4d;opacity:1}.faces-list-vertical .face-item img{width:100%;height:100%;object-fit:cover}.main-workspace{flex:1;display:flex;overflow:hidden;min-height:0}.sidebar-header{height:36px;min-height:36px;padding:0 12px;background:var(--color-surface);border-bottom:1px solid var(--color-border);flex-shrink:0;display:flex;align-items:center;justify-content:space-between}.sidebar-title{font-size:11px;font-weight:var(--font-weight-semibold);color:var(--color-text-secondary);letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}.sidebar-actions{display:flex;gap:var(--spacing-sm);align-items:center}.icon-btn{width:32px;height:32px;border:1px solid var(--color-border);background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--color-text-primary);transition:border-color var(--transition-fast)}.icon-btn:hover{border-color:var(--color-primary)}.icon-btn.active{background:var(--color-primary);color:var(--color-surface);border-color:var(--color-primary)}.icon-btn i{width:16px;height:16px}.status-indicator{width:8px;height:8px;border-radius:50%;background:var(--color-border);transition:background-color .3s ease}.status-indicator.ready{background:var(--color-success);box-shadow:0 0 8px #10b98180}.status-indicator.loading{background:var(--color-warning);animation:pulse 1.5s ease-in-out infinite}.status-indicator.error{background:var(--color-error);box-shadow:0 0 8px #e53e3e80}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.products-sidebar{width:350px;background:var(--color-surface);border-right:1px solid var(--color-border);display:flex;flex-direction:column;overflow:hidden;flex-shrink:0}.products-grid{flex:1;overflow-y:auto;overflow-x:hidden;padding:var(--spacing-lg);position:relative}.product-item{border-radius:var(--radius-sm);overflow:hidden;cursor:pointer;border:1px solid transparent;transition:border-color var(--transition-fast),transform var(--transition-fast);position:relative;background:var(--color-surface);width:100%;break-inside:avoid}.product-item:hover{border-color:var(--color-primary);transform:translateY(-2px)}.product-item.active{border-color:var(--color-primary);border-width:2px}.product-item img{width:100%;height:auto;display:block;object-fit:cover;background:var(--color-background)}.rec-badge{position:absolute;top:8px;left:8px;padding:4px 8px;background:var(--color-primary);border-radius:0;font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);color:#fff;z-index:10;pointer-events:none;letter-spacing:.05em}.center-area{flex:1;display:flex;flex-direction:column;overflow:hidden;min-width:0}.faces-header{background:var(--color-surface);border-bottom:1px solid var(--color-border)}.faces-header-container{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;height:100%}.faces-title-section{display:flex;align-items:center;gap:var(--spacing-md);flex-shrink:0}.faces-list-section{flex:1;display:flex;align-items:center;overflow-x:auto;min-width:0;height:100%;padding:var(--spacing-sm) 0}.faces-list{display:flex;gap:10px;min-width:min-content;align-items:center;height:100%}.face-item{width:48px;height:48px;flex-shrink:0;border-radius:0;overflow:hidden;cursor:pointer;border:2px solid var(--color-border);transition:border-color var(--transition-fast),transform var(--transition-fast),box-shadow var(--transition-fast);position:relative;opacity:.7}.face-item:hover{border-color:var(--color-primary);transform:scale(1.05);opacity:.9}.face-item.active{border-color:var(--color-primary);box-shadow:0 0 0 1px var(--color-primary);opacity:1}.face-item img{width:100%;height:100%;object-fit:cover}.canvas-wrapper{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--spacing-xl);overflow:hidden;min-height:0;background:var(--color-surface);position:relative}.canvas-wrapper:before{content:"Drag to move • Scroll to zoom • Double-click to edit text";position:absolute;top:16px;left:50%;transform:translate(-50%);font-size:11px;color:var(--color-primary);background:#ffffff0d;padding:6px 12px;border-radius:var(--radius-sm);pointer-events:none;z-index:1;letter-spacing:.02em}.canvas-wrapper:after{content:"Shadow area: Extend background to red line • Non-shadow: Keep design inside red line";position:absolute;bottom:16px;left:50%;transform:translate(-50%);font-size:10px;color:#ef4444;background:#ef44440d;padding:6px 12px;border-radius:var(--radius-sm);pointer-events:none;z-index:1;letter-spacing:.02em;max-width:90%;text-align:center}.size-requirement-notice{width:100%;max-width:600px;margin-bottom:16px;padding:12px 16px;background:#7c3aed26;border:1px solid #3b82f6;border-radius:var(--radius-sm);animation:slideDown .3s ease-out}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.notice-content{display:flex;align-items:center;gap:12px;color:#1e40af}.notice-content i{width:20px;height:20px;flex-shrink:0}.notice-text{flex:1;font-size:13px;line-height:1.5}.notice-text strong{font-weight:600;display:block;margin-bottom:2px}#designer-container{width:min(420px,calc(100% - 48px));height:min(420px,calc(100% - 48px));max-width:100%;max-height:100%;aspect-ratio:1;border:2px dashed #ef4444;position:relative;box-shadow:0 0 0 8px #ffffff08}#designer-container:before,#designer-container:after{position:absolute;font-size:9px;color:var(--color-primary);background:var(--color-surface);padding:2px 6px;letter-spacing:.05em;font-weight:var(--font-weight-semibold);z-index:1;pointer-events:none}#designer-container:before{content:"CUT LINE (Red Dashed)";top:-20px;left:0;color:#ef4444}#designer-container:after{content:"Undesigned area will be white";bottom:-20px;right:0;font-weight:var(--font-weight-normal);color:var(--color-text-secondary)}.toolbar-bottom{background:var(--color-surface);border-top:1px solid var(--color-border);padding:var(--spacing-lg);flex-shrink:0;width:100%;display:flex;justify-content:center;align-items:center}.toolbar-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;max-width:min(520px,100%);padding-top:14px;position:relative}.toolbar-row+.toolbar-row{margin-top:8px;padding-top:14px;border-top:none}.tool-group{display:flex;align-items:center;gap:2px;padding:0 4px;position:relative;background:var(--color-surface);border:1px solid var(--color-border)}.tool-group+.tool-group{border-left:1px solid var(--color-border)}.tool-group-label{position:absolute;top:-11px;left:50%;transform:translate(-50%);font-size:8px;color:var(--color-text-secondary);text-transform:uppercase;letter-spacing:.05em;white-space:nowrap;pointer-events:none;font-weight:var(--font-weight-semibold)}.tool-btn{width:32px;height:32px;border:none;border-radius:0;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color var(--transition-fast),color var(--transition-fast);color:var(--color-text-primary);flex-shrink:0;position:relative}.tool-btn i,.tool-btn svg{width:16px;height:16px}.tool-btn:hover{background:#ffffff14;color:var(--color-primary)}.tool-btn:active{transform:scale(.95)}.tool-btn.primary{background:var(--color-primary);color:var(--color-surface);padding:0 8px;width:auto;gap:4px}.tool-btn.primary:hover{background:#0891b2}.tool-label{font-size:10px;font-weight:600;letter-spacing:.02em}.tool-btn.loading{pointer-events:none;opacity:.6}.tool-btn.loading i{animation:spin 1s linear infinite}.materials-sidebar{width:350px;background:var(--color-surface);border-left:1px solid var(--color-border);display:flex;flex-direction:column;overflow:hidden;flex-shrink:0}.materials-grid{flex:1;overflow-y:auto;overflow-x:hidden;padding:var(--spacing-lg);position:relative}.waterfall-container{display:flex;gap:var(--spacing-md);align-items:flex-start}.waterfall-column{flex:1;display:flex;flex-direction:column;gap:var(--spacing-md)}.material-item{border-radius:var(--radius-sm);overflow:hidden;cursor:pointer;border:1px solid transparent;transition:border-color var(--transition-fast),transform var(--transition-fast);position:relative;background:var(--color-surface);width:100%;break-inside:avoid}.material-item:hover{border-color:var(--color-primary);transform:translateY(-2px)}.material-item img{width:100%;height:auto;display:block;object-fit:cover;background:var(--color-background)}.upload-item{background:var(--color-background);display:flex;align-items:center;justify-content:center;color:var(--color-text-secondary);font-size:20px;border:1px solid var(--color-border)}.loading-indicator{text-align:center;padding:20px;color:var(--color-text-secondary);font-size:var(--font-size-base)}.loading-spinner{display:inline-block;width:40px;height:40px;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCI+PHN0eWxlPkBrZXlmcmFtZXMgc3Bpbntmcm9te3RyYW5zZm9ybTpyb3RhdGUoOTBkZWcpfXRve3RyYW5zZm9ybTpyb3RhdGUoNDUwZGVnKX19LnJ7YW5pbWF0aW9uOnNwaW4gM3MgbGluZWFyIGluZmluaXRlO3RyYW5zZm9ybS1vcmlnaW46NTBweCA1MHB4fTwvc3R5bGU+PGcgY2xhc3M9InIiPjxwYXRoIGQ9Ik0xMi42IDUyLjZMNTAgOTAgOTAgNTAgNTIuNiAxMi42IiBmaWxsPSJub25lIiBzdHJva2U9IiM5Y2EzYWYiIHN0cm9rZS13aWR0aD0iMSIgc3Ryb2tlLWxpbmVjYXA9ImJ1dHQiIHN0cm9rZS1saW5lam9pbj0ibWl0ZXIiLz48bGluZSB4MT0iMTAiIHkxPSI1MCIgeDI9IjUwIiB5Mj0iMTAiIHN0cm9rZT0iI2RjMjYyNiIgc3Ryb2tlLXdpZHRoPSIxIiBzdHJva2UtbGluZWNhcD0iYnV0dCIvPjxsaW5lIHgxPSIxMS4xNCIgeTE9IjUxLjE0IiB4Mj0iNTEuMTQiIHkyPSIxMS4xNCIgc3Ryb2tlPSIjZGMyNjI2IiBzdHJva2Utd2lkdGg9IjEiIHN0cm9rZS1saW5lY2FwPSJidXR0Ii8+PGxpbmUgeDE9IjEyLjI5IiB5MT0iNTIuMjkiIHgyPSI1Mi4yOSIgeTI9IjEyLjI5IiBzdHJva2U9IiNkYzI2MjYiIHN0cm9rZS13aWR0aD0iMSIgc3Ryb2tlLWxpbmVjYXA9ImJ1dHQiLz48bGluZSB4MT0iOS42MiIgeTE9IjQ5LjYyIiB4Mj0iMTIuNjciIHkyPSI1Mi42NyIgc3Ryb2tlPSIjZGMyNjI2IiBzdHJva2Utd2lkdGg9IjEiIHN0cm9rZS1saW5lY2FwPSJidXR0Ii8+PGxpbmUgeDE9IjQ5LjYyIiB5MT0iOS42MiIgeDI9IjUyLjY3IiB5Mj0iMTIuNjciIHN0cm9rZT0iI2RjMjYyNiIgc3Ryb2tlLXdpZHRoPSIxIiBzdHJva2UtbGluZWNhcD0iYnV0dCIvPjwvZz48L3N2Zz4=);background-size:contain;background-repeat:no-repeat;background-position:center}.preview-sidebar{width:360px;background:var(--color-surface);border-left:1px solid var(--color-border);display:flex;flex-direction:column;overflow-y:auto;flex-shrink:0}.preview-container{padding:var(--spacing-lg) 0 var(--spacing-xl) 0;flex-shrink:0}.preview-box{width:100%;aspect-ratio:1;background:var(--color-background);border-radius:0;overflow:hidden;position:relative;border:1px solid var(--color-border);display:flex;align-items:center;justify-content:center}#previewBoxContent{width:100%;height:100%;display:flex;align-items:center;justify-content:center}#previewBoxContent img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.preview-expand-btn{position:absolute;top:12px;right:12px;width:32px;height:32px;border-radius:0;background:#fffffff2;border:1px solid var(--color-border);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:border-color var(--transition-fast)}.preview-expand-btn:hover{border-color:var(--color-primary)}.preview-info{padding:var(--spacing-xl);border-bottom:1px solid var(--color-border);flex-shrink:0}.product-name{font-size:var(--font-size-xl);font-weight:var(--font-weight-semibold);color:var(--color-text-primary);line-height:1.2;letter-spacing:-.01em}.product-description{font-size:13px;color:var(--color-text-secondary);margin-top:var(--spacing-sm);line-height:1.5}.preview-actions{display:flex;align-items:center;justify-content:space-between;margin-top:var(--spacing-lg);gap:var(--spacing-lg)}.product-price{font-size:var(--font-size-2xl);font-weight:var(--font-weight-semibold);color:var(--color-primary);letter-spacing:-.02em;flex-shrink:0}.btn-buy-now{padding:var(--spacing-lg) var(--spacing-xl);background:transparent;color:var(--color-primary);border:2px solid var(--color-primary);border-radius:0;font-size:15px;font-weight:var(--font-weight-semibold);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--spacing-sm);transition:background-color var(--transition-fast),color var(--transition-fast);flex-shrink:0;letter-spacing:.02em;white-space:nowrap}.btn-buy-now:hover{background:var(--color-primary);color:var(--color-surface)}.btn-buy-now:disabled{opacity:.6;cursor:not-allowed}.variant-section{padding:var(--spacing-xl);border-top:1px solid var(--color-border);flex-shrink:0;background:var(--color-surface)}.variant-group{margin-bottom:20px}.variant-label{font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);color:var(--color-text-secondary);margin-bottom:var(--spacing-md);letter-spacing:.05em;text-transform:uppercase}.variant-options{display:flex;flex-wrap:wrap;gap:var(--spacing-sm)}.variant-option{padding:var(--spacing-sm) var(--spacing-lg);border:1px solid var(--color-border);border-radius:0;font-size:var(--font-size-base);cursor:pointer;transition:border-color var(--transition-fast),color var(--transition-fast);background:transparent;color:var(--color-text-primary)}.variant-option:hover{border-color:var(--color-primary);color:var(--color-primary)}.variant-option.active{border-color:var(--color-primary);border-width:2px;color:var(--color-primary)}.placeholder-text{text-align:center;color:var(--color-text-secondary);padding:var(--spacing-xl);font-size:var(--font-size-base);font-weight:var(--font-weight-normal)}.preview-modal{position:fixed;inset:0;background:#000000d9;display:none;align-items:center;justify-content:center;z-index:10000;padding:40px}.preview-modal.active{display:flex}.preview-modal-content{position:relative;width:90vw;max-width:1400px;height:85vh;background:var(--color-surface);border-radius:0;overflow:hidden;display:flex;flex-direction:row;gap:0}.preview-modal-canvas{flex:1;display:flex;flex-direction:column;background:var(--color-background);border-right:1px solid var(--color-border);min-width:0}.preview-modal-canvas-header{padding:20px var(--spacing-xl);border-bottom:1px solid var(--color-border);background:var(--color-surface);flex-shrink:0}.preview-modal-canvas-body{flex:1;display:flex;align-items:center;justify-content:center;padding:var(--spacing-xl);overflow:hidden}.preview-modal-canvas-content{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.preview-modal-canvas-content>div{max-width:100%;max-height:100%;display:flex;align-items:center;justify-content:center}.preview-modal-preview{width:500px;flex-shrink:0;display:flex;flex-direction:column;background:var(--color-surface)}.preview-modal-header{padding:20px var(--spacing-xl);border-bottom:1px solid var(--color-border);display:flex;align-items:center;justify-content:space-between;flex-shrink:0;background:var(--color-surface)}.preview-modal-title{font-size:var(--font-size-lg);font-weight:var(--font-weight-semibold);color:var(--color-text-primary);letter-spacing:-.01em}.preview-modal-close{width:32px;height:32px;border:1px solid var(--color-border);background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:border-color var(--transition-fast);color:var(--color-text-primary)}.preview-modal-close:hover{border-color:var(--color-primary);color:var(--color-primary)}.preview-modal-body{flex:1;overflow:auto;padding:var(--spacing-xl);display:flex;align-items:center;justify-content:center;background:var(--color-background)}.preview-modal-image{max-width:100%;max-height:100%;object-fit:contain;border:1px solid var(--color-border);background:var(--color-surface)}.fav-toggle-btn{position:absolute;top:50%;right:8px;transform:translateY(-50%);width:32px;height:32px;border:none;border-radius:50%;background:#ffffffe6;backdrop-filter:blur(4px);cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--color-text-secondary);transition:all .2s ease;z-index:10;box-shadow:var(--shadow-sm);opacity:0;pointer-events:none}.material-item:hover .fav-toggle-btn{opacity:1;pointer-events:auto}.fav-toggle-btn.active{opacity:1;pointer-events:auto;background:var(--color-error);color:var(--color-surface)}.fav-toggle-btn:hover{background:#fff;color:var(--color-error);transform:translateY(-50%) scale(1.1)}.fav-toggle-btn.active:hover{background:#c53030}.fav-badge{position:absolute;top:50%;right:8px;transform:translateY(-50%);width:32px;height:32px;border:none;border-radius:50%;background:var(--color-error);cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--color-surface);transition:all .2s ease;z-index:10;box-shadow:0 2px 4px #0003;opacity:0;pointer-events:none}.favorite-item:hover .fav-badge{opacity:1;pointer-events:auto}.fav-badge:hover{background:#c53030;transform:translateY(-50%) scale(1.1)}#favoritesToggleBtn.active,#galleryToggleBtn.active{background:var(--color-primary);color:var(--color-surface);border-color:var(--color-primary)}.favorite-item{position:relative}.search-modal{position:fixed;inset:0;background:#00000080;display:none;align-items:flex-start;justify-content:center;z-index:10000;padding-top:100px}.search-modal.active{display:flex}.search-modal-content{width:90%;max-width:600px;background:var(--color-surface);border-radius:0;overflow:hidden;box-shadow:var(--shadow-lg);max-height:70vh;display:flex;flex-direction:column}.search-modal-header{display:flex;align-items:center;padding:var(--spacing-lg);border-bottom:1px solid var(--color-border);gap:var(--spacing-md)}.search-modal-header input{flex:1;padding:var(--spacing-md) var(--spacing-lg);border:1px solid var(--color-border);font-size:var(--font-size-lg);outline:none;transition:border-color var(--transition-fast)}.search-modal-header input:focus{border-color:var(--color-primary)}.search-close-btn{width:40px;height:40px;border:1px solid var(--color-border);background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--color-text-primary);transition:border-color var(--transition-fast)}.search-close-btn:hover{border-color:var(--color-primary)}.search-results{flex:1;overflow-y:auto;padding:var(--spacing-sm)}.search-result-item{display:flex;align-items:center;gap:var(--spacing-md);padding:var(--spacing-md);cursor:pointer;border:1px solid transparent;transition:border-color var(--transition-fast),background-color var(--transition-fast)}.search-result-item:hover{border-color:var(--color-primary);background:var(--color-background)}.search-result-item img{width:60px;height:60px;object-fit:cover;border:1px solid var(--color-border)}.search-result-item.art-item img{width:80px;height:80px}.search-result-info{flex:1;min-width:0}.search-result-name{font-size:var(--font-size-base);font-weight:var(--font-weight-medium);color:var(--color-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.search-result-price{font-size:var(--font-size-base);color:var(--color-primary);font-weight:var(--font-weight-semibold);margin-top:4px}.skeleton{background:linear-gradient(90deg,var(--color-background) 25%,var(--color-border) 50%,var(--color-background) 75%);background-size:200% 100%;animation:skeleton-loading 1.5s ease-in-out infinite}@keyframes skeleton-loading{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton-product,.skeleton-material{width:100%;border-radius:var(--radius-sm);overflow:hidden;background:var(--color-surface);border:1px solid var(--color-border)}.skeleton-image{width:100%;aspect-ratio:3/4;background:linear-gradient(90deg,var(--color-background) 25%,var(--color-border) 50%,var(--color-background) 75%);background-size:200% 100%;animation:skeleton-loading 1.5s ease-in-out infinite}.skeleton-text{height:16px;margin:var(--spacing-md);background:linear-gradient(90deg,var(--color-background) 25%,var(--color-border) 50%,var(--color-background) 75%);background-size:200% 100%;animation:skeleton-loading 1.5s ease-in-out infinite}::-webkit-scrollbar{width:4px;height:4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--color-border);border-radius:0}::-webkit-scrollbar-thumb:hover{background:var(--color-primary)}@media (min-width: 1400px){.products-sidebar,.materials-sidebar{width:380px}.preview-sidebar{width:400px}#designer-container{width:min(480px,calc(100% - 48px));height:min(480px,calc(100% - 48px))}.canvas-wrapper{padding:var(--spacing-2xl)}}@media (max-width: 1200px){#designer-container{width:min(380px,calc(100% - 32px));height:min(380px,calc(100% - 32px))}.preview-modal-content{flex-direction:column;width:95vw;height:90vh}.preview-modal-canvas{border-right:none;border-bottom:1px solid var(--color-border)}.preview-modal-preview{width:100%;max-height:50%}}@media (min-width: 768px) and (max-width: 1023px){.products-sidebar,.materials-sidebar{width:260px}.preview-sidebar{width:300px}#designer-container{width:min(380px,calc(100% - 32px));height:min(380px,calc(100% - 32px))}.canvas-wrapper{padding:20px}.toolbar-bottom{padding:6px var(--spacing-sm)}.tool-group{padding:0 4px;gap:2px}.tool-btn{width:38px;height:38px}.sidebar-header{height:60px;padding:0 var(--spacing-md)}.face-item{width:44px;height:44px}}@media (min-width: 640px) and (max-width: 767px){.products-sidebar,.materials-sidebar,.preview-sidebar{width:240px}#designer-container{width:min(360px,calc(100% - 24px));height:min(360px,calc(100% - 24px))}.canvas-wrapper{padding:var(--spacing-lg)}.tool-btn{width:40px;height:40px}.toolbar-row{gap:2px}.tool-group{padding:0 4px}}@media (max-width: 900px){.canvas-wrapper{padding:var(--spacing-lg)}#designer-container{width:min(340px,calc(100% - 24px));height:min(340px,calc(100% - 24px))}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}@media (prefers-contrast: high){.tool-btn,.product-item,.material-item,.face-item{border-width:2px}.tool-btn:hover,.product-item:hover,.material-item:hover{border-width:3px}}@media print{.products-sidebar,.materials-sidebar,.toolbar-bottom,.top-bar{display:none!important}.canvas-wrapper{padding:0}#designer-container{border:none}}.modal{position:fixed;inset:0;background:#000000bf;display:flex;align-items:center;justify-content:center;z-index:10000;padding:20px}.modal-content{background:var(--color-surface);border-radius:var(--radius-md);width:100%;max-width:500px;max-height:90vh;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 20px 60px #0000004d}.modal-header{padding:var(--spacing-lg);border-bottom:1px solid var(--color-border);display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.modal-title{font-size:var(--font-size-lg);font-weight:var(--font-weight-semibold);color:var(--color-text-primary);display:flex;align-items:center;gap:var(--spacing-sm)}.modal-close{width:32px;height:32px;border:none;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--color-text-secondary);transition:color var(--transition-fast)}.modal-close:hover{color:var(--color-text-primary)}.modal-body{padding:var(--spacing-lg);overflow-y:auto;flex:1}.modal-footer{padding:var(--spacing-lg);border-top:1px solid var(--color-border);display:flex;gap:var(--spacing-md);justify-content:flex-end;flex-shrink:0}.form-group{margin-bottom:var(--spacing-lg)}.form-group label{display:block;margin-bottom:var(--spacing-sm);font-weight:var(--font-weight-medium);color:var(--color-text-primary);font-size:var(--font-size-sm)}.form-input,.form-textarea{width:100%;padding:10px 12px;border:1px solid var(--color-border);border-radius:var(--radius-sm);font-family:inherit;font-size:var(--font-size-base);color:var(--color-text-primary);background:var(--color-surface);transition:border-color var(--transition-fast)}.form-input:focus,.form-textarea:focus{outline:none;border-color:var(--color-primary)}.form-textarea{resize:vertical;min-height:80px}.btn{padding:10px 20px;border:none;border-radius:var(--radius-sm);font-family:inherit;font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);cursor:pointer;display:inline-flex;align-items:center;gap:var(--spacing-sm);transition:all var(--transition-fast)}.btn-primary{background:var(--color-primary);color:#fff}.btn-primary:hover{background:#000}.btn-secondary{background:transparent;color:var(--color-text-secondary);border:1px solid var(--color-border)}.btn-secondary:hover{background:var(--color-background);color:var(--color-text-primary)}:root{--mobile-top-bar-height: 32px;--mobile-bottom-toolbar-height: 48px;--mobile-tool-icon-size: 44px;--mobile-touch-target: 44px;--mobile-spacing: 4px;--mobile-fab-size: 44px;--mobile-faces-height: 48px;--mobile-contextual-height: 44px;--mobile-sheet-radius: 16px}@media (max-width: 767px){html,body{height:100dvh;width:100%;overflow:hidden;position:fixed;inset:0;overscroll-behavior-x:none}.app-container{height:100dvh;width:100%}.compact-header{height:var(--mobile-top-bar-height)!important;min-height:var(--mobile-top-bar-height)!important;padding:0 8px!important}.compact-header-brand{font-size:13px!important}.products-sidebar,.faces-sidebar,.preview-sidebar,.materials-sidebar{display:none!important}.top-bar{height:var(--mobile-top-bar-height);padding:0 12px}.app-title{font-size:16px}.top-btn{padding:6px 12px;font-size:13px}.top-btn svg{width:16px;height:16px}.main-workspace{flex-direction:column;height:100%;width:100%}.center-area{flex:1;display:flex;flex-direction:column;min-height:0;width:100%}.canvas-wrapper{flex:1;width:100%;padding:var(--mobile-spacing);display:flex;align-items:center;justify-content:center;min-height:0;overflow:hidden;position:relative}#designer-container{width:calc(100vw - 8px);height:calc(100vw - 8px);max-width:calc(100dvh - var(--mobile-top-bar-height) - var(--mobile-faces-height) - var(--mobile-bottom-toolbar-height) - 24px);max-height:calc(100dvh - var(--mobile-top-bar-height) - var(--mobile-faces-height) - var(--mobile-bottom-toolbar-height) - 24px);aspect-ratio:1;touch-action:none}.toolbar-bottom{height:auto;min-height:var(--mobile-bottom-toolbar-height);padding:4px;border-top:1px solid var(--border, #e0e0e0);background:var(--bg-secondary, #ffffff);overflow:hidden;flex-shrink:0}.toolbar-bottom .toolbar-row{display:none!important}.mobile-toolbar-primary{display:flex;align-items:center;justify-content:space-around;height:var(--mobile-bottom-toolbar-height);padding:0 4px;gap:2px}.mobile-toolbar-primary .mobile-tool-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;width:var(--mobile-touch-target);height:var(--mobile-touch-target);min-width:var(--mobile-touch-target);min-height:var(--mobile-touch-target);background:transparent;border:none;border-radius:8px;color:var(--text-primary, #333);cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:background .15s ease;flex-shrink:0;padding:0}.mobile-toolbar-primary .mobile-tool-btn svg{width:20px;height:20px}.mobile-toolbar-primary .mobile-tool-btn .mobile-tool-label{font-size:9px;margin-top:1px;color:var(--text-muted, #666);line-height:1}.mobile-toolbar-primary .mobile-tool-btn:active{background:var(--bg-elevated, #f0f0f0);transform:scale(.92)}.mobile-toolbar-primary .mobile-tool-btn.accent{color:var(--accent, #06b6d4)}.mobile-toolbar-primary .mobile-tool-btn.buy-now-btn{background:var(--accent-gradient, linear-gradient(135deg, #06b6d4, #3b82f6));color:#fff;border-radius:10px;width:auto;padding:0 12px;font-size:12px;font-weight:600}.mobile-toolbar-contextual{display:none;align-items:center;justify-content:center;height:var(--mobile-contextual-height);padding:0 8px;gap:4px;border-bottom:1px solid var(--border, #e0e0e0);overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch}.mobile-toolbar-contextual::-webkit-scrollbar{display:none}.mobile-toolbar-contextual.visible{display:flex}.mobile-toolbar-contextual .mobile-tool-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;background:var(--bg-elevated, #f0f0f0);border:none;border-radius:8px;color:var(--text-primary, #333);cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;flex-shrink:0}.mobile-toolbar-contextual .mobile-tool-btn svg{width:16px;height:16px}.mobile-toolbar-contextual .mobile-tool-btn:active{transform:scale(.9)}.mobile-toolbar-secondary{display:flex;align-items:center;justify-content:center;height:0;overflow:hidden;gap:4px;padding:0 8px;will-change:transform;transition:height .2s ease}.mobile-toolbar-secondary.expanded{height:var(--mobile-contextual-height);padding:4px 8px}.mobile-toolbar-secondary .mobile-tool-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;background:var(--bg-elevated, #f0f0f0);border:none;border-radius:8px;color:var(--text-primary, #333);cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;flex-shrink:0}.mobile-toolbar-secondary .mobile-tool-btn svg{width:16px;height:16px}.sidebar-header{height:48px;padding:0 var(--mobile-spacing);flex-shrink:0}.faces-header-container{gap:8px}.faces-list-section{display:none!important}.face-item{width:40px;height:40px;min-width:40px;min-height:40px;flex-shrink:0}.mobile-fab-group{position:absolute;top:8px;right:8px;z-index:100;display:flex;flex-direction:column;gap:8px}.mobile-fab-btn{width:var(--mobile-fab-size);height:var(--mobile-fab-size);min-width:var(--mobile-fab-size);min-height:var(--mobile-fab-size);border-radius:12px;border:1px solid var(--border, rgba(255,255,255,.15));background:var(--bg-elevated, rgba(30,30,46,.9));color:var(--text-primary, #e4e4e7);display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:background .15s ease,transform .15s ease;box-shadow:0 2px 8px #0000004d}.mobile-fab-btn svg{width:20px;height:20px}.mobile-fab-btn:active{transform:scale(.9)}.mobile-fab-btn.active{background:var(--accent, #06b6d4);color:#fff;border-color:var(--accent, #06b6d4)}.mobile-faces-strip{display:none;height:var(--mobile-faces-height);padding:4px 8px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none;flex-shrink:0;gap:6px;align-items:center;border-top:1px solid var(--border, #e0e0e0)}.mobile-faces-strip::-webkit-scrollbar{display:none}.mobile-faces-strip.visible{display:flex}.mobile-faces-strip .face-item{width:40px;height:40px;min-width:40px;min-height:40px;border-radius:8px;overflow:hidden;border:2px solid var(--border, #e0e0e0);cursor:pointer;flex-shrink:0;position:relative;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.mobile-faces-strip .face-item.active{border-color:var(--accent, #06b6d4)}.mobile-faces-strip .face-item img{width:100%;height:100%;object-fit:cover}.mobile-sheet-overlay{position:fixed;inset:0;z-index:1000;display:none;background:#0006;opacity:0;transition:opacity .25s ease}.mobile-sheet-overlay.active{display:block;opacity:1}.mobile-sheet{position:fixed;left:0;right:0;bottom:0;z-index:1001;background:var(--bg-secondary, #ffffff);border-radius:var(--mobile-sheet-radius) var(--mobile-sheet-radius) 0 0;box-shadow:0 -4px 20px #00000040;will-change:transform;transform:translateY(100%);transition:transform .3s cubic-bezier(.32,.72,0,1);display:flex;flex-direction:column;max-height:90dvh;overflow:hidden}.mobile-sheet.open{transform:translateY(0)}.mobile-sheet.peek{transform:translateY(70%)}.mobile-sheet.half{transform:translateY(50%)}.mobile-sheet-handle{display:flex;align-items:center;justify-content:center;padding:10px 0 6px;flex-shrink:0;cursor:grab;touch-action:none}.mobile-sheet-handle:before{content:"";width:36px;height:4px;background:var(--border-light, #ccc);border-radius:2px}.mobile-sheet-header{display:flex;align-items:center;justify-content:space-between;padding:0 16px 12px;flex-shrink:0}.mobile-sheet-title{font-size:16px;font-weight:600;color:var(--text-primary, #333)}.mobile-sheet-close{width:var(--mobile-touch-target);height:var(--mobile-touch-target);display:flex;align-items:center;justify-content:center;background:transparent;border:none;color:var(--text-muted, #666);cursor:pointer;border-radius:50%;-webkit-tap-highlight-color:transparent}.mobile-sheet-close:active{background:var(--bg-elevated, #f5f5f5)}.mobile-sheet-body{flex:1;overflow-y:auto;overflow-x:hidden;padding:0 12px 16px;-webkit-overflow-scrolling:touch;min-height:0}.mobile-sheet-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.mobile-sheet-grid .material-item,.mobile-sheet-grid .product-item{border-radius:8px;overflow:hidden;cursor:pointer;position:relative;-webkit-tap-highlight-color:transparent}.mobile-sheet-grid .material-item img,.mobile-sheet-grid .product-item img{width:100%;aspect-ratio:1;object-fit:cover;display:block}.mobile-sheet-grid .material-item:active,.mobile-sheet-grid .product-item:active{transform:scale(.96)}.mobile-sheet-preview{padding:0 4px}.mobile-sheet-preview .preview-image{width:100%;aspect-ratio:1;border-radius:8px;overflow:hidden;background:var(--bg-tertiary, #f5f5f5);margin-bottom:12px}.mobile-sheet-preview .preview-image img,.mobile-sheet-preview .preview-image canvas{width:100%;height:100%;object-fit:contain}.mobile-sheet-preview .preview-info{padding:0 4px}.mobile-sheet-preview .preview-product-name{font-size:16px;font-weight:600;color:var(--text-primary, #333);margin-bottom:4px}.mobile-sheet-preview .preview-product-price{font-size:18px;font-weight:700;color:var(--accent, #06b6d4);margin-bottom:12px}.mobile-sheet-preview .preview-variants{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.mobile-sheet-preview .variant-chip{padding:6px 12px;border:1px solid var(--border, #e0e0e0);border-radius:20px;font-size:13px;color:var(--text-primary, #333);background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent}.mobile-sheet-preview .variant-chip.active{border-color:var(--accent, #06b6d4);color:var(--accent, #06b6d4);background:var(--accent-light, rgba(6,182,212,.1))}.mobile-skeleton{background:linear-gradient(90deg,var(--bg-tertiary, #f0f0f0) 25%,var(--bg-elevated, #e0e0e0) 50%,var(--bg-tertiary, #f0f0f0) 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;border-radius:8px}.mobile-skeleton-card{aspect-ratio:1}.mobile-long-press-preview{position:fixed;z-index:2000;width:200px;height:200px;border-radius:12px;overflow:hidden;box-shadow:0 8px 32px #0006;border:2px solid var(--accent, #06b6d4);pointer-events:none;opacity:0;transform:scale(.8);transition:opacity .15s ease,transform .15s ease}.mobile-long-press-preview.visible{opacity:1;transform:scale(1)}.mobile-long-press-preview img{width:100%;height:100%;object-fit:cover}input,textarea,select{font-size:16px!important}.mobile-modal{position:fixed;inset:0;z-index:1000;display:none;background:#00000080}.mobile-modal.active{display:flex;align-items:flex-end}.mobile-modal-overlay{position:absolute;inset:0;background:transparent;animation:fadeIn .25s ease-out}.mobile-modal-content{position:relative;width:100%;max-height:85vh;background:#fff;border-radius:16px 16px 0 0;animation:slideUp .25s ease-out;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 -4px 20px #00000026}.mobile-modal-header{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid #e0e0e0;flex-shrink:0;background:#fff;position:relative}.mobile-modal-header:before{content:"";position:absolute;top:8px;left:50%;transform:translate(-50%);width:36px;height:4px;background:#e0e0e0;border-radius:2px}.mobile-modal-title{font-size:17px;font-weight:600;color:#333;padding-top:8px}.mobile-modal-close{width:var(--mobile-touch-target);height:var(--mobile-touch-target);display:flex;align-items:center;justify-content:center;background:transparent;border:none;color:#666;cursor:pointer;border-radius:50%;transition:background-color .2s ease;-webkit-tap-highlight-color:transparent}.mobile-modal-close:active{background:#f5f5f5}.mobile-modal-body{flex:1;overflow-y:auto;overflow-x:hidden;padding:16px;-webkit-overflow-scrolling:touch}.preview-modal .mobile-modal-content{max-height:90vh}.preview-3d-container{width:100%;height:60vh;background:var(--bg-secondary);display:flex;align-items:center;justify-content:center}.preview-controls{display:flex;align-items:center;justify-content:space-between;padding:16px;background:var(--bg-primary)}.preview-nav-btn{display:flex;align-items:center;gap:8px;padding:8px 16px;background:transparent;border:1px solid var(--border-color);border-radius:2px;color:var(--text-primary);font-size:14px;cursor:pointer;transition:var(--transition)}.preview-nav-btn:active{background:var(--bg-secondary)}.preview-face-name{font-size:16px;font-weight:600;color:var(--text-primary)}.art-studio-tabs{display:flex;gap:8px;padding:12px 16px;border-bottom:1px solid var(--border-color)}.art-studio-tab{padding:6px 12px;background:transparent;border:1px solid var(--border-color);border-radius:2px;color:var(--text-secondary);font-size:13px;cursor:pointer;transition:var(--transition)}.art-studio-tab.active{background:var(--primary-color);color:#fff;border-color:var(--primary-color)}.art-studio-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding:16px}.art-studio-item{aspect-ratio:1;border-radius:2px;overflow:hidden;border:1px solid var(--border-color);cursor:pointer;transition:var(--transition)}.art-studio-item:active{transform:scale(.95)}.art-studio-item img{width:100%;height:100%;object-fit:cover}.product-list{display:flex;flex-direction:column;gap:12px}.product-item{display:flex;align-items:center;gap:12px;padding:12px;background:var(--bg-secondary);border-radius:2px;cursor:pointer;transition:var(--transition)}.product-item:active{transform:scale(.98)}.product-item-image{width:80px;height:80px;border-radius:2px;object-fit:cover;background:#fff}.product-item-info{flex:1}.product-item-name{font-size:16px;font-weight:600;color:var(--text-primary);margin-bottom:4px}.product-item-price{font-size:14px;color:var(--text-secondary)}.product-item-select{padding:8px 16px;background:var(--primary-color);color:#fff;border:none;border-radius:2px;font-size:14px;font-weight:500;cursor:pointer}.material-list{display:flex;flex-direction:column;gap:12px}.material-item{display:flex;align-items:center;gap:12px;padding:16px;background:var(--bg-secondary);border-radius:2px;cursor:pointer;transition:var(--transition)}.material-item:active{transform:scale(.98)}.material-item.selected{background:#2a3b4c1a;border:1px solid var(--primary-color)}.material-radio{width:20px;height:20px;border:2px solid var(--border-color);border-radius:50%;position:relative}.material-item.selected .material-radio{border-color:var(--primary-color)}.material-item.selected .material-radio:after{content:"";position:absolute;inset:3px;background:var(--primary-color);border-radius:50%}.material-name{font-size:16px;font-weight:500;color:var(--text-primary)}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}*{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}input,textarea,[contenteditable]{-webkit-user-select:text;user-select:text}button,.tool-btn,.mobile-tool-btn,.product-item,.material-item,.face-item{-webkit-user-select:none;user-select:none}@supports (padding: env(safe-area-inset-bottom)){.toolbar-bottom{padding-bottom:calc(4px + env(safe-area-inset-bottom))}.mobile-sheet,.mobile-toolbar-primary{padding-bottom:env(safe-area-inset-bottom)}}@media (max-width: 767px) and (orientation: landscape){.compact-header{height:28px!important;min-height:28px!important}.toolbar-bottom{min-height:40px}.mobile-toolbar-primary{height:40px}#designer-container{width:min(60dvh,90vw);height:min(60dvh,90vw);max-width:none;max-height:calc(100dvh - 84px)}.mobile-sheet{max-height:85dvh}.mobile-fab-group{top:4px;right:4px;gap:4px}.mobile-fab-btn{width:36px;height:36px;min-width:36px;min-height:36px}.mobile-faces-strip{height:40px}}}@media (min-width: 769px){.mobile-bottom-toolbar,.mobile-modal,.mobile-fab-group,.mobile-faces-strip,.mobile-sheet-overlay,.mobile-sheet,.mobile-toolbar-primary,.mobile-toolbar-contextual,.mobile-toolbar-secondary,.mobile-long-press-preview{display:none!important}}:root{--bg-primary: #0d0d14;--bg-secondary: #13131d;--bg-tertiary: #1a1a28;--bg-surface: #1e1e2e;--bg-elevated: #252536;--border: #2a2a3e;--border-light: #353548;--text-primary: #e4e4e7;--text-secondary: #a1a1aa;--text-muted: #71717a;--text-dim: #52525b;--accent: #06b6d4;--accent-hover: #0891b2;--accent-light: rgba(6, 182, 212, .15);--accent-gradient: linear-gradient(135deg, #06b6d4, #3b82f6);--success: #10b981;--success-bg: rgba(16, 185, 129, .12);--warning: #f59e0b;--warning-bg: rgba(245, 158, 11, .12);--error: #ef4444;--error-bg: rgba(239, 68, 68, .12);--radius-sm: 6px;--radius-md: 10px;--radius-lg: 14px;--radius-xl: 20px;--transition: all .2s ease}body.embed-mode{background:var(--bg-primary);color:var(--text-primary)}body.embed-mode .app-container{background:var(--bg-primary)}body.embed-mode .compact-header{background:var(--bg-secondary);border-bottom:1px solid var(--border)}body.embed-mode .compact-header-brand{color:var(--text-muted)}body.embed-mode .products-sidebar,body.embed-mode .materials-sidebar,body.embed-mode .preview-sidebar{background:var(--bg-secondary);border-color:var(--border)}body.embed-mode .canvas-wrapper{background:var(--bg-tertiary)}body.embed-mode #designer-container{background:var(--bg-surface);border-color:var(--border)}body.embed-mode .toolbar-bottom{background:var(--bg-secondary);border-top:1px solid var(--border)}body.embed-mode .btn-primary,body.embed-mode button.primary{background:var(--accent-gradient);color:#fff;border:none;border-radius:var(--radius-md);padding:8px 16px;font-weight:500;cursor:pointer;transition:var(--transition)}body.embed-mode .btn-primary:hover,body.embed-mode button.primary:hover{opacity:.9;transform:translateY(-1px)}body.embed-mode .btn-secondary,body.embed-mode button.secondary{background:var(--bg-elevated);color:var(--text-primary);border:1px solid var(--border);border-radius:var(--radius-md);padding:8px 16px;cursor:pointer;transition:var(--transition)}body.embed-mode .btn-secondary:hover,body.embed-mode button.secondary:hover{border-color:var(--accent);color:var(--accent)}body.embed-mode .product-item{background:var(--bg-tertiary);border:1px solid var(--border);border-radius:var(--radius-md);transition:var(--transition)}body.embed-mode .product-item:hover{border-color:var(--accent);background:var(--bg-surface)}body.embed-mode .product-item.active{border-color:var(--accent);background:var(--accent-light)}body.embed-mode .face-item{background:var(--bg-tertiary);border:1px solid var(--border);border-radius:var(--radius-md);transition:var(--transition)}body.embed-mode .face-item:hover{border-color:var(--accent)}body.embed-mode .face-item.active{border-color:var(--accent);background:var(--accent-light)}body.embed-mode .variant-item{background:var(--bg-tertiary);border:1px solid var(--border);border-radius:var(--radius-sm);transition:var(--transition)}body.embed-mode .variant-item:hover{border-color:var(--accent)}body.embed-mode .variant-item.active{border-color:var(--accent);background:var(--accent-light)}body.embed-mode .material-item{background:var(--bg-tertiary);border:1px solid var(--border);border-radius:var(--radius-md);transition:var(--transition)}body.embed-mode .material-item:hover{border-color:var(--accent);transform:translateY(-2px)}body.embed-mode ::-webkit-scrollbar{width:8px;height:8px}body.embed-mode ::-webkit-scrollbar-track{background:var(--bg-tertiary)}body.embed-mode ::-webkit-scrollbar-thumb{background:var(--border-light);border-radius:4px}body.embed-mode ::-webkit-scrollbar-thumb:hover{background:var(--accent)}body.embed-mode input[type=text],body.embed-mode input[type=number],body.embed-mode textarea,body.embed-mode select{background:var(--bg-tertiary);border:1px solid var(--border);color:var(--text-primary);border-radius:var(--radius-sm);padding:8px 12px}body.embed-mode input:focus,body.embed-mode textarea:focus,body.embed-mode select:focus{outline:none;border-color:var(--accent)}body.embed-mode .tooltip{background:var(--bg-elevated);color:var(--text-primary);border:1px solid var(--border);border-radius:var(--radius-sm);padding:6px 10px;font-size:12px}body.embed-mode .loading-spinner{border-color:var(--border);border-top-color:var(--accent)}body.embed-mode .loading-screen{background:var(--bg-primary)}body.embed-mode .loading-text{color:var(--text-secondary)}body.embed-mode .loading-status{color:var(--text-muted)}body.embed-mode .loading-logo circle:first-of-type{fill:var(--bg-primary)}body.embed-mode .loading-logo circle:last-of-type{fill:var(--text-secondary)}body.embed-mode h1,body.embed-mode h2,body.embed-mode h3,body.embed-mode h4,body.embed-mode h5,body.embed-mode h6,body.embed-mode p,body.embed-mode span,body.embed-mode div{color:var(--text-primary)}body.embed-mode .text-muted{color:var(--text-muted)}body.embed-mode .text-secondary{color:var(--text-secondary)}body.embed-mode hr,body.embed-mode .divider{border-color:var(--border)}body.embed-mode .card{background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius-lg)}body.embed-mode .dropdown-menu{background:var(--bg-elevated);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:0 4px 12px #0000004d}body.embed-mode .dropdown-item{color:var(--text-primary);transition:var(--transition)}body.embed-mode .dropdown-item:hover{background:var(--bg-tertiary);color:var(--accent)}body.embed-mode .modal-overlay{background:#0d0d14cc}body.embed-mode .modal-content{background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius-lg)}body.embed-mode .badge,body.embed-mode .rec-badge{display:none!important}body.embed-mode .mobile-fab-btn{background:var(--bg-elevated);border-color:var(--border);color:var(--text-primary);box-shadow:0 2px 8px #0006}body.embed-mode .mobile-fab-btn.active{background:var(--accent);border-color:var(--accent);color:#fff}body.embed-mode .mobile-sheet{background:var(--bg-secondary);box-shadow:0 -4px 20px #00000080}body.embed-mode .mobile-sheet-handle:before{background:var(--border-light)}body.embed-mode .mobile-sheet-title{color:var(--text-primary)}body.embed-mode .mobile-sheet-close{color:var(--text-muted)}body.embed-mode .mobile-sheet-close:active{background:var(--bg-elevated)}body.embed-mode .mobile-sheet-body{background:var(--bg-secondary)}body.embed-mode .mobile-sheet-overlay{background:#0009}body.embed-mode .mobile-sheet-grid .material-item,body.embed-mode .mobile-sheet-grid .product-item{background:var(--bg-tertiary);border:1px solid var(--border);border-radius:var(--radius-md)}body.embed-mode .mobile-sheet-grid .product-item.active{border-color:var(--accent);background:var(--accent-light)}body.embed-mode .mobile-sheet-preview .preview-product-name{color:var(--text-primary)}body.embed-mode .mobile-sheet-preview .preview-product-price{color:var(--accent)}body.embed-mode .mobile-sheet-preview .variant-chip{border-color:var(--border);color:var(--text-primary);background:var(--bg-tertiary)}body.embed-mode .mobile-sheet-preview .variant-chip.active{border-color:var(--accent);color:var(--accent);background:var(--accent-light)}body.embed-mode .mobile-faces-strip{border-top-color:var(--border)}body.embed-mode .mobile-faces-strip .face-item{border-color:var(--border);background:var(--bg-tertiary)}body.embed-mode .mobile-faces-strip .face-item.active{border-color:var(--accent)}body.embed-mode .mobile-toolbar-primary .mobile-tool-btn{color:var(--text-primary)}body.embed-mode .mobile-toolbar-primary .mobile-tool-btn .mobile-tool-label{color:var(--text-muted)}body.embed-mode .mobile-toolbar-primary .mobile-tool-btn:active{background:var(--bg-elevated)}body.embed-mode .mobile-toolbar-contextual{border-bottom-color:var(--border)}body.embed-mode .mobile-toolbar-contextual .mobile-tool-btn,body.embed-mode .mobile-toolbar-secondary .mobile-tool-btn{background:var(--bg-elevated);color:var(--text-primary)}body.embed-mode .mobile-skeleton{background:linear-gradient(90deg,var(--bg-tertiary) 25%,var(--bg-elevated) 50%,var(--bg-tertiary) 75%);background-size:200% 100%}body.embed-mode .mobile-long-press-preview{border-color:var(--accent);box-shadow:0 8px 32px #0009}body.embed-mode svg{color:currentColor}body.embed-mode .icon-button{background:var(--bg-elevated);border:1px solid var(--border);border-radius:var(--radius-md);padding:8px;cursor:pointer;transition:var(--transition)}body.embed-mode .icon-button:hover{border-color:var(--accent);color:var(--accent)}
