/* Holodepth — Vertex quantization lab (mesh-compression-lab temel sınıflarıyla) */

.doc-material-demo--vertex-quantization-lab {
  border-color: rgba(100, 210, 180, 0.22);
}

.doc-material-demo--vertex-quantization-lab .doc-material-demo__tag {
  color: rgba(160, 230, 210, 0.92);
}

.doc-vertex-lab__bits-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  min-width: min(100%, 14rem);
}

.doc-vertex-lab__bits-row label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  font-size: 0.74rem;
  color: rgba(195, 215, 235, 0.95);
  cursor: pointer;
}

.doc-vertex-lab__bits-row input[type="range"] {
  width: min(11rem, 100%);
  accent-color: #5ec8ff;
}

.doc-vertex-lab__bits-value {
  display: inline-block;
  min-width: 1.35rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: rgba(120, 220, 255, 0.98);
}

.doc-vertex-lab__bits-row input[type="range"]:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.doc-material-demo--vertex-quantization-lab .doc-material-demo__viewport-wrap {
  min-height: 280px;
}

@media (max-width: 640px) {
  .doc-material-demo--vertex-quantization-lab .doc-material-demo__viewport-wrap {
    min-height: 240px;
  }
}

.doc-vertex-lab__split-heads .doc-vertex-lab__split-tag {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08rem;
  line-height: 1.25;
  font-size: 0.64rem;
}

.doc-vertex-lab__split-heads .doc-vertex-lab__split-side {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(160, 220, 255, 0.95);
}

.doc-vertex-lab__split-heads .doc-vertex-lab__split-tag:last-child {
  align-items: flex-end;
  text-align: right;
}

.doc-vertex-lab__error-legend {
  position: absolute;
  right: 0.45rem;
  bottom: 0.42rem;
  z-index: 3;
  max-width: min(11.5rem, calc(100% - 0.9rem));
  pointer-events: none;
  padding: 0.38rem 0.48rem 0.42rem;
  border-radius: 10px;
  font-size: 0.62rem;
  line-height: 1.35;
  color: rgba(210, 225, 250, 0.96);
  background: rgba(5, 10, 20, 0.88);
  border: 1px solid rgba(120, 190, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 5px 20px rgba(0, 0, 0, 0.4);
}

.doc-vertex-lab__error-legend-title {
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(150, 210, 255, 0.95);
  margin-bottom: 0.28rem;
}

.doc-vertex-lab__error-legend-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.12rem 0;
  color: rgba(185, 200, 230, 0.94);
}

.doc-vertex-lab__error-swatch {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.doc-vertex-lab__error-swatch--low {
  background: rgb(8, 12, 28);
}

.doc-vertex-lab__error-swatch--high {
  background: linear-gradient(135deg, #ffb04a, #ff4a6a);
}

.doc-vertex-lab__error-gradient {
  height: 0.38rem;
  margin: 0.32rem 0 0.22rem;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgb(8, 12, 28) 0%,
    rgb(40, 55, 95) 35%,
    rgb(200, 110, 80) 72%,
    rgb(255, 90, 120) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.doc-vertex-lab__error-legend-note {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(220, 230, 245, 0.62);
}

.doc-vertex-lab__error-scale {
  display: flex;
  justify-content: space-between;
  font-variant-numeric: tabular-nums;
  font-size: 0.58rem;
  color: rgba(160, 180, 215, 0.92);
}

@media (max-width: 520px) {
  .doc-vertex-lab__error-legend {
    right: 0.35rem;
    bottom: 0.35rem;
    max-width: calc(100% - 0.65rem);
    font-size: 0.58rem;
  }
}
