:root{font-family:Inter,"Microsoft YaHei",sans-serif;color:#172033;background:#f5f7fb}*{box-sizing:border-box}body{margin:0}.batch-shell{min-height:100vh}.batch-head{display:flex;justify-content:space-between;align-items:center;padding:30px 5vw;background:#fff;border-bottom:1px solid #e5eaf2}.batch-head p{margin:0;color:#2563eb;font-size:11px;font-weight:800;letter-spacing:.14em}.batch-head h1{margin:5px 0;font-size:28px}.batch-head span{color:#64748b;font-size:13px}.batch-head-right{display:grid;justify-items:end;gap:12px}.batch-head nav{display:flex;gap:10px}.batch-head a,.batch-actions button,.results-head button{padding:9px 12px;border:1px solid #d8dfeb;border-radius:7px;background:#fff;color:#334155;text-decoration:none;font-size:12px}.batch-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:20px;max-width:1500px;margin:20px auto;padding:0 20px}.batch-controls{display:grid;gap:13px;align-content:start;padding:20px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.batch-controls label{display:grid;gap:6px;color:#334155;font-size:12px;font-weight:700}.batch-controls input,.batch-controls select,.batch-controls textarea{width:100%;padding:9px;border:1px solid #d8dfeb;border-radius:7px;background:#fff;color:#1e293b;font:inherit;font-weight:400}.batch-controls textarea{min-height:95px;resize:vertical}.batch-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.check{display:flex!important;grid-template-columns:none!important;align-items:center;display:flex!important;font-weight:500!important}.check input{width:auto}.upload-row{display:grid;grid-template-columns:1fr 1fr;gap:9px}.upload-card{min-height:108px;padding:12px;border:1px dashed #aab8cc;border-radius:8px;background:#f8fafc}.upload-card input{padding:0;border:0;background:transparent}.upload-card small,.upload-card span{color:#64748b;font-size:10px;font-weight:400}.upload-card span{display:block;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.batch-actions{display:flex;gap:8px}.batch-actions .primary{flex:1;border-color:#2563eb;background:#2563eb;color:#fff}.status{min-height:18px;color:#64748b;font-size:12px}.progress{height:4px;overflow:hidden;border-radius:99px;background:#dbeafe}.progress i{display:block;width:0;height:100%;background:#2563eb;transition:width .25s}.batch-results{min-width:0;padding:20px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.results-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.results-head strong{font-size:16px}.results-head span{margin-left:10px;color:#64748b;font-size:11px}.results-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:15px}.result-card{overflow:hidden;border:1px solid #e2e8f0;border-radius:9px;background:#fff}.result-card img,.result-empty{display:block;width:100%;aspect-ratio:1;object-fit:cover;background:#f1f5f9}.result-empty{display:grid;place-items:center;padding:15px;color:#b91c1c;font-size:12px;text-align:center}.result-card footer{padding:10px;font-size:11px}.result-card footer b{display:block;margin-bottom:5px}.result-card footer span{display:block;color:#64748b}.result-card footer button,.result-download{display:inline-block;margin-top:8px;margin-right:6px;padding:5px 8px;border:1px solid #bfdbfe;border-radius:5px;background:#eff6ff;color:#1d4ed8;font-size:11px;text-decoration:none}.result-card footer button{cursor:pointer}@media(max-width:900px){.batch-layout{grid-template-columns:1fr}.batch-head{display:block}.batch-head nav{margin-top:15px}}
.batch-prompt-stack{display:grid;gap:13px}
body.auth-locked .batch-shell{filter:blur(2px);pointer-events:none;user-select:none}
.upload-card-wide{width:100%}.upload-card-wide small{display:block;line-height:1.5}.upload-card-wide input{margin-top:8px}
.results-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.results-tools button,.group-select-all{padding:8px 10px;border:1px solid #d8dfeb;border-radius:7px;background:#fff;color:#334155;font-size:12px}.group-select-all{display:flex;align-items:center;gap:5px}.group-select-all input{margin:0}
.result-group{grid-column:1/-1;border:1px solid #dbe4f0;border-radius:10px;padding:12px;background:#f8fafc}.result-group-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 10px;padding:0 2px;color:#1e293b}.result-group-head span{font-size:11px;color:#64748b}.result-group-head label{display:flex;align-items:center;gap:6px;font-size:13px}.result-group-actions{display:flex;align-items:center;gap:6px}.result-group-actions button{padding:5px 8px;border:1px solid #bfdbfe;border-radius:5px;background:#eff6ff;color:#1d4ed8;font-size:11px;cursor:pointer}.result-group-actions button[data-delete-group]{border-color:#fecaca;background:#fff1f2;color:#be123c}.result-group-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:15px}
.batch-live-notice{margin:0 0 16px;padding:14px 16px;border:2px solid #2563eb;border-radius:10px;background:#eff6ff;color:#1d4ed8;font-size:14px;font-weight:800;line-height:1.5}.batch-live-notice[data-tone="waiting"]{border-color:#d97706;background:#fffbeb;color:#92400e}.batch-live-notice[data-tone="done"]{border-color:#16a34a;background:#f0fdf4;color:#15803d}.batch-live-notice[data-tone="partial"]{border-color:#d97706;background:#fffbeb;color:#b45309}.batch-live-notice[data-tone="failed"]{border-color:#dc2626;background:#fef2f2;color:#b91c1c}
.panorama-approval{display:grid;gap:8px;margin:0 0 16px;padding:16px;border:2px solid #f59e0b;border-radius:10px;background:#fffbeb;color:#78350f}.panorama-approval strong{font-size:15px}.panorama-approval span{font-size:12px;line-height:1.6}.panorama-approval-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}.panorama-approval-actions button{padding:10px 14px;border:1px solid #d8dfeb;border-radius:7px;background:#fff;color:#334155;font-size:12px;font-weight:700;cursor:pointer}.panorama-approval-actions .primary{border-color:#d97706;background:#d97706;color:#fff}.panorama-approval-actions button:focus-visible{outline:3px solid #fbbf24;outline-offset:2px}
.panorama-approval[hidden]{display:none}
.group-select-all:has(input:disabled){opacity:.55;cursor:not-allowed}.group-select-all input:disabled{cursor:not-allowed}.results-tools button[hidden]{display:none}
.results-head{align-items:flex-start;gap:12px;flex-wrap:wrap}.results-tools{min-width:0}.results-tools button,.group-select-all{white-space:nowrap;cursor:pointer}.results-tools button:disabled{opacity:.5;cursor:not-allowed}.batch-history-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.batch-history-actions button,.batch-history-actions a{margin-right:0}.batch-history-card footer b{overflow-wrap:anywhere}.results-tools .danger-action,.batch-history-actions .danger-action{border-color:#fecaca;background:#fff1f2;color:#be123c}
.result-image-preview{position:relative;display:block;width:100%;padding:0;border:0;background:#f1f5f9;cursor:zoom-in;font:inherit}
.result-image-preview:focus-visible{outline:3px solid #2563eb;outline-offset:-3px}
.result-image-preview span{position:absolute;right:10px;bottom:10px;padding:5px 9px;border-radius:5px;background:rgba(15,23,42,.78);color:#fff;font-size:12px;pointer-events:none}
.batch-image-viewer{width:min(1200px,96vw);max-width:96vw;height:90vh;height:90dvh;max-height:96dvh;padding:0;border:1px solid #d8dfeb;border-radius:12px;background:#fff;color:#172033;overflow:hidden}
.batch-image-viewer[open]{display:flex;flex-direction:column}
.batch-image-viewer::backdrop{background:rgba(15,23,42,.76)}
.batch-viewer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #e2e8f0}
.batch-viewer-head strong{min-width:0;overflow-wrap:anywhere;font-size:14px}
.batch-viewer-head button,.batch-viewer-tools button,.batch-viewer-tools a{flex-shrink:0;padding:8px 12px;border:1px solid #d8dfeb;border-radius:7px;background:#fff;color:#334155;font:inherit;font-size:12px;cursor:pointer;text-decoration:none}
.batch-viewer-head button{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}
.batch-viewer-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 16px}
.batch-viewer-tools span{min-width:64px;text-align:center;color:#64748b;font-size:12px}
.batch-viewer-tools button:disabled{opacity:.45;cursor:default}
.batch-viewer-status{margin:0;padding:0 16px 8px;color:#64748b;font-size:12px}
.batch-viewer-viewport{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;background:#eef2f7}
.batch-viewer-canvas{display:grid;place-items:center;min-width:100%;min-height:100%;width:max-content;padding:12px}
.batch-viewer-canvas img{display:block;max-width:none;max-height:none;height:auto;object-fit:contain}
.batch-viewer-canvas img[hidden]{display:none}
@media(max-width:600px){.batch-image-viewer{width:96vw;height:94vh;height:94dvh}.batch-viewer-head{padding:10px 12px}.batch-viewer-tools{gap:6px;padding:8px 12px}.batch-viewer-head button,.batch-viewer-tools button,.batch-viewer-tools a{min-height:40px;padding:8px}.batch-viewer-tools span{min-width:56px}}
.batch-controls label small{color:#64748b;font-size:10px;font-weight:400;line-height:1.45}
.upload-card span#batchScenesNames{display:flex;flex-wrap:wrap;gap:5px;align-items:center;white-space:normal;overflow:visible}
.scene-count-label{width:100%;color:#64748b;font-size:10px}
.scene-file-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 6px;border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#475569;font-size:10px;line-height:1.2}
.scene-file-chip button{width:16px;height:16px;padding:0;border:0;border-radius:50%;background:#e2e8f0;color:#475569;font-size:13px;line-height:15px;cursor:pointer}
.scene-file-chip button:hover{background:#fecaca;color:#b91c1c}
