@font-face{font-family:Golos;src:url('fonts/golos-regular.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Golos;src:url('fonts/golos-bold.ttf') format('truetype');font-weight:700;font-display:swap}
:root{color-scheme:light;--paper:#f6f5f0;--surface:#fffefa;--ink:#292925;--muted:#68675e;--line:#d8d5cb;--accent:#df4e28;--soft:#efede5;--blue:#304da7;font-family:Golos,Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased}h1,h2,h3,p{margin:0}button,input,select{font:inherit;color:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}a{color:inherit;text-decoration:none}button{border:0;background:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:4px}[hidden]{display:none!important}::selection{background:#fac5ad}.shell{width:min(1320px,calc(100% - 80px));margin-inline:auto}.dot{color:var(--accent)}.sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip{position:fixed;top:10px;left:10px;padding:12px;background:var(--ink);color:white;z-index:99;transform:translateY(-160%)}.skip:focus{transform:none}.header{min-height:100px;display:flex;gap:28px;align-items:center;border-bottom:1px solid var(--line)}.wordmark{font-size:40px;letter-spacing:-3px;font-weight:700;line-height:1}.brand-note{font-size:12px;line-height:1.45;max-width:135px;color:var(--muted);border-left:1px solid var(--line);padding-left:22px}.nav{display:flex;gap:30px;margin-left:auto;font-size:13px}.nav a{padding-block:12px}.languages{display:flex;gap:4px;font-size:12px}.languages a{min-width:40px;min-height:44px;display:grid;place-items:center;position:relative;color:var(--muted)}.languages a[aria-current]{color:var(--ink)}.languages a[aria-current]:after{content:'';position:absolute;bottom:2px;left:10px;right:10px;height:2px;background:var(--accent)}.crumb{display:flex;align-items:center;gap:15px;font-size:12px;color:var(--muted);padding-block:20px 16px}.crumb a{padding-block:10px}.intro{display:flex;gap:30px;justify-content:space-between;align-items:end;padding-bottom:34px}.intro h1{font-size:clamp(40px,4.8vw,68px);letter-spacing:-.055em;line-height:1.1;max-width:920px;text-wrap:balance}.intro p{font-size:15px;color:var(--muted);max-width:700px;line-height:1.7;margin-top:18px}.chapter{font:12px ui-monospace,monospace;letter-spacing:.1em;white-space:nowrap;color:var(--muted);padding-bottom:5px}.workbench{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}.upload{min-height:278px;background:var(--surface);border:1px dashed #b9b5a8;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px 24px;border-radius:5px;transition:background .15s,border-color .15s}.upload.dragover{border:2px solid var(--accent);background:#fff0e7}.file-art{display:flex;align-items:center;justify-content:center;height:68px;width:180px;position:relative;margin:0 0 20px}.file-art span{display:flex;align-items:end;justify-content:center;width:55px;height:64px;border:1px solid #c1bdb0;border-radius:4px;font:11px ui-monospace,monospace;padding-bottom:8px;background:#f5f3eb;transform:rotate(-10deg)}.file-art span:nth-child(2){height:72px;width:59px;transform:rotate(0);background:var(--ink);color:#fff;border-color:var(--ink);z-index:1;margin:0 -8px}.file-art span:last-child{transform:rotate(10deg);background:#f5e4d6;border-color:#d9baa4;color:#9e411f}.upload h2{font-size:20px;letter-spacing:-.035em}.upload>p{margin-top:7px;font-size:12px;color:var(--muted)}.upload .primary{margin-top:19px}.upload .limit{margin-top:12px;font-size:11px}.primary,.secondary{min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:11px 20px;border-radius:3px;font-weight:700;font-size:13px;line-height:1.4}.primary{background:var(--accent);color:#fff}.primary:hover:not(:disabled){background:#c6401d}.secondary{border:1px solid #b7b3a7;background:var(--surface)}.secondary:hover:not(:disabled){background:var(--soft)}.text-button{font-size:12px;color:var(--muted);min-height:44px;padding:8px;text-decoration:underline;text-underline-offset:4px}.under-upload{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0 16px}.local-note{display:flex;gap:8px;font-size:11px;color:var(--muted);align-items:center}.local-note svg{width:14px;height:14px;flex:none}.settings{background:var(--ink);color:var(--surface);border-radius:5px;padding:25px}.settings .eyebrow{font:10px ui-monospace,monospace;text-transform:uppercase;letter-spacing:.12em;color:#bebbae}.settings h2{font-size:19px;letter-spacing:-.025em;margin:7px 0 19px}.settings fieldset{padding:0;border:0;margin:0;min-width:0}.modes{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px;background:#42423b;padding:4px;border-radius:4px}.modes label{position:relative;text-align:center;display:flex;align-items:center;justify-content:center;min-height:39px;cursor:pointer;font-size:11px;padding:4px}.modes input{position:absolute;opacity:0;width:100%;height:100%;inset:0;margin:0;cursor:pointer}.modes label:has(input:checked){background:var(--surface);color:var(--ink);border-radius:2px}.modes label:has(input:focus-visible){outline:3px solid #fda782;outline-offset:3px}.mode-note{font-size:12px;color:#d2cfc4;line-height:1.7;min-height:61px;margin:17px 0}.range-label{display:flex;justify-content:space-between;gap:10px;font-size:12px;align-items:center}.range-label output{font:18px ui-monospace,monospace;color:#ffab88}input[type=range]{width:100%;accent-color:var(--accent);min-height:35px;margin:8px 0}.range-extents{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#c7c3b6}.input-label{font-size:12px;display:block;margin-bottom:8px}.target-input{display:grid;grid-template-columns:1fr 85px;gap:8px}.target-input input,.target-input select{min-width:0;width:100%;border:1px solid #9d998d;background:var(--surface);padding:10px;font-size:15px;border-radius:2px}.settings .hint{font-size:10px;color:#c7c3b6;margin-top:9px;line-height:1.6}.settings .field-error{color:#ffb79c;font-size:12px}.settings .primary{width:100%;margin-top:19px}.settings .secondary{width:100%;margin-top:8px;background:transparent;color:var(--surface);border-color:#8d897e}.settings .secondary:hover:not(:disabled){background:#42423b}.keep-line{display:flex;gap:8px;align-items:center;border-top:1px solid #555349;font-size:10px;color:#d2cfc4;padding-top:17px;margin-top:21px}.keep-line svg{flex:none}.notice{margin:0 0 18px;padding:12px 16px;border:1px solid #d6bba2;background:#faeee2;font-size:12px;white-space:pre-line;overflow-wrap:anywhere}.notice:empty{display:none}.run-status{font-size:12px;color:var(--muted);min-height:24px;line-height:1.8}.progress-wrap{margin:0 0 13px}progress{width:100%;height:4px;accent-color:var(--accent);display:block;margin-top:8px}.results-head{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:0}.results-head h2{font-size:20px;letter-spacing:-.035em}.head-actions{display:flex;gap:7px;align-items:center}.head-actions .secondary{min-height:38px;font-size:11px;padding:9px 12px}.count{display:inline-block;color:var(--muted);font-size:12px;font-weight:400;margin-left:6px}.file-list{list-style:none;padding:0;margin:0}.file-card{display:grid;grid-template-columns:70px minmax(0,1fr) auto;column-gap:15px;padding:20px 0;border-bottom:1px solid var(--line);align-items:center;min-height:108px}.thumb{width:70px;height:64px;object-fit:contain;border-radius:3px;background:repeating-conic-gradient(#ece9e0 0% 25%,#faf8f2 0% 50%) 50% / 12px 12px}.thumb.empty{display:grid;place-items:center;background:var(--soft);font:10px ui-monospace,monospace;color:var(--muted)}.file-name{font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.file-meta{font:10px/1.8 ui-monospace,monospace;color:var(--muted);margin-top:3px}.file-state{font-size:11px;line-height:1.7;color:var(--muted);margin-top:3px}.file-state.error{color:#a93020}.file-state.done{color:var(--blue)}.card-buttons{display:flex;align-items:center;gap:3px}.icon-button{display:grid;place-items:center;width:39px;height:42px;border:1px solid var(--line);border-radius:3px;background:var(--surface)}.icon-button:hover:not(:disabled){background:var(--soft)}.icon-button svg{width:17px;height:17px}.remove{border:0;background:transparent;color:var(--muted);margin-left:2px}.target-warning{grid-column:2/-1;display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:12px;font-size:11px;background:#f5e6d7;border-left:2px solid var(--accent);padding:10px 12px}.target-warning p{max-width:440px}.target-warning button{font-size:11px;color:#8b3018;text-decoration:underline;text-underline-offset:3px;min-height:40px;padding:5px 0;flex-shrink:0;font-weight:700}.empty-results{padding:40px 15px;text-align:center;font-size:12px;color:var(--muted);border-bottom:1px solid var(--line)}.batch-summary{margin-top:17px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;color:var(--muted);font-size:11px}.batch-summary strong{font-weight:700;color:var(--ink)}.how{border-top:1px solid var(--line);margin-top:65px;padding:28px 0 45px;display:grid;grid-template-columns:1fr 2.1fr;gap:60px}.how h2{font-size:25px;letter-spacing:-.045em;line-height:1.25}.how-grid{display:grid;grid-template-columns:1fr 1fr;gap:27px 36px}.how-grid h3{font-size:13px;margin-bottom:7px}.how-grid p{font-size:12px;color:var(--muted);line-height:1.8}.footer{border-top:1px solid var(--line);padding-top:26px;margin-top:12px;overflow:hidden}.footer-top{display:flex;justify-content:space-between;gap:20px;font-size:12px;color:var(--muted)}.footer-word{font-size:clamp(130px,22vw,295px);font-weight:700;line-height:1.18;letter-spacing:-.075em;margin-top:18px}.copyright{display:block;font-size:10px;color:var(--muted);padding:7px 0 23px}.modal{border:1px solid var(--line);border-radius:6px;background:var(--surface);color:var(--ink);padding:25px;width:min(1080px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow-y:auto;box-shadow:0 15px 100px #0003}.modal::backdrop{background:#1b1b1acc;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.modal-head h2{font-size:21px;letter-spacing:-.03em}.modal-head .close{font-size:25px;min-width:44px;min-height:44px}.compare-stage{height:clamp(190px,48vh,600px);position:relative;background:repeating-conic-gradient(#e9e6dc 0% 25%,#f8f6f0 0% 50%) 50% / 20px 20px;overflow:hidden;--split:50%}.compare-stage img{width:100%;height:100%;position:absolute;inset:0;object-fit:contain}.compare-before{clip-path:inset(0 calc(100% - var(--split)) 0 0)}.compare-line{position:absolute;top:0;bottom:0;left:var(--split);width:2px;background:white;box-shadow:0 0 3px #0008;pointer-events:none}.compare-knob{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;display:grid;place-items:center;background:white;color:var(--ink);height:34px;width:34px;font:18px ui-monospace,monospace;box-shadow:0 1px 8px #0003}.compare-label{position:absolute;top:12px;left:12px;padding:5px 9px;background:var(--ink);color:white;font-size:10px;pointer-events:none;border-radius:2px}.compare-label.after{left:auto;right:12px}.compare-range-label{display:block;text-align:center;font-size:11px;color:var(--muted);padding-top:14px}.compare-stats{display:grid;grid-template-columns:1fr 1fr;gap:20px;font-size:12px;color:var(--muted);padding-top:13px;border-top:1px solid var(--line)}.compare-stats strong{color:var(--ink);font-weight:400;display:block;font:17px ui-monospace,monospace;margin-top:5px}.compare-info{font-size:11px;color:var(--muted);margin-top:16px;line-height:1.7;overflow-wrap:anywhere}.compare-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:18px}.resize-modal{max-width:510px;padding:28px}.resize-modal>p{font-size:13px;color:var(--muted);line-height:1.8}.resize-estimate{padding:16px;background:var(--soft);font:14px ui-monospace,monospace;margin:20px 0}.modal-actions{display:flex;justify-content:end;gap:8px;margin-top:25px}.spinner:before{content:'';display:inline-block;width:9px;height:9px;border:1px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .8s linear infinite;margin-right:6px}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1150px){.settings{position:sticky;top:20px}}
@media(max-width:1100px){.shell{width:calc(100% - 48px)}.workbench{grid-template-columns:minmax(0,1fr) 300px}.settings{padding:21px}.chapter{display:none}.target-warning{grid-column:1/-1}.how{gap:30px}.brand-note{display:none}}
@media(max-width:800px){.workbench{grid-template-columns:1fr}.settings{grid-row:1;padding:20px}.settings h2{margin-top:4px;margin-bottom:12px}.settings .eyebrow{display:none}.settings .mode-note{min-height:0;margin:12px 0}.settings .keep-line{margin-top:13px;padding-top:12px}.settings .primary{margin-top:14px}.settings .hint{max-width:none}.modes label{font-size:12px}.upload{min-height:240px}.how{grid-template-columns:1fr;gap:24px;margin-top:42px}.intro{padding-bottom:26px}.header{min-height:80px;gap:20px}.nav{gap:20px}.target-warning{grid-column:2/-1}}
@media(max-width:480px){.shell{width:calc(100% - 32px)}.header{min-height:75px;gap:12px}.wordmark{font-size:34px}.nav{margin-left:auto}.nav a:last-child{display:none}.nav{font-size:11px}.languages{gap:0}.languages a{min-width:32px;font-size:10px}.intro h1{font-size:40px}.intro p{font-size:13px;margin-top:13px}.crumb{padding-top:14px;font-size:10px}.settings{padding:18px}.upload{padding:26px 12px}.upload h2{font-size:18px}.under-upload{align-items:start;gap:6px}.local-note{font-size:10px;max-width:190px;margin-top:12px}.under-upload .text-button{font-size:10px;max-width:140px;text-align:right}.file-card{grid-template-columns:50px minmax(0,1fr);column-gap:11px;row-gap:8px}.thumb{width:50px;height:55px}.file-name{font-size:12px}.card-buttons{grid-column:2;justify-content:start}.card-buttons .icon-button{width:45px;min-height:41px}.card-buttons .remove{margin-left:auto}.target-warning{grid-column:1/-1;display:block}.target-warning button{display:block}.head-actions{gap:0}.head-actions .secondary{font-size:10px;padding:8px}.head-actions .text-button{font-size:10px}.results-head h2{font-size:17px}.empty-results{font-size:11px}.how-grid{grid-template-columns:1fr;gap:24px}.footer-top{font-size:10px}.footer-word{font-size:27vw}.modal{padding:16px}.modal-head h2{font-size:18px}.modal-actions{flex-wrap:wrap}.modal-actions button{flex:1}.compare-footer{align-items:end}.compare-footer p{max-width:55%}.compare-stats strong{font-size:14px}.resize-modal{padding:22px}.intro{padding-bottom:24px}}
@media(prefers-reduced-motion:reduce){*,*::before{animation:none!important;transition:none!important}}
/* On small screens put file selection before settings and results. */
@media(max-width:800px){.workbench{gap:0}.workspace{display:contents}.workspace>.upload{order:0}.workspace>.under-upload{order:1}.settings{grid-row:auto;order:2;margin-bottom:19px}.workspace>:not(.upload):not(.under-upload){order:3}}
