

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}


.sidebar-card {
    background: #fff;
    border: 1px solid #e2e8f2;
    border-radius: 18px;
    padding: 22px 20px;
    box-shadow: 0 10px 28px rgba(16, 20, 59, .055);
}

.sidebar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.sidebar-heading h2 {
    position: relative;
    margin: 0;
    padding-left: 14px;
    color: #10143b;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 900;
}

.sidebar-heading h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 4px;
    height: calc(100% - 4px);
    border-radius: 5px;
    background: #ff3439;
}

.sidebar-heading a {
    flex-shrink: 0;
    color: #0866df;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.sidebar-heading a:hover {
    color: #ff3439;
}


.sidebar-app-list {
    display: flex;
    flex-direction: column;
}


.sidebar-app {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 76px;
    padding: 10px 0;
    border-bottom: 1px solid #e6ebf2;
}

.sidebar-app:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.sidebar-app:first-child {
    padding-top: 4px;
}


.sidebar-app-info {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.sidebar-app-info > div:last-child {
    min-width: 0;
}

.sidebar-app-info strong {
    display: block;
    color: #10143b;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-app-info span {
    display: block;
    margin-top: 3px;
    color: #71809a;
    font-size: 11px;
    line-height: 1.2;
}


.sidebar-app-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    background: #f1f5fa;
    box-shadow: 0 6px 15px rgba(16, 20, 59, .08);
}

.sidebar-app-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}


.sidebar-placeholder {
    color: #075ed7;
    background: #f2f6fb;
    font-size: 22px;
    font-weight: 900;
}


.sidebar-download {
    flex: 0 0 auto;
    width: 100px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 9px;
    background: #ff3439;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 7px 16px rgba(255, 52, 57, .18);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.sidebar-download:hover {
    background: #e9282e;
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(255, 52, 57, .24);
}



.sidebar-empty {
    padding: 8px 0 2px;
    color: #71809a;
    font-size: 14px;
    line-height: 1.5;
}


@media (max-width: 900px) {

    .sidebar {
        gap: 16px;
    }

    .sidebar-card {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .sidebar-heading {
        margin-bottom: 14px;
    }

    .sidebar-heading h2 {
        font-size: 20px;
    }

    .sidebar-app {
        min-height: 70px;
    }

    .sidebar-app-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 13px;
    }

    .sidebar-download {
        width: 92px;
        min-height: 40px;
        font-size: 10px;
    }
}


@media (max-width: 480px) {

    .sidebar-card {
        padding: 17px 14px;
        border-radius: 15px;
    }

    .sidebar-heading h2 {
        font-size: 19px;
    }

    .sidebar-heading a {
        font-size: 12px;
    }

    .sidebar-app {
        gap: 8px;
    }

    .sidebar-app-info {
        gap: 9px;
    }

    .sidebar-app-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 12px;
    }

    .sidebar-app-info strong {
        font-size: 13px;
    }

    .sidebar-app-info span {
        font-size: 10px;
    }

    .sidebar-download {
        width: 86px;
        min-height: 38px;
        border-radius: 8px;
        font-size: 10px;
    }
}