.service-status-panel{background:rgba(255,255,255,.05);border-radius:12px;padding:12px 20px;border:1px solid rgba(255,255,255,.08);max-width:800px;margin:0 auto}.status-item{font-size:.85rem;color:rgba(255,255,255,.9)}.status-indicator{width:8px;height:8px;border-radius:50%;animation:pulse 2s infinite}.status-indicator.online{background:#28a745;box-shadow:0 0 6px rgba(40,167,69,.6)}.status-indicator.offline{background:#dc3545;box-shadow:0 0 6px rgba(220,53,69,.6)}@keyframes pulse{0%{opacity:1}50%{opacity:.5}100%{opacity:1}}.editor-card{background:rgba(0,0,0,.2);border-radius:12px;padding:1.5rem}.upload-section{margin-bottom:2rem}.section-title{font-size:1.1rem;color:#fff;margin-bottom:1rem;display:flex;align-items:center}.upload-area{position:relative;border:2px dashed rgba(255,255,255,.2);border-radius:8px;padding:2rem;text-align:center;cursor:pointer;transition:all .3s ease;background:rgba(255,255,255,.02)}.upload-area:hover{border-color:rgba(255,107,53,.5);background:rgba(255,107,53,.05)}.upload-area.dragover{border-color:#ff6b35;background:rgba(255,107,53,.1)}.file-input{position:absolute;width:100%;height:100%;top:0;left:0;opacity:0;cursor:pointer}.upload-content{color:rgba(255,255,255,.7)}.upload-content i{font-size:2rem;margin-bottom:1rem;color:rgba(255,255,255,.5)}.upload-text strong{display:block;margin-bottom:.5rem;color:#fff}.upload-text span{font-size:.85rem;color:rgba(255,255,255,.5)}.preset-clothing-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;padding:16px 0}.preset-clothing-wrapper{position:relative;padding-bottom:166.67%}.preset-clothing-item{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:8px;overflow:hidden;cursor:pointer;border:2px solid transparent;transition:all .3s ease;background:rgba(255,255,255,.05)}.preset-clothing-item:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.2)}.preset-clothing-item.active{border-color:#ff6b35;box-shadow:0 0 0 2px rgba(255,107,53,.3)}.preset-clothing-item img{width:100%;height:100%;object-fit:cover;border-radius:6px;transition:opacity .3s ease}.uploaded-images{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}.uploaded-image-item{position:relative;width:120px;height:120px;border-radius:8px;overflow:hidden;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05)}.uploaded-image-item img{width:100%;height:100%;object-fit:contain;display:block}.uploaded-image-remove{position:absolute;top:6px;right:6px;width:22px;height:22px;background:rgba(0,0,0,.7);border:none;border-radius:50%;color:#fff;font-size:1rem;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2;transition:background .2s}.uploaded-image-remove:hover{background:#dc3545}.unified-selector{background:rgba(255,255,255,.05);border:2px solid rgba(255,255,255,.1);border-radius:8px;cursor:pointer;transition:all .3s ease}.unified-selector:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.2)}.unified-option{padding:12px 16px}.unified-option-content{display:flex;justify-content:space-between;align-items:center}.unified-option-text{color:#fff;font-size:.9rem}.generate-section{margin-top:1.5rem}.generation-info{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.generation-cost{font-size:.85rem;display:flex;align-items:center;gap:.3rem}.btn-generate{width:100%;background:#ff6b35;color:#fff;border:none;padding:.8rem;border-radius:8px;font-weight:500;transition:all .3s ease}.btn-generate:hover{background:#e85a2c;transform:translateY(-1px)}.btn-generate:disabled{background:#666;cursor:not-allowed;transform:none}.preview-card{background:rgba(0,0,0,.2);border-radius:12px;padding:1.5rem;height:100%}.preview-header{margin-bottom:1rem}.preview-header h3{font-size:1.2rem;margin:0;color:#fff}.preview-placeholder{text-align:center;padding:3rem 1rem}.placeholder-icon{font-size:3rem;color:#666;margin-bottom:1rem}.placeholder-text{color:#999;margin-bottom:.5rem}.placeholder-subtitle{color:#666;font-size:.9rem}.preview-loading{text-align:center;padding:3rem 1rem}.loading-text{color:#fff;font-size:1.1rem;margin-bottom:1.5rem}.progress-container{width:100%;max-width:300px;margin:0 auto 1.5rem}.progress-bar{height:6px;background:rgba(255,255,255,.1);border-radius:3px;overflow:hidden;margin-bottom:.5rem}.progress-fill{height:100%;background:#ff6b35;width:0;transition:width .3s ease}.progress-text{display:flex;justify-content:space-between;align-items:center;font-size:.85rem;color:#999}.preview-results{padding:1rem 0}.results-grid{display:grid;grid-template-columns:1fr;gap:1rem}.result-item{position:relative;border-radius:8px;overflow:hidden;background:rgba(255,255,255,.05)}.result-image-container{position:relative;width:100%;padding-top:100%;overflow:hidden;border-radius:8px;cursor:pointer}.result-image{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:contain;background-color:rgba(0,0,0,.03)}.result-actions{display:flex;justify-content:center;gap:1rem;padding:.5rem}.btn-action{background:0 0;border:none;color:rgba(255,255,255,.7);font-size:.85rem;cursor:pointer;display:flex;align-items:center;gap:.3rem;padding:.3rem .6rem;border-radius:4px;transition:all .2s ease}.btn-action:hover{color:#fff;background:rgba(255,255,255,.1)}@media (max-width:768px){.service-status-panel{flex-direction:column;gap:8px;padding:10px 15px}.status-item{font-size:.8rem;justify-content:center}.preset-clothing-grid{grid-template-columns:repeat(2,1fr);gap:8px}.uploaded-image-item{width:100px;height:100px}}@media (max-width:576px){.editor-card{padding:1rem}.upload-area{padding:1.5rem}.upload-content i{font-size:1.5rem}.preset-clothing-grid{grid-template-columns:repeat(2,1fr);gap:6px}.uploaded-image-item{width:80px;height:80px}}.flux-error-state{text-align:center;padding:3rem 1rem}.flux-error-icon{font-size:3rem;color:#dc3545;margin-bottom:1rem}.flux-error-title{font-size:1.2rem;color:#dc3545;margin-bottom:.5rem;font-weight:500}.flux-error-message{color:#999;font-size:.9rem;max-width:80%;margin:0 auto}.tab-pane#preset-clothing{max-height:400px;overflow-y:auto;padding-right:10px}.tab-pane#preset-clothing::-webkit-scrollbar{width:6px}.tab-pane#preset-clothing::-webkit-scrollbar-track{background:rgba(255,255,255,.05);border-radius:3px}.tab-pane#preset-clothing::-webkit-scrollbar-thumb{background:rgba(255,255,255,.2);border-radius:3px}.tab-pane#preset-clothing::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.3)}.preset-clothing-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:12px;padding:16px 0}#clothingRatioModal .ratio-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:1rem;padding:.5rem 0}#clothingRatioModal .ratio-option{display:flex;flex-direction:column;align-items:center;padding:1rem;border:2px solid rgba(255,255,255,.1);border-radius:8px;background:rgba(255,255,255,.02);cursor:pointer;transition:all .3s ease;text-align:center;min-height:80px;justify-content:center}#clothingRatioModal .ratio-option:hover{border-color:rgba(220,111,0,.5);background:rgba(220,111,0,.05);transform:translateY(-2px)}#clothingRatioModal .ratio-option.active{border-color:#dc6f00;background:rgba(220,111,0,.1);box-shadow:0 4px 20px rgba(220,111,0,.2)}#clothingRatioModal .ratio-option span{margin-top:.5rem;font-size:.9rem;color:#fff;font-weight:500}.ratio-preview{background:#ff6b35;border-radius:4px}.ratio-preview.widescreen{width:40px;height:22px}.ratio-preview.tallscreen{width:22px;height:40px}.ratio-preview.standard{width:36px;height:27px}.ratio-preview.portrait34{width:27px;height:36px}.ratio-preview.square{width:30px;height:30px}.ratio-preview.portrait{width:24px;height:36px}.ratio-preview.landscape{width:36px;height:24px}@media (max-width:768px){#clothingRatioModal .ratio-grid{grid-template-columns:repeat(2,1fr);gap:.8rem}#clothingRatioModal .ratio-option{padding:.8rem;min-height:70px}#clothingRatioModal .ratio-option span{font-size:.8rem;margin-top:.4rem}.ratio-preview.widescreen{width:32px;height:18px}.ratio-preview.tallscreen{width:18px;height:32px}.ratio-preview.standard{width:28px;height:21px}.ratio-preview.portrait34{width:21px;height:28px}.ratio-preview.square{width:24px;height:24px}.ratio-preview.portrait{width:20px;height:28px}.ratio-preview.landscape{width:28px;height:20px}}@media (max-width:576px){#clothingRatioModal .ratio-grid{grid-template-columns:1fr;gap:.6rem}#clothingRatioModal .ratio-option{padding:.6rem;min-height:60px;flex-direction:row;text-align:left}#clothingRatioModal .ratio-option span{margin-top:0;margin-left:1rem;font-size:.85rem}}.example-images-container{margin-top:.5rem}.example-images-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:8px;padding:8px 0}.example-image-item{position:relative;border-radius:8px;overflow:hidden;cursor:pointer;aspect-ratio:1;background:rgba(255,255,255,.05);transition:transform .2s ease}.example-image-item img{width:100%;height:100%;object-fit:cover;display:block}.example-image-item:hover{transform:translateY(-2px)}.example-image-item.selected{border:2px solid #ff6b35;box-shadow:0 0 0 2px rgba(255,107,53,.3)}.example-image-item.selected::after{content:'✓';position:absolute;top:4px;right:4px;width:16px;height:16px;background:#ff6b35;border-radius:50%;color:#fff;font-size:10px;display:flex;align-items:center;justify-content:center}.upload-container .uploaded-images{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem;overflow:visible}.upload-container .uploaded-image-item{position:relative;width:240px!important;height:240px!important;border-radius:8px;overflow:hidden;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);flex-shrink:0;display:flex;align-items:center;justify-content:center}.upload-container .uploaded-image-item img{width:100%;height:100%;object-fit:contain;object-position:center;display:block;background:#222;border-radius:8px}@media (max-width:768px){.example-images-grid{grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:6px}.upload-container .uploaded-image-item{width:180px!important;height:180px!important}}@media (max-width:576px){.example-images-grid{grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:6px}.upload-container .uploaded-image-item{width:160px!important;height:160px!important}}@media (max-width:480px){.example-images-grid{grid-template-columns:repeat(auto-fill,minmax(60px,1fr));gap:4px}.upload-container .uploaded-image-item{width:140px!important;height:140px!important}}