/* Deliberately scoped to batch inputs, examples and local media previews. */
body#focused-ui-preview .panel:is(.batch-zone,#qhBatch,#editBatchList,.img-batch-grid){--fu-bg:#181b22;--fu-card:#f7faff;--fu-border:#d6e2f3;--fu-text:#29496f;--fu-muted:#7185a3;--fu-accent:#7768df}
body#focused-ui-preview .panel .batch-zone,body#focused-ui-preview .panel #qhBatch{padding:24px!important;margin-top:28px!important;border:1px solid #d6e2f3!important;border-radius:16px!important;background:#f7faff!important;box-shadow:none!important;min-width:0}
body#focused-ui-preview .panel .batch-toggle{border:0!important;background:none!important;padding:0 0 18px!important;margin-bottom:0!important}
body#focused-ui-preview .panel .batch-toggle-label{font-size:14px!important;line-height:1.8!important;flex-wrap:wrap;color:#29496f!important;letter-spacing:0!important}
body#focused-ui-preview .panel:is(.batch-config,.batch-params){display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:14px!important;padding:16px!important;border:1px solid #d6e2f3!important;border-radius:10px!important;background:#f7faff!important;margin:12px 0!important;color:#29496f!important}
body#focused-ui-preview .panel .batch-params>div{flex:1 1 160px!important;min-width:0!important;max-width:100%!important}
body#focused-ui-preview .panel .batch-config .hint{flex:1 1 220px!important;font-size:12px!important;line-height:1.8!important;color:#7185a3!important;white-space:normal!important}
body#focused-ui-preview .panel .fu-list-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:24px 0 14px;color:#29496f;font-size:15px;font-weight:650}
body#focused-ui-preview .panel .fu-task-count{color:#7185a3;font-size:12px;font-weight:400;line-height:1.6}
body#focused-ui-preview .panel .fu-density{margin-left:auto;border:1px solid #d6e2f3;background:#f7faff;color:#29496f;border-radius:7px;padding:7px 11px;cursor:pointer;font-size:12px;min-height:34px}
body#focused-ui-preview .panel .fu-task-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;align-items:start!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0 0 22px!important}
body#focused-ui-preview .panel .fu-task-grid.fu-compact{grid-template-columns:repeat(3,minmax(0,1fr))!important}
body#focused-ui-preview .panel .fu-task-card{min-width:0!important;width:100%!important;max-width:none!important;padding:20px!important;border:1px solid #d6e2f3!important;border-radius:12px!important;background:#f7faff!important;color:#29496f!important;box-shadow:none!important;overflow:visible!important;height:auto!important;display:flex!important;flex-direction:column!important;gap:12px!important;box-sizing:border-box!important}
body#focused-ui-preview .panel .fu-task-card:focus-within{border-color:#c8cdf6!important;box-shadow:0 0 0 2px #c8cdf615!important}
body#focused-ui-preview .panel .batch-slot-head{display:flex!important;align-items:center!important;gap:10px!important;border-bottom:1px solid #d6e2f3!important;padding:0 0 13px!important;margin:0!important}
body#focused-ui-preview .panel .slot-num{position:static!important;width:28px!important;height:28px!important;display:grid!important;place-items:center!important;border-radius:7px!important;background:#f7faff!important;color:#7768df!important;font-size:13px!important}
body#focused-ui-preview .panel .fu-task-title{font-size:14px;font-weight:600;color:#29496f}
body#focused-ui-preview .panel .fu-card-note{margin-left:auto;color:#7185a3;font-size:11px;font-weight:400}
body#focused-ui-preview .panel .fu-task-card:is(.field-label,.slot-label,label){font-size:12px!important;color:#29496f!important;line-height:1.7!important;letter-spacing:0!important;white-space:normal!important;overflow-wrap:anywhere}
body#focused-ui-preview .panel .fu-task-card .slot-files{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr))!important;gap:12px!important;min-width:0!important}
body#focused-ui-preview .panel .fu-task-card:is(.slot-file-col,.slot-ref-col){min-width:0!important;width:auto!important;max-width:none!important}
body#focused-ui-preview .panel .fu-task-card .slot-file-pick{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:6px!important;min-height:104px!important;height:auto!important;padding:14px 10px!important;border:1px dashed #d6e2f3!important;border-radius:9px!important;background:#f7faff!important;text-align:center!important;cursor:pointer}
body#focused-ui-preview .panel .fu-task-card .sfp-name{max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:11px!important;color:#7185a3!important}
body#focused-ui-preview .panel .fu-task-card .sfp-text{font-size:12px!important;color:#7768df!important}
body#focused-ui-preview .panel .fu-task-card:is(textarea,input:not([type=file]):not([type=checkbox]):not([type=radio]),select){box-sizing:border-box!important;max-width:100%!important;min-width:0!important;border:1px solid #d6e2f3!important;border-radius:7px!important;background:#f7faff!important;color:#29496f!important;font-size:13px!important;line-height:1.65!important;padding:10px!important;box-shadow:none!important}
body#focused-ui-preview .panel .fu-task-card textarea{width:100%!important;min-height:136px!important;resize:vertical!important}
body#focused-ui-preview .panel .fu-task-card:is(input,textarea)::placeholder{color:#7185a3!important;opacity:1!important}
body#focused-ui-preview .panel .fu-task-card .slot-status{min-height:35px!important;margin-top:4px!important;padding:10px!important;border-radius:6px!important;white-space:normal!important;overflow-wrap:anywhere!important;font-size:12px!important;line-height:1.7!important}
body#focused-ui-preview .panel .slot-ref-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.fu-previews{grid-column:1/-1;min-width:0;margin:10px 0;position:relative}
body#focused-ui-preview .fu-previews .fu-local-note{font-size:11px!important;line-height:1.6!important;color:#7185a3!important;margin:5px 0 9px!important}
body#focused-ui-preview .fu-file-preview{margin:0 0 10px!important;padding:10px;background:#f7faff;border:1px solid #d6e2f3;border-radius:9px;min-width:0;overflow:hidden}
body#focused-ui-preview .fu-file-preview figcaption{color:#29496f;font-size:12px;overflow-wrap:anywhere;margin-bottom:9px;line-height:1.6}
body#focused-ui-preview .fu-file-preview:is(img,video){display:block!important;width:100%!important;height:180px!important;object-fit:contain!important;background:#f7faff!important;border-radius:5px!important}
body#focused-ui-preview .fu-file-preview audio{display:block;width:100%;min-width:0;height:40px}
body#focused-ui-preview .fu-file-meta{font-size:11px;color:#7185a3;margin:8px 0 0;line-height:1.6}
body#focused-ui-preview:is(.fu-zoom,.fu-hide,.fu-case-zoom){background:#f7faff;border:1px solid #d6e2f3;border-radius:6px;color:#29496f;padding:7px 11px;font-size:12px;cursor:pointer;margin-top:8px;min-height:32px}
body#focused-ui-preview .fu-lightbox{padding:52px 16px 16px;background:#f7faff;color:#29496f;border:1px solid #d6e2f3;border-radius:12px;max-width:92vw;max-height:90vh;box-sizing:border-box}
body#focused-ui-preview .fu-lightbox::backdrop{background:#f7faffd9}body#focused-ui-preview .fu-lightbox img{display:block;max-width:85vw;max-height:75vh;object-fit:contain}body#focused-ui-preview .fu-close{position:absolute;top:12px;right:16px;background:#f7faff;color:#29496f;border:1px solid #d6e2f3;border-radius:6px;padding:6px 12px;cursor:pointer}
body#focused-ui-preview .panel .fu-case-section,body#focused-ui-preview .panel .fu-demo{background:#f7faff!important;border:1px solid #d6e2f3!important;border-radius:14px!important;padding:20px!important;margin:20px 0 26px!important;box-shadow:none!important;min-width:0!important}
body#focused-ui-preview .panel .fu-case-section .wash-case-title{font-size:13px!important;line-height:1.8!important;color:#29496f!important;padding:0 0 15px!important;margin:0!important;white-space:normal!important;letter-spacing:0!important}
body#focused-ui-preview .panel .fu-case-section .wash-case-imgs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;align-items:start!important;justify-content:stretch!important}
body#focused-ui-preview .panel .fu-case-section .wc-arrow{display:none!important}
body#focused-ui-preview .panel .fu-case-section .wc-item{min-width:0!important;max-width:none!important;width:auto!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;background:#f7faff!important;border:1px solid #d6e2f3!important;border-radius:10px!important;padding:10px!important;box-sizing:border-box!important}
body#focused-ui-preview .panel .fu-case-section:is(img,video),body#focused-ui-preview .panel .fu-demo video{width:100%!important;max-width:none!important;height:240px!important;object-fit:contain!important;display:block!important;background:#f7faff!important;border-radius:6px!important;margin:0!important;border:0!important}
body#focused-ui-preview .panel .fu-case-section em{position:static!important;display:block!important;font-size:12px!important;line-height:1.7!important;padding:10px 4px 0!important;background:none!important;color:#29496f!important;font-style:normal!important;text-align:left!important}
body#focused-ui-preview .panel .fu-case-section.at-cases-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}body#focused-ui-preview .panel .at-cases-row>.wash-case-title{grid-column:1/-1}
body#focused-ui-preview .panel .fu-task-grid:empty{display:none!important}
@media(max-width:1200px){body#focused-ui-preview .panel .fu-task-grid.fu-compact{grid-template-columns:repeat(2,minmax(0,1fr))!important}.fu-card-note{display:none}}
@media(max-width:850px){body#focused-ui-preview .panel:is(.fu-task-grid,.fu-task-grid.fu-compact){grid-template-columns:minmax(0,1fr)!important}body#focused-ui-preview .panel .fu-case-section:is(img,video){height:190px!important}}
@media(max-width:520px){body#focused-ui-preview .panel:is(.batch-zone,#qhBatch){padding:14px!important}body#focused-ui-preview .panel .fu-task-card{padding:14px!important}body#focused-ui-preview .panel .fu-case-section .wash-case-imgs,body#focused-ui-preview .panel .fu-case-section.at-cases-row{grid-template-columns:minmax(0,1fr)!important}body#focused-ui-preview .panel .fu-list-heading{gap:8px}.fu-task-count{flex-basis:100%}body#focused-ui-preview .panel .fu-density{margin-left:0}}
@media(prefers-reduced-motion:reduce){.fu-task-card{transition:none!important}}

body#focused-ui-preview .panel .fu-case-section .wash-case-imgs{align-items:stretch!important}
body#focused-ui-preview .panel .fu-case-section .wc-item{position:relative!important}
body#focused-ui-preview .panel .fu-case-zoom{position:absolute;right:18px;top:16px;margin:0;background:#f7faffe6;border-color:#d6e2f3;box-shadow:0 2px 8px #d6e2f344}
body#focused-ui-preview .panel .fu-task-card .slot-files{margin:0!important;gap:12px!important}
body#focused-ui-preview .panel .fu-task-card .slot-check-wrap{margin:0!important;padding:10px!important;min-height:40px!important}
body#focused-ui-preview .panel .fu-task-card .slot-file-pick{margin:6px 0 0!important}
body#focused-ui-preview .panel .fu-task-card .slot-actions{margin:0!important;padding:0!important}

/* Independent image-edit batch inputs must not live inside half of a two-column form. */
body#focused-ui-preview .panel .fu-edit-batch-section{grid-column:1/-1;min-width:0;background:#f7faff;padding:24px!important;border:1px solid #d6e2f3!important;border-radius:16px}
body#focused-ui-preview .panel .fu-case-section .at-cases-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
body#focused-ui-preview .panel .fu-task-card .dropzone{min-height:116px!important;height:auto!important;padding:18px 12px!important}
body#focused-ui-preview .panel .fu-task-card .sfp-name{position:static!important;text-align:center!important;align-self:center!important}
