/* Coach Max — compact per-food macro contributions
 * Presentation only. Keeps one food = one compact result row.
 */
.cm-result-card .cm-result-rows>div{
  align-items:start;
  padding:11px 4px;
  min-height:58px;
}
.cm-result-card .cm-result-rows>div>span{
  grid-template-columns:34px minmax(0,1fr);
  grid-template-rows:auto auto auto;
  column-gap:9px;
  row-gap:3px;
  align-items:center;
  min-width:0;
}
.cm-result-card .cm-result-rows i{
  grid-column:1;
  grid-row:1/4;
  align-self:start;
  width:32px;
  height:32px;
  border-radius:9px;
  color:#151719;
  font-size:16px;
  font-weight:900;
}
.cm-result-card .cm-result-rows>div>span>b{
  grid-column:2;
  grid-row:1;
  font-size:10.5px;
  line-height:1.25;
  min-width:0;
}
.cm-result-card .cm-result-rows>div>span>small{
  grid-column:2;
  grid-row:2;
  margin:0;
  line-height:1.15;
}
.cm-result-card .cm-result-item-macros{
  grid-column:2;
  grid-row:3;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px;
  width:auto;
  max-width:100%;
  margin:1px 0 0;
}
.cm-result-card .cm-result-item-macros b{
  display:inline-flex;
  align-items:center;
  width:auto;
  min-width:0;
  height:20px;
  padding:0 6px;
  margin:0;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  background:#111316;
  color:#cfd2d6;
  font-size:8px;
  line-height:1;
  font-weight:800;
  white-space:nowrap;
}
.cm-result-card .cm-result-rows>div>strong{
  align-self:start;
  padding-top:3px;
  margin-left:10px;
  font-size:11.5px;
  line-height:1.2;
  white-space:nowrap;
}
@media(max-width:520px){
  .cm-result-card .cm-result-rows>div{
    padding:10px 2px;
  }
  .cm-result-card .cm-result-item-macros{
    gap:3px;
  }
  .cm-result-card .cm-result-item-macros b{
    height:19px;
    padding:0 5px;
    font-size:7.5px;
  }
}
