:root{--bg:#f5f4f0;--surface:#fff;--text:#1b1f27;--muted:#5d6472;--line:#e2e0d8;--accent:#0b7d63;--accent-ink:#fff;--accent-soft:#dcf1ea;--logo-lit:#9ff0d4;--veil:#f5f4f08c;--shadow:0 12px 40px #1b1f271a;--radius:24px;--glass:#ffffff80;--glass-strong:#ffffffb8;--glass-hover:#ffffffeb;--glass-edge:#ffffffbf;--glass-hi:#ffffffe6;--seg:#ffffff6b;--bar:#fffc;--ink:#15181e;--ink-text:#fff;--blob1:#7fdcbf;--blob2:#9dbff4;--blob3:#efd9a3;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#101317;--surface:#1a1e24;--text:#e9ebee;--muted:#9aa3b0;--line:#2a3038;--accent:#3ccfa5;--accent-ink:#06251c;--accent-soft:#143a30;--logo-lit:#fff;--veil:#10131799;--shadow:0 12px 40px #00000073;--glass:#ffffff0f;--glass-strong:#ffffff1a;--glass-hover:#ffffff2e;--glass-edge:#ffffff21;--glass-hi:#ffffff29;--seg:#ffffff12;--bar:#1e2229db;--ink:#eef1f4;--ink-text:#101317;--blob1:#0f5a47;--blob2:#1b3866;--blob3:#3a3157;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}@media (prefers-reduced-transparency:reduce){:root{--glass:var(--surface);--glass-strong:var(--surface);--seg:var(--bg)}}*{box-sizing:border-box}html{background:var(--bg)}html,body{color:var(--text);-webkit-text-size-adjust:100%;margin:0;font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;overflow-x:clip}body:before{content:"";z-index:-1;pointer-events:none;background:radial-gradient(45vmax 40vmax at 8% 4%, var(--blob1), transparent 70%), radial-gradient(45vmax 45vmax at 96% 30%, var(--blob2), transparent 70%), radial-gradient(55vmax 40vmax at 35% 105%, var(--blob3), transparent 70%);position:fixed;inset:0}.top,.hero,.card{background:var(--glass);-webkit-backdrop-filter:blur(20px)saturate(160%);backdrop-filter:blur(20px)saturate(160%);border:1px solid var(--glass-edge);box-shadow:inset 0 1px 0 var(--glass-hi), var(--shadow)}.sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.top{width:min(960px,100% - 24px);margin:max(12px, env(safe-area-inset-top)) auto 0;border-radius:22px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;padding:8px 8px 8px 14px;display:flex}.brand{align-items:center;gap:10px;font-size:18px;font-weight:700;display:flex}.badge{background:var(--glass-strong);border:1px solid var(--glass-edge);color:var(--text);border-radius:999px;align-items:center;gap:6px;margin:0;padding:6px 12px;font-size:13px;display:inline-flex}.badge svg{fill:none;width:16px;height:16px;stroke:var(--accent);stroke-width:2px;stroke-linejoin:round}main{max-width:720px;padding:16px 16px calc(32px + env(safe-area-inset-bottom));margin:0 auto}.hero{text-align:center;border-radius:32px;margin-top:5vh;padding:40px 20px 28px}.hero h1{letter-spacing:-.01em;margin:20px 0 28px;font-size:clamp(24px,5.5vw,34px);line-height:1.2}.hero h1 span{color:var(--muted);margin-top:6px;font-size:.6em;font-weight:500;display:block}.row{flex-wrap:wrap;gap:10px;margin:12px 0;display:flex}.row.center{justify-content:center}.hint,.muted,.note{color:var(--muted);font-size:14px}.hint a{color:inherit}.notice{color:var(--text);background:var(--accent-soft);border-radius:10px;padding:8px 12px;display:inline-block}@media (pointer:coarse){.desktop-only{display:none}}@media (pointer:fine){.touch-only{display:none}}.card{border-radius:var(--radius);margin-top:8px;padding:22px;animation:.35s cubic-bezier(.2,.9,.3,1) rise}.card h2{margin:0 0 12px;font-size:20px}progress{width:100%;height:10px;accent-color:var(--accent)}.btn{border:1px solid var(--glass-edge);background:var(--glass-strong);min-height:44px;box-shadow:inset 0 1px 0 var(--glass-hi);color:var(--text);font:inherit;cursor:pointer;border-radius:999px;justify-content:center;align-items:center;gap:6px;padding:0 20px;font-weight:600;text-decoration:none;transition:transform .2s cubic-bezier(.34,1.56,.64,1),background .2s,box-shadow .2s;display:inline-flex}.btn:hover{background:var(--glass-hover);transform:translateY(-1px)}.btn:active{transform:scale(.96)}.btn:disabled{opacity:.45;cursor:default;transform:none}.btn.primary{background:var(--ink);border-color:var(--ink);color:var(--ink-text);box-shadow:0 6px 18px #0000002e}.btn.primary:hover{background:var(--ink);box-shadow:0 10px 26px #0000003d}.btn.big{min-height:56px;padding:0 32px;font-size:18px}.btn.small{min-height:40px;padding:0 14px;font-size:14px}.btn:focus-visible,.btn:focus-within,.wheel-close:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.btn:focus-within:not(:has(:focus-visible)){outline:none}.outputs{gap:8px;margin:12px 0;padding:0;list-style:none;display:grid}.output{border:1px solid var(--glass-edge);background:var(--glass);border-radius:18px;flex-wrap:wrap;align-items:center;gap:12px;padding:10px;display:flex}.thumb{object-fit:cover;background:var(--glass-strong);border-radius:12px;flex:none;width:52px;height:52px}.file-badge{color:var(--accent);place-items:center;font-size:12px;font-weight:700;display:grid}.meta{flex-direction:column;flex:140px;min-width:0;display:flex}.name{overflow-wrap:anywhere;font-size:15px;font-weight:600}.size{color:var(--muted);font-size:13px}.actions{gap:8px;margin-left:auto;display:flex}.icon-btn{width:40px;height:40px;color:var(--text);cursor:pointer;background:0 0;border:0;border-radius:50%;flex:none;place-items:center;padding:0;transition:background .2s,transform .2s cubic-bezier(.34,1.56,.64,1);display:inline-grid}.icon-btn:hover{background:var(--glass-strong)}.icon-btn:active{transform:scale(.92)}.icon-btn:disabled{opacity:.35;cursor:default;background:0 0;transform:none}.icon-btn svg,.wb-clear svg{fill:none;stroke:currentColor;stroke-width:1.9px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}.icon-btn:focus-visible,.wb-clear:focus-visible,.link:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.link{color:var(--accent);font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-weight:600}.link:hover{text-decoration:underline}.btn.ghost{box-shadow:none;background:0 0;border-color:#0000}.btn.ghost:hover{background:var(--glass-strong)}.wb-top{top:max(8px, env(safe-area-inset-top));z-index:5;background:var(--bar);-webkit-backdrop-filter:blur(20px)saturate(160%);backdrop-filter:blur(20px)saturate(160%);border:1px solid var(--glass-edge);box-shadow:inset 0 1px 0 var(--glass-hi), var(--shadow);border-radius:22px;justify-content:space-between;align-items:center;gap:12px;padding:8px;display:flex;position:sticky}.wb-title{flex:1;min-width:0}.results-head{align-items:center;gap:6px;margin:-6px 0 8px -10px;display:flex}.results-head h2{margin:0}.wb-title h2{text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:16px;line-height:1.35;overflow:hidden}.wb-meta{color:var(--muted);white-space:nowrap;gap:6px;margin:0;font-size:13px;display:flex}.wb-meta .link{font-size:13px}.wb-actions{flex:none;align-items:center;gap:2px;display:flex}.wb-actions .btn{margin:0 4px}.wb-sub{margin:14px 6px 6px;font-size:14px}.wb-sub>p{margin:0}.wb-sub .notice{margin-top:8px}.wb-range{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.wb-range input{border:1px solid var(--glass-edge);background:var(--glass-strong);width:9.5em;min-height:40px;color:var(--text);font:inherit;border-radius:999px;padding:0 14px}.wb-range input:focus-visible{outline:3px solid var(--accent);outline-offset:1px}main:has(.workbench){max-width:1200px}.wb-sub:has(.view-switch){flex-wrap:wrap;align-items:center;gap:4px 12px;display:flex}.wb-sub:has(.view-switch)>:first-child{flex:260px}.wb-sub:has(.view-switch)>.notice{flex-basis:100%}.view-switch{background:var(--glass);border:1px solid var(--glass-edge);border-radius:999px;gap:2px;padding:3px;display:flex}.view-switch .icon-btn{width:34px;height:34px}.view-switch .icon-btn svg{width:18px;height:18px}.view-switch .icon-btn[aria-pressed=true]{background:var(--ink);color:var(--ink-text)}.pages{-webkit-user-select:none;user-select:none;grid-template-columns:repeat(auto-fill,minmax(min(200px,42vw),1fr));gap:14px 12px;margin:10px 0 0;padding:0 0 96px;list-style:none;display:grid}.pages.small{grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}.pages.single{grid-template-columns:minmax(0,760px);justify-content:center;gap:20px}.tile-btn{width:100%;color:var(--muted);font:inherit;cursor:pointer;touch-action:manipulation;-webkit-touch-callout:none;background:0 0;border:0;border-radius:16px;padding:8px 8px 6px;transition:background .2s;display:block;position:relative}.tile-btn:hover{background:var(--glass)}.tile-btn:focus-visible{outline:3px solid var(--accent);outline-offset:-2px}.tile-img{aspect-ratio:1;display:block;position:relative}.tile-img>*{margin:auto;position:absolute;inset:0}.tile-img img{background:#fff;border-radius:3px;max-width:100%;max-height:100%;transition:transform .35s cubic-bezier(.34,1.4,.64,1),box-shadow .2s;box-shadow:0 1px 2px #0000001f,0 6px 16px #0000001a}.tile.on .tile-img img,.tile.on .tile-blank{box-shadow:0 0 0 3px var(--accent), 0 8px 20px #00000024}.tile.on .tile-btn:after{content:"✓";background:var(--accent);width:22px;height:22px;color:var(--accent-ink);border-radius:50%;place-items:center;font-size:12px;font-weight:700;animation:.25s cubic-bezier(.34,1.56,.64,1) pop;display:grid;position:absolute;top:4px;right:4px;box-shadow:0 2px 6px #0003}.tile-wait,.tile-blank{background:var(--glass-strong);border-radius:3px;width:70%;height:94%}.tile-wait{animation:1.1s ease-in-out infinite alternate pulse}.tile-blank{background:#fff}.tile-num{text-align:center;font-variant-numeric:tabular-nums;margin-top:6px;font-size:12px;display:block}.tile.on .tile-num{color:var(--accent);font-weight:700}.tile-ghost{opacity:.25}.tile-chosen .tile-img img{box-shadow:0 14px 30px #00000040}.wb-empty{text-align:center;margin:40px 6px}.wb-dock{left:50%;bottom:max(16px, env(safe-area-inset-bottom));z-index:6;background:var(--bar);-webkit-backdrop-filter:blur(20px)saturate(160%);backdrop-filter:blur(20px)saturate(160%);border:1px solid var(--glass-edge);max-width:calc(100% - 24px);box-shadow:inset 0 1px 0 var(--glass-hi), 0 12px 40px #00000038;border-radius:999px;align-items:center;gap:2px;padding:6px;animation:.3s cubic-bezier(.34,1.4,.64,1) rise;display:flex;position:fixed;translate:-50%}.wb-clear{background:var(--accent);height:40px;color:var(--accent-ink);font:inherit;white-space:nowrap;cursor:pointer;border:0;border-radius:999px;align-items:center;gap:6px;padding:0 14px 0 10px;font-size:14px;font-weight:700;display:inline-flex}.wb-sep{background:var(--glass-edge);width:1px;height:24px;margin:0 4px}@media (width<=420px){.wide-only{display:none}}.layer{z-index:30;background:var(--veil);place-items:center;padding:16px;animation:.2s ease-out fade;display:grid;position:fixed;inset:0}.sheet{width:min(420px,100%);max-height:calc(100dvh - 32px);overflow-y:auto}.sheet-head{justify-content:space-between;align-items:center;margin:-6px -8px 6px 0;display:flex}.sheet-head h2{margin:0}.sheet fieldset,.pp-options fieldset{border:0;margin:0 0 16px;padding:0}.sheet legend,.pp-options legend{color:var(--muted);margin-bottom:8px;padding:0;font-size:13px;font-weight:600}.seg{background:var(--glass);border:1px solid var(--glass-edge);border-radius:999px;gap:4px;padding:4px;display:flex}.seg label{text-align:center;cursor:pointer;border-radius:999px;flex:1;padding:8px 12px;font-size:14px;font-weight:600;transition:background .2s,color .2s}.seg input{opacity:0;pointer-events:none;position:absolute}.seg label:has(input:checked){background:var(--ink);color:var(--ink-text)}.seg label:has(input:disabled){opacity:.4;cursor:default}.seg label:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:1px}.choices{gap:6px;display:grid}.choices label{border:1px solid var(--glass-edge);background:var(--glass);cursor:pointer;border-radius:16px;align-items:center;gap:12px;padding:10px 14px;transition:background .2s,border-color .2s;display:flex}.choices label:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}.choices label.off{opacity:.5;cursor:default}.choices input{width:18px;height:18px;accent-color:var(--accent);flex:none;margin:0}.choices span{flex-direction:column;display:flex}.choices strong{font-size:15px}.choices small{color:var(--muted);font-size:13px}.sheet-go{width:100%}.pp-options{flex-wrap:wrap;gap:0 20px;display:flex}.pp-options fieldset{flex:220px;margin-bottom:12px}.wb-sub>p.muted{margin:0}.drop-veil{z-index:10;background:var(--veil);border:2px dashed var(--accent);pointer-events:none;border-radius:28px;place-items:center;margin:8px;animation:.15s ease-out fade;display:grid;position:fixed;inset:0}.drop-veil p{background:var(--glass-strong);border:1px solid var(--glass-edge);-webkit-backdrop-filter:blur(20px)saturate(160%);backdrop-filter:blur(20px)saturate(160%);box-shadow:var(--shadow);border-radius:999px;padding:12px 22px;font-weight:600}.wheel-layer{z-index:20;background:var(--veil);animation:.2s ease-out fade;position:fixed;inset:0}.wheel-layer.dragging{pointer-events:none;background:0 0}.wheel{animation:.42s cubic-bezier(.34,1.45,.64,1) wheel-in;position:absolute}.wheel:before{content:"";background:var(--glass);-webkit-backdrop-filter:blur(18px)saturate(170%);backdrop-filter:blur(18px)saturate(170%);border:1px solid var(--glass-edge);box-shadow:inset 0 1px 0 var(--glass-hi), 0 24px 60px #00000038;border-radius:50%;position:absolute;inset:0}.wheel>svg{width:100%;height:100%;position:relative;overflow:visible}.seg{cursor:pointer;transform-box:view-box;transform-origin:50%;animation:.4s cubic-bezier(.34,1.45,.64,1) backwards seg-in;animation-delay:calc(60ms + var(--i) * 40ms);outline:none}.seg-shape{fill:var(--seg);stroke:var(--glass-edge);stroke-width:1.2px;stroke-linejoin:round;transition:fill .22s ease-out,stroke .22s ease-out}.seg-icon,.seg-label{transform-box:fill-box;transform-origin:50%;transition:fill .22s ease-out,stroke .22s ease-out,transform .35s cubic-bezier(.34,1.6,.64,1)}.seg-icon{fill:none;stroke:var(--accent);stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round}.seg-label{fill:var(--text);font-size:13px;font-weight:600}.seg.on .seg-shape{filter:drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 55%, transparent))}.seg.on .seg-icon,.seg.on .seg-label{transform:scale(1.12)}.seg.on .seg-shape{fill:var(--accent);stroke:var(--accent)}.seg.on .seg-icon{stroke:var(--accent-ink)}.seg.on .seg-label{fill:var(--accent-ink)}.seg:focus-visible .seg-shape{stroke:var(--glass-hi);stroke-width:2.5px}.seg.off{cursor:not-allowed;opacity:.42}.seg.off.on .seg-shape{filter:none;fill:var(--glass-hover);stroke:var(--glass-edge)}.seg.off.on .seg-icon{stroke:var(--muted)}.seg.off.on .seg-label{fill:var(--text)}.hub{fill:var(--glass-strong);stroke:var(--glass-edge);stroke-width:1.2px}.hub.tappable{cursor:pointer}.hub-text{text-align:center;color:var(--text);pointer-events:none;overflow-wrap:anywhere;-webkit-line-clamp:5;-webkit-box-orient:vertical;font-size:12.5px;line-height:1.3;display:-webkit-box;position:absolute;top:50%;left:50%;overflow:hidden;transform:translate(-50%,-50%)}.wheel-close{border:1px solid var(--glass-edge);background:var(--surface);width:40px;height:40px;color:var(--text);cursor:pointer;box-shadow:var(--shadow);border-radius:50%;place-items:center;animation:.3s .2s backwards fade;display:grid;position:absolute;top:-4px;right:-4px}.wheel-close svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;width:18px;height:18px}@keyframes fade{0%{opacity:0}}@keyframes wheel-in{0%{opacity:0;transform:scale(.5)rotate(-20deg)}}@keyframes seg-in{0%{opacity:0;transform:scale(.6)}}@keyframes pop{0%{transform:scale(.4)}}@keyframes pulse{to{opacity:.45}}@keyframes rise{0%{opacity:0;transform:translateY(12px)}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-delay:0s!important}}.crop-stage{width:min(100%, calc((100dvh - 230px) * var(--ar)));touch-action:none;-webkit-user-select:none;user-select:none;margin:22px auto 40px;position:relative}.crop-stage canvas,.crop-stage svg{width:100%;height:100%;display:block;position:absolute;inset:0}.crop-stage canvas{border-radius:4px;box-shadow:0 8px 30px #0000002e}.crop-dim{fill:#00000080}.crop-line{fill:none;stroke:var(--accent);stroke-width:2.5px}.crop-handle{cursor:grab;touch-action:none;background:0 0;border:0;border-radius:50%;width:44px;height:44px;padding:0;position:absolute;translate:-50% -50%}.crop-handle:after{content:"";border:3px solid var(--accent);background:#fff;border-radius:50%;transition:transform .15s;position:absolute;inset:11px;box-shadow:0 2px 8px #00000059}.crop-handle:active{cursor:grabbing}.crop-handle:active:after,.crop-handle:focus-visible:after{transform:scale(1.3)}.crop-handle:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.scan-next{margin-top:12px}.crop-grid{fill:none;stroke:#ffffff8c;stroke-width:1px}.crop-handle.edge:after{border-width:2px;border-radius:999px;inset:50% auto auto 50%;translate:-50% -50%}.crop-handle.edge.level:after{width:26px;height:10px}.crop-handle.edge.side:after{width:10px;height:26px}.recent{margin-top:16px}.recent-head{justify-content:space-between;align-items:center;display:flex}.recent-head h2{margin:0;font-size:17px}.recent ul{margin:10px -8px 6px;padding:0;list-style:none}.recent-row{width:100%;color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:14px;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;transition:background .2s;display:flex}.recent-row:hover:not(:disabled){background:var(--glass-strong)}.recent-row:disabled{cursor:default;opacity:.6}.recent-row:focus-visible{outline:3px solid var(--accent);outline-offset:-2px}.recent-name{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-weight:600;overflow:hidden}.recent-row .muted{font-size:13px}.update-bar{background:var(--accent-soft);border-radius:999px;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 12px;max-width:720px;margin:10px auto 0;padding:8px 8px 8px 16px;font-size:14px;display:flex}
