.controls {
  position: absolute;
  top: 200px;
  left: 50px;
  padding: 15px;
  border-radius: 12px;
  backdrop-filter: blur(0px);
  width: 260px;
  display: none;
  pointer-events: none;
  transition: background 0.2s ease, color 0.2s ease, width 0.2s ease, border-radius 0.2s ease, backdrop-filter 0.2s ease;
  background-color: rgba(var(--color-panel-bg-base), 0.90);
  color: var(--color-panel-text);
  max-height: 80vh;
  overflow: hidden;
}

.controls.open {
  pointer-events: auto;
}

.controls-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  cursor: grab;
}

.controls-header:active {
  cursor: grabbing;
}

.controls-content-wrapper {
  overflow-y: auto;
  max-height: calc(80vh - 100px);
  padding-right: 5px;
  margin-right: -5px;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: transparent transparent;
}

.controls-content-wrapper:hover {
  scrollbar-color: rgba(128, 128, 128, 0.4) transparent;
}

.controls-content-wrapper::-webkit-scrollbar {
  width: 4px;
}

.controls-content-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.controls-content-wrapper::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}

.controls-content-wrapper:hover::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.4);
}

.controls h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--color-panel-text);
}

.controls label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.85rem;
}