@media (min-width: 1920px) {
    .MainPageContentArea {
        --mobile-urlbar-offset: max(0px, calc(100lvh - 100dvh));
        height: 100%;
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;

        width: 100%;

        display: flex;
        flex-direction: column;

            .MainPageHeader {
                display: flex;
                flex-direction: row;

            height: 50px;
            line-height: 50px;

            border-bottom: 1px solid var(--border-color);
            background-color: var(--bg-color);

                .MainPageHeaderLeftContent {
                    display: flex;
                    flex-direction: row;
                    align-items: center;

                gap: 10px;

                    .MainPageBurgerToggle {
                        display: none;
                    }
                .MainPageTitle {
                    font-weight: bold;
                    font-size: 18px;

                    text-decoration: none;
                    color: var(--text-color);
                }
                .ThemeToggleButton {
                    background: none;
                    color: var(--text-color);

                    border: none;
                    cursor: pointer;

                    height: 30px;
                    width: 30px;

                    border-radius: 50%;
                }
            }
        }
        .MainPageBody {
            display: flex;
            flex-direction: row;
            flex: 1;

            height: 100%;
            min-height: 0;

            background-color: var(--bg-color);

            .MainPageModulesBar {
                display: flex;
                border-right: 1px solid var(--border-color);

                width: 270px;
                height: 100%;

                overflow: hidden;
                position: relative;
                z-index: 40;
                /* gradient overlay */
                &::before {
                    content: '';
                    position: absolute;

                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;

                    background: linear-gradient(to top, rgba(160, 160, 160, 0.05) 0%, rgba(160, 160, 160, 0.03) 40%, rgba(160, 160, 160, 0.01) 65%, rgba(160, 160, 160, 0) 100%);
                    pointer-events: none;

                    z-index: 0;
                }
                .ModulesContentArea {
                    width: 100%;
                    height: 100%;
                    min-height: 0;

                    display: flex;
                    flex-direction: column;

                    z-index: 40;
                    .ModulesContentTitleBar {
                        width: 100%;
                        height: 50px;

                        display: flex;
                        flex-direction: row;
                        justify-content: space-between;
                        align-items: center;

                        .ModulesContentTitle {
                            color: var(--text-color);
                            margin-left: 10px;
                        }
                        .ModulesContentCloseButton {
                            background-color: var(--button-bg-color);
                            color: var(--text-color);

                            border: none;

                            width: 40px;
                            height: 40px;

                            border-radius: 10px;
                            margin-right: 10px;
                        }
                    }
                    .ModulesContentBody {
                        flex: 1;
                        min-height: 0;
                        overflow-y: auto;
                        padding-bottom: 8px;

                        .OrganizationModuleCategoryContentArea {
                            .OrganizationModuleCategoryToggle {
                            }
                            .OrganizationModulesContent {
                                .CalendarModuleHeaderArea {
                                    .CalendarModuleContent {
                                        display: none;
                                        flex-direction: column;
                                    }
                                    .CalendarModuleToggle {
                                        cursor: pointer;
                                        display: flex;
                                        flex-direction: row;
                                    }
                                    .CalendarIcon {
                                        width: 30px;
                                        height: 30px;
                                    }
                                    .CalendarModuleHeader {
                                        color: var(--unselected-text-color);
                                    }
                                    .CalendarModuleContent.Open {
                                        display: flex;
                                    }
                                }
                                .DashboardModuleHeaderArea {
                                    .DashboardModuleContent {
                                        display: none;
                                        flex-direction: column;
                                    }
                                    .DashboardModuleToggle {
                                        cursor: pointer;
                                        display: flex;
                                        flex-direction: row;
                                    }
                                    .DashboardIcon {
                                        width: 30px;
                                        height: 30px;
                                    }
                                    .DashboardModuleHeader {
                                        color: var(--unselected-text-color);
                                    }
                                    .DashboardModuleContent.Open {
                                        display: flex;
                                    }
                                }
                                .ReminderModuleHeaderArea {
                                    .ReminderModuleContent {
                                        display: none;
                                        flex-direction: column;
                                    }
                                    .ReminderModuleToggle {
                                        cursor: pointer;
                                        display: flex;
                                        flex-direction: row;
                                    }
                                    .ReminderIcon {
                                        width: 30px;
                                        height: 30px;
                                    }
                                    .ReminderModuleHeader {
                                        color: var(--unselected-text-color);
                                    }
                                    .ReminderModuleContent.Open {
                                        display: flex;
                                    }
                                }
                                .TasksModulesCategoryContentArea {
                                    .ListingViewModuleHeaderArea {
                                        .ListingViewModuleContent {
                                            display: none;
                                            flex-direction: column;
                                        }
                                        .ListingViewModuleToggle {
                                            cursor: pointer;
                                            display: flex;
                                            flex-direction: row;
                                        }
                                        .ListingViewModuleIcon {
                                            width: 30px;
                                            height: 30px;
                                        }
                                        .ListingViewModuleHeader {
                                            color: var(--unselected-text-color);
                                        }
                                        .ListingViewModuleContent.Open {
                                            display: flex;
                                        }
                                        .OrganisationListingHeader {
                                            padding: 16px 20px;

                                            display: grid;
                                            gap: 24px;

                                            grid-template-columns: 1fr auto auto;

                                            background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
                                            color: #e5e7eb;

                                            border-radius: 16px;
                                            backdrop-filter: blur(12px);
                                            font-family: Inter, sans-serif;
                                        }
                                    }
                                    .SheetViewModuleHeaderArea {
                                        .SheetViewModuleContent {
                                            display: none;
                                            flex-direction: column;
                                        }
                                        .SheetViewModuleToggle {
                                            cursor: pointer;
                                            display: flex;
                                            flex-direction: row;
                                        }
                                        .SheetViewModuleIcon {
                                            width: 30px;
                                            height: 30px;
                                        }
                                        .SheetViewModuleHeader {
                                            color: var(--unselected-text-color);
                                        }
                                        .SheetViewModuleContent.Open {
                                            display: flex;
                                        }
                                    }
                                    .WordViewModuleHeaderArea {
                                        .WordViewModuleContent {
                                            display: none;
                                            flex-direction: column;
                                        }
                                        .WordViewModuleToggle {
                                            cursor: pointer;
                                            display: flex;
                                            flex-direction: row;
                                        }
                                        .WordViewModuleIcon {
                                            width: 30px;
                                            height: 30px;
                                        }
                                        .WordViewModuleHeader {
                                            color: var(--unselected-text-color);
                                        }
                                        .WordViewModuleContent.Open {
                                            display: flex;
                                        }
                                    }
                                }
                            }
                        }
                    }
                    .ModulesAccountArea {
                        margin-top: auto;
                        margin-bottom: 0;

                        padding: 12px 10px 16px;
                        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--mobile-urlbar-offset, 0px) + var(--mobile-bottom-offset, 0px));

                        border-top: 1px solid var(--border-color);
                        background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));

                        .AccountModuleToggle {
                            display: flex;
                            align-items: center;

                            text-align: left;

                            gap: 10px;
                            width: 100%;

                            background-color: var(--button-bg-color);
                            color: var(--text-color);

                            border: 1px solid var(--border-color);
                            border-radius: 12px;

                            padding: 10px 12px;
                            cursor: pointer;

                            .AccountModuleIcon {
                                width: 10px;
                                height: 10px;

                                display: inline-flex;
                                align-items: center;
                                justify-content: center;

                                font-size: 10px;
                                color: var(--text-color);
                            }
                            .AccountModuleHeader {
                                color: var(--text-color);
                                font-weight: 600;
                            }
                        }
                    }
                }
            }
            .MainPageBodyContent {
                display: flex;
                flex: 1;

                height: 100%;
                min-height: 0;
                min-width: 0;

                pointer-events: auto;
            }

            /* Align 1920+ behavior with <=1080:
               modules bar is off-canvas by default and toggled with .IsVisible. */
            position: relative;
            .MainPageModulesBar {
                visibility: visible;
                opacity: 1;
                position: absolute;
                left: 0;
                top: 0;
                height: 100%;
                width: 270px;
                transform: translateX(0);
                transition: all 0.5s ease;

                &.IsClosing {
                    opacity: 1;
                    transform: translateX(0);
                }
                &.IsVisible {
                    visibility: visible;
                    width: 270px;
                    display: flex;
                    opacity: 1;
                    transform: translateX(0);
                    z-index: 40;
                    background-color: var(--bg-color);
                    border-right: 1px solid var(--border-color);
                }
            }
            .MainPageBodyContent {
                width: calc(100% - 270px);
                margin-left: 270px;
                transition: all 0.5s ease;
                background-color: var(--bg-color);

                &.IsRetracted {
                    position: static;
                    width: calc(100% - 270px);
                    height: auto;
                    right: auto;
                    z-index: 0;
                    margin-left: 270px;
                    background-color: var(--bg-color);
                }
            }
        }
    }
}

.SupportModuleCategoryContentArea {
    margin: 14px 10px 0;
    padding-top: 10px;
}

.SupportModulesHeaderArea {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.SupportModulesCategoryToggle {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.SupportModulesCategoryHeader {
    color: var(--unselected-text-color);
}

.SupportModulesContent {
    display: none;
    flex-direction: column;
    gap: 4px;
}

.SupportModulesContent.Open {
    display: flex;
}

.SupportModuleRowArea {
    width: 100%;
}

.SupportModuleToggle {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--unselected-text-color);
    padding: 0 0 0 16px;
    min-height: 30px;
    cursor: pointer;
    text-align: left;
}

.SupportModuleToggle:hover {
    color: var(--text-color);
}

.SupportModuleToggle.is-active {
    color: var(--text-color);
    box-shadow: none;
}

.SupportModuleBullet {
    width: 14px;
    text-align: left;
    opacity: 0.7;
}

.SupportModuleLabel {
    font-size: 14px;
}

.TrainingModuleContentArea,
.FoodModuleContentArea,
.EnergyBalanceModuleContentArea {
    width: 100%;
}

.TrainingModuleToggle,
.FoodModuleToggle,
.EnergyBalanceModuleToggle {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--unselected-text-color);
    padding: 0 0 0 8px;
    cursor: pointer;
    text-align: left;
}

.TrainingModuleToggle:hover,
.FoodModuleToggle:hover,
.EnergyBalanceModuleToggle:hover {
    color: var(--text-color);
}

.TrainingModuleIcon,
.FoodModuleIcon,
.EnergyBalanceModuleIcon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: block;
}

.TrainingModuleHeader,
.FoodModuleHeader,
.EnergyBalanceModuleHeader {
    color: var(--unselected-text-color);
}

.SupportPage {
    width: 100%;
    margin: 0 auto;
    padding: 18px;
    display: grid;
    gap: 14px;
    color: var(--text-color);
}

.SupportPageHeader {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-color);
    padding: 16px;
}

.SupportPageEyebrow {
    margin: 0;
    color: var(--unselected-text-color);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.SupportPageTitle {
    margin: 6px 0 4px;
}

.SupportPageSubtitle {
    margin: 0;
    color: var(--unselected-text-color);
}

.SupportPageCard {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-color);
    padding: 14px 16px;
}

.SupportPageText {
    margin: 0;
}

@media (max-width: 1919px) and (min-width: 1081px) {
    .MainPageContentArea {
        --mobile-urlbar-offset: max(0px, calc(100lvh - 100dvh));
        height: 100%;
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;

        width: 100%;

        display: flex;
        flex-direction: column;

        .MainPageHeader {
            display: flex;
            flex-direction: row;

            height: 50px;
            line-height: 50px;

            border-bottom: 1px solid var(--border-color);
            background-color: var(--bg-color);

            .MainPageHeaderLeftContent {
                display: flex;
                flex-direction: row;
                align-items: center;

                gap: 10px;

                .MainPageBurgerToggle {
                    background: none;
                    border: none;

                    font-size: 24px;
                    cursor: pointer;

                    color: var(--text-color);
                    background-color: #ffffff00;

                    padding: 5px 10px;
                }
                .MainPageTitle {
                    font-weight: bold;
                    font-size: 18px;

                    text-decoration: none;
                    color: var(--text-color);
                }
                .ThemeToggleButton {
                    background: none;
                    color: var(--text-color);

                    border: none;
                    cursor: pointer;

                    height: 30px;
                    width: 30px;

                    border-radius: 50%;
                }
            }
        }
        .MainPageBody {
            display: flex;
            flex-direction: row;
            flex: 1;

            height: 100%;
            min-height: 0;

            background-color: var(--bg-color);

            .MainPageModulesBar {
                display: flex;
                border-right: 1px solid var(--border-color);

                width: 270px;
                height: 100%;

                overflow: hidden;
                position: relative;
                z-index: 40;
                /* gradient overlay */
                &::before {
                    content: '';
                    position: absolute;

                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;

                    background: linear-gradient(to top, rgba(160, 160, 160, 0.05) 0%, rgba(160, 160, 160, 0.03) 40%, rgba(160, 160, 160, 0.01) 65%, rgba(160, 160, 160, 0) 100%);
                    pointer-events: none;

                    z-index: 0;
                }
                .ModulesContentArea {
                    width: 100%;
                    height: 100%;
                    min-height: 0;

                    display: flex;
                    flex-direction: column;

                    z-index: 40;
                    .ModulesContentTitleBar {
                        width: 100%;
                        height: 50px;

                        display: flex;
                        flex-direction: row;
                        justify-content: space-between;
                        align-items: center;

                        .ModulesContentTitle {
                            color: var(--text-color);
                            margin-left: 10px;
                        }
                        .ModulesContentCloseButton {
                            background-color: var(--button-bg-color);
                            color: var(--text-color);

                            border: none;

                            width: 40px;
                            height: 40px;

                            border-radius: 10px;
                            margin-right: 10px;
                        }
                    }
                    .ModulesContentBody {
                        flex: 1;
                        min-height: 0;
                        overflow-y: auto;
                        padding-bottom: 8px;

                        .OrganizationModuleCategoryContentArea {
                            .OrganizationModuleCategoryToggle {
                            }
                            .OrganizationModulesContent {
                                .CalendarModuleHeaderArea {
                                    .CalendarModuleContent {
                                        display: none;
                                        flex-direction: column;
                                    }
                                    .CalendarModuleToggle {
                                        cursor: pointer;
                                        display: flex;
                                        flex-direction: row;
                                    }
                                    .CalendarIcon {
                                        width: 30px;
                                        height: 30px;
                                    }
                                    .CalendarModuleHeader {
                                        color: var(--unselected-text-color);
                                    }
                                    .CalendarModuleContent.Open {
                                        display: flex;
                                    }
                                }
                                .DashboardModuleHeaderArea {
                                    .DashboardModuleContent {
                                        display: none;
                                        flex-direction: column;
                                    }
                                    .DashboardModuleToggle {
                                        cursor: pointer;
                                        display: flex;
                                        flex-direction: row;
                                    }
                                    .DashboardIcon {
                                        width: 30px;
                                        height: 30px;
                                    }
                                    .DashboardModuleHeader {
                                        color: var(--unselected-text-color);
                                    }
                                    .DashboardModuleContent.Open {
                                        display: flex;
                                    }
                                }
                                .ReminderModuleHeaderArea {
                                    .ReminderModuleContent {
                                        display: none;
                                        flex-direction: column;
                                    }
                                    .ReminderModuleToggle {
                                        cursor: pointer;
                                        display: flex;
                                        flex-direction: row;
                                    }
                                    .ReminderIcon {
                                        width: 30px;
                                        height: 30px;
                                    }
                                    .ReminderModuleHeader {
                                        color: var(--unselected-text-color);
                                    }
                                    .ReminderModuleContent.Open {
                                        display: flex;
                                    }
                                }
                                .TasksModulesCategoryContentArea {
                                    .ListingViewModuleHeaderArea {
                                        .ListingViewModuleContent {
                                            display: none;
                                            flex-direction: column;
                                        }
                                        .ListingViewModuleToggle {
                                            cursor: pointer;
                                            display: flex;
                                            flex-direction: row;
                                        }
                                        .ListingViewModuleIcon {
                                            width: 30px;
                                            height: 30px;
                                        }
                                        .ListingViewModuleHeader {
                                            color: var(--unselected-text-color);
                                        }
                                        .ListingViewModuleContent.Open {
                                            display: flex;
                                        }
                                        .OrganisationListingHeader {
                                            padding: 16px 20px;

                                            display: grid;
                                            gap: 24px;

                                            grid-template-columns: 1fr auto auto;

                                            background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
                                            color: #e5e7eb;

                                            border-radius: 16px;
                                            backdrop-filter: blur(12px);
                                            font-family: Inter, sans-serif;
                                        }
                                    }
                                    .SheetViewModuleHeaderArea {
                                        .SheetViewModuleContent {
                                            display: none;
                                            flex-direction: column;
                                        }
                                        .SheetViewModuleToggle {
                                            cursor: pointer;
                                            display: flex;
                                            flex-direction: row;
                                        }
                                        .SheetViewModuleIcon {
                                            width: 30px;
                                            height: 30px;
                                        }
                                        .SheetViewModuleHeader {
                                            color: var(--unselected-text-color);
                                        }
                                        .SheetViewModuleContent.Open {
                                            display: flex;
                                        }
                                    }
                                    .WordViewModuleHeaderArea {
                                        .WordViewModuleContent {
                                            display: none;
                                            flex-direction: column;
                                        }
                                        .WordViewModuleToggle {
                                            cursor: pointer;
                                            display: flex;
                                            flex-direction: row;
                                        }
                                        .WordViewModuleIcon {
                                            width: 30px;
                                            height: 30px;
                                        }
                                        .WordViewModuleHeader {
                                            color: var(--unselected-text-color);
                                        }
                                        .WordViewModuleContent.Open {
                                            display: flex;
                                        }
                                    }
                                }
                            }
                        }
                    }
                    .ModulesAccountArea {
                        margin-top: auto;
                        margin-bottom: 0;

                        padding: 12px 10px 16px;
                        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--mobile-urlbar-offset, 0px) + var(--mobile-bottom-offset, 0px));

                        border-top: 1px solid var(--border-color);
                        background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));

                        .AccountModuleToggle {
                            display: flex;
                            align-items: center;

                            text-align: left;

                            gap: 10px;
                            width: 100%;

                            background-color: var(--button-bg-color);
                            color: var(--text-color);

                            border: 1px solid var(--border-color);
                            border-radius: 12px;

                            padding: 10px 12px;
                            cursor: pointer;

                            .AccountModuleIcon {
                                width: 10px;
                                height: 10px;

                                display: inline-flex;
                                align-items: center;
                                justify-content: center;

                                font-size: 10px;
                                color: var(--text-color);
                            }
                            .AccountModuleHeader {
                                color: var(--text-color);
                                font-weight: 600;
                            }
                        }
                    }
                }
            }
            .MainPageBodyContent {
                display: flex;
                flex: 1;

                height: 100%;
                min-height: 0;
                min-width: 0;

                pointer-events: auto;
            }
        }
        .ModulesContentCloseButton {
            display: none;
        }
    }
}

@media (max-width: 1080px) and (min-width: 601px) {
    .MainPageContentArea {
        --mobile-urlbar-offset: max(0px, calc(100lvh - 100dvh));
        height: 100%;
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;

        width: 100%;

        display: flex;
        flex-direction: column;

        .MainPageHeader {
            display: flex;
            flex-direction: row;

            height: 50px;
            line-height: 50px;

            border-bottom: 1px solid var(--border-color);
            background-color: var(--bg-color);

            .MainPageHeaderLeftContent {
                display: flex;
                flex-direction: row;
                align-items: center;

                gap: 10px;

                .MainPageBurgerToggle {
                    background: none;
                    border: none;

                    font-size: 24px;
                    cursor: pointer;

                    color: var(--text-color);
                    background-color: #ffffff00;

                    padding: 5px 10px;
                }
                .MainPageTitle {
                    font-weight: bold;
                    font-size: 18px;

                    text-decoration: none;
                    color: var(--text-color);
                }
                .ThemeToggleButton {
                    background: none;
                    color: var(--text-color);

                    border: none;
                    cursor: pointer;

                    height: 30px;
                    width: 30px;

                    border-radius: 50%;
                }
            }
        }
        .MainPageBody {
            display: flex;
            flex-direction: row;
            flex: 1;

            height: 100%;
            min-height: 0;

            background-color: var(--bg-color);

            .MainPageModulesBar {
                display: flex;
                border-right: 1px solid var(--border-color);

                width: 250px;
                height: 100%;

                overflow: hidden;
                position: relative;
                z-index: 40;
                /* gradient overlay */
                &::before {
                    content: '';
                    position: absolute;

                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;

                    background: linear-gradient(to top, rgba(160, 160, 160, 0.05) 0%, rgba(160, 160, 160, 0.03) 40%, rgba(160, 160, 160, 0.01) 65%, rgba(160, 160, 160, 0) 100%);
                    pointer-events: none;

                    z-index: 0;
                }
                .ModulesContentArea {
                    width: 100%;
                    height: 100%;
                    min-height: 0;

                    display: flex;
                    flex-direction: column;

                    z-index: 40;
                    .ModulesContentTitleBar {
                        width: 100%;
                        height: 50px;

                        display: flex;
                        flex-direction: row;
                        justify-content: space-between;
                        align-items: center;

                        .ModulesContentTitle {
                            color: var(--text-color);
                            margin-left: 10px;
                        }
                        .ModulesContentCloseButton {
                            background-color: var(--button-bg-color);
                            color: var(--text-color);

                            border: none;

                            width: 40px;
                            height: 40px;

                            border-radius: 10px;
                            margin-right: 10px;
                        }
                    }
                    .ModulesContentBody {
                        flex: 1;
                        min-height: 0;
                        overflow-y: auto;
                        padding-bottom: 8px;

                        .OrganizationModuleCategoryContentArea {
                            .OrganizationModuleCategoryToggle {
                            }
                            .OrganizationModulesContent {
                                .CalendarModuleHeaderArea {
                                    .CalendarModuleContent {
                                        display: none;
                                        flex-direction: column;
                                    }
                                    .CalendarModuleToggle {
                                        cursor: pointer;
                                        display: flex;
                                        flex-direction: row;
                                    }
                                    .CalendarIcon {
                                        width: 30px;
                                        height: 30px;
                                    }
                                    .CalendarModuleHeader {
                                        color: var(--unselected-text-color);
                                    }
                                    .CalendarModuleContent.Open {
                                        display: flex;
                                    }
                                }
                                .DashboardModuleHeaderArea {
                                    .DashboardModuleContent {
                                        display: none;
                                        flex-direction: column;
                                    }
                                    .DashboardModuleToggle {
                                        cursor: pointer;
                                        display: flex;
                                        flex-direction: row;
                                    }
                                    .DashboardIcon {
                                        width: 30px;
                                        height: 30px;
                                    }
                                    .DashboardModuleHeader {
                                        color: var(--unselected-text-color);
                                    }
                                    .DashboardModuleContent.Open {
                                        display: flex;
                                    }
                                }
                                .ReminderModuleHeaderArea {
                                    .ReminderModuleContent {
                                        display: none;
                                        flex-direction: column;
                                    }
                                    .ReminderModuleToggle {
                                        cursor: pointer;
                                        display: flex;
                                        flex-direction: row;
                                    }
                                    .ReminderIcon {
                                        width: 30px;
                                        height: 30px;
                                    }
                                    .ReminderModuleHeader {
                                        color: var(--unselected-text-color);
                                    }
                                    .ReminderModuleContent.Open {
                                        display: flex;
                                    }
                                }
                                .TasksModulesCategoryContentArea {
                                    .ListingViewModuleHeaderArea {
                                        .ListingViewModuleContent {
                                            display: none;
                                            flex-direction: column;
                                        }
                                        .ListingViewModuleToggle {
                                            cursor: pointer;
                                            display: flex;
                                            flex-direction: row;
                                        }
                                        .ListingViewModuleIcon {
                                            width: 30px;
                                            height: 30px;
                                        }
                                        .ListingViewModuleHeader {
                                            color: var(--unselected-text-color);
                                        }
                                        .ListingViewModuleContent.Open {
                                            display: flex;
                                        }
                                        .OrganisationListingHeader {
                                            padding: 16px 20px;

                                            display: grid;
                                            gap: 24px;

                                            grid-template-columns: 1fr auto auto;

                                            background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
                                            color: #e5e7eb;

                                            border-radius: 16px;
                                            backdrop-filter: blur(12px);
                                            font-family: Inter, sans-serif;
                                        }
                                    }
                                    .SheetViewModuleHeaderArea {
                                        .SheetViewModuleContent {
                                            display: none;
                                            flex-direction: column;
                                        }
                                        .SheetViewModuleToggle {
                                            cursor: pointer;
                                            display: flex;
                                            flex-direction: row;
                                        }
                                        .SheetViewModuleIcon {
                                            width: 30px;
                                            height: 30px;
                                        }
                                        .SheetViewModuleHeader {
                                            color: var(--unselected-text-color);
                                        }
                                        .SheetViewModuleContent.Open {
                                            display: flex;
                                        }
                                    }
                                    .WordViewModuleHeaderArea {
                                        .WordViewModuleContent {
                                            display: none;
                                            flex-direction: column;
                                        }
                                        .WordViewModuleToggle {
                                            cursor: pointer;
                                            display: flex;
                                            flex-direction: row;
                                        }
                                        .WordViewModuleIcon {
                                            width: 30px;
                                            height: 30px;
                                        }
                                        .WordViewModuleHeader {
                                            color: var(--unselected-text-color);
                                        }
                                        .WordViewModuleContent.Open {
                                            display: flex;
                                        }
                                    }
                                }
                            }
                        }
                    }
                    .ModulesAccountArea {
                        margin-top: auto;
                        margin-bottom: 0;

                        padding: 12px 10px 16px;
                        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--mobile-urlbar-offset, 0px) + var(--mobile-bottom-offset, 0px));

                        border-top: 1px solid var(--border-color);
                        background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));

                        .AccountModuleToggle {
                            display: flex;
                            align-items: center;

                            text-align: left;

                            gap: 10px;
                            width: 100%;

                            background-color: var(--button-bg-color);
                            color: var(--text-color);

                            border: 1px solid var(--border-color);
                            border-radius: 12px;

                            padding: 10px 12px;
                            cursor: pointer;

                            .AccountModuleIcon {
                                width: 10px;
                                height: 10px;

                                display: inline-flex;
                                align-items: center;
                                justify-content: center;

                                font-size: 10px;
                                color: var(--text-color);
                            }
                            .AccountModuleHeader {
                                color: var(--text-color);
                                font-weight: 600;
                            }
                        }
                    }
                }
            }
            .MainPageBodyContent {
                display: flex;
                flex: 1;

                height: 100%;
                min-height: 0;
                min-width: 0;

                pointer-events: auto;
            }

            position: relative;
            .MainPageModulesBar {
                visibility: hidden;
                opacity: 0;
                position: absolute;
                left: 0;
                top: 0;
                height: 100%;
                transform: translateX(-100%);
                transition: all 0.5s ease;
                &.IsClosing {
                    opacity: 0;
                    transform: translateX(-100%);
                }
                &.IsVisible {
                    visibility: visible;
                    width: 250px;
                    display: flex;
                    opacity: 1;
                    transform: translateX(0);
                    z-index: 40;
                    background-color: var(--bg-color);
                    border-right: 1px solid var(--border-color);
                }
            }
            .MainPageBodyContent {
                width: 100%;
                transition: all 0.5s ease;
                background-color: var(--bg-color);
                &.IsRetracted {
                    position: absolute;
                    width: 100%;
                    height: 100%;
                    right: 0;
                    z-index: 0;
                    background-color: var(--bg-color);
                }
            }
        }
    }
}

@media (max-width: 600px) {
    .MainPageContentArea {
        --mobile-urlbar-offset: max(0px, calc(100lvh - 100dvh));
        height: 100%;
        min-height: 100vh;
        min-height: 100svh;
        min-height: 100dvh;

        width: 100%;

        display: flex;
        flex-direction: column;

        .MainPageHeader {
            display: flex;
            flex-direction: row;

            height: 50px;
            line-height: 50px;

            border-bottom: 1px solid var(--border-color);
            background-color: var(--bg-color);

            .MainPageHeaderLeftContent {
                display: flex;
                flex-direction: row;
                align-items: center;

                gap: 10px;

                .MainPageBurgerToggle {
                    background: none;
                    border: none;

                    font-size: 24px;
                    cursor: pointer;

                    color: var(--text-color);
                    background-color: #ffffff00;

                    padding: 5px 10px;
                }
                .MainPageTitle {
                    font-weight: bold;
                    font-size: 18px;

                    text-decoration: none;
                    color: var(--text-color);
                }
                .ThemeToggleButton {
                    background: none;
                    color: var(--text-color);

                    border: none;
                    cursor: pointer;

                    height: 30px;
                    width: 30px;

                    border-radius: 50%;
                }
            }
        }
        .MainPageBody {
            display: flex;
            flex-direction: row;
            flex: 1;

            height: calc(100dvh - 50px);
            min-height: calc(100dvh - 50px);

            background-color: var(--bg-color);

            .MainPageModulesBar {
                display: flex;
                border-right: 1px solid var(--border-color);

                width: 270px;
                height: 100%;

                overflow: hidden;
                position: relative;
                z-index: 40;

                /* gradient overlay */
                &::before {
                    content: '';
                    position: absolute;

                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;

                    background: linear-gradient(to top, rgba(160, 160, 160, 0.05) 0%, rgba(160, 160, 160, 0.03) 40%, rgba(160, 160, 160, 0.01) 65%, rgba(160, 160, 160, 0) 100%);
                    pointer-events: none;

                    z-index: 0;
                }

                .ModulesContentArea {
                    width: 100%;
                    height: 100%;
                    min-height: 0;

                    display: flex;
                    flex-direction: column;

                    z-index: 40;
                    .ModulesContentTitleBar {
                        width: 100%;
                        height: 50px;

                        display: flex;
                        flex-direction: row;
                        justify-content: space-between;
                        align-items: center;

                        .ModulesContentTitle {
                            color: var(--text-color);
                            margin-left: 10px;
                        }
                        .ModulesContentCloseButton {
                            background-color: var(--button-bg-color);
                            color: var(--text-color);

                            border: none;

                            width: 40px;
                            height: 40px;

                            border-radius: 10px;
                            margin-right: 10px;
                        }
                    }
                    .ModulesContentBody {
                        flex: 1;
                        min-height: 0;
                        overflow-y: auto;
                        padding-bottom: 8px;

                        .OrganizationModuleCategoryContentArea {
                            .OrganizationModuleCategoryToggle {
                            }
                            .OrganizationModulesContent {
                                .CalendarModuleHeaderArea {
                                    .CalendarModuleContent {
                                        display: none;
                                        flex-direction: column;
                                    }
                                    .CalendarModuleToggle {
                                        cursor: pointer;
                                        display: flex;
                                        flex-direction: row;
                                    }
                                    .CalendarIcon {
                                        width: 30px;
                                        height: 30px;
                                    }
                                    .CalendarModuleHeader {
                                        color: var(--unselected-text-color);
                                    }
                                    .CalendarModuleContent.Open {
                                        display: flex;
                                    }
                                }
                                .DashboardModuleHeaderArea {
                                    .DashboardModuleContent {
                                        display: none;
                                        flex-direction: column;
                                    }
                                    .DashboardModuleToggle {
                                        cursor: pointer;
                                        display: flex;
                                        flex-direction: row;
                                    }
                                    .DashboardIcon {
                                        width: 30px;
                                        height: 30px;
                                    }
                                    .DashboardModuleHeader {
                                        color: var(--unselected-text-color);
                                    }
                                    .DashboardModuleContent.Open {
                                        display: flex;
                                    }
                                }
                                .ReminderModuleHeaderArea {
                                    .ReminderModuleContent {
                                        display: none;
                                        flex-direction: column;
                                    }
                                    .ReminderModuleToggle {
                                        cursor: pointer;
                                        display: flex;
                                        flex-direction: row;
                                    }
                                    .ReminderIcon {
                                        width: 30px;
                                        height: 30px;
                                    }
                                    .ReminderModuleHeader {
                                        color: var(--unselected-text-color);
                                    }
                                    .ReminderModuleContent.Open {
                                        display: flex;
                                    }
                                }
                                .TasksModulesCategoryContentArea {
                                    .ListingViewModuleHeaderArea {
                                        .ListingViewModuleContent {
                                            display: none;
                                            flex-direction: column;
                                        }
                                        .ListingViewModuleToggle {
                                            cursor: pointer;
                                            display: flex;
                                            flex-direction: row;
                                        }
                                        .ListingViewModuleIcon {
                                            width: 30px;
                                            height: 30px;
                                        }
                                        .ListingViewModuleHeader {
                                            color: var(--unselected-text-color);
                                        }
                                        .ListingViewModuleContent.Open {
                                            display: flex;
                                        }
                                        .OrganisationListingHeader {
                                            padding: 16px 20px;

                                            display: grid;
                                            gap: 24px;

                                            grid-template-columns: 1fr auto auto;

                                            background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
                                            color: #e5e7eb;

                                            border-radius: 16px;
                                            backdrop-filter: blur(12px);
                                            font-family: Inter, sans-serif;
                                        }
                                    }
                                    .SheetViewModuleHeaderArea {
                                        .SheetViewModuleContent {
                                            display: none;
                                            flex-direction: column;
                                        }
                                        .SheetViewModuleToggle {
                                            cursor: pointer;
                                            display: flex;
                                            flex-direction: row;
                                        }
                                        .SheetViewModuleIcon {
                                            width: 30px;
                                            height: 30px;
                                        }
                                        .SheetViewModuleHeader {
                                            color: var(--unselected-text-color);
                                        }
                                        .SheetViewModuleContent.Open {
                                            display: flex;
                                        }
                                    }
                                    .WordViewModuleHeaderArea {
                                        .WordViewModuleContent {
                                            display: none;
                                            flex-direction: column;
                                        }
                                        .WordViewModuleToggle {
                                            cursor: pointer;
                                            display: flex;
                                            flex-direction: row;
                                        }
                                        .WordViewModuleIcon {
                                            width: 30px;
                                            height: 30px;
                                        }
                                        .WordViewModuleHeader {
                                            color: var(--unselected-text-color);
                                        }
                                        .WordViewModuleContent.Open {
                                            display: flex;
                                        }
                                    }
                                }
                            }
                        }
                    }
                    .ModulesAccountArea {
                        margin-top: auto;
                        margin-bottom: 0;

                        padding: 12px 10px 16px;
                        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--mobile-urlbar-offset, 0px) + var(--mobile-bottom-offset, 0px));

                        border-top: 1px solid var(--border-color);
                        background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));

                        .AccountModuleToggle {
                            display: flex;
                            align-items: center;

                            text-align: left;

                            gap: 10px;
                            width: 100%;

                            background-color: var(--button-bg-color);
                            color: var(--text-color);

                            border: 1px solid var(--border-color);
                            border-radius: 12px;

                            padding: 10px 12px;
                            cursor: pointer;

                            .AccountModuleIcon {
                                width: 10px;
                                height: 10px;

                                display: inline-flex;
                                align-items: center;
                                justify-content: center;

                                font-size: 10px;
                                color: var(--text-color);
                            }
                            .AccountModuleHeader {
                                color: var(--text-color);
                                font-weight: 600;
                            }
                        }
                    }
                }

                &,
                &.IsVisible {
                    height: 100%;
                }

                & .ModulesContentArea {
                    height: 100%;
                    min-height: 0;
                }

                & .ModulesContentBody {
                    padding-bottom: calc(8px + var(--mobile-urlbar-offset, 0px) + var(--mobile-bottom-offset, 0px));
                }
            }
            .MainPageBodyContent {
                display: flex;
                flex: 1;

                height: 100%;
                min-height: 0;
                min-width: 0;

                pointer-events: auto;
                width: 100%;

                transition: all 0.5s ease;
                background-color: var(--bg-color);
                &.IsRetracted {
                    position: absolute;
                    width: 100%;
                    height: 100%;
                    right: 0;
                    z-index: 0;
                    background-color: var(--bg-color);
                }
            }
            position: relative;
            .MainPageModulesBar {
                visibility: hidden;
                opacity: 0;
                position: absolute;
                left: 0;
                top: 0;
                height: 100%;
                transform: translateX(-100%);
                transition: all 0.5s ease;
                &.IsClosing {
                    opacity: 0;
                    transform: translateX(-100%);
                }
                &.IsVisible {
                    visibility: visible;
                    width: 270px;
                    display: flex;
                    opacity: 1;
                    transform: translateX(0);
                    z-index: 40;
                    background-color: var(--bg-color);
                    border-right: 1px solid var(--border-color);
                }
            }
            .MainPageModulesBar .ModulesContentArea {
                .OrganizationModulesHeader,
                .OrganizationModulesCategoryToggle,
                .TasksModulesCategoryToggle,
                .HealsAndFoodModulesCategoryToggle,
                .HealsModulesCategoryToggle,
                .CalendarModuleToggle,
                .DashboardModuleToggle,
                .ReminderModuleToggle,
                .ListingViewModuleToggle,
                .SheetViewModuleToggle,
                .WordViewModuleToggle,
                .TrainingModuleToggle,
                .FoodModuleToggle,
                .EnergyBalanceModuleToggle,
                .SupportModulesCategoryToggle,
                .SupportModuleToggle {
                    align-items: center;
                    .OrganizationModulesHeader {
                        display: flex;
                        flex-direction: row;
                    }
                }
                .OrganizationModulesHeader > span,
                .OrganizationModulesCategoryToggle > span,
                .TasksModulesCategoryToggle > span,
                .HealsAndFoodModulesCategoryToggle > span,
                .HealsModulesCategoryToggle > span,
                .CalendarModuleToggle > span,
                .DashboardModuleToggle > span,
                .ReminderModuleToggle > span,
                .ListingViewModuleToggle > span,
                .SheetViewModuleToggle > span,
                .WordViewModuleToggle > span,
                .TrainingModuleToggle > span,
                .FoodModuleToggle > span,
                .EnergyBalanceModuleToggle > span,
                .SupportModulesCategoryToggle > span,
                .SupportModuleToggle > span {
                    display: inline-flex;
                    align-items: center;

                    height: 50px;
                    width: 100%;

                    font-size: 24px;
                    cursor: pointer;
                    pointer-events: auto;
                }

                /* Mobile fix: avoid huge gap between "." and label in Support rows */
                .SupportModuleToggle > span {
                    width: auto;
                }

                .SupportModuleToggle > .SupportModuleBullet {
                    flex: 0 0 auto;
                }

                .SupportModuleToggle > .SupportModuleLabel {
                    flex: 1 1 auto;
                }
            }
        }
    }
}

/* Global content scroll: allow vertical scrolling in all modules when content exceeds viewport */
.MainPageBodyContent {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.MainPageHomeIntro {
    --home-surface: rgba(12, 18, 28, 0.78);
    --home-surface-strong: rgba(10, 14, 22, 0.92);
    --home-muted: rgba(170, 174, 187, 0.82);
    --home-border: rgba(148, 163, 184, 0.18);
    --home-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 32px 0 56px;
    display: grid;
    gap: 24px;
    color: var(--text-color);
}

html.light-theme .MainPageHomeIntro {
    --home-surface: rgba(255, 255, 255, 0.82);
    --home-surface-strong: rgba(255, 255, 255, 0.92);
    --home-muted: rgba(48, 69, 96, 0.74);
    --home-border: rgba(48, 69, 96, 0.12);
    --home-shadow: 0 28px 56px rgba(48, 69, 96, 0.12);
}

.MainPageHomeHero,
.MainPageHomeCard,
.MainPageHomeMiniCard {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-radius: 28px;
    background: var(--home-surface);
    box-shadow: var(--home-shadow);
    backdrop-filter: blur(18px);
}

.MainPageHomeHero {
    padding: 34px;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 28%),
        radial-gradient(circle at left center, rgba(34, 197, 94, 0.15), transparent 34%),
        linear-gradient(135deg, rgba(13, 148, 136, 0.16), rgba(59, 130, 246, 0.14) 52%, rgba(244, 114, 182, 0.14)),
        var(--home-surface-strong);
}

.MainPageHomeHero::before,
.MainPageHomeCard::before,
.MainPageHomeMiniCard::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.MainPageHomeBadge,
.MainPageHomeEyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.74rem;
    font-weight: 700;
}

html.light-theme .MainPageHomeBadge,
html.light-theme .MainPageHomeEyebrow {
    border-color: rgba(48, 69, 96, 0.12);
    background: rgba(48, 69, 96, 0.06);
}

.MainPageHomeTitle {
    margin-top: 18px;
    max-width: 13ch;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.MainPageHomeLead {
    margin-top: 18px;
    max-width: 760px;
    color: var(--home-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.MainPageHomeHighlights {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.MainPageHomeHighlight {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

html.light-theme .MainPageHomeHighlight {
    border-color: rgba(48, 69, 96, 0.1);
    background: rgba(48, 69, 96, 0.05);
}

.MainPageHomeHighlight strong {
    font-size: 1rem;
}

.MainPageHomeHighlight span,
.MainPageHomeNote,
.MainPageHomeMiniCard p {
    color: var(--home-muted);
    line-height: 1.6;
}

.MainPageHomeGrid,
.MainPageHomeFooterGrid {
    display: grid;
    gap: 20px;
}

.MainPageHomeGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.MainPageHomeFooterGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.MainPageHomeCard {
    display: grid;
    gap: 16px;
    padding: 28px;
}

.MainPageHomeCard h2,
.MainPageHomeMiniCard h3 {
    font-size: 1.45rem;
    line-height: 1.15;
}

.MainPageHomeCard p {
    line-height: 1.7;
}

.MainPageHomeCard--organization {
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.14), transparent 30%),
        var(--home-surface);
}

.MainPageHomeCard--tasks {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 32%),
        var(--home-surface);
}

.MainPageHomeCard--health {
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.15), transparent 30%),
        var(--home-surface);
}

.MainPageHomeList {
    list-style: none;
    display: grid;
    gap: 12px;
}

.MainPageHomeList li {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    line-height: 1.6;
}

html.light-theme .MainPageHomeList li {
    border-color: rgba(48, 69, 96, 0.08);
    background: rgba(48, 69, 96, 0.04);
}

.MainPageHomeMiniCard {
    padding: 22px 24px;
    display: grid;
    gap: 10px;
}

@media (max-width: 1080px) {
    .MainPageHomeIntro {
        width: min(100%, calc(100% - 28px));
        padding: 22px 0 32px;
    }

    .MainPageHomeHero {
        padding: 26px;
    }

    .MainPageHomeHighlights,
    .MainPageHomeGrid,
    .MainPageHomeFooterGrid {
        grid-template-columns: 1fr;
    }

    .MainPageHomeTitle {
        max-width: none;
    }
}

@media (max-width: 720px) {
    .MainPageHomeHero,
    .MainPageHomeCard,
    .MainPageHomeMiniCard {
        border-radius: 22px;
    }

    .MainPageHomeHero,
    .MainPageHomeCard {
        padding: 22px;
    }

    .MainPageHomeMiniCard {
        padding: 18px 20px;
    }

    .MainPageHomeLead {
        font-size: 0.98rem;
    }
}
