.mode-switch{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--inset)}.mode-switch button{padding:7px 16px;border:0;border-radius:8px;color:var(--muted);background:transparent;cursor:pointer}.mode-switch button.selected{background:var(--surface);color:var(--accent);box-shadow:0 1px 4px #0001}.wf-shell{margin:0 auto 32px;max-width:1600px;padding:0 24px;color:var(--text)}.wf-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:14px}.wf-toolbar>div{margin-right:auto}.wf-toolbar select{width:auto;max-width:240px}.mode-switch button{white-space:nowrap}.wf-subtitle{display:block;color:var(--muted);font-size:12px;margin-top:5px}.wf-shell button,.wf-shell select,.wf-shell input[type=number]{font:inherit;color:var(--text);border:1px solid var(--line);border-radius:8px;padding:8px 10px;background:var(--surface);min-height:34px}.wf-shell button{cursor:pointer}.wf-shell button:disabled{opacity:.4;cursor:default}.wf-shell button:hover:not(:disabled){border-color:var(--accent)}.wf-shell .wf-run{background:var(--accent);color:var(--bg);border-color:var(--accent);font-weight:600}.wf-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px;align-items:start}.wf-main{min-width:0}.wf-toolbox{display:flex;gap:8px;overflow-x:auto;max-height:170px;padding:9px 10px;background:var(--surface);border-inline:1px solid var(--line);scrollbar-width:thin}.wf-toolbox section{flex:0 0 174px}.wf-toolbox section>strong{display:block;margin:0 0 7px 3px;color:var(--muted);font-size:10px;letter-spacing:.08em}.wf-toolbox section>div{display:grid;gap:3px}.wf-toolbox button{display:grid;grid-template-columns:24px 1fr 14px;align-items:center;gap:6px;width:100%;min-height:30px;padding:3px 6px;text-align:left;border-color:transparent;background:var(--inset)}.wf-toolbox button>span:first-child{display:grid;place-items:center;width:24px;height:24px;border-radius:6px;color:var(--accent);background:var(--accent-wash);font-size:15px}.wf-toolbox button>span:nth-child(2){min-width:0}.wf-toolbox button b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.wf-toolbox button i{color:var(--accent);font-size:16px;font-style:normal;opacity:.65}.wf-toolbox button:hover:not(:disabled){background:var(--accent-wash)}.wf-canvas-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 10px;font-size:10px;color:var(--muted);background:var(--surface);border:1px solid var(--line);border-radius:14px 14px 0 0}.wf-canvas-tools>div{display:flex;align-items:center;gap:10px;min-width:0}.wf-shell .wf-toolbox-toggle{min-height:28px;padding:4px 9px;color:var(--accent);white-space:nowrap}.wf-canvas-tools label{display:flex;align-items:center;gap:8px;white-space:nowrap;flex-shrink:0}.wf-canvas-tools select{padding:3px 8px;min-height:26px;width:72px}.wf-scroll{height:480px;overflow:auto;background-color:var(--inset);background-image:radial-gradient(var(--line) 1px,transparent 1px);background-size:18px 18px;border:1px solid var(--line);border-radius:0 0 14px 14px}.wf-board{position:relative;transform-origin:0 0}.wf-edges{position:absolute;top:0;left:0;pointer-events:none;overflow:visible}.wf-edges path{fill:none;stroke:var(--muted);stroke-width:2;opacity:.55}.wf-edges path.active{stroke:var(--accent);stroke-width:3;opacity:1}.wf-edges .wf-edge-hit{stroke:var(--text);stroke-width:16;opacity:.001;pointer-events:stroke;cursor:pointer}.wf-edges .wf-edge-hit:focus{stroke:var(--accent-wash);outline:none}.wf-edges .wf-wire-preview{stroke:var(--accent);stroke-width:3;stroke-dasharray:8 5;opacity:1;pointer-events:none}.wf-node{position:absolute;height:166px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 5px 18px #0002;font-size:12px;cursor:grab;touch-action:none}.wf-node:active{cursor:grabbing}.wf-node.selected{outline:2px solid var(--accent);outline-offset:2px}.wf-node.running{box-shadow:0 0 0 4px var(--accent-wash);border-color:var(--accent)}.wf-node.failed{outline:2px solid #dc6868}.wf-node header{display:flex;justify-content:flex-start;gap:9px;height:39px;padding:0 12px;margin:0;border-bottom:1px solid var(--line);cursor:grab;touch-action:none}.wf-node header span{color:var(--muted);font-size:11px}.wf-node header span:last-child{margin-left:auto}.wf-node header strong{font-size:12px}.wf-node-content{display:flex;gap:10px;align-items:center;padding:13px 18px;height:81px}.wf-node-content img{width:45px;height:45px;object-fit:contain;border-radius:5px;background:var(--inset)}.wf-node-content>div{min-width:0}.wf-node-content p{margin:0 0 6px;font-size:11px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.wf-node-content small{color:var(--muted)}.wf-node-icon{width:34px;flex-shrink:0;font-size:29px;color:var(--accent);text-align:center}.wf-node-footer{padding:8px 14px;color:var(--muted);border-top:1px solid var(--line);font-size:10px}.wf-shell .wf-port{position:absolute;z-index:4;width:24px;height:24px;min-height:0;padding:0;border:2px solid var(--muted);border-radius:50%;background:var(--surface);cursor:crosshair;touch-action:none}.wf-port.input{left:-12px}.wf-port.output{right:-12px;top:52px}.wf-port span{position:absolute;left:27px;top:2px;width:max-content;font-size:9px;color:var(--muted);pointer-events:none}.wf-port.output span{left:auto;right:27px}.wf-port.wire-target{border-color:var(--accent);box-shadow:0 0 0 5px var(--accent-wash)}.wf-shell .wf-port.linked,.wf-shell .wf-port.armed{background:var(--accent);border-color:var(--accent)}.wf-shell .wf-port:hover{transform:scale(1.25);box-shadow:0 0 0 5px var(--accent-wash)}.wf-add-menu-backdrop{position:fixed;inset:0;z-index:49}.wf-add-menu{position:fixed;z-index:50;width:242px;max-height:420px;padding:10px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface);box-shadow:0 12px 36px #0005}.wf-add-menu>div:first-child{display:flex;align-items:center;justify-content:space-between;padding:2px 2px 9px;font-size:12px}.wf-add-menu>div:first-child button{min-height:26px;padding:2px 7px}.wf-add-menu>input{width:100%;margin-bottom:8px}.wf-add-menu>div:last-child{display:grid;max-height:322px;overflow:auto;gap:3px}.wf-add-menu>div:last-child button{display:grid;grid-template-columns:28px 1fr 16px;gap:8px;align-items:center;text-align:left;border-color:transparent}.wf-add-menu>div:last-child button>span:first-child{display:grid;place-items:center;width:27px;height:27px;border-radius:7px;color:var(--accent);background:var(--accent-wash);font-size:16px}.wf-add-menu>div:last-child button b,.wf-add-menu>div:last-child button small{display:block}.wf-add-menu>div:last-child button small{margin-top:2px;color:var(--muted);font-size:9px}.wf-add-menu>div:last-child button i{color:var(--accent);font-size:16px;font-style:normal}.wf-shell .wf-edge-remove{position:absolute;z-index:3;width:22px;height:22px;min-height:0;padding:0;transform:translate(-50%,-50%);border-radius:50%;color:var(--muted);background:var(--surface);opacity:.38;font-size:14px;line-height:1}.wf-shell .wf-edge-remove:hover,.wf-shell .wf-edge-remove:focus-visible{opacity:1;color:var(--text);border-color:#d76c6c;box-shadow:0 0 0 4px #d76c6c22}.wf-file{display:block;position:relative;margin:0 12px;padding:7px;text-align:center;border:1px dashed var(--accent);border-radius:6px;color:var(--accent);cursor:pointer}.wf-file input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.wf-inspector{border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:18px;font-size:12px}.wf-inspector h2{font-size:14px;margin:0 0 16px}.wf-inspector p{color:var(--muted);line-height:1.7;font-size:12px}.wf-inspector .wf-model-note{padding:9px 10px;border-radius:8px;background:var(--inset)}.wf-model-note strong{color:var(--text)}.wf-inspector fieldset{margin:0;padding:0;border:0;min-width:0}.wf-node-actions{display:flex;gap:6px;margin-bottom:16px}.wf-field{display:flex;flex-direction:column;gap:7px;margin-bottom:13px}.wf-field>span{color:var(--muted)}.wf-field select,.wf-field input{width:100%}.wf-connection{display:flex;gap:8px;align-items:center;justify-content:space-between;margin:10px 0;font-size:11px}.wf-connection button{min-height:24px;padding:4px 7px;font-size:10px}.wf-wide{width:100%;margin-top:8px}.wf-storage{border-top:1px solid var(--line);margin-top:20px;padding-top:14px}.wf-storage summary{cursor:pointer;color:var(--muted);margin-bottom:12px}.wf-status{min-height:42px;display:flex;align-items:center;gap:16px;font-size:12px;color:var(--muted);padding:8px 3px}.wf-status progress{width:140px;margin-left:auto}.wf-preview{border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}.wf-preview-heading{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 16px;font-size:12px;border-bottom:1px solid var(--line)}.wf-preview-heading strong{margin-right:auto}.wf-preview-heading button{font-size:11px;min-height:28px;padding:5px 8px}.wf-preview-heading a{color:var(--accent)}.wf-empty-preview{padding:55px 20px;text-align:center;font-size:12px;color:var(--muted)}.wf-preview-hint{color:var(--muted);font-size:11px;margin:12px 16px;line-height:1.6}.wf-image-wrap{padding:10px 16px 20px;overflow:auto}.wf-image-wrap.region-scroll{max-height:clamp(420px,64vh,760px);overscroll-behavior:contain}.wf-image{position:relative;margin:auto}.wf-image.region{touch-action:none;cursor:crosshair;-webkit-user-select:none;user-select:none}.wf-image img{width:100%;height:100%;display:block;object-fit:fill}.wf-region-box{position:absolute;border:2px solid #f8a844;background:#f8a84422;pointer-events:none}.wf-region-box.source{border-color:#42c99d;background:#42c99d22;border-style:dashed}@media(max-width:1000px){.wf-layout{grid-template-columns:minmax(0,1fr) 245px}.wf-shell{padding:0 16px}.wf-toolbar{font-size:12px}}@media(max-width:720px){.wf-layout{grid-template-columns:1fr}.wf-inspector{grid-row:2}.wf-shell{padding:0 12px}.wf-scroll{height:350px}.wf-toolbar>div{width:100%}.wf-canvas-tools{align-items:flex-start}.mode-switch button{padding:7px 10px;font-size:12px}}@media(max-width:680px){.shell>header{height:auto;min-height:86px;flex-wrap:wrap;padding:16px 0;gap:12px}.shell>header .theme-select{margin-left:auto}.shell>header .mode-switch{order:3;width:100%}.mode-switch button{flex:1}}.shell.workflow-mode{max-width:1680px}.shell.workflow-mode .wf-shell{padding:12px 0 0}.wf-spinner{display:inline-block;width:12px;height:12px;border:2px solid var(--line-strong);border-top-color:var(--accent);border-radius:50%;animation:wf-spin .8s linear infinite;flex-shrink:0}@keyframes wf-spin{to{transform:rotate(360deg)}}.wf-execution{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-variant-numeric:tabular-nums;color:var(--muted)}.wf-node>.wf-execution{margin:0 12px}.wf-background-note{color:var(--muted);font-size:11px;margin:5px 4px}:root{font-family:Inter,Segoe UI Variable,Segoe UI,Microsoft YaHei,sans-serif;font-synthesis:none;font-weight:400;color-scheme:dark;--bg: #121317;--surface: #1d1e25;--surface-glass: #1d1e25e8;--raised: #282932;--inset: #14151b;--line: #ffffff12;--line-strong: #ffffff26;--text: #eeeef3;--muted: #a5a5b6;--accent: #efb0cc;--accent-ink: #3b2232;--accent-wash: #efb0cc14;--selected: #574053;--selected-text: #ffdeed;--focus: #efb0cc;--shadow: 0 12px 40px #00000024, 0 1px 2px #00000020;--button-shadow: 0 2px 5px #00000024;--glow: #e0a0db0c;--check-a: #20212a;--check-b: #292a34;--danger: #ffbac8;--danger-bg: #512734;--mascot-body: #efe4ef;--mascot-outline: #c9a7bd;--mascot-ink: #6f5066;--mascot-pink: #edb0ca;--mascot-star: #dac3a0;color:var(--text);background:var(--bg)}:root[data-theme=light]{color-scheme:light;--bg: #f5f5f7;--surface: #ffffff;--surface-glass: #ffffffd9;--raised: #ffffff;--inset: #ededf2;--line: #29223b0d;--line-strong: #40304d25;--text: #2c2835;--muted: #74707f;--accent: #ca7099;--accent-ink: #ffffff;--accent-wash: #ca709910;--selected: #ffffff;--selected-text: #a34570;--focus: #b35281;--shadow: 0 12px 40px #40334f07, 0 2px 6px #40334f06;--button-shadow: 0 2px 5px #40334f16, 0 0 0 1px #40334f06;--glow: #e6bad91f;--check-a: #f0edf2;--check-b: #e6e1ea;--danger: #a92c50;--danger-bg: #fce9ee;--mascot-body: #fffafc;--mascot-outline: #d4a7bf;--mascot-ink: #7c586e;--mascot-pink: #efb2cd;--mascot-star: #d7b16d}:root[data-theme=solarized]{color-scheme:light;--bg: #fdf6e3;--surface: #fffbed;--surface-glass: #fffbeddf;--raised: #fdf6e3;--inset: #eee8d5;--line: #586e7512;--line-strong: #586e7530;--text: #354f57;--muted: #657b83;--accent: #247c80;--accent-ink: #fffbed;--accent-wash: #2aa19810;--selected: #fdf6e3;--selected-text: #176f74;--focus: #268bd2;--shadow: 0 12px 40px #586e7509, 0 2px 6px #586e7508;--button-shadow: 0 2px 5px #586e751a, 0 0 0 1px #586e7508;--glow: #b5890010;--check-a: #eee8d5;--check-b: #e3dcc8;--danger: #ad3832;--danger-bg: #f8e4d5;--mascot-body: #fffbed;--mascot-outline: #b5b396;--mascot-ink: #586e75;--mascot-pink: #deb0a2;--mascot-star: #b58900}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 20% 5%,var(--glow),transparent 60%),var(--bg)}button,select,input{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.4}button,select,a{transition:background .18s,color .18s,border-color .18s,box-shadow .18s,transform .18s}button:not(:disabled):active,.primary:active{transform:scale(.98)}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}a{color:inherit;text-decoration:none}.shell{max-width:1260px;margin:auto;padding:0 40px}header{height:86px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:0;font-size:23px;font-weight:700;letter-spacing:-.9px}.brand>span:last-child{color:var(--accent)}.brand-mark{display:grid;place-items:center;height:36px;width:36px;margin-right:11px;border:1px solid var(--line);border-radius:12px;background:var(--surface-glass);box-shadow:var(--button-shadow);font-size:25px;font-weight:400;color:var(--accent)}select{border:1px solid var(--line-strong);border-radius:11px;background:var(--raised);color:var(--text);width:100%;min-height:41px;padding:8px 12px;font-size:13px;cursor:pointer}.theme-select{width:124px;min-height:36px;background:var(--surface-glass);border-color:var(--line);border-radius:12px;color:var(--muted);box-shadow:0 1px 2px #00000005}main{padding:12px 0 28px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:22px;align-items:start}.image-panel,.settings{border:1px solid var(--line);border-radius:22px;overflow:hidden;background:var(--surface-glass);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px)}.panel-heading{min-height:57px;display:flex;align-items:center;justify-content:space-between;padding:0 23px;font-size:13px;font-weight:600}.panel-heading>span:last-child:not(:first-child){color:var(--muted);font-size:11px;font-weight:400}.image-panel{display:flex;flex-direction:column;min-height:546px;transition:border-color .2s,box-shadow .2s}.image-panel.dragging{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-wash),var(--shadow)}.dropzone{margin:0 20px 20px;flex:1;min-height:467px;border:1px dashed var(--line-strong);border-radius:16px;background:radial-gradient(ellipse at 50% 42%,var(--accent-wash),transparent 65%);color:var(--text);display:flex;align-items:center;justify-content:center;flex-direction:column}.dropzone:hover{background-color:var(--accent-wash);border-color:var(--accent)}.dropzone h1{font-size:19px;font-weight:550;letter-spacing:.3px;margin:14px 0 8px}.dropzone p{font-size:12px;color:var(--muted);margin:0 0 28px}.mascot{width:165px;height:138px;overflow:visible}.mascot-body{fill:var(--mascot-body);stroke:var(--mascot-outline)}.mascot-pink,.mascot-blush{fill:var(--mascot-pink)}.mascot-blush{opacity:.65}.mascot-ribbon{fill:var(--mascot-pink);stroke:var(--mascot-outline)}.mascot-ink{stroke:var(--mascot-ink)}.mascot-star{fill:var(--mascot-star)}.mascot-shadow{fill:var(--accent);opacity:.09}.mascot-float{transform-origin:90px 90px;transition:transform .45s cubic-bezier(.2,.8,.2,1.4)}.dropzone:hover .mascot-float{transform:translateY(-5px) rotate(-3deg)}.sparkle{transform-origin:center;transition:opacity .3s}.dropzone:hover .sparkle{opacity:.6}.settings-body{padding:4px 22px 18px}fieldset{border:0;padding:0;margin:0 0 23px;min-width:0}legend{padding:0;margin-bottom:10px;font-size:12px;color:var(--muted)}.tile-options,.segmented{display:flex;gap:4px;padding:4px;background:var(--inset);border-radius:12px}.tile-options button,.segmented button{flex:1;min-width:0;min-height:35px;border:0;padding:7px 4px;border-radius:9px;background:transparent;color:var(--muted);font-size:12px}.tile-options button span{margin-left:4px;font-size:10px}.tile-options button:hover:not(:disabled),.segmented button:hover:not(:disabled){color:var(--text);background:var(--line)}.tile-options button.selected,.segmented button.selected{color:var(--selected-text);background:var(--selected);box-shadow:var(--button-shadow);font-weight:600}.advanced{border-top:1px solid var(--line);margin:-2px 0 19px}.advanced summary{cursor:pointer;padding:15px 0;font-size:12px;color:var(--muted);list-style:none;display:flex;align-items:center;justify-content:space-between}.advanced summary::-webkit-details-marker{display:none}.advanced summary:after{content:"⌄";font-size:16px;line-height:1;transition:transform .2s}.advanced[open] summary:after{transform:rotate(180deg)}.advanced fieldset{margin-bottom:5px}.output-summary{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:11px;margin:-2px 0 15px;font-variant-numeric:tabular-nums}.primary{width:100%;min-height:44px;border:1px solid transparent;border-radius:12px;padding:12px 16px;background:var(--accent);color:var(--accent-ink);display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:600;box-shadow:0 4px 12px var(--accent-wash)}.primary:hover:not(:disabled){filter:brightness(1.06);box-shadow:0 6px 16px var(--accent-wash)}.primary:disabled{background:var(--inset);color:var(--muted);border-color:var(--line);box-shadow:none;opacity:.7}.rerun{display:block;width:100%;border:0;padding:12px 6px 0;background:none;color:var(--muted);font-size:12px}.rerun:hover:not(:disabled){color:var(--accent)}.progress-area{font-size:11px;color:var(--muted);line-height:1.6;font-variant-numeric:tabular-nums}.progress-area:not(:empty){margin-top:12px}.progress-area>div{display:flex;justify-content:space-between;gap:6px}progress{display:block;width:100%;height:4px;border:0;border-radius:8px;overflow:hidden;margin-top:9px;accent-color:var(--accent)}progress::-webkit-progress-bar{background:var(--inset)}progress::-webkit-progress-value{background:var(--accent);border-radius:8px}.compatibility,.error{font-size:12px;line-height:1.7;color:var(--danger);overflow-wrap:anywhere}.compatibility{margin:10px 0}.error{padding:12px;border-radius:11px;background:var(--danger-bg);margin-top:13px}.hidden{display:none}.preview{height:414px;display:flex;align-items:center;justify-content:center;padding:16px;overflow:hidden}.checkerboard{background-color:var(--check-a);background-image:linear-gradient(45deg,var(--check-b) 25%,transparent 25%),linear-gradient(-45deg,var(--check-b) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--check-b) 75%),linear-gradient(-45deg,transparent 75%,var(--check-b) 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}.comparison{position:relative;max-width:100%;max-height:100%;height:100%;width:auto;overflow:hidden;border-radius:3px}.base-image{display:block;width:100%;height:100%;object-fit:contain}.after-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.compare-input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:ew-resize}.comparison:has(.compare-input:focus-visible){outline:3px solid var(--focus);outline-offset:-3px}.compare-line{position:absolute;top:0;bottom:0;width:1px;background:#ffffffda;pointer-events:none}.compare-line b{position:absolute;top:50%;left:0;transform:translate(-50%,-50%);display:grid;place-items:center;width:32px;height:32px;background:var(--surface-glass);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 2px 12px #0003;color:var(--text);border-radius:50%;font-size:16px}.image-tag{position:absolute;top:10px;background:var(--surface-glass);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);color:var(--text);border:1px solid var(--line);border-radius:7px;padding:5px 8px;font-size:10px;pointer-events:none;box-shadow:var(--button-shadow)}.before{left:10px}.after{right:10px}.file-info{margin-top:auto;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:10px}.file-info>div{min-width:0}.file-info strong{display:block;max-width:340px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;font-weight:500}.file-info small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.file-actions{display:flex;gap:5px}.text-button{padding:8px;border:0;border-radius:8px;background:none;color:var(--accent);font-size:12px;white-space:nowrap}.text-button:hover:not(:disabled){background:var(--accent-wash)}.source-list{padding:0 18px 12px;max-height:216px;overflow:auto}.source-row{display:flex;align-items:center;gap:7px;font-size:11px;padding:5px 0}.source-row>span{width:14px;color:var(--muted)}.source-row img{width:32px;height:32px;object-fit:contain;background:var(--inset);border-radius:7px}.source-row strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}.source-row small{color:var(--muted);font-size:10px;white-space:nowrap}.source-row button{border:1px solid var(--line);border-radius:8px;background:var(--raised);color:var(--text);width:28px;height:28px}footer{display:flex;justify-content:space-between;gap:15px;padding:0 2px 30px;font-size:11px;color:var(--muted)}@media(max-width:850px){.shell{padding:0 22px}.workspace{grid-template-columns:minmax(0,1fr) 280px;gap:16px}.settings-body{padding:3px 18px 18px}.dropzone{margin:0 14px 14px}}@media(max-width:680px){.shell{padding:0 16px}header{height:72px}.brand{font-size:21px}.brand-mark{width:31px;height:31px;margin-right:8px;font-size:23px}.theme-select{width:112px}main{padding-top:6px}.workspace{grid-template-columns:1fr;gap:16px}.image-panel{min-height:330px}.dropzone{min-height:264px}.mascot{width:124px;height:104px}.dropzone h1{font-size:18px;margin-top:4px}.dropzone p{margin-bottom:13px}.preview{height:300px}.settings-body{padding:2px 20px 20px}.source-row small{display:none}.file-info strong{max-width:180px}.tile-options button,.segmented button{min-height:39px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}.dropzone:hover .mascot-float{transform:none}}.viewer-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:9px 14px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.viewer-toolbar button{border:0;background:none;color:var(--muted);border-radius:8px;min-height:32px;padding:5px 9px;font-size:11px}.viewer-toolbar button:hover{background:var(--accent-wash);color:var(--text)}.viewer-toolbar button.active{background:var(--selected);color:var(--selected-text);box-shadow:var(--button-shadow)}.zoom-controls{display:flex;align-items:center;gap:1px}.zoom-controls button{font-size:15px;padding:3px 7px}.zoom-controls select{width:81px;padding:4px 5px;min-height:31px;font-size:11px;border:0;background:var(--inset);border-radius:8px;font-variant-numeric:tabular-nums}.viewer-tabs{display:flex;margin-left:auto;gap:1px;padding:3px;border-radius:10px;background:var(--inset)}.viewer-tabs button{min-height:27px;padding:3px 8px}.wipe-slider{width:76px;margin:0 4px;accent-color:var(--accent)}.viewer-stage{height:clamp(400px,64vh,760px);position:relative}.viewer-stage.wiping{cursor:ew-resize;-webkit-user-select:none;user-select:none}.viewer-stage.wiping:after{content:"";position:fixed;inset:0;z-index:20;cursor:ew-resize}.viewer-viewport{height:100%;width:100%;overflow:scroll;cursor:grab;overscroll-behavior:contain;scrollbar-color:var(--line-strong) var(--inset);touch-action:none}.viewer-viewport.panning{cursor:grabbing}.viewer-viewport:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}.viewer-world{position:relative;overflow:hidden}.viewer-tile{position:absolute;max-width:none;max-height:none;-webkit-user-select:none;user-select:none;pointer-events:none}.viewer-original-layer,.viewer-result-layer{position:absolute;inset:0}.model-hint,.preview-status,.viewer-help{color:var(--muted);font-size:11px;line-height:1.6}.model-hint{margin:7px 0 0}.preview-status{margin:8px 14px}.viewer-help{padding:5px 14px;background:var(--inset)}.viewer-toolbar .peek-original{background:var(--selected);color:var(--selected-text);touch-action:none}.image-viewer:fullscreen{display:flex;flex-direction:column;background:var(--surface)}.image-viewer:fullscreen .viewer-stage{flex:1;height:auto;min-height:0}.sampling-select{width:92px;min-height:31px;padding:4px 5px;font-size:11px;border:0;background:var(--inset);border-radius:8px}.viewer-wipe{position:absolute;top:0;bottom:0;border-left:1px solid #fff;pointer-events:none;box-shadow:1px 0 3px #0004}.viewer-message{position:absolute;top:12px;left:12px;max-width:calc(100% - 24px);padding:8px 12px;border-radius:10px;background:var(--surface-glass);color:var(--text);font-size:12px}@media(max-width:680px){.viewer-stage{height:55vh;min-height:340px}.viewer-toolbar{padding:8px;gap:3px}.viewer-tabs{margin-left:0}}.queue-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 16px 10px;font-size:12px}.queue-heading strong span{padding:2px 7px;background:var(--accent-wash);color:var(--accent);border-radius:8px;margin-left:5px}.source-list{max-height:190px;overflow:auto}.viewer-wipe{width:0;transform:none;border:0;pointer-events:none;box-shadow:none;display:grid;place-items:center}.viewer-wipe:before{content:"";position:absolute;top:0;bottom:0;left:50%;width:2px;background:#fff;box-shadow:0 0 4px #0008}.viewer-wipe span{position:absolute;top:50%;transform:translate(-50%,-50%);z-index:21;display:grid;place-items:center;width:28px;height:34px;border-radius:13px;background:var(--surface);color:var(--text);border:1px solid var(--line-strong);box-shadow:0 2px 10px #0004;font-size:15px;pointer-events:auto;cursor:ew-resize;touch-action:none;opacity:.9}.viewer-wipe span:hover,.viewer-wipe span:focus-visible{opacity:1;border-color:var(--accent);box-shadow:0 0 0 5px var(--accent-wash),0 2px 10px #0004;outline:none}.viewer-wipe:focus-visible span{outline:2px solid var(--accent)}.cache-toggle{display:flex;align-items:center;gap:8px;font-size:12px}.cache-toggle input{width:auto}.image-tag.after{max-width:calc(100% - 84px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
