*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}[hidden]{display:none!important}:root{--bg: #f5f3f0;--surface: #ffffff;--surface-alt: #f0ece6;--border: #ddd8d0;--text: #1a1714;--text-muted: #6b6560;--accent: #d03939;--accent-hover:#b52e2e;--amber: #c07830;--amber-hover: #a86620;--dark-bg: #0d1117;--radius: 10px;--shadow: 0 2px 12px rgba(0,0,0,.08);--shadow-lg: 0 6px 24px rgba(0,0,0,.12)}html,body{height:100%}body{font-family:system-ui,-apple-system,sans-serif;font-size:15px;line-height:1.5;color:var(--text);background:var(--bg)}#app{display:flex;flex-direction:column;min-height:100vh}.app-header{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid var(--border);box-shadow:0 1px 6px #0000000f}.header-inner{max-width:1100px;margin:0 auto;padding:0 24px;height:60px;display:flex;align-items:center;justify-content:space-between;gap:16px}.logo{display:flex;align-items:center;gap:7px;background:none;border:none;cursor:pointer;padding:4px 6px;border-radius:8px;transition:opacity .15s;text-decoration:none;white-space:nowrap;flex-shrink:0}.logo:hover{opacity:.75}.logo-icon{width:26px;height:26px;flex-shrink:0;fill:#d03939}.logo-text{font-size:15px;font-weight:700;letter-spacing:-.3px;color:var(--text)}.logo-byline{font-size:11px;font-weight:500;color:#d03939;margin-left:6px;letter-spacing:0;white-space:nowrap}.step-nav{display:flex;align-items:center;gap:4px}.step-item{display:flex;align-items:center;gap:6px;padding:4px 10px;border-radius:20px;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background .15s;color:var(--text-muted)}.step-item:hover{background:var(--surface-alt)}.step-num{width:22px;height:22px;border-radius:50%;background:var(--border);color:var(--text-muted);font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;transition:background .2s,color .2s}.step-label{font-size:13px;font-weight:500}.step-item.active .step-num{background:var(--accent);color:#fff}.step-item.active .step-label{color:var(--accent);font-weight:600}.step-item.completed .step-num{background:#c8e6c9;color:#2e7d32}.step-item.completed .step-label{color:var(--text-muted)}.step-item.pending{opacity:.55;pointer-events:none}.step-divider{width:24px;height:1px;background:var(--border);flex-shrink:0}.app-main{flex:1;max-width:1100px;margin:0 auto;width:100%;padding:32px 24px 48px}.step-container{animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1}}.step-title{font-size:24px;font-weight:700;letter-spacing:-.4px;margin-bottom:6px}.step-subtitle{color:var(--text-muted);font-size:14px;margin-bottom:28px}.how-it-works-bar{text-align:center;padding:10px 0 4px}.btn-how-it-works{background:none;border:1px solid var(--border);border-radius:20px;color:var(--text-muted);font-size:13px;padding:6px 18px;cursor:pointer;transition:border-color .15s,color .15s}.btn-how-it-works:hover{border-color:var(--accent);color:var(--accent)}.setup-layout{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-bottom:28px}.setup-section{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px}.section-title{font-size:15px;font-weight:600;margin-bottom:16px;color:var(--text)}.spec-group{margin-bottom:22px}.spec-group:last-child{margin-bottom:0}.spec-label{font-size:13px;font-weight:600;color:var(--text);display:block;margin-bottom:8px}.hint-text{font-size:12px;color:var(--text-muted);margin-top:6px;line-height:1.5}.upload-zone{border:2px dashed var(--border);border-radius:var(--radius);cursor:pointer;transition:border-color .15s,background .15s;min-height:200px;display:flex;align-items:center;justify-content:center}.upload-zone:hover,.upload-zone.drag-over{border-color:var(--accent);background:#d039390a}.upload-zone-inner{display:block;text-align:center;padding:24px 16px;cursor:pointer}.upload-icon{font-size:36px;color:var(--accent);margin-bottom:10px}.upload-prompt{font-size:14px;font-weight:500;margin-bottom:4px}.upload-or{font-size:12px;color:var(--text-muted);margin:6px 0}.upload-zone-inner .btn{display:inline-block;margin:12px 5px}.upload-hint{font-size:12px;color:var(--text-muted);margin-top:8px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.upload-preview{padding:16px;display:flex;flex-direction:column;align-items:center;gap:10px;width:100%}.upload-preview img{max-width:180px;max-height:160px;border-radius:8px;object-fit:contain;border:1px solid var(--border)}.preview-info{display:flex;align-items:center;gap:8px}.preview-filename{font-size:12px;color:var(--text-muted);max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.preset-row{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.preset-btn{padding:5px 12px;border:1px solid var(--border);border-radius:20px;background:#fff;font-size:13px;cursor:pointer;transition:border-color .15s,background .15s,color .15s;color:var(--text)}.preset-btn:hover{border-color:var(--accent)}.preset-btn.active{background:var(--accent);border-color:var(--accent);color:#fff}.range-inputs{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:6px}.range-arrow{color:var(--text-muted);font-size:18px}.input-group-inline{display:flex;align-items:center;gap:6px}.input-group-inline label{font-size:12px;color:var(--text-muted);white-space:nowrap}.input-group-inline input[type=number]{width:70px;padding:5px 8px;border:1px solid var(--border);border-radius:6px;font-size:14px;text-align:center;background:#fff;color:var(--text)}.input-unit{font-size:12px;color:var(--text-muted)}.custom-tube-row{display:flex;gap:16px;padding:10px 12px;background:var(--surface-alt);border-radius:8px;margin:8px 0}input[type=range]{width:100%;height:5px;accent-color:var(--accent);cursor:pointer;margin:6px 0}.slider-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.slider-value{font-weight:600;color:var(--accent);min-width:24px;text-align:right}.btn{padding:10px 22px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;border:none;transition:background .15s,opacity .15s}.btn:disabled{opacity:.4;pointer-events:none}.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-hover)}.btn-secondary{background:#fff;color:var(--text);border:1px solid var(--border)}.btn-secondary:hover{border-color:var(--accent);color:var(--accent)}.btn-ghost{background:transparent;color:var(--text-muted);border:1px solid var(--border)}.btn-ghost:hover{background:var(--surface-alt)}.btn-sm{padding:5px 12px;font-size:12px;font-weight:600;border-radius:6px;cursor:pointer;border:1px solid var(--border);background:#fff;color:var(--text);transition:background .15s}.btn-sm:hover{background:var(--surface-alt)}.btn-icon{background:none;border:none;cursor:pointer;color:var(--text-muted);font-size:16px;padding:2px 6px;border-radius:4px;transition:color .15s,background .15s}.btn-icon:hover{color:var(--text);background:var(--surface-alt)}.btn-icon-sm{width:32px;height:32px;border-radius:6px;border:1px solid rgba(255,255,255,.25);background:#ffffff1a;color:#fff;font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s}.btn-icon-sm:hover{background:#fff3}.step-actions{display:flex;justify-content:flex-end;gap:12px;padding-top:24px;margin-top:28px}.step1 .step-actions{justify-content:center}.step2-crop .crop-layout{display:grid;grid-template-columns:1fr 280px;gap:24px;margin-bottom:4px}.crop-canvas-wrap{position:relative;border-radius:var(--radius);overflow:hidden;background:var(--dark-bg);display:flex;align-items:center;justify-content:center;min-height:400px}#cropCanvas{display:block;max-width:100%;border-radius:var(--radius)}.crop-controls-overlay{position:absolute;bottom:12px;left:50%;transform:translate(-50%);display:flex;gap:8px;align-items:center}.crop-info-panel{display:flex;flex-direction:column;gap:12px}.info-card{display:flex;align-items:center;gap:12px;padding:12px 16px;background:var(--surface);border:1px solid var(--border);border-radius:8px}.info-card-link{cursor:pointer;transition:border-color .15s,background .15s}.info-card-link:hover{border-color:var(--accent);background:var(--surface-alt)}.info-icon{font-size:22px;color:var(--accent)}.info-title{font-size:11px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px}.info-value{font-size:18px;font-weight:700;color:var(--text)}.edit-hint{font-size:13px;font-weight:400;color:var(--text-muted);opacity:.6}.info-card-link:hover .edit-hint{opacity:1;color:var(--accent)}@keyframes fieldHighlight{0%{box-shadow:0 0 #d0393980}50%{box-shadow:0 0 0 6px #d0393926}to{box-shadow:0 0 #d0393900}}.field-highlight{animation:fieldHighlight 1s ease-out 2;border-radius:8px}.crop-hint{font-size:12px;color:var(--text-muted);line-height:1.5;padding:10px 12px;background:var(--surface-alt);border-radius:8px}.bg-color-row{display:flex;gap:6px;flex-wrap:wrap}.bg-btn{padding:5px 10px;border:1.5px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text);font-size:12px;cursor:pointer;transition:border-color .15s,background .15s}.bg-btn:hover{border-color:var(--accent)}.bg-btn.active{border-color:var(--accent);background:var(--surface-alt)}.toggle-label{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px}.toggle-text{color:var(--text-muted)}.step3-tune .tune-layout{display:grid;grid-template-columns:1fr 300px;gap:24px;margin-bottom:4px}.preview-panels{display:grid;grid-template-columns:1fr 1fr;gap:16px}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.panel-label{padding:10px 14px;font-size:12px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;background:var(--surface-alt)}.canvas-wrapper{position:relative}.canvas-tap-hint{text-align:center;font-size:11px;color:var(--text-muted);padding:4px 0 2px;opacity:.7}#refCanvas,#packCanvas{display:block;width:100%;height:auto}#refCanvas{border-radius:0}#packCanvas{background:var(--dark-bg)}.processing-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#0d1117bf;display:none;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#fff;font-size:14px;z-index:10}.processing-overlay.visible{display:flex}.spinner{width:32px;height:32px;border:3px solid rgba(255,255,255,.2);border-top-color:#fff;border-radius:50%;animation:spin .75s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}.processing-overlay span{min-height:1.4em;min-width:280px;text-align:center;font-size:13px;letter-spacing:.01em;color:#ffffffe6}.progress-track{width:220px;height:3px;background:#ffffff26;border-radius:2px;overflow:hidden;margin-top:10px}.progress-fill{height:100%;width:0%;background:#ffffffbf;border-radius:2px;transition:width .3s ease}@keyframes phrasePulse{0%{opacity:1}50%{opacity:.25}to{opacity:1}}.phrase-pulse{animation:phrasePulse 1.2s cubic-bezier(.45,0,.55,1) 3}.pack-stats{font-size:11px;font-weight:400;color:var(--text-muted)}.palette-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:10px;overflow-y:auto}.pack-controls{display:flex;flex-direction:column;gap:6px}.color-count-row{display:flex;align-items:center;gap:8px}.color-count-row input[type=range]{flex:1;margin:0}.range-label{font-size:11px;color:var(--text-muted);white-space:nowrap}.regen-row{display:flex;align-items:center;gap:10px;margin-top:4px;flex-wrap:wrap}.btn-sm-wide{padding:7px 18px;font-size:13px;font-weight:600;border-radius:7px;cursor:pointer;border:none;background:var(--accent);color:#fff;white-space:nowrap;transition:background .15s}.btn-sm-wide:hover{background:var(--accent-hover)}.btn-sm-wide:disabled{opacity:.4;pointer-events:none}.view-toggle{display:flex;gap:2px;background:var(--surface-alt);border-radius:6px;padding:2px}.view-btn{padding:3px 9px;border:none;border-radius:4px;font-size:12px;font-weight:500;cursor:pointer;background:transparent;color:var(--text-muted);transition:background .12s,color .12s}.view-btn:hover{background:var(--border)}.view-btn.active{background:#fff;color:var(--text);box-shadow:0 1px 3px #0000001a}.palette-divider{border:none;border-top:1px solid var(--border);margin:4px 0}.palette-header-label{font-size:12px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px}.palette-chips{display:flex;flex-wrap:wrap;gap:8px;flex:1}.color-chip{display:flex;flex-direction:column;align-items:center;gap:4px}.chip-swatch{width:44px;height:44px;border-radius:8px;border:2px solid rgba(0,0,0,.15);cursor:pointer;position:relative;overflow:hidden;transition:transform .1s}.chip-swatch:hover{transform:scale(1.1);border-color:var(--accent)}.chip-picker{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer;width:100%;height:100%}.chip-count{font-size:10px;color:var(--text-muted);text-align:center}.palette-actions{border-top:1px solid var(--border);padding-top:10px}.step4-cutsheet .cutsheet-layout{display:grid;grid-template-columns:auto 1fr;gap:28px;margin-bottom:4px;align-items:start}.diagram-panel{display:flex;flex-direction:column;gap:12px;align-items:center}.diagram-panel canvas{display:block;border-radius:50%;border:2px solid rgba(255,255,255,.15);background:var(--dark-bg)}.diagram-bg-row{display:flex;align-items:center;gap:6px;justify-content:center;margin-bottom:8px}.diagram-bg-label{font-size:12px;color:var(--text-muted);margin-right:2px}.diagram-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.cutlist-panel{display:flex;flex-direction:column;gap:16px}.cut-table{width:100%;border-collapse:collapse;font-size:13px}.cut-table th,.cut-table td{padding:8px 10px;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle}.cut-table th{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted);background:var(--surface-alt)}.cut-table tbody tr:hover{background:var(--surface-alt)}.cut-table tfoot td{background:var(--surface-alt);font-weight:700}.cut-table .color-size-row td{border-top:none}.cut-table .color-subtotal-row td{background:var(--surface-alt);font-size:11px;color:var(--text-muted, #888);border-top:1px solid var(--border)}.cut-table .color-num-cell,.cut-table .color-swatch-cell,.cut-table .color-label-cell{vertical-align:top;padding-top:10px}.swatch-cell{display:inline-block;width:26px;height:26px;border-radius:6px;border:1px solid rgba(0,0,0,.15);vertical-align:middle}.num-cell{text-align:right;font-variant-numeric:tabular-nums}.color-label-input{width:100%;padding:4px 8px;border:1px solid transparent;border-radius:4px;font-size:13px;background:transparent;color:var(--text);transition:border-color .15s,background .15s}.color-label-input:focus{outline:none;border-color:var(--accent);background:#fff}.color-label-input::placeholder{color:var(--border)}.notes-area{display:flex;flex-direction:column;gap:6px}.notes-area textarea{width:100%;padding:8px 12px;border:1px solid var(--border);border-radius:8px;font-size:13px;resize:vertical;font-family:inherit;color:var(--text)}.notes-area textarea:focus{outline:none;border-color:var(--accent)}.weight-yield-section{margin-top:28px;padding-top:20px;border-top:1px solid var(--border)}.weight-yield-layout{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:12px;align-items:start}.weight-block,.yield-block{display:flex;flex-direction:column;gap:10px}.weight-table{width:100%;border-collapse:collapse;font-size:13px}.weight-table th,.weight-table td{padding:7px 10px;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle}.weight-table th{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted);background:var(--surface-alt)}.weight-table tfoot td{background:var(--surface-alt)}.weight-table tfoot tr:last-child td{font-weight:700}.weight-table tbody tr:hover{background:var(--surface-alt)}.yield-note{margin:0;font-size:12px;color:var(--text-muted);line-height:1.5}.custom-yield-row{display:flex;flex-direction:column;gap:6px;margin-top:4px}.custom-yield-controls{display:flex;align-items:center;gap:8px}.custom-yield-unit{font-size:13px;color:var(--text-muted)}.custom-yield-badge{font-size:14px;font-weight:600;color:var(--accent)}.pack-mode-wrap{display:flex;flex-direction:column;gap:4px}.pack-mode-range{width:100%;accent-color:var(--accent)}.pack-mode-labels{display:flex;justify-content:space-between;font-size:11px;color:var(--text-muted);padding:0 2px;pointer-events:none;-webkit-user-select:none;user-select:none}.pack-mode-labels span{display:flex;flex-direction:column;align-items:center;gap:3px}.pack-mode-labels span:before{content:"";display:block;width:1px;height:6px;background:currentColor;opacity:.5}.pack-mode-hint{font-style:italic;min-height:1.4em;margin-top:2px}@media (max-width: 860px){.setup-layout,.step2-crop .crop-layout{grid-template-columns:1fr}.crop-info-panel{flex-direction:row;flex-wrap:wrap}.info-card{flex:1;min-width:120px}.step3-tune .tune-layout{grid-template-columns:1fr}.step3-tune .palette-panel{order:-1}.preview-panels{grid-template-columns:1fr 1fr}.step4-cutsheet .cutsheet-layout{grid-template-columns:1fr}.diagram-panel{flex-direction:row;flex-wrap:wrap;align-items:center;gap:16px}.diagram-panel canvas{width:220px;height:220px}.weight-yield-layout{grid-template-columns:1fr}}.promo-footer{text-align:center;padding:14px 24px;border-top:1px solid var(--border);background:var(--surface)}.promo-footer p{margin:0;font-size:13px;color:var(--text-muted)}.promo-footer a{color:var(--accent);font-weight:600;text-decoration:none}.promo-footer a:hover{text-decoration:underline}.about-section{margin:40px auto 0;padding-top:32px;border-top:1px solid var(--border);max-width:720px}.about-heading{font-size:22px;font-weight:700;color:var(--text);margin:0 0 12px}.about-subheading{font-size:15px;font-weight:600;color:var(--text);margin:28px 0 12px;text-transform:uppercase;letter-spacing:.06em;opacity:.7}.about-intro{font-size:15px;line-height:1.7;color:var(--text-muted);margin:0}.how-it-works{margin-top:4px}.steps-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:16px}.steps-list li{display:flex;gap:14px;align-items:flex-start;font-size:14px;line-height:1.65;color:var(--text-muted)}.steps-list li strong{color:var(--text)}.step-pill{flex-shrink:0;width:26px;height:26px;border-radius:50%;background:var(--accent);color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-top:1px}.tips-list{padding:0 0 0 18px;margin:0;display:flex;flex-direction:column;gap:8px;font-size:14px;line-height:1.65;color:var(--text-muted)}.about-dpg{margin-top:32px;padding:18px 20px;background:var(--surface);border:1px solid var(--border);border-left:3px solid var(--accent);border-radius:8px;font-size:14px;line-height:1.6;color:var(--text-muted)}.about-dpg p{margin:0}.about-dpg a{color:var(--accent);text-decoration:none}.about-dpg a:hover{text-decoration:underline}.seo-content{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}@media (max-width: 600px){.header-inner{padding:0 10px;gap:8px}.app-main{padding:20px 16px 40px}.step-label{display:none}.step-nav{gap:2px}.step-item{padding:4px 5px}.step-divider{width:6px}.logo-text{font-size:13px;display:flex;flex-direction:column;line-height:1.2}.logo-byline{font-size:10px;margin-left:0}.logo-icon{width:22px;height:22px}.preview-panels{grid-template-columns:1fr}.cut-table{font-size:12px}.cut-table th,.cut-table td{padding:6px}}
