:root{font-family:Manrope,Arial,sans-serif;color:#081831;background:#fff;font-synthesis:none;line-height:1.6;font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,label.choose{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,select:focus-visible,input:focus-visible,.choose:focus-within{outline:3px solid #0064c8;outline-offset:4px}h2,h3,p{margin:0}h2{font-size:1.2rem;line-height:1.3}h3{font-size:1rem}svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.workspace{padding:4px}.editor{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);border:1px solid #d8e5ee;border-radius:24px;overflow:hidden;background:#fff;box-shadow:0 14px 40px #08183105}.files-panel,.settings-panel{padding:30px}.settings-panel{background:#f5f9fd;border-left:1px solid #d8e5ee}.section-heading{display:flex;align-items:center;gap:12px;margin-bottom:25px}.step{font-size:.75rem;font-weight:700;color:#0064c8;background:#e2effc;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;flex-shrink:0}.local-label{margin-left:auto;color:#285c4d;font-size:.72rem;background:#edf8f1;padding:4px 9px;border-radius:20px;white-space:nowrap}.dropzone{text-align:center;border:2px dashed #a9c7e0;border-radius:17px;padding:35px 20px 28px;background:#fbfdff;transition:background .15s,border-color .15s}.dropzone.dragging{background:#e3f2ff;border-color:#0064c8}.dropzone>svg{width:50px;height:50px;color:#0064c8;margin-bottom:12px}.drop-title{font-size:1.2rem;font-weight:700}.dropzone>p:not(.drop-title){color:#4a6075;font-size:.9rem}.button{border:1px solid #0064c8;background:#0064c8;color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:12px 21px;border-radius:999px;font-weight:700;text-decoration:none;font-size:.9rem}.button:not(:disabled):hover{background:#004f9f;border-color:#004f9f}.button.secondary{border-color:#b2c8db;background:#fff;color:#081831}.button.secondary:not(:disabled):hover{background:#e8f2fc}.full{width:100%;margin-top:10px}.choose{margin:20px 0 15px;position:relative;overflow:hidden;cursor:pointer}.choose input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.dropzone .limits{font-size:.74rem;line-height:1.8}.queue-heading{display:flex;justify-content:space-between;align-items:center;margin-top:18px;font-size:.8rem;color:#435b73}.text-button{background:none;border:0;color:#005ba8;font-size:.8rem;padding:10px;min-height:44px;text-decoration:underline;text-underline-offset:3px}.queue{padding:0;margin:0;list-style:none}.queue li{display:flex;align-items:center;gap:12px;border-top:1px solid #e5edf4;padding:10px 0}.file-icon{display:grid;place-items:center;background:#eff5fa;color:#42617e;font-size:.62rem;font-weight:800;border-radius:8px;width:40px;height:44px;flex-shrink:0}.file-detail{min-width:0;flex:1}.filename{font-weight:700;overflow-wrap:anywhere;font-size:.8rem}.file-state{font-size:.75rem;color:#53697d}.remove{color:#53697d;font-size:1.4rem;text-decoration:none;line-height:1}.notice{font-size:.83rem;color:#80500a;white-space:pre-line;margin-top:10px;overflow-wrap:anywhere}.notice:empty{display:none}fieldset{border:0;margin:0;padding:0;min-width:0}fieldset label{display:block;font-size:.83rem;font-weight:700;margin-bottom:8px}select{width:100%;border:1px solid #acc2d6;background:#fff;color:#081831;border-radius:9px;padding:12px 32px 12px 12px;min-height:46px;font-size:.86rem}.help{font-size:.74rem;line-height:1.65;color:#4a6075;margin:9px 0 23px}.quality-label{display:flex;justify-content:space-between;align-items:center}.quality-label label{margin-bottom:0}.quality-label output{font-weight:700;color:#005eaf;font-size:.85rem}input[type=range]{width:100%;margin:12px 0 0;accent-color:#0064c8;height:24px;cursor:pointer}.range-ends{display:flex;justify-content:space-between;color:#526b82;font-size:.69rem}.privacy-note{border-top:1px solid #dce6ef;padding-top:20px;margin-top:23px;display:flex;gap:10px;align-items:flex-start;font-size:.8rem;font-weight:700}.privacy-note svg{width:22px;height:22px;color:#0064c8;flex-shrink:0}.privacy-note span{font-weight:400;color:#53697d;font-size:.73rem}.results-section{margin-top:32px}.results-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.eyebrow{text-transform:uppercase;letter-spacing:.12em;color:#0064c8;font-size:.65rem;font-weight:800;margin-bottom:7px}.results-heading h2{font-size:1.6rem}.results-heading #summary{font-size:.85rem;color:#4a6075;margin-top:8px}.results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.result-card{border:1px solid #d8e5ee;border-radius:18px;padding:20px;min-width:0}.result-card h3{overflow-wrap:anywhere}.result-meta{color:#53697d;font-size:.75rem;margin-top:5px}.previews{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:17px 0}.previews figure{margin:0;min-width:0}.previews .preview-image{height:150px;border:1px solid #e3ebf2;border-radius:10px;display:flex;align-items:center;justify-content:center;background-color:#f5f7fa;background-image:linear-gradient(45deg,#e7edf2 25%,transparent 25%),linear-gradient(-45deg,#e7edf2 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e7edf2 75%),linear-gradient(-45deg,transparent 75%,#e7edf2 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}.previews img{max-width:100%;max-height:100%;object-fit:contain;display:block}.previews figcaption{font-size:.7rem;color:#52677d;margin-top:6px}.result-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.saving{font-size:.79rem;color:#196043;font-weight:700}.saving.larger{color:#80500a}.result-bottom .button{min-height:44px;font-size:.78rem;padding:9px 16px}.result-note{font-size:.72rem;color:#53697d;margin-top:13px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}@media(max-width:760px){.editor{grid-template-columns:1fr}.settings-panel{border-left:0;border-top:1px solid #d8e5ee}.files-panel,.settings-panel{padding:23px}.results{grid-template-columns:1fr}.local-label{font-size:.65rem}.section-heading{gap:9px}.section-heading h2{font-size:1.06rem}.results-heading{align-items:flex-start;flex-direction:column}.dropzone{padding:25px 13px}.results-heading .button{width:100%}}@media(max-width:360px){.files-panel,.settings-panel{padding:17px}.local-label{display:none}.previews .preview-image{height:110px}}

/* The parent supplies its visible viewport height: the iframe may be much taller. */
.smart-help{border-left:3px solid #8abce7;padding-left:12px;margin-top:12px}
#smart-help[hidden]+label{margin-top:23px}
.compare-button{margin-top:12px;width:100%;min-height:44px}
.compare-dialog{position:fixed;inset:16px 0 auto;margin:0 auto;width:calc(100% - 32px);max-width:760px;height:min(760px,calc(var(--viewer-height,100vh) - 32px));max-height:min(760px,calc(var(--viewer-height,100vh) - 32px));border:1px solid #b9cfdf;border-radius:20px;padding:22px;color:#081831;background:#fff;box-shadow:0 20px 80px #08183140;overflow:auto}
.compare-dialog[open]{display:flex;flex-direction:column}
.compare-dialog::backdrop{background:#081831a6}
.compare-heading{position:sticky;top:0;z-index:1;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0}
.compare-heading h2{font-size:1.15rem;min-width:0;overflow-wrap:anywhere}
.compare-heading .text-button{flex-shrink:0;font-weight:700}
.compare-dialog .help{margin:4px 0 16px;flex-shrink:0}
.compare-controls{display:flex;align-items:center;gap:14px;justify-content:space-between;flex-wrap:wrap;margin-bottom:14px;flex-shrink:0}
.compare-switch{display:flex;gap:4px;border:1px solid #adc7dd;background:#eff5fa;padding:4px;border-radius:12px}
.compare-switch button{min-height:44px;min-width:96px;border:0;border-radius:8px;padding:9px 16px;background:transparent;color:#34526c;font-size:.85rem;font-weight:700}
.compare-switch button[aria-pressed=true]{background:#0064c8;color:#fff}
.compare-switch button:not([aria-pressed=true]):hover{background:#dcebf8}
.compare-zoom{max-width:100%;flex:0 1 205px}
.compare-viewport{flex:1 1 0;min-height:96px;overflow:auto;display:flex;align-items:center;justify-content:center;border:1px solid #d8e5ee;border-radius:12px;background-color:#f5f7fa;background-image:linear-gradient(45deg,#e7edf2 25%,transparent 25%),linear-gradient(-45deg,#e7edf2 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e7edf2 75%),linear-gradient(-45deg,transparent 75%,#e7edf2 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}
.compare-viewport:focus-visible{outline:3px solid #0064c8;outline-offset:3px}
.compare-viewport img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;flex-shrink:0}
.compare-viewport.actual-size{display:block}
.compare-viewport.actual-size img{width:auto;height:auto;max-width:none;max-height:none}
.compare-caption{font-size:.78rem;color:#435b73;overflow-wrap:anywhere;margin-top:12px;min-height:1.6em;flex-shrink:0}
@media(max-width:760px){
  .compare-dialog{inset:8px 0 auto;width:calc(100% - 16px);padding:16px;border-radius:16px;height:min(760px,calc(var(--viewer-height,100vh) - 16px));max-height:min(760px,calc(var(--viewer-height,100vh) - 16px))}
  .compare-controls{gap:10px}
  .compare-switch{flex:1}
  .compare-switch button{min-width:0;flex:1}
  .compare-zoom{flex:1 1 150px}
}
@media(max-width:360px){
  .compare-dialog{padding:12px}
  .compare-heading h2{font-size:1rem}
  .compare-controls{align-items:stretch;flex-direction:column}
  .compare-zoom{flex-basis:auto}
}
