/* Shared Business Control Report styles (rp-*) — used by session.html and my-report.html */
:root {
  --bg:         #f2f2fa;
  --surface:    #ffffff;
  --surface-hi: #f0f0f8;
  --bdr:        rgba(0,0,0,0.09);
  --bdr-hi:     rgba(0,0,0,0.18);
  --t1:         #12122a;
  --t2:         #52528a;
  --t3:         #9898c8;
  --blue:       #4a7ef0;
  --purple:     #8b6ef5;
  --green:      #10b981;
  --amber:      #d97706;
  --red:        #ef4444;
}

/* Report section */
.rp-section { margin-bottom: 20px; }
.rp-section-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--t3);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--bdr);
  margin-bottom: 10px;
}
.rp-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.rp-dot.blue   { background: #4a7ef0; }
.rp-dot.red    { background: #ef4444; }
.rp-dot.green  { background: #10b981; }
.rp-dot.amber  { background: #d97706; }
.rp-dot.purple { background: #8b6ef5; }

/* Exec summary */
.rp-exec {
  background: rgba(74,126,240,0.05);
  border-left: 3px solid #4a7ef0;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: 12.5px; color: var(--t1); line-height: 1.7;
}

/* Business profile pills */
.rp-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.rp-pill {
  background: var(--surface-hi);
  border: 1px solid var(--bdr);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px; color: var(--t2);
}

/* Findings / controls */
.rp-finding {
  display: flex; gap: 8px; align-items: flex-start;
  margin-bottom: 6px;
}
.rp-finding-num {
  flex-shrink: 0; width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--surface-hi); border: 1px solid var(--bdr);
  color: var(--t3); font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.rp-finding-text { font-size: 12px; color: var(--t2); padding-top: 1px; line-height: 1.5; }

.rp-control {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 6px 10px;
  background: rgba(239,68,68,0.04);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: 6px;
  margin-bottom: 5px;
}
.rp-control-icon { color: #ef4444; font-size: 10px; flex-shrink: 0; margin-top: 2px; }
.rp-control-text { font-size: 12px; color: #c0392b; line-height: 1.5; }

/* Quick wins */
.rp-qw {
  display: grid; grid-template-columns: 32px 1fr;
  gap: 8px; align-items: start;
  background: rgba(74,126,240,0.04);
  border: 1px solid rgba(74,126,240,0.15);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
}
.rp-qw-num {
  width: 32px; height: 32px;
  background: #4a7ef0; border-radius: 6px;
  color: #fff; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rp-qw-title { font-size: 12.5px; font-weight: 700; color: var(--t1); margin-bottom: 3px; }
.rp-qw-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.rp-badge {
  display: inline-block;
  padding: 2px 7px; border-radius: 12px;
  font-size: 10px; font-weight: 600;
}
.rp-badge-blue   { background: rgba(74,126,240,0.1); color: #4a7ef0; }
.rp-badge-amber  { background: rgba(217,119,6,0.1);  color: #d97706; }
.rp-qw-desc { font-size: 11.5px; color: var(--t2); line-height: 1.5; margin-bottom: 3px; }
.rp-qw-impact { font-size: 11px; color: var(--green); font-style: italic; }

/* Roadmap */
.rp-roadmap { display: flex; flex-direction: column; gap: 6px; }
.rp-phase {
  border-radius: 8px;
  padding: 9px 11px;
  border-left: 3px solid;
}
.rp-phase.foundation { background: rgba(74,126,240,0.05);  border-color: #4a7ef0; }
.rp-phase.traction,
.rp-phase.stabilize  { background: rgba(217,119,6,0.05);   border-color: #d97706; }
.rp-phase.scale      { background: rgba(16,185,129,0.05);  border-color: #10b981; }
.rp-phase-title {
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 2px;
}
.rp-phase.foundation .rp-phase-title { color: #4a7ef0; }
.rp-phase.traction .rp-phase-title,
.rp-phase.stabilize  .rp-phase-title { color: #d97706; }
.rp-phase.scale      .rp-phase-title { color: #10b981; }
.rp-phase-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 3px; }
.rp-phase-weeks { font-size: 10px; color: var(--t3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; flex-shrink: 0; }
.rp-phase-goal { font-size: 11px; color: var(--t2); font-style: italic; margin-bottom: 5px; }
.rp-qw-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 5px; }
.rp-qw-tag { font-size: 10px; color: #1d4ed8; background: rgba(74,126,240,0.08); border: 1px solid rgba(74,126,240,0.16); border-radius: 5px; padding: 2px 6px; font-weight: 600; }
.rp-phase-actions { list-style: none; padding: 0; margin: 0; }
.rp-phase-actions li {
  font-size: 11px; color: var(--t1);
  padding: 2px 0 2px 12px; position: relative;
}
.rp-phase-actions li::before { content: '›'; position: absolute; left: 0; color: var(--t3); }

.rp-milestone { margin-top: 6px; font-size: 10.5px; color: #166534; font-weight: 700; }
.rp-rationale { font-size: 11px; color: var(--t2); font-style: italic; background: var(--surface-hi); border: 1px solid var(--bdr); border-radius: 6px; padding: 8px; margin-bottom: 6px; line-height: 1.45; }

/* Conclusion */
.rp-conclusion {
  background: var(--surface-hi);
  border: 1px solid var(--bdr);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px; color: var(--t2); font-style: italic; line-height: 1.7;
}

/* v2 report sections (aligned with report-demo) */
.rp-scorehead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.rp-scorebadge { display: flex; align-items: baseline; gap: 5px; background: var(--surface-hi); border: 1px solid var(--bdr); border-radius: 8px; padding: 6px 10px; }
.rp-scorebadge .n { font-size: 20px; font-weight: 800; color: var(--blue); }
.rp-scorebadge .l { font-size: 10px; color: var(--t3); }
.rp-stats { display: flex; gap: 6px; margin-bottom: 8px; }
.rp-stat { flex: 1; text-align: center; background: var(--surface-hi); border: 1px solid var(--bdr); border-radius: 8px; padding: 8px 4px; }
.rp-stat .n { font-size: 17px; font-weight: 800; }
.rp-stat .l { font-size: 9.5px; color: var(--t3); }
.rp-axis { margin-bottom: 8px; }
.rp-axis-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rp-axis-name { font-size: 11.5px; font-weight: 600; color: var(--t1); }
.rp-axis-score { font-size: 11px; font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.rp-bar { height: 5px; background: var(--surface-hi); border-radius: 3px; margin: 3px 0; overflow: hidden; }
.rp-bar-fill { height: 100%; border-radius: 3px; }
.rp-axis-note { font-size: 10.5px; color: var(--t3); line-height: 1.4; }
.sc-g { color: var(--green); }  .sc-a { color: var(--amber); }  .sc-r { color: var(--red); }  .sc-n { color: var(--t3); }
.bg-g { background: var(--green); } .bg-a { background: var(--amber); } .bg-r { background: var(--red); }
.rp-vmap { display: flex; flex-direction: column; gap: 6px; }
.rp-vcard { background: var(--surface-hi); border: 1px solid var(--bdr); border-radius: 8px; padding: 8px 10px; }
.rp-vcard .lbl { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.rp-vcard p { font-size: 11.5px; color: var(--t2); line-height: 1.5; margin: 0; }
.rp-f { border-left: 3px solid var(--amber); background: var(--surface-hi); border-radius: 0 8px 8px 0; padding: 8px 10px; margin-bottom: 6px; }
.rp-f.critical { border-left-color: var(--red); }
.rp-f.medium { border-left-color: var(--blue); }
.rp-f-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.rp-f-title { font-size: 11.5px; font-weight: 700; color: var(--t1); }
.rp-f p { font-size: 11px; color: var(--t2); line-height: 1.5; margin: 0; }
.rp-tag { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; border-radius: 4px; padding: 1px 6px; flex-shrink: 0; }
.rp-tag.critical { color: var(--red); background: rgba(239,68,68,.1); }
.rp-tag.high { color: var(--amber); background: rgba(217,119,6,.1); }
.rp-tag.medium { color: var(--blue); background: rgba(74,126,240,.1); }
.rp-tag.low { color: var(--t3); background: var(--surface-hi); }
.rp-team { display: flex; flex-direction: column; gap: 6px; }
.rp-person { display: flex; gap: 8px; font-size: 11.5px; line-height: 1.5; }
.rp-person .who { font-weight: 700; min-width: 58px; flex-shrink: 0; }
.rp-person .note { color: var(--t2); }
.rp-risktable { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.rp-risktable th { text-align: left; font-size: 9px; text-transform: uppercase; letter-spacing: .5px; color: var(--t3); padding: 4px 6px; border-bottom: 1px solid var(--bdr); }
.rp-risktable td { padding: 5px 6px; border-bottom: 1px solid var(--bdr); color: var(--t2); vertical-align: top; line-height: 1.4; }
.rp-swot { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rp-swc { background: var(--surface-hi); border: 1px solid var(--bdr); border-radius: 8px; padding: 8px 10px; }
.rp-swc .lbl { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.rp-swc ul { list-style: none; padding: 0; margin: 0; }
.rp-swc li { font-size: 10.5px; color: var(--t2); padding: 1px 0 1px 10px; position: relative; line-height: 1.4; }
.rp-swc li::before { content: '•'; position: absolute; left: 0; color: var(--t3); }
.rp-firstfix { background: var(--surface-hi); border: 1px solid rgba(74,126,240,.35); border-radius: 10px; padding: 12px; }
.rp-firstfix .lbl { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--blue); margin-bottom: 4px; }
.rp-firstfix h4 { font-size: 13px; color: var(--t1); margin: 0 0 6px; }
.rp-firstfix p { font-size: 11.5px; color: var(--t2); line-height: 1.6; margin: 0 0 8px; white-space: pre-line; }
.rp-ffmeta { display: flex; flex-wrap: wrap; gap: 4px; }
.rp-ffpill { font-size: 10px; font-weight: 600; color: var(--t2); border: 1px solid var(--bdr); background: var(--surface); border-radius: 100px; padding: 2px 8px; }
.rp-boundaries { font-size: 10.5px; color: var(--t3); line-height: 1.6; background: var(--surface-hi); border: 1px solid var(--bdr); border-radius: 8px; padding: 10px 12px; }


