:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.5;color:#262622;background:#fff;--ink:#262622;--muted:#7a7a74;--line:#e9e9e5;--soft:#f8f8f6}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default}button,a,input,select{-webkit-tap-highlight-color:transparent}svg{height:18px;width:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}a{color:inherit}h1,h2,p{margin:0}[hidden]{display:none!important}:focus-visible{outline:2px solid #222;outline-offset:3px}
.shell{max-width:1070px;margin:0 auto;padding:0 34px}.header{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{text-decoration:none;font-size:20px;letter-spacing:-.8px;display:inline-flex;align-items:baseline;font-weight:400}.brand span:first-child{font-weight:650}.brand-dot{height:4px;width:4px;background:var(--ink);display:inline-block;border-radius:100%;margin:0 0 3px 2px}.private{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.private svg{width:14px;height:14px}.intro{padding:48px 0 40px}.intro h1{font-size:30px;line-height:1.2;font-weight:580;letter-spacing:-1.2px}.intro p{font-size:14px;margin-top:12px;color:var(--muted)}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:44px;align-items:start}.images{min-width:0}.settings{border-left:1px solid var(--line);padding-left:32px}.heading{display:flex;justify-content:space-between;align-items:center;min-height:24px;margin-bottom:20px;gap:12px}.heading h2{font-size:14px;font-weight:600}.heading h2 span{margin-left:8px;color:var(--muted);font-weight:400;font-size:12px}.text-button{border:0;padding:4px 0;background:none;color:var(--muted);font-size:12px;white-space:nowrap}.text-button:hover:not(:disabled){color:var(--ink);text-decoration:underline;text-underline-offset:3px}.text-button:disabled{opacity:.35}
.drop{width:100%;min-height:290px;border:1px dashed #d4d4cd;border-radius:4px;background:var(--soft);display:flex;flex-direction:column;justify-content:center;align-items:center;padding:24px 16px;text-align:center;transition:background .15s,border-color .15s}.drop svg{height:34px;width:34px;stroke-width:1.2;color:#898982;margin-bottom:20px}.drop strong{font-size:15px;font-weight:540}.drop span{font-size:13px;color:var(--muted);text-decoration:underline;text-underline-offset:3px;margin-top:6px}.drop:hover:not(:disabled),.drop.drag{border-color:var(--ink);background:#f1f1ef}.drop:disabled{opacity:.55}.drop.compact{min-height:76px;flex-direction:row;gap:10px}.drop.compact svg{width:22px;height:22px;margin:0}.drop.compact strong{font-size:13px}.drop.compact span{display:none}.formats{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px;margin-top:10px}
.file-list{list-style:none;margin:20px 0 0;padding:0;max-height:550px;overflow-y:auto}.file-row{display:grid;grid-template-columns:46px minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid var(--line)}.file-row:first-child{border-top:1px solid var(--line)}.thumb,.thumb-button{width:46px;height:46px}.thumb{border-radius:3px;background:var(--soft);object-fit:contain}.thumb-button{border:0;background:none;padding:0}.thumb-button:hover{outline:1px solid #aaa;outline-offset:2px}.file-info{min-width:0}.file-name{font-size:13px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.file-meta{font-size:11px;color:var(--muted);margin-top:3px}.file-error{font-size:11px;color:#983d2c;line-height:1.5;margin-top:5px;overflow-wrap:anywhere}.file-result{text-align:right;min-width:60px}.result-size{font-size:13px;font-weight:550}.result-detail{font-size:10px;color:var(--muted);white-space:nowrap}.waiting{font-size:11px;color:var(--muted)}.row-actions{display:flex;gap:1px}.icon-button{width:28px;height:32px;display:flex;align-items:center;justify-content:center;background:none;border:0;color:var(--muted);border-radius:3px;text-decoration:none;font-size:24px;line-height:1}.icon-button:hover:not(:disabled){color:var(--ink);background:var(--soft)}.icon-button:disabled{opacity:.35}.icon-button svg{height:16px;width:16px}.summary{margin-top:16px;display:flex;justify-content:space-between;gap:12px;font-size:12px}.summary strong{font-weight:550}.small-note{font-size:11px;color:var(--muted);margin-top:19px}
fieldset{margin:0;padding:0;border:0;min-width:0}.setting{border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:24px}.setting.last{border:0;padding-bottom:0;margin-bottom:28px}.setting-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;font-size:13px;font-weight:560;gap:12px}.setting-heading strong{font-weight:560}.setting-heading span{font-size:11px;color:var(--muted);font-weight:400}.setting-heading output{font-size:12px;font-weight:500}.size-fields{display:grid;grid-template-columns:minmax(0,1fr) 15px minmax(0,1fr);align-items:end;gap:8px}.size-fields label{color:var(--muted);font-size:11px}.with-unit{display:flex;align-items:center;border:1px solid #d9d9d3;border-radius:3px;margin-top:6px;padding-right:9px;height:38px}.with-unit:focus-within,.target-field:focus-within{outline:2px solid var(--ink);outline-offset:2px}.with-unit input{border:0;outline:0;width:100%;min-width:0;padding:9px;background:none;color:var(--ink);appearance:textfield}.with-unit span{font-size:10px;color:var(--muted)}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input::placeholder{color:#999991}.link-icon{height:38px;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:14px}.hint{font-size:11px;color:var(--muted);line-height:1.6;margin-top:9px}
input[type=range]{appearance:none;width:100%;height:18px;background:transparent;display:block;margin:0;cursor:pointer}input[type=range]:disabled{opacity:.35;cursor:default}input[type=range]::-webkit-slider-runnable-track{height:3px;background:#deded8;border-radius:2px}input[type=range]::-webkit-slider-thumb{appearance:none;width:12px;height:12px;border-radius:50%;background:var(--ink);margin-top:-4.5px}input[type=range]::-moz-range-track{height:3px;background:#deded8;border-radius:2px}input[type=range]::-moz-range-thumb{height:12px;width:12px;border:0;border-radius:50%;background:var(--ink)}
.target-field{height:39px;border:1px solid #d9d9d3;border-radius:3px;display:flex;align-items:center}.target-field input{border:0;outline:0;background:none;min-width:0;width:100%;padding:10px;color:var(--ink);appearance:textfield}.target-field select{height:25px;width:55px;flex-shrink:0;border:0;border-left:1px solid var(--line);outline:0;background:none;padding:0 4px;color:var(--ink);cursor:pointer}
.btn{width:100%;min-height:44px;display:flex;align-items:center;justify-content:center;gap:13px;border-radius:4px;border:1px solid var(--ink);font-size:13px;font-weight:550;padding:10px}.btn.primary{background:var(--ink);color:#fff}.btn.primary:hover:not(:disabled){background:#41413d}.btn.primary:disabled{background:#eeeee9;border-color:#eeeee9;color:#9b9b94}.btn.secondary{background:#fff;color:var(--ink);margin-top:10px;border-color:#d6d6d0}.btn.secondary:hover{background:var(--soft)}.btn.secondary:disabled{opacity:.4}.cancel{display:block;margin:13px auto 0}.action-note{color:var(--muted);font-size:11px;line-height:1.5;text-align:center;margin-top:13px}.notice{white-space:pre-line;overflow-wrap:anywhere;font-size:12px;padding:11px 13px;background:var(--soft);border-left:2px solid #bbb;margin-bottom:23px}.notice.error{color:#963d2c;background:#fcf7f5;border-color:#963d2c}#progress-wrap{margin-top:16px}progress{width:100%;height:3px;border:0;display:block;accent-color:var(--ink)}.footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;margin-top:68px;padding:23px 0 30px;font-size:11px;color:var(--muted)}
dialog{width:calc(100% - 48px);max-width:1020px;max-height:90dvh;overflow:auto;padding:22px;background:#fff;border:1px solid var(--line);border-radius:5px;color:var(--ink)}dialog::backdrop{background:rgba(20,20,18,.45)}.preview-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:21px}.preview-head h2{font-size:14px;overflow-wrap:anywhere}.compare{display:grid;grid-template-columns:1fr 1fr;gap:20px}figure{margin:0;min-width:0}figcaption{display:flex;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:12px}figcaption span{font-size:11px;color:var(--muted)}.preview-image{height:min(50vh,440px);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;background-color:#fafaf9;background-image:conic-gradient(#ebebe7 25%,transparent 0 50%,#ebebe7 0 75%,transparent 0);background-size:16px 16px}.preview-image img{max-height:100%;max-width:100%;object-fit:contain}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip{position:absolute;top:6px;left:15px;background:#fff;padding:8px;transform:translateY(-150%)}.skip:focus{transform:none}.noscript{text-align:center;margin:20px}
@media(max-width:760px){.shell{padding:0 22px}.header{height:76px}.intro{padding:34px 0 30px}.intro h1{font-size:27px}.workspace{grid-template-columns:1fr;gap:34px}.settings{border-left:0;border-top:1px solid var(--line);padding:27px 0 0}.drop{min-height:230px}.file-list{max-height:400px}.setting{padding-bottom:20px;margin-bottom:20px}.setting.last{padding-bottom:0}.with-unit,.target-field{height:43px}.with-unit input,.target-field input{font-size:16px}.link-icon{height:43px}.btn{min-height:47px}.footer{margin-top:37px;font-size:10px}.file-row{grid-template-columns:40px minmax(0,1fr) auto auto;gap:8px}.thumb,.thumb-button{height:40px;width:40px}.file-name{font-size:12px}.file-meta{font-size:10px}.file-result{min-width:45px}.result-detail{font-size:9px}.compare{grid-template-columns:1fr}.preview-image{height:29vh}dialog{padding:16px;width:calc(100% - 28px)}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Quiet interaction and responsive refinements */
html{scrollbar-gutter:stable}
body{min-width:280px}
button,a,input,select{touch-action:manipulation}
.drop{transition:border-color .12s ease;background-color .12s ease}
.drop:hover:not(:disabled){background:var(--soft);border-color:#b9b9b3}
.drop.drag{background:#f4f4f1;border-color:var(--ink)}
.btn.primary:hover:not(:disabled){background:#343430}
.btn.secondary:hover:not(:disabled),.icon-button:hover:not(:disabled){background:#f6f6f4}
.thumb-button:hover{outline:none}
.thumb-button:focus-visible{outline:2px solid var(--ink)}
.icon-button{min-width:36px;min-height:40px}
.file-row{grid-template-columns:46px minmax(0,1fr) minmax(72px,auto) auto}
.file-result{min-width:0}
.file-name{overflow-wrap:anywhere}
@media(max-width:960px) and (min-width:761px){
 .workspace{grid-template-columns:minmax(0,1fr) 270px;gap:24px}
 .settings{padding-left:24px}
 .shell{padding-inline:28px}
}
@media(max-width:760px){
 html{scrollbar-gutter:auto}
 .shell{padding-inline:clamp(16px,5vw,24px)}
 .header{height:70px}
 .intro{padding:30px 0 28px}
 .workspace{gap:30px}
 .settings{padding-top:24px}
 .drop{min-height:190px}
 .file-row{grid-template-columns:40px minmax(0,1fr) minmax(54px,auto) auto;gap:8px}
 .file-list{max-height:none}
 .row-actions{gap:0}
 .icon-button{width:40px;min-width:40px;height:44px}
 .file-meta{overflow-wrap:anywhere}
 .footer{flex-wrap:wrap;row-gap:6px}
 .compare{gap:14px}
}
@media(max-width:390px){
 .intro h1{font-size:25px}
 .formats{font-size:10px;flex-wrap:wrap}
 .file-row{grid-template-columns:36px minmax(0,1fr) auto;gap:7px}
 .thumb,.thumb-button{width:36px;height:36px}
 .file-result{grid-column:2;text-align:left}
 .row-actions{grid-column:3;grid-row:1 / span 2}
 .result-detail{display:inline;margin-right:7px}
 .summary{flex-wrap:wrap}
 .private{font-size:11px}
}
@media(hover:none){
 .drop:hover:not(:disabled){border-color:#d4d4cd;background:var(--soft)}
 .btn.primary:hover:not(:disabled){background:var(--ink)}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
