:root{--primary: #4f7db3;--primary-light: #6b92c8;--bg-light: #f8fafb;--bg-white: #ffffff;--surface: #f3f5f8;--text-primary: #1a1a1a;--text-secondary: #4a4a4a;--text-muted: #7a7a7a;--border: #d8dce4;--border-light: #e5eaef;--success: #4a9d6f;--warning: #c8a547;--accent: #9b6ba8}.dashboard{display:flex;flex-direction:column;height:100vh;background:var(--bg-light)}.top-nav{width:100%;background:#33445d;border-bottom:2px solid #4f7db3;display:flex;align-items:center;padding:0 2rem;gap:1.5rem;flex-shrink:0;box-shadow:0 2px 8px #0000001a;height:70px}.nav-brand{background:transparent;border:none;cursor:pointer;padding:0;flex-shrink:0}.nav-brand h2{font-size:1.1rem;font-weight:700;color:#fff;white-space:nowrap;margin:0;transition:opacity .2s}.nav-brand:hover h2{opacity:.8}.nav-items{display:flex;gap:.5rem;align-items:center;margin-left:auto}.nav-item{padding:.7rem 1.1rem;background:transparent;border:none;color:#ffffffe6;cursor:pointer;font-size:.9rem;font-weight:600;transition:all .2s;border-radius:6px;white-space:nowrap;display:flex;align-items:center;gap:.4rem}.nav-item:hover{background:#ffffff1a}.nav-item.active{background:#4f7db3;color:#fff}.nav-item.create-link{background:#4a9d6f;color:#fff;padding:.7rem 1.1rem;text-decoration:none;display:inline-flex;align-items:center}.nav-item.create-link:hover{background:#5db07a}.badge{background:#ec4899;color:#fff;font-size:.65rem;font-weight:700;padding:.2rem .35rem;border-radius:10px;min-width:18px;text-align:center}.nav-stats{display:flex;gap:2rem;margin-left:auto}.nav-stat{display:flex;flex-direction:column;align-items:flex-end;gap:.1rem}.nav-stat-value{font-size:1rem;font-weight:700;color:#6b92c8;white-space:nowrap}.nav-stat-label{font-size:.65rem;color:#fff9;text-transform:uppercase;letter-spacing:.2px;white-space:nowrap}.nav-logout{padding:.6rem 1rem;background:#ffffff26;border:1px solid rgba(255,255,255,.3);color:#fff;border-radius:6px;font-size:.8rem;font-weight:600;cursor:pointer;transition:all .2s;white-space:nowrap;margin-left:auto;flex-shrink:0}.nav-logout:hover{background:#ffffff40}.main-content{flex:1;overflow-y:auto;background:var(--bg-light)}.view{padding:2rem 2.5rem;max-width:100%;margin:0}.view-header{margin-bottom:2rem}.view-header h1{font-size:2rem;font-weight:700;margin-bottom:.3rem;color:var(--text-primary)}.view-header p{color:var(--text-secondary);font-size:.95rem}.metrics-group{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.2rem;margin-bottom:2rem}.metric{background:var(--bg-white);border:1px solid var(--border-light);border-radius:12px;padding:1.5rem;transition:all .3s ease;box-shadow:0 1px 3px #0000000d}.metric:hover{border-color:var(--primary-light);box-shadow:0 4px 12px #4f7db314;transform:translateY(-2px)}.metric-number{font-size:2rem;font-weight:700;color:var(--primary);margin-bottom:.3rem}.metric-label{font-size:.9rem;font-weight:600;color:var(--text-primary)}.metric-sublabel{font-size:.75rem;color:var(--text-muted)}.designs-section{margin-bottom:2.5rem}.section-title{font-size:1rem;font-weight:700;margin-bottom:1rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.4px}.designs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:1.2rem}.design-card{background:var(--bg-white);border:2px solid var(--border-light);border-radius:8px;overflow:hidden;cursor:pointer;transition:all .3s ease;display:flex;flex-direction:column;height:100%;box-shadow:0 2px 6px #0000000f}.design-card:hover{border-color:var(--primary-light);box-shadow:0 8px 20px #4f7db31f;transform:translateY(-4px)}.design-card-image{position:relative;width:100%;background:#fff;padding:3px;border-radius:4px}.design-card-image img{position:relative;width:100%;height:auto;display:block;object-fit:contain;border:6px solid #2a2a2a;box-sizing:border-box;background:#fff}.design-card-info{padding:1rem;flex:1;display:flex;flex-direction:column;gap:.3rem;border:2px solid var(--border-light);border-top:1px solid var(--border-light)}.design-card-info h4{font-size:.85rem;font-weight:600;margin:0;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.design-theme{font-size:.7rem;color:var(--primary);text-transform:uppercase;letter-spacing:.3px;font-weight:600;margin:0}.design-prompt{font-size:.7rem;color:var(--text-muted);line-height:1.3;margin:0;flex:1;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.status-badge{display:inline-block;font-size:.6rem;font-weight:700;padding:.3rem .5rem;border-radius:4px;text-transform:uppercase;letter-spacing:.3px;align-self:flex-start;margin-top:auto}.status-badge.pending_approval{background:#fef3e2;color:var(--warning)}.status-badge.approved,.status-badge.approved_4k{background:#e8f5f0;color:var(--success)}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1.5rem;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal{background:var(--bg-white);border:1px solid var(--border);border-radius:12px;width:100%;max-width:1000px;max-height:85vh;overflow:hidden;display:flex;position:relative;box-shadow:0 20px 60px #00000026}.modal-close{position:absolute;top:1.5rem;right:1.5rem;background:#0000000d;border:none;color:var(--text-primary);font-size:1.8rem;cursor:pointer;padding:.5rem;border-radius:6px;z-index:10;transition:all .2s ease;width:40px;height:40px;display:flex;align-items:center;justify-content:center}.modal-close:hover{background:#0000001a}.modal-content{display:flex;width:100%;overflow-y:auto}.modal-image-section{flex:1;background:var(--surface);display:flex;align-items:center;justify-content:center;padding:2rem;min-height:500px}.modal-image{max-width:100%;max-height:100%;object-fit:contain;border:8px solid #2a2a2a;background:#fff}.modal-details{width:420px;padding:2rem;overflow-y:auto;border-left:1px solid var(--border-light)}.detail-header{margin-bottom:1.2rem;display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.detail-header h2{font-size:1.1rem;font-weight:700;flex:1;color:var(--text-primary)}.detail-group{margin-bottom:1.2rem}.detail-group label{display:block;font-size:.75rem;color:var(--primary);text-transform:uppercase;letter-spacing:.4px;font-weight:700;margin-bottom:.4rem}.detail-group p{font-size:.9rem;color:var(--text-primary);line-height:1.5}.prompt-text{font-size:.8rem;color:var(--text-secondary);font-style:italic;line-height:1.5}.detail-actions{display:flex;flex-direction:column;gap:.6rem;margin-top:1.5rem;padding-top:1.2rem;border-top:1px solid var(--border-light)}.edit-name-form{display:flex;flex-direction:column;gap:.6rem;width:100%}.edit-name-form input{padding:.7rem;border:2px solid var(--primary-light);border-radius:6px;font-size:.95rem;font-weight:600;color:var(--text-primary);outline:none}.edit-name-form input:focus{border-color:var(--primary);box-shadow:0 0 0 3px #4f7db31a}.btn-save,.btn-cancel{padding:.6rem 1rem;border:none;border-radius:6px;font-size:.8rem;font-weight:600;cursor:pointer;transition:all .2s}.btn-save{background:var(--primary);color:#fff}.btn-save:hover:not(:disabled){background:var(--primary-light)}.btn-save:disabled{opacity:.6;cursor:not-allowed}.btn-cancel{background:var(--border-light);color:var(--text-primary)}.btn-cancel:hover{background:var(--border)}.btn{padding:.8rem 1rem;border:none;border-radius:6px;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .2s ease;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;text-transform:uppercase;letter-spacing:.3px;width:100%}.btn-primary{background:#2d4563;color:#fff;box-shadow:0 6px 16px #4f7db34d}.btn-primary:hover{background:#1f2e42;transform:translateY(-2px);box-shadow:0 8px 20px #4f7db366}.btn-secondary{background:#4f7db3;color:#fff;border:none}.btn-secondary:hover{background:#3a5a8a}.btn-success{background:#28a745;color:#fff;border:none}.btn-success:hover{background:#218838}.btn-success:disabled{background:#94d3a2;cursor:not-allowed}.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1.2rem}.product-card{background:var(--bg-white);border:1px solid var(--border-light);border-radius:8px;overflow:hidden;transition:all .3s ease;box-shadow:0 2px 6px #0000000f}.product-card:hover{border-color:var(--primary-light);box-shadow:0 8px 20px #4f7db31f;transform:translateY(-4px)}.product-image{position:relative;width:100%;background:#fff;padding:3px;border-radius:4px}.product-image img{position:relative;width:100%;height:auto;display:block;object-fit:contain;border:6px solid #2a2a2a;box-sizing:border-box;background:#fff}.product-info{padding:1rem;border:2px solid var(--border-light);border-top:1px solid var(--border-light)}.product-info h4{font-size:.9rem;font-weight:600;margin-bottom:.3rem;color:var(--text-primary)}.product-price{font-size:1rem;font-weight:700;color:var(--primary);margin-bottom:.3rem}.product-variants{font-size:.75rem;color:var(--text-secondary)}.empty-state{text-align:center;padding:3rem 2rem;color:var(--text-secondary)}.empty-state p{font-size:1rem}.loading-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;background:var(--bg-light);gap:1.5rem}.spinner{width:50px;height:50px;border:3px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}@media (max-width: 1024px){.top-nav{flex-wrap:wrap;height:auto;padding:.8rem 1.5rem;gap:1rem}.nav-stats{gap:1.5rem;margin-left:0;width:100%;order:3}.modal{flex-direction:column}.modal-details{width:100%;border-left:none;border-top:1px solid var(--border-light)}}@media (max-width: 768px){.view{padding:1.5rem}.view-header h1{font-size:1.5rem}.designs-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.products-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.nav-logout{position:absolute;top:10px;right:10px}}.creation-progress{margin-top:1.5rem;padding:1.5rem;background:var(--surface);border:1px solid var(--border-light);border-radius:8px}.creation-progress h4{font-size:1rem;font-weight:600;color:var(--text-primary);margin-bottom:1rem}.progress-bar-container{margin-bottom:1.5rem}.progress-bar{background:var(--border-light);border-radius:6px;height:24px;overflow:hidden;position:relative}.progress-fill{height:100%;background:var(--primary);transition:width .5s ease;display:flex;align-items:center;justify-content:center;color:#fff;font-size:.75rem;font-weight:600;white-space:nowrap}.progress-fill.processing{background:linear-gradient(90deg,var(--primary) 0%,var(--primary-light) 100%);background-size:200% 200%;animation:shimmer 2s infinite}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.progress-fill.ready{background:var(--success)}.progress-fill.failed{background:var(--warning)}.progress-status{display:block;text-align:center;font-size:.85rem;color:var(--text-secondary);margin-top:.5rem;font-weight:500}.assets-list{margin-top:1.5rem;padding:1rem;background:var(--bg-white);border:1px solid var(--border-light);border-radius:6px}.assets-list h5{font-size:.9rem;font-weight:600;color:var(--text-primary);margin-bottom:.8rem}.assets-list ul{list-style:none;padding:0;margin:0}.asset-item{display:flex;justify-content:space-between;align-items:center;padding:.6rem .8rem;background:var(--bg-light);border:1px solid var(--border-light);border-radius:4px;margin-bottom:.5rem;transition:all .2s}.asset-item:hover{border-color:var(--primary-light);transform:translate(4px)}.asset-type{font-size:.85rem;font-weight:600;color:var(--text-primary)}.asset-status{font-size:.75rem;font-weight:500;padding:.2rem .5rem;border-radius:4px;text-transform:uppercase;letter-spacing:.2px}.asset-status.generating{background:#fef3e2;color:var(--warning)}.asset-status.ready{background:#e8f5f0;color:var(--success)}.asset-status.failed{background:#fee2e2;color:#dc2626}.progress-error{margin-top:1rem;padding:1rem;background:#fee2e2;border:1px solid #dc2626;border-radius:6px;color:#dc2626}.progress-error p{margin:0 0 .5rem;font-size:.85rem}.progress-error button{margin-top:.8rem;width:100%}.pipeline-section{margin-bottom:2.5rem}.pipeline-section h3{font-size:1rem;font-weight:700;margin-bottom:1rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.4px}.pipeline-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:1.2rem}.pipeline-card{background:var(--bg-white);border:2px solid var(--border-light);border-radius:8px;overflow:hidden;cursor:pointer;transition:all .3s ease;display:flex;flex-direction:column;box-shadow:0 2px 6px #0000000f}.pipeline-card:hover{border-color:var(--primary-light);box-shadow:0 8px 20px #4f7db31f;transform:translateY(-4px)}.pipeline-image{position:relative;width:100%;background:#fff;padding:3px}.pipeline-image img{width:100%;height:auto;display:block;object-fit:contain;border:6px solid #2a2a2a;box-sizing:border-box;background:#fff}.processing-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center}.processing-overlay .spinner{width:40px;height:40px;border:3px solid rgba(255,255,255,.3);border-top-color:#fff}.pipeline-info{padding:1rem;display:flex;flex-direction:column;gap:.5rem}.pipeline-info h4{font-size:.85rem;font-weight:600;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}.badge-processing{background:#fef3e2;color:var(--warning)}.badge-pending{background:#e0f2fe;color:#0284c7}.badge-ready{background:#e8f5f0;color:var(--success)}.badge-default{background:var(--surface);color:var(--text-secondary)}.archive-link-section{margin-top:2rem;padding:1rem;text-align:center;border-top:1px solid var(--border-light)}.archive-link{color:var(--text-muted);text-decoration:none;font-size:.9rem;padding:.5rem 1rem;border:1px solid var(--border);border-radius:6px;transition:all .2s ease;display:inline-block}.archive-link:hover{color:var(--primary);border-color:var(--primary);background:#4f7db30d}.worksheet-container{max-width:1400px;margin:0 auto;padding:2rem;min-height:100vh;background:#f8f9fa}.worksheet-loading,.worksheet-error{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;text-align:center}.worksheet-loading .spinner{width:48px;height:48px;border:4px solid #e5e7eb;border-top-color:#4f7db3;border-radius:50%;animation:spin .8s linear infinite;margin-bottom:1rem}@keyframes spin{to{transform:rotate(360deg)}}.worksheet-error h2{color:#dc2626;margin-bottom:.5rem}.worksheet-error button{margin-top:1rem;padding:.75rem 1.5rem;background:#4f7db3;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.95rem}.worksheet-header{margin-bottom:2rem}.back-button{background:none;border:none;color:#4f7db3;font-size:.95rem;cursor:pointer;padding:0;margin-bottom:1rem;display:flex;align-items:center;gap:.25rem}.back-button:hover{text-decoration:underline}.header-title-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}.header-actions{display:flex;align-items:center;gap:1rem}.worksheet-header h1{font-size:1.75rem;font-weight:700;color:#1a1a1a;margin:0}.worksheet-subtitle{color:#6b7280;margin:.5rem 0 0;font-size:.95rem}.worksheet-layout{display:grid;grid-template-columns:300px 1fr;gap:2rem}@media (max-width: 900px){.worksheet-layout{grid-template-columns:1fr}}.worksheet-preview{position:sticky;top:2rem;height:fit-content}.design-image-container{background:#fff;border-radius:8px;padding:8px;box-shadow:0 2px 8px #00000014;margin-bottom:1rem}.design-preview-image{width:100%;height:auto;display:block;border-radius:4px;border:4px solid #2a2a2a}.preview-image{background:#fff;border-radius:8px;padding:8px;box-shadow:0 2px 8px #00000014;margin-bottom:1rem}.preview-image img{width:100%;height:auto;display:block;border-radius:4px;border:4px solid #2a2a2a}.preview-info{background:#fff;padding:1rem;border-radius:8px;box-shadow:0 2px 8px #00000014}.preview-info h3{margin:0 0 .5rem;font-size:1rem;color:#1a1a1a}.preview-status{display:inline-block;padding:.25rem .75rem;background:#e8f5f0;color:#059669;border-radius:20px;font-size:.8rem;font-weight:500;margin:0}.worksheet-content{display:flex;flex-direction:column;gap:1.5rem}.worksheet-section{background:#fff;border-radius:8px;padding:1.5rem;box-shadow:0 2px 8px #0000000f}.worksheet-section.compact{padding:1rem 1.5rem}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.worksheet-section h2{font-size:1rem;font-weight:600;color:#374151;margin:0;text-transform:uppercase;letter-spacing:.5px}.section-note{color:#6b7280;font-size:.875rem;margin:.5rem 0 1rem}.copyable-field{background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;padding:1rem;font-family:inherit}.copyable-field p{margin:0;color:#1a1a1a;line-height:1.5;word-break:break-word}.description-field{max-height:300px;overflow-y:auto}.description-field pre{margin:0;white-space:pre-wrap;word-wrap:break-word;font-family:inherit;font-size:.9rem;color:#374151;line-height:1.6}.char-count{display:block;margin-top:.5rem;font-size:.8rem;color:#9ca3af;text-align:right}.edit-field{width:100%;padding:1rem;border:2px solid #3b82f6;border-radius:6px;font-family:inherit;font-size:.95rem;line-height:1.5;resize:vertical;box-sizing:border-box}.edit-field:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.title-edit{min-height:60px}.description-edit{min-height:300px}.tags-edit{min-height:80px}.tags-hint{margin-top:.5rem;font-size:.85rem;color:#6b7280}.edit-controls{display:flex;gap:.5rem;margin-bottom:1rem}.edit-btn,.regenerate-btn,.save-btn,.cancel-btn{padding:.5rem 1rem;border:none;border-radius:6px;font-size:.9rem;cursor:pointer;transition:all .2s}.edit-btn{background:#f3f4f6;color:#374151}.edit-btn:hover{background:#e5e7eb}.regenerate-btn{background:#dbeafe;color:#1e40af}.regenerate-btn:hover{background:#bfdbfe}.save-btn{background:#059669;color:#fff}.save-btn:hover{background:#047857}.cancel-btn{background:#fee2e2;color:#dc2626}.cancel-btn:hover{background:#fecaca}.copy-btn{padding:.5rem 1rem;background:#4f7db3;color:#fff;border:none;border-radius:6px;font-size:.85rem;cursor:pointer;transition:all .2s}.copy-btn:hover{background:#3d6a9f}.copy-btn.copied{background:#059669}.tags-container{display:flex;flex-wrap:wrap;gap:.5rem}.tag{position:relative;background:#e5e7eb;color:#374151;padding:.5rem .75rem;border-radius:4px;font-size:.85rem;cursor:pointer;transition:all .2s}.tag:hover{background:#4f7db3;color:#fff}.tag-copied{position:absolute;top:-24px;left:50%;transform:translate(-50%);background:#059669;color:#fff;padding:2px 8px;border-radius:4px;font-size:.7rem;white-space:nowrap}.info-row{display:flex;gap:2rem}.info-item{flex:1}.info-item label{display:block;font-size:.8rem;color:#6b7280;text-transform:uppercase;letter-spacing:.5px;margin-bottom:.25rem}.info-item p{margin:0;font-size:1rem;color:#1a1a1a;font-weight:500}.download-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1rem}.download-card{display:flex;align-items:center;gap:1rem;padding:1rem;background:#f9fafb;border:2px solid #e5e7eb;border-radius:8px;text-decoration:none;color:inherit;transition:all .2s}.download-card:hover{border-color:#4f7db3;background:#eff6ff}.download-icon{width:48px;height:48px;background:#4f7db3;color:#fff;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.download-info{display:flex;flex-direction:column;gap:2px}.download-info strong{font-size:1rem;color:#1a1a1a}.download-info span{font-size:.8rem;color:#6b7280}.download-info .use-case{font-size:.75rem;color:#9ca3af}.worksheet-section.instructions{background:#fffbeb;border:1px solid #fbbf24}.instructions h2{color:#92400e}.instructions ol{margin:1rem 0 0;padding-left:1.5rem}.instructions li{margin-bottom:.5rem;color:#78350f;line-height:1.5}.instructions li:last-child{margin-bottom:0}.download-pack-btn{display:inline-flex;align-items:center;padding:10px 16px;background:linear-gradient(135deg,#059669,#047857);color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:600;text-decoration:none;transition:all .2s;box-shadow:0 2px 4px #0596694d}.download-pack-btn:hover{background:linear-gradient(135deg,#047857,#065f46);transform:translateY(-1px);box-shadow:0 4px 8px #05966966}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#root{min-height:100vh}
