@font-face{font-family:Instrument Sans Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(./instrument-sans-latin-ext-wght-normal-B5bTHO_g.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Instrument Sans Variable;font-style:normal;font-display:swap;font-weight:400 700;src:url(./instrument-sans-latin-wght-normal-BbzFLZTg.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--stage-hi:#fcfdfd;--stage:#eef1f3;--stage-lo:#e2e7eb;--bg:#fafbfb;--surface:#fff;--ink:#1c2430;--muted:#5e6b78;--line:#d9dee3;--track:#d9dee3;--hover:#f0f2f4;--accent:#5b34c9;--accent-hover:#4a27ae;--accent-text:#4a27ae;--accent-tint:#ece6fb;--accent-tint-line:#cdbff3;--on-accent:#fff;--thumb:#fff;--toast-bg:#1c2430eb;--toast-ink:#fff;--scrim:#eef1f3b8;--shadow:0 1px 2px #1c24300f, 0 8px 24px #1c243014;--font:"Instrument Sans Variable", "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:var(--font);color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;font-size:15px;line-height:1.45}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--stage-hi:#29313c;--stage:#181d24;--stage-lo:#0e1216;--bg:#12161c;--surface:#1a2028;--ink:#e7ebf0;--muted:#98a3af;--line:#2b333e;--track:#343d49;--hover:#232a33;--accent:#6a45e0;--accent-hover:#7a58ec;--accent-text:#bba9ff;--accent-tint:#2a2349;--accent-tint-line:#4a3d86;--thumb:#f4f2ff;--toast-bg:#e7ebf0f2;--toast-ink:#12161c;--scrim:#12161cb8;--shadow:0 1px 2px #0006, 0 8px 24px #00000059;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:root:not([data-theme=light]) .when-light{display:none}:root:not([data-theme=light]) .when-dark{display:block}}:root[data-theme=dark]{--stage-hi:#29313c;--stage:#181d24;--stage-lo:#0e1216;--bg:#12161c;--surface:#1a2028;--ink:#e7ebf0;--muted:#98a3af;--line:#2b333e;--track:#343d49;--hover:#232a33;--accent:#6a45e0;--accent-hover:#7a58ec;--accent-text:#bba9ff;--accent-tint:#2a2349;--accent-tint-line:#4a3d86;--thumb:#f4f2ff;--toast-bg:#e7ebf0f2;--toast-ink:#12161c;--scrim:#12161cb8;--shadow:0 1px 2px #0006, 0 8px 24px #00000059;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}.when-dark,:root[data-theme=dark] .when-light{display:none}:root[data-theme=dark] .when-dark{display:block}*{box-sizing:border-box}html,body{background:var(--bg);min-height:100%;margin:0}button,select,input{font:inherit;color:inherit}h1,h2,h3,p{margin:0}[hidden]{display:none!important}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}#app{grid-template:"top top"60px"stage panel"minmax(0,1fr)/minmax(0,1fr) 352px;height:100dvh;display:grid}.topbar{background:var(--bg);border-bottom:1px solid var(--line);z-index:5;grid-area:top;align-items:center;gap:10px;padding:0 16px 0 20px;display:flex}.brand{align-items:center;gap:10px;margin-right:auto;display:flex}.brand-mark{flex:none;width:28px;height:28px}.brand-mark rect{fill:var(--accent)}.brand-mark path{fill:none;stroke:var(--on-accent);stroke-width:2.6px;stroke-linecap:round}.brand-name{letter-spacing:-.015em;font-size:17px;font-weight:650}.source{align-items:center;gap:8px;margin-right:6px;display:flex}.btn{white-space:nowrap;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;gap:8px;height:38px;padding:0 14px;font-size:14px;font-weight:550;transition:background-color .12s,border-color .12s,color .12s;display:inline-flex}.btn svg{flex:none;width:17px;height:17px}.btn-primary{background:var(--accent);color:var(--on-accent)}.btn-primary:hover:not(:disabled){background:var(--accent-hover)}.btn-quiet{border-color:var(--line);background:var(--surface)}.btn-quiet:hover:not(:disabled){background:var(--hover)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn-large{border-radius:12px;height:46px;padding:0 22px;font-size:15px}.file{position:relative}.file input{opacity:0;cursor:pointer;width:100%;position:absolute;inset:0}.select-chip{align-items:center;display:inline-flex;position:relative}.select-chip select{appearance:none;border:1px solid var(--line);background:var(--surface);cursor:pointer;border-radius:10px;height:38px;padding:0 34px 0 12px;font-size:14px;font-weight:500}.select-chip select:hover{background:var(--hover)}.select-chip svg{pointer-events:none;width:16px;height:16px;color:var(--muted);position:absolute;right:10px}.menu{position:relative}.menu summary{list-style:none}.menu summary::-webkit-details-marker{display:none}.menu-panel{background:var(--surface);border:1px solid var(--line);width:260px;box-shadow:var(--shadow);z-index:20;border-radius:12px;padding:6px;position:absolute;top:calc(100% + 6px);right:0}.menu-panel button{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;flex-direction:column;align-items:flex-start;gap:2px;width:100%;padding:10px 12px;display:flex}.menu-panel button:hover:not(:disabled){background:var(--hover)}.menu-panel button:disabled{opacity:.45;cursor:not-allowed}.menu-panel strong{font-size:14px;font-weight:600}.menu-panel span{color:var(--muted);font-size:13px}.icon-btn{width:36px;height:36px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:10px;place-items:center;display:grid}.icon-btn:hover{background:var(--hover);color:var(--ink)}.icon-btn svg{width:20px;height:20px}.theme-btn{border:1px solid var(--line);background:var(--surface);width:38px;height:38px}.theme-btn svg{width:18px;height:18px}#viewport{touch-action:none;background:radial-gradient(ellipse 70% 75% at 50% 42%, var(--stage-hi) 0%, var(--stage) 58%, var(--stage-lo) 100%);grid-area:stage;position:relative;overflow:hidden}#viewport:before{content:"";pointer-events:none;background:radial-gradient(closest-side,#00000024,#0000);border-radius:50%;width:min(46%,420px);height:7%;position:absolute;bottom:7%;left:50%;transform:translate(-50%)}#viewport canvas{width:100%;height:100%;display:block;position:relative}#viewport.scalpel canvas{cursor:crosshair}#viewport.picking canvas{cursor:cell}#cut-guide{pointer-events:none;z-index:2;width:100%;height:100%;position:absolute;inset:0}#cut-line{stroke:var(--accent);stroke-width:3px;stroke-linecap:round;stroke-dasharray:9 6}.stage-top{z-index:3;position:absolute;top:16px;left:16px}.segmented{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:12px;gap:2px;padding:4px;display:inline-flex}.segmented button{height:32px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:8px;padding:0 14px;font-size:14px;font-weight:550}.segmented button:hover:not(:disabled){color:var(--ink);background:var(--hover)}.segmented button[aria-pressed=true]{background:var(--accent-tint);color:var(--accent-text)}.segmented button:disabled{opacity:.4;cursor:not-allowed}.stage-bottom{pointer-events:none;z-index:3;justify-content:center;align-items:flex-end;display:flex;position:absolute;bottom:18px;left:16px;right:16px}.compare{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);pointer-events:auto;border-radius:999px;padding:4px;display:inline-flex}.compare button{min-width:92px;height:38px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:999px;padding:0 18px;font-size:15px;font-weight:600;transition:background-color .16s,color .16s}.compare button[aria-pressed=true]{background:var(--accent);color:var(--on-accent)}.compare button:disabled{opacity:.45;cursor:not-allowed}.stage-hint{color:var(--muted);font-size:12.5px;position:absolute;bottom:12px;right:0}#note{background:var(--toast-bg);max-width:min(420px,50% - 110px);color:var(--toast-ink);box-shadow:var(--shadow);border-radius:12px;padding:10px 14px;font-size:14px;line-height:1.4;transition:opacity .22s;position:absolute;bottom:0;left:0}#note:empty,#note.faded{opacity:0}.guide{z-index:3;background:var(--surface);border:1px solid var(--line);max-width:min(520px,100% - 32px);box-shadow:var(--shadow);border-radius:14px;align-items:center;gap:14px;padding:12px 16px;display:flex;position:absolute;top:16px;left:50%;transform:translate(-50%)}#guide-dots{flex:none;gap:6px;margin:0;padding:0;list-style:none;display:flex}#guide-dots li{border:2px solid var(--line);border-radius:50%;width:10px;height:10px}#guide-dots li.done{background:var(--accent);border-color:var(--accent)}#guide-dots li.current{border-color:var(--accent)}#guide-text{font-size:14px;font-weight:550}#loading,#drop-hint{z-index:4;background:var(--scrim);align-content:center;place-items:center;gap:12px;font-size:15px;font-weight:550;display:grid;position:absolute;inset:0}#drop-hint{border:2px dashed var(--accent);border-radius:16px;margin:12px}.spinner{border:3px solid var(--accent-tint);border-top-color:var(--accent);border-radius:50%;width:26px;height:26px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.mark-label{font:650 12px/1 var(--font);color:#fff;background:#5b34c9;border-radius:999px;padding:3px 6px;transform:translate(12px,-12px)}#panel{background:var(--bg);border-left:1px solid var(--line);flex-direction:column;grid-area:panel;gap:16px;padding:20px 22px 18px;display:flex;overflow-y:auto}.panel-head h1{letter-spacing:-.015em;font-size:19px;font-weight:650}#status{color:var(--muted);margin-top:3px;font-size:13px}#sliders{flex-direction:column;gap:14px;display:flex}#sliders.disabled{opacity:.4;pointer-events:none}.group{flex-direction:column;gap:2px;display:flex}.group+.group{border-top:1px solid var(--line);padding-top:14px}.group-head{justify-content:space-between;align-items:center;min-height:26px;display:flex}.group-head h2{letter-spacing:.06em;text-transform:uppercase;color:var(--muted);align-items:center;gap:7px;font-size:12px;font-weight:650;display:flex}.changed-dot{background:var(--accent);border-radius:50%;width:6px;height:6px;display:none}.group.changed .changed-dot{display:inline-block}.group.changed .group-head h2{color:var(--ink)}.link-toggle{border:1px solid var(--line);background:var(--surface);height:26px;color:var(--muted);cursor:pointer;border-radius:999px;align-items:center;gap:6px;padding:0 10px;font-size:12.5px;font-weight:550;display:inline-flex}.link-toggle svg{width:14px;height:14px}.link-toggle[aria-pressed=true]{color:var(--accent-text);border-color:var(--accent-tint-line);background:var(--accent-tint)}.slider{border-radius:10px;flex-direction:column;gap:4px;margin:0 -10px;padding:7px 10px 5px;transition:background-color .14s;display:flex;position:relative}.slider.selected{background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}.slider label{justify-content:space-between;align-items:baseline;font-size:14px;display:flex}.slider output{text-align:right;font-variant-numeric:tabular-nums;min-width:56px;color:var(--accent-text);background:var(--accent-tint);border-radius:6px;padding:1px 7px;font-size:13px;font-weight:600}.slider output.zero{color:var(--muted);background:0 0;font-weight:500}.track{position:relative}.zero-tick{top:50%;left:calc(9px + (100% - 18px) * var(--at));background:var(--muted);opacity:.7;pointer-events:none;border-radius:1px;width:2px;height:16px;position:absolute;transform:translate(-50%,-50%)}input[type=range]{appearance:none;cursor:pointer;--fill:linear-gradient(var(--track), var(--track));background:0 0;width:100%;height:22px;margin:0;display:block;position:relative}input[type=range]::-webkit-slider-runnable-track{background:var(--fill), var(--track);border-radius:999px;height:6px}input[type=range]::-moz-range-track{background:var(--fill), var(--track);border-radius:999px;height:6px}input[type=range]::-webkit-slider-thumb{appearance:none;background:var(--thumb);border:2px solid var(--accent);border-radius:50%;width:18px;height:18px;margin-top:-6px;transition:transform .12s;box-shadow:0 1px 3px #00000040}input[type=range]:active::-webkit-slider-thumb{transform:scale(1.15)}input[type=range]::-moz-range-thumb{background:var(--thumb);border:2px solid var(--accent);border-radius:50%;width:14px;height:14px;box-shadow:0 1px 3px #00000040}.panel-actions{justify-content:flex-start;display:flex}.display{border-top:1px solid var(--line);flex-direction:column;gap:10px;padding-top:16px;display:flex}.display h2{letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-size:12px;font-weight:650}.eye-row{justify-content:space-between;align-items:center;display:flex}.switch{cursor:pointer;align-items:center;gap:10px;font-size:14px;display:flex}.switch input{appearance:none;background:var(--track);cursor:pointer;border-radius:999px;flex:none;width:34px;height:20px;margin:0;transition:background-color .14s;position:relative}.switch input:after{content:"";background:#fff;border-radius:50%;width:16px;height:16px;transition:transform .14s;position:absolute;top:2px;left:2px;box-shadow:0 1px 2px #00000040}.switch input:checked{background:var(--accent)}.switch input:checked:after{transform:translate(14px)}.switch:has(input:disabled){opacity:.45;cursor:not-allowed}.swatch{cursor:pointer;display:inline-flex}.swatch input{appearance:none;border:2px solid var(--surface);width:26px;height:26px;box-shadow:0 0 0 1px var(--line);cursor:pointer;background:0 0;border-radius:50%;padding:0}.swatch input::-webkit-color-swatch-wrapper{padding:0}.swatch input::-webkit-color-swatch{border:0;border-radius:50%}.swatch input::-moz-color-swatch{border:0;border-radius:50%}.swatch:has(input:disabled){opacity:.4;cursor:not-allowed}.more{border-top:1px solid var(--line);padding-top:4px}.more summary{cursor:pointer;justify-content:space-between;align-items:center;padding:10px 0;font-size:14px;font-weight:650;list-style:none;display:flex}.more summary::-webkit-details-marker{display:none}.more summary svg{width:18px;height:18px;color:var(--muted);transition:transform .16s}.more[open] summary svg{transform:rotate(180deg)}.more-body{flex-direction:column;gap:16px;padding:4px 0 6px;display:flex}.tool-list{flex-direction:column;gap:4px;display:flex}.tool{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:10px;align-items:flex-start;gap:12px;margin:0 -10px;padding:10px;display:flex}.tool:hover:not(:disabled){background:var(--hover)}.tool:disabled{opacity:.45;cursor:not-allowed}.tool svg{width:18px;height:18px;color:var(--accent-text);flex:none;margin-top:2px}.tool span{color:var(--muted);flex-direction:column;gap:1px;font-size:13px;display:flex}.tool strong{color:var(--ink);font-size:14px;font-weight:600}.tool[aria-pressed=true]{background:var(--accent-tint)}.field{color:var(--muted);flex-direction:column;gap:6px;font-size:13px;display:flex}.field select{border:1px solid var(--line);background:var(--surface);height:36px;color:var(--ink);border-radius:9px;padding:0 10px}.shortcuts h3{color:var(--muted);margin-bottom:8px;font-size:13px;font-weight:600}.shortcuts dl{gap:6px;margin:0;font-size:13px;display:grid}.shortcuts dl div{justify-content:space-between;gap:12px;display:flex}.shortcuts dt{white-space:nowrap}.shortcuts dd{color:var(--muted);text-align:right;margin:0}kbd{border:1px solid var(--line);background:var(--surface);min-width:22px;font:600 12px/1.5 var(--font);text-align:center;border-bottom-width:2px;border-radius:6px;padding:1px 6px;display:inline-block}.disclaimer{color:var(--muted);margin-top:auto;padding-top:6px;font-size:12.5px}.dialog{z-index:50;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#0e121699;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.camera-card{background:var(--bg);border:1px solid var(--line);border-radius:18px;flex-direction:column;gap:14px;width:min(760px,100%);max-height:100%;padding:20px;display:flex;overflow-y:auto;box-shadow:0 24px 60px #0000004d}.camera-head{justify-content:space-between;align-items:center;display:flex}.camera-head h2{letter-spacing:-.015em;font-size:19px;font-weight:650}#camera-steps{gap:8px;margin:0;padding:0;list-style:none;display:flex}#camera-steps li{border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:10px;flex:1;align-items:center;gap:8px;padding:8px 10px;font-size:14px;font-weight:550;display:flex}.step-mark{border:2px solid var(--line);border-radius:50%;flex:none;place-items:center;width:18px;height:18px;display:grid}#camera-steps li.current{border-color:var(--accent);color:var(--ink)}#camera-steps li.current .step-mark{border-color:var(--accent)}#camera-steps li.done{color:var(--ink)}#camera-steps li.done .step-mark{background:var(--accent);border-color:var(--accent)}#camera-steps li.done .step-mark:after{content:"";border-left:2px solid var(--on-accent);border-bottom:2px solid var(--on-accent);width:7px;height:4px;margin-top:-2px;transform:rotate(-45deg)}.camera-stage{aspect-ratio:16/9;background:#11161c;border-radius:14px;position:relative;overflow:hidden}.camera-stage video,.camera-stage canvas{object-fit:cover;width:100%;height:100%;position:absolute;inset:0;transform:scaleX(-1)}.camera-oval{aspect-ratio:3/4;border:2px solid #ffffffe6;border-radius:50%;width:34%;position:absolute;top:46%;left:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 9999px #11161c59}#camera-status{color:#fff;white-space:nowrap;text-overflow:ellipsis;background:#11161cbf;border-radius:999px;max-width:calc(100% - 28px);padding:8px 14px;font-size:15px;font-weight:600;transition:background-color .16s;position:absolute;bottom:14px;left:50%;overflow:hidden;transform:translate(-50%)}#camera-status:empty{display:none}#camera-status[data-ready=true]{background:#5b34c9}#camera-hint{font-size:15px}.camera-actions{justify-content:flex-end;gap:10px;display:flex}.camera-note{color:var(--muted);font-size:13px}@media (width<=1100px){.stage-hint{display:none}}@media (width<=900px){#app{grid-template:"top""stage"48svh"panel"/1fr;height:auto;min-height:100dvh}.topbar{flex-wrap:wrap;gap:10px;padding:10px 16px}.source{order:3;grid-template-columns:auto auto minmax(0,1fr);width:100%;margin-right:0;display:grid}.select-chip,.select-chip select{width:100%;min-width:0}.select-chip select{text-overflow:ellipsis}.source .btn span,.export-menu .btn span{display:none}.source .btn-primary span{display:inline}#viewport{z-index:4;border-bottom:1px solid var(--line);position:sticky;top:0;box-shadow:0 6px 16px #0000000f}#panel{border-left:0;padding:20px 16px 28px;overflow:visible}#note{text-align:center;width:max-content;max-width:100%;bottom:56px;left:50%;transform:translate(-50%)}.shortcuts{display:none}}@media (width<=520px){.source{grid-template-columns:1fr auto}.source .select-chip{grid-column:1/-1}#note{font-size:13.5px;bottom:52px}.stage-top{top:12px;left:12px}.stage-bottom{bottom:12px}.segmented button{height:30px;padding:0 12px}.compare button{min-width:80px;height:36px}.camera-stage{aspect-ratio:3/4}.camera-oval{width:62%}#camera-steps li{padding:7px 8px;font-size:13px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}
