/* ────────────────────────────────────────────────────────────
   Nexus Wealth — Financial Services UI Extensions
   Extends theme.css (navy/gold/ivory palette)
   ──────────────────────────────────────────────────────────── */

/* ── Workflow nav bar ─────────────────────────────────── */
.nx-workflow-nav {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nx-workflow-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 0;
}
.nx-wordmark {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  padding-right: 28px;
  border-right: 1px solid rgba(255,255,255,0.12);
  margin-right: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nx-workflow-track {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  overflow-x: auto;
}
.nx-wf-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.nx-wf-step:hover { background: rgba(255,255,255,0.06); }
.nx-wf-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  flex-shrink: 0;
}
.nx-wf-label {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
}
.nx-wf-arrow {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.15);
  padding: 0 4px;
  flex-shrink: 0;
}
/* states */
.nx-wf-step.done .nx-wf-num  { border-color: var(--gold); color: var(--gold); }
.nx-wf-step.done .nx-wf-label { color: rgba(255,255,255,0.5); }
.nx-wf-step.active .nx-wf-num { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.nx-wf-step.active .nx-wf-label { color: var(--white); font-weight: 500; }
.nx-wf-arrow.done { color: rgba(196,151,58,0.4); }
.nx-client-tag {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
  white-space: nowrap;
  padding-left: 20px;
  flex-shrink: 0;
}

/* ── Body layout ──────────────────────────────────────── */
.nx-body { background: var(--ivory); }
.nx-main { padding: 48px 0 80px; }
.nx-container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ── Page header ──────────────────────────────────────── */
.nx-page-header { margin-bottom: 36px; }
.nx-page-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.nx-page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.nx-page-sub { font-size: 0.88rem; color: var(--text-muted); margin-top: 6px; }

/* ── Workflow step tracker (fact-find page) ─────────── */
.nx-section-tracker {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.nx-section-tracker-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.nx-section-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
.nx-sec-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.nx-sec-step:last-child { border-right: none; }
.nx-sec-icon { font-size: 1.1rem; }
.nx-sec-name { font-size: 0.7rem; font-weight: 500; color: var(--text-muted); max-width: 80px; line-height: 1.3; }
.nx-sec-bar-wrap {
  width: 100%;
  height: 4px;
  background: var(--ivory-dark);
  border-radius: 4px;
  overflow: hidden;
}
.nx-sec-bar { height: 100%; background: var(--gold); border-radius: 4px; transition: width 0.3s; }
.nx-sec-step.done .nx-sec-name { color: var(--text); }
.nx-sec-step.in_progress .nx-sec-icon { }
.nx-sec-step.in_progress .nx-sec-name { color: var(--navy); font-weight: 600; }
.nx-sec-step.pending .nx-sec-icon { opacity: 0.35; }
.nx-sec-step.pending .nx-sec-name { color: var(--text-muted); opacity: 0.5; }

/* ── Profile grid (client profile page) ─────────────── */
.nx-profile-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
.nx-col-main { display: flex; flex-direction: column; gap: 20px; }
.nx-col-side { display: flex; flex-direction: column; gap: 16px; }

/* ── Cards ────────────────────────────────────────────── */
.nx-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.nx-card--compact { padding: 18px 20px; }
.nx-card--highlight {
  background: var(--navy);
  border-color: rgba(196,151,58,0.25);
  border-radius: 14px;
  padding: 20px;
}
.nx-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ivory-dark);
}
.nx-card-icon { font-size: 1rem; }
.nx-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* ── Field grids ──────────────────────────────────────── */
.nx-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.nx-field { display: flex; flex-direction: column; gap: 4px; }
.nx-field--full { grid-column: 1 / -1; }
.nx-field-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nx-field-value { font-size: 0.9rem; font-weight: 400; color: var(--text); }
.nx-field-value.mono { font-family: 'DM Mono', monospace; font-size: 0.82rem; }

/* ── Goals (client profile page) ─────────────────────── */
.nx-goals-list { display: flex; flex-direction: column; gap: 12px; }
.nx-goal {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.nx-goal--primary {
  border-color: rgba(196,151,58,0.3);
  background: rgba(196,151,58,0.04);
}
.nx-goal-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.nx-goal-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 4px;
}
.nx-goal-tag--high { background: rgba(196,151,58,0.15); color: var(--navy); border: 1px solid rgba(196,151,58,0.25); }
.nx-goal-tag--med { background: var(--ivory-dark); color: var(--text-muted); border: 1px solid var(--border); }
.nx-goal-target { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }
.nx-goal-title { font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 4px; }
.nx-goal-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.nx-goal-progress { margin-top: 12px; height: 5px; background: var(--border); border-radius: 4px; overflow: hidden; }
.nx-goal-progress-bar { height: 100%; background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%); border-radius: 4px; }
.nx-goal-progress-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 6px; }

/* ── Adviser card ─────────────────────────────────────── */
.nx-adviser { display: flex; align-items: center; gap: 12px; }
.nx-adviser-avatar {
  width: 40px; height: 40px;
  background: var(--navy);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.nx-adviser-name { font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.nx-adviser-firm { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ── Status ───────────────────────────────────────────── */
.nx-status-row { margin-bottom: 8px; }
.nx-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.nx-status-badge--active  { background: rgba(16,185,129,0.12); color: #059669; border: 1px solid rgba(16,185,129,0.25); }
.nx-status-badge--pending { background: var(--ivory-dark); color: var(--text-muted); border: 1px solid var(--border); }
.nx-status-detail { font-size: 0.78rem; color: var(--text-muted); }

/* ── Risk display ─────────────────────────────────────── */
.nx-risk-display { margin-bottom: 8px; }
.nx-risk-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 4px; }
.nx-risk-value { font-size: 0.95rem; font-weight: 600; color: var(--navy); }
.nx-risk-note { font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; }

/* ── Quick stats (dark card) ─────────────────────────── */
.nx-quick-stats { display: flex; flex-direction: column; gap: 16px; }
.nx-quick-stat { border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 14px; }
.nx-quick-stat:last-child { border-bottom: none; padding-bottom: 0; }
.nx-qs-value { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 4px; }
.nx-qs-label { font-size: 0.72rem; color: rgba(255,255,255,0.45); }

/* ── CTA bar ──────────────────────────────────────────── */
.nx-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  gap: 16px;
}
.nx-cta-left { flex: 1; }
.nx-cta-label { font-size: 0.85rem; color: var(--text-muted); }
.nx-cta-right { display: flex; gap: 12px; align-items: center; }

/* ── Buttons ──────────────────────────────────────────── */
.nx-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}
.nx-btn--primary {
  background: var(--navy);
  color: var(--white);
}
.nx-btn--primary:hover { background: var(--navy-mid); }
.nx-btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(196,151,58,0.3);
}
.nx-btn--outline:hover { background: rgba(196,151,58,0.06); }
.nx-btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.nx-btn--ghost:hover { background: var(--ivory-dark); }
.nx-btn--sm { padding: 8px 14px; font-size: 0.8rem; }

/* ═══════════════════════════════════════════════════════
   FACT-FIND PAGE
   ═══════════════════════════════════════════════════════ */

/* ── Two-column layout ───────────────────────────────── */
.nx-ff-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

/* ── Section nav sidebar ────────────────────────────── */
.nx-ff-nav {
  position: sticky;
  top: 80px;
}
.nx-ff-nav-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-left: 4px;
}
.nx-ff-nav-list { display: flex; flex-direction: column; gap: 4px; }
.nx-ff-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: all 0.12s;
  border: 1px solid transparent;
}
.nx-ff-nav-link:hover { background: var(--ivory-dark); color: var(--text); }
.nx-ff-nav-link.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.nx-ff-nav-icon { font-size: 0.75rem; width: 18px; text-align: center; }
.nx-ff-nav-link--in_progress { color: var(--gold); font-weight: 500; }
.nx-ff-nav-link--pending { opacity: 0.5; }

/* ── Section content ─────────────────────────────────── */
.nx-ff-content { display: flex; flex-direction: column; gap: 0; }

.nx-ff-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 16px;
}
.nx-ff-section--pending { opacity: 0.7; }

.nx-ff-section-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ivory-dark);
}
.nx-ff-section-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.5;
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
}
.nx-ff-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.nx-ff-section-status {
  font-size: 0.75rem;
  font-weight: 500;
}
.nx-ff-section-status--done { color: #059669; }
.nx-ff-section-status--in_progress { color: var(--gold); }
.nx-ff-section-status--pending { color: var(--text-muted); }

/* ── Field grid (fact-find form fields) ─────────────── */
.nx-ff-field-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.nx-ff-field { display: flex; flex-direction: column; gap: 5px; }
.nx-ff-field label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nx-ff-value { font-size: 0.88rem; font-weight: 500; color: var(--text); }
.nx-ff-value--alert { color: #B45309; font-weight: 600; }
.nx-ff-money { font-family: 'DM Mono', monospace; font-weight: 500; }

/* ── Dependents ──────────────────────────────────────── */
.nx-ff-dependents { margin-top: 20px; }
.nx-ff-sub-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.nx-ff-dep-row {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nx-ff-dep-name { font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.nx-ff-dep-meta { font-size: 0.78rem; color: var(--text-muted); }

/* ── Subsections ─────────────────────────────────────── */
.nx-ff-subsection { margin-bottom: 24px; }
.nx-ff-subsection:last-child { margin-bottom: 0; }
.nx-ff-subsection-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(12,27,51,0.05);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 14px;
}

/* ── Tables ─────────────────────────────────────────── */
.nx-ff-table { width: 100%; border-collapse: collapse; }
.nx-ff-table-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ivory-dark);
  font-size: 0.85rem;
  color: var(--text);
}
.nx-ff-table-row:last-child { border-bottom: none; }
.nx-ff-table-row--head { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.nx-ff-table-row--total { font-weight: 700; color: var(--navy); font-size: 0.9rem; padding-top: 14px; }
.nx-ff-table-row .nx-ff-money { text-align: right; }

/* Grid layout for table rows */
.nx-ff-table-row:not(.nx-ff-table-row--head) {
  grid-template-columns: 1fr auto;
}
.nx-ff-table-row:not(.nx-ff-table-row--head):not(.nx-ff-table-row--total) span:last-child { text-align: right; }

/* For pension projection table (3 cols) */
.nx-pension-table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ivory-dark);
  font-size: 0.85rem;
}

/* ── Pension cards ──────────────────────────────────── */
.nx-pension-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.nx-pension-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.nx-pension-card--db { border-color: rgba(196,151,58,0.3); background: rgba(196,151,58,0.04); }
.nx-pc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.nx-pc-name { font-size: 0.78rem; font-weight: 600; color: var(--navy); }
.nx-pc-provider { font-size: 0.7rem; color: var(--text-muted); }
.nx-pc-value { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 6px; }
.nx-pc-unit { font-family: 'DM Sans', sans-serif; font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }
.nx-pc-meta { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; }

/* ── Goal blocks ────────────────────────────────────── */
.nx-goal-block {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.nx-goal-block--primary { border-color: rgba(196,151,58,0.3); background: rgba(196,151,58,0.04); }
.nx-gb-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--ivory-dark);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}
.nx-gb-tag--high { background: rgba(196,151,58,0.12); border-color: rgba(196,151,58,0.25); }
.nx-gb-tag--med  { background: var(--ivory-dark); }
.nx-gb-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.nx-gb-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nx-gb-field { display: flex; flex-direction: column; gap: 3px; }
.nx-gb-key { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.nx-gb-val { font-size: 0.85rem; font-weight: 500; color: var(--text); }

/* ── Risk notation ──────────────────────────────────── */
.nx-risk-notation {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(196,151,58,0.07);
  border: 1px solid rgba(196,151,58,0.2);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 20px;
}
.nx-rn-icon { font-size: 1rem; flex-shrink: 0; padding-top: 2px; }
.nx-rn-label { font-size: 0.75rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.nx-rn-text { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

/* ── Risk list ──────────────────────────────────────── */
.nx-risk-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.nx-risk-item { font-size: 0.82rem; color: var(--text); padding: 6px 0; border-bottom: 1px solid var(--ivory-dark); }
.nx-risk-item:last-child { border-bottom: none; }

/* ── Alert note ─────────────────────────────────────── */
.nx-ff-note {
  background: rgba(180,83,9,0.07);
  border: 1px solid rgba(180,83,9,0.2);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: #92400e;
  margin-top: 16px;
}

/* ── Vulnerability verdict ──────────────────────────── */
.nx-vulnerability-verdict {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(5,150,105,0.07);
  border: 1px solid rgba(5,150,105,0.2);
  border-radius: 10px;
  padding: 16px 18px;
  margin-top: 12px;
}
.nx-vv-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  background: rgba(5,150,105,0.1);
  border: 1px solid rgba(5,150,105,0.2);
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nx-vv-text { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ── Stub pages ─────────────────────────────────────── */
.nx-stub-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 44px;
  text-align: center;
}
.nx-stub-icon { font-size: 2.5rem; margin-bottom: 20px; }
.nx-stub-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.nx-stub-body { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; max-width: 560px; margin: 0 auto 24px; }
.nx-stub-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  text-align: left;
  margin-bottom: 24px;
}
.nx-stub-meta-row { display: flex; flex-direction: column; gap: 3px; }
.nx-stub-meta-row span:first-child { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.nx-stub-meta-row span:last-child { font-size: 0.85rem; font-weight: 500; color: var(--navy); }
.nx-stub-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.75rem;
}
.nx-stub-chain-step {
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  background: var(--ivory-dark);
  border: 1px solid var(--border);
}
.nx-stub-chain-step.done { background: rgba(5,150,105,0.1); border-color: rgba(5,150,105,0.25); color: #059669; }
.nx-stub-chain-step.active { background: var(--navy); color: var(--gold); border-color: var(--navy); font-weight: 600; }
.nx-stub-chain-arrow { color: var(--text-muted); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .nx-profile-grid { grid-template-columns: 1fr; }
  .nx-col-side { order: -1; }
  .nx-pension-cards { grid-template-columns: 1fr 1fr; }
  .nx-section-steps { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 768px) {
  .nx-workflow-inner { padding: 0 16px; }
  .nx-container { padding: 0 16px; }
  .nx-ff-grid { grid-template-columns: 1fr; }
  .nx-ff-nav { position: static; }
  .nx-ff-nav-list { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .nx-ff-nav-link { white-space: nowrap; }
  .nx-ff-field-grid { grid-template-columns: 1fr 1fr; }
  .nx-gb-detail-grid { grid-template-columns: 1fr; }
  .nx-pension-cards { grid-template-columns: 1fr; }
  .nx-cta-bar { flex-direction: column; align-items: flex-start; }
  .nx-cta-right { width: 100%; justify-content: flex-end; }
  .nx-field-grid { grid-template-columns: 1fr; }
}
/* ── Portfolio modelling cards ─────────────────────── */
.nx-portfolio-card {
  transition: all 0.2s;
}
.nx-portfolio-card:hover {
  border-color: rgba(196,151,58,0.4) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12,27,51,0.1);
}
.nx-portfolio-card.recommended {
  /* inherits border-color from inline style */
}

/* ── Goals summary ─────────────────────────────────── */
.nx-goals-list { display: flex; flex-direction: column; gap: 12px; }
.nx-goal {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.nx-goal--primary {
  border-color: rgba(196,151,58,0.3);
  background: rgba(196,151,58,0.04);
}
.nx-goal-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.nx-goal-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 4px;
}
.nx-goal-tag--high { background: rgba(196,151,58,0.15); color: var(--navy); border: 1px solid rgba(196,151,58,0.25); }
.nx-goal-tag--med { background: var(--ivory-dark); color: var(--text-muted); border: 1px solid var(--border); }
.nx-goal-target { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }
.nx-goal-title { font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 4px; }
.nx-goal-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.nx-goal-progress { margin-top: 12px; height: 5px; background: var(--border); border-radius: 4px; overflow: hidden; }
.nx-goal-progress-bar { height: 100%; background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%); border-radius: 4px; }
.nx-goal-progress-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 6px; }

/* ═══════════════════════════════════════════════════════
   ATR / CAPACITY FOR LOSS QUESTIONNAIRE PAGES
   ═══════════════════════════════════════════════════════ */

/* ── Intro text ──────────────────────────────────────── */
.nx-questionnaire-intro {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 28px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.nx-questionnaire-intro p { margin: 0 0 8px; }
.nx-questionnaire-intro p:last-child { margin-bottom: 0; }
.nx-questionnaire-intro strong { color: var(--navy); }
.nx-questionnaire-intro em { font-style: italic; }

/* ── Question groups ─────────────────────────────────── */
.nx-q-group {
  margin-bottom: 24px;
}
.nx-q-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--navy);
  border-radius: 10px;
}
.nx-q-group-tag {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(196,151,58,0.15);
  border: 1px solid rgba(196,151,58,0.3);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nx-q-group-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}
.nx-q-group-note {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  margin-left: auto;
  line-height: 1.4;
}

/* ── Individual questions ────────────────────────────── */
.nx-question {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: border-color 0.15s;
}
.nx-q-error {
  border-color: #B45309 !important;
  background: rgba(180,83,9,0.03) !important;
}
.nx-q-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.nx-q-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(196,151,58,0.12);
  border: 1px solid rgba(196,151,58,0.25);
  padding: 2px 8px;
  border-radius: 6px;
}
.nx-q-req {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nx-q-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 16px;
}
.nx-q-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* ── Generic selected state ──────────────────────────── */
label.selected { outline: 2px solid rgba(196,151,58,0.4); outline-offset: 2px; }
label.selected input { accent-color: var(--gold); }

/* ── Portfolio options (Q1) ─────────────────────────── */
.nx-portfolio-options { display: flex; flex-direction: column; gap: 8px; }
.nx-portfolio-opt {
  display: flex;
  align-items: stretch;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--ivory);
  overflow: hidden;
  transition: all 0.15s;
}
.nx-portfolio-opt:hover { border-color: rgba(196,151,58,0.35); background: rgba(196,151,58,0.04); }
.nx-portfolio-opt input { display: none; }
.nx-po-inner { display: flex; align-items: center; gap: 0; width: 100%; padding: 14px 18px; }
.nx-po-scalar {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  background: var(--navy);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-right: 14px;
}
.nx-portfolio-opt.selected .nx-po-scalar { background: var(--gold); color: var(--navy); }
.nx-po-content { flex: 1; }
.nx-po-label { font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.nx-po-sub { font-size: 0.78rem; color: var(--text-muted); }

/* ── Spectrum options (Q2) ───────────────────────────── */
.nx-spectrum-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.nx-spectrum-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--ivory);
  padding: 14px 10px;
  transition: all 0.15s;
  gap: 8px;
}
.nx-spectrum-opt:hover { border-color: rgba(196,151,58,0.35); background: rgba(196,151,58,0.04); }
.nx-spectrum-opt input { display: none; }
.nx-so-bar {
  width: 100%;
  background: linear-gradient(to top, var(--navy), var(--navy-mid));
  border-radius: 4px;
  transition: height 0.15s;
}
.nx-spectrum-opt.selected .nx-so-bar { background: linear-gradient(to top, var(--gold), var(--gold-light)); }
.nx-so-label { font-size: 0.72rem; font-weight: 600; color: var(--navy); }
.nx-so-desc { font-size: 0.65rem; color: var(--text-muted); line-height: 1.4; }

/* ── Loss reaction options (Q3-Q5) ──────────────────── */
.nx-loss-options { display: flex; flex-direction: column; gap: 8px; }
.nx-loss-opt {
  display: flex;
  align-items: center;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--ivory);
  overflow: hidden;
  transition: all 0.15s;
}
.nx-loss-opt:hover { border-color: rgba(196,151,58,0.35); background: rgba(196,151,58,0.04); }
.nx-loss-opt input { display: none; }
.nx-lo-inner { display: flex; align-items: center; width: 100%; }
.nx-lo-scale {
  display: flex;
  padding: 14px 12px;
  gap: 4px;
  border-right: 1px solid var(--border);
  background: var(--navy);
  flex-shrink: 0;
}
.nx-lo-tick {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.25);
  width: 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}
.nx-lo-tick.active { color: var(--gold); font-weight: 600; background: rgba(196,151,58,0.15); }
.nx-lo-body { padding: 12px 16px; flex: 1; }
.nx-loss-opt.selected .nx-lo-scale { background: rgba(196,151,58,0.15); }
.nx-loss-opt.selected .nx-lo-tick.active { color: var(--gold); }
.nx-lo-label { font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.nx-lo-note { font-size: 0.72rem; color: var(--text-muted); }

/* ── Numeric input row ───────────────────────────────── */
.nx-numeric-row { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.nx-numeric-label {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  max-width: 300px;
}
.nx-numeric-prefix, .nx-numeric-unit {
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 12px 10px;
  background: var(--ivory-dark);
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.nx-numeric-unit { border-right: none; border-left: 1px solid var(--border); }
.nx-numeric-input {
  font-family: 'DM Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  border: none;
  background: transparent;
  padding: 12px 14px;
  width: 160px;
  outline: none;
}
.nx-numeric-input:focus { background: rgba(196,151,58,0.04); }
.nx-numeric-hints {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.nx-numeric-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--ivory-dark);
  border: 1px solid var(--border);
  transition: all 0.1s;
}
.nx-numeric-hint.active { background: rgba(196,151,58,0.12); border-color: rgba(196,151,58,0.3); color: var(--navy); font-weight: 500; }

/* ── Horizon options ─────────────────────────────────── */
.nx-horizon-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.nx-horizon-opt {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--ivory);
  overflow: hidden;
  transition: all 0.15s;
}
.nx-horizon-opt:hover { border-color: rgba(196,151,58,0.35); background: rgba(196,151,58,0.04); }
.nx-horizon-opt input { display: none; }
.nx-ho-bar-wrap {
  height: 60px;
  display: flex;
  align-items: flex-end;
  padding: 0 12px;
}
.nx-ho-bar {
  width: 100%;
  background: linear-gradient(to top, var(--navy), rgba(12,27,51,0.3));
  border-radius: 4px 4px 0 0;
  transition: all 0.15s;
}
.nx-horizon-opt.selected .nx-ho-bar { background: linear-gradient(to top, var(--gold), rgba(196,151,58,0.3)); }
.nx-ho-label { font-size: 0.78rem; font-weight: 700; color: var(--navy); padding: 10px 12px 4px; text-align: center; }
.nx-ho-note { font-size: 0.65rem; color: var(--text-muted); padding: 0 12px 12px; text-align: center; line-height: 1.3; }
.nx-horizon-opt.selected { border-color: rgba(196,151,58,0.4); background: rgba(196,151,58,0.04); }

/* ── Resilience options ───────────────────────────────── */
.nx-resilience-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.nx-resilience-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--ivory);
  padding: 16px 12px;
  gap: 8px;
  transition: all 0.15s;
}
.nx-resilience-opt:hover { border-color: rgba(196,151,58,0.35); background: rgba(196,151,58,0.04); }
.nx-resilience-opt input { display: none; }
.nx-re-indicator {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.nx-resilience-opt.selected .nx-re-indicator { color: var(--gold); }
.nx-re-label { font-size: 0.78rem; font-weight: 600; color: var(--navy); }
.nx-re-sub { font-size: 0.65rem; color: var(--text-muted); line-height: 1.4; }
.nx-resilience-opt.selected { border-color: rgba(196,151,58,0.4); background: rgba(196,151,58,0.05); }

/* ── Binary options ──────────────────────────────────── */
.nx-binary-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.nx-binary-opt {
  display: flex;
  align-items: center;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--ivory);
  overflow: hidden;
  transition: all 0.15s;
}
.nx-binary-opt:hover { border-color: rgba(196,151,58,0.35); background: rgba(196,151,58,0.04); }
.nx-binary-opt input { display: none; }
.nx-bo-inner { padding: 16px 18px; text-align: center; width: 100%; }
.nx-bo-label { font-size: 0.88rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.nx-bo-sub { font-size: 0.72rem; color: var(--text-muted); line-height: 1.4; }
.nx-binary-opt.selected { border-color: rgba(196,151,58,0.4); background: rgba(196,151,58,0.06); }
.nx-binary-opt.selected .nx-bo-label { color: var(--navy); }

/* ── Behavioural scale (Q10) ─────────────────────────── */
.nx-behavioural-scale { margin-top: 12px; }
.nx-bs-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.nx-bs-labels span { font-size: 0.68rem; color: var(--text-muted); }
.nx-bs-track {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
}
.nx-bs-tick {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  flex: 1;
}
.nx-bs-tick input { display: none; }
.nx-bs-dot {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--ivory-dark);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all 0.15s;
}
.nx-bs-tick:hover .nx-bs-dot { border-color: rgba(196,151,58,0.4); color: var(--navy); }
.nx-bs-tick.selected .nx-bs-dot { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.nx-bs-note { font-size: 0.7rem; color: var(--text-muted); margin-top: 8px; text-align: center; }

/* ── Emergency scale (capacity Q2) ───────────────────── */
.nx-emergency-scale { margin-top: 12px; }
.nx-emergency-track { display: flex; align-items: flex-end; gap: 8px; }
.nx-emergency-opt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--ivory);
  overflow: hidden;
  transition: all 0.15s;
}
.nx-emergency-opt:hover { border-color: rgba(196,151,58,0.35); background: rgba(196,151,58,0.04); }
.nx-emergency-opt input { display: none; }
.nx-eo-bar { width: 100%; background: linear-gradient(to top, var(--navy), rgba(12,27,51,0.25)); border-radius: 4px 4px 0 0; }
.nx-emergency-opt.selected .nx-eo-bar { background: linear-gradient(to top, var(--gold), rgba(196,151,58,0.25)); }
.nx-eo-label { font-size: 0.78rem; font-weight: 700; color: var(--navy); padding: 10px 8px 4px; }
.nx-eo-sub { font-size: 0.62rem; color: var(--text-muted); padding: 0 6px 10px; line-height: 1.3; }
.nx-emergency-opt.selected { border-color: rgba(196,151,58,0.4); background: rgba(196,151,58,0.05); }

/* ── Percentage track (capacity Q5) ──────────────────── */
.nx-pct-track { margin-top: 12px; }
.nx-pct-options { display: flex; gap: 8px; }
.nx-pct-opt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--ivory);
  overflow: hidden;
  transition: all 0.15s;
  padding: 16px 8px 12px;
  gap: 10px;
}
.nx-pct-opt:hover { border-color: rgba(196,151,58,0.35); background: rgba(196,151,58,0.04); }
.nx-pct-opt input { display: none; }
.nx-pct-fill-wrap {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: flex-end;
}
.nx-pct-fill {
  width: 100%;
  background: linear-gradient(to top, var(--navy), rgba(12,27,51,0.3));
  border-radius: 4px;
}
.nx-pct-opt.selected .nx-pct-fill { background: linear-gradient(to top, var(--gold), rgba(196,151,58,0.3)); }
.nx-pct-label { font-size: 0.78rem; font-weight: 700; color: var(--navy); }
.nx-pct-note { font-size: 0.62rem; color: var(--text-muted); line-height: 1.3; }
.nx-pct-opt.selected { border-color: rgba(196,151,58,0.4); background: rgba(196,151,58,0.05); }

/* ── ATR result banner ────────────────────────────────── */
.nx-atr-result-banner {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--navy);
  border: 1px solid rgba(196,151,58,0.2);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
}
.nx-atr-result-score {
  text-align: center;
  flex-shrink: 0;
}
.nx-atr-score-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.nx-atr-score-label { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-top: 4px; letter-spacing: 0.08em; }
.nx-atr-result-body { flex: 1; }
.nx-atr-result-band {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.nx-atr-result-desc { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.6; }
.nx-atr-result-action { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; flex-shrink: 0; }

/* ── Capacity for Loss result ────────────────────────── */
.nx-cap-result { display: flex; flex-direction: column; gap: 16px; }
.nx-cap-result-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
}
.nx-cap-result-card--rating {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nx-cap-rating-badge {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 12px;
  flex-shrink: 0;
}
.nx-cap-rating-badge--high { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.25); color: #059669; }
.nx-cap-rating-badge--medium { background: rgba(196,151,58,0.12); border: 1px solid rgba(196,151,58,0.25); color: #92700c; }
.nx-cap-rating-badge--low { background: rgba(180,83,9,0.1); border: 1px solid rgba(180,83,9,0.2); color: #92400e; }
.nx-cap-rating-badge--none { background: var(--ivory-dark); border: 1px solid var(--border); color: var(--text-muted); }
.nx-cap-rating-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.nx-cap-score-bar {
  flex: 1;
  height: 8px;
  background: var(--ivory-dark);
  border-radius: 8px;
  overflow: hidden;
}
.nx-cap-score-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 8px; transition: width 0.5s; }
.nx-cap-score-note { font-family: 'DM Mono', monospace; font-size: 0.8rem; color: var(--text-muted); flex-shrink: 0; }
.nx-cap-result-card--profile { }
.nx-cap-profile-header {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.nx-cap-profile-matrix { display: flex; gap: 0; margin-bottom: 16px; }
.nx-cap-profile-cell {
  flex: 1;
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.nx-cap-profile-cell:last-child { border-right: none; }
.nx-cap-profile-cell--result { background: var(--navy); border-radius: 0; }
.nx-cap-profile-cell--result .nx-cap-cell-label { color: rgba(255,255,255,0.4); }
.nx-cap-cell-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.nx-cap-cell-value { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; }
.nx-cap-cell-value--atr { color: var(--navy); }
.nx-cap-cell-value--cap { color: #059669; }
.nx-cap-cell-value--result { color: var(--gold); }
.nx-cap-profile-note { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }
.nx-cap-profile-note strong { color: var(--navy); }
.nx-cap-questions-summary {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}
.nx-cap-qs-header { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.nx-cap-qs-grid { display: flex; flex-direction: column; gap: 0; }
.nx-cap-qs-row {
  display: grid;
  grid-template-columns: 1fr 1fr 60px;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.nx-cap-qs-row:last-child { border-bottom: none; }
.nx-cap-qs-label { color: var(--text-muted); }
.nx-cap-qs-val { font-weight: 500; color: var(--navy); }
.nx-cap-qs-score { font-family: 'DM Mono', monospace; font-size: 0.75rem; color: #059669; text-align: right; }
.nx-cap-actions { display: flex; gap: 12px; }

/* ── Consumer Duty notice ────────────────────────────── */
.nx-consumer-duty-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(5,150,105,0.06);
  border: 1px solid rgba(5,150,105,0.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
}
.nx-cdn-icon {
  color: #059669;
  flex-shrink: 0;
  padding-top: 2px;
}
.nx-cdn-label { font-size: 0.8rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.nx-cdn-text { font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; }

/* ── Responsive for questionnaire ────────────────────── */
@media (max-width: 900px) {
  .nx-spectrum-list { grid-template-columns: repeat(3, 1fr); }
  .nx-horizon-options { grid-template-columns: repeat(3, 1fr); }
  .nx-resilience-options { grid-template-columns: repeat(2, 1fr); }
  .nx-pct-options { flex-wrap: wrap; }
  .nx-pct-opt { min-width: calc(50% - 4px); }
  .nx-atr-result-banner { flex-wrap: wrap; }
  .nx-cap-result-card--rating { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .nx-question { padding: 18px 20px; }
  .nx-spectrum-list { grid-template-columns: repeat(2, 1fr); }
  .nx-binary-options { grid-template-columns: 1fr; }
  .nx-emergency-track { flex-wrap: wrap; }
  .nx-emergency-opt { flex: 1 1 calc(50% - 4px); }
  .nx-behavioural-scale .nx-bs-track { gap: 3px; padding: 8px; }
  .nx-bs-dot { width: 22px; height: 22px; font-size: 0.6rem; }
  .nx-atr-result-banner { flex-direction: column; align-items: flex-start; }
  .nx-atr-result-action { align-items: flex-start; }
  .nx-cap-profile-matrix { flex-wrap: wrap; }
  .nx-cap-profile-cell { flex: 1 1 50%; border-bottom: 1px solid var(--border); }
  .nx-cap-profile-cell--result { flex: 1 1 100%; }
  .nx-cap-qs-row { grid-template-columns: 1fr 1fr; }
  .nx-cap-qs-score { display: none; }
}

@media (max-width: 480px) {
  .nx-section-steps { grid-template-columns: repeat(2, 1fr); }
  .nx-ff-table-row:not(.nx-ff-table-row--head):not(.nx-ff-table-row--total) { grid-template-columns: 1fr; }
  .nx-stub-meta { grid-template-columns: 1fr; }
  .nx-horizon-options { grid-template-columns: 1fr 1fr; }
}