.world-seed-lab {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.wsl-header {
  text-align: center;
  margin-bottom: 30px;
}

.wsl-header h2 {
  color: var(--primary-color, #4a90a4);
  margin-bottom: 8px;
}

.wsl-subtitle {
  color: var(--text-muted, #888);
  font-size: 0.95rem;
}

.wsl-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .wsl-layout {
    grid-template-columns: 1fr;
  }
}

.wsl-seeds-panel {
  background: var(--card-bg, #1e1e2e);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border-color, #333);
}

.wsl-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.wsl-panel-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.wsl-seed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 500px;
  overflow-y: auto;
}

.wsl-seed-item {
  padding: 12px;
  background: var(--input-bg, #252535);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.wsl-seed-item:hover {
  background: var(--hover-bg, #303045);
}

.wsl-seed-item.selected {
  border-color: var(--primary-color, #4a90a4);
  background: var(--hover-bg, #303045);
}

.wsl-seed-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.wsl-seed-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted, #888);
}

.wsl-detail-panel {
  background: var(--card-bg, #1e1e2e);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-color, #333);
  min-height: 400px;
}

.wsl-empty-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  text-align: center;
  color: var(--text-muted, #888);
}

.wsl-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.wsl-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color, #333);
}

.wsl-detail-header h3 {
  margin: 0;
  color: var(--primary-color, #4a90a4);
}

.wsl-detail-section {
  margin-bottom: 20px;
}

.wsl-detail-section h4 {
  font-size: 0.9rem;
  color: var(--text-muted, #888);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wsl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wsl-tag {
  background: var(--primary-color-dim, #2a4a5a);
  color: var(--primary-color, #4a90a4);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.wsl-generate-section {
  background: var(--input-bg, #252535);
  padding: 16px;
  border-radius: 8px;
}

.wsl-generate-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wsl-generate-controls label {
  font-size: 0.9rem;
}

.wsl-generate-controls select {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color, #333);
  background: var(--card-bg, #1e1e2e);
  color: inherit;
}

.wsl-packs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wsl-pack-item {
  background: var(--input-bg, #252535);
  padding: 14px;
  border-radius: 8px;
  border-left: 3px solid var(--accent-color, #8b5cf6);
}

.wsl-pack-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.wsl-pack-name {
  font-weight: 600;
  color: var(--accent-color, #8b5cf6);
}

.wsl-pack-desc {
  font-size: 0.9rem;
  color: var(--text-muted, #888);
  margin-bottom: 10px;
}

.wsl-pack-preview {
  font-size: 0.85rem;
  background: var(--card-bg, #1e1e2e);
  padding: 10px;
  border-radius: 6px;
}

.wsl-pack-preview ul {
  margin: 6px 0 0 16px;
  padding: 0;
}

.wsl-pack-preview li {
  margin-bottom: 4px;
}

.wsl-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.wsl-modal-content {
  background: var(--card-bg, #1e1e2e);
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.wsl-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.wsl-modal-header h3 {
  margin: 0;
}

.wsl-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted, #888);
  cursor: pointer;
}

.wsl-close-btn:hover {
  color: var(--text-color, #fff);
}

.wsl-form-group {
  margin-bottom: 16px;
}

.wsl-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
}

.wsl-form-group input,
.wsl-form-group textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color, #333);
  background: var(--input-bg, #252535);
  color: inherit;
  font-size: 0.95rem;
}

.wsl-form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.wsl-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  max-height: 150px;
  overflow-y: auto;
  padding: 8px;
  background: var(--input-bg, #252535);
  border-radius: 6px;
}

.wsl-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

.wsl-checkbox input {
  width: auto;
}

.wsl-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.wsl-empty {
  text-align: center;
  color: var(--text-muted, #888);
  padding: 20px;
  font-style: italic;
}

.btn-xs {
  padding: 2px 8px;
  font-size: 0.75rem;
}
