.mxctree-title {
    position: sticky;
    top: 0;
    z-index: 2;
    display: block;
    margin: 0 7px 10px;
    padding: 4px 0 6px;
    color: #075dff;
    background: #fff;
    font-size: 12px;
    font-weight: 750;
}

.mxctree {
    display: grid;
    gap: 5px;
    max-height: calc(100vh - 300px);
    margin-bottom: 14px;
    padding-right: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #b9c8e4 transparent;
}

.mxctree::-webkit-scrollbar {
    width: 7px;
}

.mxctree::-webkit-scrollbar-track {
    background: transparent;
}

.mxctree::-webkit-scrollbar-thumb {
    background: #c8d5ec;
    border-radius: 999px;
}

.mxctree::-webkit-scrollbar-thumb:hover {
    background: #9fb2d8;
}

.mxctree details {
    border: 1px solid transparent;
    border-radius: 10px;
}

.mxctree summary {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 0 9px;
    border-radius: 8px;
    color: #1d2f60;
    cursor: pointer;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    list-style: none;
}

.mxctree summary::-webkit-details-marker {
    display: none;
}

.mxctree details[open] summary,
.mxctree summary:hover {
    color: #fff;
    background: #075dff;
    box-shadow: 0 10px 22px rgba(7, 93, 255, .18);
}

.mxctree summary i {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 1px solid currentColor;
    border-radius: 7px;
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
}

.mxctree summary span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mxctree summary b {
    font-weight: 700;
}

.mxctree details[open] summary b {
    transform: rotate(45deg);
}

.mxctree section {
    margin: 6px 0 8px 34px;
    padding-left: 10px;
    border-left: 1px solid #e5edf8;
}

.mxctree section strong {
    display: block;
    margin: 8px 0 5px;
    color: #07153d;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.mxctree section a {
    display: block;
    padding: 4px 0;
    color: #475675;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
}

.mxctree section a:hover {
    color: #075dff;
}

.mxctree + nav,
.mxctree + .mxsearch-shortcuts,
.mxctree + .mxcrm-shortcuts,
.mxctree + .mxfin-shortcuts,
.mxctree + .mxsaas-shortcuts {
    margin-top: 10px;
}

.mxsaas-card,
.mxsearch-card,
.mxcrm-card,
.mxfin-card,
.mxdoc-card,
.mxfr-card {
    min-width: 0;
}

.mxsaas-card :where(p, li, small, span),
.mxsearch-card :where(p, li, small, span),
.mxcrm-card :where(p, li, small, span),
.mxfin-card :where(p, li, small, span),
.mxdoc-card :where(p, li, small, span),
.mxfr-card :where(p, li, small, span) {
    line-height: 1.42;
}

@media (max-width: 1120px) {
    .mxctree {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 360px;
    }

    .mxctree-title {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .mxctree {
        grid-template-columns: 1fr;
        max-height: 320px;
    }

    .mxctree section {
        margin-left: 24px;
    }
}
