/* Health analysis 1413:5311 and expanded diagnosis 1553:27236. */
.bp-health-advice.bp-panel{padding:23px 29px 19px;border-radius:8px}
.bp-health-advice h2{font-size:20px;line-height:20px;margin:0;font-weight:600}
.bp-health-advice .bp-callout{height:139px;padding:19px;margin:20px 0 27px;border-radius:8px;background:rgb(234 157 77 / .1);border-color:rgb(234 157 77 / .35)}
.bp-health-advice .bp-callout>div{padding:0;border:0;width:100%}
.bp-health-advice .bp-callout p{font-size:16px;line-height:23px;font-weight:400;color:var(--cy-white-75);margin:0}
.bp-health-advice .bp-callout p+p{margin-top:15px}
.bp-advice-emphasis{color:#ea9d4d}
.bp-advice-lines{display:grid;gap:22px}
.bp-health-advice .advice-line{display:grid;grid-template-columns:60px minmax(0,1fr);column-gap:18px;margin:0;align-items:start}
.bp-health-advice .advice-line strong{font-size:14px;line-height:14px;font-weight:600;color:#ea9d4d;white-space:nowrap}
.bp-health-advice .advice-line.is-critical strong{color:#e15454}
.bp-health-advice .advice-line p{font-size:14px;line-height:14px;font-weight:400;color:var(--cy-white-75);margin:0}
.bp-score.bp-panel{padding:23px 23px 13px;border-radius:8px}
.bp-score h2{font-size:20px;line-height:20px;margin:0;font-weight:600}
.bp-score-ring{margin:24px auto 22px;width:160px;height:160px}
.bp-score-ring strong{position:absolute;top:46px;left:0;width:100%;font:700 40px/40px 'D-DIN','Bahnschrift',Inter,sans-serif}
.bp-score-ring span{position:absolute;top:98px;left:0;width:100%;font-size:14px;line-height:14px;color:rgb(0 0 0 / .55)}
.bp-score p{margin:0;font-size:16px;line-height:16px;color:var(--cy-white-75)}
.bp-score p.orange{margin-top:12px;font-size:14px;line-height:14px;color:#ea9d4d}
.bp-score>.bp-text-button{margin-top:16px;font-size:14px;line-height:14px;color:#7197ff}
/* Full diagnosis is one 3-column table, with 59px rows at the source width. */
.bp-all-diagnosis.bp-panel{padding:24px 29px 22px;min-height:426px;border-radius:12px}
.bp-all-diagnosis-head{display:flex;align-items:center;justify-content:space-between;gap:24px;height:32px;margin-bottom:18px}
.bp-all-diagnosis-head h2{font-size:20px;line-height:20px;font-weight:600;margin:0;transform:translateY(-1px)}
.bp-diagnosis-toggle.bp-button{width:180px;height:36px;padding:0;flex:none;background:rgb(61 91 246 / .1);border-color:rgb(61 91 246 / .35);color:#7197ff;font-size:16px;line-height:16px;font-weight:600}
.bp-diagnosis-table-head,.bp-diagnosis-table-row{display:grid;grid-template-columns:minmax(0,150fr) minmax(0,692fr) minmax(0,728fr)}
.bp-diagnosis-table-head{height:37px;border-bottom:1px solid var(--bp-border);padding-top:5px;font-size:14px;line-height:14px;color:var(--cy-white-55)}
.bp-diagnosis-table-head>span:first-child{padding-left:16px}
.bp-diagnosis-table-row{min-height:59px;align-items:center;border-bottom:1px solid var(--bp-border)}
.bp-diagnosis-table-row:last-child{border-bottom:0}
.bp-diagnosis-stage{display:flex;align-items:center;gap:10px;font-size:16px;line-height:16px;font-weight:600;color:var(--cy-white-95)}
.bp-diagnosis-stage i{display:block;flex:none;width:6px;height:6px;border-radius:50%;background:#ea9d4d}
.bp-diagnosis-table-row p{margin:0;font-size:16px;line-height:16px;font-weight:400;color:var(--cy-white-75)}
.bp-diagnosis-issue{padding-right:86px}
.bp-diagnosis-table-row.has-wrapped-copy p{line-height:21px}
/* Common chart headers and legends; adjacent ratios sit between the two related stage rows. */
.bp-structure-panel.bp-panel{padding:29px 28px 32px 30px;min-height:620px}
.bp-structure-panel>h2{margin:0;font-size:20px;line-height:20px;font-weight:600}
.bp-structure-subtitle{margin:15px 0 0;font-size:16px;line-height:16px;font-weight:400;color:var(--cy-white-55)}
.bp-structure-panel .bp-structure-grid{grid-template-columns:minmax(0,957fr) minmax(0,613fr);gap:0;height:439px;margin-top:31px}
.bp-structure-left,.bp-structure-right{display:flex;flex-direction:column;position:relative;min-width:0}
.bp-structure-head{display:grid;grid-template-columns:minmax(0,120fr) minmax(0,700fr) minmax(0,137fr);height:16px;font-size:14px;line-height:14px;color:var(--cy-white-55)}
.bp-structure-head>span:nth-child(2){text-align:center;transform:translateX(-8px)}
.bp-structure-rows{margin-top:20px}
.bp-structure-panel .bp-structure-row{display:grid;grid-template-columns:minmax(0,120fr) minmax(0,700fr) minmax(0,137fr);gap:0;height:73px;align-items:center;border:0;border-top:1px solid var(--bp-border);font-size:16px;line-height:16px}
.bp-structure-panel .bp-structure-row>small{font-size:14px;line-height:14px;color:var(--cy-white-55);margin-left:-10px}
.bp-structure-panel .bp-structure-track{height:28px}
.bp-structure-panel .bp-structure-track:before{height:28px;top:0;border-radius:4px;border-color:var(--cy-white-55)}
.bp-structure-panel .bp-structure-track i{top:6px;height:20px;font-size:16px;line-height:18px;font-weight:600;color:rgb(255 255 255 / .95)}
.bp-structure-legend{display:flex;align-items:center;gap:30px;height:16px;margin-top:auto;font-size:14px;line-height:14px;color:var(--cy-white-75)}
.bp-structure-legend>span{display:flex;align-items:center;gap:10px}
.bp-structure-legend i{display:block;width:20px;height:6px;border-radius:1px;background:#ac8dd0}
.bp-structure-legend>span+span i{height:14px;border:1px dashed rgb(228 221 122 / .35);background:none;border-radius:3px}
.bp-ratio-heading{height:16px;margin:0 0 0 14px;font-size:14px;line-height:14px;color:var(--cy-white-55)}
.bp-structure-right:before{content:'';position:absolute;left:0;right:0;top:32px;height:1px;background:var(--bp-border)}
.bp-ratio-rows{display:grid;gap:1px;margin-top:58px}
.bp-structure-right .bp-transition{position:relative;height:72px;margin:0;padding:0;border:0;font-size:14px;line-height:14px}
.bp-structure-right .bp-transition:before{content:'';position:absolute;left:0;top:7px;width:3px;height:58px;background:var(--color);border-radius:1px}
.bp-structure-right .bp-transition strong{position:absolute;left:14px;top:8px;margin:0;font-size:16px;line-height:16px;font-weight:600}
.bp-structure-right .bp-transition p{position:absolute;left:14px;margin:0;font-size:14px;line-height:14px;font-weight:400}
.bp-structure-right .bp-ratio-values{top:31px;color:var(--cy-white-75)}
.bp-structure-right .bp-ratio-description{top:52px;color:var(--cy-white-55);white-space:nowrap}
.bp-structure-right .bp-track{display:block;position:absolute;left:38.336%;right:auto;width:37.52%;top:36px;height:1px;background:var(--cy-white-10)}
.bp-structure-right .bp-track:before{background:rgb(0 0 0 / .35);top:-3px;width:6px;height:6px}
.bp-structure-right .bp-track:after{background:#ac8dd0;top:-4px;width:8px;height:8px}
.bp-structure-right .bp-ratio-gap{background:#ac8dd0;top:-1px;height:2px}
.bp-structure-right .bp-transition-result{position:absolute;right:0;top:10px;font-size:14px;line-height:14px;text-align:right;white-space:nowrap;color:var(--color)}
.bp-structure-right .bp-transition-result>span{font-size:14px;line-height:14px;max-width:none}
.bp-structure-right .bp-transition-result .delta{display:block;position:static;margin-top:9px;font-size:16px;line-height:16px;font-weight:600}
.bp-structure-right .bp-ratio-legend{display:grid;grid-template-columns:121fr 156fr 340fr;align-items:center;height:16px;margin:auto 0 0 -4px;gap:0;font-size:14px;line-height:14px;white-space:nowrap;color:var(--cy-white-75)}
.bp-structure-right .bp-ratio-legend>span{display:flex;gap:12px;align-items:center;margin:0;width:auto;font-size:14px;line-height:14px}
.bp-structure-right .bp-ratio-legend>span:nth-child(2){gap:13px}
.bp-structure-right .bp-ratio-legend i{width:8px;height:8px;background:#ac8dd0}
.bp-structure-right .bp-ratio-legend>span:nth-child(2) i{width:6px;height:6px;background:rgb(0 0 0 / .35)}
.bp-structure-right .bp-ratio-legend>span:last-child{margin:0;width:auto;font-size:14px;line-height:14px;color:var(--cy-white-55)}
.bp-structure-note{margin:26px 0 0;font-size:14px;line-height:14px;color:var(--cy-white-55)}
/* Native controls in the source header are transparent, with a 1px neutral outline. */
html:not([data-theme=light]) :is(.bp-filter .bp-input,.bp-brand-trigger){background:transparent;color:var(--cy-white-55);border-color:var(--cy-white-10)}
.app-shell[data-page=health] .bp-filter{padding:8px 24px}
.app-shell[data-page=health] .bp-filter label:has([name=subindustry]) .bp-filter-control{width:144px}
.app-shell[data-page=health] .bp-filter-date{width:144px}
@media(max-width:1450px){.bp-health-advice .bp-callout{height:auto}.bp-health-advice .advice-line p{line-height:18px}.bp-diagnosis-issue{padding-right:24px}.bp-diagnosis-table-row{padding:10px 0}.bp-diagnosis-table-row p{line-height:21px}.bp-structure-right .bp-track{left:46%;width:30%}.bp-structure-right .bp-ratio-legend{grid-template-columns:1fr 1fr;height:auto;row-gap:12px}.bp-structure-right .bp-ratio-legend>span:last-child{grid-column:1/-1}}
@media(max-width:1100px){.bp-structure-panel .bp-structure-grid{grid-template-columns:1fr;height:auto;gap:30px}.bp-structure-left,.bp-structure-right{height:439px}.bp-structure-right .bp-track{left:38.336%;width:37.52%}.bp-structure-right .bp-ratio-legend{display:grid;grid-template-columns:121fr 156fr 340fr;height:12px;row-gap:0}.bp-structure-right .bp-ratio-legend>span:last-child{grid-column:auto}.bp-score-ring{grid-row:2/5}.bp-all-diagnosis-head h2{font-size:18px}.bp-diagnosis-table-head,.bp-diagnosis-table-row{grid-template-columns:100px minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:760px){.bp-health-advice.bp-panel{padding:20px}.bp-advice-lines{gap:16px}.bp-health-advice .advice-line{grid-template-columns:60px minmax(0,1fr);gap:12px}.bp-all-diagnosis.bp-panel{padding:20px}.bp-all-diagnosis-head{height:auto;flex-wrap:wrap;gap:16px}.bp-diagnosis-toggle.bp-button{width:150px}.bp-diagnosis-table{overflow:auto}.bp-diagnosis-table-head,.bp-diagnosis-table-row{min-width:680px;grid-template-columns:100px 270px 310px}.bp-structure-panel.bp-panel{padding:24px 20px}.bp-structure-subtitle{line-height:21px}.bp-structure-panel .bp-structure-grid{margin-top:24px}.bp-structure-head{font-size:11px}.bp-structure-panel .bp-structure-row{grid-template-columns:70px minmax(0,1fr) 68px}.bp-structure-head{grid-template-columns:70px minmax(0,1fr) 68px}.bp-structure-panel .bp-structure-row>small{margin:0;font-size:10px}.bp-structure-right .bp-track{left:47%;width:29%}.bp-structure-right .bp-transition p{font-size:10px}.bp-structure-right .bp-transition-result>span{font-size:10px}.bp-structure-right .bp-ratio-legend{grid-template-columns:1fr 1fr;height:auto;row-gap:12px}.bp-structure-right .bp-ratio-legend>span:last-child{grid-column:1/-1}.bp-structure-note{line-height:18px}}

.bp-score>.bp-text-button{display:block;margin-left:auto;margin-right:auto}

@media(min-width:1451px){.bp-diagnosis-table-row:not(.has-wrapped-copy) .bp-diagnosis-issue{padding-right:0;white-space:nowrap}}

@media(min-width:1101px) and (max-width:1450px){.bp-structure-right .bp-ratio-legend{grid-template-columns:121fr 156fr 340fr;height:12px;row-gap:0}.bp-structure-right .bp-ratio-legend>span:last-child{grid-column:auto;font-size:11px}}

/* Keep stage navigation visible while all diagnoses are expanded. */
.bp-diagnosis-controls{flex-wrap:nowrap;flex-shrink:0}
.bp-diagnosis-controls .bp-button:disabled{opacity:1;color:var(--cy-white-35);background:var(--cy-white-5);border-color:var(--cy-white-10);cursor:not-allowed}
@media(max-width:760px){.bp-diagnosis-controls{flex-wrap:wrap;max-width:100%}}
/* Divider stays at the A3 text-gap reference for every stage. */
@media(min-width:761px){
  .bp-stage-diagnosis:not(.bp-all-diagnosis) .bp-diagnosis-columns{position:relative;grid-template-columns:repeat(2,minmax(0,1fr));gap:60px}
  .bp-stage-diagnosis:not(.bp-all-diagnosis) .bp-diagnosis-columns::before{content:'';position:absolute;left:calc(var(--diagnosis-divider-x,50%) - 1px);top:8px;bottom:14px;width:1px;background:var(--bp-border);pointer-events:none}
  .bp-stage-diagnosis:not(.bp-all-diagnosis) .bp-diagnosis-columns>div+div{border-left:0;padding-left:0}
}
/* Selected stage: Figma 1553:28437, Cy primary 100%, 1px outside. */
.app-shell[data-page=health] .bp-health-card[aria-pressed=true]{
  border-color:var(--cy-primary);
  outline:1px solid var(--cy-primary)!important;
  outline-offset:0!important;
  box-shadow:none!important;
}

/* Keep the score-history label and its original icon on one line in every locale. */
.bp-score>.bp-text-button[data-bp="history"]{display:flex;align-items:center;justify-content:center;gap:4px;width:max-content;white-space:nowrap;flex-wrap:nowrap}
.bp-score>.bp-text-button[data-bp="history"]>.cy-entry-arrow{display:block;flex:0 0 14px;margin:0}

/* Health layout repair: keep intrinsic text widths and anchor to the component. */
.app-shell[data-page="health"] #business-pages .bp-score-ring>strong,
.app-shell[data-page="health"] #business-pages .bp-score-ring>span{left:50%;right:auto;transform:translateX(-50%)}
.app-shell[data-page="health"] #business-pages .bp-health-card>h3{left:29px;right:auto;top:24px}
.app-shell[data-page="health"] #business-pages .bp-health-card>.bp-badge{position:absolute;top:22px;right:29px;height:28px;padding:5px 9px;font-size:14px;line-height:14px;font-weight:400;border-radius:4px;white-space:nowrap}
/* Text normalization must not anchor scrolling to transient text geometry. */
.app-shell[data-page="health"] #workspace-panel{overflow-anchor:none;scroll-behavior:auto}

.app-shell[data-page="health"] #business-pages :is(.bp-stage-share,.bp-stage-meter,.bp-stage-base){left:29px;right:29px}
/* User reference: separate each diagnosis and align benchmark deltas to the right. */
html body .app-shell[data-page="health"] #workspace #business-pages .bp-health-advice.bp-panel .bp-advice-lines{row-gap:22px!important;margin-top:30px!important}
.app-shell[data-page="health"] #business-pages .bp-stage-share>small{display:flex;flex-direction:column;align-items:flex-end;text-align:right}

/* Intrinsic-width headings center on their corresponding content columns. */
.app-shell[data-page="health"] #business-pages .bp-structure-head>span:nth-child(2){margin-inline:auto;transform:none}
.app-shell[data-page="health"] #business-pages .bp-ratio-heading{margin:0;text-align:center}

/* 2026-11-30: latest compact five-card reference; original type, data and interactions retained. */
html body .app-shell[data-page="health"] #workspace #business-pages .bp-score>p.orange{margin-top:8px!important}
html body .app-shell[data-page="health"] #workspace #business-pages .bp-health-stages>.bp-health-card{height:190px!important;min-height:190px!important}
html body .app-shell[data-page="health"] #workspace #business-pages .bp-health-stages>.bp-health-card>h3{top:29px!important}
html body .app-shell[data-page="health"] #workspace #business-pages .bp-health-stages>.bp-health-card>.bp-badge{top:25px!important}
html body .app-shell[data-page="health"] #workspace #business-pages .bp-health-card>.bp-stage-share{top:64px!important;height:42px!important}
html body .app-shell[data-page="health"] #workspace #business-pages .bp-health-card>.bp-stage-meter{top:121px!important}
html body .app-shell[data-page="health"] #workspace #business-pages .bp-health-card>.bp-stage-base{top:144px!important;height:14px!important;min-height:14px!important;align-items:center}
