/* Plan entry uses the already-requested destination before deferred decoration.
   The hint expires as soon as the original renderer commits its body view; it
   cannot select a tab, change a URL or override a later Discover/Shop choice. */
html[data-bb-plan-entry="true"] body:not([data-bbnext-view]) .shell nav.tabs:not([data-bb-navigation="polished"])>.tab,
html body[data-bbnext-view="week"] .shell nav.tabs:not([data-bb-navigation="polished"])>.tab{
 background:transparent!important;color:#536d58!important;-webkit-text-fill-color:currentColor!important;box-shadow:none!important;
}
html[data-bb-plan-entry="true"] body:not([data-bbnext-view]) .shell nav.tabs:not([data-bb-navigation="polished"])>.tab[data-tab="week"],
html body[data-bbnext-view="week"] .shell nav.tabs:not([data-bb-navigation="polished"])>.tab[data-tab="week"]{
 background:var(--bb-premium-gloss,linear-gradient(135deg,#123e2d,#245e43))!important;color:#fffdf6!important;
}
html[data-bb-plan-entry="true"] body:not([data-bbnext-view]) .shell nav.tabs:not([data-bb-navigation="polished"])>.tab :is(.nav-icon,.nav-label,svg,svg *),
html body[data-bbnext-view="week"] .shell nav.tabs:not([data-bb-navigation="polished"])>.tab :is(.nav-icon,.nav-label,svg,svg *){
 color:inherit!important;-webkit-text-fill-color:currentColor!important;stroke:currentColor!important;
}
/* Selection and icon contrast must commit together, without crossfading the
   old Discover highlight or an ivory settings icon over its old white fill. */
html[data-bb-plan-entry="true"] body:not([data-bbnext-view]) .shell nav.tabs>.tab,
html body[data-bbnext-view="week"] .shell nav.tabs>.tab,
html[data-bb-plan-entry="true"] body:not([data-bbnext-view]) .shell>header.top #bbuiOpenSettings,
html body[data-bbnext-view="week"] .shell>header.top #bbuiOpenSettings{transition:none!important}
/* The desktop-only entry animation washed the just-rendered My Week card to
   50% opacity. Plan now paints fully opaque, as its mobile presentation does. */
html body[data-bbnext-view="week"] .shell #app.bbnext-plan.bb-stage-enter{animation:none!important;opacity:1!important;transform:none!important}

/* A single, opaque dock across PWA and native. Decorative changes only. */
/* Keep the retired startup banner out of the first paint. The original region
   controls and disclaimer are still moved into the header by their owner. */
html body>[role="note"]:has(#bb307Island){display:none!important}
/* A slow presentation script must still get a compact, usable live summary,
   rather than the retired white card and oversized ring. This fallback styles
   the original nodes; no page-wide hiding timer or loading overlay is needed. */
html body[data-bbnext-view="week"] .shell #app.bbnext-plan:not([data-bb-compact-header="true"]) .bbnext-plan-budget{
 display:flex!important;align-items:center!important;gap:12px!important;min-height:104px!important;
 margin:0 0 12px!important;padding:16px!important;border:1px solid #345d45!important;border-radius:18px!important;
 background:linear-gradient(120deg,#173e2e,#24583e)!important;color:#fffef6!important;box-shadow:none!important;
}
html body[data-bbnext-view="week"] .shell #app.bbnext-plan:not([data-bb-compact-header="true"]) .bbnext-plan-budget::before{display:none!important}
html body[data-bbnext-view="week"] .shell #app.bbnext-plan:not([data-bb-compact-header="true"]) .bb-myweek-emblem{
 display:block!important;flex:0 0 56px!important;width:56px!important;min-width:56px!important;height:56px!important;margin:0!important;
}
html body[data-bbnext-view="week"] .shell #app.bbnext-plan:not([data-bb-compact-header="true"]) .bbnext-plan-budget .bb-myweek-emblem>.bbnext-plan-donut{
 width:56px!important;height:56px!important;min-width:56px!important;margin:0!important;
}
html body[data-bbnext-view="week"] .shell #app.bbnext-plan:not([data-bb-compact-header="true"]) .bbnext-plan-budget .bb-myweek-emblem .bbnext-plan-donut-core{width:44px!important;height:44px!important}
html body[data-bbnext-view="week"] .shell #app.bbnext-plan:not([data-bb-compact-header="true"]) .bbnext-plan-budget .bb-myweek-emblem .bbnext-plan-donut-core strong{font-size:10px!important;letter-spacing:-.4px!important}
/* The simple wrapper can arrive before the final compact header. Its older
   desktop rule sets an 88px minimum as well as a height; cover that short
   intermediate state without constraining the completed hero. */
html body[data-bbnext-view="week"] .shell #app.bbnext-plan:not([data-bb-compact-header="true"]) .bbnext-plan-budget[data-bb-simple-budget] .bbpc-budget-overview .bb-myweek-emblem,
html body[data-bbnext-view="week"] .shell #app.bbnext-plan:not([data-bb-compact-header="true"]) .bbnext-plan-budget[data-bb-simple-budget] .bbpc-budget-overview .bb-myweek-emblem>.bbnext-plan-donut{width:56px!important;min-width:56px!important;max-width:56px!important;height:56px!important;min-height:56px!important;max-height:56px!important}
html body[data-bbnext-view="week"] .shell #app.bbnext-plan:not([data-bb-compact-header="true"]) .bbnext-plan-budget-text{
 min-width:0!important;flex:1!important;grid-area:auto!important;text-align:left!important;
}
html body[data-bbnext-view="week"] .shell #app.bbnext-plan:not([data-bb-compact-header="true"]) .bbnext-plan-budget-text h2{
 margin:0 0 4px!important;font-size:23px!important;line-height:1.1!important;color:#fffef6!important;-webkit-text-fill-color:currentColor!important;
}
html body[data-bbnext-view="week"] .shell #app.bbnext-plan:not([data-bb-compact-header="true"]) .bbnext-plan-budget-text>p{font-size:11px!important;color:#edf1e4!important}
html body[data-bbnext-view="week"] .shell #app.bbnext-plan:not([data-bb-compact-header="true"]) .bbnext-plan-budget :is(.bb77-week-mark,.bbnext-plan-kicker){display:none!important}
html body nav#bbPrimaryNavigation[data-bb-navigation="polished"]{
 position:fixed!important;inset:auto 0 max(8px,env(safe-area-inset-bottom,0px)) 0!important;
 transform:none!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
 align-items:stretch!important;justify-content:normal!important;gap:4px!important;
 width:min(620px,calc(100% - 24px))!important;max-width:620px!important;min-height:72px!important;
 box-sizing:border-box!important;margin:0 auto!important;padding:6px!important;border:1px solid #dce6d6!important;
 border-radius:24px!important;background:#fffef8!important;color:#64806b!important;
 backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 box-shadow:0 8px 26px #183f3018,0 2px 7px #183f300a!important;z-index:9990!important;
}
html body nav#bbPrimaryNavigation[data-bb-navigation="polished"]>[data-bb-nav-item]{
 position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
 flex:none!important;gap:5px!important;box-sizing:border-box!important;min-width:0!important;max-width:none!important;width:100%!important;
 min-height:58px!important;margin:0!important;padding:8px 2px 7px!important;border:0!important;border-radius:17px!important;
 background:transparent!important;color:#617c65!important;-webkit-text-fill-color:currentColor!important;
 box-shadow:none!important;text-decoration:none!important;text-align:center!important;line-height:1.2!important;
 font:650 10.5px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
 cursor:pointer!important;touch-action:manipulation!important;-webkit-tap-highlight-color:transparent;
 transition:background-color .16s ease,color .16s ease!important;
}
html body nav#bbPrimaryNavigation[data-bb-navigation="polished"]>[data-bb-nav-item]::after{display:none!important;content:none!important}
html body nav#bbPrimaryNavigation[data-bb-navigation="polished"]>[data-bb-nav-item]::before{display:none!important;content:none!important}
html body nav#bbPrimaryNavigation[data-bb-navigation="polished"]>[data-bb-nav-item] .nav-label{
 display:block!important;flex:none!important;min-width:0!important;margin:0!important;padding:0!important;
 color:inherit!important;-webkit-text-fill-color:currentColor!important;font:inherit!important;letter-spacing:0!important;
 white-space:nowrap!important;text-overflow:clip!important;overflow:visible!important;
}
html body nav#bbPrimaryNavigation[data-bb-navigation="polished"]>[data-bb-nav-item] .nav-icon{
 display:grid!important;place-items:center!important;flex:none!important;width:23px!important;height:23px!important;min-height:23px!important;
 margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;color:inherit!important;
 box-shadow:none!important;line-height:1!important;
}
html body nav#bbPrimaryNavigation[data-bb-navigation="polished"]>[data-bb-nav-item] svg{
 display:block!important;width:22px!important;height:22px!important;margin:0!important;stroke:currentColor!important;color:inherit!important;
 fill:none!important;stroke-width:1.75!important;opacity:1!important;visibility:visible!important;transform:none!important;
}
html body nav#bbPrimaryNavigation[data-bb-navigation="polished"]>[data-bb-nav-item] svg *{stroke:currentColor!important;fill:none!important}
html body nav#bbPrimaryNavigation[data-bb-navigation="polished"]>[data-bb-nav-current="true"]{
 background:#1d6846!important;color:#fffef8!important;font-weight:750!important;
 box-shadow:0 3px 9px #1d684620,inset 0 1px 0 #ffffff12!important;
}
html body nav#bbPrimaryNavigation[data-bb-navigation="polished"]>[data-bb-nav-current="true"] *{color:inherit!important;stroke:currentColor!important}
html body nav#bbPrimaryNavigation[data-bb-navigation="polished"]>[data-bb-nav-current="true"]::before{
 content:""!important;display:block!important;position:absolute!important;top:4px!important;left:50%!important;
 transform:translateX(-50%)!important;width:16px!important;height:2px!important;background:#f5ce74!important;border-radius:2px!important;
}
html body nav#bbPrimaryNavigation[data-bb-navigation="polished"]>[data-bb-nav-item]:active{transform:none!important}
html body nav#bbPrimaryNavigation[data-bb-navigation="polished"]>[data-bb-nav-item]:focus-visible{outline:3px solid #a77c2e!important;outline-offset:3px!important}
html body .shell:has(>nav#bbPrimaryNavigation[data-bb-navigation="polished"]){padding-bottom:calc(106px + env(safe-area-inset-bottom,0px))!important}
@media(hover:hover){html body nav#bbPrimaryNavigation[data-bb-navigation="polished"]>[data-bb-nav-current="false"]:hover{background:#edf3e5!important;color:#214f37!important}}
@media(max-width:350px){
 html body nav#bbPrimaryNavigation[data-bb-navigation="polished"]{width:calc(100% - 16px)!important;gap:2px!important;padding:5px!important;min-height:69px!important;border-radius:22px!important}
 html body nav#bbPrimaryNavigation[data-bb-navigation="polished"]>[data-bb-nav-item]{font-size:10px!important;min-height:57px!important;gap:5px!important;border-radius:16px!important}
}
@media(prefers-reduced-motion:reduce){html body nav#bbPrimaryNavigation[data-bb-navigation="polished"]>[data-bb-nav-item]{transition:none!important}html body nav#bbPrimaryNavigation[data-bb-navigation="polished"]>[data-bb-nav-item]:active{transform:none!important}}
/* Mobile content stays in its real document position while scrolling. The old
   245px card estimate predates larger titles and recipe benefits; sizing those
   cards only as they enter view can change the page length under a swipe. */
/* The old compact-tab layer hid this entire banner after leaving Plan. Keep
   one consistent account/settings entry across tabs, in normal page flow.
   Full-screen shopping and cooking retain their existing overlay rules. */
html body[data-bbnext-view]:not(.bb172-storefront-visible) .shell>header.top[data-bb-account-polish]{display:flex!important;position:relative!important;top:auto!important;inset-block-start:auto!important;transform:none!important;margin:0 auto 11px!important}
html body[data-bbnext-view] .shell>header.top[data-bb-account-polish] #saveStatus{display:block!important}
html body[data-bbnext-view] .shell:has(>header.top[data-bb-account-polish])>#bb175Toolbar,
html body[data-bbnext-view]:has(.shell>header.top[data-bb-account-polish]) #bbR6QuickSettings{display:none!important}
html body.bb172-storefront-visible .shell>header.top[data-bb-account-polish],
html body.bb172-storefront-visible nav#bbPrimaryNavigation[data-bb-navigation]{display:none!important}
@media(max-width:620px){
 html body[data-bbnext-view]:not(.bb172-storefront-visible) .shell>header.top[data-bb-account-polish]{display:grid!important}
}
@media(max-width:700px){
 html{scroll-behavior:auto!important}
 html body #app.bb-stage-enter{animation:none!important;transform:none!important}
 html body #app .grid-recipes .mini-recipe{content-visibility:visible!important;contain-intrinsic-size:none!important}
 html body .shell>header.top{transition:none!important;animation:none!important}
}
/* Touch hover can remain latched after a swipe. Use colour feedback, keeping
   the image and control geometry still; deliberate recipe swipes retain their
   own drag transform and selected-card reveal keeps its explicit scroll. */
@media(hover:none) and (pointer:coarse){
 html body #app .mini-recipe:hover,
 html body #app .mini-recipe:hover .mini-img img,
 html body #app .recipe-image:hover img,
 html body #app .stat:hover,
 html body #app .btn:hover,html body #app .btn:active,
 html body #app .small-btn:hover,html body #app .small-btn:active{transform:none!important}
}
/* Cook is its own kitchen workspace, alongside the four weekly-loop tabs. */
html body .shell>nav.tabs>a.bb173-make-meal-link{position:relative!important}
html body .shell>nav.tabs>a.bb173-make-meal-link:before{content:"";position:absolute;left:0;top:19%;bottom:19%;width:2px;border-radius:2px;background:#216345;pointer-events:none}
/* The dock floats above the safe area; cover the viewport-wide gap underneath
   it so scrolled cards cannot peek through. Keeping the cover on the dock
   also hides it whenever an existing full-screen view hides the navigation. */
html body nav#bbPrimaryNavigation[data-bb-navigation="polished"]::after{
 content:"";position:fixed;inset:auto 0 0;height:max(8px,env(safe-area-inset-bottom,0px));
 background:var(--bb-premium-ivory,#fffdf6);pointer-events:none;z-index:-1;
}
