/* ═══════════════════════════════════════════════════════════════════════════
   Personality Song Generator – Styles
   Passt zum Design-System von manuel-weiss.ch (Inter, Indigo-Akzent, Glassmorphism)
   ═══════════════════════════════════════════════════════════════════════════ */

.sg-app {
  --sg-accent: #4f46e5;
  --sg-accent-2: #8b5cf6;
  --sg-bg: #ffffff;
  --sg-bg-soft: #f8fafc;
  --sg-border: #e5e7eb;
  --sg-text: #0f172a;
  --sg-muted: #64748b;
  --sg-radius: 18px;
  --sg-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);

  max-width: 980px;
  margin: 0 auto;
  padding: 7rem 1.25rem 6rem;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--sg-text);
  line-height: 1.6;
}

.sg-app * { box-sizing: border-box; }

/* ─── Hero / Page intro ──────────────────────────────────────── */
.sg-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}
.sg-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, var(--sg-accent), var(--sg-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sg-hero p {
  font-size: 1.1rem;
  color: var(--sg-muted);
  max-width: 720px;
  margin: 0 auto;
}

/* ─── Progress bar ───────────────────────────────────────────── */
.sg-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.sg-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.sg-progress-step.active,
.sg-progress-step.done { opacity: 1; }
.sg-progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sg-bg-soft);
  border: 2px solid var(--sg-border);
  color: var(--sg-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.sg-progress-step.active .sg-progress-dot {
  background: linear-gradient(135deg, var(--sg-accent), var(--sg-accent-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}
.sg-progress-step.done .sg-progress-dot {
  background: var(--sg-accent);
  color: #fff;
  border-color: transparent;
}
.sg-progress-label {
  font-size: 0.78rem;
  color: var(--sg-muted);
  font-weight: 500;
}
.sg-progress-line {
  flex: 0 0 24px;
  height: 2px;
  background: var(--sg-border);
  margin-bottom: 1.4rem;
  border-radius: 2px;
}
.sg-progress-line.done { background: var(--sg-accent); }

/* ─── Cards ─────────────────────────────────────────────────── */
.sg-card {
  background: var(--sg-bg);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  box-shadow: var(--sg-shadow);
  padding: 2.25rem 2rem;
  margin-bottom: 1.5rem;
}
.sg-card h1, .sg-card h2 { margin-top: 0; }
.sg-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.sg-lead {
  color: var(--sg-muted);
  font-size: 1rem;
  margin: 0 0 1.5rem;
}

/* ─── Buttons / Inputs ──────────────────────────────────────── */
.sg-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.sg-btn-primary {
  background: linear-gradient(135deg, var(--sg-accent), var(--sg-accent-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}
.sg-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(79, 70, 229, 0.45); }
.sg-btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.sg-btn-ghost {
  background: var(--sg-bg-soft);
  color: var(--sg-text);
  border: 1px solid var(--sg-border);
}
.sg-btn-ghost:hover { background: #fff; border-color: var(--sg-accent); color: var(--sg-accent); }
.sg-btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: var(--sg-bg-soft);
  color: var(--sg-muted);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.15s ease;
}
.sg-btn-icon:hover { background: var(--sg-accent); color: #fff; }
.sg-btn-tiny {
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  border-radius: 8px;
  border: 1px solid var(--sg-border);
  background: var(--sg-bg-soft);
  color: var(--sg-muted);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.15s ease;
}
.sg-btn-tiny:hover { border-color: var(--sg-accent); color: var(--sg-accent); background: #fff; }
.sg-btn-tiny:disabled { opacity: 0.5; cursor: not-allowed; }

.sg-input, .sg-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--sg-border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--sg-text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sg-input:focus, .sg-textarea:focus {
  outline: none;
  border-color: var(--sg-accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.sg-textarea { resize: vertical; min-height: 140px; line-height: 1.5; }

.sg-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.sg-field label { font-weight: 600; font-size: 0.88rem; color: var(--sg-text); }

.sg-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Login-Wall */
.sg-login-wall { text-align: center; padding: 3rem 2rem; }
.sg-login-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sg-accent), var(--sg-accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 12px 36px rgba(79, 70, 229, 0.35);
}
.sg-login-wall h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}
.sg-login-wall .sg-actions {
  justify-content: center;
}

/* Import-Box: bereits bearbeitete Methoden */
.sg-import-box {
  background: linear-gradient(180deg, rgba(79,70,229,0.04), rgba(139,92,246,0.04));
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}
.sg-import-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.sg-import-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--sg-accent);
}
.sg-import-status {
  margin: 0 0 0.85rem;
  color: var(--sg-text);
  font-size: 0.92rem;
}
.sg-import-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sg-import-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: #fff;
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 999px;
  font-size: 0.83rem;
  cursor: help;
}
.sg-import-chip strong { color: var(--sg-text); font-weight: 600; }
.sg-import-pct {
  color: var(--sg-accent);
  font-weight: 700;
  font-size: 0.78rem;
}
.sg-import-count {
  color: var(--sg-muted);
  font-size: 0.78rem;
}
.sg-import-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(79, 70, 229, 0.2);
}
.sg-import-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--sg-accent);
  font-size: 0.9rem;
  list-style: none;
  padding: 0.3rem 0;
}
.sg-import-details summary::before { content: '▸ '; }
.sg-import-details[open] summary::before { content: '▾ '; }
.sg-import-textarea {
  margin-top: 0.6rem;
  font-family: 'JetBrains Mono', 'SFMono-Regular', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Schritt-Erklärung auf Welcome-Karte (statt unverständlicher Eingabefelder) */
.sg-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 1.75rem;
}
.sg-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  background: var(--sg-bg-soft);
  border-radius: 12px;
  border: 1px solid var(--sg-border);
}
.sg-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sg-accent), var(--sg-accent-2));
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.sg-step-item strong { display: block; font-size: 0.95rem; margin-bottom: 0.1rem; }
.sg-step-desc { font-size: 0.82rem; color: var(--sg-muted); line-height: 1.45; }
@media (max-width: 720px) {
  .sg-steps { grid-template-columns: 1fr; }
}

.sg-api-box {
  background: var(--sg-bg-soft);
  border: 1px dashed var(--sg-border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.sg-api-box label { font-weight: 600; font-size: 0.85rem; display: block; margin-bottom: 0.4rem; }
.sg-hint { font-size: 0.8rem; color: var(--sg-muted); margin: 0.5rem 0 0; }

/* Auth-Status-Box (statt API-Key-Eingabe) */
.sg-auth-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--sg-border);
  background: var(--sg-bg-soft);
}
.sg-auth-box.sg-auth-ok {
  background: linear-gradient(180deg, rgba(34,197,94,0.08), rgba(34,197,94,0.04));
  border-color: rgba(34,197,94,0.3);
}
.sg-auth-box.sg-auth-warn {
  background: linear-gradient(180deg, rgba(251,191,36,0.10), rgba(251,191,36,0.04));
  border-color: rgba(251,191,36,0.4);
}
.sg-auth-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  background: #fff;
  border: 2px solid var(--sg-border);
  color: var(--sg-muted);
}
.sg-auth-ok .sg-auth-icon {
  border-color: #22c55e;
  color: #16a34a;
  background: rgba(34,197,94,0.1);
}
.sg-auth-warn .sg-auth-icon {
  border-color: #f59e0b;
  color: #b45309;
  background: rgba(251,191,36,0.15);
}
.sg-auth-text { flex: 1; min-width: 0; }
.sg-auth-text strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.sg-auth-sub {
  font-size: 0.85rem;
  color: var(--sg-muted);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}
.sg-auth-text .sg-btn-small {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  margin-top: 0.4rem;
}
.sg-link {
  color: var(--sg-accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.sg-link:hover { color: var(--sg-accent-2); }

.sg-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  align-items: center;
}
.sg-actions-sticky {
  position: sticky;
  bottom: 1rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 14px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--sg-border);
  justify-content: space-between;
}

.sg-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--sg-bg-soft);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--sg-muted);
  border-left: 3px solid var(--sg-accent);
}
.sg-status-error { border-left-color: #ef4444; color: #b91c1c; background: #fef2f2; }

.sg-spinner {
  display: inline-flex;
  gap: 0.4rem;
  margin: 1rem 0;
}
.sg-spinner span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--sg-accent);
  animation: sg-bounce 1.2s ease-in-out infinite;
}
.sg-spinner span:nth-child(2) { animation-delay: 0.15s; }
.sg-spinner span:nth-child(3) { animation-delay: 0.3s; }
@keyframes sg-bounce { 0%,80%,100%{ transform:scale(0.4); opacity:0.4 } 40%{ transform:scale(1); opacity:1 } }

/* ─── Test ──────────────────────────────────────────────────── */
.sg-test-head { margin-bottom: 1.5rem; }
.sg-phase {
  margin: 2rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--sg-border);
}
.sg-phase-head { margin-bottom: 1.5rem; }
.sg-phase-id {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--sg-bg-soft);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sg-accent);
  margin-bottom: 0.5rem;
}
.sg-phase-head h3 { margin: 0.4rem 0 0.3rem; font-size: 1.2rem; }
.sg-phase-intro { color: var(--sg-muted); margin: 0; font-size: 0.95rem; }

.sg-item {
  background: var(--sg-bg-soft);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.sg-item.answered {
  border-color: rgba(79, 70, 229, 0.25);
  background: linear-gradient(180deg, rgba(79,70,229,0.04), rgba(139,92,246,0.04));
}
.sg-item-flavor { font-size: 0.82rem; color: var(--sg-accent); font-style: italic; margin-bottom: 0.4rem; }
.sg-item-stem { font-size: 1.05rem; font-weight: 600; margin-bottom: 1rem; }

.sg-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sg-options.sg-likert { gap: 0.35rem; }
.sg-option {
  flex: 1 1 auto;
  min-width: 90px;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--sg-border);
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--sg-text);
  transition: all 0.15s ease;
}
.sg-option:hover { border-color: var(--sg-accent); color: var(--sg-accent); }
.sg-option.selected {
  background: linear-gradient(135deg, var(--sg-accent), var(--sg-accent-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}
.sg-likert .sg-option { font-size: 0.78rem; padding: 0.45rem 0.4rem; min-width: 0; }

.sg-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.65rem;
}
.sg-slider-endpoints {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--sg-muted);
  line-height: 1.3;
}
.sg-slider-end.low { text-align: left; max-width: 42%; }
.sg-slider-end.high { text-align: right; max-width: 42%; }
.sg-slider-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.sg-slider {
  flex: 1;
  appearance: none;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, #e2e8f0, var(--sg-accent));
  border-radius: 999px;
  outline: none;
  touch-action: pan-y;
}
.sg-slider::-webkit-slider-thumb {
  appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff;
  border: 3px solid var(--sg-accent);
  cursor: grab;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.35);
}
.sg-slider::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff;
  border: 3px solid var(--sg-accent);
  cursor: grab;
}
.sg-slider-value {
  min-width: 58px;
  text-align: center;
  font-weight: 800;
  color: var(--sg-accent);
  background: var(--sg-bg-soft);
  border: 1px solid var(--sg-border);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sg-slider-num { font-size: 1.15rem; }
.sg-slider-unit { font-size: 0.72rem; font-weight: 600; color: var(--sg-muted); margin-left: 1px; }

/* ─── Inputs (external) ─────────────────────────────────────── */
.sg-input-list { margin: 1rem 0 1.5rem; }
.sg-input-list h3 { font-size: 1rem; margin: 0 0 0.6rem; color: var(--sg-muted); font-weight: 600; }
.sg-input-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem 0.55rem 1rem;
  background: var(--sg-bg-soft);
  border: 1px solid var(--sg-border);
  border-radius: 10px;
  margin: 0 0.5rem 0.5rem 0;
  font-size: 0.85rem;
}
.sg-input-chip strong { color: var(--sg-accent); font-weight: 700; }
.sg-input-conf { color: var(--sg-muted); }
.sg-input-themes { color: var(--sg-muted); font-style: italic; }

.sg-input-form {
  background: var(--sg-bg-soft);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1rem 0;
}

/* ─── Synthesis ─────────────────────────────────────────────── */
.sg-synthesis h2 { margin-bottom: 0.5rem; }
.sg-archetype {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0.5rem 0 1.25rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(139, 92, 246, 0.08));
  border-radius: 14px;
  border: 1px solid rgba(79, 70, 229, 0.15);
}
.sg-arche-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sg-muted); font-weight: 700; }
.sg-arche-name {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--sg-accent), var(--sg-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sg-narrative {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--sg-text);
  border-left: 4px solid var(--sg-accent);
  padding: 0.5rem 0 0.5rem 1rem;
  margin: 1rem 0 1.5rem;
}

.sg-scales { display: flex; flex-direction: column; gap: 0.7rem; margin: 1rem 0 2rem; }
.sg-scale { display: grid; grid-template-columns: 180px 1fr 50px; gap: 1rem; align-items: center; }
.sg-scale-label { font-size: 0.9rem; font-weight: 500; color: var(--sg-muted); }
.sg-scale-bar { height: 8px; background: var(--sg-bg-soft); border-radius: 4px; overflow: hidden; }
.sg-scale-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sg-accent), var(--sg-accent-2));
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.sg-scale-val { font-weight: 700; text-align: right; color: var(--sg-accent); }

.sg-via { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 0.5rem; }
.sg-via-label { font-size: 0.85rem; color: var(--sg-muted); margin-right: 0.5rem; }
.sg-via-tag {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--sg-accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.sg-motifs { margin: 1.5rem 0; }
.sg-motifs h3 { margin: 0 0 0.6rem; font-size: 1rem; color: var(--sg-muted); font-weight: 600; }
.sg-motif-chip {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  margin: 0.25rem 0.4rem 0.25rem 0;
  background: linear-gradient(135deg, rgba(79,70,229,0.06), rgba(139,92,246,0.06));
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--sg-text);
}

.sg-dna { margin: 1.5rem 0; }
.sg-dna h3 { margin: 0 0 0.7rem; font-size: 1rem; color: var(--sg-muted); font-weight: 600; }
.sg-dna-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}
.sg-dna-cell {
  background: var(--sg-bg-soft);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.sg-dna-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sg-muted); font-weight: 700; }
.sg-dna-value { font-weight: 700; color: var(--sg-text); font-size: 0.95rem; }

.sg-tensions { margin-top: 1rem; }
.sg-tensions h3 { font-size: 1rem; margin: 0 0 0.4rem; color: var(--sg-muted); }
.sg-tension { font-size: 0.88rem; color: var(--sg-muted); margin: 0.25rem 0; }

/* ─── Editor (Song) ─────────────────────────────────────────── */
.sg-song-head { margin-bottom: 1.5rem; }
.sg-song-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  background: linear-gradient(135deg, var(--sg-accent), var(--sg-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sg-song-subtitle { color: var(--sg-muted); margin: 0 0 0.7rem; }
.sg-song-meta {
  display: flex; gap: 0.7rem; flex-wrap: wrap;
}
.sg-song-meta span {
  padding: 0.3rem 0.8rem;
  background: var(--sg-bg-soft);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--sg-muted);
  font-weight: 600;
}
.sg-rationale {
  color: var(--sg-muted);
  font-style: italic;
  font-size: 0.95rem;
  border-left: 3px solid var(--sg-accent);
  padding-left: 1rem;
  margin: 1rem 0 2rem;
}
.sg-section {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: var(--sg-bg-soft);
  border-radius: 14px;
  border: 1px solid var(--sg-border);
}
.sg-section-head {
  display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.75rem;
}
.sg-section-head h3 { margin: 0; font-size: 1rem; color: var(--sg-accent); font-weight: 700; }
.sg-chords {
  font-family: 'JetBrains Mono', 'SFMono-Regular', monospace;
  font-size: 0.8rem;
  color: var(--sg-muted);
  background: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--sg-border);
}
.sg-perf-note { color: var(--sg-muted); font-size: 0.85rem; margin: 0 0 0.75rem; }
.sg-line {
  background: #fff;
  border: 1px solid var(--sg-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.7rem;
  transition: border-color 0.15s ease;
}
.sg-line:hover { border-color: rgba(79, 70, 229, 0.3); }
.sg-line-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--sg-text);
  outline: none;
  padding: 0.3rem 0;
  border-radius: 6px;
  cursor: text;
  transition: background 0.15s ease;
}
.sg-line-text:focus { background: rgba(79, 70, 229, 0.05); }
.sg-line-meta {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--sg-muted);
  margin-top: 0.4rem;
}
.sg-tag {
  padding: 0.15rem 0.5rem;
  background: rgba(79, 70, 229, 0.08);
  color: var(--sg-accent);
  border-radius: 4px;
  font-weight: 600;
}
.sg-alts { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.sg-alt {
  font-size: 0.82rem;
  font-style: italic;
  padding: 0.3rem 0.7rem;
  background: rgba(139, 92, 246, 0.08);
  border: 1px dashed rgba(139, 92, 246, 0.3);
  color: var(--sg-accent-2);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}
.sg-alt:hover { background: rgba(139, 92, 246, 0.15); border-style: solid; }
.sg-line-actions { display: flex; gap: 0.4rem; margin-top: 0.5rem; }

.sg-production {
  margin: 1.5rem 0;
  background: var(--sg-bg-soft);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.sg-production summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--sg-accent);
  list-style: none;
}
.sg-production summary::before { content: '▸ '; transition: transform 0.2s ease; }
.sg-production[open] summary::before { content: '▾ '; }
.sg-production pre {
  margin-top: 0.75rem;
  padding: 0.9rem;
  background: #fff;
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  font-family: 'JetBrains Mono', 'SFMono-Regular', monospace;
  font-size: 0.78rem;
  overflow-x: auto;
  max-height: 360px;
  overflow-y: auto;
}

/* ─── Mobile ────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .sg-app { padding: 6rem 1rem 4rem; }
  .sg-card { padding: 1.5rem 1.25rem; border-radius: 14px; }
  .sg-progress-line { flex-basis: 12px; }
  .sg-progress-label { display: none; }
  .sg-scale { grid-template-columns: 110px 1fr 40px; gap: 0.5rem; }
  .sg-scale-label { font-size: 0.75rem; }
  .sg-actions-sticky { flex-direction: column-reverse; gap: 0.5rem; }
  .sg-actions-sticky .sg-btn { width: 100%; justify-content: center; }
}

/* Reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  .sg-spinner span { animation: none; }
  .sg-scale-fill { transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ════════════════════════════════════════════════════════════════════
   v2.0 — Test-Varianten, Geburtsdaten, Profil & Karte
   ════════════════════════════════════════════════════════════════════ */

/* ── Test-Varianten-Auswahl (Welcome-Karte) ─────────────────────────── */
.sg-variants {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin: 1.25rem 0;
}
.sg-variant {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1rem 1.1rem;
  border: 2px solid var(--sg-border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.sg-variant:hover { border-color: #c4b5fd; transform: translateY(-1px); }
.sg-variant.selected {
  border-color: var(--sg-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
.sg-variant-head {
  display: flex; justify-content: space-between; align-items: baseline;
}
.sg-variant-title { font-weight: 700; font-size: 1.05rem; color: #1e293b; }
.sg-variant-min { font-size: 0.78rem; color: #64748b; }
.sg-variant-count { font-size: 0.85rem; color: var(--sg-primary); font-weight: 600; }
.sg-variant-desc { font-size: 0.82rem; color: #475569; line-height: 1.45; }

/* ── Geburtsdaten-Step ──────────────────────────────────────────────── */
.sg-birth-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem 1.1rem;
  margin: 1.1rem 0;
}
.sg-birth-form .sg-field { display: flex; flex-direction: column; gap: 0.35rem; }
.sg-birth-form label { font-size: 0.82rem; font-weight: 600; color: #334155; }
.sg-birth-form input,
.sg-birth-form select {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--sg-border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
}
.sg-birth-form input:focus,
.sg-birth-form select:focus {
  outline: none;
  border-color: var(--sg-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}
.sg-birth-hint {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid var(--sg-border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  line-height: 1.5;
}
.sg-birth-suggestions {
  border: 1px solid var(--sg-border);
  border-radius: 10px;
  background: #fff;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 0.3rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.sg-birth-suggestions button {
  display: block; width: 100%;
  padding: 0.65rem 0.85rem;
  border: none; border-bottom: 1px solid #f1f5f9;
  background: transparent;
  text-align: left;
  font-size: 0.88rem;
  cursor: pointer;
}
.sg-birth-suggestions button:hover { background: #f5f3ff; }
.sg-birth-suggestions button:last-child { border-bottom: none; }
.sg-birth-tz {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #f8fafc; border: 1px solid var(--sg-border);
  border-radius: 10px;
  font-size: 0.85rem; color: #334155;
}
.sg-birth-tz strong { color: #6366f1; }
.sg-birth-skip {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: #64748b;
}

/* ── Profil & Karte (großes Diagramm) ───────────────────────────────── */
.sg-profile-card {
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
  border: 1px solid var(--sg-border);
  border-radius: 18px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.06);
}
.sg-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.2rem 0;
}
.sg-profile-panel {
  background: #fff;
  border: 1px solid var(--sg-border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}
.sg-profile-panel h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  display: flex; justify-content: space-between; align-items: center;
}
.sg-profile-panel .sg-tag {
  font-size: 0.7rem; padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #ede9fe;
  color: #6d28d9;
  font-weight: 600;
}
.sg-radar { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.sg-wheel { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.sg-radar-label { font-family: inherit; }
.sg-radar-value { font-family: inherit; }

.sg-chart-frame {
  width: 100%;
  max-width: 100%;
  margin: 0.35rem 0 0.5rem;
}
.sg-chart-wheel {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}
.sg-chart-radar-svg { width: 100%; }

/* Big-Five Balken (primär Mobile) */
.sg-big5-bars { display: none; gap: 0.55rem; }
.sg-big5-bar-row { display: flex; flex-direction: column; gap: 0.25rem; }
.sg-big5-bar-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.82rem;
}
.sg-big5-bar-label { color: #334155; font-weight: 600; }
.sg-big5-bar-val { color: #6366f1; font-weight: 700; font-variant-numeric: tabular-nums; }
.sg-big5-bar-track {
  height: 10px; background: #f1f5f9; border-radius: 999px; overflow: hidden;
}
.sg-big5-bar-fill { height: 100%; border-radius: 999px; transition: width 0.5s ease; }

/* KI-Persönlichkeitsanalyse */
.sg-analysis-panel {
  margin-top: 1.25rem;
  padding: 1.1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--sg-border);
  border-radius: 14px;
}
.sg-analysis-panel h3 { margin: 0 0 0.35rem; font-size: 1rem; color: #1e293b; }
.sg-analysis-lead {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
}
.sg-analysis-modes,
.sg-analysis-lengths {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}
.sg-analysis-mode,
.sg-analysis-len {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--sg-border);
  background: #f8fafc;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  color: #334155;
}
.sg-analysis-mode.active,
.sg-analysis-len.active {
  background: linear-gradient(135deg, var(--sg-accent), var(--sg-accent-2));
  color: #fff;
  border-color: transparent;
}
.sg-analysis-generate { margin: 0.35rem 0 0.75rem; width: 100%; max-width: 320px; }
.sg-analysis-output {
  margin-top: 0.75rem;
  padding: 0.85rem 0.95rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #1e293b;
}
.sg-analysis-output p { margin: 0 0 0.75rem; }
.sg-analysis-output p:last-child { margin-bottom: 0; }
.sg-analysis-headline {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #4c1d95;
  line-height: 1.3;
}
.sg-analysis-lead-text {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.65;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}
.sg-analysis-section {
  margin-bottom: 1rem;
  padding-left: 0.65rem;
  border-left: 3px solid #c4b5fd;
}
.sg-analysis-section-title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6366f1;
}
.sg-analysis-section p {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #1e293b;
}
.sg-analysis-closing {
  margin-top: 0.85rem;
  padding: 0.65rem 0.75rem;
  background: linear-gradient(135deg, #f5f3ff, #eef2ff);
  border-radius: 10px;
  font-style: italic;
  color: #4338ca;
  font-size: 0.9rem;
}
.sg-analysis-music-hints {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  margin-top: 0.75rem;
}
.sg-analysis-hints-label { font-size: 0.78rem; color: #64748b; font-weight: 600; }

/* Playlist-Kontext (Produktion) */
.sg-playlist-panel {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid #ddd6fe;
  border-radius: 14px;
}
.sg-playlist-panel h4 { margin: 0 0 0.35rem; font-size: 0.95rem; color: #4c1d95; }
.sg-playlist-lead { margin: 0 0 0.75rem; font-size: 0.82rem; color: #64748b; line-height: 1.5; }
.sg-playlist-intents {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  margin-bottom: 0.55rem;
}
.sg-playlist-intent {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.38rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #ddd6fe;
  background: #faf5ff;
  font-family: inherit;
  font-size: 0.76rem;
  cursor: pointer;
  color: #5b21b6;
  min-width: 0;
}
.sg-playlist-intent.active {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #fff;
  border-color: transparent;
}
.sg-playlist-emoji { font-size: 1rem; }
.sg-playlist-spec {
  padding: 0.75rem 0.85rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px dashed #e2e8f0;
}
.sg-playlist-desc { margin: 0 0 0.6rem; font-size: 0.85rem; color: #475569; }
.sg-playlist-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.sg-playlist-metric {
  padding: 0.4rem 0.55rem;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.sg-playlist-metric-k { display: block; font-size: 0.68rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.04em; }
.sg-playlist-metric-v { display: block; font-size: 0.9rem; font-weight: 700; color: #1e293b; margin-top: 0.15rem; }
.sg-playlist-rationale { margin: 0.5rem 0 0; font-size: 0.78rem; color: #64748b; line-height: 1.45; }
.sg-playlist-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }

.sg-playlist-intent-group { margin-bottom: 0.55rem; }
.sg-style-prefs {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #faf5ff 0%, #f0f9ff 100%);
  border: 1px solid #e9d5ff;
}
.sg-style-prefs-title {
  margin: 0 0 0.25rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: #5b21b6;
}
.sg-style-prefs-lead {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
}
.sg-style-prefs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}
.sg-field-inline { min-width: 160px; flex: 1 1 160px; }
.sg-style-prefs-hints .sg-style-hint { margin: 0.2rem 0; font-size: 0.76rem; }
.sg-playlist-group-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 0.3rem;
}
.sg-playlist-pack-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.sg-playlist-pack-label {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}
.sg-playlist-pack-btn {
  padding: 0.35rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
}
.sg-playlist-pack-btn.active {
  border-color: #6366f1;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 600;
}
.sg-context-dna-title {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4c1d95;
}
.sg-context-dna-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}
.sg-context-dna-cell {
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.sg-context-dna-k {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sg-context-dna-v {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 0.1rem;
}

.sg-fav-btn {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  background: #fff;
  color: #f43f5e;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.sg-fav-btn.active {
  background: #fff1f2;
  border-color: #f43f5e;
  color: #e11d48;
}
.sg-fav-btn:hover { background: #fff1f2; }

.sg-favorites-panel {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid #fecdd3;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff1f2 0%, #fff 40%);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.sg-favorites-panel.sg-favorites-flash {
  border-color: #f43f5e;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.25);
}
.sg-favorites-panel h4 { margin: 0 0 0.25rem; color: #be123c; }
.sg-favorites-lead {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
}
.sg-favorites-main { margin-bottom: 0.65rem; }
.sg-favorites-now {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #be123c;
  font-weight: 600;
}
.sg-favorites-controls { margin-bottom: 0.65rem; }
.sg-favorites-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sg-favorites-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid #fecdd3;
  border-radius: 10px;
  background: #fff;
}
.sg-favorites-row.active {
  border-color: #f43f5e;
  background: #fff1f2;
}
.sg-favorites-row.dragging { opacity: 0.55; }
.sg-favorites-row.drag-over { border-color: #6366f1; box-shadow: 0 0 0 1px #6366f1; }
.sg-favorites-handle {
  cursor: grab;
  color: #94a3b8;
  font-size: 0.85rem;
  user-select: none;
  padding: 0 0.15rem;
}
.sg-favorites-play {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.sg-favorites-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.sg-favorites-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sg-favorites-dur {
  font-size: 0.75rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.sg-favorites-order {
  display: flex;
  gap: 0.15rem;
}

.sg-voice-panel {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #c7d2fe;
  border-radius: 14px;
  background: linear-gradient(180deg, #eef2ff 0%, #fff 55%);
}
.sg-voice-panel h4 { margin: 0 0 0.35rem; color: #3730a3; }
.sg-voice-lead { margin: 0 0 0.75rem; font-size: 0.82rem; color: #64748b; line-height: 1.45; }
.sg-voice-form label { display: block; font-size: 0.78rem; color: #475569; margin: 0.5rem 0 0.25rem; }
.sg-voice-file { width: 100%; font-size: 0.82rem; }
.sg-voice-seg-row {
  display: grid;
  grid-template-columns: 1fr 80px 1fr 80px;
  gap: 0.5rem;
  align-items: end;
  margin: 0.5rem 0;
}
.sg-voice-seg-input {
  width: 100%;
  padding: 0.35rem 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.sg-voice-phrase {
  margin: 0.5rem 0;
  padding: 0.75rem;
  border-left: 3px solid #6366f1;
  background: #f8fafc;
  font-size: 1rem;
  color: #1e293b;
}
.sg-voice-phrase-label { font-weight: 600; font-size: 0.85rem; color: #334155; }
.sg-voice-status { font-size: 0.85rem; color: #64748b; margin: 0.35rem 0; }
.sg-voice-status.ok { color: #059669; font-weight: 600; }
.sg-voice-next-steps { margin-top: 0.65rem; }
.sg-voice-next-title { font-weight: 600; font-size: 0.85rem; color: #334155; margin: 0 0 0.35rem; }
.sg-voice-next-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
}
.sg-voice-next-list li { margin-bottom: 0.35rem; }
.sg-voice-prod-hint { margin: 0.35rem 0 0; font-size: 0.78rem; }
.sg-voice-use-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  cursor: pointer;
}
.sg-voice-verify-box { margin-top: 0.5rem; }
.sg-voice-guide {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(135deg, #eef2ff, #f0fdf4);
  border: 1px solid #c7d2fe;
  border-radius: 12px;
}
.sg-voice-guide-title {
  margin: 0 0 0.45rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #312e81;
}
.sg-voice-guide-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.55;
}
.sg-voice-guide-list li { margin-bottom: 0.35rem; }
.sg-voice-guide-tip {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.82rem;
  color: #64748b;
}

/* Pitch-Guide (Melodielinie + Treffer-Feedback) */
.sg-voice-pitch-wrap { margin: 0 0 1rem; }
.sg-pitch-guide {
  padding: 0.75rem;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
}
.sg-pitch-guide-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}
.sg-pitch-guide-head strong { font-size: 0.9rem; color: #f8fafc; }
.sg-pitch-guide-sub { font-size: 0.78rem; color: #94a3b8; }
.sg-pitch-guide-status {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}
.sg-pitch-transpose-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.sg-pitch-transpose-btn { font-size: 0.78rem; padding: 0.25rem 0.5rem; }
.sg-pitch-cents { font-weight: 700; font-size: 0.85rem; }
.sg-pitch-cents.hit { color: #22c55e; }
.sg-pitch-cents.close { color: #eab308; }
.sg-pitch-cents.miss { color: #ef4444; }
.sg-pitch-guide-canvas {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  display: block;
  background: #0f172a;
}
.sg-pitch-guide-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.75rem;
  margin: 0.5rem 0;
  font-size: 0.78rem;
}
.sg-pitch-label { display: block; color: #64748b; font-size: 0.7rem; }
.sg-pitch-target { font-weight: 700; color: #22c55e; }
.sg-pitch-current { font-weight: 700; }
.sg-pitch-current.hit { color: #22c55e; }
.sg-pitch-current.close { color: #eab308; }
.sg-pitch-current.miss { color: #ef4444; }
.sg-pitch-syllable { font-weight: 600; color: #a5b4fc; font-size: 1rem; }
.sg-pitch-score { font-weight: 700; }
.sg-pitch-score.good { color: #22c55e; }
.sg-pitch-score.ok { color: #eab308; }
.sg-pitch-syllable-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.sg-pitch-syl {
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.2);
  font-size: 0.82rem;
  color: #c7d2fe;
}
.sg-pitch-syl.active {
  background: rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
  font-weight: 700;
}
.sg-pitch-guide-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sg-prod-status-lead {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: #334155;
}
.sg-prod-progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.5rem 0 0.75rem;
}
.sg-prod-progress-bar .sg-prod-progress-fill {
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 999px;
}
.sg-prod-progress-bar.indeterminate .sg-prod-progress-fill {
  animation: sg-prod-indeterminate 1.2s ease-in-out infinite;
}
@keyframes sg-prod-indeterminate {
  0% { transform: translateX(-100%); width: 35%; }
  50% { width: 55%; }
  100% { transform: translateX(320%); width: 35%; }
}

.sg-voice-train-row {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
}
.sg-voice-train-link {
  color: #4338ca;
  font-weight: 700;
  text-decoration: none;
}
.sg-voice-train-link:hover { text-decoration: underline; }
.sg-voice-train-hint { color: #64748b; font-size: 0.82rem; }
.sg-voice-rec-block {
  margin: 0.5rem 0 0.75rem;
  padding: 0.65rem;
  border: 1px dashed #c7d2fe;
  border-radius: 10px;
  background: #f8fafc;
}
.sg-voice-rec-status {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 0.4rem;
}
.sg-voice-rec-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.sg-voice-rec-preview { margin-top: 0.35rem; }

.sg-fav-name-input,
.sg-track-name-input {
  flex: 1;
  min-width: 0;
  padding: 0.3rem 0.45rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  background: #fff;
}
.sg-fav-name-input:focus,
.sg-track-name-input:focus {
  border-color: #6366f1;
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}
.sg-playlist-track-name-input {
  max-width: 140px;
  font-size: 0.82rem;
}

/* Persistenter Player – läuft weiter bei UI-Klicks / Schrittwechsel */
.sg-persistent-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), #fff);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0));
}
.sg-persistent-player-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.sg-persistent-player-title {
  flex: 1;
  min-width: 120px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sg-persistent-player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.sg-persistent-audio-wrap {
  flex: 1 1 100%;
  min-width: 0;
}
.sg-persistent-audio-wrap audio,
.sg-persistent-audio-in-slot {
  width: 100%;
  height: 36px;
}
.sg-persistent-audio-slot {
  min-height: 36px;
}
.sg-persistent-slot-hint {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
}
body.sg-has-persistent-player {
  padding-bottom: calc(7rem + env(safe-area-inset-bottom, 0));
}

@media (max-width: 640px) {
  .sg-voice-seg-row { grid-template-columns: 1fr 1fr; }
  .sg-context-dna-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-playlist-intents { flex-wrap: wrap; }
}

/* Bluetooth / Wiedergabe */
.sg-bt-hint {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  font-size: 0.82rem;
  color: #334155;
}
.sg-bt-hint strong { display: block; margin-bottom: 0.4rem; color: #047857; }
.sg-bt-steps {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.55;
}
.sg-bt-steps li { margin-bottom: 0.25rem; }
.sg-audio-player {
  width: 100%;
  min-height: 48px;
  margin: 0.5rem 0;
  border-radius: 8px;
}
.sg-audio-intent-tag {
  font-size: 0.8rem;
  color: #6366f1;
  font-weight: 600;
  margin: -0.35rem 0 0.75rem;
}
.sg-audio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.sg-btn-bt { flex: 1 1 auto; min-width: 140px; }

.sg-actions-split {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.sg-btn-secondary {
  background: #fff;
  color: #6366f1;
  border: 2px solid #c4b5fd;
}
.sg-btn-secondary:hover {
  background: #f5f3ff;
}
.sg-btn-queue { flex: 1 1 200px; }

/* Playlist-Queue Fortschritt */
.sg-queue-progress {
  padding: 1rem;
  background: #fff;
  border: 1px solid #ddd6fe;
  border-radius: 12px;
}
.sg-queue-progress h4 { margin: 0 0 0.5rem; color: #4c1d95; }
.sg-queue-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.75rem 0;
}
.sg-queue-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a78bfa);
  transition: width 0.4s ease;
}
.sg-queue-done {
  margin: 0.5rem 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: #475569;
}
.sg-queue-done li.fail { color: #dc2626; }

.sg-queue-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.sg-queue-bars .sg-prod-progress-bar { margin: 0; }

.sg-queue-tracklist {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.75rem 0 0.5rem;
}
.sg-queue-track {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.85rem;
}
.sg-queue-track.current {
  border-color: #a78bfa;
  background: #f5f3ff;
}
.sg-queue-track-ok { border-color: #bbf7d0; background: #f0fdf4; }
.sg-queue-track-failed { border-color: #fecaca; background: #fef2f2; }
.sg-queue-track-generating { border-color: #c4b5fd; background: #faf5ff; }
.sg-queue-track-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 140px;
  min-width: 0;
}
.sg-queue-track-label { font-weight: 600; color: #334155; }
.sg-queue-track-badge {
  font-size: 0.75rem;
  color: #64748b;
  white-space: nowrap;
}
.sg-queue-track-play {
  padding: 0.25rem 0.65rem !important;
  font-size: 0.78rem !important;
}
.sg-queue-track .sg-spinner { transform: scale(0.65); margin: 0; }

.sg-playlist-pending {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #cbd5e1;
}

.sg-audio-card-generating {
  opacity: 0.92;
  border-style: dashed;
}
.sg-audio-card-progress {
  padding: 0.5rem 0 0.25rem;
}
.sg-audio-card-progress .sg-prod-progress-bar { margin-bottom: 0.35rem; }

/* Playlist-Player */
.sg-playlist-player {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, #faf5ff, #eff6ff);
  border: 1px solid #ddd6fe;
  border-radius: 14px;
}
.sg-playlist-player h4 { margin: 0 0 0.25rem; color: #4c1d95; }
.sg-playlist-player-sub {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: #64748b;
}
.sg-playlist-saved-hint {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.8rem;
  color: #059669;
  font-weight: 600;
}
.sg-playlist-main { margin-bottom: 0.75rem; }
.sg-audio-main { margin-bottom: 0.75rem; }
.sg-audio-now {
  font-size: 0.85rem;
  color: #5b21b6;
  margin-top: 0.35rem;
}
.sg-playlist-now {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6366f1;
}
.sg-playlist-controls { margin-bottom: 0.75rem; }
.sg-playlist-tracklist {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sg-playlist-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  width: 100%;
  padding: 0.35rem 0.45rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.sg-playlist-track-play {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.2rem 0.35rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.sg-playlist-track-play:hover { background: #faf5ff; border-radius: 8px; }
.sg-playlist-track:hover { border-color: #c4b5fd; background: #faf5ff; }
.sg-playlist-track.active {
  border-color: #6366f1;
  background: #eef2ff;
  box-shadow: 0 0 0 1px #6366f1;
}
.sg-playlist-track-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.sg-playlist-track-num {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 700;
  min-width: 1.2rem;
}
.sg-playlist-track-name { font-size: 0.88rem; color: #1e293b; font-weight: 600; }
.sg-playlist-track-dur { font-size: 0.78rem; color: #64748b; font-variant-numeric: tabular-nums; }

.sg-facet-list {
  margin-top: 0.75rem;
  display: grid; grid-template-columns: 1fr; gap: 0.35rem;
  font-size: 0.78rem;
}
.sg-facet-row {
  display: grid; grid-template-columns: 110px 1fr 30px;
  align-items: center; gap: 0.5rem;
}
.sg-facet-label { color: #334155; }
.sg-facet-bar {
  height: 6px; background: #f1f5f9; border-radius: 999px; overflow: hidden;
}
.sg-facet-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #a78bfa, #6366f1);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.sg-facet-val { color: #475569; text-align: right; font-weight: 600; }

.sg-astro-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem;
  font-size: 0.8rem; color: #475569;
  margin-bottom: 0.5rem;
}
.sg-astro-meta strong { color: #1e293b; }
.sg-astro-chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  background: #ede9fe; color: #6d28d9;
  border-radius: 999px; font-weight: 600; font-size: 0.75rem;
}

.sg-astro-placements {
  margin-top: 0.75rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.4rem;
  font-size: 0.78rem;
}
.sg-astro-pl {
  display: flex; flex-direction: column;
  padding: 0.4rem 0.55rem;
  background: #fafaff; border: 1px solid #e2e8f0; border-radius: 8px;
}
.sg-astro-pl-head {
  display: flex; align-items: center; gap: 0.35rem;
  font-weight: 600; color: #1e293b;
}
.sg-astro-pl-sym { font-size: 1rem; }
.sg-astro-pl-sub { font-size: 0.72rem; color: #64748b; }

.sg-balance {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.5rem; margin-top: 0.6rem;
}
.sg-balance-row {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; color: #475569;
}
.sg-balance-key { width: 70px; font-weight: 600; color: #1e293b; }
.sg-balance-bar {
  flex: 1; height: 6px; background: #f1f5f9; border-radius: 999px; overflow: hidden;
}
.sg-balance-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #f97316);
  transition: width 0.6s ease;
}
.sg-balance-row.air .sg-balance-bar-fill { background: linear-gradient(90deg, #38bdf8, #6366f1); }
.sg-balance-row.water .sg-balance-bar-fill { background: linear-gradient(90deg, #2dd4bf, #0ea5e9); }
.sg-balance-row.earth .sg-balance-bar-fill { background: linear-gradient(90deg, #84cc16, #15803d); }

.sg-dna-bar-wrap {
  display: flex; align-items: center; gap: 0.5rem;
  width: 100%;
}
.sg-dna-bar {
  flex: 1; height: 7px; background: #f1f5f9; border-radius: 999px; overflow: hidden;
}
.sg-dna-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #a78bfa, #ec4899);
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.sg-profile-sources {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.55;
  padding: 0.75rem 0.9rem;
  background: #f8fafc;
  border: 1px dashed var(--sg-border);
  border-radius: 10px;
}
.sg-profile-sources strong { color: #475569; }

/* Mobile */
@media (max-width: 860px) {
  .sg-profile-grid { grid-template-columns: 1fr; }
  .sg-variants { grid-template-columns: 1fr; }
  .sg-profile-panel { padding: 0.85rem 0.75rem; }
  .sg-facet-row { grid-template-columns: 88px 1fr 28px; font-size: 0.72rem; }
  .sg-astro-placements { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .sg-chart-radar-svg { display: none; }
  .sg-big5-bars { display: grid; }
  .sg-profile-card { padding: 1.1rem 0.85rem; }
  .sg-analysis-mode, .sg-analysis-len { flex: 1 1 calc(50% - 0.45rem); text-align: center; }
  .sg-analysis-generate { max-width: none; }
  .sg-slider-end { font-size: 0.68rem; }
}

/* ════════════════════════════════════════════════════════════════════
   v2.1 – Audio-Produktion: Mix-Matrix, Audio-Player
   ════════════════════════════════════════════════════════════════════ */
.sg-prod-box {
  margin-top: 2rem;
  padding: 1.5rem 1.5rem 1.25rem;
  background: linear-gradient(135deg, #fdf4ff 0%, #eef2ff 100%);
  border: 1px solid #ddd6fe;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.08);
}
.sg-prod-head h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #4c1d95;
}
.sg-prod-sub {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
}
.sg-prod-opts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}
.sg-prod-opts .sg-field { display: flex; flex-direction: column; gap: 0.3rem; }
.sg-prod-opts label { font-size: 0.78rem; font-weight: 600; color: #334155; }
.sg-prod-opts select {
  padding: 0.55rem 0.7rem;
  border: 1px solid #ddd6fe;
  border-radius: 9px;
  font-size: 0.9rem;
  background: #fff;
}
.sg-prod-state {
  margin-top: 1rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.sg-prod-status {
  margin: 0;
  font-size: 0.9rem;
  color: #4338ca;
  font-weight: 500;
}

/* ── Mix-Matrix ─────────────────────────────────────────────────── */
.sg-mix-matrix {
  margin: 0.5rem 0 1.25rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid #ddd6fe;
  border-radius: 12px;
}
.sg-mix-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sg-mix-row {
  margin-bottom: 0.65rem;
}
.sg-mix-row:last-child { margin-bottom: 0; }
.sg-mix-label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 0.2rem;
}
.sg-mix-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}
.sg-mix-pct {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: #6366f1;
  font-weight: 600;
}
.sg-mix-bar {
  height: 7px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}
.sg-mix-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background: #6366f1;
}
.sg-mix-desc {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 0.25rem;
  line-height: 1.45;
  font-style: italic;
}

/* ── Audio-Player ───────────────────────────────────────────────── */
.sg-audio-results {
  margin-top: 1rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.sg-audio-results h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}
.sg-audio-card {
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #ddd6fe;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.06);
}
.sg-audio-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #1e293b;
}
.sg-audio-duration {
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: #64748b;
}
.sg-audio-cover {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 10px;
  align-self: center;
}
.sg-audio-card audio {
  display: block;
  width: 100%;
  border-radius: 8px;
}
.sg-audio-actions {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}

/* Audio-Identität (Profil-Karte) */
.sg-audio-identity-panel {
  margin: 1.25rem 0 1.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);
  border: 1px solid #ddd6fe;
}
.sg-audio-identity-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  color: #312e81;
}
.sg-audio-identity-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.sg-audio-identity-depth,
.sg-audio-identity-phase {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #fff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}
.sg-audio-identity-phase {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.sg-dna-phase {
  font-size: 0.88rem;
  font-weight: 600;
  color: #047857;
  margin: 0 0 0.35rem;
}
.sg-dna-evolution-narr {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 0.85rem;
}
.sg-dna-layer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
}
.sg-dna-layer-evolution {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}
.sg-dna-layer-astro {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
}
.sg-dna-layer-label {
  color: #64748b;
  font-weight: 500;
}
.sg-dna-layer-value {
  color: #1e293b;
  font-weight: 600;
  text-align: right;
}
.sg-dna-layers {
  margin-top: 0.65rem;
}
.sg-dna-prov {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}
.sg-dna-compose-hint {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0.75rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px dashed #e2e8f0;
}
.sg-audio-identity-narr {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #334155;
}
.sg-audio-identity-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0.35rem;
}
.sg-evolution-tag {
  color: #059669;
  font-weight: 600;
}
