:root{--primary-color: #3b82f6;--primary-hover: #2563eb;--secondary-color: #6b7280;--background: #0f172a;--surface: #1e293b;--surface-light: #334155;--text-primary: #f1f5f9;--text-secondary: #94a3b8;--border: #475569;--success: #10b981;--error: #ef4444;--error-light: #fca5a5;--radius: 12px}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;background:var(--background);color:var(--text-primary);line-height:1.6;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem}#app{width:100%;max-width:800px}.container{background:var(--surface);border-radius:var(--radius);padding:3rem;box-shadow:0 20px 25px -5px #0000004d}h1{font-size:2.5rem;font-weight:700;margin-bottom:.5rem;background:linear-gradient(135deg,var(--primary-color),#8b5cf6);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.subtitle{color:var(--text-secondary);margin-bottom:2rem;font-size:1.1rem}.help-section{background:var(--background);border-radius:var(--radius);padding:1.5rem;margin-bottom:2rem;border:1px solid var(--border)}.help-section h2{font-size:1.25rem;font-weight:600;color:var(--text-primary);margin-bottom:1rem}.help-list{margin:0 0 1rem 1.5rem;color:var(--text-secondary);line-height:1.8}.help-list li{margin-bottom:.5rem}.help-note{font-size:.875rem;color:var(--text-secondary);font-style:italic;margin:0;opacity:.8}.upload-section{margin-bottom:2rem}.drop-zone{border:2px dashed var(--border);border-radius:var(--radius);padding:4rem 2rem;text-align:center;cursor:pointer;transition:all .3s ease;background:var(--background)}.drop-zone:hover{border-color:var(--primary-color);background:#3b82f60d}.drop-zone.drag-over{border-color:var(--primary-color);background:#3b82f61a;transform:scale(1.02)}.upload-icon{width:64px;height:64px;margin:0 auto 1rem;color:var(--text-secondary);transition:color .3s ease}.drop-zone:hover .upload-icon{color:var(--primary-color)}.drop-text{font-size:1.25rem;font-weight:600;color:var(--text-primary);margin-bottom:.5rem}.drop-subtext{color:var(--text-secondary);font-size:.95rem}.stats{margin-top:1.5rem;display:flex;justify-content:center;gap:2rem}.stat-item{display:flex;flex-direction:column;align-items:center;padding:1rem 2rem;background:var(--surface-light);border-radius:var(--radius);min-width:150px}.stat-value{font-size:2.5rem;font-weight:700;color:var(--primary-color);line-height:1;margin-bottom:.5rem}.stat-label{font-size:.875rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em}.thumbnail-section{margin-bottom:2rem}.thumbnail-section h2{font-size:1.25rem;font-weight:600;color:var(--text-primary);margin-bottom:1rem}.thumbnail-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:1rem;padding:1rem;background:var(--background);border-radius:var(--radius);border:1px solid var(--border);max-height:400px;overflow-y:auto}.thumbnail-item{position:relative;aspect-ratio:1;border-radius:8px;overflow:hidden;background:var(--surface-light);transition:transform .2s ease}.thumbnail-item:hover{transform:scale(1.05)}.thumbnail-item img{width:100%;height:100%;object-fit:cover}.thumbnail-delete{position:absolute;top:.5rem;right:.5rem;width:24px;height:24px;border-radius:50%;background:#ef4444e6;border:none;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:1rem;line-height:1;opacity:0;transition:opacity .2s ease}.thumbnail-item:hover .thumbnail-delete{opacity:1}.thumbnail-delete:hover{background:#ef4444}.thumbnail-name{position:absolute;bottom:0;left:0;right:0;padding:.5rem;background:#0f172ae6;font-size:.75rem;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .2s ease}.thumbnail-item:hover .thumbnail-name{opacity:1}.thumbnail-item.error{border:3px solid var(--error);box-shadow:0 0 0 1px var(--error),0 0 20px #ef44444d}.error-badge{position:absolute;top:.5rem;left:.5rem;width:28px;height:28px;border-radius:50%;background:var(--error);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.1rem;z-index:10;box-shadow:0 2px 8px #0000004d}.preview-popup{position:fixed;z-index:1000;pointer-events:none;background:var(--surface);border-radius:var(--radius);padding:1rem;box-shadow:0 10px 40px #00000080;border:1px solid var(--border)}.preview-comparison{display:grid;grid-template-columns:1fr 1fr;gap:2rem}.preview-side h3{margin:0 0 1rem;color:var(--text-primary);font-size:1.1rem;text-align:center}.preview-side img{width:300px;height:200px;object-fit:contain;border-radius:var(--radius);background:var(--background)}.preview-error{width:300px;height:200px;display:flex;align-items:center;justify-content:center;background:var(--background);border-radius:var(--radius);border:2px solid var(--error);color:var(--error-light);padding:1rem;text-align:center;font-size:.9rem}.action-section{display:flex;gap:1rem;justify-content:center;margin-bottom:2rem}.btn{padding:.875rem 2rem;font-size:1rem;font-weight:600;border:none;border-radius:var(--radius);cursor:pointer;transition:all .3s ease;text-transform:uppercase;letter-spacing:.05em}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--primary-color);color:#fff}.btn-primary:hover:not(:disabled){background:var(--primary-hover);transform:translateY(-2px);box-shadow:0 10px 15px -3px #3b82f64d}.btn-secondary{background:var(--surface-light);color:var(--text-primary)}.btn-secondary:hover{background:var(--border)}.progress-section{margin-top:2rem}.progress-bar{width:100%;height:8px;background:var(--surface-light);border-radius:9999px;overflow:hidden;margin-bottom:1rem}.progress-fill{height:100%;background:linear-gradient(90deg,var(--primary-color),#8b5cf6);border-radius:9999px;transition:width .3s ease;width:0%}.progress-text{text-align:center;color:var(--text-secondary);font-size:.95rem}.error-summary{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:2000;padding:2rem}.error-summary-content{background:var(--surface);border-radius:var(--radius);padding:2rem;max-width:600px;width:100%;max-height:80vh;overflow-y:auto;box-shadow:0 20px 40px #00000080;border:1px solid var(--border)}.error-summary-content h3{margin-bottom:1rem;color:var(--text-primary);font-size:1.5rem}.error-summary-content p{margin-bottom:1rem;color:var(--text-secondary);line-height:1.6}.failed-images-list{list-style:none;margin:1rem 0 2rem;padding:1rem;background:var(--background);border-radius:8px;max-height:300px;overflow-y:auto}.failed-images-list li{padding:.75rem;margin-bottom:.5rem;background:var(--surface-light);border-radius:6px;border-left:3px solid var(--error)}.failed-images-list li:last-child{margin-bottom:0}.failed-images-list strong{display:block;color:var(--text-primary);margin-bottom:.25rem}.error-reason{display:block;color:var(--error-light);font-size:.875rem}.download-partial-btn,.close-summary-btn{padding:.875rem 2rem;font-size:1rem;font-weight:600;border:none;border-radius:var(--radius);cursor:pointer;transition:all .3s ease;margin-right:1rem}.download-partial-btn{background:var(--primary-color);color:#fff}.download-partial-btn:hover:not(:disabled){background:var(--primary-hover)}.download-partial-btn:disabled{opacity:.6;cursor:not-allowed}.close-summary-btn{background:var(--surface-light);color:var(--text-primary)}.close-summary-btn:hover{background:var(--border)}@media (max-width: 640px){.container{padding:2rem}h1{font-size:2rem}.drop-zone{padding:3rem 1.5rem}.action-section{flex-direction:column}.btn{width:100%}}
