.depth-study {
  background: #f7efe7;
  cursor: crosshair;
}

.depth-study__layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.depth-study__map {
  filter: invert(1);
}

.depth-study[data-mode="photo"] .depth-study__photo,
.depth-study[data-mode="depth"] .depth-study__map {
  opacity: 1;
}

.depth-study[data-mode="photo"] .particle-study__canvas,
.depth-study[data-mode="depth"] .particle-study__canvas {
  opacity: 0;
}

.depth-study .particle-study__canvas {
  position: relative;
  z-index: 0;
  transition: opacity 180ms ease;
}

.depth-study .particle-study__status {
  z-index: 3;
}

.depth-panel {
  z-index: 4;
  width: 430px;
  cursor: default;
}

.depth-panel__switches {
  margin-top: 12px;
}

.depth-panel__switches > span {
  display: block;
  color: rgb(37 31 27 / 45%);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.depth-panel__switches .particle-panel__modes {
  margin-top: 6px;
}

.depth-panel__group {
  margin-top: 12px;
  border-top: 1px solid rgb(37 31 27 / 11%);
}

.depth-panel__group > summary {
  padding: 12px 2px 0;
  color: rgb(37 31 27 / 62%);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  list-style-position: outside;
}

.depth-panel__group:not([open]) > summary {
  padding-bottom: 2px;
}

.depth-panel__group .particle-panel__controls {
  gap: 11px;
  margin-top: 12px;
}

.depth-panel .particle-control > span:first-child,
.depth-panel .particle-control input[type="number"] {
  font-size: 11px;
}

.depth-panel .particle-control__inputs {
  grid-template-columns: 1fr 66px;
}

.depth-panel .particle-control input[type="number"] {
  width: 66px;
}

.depth-panel__footer {
  grid-template-columns: 1fr 0.8fr 0.8fr;
}

.depth-study[data-motion="paused"] {
  cursor: default;
}

@media (max-width: 520px) {
  .depth-panel {
    width: calc(100vw - 24px);
  }
}
