.cg-composer-dna-block {
  margin: 32px 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.cg-dna-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 22px;
}

.cg-dna-eyebrow {
  margin: 0 0 8px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cg-dna-title {
  max-width: 820px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.cg-dna-desc {
  max-width: 820px;
  margin: 12px 0 0;
  color: #475569;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.65;
}

.cg-dna-scale-note {
  width: min(260px, 100%);
  padding: 14px 16px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 18px;
  background: rgba(240, 253, 250, 0.84);
  color: #334155;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.cg-dna-scale-note strong,
.cg-dna-scale-note span {
  display: block;
}

.cg-dna-scale-note strong {
  color: #0f766e;
  font-size: 14px;
}

.cg-dna-scale-note span {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
}

.cg-dna-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.cg-dna-chart-card,
.cg-dna-side,
.cg-dna-summary-card,
.cg-dna-evidence-shell {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.cg-dna-chart-card {
  position: relative;
  min-height: 560px;
  padding: clamp(14px, 2vw, 24px);
}

.cg-dna-chart-card canvas {
  display: block;
  width: 100% !important;
  height: 520px !important;
  max-height: 62vh;
}

.cg-dna-side {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
  grid-template-areas:
    "summary legend"
    "evidence evidence";
  gap: 18px;
  padding: 18px;
}

.cg-dna-summary,
.cg-dna-artist-list,
.cg-dna-evidence-box,
.cg-dna-evidence-list,
.cg-dna-evidence-item {
  min-width: 0;
}

.cg-dna-summary {
  grid-area: summary;
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}

.cg-dna-summary-card {
  padding: 16px;
}

.cg-dna-summary-topline {
  margin-bottom: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cg-dna-summary-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.cg-dna-summary-card p {
  display: -webkit-box;
  margin: 10px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.cg-dna-top-axis-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.cg-dna-top-axis {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 13px;
  background: #f8fafc;
}

.cg-dna-top-axis span {
  min-width: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cg-dna-top-axis strong {
  color: #0f766e;
  font-size: 13px;
  font-weight: 950;
}

.cg-dna-artist-list {
  grid-area: legend;
  display: grid;
  align-content: start;
  gap: 10px;
  margin-bottom: 0;
  min-width: 0;
}

.cg-dna-artist-chip {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #fff;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.cg-dna-artist-chip:hover,
.cg-dna-artist-chip.is-active {
  transform: translateY(-1px);
  border-color: rgba(20, 184, 166, 0.45);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.cg-dna-artist-color {
  width: 10px;
  min-height: 100%;
  border-radius: 999px;
  background: var(--dna-color, #14b8a6);
}

.cg-dna-artist-copy {
  min-width: 0;
}

.cg-dna-artist-name {
  display: block;
  color: #0f172a;
  font-weight: 950;
  letter-spacing: -0.01em;
}

.cg-dna-artist-meta,
.cg-dna-artist-strengths {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
}

.cg-dna-artist-strengths {
  display: -webkit-box;
  color: #334155;
  font-weight: 700;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.cg-dna-evidence-box {
  grid-area: evidence;
  display: grid;
  align-content: start;
  min-width: 0;
  width: 100%;
}

.cg-dna-evidence-shell {
  padding: 16px;
}

.cg-dna-evidence-box h3 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.cg-dna-evidence-hint {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

.cg-dna-evidence-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
  width: 100%;
}

.cg-dna-evidence-item {
  display: grid;
  align-content: start;
  width: 100%;
  max-width: 100%;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #ffffff;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.cg-dna-evidence-item:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 184, 166, 0.32);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.cg-dna-evidence-headline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  margin-bottom: 7px;
}

.cg-dna-evidence-headline span {
  color: #0f766e;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.cg-dna-evidence-axis {
  min-width: 0;
  margin: 0;
  color: #0f766e;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

.cg-dna-evidence-title {
  display: -webkit-box;
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.cg-dna-evidence-song {
  display: -webkit-box;
  margin-top: 4px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.cg-dna-evidence-pattern {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.cg-dna-evidence-lyric {
  display: -webkit-box;
  margin-top: 9px;
  color: #0f172a;
  font-size: 14px;
  font-style: italic;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.cg-dna-evidence-text {
  display: -webkit-box;
  margin: 8px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.cg-dna-axis-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.cg-dna-axis-card {
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.cg-dna-axis-card:hover,
.cg-dna-axis-card.is-active {
  transform: translateY(-1px);
  border-color: rgba(20, 184, 166, 0.38);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.cg-dna-axis-card strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
}

.cg-dna-axis-card span {
  display: -webkit-box;
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.cg-dna-loading,
.cg-dna-error {
  margin-top: 14px;
  color: #64748b;
  font-size: 14px;
}

.cg-dna-error {
  color: #b91c1c;
}

@media (max-width: 1199px) {
  .cg-dna-evidence-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .cg-dna-head {
    grid-template-columns: 1fr;
  }

  .cg-dna-scale-note {
    width: 100%;
  }

  .cg-dna-side {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "legend"
      "evidence";
  }

  .cg-dna-artist-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cg-dna-summary-card p {
    -webkit-line-clamp: 4;
  }

  .cg-dna-evidence-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cg-dna-axis-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .cg-composer-dna-block {
    margin: 24px 0;
    padding: 16px;
    border-radius: 22px;
  }

  .cg-dna-chart-card {
    min-height: 390px;
    padding: 8px;
    border-radius: 20px;
  }

  .cg-dna-chart-card canvas {
    height: 360px !important;
    max-height: none;
  }

  .cg-dna-side {
    padding: 14px;
    border-radius: 20px;
  }

  .cg-dna-artist-list,
  .cg-dna-axis-guide,
  .cg-dna-evidence-list {
    grid-template-columns: 1fr;
  }

  .cg-dna-title {
    letter-spacing: -0.03em;
  }
}