/* All application styles for the Career Readiness Evaluator.
   Loaded by index.html. No build step — plain CSS, no preprocessor. */

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

:root {
  --bg: #0d0f14;
  --surface: #161820;
  --surface2: #1e2028;
  --surface3: #262830;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text: #f0f0ee;
  --text2: #9a9b9f;
  --text3: #5a5c62;
  --accent: #c8a96e;
  --accent2: #e8c98e;
  --blue: #4e8ef7;
  --green: #4caf82;
  --amber: #e8a030;
  --red: #e05555;
  --purple: #9b7fe8;
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* HEADER */
.header {
  padding: 3rem 2rem 2rem;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}
.header-left h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.header-left h1 em { color: var(--accent); font-style: italic; }
.header-left p { color: var(--text2); font-size: 14px; }
.level-badge {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  text-align: center;
  min-width: 160px;
  flex-shrink: 0;
}
.level-badge .lb-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text3); margin-bottom: 4px; }
.level-badge .lb-title { font-size: 16px; font-weight: 600; color: var(--accent); }
.level-badge .lb-score { font-size: 28px; font-weight: 600; color: var(--text); margin-top: 2px; }
.level-badge .lb-max { font-size: 13px; color: var(--text3); }

/* CAREER LADDER */
.ladder-wrap {
  max-width: 960px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
}
.ladder {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ladder-step {
  flex: 1;
  padding: 0.875rem 0.75rem;
  text-align: center;
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}
.ladder-step:last-child { border-right: none; }
.ladder-step .ls-label { font-size: 12px; font-weight: 500; }
.ladder-step .ls-sub { font-size: 11px; color: var(--text3); margin-top: 2px; }
.ladder-step.done { background: rgba(76,175,130,0.08); }
.ladder-step.done .ls-label { color: var(--green); }
.ladder-step.current { background: rgba(200,169,110,0.12); }
.ladder-step.current .ls-label { color: var(--accent2); }
.ladder-step.current::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 40%; height: 2px; background: var(--accent); border-radius: 2px 2px 0 0; }
.ladder-step.next { background: rgba(78,142,247,0.06); }
.ladder-step.next .ls-label { color: var(--blue); }
.ladder-step.far { background: var(--surface); }
.ladder-step.far .ls-label { color: var(--text3); }

/* MAIN LAYOUT */
.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* SECTION TITLE */
.section-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 1rem;
}

/* OVERALL SCORE */
.score-overview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.score-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.score-bar-item { }
.sb-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sb-label { font-size: 13px; color: var(--text2); }
.sb-val { font-size: 13px; font-weight: 600; color: var(--text); }
.sb-track { height: 5px; background: var(--surface3); border-radius: 3px; overflow: hidden; }
.sb-fill { height: 100%; border-radius: 3px; transition: width 1s cubic-bezier(0.4,0,0.2,1); }

/* DIMENSION CARDS */
.dimensions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.dim-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}
.dim-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0.8;
}
.dim-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.dim-card.active { border-color: var(--accent); }
.dim-card.active::before { background: var(--accent); }
.dim-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; }
.dim-name { font-size: 14px; font-weight: 500; color: var(--text); }
.dim-score-badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.dim-desc { font-size: 12px; color: var(--text2); line-height: 1.5; margin-bottom: 0.875rem; }
.dim-bar-wrap { }
.dim-bar-track { height: 4px; background: var(--surface3); border-radius: 3px; overflow: hidden; position: relative; }
.dim-bar-fill { height: 100%; border-radius: 3px; transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }
.dim-bar-target { position: absolute; top: -3px; width: 2px; height: 10px; background: var(--text3); border-radius: 1px; }
.dim-bar-meta { display: flex; justify-content: space-between; margin-top: 5px; font-size: 11px; color: var(--text3); }

/* DETAIL PANEL */
.detail-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: none;
}
.detail-panel.visible { display: block; }
.detail-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.detail-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.detail-title-group h3 { font-size: 17px; font-weight: 600; color: var(--text); }
.detail-title-group p { font-size: 13px; color: var(--text2); }
.detail-score-row { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.detail-metric { background: var(--surface2); border-radius: var(--radius-sm); padding: 0.75rem 1rem; flex: 1; }
.detail-metric .dm-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
.detail-metric .dm-val { font-size: 22px; font-weight: 600; }
.detail-tabs { display: flex; gap: 4px; margin-bottom: 1rem; }
.detail-tab { font-size: 12px; padding: 5px 12px; border-radius: 6px; cursor: pointer; border: 1px solid transparent; color: var(--text3); transition: all 0.15s; }
.detail-tab.active { border-color: var(--border2); color: var(--text); background: var(--surface2); }
.detail-tab-content { display: none; }
.detail-tab-content.active { display: block; }

/* EVIDENCE LIST */
.evidence-list { list-style: none; }
.evidence-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text2); align-items: flex-start; }
.evidence-item:last-child { border-bottom: none; }
.ev-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }

/* GAP LIST */
.gap-list { list-style: none; }
.gap-item { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text2); }
.gap-item:last-child { border-bottom: none; }
.gap-item strong { color: var(--text); font-weight: 500; display: block; margin-bottom: 2px; }

/* ACTION CARDS */
.action-list { display: flex; flex-direction: column; gap: 8px; }
.action-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.action-priority { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; flex-shrink: 0; margin-top: 1px; }
.pri-now { background: rgba(232,160,48,0.15); color: var(--amber); }
.pri-soon { background: rgba(78,142,247,0.12); color: var(--blue); }
.pri-later { background: rgba(155,127,232,0.12); color: var(--purple); }
.action-body strong { font-size: 13px; font-weight: 500; color: var(--text); display: block; margin-bottom: 2px; }
.action-body p { font-size: 12px; color: var(--text2); line-height: 1.5; }
.action-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 12px; color: var(--accent); text-decoration: none; }
.action-link:hover { text-decoration: underline; }

/* AI PANEL */
.ai-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.ai-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.ai-panel-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text); }
.ai-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.ai-select-row { display: flex; gap: 8px; margin-bottom: 1rem; flex-wrap: wrap; }
.ai-select-btn {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--text2);
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.ai-select-btn:hover { color: var(--text); border-color: var(--accent); }
.ai-select-btn.active { background: rgba(200,169,110,0.12); border-color: var(--accent); color: var(--accent); }
.ai-output {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  min-height: 80px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text2);
  position: relative;
}
.ai-output.loading { color: var(--text3); }
.ai-output .ai-text p { margin-bottom: 0.5rem; }
.ai-output .ai-text p:last-child { margin-bottom: 0; }
.ai-output .ai-text strong { color: var(--text); font-weight: 500; }
.ai-output .ai-text ul { padding-left: 1.25rem; margin: 0.25rem 0; }
.ai-output .ai-text li { margin-bottom: 3px; }
.typing-cursor { display: inline-block; width: 2px; height: 14px; background: var(--accent); margin-left: 2px; vertical-align: middle; animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.ai-run-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.875rem;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  background: rgba(200,169,110,0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
}
.ai-run-btn:hover { background: rgba(200,169,110,0.18); }
.ai-run-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ASSESS ROW */
.assess-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.assess-card { display: flex; flex-direction: column; }
.card-desc { font-size: 12px; color: var(--text3); margin-bottom: 1.25rem; line-height: 1.6; }
.assess-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }
.af-label { font-size: 12px; color: var(--text3); }
.af-score { font-size: 22px; font-weight: 600; }
.af-score.accent { color: var(--accent); }
.af-score.blue { color: var(--blue); }

/* SELF ASSESS SLIDERS */
#selfAssessGrid { display: flex; flex-direction: column; gap: 0.875rem; flex: 1; }
.sa-item {}
.sa-header { display: flex; justify-content: space-between; margin-bottom: 5px; }
.sa-label { font-size: 12px; color: var(--text2); }
.sa-val { font-size: 12px; font-weight: 600; color: var(--accent); }
input[type=range] { -webkit-appearance:none; width:100%; height:3px; background:var(--surface3); border-radius:2px; outline:none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; width:14px; height:14px; border-radius:50%; background:var(--accent); cursor:pointer; border:2px solid var(--bg); }

/* TEST CTA */
.test-cta-card { }
.test-dim-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 1.25rem; }
.tdp { font-size: 11px; padding: 3px 8px; border-radius: 20px; border: 1px solid var(--border); color: var(--text3); }
.tdp.done { border-color: transparent; color: #4caf82; background: rgba(76,175,130,0.1); }
.test-cta-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem 1rem; text-align: center; background: var(--surface2); border-radius: var(--radius-sm); margin-bottom: 1rem; gap: 0.875rem; }
.test-cta-icon { color: var(--text3); }
.test-cta-icon.complete { color: var(--green); }
.test-cta-text { font-size: 13px; color: var(--text3); line-height: 1.6; }
.test-start-btn { font-size: 13px; font-weight: 500; padding: 9px 22px; border-radius: var(--radius-sm); background: var(--accent); color: #1a1610; border: none; cursor: pointer; font-family: inherit; transition: opacity 0.15s, transform 0.1s; }
.test-start-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.test-retake-btn { font-size: 12px; padding: 6px 16px; border-radius: var(--radius-sm); background: transparent; color: var(--text3); border: 1px solid var(--border2); cursor: pointer; font-family: inherit; transition: all 0.15s; }
.test-retake-btn:hover { color: var(--text); border-color: var(--text2); }

/* DIM RETAKE ROW */
.dim-retake-row { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid var(--border); margin-top: 0.5rem; }
.dim-retake-btn { font-size: 12px; padding: 5px 12px; border-radius: var(--radius-sm); background: transparent; border: 1px solid var(--border2); color: var(--text3); cursor: pointer; font-family: inherit; transition: all 0.15s; white-space: nowrap; }
.dim-retake-btn:hover { color: var(--accent); border-color: var(--accent); }
.dim-retake-meta { font-size: 11px; color: var(--text3); }

/* TEST HISTORY */
.test-history { padding-top: 0.75rem; border-top: 1px solid var(--border); margin-top: 0.75rem; }
.thr-heading { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); margin-bottom: 4px; }
.test-history-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 12px; }
.thr-date { color: var(--text3); }
.thr-score { color: var(--text2); font-weight: 500; }

/* BLEND BAR */
.blend-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.blend-left { }
.blend-meters { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.blend-meter { text-align: center; min-width: 56px; }
.bm-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 2px; }
.bm-val { font-size: 26px; font-weight: 600; }
.bm-val.accent { color: var(--accent); }
.bm-val.blue { color: var(--blue); }
.bm-val.green { color: var(--green); }
.blend-op { font-size: 18px; color: var(--text3); padding-top: 16px; }
.recalc-btn { font-size: 13px; padding: 8px 18px; border-radius: var(--radius-sm); background: rgba(200,169,110,0.1); border: 1px solid var(--accent); color: var(--accent); cursor: pointer; font-family: inherit; transition: all 0.15s; }
.recalc-btn:hover { background: rgba(200,169,110,0.18); }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.2s; padding: 1rem; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box { background: var(--surface); border: 1px solid var(--border2); border-radius: 16px; width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column; transform: translateY(16px); transition: transform 0.25s cubic-bezier(0.4,0,0.2,1); }
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem 1rem; }
.modal-header-left { display: flex; align-items: center; gap: 0.75rem; }
.modal-dim-badge { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.modal-progress-text { font-size: 12px; color: var(--text3); }
.modal-close { background: none; border: none; color: var(--text3); cursor: pointer; font-size: 16px; padding: 4px 8px; border-radius: 6px; transition: color 0.15s, background 0.15s; }
.modal-close:hover { color: var(--text); background: var(--surface2); }
.modal-progress-track { height: 2px; background: var(--surface3); margin: 0 1.5rem; border-radius: 1px; overflow: hidden; }
.modal-progress-fill { height: 100%; border-radius: 1px; transition: width 0.4s cubic-bezier(0.4,0,0.2,1); }
.modal-body { padding: 1.75rem 1.5rem 1rem; flex: 1; }
.modal-question { font-size: 16px; font-weight: 500; color: var(--text); line-height: 1.6; margin-bottom: 1.5rem; }
.modal-options { display: flex; flex-direction: column; gap: 10px; }
.modal-option { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface2); cursor: pointer; transition: all 0.15s; }
.modal-option:hover { border-color: var(--border2); background: var(--surface3); }
.modal-option.selected { border-color: currentColor; }
.modal-option-radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--text3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; transition: all 0.15s; }
.modal-option.selected .modal-option-radio { border-color: currentColor; }
.modal-option-radio-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0; transform: scale(0); transition: all 0.15s; }
.modal-option.selected .modal-option-radio-dot { opacity: 1; transform: scale(1); }
.modal-option-text { font-size: 13px; color: var(--text2); line-height: 1.55; transition: color 0.15s; }
.modal-option.selected .modal-option-text { color: var(--text); }
.modal-footer { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem 1.5rem; border-top: 1px solid var(--border); }
.modal-dot-row { display: flex; gap: 5px; align-items: center; }
.mdot { width: 6px; height: 6px; border-radius: 50%; background: var(--surface3); transition: all 0.2s; }
.mdot.answered { background: var(--text3); }
.mdot.current { width: 18px; border-radius: 3px; }
.modal-nav-btn { font-size: 13px; padding: 8px 18px; border-radius: var(--radius-sm); cursor: pointer; font-family: inherit; transition: all 0.15s; }
.modal-nav-btn.secondary { background: transparent; border: 1px solid var(--border2); color: var(--text3); }
.modal-nav-btn.secondary:hover { color: var(--text); border-color: var(--text2); }
.modal-nav-btn.secondary:disabled { opacity: 0.3; cursor: not-allowed; }
.modal-nav-btn.primary { background: rgba(200,169,110,0.1); border: 1px solid var(--accent); color: var(--accent); font-weight: 500; }
.modal-nav-btn.primary:hover { background: rgba(200,169,110,0.2); }
.modal-nav-btn.primary:disabled { opacity: 0.35; cursor: not-allowed; }
.modal-nav-btn.submit { background: rgba(76,175,130,0.12); border-color: var(--green); color: var(--green); }
.modal-nav-btn.submit:hover { background: rgba(76,175,130,0.22); }

/* RESULTS SCREEN */
.modal-results { padding: 0.5rem 0; }
.results-score-big { text-align: center; padding: 1.5rem 0 1.75rem; }
.results-score-big .rs-label { font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.results-score-big .rs-num { font-size: 64px; font-weight: 600; color: var(--blue); line-height: 1; }
.results-score-big .rs-sub { font-size: 13px; color: var(--text3); margin-top: 4px; }
.results-dim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 1.25rem; }
.rdg-item { background: var(--surface2); border-radius: 8px; padding: 10px 12px; }
.rdg-name { font-size: 11px; color: var(--text3); margin-bottom: 6px; }
.rdg-bar-row { display: flex; align-items: center; gap: 8px; }
.rdg-track { flex: 1; height: 3px; background: var(--surface3); border-radius: 2px; overflow: hidden; }
.rdg-fill { height: 100%; border-radius: 2px; }
.rdg-val { font-size: 12px; font-weight: 600; min-width: 26px; text-align: right; }

/* NEXT STEP BANNER */
.next-step-banner {
  background: linear-gradient(135deg, rgba(200,169,110,0.08) 0%, rgba(78,142,247,0.06) 100%);
  border: 1px solid rgba(200,169,110,0.25);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.nsb-icon { font-size: 2rem; flex-shrink: 0; }
.nsb-content h3 { font-size: 15px; font-weight: 600; color: var(--accent2); margin-bottom: 4px; }
.nsb-content p { font-size: 13px; color: var(--text2); line-height: 1.6; }
.nsb-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0.75rem; }
.nsb-pill { font-size: 11px; padding: 4px 10px; border-radius: 20px; background: var(--surface2); border: 1px solid var(--border2); color: var(--text2); }

/* RADAR / CHART */
#radarChart { display: block; margin: 0 auto; }

/* FOOTER */
.footer { text-align: center; padding: 2rem; font-size: 12px; color: var(--text3); }

/* ANIMATIONS */
@keyframes fadeUp { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.5s ease forwards; }
.fade-up-1 { animation-delay: 0.1s; opacity:0; }
.fade-up-2 { animation-delay: 0.2s; opacity:0; }
.fade-up-3 { animation-delay: 0.3s; opacity:0; }
.fade-up-4 { animation-delay: 0.4s; opacity:0; }

/* ONBOARDING MODAL */
.onboarding-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
  padding: 1rem;
}
.onboarding-box {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  width: 100%; max-width: 560px;
  padding: 2.5rem;
  animation: fadeUp 0.3s ease;
}
.onboarding-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.onboarding-logo em { color: var(--accent); font-style: italic; }
.onboarding-subtitle { font-size: 13px; color: var(--text3); margin-bottom: 2rem; }
.ob-field { margin-bottom: 1.5rem; }
.ob-label { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); margin-bottom: 0.75rem; display: block; }
.ob-options { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-option {
  font-size: 13px;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.ob-option:hover { border-color: var(--accent); color: var(--text); }
.ob-option.selected { background: rgba(200,169,110,0.12); border-color: var(--accent); color: var(--accent); }
.ob-option:disabled { opacity: 0.35; cursor: not-allowed; }
.ob-name-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.15s;
}
.ob-name-input:focus { border-color: var(--accent); }
.ob-name-input::placeholder { color: var(--text3); }
.ob-start-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #1a1610;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: opacity 0.15s, transform 0.1s;
  margin-top: 0.5rem;
}
.ob-start-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.ob-start-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

@media (max-width: 640px) {
  .assess-row { grid-template-columns: 1fr; }
  .blend-bar { flex-direction: column; align-items: flex-start; }
  .results-dim-grid { grid-template-columns: 1fr; }
  .dimensions-grid { grid-template-columns: 1fr; }
  .score-bars { grid-template-columns: 1fr; }
  .header { flex-direction: column; }
  .detail-score-row { flex-wrap: wrap; }
  .ladder-step .ls-sub { display: none; }
}

/* ============================================================
   MULTI-STEP ONBOARDING MODAL
   ============================================================ */

/* The backdrop reuses .onboarding-overlay from above.
   New styles begin with .ob-* */

.ob-modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: obModalIn 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes obModalIn {
  from { opacity: 0; transform: scale(0.97) translateY(10px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

/* Header — brand + dots */
.ob-header {
  padding: 1.5rem 2rem 0.875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.ob-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text2);
}
.ob-brand em { color: var(--accent); font-style: italic; }

.ob-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ob-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--surface3);
  border: none;
  padding: 0;
  cursor: default;
  transition: all 0.22s;
  flex-shrink: 0;
}
.ob-dot.visited  { background: var(--text3); cursor: pointer; }
.ob-dot.visited:hover { background: var(--text2); }
.ob-dot.active   { width: 22px; border-radius: 4px; background: var(--accent); cursor: default; }

/* Progress bar */
.ob-progress-track {
  height: 2px;
  background: var(--surface3);
  flex-shrink: 0;
}
.ob-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Body + step wrapper */
.ob-body {
  padding: 2rem 2rem 1.25rem;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.ob-step-wrap {
  /* JS controls opacity + translateX for slide animation */
}

/* Step typography */
.ob-step-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text3);
  margin-bottom: 0.6rem;
}
.ob-step-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.ob-step-sub {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

/* Text input */
.ob-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 15px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ob-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.1);
}
.ob-input::placeholder { color: var(--text3); }

/* Field card grid (Step 2) */
.ob-field-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ob-field-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 12px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  font-family: 'DM Sans', sans-serif;
  text-align: left;
}
.ob-field-card:hover { border-color: var(--border2); background: var(--surface3); transform: translateY(-1px); }
.ob-field-card.selected { border-color: var(--accent); background: rgba(200,169,110,0.1); }
.ob-field-card.selected:hover { transform: none; }

.ob-field-icon {
  font-size: 16px;
  color: var(--text3);
  line-height: 1;
}
.ob-field-card.selected .ob-field-icon { color: var(--accent); }

.ob-field-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  line-height: 1.3;
}
.ob-field-card.selected .ob-field-label { color: var(--text); }

/* Select dropdown (Steps 3 & 4) */
.ob-select-wrap { position: relative; }
.ob-select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 13px 40px 13px 16px;
  font-size: 14px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0.5 0.5L5 5L9.5 0.5' stroke='%235a5c62' stroke-width='1.3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.ob-select:focus { border-color: var(--accent); }
.ob-select option { background: var(--surface2); color: var(--text); }

.ob-hint { font-size: 13px; color: var(--text3); margin-top: 0.875rem; line-height: 1.5; }

/* Location (Step 5) */
.ob-location-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 1.25rem;
}
.ob-input-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  display: block;
  margin-bottom: 6px;
}

/* Toggle switch */
.ob-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 2px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.ob-toggle-label { font-size: 14px; color: var(--text2); }
.ob-toggle {
  width: 42px; height: 24px;
  border-radius: 12px;
  background: var(--surface3);
  border: 1px solid var(--border2);
  cursor: pointer;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
  flex-shrink: 0;
}
.ob-toggle.on { background: var(--accent); border-color: var(--accent); }
.ob-toggle-knob {
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--text3);
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), background 0.2s;
  pointer-events: none;
}
.ob-toggle.on .ob-toggle-knob { transform: translateX(18px); background: #1a1610; }

/* Experience sliders (Step 6) */
.ob-slider-group { margin-bottom: 1.75rem; }
.ob-slider-group:last-child { margin-bottom: 0; }
.ob-slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ob-slider-label { font-size: 14px; color: var(--text2); }
.ob-slider-val { font-size: 17px; font-weight: 600; color: var(--accent); }
.ob-range {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--surface3);
  border-radius: 2px;
  outline: none;
}
.ob-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px rgba(200,169,110,0.35);
  transition: box-shadow 0.15s;
}
.ob-range::-webkit-slider-thumb:hover { box-shadow: 0 0 12px rgba(200,169,110,0.55); }
.ob-range-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 11px;
  color: var(--text3);
  padding: 0 2px;
}

/* CV placeholder (Step 7) */
.ob-cv-placeholder {
  background: var(--surface2);
  border: 1px dashed var(--border2);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
}
.ob-cv-icon { font-size: 2rem; color: var(--text3); margin-bottom: 1rem; }
.ob-cv-title { font-size: 15px; font-weight: 500; color: var(--text2); margin-bottom: 0.5rem; }
.ob-cv-sub { font-size: 12px; color: var(--text3); line-height: 1.6; max-width: 380px; margin: 0 auto 1.25rem; }
.ob-cv-skip {
  font-size: 12px;
  color: var(--text3);
  background: none;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.15s, border-color 0.15s;
}
.ob-cv-skip:hover { color: var(--text); border-color: var(--text2); }

/* Footer — back + next */
.ob-footer {
  padding: 1rem 2rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.ob-back-btn {
  font-size: 13px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text3);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.15s, border-color 0.15s;
}
.ob-back-btn:hover { color: var(--text); border-color: var(--text2); }
.ob-next-btn {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 26px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #1a1610;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 2px 12px rgba(200,169,110,0.25);
}
.ob-next-btn:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(200,169,110,0.35); }
.ob-next-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; box-shadow: none; }

/* Header subtitle profile display */
.hs-name   { color: var(--text);  font-weight: 500; }
.hs-field  { color: var(--text2); }
.hs-level  { color: var(--accent); }
.hs-loc    { color: var(--text3); }
.hs-sep    { color: var(--text3); margin: 0 1px; }

/* New evaluation button in header */
/* "New evaluation" — primary CTA, solid gold fill */
.new-eval-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 16px;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}
.new-eval-btn:hover  { opacity: 0.88; }
.new-eval-btn:active { transform: scale(0.97); }

/* When no profile is loaded, make it even more prominent */
body.no-profile .new-eval-btn {
  padding: 9px 20px;
  font-size: 14px;
  box-shadow: 0 0 18px rgba(200,169,110,0.35);
}

/* Hide low-signal buttons until there's actual data to act on */
body.no-profile .snap-save-header-btn,
body.no-profile #saveIndicator,
body.no-profile button[onclick="clearSavedState()"] {
  display: none !important;
}

@media (max-width: 640px) {
  .ob-field-grid   { grid-template-columns: repeat(2, 1fr); }
  .ob-location-row { grid-template-columns: 1fr; }
  .ob-body         { padding: 1.5rem 1.25rem 1rem; }
  .ob-header       { padding: 1.25rem 1.25rem 0.75rem; }
  .ob-footer       { padding: 0.875rem 1.25rem 1.5rem; }
  .ob-step7-cards  { grid-template-columns: 1fr; }
}

/* ==================== STEP 7 — CV / LINKEDIN IMPORT ==================== */

.ob-step7-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  margin-top: 1rem;
}

.ob-import-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.ob-import-card-hd {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ob-import-card-desc {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.55;
  margin: 0;
}

/* Drop zone */
.ob-drop-zone {
  border: 1.5px dashed var(--border2);
  border-radius: 8px;
  padding: 1.25rem 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: default;
  transition: border-color 0.2s, background 0.2s;
  flex: 1;
}

.ob-drop-zone.dragover,
.ob-drop-zone:has(#obFileInput:focus) {
  border-color: var(--accent);
  background: rgba(200,169,110,0.04);
}

.ob-drop-icon {
  font-size: 1.5rem;
  color: var(--text3);
  margin-bottom: 0.15rem;
}

.ob-drop-main {
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  margin: 0;
}

.ob-drop-sub {
  font-size: 11px;
  color: var(--text3);
  margin: 0;
}

.ob-file-btn {
  margin-top: 0.4rem;
  padding: 5px 14px;
  border: 1px solid var(--border2);
  border-radius: 6px;
  background: var(--surface3);
  color: var(--text2);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.ob-file-btn:hover { border-color: var(--accent); color: var(--accent); }

/* File accepted state */
.ob-file-accepted {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: rgba(76,175,130,0.08);
  border: 1px solid rgba(76,175,130,0.22);
  border-radius: 8px;
  padding: 0.75rem 0.875rem;
  flex: 1;
}

.ob-fa-icon {
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.ob-fa-info {
  flex: 1;
  min-width: 0;
}

.ob-fa-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ob-fa-size {
  font-size: 11px;
  color: var(--text3);
  margin-top: 1px;
}

.ob-fa-remove {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 13px;
  padding: 2px 5px;
  border-radius: 4px;
  transition: color 0.15s;
  font-family: inherit;
}
.ob-fa-remove:hover { color: var(--red); }

/* LinkedIn card */
.ob-li-hint {
  font-size: 11px;
  color: var(--text3);
  line-height: 1.5;
  margin: 0;
}

.ob-li-error {
  font-size: 11px;
  color: var(--red);
  margin: 0;
}

.ob-input-error { border-color: var(--red) !important; }

/* Skip link */
.ob-step7-skip {
  text-align: center;
  margin-top: 0.875rem;
}

.ob-skip-link {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  transition: color 0.18s;
}
.ob-skip-link:hover { color: var(--text2); }

/* CV loading state */
.ob-cv-loading {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.ob-cv-spinner {
  width: 36px;
  height: 36px;
  border: 2.5px solid var(--surface3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: obSpin 0.75s linear infinite;
}

@keyframes obSpin {
  to { transform: rotate(360deg); }
}

.ob-cv-loading-msg {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.ob-cv-loading-detail {
  font-size: 12px;
  color: var(--text3);
  margin-top: -0.25rem;
}

/* CV confirmation */
.ob-cv-confirm {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.125rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.ob-cv-confirm-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.45;
}

.ob-cci-check {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.ob-cv-confirm-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.125rem;
  flex-wrap: wrap;
}

/* CV error */
.ob-cv-error {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(224,85,85,0.07);
  border: 1px solid rgba(224,85,85,0.18);
  border-radius: 12px;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
}

.ob-cv-error-msg {
  font-size: 13px;
  color: var(--red);
  line-height: 1.5;
}

/* ==================== AI CV SCORING ==================== */

/* Scored badge on dim cards */
.cv-scored-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(76,175,130,0.1);
  border: 1px solid rgba(76,175,130,0.2);
  border-radius: 20px;
  padding: 2px 8px;
  margin-top: 4px;
}

/* Analyzing badge on dim cards (while scoring) */
.cv-scoring-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text3);
  background: var(--surface3);
  border-radius: 20px;
  padding: 2px 8px;
  margin-top: 4px;
  animation: cvScoringPulse 1.4s ease-in-out infinite;
}

/* Skeleton pulse on score badge */
.skeleton-pulse {
  opacity: 0.45;
  animation: cvScoringPulse 1.4s ease-in-out infinite;
}

@keyframes cvScoringPulse {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 1; }
}

/* Status row inside self-assessment card */
.cv-scoring-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text3);
  padding: 6px 0 2px;
}

.cv-scoring-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: cvScoringPulse 1.1s ease-in-out infinite;
  flex-shrink: 0;
}

.cv-scored-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text3);
  padding: 6px 0 2px;
  flex-wrap: wrap;
}

.cv-scored-check {
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
}

.cv-rescore-btn {
  font-size: 11px;
  color: var(--text3);
  background: none;
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 3px 10px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s, border-color 0.2s;
}

.cv-rescore-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* AI rationale text in detail panel */
.detail-rationale {
  font-size: 12px;
  color: var(--text3);
  margin-top: 0.75rem;
  font-style: italic;
  line-height: 1.55;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

/* Date badge inside detail tab label */
.detail-tab-date {
  font-size: 11px;
  color: var(--text3);
  font-weight: 400;
  margin-left: 6px;
  font-style: normal;
}

/* ==================== DYNAMIC QUESTIONS ==================== */

/* Option explanation shown after answering */
.modal-option-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.option-explanation {
  font-size: 11.5px;
  color: var(--text3);
  line-height: 1.55;
  margin-top: 2px;
  font-style: italic;
}

.option-explanation.best-explain {
  color: rgba(200,169,110,0.85);
}

/* Answer state classes on options */
.modal-option.answered-other {
  opacity: 0.4;
  pointer-events: none;
}

.modal-option.answered-correct {
  border-color: rgba(76,175,130,0.4);
  background: rgba(76,175,130,0.07);
}

.modal-option.answered-wrong {
  border-color: rgba(224,85,85,0.35);
  background: rgba(224,85,85,0.06);
}

.modal-option.best-answer {
  border-color: rgba(200,169,110,0.35);
  background: rgba(200,169,110,0.06);
}

/* Explanation footer bar */
.modal-explanation-footer {
  margin-top: 1rem;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.modal-explanation-footer.correct {
  background: rgba(76,175,130,0.1);
  color: #4caf82;
  border: 1px solid rgba(76,175,130,0.2);
}

.modal-explanation-footer.incorrect {
  background: rgba(232,160,48,0.08);
  color: var(--amber);
  border: 1px solid rgba(232,160,48,0.2);
}

.mef-icon {
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

/* Generating spinner arc animation */
@keyframes genSpin {
  to { transform: rotate(360deg); transform-origin: center; }
}

.test-cta-icon.generating svg {
  animation: genSpin 1.1s linear infinite;
}

.gen-spinner-arc {
  transform-origin: center;
}

/* Personalised badge */
.test-personalised-badge {
  font-size: 11px;
  color: var(--accent);
  opacity: 0.8;
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* Generate new questions button */
.generate-new-btn {
  font-size: 11px;
  color: var(--text3);
  background: none;
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.generate-new-btn:hover {
  color: var(--accent);
  border-color: rgba(200,169,110,0.4);
}

/* ==================== MARKET INTELLIGENCE ==================== */

.market-intel-panel {
  /* reuses .score-overview card styles */
}

/* Header row */
.mi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}
.mi-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.mi-updated {
  font-size: 11px;
  color: var(--text3);
}
.mi-refresh-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text3);
  background: none;
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.mi-refresh-btn:hover { color: var(--accent); border-color: rgba(200,169,110,0.4); }

/* Tab navigation */
.mi-tab-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.mi-tab-btn {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  background: none;
  color: var(--text3);
  font-family: inherit;
  transition: all 0.15s;
}
.mi-tab-btn:hover { color: var(--text2); border-color: var(--border2); }
.mi-tab-btn.active { border-color: var(--border2); color: var(--text); background: var(--surface2); }

/* Tab body */
.mi-tab-body { min-height: 200px; }

/* Skeleton loader */
.mi-skeleton { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.mi-skel-row {
  height: 12px;
  background: var(--surface2);
  border-radius: 6px;
  animation: cvScoringPulse 1.4s ease-in-out infinite;
}

/* Empty / error states */
.mi-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem 1rem;
  color: var(--text3);
  font-size: 13px;
  text-align: center;
}
.mi-error-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 2rem 1rem;
  color: var(--amber);
  font-size: 13px;
  flex-wrap: wrap;
  text-align: center;
}
.mi-error-icon { font-size: 16px; }
.mi-load-btn {
  font-size: 12px;
  padding: 6px 16px;
  border-radius: 6px;
  background: rgba(200,169,110,0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.mi-load-btn:hover { background: rgba(200,169,110,0.18); }

/* Two-column layout for skills and trends */
.mi-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Sub-headings inside tabs */
.mi-sub-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 0.75rem;
}
.mi-sub-heading.rising-label  { color: rgba(76,175,130,0.8); }
.mi-sub-heading.declining-label { color: rgba(224,85,85,0.7); }

/* Source summary */
.mi-source {
  font-size: 11px;
  color: var(--text3);
  font-style: italic;
  margin-top: 1rem;
  line-height: 1.5;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

/* ── Skills tab ── */
.mi-skill-list { display: flex; flex-direction: column; gap: 0; }
.mi-skill-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.mi-skill-row:last-child { border-bottom: none; }

/* Rank number */
.mi-skill-rank {
  font-size: 11px;
  color: var(--text3);
  font-weight: 500;
  width: 18px;
  text-align: right;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Skill name + tag + bar stacked */
.mi-skill-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mi-skill-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mi-skill-name {
  font-size: 13px;
  color: var(--text2);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Frequency bar */
.mi-freq-bar-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}
.mi-freq-bar {
  flex: 1;
  height: 4px;
  background: var(--surface3);
  border-radius: 3px;
  overflow: hidden;
  max-width: 140px;
}
.mi-freq-bar-fill {
  height: 100%;
  border-radius: 3px;
  opacity: 0.85;
}
.mi-freq-label {
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0.8;
}

/* Skill tags */
.mi-skill-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.mi-skill-tag.has {
  background: rgba(76,175,130,0.1);
  color: var(--green);
  border: 1px solid rgba(76,175,130,0.2);
}
.mi-skill-tag.gap {
  background: rgba(224,85,85,0.08);
  color: var(--red);
  border: 1px solid rgba(224,85,85,0.18);
}

/* Gap summary chip next to sub-heading */
.mi-gap-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(224,85,85,0.08);
  color: var(--red);
  border: 1px solid rgba(224,85,85,0.18);
  white-space: nowrap;
}
.mi-company-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.mi-company-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text2);
}
.mi-company-type { color: var(--text3); }
.mi-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mi-list li {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}
.mi-list li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--text3);
}

/* ── Trends tab ── */
.mi-trend-list { display: flex; flex-direction: column; gap: 8px; }
.mi-trend-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.mi-trend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.mi-trend-skill { font-size: 13px; font-weight: 500; color: var(--text); }
.mi-trend-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.mi-trend-badge.rising   { background: rgba(76,175,130,0.1);  color: var(--green); border: 1px solid rgba(76,175,130,0.2); }
.mi-trend-badge.declining { background: rgba(224,85,85,0.08); color: var(--red);   border: 1px solid rgba(224,85,85,0.18); }
.mi-trend-reason { font-size: 12px; color: var(--text3); line-height: 1.5; margin: 0; }
.mi-empty-col { font-size: 12px; color: var(--text3); font-style: italic; }
.mi-emerging-list { display: flex; flex-direction: column; gap: 6px; }
.mi-emerging-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 7px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.mi-emerging-name { font-size: 13px; color: var(--text2); }
.mi-emerging-time { font-size: 11px; color: var(--purple); background: rgba(155,127,232,0.1); padding: 2px 8px; border-radius: 20px; border: 1px solid rgba(155,127,232,0.2); white-space: nowrap; }

/* ── Salary tab ── */
.mi-salary-wrap { }
.mi-salary-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.mi-sal-end { font-size: 12px; color: var(--text3); font-weight: 500; }
.mi-sal-title { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.07em; }
.mi-salary-track {
  position: relative;
  height: 8px;
  background: var(--surface3);
  border-radius: 4px;
  margin-bottom: 2.5rem;
}
.mi-salary-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(78,142,247,0.25) 0%, rgba(200,169,110,0.5) 100%);
  border-radius: 4px;
}
.mi-salary-median {
  position: absolute;
  top: -3px;
  transform: translateX(-50%);
}
.mi-sal-med-pip {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px rgba(200,169,110,0.4);
  margin: 0 auto;
}
.mi-sal-med-label {
  font-size: 11px;
  color: var(--accent);
  text-align: center;
  margin-top: 5px;
  line-height: 1.4;
  white-space: nowrap;
}
.mi-sal-med-label span { font-size: 11px; color: var(--text3); }
.mi-sal-metrics {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.mi-sal-metric { flex: 1; min-width: 80px; }
.mi-sal-ml { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
.mi-sal-mv { font-size: 18px; font-weight: 600; color: var(--text); }
.mi-sal-mv.accent { color: var(--accent); }
.mi-sal-mv.blue   { color: var(--blue); }
.mi-sal-comparison {
  font-size: 12px;
  color: var(--text2);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.mi-sal-notes {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .mi-two-col { grid-template-columns: 1fr; }
  .mi-sal-metrics { gap: 0.75rem; }
  .nw-card-grid { grid-template-columns: 1fr; }
}

/* ==================== BUILD YOUR NETWORK (Tab 4) ==================== */

/* Outreach tip banner */
.nw-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(200,169,110,0.07);
  border: 1px solid rgba(200,169,110,0.18);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text2);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.nw-tip-icon { flex-shrink: 0; font-size: 14px; margin-top: 1px; }

/* Section sub-headings */
.nw-section-head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 0.75rem;
}

/* Card grid — 2 columns */
.nw-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Individual person card */
.nw-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s;
}
.nw-card:hover { border-color: var(--border2); }

.nw-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Avatar initials circle */
.nw-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(78,142,247,0.15);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.nw-avatar-purple {
  background: rgba(155,127,232,0.15);
  color: var(--purple);
}

.nw-card-info { flex: 1; min-width: 0; }
.nw-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 2px;
}
.nw-verified {
  font-size: 11px;
  color: var(--blue);
  font-weight: 700;
}
.nw-role {
  font-size: 11px;
  color: var(--text2);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nw-location {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}
.nw-why {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.55;
  margin: 0;
  font-style: italic;
}
.nw-focus-tag {
  font-size: 11px;
  color: var(--purple);
  background: rgba(155,127,232,0.1);
  border: 1px solid rgba(155,127,232,0.2);
  border-radius: 20px;
  padding: 2px 8px;
  display: inline-block;
  align-self: flex-start;
}

/* Card action buttons */
.nw-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}
.nw-li-btn {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(78,142,247,0.1);
  border: 1px solid rgba(78,142,247,0.25);
  color: var(--blue);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  white-space: nowrap;
}
.nw-li-btn:hover { background: rgba(78,142,247,0.18); }
.nw-li-btn-sm { padding: 3px 8px; font-size: 11px; }

.nw-outreach-btn {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: none;
  border: 1px solid var(--border2);
  color: var(--text3);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  white-space: nowrap;
}
.nw-outreach-btn:hover { color: var(--accent); border-color: rgba(200,169,110,0.35); }
.nw-outreach-btn.copied { color: var(--green); border-color: rgba(76,175,130,0.35); background: rgba(76,175,130,0.07); }
.nw-outreach-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Communities list */
.nw-community-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nw-community-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.nw-community-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.nw-community-type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid;
  flex-shrink: 0;
}
.nw-community-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  flex: 1;
}
.nw-community-desc {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
  margin: 0 0 3px;
}
.nw-community-rel {
  font-size: 11px;
  color: var(--text3);
  font-style: italic;
  margin: 0;
}

/* Disclaimer */
.nw-disclaimer {
  font-size: 11px;
  color: var(--text3);
  font-style: italic;
  margin-top: 1.25rem;
  line-height: 1.5;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

/* ==================== INTERVIEW PREP ==================== */

/* Entry section */
.ip-entry {
  margin-bottom: 0;
}
.ip-entry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.ip-start-btn {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.ip-start-btn:hover { background: var(--accent); color: var(--bg); }

.ip-dim-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.ip-dim-pill {
  background: none;
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.15s;
}
.ip-dim-pill:hover { background: var(--surface2); }
.ip-dim-pill-score {
  background: var(--surface3);
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 11px;
  color: var(--text2);
}

.ip-history-row {
  border-top: 1px solid var(--border);
  padding-top: 0.875rem;
  margin-top: 0.25rem;
}
.ip-history-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  display: block;
  margin-bottom: 0.5rem;
}
.ip-history-list { display: flex; flex-direction: column; gap: 0.4rem; }
.ip-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.ip-history-dim { font-weight: 500; }
.ip-history-meta { color: var(--text3); font-size: 12px; }
.ip-history-empty { font-size: 13px; color: var(--text3); font-style: italic; }

/* Interview prep — no sessions empty state */
.ip-no-sessions {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface2);
  border: 1px dashed var(--border2);
  border-radius: var(--radius-sm);
}
.ip-no-sessions-icon { font-size: 1.75rem; flex-shrink: 0; opacity: 0.65; }
.ip-no-sessions-body { flex: 1; min-width: 0; }
.ip-no-sessions-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.ip-no-sessions-sub {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.55;
  margin: 0 0 0.75rem;
}
.ip-no-sessions-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(200,169,110,0.08);
  border: 1px solid rgba(200,169,110,0.25);
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.ip-no-sessions-btn:hover {
  background: rgba(200,169,110,0.15);
  border-color: rgba(200,169,110,0.45);
}

/* Dim card practice row */
.dim-practice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}
.dim-practice-stat { font-size: 11px; color: var(--text3); }
.dim-practice-btn {
  background: none;
  border: 1px solid var(--border2);
  color: var(--text2);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.dim-practice-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Modal overlay */
.ip-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  padding: 1rem;
}
.ip-modal.active {
  opacity: 1;
  pointer-events: all;
}
.ip-box {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  position: relative;
}

.ip-close-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.25rem;
}
.ip-close-btn {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.ip-close-btn:hover { color: var(--text); }

/* Select screen */
.ip-select-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.ip-select-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.ip-select-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.4rem; }
.ip-select-sub { font-size: 13px; color: var(--text2); }
.ip-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
@media (max-width: 480px) { .ip-select-grid { grid-template-columns: 1fr; } }
.ip-select-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.ip-select-card:hover { border-color: var(--border2); background: var(--surface3); }
.ip-select-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.25rem; }
.ip-select-dim-name { font-size: 13px; font-weight: 500; }
.ip-select-gap { font-size: 11px; }
.ip-select-practice-info { font-size: 11px; color: var(--text2); }

/* Generating / evaluating screen */
.ip-generating {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  gap: 1rem;
}
.ip-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--surface3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.ip-gen-text {
  font-size: 14px;
  color: var(--text2);
  text-align: center;
  line-height: 1.6;
}

/* Question screen */
.ip-q-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.ip-q-header-left { display: flex; align-items: center; gap: 0.75rem; }
.ip-q-dim-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
}
.ip-q-progress { font-size: 12px; color: var(--text3); }
.ip-progress-track {
  height: 3px;
  background: var(--surface3);
  border-radius: 2px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.ip-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}
.ip-q-body { margin-bottom: 1rem; }
.ip-q-star-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-bottom: 0.5rem;
}
.ip-question-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.ip-star-hint {
  font-size: 12px;
  color: var(--text3);
  background: var(--surface2);
  border-radius: 6px;
  padding: 6px 10px;
  display: inline-block;
}
.ip-answer-wrap { margin-bottom: 0.75rem; }
.ip-answer-ta {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  min-height: 160px;
  transition: border-color 0.15s;
}
.ip-answer-ta:focus { outline: none; border-color: var(--accent); }
.ip-answer-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 12px;
}
.ip-word-count { font-weight: 500; color: var(--text3); transition: color 0.2s; }
.ip-word-target { color: var(--text3); }
.ip-timer-toggle {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  margin-left: auto;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ip-timer {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  font-variant-numeric: tabular-nums;
  background: var(--surface2);
  padding: 3px 10px;
  border-radius: 6px;
}
.ip-timer.ip-timer-warn { color: var(--red); background: rgba(224,85,85,0.1); }
.ip-q-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.ip-skip-btn {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ip-submit-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
}
.ip-submit-btn:hover { opacity: 0.9; }

/* Result screen */
.ip-result-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.ip-result-score-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ip-result-score-num { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.ip-result-score-label { font-size: 11px; color: var(--text3); }
.ip-result-verdict { font-size: 14px; font-weight: 500; margin-bottom: 0.25rem; line-height: 1.4; }
.ip-result-dim { font-size: 12px; }
.ip-result-sections {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.ip-result-section {
  background: var(--surface2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border-left: 3px solid transparent;
}
.ip-result-strengths   { border-left-color: var(--green); }
.ip-result-improvements{ border-left-color: var(--amber); }
.ip-result-missed      { border-left-color: var(--blue); }
.ip-result-structure   { border-left-color: var(--purple); }
.ip-result-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text3);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.ip-result-section ul { padding-left: 1rem; margin: 0; }
.ip-result-section li { font-size: 13px; color: var(--text2); line-height: 1.5; margin-bottom: 2px; }
.ip-result-section p  { font-size: 13px; color: var(--text2); margin: 0; line-height: 1.5; }
.ip-followup-box {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
}
.ip-followup-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text3);
  margin-bottom: 0.4rem;
}
.ip-followup-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 0.75rem;
  line-height: 1.4;
}
.ip-answer-followup-btn {
  background: none;
  border: 1px solid var(--border2);
  color: var(--text2);
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.ip-answer-followup-btn:hover { border-color: var(--accent); color: var(--accent); }
.ip-followup-your-answer {
  font-size: 13px;
  color: var(--text2);
  font-style: italic;
  line-height: 1.5;
  border-left: 2px solid var(--border2);
  padding-left: 0.75rem;
}
.ip-result-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.ip-retry-btn {
  background: none;
  border: 1px solid var(--border2);
  color: var(--text2);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.ip-retry-btn:hover { border-color: var(--text2); color: var(--text); }
.ip-next-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
}
.ip-next-btn:hover { opacity: 0.9; }

/* Summary screen */
.ip-summary-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.ip-summary-score {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  line-height: 1;
  min-width: 80px;
}
.ip-summary-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.2rem; }
.ip-summary-dim { font-size: 13px; }
.ip-summary-stats {
  display: flex;
  gap: 1.5rem;
  background: var(--surface2);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
}
.ip-summary-stat {}
.ip-sum-stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text3); margin-bottom: 2px; }
.ip-sum-stat-val { font-size: 16px; font-weight: 600; }
.ip-sum-q-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.ip-sum-q {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 13px;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.ip-sum-q:last-child { border-bottom: none; }
.ip-sum-q-num { font-weight: 600; color: var(--text3); min-width: 24px; }
.ip-sum-q-text { flex: 1; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-sum-q-score { font-weight: 600; white-space: nowrap; }
.ip-coaching-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
}
.ip-coaching-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text3);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.ip-coaching-content p { font-size: 13px; color: var(--text2); line-height: 1.6; margin: 0; }
.ip-coaching-loading { font-size: 13px; color: var(--text3); font-style: italic; }
.ip-summary-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ==================== SNAPSHOT SYSTEM ==================== */

/* Header button */
.snap-save-header-btn {
  font-size: 11px;
  color: var(--text2);
  background: none;
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.snap-save-header-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Empty callout */
.snap-empty-callout {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.snap-empty-icon { font-size: 2rem; flex-shrink: 0; }
.snap-empty-text { flex: 1; min-width: 200px; }
.snap-empty-title { font-size: 14px; font-weight: 600; margin-bottom: 0.25rem; }
.snap-empty-sub   { font-size: 13px; color: var(--text2); margin: 0; line-height: 1.5; }

/* Progress section card */
.snap-section {}
.snap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.snap-compare-btn {
  background: none;
  border: 1px solid var(--border2);
  color: var(--text2);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.snap-compare-btn:hover { border-color: var(--blue); color: var(--blue); }
.snap-save-now-btn {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.snap-save-now-btn:hover { background: var(--accent); color: var(--bg); }

/* Milestones */
.snap-milestones { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.snap-milestone {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 500;
}
.snap-milestone-jump { background: rgba(78,142,247,0.1); color: var(--blue); }
.snap-milestone-best { background: rgba(200,169,110,0.1); color: var(--accent); }

/* Dimension toggle row */
.snap-dim-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.snap-dim-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.snap-dim-btn:hover { border-color: var(--border2); color: var(--text2); }
.snap-dim-btn.active {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(78,142,247,0.1);
}

/* Chart wrapper */
.snap-chart-wrap {
  width: 100%;
  height: 220px;
  position: relative;
  margin-bottom: 1.5rem;
}

/* Snapshot list */
.snap-list-section {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 0.25rem;
}
.snap-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.snap-list-title { font-size: 13px; font-weight: 500; color: var(--text2); }
.snap-export-btn {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}
.snap-export-btn:hover { color: var(--text2); }
.snap-list { display: flex; flex-direction: column; }
.snap-list-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.snap-list-item:last-child { border-bottom: none; }
.snap-list-meta { flex: 1; min-width: 0; }
.snap-list-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.snap-list-date { font-size: 11px; color: var(--text3); }
.snap-list-score {
  font-size: 18px;
  font-weight: 700;
  min-width: 34px;
  text-align: center;
}
.snap-list-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
.snap-action-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text3);
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.snap-action-btn:hover { border-color: var(--border2); color: var(--text2); }
.snap-delete-btn:hover { border-color: var(--red); color: var(--red); }
.snap-action-save:hover { border-color: var(--green); color: var(--green); }
.snap-rename-input {
  background: var(--surface2);
  border: 1px solid var(--accent);
  border-radius: 5px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 3px 8px;
  width: 100%;
  outline: none;
}

/* Save checkpoint prompt modal */
.snap-prompt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  padding: 1rem;
}
.snap-prompt-overlay.active { opacity: 1; pointer-events: all; }
.snap-prompt-box {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 1.75rem;
  width: 100%;
  max-width: 420px;
}
.snap-prompt-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.4rem; }
.snap-prompt-sub   { font-size: 13px; color: var(--text2); margin-bottom: 1rem; line-height: 1.5; }
.snap-label-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 0.625rem 0.875rem;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.15s;
}
.snap-label-input:focus { border-color: var(--accent); }
.snap-prompt-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.625rem;
}
.snap-prompt-cancel {
  background: none;
  border: 1px solid var(--border2);
  color: var(--text2);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.snap-prompt-save {
  background: var(--accent);
  border: none;
  color: var(--bg);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
}
.snap-prompt-save:hover { opacity: 0.9; }

/* Compare modal */
.snap-compare-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  padding: 1rem;
}
.snap-compare-overlay.active { opacity: 1; pointer-events: all; }
.snap-compare-box {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 1.75rem;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
}
.snap-compare-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 1.25rem; }
.snap-compare-selects {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.snap-compare-select {
  flex: 1;
  min-width: 160px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  padding: 7px 10px;
  outline: none;
  cursor: pointer;
}
.snap-compare-vs { font-size: 12px; color: var(--text3); flex-shrink: 0; }
.snap-compare-overall {
  background: var(--surface2);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
.snap-co-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text3);
  margin-bottom: 4px;
}
.snap-co-val { font-size: 2rem; font-weight: 700; line-height: 1; }
.snap-co-sub { font-size: 14px; color: var(--text2); }
.snap-compare-dims { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.snap-compare-dim-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.snap-compare-dim-row:last-child { border-bottom: none; }
.snap-compare-dim-name { flex: 1; font-weight: 500; }
.snap-compare-scores { font-size: 11px; color: var(--text3); white-space: nowrap; }
.snap-delta-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.snap-compare-summary {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.snap-compare-toprow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.snap-compare-toplabel {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  margin-right: 0.2rem;
}

/* Radar ghost toggle */
.radar-ghost-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text3);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}
.radar-ghost-btn:hover { border-color: var(--border2); color: var(--text2); }
.radar-ghost-btn.active {
  border-color: rgba(255,255,255,0.3);
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

/* ==================== JOB ANALYSIS ==================== */

/* Header buttons */
/* "Analyse a job" — secondary outlined button */
.ja-analyse-hdr-btn {
  background: rgba(200,169,110,0.08);
  color: var(--accent);
  border: 1px solid rgba(200,169,110,0.4);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.ja-analyse-hdr-btn:hover {
  background: rgba(200,169,110,0.16);
  border-color: var(--accent);
}

.ja-saved-wrap { position: relative; }
.ja-saved-hdr-btn {
  background: none;
  border: 1px solid var(--border2);
  color: var(--text2);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.ja-saved-hdr-btn:hover { border-color: var(--accent); color: var(--accent); }
.ja-saved-count {
  background: var(--accent);
  color: var(--bg);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}

/* Saved jobs dropdown */
.ja-saved-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 500;
  overflow: hidden;
}
.ja-drop-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--border);
}
.ja-drop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.12s;
  border-bottom: 1px solid var(--border);
}
.ja-drop-item:last-child { border-bottom: none; }
.ja-drop-item:hover { background: var(--surface2); }
.ja-drop-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ja-drop-company { font-size: 11px; color: var(--text3); }
.ja-drop-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ja-drop-date { font-size: 11px; color: var(--text3); }
.ja-drop-score { font-size: 18px; font-weight: 700; }
.ja-drop-del {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1;
}
.ja-drop-del:hover { color: var(--red); background: rgba(224,85,85,0.1); }

/* Modal overlay & box */
.ja-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  padding: 1rem;
}
.ja-overlay.active { opacity: 1; pointer-events: all; }
.ja-box {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Input screen */
.ja-close-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.75rem 0;
}
.ja-input-title { font-size: 1.25rem; font-weight: 600; margin: 0; }
.ja-input-sub   { font-size: 13px; color: var(--text2); margin: 0.5rem 1.75rem 0; line-height: 1.5; }
.ja-no-cv-notice {
  margin: 0.75rem 1.75rem 0;
  background: rgba(232,160,48,0.1);
  border: 1px solid rgba(232,160,48,0.3);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--amber);
}
.ja-tab-row {
  display: flex;
  gap: 0;
  margin: 1rem 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.ja-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text3);
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  padding: 8px 16px 10px;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.ja-tab-btn.active { color: var(--text); border-bottom-color: var(--accent); }
.ja-tab-btn:hover:not(.active) { color: var(--text2); }
.ja-tab-pane { padding: 1.25rem 1.75rem 1.75rem; }
.ja-url-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  outline: none;
  transition: border-color 0.15s;
}
.ja-url-input:focus { border-color: var(--accent); }
.ja-jd-textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  padding: 0.875rem 1rem;
  margin-bottom: 0.5rem;
  resize: vertical;
  min-height: 200px;
  outline: none;
  transition: border-color 0.15s;
}
.ja-jd-textarea:focus { border-color: var(--accent); }
.ja-input-hint { font-size: 12px; color: var(--text3); margin-bottom: 1rem; }
.ja-fetch-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
}
.ja-fetch-btn:hover { opacity: 0.9; }

/* Loading screen */
.ja-loading-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.75rem;
  gap: 1.25rem;
}

/* Results screen */
.ja-results-header {
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.ja-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.ja-bc-company { font-size: 12px; color: var(--text3); }
.ja-bc-sep     { font-size: 12px; color: var(--text3); }
.ja-bc-title   { font-size: 14px; font-weight: 600; color: var(--text); }
.ja-bc-loc     { font-size: 12px; color: var(--text3); }
.ja-fit-hero   {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1rem;
}
.ja-fit-score {
  font-family: 'DM Serif Display', serif;
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 400;
}
.ja-fit-max    { font-size: 1.2rem; color: var(--text3); }
.ja-fit-meta   { display: flex; flex-direction: column; gap: 0.35rem; }
.ja-verdict-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
}
.ja-fit-sublabel { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.07em; }

/* Results body */
.ja-results-body { padding: 1.5rem 1.75rem; display: flex; flex-direction: column; gap: 1.5rem; }
.ja-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .ja-two-col { grid-template-columns: 1fr; } }
.ja-col {}
.ja-col-heading { font-size: 12px; font-weight: 600; color: var(--text2); margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; }
.ja-skill-pills { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.75rem; }
.ja-skill-pill  { font-size: 12px; padding: 3px 9px; border-radius: 12px; font-weight: 500; }
.ja-pill-matched { background: rgba(76,175,130,0.12);  color: var(--green); }
.ja-pill-partial { background: rgba(232,160,48,0.12); color: var(--amber); }
.ja-pill-missing { background: rgba(224,85,85,0.1);   color: var(--red);   }
.ja-pill-empty   { font-size: 12px; color: var(--text3); font-style: italic; }
.ja-bullet-list  { display: flex; flex-direction: column; gap: 0.3rem; }
.ja-bullet-item  { font-size: 13px; line-height: 1.45; }
.ja-bullet-strength { color: var(--text2); }
.ja-bullet-gap      { color: var(--text3); }

/* Category bars */
.ja-cat-section { display: flex; flex-direction: column; gap: 0.5rem; }
.ja-section-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text3); margin-bottom: 0.25rem; }
.ja-cat-row   { display: grid; grid-template-columns: 130px 1fr 36px; align-items: center; gap: 0.6rem; }
.ja-cat-label { font-size: 13px; color: var(--text2); }
.ja-cat-track { height: 6px; background: var(--surface3); border-radius: 3px; overflow: hidden; }
.ja-cat-fill  { height: 100%; border-radius: 3px; transition: width 0.5s; }
.ja-cat-score { font-size: 13px; font-weight: 600; text-align: right; }
.ja-cat-note  { font-size: 11px; color: var(--text3); padding-left: 0; margin-top: -2px; grid-column: 2 / 4; }

/* Recommendation box */
.ja-rec-box {
  border-radius: 10px;
  padding: 1rem 1.25rem;
  border-left: 3px solid transparent;
}
.ja-rec-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text3); margin-bottom: 4px; }
.ja-rec-val   { font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; }
.ja-cl-section { display: flex; flex-direction: column; gap: 0.4rem; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 0.75rem; }
.ja-cl-angle  { font-size: 13px; color: var(--text2); line-height: 1.4; }
.ja-cl-prefix { color: var(--accent); font-weight: 500; }

/* Collapsibles */
.ja-collapsible { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.ja-collapse-hdr {
  width: 100%;
  background: var(--surface2);
  border: none;
  color: var(--text2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: background 0.15s;
}
.ja-collapse-hdr:hover { background: var(--surface3); }
.ja-collapse-count {
  font-size: 11px;
  background: var(--surface3);
  border-radius: 10px;
  padding: 2px 8px;
  color: var(--text3);
}
.ja-collapse-body { padding: 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.ja-iq-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.ja-iq-item:last-child { border-bottom: none; }
.ja-iq-text    { font-size: 13px; color: var(--text2); flex: 1; line-height: 1.45; }
.ja-iq-practice {
  background: none;
  border: 1px solid var(--border2);
  color: var(--text3);
  border-radius: 5px;
  padding: 3px 10px;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}
.ja-iq-practice:hover { border-color: var(--accent); color: var(--accent); }
.ja-nego-item  { font-size: 13px; color: var(--text2); padding: 4px 0; }
.ja-nego-empty { font-size: 13px; color: var(--text3); font-style: italic; margin: 0; }

/* Results footer */
.ja-results-footer {
  padding: 1rem 1.75rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ja-footer-btn {
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s, border-color 0.15s, color 0.15s;
}
.ja-footer-primary   { background: var(--accent); color: var(--bg); border: none; font-weight: 600; }
.ja-footer-primary:hover { opacity: 0.9; }
.ja-footer-secondary { background: none; border: 1px solid var(--blue); color: var(--blue); }
.ja-footer-secondary:hover { background: rgba(78,142,247,0.1); }
.ja-footer-ghost     { background: none; border: 1px solid var(--border2); color: var(--text2); }
.ja-footer-ghost:hover { border-color: var(--text2); color: var(--text); }

/* Mobile FAB */
.ja-fab {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(200,169,110,0.35);
  z-index: 700;
  transition: transform 0.15s, box-shadow 0.15s;
}
.ja-fab:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(200,169,110,0.45); }
@media (max-width: 600px) {
  .ja-fab { display: flex; }
  .ja-analyse-hdr-btn { display: none; }
}

/* =====================================================
   UI POLISH — mobile, loading states, empty states,
   error states, transitions, a11y, typography
   ===================================================== */

/* ── Shimmer / skeleton animation ───────────────────── */
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton {
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface2) 25%, var(--surface3) 50%, var(--surface2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  color: transparent !important;
  pointer-events: none;
}
.skeleton-block { display: block; height: 14px; border-radius: 4px; }
.skeleton-pulse { animation: shimmer 1.5s infinite; background: linear-gradient(90deg, var(--surface3) 25%, rgba(255,255,255,0.05) 50%, var(--surface3) 75%); background-size: 200% 100%; }

/* Skeleton card placeholder */
.dim-card-skeleton {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.dim-card-skeleton .sk-title  { height: 14px; width: 60%; }
.dim-card-skeleton .sk-badge  { height: 22px; width: 80px; border-radius: 20px; }
.dim-card-skeleton .sk-desc   { height: 11px; width: 100%; }
.dim-card-skeleton .sk-desc2  { height: 11px; width: 75%; }
.dim-card-skeleton .sk-bar    { height: 4px;  width: 100%; border-radius: 3px; }
.dim-sk-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

/* CV upload prompt spanning full grid width */
.dim-cv-prompt {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px dashed var(--border2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.dim-cv-prompt-icon {
  font-size: 2rem;
  flex-shrink: 0;
  opacity: 0.7;
}
.dim-cv-prompt-body {
  flex: 1;
  min-width: 0;
}
.dim-cv-prompt-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.dim-cv-prompt-desc {
  font-size: 13px;
  color: var(--text2);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}
.dim-cv-prompt-btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(200,169,110,0.08);
  border: 1px solid rgba(200,169,110,0.25);
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s, border-color 0.18s;
}
.dim-cv-prompt-btn:hover {
  background: rgba(200,169,110,0.15);
  border-color: rgba(200,169,110,0.45);
}

/* Score bar skeleton */
.sb-skeleton { height: 36px; border-radius: 6px; margin-bottom: 4px; }

/* ── Button micro-interactions ──────────────────────── */
button:not(:disabled):active,
.ob-option:active,
.modal-option:active {
  transform: scale(0.97) !important;
  transition: transform 0.1s !important;
}

/* Ensure all buttons have pointer cursor and smooth transition */
button { cursor: pointer; }
button:not(:disabled) { transition: opacity 0.15s, background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s; }

/* ── Focus states — gold outline for all interactive ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Remove default outline (we replace with :focus-visible) */
:focus:not(:focus-visible) { outline: none; }

/* Inputs keep their special focus style */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent) !important;
}

/* Range input focus */
input[type=range]:focus-visible {
  outline: none;
}
input[type=range]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(200,169,110,0.35);
}

/* Modal close button */
.modal-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ── Score counter animation ─────────────────────────── */
@keyframes countUp {
  from { opacity: 0.4; transform: translateY(4px); }
  to   { opacity: 1;   transform: translateY(0); }
}
.score-counting { animation: countUp 0.6s cubic-bezier(0.4,0,0.2,1) forwards; }

/* ── Card hover improvements (all surface cards) ─────── */
.score-overview,
.assess-card,
.next-step-banner {
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.score-overview:hover,
.assess-card:hover,
.next-step-banner:hover {
  transform: translateY(-2px);
  border-color: var(--border2);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ── Section fade-up staggered for dim cards ──────────── */
.dimensions-grid .dim-card:nth-child(1)  { animation: fadeUp 0.4s ease 0.05s both; }
.dimensions-grid .dim-card:nth-child(2)  { animation: fadeUp 0.4s ease 0.10s both; }
.dimensions-grid .dim-card:nth-child(3)  { animation: fadeUp 0.4s ease 0.15s both; }
.dimensions-grid .dim-card:nth-child(4)  { animation: fadeUp 0.4s ease 0.20s both; }
.dimensions-grid .dim-card:nth-child(5)  { animation: fadeUp 0.4s ease 0.25s both; }
.dimensions-grid .dim-card:nth-child(6)  { animation: fadeUp 0.4s ease 0.30s both; }
.dimensions-grid .dim-card:nth-child(7)  { animation: fadeUp 0.4s ease 0.35s both; }
.dimensions-grid .dim-card:nth-child(8)  { animation: fadeUp 0.4s ease 0.40s both; }

/* ── Empty states ─────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  text-align: center;
  gap: 0.875rem;
}
.empty-state-icon {
  font-size: 2.25rem;
  line-height: 1;
  opacity: 0.7;
}
.empty-state-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.empty-state-sub {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.6;
  max-width: 280px;
}
.empty-state-btn {
  font-size: 13px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  background: rgba(200,169,110,0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  margin-top: 0.25rem;
  transition: background 0.15s;
}
.empty-state-btn:hover { background: rgba(200,169,110,0.18); }

/* CV no-upload empty state */
.cv-empty-state {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface2);
  border: 1px dashed var(--border2);
  border-radius: var(--radius-sm);
  margin-top: 0.75rem;
}
.cv-empty-icon { font-size: 1.5rem; flex-shrink: 0; opacity: 0.6; }
.cv-empty-text { font-size: 12px; color: var(--text3); line-height: 1.55; }
.cv-empty-text strong { color: var(--text2); display: block; margin-bottom: 2px; }

/* ── Inline error states ──────────────────────────────── */
.inline-error {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  background: rgba(224,85,85,0.08);
  border: 1px solid rgba(224,85,85,0.2);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
}
.inline-error-icon { color: var(--red); flex-shrink: 0; font-size: 14px; }
.inline-error-body { flex: 1; }
.inline-error-actions { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.err-retry-btn {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 6px;
  background: none;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}
.err-retry-btn:hover { background: rgba(224,85,85,0.1); }
.err-skip-btn {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 6px;
  background: none;
  border: 1px solid var(--border2);
  color: var(--text3);
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.15s, color 0.15s;
}
.err-skip-btn:hover { border-color: var(--text2); color: var(--text2); }

/* AI output error state */
.ai-error {
  padding: 1rem 1.25rem;
  background: rgba(224,85,85,0.06);
  border: 1px solid rgba(224,85,85,0.18);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text2);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.ai-error-msg { flex: 1; }
.ai-error-actions { display: flex; gap: 6px; margin-top: 6px; }

/* ── Typography consistency enforcement ────────────────── */
/* Section labels: 11px, uppercase, 0.1em tracking, text3 */
.section-title,
.dm-label,
.bm-label,
.lb-label,
.ob-label,
.af-label,
.rdg-name,
.action-priority {
  font-size: 11px;
}

/* Ensure no text goes below 11px */
.ls-sub       { font-size: 11px; }
.dim-bar-meta { font-size: 11px; }
.tdp          { font-size: 11px; }

/* Score values: 22–28px, 600 weight */
.dm-val      { font-size: 22px; font-weight: 600; }
.bm-val      { font-size: 26px; font-weight: 600; }
.lb-score    { font-size: 28px; font-weight: 600; }

/* Body text: 13–15px, text2, 1.6 lh */
.card-desc, .dim-desc, .action-body p, .evidence-item, .gap-item { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* Card titles: 14–15px, 500 weight */
.dim-name    { font-size: 14px; font-weight: 500; }
.detail-title-group h3 { font-size: 15px; font-weight: 600; }

/* ── Dark mode guard — AI output inherits CSS vars ─────── */
.ai-text, .ai-text * { color: inherit; }
.ai-text strong { color: var(--text) !important; }
.ai-text a { color: var(--accent) !important; }
.ai-text code { background: var(--surface3); color: var(--text); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* ── Modal open/close animation (scale + opacity) ──────── */
.modal-box {
  transform-origin: center bottom;
  transform: scale(0.97) translateY(16px);
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), opacity 0.2s;
  opacity: 0;
}
.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* IP and JA modals use same pattern */
.ip-box, .ja-box {
  transform-origin: center bottom;
  transform: scale(0.97) translateY(16px);
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), opacity 0.2s;
  opacity: 0;
}
.ip-modal.open .ip-box,
.ip-modal.active .ip-box,
.ja-overlay.open .ja-box,
.ja-overlay.active .ja-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Snap compare and prompt */
.snap-prompt-box,
.snap-compare-box {
  transform-origin: center center;
  transform: scale(0.97) translateY(10px);
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), opacity 0.2s;
  opacity: 0;
}
.snap-prompt-overlay.active .snap-prompt-box,
.snap-compare-overlay.active .snap-compare-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* =====================================================
   RESPONSIVE — mobile-first comprehensive fixes
   ===================================================== */

/* ── 768px — iPad ───────────────────────────────────── */
@media (max-width: 768px) {
  .header {
    padding: 2rem 1.25rem 1.5rem;
    gap: 1.25rem;
  }
  .main { padding: 0 1.25rem 3rem; }
  .ladder-wrap { padding: 0 1.25rem; }
  .blend-bar { flex-direction: column; gap: 0.875rem; }
  .blend-meters { justify-content: flex-start; }
}

/* ── 640px — large phones / small tablets ─────────────── */
@media (max-width: 640px) {
  /* Header: stack name left, badge right on first row; controls below */
  .header {
    flex-direction: column;
    padding: 1.5rem 1rem 1rem;
    gap: 1rem;
    align-items: stretch;
  }
  .header > div:last-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
  }
  /* Score badge: full width strip */
  .level-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: auto;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
  }
  .level-badge .lb-label { margin-bottom: 0; white-space: nowrap; }
  .level-badge .lb-score { font-size: 22px; }
  .level-badge .lb-max   { display: none; }

  /* Header action buttons: scrollable row */
  .header > div:last-child > div,
  .header > div:last-child > button,
  .header > div:last-child > span {
    flex-shrink: 0;
  }
  #saveIndicator { display: none; }

  /* Ladder: horizontal scroll on mobile */
  .ladder-wrap { padding: 0 1rem; overflow-x: auto; }
  .ladder      { min-width: 460px; }

  /* Blend bar: fully vertical stacked */
  .blend-bar    { flex-direction: column; align-items: stretch; }
  .blend-meters { flex-direction: row; justify-content: flex-start; flex-wrap: nowrap; gap: 0.5rem; align-items: center; }
  .blend-meter  { flex: 1; min-width: 0; }
  .bm-val       { font-size: 22px; }
  .blend-op     { padding-top: 12px; font-size: 16px; }

  /* Assess row + dim grid: already 1-col from existing rule */

  /* Blend bar + recalc button: full width */
  .recalc-btn { width: 100%; margin-top: 0.5rem; text-align: center; }

  /* Detail score row: wrap tighter */
  .detail-score-row { gap: 0.5rem; }
  .detail-metric { padding: 0.5rem 0.75rem; }
  .detail-metric .dm-val { font-size: 18px; }

  /* Radar chart: shrink for mobile */
  #radarChart { width: 100% !important; height: auto !important; max-height: 280px; }

  /* Next step banner: stack */
  .next-step-banner { flex-direction: column; gap: 0.75rem; }

  /* AI select row: wrap tighter */
  .ai-select-row { gap: 6px; }
  .ai-select-btn { font-size: 11px; padding: 5px 10px; }

  /* Test CTA: compress */
  .test-cta-main { padding: 1rem; }

  /* Snapshot controls */
  .snap-header { flex-direction: column; align-items: flex-start; gap: 0.625rem; }
  .snap-dim-toggle-row { gap: 4px; }
  .snap-dim-btn { font-size: 11px; padding: 4px 10px; }

  /* Market intel tabs: scroll */
  .mi-tab-nav { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .mi-tab-btn { white-space: nowrap; }
}

/* ── 480px — small phones (iPhone SE etc) ─────────────── */
@media (max-width: 480px) {
  body { font-size: 14px; }

  .header-left h1 { font-size: 1.6rem; }

  /* Modal: full screen on small phones */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box {
    border-radius: 16px 16px 0 0 !important;
    max-height: 96vh;
    max-height: 96dvh;
    transform-origin: center bottom !important;
    border-left: none; border-right: none; border-bottom: none;
  }
  .modal-overlay.open .modal-box { transform: scale(1) translateY(0); }

  /* IP modal */
  .ip-modal { padding: 0; align-items: flex-end; }
  .ip-box {
    border-radius: 16px 16px 0 0 !important;
    max-height: 96vh;
    max-height: 96dvh;
    transform-origin: center bottom !important;
    border-left: none; border-right: none; border-bottom: none;
  }
  .ip-modal.open .ip-box,
  .ip-modal.active .ip-box { transform: scale(1) translateY(0); opacity: 1; }

  /* JA modal */
  .ja-overlay { padding: 0; align-items: flex-end; }
  .ja-box {
    border-radius: 16px 16px 0 0 !important;
    max-height: 96vh;
    max-height: 96dvh;
    transform-origin: center bottom !important;
    border-left: none; border-right: none; border-bottom: none;
    width: 100% !important;
    max-width: none !important;
  }
  .ja-overlay.open .ja-box,
  .ja-overlay.active .ja-box { transform: scale(1) translateY(0); opacity: 1; }

  /* Snap compare */
  .snap-compare-overlay { padding: 0; align-items: flex-end; }
  .snap-compare-box { border-radius: 16px 16px 0 0 !important; max-height: 94vh; width: 100%; max-width: none !important; }

  /* Radar chart: even smaller */
  #radarChart { max-height: 240px; }

  /* Score overview padding */
  .score-overview { padding: 1rem; }
  .assess-card { padding: 1rem; }

  /* Modal question text: smaller */
  .modal-question { font-size: 14px; }

  /* Dim card practice row */
  .dim-practice-row { flex-wrap: wrap; gap: 6px; }

  /* Header: buttons scroll row */
  .header > div:last-child > div:last-child {
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 0.5rem;
  }

  /* Onboarding modal */
  .ob-modal { border-radius: 16px 16px 0 0; max-height: 98vh; }
  .onboarding-overlay { align-items: flex-end; }
}

/* ── Radar chart label size: increase for readability ─── */
/* (controlled in JS via Chart.js options, but CSS fallback) */
.radar-label-text { font-size: 13px; }

/* ── Accessibility: visible focus ring on modals ─────── */
.modal-box:focus { outline: none; }  /* host container — inner elements handle focus */

/* ── Touch target minimum 44×44px for interactive elements ── */
@media (max-width: 640px) {
  .modal-close,
  .snap-action-btn,
  .detail-tab {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
  }
  .test-start-btn,
  .recalc-btn,
  .ai-run-btn,
  .modal-nav-btn {
    min-height: 44px;
  }
  input[type=range] { height: 24px; }
}

/* ============================================================
   ONBOARDING SHELL
   ============================================================ */

#onboarding {
  position: fixed;
  inset: 0;
  display: flex;
  z-index: 3000;
  background: var(--bg);
  font-family: 'DM Sans', sans-serif;
  overflow: hidden;
}

/* ── Left brand panel ── */
#ob-brand {
  width: 40%;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
}

.ob-brand-inner {
  max-width: 340px;
}

.ob-logo {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1.75rem;
  display: block;
}

.ob-headline {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 1rem;
  font-weight: 400;
}

.ob-headline em {
  font-style: italic;
  color: var(--accent);
}

.ob-tagline {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
  margin: 0 0 2.25rem;
}

.ob-brand-features {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.ob-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.4;
}

.ob-feature-icon {
  color: var(--accent);
  font-size: 11px;
  flex-shrink: 0;
  opacity: 0.8;
}

/* ── Right steps panel ── */
#ob-steps {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 3rem 2rem;
  overflow: hidden;
  min-width: 0;
}

/* Progress bar */
#ob-progress-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.75rem;
  flex-shrink: 0;
}

#ob-progress-track {
  flex: 1;
  height: 3px;
  background: var(--surface3);
  border-radius: 2px;
  overflow: hidden;
}

#ob-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

#ob-progress-label {
  font-size: 11px;
  color: var(--text3);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Step viewport + slide area */
#ob-step-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 0;
}

#ob-step-wrap {
  position: relative;
  height: 100%;
}

/* Scoped to #onboarding to avoid conflicts with onboarding.js modal */
#onboarding .ob-step {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding-right: 4px; /* prevent scrollbar overlap */
}

#onboarding .ob-step-inner {
  padding: 0.25rem 0 1rem;
}

.ob-step-num {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

#onboarding .ob-step-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  color: var(--text);
  margin: 0 0 0.625rem;
  line-height: 1.2;
  font-weight: 400;
}

#onboarding .ob-step-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
  margin: 0 0 2rem;
}

/* Nav bar */
#ob-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
  flex-shrink: 0;
}

#ob-step-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Scoped to #ob-step-dots to avoid overriding onboarding.js modal dots */
#ob-step-dots .ob-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--surface3);
  transition: background 0.2s ease, width 0.25s ease, border-radius 0.25s ease;
}

#ob-step-dots .ob-dot.active {
  background: var(--accent);
  width: 18px;
  border-radius: 3px;
}

#ob-step-dots .ob-dot.done {
  background: var(--accent);
  opacity: 0.35;
}

/* Buttons */
.ob-btn-primary {
  background: rgba(200, 169, 110, 0.12);
  color: var(--accent);
  border: 1px solid rgba(200, 169, 110, 0.35);
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.ob-btn-primary:hover:not(:disabled) {
  background: rgba(200, 169, 110, 0.22);
  border-color: rgba(200, 169, 110, 0.55);
}

.ob-btn-primary:active:not(:disabled) {
  transform: translateY(1px);
}

.ob-btn-secondary {
  background: none;
  color: var(--text2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.ob-btn-secondary:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--text3);
}

/* ── Slide animations ── */
@keyframes ob-slide-in-right {
  from { transform: translateX(48px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes ob-slide-in-left {
  from { transform: translateX(-48px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
@keyframes ob-slide-out-left {
  from { transform: translateX(0);     opacity: 1; }
  to   { transform: translateX(-48px); opacity: 0; }
}
@keyframes ob-slide-out-right {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(48px); opacity: 0; }
}

#onboarding .ob-slide-in-right  { animation: ob-slide-in-right  0.32s cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
#onboarding .ob-slide-in-left   { animation: ob-slide-in-left   0.32s cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
#onboarding .ob-slide-out-left  { animation: ob-slide-out-left  0.2s  cubic-bezier(0.55,0,1,0.45) forwards; }
#onboarding .ob-slide-out-right { animation: ob-slide-out-right 0.2s  cubic-bezier(0.55,0,1,0.45) forwards; }

/* ── Step content: shared ── */

/* max-width + base layout for the step element itself */
#onboarding .ob-step {
  max-width: 520px;
}

/* Large serif heading used at the top of each step */
.ob-step-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

/* Sub-heading text under the heading */
#onboarding .ob-step-sub {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ── Step 1: name input ── */
.ob-input-lg {
  width: 100%;
  font-size: 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border2);
  color: var(--text);
  padding: 0.5rem 0;
  outline: none;
  transition: border-color 0.2s;
  caret-color: var(--accent);
}
.ob-input-lg::placeholder { color: var(--surface3); }
.ob-input-lg:focus { border-bottom-color: var(--accent); }

/* ── Step 2: field cards — SVG + desc additions ── */
/* Base SVG colour on un-selected cards */
#onboarding .ob-field-card svg { color: var(--text3); }
/* Gold SVG + border on selected */
#onboarding .ob-field-card.selected {
  border-color: var(--accent);
  background: rgba(200,169,110,0.06);
  color: var(--accent);
}
#onboarding .ob-field-card.selected svg  { color: var(--accent); }

/* Small descriptor line under the field label */
.ob-field-desc {
  font-size: 11px;
  color: var(--text3);
  line-height: 1.4;
}

/* ── Step 3: level selectors ── */
.ob-level-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ob-level-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ob-level-arrow {
  font-size: 1.5rem;
  color: var(--text3);
  padding-bottom: 12px;
  flex-shrink: 0;
}

/* ── Step 4: location + toggles (kept for editProfile compat) ── */

/* Horizontal pair of inputs (country + city, relocation fields) */
.ob-field-row {
  display: flex;
  gap: 1rem;
}

/* Scoped toggle-row override: bottom-border only, no top border like old modal */
#onboarding .ob-toggle-row {
  padding: 0.75rem 0;
  border-top: none;
  border-bottom: 1px solid var(--border);
  margin-top: 0;
}

/* ob-toggle-thumb: same role as ob-toggle-knob in old onboarding modal */
.ob-toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--text3);
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), background 0.2s;
  display: block;
  pointer-events: none;
}
.ob-toggle.on .ob-toggle-thumb {
  transform: translateX(18px);
  background: #1a1610;
}

/* ── Step 5: experience sliders ── */
.ob-slider-block { /* layout container — no extra styles needed */ }

.ob-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

/* Scoped override: old .ob-slider-val is 17px; step 5 uses 13px */
#onboarding .ob-slider-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.ob-insight {
  margin-top: 1.5rem;
  padding: 0.875rem 1rem;
  background: rgba(200,169,110,0.06);
  border: 1px solid rgba(200,169,110,0.2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text2);
  font-style: italic;
  line-height: 1.6;
}

/* ── Step 6: CV import ── */
.ob-import-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Drop zone inside the import card */
.ob-import-drop {
  border: 1.5px dashed var(--border2);
  border-radius: 8px;
  padding: 0.75rem;
  transition: border-color 0.2s, background 0.2s;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.ob-import-drop.dragover {
  border-color: var(--accent);
  background: rgba(200,169,110,0.04);
}

.ob-drop-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text3);
  padding: 0.75rem 0;
  text-align: center;
  width: 100%;
}

.ob-drop-placeholder p {
  font-size: 13px;
  color: var(--text2);
  margin: 0;
}

.ob-file-link {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ob-file-hint {
  font-size: 11px;
  color: var(--text3);
}

/* File preview (after upload) */
.ob-file-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0.25rem 0;
}

.ob-file-icon  { font-size: 1.5rem; }

.ob-file-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  word-break: break-all;
}

.ob-file-size {
  font-size: 11px;
  color: var(--text3);
  margin-top: 1px;
}

.ob-file-remove {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 4px;
  font-family: inherit;
  transition: color 0.15s;
  flex-shrink: 0;
}

.ob-file-remove:hover { color: var(--red); }

/* ── Mobile: step content ── */
@media (max-width: 640px) {
  .ob-step-heading { font-size: 1.4rem; }
  .ob-field-grid   { grid-template-columns: repeat(2, 1fr); }
  .ob-level-row    { flex-direction: column; align-items: stretch; }
  .ob-level-arrow  { display: none; }
  .ob-field-row    { flex-direction: column; }
  .ob-import-grid  { grid-template-columns: 1fr; }
}

/* ── CV loading screen ── */
.ob-loading-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
}

.ob-loading-pulse {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(200,169,110,0.2);
  border-top-color: var(--accent);
  animation: obSpin 1s linear infinite;
}

@keyframes obSpin {
  to { transform: rotate(360deg); }
}

.ob-loading-messages {
  font-size: 14px;
  color: var(--text2);
  transition: opacity 0.3s ease;
  text-align: center;
}

/* ── Welcome/confirmation screen ── */
.ob-welcome-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
}

.ob-welcome-check svg {
  width: 72px;
  height: 72px;
}

.ob-check-path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: obCheckDraw 0.6s 0.3s ease forwards;
}

@keyframes obCheckDraw {
  to { stroke-dashoffset: 0; }
}

.ob-welcome-name {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.ob-welcome-sub {
  font-size: 14px;
  color: var(--text2);
  margin: 0;
  line-height: 1.5;
}

/* ── Step 3 / 4: level select ── */
.ob-select-lg {
  font-size: 16px;
  padding: 14px 40px 14px 16px;
  height: auto;
  margin-bottom: 1.25rem;
}

.ob-level-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200,169,110,0.08);
  border: 1px solid rgba(200,169,110,0.25);
  border-radius: 6px;
  padding: 6px 14px;
  margin-top: 0.25rem;
}
.ob-level-chip-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text3);
}
.ob-level-chip-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

/* Transition preview (steps 3→4) */
.ob-transition-preview {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  font-size: 15px;
  margin-top: 1rem;
}
.ob-tp-from  { color: var(--text2); }
.ob-tp-arrow { color: var(--accent); font-size: 1.2rem; margin: 0 0.75rem; }
.ob-tp-to    { color: var(--text); font-weight: 500; }

/* ── Step 5: experience slider ── */
.ob-exp-display {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.75rem 0 1.5rem;
}
.ob-exp-number {
  font-family: 'DM Serif Display', serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
  transition: color 0.15s;
}
.ob-exp-unit {
  font-size: 1.1rem;
  color: var(--text2);
  font-weight: 300;
  padding-bottom: 0.4rem;
}

/* ── Step 6: geography card grid ── */
.ob-geo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 1.25rem;
}
.ob-geo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.ob-geo-card:hover {
  border-color: var(--border2);
  background: var(--surface3);
  transform: translateY(-1px);
}
.ob-geo-card.selected {
  border-color: var(--accent);
  background: rgba(200,169,110,0.1);
}
.ob-geo-flag {
  font-size: 1.5rem;
  line-height: 1;
}
.ob-geo-label {
  font-size: 11px;
  color: var(--text2);
  text-align: center;
  line-height: 1.3;
}
.ob-geo-card.selected .ob-geo-label { color: var(--accent); }

/* ── Step 7: CV / profile import ── */

/* Heading optional tag */
.ob-step-opt {
  font-size: 0.75em;
  font-weight: 300;
  color: var(--text3);
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
}
.ob-label-opt { font-size: 0.9em; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text3); }

/* Two-column option cards */
.ob-import-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 1.25rem;
  margin-bottom: 1rem;
}
.ob-import-opt {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s;
}
.ob-import-opt:focus-within { border-color: var(--border2); }
.ob-import-opt-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.ob-import-opt-hd svg { color: var(--text3); flex-shrink: 0; }
.ob-import-opt-desc {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.5;
  margin: 0;
}

/* Drop zone inside option card */
.ob-import-drop-zone {
  flex: 1;
  border: 1px dashed var(--border2);
  border-radius: 8px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  color: var(--text3);
  font-size: 12px;
}
.ob-import-drop-zone:hover,
.ob-import-drop-zone.dragover {
  border-color: var(--accent);
  background: rgba(200,169,110,0.05);
  color: var(--text2);
}
.ob-import-drop-zone svg { color: var(--text3); margin-bottom: 2px; }
.ob-drop-hint { font-size: 11px; color: var(--text3); }
.ob-file-link { color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ob-file-link:hover { opacity: 0.8; }

/* LinkedIn input + note inside option card */
.ob-linkedin-input { font-size: 13px; }
.ob-linkedin-note {
  font-size: 11px;
  color: var(--text3);
  line-height: 1.5;
  margin: 0;
}
.ob-linkedin-err { font-size: 11px; color: var(--red); margin: 0; }

/* Skip link */
.ob-skip-link {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--text3);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 0 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
  width: 100%;
}
.ob-skip-link:hover { color: var(--text2); }

/* Inline parsing spinner */
.ob-cv-parsing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 0;
}
.ob-cv-parse-ring {
  width: 44px;
  height: 44px;
  border: 2.5px solid var(--surface3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: ob-spin 0.9s linear infinite;
}
@keyframes ob-spin { to { transform: rotate(360deg); } }
.ob-cv-parse-msg {
  font-size: 13px;
  color: var(--text2);
  margin: 0;
  transition: opacity 0.3s;
}

/* CV summary confirmation card */
.ob-cv-summary {
  background: var(--surface2);
  border: 1px solid rgba(76,175,130,0.35);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  position: relative;
}
.ob-cv-summary-check {
  font-size: 11px;
  color: var(--green);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ob-cv-summary-identity { margin-bottom: 0.75rem; }
.ob-cvs-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.ob-cvs-role {
  font-size: 13px;
  color: var(--text2);
}
.ob-cv-summary-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.ob-cvs-stat {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.ob-cvs-num {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  font-family: 'DM Serif Display', serif;
}
.ob-cvs-label {
  font-size: 11px;
  color: var(--text3);
}
.ob-cv-reparse-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  color: var(--text3);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 3px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.ob-cv-reparse-btn:hover { color: var(--red); background: rgba(224,85,85,0.08); }

/* LinkedIn block below the summary */
.ob-linkedin-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Error state */
#onboarding .ob-cv-error {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(224,85,85,0.08);
  border: 1px solid rgba(224,85,85,0.25);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
#onboarding .ob-cv-error-icon  { font-size: 1.1rem; color: var(--red); flex-shrink: 0; }
#onboarding .ob-cv-error-title { font-size: 13px; font-weight: 500; color: var(--red); margin-bottom: 3px; }
#onboarding .ob-cv-error-msg   { font-size: 12px; color: var(--text2); line-height: 1.5; }
.ob-cv-retry-row { margin-bottom: 0.5rem; }
.ob-file-label-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  color: var(--text2);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}
.ob-file-label-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Mobile onboarding ── */
@media (max-width: 768px) {
  #onboarding {
    flex-direction: column;
  }

  #ob-brand {
    width: 100%;
    padding: 2rem 1.5rem 1.25rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
    justify-content: flex-start;
  }

  .ob-brand-inner {
    max-width: 100%;
  }

  .ob-logo {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .ob-headline {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
  }

  .ob-tagline,
  .ob-brand-features {
    display: none;
  }

  #ob-steps {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  #ob-progress-wrap {
    margin-bottom: 1.75rem;
  }

  .ob-step-title {
    font-size: 1.4rem;
  }

  #ob-nav {
    padding-top: 1.25rem;
  }

  .ob-btn-primary,
  .ob-btn-secondary {
    padding: 11px 20px;
    min-height: 44px;
  }

  .ob-geo-grid      { grid-template-columns: repeat(2, 1fr); }
  .ob-exp-number    { font-size: 4rem; }
  .ob-level-row     { flex-direction: column; align-items: stretch; }
  .ob-level-arrow   { display: none; }
  .ob-import-options { grid-template-columns: 1fr; }
}

/* ============================================================
   PROFILE MENU
   ============================================================ */

.profile-menu-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(200,169,110,0.12);
  border: 1.5px solid var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  padding: 0;
}

.profile-btn:hover {
  background: rgba(200,169,110,0.22);
}

.profile-btn:active {
  transform: scale(0.93);
}

.profile-initials {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1;
  font-family: 'DM Sans', sans-serif;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 200;
  display: none;
  overflow: hidden;
  animation: pdFadeIn 0.15s ease forwards;
}

.profile-dropdown.open { display: block; }

@keyframes pdFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pd-user-info {
  padding: 0.875rem 1rem;
}

.pd-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.pd-meta {
  font-size: 11px;
  color: var(--text3);
  margin-top: 3px;
  line-height: 1.4;
}

.pd-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

.pd-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.625rem 1rem;
  font-size: 13px;
  color: var(--text2);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.1s ease, color 0.1s ease;
  line-height: 1.4;
}

.pd-item:hover {
  background: var(--surface3);
  color: var(--text);
}

.pd-item.danger { color: var(--red); }

.pd-item.danger:hover {
  background: rgba(224,85,85,0.08);
  color: var(--red);
}

/* ── Reset confirmation overlay ── */
.reset-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 600;
  animation: pdFadeIn 0.2s ease forwards;
}

.reset-confirm-box {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.reset-confirm-box h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.reset-confirm-box p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.reset-confirm-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.btn-cancel {
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text2);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}

.btn-cancel:hover {
  border-color: var(--text3);
  color: var(--text);
}

.btn-reset-confirm {
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: rgba(224,85,85,0.1);
  border: 1px solid var(--red);
  color: var(--red);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: background 0.15s;
}

.btn-reset-confirm:hover {
  background: rgba(224,85,85,0.2);
}
