body[data-tool="resize"] .image-fields fieldset{border:0;padding:0;margin:0 0 18px;min-width:0;display:grid;gap:9px}body[data-tool="resize"] .image-fields legend{font-size:14px;font-weight:700;color:#6b7b6d;margin-bottom:12px}body[data-tool="resize"] .image-fields{gap:0}body[data-tool="resize"] input:disabled{opacity:.4;cursor:not-allowed}body[data-tool="resize"] .resize-preview-card{background:#fff;border:1px solid #dce6d5!important;border-radius:18px!important;margin:16px;box-shadow:0 6px 22px #27452b08;padding:18px!important}body[data-tool="resize"] .image-workspace{background:#f8faf4}body[data-tool="resize"] .controls{background:#fff}body[data-tool="resize"] #image-details,body[data-tool="resize"] #image-output-estimate{border:0;border-radius:0;padding:8px 0;margin:0;background:transparent}body[data-tool="resize"] #image-estimate-section{background:#f0f7ea;border-radius:12px;padding:12px;margin-top:12px}body[data-tool="resize"] #image-estimate-section h3{margin:0 0 4px}body[data-tool="resize"] #image-original-heading{margin:12px 0 0}body[data-tool="resize"] .photo-download-panel:not([hidden]){background:transparent;padding:0;border-top:1px solid #e6edde;padding-top:12px}body[data-tool="resize"] .photo-download-panel p{font-size:13px;font-weight:500}body[data-tool="resize"] .preview-enlarge{display:block;margin:6px 0 0 auto;padding:4px 0;border:0;background:transparent;color:#276c49;font-size:13px;box-shadow:none}body[data-tool="resize"] .preview-enlarge[hidden]{display:none}body[data-tool="resize"] .image-preview{border-radius:12px}.resize-preview-dialog{border:1px solid #dce6d5;border-radius:18px;padding:20px;max-width:850px;width:90vw;background:#fff;color:#234c39}.resize-preview-dialog::backdrop{background:#15362bd9}.enlarged-preview-header{display:flex;align-items:center;justify-content:space-between;gap:16px}.enlarged-preview-header h2{font-size:20px;margin:0}.enlarged-preview-header button{padding:8px 12px}.resize-preview-dialog canvas{display:block;margin:16px auto;width:auto;max-width:100%;height:auto;max-height:65vh;object-fit:contain}.resize-preview-dialog p{font-size:13px;margin:0;color:#657568}@media(max-width:700px){body[data-tool="resize"] .resize-preview-card{margin:12px}body[data-tool="resize"] .image-fields fieldset{margin-bottom:12px}}

/* Compact upload and controls, with comfortable touch targets. */
body[data-tool="resize"].resize-image-loaded .controls{padding:20px!important}
body[data-tool="resize"].resize-image-loaded .controls h2{font-size:18px;margin:0 0 10px!important}
body[data-tool="resize"].resize-image-loaded #image-settings>h2{margin:16px 0 12px!important}
body[data-tool="resize"].resize-image-loaded .controls>.hint,body[data-tool="resize"].resize-image-loaded .upload-assurance{margin:6px 0;font-size:12px;line-height:1.45}
body[data-tool="resize"].resize-image-loaded #choose-image{min-height:44px;padding:10px 18px;margin:0}
body[data-tool="resize"].resize-image-loaded #image-name:empty{display:none}
body[data-tool="resize"].resize-image-loaded #image-name:not(:empty){display:inline-block;background:#f0f5e9;border-radius:6px;padding:4px 9px;margin:8px 0 0;max-width:100%;overflow-wrap:anywhere}
.resize-use-note{margin:6px 0;font-size:12px;color:#66766c}.resize-use-note summary{cursor:pointer}.resize-use-note .image-rights-note{margin:6px 0}
body[data-tool="resize"].resize-image-loaded .image-fields fieldset{gap:7px;margin-bottom:12px}
body[data-tool="resize"].resize-image-loaded .image-fields fieldset:first-child{grid-template-columns:1fr 1fr;column-gap:12px}
body[data-tool="resize"].resize-image-loaded .image-fields legend{margin-bottom:7px}
body[data-tool="resize"].resize-image-loaded .image-fields label{margin:0!important;font-size:14px}
.resize-dimension-field{display:grid;gap:6px;min-width:0}
body[data-tool="resize"].resize-image-loaded .image-fields .guide-toggle{grid-column:1/-1;margin-top:3px!important;font-size:13px;padding:8px 10px}
body[data-tool="resize"].resize-image-loaded .image-fields input:not([type=checkbox]):not([type=range]):not([type=color]),body[data-tool="resize"].resize-image-loaded .image-fields select{min-height:42px;padding:8px 10px}
body[data-tool="resize"].resize-image-loaded #background-setting{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:4px}
body[data-tool="resize"].resize-image-loaded .image-fields .hint{margin:3px 0;font-size:12px;line-height:1.45}
body[data-tool="resize"].resize-image-loaded #reset-image{margin:0 0 12px;padding:6px 10px;min-height:32px;font-size:13px}
body[data-tool="resize"].resize-image-loaded #image-settings>h2:last-of-type{margin:0 0 8px!important}
body[data-tool="resize"].resize-image-loaded #prepare-image{margin:0;min-height:44px;padding:10px 18px}
body[data-tool="resize"].resize-image-loaded .controls>.status{font-size:13px;margin:8px 0 0;line-height:1.45}

/* Match both columns at rest; retain bounded sticky preview after upload. */
body[data-tool="resize"] .image-workspace{padding:16px;gap:16px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:#f8faf4}
body[data-tool="resize"] .image-workspace>.controls,body[data-tool="resize"] .image-workspace>.resize-preview-card{margin:0;padding:20px!important;border:1px solid #dce6d5!important;border-radius:18px!important;background:#fff;min-width:0}
body[data-tool="resize"] .image-workspace>.controls>h2:first-child,body[data-tool="resize"] .image-workspace>.preview-panel>h2:first-child{font-size:19px;line-height:1.35;margin:0 0 14px!important}
body[data-tool="resize"]:not(.resize-image-loaded) .image-workspace{align-items:stretch}
body[data-tool="resize"]:not(.resize-image-loaded) .resize-preview-card{position:static;align-self:stretch;display:flex;flex-direction:column}
body[data-tool="resize"]:not(.resize-image-loaded) .resize-preview-card .image-preview{flex:1;min-height:220px}
body[data-tool="resize"]:not(.resize-image-loaded) .resize-preview-card .image-preview canvas{visibility:hidden}
@media(max-width:700px){body[data-tool="resize"] .image-workspace{grid-template-columns:minmax(0,1fr);padding:12px;gap:12px}body[data-tool="resize"] .image-workspace>.controls,body[data-tool="resize"] .image-workspace>.resize-preview-card{padding:18px!important}}

.resize-upload-zone{border:1.5px dashed #b4cda7;border-radius:12px;padding:16px;background:#f8fbf2;transition:background .15s,border-color .15s}.resize-upload-zone:hover,.resize-upload-zone.drag-active{background:#edf6e3;border-color:#357951}.resize-upload-zone p{font-size:13px;color:#65755d;margin:0 0 10px}.resize-upload-zone .button{width:100%}body.resize-image-loaded .resize-upload-zone{padding:8px;border-style:solid}body.resize-image-loaded .resize-upload-zone p{display:none}.replace-image{cursor:pointer;font-size:12px;margin:0 0 0 8px;padding:4px 6px;border:0;background:transparent;color:#246747;text-decoration:underline}.replace-image[hidden]{display:none}.resize-presets{grid-column:1/-1;display:flex;gap:6px;margin-bottom:4px}.resize-presets button{flex:1;padding:7px 9px;font-size:12px;border:1px solid #d7e2ce;border-radius:7px;background:#fff;color:#476346;cursor:pointer}.resize-presets button[aria-pressed="true"]{background:#e9f4dc;border-color:#94b97a;color:#235a39;font-weight:700}.preview-pixels{font-size:12px;color:#697b65;text-align:center;margin:6px 0 0}.preview-pixels[hidden]{display:none}

body[data-tool="resize"] .resize-upload-zone[hidden]{display:none}body.resize-image-loaded .controls>.hint:not(#image-name),body.resize-image-loaded .controls>.upload-assurance{display:none}body.resize-image-loaded #image-name{padding:7px 10px;margin:0 0 7px;max-width:70%}body.resize-image-loaded .image-rights-note{font-size:11px;margin:6px 0 12px}.resize-more-options{border-top:1px solid #e3eadc;margin-top:7px;padding-top:10px}.resize-more-options summary{font-size:13px;color:#48664b;cursor:pointer;font-weight:600}.resize-more-options>div{display:grid;gap:8px;padding-top:12px}.resize-preview-switch{display:flex;gap:4px;padding:3px;background:#f0f4eb;border-radius:8px;margin:0 0 12px;width:fit-content}.resize-preview-switch[hidden]{display:none}.resize-preview-switch button{cursor:pointer;border:0;background:transparent;color:#62765e;padding:6px 16px;border-radius:6px;font-size:13px}.resize-preview-switch button[aria-pressed="true"]{background:#fff;color:#285c3c;box-shadow:0 1px 5px #26482414;font-weight:650}body[data-tool="resize"] .image-preview canvas[hidden]{display:none}body[data-tool="resize"] #image-download-panel h3{font-size:14px;margin:0 0 8px;color:#246342}body[data-tool="resize"] #image-result{display:none}

/* Final visual hierarchy for the Resize reference page. */
.resize-file-row{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap}.resize-file-row:has(#image-name:empty){display:none}body.resize-image-loaded .resize-file-row #image-name{margin:0;padding:7px 10px;max-width:100%;font-size:13px;font-weight:600;color:#385f43;background:#f3f6ef;border:1px solid #e2e9db}.resize-file-row .replace-image{margin:0;font-size:13px;padding:6px 0}.replace-image:hover{color:#124c31;text-decoration-thickness:2px}.replace-image:focus-visible,.preview-enlarge:focus-visible{outline:2px solid #4b895c;outline-offset:4px;border-radius:3px}
body[data-tool="resize"] .image-workspace{border-color:#dfe7d8;box-shadow:0 10px 30px #25482c05}body[data-tool="resize"] .image-workspace>.controls{box-shadow:none}body[data-tool="resize"] .resize-preview-card{box-shadow:0 4px 18px #25482c07}body[data-tool="resize"] .image-preview{border-color:#e2e8df;background-color:#f8faf7}body[data-tool="resize"] .image-workspace>.controls>h2:first-child,body[data-tool="resize"] .image-workspace>.preview-panel>h2:first-child{font-size:20px;letter-spacing:-.3px}body.resize-image-loaded #image-settings>h2{font-size:19px;margin-top:18px!important}body[data-tool="resize"] .image-fields legend{color:#637661;font-size:13px;letter-spacing:.1px}body[data-tool="resize"] .resize-presets button{font-size:13px;min-height:34px}.resize-presets button:hover{border-color:#88ab77;background:#f2f7eb}body[data-tool="resize"] .image-fields input:focus-visible,body[data-tool="resize"] .image-fields select:focus-visible{outline-color:#4b895c}body[data-tool="resize"] #image-estimate-section{background:#eff6e9;border:1px solid #e1ecd8}body[data-tool="resize"] #image-output-estimate dd{font-size:17px}body[data-tool="resize"] #image-details dd{font-size:15px;color:#46614a}body[data-tool="resize"] .preview-enlarge{font-weight:600}body[data-tool="resize"] #prepare-image.result-created{background:#eef3e8;color:#386246;border:1px solid #d4e0ca;box-shadow:none}body[data-tool="resize"] #prepare-image.result-created:hover{background:#e2edda}body[data-tool="resize"] #image-download-panel{border-radius:0}body[data-tool="resize"] .controls>.status{color:#63735e;font-size:12px}.resize-file-row+ .image-rights-note{line-height:1.5}

/* Balanced column ends and a clean result action. */
body[data-tool="resize"].resize-image-loaded .image-workspace{align-items:stretch}
body[data-tool="resize"].resize-image-loaded .image-workspace>.controls{align-self:stretch}
body[data-tool="resize"] #image-download-panel:not([hidden]){border:0;border-top:1px solid #e4ebdf;border-radius:0;background:transparent;padding:14px 0 0;margin:14px 0 0;box-shadow:none}
body[data-tool="resize"] #image-download-panel h3{font-size:13px;font-weight:600;line-height:1.4;margin:0 0 10px;display:flex;align-items:center;gap:7px;color:#486a4b}
body[data-tool="resize"] #image-download-panel h3:before{content:'✓';display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:#eaf4e1;color:#2a7046;font-size:12px}
body[data-tool="resize"] #image-download-panel .download{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;box-sizing:border-box;margin:0;min-height:46px;padding:12px 18px;font-size:16px;line-height:1.3;border:0;border-radius:10px;text-align:center;box-shadow:0 3px 8px #176d4718}
@media(max-width:700px){body[data-tool="resize"].resize-image-loaded .image-workspace>.controls{align-self:auto}}
