:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#202631;background:#eef1f4;--muted:#737d8c;--line:#e3e7ed;--surface:#f0f2f5;--blue:#2da8ff;--green:#34896d;color-scheme:light}*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}button,a,input{font:inherit}button,a[role=button]{cursor:pointer}button{color:inherit;transition:background .15s}button:disabled,a[aria-disabled=true]{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #87c9ff;outline-offset:4px}[hidden]{display:none!important}.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.app{width:100%;height:100dvh;padding:22px;display:grid;grid-template-columns:minmax(290px,39fr) minmax(0,61fr);gap:30px;position:relative}.source-panel,.result-panel{min-width:0;min-height:0;background:white;border-radius:18px;display:flex;flex-direction:column;overflow:hidden}.source-panel{box-shadow:0 7px 22px #18253613}.source-content{min-height:0;flex:1;display:flex;flex-direction:column;gap:16px;padding:22px 22px 20px}.source-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.brand{font-size:17px;font-weight:750;letter-spacing:-.6px;display:flex;align-items:center;gap:7px}.brand .icon{width:20px;height:20px}.brand span{color:var(--blue)}.source-top small{font-size:10px;color:var(--muted)}.upload{position:relative;min-height:50px;flex:1;width:100%;border:1.5px dashed #abb6c8;border-radius:12px;background:var(--surface);display:grid;place-items:center;overflow:hidden;padding:0;color:var(--muted)}.upload:hover,.upload.dragover{border-color:var(--blue);background:#eaf5ff}.upload img{width:100%;height:100%;position:absolute;inset:0;object-fit:contain;padding:22px;pointer-events:none}.upload-prompt{display:flex;align-items:center;justify-content:center;gap:10px;font-size:14px;font-weight:600;padding:20px;line-height:1.6}.upload-prompt .icon{width:28px;height:28px}.upload-prompt u{text-underline-offset:3px}.upload.has-image .upload-prompt{position:absolute;bottom:12px;background:#ffffffed;border:1px solid var(--line);border-radius:8px;padding:8px 12px;font-size:11px}.upload.has-image .upload-prompt .icon{width:17px;height:17px}.source-tag{position:absolute;left:12px;top:12px;background:#ffffffee;border:1px solid var(--line);border-radius:6px;font-size:9px;font-weight:600;padding:5px 8px;color:var(--muted)}.file-ribbon{display:flex;gap:7px;overflow:auto;flex:none;scrollbar-width:thin}.file-item{height:40px;width:40px;flex:none;border:1px solid var(--line);background:white;border-radius:7px;padding:2px;position:relative}.file-item.active{border:2px solid var(--blue);padding:1px}.file-item img{width:100%;height:100%;object-fit:contain}.done{position:absolute;right:-1px;bottom:-2px;background:var(--green);color:white;border:1px solid white;font-size:8px;width:11px;height:11px;border-radius:50%;display:grid;place-items:center}.color-control{background:var(--surface);border-radius:12px;padding:14px 16px 15px;flex:none}.color-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.color-top label{font-size:14px}.color-top output{font-size:14px;font-variant-numeric:tabular-nums;background:white;min-width:44px;border-radius:8px;text-align:right;padding:4px 8px}.color-range{appearance:none;-webkit-appearance:none;width:100%;height:6px;margin:5px 0;background:linear-gradient(to right,var(--blue) 0%,var(--blue) var(--fill,20%),#d4e9fa var(--fill,20%),#d4e9fa 100%);border-radius:8px;cursor:pointer;display:block}.color-range::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:16px;height:16px;border:1.5px solid var(--blue);background:#fff;border-radius:50%}.color-range::-moz-range-thumb{width:14px;height:14px;border:1.5px solid var(--blue);background:#fff;border-radius:50%}.source-footer{border-top:1px solid var(--line);padding:20px 22px 22px;display:flex;flex-direction:column;gap:13px;flex:none}.local-note{background:var(--surface);padding:13px 15px;border-radius:11px;display:flex;justify-content:space-between;align-items:center;gap:10px;color:var(--muted);font-size:11px}.local-note>span{display:flex;align-items:center;gap:8px}.local-note .icon{width:17px;height:17px}.sample-button{border:0;background:none;padding:2px;color:var(--muted);font-size:11px;font-weight:650;white-space:nowrap}.sample-button:hover{color:#168de3}.vectorize{border:0;background:#202c42;color:#fff;border-radius:11px;min-height:47px;display:flex;align-items:center;justify-content:center;gap:9px;font-size:14px;font-weight:600;width:100%}.vectorize:hover:not(:disabled){background:#304463}.vectorize .icon{width:19px;height:19px}.flow-arrow{position:absolute;left:calc(39% - 2px);top:49%;width:48px;height:48px;border-radius:50%;background:#fff;box-shadow:0 5px 22px #18253617;display:grid;place-items:center;z-index:2;pointer-events:none}.flow-arrow .icon{width:27px;height:27px}
.result-panel{padding:22px 22px 0}.result-stage{min-height:0;flex:1;position:relative;background:#f3f5f5;border-radius:12px;overflow:hidden;touch-action:none;cursor:grab}.result-stage:active{cursor:grabbing}.result-stage.checker{background-color:#fff;background-image:linear-gradient(45deg,#e9edf1 25%,transparent 25%),linear-gradient(-45deg,#e9edf1 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e9edf1 75%),linear-gradient(-45deg,transparent 75%,#e9edf1 75%);background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0}.preview-top{position:absolute;inset:14px 14px auto;display:flex;align-items:center;justify-content:space-between;gap:8px;z-index:2;pointer-events:none}.preview-tag{background:#ffffffdf;color:#818a96;font-size:10px;font-weight:600;border:1px solid #e9ecee;border-radius:6px;padding:6px 9px}.preview-buttons{display:flex;gap:5px;pointer-events:auto}.small-icon{width:29px;height:29px;padding:5px;border:1px solid var(--line);background:#ffffffdf;color:#818a96;border-radius:7px;display:grid;place-items:center}.small-icon .icon{width:16px;height:16px}.small-icon:hover,.small-icon[aria-pressed=true]{color:#168de3;background:#e7f3fe}.viewport{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;pointer-events:none}.vector-layer,.vector-layer svg{width:100%;height:100%}.vector-layer svg{display:block;overflow:visible}.placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;text-align:center;padding:25px;color:#9aa3ad;pointer-events:none}.placeholder>.icon{width:43px;height:43px;stroke-width:1.2;margin-bottom:5px}.placeholder strong{font-size:16px;font-weight:500;color:#7e8996}.placeholder p{font-size:12px;margin:0;line-height:1.7}.canvas-tools{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);background:#ffffffed;border:1px solid var(--line);display:flex;align-items:center;gap:4px;padding:4px 6px;border-radius:9px;cursor:default}.canvas-tools button{border:0;background:none;padding:5px;color:#7e8996;display:grid;place-items:center;border-radius:5px;min-width:25px;height:25px}.canvas-tools button:hover{background:#edf1f5}.canvas-tools .icon{width:15px;height:15px}.canvas-tools output{font-size:10px;min-width:35px;text-align:center;color:#758190;font-variant-numeric:tabular-nums}.tool-sep{height:14px;border-left:1px solid var(--line);margin:0 3px}.palette{position:absolute;bottom:18px;right:16px;display:flex;gap:3px;max-width:28%;flex-wrap:wrap;justify-content:flex-end}.swatch{width:12px;height:12px;border:1px solid #00000015;border-radius:3px}.result-footer{height:78px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}.download,.code-button{border:0;background:none;padding:10px 0;color:#77808f;display:flex;align-items:center;gap:9px;font-size:14px;font-weight:650;text-decoration:none;white-space:nowrap}.download:hover:not([aria-disabled=true]),.code-button:hover:not(:disabled){color:#168de3}.footer-right{display:flex;align-items:center;gap:15px}.status{font-size:10px;color:var(--muted);display:flex;flex-direction:column;gap:4px;text-align:right}.status strong{font-weight:500;color:var(--green)}.status small{font-size:9px}.batch-button{border:0;padding:0;background:none;color:var(--muted);font-size:10px}.license-link{border:0;background:none;padding:0;font-size:12px;color:var(--muted)}
.busy{position:absolute;inset:0;z-index:5;background:#f3f5f5bd;backdrop-filter:blur(3px);display:grid;place-items:center;cursor:wait}.busy-card{background:white;border:1px solid var(--line);border-radius:13px;box-shadow:0 10px 40px #202c4210;padding:26px;min-width:230px;text-align:center}.spinner{width:26px;height:26px;border:2px solid #e5ecf4;border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite;margin:0 auto 14px}.busy-card strong{font-size:13px}.busy-card p{font-size:11px;color:var(--muted);margin:10px 0 17px}.cancel{border:1px solid var(--line);background:white;border-radius:7px;padding:7px 12px;color:var(--muted);font-size:11px}@keyframes spin{to{transform:rotate(360deg)}}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,15px);background:#233047;color:white;padding:11px 17px;font-size:12px;border-radius:9px;max-width:calc(100% - 30px);opacity:0;pointer-events:none;transition:.2s;z-index:20;box-shadow:0 5px 25px #0002}.toast.visible{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid var(--line);border-radius:14px;max-width:calc(100% - 32px);width:640px;padding:0;color:#202631;background:white}dialog::backdrop{background:#17243b66;backdrop-filter:blur(3px)}.dialog-head,.dialog-foot{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid var(--line);gap:12px}.dialog-head h2{margin:0;font-size:15px}.dialog-head button{border:0;background:none;font-size:22px;color:var(--muted)}.dialog-body{padding:18px 20px;font-size:12px;line-height:1.7;color:var(--muted);max-height:65dvh;overflow:auto}.dialog-body textarea{width:100%;height:260px;border:1px solid var(--line);background:var(--surface);border-radius:7px;padding:12px;font:10px/1.6 monospace;resize:vertical}.dialog-foot{border-bottom:0;border-top:1px solid var(--line);justify-content:flex-end}.dialog-foot button,.dialog-foot a{border:1px solid var(--line);background:var(--surface);border-radius:7px;padding:8px 12px;text-decoration:none;color:#202631;font-size:11px}.dialog-body pre{white-space:pre-wrap;font:10px/1.5 monospace}.dialog-body a{color:#168de3}
@media(min-width:1700px){.app{padding:28px;gap:38px}.source-content,.result-panel{padding:26px}.result-panel{padding-bottom:0}.source-footer{padding:23px 26px 26px}.source-content{gap:19px}.upload-prompt{font-size:17px}.color-top label,.color-top output{font-size:16px}.color-control{padding:16px 19px 19px}.local-note{font-size:13px;padding:18px}.sample-button{font-size:12px}.vectorize{min-height:54px;font-size:16px}.download,.code-button{font-size:17px}.result-footer{height:91px}.flow-arrow{width:58px;height:58px}}
@media(max-width:1050px){.app{padding:14px;gap:20px;grid-template-columns:minmax(265px,39fr) minmax(0,61fr)}.source-content{padding:16px;gap:13px}.source-footer{padding:15px 16px 16px;gap:10px}.result-panel{padding:16px 16px 0}.flow-arrow{width:38px;height:38px;left:calc(39% - 1px)}.upload-prompt{font-size:12px}.local-note{padding:11px;font-size:10px}.sample-button{font-size:10px}.footer-right{gap:10px}.status{display:none}.download,.code-button{font-size:12px;gap:6px}.download .icon,.code-button .icon{width:18px;height:18px}.palette{max-width:23%}.source-top small{font-size:9px}.brand{font-size:16px}}
@media(max-width:700px){.app{padding:10px;gap:10px;grid-template-columns:1fr;grid-template-rows:minmax(0,43fr) minmax(0,57fr)}.source-panel,.result-panel{border-radius:13px}.source-content{display:grid;grid-template-columns:minmax(0,1fr) 108px;grid-template-rows:20px minmax(0,1fr);padding:12px;gap:10px}.source-top{grid-column:1/-1}.upload{grid-column:1;grid-row:2;height:100%;border-radius:9px}.upload img{padding:10px}.color-control{grid-column:2;grid-row:2;align-self:stretch;padding:11px 10px;display:flex;flex-direction:column;justify-content:center;gap:9px;border-radius:9px}.color-top{gap:5px;flex-wrap:wrap}.color-top label{font-size:12px}.color-top output{min-width:31px;font-size:12px;padding:3px 6px}.color-range{height:5px}.file-ribbon{display:none!important}.source-footer{padding:9px 12px 12px;gap:0;flex-direction:row;align-items:center}.local-note{background:none;padding:0;flex:1;font-size:9px;justify-content:flex-start}.local-note .icon{width:14px;height:14px}.local-note .sample-button{display:none}.vectorize{width:auto;min-width:135px;min-height:36px;font-size:12px;border-radius:8px;padding:8px 14px}.vectorize .icon{width:16px;height:16px}.flow-arrow{display:none}.result-panel{padding:10px 10px 0}.result-stage{border-radius:9px}.result-footer{height:51px}.download,.code-button{font-size:11px;padding:7px 0}.source-tag{top:7px;left:7px;font-size:8px;padding:3px 6px}.upload.has-image .upload-prompt{bottom:6px;padding:5px 8px;font-size:9px;gap:5px}.upload.has-image .upload-prompt .icon{width:13px;height:13px}.upload-prompt{font-size:11px;gap:6px;padding:12px}.upload-prompt>.icon{width:22px;height:22px}.preview-top{inset:9px 9px auto}.preview-tag{font-size:8px;padding:5px 7px}.small-icon{width:25px;height:25px;padding:4px}.canvas-tools{bottom:9px;padding:2px 4px}.canvas-tools button{width:22px;min-width:22px;height:23px;padding:4px}.canvas-tools output{font-size:9px;min-width:30px}.palette{bottom:16px;right:10px;max-width:23%;gap:2px}.swatch{width:8px;height:8px;border-radius:2px}.placeholder strong{font-size:13px}.placeholder p{font-size:10px}.placeholder>.icon{width:30px;height:30px}.source-top small{font-size:8px}.brand{font-size:14px}.brand .icon{width:17px;height:17px}}
@media(max-height:540px) and (min-width:701px){.app{padding:10px;gap:18px}.source-content{padding:12px;gap:9px}.source-footer{padding:10px 12px;gap:8px}.source-top small{display:none}.local-note{padding:8px}.vectorize{min-height:35px}.color-control{padding:9px 12px}.color-top label,.color-top output{font-size:12px}.result-panel{padding:12px 12px 0}.result-footer{height:50px}.upload-prompt{font-size:11px}.file-ribbon{display:none!important}}
.source-panel{position:relative}.flow-arrow{left:calc(39% - 16px)}@media(min-width:1700px){.flow-arrow{left:calc(39% - 19px)}}@media(min-width:701px) and (max-width:1050px){.flow-arrow{left:calc(39% - 14px)}}@media(max-width:700px){.file-ribbon:not([hidden]){display:flex!important;position:absolute;left:23px;right:143px;bottom:74px;height:30px;z-index:2}.file-ribbon .file-item{width:28px;height:28px}.source-panel:has(.file-ribbon:not([hidden])) .upload-prompt{bottom:43px}}
.trace-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:stretch;flex:none}.white-control{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--surface);border-radius:12px;padding:12px 14px;color:var(--muted);font-size:11px;line-height:1.4;cursor:pointer}.white-control span{max-width:74px}.white-control input{appearance:none;width:32px;height:19px;flex:none;margin:0;position:relative;background:#c6cdd7;border-radius:20px;cursor:pointer}.white-control input:after{content:'';position:absolute;left:3px;top:3px;width:13px;height:13px;border-radius:50%;background:white;transition:transform .15s}.white-control input:checked{background:var(--blue)}.white-control input:checked:after{transform:translateX(13px)}
@media(max-width:700px){.app{grid-template-rows:minmax(0,47fr) minmax(0,53fr)}.source-content{display:flex;flex-direction:column;padding:11px 12px 10px;gap:9px}.source-top{height:19px;min-height:19px}.upload{width:100%;height:auto;min-height:30px;flex:1;grid-column:auto;grid-row:auto}.upload img{padding:8px}.trace-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;width:100%}.color-control{display:block;grid-column:auto;grid-row:auto;padding:8px 11px 11px}.color-top{margin-bottom:4px;flex-wrap:nowrap}.color-top output{font-size:11px}.white-control{padding:9px 11px;border-radius:9px;font-size:10px;gap:9px}.white-control span{max-width:65px}.white-control input{width:30px;height:18px}.white-control input:after{width:12px;height:12px}.white-control input:checked:after{transform:translateX(12px)}.source-footer{display:block;padding:0 12px 12px;border-top:0}.local-note{display:none}.vectorize{width:100%;min-height:38px;display:flex;font-size:12px}.file-ribbon:not([hidden]){left:23px;right:23px;bottom:123px}.source-panel:has(.file-ribbon:not([hidden])) .upload-prompt{bottom:36px}}
.swatch{appearance:none;-webkit-appearance:none;display:block;flex:none;margin:0;padding:0;cursor:pointer;overflow:hidden;background:transparent}.swatch::-webkit-color-swatch-wrapper{padding:0}.swatch::-webkit-color-swatch{border:0;border-radius:1px}.swatch::-moz-color-swatch{border:0;border-radius:1px}.swatch:disabled{cursor:default}.swatch:focus-visible{outline-offset:2px}
.compare-before{position:absolute;inset:0;background:inherit;pointer-events:none;clip-path:inset(0 calc(100% - var(--compare,50%)) 0 0)}.compare-original{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);max-width:none;max-height:none;object-fit:fill;pointer-events:none;user-select:none}.compare-overlay{position:absolute;inset:0;pointer-events:none;z-index:1}.compare-labels{position:absolute;inset:50px 14px auto;display:flex;justify-content:space-between;gap:8px}.compare-labels span{background:#ffffffdf;border:1px solid #e9ecee;border-radius:5px;padding:4px 7px;font-size:9px;font-weight:600;color:#818a96}.compare-slider{position:absolute;top:0;bottom:0;left:var(--compare,50%);width:44px;transform:translateX(-50%);pointer-events:auto;cursor:ew-resize;touch-action:none;outline:none}.compare-slider:before{content:'';position:absolute;top:0;bottom:0;left:21px;width:2px;background:#fff;box-shadow:0 0 4px #18253633}.compare-handle{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:36px;height:36px;display:grid;place-items:center;border:1px solid #e3e7ed;border-radius:50%;background:#fff;color:#737d8c;box-shadow:0 2px 10px #18253626}.compare-handle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.compare-slider:focus-visible .compare-handle{outline:3px solid #87c9ff;outline-offset:3px}.compare-slider[aria-disabled=true]{pointer-events:none}.canvas-tools,.palette{z-index:2}@media(max-width:700px){.compare-labels{inset:42px 9px auto}.compare-labels span{font-size:8px;padding:3px 6px}.compare-handle{width:32px;height:32px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation-duration:.01ms!important}}

/* Site theme bridge; the tracing engine and reference panel arrangement stay isolated. */
@font-face{font-family:InterUI;src:url('/ui-fonts/inter-latin-variable.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{font-family:InterUI,ui-sans-serif,system-ui,sans-serif;letter-spacing:0} .brand{letter-spacing:0} .source-panel,.result-panel,.color-control,.white-control,.upload,.result-stage,.local-note,.vectorize,dialog,.busy-card{border-radius:8px} .license-link .icon{width:18px;height:18px} .dialog-head button .icon{width:20px;height:20px}
:root[data-theme="dark"]{color-scheme:dark;color:#edf0f3;background:#101316;--muted:#a4adb8;--line:#343b44;--surface:#22272e;--blue:#55b7ff;--green:#71c6a3}
:root[data-theme="dark"] .source-panel,:root[data-theme="dark"] .result-panel,:root[data-theme="dark"] dialog,:root[data-theme="dark"] .busy-card{background:#191e24;color:#edf0f3}
:root[data-theme="dark"] .result-stage{background:#22292b}
:root[data-theme="dark"] .upload:hover,:root[data-theme="dark"] .upload.dragover{background:#182d39}
:root[data-theme="dark"] .color-top output,:root[data-theme="dark"] .flow-arrow,:root[data-theme="dark"] .source-tag,:root[data-theme="dark"] .preview-tag,:root[data-theme="dark"] .small-icon,:root[data-theme="dark"] .canvas-tools,:root[data-theme="dark"] .compare-labels span,:root[data-theme="dark"] .compare-handle,:root[data-theme="dark"] .upload.has-image .upload-prompt{background:#252d36;color:#b8c4cf;border-color:var(--line)}
:root[data-theme="dark"] .small-icon:hover,:root[data-theme="dark"] .small-icon[aria-pressed=true],:root[data-theme="dark"] .canvas-tools button:hover{background:#19384c;color:#75cbff}
:root[data-theme="dark"] .result-stage.checker{background-color:#1b2026;background-image:linear-gradient(45deg,#2c343e 25%,transparent 25%),linear-gradient(-45deg,#2c343e 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#2c343e 75%),linear-gradient(-45deg,transparent 75%,#2c343e 75%)}
:root[data-theme="dark"] .file-item{background:#252d36}
:root[data-theme="dark"] .busy{background:#101820bd}
:root[data-theme="dark"] .cancel{background:#252d36;color:#dde6ee}
:root[data-theme="dark"] .dialog-foot button,:root[data-theme="dark"] .dialog-foot a{color:#edf0f3}
/* Keep transparency and form accents consistent with the surrounding website. */
:root{--accent:#ed674a;--range-track:#ddd;--checker-base:#fff;--checker-tile:#e9edf1}
:root[data-theme="dark"]{--range-track:#3a424b;--checker-base:#101214;--checker-tile:#262a2f}
.upload.has-image,.file-item,.result-stage.checker,:root[data-theme="dark"] .file-item,:root[data-theme="dark"] .result-stage.checker{background-color:var(--checker-base);background-image:linear-gradient(45deg,var(--checker-tile) 25%,transparent 25%),linear-gradient(-45deg,var(--checker-tile) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--checker-tile) 75%),linear-gradient(-45deg,transparent 75%,var(--checker-tile) 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}
.color-range{height:5px;background:var(--range-track);accent-color:var(--accent)}
.color-range::-webkit-slider-thumb{width:17px;height:17px;border:0;background:var(--accent)}
.color-range::-moz-range-track{height:5px;border:0;border-radius:8px;background:var(--range-track)}
.color-range::-moz-range-thumb{width:17px;height:17px;border:0;background:var(--accent)}
:root[data-theme="dark"] .color-range::-webkit-slider-thumb{border:2px solid #fff}
:root[data-theme="dark"] .color-range::-moz-range-thumb{border:2px solid #fff}
.white-control input{background:#c6cdd7;accent-color:var(--accent)}
:root[data-theme="dark"] .white-control input{background:var(--range-track)}
.white-control input:checked,:root[data-theme="dark"] .white-control input:checked{background:var(--accent)}
.color-range:focus-visible,.white-control input:focus-visible{outline-color:var(--accent)}
.color-control,.compare-overlay{-webkit-user-select:none;user-select:none}
.upload-wrap{position:relative;display:flex;flex:1;min-height:50px;min-width:0}
.upload-remove,.file-remove{position:absolute;z-index:3;display:grid;place-items:center;padding:0;border:1px solid var(--line);background:#fff;color:#737d8c;border-radius:50%;cursor:pointer}
.upload-remove{top:10px;right:10px;width:28px;height:28px}
.upload-remove .icon{width:16px;height:16px}
.file-entry{position:relative;flex:none;padding:5px 5px 0 0}
.file-remove{top:0;right:0;width:20px;height:20px}
.file-remove .icon{width:12px;height:12px}
:root[data-theme="dark"] .upload-remove,:root[data-theme="dark"] .file-remove{background:#252d36;color:#dde6ee}
.upload-remove:hover:not(:disabled),.file-remove:hover:not(:disabled){color:var(--accent);border-color:var(--accent)}
@media(max-width:700px){.upload-wrap{grid-column:1;grid-row:2;min-height:0}.upload-remove{top:7px;right:7px}}
