/* Holodepth — Scene graph sayfası: modüler araç laboratuvarı (mesh-compression-lab tabanı ile) */

.doc-nh-car-lab__muted {
  color: rgba(165, 190, 220, 0.78);
  font-size: 0.68em;
}

figure.doc-material-demo.doc-nh-car-lab {
  overflow: visible;
}

.doc-nh-car-lab .doc-material-demo__hud {
  overflow: visible;
}

.doc-nh-car-lab__search-row {
  overflow: visible;
  position: relative;
  z-index: 2;
}

.doc-nh-car-lab__name-wrap {
  position: relative;
  flex: 1 1 14rem;
  min-width: 0;
}

.doc-nh-car-lab__name-row {
  display: flex;
  gap: 0.35rem;
  width: 100%;
  margin-top: 0.2rem;
  align-items: stretch;
}

.doc-nh-car-lab__search-flyout {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.28rem;
  z-index: 8;
  max-width: 100%;
  box-sizing: border-box;
}

.doc-nh-car-lab__match-popover {
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(94, 200, 255, 0.28);
  background: rgba(4, 10, 22, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  max-height: 9.5rem;
  overflow: auto;
}

.doc-nh-car-lab__match-popover[hidden] {
  display: none !important;
}

.doc-nh-car-lab__match-popover__title {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(150, 210, 255, 0.9);
}

.doc-nh-car-lab__match-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-nh-car-lab__match-list li {
  margin: 0.1rem 0;
}

.doc-nh-car-lab__match-list button {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 0.68rem;
  padding: 0.28rem 0.35rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(210, 225, 250, 0.95);
  cursor: pointer;
}

.doc-nh-car-lab__match-list button:hover {
  background: rgba(40, 70, 120, 0.45);
  border-color: rgba(94, 200, 255, 0.22);
}

.doc-nh-car-lab__match-list button[aria-current="true"] {
  background: rgba(70, 50, 120, 0.5);
  border-color: rgba(200, 160, 255, 0.4);
}

.doc-nh-car-lab__name-input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.72rem;
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
  border: 1px solid rgba(94, 200, 255, 0.28);
  background: rgba(6, 12, 24, 0.92);
  color: #e8f0ff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.doc-nh-car-lab__name-input:focus-visible {
  border-color: rgba(120, 220, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(94, 200, 255, 0.2);
}

.doc-nh-car-lab__name-input--error {
  border-color: rgba(255, 90, 110, 0.95) !important;
  box-shadow: 0 0 0 1px rgba(255, 70, 90, 0.35);
}

.doc-nh-car-lab__find-msg {
  margin: 0;
  padding: 0.35rem 0.45rem;
  font-size: 0.66rem;
  line-height: 1.35;
  color: rgba(255, 140, 150, 0.95);
  border-radius: 8px;
  border: 1px solid rgba(255, 100, 120, 0.35);
  background: rgba(22, 8, 12, 0.94);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.doc-nh-car-lab__find-msg--ok {
  color: rgba(130, 255, 210, 0.92);
}

.doc-nh-car-lab__find-msg[hidden] {
  display: none !important;
}

.doc-nh-car-lab__chain-title {
  margin-top: 0.5rem;
}

.doc-nh-car-lab__chain {
  margin: 0 0 0.45rem;
  padding: 0.35rem 0.45rem;
  max-height: 5.2rem;
  overflow: auto;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 0.65rem;
  line-height: 1.45;
  color: rgba(200, 225, 255, 0.92);
  background: rgba(4, 10, 22, 0.65);
  border: 1px solid rgba(94, 200, 255, 0.14);
  border-radius: 8px;
  white-space: pre;
}

.doc-sg-car-lab {
  border-color: rgba(130, 190, 255, 0.22);
}

.doc-sg-car-lab .doc-material-demo__tag {
  color: rgba(160, 210, 255, 0.92);
}

.doc-sg-car-lab__slider-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  font-size: 0.72rem;
  color: rgba(185, 205, 230, 0.92);
}

.doc-sg-car-lab__slider-row label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  flex: 1 1 12rem;
  min-width: 10rem;
}

.doc-sg-car-lab__slider-row input[type="range"] {
  flex: 1 1 6rem;
  min-width: 5rem;
  accent-color: #5ec8ff;
}

.doc-sg-car-lab__slider-val {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  min-width: 2.8rem;
  color: rgba(230, 240, 255, 0.95);
}

.doc-sg-car-lab__grid {
  display: grid;
  grid-template-columns: minmax(11rem, 15rem) 1fr;
  gap: 0.55rem 0.65rem;
  align-items: stretch;
  min-height: 280px;
}

@media (max-width: 720px) {
  .doc-sg-car-lab__grid {
    grid-template-columns: 1fr;
  }
}

.doc-sg-car-lab__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(94, 200, 255, 0.18);
  background: rgba(4, 8, 18, 0.88);
  font-size: 0.72rem;
}

.doc-sg-car-lab__tree {
  font-size: 0.72rem;
}

.doc-sg-car-lab__tree-title {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(150, 200, 255, 0.88);
}

.doc-sg-car-lab__tree-scroll {
  flex: 1;
  overflow: auto;
  max-height: 320px;
  padding-right: 0.15rem;
}

.doc-sg-car-lab__tree ul {
  margin: 0;
  padding: 0 0 0 0.85rem;
  list-style: none;
}

.doc-sg-car-lab__tree>ul {
  padding-left: 0;
}

.doc-sg-car-lab__tree li {
  margin: 0.12rem 0;
}

.doc-sg-car-lab__tree button {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 0.7rem;
  padding: 0.22rem 0.35rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(210, 225, 250, 0.95);
  cursor: pointer;
}

.doc-sg-car-lab__tree button:hover {
  background: rgba(40, 70, 120, 0.45);
  border-color: rgba(94, 200, 255, 0.22);
}

.doc-sg-car-lab__tree button:focus-visible {
  outline: 2px solid rgba(94, 200, 255, 0.55);
  outline-offset: 1px;
}

.doc-sg-car-lab__tree button.is-hovered {
  background: rgba(50, 90, 140, 0.5);
  border-color: rgba(120, 210, 255, 0.35);
}

.doc-sg-car-lab__tree button.is-selected {
  background: rgba(70, 50, 120, 0.55);
  border-color: rgba(200, 160, 255, 0.45);
}

.doc-sg-car-lab__tree button.is-chain {
  box-shadow: inset 0 0 0 1px rgba(46, 231, 242, 0.25);
}

.doc-sg-car-lab__tree button.is-nh-search-match {
  background: rgba(30, 70, 90, 0.42);
  border-color: rgba(0, 232, 255, 0.32);
  box-shadow: inset 0 0 0 1px rgba(0, 220, 255, 0.18);
}

.doc-sg-car-lab__viewport-cell {
  position: relative;
  min-height: 260px;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(ellipse 80% 70% at 50% 88%,
      rgba(40, 70, 120, 0.2) 0%,
      rgba(6, 8, 16, 0.96) 55%);
}

.doc-sg-car-lab__viewport-cell .doc-material-demo__viewport {
  position: absolute;
  inset: 0;
}

.doc-sg-car-lab__viewport-cell canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.doc-sg-car-lab__readout {
  margin-top: 0.35rem;
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  font-size: 0.68rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  color: rgba(185, 205, 235, 0.95);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.doc-sg-car-lab__readout strong {
  color: rgba(230, 240, 255, 0.98);
  font-weight: 700;
}

.doc-sg-car-lab__fp-banner {
  position: absolute;
  top: 0.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  max-width: calc(100% - 1rem);
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 230, 200, 0.95);
  background: rgba(35, 22, 10, 0.82);
  border: 1px solid rgba(255, 170, 90, 0.35);
  pointer-events: none;
  text-align: center;
}

.doc-sg-car-lab__fp-banner[hidden] {
  display: none;
}