/* HBV R5.5-R4 member action stability and selection overlap closure. */
html[data-hbv-r55-r4="ready"] #page-recommend>.section-intro{align-items:start!important}
html[data-hbv-r55-r4="ready"] #page-recommend .section-actions{
  display:grid!important;grid-template-columns:repeat(2,minmax(190px,1fr))!important;
  grid-auto-rows:minmax(52px,auto)!important;gap:10px!important;width:min(560px,100%)!important;max-width:560px!important
}
html[data-hbv-r55-r4="ready"] #page-recommend .recommend-action-status{
  grid-column:1/-1;display:flex;align-items:center;gap:9px;min-height:38px;padding:8px 11px;
  border:1px solid #dce7f4;border-radius:11px;background:#f8fbff;color:#58708a;font-size:10px;line-height:1.45
}
html[data-hbv-r55-r4="ready"] #page-recommend .recommend-action-status::before{content:"";width:8px;height:8px;flex:0 0 8px;border-radius:999px;background:#8ba1b7;box-shadow:0 0 0 4px rgba(139,161,183,.12)}
html[data-hbv-r55-r4="ready"] #page-recommend .section-actions[data-mode="busy"] .recommend-action-status::before{background:#2d78f4;animation:r4Pulse 1.1s ease-in-out infinite}
html[data-hbv-r55-r4="ready"] #page-recommend .section-actions[data-mode="formal"] .recommend-action-status::before{background:#21a878}
html[data-hbv-r55-r4="ready"] #page-recommend .section-actions[data-mode="research"] .recommend-action-status::before{background:#d99421}
html[data-hbv-r55-r4="ready"] #page-recommend .section-actions button{
  grid-row:auto!important;grid-column:auto!important;width:100%!important;min-width:0!important;min-height:52px!important;
  height:auto!important;padding:10px 14px!important;border-radius:12px!important;white-space:normal!important;line-height:1.35!important;text-align:center!important
}
html[data-hbv-r55-r4="ready"] #page-recommend .section-actions #generate-recommend{grid-row:auto!important;grid-column:auto!important;min-width:0!important}
html[data-hbv-r55-r4="ready"] #page-recommend .section-actions button:disabled{opacity:.58!important;filter:saturate(.72);cursor:not-allowed!important;transform:none!important}
html[data-hbv-r55-r4="ready"] .result-card.hf21-s3-selectable{overflow:visible!important}
html[data-hbv-r55-r4="ready"] .result-card.hf21-s3-selectable .result-card-top{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"title risk" "select select"!important;align-items:start!important;gap:10px 12px!important
}
html[data-hbv-r55-r4="ready"] .result-card.hf21-s3-selectable .result-title-block{grid-area:title!important;min-width:0!important}
html[data-hbv-r55-r4="ready"] .result-card.hf21-s3-selectable .result-risk-side{grid-area:risk!important}
html[data-hbv-r55-r4="ready"] .result-card.hf21-s3-selectable .hf21-s3-selection-control{
  grid-area:select!important;position:static!important;inset:auto!important;float:none!important;justify-self:end!important;
  width:max-content!important;max-width:100%!important;margin:0!important;z-index:auto!important
}
@keyframes r4Pulse{50%{transform:scale(.76);opacity:.55}}
@media(max-width:760px){
  html[data-hbv-r55-r4="ready"] #page-recommend .section-actions{grid-template-columns:1fr!important;max-width:none!important}
  html[data-hbv-r55-r4="ready"] #page-recommend .recommend-action-status{grid-column:auto!important}
  html[data-hbv-r55-r4="ready"] .result-card.hf21-s3-selectable .result-card-top{grid-template-columns:1fr!important;grid-template-areas:"select" "title" "risk"!important}
  html[data-hbv-r55-r4="ready"] .result-card.hf21-s3-selectable .hf21-s3-selection-control{justify-self:stretch!important;width:100%!important;justify-content:center!important}
  html[data-hbv-r55-r4="ready"] .result-card.hf21-s3-selectable .result-risk-side{align-items:flex-start!important}
}
@media(prefers-reduced-motion:reduce){html[data-hbv-r55-r4="ready"] #page-recommend .section-actions[data-mode="busy"] .recommend-action-status::before{animation:none}}
