.budget-overview,.budget-preview { color:#293f3d; }
.budget-overview { margin:1.15rem 0; padding:1.15rem 1.35rem; border:1px solid #dbe3d6; border-radius:1rem; background:#f4f7ef; }
.budget-title-row,.budget-actions,.budget-price-row { display:flex;align-items:center;gap:.65rem; }
.budget-title-row { justify-content:space-between; flex-wrap:wrap; }
.budget-overview h2,.budget-preview h3,.budget-price-form h3 { margin:0; font-size:1.16rem; }
.budget-overview p,.budget-builder p,.budget-book p,.budget-price-form p { line-height:1.45; }
.budget-actions { flex-wrap:wrap; }
.budget-actions .btn { min-height:2.4rem; }
.budget-numbers { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin:1rem 0 .55rem; }
.budget-numbers > div { border-inline-start:2px solid #b6c8ac;padding-left:.62rem;min-width:0; }
.budget-numbers span,.budget-numbers strong,.budget-price-row small { display:block; }
.budget-numbers span,.budget-note,.budget-saved-target,.budget-plan-mix,.budget-price-row small { font-size:.84rem; }
.budget-numbers span,.budget-note,.budget-price-row small { color:#53665c; }
.budget-numbers strong { font-size:1.06rem; margin-top:.15rem; overflow-wrap:anywhere; }
.budget-note,.budget-saved-target,.budget-plan-mix,.budget-warning { margin:.55rem 0 0; }
.budget-warning,.budget-price-form [role="alert"] { color:#873c2c; }
.budget-builder,.budget-book,.budget-price-form,.budget-options { display:grid;grid-template-columns:minmax(0,1fr);gap:1rem; }
.budget-builder > p,.budget-book > p,.budget-price-form > p { margin:0; }
.budget-options > button,.budget-price-form > button { justify-self:start; }
.budget-preserve { display:flex;align-items:center;gap:.52rem;min-height:2.2rem;font-size:.94rem; }
.budget-preserve input { width:1.1rem;height:1.1rem;accent-color:#52735c; }
.budget-preview { border-top:1px solid #dce3d9;padding-top:1rem; }
.budget-preview-result { background:#edf5e9;padding:.85rem 1rem;border-radius:.65rem; }
.budget-preview-result.over,.budget-remove { background:#fbede5; }
.budget-preview-result p { margin:.3rem 0 0; }
.budget-plan-mix { font-weight:600;color:#476251; }
.budget-table-wrap { overflow-x:auto; margin:.85rem 0; }
.budget-table { border-collapse:collapse;width:100%;min-width:27rem;text-align:left;font-size:.85rem; }
.budget-table th,.budget-table td { border-bottom:1px solid #dde3da;padding:.55rem .38rem;vertical-align:top; }
.budget-table th { font-weight:650;color:#40564c; }
.budget-table tbody th { min-width:5.7rem; }
.budget-table small { display:block;color:#5e6f65;margin-top:.15rem; }
.budget-preview > .btn { margin-top:.8rem; }
.budget-search { display:grid;grid-template-columns:1.2fr 1fr;gap:.6rem; }
.budget-price-list { border-top:1px solid #dde3d9; }
.budget-price-row { width:100%;justify-content:space-between;gap:1rem;text-align:left;border:0;border-bottom:1px solid #e3e8df;border-radius:0;
  background:transparent;color:#2d4039;padding:.75rem .25rem;font:inherit;cursor:pointer; }
.budget-price-row:hover { background:#f5f7f1; }
.budget-price-row small { margin-top:.16rem; }
.budget-price-row > span:last-child { text-align:right;font-size:.88rem; }
.budget-back { color:#8c4838;background:transparent;cursor:pointer;font:inherit;font-size:.88rem;font-weight:650;border:0;padding:.4rem 0; }
.budget-price-current { padding:.8rem .95rem;background:#f2f5ed;border-radius:.6rem;font-size:.92rem; }
.budget-price-current strong { font-size:1.03rem; }
.budget-price-current a,.budget-price-form a { color:#824a38;text-underline-offset:.12rem; }
.budget-price-form [role="alert"]:empty { display:none; }
.budget-remove { padding:.75rem;border-radius:.55rem; }
.budget-remove p { margin:0 0 .45rem; }
.retail-store { border-top:1px solid #dde3d9;padding:.85rem 0; }
.retail-store h4,.retail-store p { margin:.2rem 0; }
.retail-store a { font-size:.87rem;color:#824a38; }
.retail-match { margin:.6rem 0;padding:.7rem .8rem;background:#f3f6ed;border-radius:.6rem; }
.retail-match button { margin-top:.5rem; }
@media(max-width:560px) {
  .budget-overview { padding:1rem; }
  .budget-actions { gap:.4rem; }
  .budget-numbers { gap:.4rem; }
  .budget-numbers span { font-size:.79rem; }
  .budget-numbers strong { font-size:1rem; }
  .budget-search { grid-template-columns:1fr; }
  .budget-options .form-grid { grid-template-columns:minmax(0,1fr); }
  .budget-table { display:block;min-width:0; }
  .budget-table thead { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
  .budget-table tbody,.budget-table tbody tr { display:block; }
  .budget-table tbody tr { padding:.65rem 0;border-bottom:1px solid #dce3d9; }
  .budget-table tbody th { display:block;border:0;padding:.2rem 0 .4rem;font-size:.95rem; }
  .budget-table tbody td { display:grid;grid-template-columns:4.7rem minmax(0,1fr);column-gap:.35rem;border:0;padding:.22rem 0; }
  .budget-table tbody td::before { grid-column:1;grid-row:1/3;color:#53665c;font-weight:550; }
  .budget-table tbody td:nth-child(2)::before { content:'Breakfast'; }
  .budget-table tbody td:nth-child(3)::before { content:'Lunch'; }
  .budget-table tbody td:nth-child(4)::before { content:'Dinner'; }
  .budget-table tbody td > small { grid-column:2; }
}

.budget-price-sources summary { cursor:pointer; padding:.65rem 0; font-weight:650; }
.budget-price-sources ul { margin:.2rem 0 .7rem; padding:0; list-style:none; }
.budget-price-sources li { padding:.4rem 0; }
.budget-price-sources small { display:block; }

.kitchen-review { margin:1.25rem 0 .8rem; }
.kitchen-review > p { color:#52615b; margin:.35rem 0 .6rem; font-size:.92rem; }
.kitchen-check { display:grid; grid-template-columns:1.2rem minmax(0,1fr) auto; align-items:center; gap:.7rem; padding:.65rem .2rem; border-bottom:1px solid #dce3d9; cursor:pointer; min-height:44px; }
.kitchen-check input { width:1.12rem; height:1.12rem; margin:0; accent-color:#426447; }
.kitchen-check span { overflow-wrap:anywhere; }
.kitchen-check small { display:block; color:#52615b; margin-top:.15rem; }
.kitchen-check b { font-size:.91rem; font-variant-numeric:tabular-nums; }
.kitchen-check:focus-within { outline:2px solid #426447; outline-offset:2px; }
.budget-review-action { margin:.9rem 0 1.3rem; }
.food-shopping-section + .food-shopping-section { border-top:1px solid #dce3d9; margin-top:1.4rem; padding-top:1rem; }
.food-shopping-section h2 { font-size:1.2rem; }
.food-shopping-aisles { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr)); gap:.9rem; align-items:start; }
.food-shopping-row { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem 1rem; padding:.55rem 0; }
.food-shopping-details { flex:1 1 10rem; min-width:0; overflow-wrap:anywhere; }
.food-shopping-details small,.food-pack-note { display:block; color:#53665c; font-size:.84rem; }
.food-shopping-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem; }
.food-shopping-actions button { min-height:44px; }

#shopping-items.food-grocery-groups { display:block; }
.food-shopping-details > strong,.food-shopping-details > span { display:block; }
.food-mark-bought { min-height:44px; }
