:root {
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: #16213e;
  --bg-card-hover: #1c2a4a;
  --text-primary: #e8e8f0;
  --text-secondary: #9898b0;
  --text-muted: #6868880;
  --border: rgba(255, 255, 255, 0.08);
  --color-d: #E63946;
  --color-i: #F4A261;
  --color-s: #2A9D8F;
  --color-c: #457B9D;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== NAV ===== */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

nav .logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-d), var(--color-i), var(--color-s), var(--color-c));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav .nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

nav .nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

nav .nav-links a:hover,
nav .nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.lang-select {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  margin-left: 0.5rem;
}

.lang-select:focus { outline: none; border-color: var(--color-i); }

/* ===== LAYOUT ===== */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.container.wide {
  max-width: 1100px;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--color-d), var(--color-i) 40%, var(--color-s) 70%, var(--color-c));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-d), var(--color-i));
  color: white;
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(230, 57, 70, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

/* ===== DISC TYPE BADGES ===== */
.disc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.disc-badge {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.disc-badge:hover { transform: translateY(-2px); }

.disc-badge .letter {
  font-size: 2rem;
  font-weight: 800;
}

.disc-badge .label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ===== TEST ===== */
#test-section { display: none; }
#test-section.active { display: block; }
#landing { transition: opacity 0.3s; }

.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 2px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.progress-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-d), var(--color-i), var(--color-s), var(--color-c));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.progress-text {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.question-card {
  text-align: center;
  padding: 3rem 2rem;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.question-card h2 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.likert-scale {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.likert-scale button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.likert-scale button:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.1);
}

.likert-scale button.selected {
  background: linear-gradient(135deg, var(--color-d), var(--color-i));
  border-color: transparent;
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.3);
}

.likert-labels {
  display: flex;
  justify-content: space-between;
  max-width: 340px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.test-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

/* ===== RESULTS ===== */
.result-header {
  text-align: center;
  padding: 3rem 0 2rem;
}

.result-header .emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.result-header .type-badge {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.result-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.result-header .description {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.result-grid .card h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.strengths-list, .challenges-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.strengths-list li::before {
  content: '✦ ';
  color: var(--color-s);
}

.challenges-list li::before {
  content: '△ ';
  color: var(--color-d);
}

.keywords {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.keyword {
  padding: 0.3rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* Score bars */
.score-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.score-bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.score-bar-row .dim-label {
  width: 24px;
  font-weight: 800;
  font-size: 1.1rem;
  text-align: center;
}

.score-bar-track {
  flex: 1;
  height: 28px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.score-bar-fill {
  height: 100%;
  border-radius: 14px;
  transition: width 1s ease;
  position: relative;
}

.score-bar-value {
  width: 44px;
  text-align: right;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Charts */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.chart-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chart-card h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-align: center;
}

.chart-card canvas {
  width: 100%;
  display: block;
  margin: 0 auto;
}

/* Share */
.share-section {
  text-align: center;
  padding: 2rem 0;
}

.share-code {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
  margin: 1rem auto;
}

.share-code input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

.share-code input:focus {
  outline: none;
  border-color: var(--color-i);
}

/* ===== COMPARE ===== */
.compare-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: end;
  margin: 2rem 0;
}

.compare-inputs .vs {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-secondary);
  padding-bottom: 0.75rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-group input {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
}

.input-group input:focus {
  outline: none;
  border-color: var(--color-i);
}

.compare-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.compare-result {
  display: none;
}

.compare-result.active {
  display: block;
}

.compare-profiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.compare-profile {
  text-align: center;
}

.compare-profile .emoji { font-size: 2.5rem; }
.compare-profile .name { font-size: 1.2rem; font-weight: 700; margin: 0.5rem 0 0.25rem; }
.compare-profile .type-label {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* ===== AXIS SLIDERS ===== */
.axis-slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.axis-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  width: 90px;
  flex-shrink: 0;
}

.axis-label-left { text-align: right; }
.axis-label-right { text-align: left; }

.axis-track {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  position: relative;
  display: flex;
}

.axis-track-left, .axis-track-right {
  flex: 1;
  height: 100%;
}

.axis-track-left { border-radius: 4px 0 0 4px; }
.axis-track-right { border-radius: 0 4px 4px 0; }

.axis-center-line {
  position: absolute;
  left: 50%;
  top: -2px;
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.2);
}

.axis-marker {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(0,0,0,0.3);
  transition: left 0.6s ease;
}

/* ===== APPROACH TIPS ===== */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.approach-card {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
}

.approach-card .approach-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.approach-card .approach-title .approach-icon {
  font-size: 0.9rem;
}

.approach-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-primary);
}

/* ===== TYPE ICON ===== */
.result-icon {
  margin-bottom: 1rem;
}

/* ===== COMPARE MULTI ===== */
.profiles-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.profile-entry {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.profile-entry input {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
}

.profile-entry input:focus {
  outline: none;
  border-color: var(--color-i);
}

.profile-entry .profile-name { width: 120px; }
.profile-entry .profile-code { flex: 1; }

.profile-entry .remove-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.profile-entry .remove-btn:hover {
  background: rgba(230,57,70,0.15);
  border-color: var(--color-d);
  color: var(--color-d);
}

.profile-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.compare-profiles-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
}

.compare-profile-card {
  text-align: center;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  min-width: 140px;
  flex: 0 1 180px;
}

.compare-profile-card .profile-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin: 0 auto 0.5rem;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

/* ===== ALL 16 GRID ===== */
.all-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.type-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: default;
  transition: all 0.2s;
}

.type-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.type-card .type-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.type-card .type-emoji { font-size: 1.5rem; }
.type-card .type-id {
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.type-card .type-name { font-weight: 700; font-size: 1rem; }
.type-card .type-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .container { padding: 1rem; }
  .hero h1 { font-size: 2rem; }
  .result-header h1 { font-size: 1.75rem; }
  .result-grid,
  .charts-grid,
  .compare-profiles,
  .approach-grid { grid-template-columns: 1fr; }
  .compare-inputs {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .compare-inputs .vs { padding: 0; }
  .disc-grid { grid-template-columns: repeat(2, 1fr); }
  .all-types-grid { grid-template-columns: 1fr; }
  nav { flex-direction: column; gap: 0.5rem; }
  .question-card { padding: 2rem 1rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .likert-scale button { width: 48px; height: 48px; font-size: 1rem; }
  .share-code { flex-direction: column; }
  .axis-label { width: 70px; font-size: 0.65rem; }
  .profile-entry .profile-name { width: 80px; }
}

/* ===== NEW LAYOUT HELPERS ===== */
#content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.results-grid .card h3,
.card h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.type-icon { margin-bottom: 1rem; }

.type-desc {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.score-label {
  width: 110px;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.score-bar-fill {
  display: flex;
  align-items: center;
  padding-left: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(0,0,0,0.6);
}

.trait-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.trait-list.strengths li::before { content: '✦ '; color: var(--color-s); }
.trait-list.challenges li::before { content: '△ '; color: var(--color-d); }

.approach-section { margin: 1.5rem 0; }
.approach-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.approach-icon { font-size: 1.25rem; margin-bottom: 0.5rem; }
.approach-card h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.approach-card p { font-size: 0.85rem; line-height: 1.6; }

.wheel-section { text-align: center; margin: 1.5rem 0; }
.wheel-container { display: flex; justify-content: center; }
.wheel-container canvas { max-width: 400px; }

.share-section {
  text-align: center;
  margin: 1.5rem 0;
  padding: 2rem;
}
.share-code {
  display: flex;
  gap: 0.5rem;
  max-width: 600px;
  margin: 1rem auto;
  align-items: center;
}
.share-code code {
  flex: 1;
  padding: 0.6rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-primary);
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.share-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

.btn-danger {
  background: rgba(230,57,70,0.15);
  border: 1px solid var(--color-d);
  color: var(--color-d);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
}
.btn-danger:hover { background: rgba(230,57,70,0.3); }

/* ===== AXIS SLIDERS (new) ===== */
.axis-slider { margin-bottom: 0.75rem; }
.axis-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.axis-track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  position: relative;
}
.axis-thumb {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(0,0,0,0.3);
  transform: translate(-50%, -50%);
  transition: left 0.6s ease;
}

/* ===== COMPARE INPUTS (new) ===== */
.compare-header { text-align: center; padding: 3rem 0 1rem; }
.compare-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-d), var(--color-i), var(--color-s), var(--color-c));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.compare-header p { color: var(--text-secondary); margin-top: 0.75rem; }
.profiles-input { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; }
.profile-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.profile-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.profile-input-row .input {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.85rem;
}
.profile-input-row .input:focus { outline: none; border-color: var(--color-i); }
.profile-name { width: 120px; }
.profile-code { flex: 1; }
.compare-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0 2rem;
  flex-wrap: wrap;
}

/* ===== COMPARE RESULTS ===== */
.compare-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.compare-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.compare-dim-group { margin-bottom: 1rem; }
.compare-dim-group h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.5rem; }
.compare-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.compare-bar-name {
  width: 80px;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
  text-align: right;
}
.similarity-bar { margin-bottom: 0.5rem; }
.insight-item {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}
.insight-dim { font-weight: 700; width: 110px; flex-shrink: 0; }
.insight-level { font-weight: 600; width: 120px; flex-shrink: 0; }
.insight-desc { color: var(--text-secondary); }
.insights-grid { margin-top: 1rem; }

.results-grid canvas { width: 100%; display: block; }

/* Progress bar in test */
.test-container { max-width: 600px; margin: 2rem auto; }
.progress-section { margin-bottom: 1.5rem; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-d), var(--color-i), var(--color-s), var(--color-c));
  border-radius: 2px;
  transition: width 0.4s ease;
}
.question-text {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 2rem;
}
.likert-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}
.likert-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.likert-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.1);
}
.likert-btn.selected {
  background: linear-gradient(135deg, var(--color-d), var(--color-i));
  border-color: transparent;
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.3);
}
.question-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}
.intro-info {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  #content { padding: 0 1rem 1rem; }
  .results-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .profile-input-row { flex-wrap: wrap; }
  .profile-name { width: 100%; }
}
