*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; }
[hidden] { display: none !important; }
.vx-wrap { max-width: 1160px; margin: 0 auto; padding: 24px 20px 60px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1a1a1a; }
.vx-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.vx-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.vx-free { font-size: 10px; font-weight: 800; letter-spacing: .6px; background: #dcfce7; color: #166534; border-radius: 6px; padding: 3px 7px; }
.vx-left-count { font-size: 12px; font-weight: 600; color: #6d28d9; background: #f5f3ff; border: 1px solid #d4c5f9; border-radius: 20px; padding: 5px 12px; }
.vx-body { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 20px; align-items: start; }
@media (max-width: 820px) { .vx-body { grid-template-columns: 1fr; } }
.vx-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.vx-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.vx-label { font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 10px; }
.vx-sub { font-size: 11px; color: #8a8f98; line-height: 1.45; }
.vx-gap { margin: 6px 0 16px; }
.vx-drop { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 130px; border: 2px dashed #d1d5db; border-radius: 10px; padding: 20px; cursor: pointer; transition: border-color .2s, background .2s; }
.vx-drop:hover, .vx-drop.over { border-color: #7c3aed; background: #f5f3ff; }
.vx-drop p { margin: 8px 0 2px; font-size: 13px; color: #555; }
.vx-file-row { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; }
.vx-file-row img { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; border: 1px solid #e5e7eb; background: repeating-conic-gradient(#e5e7eb 0% 25%, #fff 0% 50%) 50% / 12px 12px; flex-shrink: 0; }
.vx-file-row b { font-size: 13px; word-break: break-all; }
.vx-link { font-size: 12px; color: #7c3aed; text-decoration: underline; }
.vx-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; cursor: pointer; padding: 10px 12px; border: 2px solid #e5e7eb; border-radius: 9px; transition: border-color .15s, background .15s; }
.vx-check:has(input:checked) { border-color: #7c3aed; background: #f5f3ff; }
.vx-check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: #7c3aed; flex-shrink: 0; }
.vx-run { width: 100%; margin-top: 14px; padding: 12px; background: #7c3aed; border: none; border-radius: 9px; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; }
.vx-run:hover { opacity: .9; }
.vx-run:disabled { opacity: .45; cursor: not-allowed; }
.vx-hint { font-size: 12px; color: #6b7280; margin-top: 10px; min-height: 16px; line-height: 1.45; }
.vx-hint.err { color: #b91c1c; }
.vx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: #f9fafb; color: #374151; border: 1px solid #e5e7eb; border-radius: 8px; padding: 9px 14px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.vx-btn:hover { border-color: #7c3aed; color: #6d28d9; }
.vx-btn.on { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.vx-btn-wide { width: 100%; }
.vx-link-btn { background: none; border: 0; color: #7c3aed; font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; font-family: inherit; }
.vx-colors-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.vx-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin: 10px 0 16px; max-height: 300px; overflow-y: auto; padding: 2px; }
.vx-color { display: flex; align-items: center; gap: 7px; padding: 5px 7px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; cursor: pointer; font-family: inherit; text-align: left; min-width: 0; }
.vx-color:hover { border-color: #7c3aed; }
.vx-color i { width: 22px; height: 22px; border-radius: 5px; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); position: relative; }
.vx-color span { display: flex; flex-direction: column; min-width: 0; }
.vx-color b { font-size: 11px; font-family: ui-monospace, Menlo, monospace; color: #111; }
.vx-color small { font-size: 10px; color: #9ca3af; }
.vx-color.off { background: #f3f4f6; border-style: dashed; }
.vx-color.off i { opacity: .25; }
.vx-color.off i::after { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 2px; background: #dc2626; transform: rotate(-45deg); }
.vx-color.off b { text-decoration: line-through; color: #9ca3af; }
.vx-row { margin-top: 4px; }
.vx-slide-label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 4px; }
.vx-slide-label b { color: #6d28d9; }
input[type=range] { width: 100%; accent-color: #7c3aed; }

.vx-preview-panel { position: sticky; top: 12px; }
.vx-preview-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.vx-seg { display: flex; background: #f3f4f6; border-radius: 8px; padding: 3px; gap: 2px; }
.vx-seg button { background: none; border: 0; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; color: #6b7280; cursor: pointer; font-family: inherit; }
.vx-seg button.active { background: #fff; color: #6d28d9; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.vx-seg button:disabled { opacity: .4; cursor: default; }
.vx-bgs { display: flex; gap: 6px; align-items: center; }
.vx-bgsw { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #e5e7eb; cursor: pointer; padding: 0; position: relative; overflow: hidden; }
.vx-bgsw.active { border-color: #7c3aed; box-shadow: 0 0 0 2px #ede9fe; }
.vx-check-bg { background: repeating-conic-gradient(#d1d5db 0% 25%, #fff 0% 50%) 50% / 8px 8px; }
.vx-bg-custom { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.vx-bg-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.vx-stage { position: relative; border: 1px solid #e5e7eb; border-radius: 10px; min-height: 420px; height: min(68vh, 640px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.vx-checker { background: repeating-conic-gradient(#e5e7eb 0% 25%, #fff 0% 50%) 50% / 18px 18px; }
.vx-empty { text-align: center; color: #9ca3af; font-size: 13px; }
.vx-art { position: relative; max-width: calc(100% - 32px); display: block; line-height: 0; transform-origin: 0 0; }   /* no will-change: the zoomed design and pink lines stay sharp */
/* the image box keeps the picture's exact shape, so the vector laid over it lines up without stretching */
.vx-art img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(max(420px, min(68vh, 640px)) - 32px); user-select: none; -webkit-user-drag: none; }
.vx-svg { position: absolute; inset: 0; }
.vx-svg svg { width: 100%; height: 100%; display: block; }
.vx-svg.clickable svg * { cursor: pointer; }
.vx-art.only-orig .vx-svg { display: none; }
.vx-art.only-vec img { visibility: hidden; }
.vx-split { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid #7c3aed; cursor: ew-resize; z-index: 3; }
.vx-split span { position: absolute; top: 50%; left: -14px; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: #7c3aed; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.vx-split span::before { content: "‹ ›"; position: absolute; inset: 0; color: #fff; font: 700 13px/26px sans-serif; text-align: center; letter-spacing: -1px; }
.vx-split::before { content: ""; position: absolute; top: 0; bottom: 0; left: -14px; width: 26px; }
.vx-tag { position: absolute; top: 8px; line-height: 1.3; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 5px; z-index: 4; pointer-events: none; }
.vx-tag-l { left: 8px; } .vx-tag-r { right: 8px; }
.vx-busy { position: absolute; inset: 0; background: rgba(255,255,255,.88); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; z-index: 6; }
.vx-spinner { width: 56px; height: 56px; background: url(/shared/spin-logo.png) center / contain no-repeat; animation: vx-spin 1.2s linear infinite; }
@keyframes vx-spin { to { transform: rotate(360deg); } }
.vx-busy-label { font-size: 13px; font-weight: 600; color: #4b5563; }
.vx-track { width: 240px; height: 5px; background: #e5e7eb; border-radius: 3px; overflow: hidden; }
.vx-bar { height: 100%; width: 0; background: #7c3aed; border-radius: 3px; transition: width .4s ease; }
.vx-info { font-size: 12px; color: #6b7280; margin-top: 8px; min-height: 16px; }
.vx-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.vx-dl { display: inline-flex; align-items: center; gap: 7px; background: #1a6e42; color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.vx-dl:hover { opacity: .88; }
.vx-png { display: flex; align-items: center; gap: 6px; }
.vx-png input { width: 62px; padding: 8px 6px; border: 1px solid #e5e7eb; border-radius: 7px; font-size: 13px; font-family: inherit; }

/* thin edge in each shape's own color, so no light seams show where colors meet */
.vx-svg > svg:first-child .vx-f { stroke-width: .6px; vector-effect: non-scaling-stroke; stroke-linejoin: round; paint-order: stroke; }
/* hovering a color in the list: the other colors go gray, the picked one gets a pink outline */
.vx-svg.vx-hl > svg:first-child { filter: grayscale(1) brightness(1.15) contrast(.55); opacity: .4; }
.vx-svg .vx-hl-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vx-svg { --hlw: 2.5px; --olw: 0.6px; }
.vx-svg .vx-hl-edge > * { fill: #ff2d95 !important; stroke: #ff2d95 !important; stroke-width: var(--hlw) !important; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
/* "Keep color outline on": every color's outline in thin pink */
.vx-svg .vx-ol-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vx-svg .vx-ol-svg path { fill: none; stroke: #ff2d95; stroke-width: var(--olw); stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* clean-up tools: Remove Background + Merge colors side by side */
.vx-tools { display: flex; gap: 8px; }
.vx-tools .vx-btn { flex: 1; padding: 9px 6px; font-size: 12px; gap: 5px; min-width: 0; }
.vx-head-links { display: flex; gap: 12px; }
/* zoom (only the design zooms, not the page) */
.vx-zoom { display: flex; align-items: center; gap: 4px; }
.vx-zoom button { min-width: 30px; height: 28px; border: 1px solid #e5e7eb; background: #f9fafb; border-radius: 7px; font: 600 13px/1 inherit; font-family: inherit; color: #374151; cursor: pointer; padding: 0 8px; }
.vx-zoom button:hover { border-color: #7c3aed; color: #6d28d9; }
.vx-zoom .vx-hist { display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.vx-zoom .vx-hist:disabled { opacity: .35; cursor: default; border-color: #e5e7eb; color: #374151; }
.vx-zoom .vx-zoom-sep { width: 1px; min-width: 0; height: 18px; background: #e5e7eb; margin: 0 4px; padding: 0; }
.vx-zoom span { font-size: 11px; color: #6b7280; min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; }
.vx-stage { touch-action: none; overscroll-behavior: contain; }
.vx-stage.can-pan { cursor: grab; }
.vx-stage.panning, .vx-stage.panning * { cursor: grabbing !important; }
.vx-svg.merge-mode svg * { cursor: grab; }
.vx-stage.dragging, .vx-stage.dragging * { cursor: grabbing !important; }
/* the color being dragged follows the pointer */
.vx-ghost { position: fixed; z-index: 9999; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #ff2d95, 0 4px 12px rgba(0,0,0,.35); pointer-events: none; }
.vx-ghost b { position: absolute; left: 34px; top: 4px; white-space: nowrap; background: rgba(17,17,17,.85); color: #fff; font: 700 11px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; padding: 5px 7px; border-radius: 5px; }
.vx-color.drop { border-color: #ff2d95; box-shadow: 0 0 0 2px #ff2d95; }
.vx-color.hover { border-color: #ff2d95; box-shadow: 0 0 0 2px #ff2d95; background: #fff0f7; }
/* Unmerge: each color with the colors merged into it underneath, to drag back out */
.vx-colors.unmerge { grid-template-columns: 1fr; }
.vx-cgroup { display: flex; flex-direction: column; gap: 5px; border: 1px solid #e5e7eb; border-radius: 9px; padding: 5px; background: #fafafa; }
.vx-cgroup > .vx-color { width: 100%; }
.vx-members { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 2px 2px 14px; }
.vx-member { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px 3px 4px; border: 1px dashed #c4b5fd; border-radius: 6px; background: #fff; font: 600 10px ui-monospace, Menlo, monospace; color: #374151; cursor: grab; user-select: none; touch-action: none; }
.vx-member:hover, .vx-member.hover { border-color: #ff2d95; border-style: solid; }
.vx-member i { width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
#vx-unmerge.on { color: #ff2d95; }
/* PNG size pop-up */
.vx-png { position: relative; }
.vx-pop { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 20; width: 300px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 12px 34px rgba(0,0,0,.18); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.vx-pop-title { font-size: 13px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.vx-size-row { display: flex; align-items: flex-end; gap: 6px; }
.vx-size-row label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 600; color: #6b7280; flex: 1; min-width: 0; }
.vx-size-row input, .vx-size-row select { width: 100%; padding: 8px 7px; border: 1px solid #e5e7eb; border-radius: 7px; font-size: 13px; font-family: inherit; background: #fff; color: #111; }
.vx-size-row select { width: auto; }
.vx-size-row input:focus, .vx-size-row select:focus { outline: none; border-color: #7c3aed; }
.vx-lock { flex: none; width: 32px; height: 34px; border: 1px solid #e5e7eb; border-radius: 7px; background: #f9fafb; color: #9ca3af; cursor: pointer; display: grid; place-items: center; }
.vx-lock.on { color: #6d28d9; border-color: #c4b5fd; background: #f5f3ff; }
.vx-lock:not(.on) .vx-shackle { transform: translate(5px, -2px) rotate(20deg); transform-origin: 16px 11px; }
.vx-stretch-note { color: #b45309; }
.vx-pop-actions { display: flex; justify-content: flex-end; gap: 8px; }
.vx-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.vx-outline-check { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #374151; cursor: pointer; width: fit-content; }
.vx-outline-check input { accent-color: #ff2d95; width: 15px; height: 15px; margin: 0; }
/* a different width/height than the design: the preview stretches to match */
.vx-art.stretched img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: fill; }
/* Download SVG: anchor density preview */
.vx-anc-count { font-size: 12px; color: #ff2d95; font-weight: 700; }
.vx-anc-scale { display: flex; justify-content: space-between; font-size: 10px; color: #9ca3af; margin-top: -4px; }
.vx-png #vx-anc { accent-color: #ff2d95; width: 100%; padding: 0; border: 0; }
.vx-svg .vx-anc-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vx-svg .vx-anc-shapes path { stroke: none; }
.vx-svg .vx-anc-lines { fill: none; stroke: #ff2d95; stroke-width: var(--olw); vector-effect: non-scaling-stroke; opacity: .7; }
.vx-svg .vx-anc-dots { fill: none; stroke: #ff2d95; stroke-width: var(--ancw, 4px); stroke-linecap: round; vector-effect: non-scaling-stroke; }
.vx-svg.vx-anc-on > svg:first-child { visibility: hidden; }
.vx-cost { font-size: 11px; font-weight: 600; opacity: .85; background: rgba(255,255,255,.18); border-radius: 10px; padding: 2px 7px; }
.vx-color { position: relative; }
.vx-edit { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; color: #6b7280; background: rgba(255,255,255,.9); opacity: .55; cursor: pointer; }
.vx-color:hover .vx-edit, .vx-edit:focus { opacity: 1; }
.vx-edit:hover { color: #6d28d9; background: #f5f3ff; }
.vx-recolor { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.vx-colors-head + .vx-sub ~ .vx-colors, .vx-panel { position: relative; }

/* Upscale / AI Background Remove blocks: tick one to open it; it has its own button */
.vx-block { border: 2px solid #e5e7eb; border-radius: 9px; transition: border-color .15s, background .15s; }
.vx-block + .vx-block { margin-top: 8px; }
.vx-block:has(input:checked) { border-color: #7c3aed; background: #f5f3ff; }
.vx-block .vx-check, .vx-block .vx-check:has(input:checked) { border: 0; background: none; }
.vx-block-body { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.vx-block-body[hidden] { display: none; }
.vx-step-btn { width: 100%; }
.vx-upmodes { flex-wrap: wrap; }
.vx-upmodes button { flex: 1; padding: 6px 6px; }
/* before / after a step (Upscale or Background Remove), shown with the compare line */
.vx-svg .vx-before-after { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; display: block; }
.vx-th { margin-top: 8px; }
.vx-th .vx-block-body input[type=range] { width: 100%; accent-color: #7c3aed; }
.vx-run:disabled .vx-cost { opacity: .6; }
.vx-step2-sub { margin: -6px 0 10px; }
/* step 2: open the real Upscale / Background Remove tools */
.vx-steps { display: flex; flex-direction: column; gap: 8px; }
.vx-step-open { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 2px solid #e5e7eb; border-radius: 10px; background: #fff; padding: 11px 12px; cursor: pointer; font: inherit; color: #111; }
.vx-step-open:hover:not(:disabled) { border-color: #7c3aed; background: #f5f3ff; }
.vx-step-open:disabled { opacity: .5; cursor: default; }
.vx-step-open b { display: block; font-size: 14px; }
.vx-step-open .vx-sub { display: block; margin-top: 2px; }
.vx-step-ic { flex: none; width: 34px; height: 34px; border-radius: 9px; background: #f5f3ff; color: #6d28d9; display: grid; place-items: center; font-size: 16px; }
.vx-steps-note { margin: 8px 0 4px; }
/* step 2 inline: same controls as the AI Upscale / Background Remove tools */
.vx-step-open[aria-expanded="true"] { border-color: #7c3aed; background: #f5f3ff; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.vx-step-body { border: 2px solid #7c3aed; border-top: 0; border-radius: 0 0 10px 10px; margin-top: -8px; padding: 10px 12px 12px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.vx-step-body[hidden] { display: none; }
.vx-mini-label { font-size: 10px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: .8px; }
.vx-toggle-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#vx-engines { grid-template-columns: 1fr 1fr 1fr; }
#vx-engines .vx-toggle { padding-left: 4px; padding-right: 4px; flex-wrap: wrap; gap: 2px 4px; }
.vx-toggle { position: relative; background: #f9fafb; border: 2px solid #e5e7eb; border-radius: 8px; padding: 8px 6px; font-size: 12px; font-weight: 600; font-family: inherit; color: #555; cursor: pointer; text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; }
.vx-toggle:hover { border-color: #c4b5fd; }
.vx-toggle.active { border-color: #7c3aed; background: #f5f3ff; color: #6d28d9; }
.vx-bgcustom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.vx-bgcustom i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid #d1d5db; background: #fff; }
.vx-wonder { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; }
.vx-wonder[hidden], .vx-trans[hidden], .vx-rt[hidden] { display: none; }
.vx-wonder-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; color: #374151; }
.vx-wonder-row select { background: #fff; border: 1px solid #d1d5db; border-radius: 7px; padding: 5px 8px; font-size: 12px; }
.vx-wonder-face { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 12px; color: #374151; cursor: pointer; }
.vx-wonder-face input { margin: 0; accent-color: #7c3aed; }
.vx-wonder-face span { color: #9ca3af; }
.vx-wonder-size { margin-top: 6px; font-size: 11px; color: #6d28d9; }
.vx-trans { display: flex; flex-direction: column; gap: 6px; }
.vx-trans-warn { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #92400e; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; padding: 7px 10px; }
.vx-step-run { width: 100%; background: #7c3aed; color: #fff; border: 0; border-radius: 8px; padding: 11px; font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.vx-step-run:disabled { opacity: .5; cursor: default; }
.vx-rt { margin-top: 10px; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px; background: #fafafa; }
.vx-rt-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vx-svg .vx-rt-preview { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vx-engine { margin: 12px 0 10px; display: flex; flex-direction: column; gap: 6px; }
.vx-eng-cost { font-size: 10px; font-weight: 700; background: rgba(124,58,237,.1); border: 1px solid #d4c5f9; color: #6d28d9; border-radius: 8px; padding: 1px 6px; }
.vx-raw-link { align-self: flex-start; font-size: 11px; }
.vx-stage.single .vx-svg svg * { cursor: crosshair; }
.vx-stage.single.newcolor::after { content: 'New color (Q): click a shape' !important; background: #7c3aed !important; }
.vx-stage.single.flatgrad::after { content: 'Flat color (G): click a gradient' !important; background: #0891b2 !important; }
.vx-stage.single::after { content: 'Single shape (A)'; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); background: #ff2d95; color: #fff; font: 700 11px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; padding: 6px 10px; border-radius: 6px; pointer-events: none; z-index: 5; }
.vx-engine[hidden] { display: none; }

.vx-testmode { margin: 8px 0 0; font-size: 12px; color: #6b7280; }

/* Download SVG + the arrow for more file types */
.vx-dlsplit { display: inline-flex; align-items: stretch; }
.vx-dlsplit #vx-dl-svg { border-radius: 8px 0 0 8px; }
.vx-dlsplit .vx-dl-more { border-radius: 0 8px 8px 0; padding: 10px 10px; margin-left: 1px; box-shadow: inset 1px 0 0 rgba(255,255,255,.28); }
.vx-dlsplit .vx-dl-more[aria-expanded="true"] { background: #14573a; }
.vx-fmt-pop { width: 290px; }
.vx-fmts { display: flex; flex-direction: column; gap: 6px; }
.vx-fmt { display: flex; align-items: baseline; gap: 10px; width: 100%; text-align: left; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 9px 12px; cursor: pointer; font-family: inherit; color: #111827; }
.vx-fmt:hover { border-color: #1a6e42; background: #f0fdf4; }
.vx-fmt:disabled { opacity: .55; cursor: wait; }
.vx-fmt b { font-size: 13px; min-width: 34px; }
.vx-fmt span { font-size: 11px; color: #6b7280; }
.vx-dlsplit .vx-dl { white-space: nowrap; flex: 0 0 auto; }
.vx-svgdl { flex: 0 0 auto; }

.vx-showmerged { margin: 6px 0 8px; }

/* "Have one of our artists vectorize your design for you" (artist-request.js) */
.vx-artist { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-top: 2px; background: #fef3c7; border: 1px solid #f59e0b; border-radius: 10px; cursor: pointer; font-family: inherit; text-align: left; color: #78350f; box-shadow: 0 1px 0 rgba(0,0,0,.03); transition: background .15s, transform .15s; }
.vx-artist:hover { background: #fde68a; }
.vx-artist:active { transform: translateY(1px); }
.vx-artist-ic { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: #f59e0b; color: #fff; display: flex; align-items: center; justify-content: center; }
.vx-artist-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 11.5px; line-height: 1.35; }
.vx-artist-tx b { font-size: 12.5px; color: #451a03; }
.vx-artist-go { flex-shrink: 0; font-size: 11.5px; font-weight: 700; color: #fff; background: #92400e; border-radius: 7px; padding: 6px 9px; white-space: nowrap; }
.vx-artist:hover .vx-artist-go { background: #78350f; }
.vx-artist-modal { position: fixed; inset: 0; z-index: 100001; background: rgba(17,24,39,.55); display: flex; align-items: center; justify-content: center; padding: 16px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1a1a1a; }
.vx-artist-card { position: relative; background: #fff; border-radius: 14px; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.vx-artist-card h2 { font-size: 18px; margin: 0 28px 6px 0; }
.vx-artist-intro { margin: 0 0 14px; font-size: 12px; }
.vx-artist-x { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 24px; line-height: 1; color: #9ca3af; cursor: pointer; }
.vx-artist-x:hover { color: #374151; }
.vx-artist-card label { display: block; font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 10px; }
.vx-artist-card input[type=text], .vx-artist-card input[type=email], .vx-artist-card textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; font-family: inherit; color: #111; background: #fff; }
.vx-artist-card input:focus, .vx-artist-card textarea:focus { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,.15); }
.vx-artist-card textarea { resize: vertical; min-height: 80px; }
.vx-artist-names { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vx-artist-file { margin-bottom: 14px; padding: 10px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fafafa; }
.vx-artist-file .vx-file-row img { width: 56px; height: 56px; }
.vx-artist-add { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px; border: 2px dashed #d1d5db; border-radius: 8px; background: #fff; cursor: pointer; font-family: inherit; font-size: 13px; color: #374151; }
.vx-artist-add:hover { border-color: #7c3aed; background: #f5f3ff; }
.vx-artist-file .vx-link-btn { margin-top: 2px; }
.vx-artist-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.vx-artist-check { width: 48px; height: 48px; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 26px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 4px 0 12px; }
#vx-artist-done .vx-sub { font-size: 13px; margin: 0 0 16px; }
.vx-artist-me { margin-bottom: 12px; padding: 10px 12px; border-radius: 10px; background: #f5f3ff; color: #374151; font-size: 13px; line-height: 1.5; }
.vx-artist-me .vx-link-btn { display: inline; margin-left: 2px; }

/* Embedded in the DTF Prep Tool (AI Vector → Edit): only the clean-up tools and the preview */
.vx-embed .vx-header, .vx-embed #vx-step2, .vx-embed .vx-col:first-child > .vx-panel:first-child, .vx-embed .vx-artist, .vx-embed #vx-autocrop { display: none !important; }
.vx-embed-bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: #fdf4ff; border-bottom: 1px solid #f0abfc; font-size: 13px; color: #4a044e; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.vx-embed-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vx-embed-dls { display: flex; gap: 8px; align-items: center; margin-right: 6px; padding-right: 14px; border-right: 1px solid #f0abfc; }
.vx-embed-dls[hidden] { display: none; }
.vx-embed-dls .vx-dl, .vx-embed-dls .vx-btn { padding: 8px 14px; }
.vx-embed-dls .vx-dlsplit .vx-dl-more { padding: 8px 9px; }
.vx-embed-bar .vx-pop { bottom: auto; top: calc(100% + 8px); left: auto; right: 0; }
.vx-embed-cancel { padding: 8px 14px; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.vx-embed-done { padding: 8px 16px; border-radius: 8px; border: 0; background: #c026d3; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.vx-embed-done:disabled { opacity: .5; cursor: default; }
.vx-eng-warn { margin-top: 4px; font-size: 11.5px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 7px; padding: 5px 8px; }
.vx-bgs-wrap { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.vx-bgs-label { font-size: 9.5px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .04em; text-align: center; line-height: 1.25; width: 0; min-width: 100%; }

/* Crop step: drag a box on the image; only that part gets vectorized */
.vx-crop { position: absolute; inset: 0; z-index: 6; cursor: crosshair; touch-action: none; }
.vx-crop-box { position: absolute; border: 2px dashed #f97316; box-shadow: 0 0 0 9999px rgba(0,0,0,.45); cursor: move; box-sizing: border-box; }
.vx-crop-box i { position: absolute; width: 12px; height: 12px; background: #fff; border: 2px solid #f97316; border-radius: 3px; box-sizing: border-box; }
.vx-crop-box i[data-h="nw"] { left: -7px; top: -7px; cursor: nwse-resize; } .vx-crop-box i[data-h="ne"] { right: -7px; top: -7px; cursor: nesw-resize; }
.vx-crop-box i[data-h="sw"] { left: -7px; bottom: -7px; cursor: nesw-resize; } .vx-crop-box i[data-h="se"] { right: -7px; bottom: -7px; cursor: nwse-resize; }
.vx-crop-box i[data-h="n"] { left: 50%; top: -7px; margin-left: -6px; cursor: ns-resize; } .vx-crop-box i[data-h="s"] { left: 50%; bottom: -7px; margin-left: -6px; cursor: ns-resize; }
.vx-crop-box i[data-h="w"] { top: 50%; left: -7px; margin-top: -6px; cursor: ew-resize; } .vx-crop-box i[data-h="e"] { top: 50%; right: -7px; margin-top: -6px; cursor: ew-resize; }
.vx-crop-btns { display: flex; gap: 6px; margin-top: 8px; } .vx-crop-btns .vx-step-run { flex: 1; margin-top: 0; }
.vx-art.cropping .vx-svg, .vx-art.cropping .vx-split, .vx-art.cropping .vx-tag { display: none !important; }
.vx-embed #pg-claim-bar { display: none !important; }
