body { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
.floating-nav {
  position: fixed;
  z-index: 90;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: min(540px, calc(100% - 24px));
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 48px;
  background: rgba(250,252,249,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(0,0,0,.24), inset 0 0 0 1px rgba(16,32,20,.08);
  font-family: Arial, sans-serif;
}
.floating-nav a, .floating-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 64px;
  padding: 4px 0;
  border: 0;
  border-radius: 38px;
  background: transparent;
  color: #344039;
  text-decoration: none;
  font: 500 clamp(10px, 2.8vw, 13px)/1.1 Arial, sans-serif;
}
.floating-nav svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.floating-nav a[aria-current='page'] { color: #245f10; background: rgba(79,229,29,.18); font-weight: 700; }
.floating-nav a:focus-visible { outline: 2px solid #245f10; outline-offset: 2px; }
.floating-nav button:disabled { opacity: .65; cursor: default; }
.floating-nav .nav-profile { grid-column: 4 / 6; justify-self: center; width: 50%; }
.protocol-page-title { display: none; }
body[data-home-view='protocols'] .hero-telemetry,
body[data-home-view='protocols'] .welcome-block,
body[data-home-view='protocols'] .mood-banner { display: none; }
body[data-home-view='protocols'] .protocol-library { margin-top: 24px; }
body[data-home-view='protocols'] .protocol-page-title { display: block; color: #fff; text-shadow: 0 2px 8px #000; font: 800 26px/1.2 Arial, sans-serif; margin: 0 0 20px; }
.protocol-library { scroll-margin-bottom: 110px; }
.mood-banner { gap: 12px; }
.mood-banner h2 { flex: 1; min-width: 0; }
.mood-next {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: clamp(76px, 19vw, 104px);
  min-height: 60px;
  border-radius: 12px;
  color: #071421;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.mood-next svg { display: block; width: 100%; height: 42px; overflow: visible; }
.mood-next:hover { background: rgba(7,20,33,.08); transform: translateX(2px); }
.mood-next:focus-visible { outline: 3px solid #071421; outline-offset: 3px; }
.mood-next svg path { animation: mood-next-wave 1.5s ease-in-out infinite; }
.mood-next svg path:nth-child(2) { animation-delay: .2s; }
.mood-next svg path:nth-child(3) { animation-delay: .4s; }
@media (hover: hover) { .market-strip:hover .ticker-track { animation-play-state: paused; } }
@keyframes mood-next-wave { 0%, 100% { fill: #071421; } 50% { fill: #fff; } }
@media (prefers-reduced-motion: reduce) { .mood-next { transition: none; } .mood-next svg path { animation: none; } }
@media (max-height: 480px) and (orientation: landscape) {
  .floating-nav a, .floating-nav button { min-height: 44px; gap: 2px; }
  .floating-nav svg { width: 21px; height: 21px; }
}
