/* Day editor presentation only. Every live action stays in its original owner. */
.bbdps-header,.bbdps-backdrop{display:none}
html.bb-day-plan-sheet-open,html.bb-day-plan-sheet-open body{overflow:hidden!important}
/* The completed view-entry animation retains translateY(0) on desktop.
   A transformed ancestor anchors fixed children to the whole Plan instead
   of the viewport, leaving only the backdrop visible above the hidden sheet. */
html.bb-day-plan-sheet-open body .shell #app.bbnext-plan{animation:none!important;transform:none!important}
html.bb-day-plan-sheet-open body nav#bbPrimaryNavigation[data-bb-navigation="polished"]{z-index:850!important}
html body .shell #app.bbnext-plan .bbnext-day.bbdps-active>.bbdps-backdrop{
 display:block!important;position:fixed!important;inset:0!important;z-index:8000!important;
 width:100vw!important;height:100dvh!important;margin:0!important;padding:0!important;
 border:0!important;border-radius:0!important;background:#18372c80!important;
 box-shadow:none!important;touch-action:none;cursor:default;
}
html body .shell #app.bbnext-plan .bbnext-day.bbdps-active>.bbnext-day-content{
 position:fixed!important;z-index:8001!important;bottom:var(--bbdps-bottom-inset,0px)!important;
 left:50%!important;transform:translateX(-50%)!important;width:min(100%,560px)!important;
 max-height:82vh!important;max-height:min(82dvh,calc(var(--bbdps-viewport-height,100dvh) - var(--bbdps-top-clearance,16px) - 12px))!important;
 display:flex!important;flex-direction:column!important;gap:10px!important;box-sizing:border-box!important;
 margin:0!important;padding:0 18px calc(18px + env(safe-area-inset-bottom,0px))!important;
 overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;
 border:1px solid #e0e6d8!important;border-bottom:0!important;border-radius:24px 24px 0 0!important;
 background:#fffdf6!important;color:#244c37!important;box-shadow:0 -10px 40px #142e2224!important;
 scrollbar-gutter:stable;scroll-padding:76px 0 14px;
}
html body .shell #app.bbnext-plan .bbnext-day.bbdps-active>.bbnext-day-content>*{min-width:0!important;max-width:100%!important;flex:none;order:4}
html body .shell #app.bbnext-plan .bbnext-day.bbdps-active>.bbnext-day-content>.bbdps-header{
 display:grid!important;grid-template-columns:minmax(0,1fr) 44px;align-items:center;
 position:sticky!important;top:0;z-index:3;order:0;gap:4px 8px;
 margin:0 -2px!important;padding:10px 0 2px!important;background:#fffdf6!important;
}
html body .shell #app.bbnext-plan .bbdps-header>.bbdps-grabber{grid-column:1/-1;justify-self:center;width:38px;height:4px;margin:0 0 4px;border-radius:8px;background:#d2daca}
html body .shell #app.bbnext-plan .bbdps-header>.bbdps-title{margin:0!important;font-size:24px!important;line-height:1.2!important;letter-spacing:-.035em;color:#204b35!important}
html body .shell #app.bbnext-plan .bbdps-header>.bbdps-close{display:grid!important;place-items:center;min-width:44px;min-height:44px;width:44px;height:44px;margin:0;padding:0;border:1px solid #dae3d2;border-radius:50%;background:#f5f7ed;color:#355b42;font:400 27px/1 system-ui;cursor:pointer}
html body .shell #app.bbnext-plan .bbnext-day.bbdps-active>.bbnext-day-content>.bb-plan-extra-additions{order:1;margin:0!important;gap:8px!important}
html body .shell #app.bbnext-plan .bbnext-day.bbdps-active .bb-plan-extra-additions>button{min-height:44px!important;padding:9px 8px!important;border-radius:12px!important;background:#f7f7eb!important;font-size:12px!important}
html body .shell #app.bbnext-plan .bbnext-day.bbdps-active>.bbnext-day-content>.bbfeed-night-row{order:2;padding:0!important;margin:0!important;font-size:12px!important}
html body .shell #app.bbnext-plan .bbnext-day.bbdps-active>.bbnext-day-content>.bbdps-ingredients{order:3;margin:0!important;border:1px solid #dde5d5;border-radius:13px;background:#f5f8ee;overflow:hidden}
html body .shell #app.bbnext-plan .bbdps-ingredients>summary{display:flex;align-items:center;gap:10px;list-style:none;min-height:46px;box-sizing:border-box;padding:11px 13px;color:#365c43;font-size:13px;font-weight:750;cursor:pointer}
html body .shell #app.bbnext-plan .bbdps-ingredients>summary::-webkit-details-marker{display:none}
html body .shell #app.bbnext-plan .bbdps-ingredients>summary::after{content:'⌄';margin-left:auto;font-size:19px;line-height:1}
html body .shell #app.bbnext-plan .bbdps-ingredients[open]>summary::after{transform:rotate(180deg)}
html body .shell #app.bbnext-plan .bbdps-ingredients>.bbnext-meal-ingredients{margin:0!important;padding:0 13px 12px!important;border:0!important;border-radius:0!important;background:transparent!important}
html body .shell #app.bbnext-plan .bbdps-ingredients>.bbnext-meal-ingredients>strong{display:none}
html body .shell #app.bbnext-plan .bbnext-day.bbdps-active .bb172-planner-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:9px!important;margin:0!important}
html body .shell #app.bbnext-plan .bbnext-day.bbdps-active .bb172-planner-controls>select[data-move]{grid-column:1!important;grid-row:auto!important;min-height:46px!important;border-radius:12px!important;background:#f7f9f1!important;font-size:16px!important}
html body .shell #app.bbnext-plan .bbnext-day.bbdps-active .bb172-planner-controls>[data-cook]{grid-column:2!important;grid-row:auto!important;min-height:46px!important;border-radius:12px!important;background:#246343!important;color:#fffdf6!important;font-size:14px!important}
html body .shell #app.bbnext-plan .bbnext-day.bbdps-active>.bbnext-day-content>.bb-plan-optional-meals{order:5}
html body .shell #app.bbnext-plan .bbnext-day.bbdps-active>.bbnext-day-content>.bb-plan-day-actions{order:6;margin:0!important;padding:0!important;border:0!important;gap:9px!important}
html body .shell #app.bbnext-plan .bbnext-day.bbdps-active .bb-plan-day-actions>.bb-plan-move-button,
html body .shell #app.bbnext-plan .bbnext-day.bbdps-active .bb-plan-day-actions>.bb-manual-batch-btn{grid-column:auto!important;order:1;min-height:46px!important;border-radius:12px!important;background:#fffdf6!important;border-color:#cbdac5!important;color:#315c40!important}
html body .shell #app.bbnext-plan .bbnext-day.bbdps-active .bb-plan-day-actions>.bb-plan-leftovers,
html body .shell #app.bbnext-plan .bbnext-day.bbdps-active .bb-plan-day-actions>.bb-evening-pivot{order:2;grid-column:1/-1!important}
html body .shell #app.bbnext-plan .bbnext-day.bbdps-active .bb-plan-day-actions>.bb-day-done-trigger{order:3;grid-column:1/-1!important;min-height:50px!important;margin:2px 0 0!important;border-radius:13px!important;border-color:#246343!important;background:#246343!important;color:#fffdf6!important;-webkit-text-fill-color:#fffdf6!important;font-size:15px!important;font-weight:800!important}
html body .shell #app.bbnext-plan .bbnext-day.bbdps-active :is(button,summary,select):focus-visible{outline:3px solid #bd9740;outline-offset:2px}
/* Keep the existing reminder and both handlers; only its position changes. */
html.bb-day-plan-sheet-open #bbFunnelNudge:not([hidden]){
 z-index:8002!important;
 top:calc(10px + env(safe-area-inset-top,0px))!important;bottom:auto!important;
 width:min(calc(100vw - 22px),538px)!important;display:grid!important;
 grid-template-columns:minmax(0,1fr) auto 44px;gap:8px!important;padding:10px 11px!important;
 border-radius:15px!important;align-items:center!important;
}
html.bb-day-plan-sheet-open #bbFunnelNudge .bbf-copy{grid-column:1;min-width:0}
html.bb-day-plan-sheet-open #bbFunnelNudge strong{font-size:13px!important;line-height:1.25}
html.bb-day-plan-sheet-open #bbFunnelNudge .bbf-copy span{font-size:11px!important;line-height:1.35}
html.bb-day-plan-sheet-open #bbFunnelNudge .bbf-actions{display:contents!important}
html.bb-day-plan-sheet-open #bbFunnelNudge [data-bbf-signup]{grid-column:2;grid-row:1;min-height:44px!important;max-width:112px;padding:8px!important;font-size:11px!important;white-space:normal!important}
html.bb-day-plan-sheet-open #bbFunnelNudge [data-bbf-dismiss]{grid-column:3;grid-row:1;width:44px;min-width:44px;min-height:44px!important;padding:0!important;border:0!important;background:transparent!important;font-size:0!important}
html.bb-day-plan-sheet-open #bbFunnelNudge [data-bbf-dismiss]::after{content:'×';font-size:23px;font-weight:400}
html.bb-day-plan-sheet-open:has(dialog[open]) #bbFunnelNudge,
html.bb-day-plan-sheet-open:has(#modalRoot>*) #bbFunnelNudge,
html.bb-day-plan-sheet-open:has(#cloud-panel.open) #bbFunnelNudge{display:none!important}
@media(min-width:640px){html body .shell #app.bbnext-plan .bbnext-day.bbdps-active>.bbnext-day-content{bottom:max(var(--bbdps-bottom-inset,0px),16px)!important;border-bottom:1px solid #e0e6d8!important;border-radius:24px!important}}
@media(prefers-reduced-motion:reduce){.bbdps-active>.bbnext-day-content{scroll-behavior:auto!important}}
