/* Compact two-column studio dashboard (fits 1366x768 without scrolling) */

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 767px) {
  .studio-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Left column: color picker */

.color-picker h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0.75rem 0 0.5rem;
}

.color-picker h3:first-child { margin-top: 0; }

.swatch-scroll {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 6px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.swatch-scroll::-webkit-scrollbar { width: 6px; }
.swatch-scroll::-webkit-scrollbar-track { background: transparent; }
.swatch-scroll::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}
.swatch-scroll { scrollbar-width: thin; scrollbar-color: #444 transparent; }

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 8px;
}

.swatch-btn {
  width: 40px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.swatch-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.swatch-btn.selected {
  border-color: #fff;
  box-shadow: 0 0 0 3px #7c3aed, 0 4px 14px rgba(0, 0, 0, 0.3);
}

.color-name {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  min-height: 1.3em;
}

@media (prefers-reduced-motion: reduce) {
  .swatch-btn { transition: none; }
}
