/* Holodepth — runtime merge lab: modüler hub + enerji modülü, sağ panel dört eylem */

.doc-multi-runtime-merge-lab {
  border-color: rgba(46, 231, 242, 0.2);
}

.doc-multi-runtime-merge-lab .doc-material-demo__tag {
  color: rgba(160, 230, 245, 0.95);
}

.doc-mm-lab__body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 280px;
}

.doc-multi-runtime-merge-lab .doc-mm-lab__body > .doc-material-demo__viewport-wrap {
  flex: 1;
  min-width: 0;
  min-height: 280px;
  isolation: isolate;
}

/* Merkeze çok hafif “ışık havuzu” (canvas üstü, düşük opaklık) */
.doc-multi-runtime-merge-lab .doc-mm-lab__body > .doc-material-demo__viewport-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 58% 52% at 50% 44%,
    rgba(70, 130, 175, 0.12) 0%,
    rgba(30, 70, 100, 0.04) 42%,
    transparent 68%
  );
}

/* Kenarlara çok hafif vignette */
.doc-multi-runtime-merge-lab .doc-mm-lab__body > .doc-material-demo__viewport-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse 82% 76% at 50% 42%,
    transparent 24%,
    rgba(2, 5, 12, 0.16) 58%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.doc-mm-lab__panel {
  flex: 0 0 156px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.7rem 0.72rem 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 12, 22, 0.72);
  justify-content: center;
}

.doc-mm-lab__panel .doc-mm-lab__btn {
  width: 100%;
  text-align: center;
  padding: 0.48rem 0.55rem 0.52rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.doc-mm-lab__status {
  font-size: 0.68rem;
  color: rgba(160, 220, 200, 0.9);
  font-family: var(--font-mono, ui-monospace, monospace);
}

.doc-mm-lab__status--error {
  color: rgba(255, 160, 150, 0.95);
}

.doc-mm-lab__disclosure {
  margin: 0;
  padding: 0.65rem 0.85rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 10, 18, 0.75);
}

.doc-mm-lab__disclosure-text {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(165, 180, 210, 0.88);
}

@media (max-width: 640px) {
  .doc-mm-lab__body {
    flex-direction: column;
    min-height: 0;
  }

  .doc-mm-lab__panel {
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    justify-content: flex-start;
  }

  .doc-mm-lab__panel .doc-mm-lab__btn {
    flex: 1 1 42%;
    min-width: 8rem;
  }
}

.doc-mm-lab__btn {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  padding: 0.38rem 0.85rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(100, 130, 155, 0.32);
  background: linear-gradient(
    165deg,
    rgba(32, 38, 52, 0.96) 0%,
    rgba(16, 20, 32, 0.98) 50%,
    rgba(8, 10, 18, 0.99) 100%
  );
  color: rgba(232, 242, 255, 0.96);
  font-weight: 600;
  cursor: pointer;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 -1px 0 rgba(0, 0, 0, 0.45) inset,
    0 2px 0 rgba(0, 0, 0, 0.22),
    0 6px 14px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(0, 0, 0, 0.35) inset;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.18s ease,
    box-shadow 0.22s ease,
    transform 0.18s ease;
}

/* Add — soğuk turkuaz / cam koyusu */
.doc-mm-lab__btn--add {
  border-color: rgba(72, 188, 208, 0.38);
  background: linear-gradient(
    165deg,
    rgba(28, 52, 64, 0.98) 0%,
    rgba(12, 32, 44, 0.99) 48%,
    rgba(6, 18, 28, 1) 100%
  );
}

.doc-mm-lab__btn--add:hover:not(:disabled) {
  border-color: rgba(80, 220, 238, 0.58);
  background: linear-gradient(
    165deg,
    rgba(34, 64, 78, 0.99) 0%,
    rgba(14, 42, 56, 1) 50%,
    rgba(8, 24, 36, 1) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 -1px 0 rgba(0, 0, 0, 0.4) inset,
    0 0 0 1px rgba(46, 220, 235, 0.14) inset,
    0 2px 0 rgba(0, 0, 0, 0.18),
    0 8px 20px rgba(0, 0, 0, 0.38),
    0 0 22px rgba(40, 200, 220, 0.12);
  transform: translateY(-1px);
}

/* Remove — nötr slate */
.doc-mm-lab__btn--remove {
  border-color: rgba(118, 138, 168, 0.34);
  background: linear-gradient(
    165deg,
    rgba(40, 46, 62, 0.98) 0%,
    rgba(22, 26, 40, 0.99) 48%,
    rgba(10, 12, 22, 1) 100%
  );
}

.doc-mm-lab__btn--remove:hover:not(:disabled) {
  border-color: rgba(150, 170, 205, 0.48);
  background: linear-gradient(
    165deg,
    rgba(48, 54, 74, 0.99) 0%,
    rgba(26, 30, 48, 1) 50%,
    rgba(12, 14, 26, 1) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.11) inset,
    0 -1px 0 rgba(0, 0, 0, 0.4) inset,
    0 0 0 1px rgba(130, 155, 195, 0.12) inset,
    0 2px 0 rgba(0, 0, 0, 0.18),
    0 8px 20px rgba(0, 0, 0, 0.38),
    0 0 20px rgba(100, 130, 175, 0.08);
  transform: translateY(-1px);
}

/* Attach — derin indigo */
.doc-mm-lab__btn--attach {
  border-color: rgba(92, 118, 210, 0.38);
  background: linear-gradient(
    165deg,
    rgba(34, 38, 72, 0.98) 0%,
    rgba(16, 18, 48, 0.99) 48%,
    rgba(8, 8, 26, 1) 100%
  );
}

.doc-mm-lab__btn--attach:hover:not(:disabled) {
  border-color: rgba(120, 145, 235, 0.52);
  background: linear-gradient(
    165deg,
    rgba(42, 46, 88, 0.99) 0%,
    rgba(20, 22, 58, 1) 50%,
    rgba(10, 10, 32, 1) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.11) inset,
    0 -1px 0 rgba(0, 0, 0, 0.4) inset,
    0 0 0 1px rgba(100, 130, 230, 0.14) inset,
    0 2px 0 rgba(0, 0, 0, 0.18),
    0 8px 20px rgba(0, 0, 0, 0.38),
    0 0 24px rgba(90, 120, 220, 0.12);
  transform: translateY(-1px);
}

/* Detach — sıcak kömür (dikkat, aynı 3B dil) */
.doc-mm-lab__btn--detach {
  border-color: rgba(168, 128, 88, 0.32);
  background: linear-gradient(
    165deg,
    rgba(52, 40, 34, 0.98) 0%,
    rgba(30, 22, 18, 0.99) 48%,
    rgba(14, 10, 8, 1) 100%
  );
}

.doc-mm-lab__btn--detach:hover:not(:disabled) {
  border-color: rgba(205, 155, 105, 0.42);
  background: linear-gradient(
    165deg,
    rgba(62, 48, 38, 0.99) 0%,
    rgba(36, 26, 20, 1) 50%,
    rgba(18, 12, 9, 1) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 -1px 0 rgba(0, 0, 0, 0.42) inset,
    0 0 0 1px rgba(200, 140, 80, 0.1) inset,
    0 2px 0 rgba(0, 0, 0, 0.18),
    0 8px 20px rgba(0, 0, 0, 0.38),
    0 0 22px rgba(180, 120, 70, 0.1);
  transform: translateY(-1px);
}

.doc-mm-lab__btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.25) inset,
    0 2px 4px rgba(0, 0, 0, 0.35) inset,
    0 1px 2px rgba(0, 0, 0, 0.2);
  transition-duration: 0.08s;
}

.doc-mm-lab__btn:focus-visible {
  outline: none;
  border-color: rgba(46, 231, 242, 0.65);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 -1px 0 rgba(0, 0, 0, 0.45) inset,
    0 0 0 2px rgba(8, 12, 22, 0.95),
    0 0 0 4px rgba(46, 231, 242, 0.35);
}

.doc-mm-lab__btn:disabled {
  opacity: 1;
  cursor: not-allowed;
  text-shadow: none;
  transform: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 3px 10px rgba(0, 0, 0, 0.28) inset,
    0 1px 2px rgba(0, 0, 0, 0.12);
}

.doc-mm-lab__btn--add:disabled {
  color: rgba(110, 150, 160, 0.38);
  border-color: rgba(50, 95, 105, 0.22);
  background: linear-gradient(
    180deg,
    rgba(14, 26, 32, 0.72) 0%,
    rgba(8, 16, 22, 0.82) 100%
  );
}

.doc-mm-lab__btn--remove:disabled {
  color: rgba(115, 125, 145, 0.38);
  border-color: rgba(55, 62, 78, 0.22);
  background: linear-gradient(
    180deg,
    rgba(18, 20, 30, 0.72) 0%,
    rgba(10, 11, 18, 0.82) 100%
  );
}

.doc-mm-lab__btn--attach:disabled {
  color: rgba(105, 115, 155, 0.38);
  border-color: rgba(42, 48, 78, 0.22);
  background: linear-gradient(
    180deg,
    rgba(16, 18, 36, 0.74) 0%,
    rgba(8, 9, 20, 0.84) 100%
  );
}

.doc-mm-lab__btn--detach:disabled {
  color: rgba(130, 115, 105, 0.36);
  border-color: rgba(62, 48, 38, 0.2);
  background: linear-gradient(
    180deg,
    rgba(22, 16, 14, 0.72) 0%,
    rgba(12, 9, 8, 0.82) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .doc-mm-lab__btn {
    transition-duration: 0.01ms;
  }

  .doc-mm-lab__panel .doc-mm-lab__btn:hover:not(:disabled) {
    transform: none;
  }
}
