.batch-image-generation{display:flex;height:100%;gap:16px;padding:16px;background:#f5f5f5;overflow:visible}.batch-image-generation .batch-main-content{flex:1;display:flex;flex-direction:column;min-width:0;background:#fff;border-radius:12px;padding:16px;box-shadow:0 2px 12px #0000000d;border:1px solid #eee;overflow:visible}.batch-image-generation .batch-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #f0f0f0;flex-wrap:wrap;gap:12px;position:relative;z-index:100;overflow:visible}.batch-image-generation .batch-toolbar .toolbar-left,.batch-image-generation .batch-toolbar .toolbar-right{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.batch-image-generation .batch-toolbar .toolbar-divider{width:1px;height:20px;background:#eee;margin:0 4px;flex-shrink:0}.batch-image-generation .batch-generate-btn{background:linear-gradient(135deg,#f39c12,#e67e22)!important;border:none!important;font-weight:600!important;padding:0 20px!important;height:32px!important;white-space:nowrap;color:#fff!important}.batch-image-generation .batch-generate-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #f39c124d}.batch-image-generation .batch-delete-btn{color:#888!important;font-weight:400!important}.batch-image-generation .batch-delete-btn:hover{color:#ff4d4f!important;background:#f5f5f5!important}.batch-image-generation .excel-table-container{flex:1;overflow:auto;border:1px solid #eee;border-radius:8px;background:#fff}.batch-image-generation .excel-table-container.is-filling{cursor:crosshair}.batch-image-generation .excel-table-container.is-selecting{cursor:cell}.batch-image-generation .excel-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.batch-image-generation .excel-table th,.batch-image-generation .excel-table td{border:1px solid #f0f0f0;padding:0;vertical-align:top;height:1px}.batch-image-generation .excel-table th{background:#fafafa;font-weight:600;font-size:12px;color:#888;text-transform:uppercase;letter-spacing:.5px;text-align:center;position:sticky;top:0;z-index:10;height:40px}.batch-image-generation .excel-table .row-number{width:40px;min-width:40px;text-align:center;background:#fafafa;font-weight:500;color:#999;padding:8px;position:sticky;left:0;z-index:5;font-size:11px}.batch-image-generation .excel-table th.row-number{z-index:15}.batch-image-generation .excel-table .col-checkbox{width:40px;min-width:40px;text-align:center;vertical-align:middle}.batch-image-generation .excel-table .col-checkbox .checkbox-wrapper{display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%}.batch-image-generation .excel-table .col-checkbox .checkbox-wrapper :global(.t-checkbox){margin-right:0}.batch-image-generation .excel-table .col-checkbox .checkbox-wrapper :global(.t-checkbox) .t-checkbox__input{border-radius:4px;transition:all .2s}.batch-image-generation .excel-table .col-checkbox .checkbox-wrapper :global(.t-checkbox).t-is-checked .t-checkbox__input{background-color:#f39c12;border-color:#f39c12}.batch-image-generation .excel-table .col-checkbox .checkbox-wrapper :global(.t-checkbox):hover .t-checkbox__input{border-color:#f39c12}.batch-image-generation .excel-table td.row-number{vertical-align:middle}.batch-image-generation .excel-table .col-prompt{width:40%;min-width:250px}.batch-image-generation .excel-table .col-size{width:90px;min-width:90px}.batch-image-generation .excel-table .col-images{width:160px;min-width:160px}.batch-image-generation .excel-table .col-count{width:70px;min-width:70px}.batch-image-generation .excel-table .col-preview{width:180px;min-width:180px}.batch-image-generation .excel-table tr.row-selected td{background:#fff9f0!important}.batch-image-generation .excel-table tr{transition:background .2s cubic-bezier(.4,0,.2,1)}.batch-image-generation .excel-table tr:hover td{background:#fafafa}.batch-image-generation .excel-table tr.row-drag-over td{background:#f39c121a!important;border-top:2px solid #F39C12!important;border-bottom:2px solid #F39C12!important}.batch-image-generation .excel-table tr.fill-preview td{background:#f39c120d!important}.batch-image-generation .excel-table .th-content{display:flex;align-items:center;justify-content:center;padding:0 8px;height:100%;position:relative;white-space:nowrap}.batch-image-generation .excel-table .th-content .t-tooltip{display:inline-flex;align-items:center}.batch-image-generation .excel-table .column-fill-btn{margin-left:6px;opacity:.6;transition:all .2s;color:#999!important;background:#f5f5f5!important;border:1px solid #e0e0e0!important;width:18px!important;height:18px!important;min-height:18px!important;padding:0!important;display:flex!important;align-items:center;justify-content:center;border-radius:4px!important;flex-shrink:0;cursor:pointer}.batch-image-generation .excel-table .column-fill-btn:hover{opacity:1;color:#f39c12!important;border-color:#f39c12!important;background:#fff!important;transform:scale(1.1)}.batch-image-generation .excel-table .column-fill-btn .t-icon{font-size:10px}.batch-image-generation .excel-table th:hover .column-fill-btn{opacity:1}.batch-image-generation .excel-cell{min-height:44px;height:100%;padding:8px 12px;cursor:cell;position:relative;display:flex;align-items:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;box-sizing:border-box;font-size:13px;color:#444}.batch-image-generation .excel-cell.cell-prompt{align-items:flex-start;padding:0}.batch-image-generation .excel-cell.cell-prompt .cell-text,.batch-image-generation .excel-cell.cell-prompt .cell-textarea{padding:12px!important}.batch-image-generation .excel-cell.active{background:#fff!important;box-shadow:inset 0 0 0 2px #f39c12;z-index:2}.batch-image-generation .excel-cell.selected:not(.active){background:#fff9f0!important;box-shadow:inset 0 0 0 1px #f39c12;z-index:1}.is-selecting .batch-image-generation .excel-cell.selected:not(.active){background:#f39c1226!important;box-shadow:inset 0 0 0 1px #f39c12,0 0 4px #f39c1233}.batch-image-generation .excel-cell.filling{background:#f39c121a!important;z-index:5}.batch-image-generation .excel-cell.filling:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border:1px dashed #F39C12;pointer-events:none}.batch-image-generation .excel-cell .cell-text,.batch-image-generation .excel-cell .cell-textarea{width:100%;display:block;font-family:inherit;font-size:13px;line-height:20px;margin:0!important;border:none!important;background:transparent!important;box-sizing:border-box;word-break:break-word;white-space:pre-wrap;outline:none!important;resize:none;color:inherit;vertical-align:top;min-height:unset!important;-webkit-user-select:text;-moz-user-select:text;user-select:text}.batch-image-generation .excel-cell .cell-textarea{overflow:hidden;cursor:text}.batch-image-generation .excel-cell .cell-textarea:focus{box-shadow:none!important}.batch-image-generation .excel-cell .cell-textarea::-moz-placeholder{color:#ccc;font-weight:400}.batch-image-generation .excel-cell .cell-textarea::placeholder{color:#ccc;font-weight:400}.batch-image-generation .excel-cell input[type=number]{width:100%;height:32px;border:none!important;background:#f5f5f5!important;border-radius:6px;text-align:center;font-weight:600;color:#f39c12;font-family:inherit;font-size:13px;outline:none!important;transition:all .2s}.batch-image-generation .excel-cell input[type=number]:hover{background:#fff!important;box-shadow:0 2px 8px #0000000d}.batch-image-generation .excel-cell input[type=number]:focus{background:#fff!important;box-shadow:0 0 0 2px #f39c1233}.batch-image-generation .excel-cell input[type=number]::-webkit-inner-spin-button,.batch-image-generation .excel-cell input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.batch-image-generation .excel-cell input[type=number]{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.batch-image-generation .excel-cell .custom-size-dropdown{position:relative;width:100%}.batch-image-generation .excel-cell .custom-size-dropdown .dropdown-trigger{display:flex;align-items:center;justify-content:center;gap:6px;height:32px;background:#f5f5f5;border-radius:6px;padding:0 8px;font-weight:600;color:#f39c12;font-size:13px;cursor:pointer;transition:all .2s}.batch-image-generation .excel-cell .custom-size-dropdown .dropdown-trigger:hover{background:#fff;box-shadow:0 2px 8px #00000014}.batch-image-generation .excel-cell .custom-size-dropdown .dropdown-trigger svg{color:#f39c12;flex-shrink:0}.batch-image-generation .excel-cell .custom-size-dropdown .dropdown-menu{position:absolute;top:calc(100% + 4px);left:50%;transform:translate(-50%);min-width:100px;background:#fff;border-radius:8px;box-shadow:0 4px 16px #0000001f,0 0 0 1px #0000000d;z-index:1000;padding:4px;max-height:280px;overflow-y:auto}.batch-image-generation .excel-cell .custom-size-dropdown .dropdown-menu .dropdown-item{display:flex;align-items:center;gap:6px;padding:8px 12px;font-size:13px;color:#333;border-radius:6px;cursor:pointer;transition:all .15s;white-space:nowrap}.batch-image-generation .excel-cell .custom-size-dropdown .dropdown-menu .dropdown-item:hover{background:#fff8f0;color:#f39c12}.batch-image-generation .excel-cell .custom-size-dropdown .dropdown-menu .dropdown-item.selected{background:linear-gradient(135deg,#fff8f0,#fff3e0);color:#e67e22;font-weight:600}.batch-image-generation .excel-cell .custom-size-dropdown .dropdown-menu .dropdown-item .check-icon{color:#f39c12;font-size:12px;font-weight:700}.batch-image-generation .excel-cell .fill-handle{position:absolute;bottom:-3px;right:-3px;width:7px;height:7px;background:#f39c12;border:1.5px solid white;cursor:crosshair;z-index:100;display:none;box-shadow:0 1px 2px #0003}.batch-image-generation .excel-cell .fill-handle:hover{transform:scale(1.4)}.batch-image-generation .excel-cell.active .fill-handle{display:block}.batch-image-generation .image-cell-content{display:flex;gap:6px;flex-wrap:wrap;align-items:center;width:100%}.batch-image-generation .add-image-buttons{display:flex;gap:8px;align-items:center}.batch-image-generation .cell-image-thumb{width:36px;height:36px;border-radius:6px;overflow:hidden;position:relative;border:1px solid #eee;flex-shrink:0;box-shadow:0 1px 2px #0000000d}.batch-image-generation .cell-image-thumb img{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.batch-image-generation .cell-image-thumb .remove-btn{position:absolute;top:-2px;right:-2px;background:#0009;color:#fff;border:none;width:14px;height:14px;font-size:10px;border-radius:50%;cursor:pointer;display:none;padding:0;z-index:5}.batch-image-generation .cell-image-thumb .remove-btn:hover{background:#ff4d4f}.batch-image-generation .cell-image-thumb:hover .remove-btn{display:flex;align-items:center;justify-content:center}.batch-image-generation .add-image-btn{width:36px!important;height:36px!important;background:#f5f5f5!important;color:#999!important;border-radius:6px!important;padding:0!important}.batch-image-generation .add-image-btn:hover{background:#fff!important;color:#f39c12!important;box-shadow:0 2px 6px #0000000d}.batch-image-generation .hint-text{font-size:11px;color:#bbb;margin-top:12px;text-align:center}.batch-image-generation .image-library-sidebar{width:280px;background:#fff;border-radius:12px;border:1px solid #eee;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 2px 12px #0000000d;flex-shrink:0}.batch-image-generation .image-library-sidebar.hidden{display:none}.batch-image-generation .image-library-sidebar .library-header{padding:12px 16px;background:#fff;border-bottom:1px solid #f0f0f0;display:flex;align-items:center;justify-content:space-between}.batch-image-generation .image-library-sidebar .library-header h3{font-size:14px;font-weight:600;margin:0;color:#333}.batch-image-generation .image-library-sidebar .library-header .close-btn{color:#999!important}.batch-image-generation .image-library-sidebar .library-header .close-btn:hover{color:#f39c12!important;background:#f5f5f5!important}.batch-image-generation .image-library-sidebar .library-content{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:16px}.batch-image-generation .image-library-sidebar .library-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.batch-image-generation .image-library-sidebar .empty-library{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 16px;text-align:center;color:#999;font-size:13px;line-height:1.5;background:#fafafa;border-radius:8px;border:1px dashed #e0e0e0;white-space:nowrap}.batch-image-generation .image-library-sidebar .library-image{aspect-ratio:1;border-radius:8px;overflow:hidden;cursor:grab;border:1px solid #eee;transition:all .2s;background:#f9f9f9}.batch-image-generation .image-library-sidebar .library-image:hover{border-color:#f39c12;transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.batch-image-generation .image-library-sidebar .library-image img{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.batch-image-generation .preview-cell{min-height:50px;padding:4px 8px!important}.batch-image-generation .preview-cell.preview-idle .preview-idle{color:#ccc;font-size:14px}.batch-image-generation .preview-cell.preview-generating{background:#fff9f0}.batch-image-generation .preview-cell.preview-generating .preview-generating{display:flex;align-items:center;gap:6px;color:#f39c12;font-size:12px;font-weight:500}.batch-image-generation .preview-cell.preview-completed{background:#f6ffed}.batch-image-generation .preview-cell.preview-failed{background:#fff1f0}.batch-image-generation .preview-cell.preview-partial{background:#fffbe6}.batch-image-generation .preview-images{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.batch-image-generation .preview-thumb{width:36px;height:36px;border-radius:6px;overflow:hidden;border:1px solid #eee;flex-shrink:0;background:#fff;box-shadow:0 1px 2px #0000000d}.batch-image-generation .preview-thumb img{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.batch-image-generation .preview-thumb.clickable{cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1)}.batch-image-generation .preview-thumb.clickable:hover{transform:scale(1.1);box-shadow:0 4px 12px #00000026;z-index:10;border-color:#f39c12}.batch-image-generation .preview-more{font-size:11px;color:#888;padding:2px 6px;background:#f0f0f0;border-radius:4px;font-weight:600}.batch-image-generation .preview-more.clickable:hover{background:#f39c12;color:#fff}.batch-image-generation .preview-generating-inline{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:#f39c12;padding:2px 6px;background:#fff9f0;border-radius:4px;white-space:nowrap;font-weight:600}.batch-image-generation .preview-generating-inline .loading-spinner{width:10px;height:10px;border:1.5px solid #F39C12;border-top-color:transparent}.batch-image-generation .preview-error{display:flex;align-items:center;gap:4px;font-size:11px;line-height:1.2}.batch-image-generation .preview-error .preview-error-message{color:#ff4d4f;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.batch-image-generation .preview-error .preview-error-details-link{color:#1890ff;cursor:pointer;font-weight:500}.batch-image-generation .preview-error .preview-error-details-link:hover{text-decoration:underline}.batch-image-generation .preview-partial-info{font-size:10px;color:#faad14;font-weight:600;margin-top:2px}.batch-image-generation .loading-spinner{width:14px;height:14px;border:2px solid #eee;border-top:2px solid #F39C12;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.image-preview-dialog.t-dialog{position:fixed!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important}.image-preview-dialog .t-dialog__body{padding:16px;max-height:80vh;overflow:auto}.add-rows-section{display:flex;justify-content:center;align-items:center;gap:16px;padding:12px 0;border-top:1px dashed #e0e0e0;margin-top:4px}.model-selector-wrapper{min-width:180px}.model-selector-wrapper .t-select{width:100%}.library-toggle-active{color:#f39c12!important;background:#f39c121a!important;border-color:#f39c124d!important}@media(max-width:768px){.batch-image-generation{flex-direction:column;padding:8px;gap:8px}.batch-image-generation .batch-main-content{padding:12px;border-radius:8px}.batch-image-generation .batch-toolbar{flex-direction:column;align-items:stretch;gap:8px;margin-bottom:8px;padding-bottom:8px}.batch-image-generation .batch-toolbar .toolbar-left,.batch-image-generation .batch-toolbar .toolbar-right{justify-content:flex-start;flex-wrap:wrap;gap:6px}.batch-image-generation .batch-toolbar .toolbar-divider{display:none}.batch-image-generation .batch-generate-btn{padding:0 12px!important;font-size:13px!important}.batch-image-generation .excel-table-container{border-radius:6px}.batch-image-generation .excel-table th,.batch-image-generation .excel-table td{font-size:11px}.batch-image-generation .excel-table th{height:36px}.batch-image-generation .excel-table .row-number{width:32px;min-width:32px;padding:4px;font-size:10px}.batch-image-generation .excel-table .col-checkbox{width:32px;min-width:32px}.batch-image-generation .excel-table .col-prompt{width:150px;min-width:150px}.batch-image-generation .excel-table .col-size{width:70px;min-width:70px}.batch-image-generation .excel-table .col-images{width:100px;min-width:100px}.batch-image-generation .excel-table .col-count{width:50px;min-width:50px}.batch-image-generation .excel-table .col-preview{width:100px;min-width:100px}.batch-image-generation .excel-table .th-content{padding:0 4px;font-size:10px}.batch-image-generation .excel-table .column-fill-btn{width:16px!important;height:16px!important;min-height:16px!important;margin-left:4px}.batch-image-generation .excel-cell{min-height:36px;padding:6px 8px;font-size:12px}.batch-image-generation .excel-cell.cell-prompt .cell-text,.batch-image-generation .excel-cell.cell-prompt .cell-textarea{padding:8px!important;font-size:12px}.batch-image-generation .excel-cell input[type=number]{height:28px;font-size:12px}.batch-image-generation .excel-cell .custom-size-dropdown .dropdown-trigger{height:28px;font-size:11px;padding:0 6px}.batch-image-generation .cell-image-thumb,.batch-image-generation .preview-thumb{width:28px;height:28px;border-radius:4px}.batch-image-generation .add-image-btn{width:28px!important;height:28px!important}.batch-image-generation .image-library-sidebar{width:100%;position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000;border-radius:0;border:none}.batch-image-generation .image-library-sidebar.hidden{display:none}.batch-image-generation .image-library-sidebar .library-header,.batch-image-generation .image-library-sidebar .library-content{padding:12px}.batch-image-generation .image-library-sidebar .library-grid{grid-template-columns:repeat(4,1fr);gap:8px}.batch-image-generation .add-rows-section{padding:8px 0;gap:8px;flex-wrap:wrap}.batch-image-generation .model-selector-wrapper{min-width:140px}.batch-image-generation .hint-text{margin-top:8px;font-size:10px}}@media(max-width:480px){.batch-image-generation{padding:4px}.batch-image-generation .batch-main-content{padding:8px}.batch-image-generation .batch-toolbar .toolbar-left,.batch-image-generation .batch-toolbar .toolbar-right{gap:4px}.batch-image-generation .excel-table .row-number,.batch-image-generation .excel-table .col-checkbox{width:28px;min-width:28px}.batch-image-generation .excel-table .col-prompt{width:120px;min-width:120px}.batch-image-generation .excel-table .col-size{width:60px;min-width:60px}.batch-image-generation .excel-table .col-images{width:80px;min-width:80px}.batch-image-generation .excel-table .col-count{width:40px;min-width:40px}.batch-image-generation .excel-table .col-preview{width:80px;min-width:80px}.batch-image-generation .cell-image-thumb,.batch-image-generation .preview-thumb{width:24px;height:24px}.batch-image-generation .add-image-btn{width:24px!important;height:24px!important}}
