/* /viz — scoped. Load with job.css. Prefix vz- to avoid collisions. */
body.viz {
  --vz-ink: var(--ink, #07111f);
  --vz-muted: var(--muted, #475569);
}
body.viz .vz-svg { width: 100%; height: auto; display: block; }
body.viz .vz-bar { }
body.viz .vz-n {
  font: 600 12px/1 var(--font-sans, system-ui, sans-serif);
  fill: var(--vz-ink);
  font-variant-numeric: tabular-nums;
}
body.viz .vz-n-lg { font-size: 22px; fill: var(--accent2, #155e75); }
body.viz .vz-axis { stroke: var(--line, #c5ceda); stroke-width: 1.25; }
body.viz .vz-axis.vz-thick, body.viz .vz-conn.vz-thick { stroke-width: 2.4; }
body.viz .vz-grid { stroke: var(--track, #dce3ec); stroke-width: 1; }
body.viz .vz-line { fill: none; stroke: var(--accent, #0e7490); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
body.viz .vz-area { }
body.viz .vz-dot { fill: var(--accent, #0e7490); }
body.viz .vz-conn { stroke: var(--accent, #0e7490); fill: none; stroke-width: 1.8; }
body.viz .vz-dash { stroke: var(--muted, #64748b); stroke-dasharray: 4 3; stroke-width: 1.2; }
body.viz .vz-node { }
body.viz .vz-hub { }
body.viz .vz-slice { }
body.viz .vz-cell { }

body.viz .vz-stage, body.viz .vz-fig {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem .85rem;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #c5ceda);
  border-radius: 16px;
  box-shadow: var(--shadow-soft, 0 1px 0 rgba(10,22,40,.04));
}
body.viz .vz-stage figcaption, body.viz .vz-fig figcaption {
  margin-top: .65rem;
  font-size: .85rem;
  color: var(--vz-muted);
  text-align: center;
}
body.viz .vz-hero-demo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin: 1.25rem 0 0;
}
body.viz .vz-hero-demo .vz-svg {
  background: var(--surface, #fff);
  border-radius: 12px;
  padding: .4rem;
  border: 1px solid var(--line, #c5ceda);
}
@media (max-width: 760px) {
  body.viz .vz-hero-demo { grid-template-columns: 1fr; }
}

body.viz .vz-card .vz-mini {
  display: block;
  height: 7.2rem;
  overflow: hidden;
  margin: 0 0 .7rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--card-accent, var(--accent)) 8%, var(--surface, #fff));
}
body.viz .vz-card .vz-mini .vz-svg { height: 7.2rem; }

body.viz .vz-meters { display: grid; gap: .55rem; margin: 1rem 0 1.25rem; }
body.viz .vz-meter {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) 1fr 2.4rem;
  gap: .5rem;
  align-items: center;
  font-size: .92rem;
}
body.viz .vz-meter .bar {
  height: .5rem;
  background: color-mix(in srgb, var(--accent, #0e7490) 14%, transparent);
  border-radius: 999px;
  overflow: hidden;
}
body.viz .vz-meter .bar i { display: block; height: 100%; background: var(--accent, #0e7490); border-radius: inherit; }
body.viz .vz-meter b { text-align: right; font-variant-numeric: tabular-nums; }
body.viz .vz-radar-wrap { max-width: 320px; margin: 0 auto 1.5rem; }

body.viz .vz-list { margin: 0 0 1.4rem; padding-left: 1.15rem; }
body.viz .vz-list li { margin: .42rem 0; }
body.viz .vz-steps { margin: 0 0 1.4rem; padding-left: 1.2rem; }
body.viz .vz-steps .hint { display: block; color: var(--vz-muted); font-size: .88rem; margin-top: .15rem; }
body.viz .vz-close { font-size: 1.02rem; margin: 1.4rem 0; }

body.viz .vz-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 0 0 1.75rem;
}
body.viz .vz-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0 1.5rem; }
body.viz .vz-table th, body.viz .vz-table td {
  text-align: left;
  padding: .55rem .65rem;
  border-bottom: 1px solid var(--line, #c5ceda);
  vertical-align: top;
}
body.viz .vz-chooser { margin: 0 0 1rem; }
body.viz .vz-chooser input {
  font: inherit;
  padding: .5rem .7rem;
  border-radius: 8px;
  border: 1px solid var(--line, #c5ceda);
  min-width: min(100%, 22rem);
}

body.viz .vz-compare-picks { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
body.viz .vz-compare-picks button, body.viz .vz-quiz button {
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid var(--line, #c5ceda);
  background: var(--surface, #fff);
  padding: .35rem .75rem;
}
body.viz .vz-compare-picks button.on, body.viz .vz-quiz button.primary {
  background: var(--accent, #0e7490);
  color: #fff;
  border-color: transparent;
}
body.viz .vz-quiz { max-width: 40rem; }
body.viz .vz-quiz .opts { display: grid; gap: .45rem; margin: .8rem 0 1rem; }
body.viz .vz-quiz .nav { display: flex; gap: .5rem; }

@media (prefers-reduced-motion: reduce) {
  body.viz .vz-svg * { animation: none !important; }
}
