/* Build */
.build-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #d8c8a8;
  font-size: 13px;
  margin-bottom: 10px;
}

.build-meta > span {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,238,187,0.12);
  border-radius: 6px;
  padding: 4px 10px;
}

.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;
  font-size: 13px;
  line-height: 1.5;
}

.build-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .build-layout { grid-template-columns: 1fr; }
  .hub-actions { grid-template-columns: 1fr; }
  .build-meta { font-size: 13px; gap: 10px; }
  .slot-options { gap: 8px; }
  .slot-btn { padding: 10px 12px; font-size: 14px; min-height: 42px; flex: 1 1 calc(50% - 8px); }
  .recipe-btn { padding: 12px; font-size: 14px; }
  .show-item { padding: 10px; font-size: 14px; }
  .build-actions { flex-direction: column; }
  .build-actions .btn { width: 100%; padding: 12px; }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.panel h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 16px;
}

.recipe-grid {
  display: grid;
  gap: 8px;
}

.assembly-grid {
  display: grid;
  gap: 12px;
}

.assembly-slot label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slot-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.slot-btn {
  background: #1f2438;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  min-height: 36px;
}

.slot-btn:hover {
  background: #2a3050;
}

.slot-btn.selected {
  background: var(--accent);
  color: #1a1200;
  border-color: var(--accent);
  font-weight: 600;
}

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

.assembly-preview {
  margin-top: 16px;
  padding: 12px;
  background: #0d101c;
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
}

.assembly-preview .preview-title {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 6px;
}

.assembly-preview .preview-cost {
  color: var(--warn);
  font-weight: 600;
}

.recipe-bonus-tag {
  display: inline-block;
  background: var(--success);
  color: #051a0f;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
}

.recipe-btn {
  display: flex;
  justify-content: space-between;
  background: #1f2438;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.recipe-btn:hover { background: #2a3050; }

.recipe-btn .cost { color: var(--warn); }

.show-list {
  min-height: 120px;
  background: #0d101c;
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 12px;
}

.empty-show {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 24px 8px;
  margin: 0;
}

.show-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #1f2438 0%, #1a1e30 100%);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 6px;
  animation: show-item-enter var(--transition-base) ease both;
}

.show-item.leaving {
  animation: show-item-leave var(--transition-base) ease both;
}

@keyframes show-item-enter {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes show-item-leave {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(12px); height: 0; padding: 0; margin: 0; }
}

.show-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.show-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}

.show-item button {
  background: transparent;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.build-summary {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.validation-msg {
  min-height: 20px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.validation-msg.invalid {
  color: var(--danger);
}

.build-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

