/* Shared bottom navigation for every packaged Android screen. */
html:root[data-mobile-view].android-score-open { --mobile-nav-height: 0px; }
html:root[data-mobile-view].android-score-open .mobile-tabbar,
html:root[data-mobile-view].android-score-note-open .mobile-tabbar,
html:root[data-mobile-view].android-library-note-open .mobile-tabbar { display: none !important; }
@media (max-width: 900px) {
  html:root[data-mobile-view] { --mobile-nav-height: 64px; }
  html:root[data-mobile-view] .mobile-tabbar {
    position: fixed;
    top: auto;
    right: 10px;
    bottom: calc(6px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 180;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-gap: 0;
    width: auto;
    height: 58px;
    min-height: 58px;
    padding: 4px;
    border: 1px solid #252e32;
    border-radius: 20px;
    background: rgba(10, 16, 20, .98);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .22);
  }
  html:root[data-mobile-view] .mobile-tab-button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    padding: 4px 2px 8px;
    gap: 0;
    border: 0;
    border-top: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: #8d9da8;
    line-height: 1;
    text-align: center;
    box-shadow: none;
  }
  html:root[data-mobile-view] .mobile-tab-button::before,
  html:root[data-mobile-view] .mobile-tab-button.is-active::before { display: none; }
  html:root[data-mobile-view] .mobile-tab-button::after { content: none; }
  html:root[data-mobile-view] .mobile-tab-button svg {
    display: block;
    flex: none;
    width: 20px;
    height: 20px;
    margin: 0 0 2px;
  }
  html:root[data-mobile-view] .mobile-tab-button span {
    display: block;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0;
  }
  html:root[data-mobile-view] .mobile-tab-button.is-active {
    border-top-color: rgba(255, 135, 57, .4);
    border-radius: 14px;
    background: linear-gradient(150deg, rgba(255, 128, 32, .13), rgba(255, 128, 32, .02));
    color: #ff8a34;
  }
  html:root[data-mobile-view] .mobile-tab-button.is-active::after {
    position: absolute;
    top: auto;
    right: auto;
    bottom: 3px;
    left: calc(50% - 2px);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ff922b;
    content: "";
  }
  html:root[data-mobile-view] .mobile-tab-button:focus-visible { outline: 2px solid #ffae53; outline-offset: -2px; }
}
