/* Vectorizar imagem — page dashboard. Does not restyle the site header. */

body.page-vectorizar-imagem-online.is-fullscreen .fs-workspace.vtx-fs {
  min-height: 0;
  border: 0;
  background: #f4f7fc;
  padding: 18px 20px 12px;
}

body.page-vectorizar-imagem-online .fs-chrome {
  display: none;
}

.vtx-app {
  --vtx-ink: #172554;
  --vtx-body: #3d4d6a;
  --vtx-muted: #64748b;
  --vtx-card: #fff;
  --vtx-line: #e4ebf5;
  --vtx-soft: #f3f6fb;
  --vtx-blue: #2f6fed;
  --vtx-blue-soft: #e8f0ff;
  --vtx-green: #16a34a;
  --vtx-green-dark: #15803d;
  box-sizing: border-box;
  width: min(1440px, 100%);
  margin: 0 auto;
  color: var(--vtx-body);
  font-size: 15px;
  line-height: 1.45;
}

.vtx-app *,
.vtx-app *::before,
.vtx-app *::after {
  box-sizing: border-box;
}

.vtx-app p,
.vtx-app h1,
.vtx-app h2,
.vtx-app h3,
.vtx-app ul,
.vtx-app ol,
.vtx-app dl,
.vtx-app dd,
.vtx-app dt {
  margin: 0;
  text-align: left;
}

.vtx-app ul,
.vtx-app ol,
.vtx-app li {
  padding: 0;
  list-style: none;
}

.vtx-app li {
  margin: 0;
}

.article .vtx-app li::before,
.thecontent .vtx-app li::before {
  content: none;
}

.vtx-app button,
.vtx-app input,
.vtx-app select {
  font: inherit;
}

.vtx-app input,
.vtx-app select {
  color: inherit;
}

.vtx-app svg {
  display: block;
  max-width: none;
  flex: none;
}

/* Theme sizes every svg at 1.25em × 1em; honor the markup sizes instead */
.vtx-app svg[width="12"] { width: 12px; height: 8px; }
.vtx-app svg[width="16"] { width: 16px; height: 16px; }
.vtx-app svg[width="18"] { width: 18px; height: 18px; }
.vtx-app svg[width="20"] { width: 20px; height: 20px; }
.vtx-app svg[width="32"] { width: 32px; height: 32px; }
.vtx-app svg[width="36"] { width: 36px; height: 36px; }

.vtx-app fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.vtx-app fieldset:disabled {
  opacity: 0.72;
}

.vtx-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.vtx-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Hero */
.vtx-hero {
  display: flex;
  align-items: center;
  gap: 18px 28px;
  margin-bottom: 16px;
}

.vtx-hero-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.vtx-hero-ico {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--vtx-blue-soft);
  color: var(--vtx-blue);
}

.article .vtx-app h1.vtx-title,
.vtx-app h1.vtx-title {
  margin: 0;
  color: var(--vtx-ink);
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.vtx-lede {
  margin-top: 4px;
  max-width: 60ch;
  color: var(--vtx-body);
  font-size: 1.02rem;
}

.vtx-app .vtx-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-left: auto;
}

.vtx-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vtx-perk-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--vtx-blue-soft);
  color: var(--vtx-blue);
}

.vtx-perks strong {
  display: block;
  color: var(--vtx-ink);
  font-size: 0.92rem;
  line-height: 1.2;
}

.vtx-perks li span span {
  display: block;
  color: var(--vtx-muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

/* Grid */
.vtx-grid {
  display: grid;
  grid-template-columns: minmax(270px, 340px) minmax(0, 1fr) minmax(260px, 330px);
  gap: 14px;
  align-items: stretch;
}

.vtx-card {
  background: var(--vtx-card);
  border: 1px solid var(--vtx-line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(23, 37, 84, 0.04);
}

.vtx-options,
.vtx-stage-card,
.vtx-side {
  min-width: 0;
}

.vtx-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article .vtx-app h2.vtx-step,
.vtx-app h2.vtx-step {
  margin: 4px 0 0;
  color: var(--vtx-ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.vtx-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vtx-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vtx-label {
  color: var(--vtx-ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.vtx-select {
  width: 100%;
  height: 42px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--vtx-line);
  border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 8px;
  color: var(--vtx-ink);
  appearance: none;
}

.vtx-hint,
.vtx-note,
.vtx-switch-help {
  color: var(--vtx-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.vtx-note[hidden] {
  display: none !important;
}

.vtx-slider-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 10px;
  align-items: center;
}

.vtx-app input[type="range"]#vtx-colors {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vtx-blue) var(--vtx-pct, 23%), #e5eaf2 var(--vtx-pct, 23%));
  cursor: pointer;
}

.vtx-app input[type="range"]#vtx-colors::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--vtx-blue);
  box-shadow: 0 0 0 1px #c9d8f5;
}

.vtx-app input[type="range"]#vtx-colors::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #e5eaf2;
}

.vtx-app input[type="range"]#vtx-colors::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--vtx-blue);
}

.vtx-app input[type="range"]#vtx-colors::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--vtx-blue);
  box-shadow: 0 0 0 1px #c9d8f5;
}

.vtx-slider-val {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border: 1px solid var(--vtx-line);
  border-radius: 10px;
  background: var(--vtx-soft);
  color: var(--vtx-ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.vtx-switch {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.vtx-app .vtx-switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.vtx-switch-track {
  position: relative;
  flex: none;
  width: 42px;
  height: 24px;
  margin-top: 1px;
  border-radius: 999px;
  background: #d5ddea;
  transition: background 0.15s ease;
}

.vtx-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(23, 37, 84, 0.25);
  transition: transform 0.15s ease;
}

.vtx-switch-input:checked + .vtx-switch-track {
  background: var(--vtx-blue);
}

.vtx-switch-input:checked + .vtx-switch-track::after {
  transform: translateX(18px);
}

.vtx-switch-input:focus-visible + .vtx-switch-track {
  outline: 2px solid var(--vtx-blue);
  outline-offset: 2px;
}

.vtx-switch {
  position: relative;
}

.vtx-switch-name {
  display: block;
  color: var(--vtx-ink);
  font-size: 0.9rem;
  font-weight: 700;
}

/* Drop */
.vtx-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 14px 14px;
  border: 1.5px dashed #c5d4f5;
  border-radius: 16px;
  background: #f8faff;
  text-align: center;
  cursor: pointer;
}

.vtx-app #vtx-drop[hidden] {
  display: flex !important;
}

.vtx-drop-ico {
  display: inline-flex;
  color: #93a4c4;
}

.vtx-drop-title {
  color: var(--vtx-ink);
  font-weight: 800;
}

.vtx-drop-hint {
  color: var(--vtx-muted);
  font-size: 0.78rem;
}

.vtx-drop-cta {
  width: 100%;
  margin-top: 6px;
}

/* Buttons */
.vtx-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--vtx-soft);
  color: var(--vtx-ink);
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}

.vtx-btn-block {
  width: 100%;
}

.vtx-btn-primary {
  background: var(--vtx-blue);
  color: #fff;
}

.vtx-btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
}

.vtx-btn-green {
  background: var(--vtx-green);
  color: #fff;
}

.vtx-btn-green:hover:not(:disabled) {
  background: var(--vtx-green-dark);
}

.vtx-btn-line {
  background: #fff;
  border-color: #cfe0ff;
  color: var(--vtx-blue);
}

.vtx-btn-line:hover:not(:disabled) {
  background: var(--vtx-blue-soft);
}

.vtx-btn-ghost {
  background: #fff;
  border-color: var(--vtx-line);
  color: var(--vtx-ink);
}

.vtx-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.vtx-btn[hidden],
.vtx-app [hidden] {
  display: none !important;
}

.vtx-app #vtx-drop[hidden] {
  display: flex !important;
}

.vtx-app .rbg-btn-label-short {
  display: none;
}

/* Run button stays in view while the options column scrolls past */
.vtx-action-row {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 -16px;
  padding: 10px 16px;
  background: var(--vtx-card);
}

.vtx-quiet-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.vtx-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--vtx-blue);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vtx-link:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.vtx-app #vtx-status {
  flex: 1;
  min-width: 0;
  min-height: 1.2em;
  color: var(--vtx-muted);
  font-size: 0.82rem;
  text-align: right;
}

.vtx-app #vtx-status.is-error { color: #b91c1c; }
.vtx-app #vtx-status.is-ok { color: #15803d; }
.vtx-app #vtx-status.is-loading { color: var(--vtx-blue); }

/* Stage */
.vtx-stage-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 520px;
}

.vtx-stage {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.vtx-stage[hidden] {
  display: none !important;
}

.vtx-stage-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
}

.vtx-app .vtx-view-host {
  display: none !important;
}

.vtx-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--vtx-soft);
}

.vtx-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--vtx-ink);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.vtx-tab.is-active {
  background: var(--vtx-blue-soft);
  color: var(--vtx-blue);
}

.vtx-tab:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.vtx-empty,
.vtx-panes {
  display: grid;
  flex: 1;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  min-height: 0;
}

.vtx-app:not(.is-empty) .vtx-empty {
  display: none;
}

/* Result pane stays on screen as a placeholder until the first run */
.vtx-app #vtx-result-pane[hidden] {
  display: flex !important;
}

.vtx-app #vtx-result-pane[hidden] #vtx-result,
.vtx-app #vtx-result-pane[hidden] .vtx-badge,
.vtx-app #vtx-result-pane[hidden] .vtx-pane-foot > * {
  visibility: hidden;
}

.vtx-app #vtx-result-pane[hidden] .vtx-frame::after {
  content: "O vetor aparece aqui";
  position: absolute;
  inset: auto 0 50%;
  color: var(--vtx-muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
  transform: translateY(50%);
}

.vtx-app.is-view-result .vtx-panes {
  grid-template-columns: 1fr;
}

.vtx-app.is-view-result #vtx-preview-pane {
  display: none;
}

.vtx-app .rbg-compare.clr-compare--dual {
  display: none !important;
}

.vtx-pane {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 12px;
  border: 1px solid var(--vtx-line);
  border-radius: 14px;
  background: #fff;
}

.vtx-pane-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.vtx-pane-top strong {
  color: var(--vtx-ink);
  font-size: 0.88rem;
}

.vtx-badge {
  max-width: 62%;
  overflow: hidden;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--vtx-soft);
  color: var(--vtx-muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#vtx-badge-out {
  background: var(--vtx-blue-soft);
  color: var(--vtx-blue);
}

.vtx-badge:empty {
  display: none;
}

.vtx-frame,
.vtx-app .clr-ba-frame {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  overflow: hidden;
  border-radius: 12px;
  background-color: #f4f6fb;
  background-image:
    linear-gradient(45deg, #e6ebf4 25%, transparent 25%),
    linear-gradient(-45deg, #e6ebf4 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e6ebf4 75%),
    linear-gradient(-45deg, transparent 75%, #e6ebf4 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.vtx-frame-empty {
  flex: 1;
  min-height: 280px;
}

.vtx-frame img {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  max-width: none;
  border: 0;
  object-fit: contain;
  transform-origin: center center;
}

.vtx-pane-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.vtx-compare-btn {
  position: absolute;
  right: 0;
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.86rem;
}

.vtx-compare-btn.is-active {
  border-color: #b9d0ff;
  background: var(--vtx-blue-soft);
  color: var(--vtx-blue);
}

.vtx-zoom {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--vtx-line);
  border-radius: 10px;
  background: #fff;
}

.vtx-zoom button {
  appearance: none;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--vtx-ink);
  font-weight: 800;
  cursor: pointer;
}

.vtx-zoom span {
  min-width: 46px;
  color: var(--vtx-ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

/* Compare slider */
.vtx-app .clr-ba {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 320px;
  margin: 0;
  user-select: none;
  touch-action: none;
}

.vtx-app .clr-ba[hidden] {
  display: none !important;
}

.vtx-app .clr-ba-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ba-ar, 1 / 1);
  max-height: min(62vh, 560px);
  container-type: inline-size;
}

.vtx-app .clr-ba--fit .clr-ba-frame {
  max-height: none;
}

.vtx-app .clr-ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  background: transparent;
}

.vtx-app .clr-ba--fit .clr-ba-img {
  object-fit: fill;
}

.vtx-app .clr-ba-clip {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid #fff;
}

.vtx-app .clr-ba-clip .clr-ba-img--gray {
  width: 100cqi;
  max-width: none;
  left: 0;
  height: 100%;
}

.vtx-app .clr-ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 3;
  width: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

.vtx-app .clr-ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
}

.vtx-app .clr-ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--vtx-line);
  border-radius: 50%;
  background: #fff;
  color: var(--vtx-ink);
  font-size: 14px;
  font-weight: 800;
  transform: translate(-50%, -50%);
}

.vtx-app .clr-ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 4;
}

.vtx-app .clr-ba-labels {
  display: flex;
  align-self: stretch;
  justify-content: space-between;
  width: 100%;
  margin-top: 8px;
  padding: 0 4px;
  color: var(--vtx-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vtx-progress[hidden] {
  display: none !important;
}

.vtx-progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eaf2;
}

.vtx-progress-fill {
  height: 100%;
  background: var(--vtx-blue);
}

.vtx-progress-text {
  margin-top: 6px;
  color: var(--vtx-muted);
  font-size: 0.8rem;
}

/* Batch: the queue only earns space with 2+ images */
.vtx-app .vtx-batch:has(.aib-list > :only-child) {
  display: none !important;
}

.vtx-app .vtx-batch {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  padding-top: 8px;
  border-top: 1px solid var(--vtx-line);
}

.vtx-app .aib-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.vtx-app .aib-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--vtx-soft);
  cursor: pointer;
}

.vtx-app .aib-item.is-active {
  border-color: #b9d0ff;
}

.vtx-app .aib-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #e2e8f0;
}

.vtx-app .aib-name {
  overflow: hidden;
  color: var(--vtx-ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vtx-app .aib-meta,
.vtx-app .aib-empty,
.vtx-app .aib-panel-count {
  color: var(--vtx-muted);
  font-size: 0.75rem;
}

.vtx-app .rbg-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.vtx-app .rbg-next-label {
  color: var(--vtx-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.vtx-app .rbg-next-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--vtx-blue-soft);
  color: var(--vtx-blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

/* Side */
.vtx-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article .vtx-app h2.vtx-card-title,
.vtx-app h2.vtx-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--vtx-ink);
  font-size: 1rem;
  font-weight: 800;
}

.vtx-title-ico {
  display: inline-flex;
  color: var(--vtx-blue);
}

.vtx-dl {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vtx-dl .vtx-btn {
  min-height: 48px;
}

.vtx-split {
  position: relative;
  display: flex;
}

.vtx-split-main {
  flex: 1;
  border-radius: 12px 0 0 12px;
  font-size: 1.02rem;
}

.vtx-split-caret {
  width: 46px;
  padding: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0 12px 12px 0;
}

.vtx-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border: 1px solid var(--vtx-line);
  border-radius: 12px;
  background: var(--vtx-card);
  box-shadow: 0 12px 32px rgba(23, 37, 84, 0.14);
}

.vtx-menu button {
  appearance: none;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--vtx-ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.vtx-menu button:hover:not(:disabled) {
  background: var(--vtx-blue-soft);
}

.vtx-menu button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.vtx-dl .vtx-btn-line {
  border-color: var(--vtx-blue);
}

.vtx-info {
  display: flex;
  flex-direction: column;
}

.vtx-info div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--vtx-line);
}

.vtx-info div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.vtx-info dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--vtx-body);
  font-size: 0.84rem;
}

.vtx-info dt svg {
  color: var(--vtx-muted);
}

.vtx-info dd {
  color: var(--vtx-ink);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: right;
}

.vtx-tips-card {
  background: #fff8e6;
  border-color: #f3e2b0;
}

.vtx-about-card {
  background: #f4f0ff;
  border-color: #e3daf8;
}

.vtx-tips {
  display: grid;
  gap: 7px;
}

.vtx-tips li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--vtx-body);
  font-size: 0.84rem;
  line-height: 1.35;
}

.vtx-tips li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  background: #f5c518 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.4 11.2 3.6 8.4l1.1-1.1 1.7 1.7 4-4 1.1 1.1z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.article .vtx-app .vtx-tips li::before,
.thecontent .vtx-app .vtx-tips li::before {
  content: "";
}

.vtx-about {
  color: var(--vtx-body);
  font-size: 0.9rem;
  line-height: 1.45;
}

.vtx-app .itool-hist-host {
  margin-top: 14px;
}

.vtx-app .itool-hist-host[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .vtx-grid {
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  }

  .vtx-side {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  body.page-vectorizar-imagem-online.is-fullscreen .fs-workspace.vtx-fs {
    padding: 12px 12px 8px;
  }

  .vtx-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .vtx-app .vtx-perks {
    margin-left: 0;
  }

  .vtx-grid,
  .vtx-side,
  .vtx-empty,
  .vtx-panes,
  .vtx-panes:has(#vtx-result-pane[hidden]) {
    grid-template-columns: 1fr;
  }

  .vtx-stage-card {
    height: auto;
    min-height: 0;
  }

  .vtx-stage,
  .vtx-empty,
  .vtx-panes,
  .vtx-frame {
    flex: none;
  }

  .vtx-frame,
  .vtx-frame-empty {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .vtx-stage-head {
    flex-wrap: wrap;
  }

  .vtx-tabs {
    width: 100%;
  }

  .vtx-tab {
    flex: 1;
    padding: 0 8px;
    font-size: 0.8rem;
  }

  .vtx-app #vtx-status {
    flex-basis: 100%;
    text-align: left;
  }

  .vtx-pane-foot:has(.vtx-compare-btn) {
    justify-content: space-between;
  }

  .vtx-compare-btn {
    position: static;
  }
}

html[data-theme="dark"] body.page-vectorizar-imagem-online.is-fullscreen .fs-workspace.vtx-fs,
html.dark body.page-vectorizar-imagem-online.is-fullscreen .fs-workspace.vtx-fs {
  background: transparent;
}

html[data-theme="dark"] .vtx-app,
html.dark .vtx-app {
  --vtx-ink: var(--dica-ink, #e8eaf0);
  --vtx-body: var(--dica-body, #c5cad6);
  --vtx-muted: var(--dica-muted, #9aa3b5);
  --vtx-card: var(--dica-surface, #171b22);
  --vtx-line: var(--dica-border, #2c3444);
  --vtx-soft: #12161d;
  --vtx-blue-soft: rgba(47, 111, 237, 0.16);
}

html[data-theme="dark"] .vtx-select,
html.dark .vtx-select,
html[data-theme="dark"] .vtx-btn-line,
html.dark .vtx-btn-line,
html[data-theme="dark"] .vtx-btn-ghost,
html.dark .vtx-btn-ghost,
html[data-theme="dark"] .vtx-zoom,
html.dark .vtx-zoom,
html[data-theme="dark"] .vtx-pane,
html.dark .vtx-pane {
  background: var(--vtx-card);
  color: var(--vtx-ink);
}

html[data-theme="dark"] .vtx-drop,
html.dark .vtx-drop {
  background: rgba(47, 111, 237, 0.08);
  border-color: #34508a;
}

html[data-theme="dark"] .vtx-app input[type="range"]#vtx-colors,
html.dark .vtx-app input[type="range"]#vtx-colors {
  background: linear-gradient(90deg, var(--vtx-blue) var(--vtx-pct, 23%), #2c3444 var(--vtx-pct, 23%));
}

html[data-theme="dark"] .vtx-tips-card,
html.dark .vtx-tips-card {
  background: rgba(245, 197, 24, 0.1);
  border-color: rgba(245, 197, 24, 0.28);
}

html[data-theme="dark"] .vtx-about-card,
html.dark .vtx-about-card {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.3);
}

html[data-theme="dark"] .vtx-app input[type="range"]#vtx-colors::-moz-range-track,
html.dark .vtx-app input[type="range"]#vtx-colors::-moz-range-track {
  background: #2c3444;
}

html[data-theme="dark"] .vtx-switch-track,
html.dark .vtx-switch-track {
  background: #3a4458;
}
