/* Shared navigation: independent of .page, .foot and legacy .capsule styles. */
.sb-bottom-nav{position:fixed;left:50%;bottom:calc(16px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:1001;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;box-sizing:border-box;width:min(380px,calc(100% - 32px));height:64px;padding:6px 8px;border-radius:36px;background:#fff;box-shadow:0 6px 24px #0000002e,0 1px 4px #00000014;transition:transform .25s ease,opacity .25s ease}
.sb-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:44px;padding:2px 4px;border-radius:24px;color:#fb4e23;text-decoration:none;font:600 12px/16px -apple-system,BlinkMacSystemFont,"Microsoft YaHei",sans-serif;white-space:nowrap;-webkit-tap-highlight-color:transparent}
.sb-bottom-nav a.is-active{background:#fff0e9;font-weight:800}
.sb-bottom-nav svg{display:block;flex:none;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sb-bottom-nav a:focus-visible{outline:2px solid #fb4e23;outline-offset:1px}
.sb-bottom-nav a:active{opacity:.65}
.sb-bottom-nav.is-hidden{transform:translate(-50%,calc(100% + 40px));opacity:0;pointer-events:none}
.sb-bottom-space{display:block;height:calc(100px + env(safe-area-inset-bottom,0px));clear:both}
/* The footer spacer provides room for the capsule, including on native pages. */
body:has(.sb-bottom-nav) .sb-info-footer{padding-bottom:18px}
body:has(.sb-bottom-nav) .task-floating-entries{bottom:calc(96px + env(safe-area-inset-bottom,0px));right:max(14px,calc((100vw - 414px)/2 + 14px))}
body:has(.sb-bottom-nav) .floating-back{bottom:calc(96px + env(safe-area-inset-bottom,0px));left:max(14px,calc((100vw - 414px)/2 + 14px));transform:none;height:44px;width:64px;border-radius:24px}
body:has(.sb-bottom-nav) .floating-back.hide{transform:translateY(calc(100% + 140px))}
body:has(.sb-bottom-nav) #open-reply{bottom:calc(96px + env(safe-area-inset-bottom,0px))}
@media(prefers-reduced-motion:reduce){.sb-bottom-nav{transition:none}}
@media(max-width:350px){.sb-bottom-nav{width:calc(100% - 24px);padding-left:5px;padding-right:5px;gap:0}.sb-bottom-nav a{font-size:10px;gap:2px}.sb-bottom-nav svg{width:21px;height:21px}}
