.Hylia-m-panel {
    display: flex;
    flex-direction: column;
    width: fit-content;
    border-radius: @radius;
    border: 1px solid @apprentice;

    @headerHeight: 6rem;

    &--collapsible > &__header-wrapper {
        cursor: pointer;
    }

    &__header-wrapper {
        display: flex;
        align-items: center;
        padding: 0 @gutter;
        overflow: hidden;
        min-height: @headerHeight;

        &__header {
            display: flex;
            align-items: center;
            width: 100%;
            overflow: hidden;
            height: @headerHeight;

            h1, h2, h3, h4, h5, h6 {
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                margin-right: auto;
                font-family: @regular_regular;
            }

            &__buttons {
                display: flex;
                align-items: center;
                margin-left: 60px;

                & > * {
                    cursor: default;
                }
            }
        }

        &__collapse-icon {
            min-width: 0;
            display: flex;
            align-items: center;
            height: @headerHeight;
            margin-left: auto;
        }
    }

    &__content-wrapper {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        transition: all .5s;
        width: 100%;
        // height: fit-content;
    }

    &__content {
        box-sizing: border-box;
        padding: @gutter;
        overflow: auto;
        height: fit-content;
        width: 100%;
    }
    
    &:hover {
        box-shadow: 0 0.3rem 0.9rem 0 rgba(0,0,0,0.1);
    }

    &:focus, &:active {
        box-shadow: 0 0.3rem 0.9rem 0 rgba(0,0,0,0.2);
    }
}