/* App tabs (Nov 9, 2026): inside the installed app (Eat Right, Train
   Right) a slim bottom bar switches between the Food Journal and The
   Workout. Injected by app-tabs.js only when the window is
   standalone, so website visitors never see it. */
#appTabs{touch-action:pan-y;cursor:grab;position:fixed;left:10px;right:10px;bottom:10px;z-index:120;max-width:700px;margin:0 auto;display:flex;gap:8px;background:#21362d;background:rgba(20,32,26,.58);-webkit-backdrop-filter:blur(20px) saturate(1.6);backdrop-filter:blur(20px) saturate(1.6);border:1px solid rgba(255,255,255,.28);border-radius:24px;padding:8px;box-shadow:0 12px 32px rgba(10,25,15,.35),inset 0 1px 0 rgba(255,255,255,.35),inset 0 -1px 0 rgba(255,255,255,.08)}
#appTabs a{flex:1;text-align:center;padding:12px 8px;border-radius:16px;color:#e6f0e8;text-decoration:none;font-weight:700;font-size:1.02rem;position:relative;z-index:1;text-shadow:0 1px 6px rgba(10,25,15,.35)}
#appTabs a.on{background:transparent;color:#fff}
#appTabs .glassPill{position:absolute;top:8px;bottom:8px;left:0;width:0;border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.34),rgba(255,255,255,.16));border:1px solid rgba(255,255,255,.45);box-shadow:inset 0 1px 0 rgba(255,255,255,.55),inset 0 -8px 14px rgba(255,255,255,.10),0 4px 14px rgba(10,25,15,.25);transition:transform .5s cubic-bezier(.32,.72,.24,1),width .5s cubic-bezier(.32,.72,.24,1);z-index:0;pointer-events:none}
@media (prefers-reduced-motion: reduce){#appTabs .glassPill{transition:none}}
html.fj-app body,html.wo-app body,html.jr-app body{padding-bottom:86px}
html.fj-app #bottomAdd{bottom:84px}
/* Website mode (Nov 13, 2026, v582): the same bottom slider in a
   normal browser, without the app's glass panel styling. */
html.web-tabs body{padding-bottom:86px}
html.web-tabs #bottomAdd{bottom:84px}
/* The companion stands above the bar on the website, so his
   corner never covers a tab. */
html.web-tabs .sf-companion{bottom:100px}

/* Liquid glass panels inside the app (Nov 12, 2026): the app pages
   are dark, so their panels go frosted dark glass. Scoped to the
   app classes app-tabs.js sets in standalone mode only, so the
   plain web pages keep their own look. */
/* The workout's panels are dark in both themes, so in daylight
   they sit nearly solid: pale text on 62% glass over the bright
   sky washed out (Graham's screenshot, Nov 12, 2026). The food
   journal and the journal have light panels in the light theme
   and dark panels in the dark theme, so their glass follows the
   theme instead. */
html.wo-app .panel{background:rgba(27,41,34,.66)!important;-webkit-backdrop-filter:blur(14px) saturate(140%);backdrop-filter:blur(14px) saturate(140%);border-color:rgba(255,255,255,.14)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.10)}
html[data-theme="light"].wo-app .panel{background:rgba(27,41,34,.9)!important}
html[data-theme="light"].fj-app .panel,html[data-theme="light"].jr-app .panel{background:rgba(255,254,249,.8)!important;-webkit-backdrop-filter:blur(14px) saturate(150%);backdrop-filter:blur(14px) saturate(150%);border-color:rgba(120,110,90,.25)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.5)}
html[data-theme="dark"].fj-app .panel,html[data-theme="dark"].jr-app .panel{background:rgba(27,41,34,.66)!important;-webkit-backdrop-filter:blur(14px) saturate(140%);backdrop-filter:blur(14px) saturate(140%);border-color:rgba(255,255,255,.14)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.10)}
/* Small print that sits on the page itself (not inside a panel)
   uses the panels' pale green; on the bright day sky it washes
   out. In the light theme it takes the readable ink instead. */
html[data-theme="light"].wo-app .small:not(.panel .small):not(.ex .small):not(#buddybar .small):not(#timerbar .small){color:#476354}
