* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, sans-serif;
  background: #fff;
  color: #333;
}

#main {
  display: flex;
  height: 100vh;
}

#viewer-container {
  position: relative;
  flex: 2;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

#canvas-viewer {
  --size: min(60vw, 90vh);
  display: block;
  width: var(--size);
  height: var(--size);
}

#controls {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  border-left: 1px solid #eee;
}

#controls h2 {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin-bottom: 10px;
}

#ring-buttons,
#accent-buttons {
  display: flex;
  gap: 10px;
}

.ring-btn,
.accent-btn,
.head-btn {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  background: #f5f5f5;
  color: #666;
  text-align: left;
  transition: all 0.15s ease;
}

.ring-btn,
.accent-btn {
  flex: 1;
}

.ring-btn:hover,
.accent-btn:hover,
.head-btn:hover {
  background: #eee;
}

.ring-btn.active,
.accent-btn.active,
.head-btn.active {
  background: #333;
  color: #fff;
  border-color: #333;
}

.accent-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#pose-buttons {
  display: flex;
  gap: 10px;
}

.pose-btn {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  background: #f5f5f5;
  color: #666;
  transition: all 0.15s ease;
}

.pose-btn:hover {
  background: #eee;
}

.pose-btn.active {
  background: #333;
  color: #fff;
  border-color: #333;
}
