/* Resize workbench: scoped so shared navigation and utilities retain their styles. */
.rs-workbench{--rs-blue:#256fd9;--rs-line:#d9e4f2;--rs-muted:#65758c;display:grid;grid-template-columns:330px minmax(0,1fr);align-items:start;gap:20px;max-width:1600px;margin:24px auto;padding:0 20px;color:#223149;font-family:inherit;font-size:14px}
.rs-workbench *,.rs-dialog *{box-sizing:border-box}
.rs-workbench [hidden]{display:none!important}
.rs-sidebar,.rs-results{background:#fff;border:1px solid var(--rs-line);border-radius:8px;min-width:0;box-shadow:0 5px 20px #1c467208}
.rs-sidebar{position:sticky;top:105px;max-height:calc(100dvh - 125px);overflow:auto}
.rs-workbench h1,.rs-workbench h2{font-size:20px;line-height:1.4;margin:0 0 8px}
.rs-workbench h3{font-size:18px;margin:10px 0}
.rs-workbench p{line-height:1.6;margin:6px 0 12px}
.rs-section{padding:18px;border-bottom:1px solid var(--rs-line)}
.rs-workbench fieldset{margin:0;padding:0;border:0;min-width:0}
.rs-workbench label:not(.rs-sr-only){display:block;font-family:inherit;font-size:14px;font-weight:600;line-height:1.5;margin:12px 0 6px}
.rs-workbench select,.rs-workbench input[type=number]{display:block;width:100%;min-width:0;height:42px;border:1px solid #cbd9ec;border-radius:8px;padding:8px 10px;font:inherit;background:#fff;color:#223149}
.rs-workbench input[type=range]{width:100%;margin:8px 0;accent-color:var(--rs-blue)}
.rs-workbench input[type=color]{height:40px;width:100%;border:1px solid var(--rs-line);border-radius:8px;background:#fff;padding:3px}
.rs-workbench input[type=checkbox]{width:18px;height:18px;margin:0;accent-color:var(--rs-blue);flex-shrink:0}
.rs-workbench label.rs-check{display:flex;align-items:flex-start;gap:9px;font-weight:400;margin-top:15px}
.rs-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.rs-muted,.rs-help{color:var(--rs-muted)}
.rs-workbench .rs-help{font-size:12px;line-height:1.6;margin:8px 0}
.rs-workbench .rs-error{color:#b42318}
.rs-success{color:#177552}
.rs-button{font:inherit;font-size:14px;line-height:1.4;min-height:40px;padding:9px 14px;border:1px solid #cbd9ec;border-radius:8px;background:#f7faff;color:#2563ad;cursor:pointer;white-space:nowrap;box-shadow:none;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.rs-button:hover:not(:disabled){background:#eaf2ff;border-color:#82ace9}
.rs-button.rs-primary{background:#256fd9;color:#fff;border-color:#256fd9}
.rs-button.rs-primary:hover:not(:disabled){background:#1c5dbb}
.rs-button:disabled{opacity:.45;cursor:default}
.rs-workbench :is(button,input,select,summary):focus-visible,.rs-dialog button:focus-visible{outline:3px solid #8cb9ff;outline-offset:2px}
.rs-actions{display:flex;gap:8px}.rs-actions>*{flex:1}
.rs-sticky-actions{position:sticky;bottom:0;display:flex;gap:8px;background:#fff;padding:14px 18px;border-top:1px solid var(--rs-line);box-shadow:0 -4px 10px #fff9;flex-wrap:wrap}
.rs-sticky-actions .rs-primary{flex:1}
.rs-workbench details{border-top:1px solid var(--rs-line);margin-top:16px;padding-top:12px}
.rs-workbench summary{color:#2563ad;cursor:pointer;padding:5px 0}
.rs-workbench details.rs-settings-panel{border:0;margin:0;padding:0}
.rs-workbench .rs-settings-panel>summary{padding:14px 18px;border-bottom:1px solid var(--rs-line);font-weight:600}
.rs-workbench .rs-settings-panel[open]>summary{font-weight:400}
.rs-workbench output{float:right;color:#256fd9}
.rs-results-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:20px;border-bottom:1px solid var(--rs-line)}
.rs-results-header>div:first-child{min-width:0}
.rs-workbench .rs-results-header p{margin:4px 0;font-size:13px}
.rs-downloads{display:flex;align-items:center;gap:8px;justify-content:flex-end}
.rs-downloads select{max-width:200px;width:auto;min-width:135px}
.rs-progress{padding:14px 20px;background:#f7faff;border-bottom:1px solid var(--rs-line)}
.rs-progress progress{width:100%;height:6px;display:block;accent-color:#256fd9;border:0}
.rs-workbench .rs-progress p{font-size:13px;margin:10px 0 0;overflow-wrap:anywhere}
.rs-empty{text-align:center;padding:90px 20px;color:#65758c}
.rs-empty>span{font-size:52px;line-height:1;color:#9eb9dd}
.rs-image-list{padding:0 20px}
.rs-image{display:grid;grid-template-columns:76px minmax(0,1fr) auto;gap:14px;align-items:center;border-bottom:1px solid var(--rs-line);padding:16px 0}
.rs-thumbnail{width:76px;height:76px;border:1px solid var(--rs-line);border-radius:8px;padding:4px;cursor:pointer;background:repeating-conic-gradient(#eef1f6 0% 25%,#fff 0% 50%) 0/16px 16px;color:#65758c}
.rs-thumbnail img{display:block;width:100%;height:100%;object-fit:contain}
.rs-thumbnail:disabled{cursor:default}
.rs-image-info{min-width:0;font-size:13px;line-height:1.5}
.rs-image-info strong,.rs-image-info span{display:block;overflow-wrap:anywhere}
.rs-image-info strong{font-size:14px;margin-bottom:4px}
.rs-image-info span+span{margin-top:3px}
.rs-pagination{display:flex;align-items:center;justify-content:center;gap:20px;padding:16px}
.rs-dialog{border:1px solid #d9e4f2;border-radius:8px;max-width:min(1000px,94vw);width:900px;max-height:90dvh;padding:18px;color:#223149;font:inherit}
.rs-dialog::backdrop{background:#172b4dc2}
.rs-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}
.rs-dialog-heading strong{overflow-wrap:anywhere;min-width:0}
.rs-dialog>img{display:block;max-height:65dvh;width:100%;object-fit:contain;background:repeating-conic-gradient(#eef1f6 0% 25%,#fff 0% 50%) 0/20px 20px}
.rs-dialog>p{font-size:13px;color:#65758c}
.rs-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1050px){.rs-workbench{grid-template-columns:290px minmax(0,1fr);gap:14px;padding:0 14px}.rs-results-header{flex-direction:column}.rs-downloads{justify-content:flex-start}.rs-image{grid-template-columns:64px minmax(0,1fr);gap:10px}.rs-thumbnail{width:64px;height:64px}.rs-image>.rs-button{grid-column:2;justify-self:start;min-height:36px;padding:6px 12px}}
@media(max-width:700px){.rs-workbench{grid-template-columns:minmax(0,1fr);padding:0 12px;margin:16px auto;gap:16px}.rs-sidebar{position:static;max-height:none;overflow:visible}.rs-sticky-actions{position:static}.rs-section{padding:16px}.rs-results-header{padding:16px}.rs-image-list{padding:0 14px}.rs-progress{padding:12px 16px}.rs-empty{padding:55px 16px}.rs-workbench h1,.rs-workbench h2{font-size:19px}.rs-dialog{padding:12px}.rs-dialog-heading{gap:8px}.rs-downloads{width:100%}.rs-downloads select{flex:1;max-width:none}}
/* Phase two: queue controls, local presets and comparison. */
.rs-workbench input:is([type=text],[type=search]){display:block;width:100%;min-width:0;height:42px;border:1px solid #cbd9ec;border-radius:8px;padding:8px 10px;font:inherit;background:#fff;color:#223149}
.rs-inline{display:flex;align-items:center;gap:8px}.rs-inline>*{min-width:0}.rs-inline select,.rs-inline input{flex:1}
.rs-list-toolbar{padding:14px 20px;border-bottom:1px solid var(--rs-line)}
.rs-list-toolbar>.rs-inline{max-width:650px}.rs-list-toolbar select{width:auto;max-width:185px}
.rs-batch-actions{display:flex;gap:8px 12px;align-items:center;flex-wrap:wrap;margin-top:10px}
.rs-workbench .rs-batch-actions .rs-check{margin:0;font-size:12px}
.rs-workbench .rs-button-small{min-height:34px;padding:6px 10px;font-size:12px}
.rs-drop-zone{padding:12px 8px;border:1px dashed #a9c4e7;border-radius:8px;margin-top:12px;text-align:center;line-height:1.6;color:#34669f;background:#f7faff;cursor:pointer}
.rs-drop-zone.is-dragging{background:#e4efff;border-color:#256fd9}.rs-drop-zone[aria-disabled=true]{opacity:.5;cursor:default}
.rs-drop-zone:focus-visible{outline:3px solid #8cb9ff;outline-offset:2px}
.rs-filter-empty{text-align:center;padding:30px 16px;color:#65758c}
.rs-image{grid-template-columns:20px 76px minmax(0,1fr) auto;gap:12px}
.rs-image .rs-row-selection{margin:0}
.rs-image-info .rs-remove{padding:2px 0;margin-top:4px;color:#65758c;background:transparent;border:0;border-radius:0;box-shadow:none;min-height:0;display:inline;font:inherit;font-size:12px;cursor:pointer;text-decoration:underline}
.rs-progress progress::-webkit-progress-bar{background:#e3ebf5;border-radius:4px}.rs-progress progress::-webkit-progress-value{background:#256fd9;border-radius:4px}.rs-progress progress::-moz-progress-bar{background:#256fd9;border-radius:4px}
.rs-comparison{display:grid;grid-template-columns:1fr 1fr;gap:12px}.rs-comparison figure{margin:0;min-width:0}.rs-comparison figcaption{font-size:13px;margin:0 0 8px;color:#65758c}
.rs-comparison img{display:block;width:100%;height:55dvh;object-fit:contain;background:repeating-conic-gradient(#eef1f6 0% 25%,#fff 0% 50%) 0/20px 20px}
@media(max-width:1050px){.rs-image{grid-template-columns:20px 64px minmax(0,1fr);gap:8px}.rs-image>.rs-button{grid-column:3}}
@media(max-width:700px){.rs-list-toolbar{padding:12px 14px}.rs-list-toolbar>.rs-inline{flex-wrap:wrap}.rs-list-toolbar select{max-width:none;width:100%}.rs-comparison{grid-template-columns:1fr}.rs-comparison img{height:30dvh}}
