    /* =====================================
   FRONT-END ACCOUNT SWITCHER moved to central 1/20/25
   ===================================== */
    #menu-container {
        position: fixed;
        top: 70px;
        right: 0.75rem;
        border-radius: 0.75rem;
        width: 24rem;
        z-index: 1050;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    #menu-container.show {
        opacity: 1;
        transform: translateY(0);
    }

    #menu-header {
        border-bottom: 1px solid #dee2e6;
        padding: 0.75rem 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #menu-header button {
        background: none;
        border: none;
        font-size: 0.9rem;
        color: #6c757d;
    }

    #menu-header button:hover {
        color: #dc3545;
    }

    .account-section {
        padding: 1rem 1.25rem;
    }

    .account-section img {
        width: 75px;
        height: 75px;
        object-fit: cover;
        border-radius: 50%;
        margin-bottom: 0.5rem;
    }

    .action-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        color: #212529;
        text-decoration: none;
        border-radius: 0.375rem;
        transition: background 0.15s ease;
    }

    .action-link:hover {
        background: #f8f9fa;
    }

    /* ===============================
   View switching animation
   =============================== */
    #managedView,
    #defaultView {
        position: absolute;
        top: 0;
        width: 100%;
        background: #fff;
        transition: right 0.3s ease-in-out;
    }

    #defaultView {
        right: 0;
    }

    #managedView {
        right: -100%;
        display: flex;
        flex-direction: column;
    }

    #menu-container.show-managed #managedView {
        right: 0;
    }

    #menu-container.show-managed #defaultView {
        right: 100%;
    }

    /* ===============================
   Scrollable section
   =============================== */
    .account-switcher-scroll {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 70vh;
        padding: 0 1rem 1rem;
        scrollbar-width: thin;
        scrollbar-color: #b3b3b3 #f1f1f1;
    }

    .account-switcher-scroll::-webkit-scrollbar {
        width: 10px;
    }

    .account-switcher-scroll::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 6px;
    }

    .account-switcher-scroll::-webkit-scrollbar-thumb {
        background-color: #a0a0a0;
        border-radius: 6px;
    }

    .account-switcher-scroll::-webkit-scrollbar-thumb:hover {
        background-color: #7a7a7a;
    }

    /* subtle bottom fade hint */
    .account-switcher-scroll::after {
        content: "";
        position: sticky;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 25px;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 80%);
        pointer-events: none;
    }

    /* sticky header inside managed view */
    #managedView h6 {
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 10;
        padding-top: 0.75rem;
    }
