/* Image to Vector (/image-tools/image-to-vector/) */
.vz-work { display: grid; gap: 12px; }
.vz-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.vz-zoom { display: inline-flex; align-items: center; gap: 6px; }
.vz-zoom .fp-btn { min-width: 34px; padding: 5px 9px; }
.vz-zoom b { min-width: 48px; text-align: center; font-size: .85rem; }
.vz-grid { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .vz-grid { grid-template-columns: minmax(0, 1fr) 318px; } .vz-side { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; } }
.vz-stage { position: relative; height: min(68vh, 640px); min-height: 320px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; touch-action: none; cursor: grab; user-select: none;
  background-color: #fff; background-image: linear-gradient(45deg, #eef1f6 25%, transparent 25%), linear-gradient(-45deg, #eef1f6 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eef1f6 75%), linear-gradient(-45deg, transparent 75%, #eef1f6 75%);
  background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0; }
.vz-stage:active { cursor: grabbing; }
.vz-pane { position: absolute; inset: 0; overflow: hidden; }
.vz-layer { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.vz-layer img { display: block; max-width: none; pointer-events: none; }
.vz-orig .vz-layer img { image-rendering: auto; }
.vz-tag { position: absolute; top: 10px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(15, 23, 42, .78); color: #fff; pointer-events: none; }
.vz-orig .vz-tag { left: 10px; } .vz-vec .vz-tag { right: 10px; }
.vz-stage[data-view="side"] .vz-orig { right: 50%; border-right: 1px solid var(--border); } .vz-stage[data-view="side"] .vz-vec { left: 50%; }
.vz-stage[data-view="vector"] .vz-orig, .vz-stage[data-view="lines"] .vz-orig { display: none; }
.vz-stage[data-view="lines"] { background: #fff; }
.vz-handle { position: absolute; top: 0; bottom: 0; width: 34px; margin-left: -17px; cursor: ew-resize; z-index: 2; }
.vz-handle::before { content: ""; position: absolute; left: 16px; top: 0; bottom: 0; width: 2px; background: var(--brand); box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); }
.vz-handle i { position: absolute; top: 50%; left: 3px; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--brand); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.vz-handle i::before { content: "‹ ›"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 700 13px/1 system-ui, sans-serif; letter-spacing: 1px; }
.vz-handle:focus-visible i { outline: 3px solid var(--ring, rgba(47, 107, 255, .35)); }
.vz-busy { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(15, 23, 42, .85); color: #fff; font-size: .85rem; z-index: 3; }
.vz-stats { margin: 8px 0 0; }
.vz-side .fp-seg.vz-wrap { flex-wrap: wrap; display: flex; }
.vz-side .fp-seg.vz-wrap button { flex: 1 0 auto; border-bottom: 1px solid var(--border); }
.vz-pal { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.vz-sw { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 3px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); font-size: .74rem; }
.vz-sw label { position: relative; width: 24px; height: 24px; border-radius: 6px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); cursor: pointer; overflow: hidden; }
.vz-sw input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
.vz-sw small { color: var(--text-2); min-width: 30px; }
.vz-sw button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .95rem; line-height: 1; padding: 0 3px; }
.vz-sw button:hover { color: var(--text); }
.vz-sw.off label { background-image: linear-gradient(45deg, transparent 45%, #e5195f 45%, #e5195f 55%, transparent 55%); }
.vz-sw.off small { text-decoration: line-through; }
.vz-reset { border: 0; background: none; color: var(--brand-ink, var(--brand)); font-size: .8rem; cursor: pointer; text-decoration: underline; padding: 4px 2px; }
