#studio-panel {
  position: fixed;
  left: 0;
  top: 0;
  width: 400px;
  height: 100vh;
  background: rgba(20, 20, 30, 0.98);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 2000;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
  color: white;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

body.studio-hide-ui #virtualController,
body.studio-hide-ui #toggleController,
body.studio-hide-ui #controlPanel,
body.studio-hide-ui #audioStatus,
body.studio-hide-ui #audioUnlockBtn,
body.studio-hide-ui #studio-panel,
body.studio-hide-ui #studio-toggle {
  display: none !important;
}

#studio-panel.open {
  transform: translateX(0);
}

#studio-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  right: auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 28px;
  cursor: pointer;
  z-index: 2001;
  transition: transform 0.2s ease;
}

#studio-toggle:hover {
  transform: scale(1.1);
}

body.studio-open #studio-toggle {
  left: auto;
  right: 20px;
}

.studio-tabs {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
}

.studio-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 14px;
}

.studio-tab.active {
  color: white;
  border-bottom: 3px solid #667eea;
}

.tab-content {
  padding: 20px;
  display: none;
}

.motion-grid,
.expression-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.motion-btn,
.expression-btn {
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.motion-btn:hover,
.expression-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.motion-btn.active,
.expression-btn.active {
  background: #667eea;
  border-color: #667eea;
}

.parameter-item {
  margin-bottom: 20px;
}

.parameter-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}

.parameter-slider {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.parameter-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #667eea;
  cursor: pointer;
}

.parameter-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #667eea;
  cursor: pointer;
  border: none;
}

.capture-btn {
  width: 100%;
  padding: 16px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.capture-btn:hover {
  transform: translateY(-2px);
}

.secondary-btn {
  transition: transform 0.2s ease;
}

.secondary-btn:hover {
  transform: translateY(-2px);
}

#studio-panel::-webkit-scrollbar {
  width: 8px;
}

#studio-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

#studio-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

#studio-panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}
