/* ===== Voltage & Current Explorer (vce-) ===== */
.vce-concepts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.vce-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  align-items: start;
}
.vce-concepts > *,
.vce-main > * {
  min-width: 0; /* lets canvases shrink inside the grid */
}
.vce-concept-canvas,
.vce-cell-canvas {
  display: block;
  width: 100%;
  border-radius: 8px;
}
.vce-concept-canvas { height: 280px; }
.vce-cell-canvas { height: 400px; }
.vce-plot {
  width: 100%;
  height: 400px;
}
.vce-caption {
  text-align: center;
  font-weight: 600;
  margin: 10px 0 0;
}
.vce-control { margin-bottom: 20px; }
.vce-control label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.vce-control input[type="range"] { width: 100%; }
.vce-setting { margin: 4px 0; }
.vce-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 15px;
}
.vce-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 12px 0;
  padding: 0;
}
.vce-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vce-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid;
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1;
}
@media (max-width: 1024px) {
  .vce-main { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .vce-concepts { grid-template-columns: 1fr; }
}
