.RECO_ModeBottomBar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    min-height: calc(56px + env(safe-area-inset-bottom));
    padding: 0 0 env(safe-area-inset-bottom);
    border-top: 1px solid var(--LineColor);
    background-color: #ffffffeb;
    backdrop-filter: blur(6px);
}

.ModeBottomBarInner {
    width: 100%;
    max-width: var(--ContentAreaMaxWidth);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    height: 56px;
    gap: 0;
}

.ModeBottomBarButton {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 8px;
    text-align: center;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.2;
    font-weight: 400;
    color: var(--Gray_Main4);
    background-color: transparent;
    border-radius: 0;
    transition: background-color 0.2s ease, color 0.2s ease, font-weight 0.2s ease;
}

.ModeBottomBarIcon {
    font-size: 22px;
    line-height: 1;
}

.ModeBottomBarText {
    margin-top: 3px;
    font-size: 0.68rem;
    line-height: 1;
}

body:has([data-page-mode='Overtime']) .ModeBottomBarButton--overtime {
    color: var(--mode-color-overtime);
    font-weight: 600;
    background-color: transparent;
}

body:has([data-page-mode='Dashboard']) .ModeBottomBarButton--dashboard {
    color: var(--PrimaryColor);
    font-weight: 600;
    background-color: transparent;
}

body:has([data-page-mode='CompTime']) .ModeBottomBarButton--comp-time {
    color: var(--mode-color-comp-time);
    font-weight: 600;
    background-color: transparent;
}

body:has(.RECO_ModeBottomBar) .MainContainer .MainContentContainer {
    padding-bottom: calc(56px + env(safe-area-inset-bottom) + 20px);
}

@media screen and ( max-width: 768px ) {
    .ModeBottomBarButton {
        padding: 0 6px;
    }

    .ModeBottomBarIcon {
        /* font-size: 0.95rem; */
    }

    .ModeBottomBarText {
        font-size: 0.65rem;
    }
}
