/* Holodepth — texture-size: Resolution vs Bitrate öğretici lab */

.doc-ts-lab {
  border-color: rgba(180, 140, 255, 0.22);
}

.doc-ts-lab .doc-material-demo__tag {
  color: rgba(200, 175, 255, 0.92);
}

.doc-ts-lab__badge {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(40, 24, 60, 0.55);
  color: rgba(220, 200, 255, 0.88);
}

.doc-ts-lab .doc-material-demo__hud {
  padding: 0.75rem 0.9rem 0.85rem;
}

.doc-ts-lab__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  width: 100%;
  align-items: stretch;
}

.doc-ts-lab__body {
  display: grid;
  grid-template-columns: minmax(13.5rem, 1fr) minmax(0, 2.1fr);
  gap: 0;
  align-items: stretch;
}

.doc-ts-lab--guided-step0 .doc-ts-lab__body {
  grid-template-columns: 1fr;
}

.doc-ts-lab--guided-step0 .doc-ts-lab__side {
  display: none;
}

.doc-ts-lab--guided-step1 [data-ts-lab-side-main] {
  display: none;
}

.doc-ts-lab--guided-step1 .doc-ts-lab__side {
  padding-top: 0.35rem;
}

@media (max-width: 820px) {
  .doc-ts-lab__body {
    grid-template-columns: 1fr;
  }

  .doc-ts-lab--guided-step0 .doc-ts-lab__body {
    grid-template-columns: 1fr;
  }
}

.doc-ts-lab__side {
  padding: 0.75rem 0.85rem 0.85rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 8, 16, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (max-width: 820px) {
  .doc-ts-lab__side {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

.doc-ts-lab__fieldset {
  margin: 0;
  padding: 0.55rem 0.65rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 8, 18, 0.42);
}

.doc-ts-lab__fieldset:disabled {
  opacity: 0.52;
}

.doc-ts-lab__fieldset legend {
  padding: 0 0.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(170, 195, 235, 0.9);
}

.doc-ts-lab__fieldset label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.28rem 0 0;
  font-size: 0.74rem;
  color: rgba(185, 200, 225, 0.92);
  cursor: pointer;
}

.doc-ts-lab__fieldset label span {
  flex: 1;
}

.doc-ts-lab__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.doc-ts-lab__presets button {
  flex: 1 1 auto;
  min-width: 8.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(180, 140, 255, 0.28);
  background: rgba(30, 18, 48, 0.55);
  color: rgba(230, 215, 255, 0.95);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.doc-ts-lab__presets button:hover {
  border-color: rgba(200, 170, 255, 0.45);
  background: rgba(42, 28, 64, 0.65);
}

.doc-ts-lab__presets button:focus-visible {
  outline: 2px solid rgba(46, 231, 242, 0.55);
  outline-offset: 2px;
}

.doc-ts-lab__stats {
  margin: 0.15rem 0 0;
  padding: 0.55rem 0.6rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(94, 200, 255, 0.14);
  background: rgba(4, 10, 22, 0.5);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.28rem 0.65rem;
  font-size: 0.7rem;
}

.doc-ts-lab__stats dt {
  margin: 0;
  color: rgba(140, 165, 200, 0.85);
  font-weight: 600;
}

.doc-ts-lab__stats dd {
  margin: 0;
  font-family: var(--font-mono, ui-monospace, monospace);
  color: rgba(210, 225, 248, 0.95);
  text-align: right;
  word-break: break-word;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.doc-ts-lab__stats dd.doc-ts-lab__stat-dd--flash-disk-up,
.doc-ts-lab__stats dd.doc-ts-lab__stat-dd--flash-disk-down,
.doc-ts-lab__stats dd.doc-ts-lab__stat-dd--flash-vram-cost,
.doc-ts-lab__stats dd.doc-ts-lab__stat-dd--flash-vram-save {
  position: relative;
  border-radius: 4px;
}

.doc-ts-lab__stats dd.doc-ts-lab__stat-dd--flash-disk-up::after,
.doc-ts-lab__stats dd.doc-ts-lab__stat-dd--flash-disk-down::after,
.doc-ts-lab__stats dd.doc-ts-lab__stat-dd--flash-vram-cost::after,
.doc-ts-lab__stats dd.doc-ts-lab__stat-dd--flash-vram-save::after {
  content: " " attr(data-ts-flash-delta);
  margin-left: 0.15em;
  font-size: 0.78em;
  font-weight: 700;
  white-space: nowrap;
}

.doc-ts-lab__stats dd.doc-ts-lab__stat-dd--flash-disk-up::after,
.doc-ts-lab__stats dd.doc-ts-lab__stat-dd--flash-disk-down::after {
  color: rgba(140, 220, 255, 0.98);
}

.doc-ts-lab__stats dd.doc-ts-lab__stat-dd--flash-vram-cost::after {
  color: rgba(255, 170, 140, 0.98);
}

.doc-ts-lab__stats dd.doc-ts-lab__stat-dd--flash-vram-save::after {
  color: rgba(120, 255, 195, 0.96);
}

.doc-ts-lab__stats dd.doc-ts-lab__stat-dd--flash-disk-up {
  animation: doc-ts-stat-flash-disk-up 1.45s ease-out;
}

.doc-ts-lab__stats dd.doc-ts-lab__stat-dd--flash-disk-down {
  animation: doc-ts-stat-flash-disk-down 1.45s ease-out;
}

.doc-ts-lab__stats dd.doc-ts-lab__stat-dd--flash-vram-cost {
  animation: doc-ts-stat-flash-vram-cost 1.15s ease-out;
}

.doc-ts-lab__stats dd.doc-ts-lab__stat-dd--flash-vram-save {
  animation: doc-ts-stat-flash-vram-save 1.15s ease-out;
}

@keyframes doc-ts-stat-flash-disk-up {
  0% {
    background-color: rgba(60, 140, 255, 0.32);
    box-shadow: inset 0 0 0 1px rgba(120, 190, 255, 0.5);
  }
  55% {
    background-color: rgba(60, 140, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(120, 190, 255, 0.22);
  }
  100% {
    background-color: transparent;
    box-shadow: none;
  }
}

@keyframes doc-ts-stat-flash-disk-down {
  0% {
    background-color: rgba(120, 90, 255, 0.26);
    box-shadow: inset 0 0 0 1px rgba(160, 130, 255, 0.42);
  }
  55% {
    background-color: rgba(120, 90, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(160, 130, 255, 0.18);
  }
  100% {
    background-color: transparent;
    box-shadow: none;
  }
}

@keyframes doc-ts-stat-flash-vram-cost {
  0% {
    background-color: rgba(255, 72, 56, 0.32);
    box-shadow: inset 0 0 0 1px rgba(255, 120, 100, 0.45);
  }
  55% {
    background-color: rgba(255, 72, 56, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 120, 100, 0.2);
  }
  100% {
    background-color: transparent;
    box-shadow: none;
  }
}

@keyframes doc-ts-stat-flash-vram-save {
  0% {
    background-color: rgba(46, 200, 130, 0.28);
    box-shadow: inset 0 0 0 1px rgba(80, 220, 160, 0.4);
  }
  55% {
    background-color: rgba(46, 200, 130, 0.1);
    box-shadow: inset 0 0 0 1px rgba(80, 220, 160, 0.18);
  }
  100% {
    background-color: transparent;
    box-shadow: none;
  }
}

.doc-ts-lab__q-ico {
  font-size: 0.85em;
  line-height: 1;
  vertical-align: -0.08em;
}

.doc-ts-lab__q-txt {
  font-weight: 500;
}

.doc-ts-lab__micro-hint {
  margin: 0.45rem 0 0;
  padding: 0.42rem 0.5rem 0.48rem;
  border-radius: 8px;
  border-left: 3px solid rgba(46, 231, 242, 0.45);
  background: rgba(8, 22, 38, 0.55);
  font-size: 0.66rem;
  line-height: 1.48;
  color: rgba(165, 195, 230, 0.92);
}

.doc-ts-lab__viewport-wrap,
.doc-ts-lab__viewport-stack {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 280px;
  height: 100%;
  background: radial-gradient(
    ellipse 88% 78% at 50% 100%,
    rgba(60, 40, 100, 0.25) 0%,
    rgba(6, 8, 16, 0.98) 58%
  );
}

.doc-ts-lab--split-view .doc-ts-lab__viewport-stack {
  aspect-ratio: unset;
  min-height: min(68vh, 640px);
  flex: 1 1 auto;
}

.doc-ts-lab--split-view .doc-ts-lab__viewport-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.doc-ts-lab__single-host,
.doc-ts-lab__split-host {
  position: absolute;
  inset: 0;
}

.doc-ts-lab__split-host {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.4rem;
  align-items: stretch;
  justify-content: stretch;
}

.doc-ts-lab__split-host[hidden] {
  display: none !important;
}

.doc-ts-lab__split-pane {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
  min-height: 0;
  flex: 1 1 0;
}

.doc-ts-lab__split-label {
  flex: 0 0 auto;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(170, 195, 235, 0.88);
  text-align: center;
}

.doc-ts-lab__split-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 8, 16, 0.35);
  overflow: hidden;
}

.doc-ts-lab__viewport-inner.doc-material-demo__viewport {
  position: absolute;
  inset: 0;
}

.doc-ts-lab__viewport-inner.doc-material-demo__viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.doc-ts-lab__viewport-col {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  flex: 1 1 auto;
  background: radial-gradient(
    ellipse 88% 78% at 50% 100%,
    rgba(60, 40, 100, 0.18) 0%,
    rgba(6, 8, 16, 0.98) 58%
  );
}

.doc-ts-lab__mode {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  padding: 0.42rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 8, 18, 0.45);
}

.doc-ts-lab__mode-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(140, 165, 200, 0.82);
}

.doc-ts-lab__mode-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.2rem 0.42rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 22, 38, 0.55);
  cursor: pointer;
  font-size: 0.72rem;
  color: rgba(200, 215, 240, 0.95);
}

.doc-ts-lab__mode-opt:has(input:checked) {
  border-color: rgba(46, 231, 242, 0.42);
  background: rgba(18, 48, 58, 0.5);
}

.doc-ts-lab__guided {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  padding: 0.48rem 0.52rem;
  border-radius: 8px;
  border: 1px solid rgba(180, 140, 255, 0.22);
  background: rgba(28, 18, 48, 0.38);
}

.doc-ts-lab__guided-msg {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.5;
  color: rgba(215, 220, 250, 0.96);
}

.doc-ts-lab__guided-msg p {
  margin: 0 0 0.4rem;
}

.doc-ts-lab__guided-msg p:last-child {
  margin-bottom: 0;
}

.doc-ts-lab__guided-lead {
  font-size: 0.78rem;
  margin-bottom: 0.35rem !important;
}

.doc-ts-lab__guided-sub {
  color: rgba(200, 210, 240, 0.94);
}

.doc-ts-lab__guided-list {
  margin: 0.35rem 0 0.45rem;
  padding-left: 1.1rem;
  color: rgba(210, 220, 250, 0.96);
}

.doc-ts-lab__guided-list li {
  margin: 0.22rem 0;
}

.doc-ts-lab__guided-footnote {
  font-size: 0.68rem;
  line-height: 1.45;
  color: rgba(150, 175, 215, 0.88);
  margin-top: 0.35rem !important;
}

.doc-ts-lab__guided-cta-wrap {
  margin: 0.55rem 0 0 !important;
}

.doc-ts-lab__guided-free-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(46, 231, 242, 0.38);
  background: rgba(14, 42, 52, 0.55);
  color: rgba(210, 248, 255, 0.98);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.doc-ts-lab__guided-free-cta:hover {
  border-color: rgba(46, 231, 242, 0.55);
  background: rgba(18, 52, 62, 0.68);
}

.doc-ts-lab__guided-free-cta:focus-visible {
  outline: 2px solid rgba(46, 231, 242, 0.55);
  outline-offset: 2px;
}

.doc-ts-lab__split-toggle--guided-extra {
  margin-top: 0.15rem;
}

.doc-ts-lab__guided-next {
  align-self: flex-start;
  padding: 0.38rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(46, 231, 242, 0.35);
  background: rgba(12, 40, 48, 0.55);
  color: rgba(210, 248, 255, 0.96);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.doc-ts-lab__guided-next:hover {
  border-color: rgba(46, 231, 242, 0.55);
  background: rgba(16, 52, 62, 0.65);
}

.doc-ts-lab__guided-next:focus-visible {
  outline: 2px solid rgba(46, 231, 242, 0.55);
  outline-offset: 2px;
}

.doc-ts-lab__toast {
  margin: 0;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  font-size: 0.68rem;
  line-height: 1.45;
  color: rgba(255, 235, 200, 0.95);
  border: 1px solid rgba(255, 200, 120, 0.35);
  background: rgba(48, 36, 16, 0.65);
}

.doc-ts-lab__split-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  line-height: 1.4;
  color: rgba(185, 200, 225, 0.92);
  cursor: pointer;
}

.doc-ts-lab__split-toggle input {
  margin-top: 0.12rem;
  flex-shrink: 0;
}

.doc-ts-lab__advanced {
  margin-top: 0.35rem;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 8, 18, 0.28);
}

.doc-ts-lab__advanced > summary {
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(170, 190, 230, 0.95);
  list-style: none;
}

.doc-ts-lab__advanced > summary::-webkit-details-marker {
  display: none;
}

.doc-ts-lab__advanced[open] > summary {
  margin-bottom: 0.45rem;
}

.doc-ts-lab__advanced .doc-ts-lab__fieldset {
  margin-top: 0.35rem;
}

.doc-ts-lab__stat-split-wrap {
  margin-top: 0.45rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(94, 200, 255, 0.16);
  background: rgba(4, 12, 28, 0.45);
}

.doc-ts-lab__stat-split-wrap[hidden] {
  display: none !important;
}

.doc-ts-lab__stat-split-title {
  margin: 0 0 0.25rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(140, 165, 200, 0.88);
}

.doc-ts-lab__stat-split-body {
  margin: 0;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  line-height: 1.45;
  color: rgba(210, 225, 248, 0.95);
  word-break: break-word;
}

.doc-ts-lab__hint {
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.45;
  color: rgba(150, 170, 205, 0.82);
}
