/* Portion layer for the 40 sourced food records. Reuses the shared portion control. */
.pp-record-portion{border-top:1px solid var(--line,#ccd6cd);border-bottom:1px solid var(--line,#ccd6cd);padding:16px 0;margin:18px 0 4px;min-width:0}
.pp-record-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.pp-record-row .pp-portion-label{margin:0}
.food-record-page .pp-portion button:first-child{border-right:1px solid var(--line,#ccd6cd)}
.food-record-page .pp-portion button:last-child{border-left:1px solid var(--line,#ccd6cd)}
.pp-record-presets{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 0}
.pp-record-presets button{appearance:none;min-height:38px;padding:7px 12px;border:1px solid var(--line,#ccd6cd);border-radius:6px;background:#fff;color:#000;font-size:12px;font-weight:500;font-variant-numeric:tabular-nums}
.pp-record-presets button:hover{background:#f5f7f0}
.pp-record-presets button[aria-pressed=true]{background:#e9f0e8;border-color:var(--pp-forest,#245c46);color:#123a2c!important;font-weight:600}
.pp-record-note{font-size:12px!important;line-height:1.6!important;margin:12px 0 0!important;max-width:56ch}
.pp-record-note strong{font-weight:600;color:#233a2d!important}
.pp-record-note span{color:#496052!important}
.pp-record-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:18px 0 4px}
.pp-record-actions .btn{min-height:46px;border-radius:8px;font-size:13px}
.pp-record-actions .pp-text-link{font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:5px;display:inline-flex;align-items:center;gap:7px;min-height:44px}
.pp-record-error{font-size:12px!important;line-height:1.5!important;color:#823c2c!important;margin:8px 0 0;min-height:0}
.pp-record-error:empty{display:none}
.food-record-page #nutrient-record .fact-nutrients strong{transition:color 120ms linear}
.food-record-page #nutrient-record .fact-nutrients[data-record-stale=true] strong{color:#5a6b60}
.food-record-page .pp-portion button{width:44px}
@media(pointer:coarse){.pp-record-presets button{min-height:44px}.food-record-page .fact-links a{display:inline-flex;align-items:center;min-height:44px}}
.food-record-page .fact-links{display:flex;flex-wrap:wrap;gap:6px 18px}
.food-record-page .fact-links a{font-weight:500}
@media(max-width:520px){
 .pp-record-portion{padding:14px 0;margin:14px 0 2px}
 .pp-record-row{gap:12px}
 .pp-record-presets{margin-top:10px}
 .pp-record-presets button{min-height:44px;padding-inline:14px}
 .pp-record-actions{gap:14px;margin:16px 0 2px}
 .pp-record-actions .btn{min-height:44px}
}
@media(prefers-reduced-motion:reduce){.food-record-page #nutrient-record .fact-nutrients strong{transition:none}}
/* Action pair: a filled button must never wear link underline; secondary action carries no icon. */
.food-record-page .pp-record-actions .btn{text-decoration:none!important;border-bottom:0!important}
.food-record-page .pp-record-actions .btn svg{color:#fff;stroke:none}
.food-record-page .pp-record-actions .pp-text-link svg{display:none}
.food-record-page .pp-record-actions{margin-top:22px}
