/* DNA 风格预览选择器 */
.dna-style .hint { margin-bottom: 14px; }

.sp-picker { display: flex; flex-direction: column; gap: 16px; }

.sp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.sp-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px; border: 1.5px solid var(--border, #e4e4e7);
  border-radius: 12px; background: var(--card-bg, #fff);
  cursor: pointer; text-align: left; position: relative;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.sp-card:hover { border-color: var(--brand, #5e5ce6); transform: translateY(-1px); }
.sp-card-active {
  border-color: var(--brand, #5e5ce6);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand, #5e5ce6) 22%, transparent);
}

.sp-card-thumb {
  position: relative; overflow: hidden; border-radius: 8px;
  background: #f4f4f5; flex: none; align-self: center;
}
.sp-card-meta { display: flex; flex-direction: column; gap: 2px; padding: 0 2px; }
.sp-card-name { font-weight: 600; font-size: 14px; color: var(--text, #18181b); }
.sp-card-tag { font-size: 12px; color: var(--muted, #71717a); line-height: 1.4; }

.sp-card-badge {
  position: absolute; top: 8px; right: 8px;
  background: var(--brand, #5e5ce6); color: #fff;
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0,0,0,.18); max-width: 86%; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.sp-card-reco { border-color: var(--brand, #5e5ce6); }

/* 缩略图(scaled iframe 容器) */
.sp-thumb {
  position: relative; overflow: hidden; border-radius: 6px;
  background: #f4f4f5; flex: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.sp-thumb-frame { display: block; }
.sp-thumb-err {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--muted, #a1a1aa);
}
.sp-thumb-label {
  position: absolute; left: 6px; bottom: 6px;
  background: rgba(0,0,0,.6); color: #fff; font-size: 10px;
  padding: 1px 6px; border-radius: 4px; pointer-events: none;
}

/* 展开区: 选中 DNA 的 12 张 */
.sp-detail { }
.sp-detail-head { font-weight: 600; font-size: 13px; margin-bottom: 10px; color: var(--text, #18181b); }
.sp-detail-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 12px;
  max-height: 520px; overflow-y: auto; padding-right: 4px;
}

/* 皮肤切换器(展开区) */
.sp-skinbar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 0 14px; }
.sp-skin-label { font-size:12px; color:var(--muted,#71717a); margin-right:2px; }
.sp-skin-chip {
  display:inline-flex; align-items:center; gap:7px;
  padding:5px 11px 5px 8px; border:1px solid var(--border,#e4e4e7);
  border-radius:999px; background:var(--card-bg,#fff); cursor:pointer;
  font-size:12px; color:var(--text,#3f3f46); transition:border-color .15s, background .15s;
}
.sp-skin-chip:hover { border-color:var(--brand,#5e5ce6); }
.sp-skin-chip.on { border-color:var(--brand,#5e5ce6); background:color-mix(in srgb, var(--brand,#5e5ce6) 8%, transparent); font-weight:500; }
.sp-skin-dot { width:13px; height:13px; border-radius:50%; border:2px solid; display:inline-block; flex:none; }
