/* ===== Build ===== */
#view-build > header .build-meta {
  color: #d8c8a8;
  font-size: 14px;
}

#view-build > header .build-hint {
  color: #ffcc88;
  background: rgba(255, 170, 51, 0.08);
  border-left: 3px solid var(--accent);
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  margin-top: 10px;
}

#view-build .panel {
  background: linear-gradient(180deg, #1a1e30 0%, #141829 100%);
  border: 1px solid #2a3048;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

#view-build .panel h3 {
  color: #ffeebb;
  border-bottom: 1px solid #2a3048;
  padding-bottom: 8px;
}

#preview-canvas {
  box-shadow: inset 0 0 24px rgba(0,0,0,0.6), 0 0 0 1px #2a3048;
  background:
    radial-gradient(circle at 50% 75%, rgba(255,170,51,0.08) 0%, transparent 35%),
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04) 0%, transparent 25%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.03) 0%, transparent 20%),
    linear-gradient(180deg, #05070c 0%, #0b0d14 60%, #111525 100%);
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
}

.preview-panel {
  position: relative;
}

.preview-panel::after {
  content: '';
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 6px;
  border-radius: 3px;
  background: #2a3048;
  box-shadow: 0 0 12px rgba(255,170,51,0.2);
  pointer-events: none;
}

.library-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1f2438;
  border: 1px solid #2a3048;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-base), transform var(--transition-fast), border-color var(--transition-base), box-shadow var(--transition-base);
}

.library-item:hover {
  background: #2a3050;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.library-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.library-item .item-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.library-item.active,
.library-item.selected {
  border-color: var(--accent);
  background: rgba(255, 170, 51, 0.1);
}

.library-item.locked {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.8);
}

.library-item.locked:hover {
  background: #1f2438;
  transform: none;
  box-shadow: none;
}

.show-panel {
  background: linear-gradient(180deg, #121521 0%, #0d101c 100%);
  border: 1px solid #2a3048;
}

.show-panel h3 {
  color: #ffeebb;
}

#view-build {
  overflow: hidden;
}

#view-build > header {
  flex-shrink: 0;
}

#view-build .build-layout {
  flex: 1;
  min-height: 0;
  height: 100%;
  align-items: stretch;
  grid-template-rows: minmax(0, 1fr);
}

#view-build .panel {
  min-height: 0;
  overflow-y: auto;
}

#view-build .preview-panel {
  overflow-y: auto;
}

