/* V2 keeps the established account card styles, replacing only the navigation shell. */
:root{--fb-bar-height:clamp(52px,4.6vw,76px)}
/* Reserve the header inside scrolling content, never on the fixed app viewport. */
body:has(#boxNav.nav-v2) #app{padding-top:0!important}
#page-gallery .gallery-body{padding-top:var(--fb-bar-height);min-height:0}
#page-about .about-body{padding-top:calc(36px + var(--fb-bar-height));min-height:0}
#page-myfresh .mf-body{padding-top:calc(24px + var(--fb-bar-height));min-height:0}
#page-freshclub .club-body{padding-top:calc(24px + var(--fb-bar-height))}
#page-events{padding-top:var(--fb-bar-height)}
#page-events .club-page-title{flex-shrink:0}
#page-events .events-list{flex:0 0 auto;overflow-y:visible}
#page-community .club-subpage-heading{padding-top:calc(24px + var(--fb-bar-height))}
#page-community .cmp-topbar{padding-top:calc(16px + var(--fb-bar-height))}
/* Full-viewport FreshVIEW keeps stable geometry when the header slides away. */
#fv-library .library-header{top:var(--fb-bar-height)}
@media(max-width:700px){#page-myfresh .mf-body{padding-top:calc(16px + var(--fb-bar-height))}}
#boxNav.nav-v2{--bar-ease:cubic-bezier(.22,.68,.24,1);--menu-height:calc(var(--fb-bar-height) + 166px);position:fixed;inset:0 0 auto;width:100%;height:var(--fb-bar-height);background:#000;color:#f5c6d6;isolation:isolate;z-index:800;transform:translateY(0);transition:height 560ms var(--bar-ease),transform 380ms var(--bar-ease);overflow:visible;box-sizing:border-box}
#boxNav.nav-v2::before{display:none}
#boxNav.nav-v2[data-open=true]{width:100%;height:var(--menu-height)}
#boxNav.nav-v2[data-account=true]{width:100%;height:var(--fb-bar-height)}
#boxNav.nav-v2[data-hidden=true]:not([data-open=true]):not([data-account=true]){transform:translateY(-102%)}
#boxNav.nav-v2 .box-topline{position:relative;height:var(--fb-bar-height);display:flex;align-items:center;justify-content:space-between;padding:0 3.2vw;box-sizing:border-box}
#boxNav.nav-v2 .box-page-name{font-family:'Helvetica Neue','PingFang SC',Arial,sans-serif;font-size:clamp(24px,3vw,48px);font-weight:200;letter-spacing:-.035em;line-height:1;max-width:40%;white-space:nowrap}
#boxNav.nav-v2 .nav-brand{position:absolute;top:50%;left:50%;right:auto;display:block;width:max-content;transform:translate(-50%,-50%);font:750 clamp(19px,1.9vw,30px)/1.1 'Helvetica Neue',Arial,sans-serif;letter-spacing:-.035em;color:inherit;opacity:1;visibility:visible;pointer-events:auto;text-decoration:none}
#boxNav.nav-v2 .box-page-name,#boxNav.nav-v2 .nav-brand{transition:opacity 180ms ease,visibility 0s 180ms;transition-delay:260ms}
#boxNav.nav-v2[data-open=true] .box-page-name,#boxNav.nav-v2[data-open=true] .nav-brand{opacity:0;visibility:hidden;pointer-events:none;transition-delay:0s}
#boxNav.nav-v2 #boxToggle{position:relative;inset:auto;width:clamp(48px,4.4vw,74px);height:calc(var(--fb-bar-height) - 12px);transform:none;border:0;background:none;cursor:pointer;padding:0;margin-left:auto;transition:transform 360ms var(--bar-ease)}
#boxNav.nav-v2 .boxImages{display:block;position:relative;width:100%;height:100%;transition:transform 420ms var(--bar-ease)}
#boxNav.nav-v2 .boxImages img{object-fit:contain;position:absolute;inset:0;width:100%;height:100%;transition:opacity 180ms ease,transform 420ms var(--bar-ease)}
#boxNav.nav-v2 #openBox{opacity:0;transform:scale(.94)}
#boxNav.nav-v2[data-open=true] #closedBox{opacity:0;transform:scale(.94)}
#boxNav.nav-v2[data-open=true] #openBox{opacity:1;transform:scale(1)}
#boxNav.nav-v2 #objects{position:absolute;inset:var(--fb-bar-height) 7vw auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2vw;width:auto;height:166px;align-items:center;box-sizing:border-box;padding-bottom:24px;pointer-events:none}
#boxNav.nav-v2 .object{position:relative;inset:auto;display:flex;align-items:center;flex-direction:column;justify-content:center;width:100%;height:124px;text-decoration:none;color:#f6e8ee;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-18px) scale(.96);transition:opacity 220ms ease,transform 300ms var(--bar-ease),visibility 0s 320ms;transition-delay:calc((5 - var(--order))*16ms)}
#boxNav.nav-v2[data-open=true] .object{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0) scale(1);transition:opacity 280ms ease,transform 500ms cubic-bezier(.16,1,.3,1.08);transition-delay:calc(120ms + var(--order)*45ms)}
#boxNav.nav-v2 .object img,#boxNav.nav-v2 .object>.settings-symbol{position:static;display:block;width:clamp(52px,5.5vw,84px);height:clamp(52px,5.5vw,84px);object-fit:contain;transform:none;aspect-ratio:auto;opacity:1;visibility:visible;transition:transform 380ms var(--bar-ease)}
#boxNav.nav-v2 .object[data-id=freshview] img{width:clamp(60px,6vw,90px)}
#boxNav.nav-v2 .settings-symbol svg{width:100%;height:100%;padding:14px;box-sizing:border-box}
#boxNav.nav-v2 .object>.object-label{display:block;position:static;width:auto;max-width:none;transform:none;margin:12px 0 0;padding:0;font:500 clamp(12px,1.05vw,17px)/1.4 'Helvetica Neue','PingFang SC',Arial,sans-serif;opacity:1;visibility:visible;pointer-events:none;transition:color 240ms ease}
#boxNav.nav-v2[data-open=true] .object[aria-current=page]{opacity:.3;cursor:default}
#boxNav.nav-v2 .object.selected img{transform:scale(.94)}
#boxNav.nav-v2 #accountCard{position:absolute;inset:calc(var(--fb-bar-height) + 12px) 3.2vw auto auto;width:360px;max-width:calc(100vw - 32px);height:auto;max-height:calc(100dvh - var(--fb-bar-height) - 28px);transform:translateY(-8px);transition:transform 300ms var(--bar-ease),opacity 220ms ease,visibility 0s 300ms;box-sizing:border-box;z-index:4}
#boxNav.nav-v2[data-account=true] #accountCard{transform:none;opacity:1;visibility:visible;pointer-events:auto;transition-delay:0s}
#boxNav.nav-v2 #accountContent .account-top button{font-size:24px!important;line-height:1;padding:6px}
#boxNav.nav-v2 #accountContent{padding-bottom:12px}
#boxNav.nav-v2 .account-language{border-top:1px solid #e8e5e0;padding:18px 20px}
#boxNav.nav-v2 .account-language label{display:block;color:#888;font-size:11px;margin-bottom:10px}
#boxNav.nav-v2 #accountLanguage{width:100%;padding:8px;background:transparent;color:inherit;border:1px solid #aaa;font:inherit;font-size:13px}
#boxNav.nav-v2 .account-language p{font-size:10px;color:#888;line-height:1.5;margin:10px 0 0}
#boxNav.nav-v2 a:focus-visible,#boxNav.nav-v2 button:focus-visible{outline-color:#f5c6d6}
@media(hover:hover){
 #boxNav.nav-v2 #boxToggle:hover .boxImages{transform:scale(1.055)}
 #boxNav.nav-v2 .object:not([aria-current=page]):hover img,#boxNav.nav-v2 .object:not([aria-current=page]):hover>.settings-symbol{transform:translateY(-4px) scale(1.035)}
 #boxNav.nav-v2 .object:hover>.object-label{color:#f5c6d6}
}
@media(max-width:700px){
 #boxNav.nav-v2{--menu-height:calc(var(--fb-bar-height) + 272px)}
 #boxNav.nav-v2 .box-topline{padding:0 16px}
 #boxNav.nav-v2 .box-page-name{font-size:26px;max-width:36%}
 #boxNav.nav-v2 .nav-brand{font-size:20px}
 #boxNav.nav-v2 #objects{inset:var(--fb-bar-height) 16px auto;height:272px;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 10px;padding:8px 0 24px}
 #boxNav.nav-v2 .object{height:118px}
 #boxNav.nav-v2 .object img,#boxNav.nav-v2 .object>.settings-symbol{height:64px;width:64px}
 #boxNav.nav-v2 .object[data-id=freshview] img{width:72px}
 #boxNav.nav-v2 .object>.object-label{font-size:13px;margin-top:8px}
 #boxNav.nav-v2 #accountCard{right:16px}
}
@media(prefers-reduced-motion:reduce){#boxNav.nav-v2,#boxNav.nav-v2 *{transition:none!important}}

#boxNav.nav-v2,#boxNav.nav-v2[data-theme=dark]{--nav-ink:#f6e8ee}
#boxNav.nav-v2 .object>.object-label,#boxNav.nav-v2 .object>.settings-symbol{color:inherit}

/* Optical balance for the supplied pink illustrations; keep shared label baselines. */
#boxNav.nav-v2 .object[data-id=now] img{scale:1.12;translate:1px 2px}
#boxNav.nav-v2 .object[data-id=events] img{scale:1.12;translate:-2px 2px}
#boxNav.nav-v2 .object[data-id=settings] img{scale:.96;translate:-1px 0}
