/* Confined to the tonight control and its on-demand sheet. */
.bb-evening-pivot.bb-evening-pivot-control{display:block;grid-column:1/-1;box-sizing:border-box;width:100%;margin-top:5px}
.bb-evening-pivot .bb-evening-pivot-open{box-sizing:border-box;display:block;width:100%;min-width:0;max-width:100%;height:auto;min-height:44px;margin:0;padding:10px 12px;border:1px solid #c7dac8;border-radius:11px;background:#f2f6ec;color:#356342;font:inherit;font-size:12px;font-weight:750;line-height:1.4;text-align:center;white-space:normal;overflow-wrap:anywhere;cursor:pointer;touch-action:manipulation}
.bb-evening-pivot.bb-evening-pivot-dialog{box-sizing:border-box;width:min(100% - 24px,560px);max-width:560px;max-height:calc(100dvh - 32px);margin:auto;padding:20px;border:1px solid #d4dfce;border-radius:21px;background:#fffdf7;color:#254b35;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.45;box-shadow:0 24px 80px #153e3252;overflow:auto;overscroll-behavior:contain;z-index:2147483000}
.bb-evening-pivot.bb-evening-pivot-dialog::backdrop{background:#152f25b3;backdrop-filter:blur(3px)}
.bb-evening-pivot.bb-evening-pivot-dialog [hidden]{display:none!important}
.bb-evening-pivot .bbep-header{display:flex;align-items:flex-start;gap:10px;margin:0 0 7px}
.bb-evening-pivot .bbep-title{flex:1;min-width:0;margin:0;padding-top:5px;color:#24573b;font-size:22px;font-weight:850;line-height:1.22;letter-spacing:-.4px}
.bb-evening-pivot .bbep-dismiss{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;margin:-5px -5px 0 0;padding:0;border:1px solid #d7e2cf;border-radius:12px;background:#f2f6ed;color:#446645;font:inherit;font-size:25px;line-height:1;cursor:pointer}
.bb-evening-pivot .bbep-intro{margin:0 0 16px;color:#697b65;font-size:13px;line-height:1.55}
.bb-evening-pivot .bbep-section-title{margin:15px 0 9px;color:#3a6241;font-size:13px;font-weight:850;line-height:1.4}
.bb-evening-pivot .bbep-choice{display:flex;align-items:center;justify-content:space-between;gap:9px;box-sizing:border-box;width:100%;min-height:64px;margin:0 0 8px;padding:10px 11px;border:1px solid #d5e0ce;border-radius:12px;background:#fff;color:#315539;font:inherit;text-align:left;cursor:pointer;touch-action:manipulation}
.bb-evening-pivot .bbep-choice[aria-pressed="true"]{border-color:#498259;background:#edf4e8;box-shadow:inset 0 0 0 1px #498259}
.bb-evening-pivot .bbep-choice-summary{display:grid;flex:1;min-width:0;gap:3px}
.bb-evening-pivot .bbep-choice-name{font-size:13px;font-weight:800;line-height:1.35;overflow-wrap:anywhere}
.bb-evening-pivot .bbep-choice-meta{color:#75826d;font-size:11px;line-height:1.4}
.bb-evening-pivot .bbep-choice-saving{flex:0 0 auto;padding:5px 7px;border:1px solid #e2d4a1;border-radius:9px;background:#faf0cf;color:#705b26;font-size:10px;font-weight:800;line-height:1.3;white-space:nowrap}
.bb-evening-pivot .bbep-meal-swap{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.bb-evening-pivot .bbep-meal-preview{display:grid;align-content:start;min-width:0;gap:5px;padding:12px;border:1px solid #d7e1cf;border-radius:12px;background:#f2f6ed}
.bb-evening-pivot .bbep-meal-preview+ .bbep-meal-preview{background:#faf5e5;border-color:#e8dfbf}
.bb-evening-pivot .bbep-meal-day{color:#5c7654;font-size:10px;font-weight:800;line-height:1.4}
.bb-evening-pivot .bbep-meal-name{color:#2e5638;font-size:13px;font-weight:850;line-height:1.4;overflow-wrap:anywhere}
.bb-evening-pivot .bbep-meal-meta{color:#77826a;font-size:10px;line-height:1.4}
.bb-evening-pivot .bbep-saving{margin:9px 0;color:#527148;font-size:12px;font-weight:700;line-height:1.5}
.bb-evening-pivot .bbep-pantry{margin:11px 0;padding:10px 11px;border:1px solid #dfd3a7;border-radius:10px;background:#fbf3d9;color:#725c27;font-size:12px;font-weight:650;line-height:1.5}
.bb-evening-pivot .bbep-explanation{margin:0 0 9px;color:#72806a;font-size:12px;line-height:1.55}
.bb-evening-pivot .bbep-date-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,160px);align-items:center;gap:8px;box-sizing:border-box;min-height:54px;margin:0;padding:8px 0;border-bottom:1px solid #e8eadd}
.bb-evening-pivot .bbep-date-name{min-width:0;color:#45643f;font-size:12px;font-weight:750;line-height:1.4;overflow-wrap:anywhere}
.bb-evening-pivot .bbep-date-control{display:grid;min-width:0;gap:3px}
.bb-evening-pivot .bbep-date-caption{color:#78836c;font-size:10px;line-height:1.3}
.bb-evening-pivot .bbep-use-by{box-sizing:border-box;display:block;width:100%;min-width:0;max-width:100%;min-height:44px;margin:0;padding:7px 8px;border:1px solid #c9d8c1;border-radius:9px;background:#fff;color:#355837;font:inherit;font-size:16px;line-height:1.3;-webkit-appearance:none}
.bb-evening-pivot .bbep-use-by[readonly]{background:#f1f3e8;color:#64745b}
.bb-evening-pivot .bbep-use-by[aria-invalid="true"]{border-color:#b9624b}
.bb-evening-pivot .bbep-check{display:flex;align-items:center;gap:10px;box-sizing:border-box;min-height:48px;margin:10px 0 0;padding:8px 0;color:#536d49;font-size:12px;font-weight:600;line-height:1.5;cursor:pointer}
.bb-evening-pivot .bbep-check input{box-sizing:border-box;flex:0 0 22px;width:22px;height:22px;margin:0;accent-color:#36744b;cursor:pointer}
.bb-evening-pivot .bbep-validation-hint{margin:9px 0 0;color:#7a8069;font-size:11px;line-height:1.5}
.bb-evening-pivot .bbep-message{margin:10px 0 0;color:#5e7655;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.bb-evening-pivot .bbep-message.is-error{color:#9a4231}
.bb-evening-pivot .bbep-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px;padding-top:12px;border-top:1px solid #e4e8d9}
.bb-evening-pivot .bbep-cancel,.bb-evening-pivot .bbep-submit{box-sizing:border-box;min-height:44px;margin:0;padding:10px 13px;border:1px solid #cadac4;border-radius:11px;background:#f6f7ef;color:#536f4b;font:inherit;font-size:12px;font-weight:800;line-height:1.4;cursor:pointer;touch-action:manipulation}
.bb-evening-pivot .bbep-submit{border-color:#2d7046;background:#2d7046;color:#fff}
.bb-evening-pivot button:disabled,.bb-evening-pivot input:disabled{opacity:.5;cursor:default}
.bb-evening-pivot :is(button,input):focus-visible{outline:3px solid #d4ae4f;outline-offset:2px}
@media(max-width:380px){.bb-evening-pivot.bb-evening-pivot-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 20px);padding:16px 13px;border-radius:17px}.bb-evening-pivot .bbep-title{font-size:20px}.bb-evening-pivot .bbep-meal-swap{grid-template-columns:1fr}.bb-evening-pivot .bbep-actions{flex-direction:column-reverse}.bb-evening-pivot .bbep-actions button{width:100%}.bb-evening-pivot .bbep-date-row{grid-template-columns:minmax(0,1fr) minmax(0,142px)}}
