:root {
  --bg:       #0C1220;
  --surface:  #121C2E;
  --card:     #18253D;
  --border:   rgba(255,255,255,0.08);
  --gold:     #C9A84C;
  --gold-lt:  #E8C96E;
  --gold-dim: rgba(201,168,76,0.15);
  --teal:     #4ECDC4;
  --teal-dim: rgba(78,205,196,0.12);
  --rose:     #E05C7A;
  --rose-dim: rgba(224,92,122,0.12);
  --text:     #E8EDF5;
  --muted:    #7A8BA0;
  --purple:   #7C6FEB;
  --purple-dim: rgba(124,111,235,0.12);
  --blue:     #4A9EFF;
  --blue-dim: rgba(74,158,255,0.12);
  --radius:   14px;
  --glow:     0 0 30px rgba(201,168,76,0.18);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background mesh ── */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(78,205,196,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(201,168,76,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(224,92,122,0.03) 0%, transparent 60%);
}

/* ── Header ── */
header {
  position: relative; z-index: 10;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  backdrop-filter: blur(10px);
}

.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--teal) 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #0C1220;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Fraunces', serif;
  font-size: 20px; font-weight: 600; letter-spacing: -0.3px;
}
.logo-text span { color: var(--gold); }

.header-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 12px;
}

.header-tag {
  font-size: 11px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 4px 12px;
}

.provider-select {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 4px 10px;
  color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 12px; cursor: pointer; outline: none;
}
.provider-select:focus { border-color: var(--gold); }

/* ── Stepper ── */
.stepper-wrap {
  position: relative; z-index: 10;
  padding: 28px 40px 0;
  display: flex; gap: 0; max-width: 900px; margin: 0 auto;
}
.step-item {
  display: flex; align-items: center; gap: 10px;
  flex: 1; cursor: pointer; opacity: .4;
  transition: opacity .3s;
}
.step-item.active, .step-item.done { opacity: 1; }
.step-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--muted);
  flex-shrink: 0; transition: all .3s;
}
.step-item.active .step-num { background: var(--gold); border-color: var(--gold); color: #0C1220; }
.step-item.done .step-num { background: var(--teal); border-color: var(--teal); color: #0C1220; }
.step-label { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.step-item.active .step-label { color: var(--gold); }
.step-item.done .step-label { color: var(--teal); }
.step-line { flex: 1; height: 1px; background: var(--border); margin: 0 8px; min-width: 16px; }
.step-line.done { background: var(--teal); }

/* ── Main area ── */
main {
  position: relative; z-index: 5;
  max-width: 900px; margin: 0 auto;
  padding: 36px 40px 60px;
}

.panel { display: none; }
.panel.active {
  display: block;
  animation: fadeUp .4s cubic-bezier(.22,1,.36,1) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel-title {
  font-family: 'Fraunces', serif;
  font-size: 28px; font-weight: 600;
  line-height: 1.2; margin-bottom: 6px;
}
.panel-sub {
  font-size: 14px; color: var(--muted); margin-bottom: 28px;
}

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px; margin-bottom: 20px;
}
.card-label {
  font-size: 11px; font-weight: 600; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}

textarea, input[type="text"] {
  width: 100%; background: rgba(0,0,0,0.25);
  border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 14px; line-height: 1.6; padding: 14px 16px;
  resize: vertical; outline: none; transition: border-color .2s;
}
textarea:focus, input[type="text"]:focus { border-color: var(--gold); }
textarea { min-height: 120px; }

/* Tag system */
.tags-container {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
  min-height: 44px; padding: 8px; background: rgba(0,0,0,0.2);
  border: 1px dashed var(--border); border-radius: 10px;
  align-content: flex-start;
}
.tag {
  background: var(--gold-dim); border: 1px solid rgba(201,168,76,0.3);
  border-radius: 20px; padding: 4px 12px;
  font-size: 13px; color: var(--gold-lt);
  display: flex; align-items: center; gap: 6px;
  animation: popIn .2s cubic-bezier(.34,1.56,.64,1) both;
}
.tag.teal { background: var(--teal-dim); border-color: rgba(78,205,196,0.3); color: var(--teal); }
@keyframes popIn {
  from { transform: scale(.7); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.tag-del { cursor: pointer; opacity: .5; font-size: 16px; line-height: 1; }
.tag-del:hover { opacity: 1; color: var(--rose); }
.tag-input-row { display: flex; gap: 8px; margin-top: 10px; }
.tag-input-row input { flex: 1; min-height: unset; }
.btn-add-tag {
  background: var(--gold-dim); border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold); border-radius: 10px; padding: 0 16px;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: all .2s;
}
.btn-add-tag:hover { background: var(--gold); color: #0C1220; }

.hint-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hint-chip {
  font-size: 11px; padding: 3px 10px; border-radius: 20px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--muted); cursor: pointer; transition: all .15s;
}
.hint-chip:hover { background: var(--gold-dim); color: var(--gold-lt); border-color: rgba(201,168,76,.3); }

/* ── Buttons ── */
.btn-row { display: flex; gap: 12px; justify-content: flex-end; margin-top: 28px; }
.btn {
  padding: 12px 28px; border-radius: 10px; border: none;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: all .2s;
}
.btn-ghost {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
}
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #A87C2A 100%);
  color: #0C1220; box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(201,168,76,.45); }
.btn-primary:disabled { opacity: .4; cursor: default; transform: none; }
.btn-secondary {
  background: var(--teal-dim); border: 1px solid rgba(78,205,196,0.3);
  color: var(--teal);
}
.btn-secondary:hover { background: var(--teal); color: #0C1220; }

/* ── CV Upload ── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .3s;
  background: rgba(0,0,0,0.15);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--gold);
  background: var(--gold-dim);
}
.upload-zone .upload-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.6;
}
.upload-zone .upload-text {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}
.upload-zone .upload-hint {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.6;
}
.upload-zone input[type="file"] { display: none; }

.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--teal-dim);
  border: 1px solid rgba(78,205,196,0.3);
  border-radius: 10px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--teal);
}
.file-info .file-remove {
  margin-left: auto;
  cursor: pointer;
  color: var(--rose);
  font-size: 16px;
}

/* ── Step 3: Results ── */
.results-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
}
.overall-score {
  width: 80px; height: 80px; border-radius: 50%;
  border: 3px solid var(--gold);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; flex-shrink: 0;
  box-shadow: var(--glow);
}
.score-val { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 600; color: var(--gold); }
.score-lbl { font-size: 10px; color: var(--muted); letter-spacing: .8px; }
.results-intro h2 { font-family: 'Fraunces', serif; font-size: 20px; margin-bottom: 4px; }
.results-intro p { font-size: 13px; color: var(--muted); }

/* Competency rows */
.comp-row {
  display: grid; grid-template-columns: 1fr 60px 1fr;
  gap: 0; align-items: center; margin-bottom: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.comp-cell { padding: 14px 16px; font-size: 13px; }
.comp-source { border-right: 1px solid var(--border); }
.comp-target { border-left: 1px solid var(--border); }
.comp-center {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; padding: 8px;
}
.match-badge { font-size: 13px; font-weight: 700; font-family: 'DM Mono', monospace; }
.match-bar {
  width: 40px; height: 4px; background: rgba(255,255,255,0.08);
  border-radius: 2px; overflow: hidden;
}
.match-fill { height: 100%; border-radius: 2px; transition: width 1s ease; }
.comp-name { font-weight: 600; margin-bottom: 3px; }
.comp-desc { font-size: 11px; color: var(--muted); line-height: 1.4; }
.comp-evidence { font-size: 11px; margin-top: 4px; padding: 4px 8px; background: rgba(78,205,196,.08); border-radius: 6px; color: var(--teal); }

/* Gaps & Strengths */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.mini-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.mini-title { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 12px; }
.mini-title.strengths { color: var(--teal); }
.mini-title.gaps { color: var(--rose); }
.item-chip {
  display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; font-size: 13px;
}
.item-chip .dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.dot.green { background: var(--teal); }
.dot.red { background: var(--rose); }

/* Loading */
#loading-overlay {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(12,18,32,0.9); backdrop-filter: blur(10px);
  flex-direction: column; align-items: center; justify-content: center; gap: 20px;
}
#loading-overlay.show { display: flex; }
.spinner {
  width: 48px; height: 48px; border: 3px solid var(--border);
  border-top-color: var(--gold); border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-family: 'Fraunces', serif; font-size: 18px; color: var(--gold); }
.loading-sub { font-size: 13px; color: var(--muted); text-align: center; max-width: 300px; }

/* Narrative block */
.narrative-block {
  background: linear-gradient(135deg, rgba(201,168,76,.06) 0%, rgba(78,205,196,.04) 100%);
  border: 1px solid rgba(201,168,76,.2); border-radius: 12px;
  padding: 20px; margin-bottom: 20px; font-size: 14px; line-height: 1.7;
  color: var(--text);
}
.narrative-block h3 { font-family: 'Fraunces', serif; font-size: 16px; margin-bottom: 10px; color: var(--gold); }

/* Action items */
.action-list { list-style: none; }
.action-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 13px; line-height: 1.5;
}
.action-list li:last-child { border-bottom: none; }
.action-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,.3); display: flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 700;
  color: var(--gold); flex-shrink: 0;
}

/* Domain selector */
.domain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.domain-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px; cursor: pointer;
  transition: all .2s; text-align: center;
}
.domain-card:hover { border-color: rgba(201,168,76,.4); }
.domain-card.selected { border-color: var(--gold); background: var(--gold-dim); box-shadow: var(--glow); }
.domain-card .d-icon { font-size: 24px; margin-bottom: 6px; }
.domain-card .d-name { font-size: 12px; font-weight: 600; }

/* ── Generated CV ── */
.cv-preview {
  background: #fff;
  color: #1a1a1a;
  border-radius: var(--radius);
  padding: 32px;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  margin-bottom: 20px;
}
.cv-preview h1 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  margin-bottom: 4px;
  color: #18253D;
}
.cv-preview h2 {
  font-size: 16px;
  color: #666;
  font-weight: 400;
  margin-bottom: 16px;
}
.cv-preview h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #C9A84C;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 6px;
  margin: 20px 0 10px;
}
.cv-preview p { font-size: 13px; margin-bottom: 8px; }
.cv-preview ul { padding-left: 20px; font-size: 13px; }
.cv-preview li { margin-bottom: 4px; }
.cv-preview .cv-exp-item { margin-bottom: 14px; }
.cv-preview .cv-exp-title { font-weight: 600; font-size: 14px; }
.cv-preview .cv-exp-meta { font-size: 12px; color: #888; }
.cv-preview .cv-skills-list {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.cv-preview .cv-skill-tag {
  background: #f0f0f0; border-radius: 12px; padding: 2px 10px;
  font-size: 12px; color: #333;
}

.cover-letter-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.7;
  font-style: italic;
  color: var(--text);
}
.cover-letter-block h3 {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-style: normal;
  margin-bottom: 10px;
  color: var(--teal);
}

.tips-block {
  background: var(--rose-dim);
  border: 1px solid rgba(224,92,122,0.2);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.tips-block h3 {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--rose);
}
.tips-block ul { list-style: none; }
.tips-block li {
  padding: 6px 0;
  font-size: 13px;
  display: flex; gap: 8px; align-items: flex-start;
}
.tips-block li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rose); flex-shrink: 0; margin-top: 6px;
}

/* ── Toast notifications ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  z-index: 200;
  animation: slideIn .3s ease-out;
  max-width: 400px;
}
.toast.success { background: var(--teal); color: #0C1220; }
.toast.error { background: var(--rose); color: #fff; }
.toast.info { background: var(--gold); color: #0C1220; }
@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── Extracted profile preview ── */
.profile-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.profile-preview h3 {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  margin-bottom: 4px;
}
.profile-preview .profile-title {
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 12px;
}
.profile-preview .profile-summary {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.profile-section { margin-bottom: 14px; }
.profile-section-title {
  font-size: 11px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}

/* ── Mode selector ── */
.mode-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px;
  margin: 0 auto;
}
.mode-card {
  background: var(--card); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 20px 16px; cursor: pointer;
  transition: all .3s; text-align: center;
}
.mode-card:hover { border-color: rgba(201,168,76,.4); transform: translateY(-2px); }
.mode-card.selected { border-color: var(--gold); background: var(--gold-dim); box-shadow: var(--glow); }
.mode-icon { font-size: 40px; margin-bottom: 12px; }
.mode-name { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.mode-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* University wizard */
.uni-wizard { min-height: 60px; }

.uni-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  margin-bottom: 14px;
}
.uni-crumb {
  font-size: 12px; padding: 4px 10px; border-radius: 16px;
  background: var(--teal-dim); border: 1px solid rgba(78,205,196,0.25);
  color: var(--teal); display: inline-flex; align-items: center; gap: 4px;
}
.uni-crumb.clickable { cursor: pointer; transition: all .15s; }
.uni-crumb.clickable:hover { background: var(--teal); color: #0C1220; }
.uni-crumb-sep { color: var(--muted); font-size: 11px; margin: 0 2px; }
.uni-crumb-label {
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}

.uni-options {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px; margin-bottom: 12px;
}
.uni-option {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px; cursor: pointer;
  transition: all .2s; text-align: center; font-size: 13px;
}
.uni-option:hover { border-color: rgba(201,168,76,.4); background: var(--gold-dim); }
.uni-option .uni-opt-flag { font-size: 18px; display: block; margin-bottom: 4px; }
.uni-option .uni-opt-name { font-weight: 500; line-height: 1.3; }

.uni-step-input {
  display: flex; gap: 8px; margin-top: 8px;
}
.uni-step-input input { flex: 1; min-height: unset; font-size: 13px; padding: 10px 14px; }
.uni-step-input button {
  background: var(--gold-dim); border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold); border-radius: 10px; padding: 0 16px;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 600; white-space: nowrap; transition: all .2s;
}
.uni-step-input button:hover { background: var(--gold); color: #0C1220; }

.uni-summary {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--teal-dim);
  border: 1px solid rgba(78,205,196,0.3); border-radius: 10px;
  font-size: 13px; color: var(--teal);
}
.uni-summary .uni-sum-text { flex: 1; }
.uni-summary .uni-sum-change {
  font-size: 12px; color: var(--gold); cursor: pointer;
  text-decoration: underline; white-space: nowrap;
}
.uni-summary .uni-sum-change:hover { color: var(--gold-lt); }

.uni-spinner-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 0; color: var(--muted); font-size: 13px;
}
.uni-mini-spinner {
  width: 20px; height: 20px; border: 2px solid var(--border);
  border-top-color: var(--gold); border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Year level select */
.year-select {
  width: 100%; background: rgba(0,0,0,0.25);
  border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 14px; padding: 12px 16px;
  outline: none; transition: border-color .2s;
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%237A8BA0'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.year-select:focus { border-color: var(--gold); }

/* Mode visibility — no longer needed, panels are rendered dynamically */

/* Extra academic info in results */
.academic-extra {
  background: linear-gradient(135deg, rgba(78,205,196,.06) 0%, rgba(201,168,76,.04) 100%);
  border: 1px solid rgba(78,205,196,.2); border-radius: 12px;
  padding: 20px; margin-bottom: 20px;
}
.academic-extra h3 {
  font-family: 'Fraunces', serif; font-size: 16px;
  margin-bottom: 10px; color: var(--teal);
}
.academic-extra .extra-stat {
  display: inline-block; background: var(--teal-dim);
  border: 1px solid rgba(78,205,196,0.3);
  border-radius: 8px; padding: 8px 16px; margin-right: 12px;
  margin-bottom: 8px; font-size: 13px; color: var(--teal);
}
.academic-extra .extra-stat strong { font-size: 18px; display: block; margin-bottom: 2px; }

/* Transfer plan document */
.cv-preview .tp-section { margin-bottom: 20px; }
.cv-preview .tp-course-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; border-bottom: 1px solid #eee; font-size: 13px;
}
.cv-preview .tp-semester {
  background: #f8f8f8; border-radius: 8px; padding: 14px; margin-bottom: 12px;
}
.cv-preview .tp-semester h4 {
  font-size: 13px; font-weight: 700; color: #C9A84C;
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px;
}
.cv-preview .tp-semester ul { margin: 0; padding-left: 18px; }
.cv-preview .tp-semester .tp-note { font-size: 11px; color: #888; margin-top: 6px; font-style: italic; }

/* ── Landing Hero ── */
.landing-hero {
  text-align: center; padding: 20px 0 44px; margin-bottom: 8px;
}
.hero-badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3); border-radius: 20px;
  padding: 5px 16px; margin-bottom: 16px;
}
.hero-title {
  font-family: 'Fraunces', serif; font-size: 42px; font-weight: 600;
  line-height: 1.1; letter-spacing: -0.5px; margin-bottom: 14px;
}
.hero-hl {
  background: linear-gradient(135deg, var(--gold) 0%, var(--teal) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 15px; color: var(--muted); line-height: 1.7;
  max-width: 560px; margin: 0 auto 24px;
}
.hero-stats {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.hero-stat {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 14px;
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.hero-stat-icon { font-size: 14px; }

/* ── Category Lanes ── */
.category-lanes { display: flex; flex-direction: column; gap: 16px; }
.category-lane {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 28px;
  border-left: 4px solid var(--border);
  transition: all .3s; animation: fadeUp .5s cubic-bezier(.22,1,.36,1) both;
}
.category-lane:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.lane-tools { border-left-color: var(--gold); }
.lane-tools:hover { border-color: rgba(201,168,76,0.3); border-left-color: var(--gold); }
.lane-learn { border-left-color: var(--teal); }
.lane-learn:hover { border-color: rgba(78,205,196,0.3); border-left-color: var(--teal); }
.lane-play { border-left-color: var(--rose); }
.lane-play:hover { border-color: rgba(224,92,122,0.3); border-left-color: var(--rose); }
.lane-assess { border-left-color: var(--purple); }
.lane-community { border-left-color: var(--blue); }
.lane-soon { opacity: 0.55; }
.lane-soon:hover { opacity: 0.7; }

.lane-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
}
.lane-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
}
.lane-icon-gold { background: var(--gold-dim); }
.lane-icon-teal { background: var(--teal-dim); }
.lane-icon-rose { background: var(--rose-dim); }
.lane-icon-purple { background: var(--purple-dim); }
.lane-icon-blue { background: var(--blue-dim); }

.lane-header-text { flex: 1; min-width: 0; }
.lane-title {
  font-family: 'Fraunces', serif; font-size: 20px;
  font-weight: 600; margin-bottom: 4px;
}
.lane-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.lane-count {
  font-size: 11px; font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 12px; padding: 3px 10px; white-space: nowrap; flex-shrink: 0;
}
.lane-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; padding: 2px 8px; border-radius: 8px;
  background: rgba(255,255,255,0.06); color: var(--muted);
  vertical-align: middle; margin-left: 8px;
}

.lane-preview {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px;
}
.lane-chip {
  font-size: 11px; padding: 4px 12px; border-radius: 20px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--muted);
}

.lane-action { display: flex; }
.lane-enter-btn {
  padding: 10px 24px; border-radius: 20px; border: none;
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  font-weight: 700; cursor: pointer; transition: all .2s;
}
.lane-btn-teal { background: var(--teal); color: #0C1220; }
.lane-btn-teal:hover { filter: brightness(1.1); transform: translateY(-1px); }
.lane-btn-gold { background: linear-gradient(135deg, var(--gold) 0%, #A87C2A 100%); color: #0C1220; }
.lane-btn-gold:hover { filter: brightness(1.1); transform: translateY(-1px); }
.lane-btn-rose { background: var(--rose); color: #fff; }
.lane-btn-rose:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ── Mode grid inside lanes ── */
.category-lane .mode-grid {
  margin-top: 4px;
}

/* ── Games Hub ── */
.games-hub {
  display: flex; flex-direction: column; gap: 12px; margin-top: 8px;
}
.game-hub-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  cursor: pointer; transition: all .25s;
}
.game-hub-card:hover {
  border-color: rgba(78,205,196,.4); transform: translateX(4px);
  box-shadow: 0 2px 16px rgba(78,205,196,.1);
}
.game-hub-icon { font-size: 32px; flex-shrink: 0; }
.game-hub-body { flex: 1; min-width: 0; }
.game-hub-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.game-hub-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.game-hub-meta {
  display: flex; gap: 8px; margin-top: 8px; align-items: center;
}
.game-hub-time {
  font-size: 11px; color: var(--muted); font-weight: 600;
}
.game-hub-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; padding: 2px 8px; border-radius: 10px;
  background: var(--gold-dim); border: 1px solid rgba(201,168,76,.25);
  color: var(--gold);
}
.game-hub-tag.embedded {
  background: var(--teal-dim); border-color: rgba(78,205,196,.25);
  color: var(--teal);
}
.game-hub-arrow {
  font-size: 18px; color: var(--muted); transition: all .2s; flex-shrink: 0;
}
.game-hub-card:hover .game-hub-arrow { color: var(--teal); transform: translateX(4px); }

/* ── Embedded Game Styles ── */
.game-embed { margin-top: 8px; }
.game-title {
  font-family: 'Fraunces', serif; font-size: 22px;
  font-weight: 600; margin-bottom: 8px; color: var(--gold-lt);
}
.game-progress {
  font-size: 13px; color: var(--muted); margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.game-question-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
}
.game-q-label {
  font-size: 11px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--teal); margin-bottom: 10px;
}
.game-q-text {
  font-size: 16px; line-height: 1.6; color: var(--text);
}
.game-btn-row {
  display: flex; gap: 12px; margin-bottom: 16px;
}
.game-btn-true, .game-btn-false {
  flex: 1; padding: 14px 24px; border-radius: 10px; border: 2px solid;
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: all .2s;
  background: transparent;
}
.game-btn-true {
  color: var(--teal); border-color: rgba(78,205,196,.3);
}
.game-btn-true:hover:not(:disabled) { background: var(--teal); color: #0C1220; }
.game-btn-false {
  color: var(--rose); border-color: rgba(224,92,122,.3);
}
.game-btn-false:hover:not(:disabled) { background: var(--rose); color: #fff; }
.game-btn-true:disabled, .game-btn-false:disabled { opacity: .5; cursor: default; }
.game-btn-true.highlight { background: var(--teal); color: #0C1220; opacity: 1; }
.game-btn-false.highlight { background: var(--rose); color: #fff; opacity: 1; }

.game-feedback {
  border-radius: 12px; padding: 16px 20px; margin-bottom: 16px;
}
.game-feedback.correct {
  background: var(--teal-dim); border: 1px solid rgba(78,205,196,.3);
}
.game-feedback.wrong {
  background: var(--rose-dim); border: 1px solid rgba(224,92,122,.3);
}
.game-feedback.partial {
  background: var(--gold-dim); border: 1px solid rgba(201,168,76,.3);
}
.game-fb-verdict {
  font-size: 15px; font-weight: 700; margin-bottom: 6px;
}
.game-feedback.correct .game-fb-verdict { color: var(--teal); }
.game-feedback.wrong .game-fb-verdict { color: var(--rose); }
.game-feedback.partial .game-fb-verdict { color: var(--gold); }
.game-fb-explain {
  font-size: 13px; line-height: 1.6; color: var(--text);
}
.game-next-btn { margin-bottom: 16px; }

.game-score-final {
  text-align: center; padding: 32px 20px; margin-bottom: 20px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.game-score-num {
  font-family: 'Fraunces', serif; font-size: 48px;
  font-weight: 600; color: var(--gold);
}
.game-score-pct {
  font-size: 16px; color: var(--muted); margin-bottom: 12px;
}
.game-score-msg {
  font-size: 14px; line-height: 1.6; color: var(--text);
}

/* Skill Stack game */
.stack-instructions {
  font-size: 14px; color: var(--muted); margin-bottom: 16px;
}
.stack-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; margin-bottom: 12px;
  transition: all .3s;
}
.stack-item.stack-correct { border-color: rgba(78,205,196,.5); background: var(--teal-dim); }
.stack-item.stack-wrong { border-color: rgba(224,92,122,.3); }
.stack-item-text {
  font-size: 14px; line-height: 1.6; margin-bottom: 10px; color: var(--text);
}
.stack-item-btns { display: flex; gap: 6px; }
.stack-answer {
  font-size: 12px; font-weight: 700; margin-top: 8px;
  letter-spacing: .5px;
}

/* Elevator Pitch game */
.elevator-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px;
}
.elevator-opt {
  padding: 14px 18px; border-radius: 10px;
  border: 2px solid var(--border); background: var(--card);
  color: var(--text); font-size: 14px; font-weight: 600;
  font-family: 'DM Sans', sans-serif; cursor: pointer;
  transition: all .2s; text-align: center;
}
.elevator-opt:hover:not(:disabled) {
  border-color: rgba(201,168,76,.4); background: var(--gold-dim);
}
.elevator-opt:disabled { cursor: default; opacity: .6; }
.elevator-opt.elev-correct {
  border-color: var(--teal); background: var(--teal-dim);
  color: var(--teal); opacity: 1;
}
.elevator-opt.elev-wrong {
  border-color: var(--rose); background: var(--rose-dim);
  color: var(--rose); opacity: 1;
}

/* ── Game Setup / Scenario Picker ── */
.game-setup-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.game-setup-scenarios {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px;
}
.game-scenario-btn {
  padding: 10px 18px; border-radius: 10px;
  border: 2px solid var(--border); background: var(--card);
  color: var(--text); font-size: 14px; font-weight: 600;
  font-family: 'DM Sans', sans-serif; cursor: pointer;
  transition: all .2s;
}
.game-scenario-btn:hover {
  border-color: rgba(78,205,196,.4); background: var(--teal-dim);
}
.game-scenario-btn.selected {
  border-color: var(--teal); background: var(--teal-dim); color: var(--teal);
}
.game-setup-custom {
  display: flex; gap: 10px; align-items: stretch;
}
.game-setup-custom input { flex: 1; }

/* ── Card Sort Game ── */
.sort-score-strip {
  display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.sort-score-tile {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 18px; text-align: center; flex: 1; min-width: 80px;
}
.sort-score-n {
  font-family: 'Fraunces', serif; font-size: 28px; font-weight: 600; line-height: 1; margin-bottom: 4px;
}
.sort-score-n.sort-green { color: var(--teal); }
.sort-score-n.sort-red { color: var(--rose); }
.sort-score-n.sort-gold { color: var(--gold); }
.sort-score-lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }

.sort-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px;
}
.cs-card {
  background: var(--card); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 16px; display: flex;
  flex-direction: column; min-height: 150px; transition: border-color .25s, background .25s;
}
.cs-card.cs-state-yes { border-color: var(--teal); background: rgba(78,205,196,0.04); }
.cs-card.cs-state-no { border-color: var(--rose); background: rgba(224,92,122,0.04); }
.cs-card.cs-state-unsure { border-color: var(--gold); background: rgba(201,168,76,0.04); }
.cs-card-id {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.cs-card-txt { font-size: 14px; line-height: 1.55; flex: 1; }
.cs-card-btns { display: flex; gap: 5px; margin-top: 12px; }
.cs-btn {
  flex: 1; padding: 5px 3px; border-radius: 6px; border: 1px solid;
  font-size: 11px; font-weight: 700; cursor: pointer; transition: all .2s;
  font-family: 'DM Sans', sans-serif; background: transparent;
}
.cs-btn-y { color: var(--teal); border-color: var(--teal); }
.cs-btn-y:hover, .cs-btn-y.on { background: var(--teal); color: #0C1220; }
.cs-btn-n { color: var(--rose); border-color: var(--rose); }
.cs-btn-n:hover, .cs-btn-n.on { background: var(--rose); color: #fff; }
.cs-btn-u { color: var(--gold); border-color: var(--gold); }
.cs-btn-u:hover, .cs-btn-u.on { background: var(--gold); color: #0C1220; }

.cs-reveal-header {
  font-family: 'Fraunces', serif; font-size: 16px; font-weight: 600;
  color: var(--gold); margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.cs-ritem {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.cs-ritem:last-child { border-bottom: none; }
.cs-rv {
  padding: 2px 10px; border-radius: 20px; font-size: 11px;
  font-weight: 800; white-space: nowrap; flex-shrink: 0;
}
.cs-rv-y { background: var(--teal); color: #0C1220; }
.cs-rv-n { background: var(--rose); color: #fff; }
.cs-ritem-body { flex: 1; }
.cs-rexp { color: var(--muted); line-height: 1.55; margin-top: 4px; }
.cs-user-mark { font-size: 11px; margin-left: 8px; font-weight: 600; }
.cs-user-mark.correct { color: var(--teal); }
.cs-user-mark.wrong { color: var(--rose); }

/* ── Case Autopsy Game ── */
.ca-timer-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 20px; flex-wrap: wrap;
}
.ca-timer-dig {
  font-family: 'Fraunces', serif; font-size: 36px; font-weight: 600;
  color: var(--teal); font-variant-numeric: tabular-nums; min-width: 90px;
  transition: color .4s;
}
.ca-timer-dig.ca-warn { color: var(--gold); }
.ca-timer-dig.ca-danger { color: var(--rose); animation: pulse 1s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
.ca-timer-meta { flex: 1; min-width: 140px; }
.ca-timer-lbl { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.ca-progress-wrap { height: 4px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; max-width: 260px; }
.ca-progress-fill { height: 100%; border-radius: 3px; transition: width 1s linear, background .4s; background: var(--teal); }

.ca-cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.ca-case-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.ca-alex { border-top: 3px solid var(--rose); }
.ca-sam { border-top: 3px solid var(--teal); }
.ca-case-name { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.ca-case-stat {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.ca-case-stat:last-of-type { border-bottom: none; }
.ca-ico {
  width: 24px; height: 24px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}
.ca-ico-r { background: rgba(224,92,122,0.12); }
.ca-ico-g { background: rgba(78,205,196,0.12); }
.ca-outcome {
  margin-top: 12px; padding: 8px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
}
.ca-out-bad { background: var(--rose-dim); border: 1px solid rgba(224,92,122,0.25); color: var(--rose); }
.ca-out-good { background: var(--teal-dim); border: 1px solid rgba(78,205,196,0.25); color: var(--teal); }

.ca-questions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.ca-q-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.ca-q-num {
  font-family: 'Fraunces', serif; font-size: 32px; font-weight: 600;
  opacity: .1; line-height: 1; margin-bottom: 6px;
}
.ca-q-card p { font-size: 13px; line-height: 1.65; color: var(--muted); }
.ca-q-card strong { color: var(--text); }

.ca-debrief-header {
  padding: 14px 20px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0; border-bottom: none;
  font-family: 'Fraunces', serif; font-size: 15px; font-weight: 600; color: var(--gold);
}
.ca-debrief-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
.ca-debrief-pt {
  padding: 18px 20px; border-right: 1px solid var(--border);
  background: var(--surface);
}
.ca-debrief-pt:last-child { border-right: none; }
.ca-debrief-pt h4 {
  font-size: 12px; font-weight: 700; color: var(--gold);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px;
}
.ca-debrief-pt p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.ca-socratic {
  margin-top: 14px; padding: 14px 18px; background: var(--surface);
  border: 1px solid var(--border); border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0; font-size: 13px; color: var(--muted); line-height: 1.6;
}

/* ── Competency Radar Game ── */
.radar-legend {
  display: flex; gap: 20px; margin-bottom: 16px; flex-wrap: wrap;
}
.radar-leg-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.radar-leg-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.radar-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start;
}
.radar-canvas-wrap {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  display: flex; align-items: center; justify-content: center;
}
#radarCanvas { max-width: 100%; height: auto; display: block; }

.radar-gap-panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; margin-top: 16px;
}
.radar-gap-hdr {
  padding: 10px 16px; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--border); background: var(--surface);
}
.radar-gap-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-bottom: 1px solid var(--border); font-size: 13px;
}
.radar-gap-row:last-child { border-bottom: none; }
.radar-gap-row.top { background: rgba(255,255,255,0.02); }
.radar-gap-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radar-gap-bar-wrap { width: 70px; height: 4px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.radar-gap-bar { height: 100%; border-radius: 3px; transition: width .3s, background .3s; }
.radar-gap-num {
  width: 20px; font-family: 'Fraunces', serif; font-weight: 600;
  font-size: 14px; text-align: right;
}

.radar-controls-col { display: flex; flex-direction: column; gap: 12px; }
.radar-slider-block {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px;
}
.radar-slider-title {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 10px;
}
.radar-sl-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.radar-sl-row:last-child { margin-bottom: 0; }
.radar-sl-lbl { width: 110px; font-size: 12px; color: var(--text); line-height: 1.3; flex-shrink: 0; }
.radar-sl-inp {
  flex: 1; -webkit-appearance: none; height: 4px;
  background: rgba(255,255,255,0.06); border-radius: 2px; outline: none; cursor: pointer;
}
.radar-sl-cur::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px;
  border-radius: 50%; background: var(--teal); cursor: pointer;
}
.radar-sl-cur::-moz-range-thumb { width:14px;height:14px;border:none;border-radius:50%;background:var(--teal);cursor:pointer; }
.radar-sl-tgt::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px;
  border-radius: 50%; background: var(--gold); cursor: pointer;
}
.radar-sl-tgt::-moz-range-thumb { width:14px;height:14px;border:none;border-radius:50%;background:var(--gold);cursor:pointer; }
.radar-sl-val {
  width: 18px; font-family: 'Fraunces', serif; font-size: 14px; font-weight: 600; text-align: right;
}

.radar-action-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px;
}
.radar-action-card h4 {
  font-family: 'Fraunces', serif; font-size: 14px; font-weight: 600;
  color: var(--gold); margin-bottom: 8px;
}
#radarActionTxt { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ── Educational / Learn Mode ── */
.learn-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px; margin-top: 8px;
}
.learn-card {
  background: var(--card); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 22px 18px; cursor: pointer;
  transition: all .3s; text-align: center;
}
.learn-card:hover {
  border-color: rgba(78,205,196,.5); transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(78,205,196,.15);
}
.learn-card-icon { font-size: 36px; margin-bottom: 10px; }
.learn-card-name { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.learn-card-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }

.learn-back {
  margin-bottom: 20px; font-size: 13px;
}

.learn-loading {
  display: flex; align-items: center; gap: 10px;
  padding: 32px 0; color: var(--muted); font-size: 14px;
}
.learn-error {
  color: var(--rose); padding: 16px; font-size: 14px;
  background: var(--rose-dim); border-radius: 10px;
}

.learn-title {
  font-family: 'Fraunces', serif; font-size: 24px;
  margin-bottom: 8px; color: var(--gold-lt);
}
.learn-intro {
  font-size: 15px; line-height: 1.7; color: var(--text);
  margin-bottom: 24px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.learn-section {
  margin-bottom: 24px;
}
.learn-section h3 {
  font-family: 'Fraunces', serif; font-size: 17px;
  color: var(--teal); margin-bottom: 8px;
}
.learn-section p {
  font-size: 14px; line-height: 1.7; color: var(--text);
  margin-bottom: 10px;
}
.learn-items {
  list-style: none; padding: 0;
}
.learn-items li {
  padding: 6px 0; padding-left: 20px; font-size: 13px;
  line-height: 1.6; color: var(--text); position: relative;
}
.learn-items li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); position: absolute; left: 0; top: 12px;
}

.learn-example {
  background: linear-gradient(135deg, rgba(78,205,196,.08) 0%, rgba(201,168,76,.05) 100%);
  border: 1px solid rgba(78,205,196,.2); border-radius: 12px;
  padding: 20px; margin: 24px 0;
}
.learn-example-label {
  font-size: 11px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--teal); margin-bottom: 8px;
}
.learn-example-scenario {
  font-size: 15px; font-weight: 600; margin-bottom: 8px;
  color: var(--text);
}
.learn-example p { font-size: 14px; line-height: 1.7; color: var(--text); margin: 0; }

.learn-takeaway {
  background: var(--gold-dim); border: 1px solid rgba(201,168,76,.25);
  border-radius: 12px; padding: 16px 20px; margin: 20px 0;
}
.learn-takeaway-label {
  font-size: 11px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 6px;
}
.learn-takeaway p { font-size: 14px; line-height: 1.6; color: var(--gold-lt); margin: 0; }

.learn-try {
  background: linear-gradient(135deg, rgba(201,168,76,.08) 0%, rgba(224,92,122,.05) 100%);
  border: 1px solid rgba(201,168,76,.2); border-radius: 12px;
  padding: 16px 20px; margin: 20px 0;
}
.learn-try-label {
  font-size: 11px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--rose); margin-bottom: 6px;
}
.learn-try p { font-size: 14px; line-height: 1.6; color: var(--text); margin: 0; }

.learn-related {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.learn-related-label {
  font-size: 12px; font-weight: 600; color: var(--muted);
}

.learn-ask {
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--border);
}

.learn-followup-answer {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; margin-top: 16px;
}
.learn-followup-q {
  font-size: 13px; color: var(--gold); font-weight: 600;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.learn-followup-answer h3 {
  font-family: 'Fraunces', serif; font-size: 17px;
  color: var(--teal); margin-bottom: 8px;
}
.learn-followup-answer h4 {
  font-size: 14px; font-weight: 600; color: var(--text);
  margin: 14px 0 6px;
}
.learn-followup-answer p {
  font-size: 14px; line-height: 1.7; color: var(--text);
  margin-bottom: 8px;
}

/* ── Assessments Mode ── */
.assess-hub { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.assess-setup { max-width: 500px; }
.assess-setup input { width: 100%; margin-bottom: 8px; }
.assess-dimension {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; margin-bottom: 12px;
}
.assess-dimension-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.assess-dimension-desc { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.assess-slider-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted); margin-top: 4px; padding: 0 4px;
}
.assess-gap-item {
  border-left: 3px solid var(--gold); padding-left: 14px;
  margin-bottom: 12px; font-size: 14px;
}
.quiz-option {
  display: block; width: 100%; text-align: left;
  padding: 12px 16px; border: 2px solid var(--border);
  border-radius: 10px; cursor: pointer; margin-bottom: 8px;
  background: var(--card); color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  line-height: 1.5; transition: all .2s;
}
.quiz-option:hover:not(:disabled) { border-color: rgba(78,205,196,.4); }
.quiz-option:disabled { cursor: default; }
.quiz-opt-correct { border-color: var(--teal); background: var(--teal-dim); }
.quiz-opt-wrong { border-color: var(--rose); background: var(--rose-dim); }

/* ── Community Mode ── */
.community-hub { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.stories-picker-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.paths-input-row {
  display: flex; gap: 8px; align-items: center; margin-top: 8px;
}
.paths-input-row input { flex: 1; }

.story-persona-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; margin-bottom: 20px;
}
.story-persona-name { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.story-persona-meta { font-size: 13px; color: var(--teal); margin-bottom: 8px; }
.story-persona-bg { font-size: 13px; color: var(--muted); line-height: 1.5; }
.story-timeline-badge {
  display: inline-block; background: var(--teal-dim);
  border: 1px solid rgba(78,205,196,0.25); color: var(--teal);
  padding: 3px 10px; border-radius: 12px; font-size: 12px;
  font-weight: 600; margin-top: 8px;
}

.story-timeline { border-left: 2px solid var(--teal); padding-left: 20px; margin: 8px 0; }
.story-timeline-step { position: relative; padding-bottom: 18px; }
.story-timeline-step:last-child { padding-bottom: 0; }
.story-timeline-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal); position: absolute;
  left: -25px; top: 5px;
}
.story-stage-header { font-size: 14px; margin-bottom: 4px; }
.story-stage-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }

.story-comp-insight {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px; margin-bottom: 10px;
}
.story-comp-name { font-weight: 600; font-size: 14px; color: var(--teal); margin-bottom: 6px; }
.story-comp-detail { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 4px; }

.path-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px; margin-bottom: 14px;
}
.path-card-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.path-card-name { font-weight: 600; font-size: 16px; }
.paths-factors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }

@media (max-width: 600px) {
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  header, main, .stepper-wrap { padding-left: 20px; padding-right: 20px; }
  .comp-row { grid-template-columns: 1fr; }
  .comp-source, .comp-target { border: none; }
  .comp-center { flex-direction: row; padding: 0 16px 14px; }
  .header-right { gap: 8px; }
  .hero-title { font-size: 30px; }
  .hero-stats { flex-direction: column; align-items: center; }
  .lane-header { flex-direction: column; text-align: center; }
  .lane-icon { margin: 0 auto; }
  .lane-count { margin-top: 4px; }
  .lane-action { justify-content: center; }
  .learn-grid { grid-template-columns: repeat(2, 1fr); }
  .sort-grid { grid-template-columns: 1fr; }
  .ca-cases-grid { grid-template-columns: 1fr; }
  .ca-questions { grid-template-columns: 1fr; }
  .ca-debrief-grid { grid-template-columns: 1fr; }
  .ca-debrief-pt { border-right: none; border-bottom: 1px solid var(--border); }
  .ca-debrief-pt:last-child { border-bottom: none; }
  .radar-layout { grid-template-columns: 1fr; }
  .elevator-options { grid-template-columns: 1fr; }
  .paths-input-row { flex-direction: column; }
  .paths-input-row span { display: none; }
  .paths-factors-grid { grid-template-columns: 1fr; }
}
