/* BaseHeart touch navigation — drawn above account pills and cosmic overlays. */
#mobileSidebarToggle,#mobileBackdrop{touch-action:manipulation}
#mobileSidebarToggle[aria-expanded="true"]{font-size:27px;line-height:1}
#mobileBackdrop[hidden]{display:none!important}
@media(max-width:1024px){
  body:not([data-preview-device]) #mobileSidebarToggle{
    z-index:122!important;min-width:46px;min-height:46px;
    border:1px solid rgba(244,167,238,.27);border-radius:12px;
    background:rgba(24,16,35,.92);color:#fff0fb;
    -webkit-tap-highlight-color:transparent;
  }
  body:not([data-preview-device]) #sidebar{
    z-index:121!important;
    transform:translate3d(-102%,0,0);
    -webkit-overflow-scrolling:touch;
  }
  body:not([data-preview-device]).sidebar-open #sidebar{
    transform:translate3d(0,0,0)!important;pointer-events:auto;
    padding-top:max(60px,calc(48px + env(safe-area-inset-top)));
  }
  body:not([data-preview-device]) #mobileBackdrop{z-index:120!important;inset:0!important;background:rgba(4,2,12,.66)}
}
body:is([data-preview-device="mobile"],[data-preview-device="tablet"]) #mobileSidebarToggle{
  z-index:122!important;min-width:46px;min-height:46px;
  border:1px solid rgba(244,167,238,.27);border-radius:12px;
  background:rgba(24,16,35,.92);color:#fff0fb;
}
body:is([data-preview-device="mobile"],[data-preview-device="tablet"]) #sidebar{z-index:121!important}
body:is([data-preview-device="mobile"],[data-preview-device="tablet"]).sidebar-open #sidebar{
  transform:translate3d(0,0,0)!important;pointer-events:auto;
  padding-top:max(60px,calc(48px + env(safe-area-inset-top)));
}
body:is([data-preview-device="mobile"],[data-preview-device="tablet"]) #mobileBackdrop{z-index:120!important}
html[data-theme="light"] body #mobileSidebarToggle{background:rgba(239,228,246,.96);color:#23152e;border-color:rgba(115,74,142,.32)}
@media(prefers-reduced-motion:reduce){
  body.sidebar-open #sidebar{transition:none!important}
}
