/* Patient context, care-gap demonstration and executive scenarios. */
.section-intro { margin: 38px 0 22px; }
.section-intro h2 { margin: 8px 0; font-size: 1.7rem; letter-spacing: -.035em; }
.section-intro p { color: #52667c; line-height: 1.6; }
.work-focus-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.work-focus-actions .ghost { border-color: #507080; color: #fff; }
.work-focus-actions .ghost:hover { background: #315066; }
.cg-journey, .cg-profile-overview, .cg-record-list, .cg-gap-list, .cg-sample-summary,
.insights-section { font-size: 1rem; line-height: 1.6; min-width: 0; }
:is(.cg-journey,.cg-profile-head,.cg-profile-overview,.cg-record,.cg-gap-row,.insights-section) :is(p,dd,li) { overflow-wrap: anywhere; }
:is(.cg-profile-head,.cg-profile-overview,.cg-record,.cg-gap-row,.insights-section) :is(.small,small,label,dt,.badge) { font-size: .875rem; }
:is(.cg-toolbar,.cg-gap-row,.cg-profile-tabs,.insights-section) :is(button,a,input,select,textarea):focus-visible { outline: 3px solid #128bc7; outline-offset: 3px; }
.cg-journey { list-style: none; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0; padding: 0; margin: 24px 0; border: 1px solid #d8e4ec; border-radius: 14px; background: #fff; overflow: hidden; }
.cg-journey-step { padding: 20px 16px; border-right: 1px solid #e0e8ee; position: relative; }
.cg-journey-step:last-child { border: 0; }
.cg-journey-step strong { display: block; font-size: .95rem; color: #21374a; margin: 5px 0; }
.cg-journey-step small { color: #52667c; display: block; font-size: .875rem; line-height: 1.5; }
.cg-journey-step p { color: #52667c; font-size: .875rem; line-height: 1.5; margin: 6px 0 14px; }
.cg-step-mark { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; background: #e8f0f6; border-radius: 50%; color: #285a77; font-size: .875rem; font-weight: 650; }
.is-complete .cg-step-mark { background: #deefe5; color: #27654b; }
.cg-journey-step.is-current { background: #eaf6fe; box-shadow: inset 0 3px #1680b8; }
.cg-journey-step.is-complete { background: #f0f8f4; box-shadow: inset 0 3px #43896d; }
.cg-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; margin: 24px 0; }
.cg-toolbar > * { flex: 1 1 200px; min-width: 0; }
.cg-toolbar .search-field { flex: 2 1 270px; }
.cg-toolbar :is(input,select) { min-height: 46px; font-size: 1rem; max-width: 100%; }
.cg-toolbar .search-field { position: relative; }
.cg-toolbar .search-field input { width: 100%; padding: 12px 14px 12px 42px; border: 1px solid #dce4eb; background: #fff; border-radius: 9px; }
.cg-toolbar .search-field > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #71879a; }
:is(#cg-gap-results,#cg-patient-results) .table-summary { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; color: #52667c; font-size: .875rem; border-bottom: 1px solid #e3e9ee; }
#cg-gap-results .cg-gap-list { padding: 14px; }
#cg-gap-results .cg-empty { margin: 14px; }
.cg-profile-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.cg-profile-head .person { min-width: 0; }
.cg-profile-head h2 { margin: 0 0 8px; }
.cg-profile-head .info-list { flex: 1 1 350px; max-width: 680px; }
.cg-profile-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 18px; margin: 0 0 24px; }
.cg-profile-tabs .tab { padding: 12px 10px; font-size: .9rem; min-height: 44px; border-radius: 7px 7px 0 0; }
.cg-profile-tabs .tab.active { background: #eef7fd; color: #126a9b; }
.cg-profile-tabs .header-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; padding: 1px 5px; margin-left: 3px; border-radius: 5px; background: #eaf0f5; color: #52667c; font-size: .78rem; }
.cg-profile-content { padding: 0 24px 24px; }
.cg-profile-content .data-table { min-width: 560px; }
.cg-profile-overview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.cg-profile-overview > * { min-width: 0; }
.cg-record-list { display: flex; flex-direction: column; }
.cg-record { padding: 19px 0; border-bottom: 1px solid #e3e9ee; }
.cg-record:first-child { padding-top: 4px; }
.cg-record:last-child { border-bottom: none; padding-bottom: 0; }
.cg-record h3 { font-size: 1.05rem; margin: 0 0 8px; line-height: 1.4; }
.cg-record p { margin: 6px 0; color: #52667c; }
.cg-record .info-list { margin-top: 14px; }
.cg-gap-list { display: flex; flex-direction: column; gap: 16px; }
.cg-gap-row { display: flex; justify-content: space-between; align-items: start; gap: 24px; padding: 24px; border: 1px solid #dce5ec; border-radius: 13px; background: #fff; }
.cg-gap-row > :first-child { flex: 1; min-width: 0; }
.cg-gap-row h3 { margin: 12px 0 9px; font-size: 1.2rem; letter-spacing: -.02em; }
.cg-gap-row p { margin: 8px 0; }
.cg-gap-row .actions { flex-shrink: 0; align-items: stretch; flex-direction: column; }
.cg-gap-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .875rem; color: #52667c; }
.cg-empty { text-align: center; padding: 42px 24px; background: #fff; border: 1px dashed #cbdde9; border-radius: 14px; }
.cg-empty p { color: #52667c; max-width: 600px; margin: 12px auto 20px; }
.cg-sample-summary { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.cg-sample-summary > div { padding: 14px 18px; border: 1px solid #dde6ee; border-radius: 10px; background: #f7fafc; flex: 1 1 100px; }
.cg-sample-summary strong { display: block; color: #183c54; }
.insights-section { margin-bottom: 28px; }
.insights-records { display: flex; flex-wrap: wrap; gap: 12px 22px; padding: 15px 0; border-top: 1px solid #dbe6ee; border-bottom: 1px solid #dbe6ee; color: #52667c; font-size: .875rem; }
.insights-section .panel-head { padding: 0 0 20px; }
.insights-section h2 { font-size: 1.5rem; margin: 10px 0; letter-spacing: -.03em; }
.insights-section h3 { font-size: 1.2rem; margin: 10px 0; }
.insights-outcomes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin: 22px 0; }
.insights-outcomes > div { border: 1px solid #dce7ee; border-radius: 11px; padding: 18px; background: #f8fbfd; }
.insights-outcomes .insights-result strong { font-size: 1.9rem; line-height: 1.3; display: block; color: #153a50; }
.insights-outcomes .insights-result span { display: block; color: #52667c; font-size: .875rem; margin-top: 7px; }
.insights-planning { margin-top: 28px; }
.insights-scenario-card { min-width: 0; border: 1px solid #dbe5ed; border-radius: 14px; padding: 24px; background: #fff; }
.insights-scenario-card input { font-size: 1rem; min-height: 46px; }
.insights-formula { margin: 18px 0; border-left: 3px solid #709fb9; padding: 10px 14px; color: #33566e; background: #f2f7fa; font-size: .875rem; overflow-wrap: anywhere; }
.insights-result { margin-top: 18px; padding: 18px; border-radius: 10px; background: #edf6fc; }
.insights-result strong { display: block; font-size: 2rem; color: #16496b; letter-spacing: -.04em; }
.insights-result small,.insights-result span { color: #46647b; }
.insights-footnote { color: #52667c; font-size: .875rem; margin-top: 16px; }
@media(max-width:1100px) {
  .cg-journey { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .cg-journey-step { border-bottom: 1px solid #e0e8ee; }
  .cg-gap-row { flex-direction: column; gap: 16px; }
  .cg-gap-row .actions { flex-direction: row; flex-wrap: wrap; }
  .insights-outcomes { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
  .cg-journey { grid-template-columns: 1fr; }
  .cg-journey-step { border-right: 0; padding: 14px 18px; }
  .cg-journey-step.is-current,.cg-journey-step.is-complete { box-shadow: inset 3px 0 #1680b8; }
  .cg-journey-step.is-complete { box-shadow: inset 3px 0 #43896d; }
  .cg-profile-overview { grid-template-columns: 1fr; }
  .insights-outcomes { grid-template-columns: 1fr; }
  .cg-gap-row { padding: 20px; }
  .cg-profile-head { align-items: start; }
  .cg-profile-head .info-list { flex-basis: 100%; }
  .cg-gap-row .actions { width: 100%; }
  .cg-gap-row .actions > * { flex: 1 1 130px; }
  .insights-scenario-card { padding: 20px; }
  .insights-outcomes > div { padding: 15px; }
  .work-focus-actions { width: 100%; }
}
@media(prefers-reduced-motion:reduce) { .cg-journey *, .insights-section * { transition: none !important; } }
