/* HumiRoute Core Runtime Styles v2.7 — Responsive + Accessible */
.humiroute-container { width: 100%; max-width: 100%; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; padding: 0 16px; box-sizing: border-box; }
@media (min-width:640px) { .humiroute-container { padding: 0 24px; } }
@media (min-width:1024px) { .humiroute-container { padding: 0 40px; } }

/* Quiz title — synced from config */
.humiroute-quiz-title { font-size: 1.4rem; font-weight: 700; text-align: center; margin: 0 0 20px; color: #111827; }
.humiroute-quiz-subtitle { font-size: 13px; color: #4b5563; text-align: center; margin: -12px 0 24px; }

/* Progress bar */
.humiroute-progress { height: 4px; background: #e5e7eb; border-radius: 2px; margin-bottom: 4px; }
.humiroute-progress-bar { height: 100%; background: #6366f1; border-radius: 2px; transition: width 0.6s ease; }
.humiroute-progress-label { font-size: 12px; color: #6b7280; text-align: right; margin-bottom: 16px; }

/* Questions */
.humiroute-node { padding: 24px 0; }
.humiroute-question { font-size: 1.25rem; font-weight: 600; margin: 0 0 20px; color: #111827; line-height: 1.5; }
.humiroute-options { display: flex; flex-direction: column; gap: 10px; }
.humiroute-option {
  display: block; width: 100%; padding: 14px 18px; background: #fff;
  border: 2px solid #e5e7eb; border-radius: 10px; font-size: 1rem; text-align: left;
  cursor: pointer; transition: border-color .15s, background .15s; color: #111827 !important;
}
.humiroute-option:hover { border-color: #6366f1 !important; background: #f5f3ff !important; color: #111827 !important; }
.humiroute-option:hover span { color: #111827 !important; }
.humiroute-opt-text { display:block; font-weight:600; line-height:1.4; }
.humiroute-opt-desc { display:block; font-size:0.8em; color:#6b7280; margin-top:2px; line-height:1.4; font-weight:400; }
.humiroute-option:active { border-color: #4f46e5 !important; background: #ede9fe !important; color: #111827 !important; }

/* Responsive: wider on desktop */
@media (min-width:1024px) {
  .humiroute-quiz-title  { font-size:1.6rem; }
  .humiroute-question    { font-size:1.35rem; }
  .humiroute-option      { padding:16px 24px; font-size:1.05rem; }
  .humiroute-options     { gap:12px; }
}

/* Result page */
.humiroute-result { padding: 32px 0; }

/* v2 M1-M5 module layout */
.hr-result-v2 {}
.hr-module { margin-bottom: 24px; }
.hr-module h3 { margin: 0 0 12px; font-size: 16px; color: #111827; font-weight: 700; }

/* M1: Hero */
.hr-m1-hero { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:32px; border-radius:16px; background: linear-gradient(135deg, #0f0f1a 0%, #1e1b4b 50%, #0f0f1a 100%); border: 1px solid rgba(99,102,241,.15); position: relative; overflow: hidden; }
.hr-m1-hero::before { content: ''; position: absolute; top: 0; right: 0; width: 300px; height: 300px; background: radial-gradient(circle, rgba(99,102,241,.08) 0%, transparent 70%); pointer-events: none; }
.hr-m1-hero h2 { font-size: 24px; font-weight: 800; color: #f1f5f9; margin:0; line-height:1.4; letter-spacing: -0.3px; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.hr-m1-hero.hr-hero-ready { border-color: rgba(16,185,129,.3); }
.hr-m1-hero.hr-hero-explore { border-color: rgba(245,158,11,.3); }
/* Dark theme M1 overrides */
.hr-result-v3 .hr-m1-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; background: linear-gradient(135deg, #0f0f1a 0%, #1e1b4b 50%, #0f0f1a 100%); border: 1px solid rgba(99,102,241,.15); border-radius: 16px; padding: 32px; position: relative; overflow: hidden; }
.hr-result-v3 .hr-m1-hero::before { content: ''; position: absolute; top: 0; right: 0; width: 300px; height: 300px; background: radial-gradient(circle, rgba(99,102,241,.08) 0%, transparent 70%); pointer-events: none; }
.hr-result-v3 .hr-m1-left { position: relative; z-index: 1; }
.hr-result-v3 .hr-m1-left h2 { font-size: 24px; font-weight: 800; margin: 0 0 10px; line-height: 1.35; color: #f1f5f9; letter-spacing: -0.3px; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.hr-result-v3 .hr-m1-right { position: relative; z-index: 1; }
.hr-result-v3 .hr-m2-dims { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }

/* Permission Slip */
.hr-m3-permission { background: linear-gradient(135deg, #fef3c7, #fde68a); border-radius: 12px; padding: 20px; margin-bottom: 16px; border-left: 4px solid #f59e0b; }
.hr-m3-permission .hr-m3-header h3 { color: #92400e; }
.hr-permission-text { font-size: 14px; line-height: 1.7; color: #78350f; margin: 8px 0 0; font-style: italic; }

/* Economic Leverage */
.hr-m4-leverage { background: #f0fdf4; border-radius: 12px; padding: 16px; margin: 12px 0; border-left: 4px solid #10b981; }
.hr-m4-lev-tag { font-size: 12px; font-weight: 700; color: #065f46; display: block; margin-bottom: 6px; }
.hr-m4-leverage p { margin: 0; font-size: 13px; color: #064e3b; line-height: 1.6; }

/* Archetype tagline */
.hr-arch-tagline { font-size: 13px; color: #64748b; margin: 6px 0 0; line-height: 1.5; font-style: italic; }

/* Tag Cloud Rows */
.hr-tag-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 4px 0; }
.hr-tag-row-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 2px 8px; border-radius: 8px; }
.hr-tag-likes-row .hr-tag-row-label { background: #d1fae5; color: #065f46; }
.hr-tag-dislikes-row .hr-tag-row-label { background: #fee2e2; color: #991b1b; }

/* Pursue/Avoid */
.hr-m4-pursue, .hr-m4-avoid { background: #fff; border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.hr-m4-pursue { border-left: 4px solid #10b981; }
.hr-m4-avoid { border-left: 4px solid #ef4444; }
.hr-m4-section-tag { font-size: 12px; font-weight: 700; display: block; margin-bottom: 8px; }
.hr-m4-pursue .hr-m4-section-tag { color: #065f46; }
.hr-m4-avoid .hr-m4-section-tag { color: #991b1b; }
.hr-m4-pursue ul, .hr-m4-avoid ul { margin: 0; padding: 0 0 0 18px; }
.hr-m4-pursue li, .hr-m4-avoid li { font-size: 13px; line-height: 1.7; color: #374151; }

/* ═══════════════════════════════════════════════════════════════════════
   Hybrid Paywall
   ═══════════════════════════════════════════════════════════════════════ */
.hr-hybrid-paywall { max-width: 560px; margin: 0 auto; padding: 8px 0; }
.hr-hp-header { text-align: center; margin-bottom: 24px; }
.hr-hp-header h3 { font-size: 24px; font-weight: 800; color: #111827; margin: 0 0 6px; letter-spacing: -.3px; }
.hr-hp-sub { font-size: 15px; color: #6b7280; margin: 0; }

.hr-hp-layer { background: #fff; border-radius: 16px; padding: 22px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.04); border: 1px solid #f1f5f9; }
.hr-hp-layer-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #6b7280; margin-bottom: 14px; }

.hr-hp-candidate { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hr-hp-cand-label { flex:0 0 100px; font-size:14px; font-weight:700; color:#374151; text-align:right; }
.hr-hp-cand-track { flex:1; height:10px; background:#f3f4f6; border-radius:5px; overflow:hidden; }
.hr-hp-cand-fill { height:100%; border-radius:5px; transition:width .4s ease; }
.hr-hp-cand-pct { flex:0 0 36px; font-size:12px; color:#9ca3af; text-align:left; }
.hr-hp-cand-note { font-size:11px; color:#9ca3af; text-align:center; margin:8px 0 0; }

.hr-hp-signal { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid #f3f4f6; align-items:center; }
.hr-hp-signal:last-child { border-bottom:none; }
.hr-hp-signal-label { font-size:14px; color:#374151; }
.hr-hp-signal-val { font-size:12px; font-weight:700; color:#6366f1; min-width:36px; text-align:center; }
.hr-hp-signal-level { font-size:12px; font-weight:600; min-width:60px; text-align:right; }
.hr-hp-signal-note { font-size:11px; color:#9ca3af; text-align:center; margin:8px 0 0; }

.hr-hp-layer-unlock { text-align:center; }
.hr-hp-benefits { list-style:none; padding:0; margin:14px 0; text-align:left; }
.hr-hp-benefits li { font-size:14px; color:#374151; padding:6px 0 6px 22px; position:relative; }
.hr-hp-benefits li::before { content:'✓'; position:absolute; left:0; color:#10b981; font-weight:700; }
.hr-hp-cta-btn { display:inline-block; background:linear-gradient(135deg,#6366f1,#8b5cf6); color:#fff; padding:16px 36px; border-radius:14px; font-size:16px; font-weight:800; text-decoration:none; transition:transform .15s, box-shadow .15s; box-shadow:0 4px 12px rgba(99,102,241,.3); }
.hr-hp-cta-btn:hover { transform:scale(1.03); box-shadow:0 6px 20px rgba(99,102,241,.4); }
.hr-hp-waiting { font-size:12px; color:#9ca3af; margin-top:12px; }
.hr-hp-retry-btn { display:block; margin:10px auto 0; padding:6px 16px; border:1px solid #d1d5db; border-radius:8px; font-size:12px; color:#6b7280; cursor:pointer; background:#fff; }
.hr-hp-disclaimer { font-size:11px; color:#9ca3af; text-align:center; margin-top:16px; line-height:1.5; }
.hr-hp-layer-mod { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.hr-hp-mod-text { font-size: 13px; line-height: 1.7; color: #78350f; margin: 0; }

/* ═══════════════════════════════════════════════════════════════════════
   Pre-Paywall Transition (Two-Step Perceived Completion)
   ═══════════════════════════════════════════════════════════════════════ */
.hr-prewall { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; gap: 24px; min-height: 320px; }
.hr-prewall-step { display: flex; align-items: center; gap: 14px; opacity: 0; transform: translateY(8px); }
.hr-prewall-step-a { animation: hrPrewallFadeIn .35s ease forwards; }
.hr-prewall-step-b { animation: hrPrewallFadeIn .35s ease .2s forwards; }
@keyframes hrPrewallFadeIn { to { opacity: 1; transform: translateY(0); } }
.hr-prewall-text { font-size: 16px; color: #374151; font-weight: 500; }
.hr-prewall-pulse { width: 28px; height: 28px; border-radius: 50%; background: #d1fae5; animation: hrPrewallPulse .8s ease-in-out infinite; }
@keyframes hrPrewallPulse { 0%,100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.05); } }
.hr-prewall-done { gap: 20px; }
.hr-prewall-done .hr-prewall-step { opacity: 1; transform: translateY(0); animation: none; }
.hr-prewall-reveal-text { font-size: 18px; font-weight: 700; color: #6366f1; margin-top: 12px; opacity: 0; animation: hrPrewallFadeIn .4s ease .3s forwards; }

/* ═══════════════════════════════════════════════════════════════════════
   DNA Index
   ═══════════════════════════════════════════════════════════════════════ */
.hr-dna-index { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.hr-dna-idx-label { font-size: 10px; text-transform: uppercase; color: #9ca3af; letter-spacing: .5px; }
.hr-dna-idx-code { font-family: 'SF Mono', 'Consolas', monospace; font-size: 18px; font-weight: 800; letter-spacing: 3px; color: #6366f1; }

/* ═══════════════════════════════════════════════════════════════════════
   Additional Notes (Starter/Finisher, Facts/Emotions, Chameleon)
   ═══════════════════════════════════════════════════════════════════════ */
.hr-notes { background: #fff; border-radius: 14px; padding: 18px 20px; box-shadow: 0 1px 4px rgba(0,0,0,.05); margin-bottom: 20px; }
.hr-notes h3 { font-size: 13px; color: #6b7280; margin: 0 0 12px; }
.hr-notes-grid { display: flex; gap: 16px; flex-wrap: wrap; }
.hr-note-item { flex: 1; min-width: 120px; }
.hr-note-full { flex-basis: 100%; }
.hr-note-label { display: block; font-size: 11px; color: #9ca3af; text-transform: uppercase; margin-bottom: 4px; }
.hr-note-val { font-size: 13px; font-weight: 700; }
.hr-note-finisher { color: #10b981; }
.hr-note-starter { color: #f59e0b; }
.hr-note-balanced { color: #6366f1; }
.hr-note-facts-driven { color: #3b82f6; }
.hr-note-emotions-driven { color: #ec4899; }
.hr-note-n\/a { color: #9ca3af; }
.hr-note-chameleon { font-weight: 400; font-size: 12px; color: #6b7280; line-height: 1.6; display: block; }
.hr-note-desc { font-size: 12px; color: #6b7280; line-height: 1.7; margin: 6px 0 0; }
.hr-m6-explain { margin-top: 12px; }
.hr-m6-explain p { font-size: 12px; color: #6b7280; line-height: 1.7; margin: 6px 0; padding: 8px 12px; background: #f8fafc; border-radius: 8px; }
.hr-arch-tagline { color: #8a8a9e; }

/* ═══════════════════════════════════════════════════════════════════════
   Strategy Path (M4)
   ═══════════════════════════════════════════════════════════════════════ */
.hr-m4-strategy { background: linear-gradient(135deg, #ede9fe, #e0e7ff); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.hr-m4-strategy h3 { font-size: 16px; color: #4c1d95; margin: 0 0 14px; }
.hr-m4-strat-grid { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.hr-m4-strat-item { flex: 1; min-width: 80px; background: #fff; border-radius: 10px; padding: 10px; text-align: center; }
.hr-m4-strat-label { display: block; font-size: 10px; color: #9ca3af; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.hr-m4-strat-val { display: block; font-size: 13px; font-weight: 700; color: #4338ca; }
.hr-m4-strat-rec { font-size: 13px; line-height: 1.8; color: #374151; margin: 0; }
.hr-m4-strat-roles { margin-top: 12px; }
.hr-m4-strat-roles-label { font-size: 11px; font-weight: 700; display: block; margin-bottom: 6px; color: #374151; }
.hr-m4-strat-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hr-m4-strat-tag { font-size: 11px; padding: 3px 10px; border-radius: 12px; font-weight: 500; }
.hr-tag-good { background: #d1fae5; color: #065f46; }
.hr-tag-bad { background: #fee2e2; color: #991b1b; }

/* ═══════════════════════════════════════════════════════════════════════
   M6 — Platform Fit Simulation
   ═══════════════════════════════════════════════════════════════════════ */
.hr-m6-simulation { background: #fff; border-radius: 14px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.05); margin-bottom: 24px; }
.hr-m6-simulation h3 { font-size: 14px; color: #374151; margin: 0 0 8px; }
.hr-m6-platform-label { font-size: 12px; color: #6b7280; margin-bottom: 12px; }
.hr-m6-fit-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hr-m6-fit-track { flex: 1; height: 10px; background: #f3f4f6; border-radius: 5px; overflow: hidden; }
.hr-m6-fit-fill { height: 100%; border-radius: 5px; transition: width .5s ease; }
.hr-m6-fit-score { font-size: 18px; font-weight: 800; min-width: 48px; text-align: right; }
.hr-m6-income { display: flex; justify-content: space-between; padding: 10px 14px; background: #f8fafc; border-radius: 10px; margin-bottom: 14px; }
.hr-m6-income-label { font-size: 12px; color: #6b7280; }
.hr-m6-income-val { font-size: 14px; font-weight: 700; color: #4338ca; }
.hr-m6-roles { margin-bottom: 12px; }
.hr-m6-roles-label { display: block; font-size: 11px; color: #6b7280; margin-bottom: 6px; }
.hr-m6-roles-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hr-m6-role-tag { font-size: 11px; padding: 3px 10px; background: #ede9fe; color: #5b21b6; border-radius: 12px; font-weight: 500; }
.hr-m6-note { font-size: 11px; color: #9ca3af; margin: 0; text-align: center; }

/* Economic grid */
.hr-m6-econ-grid { margin-bottom: 14px; }
.hr-m6-econ-item { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hr-m6-econ-label { width: 72px; font-size: 11px; color: #6b7280; text-align: right; flex-shrink: 0; }
.hr-m6-econ-bar { flex: 1; height: 6px; background: #f3f4f6; border-radius: 3px; overflow: hidden; }
.hr-m6-econ-fill { height: 100%; border-radius: 3px; transition: width .5s ease; }
.hr-m6-econ-val { font-size: 12px; font-weight: 700; min-width: 36px; }
.hr-m6-meta-row { display: flex; justify-content: space-between; padding: 8px 14px; background: #f8fafc; border-radius: 10px; margin-bottom: 14px; font-size: 12px; color: #6b7280; }
.hr-m6-meta-row strong { color: #374151; }

/* ═══════════════════════════════════════════════════════════════════════
   Pipeline Inspector (Operator Mode)
   ═══════════════════════════════════════════════════════════════════════ */
.hr-inspector { margin: 24px 0 0; border-radius: 14px; overflow: hidden; border: 2px solid #6366f1; background: #1e293b; color: #e2e8f0; font-family: 'SF Mono','Consolas',monospace; font-size: 11px; }
.hr-insp-header { padding: 8px 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 12px; color: #a5b4fc; user-select: none; }
.hr-insp-arrow { font-size: 10px; }
.hr-insp-body { padding: 8px 16px 16px; }
.hr-insp-section { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #334155; }
.hr-insp-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.hr-insp-sec-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: #818cf8; margin-bottom: 4px; font-weight: 700; }
.hr-insp-kv { display: inline-block; margin-right: 14px; color: #94a3b8; }
.hr-insp-kv strong { color: #e2e8f0; }
.hr-insp-trace { max-height: 200px; overflow-y: auto; margin-top: 6px; }
.hr-insp-trace-row { display: flex; gap: 12px; padding: 2px 0; color: #64748b; border-bottom: 1px dashed #1e293b; }
.hr-insp-trace-row:hover { color: #e2e8f0; background: #1e293b; }

.humiroute-option.selected-most { border-color:#6366f1 !important; background:#dbeafe !important; color:#1e40af !important; font-weight:600; box-shadow:0 0 0 3px rgba(99,102,241,.15); }
.humiroute-option.selected-least { border-color:#ef4444 !important; background:#fee2e2 !important; color:#991b1b !important; font-weight:600; box-shadow:0 0 0 3px rgba(239,68,68,.1); }
.humiroute-option:disabled { opacity:.65; }
.humiroute-ml-hint { display:inline-block; padding:4px 14px; border-radius:10px; font-size:14px; font-weight:700; margin-bottom:8px; background:#ede9fe; color:#5b21b6; }
.humiroute-back-btn { background:transparent; border:1px solid #d1d5db; color:#6b7280; padding:8px 18px; border-radius:10px; font-size:14px; cursor:pointer; transition:all .15s; display:inline-flex; align-items:center; gap:4px; }
.humiroute-back-btn:hover { border-color:#6366f1; color:#6366f1; background:#eef2ff; }
.hr-back-arrow { font-size:16px; font-weight:700; }
.hr-m2-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.hr-m2-header h3 { font-size:15px; color:#374151; margin:0; }
.hr-chart-toggle-btn {
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s;
}
.hr-chart-toggle-btn:hover {
  background: #f9fafb;
  border-color: #6366f1;
  color: #6366f1;
}
.slide-out-left { animation: hrSlideOutLeft .25s ease forwards; }
@keyframes hrSlideOutLeft { to { opacity:0; transform:translateX(-30px); } }

/* ═══ Result Page — Restored Styles ═══ */

/* Archetype tag */
.hr-archetype-tag { display: flex; gap: 10px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.hr-arch-primary { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; padding: 8px 20px; border-radius: 22px; font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.hr-arch-func { background: #e0e7ff; color: #4338ca; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 500; }
.hr-arch-mod { background: #f0f0ff; color: #6366f1; padding: 4px 12px; border-radius: 16px; font-size: 12px; font-weight: 600; border: 1px solid #c7d2fe; }
.hr-arch-conf { font-size: 11px; color: #94a3b8; }
.hr-arch-tagline { color: #8a8a9e; font-size: 13px; margin: 6px 0 0; line-height: 1.5; font-style: italic; }

/* Confidence ring */
.hr-confidence-ring { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; }
.hr-conf-label { font-size: 11px; color: #94a3b8; }

/* Dimension bars */
.hr-dim-bar { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.hr-dim-label { width: 100px; font-size: 12px; color: #374151; text-align: right; flex-shrink: 0; }
.hr-dim-track { flex: 1; height: 8px; background: #f3f4f6; border-radius: 4px; overflow: hidden; }
.hr-dim-fill { height: 100%; border-radius: 4px; transition: width .5s ease; }
.hr-dim-score { font-size: 12px; font-weight: 700; color: #6b7280; min-width: 32px; }
.hr-dim-bottleneck .hr-dim-label { color: #ef4444; font-weight: 700; }

/* Radar chart */
.hr-radar-wrap { text-align: center; }
.hr-radar-svg { max-width: 280px; margin: 0 auto; }
.hr-radar-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.hr-radar-chip { font-size: 11px; padding: 3px 10px; background: #f3f4f6; border-radius: 8px; color: #6b7280; }
.hr-radar-chip--bottleneck { background: #fee2e2; color: #dc2626; }

/* Bottleneck items */
.hr-bn-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #fef2f2; }
.hr-bn-item:last-child { border-bottom: none; }
.hr-bn-dim { flex: 1; font-size: 14px; font-weight: 600; color: #374151; }
.hr-bottleneck-tag { font-size: 14px; color: #ef4444; font-weight: 600; margin: 8px 0; }
.hr-bottleneck-tag span { background: #fee2e2; padding: 2px 10px; border-radius: 6px; }
.hr-bn-explain { font-size: 13px; line-height: 1.8; color: #374151; margin: 10px 0 0; padding: 12px 14px; background: #fef3c7; border-radius: 10px; border-left: 3px solid #f59e0b; }

/* Tag cloud pills */
.hr-tag-cloud { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 14px 0; justify-content: center; align-items: center; }
.hr-tag { display: inline-block; padding: 6px 16px; border-radius: 20px; font-weight: 600; font-size: 14px; transition: all .2s; white-space: nowrap; }
.hr-tag-likes .hr-tag { background: rgba(46,213,115,.12); color: #2ed573; border: 1px solid rgba(46,213,115,.2); }
.hr-tag-dislikes .hr-tag { background: rgba(255,71,87,.12); color: #ff4757; border: 1px solid rgba(255,71,87,.2); }
.hr-tag-neutral .hr-tag { background: #ede9fe; color: #5b21b6; border: 1px solid #c4b5fd; }
.hr-tag-cloud-block { background: #fff; border-radius: 14px; padding: 16px 20px; margin: 12px 0; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.hr-tag-cloud-block h4 { margin: 0 0 10px; font-size: 12px; color: #6b7280; text-align: center; text-transform: uppercase; letter-spacing: .5px; }
.hr-tag-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 2px 0; }
.hr-tag-row-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 3px 10px; border-radius: 10px; }
.hr-tag-likes-row .hr-tag-row-label { background: #d1fae5; color: #065f46; }
.hr-tag-dislikes-row .hr-tag-row-label { background: #fee2e2; color: #991b1b; }

/* M3 bottleneck header */
.hr-m3-header { margin-bottom: 12px; }
.hr-m3-header h3 { font-size: 15px; margin: 0; }
.hr-m3-pain { font-size: 13px; color: #991b1b; margin: 8px 0 0; line-height: 1.7; }
.hr-m3-action-hint { font-size: 12px; color: #6b7280; text-align: center; margin-top: 12px; }

/* M4 insight */
.hr-m4-insight h3 { font-size: 15px; color: #374151; margin: 0 0 10px; }
.hr-m4-explain { font-size: 14px; line-height: 1.8; color: #374151; margin: 0 0 12px; }
.hr-m4-cost { background: #fef3c7; border-radius: 12px; padding: 14px; margin: 12px 0; border-left: 4px solid #f59e0b; }
.hr-m4-cost-tag { font-size: 11px; font-weight: 700; color: #92400e; display: block; margin-bottom: 4px; }
.hr-m4-cost p { margin: 0; font-size: 13px; color: #78350f; }

/* M5 CTA + lead form */
.hr-m5-cta { text-align: center; }
.hr-m5-cta-action { margin-bottom: 20px; }
.hr-lead-capture { background: #fff; border-radius: 14px; padding: 20px; text-align: left; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.hr-lead-capture h4 { margin: 0 0 4px; font-size: 14px; }
.hr-lead-capture p { font-size: 12px; color: #6b7280; margin: 0 0 12px; }
.hr-lead-form { display: flex; flex-direction: column; gap: 8px; }
.hr-lead-form input, .hr-lead-form textarea { padding: 10px 14px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; font-family: inherit; }
.hr-lead-form input:focus, .hr-lead-form textarea:focus { outline: none; border-color: #6366f1; }
.hr-lead-note { font-size: 11px; color: #9ca3af; display: block; margin-top: 8px; }
.hr-cta-secondary { padding: 10px 24px; border-radius: 10px; background: #6366f1; color: #fff; border: none; cursor: pointer; font-weight: 600; font-size: 14px; }

/* ═══════════════════════════════════════════════════════════════════════
   CTA Rich Card (v5.8.3)
   ═══════════════════════════════════════════════════════════════════════ */
.hr-cta-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto;
  max-width: 500px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.hr-card-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 6px 16px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  text-align: center;
}
.hr-card-body {
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.hr-card-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.hr-card-content { flex: 1; }
.hr-card-content h4 { margin: 0 0 4px; font-size: 15px; color: #111827; }
.hr-card-content p  { margin: 0; font-size: 13px; color: #6b7280; line-height: 1.5; }
.hr-card-btn {
  display: block;
  text-align: center;
  padding: 12px 24px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  margin: 12px 24px 0;
  transition: transform .15s;
}
.hr-card-btn:hover { transform: translateY(-1px); }
.hr-card-benefits {
  margin: 16px 24px 0;
  padding: 16px 0 0;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hr-card-benefit {
  font-size: 12px;
  color: #475569;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}
.hr-card-benefit::before { content: "✓"; color: #10b981; font-weight: 700; flex-shrink: 0; }
.hr-card-social-proof {
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  padding: 10px 24px 4px;
}
.hr-card-guarantee {
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
  padding: 4px 24px 16px;
}

/* ═══════════════════════════════════════════════════════════════════════
   Confidence Builder (v5.8 — Diagnosis Product)
   ═══════════════════════════════════════════════════════════════════════ */
.hr-m3-confidence {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}
.hr-cf-hero {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}
.hr-cf-tag {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hr-cf-sub {
  color: #64748b;
  font-size: 13px;
  margin-top: 4px;
  font-style: italic;
}
.hr-cf-dim-section {
  margin-bottom: 24px;
}
.hr-cf-dim-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.hr-cf-dim-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e293b;
}
.hr-cf-why {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.hr-cf-why-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6366f1;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.hr-cf-signal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hr-cf-signal-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}
.hr-cf-signal-icon {
  color: #6366f1;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.hr-cf-signal-positive .hr-cf-signal-icon {
  color: #10b981;
}
.hr-cf-signal-text {
  flex: 1;
}
.hr-cf-conf {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #4338ca;
  text-align: center;
}
.hr-cf-conf strong {
  color: #4338ca;
}
.hr-cf-all-dims {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}
.hr-cf-all-dims h4 {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 12px;
}
.hr-cf-dim-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}
.hr-cf-dim-row-label {
  width: 72px;
  font-size: 12px;
  color: #64748b;
  flex-shrink: 0;
}
.hr-cf-dim-row-track {
  flex: 1;
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}
.hr-cf-dim-row-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .5s ease;
}
.hr-cf-dim-row-val {
  width: 28px;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}
.hr-cf-dim-row-tag {
  font-size: 10px;
  background: #fef2f2;
  color: #dc2626;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.hr-cf-dim-bn {
  background: #fef2f2;
  border-radius: 8px;
  padding: 6px 8px;
}
.hr-cf-impact {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border-left: 3px solid #f59e0b;
  border-radius: 0 12px 12px 0;
  padding: 16px;
  margin-top: 20px;
}
.hr-cf-impact h4 {
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
  margin: 0 0 8px 0;
}
.hr-cf-impact p {
  font-size: 13px;
  color: #78350f;
  line-height: 1.6;
  margin: 0;
}

/* Pattern Evidence */
.hr-cf-pattern {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}
.hr-cf-pattern h4 {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin: 0 0 10px 0;
}
.hr-cf-pattern-stat {
  font-size: 13px;
  color: #475569;
  background: #f8fafc;
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.5;
  margin: 0 0 14px 0;
}
.hr-cf-kudos {}
.hr-cf-kudos-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.hr-cf-kudo-item {
  background: #f8fafc;
  border-left: 2px solid #6366f1;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.hr-cf-kudo-quote {
  display: block;
  font-size: 13px;
  color: #475569;
  font-style: italic;
  line-height: 1.5;
}
.hr-cf-kudo-meta {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

/* Next Action (M5) */
.hr-m5-verb {
  font-size: 1.15rem;
  font-weight: 700;
  color: #4338ca;
  margin-bottom: 6px;
}
.hr-m5-why {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 16px 0;
  max-width: 480px;
}

/* Mobile adjustments for Confidence Builder */
@media (max-width: 480px) {
  .hr-cf-dim-row-label {
    width: 56px;
    font-size: 11px;
  }
  .hr-cf-tag {
    font-size: 1.25rem;
  }
  .hr-cf-dim-name {
    font-size: .95rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   Share Button
   ═══════════════════════════════════════════════════════════════════════ */
.hr-share-btn {
  background: none;
  border: 1px solid #6366f1;
  color: #6366f1;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  padding: 4px 12px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.hr-share-btn:hover {
  background: #6366f1;
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════
   Counterfactual Engine (v5.8.2)
   ═══════════════════════════════════════════════════════════════════════ */
.hr-cf-counterfactual {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  padding: 18px;
  margin-top: 16px;
}
.hr-cf-counterfactual h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #4338ca;
}
.hr-cf-cfact-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hr-cf-cfact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(99,102,241,.1);
}
.hr-cf-cfact-item:last-child { border-bottom: none; }
.hr-cf-cfact-label {
  font-size: 12px;
  color: #4338ca;
}
.hr-cf-cfact-arrow {
  font-size: 12px;
  color: #4338ca;
  font-weight: 600;
}
.hr-cf-cfact-note {
  margin: 10px 0 0;
  font-size: 11px;
  color: #818cf8;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════════════
   Identity Echo — second-screen reveal (v5.8.2)
   ═══════════════════════════════════════════════════════════════════════ */
.hr-cf-identity {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
}
.hr-cf-id-divider {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #c7d2fe, #6366f1, #c7d2fe);
  margin: 0 auto 16px;
}
.hr-cf-id-label {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 6px;
}
.hr-cf-id-tag {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hr-cf-id-sub {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════
   Radar Chart Glow Dots (v5.2.2 restored + animation)
   ═══════════════════════════════════════════════════════════════════════ */
@keyframes hrRadarGlow { 0%,100% { opacity: .4; } 50% { opacity: .9; } }
.hr-radar-dot { animation: hrRadarGlow 2s ease-in-out infinite; }
