/* Remove inherited catalogue separation; content starts immediately below the controls. */
.tsemou-care-compact .tsemou-needs-catalogue{margin-top:0!important;padding-top:0!important;border-top:0!important}
.tsemou-care-compact .tsemou-care-rail{margin-bottom:10px!important}
.tsemou-care-compact .tsemou-care-rail>header{margin-bottom:5px!important}
.tsemou-care-compact .tsemou-care-rail__track{padding-top:1px!important;padding-bottom:3px!important;align-items:start!important}
/* Reset the legacy fixed outer grid row as well as the card's own height. */
.tsemou-care-compact .tsemou-care-rail__track>.tsemou-needs-result{display:grid!important;grid-template-rows:auto!important;align-content:start!important;align-self:start!important;gap:5px!important;padding:9px 11px!important;min-height:88px!important;height:auto!important;max-height:none!important;overflow:visible!important}
.tsemou-care-compact .tsemou-care-rail__track .tsemou-needs-result__content{grid-template-rows:auto auto!important;row-gap:6px!important;min-height:0!important;height:auto!important;align-content:start!important}
.tsemou-care-compact .tsemou-care-rail__track .tsemou-needs-result__content>h3{min-height:0!important;max-height:none!important;margin:0!important}
.tsemou-care-compact .tsemou-care-rail__track .tsemou-needs-result__content>.tsemou-needs-result__top{min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important}
.tsemou-care-compact .tsemou-care-rail__track .tsemou-needs-result__badges{flex-wrap:wrap!important}
.tsemou-care-compact .tsemou-care-rail__track .tsemou-needs-result__state{height:auto!important;max-height:none!important;margin:0!important;overflow:visible!important}
/* A single result uses the available width; multiple results retain the next-card hint. */
.tsemou-care-compact .tsemou-care-rail__track:has(>article:only-child){grid-auto-columns:minmax(0,1fr)!important;grid-template-columns:minmax(0,1fr)!important}
