:root{--bg: #ffffff;--surface: #ffffff;--subtle: #f5f5f5;--subtle-2: #ececec;--border: #e5e5e5;--border-strong: #c9c9c9;--text: #0a0a0a;--muted: #5e5e5e;--faint: #6e6e6e;--inverse: #0a0a0a;--on-inverse: #ffffff;--checker: #ededed;--font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;--mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;--radius-lg: 20px;--radius: 12px;--radius-sm: 8px;--control-h: 40px;--gutter: 20px;--ease: cubic-bezier(.2, 0, 0, 1);--fast: .14s;color-scheme:light}:root[data-theme=dark]{--bg: #0a0a0a;--surface: #0a0a0a;--subtle: #141414;--subtle-2: #1d1d1d;--border: #242424;--border-strong: #3a3a3a;--text: #f5f5f5;--muted: #a3a3a3;--faint: #858585;--inverse: #f5f5f5;--on-inverse: #0a0a0a;--checker: #383838;color-scheme:dark}*,*:before,*:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:var(--bg);color:var(--text);font:400 15px/1.55 var(--font);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;transition:background-color var(--fast) var(--ease),color var(--fast) var(--ease)}[hidden]{display:none!important}p{margin:0}a{color:inherit;text-decoration:underline;text-decoration-color:var(--border-strong);text-underline-offset:3px;transition:text-decoration-color var(--fast) var(--ease)}a:hover{text-decoration-color:currentColor}:focus-visible{outline:2px solid var(--text);outline-offset:3px;border-radius:4px}.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.wrap{width:100%;max-width:880px;margin:0 auto;padding:0 var(--gutter)}.icon{flex:none;display:block}.skip-link{position:absolute;left:var(--gutter);top:-100px;z-index:20;padding:8px 14px;border-radius:var(--radius-sm);background:var(--inverse);color:var(--on-inverse);font-weight:600;text-decoration:none}.skip-link:focus{top:10px}.site-header{position:sticky;top:0;z-index:10;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:saturate(1.2) blur(10px);-webkit-backdrop-filter:saturate(1.2) blur(10px);border-bottom:1px solid var(--border)}.header-inner{height:56px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{font-size:1rem;font-weight:650;letter-spacing:-.02em}.theme-switch{padding:4px;margin:-4px;border:0;background:none;color:var(--text);cursor:pointer;border-radius:999px}.theme-switch-track{position:relative;display:flex;align-items:center;justify-content:space-between;width:52px;height:28px;padding:0 7px;border:1px solid var(--border-strong);border-radius:999px;background:var(--subtle);color:var(--faint);transition:background-color var(--fast) var(--ease),border-color var(--fast) var(--ease)}.theme-switch:hover .theme-switch-track{border-color:var(--muted)}.theme-switch-thumb{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:var(--inverse);transition:transform .2s var(--ease)}.theme-switch[aria-checked=true] .theme-switch-thumb{transform:translate(24px)}.theme-switch:focus-visible{outline:none}.theme-switch:focus-visible .theme-switch-track{outline:2px solid var(--text);outline-offset:3px}.main{flex:1;padding-top:clamp(40px,9vh,104px);padding-bottom:64px;outline:none}.hero{text-align:center;margin-bottom:36px;transition:margin var(--fast) var(--ease)}.hero-title{margin:0 auto;max-width:14ch;font-size:clamp(2.125rem,6vw,3.5rem);line-height:1.04;font-weight:650;letter-spacing:-.04em}.hero-lede{margin:16px auto 0;max-width:36rem;color:var(--muted);font-size:1.0625rem}body.has-files .main{padding-top:40px}body.has-files .hero{margin-bottom:28px}body.has-files .hero-title{max-width:none;font-size:clamp(1.75rem,4vw,2.25rem)}body.has-files .hero-lede{display:none}#app{display:grid;gap:16px}.boot-hint{max-width:36rem;margin:0 auto;text-align:center;color:var(--muted);font-size:.875rem}.noscript{text-align:center;color:var(--muted)}.dropzone{position:relative;display:grid;justify-items:center;align-content:center;gap:14px;min-height:280px;padding:40px 24px;text-align:center;border:1.5px dashed var(--border-strong);border-radius:var(--radius-lg);background:var(--surface);cursor:pointer;transition:border-color var(--fast) var(--ease),background-color var(--fast) var(--ease),min-height .2s var(--ease),padding .2s var(--ease)}.dropzone:hover{border-color:var(--muted);background:var(--subtle)}.dz-icon{display:grid;place-items:center;width:52px;height:52px;border:1px solid var(--border);border-radius:50%;background:var(--bg);transition:transform .2s var(--ease),background-color var(--fast) var(--ease),color var(--fast) var(--ease)}.dz-text{display:grid;gap:2px}.dz-title{font-size:1.125rem;font-weight:600;letter-spacing:-.01em}.dz-browse{color:var(--muted)}.dz-browse{text-decoration:underline;text-decoration-color:var(--border-strong);text-underline-offset:3px}.dropzone:hover .dz-browse{color:var(--text);text-decoration-color:currentColor}.dz-meta{max-width:34rem;color:var(--faint);font-size:.8125rem}.dz-status:empty{display:none}.dz-status{font-size:.875rem;font-weight:500}.dropzone.is-dragover{border-style:solid;border-color:var(--text);background:var(--subtle)}.dropzone.is-dragover .dz-icon{transform:translateY(-3px);background:var(--inverse);color:var(--on-inverse);border-color:var(--inverse)}.dropzone.is-busy{cursor:progress}.dropzone.is-busy .dz-status{color:var(--muted)}.dropzone.is-error{border-style:solid;border-color:var(--text)}#file-input:focus+.dropzone{outline:2px solid var(--text);outline-offset:3px}#file-input:focus:not(:focus-visible)+.dropzone{outline:none}#file-input:focus-visible+.dropzone{outline:2px solid var(--text);outline-offset:3px;border-color:var(--text)}body.has-files .dropzone{min-height:0;grid-template-columns:auto 1fr;justify-items:start;text-align:left;column-gap:16px;row-gap:4px;padding:18px 22px}body.has-files .dz-icon{grid-row:span 2;width:44px;height:44px}body.has-files .dz-text{display:flex;flex-wrap:wrap;gap:0 6px;align-items:baseline}body.has-files .dz-title{font-size:1rem}body.has-files .dz-status{grid-column:2}.privacy{text-align:center;color:var(--muted);font-size:.8125rem;text-wrap:balance}.privacy .icon{display:inline-block;margin-right:6px;vertical-align:-2px}.workspace{margin-top:16px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);overflow:hidden;overflow:clip}.list-header{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 16px;padding:18px 22px 0}.list-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px}.list-title{margin:0;font-size:.9375rem;font-weight:600}.list-summary{color:var(--muted);font-size:.8125rem;font-variant-numeric:tabular-nums}.format-note{color:var(--muted);font-size:.8125rem}.settings{display:flex;flex-wrap:wrap;align-items:end;gap:16px 24px;padding:16px 22px 18px;border-bottom:1px solid var(--border)}.field{display:grid;gap:6px;min-width:0}.field-target{flex:0 1 220px}.field-quality{flex:1 1 200px}.field-color{flex:0 1 200px}.field-label{color:var(--muted);font-size:.8125rem;font-weight:500}.field-value{color:var(--text);font-variant-numeric:tabular-nums}.select,.color{font:inherit;color:var(--text);height:var(--control-h);border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--bg);transition:border-color var(--fast) var(--ease)}.select{width:100%;padding:0 36px 0 12px;appearance:none;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px;background-repeat:no-repeat;cursor:pointer}.select:hover,.color:hover{border-color:var(--muted)}.color{width:100%;padding:5px;cursor:pointer}.color::-webkit-color-swatch-wrapper{padding:0}.color::-webkit-color-swatch{border:1px solid var(--border);border-radius:5px}.color::-moz-color-swatch{border:1px solid var(--border);border-radius:5px}.settings-edits{align-items:start;padding-top:14px}.field-max{flex:0 1 200px}.field-colour{flex:0 1 180px}.field-removebg{flex:0 1 auto}.field-tolerance{flex:1 1 104px}.settings-edits .field-color{flex:0 1 176px}.colour-group .color{flex:0 0 48px;width:48px;border-top-right-radius:0;border-bottom-right-radius:0}.colour-group .hex-input{margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0;font-family:var(--mono);font-size:.875rem}.field-hint{color:var(--muted);font-size:.75rem}.field-hint:empty{display:none}.text-input{font:inherit;color:var(--text);width:100%;min-width:0;height:var(--control-h);padding:0 12px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--bg);font-variant-numeric:tabular-nums;transition:border-color var(--fast) var(--ease)}.text-input::placeholder{color:var(--faint);opacity:1}.text-input:hover{border-color:var(--muted)}.text-input[aria-invalid=true]{border-color:var(--text);border-style:dashed}.input-group{display:flex;min-width:0}.input-group .text-input:not(.hex-input){border-top-right-radius:0;border-bottom-right-radius:0}.input-group .select-unit{width:auto;flex:0 0 auto;margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}.check{display:inline-flex;align-items:center;gap:10px;height:var(--control-h);cursor:pointer;font-weight:500}.checkbox{width:18px;height:18px;margin:0;accent-color:var(--inverse);cursor:pointer}.settings :disabled,.settings :disabled+span{cursor:not-allowed;opacity:.55}.range{width:100%;height:var(--control-h);margin:0;background:transparent;appearance:none;cursor:pointer}.range::-webkit-slider-runnable-track{height:4px;border-radius:999px;background:var(--subtle-2)}.range::-moz-range-track{height:4px;border-radius:999px;background:var(--subtle-2)}.range::-moz-range-progress{height:4px;border-radius:999px;background:var(--text)}.range::-webkit-slider-thumb{appearance:none;width:18px;height:18px;margin-top:-7px;border:2px solid var(--bg);border-radius:50%;background:var(--inverse);box-shadow:0 0 0 1px var(--inverse)}.range::-moz-range-thumb{width:14px;height:14px;border:2px solid var(--bg);border-radius:50%;background:var(--inverse);box-shadow:0 0 0 1px var(--inverse)}.range:focus-visible{outline-offset:0}.file-list{list-style:none;margin:0;padding:0}.file-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:16px;padding:16px 22px;border-bottom:1px solid var(--border);transition:background-color var(--fast) var(--ease)}.file-row:last-child{border-bottom:0}.file-row:hover{background:var(--subtle)}.file-row.no-preview{grid-template-columns:minmax(0,1fr) auto}.previews{display:flex;gap:6px;cursor:zoom-in}.preview{margin:0}.thumb{display:block;width:52px;height:52px;object-fit:contain;border:1px solid var(--border);border-radius:var(--radius-sm);background:repeating-conic-gradient(var(--checker) 0 25%,var(--bg) 0 50%) 0 0 / 10px 10px}.row-target{display:flex;align-items:center;gap:8px;margin:6px 0 2px}.row-target[hidden]{display:none}.row-target-label{color:var(--muted);font-size:.8125rem;font-weight:500}.select-small{width:auto;min-width:128px;height:32px;padding:0 32px 0 10px;font-size:.875rem}.thumb-doc{display:grid;place-items:center;background:var(--subtle);color:var(--text);font-size:.625rem;font-weight:700;letter-spacing:.04em}.thumb[hidden]{display:none}.file-body{display:grid;gap:2px;min-width:0;padding-top:2px}.file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:550}.file-meta{color:var(--muted);font-size:.8125rem;font-variant-numeric:tabular-nums}.file-status{display:flex;align-items:center;gap:8px;margin-top:4px;color:var(--muted);font-size:.8125rem}.file-status:before{content:"";flex:none;width:7px;height:7px;border-radius:50%;border:1.5px solid var(--faint)}.file-row[data-status=converting] .file-status:before,.file-row[data-status=queued] .file-status:before,.file-row[data-status=inspecting] .file-status:before{border-color:var(--text);animation:pulse 1.2s var(--ease) infinite}.file-row[data-status=done] .file-status{color:var(--text)}.file-row[data-status=done] .file-status:before{border-color:var(--text);background:var(--text)}.file-row[data-status=done] .file-status[data-stale=true]{color:var(--muted)}.file-row[data-status=done] .file-status[data-stale=true]:before{background:transparent}.file-row[data-status=error] .file-status{color:var(--text);font-weight:600}.file-row[data-status=error] .file-status:before{width:10px;height:2px;border:0;border-radius:1px;background:var(--text)}@keyframes pulse{50%{opacity:.25}}.file-progress{width:100%;max-width:280px;height:3px;margin-top:8px;border:0;border-radius:999px;overflow:hidden;appearance:none;background:var(--subtle-2);color:var(--text)}.file-progress::-webkit-progress-bar{background:var(--subtle-2)}.file-progress::-webkit-progress-value{background:var(--text);transition:width .2s var(--ease)}.file-progress::-moz-progress-bar{background:var(--text)}.file-messages{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}.msg{padding:8px 12px;border-radius:var(--radius-sm);font-size:.8125rem;line-height:1.45}.msg-warning{background:var(--subtle);color:var(--muted)}.msg-warning strong{color:var(--text);font-weight:600}.msg-error{border:1px solid var(--text);color:var(--text)}.file-actions{display:flex;align-items:center;gap:4px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:var(--control-h);padding:0 16px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--bg);color:var(--text);font:inherit;font-weight:550;white-space:nowrap;cursor:pointer;transition:background-color var(--fast) var(--ease),border-color var(--fast) var(--ease),color var(--fast) var(--ease),opacity var(--fast) var(--ease)}.btn:hover:not(:disabled){border-color:var(--text)}.btn:active:not(:disabled){transform:translateY(.5px)}.btn:disabled{opacity:.4;cursor:not-allowed}.btn-primary{border-color:var(--inverse);background:var(--inverse);color:var(--on-inverse)}.btn-primary:hover:not(:disabled){background:color-mix(in srgb,var(--inverse) 82%,var(--bg))}.btn-ghost{border-color:transparent;background:transparent;color:var(--muted)}.btn-ghost:hover:not(:disabled){border-color:transparent;color:var(--text);background:var(--subtle)}.btn-small{height:34px;padding:0 12px;font-size:.875rem}.icon-btn{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--muted);cursor:pointer;transition:background-color var(--fast) var(--ease),color var(--fast) var(--ease)}.icon-btn:hover{background:var(--subtle-2);color:var(--text)}.actionbar{position:sticky;bottom:0;z-index:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;padding:16px 22px;border-top:1px solid var(--border);background:var(--surface)}.overall{position:absolute;top:-1px;left:0;width:100%;height:2px;border:0;appearance:none;background:transparent;color:var(--text)}.overall::-webkit-progress-bar{background:transparent}.overall::-webkit-progress-value{background:var(--text);transition:width .2s var(--ease)}.overall::-moz-progress-bar{background:var(--text)}.notice{flex:1 1 220px;color:var(--muted);font-size:.875rem}.notice[data-kind=error]{color:var(--text);font-weight:600}.actions{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}.preview-dialog{width:min(960px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);color:var(--text);overflow:auto}.preview-dialog::backdrop{background:#0000008c;backdrop-filter:blur(2px)}.preview-dialog[open]{animation:dialog-in .16s var(--ease)}@keyframes dialog-in{0%{opacity:0;transform:translateY(6px) scale(.99)}}.pd-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 14px 14px 22px;border-bottom:1px solid var(--border)}.pd-title{margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9375rem;font-weight:600}.pd-panes{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;padding:18px 22px}.pd-pane{display:grid;gap:8px;margin:0;min-width:0}.pd-label{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;font-size:.8125rem;font-weight:600}.pd-meta{color:var(--muted);font-weight:400;font-variant-numeric:tabular-nums}.pd-image{position:relative;display:grid;place-items:center;aspect-ratio:4 / 3;border:1px solid var(--border);border-radius:var(--radius);background:repeating-conic-gradient(var(--checker) 0 25%,var(--bg) 0 50%) 0 0 / 16px 16px;overflow:hidden}.pd-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.pd-empty{background:var(--subtle);color:var(--muted);font-size:.875rem}.pd-textwrap{display:block;background:var(--subtle)}.pd-text{position:absolute;inset:0;margin:0;padding:14px 16px;overflow:auto;color:var(--text);font:.8125rem/1.55 var(--mono);white-space:pre-wrap;overflow-wrap:anywhere;text-align:left}.pd-doc{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center}.pd-doc-badge{display:grid;place-items:center;min-width:64px;padding:0 8px;height:80px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--bg);color:var(--text);font-weight:700;letter-spacing:.04em}.pd-doc .btn{text-decoration:none}.pd-footer{display:flex;justify-content:flex-end;padding:0 22px 20px}.site-footer{border-top:1px solid var(--border);color:var(--faint);font-size:.8125rem}.footer-inner{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;padding-top:20px;padding-bottom:28px}.site-footer a{color:var(--muted)}@media(max-width:640px){:root{--gutter: 16px}.main{padding-top:32px}.dropzone{min-height:220px;padding:32px 18px}body.has-files .dropzone{padding:14px 16px}.list-header,.settings,.actionbar{padding-left:16px;padding-right:16px}.field-target,.field-quality,.field-color,.field-max,.field-colour,.field-removebg,.field-tolerance{flex:1 1 100%}.file-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"thumbs actions" "body body";gap:12px;padding:14px 16px}.file-row.no-preview{grid-template-areas:"body actions"}.file-row .previews{grid-area:thumbs}.file-row .file-body{grid-area:body}.file-row .file-actions{grid-area:actions;align-self:start}.thumb{width:48px;height:48px}.actions{width:100%;margin-left:0}.actions .btn{flex:1 1 auto}.actions .btn-ghost{flex:0 0 auto}.pd-panes{padding:14px 16px}.pd-image{aspect-ratio:auto;height:min(34vh,280px)}.actions .btn-primary:not(:disabled){flex-basis:100%;order:-1}.hero-lede{font-size:1rem}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
