.mobile-tabbar{display:none}

@media(max-width:700px){
  body.has-mobile-tabbar{
    --mobile-tabbar-float-bottom:calc(82px + env(safe-area-inset-bottom,0px))
  }
  body.has-mobile-tabbar main{padding-bottom:calc(90px + env(safe-area-inset-bottom,0px))}
  body.has-mobile-tabbar footer{display:none}

  .mobile-tabbar{
    --tabbar-glass-solid:#f5f5ed;
    --tabbar-glass:rgba(245,245,237,.78);
    --tabbar-border:rgba(25,59,52,.16);
    --tabbar-shadow:0 10px 30px rgba(25,59,52,.14),inset 0 1px 0 rgba(255,255,255,.62);
    --tabbar-hover:rgba(232,237,225,.72);
    --tabbar-active:rgba(200,227,187,.62);
    --tabbar-active-border:rgba(79,115,92,.18);
    position:fixed;
    z-index:110;
    left:8px;
    right:8px;
    bottom:6px;
    left:max(var(--mobile-content-gutter,8px),env(safe-area-inset-left,0px));
    right:max(var(--mobile-content-gutter,8px),env(safe-area-inset-right,0px));
    bottom:max(6px,env(safe-area-inset-bottom,0px));
    display:block;
    padding:6px;
    border:1px solid var(--tabbar-border);
    border-radius:24px;
    background:var(--tabbar-glass-solid);
    box-shadow:var(--tabbar-shadow);
    overflow:hidden;
    isolation:isolate;
  }

  @supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
    .mobile-tabbar{
      background:var(--tabbar-glass);
      -webkit-backdrop-filter:blur(20px) saturate(145%);
      backdrop-filter:blur(20px) saturate(145%);
    }
  }

  .mobile-tabbar-row{
    position:relative;
    display:grid;
    grid-template-columns:repeat(var(--mobile-tab-count,4),minmax(0,1fr));
    gap:4px;
  }

  .mobile-tabbar-expanded{
    max-height:0;
    margin:0;
    padding:0;
    border-bottom:0 solid transparent;
    opacity:0;
    visibility:hidden;
    transform:translateY(8px);
    overflow:hidden;
    pointer-events:none;
    transition:max-height .24s cubic-bezier(.22,.78,.25,1),opacity .16s ease,transform .24s cubic-bezier(.22,.78,.25,1),margin .24s ease,padding .24s ease,border-width .24s ease;
  }

  .mobile-tabbar.is-expanded .mobile-tabbar-expanded{
    max-height:var(--mobile-expanded-height,64px);
    margin-bottom:4px;
    padding-bottom:6px;
    border-bottom-width:1px;
    border-bottom-color:var(--tabbar-border);
    opacity:1;
    visibility:visible;
    transform:none;
    pointer-events:auto;
  }

  .mobile-tabbar-expanded-grid{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    grid-auto-rows:52px;
    gap:4px;
  }

  .mobile-tabbar-link{
    position:relative;
    z-index:1;
    min-width:0;
    min-height:52px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:2px;
    margin:0;
    padding:0;
    border:0;
    border-radius:18px;
    background:transparent;
    color:var(--muted);
    text-decoration:none;
    font:inherit;
    font-size:11px;
    font-weight:600;
    line-height:1.1;
    cursor:pointer;
    transition:color .18s ease,background-color .18s ease,transform .18s ease;
  }

  button.mobile-tabbar-link{width:100%}

  .mobile-tabbar-link svg{
    width:23px;
    height:23px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.7;
    stroke-linecap:round;
    stroke-linejoin:round;
  }

  .mobile-tabbar-link:hover,
  .mobile-tabbar-link:focus-visible{
    background:var(--tabbar-hover);
    color:var(--ink);
  }

  .mobile-tabbar-link:active{transform:scale(.98)}

  .mobile-tabbar-link.is-active{
    background:var(--tabbar-active);
    color:var(--ink);
    font-weight:750;
  }

  .mobile-tabbar-link.is-active svg{stroke-width:2}

  .mobile-tabbar-expanded-link span{
    max-width:100%;
    text-align:center;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .mobile-tabbar.mobile-tabbar[data-mobile-expandable] [data-mobile-more]{
    background:transparent;
    color:var(--muted);
    font-weight:600;
  }

  .mobile-tabbar.mobile-tabbar[data-mobile-expandable] [data-mobile-more] svg{
    stroke-width:1.7;
  }

  .mobile-tabbar.mobile-tabbar[data-mobile-expandable] [data-mobile-more]:hover,
  .mobile-tabbar.mobile-tabbar[data-mobile-expandable] [data-mobile-more]:focus-visible{
    background:var(--tabbar-hover);
    color:var(--ink);
    font-weight:600;
  }

  @media(hover:none),(pointer:coarse){
    .mobile-tabbar.mobile-tabbar[data-mobile-expandable] [data-mobile-more]:hover{
      background:transparent;
      color:var(--muted);
    }
  }

  .mobile-tabbar-indicator{
    position:absolute;
    z-index:0;
    top:0;
    left:0;
    width:0;
    height:52px;
    border:1px solid var(--tabbar-active-border);
    border-radius:18px;
    background:var(--tabbar-active);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.4);
    opacity:0;
    pointer-events:none;
    transform:translate3d(var(--mobile-tab-indicator-x,0),0,0);
    will-change:transform,width;
  }

  .mobile-tabbar.is-liquid-ready .mobile-tabbar-indicator{
    opacity:1;
    transition:transform .28s cubic-bezier(.22,.78,.25,1),width .28s cubic-bezier(.22,.78,.25,1),opacity .14s ease;
  }

  .mobile-tabbar.is-liquid-ready .mobile-tabbar-row>.mobile-tabbar-link.is-active{background:transparent}
}

@media(max-width:700px) and (prefers-reduced-motion:reduce){
  .mobile-tabbar-link,
  .mobile-tabbar-expanded,
  .mobile-tabbar.is-liquid-ready .mobile-tabbar-indicator{transition:none}
}

@media(max-width:700px){
  .mobile-tabbar.is-dense .mobile-tabbar-link{
    min-width:0;
    gap:1px;
    font-size:9px;
    letter-spacing:-.1px;
  }
  .mobile-tabbar.is-dense .mobile-tabbar-link svg{
    width:22px;
    height:22px;
  }
  .mobile-tabbar.is-dense .mobile-tabbar-row>.mobile-tabbar-link span{
    max-width:100%;
    white-space:nowrap;
  }
}
