.library-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
    margin: 20px 0;
}

.library-document {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border: 1px solid #dce5ef;
    border-radius: 10px;
    background: #fff;
}

.library-file-icon {
    flex: 0 0 48px;
    height: 60px;
    border-radius: 6px;
    background: #fee2e2;
    color: #991b1b;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
}

.library-document-info {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.library-document-info h3 {
    color: #123574;
    font-size: 16px;
    margin: 8px 0;
}

.library-document-info small {
    color: #64748b;
    font-size: 12px;
}

.library-description {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.6;
}

.library-download {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 6px;
    background: #123574;
    color: white !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.library-archive {
    margin-top: 10px;
    width: auto;
    background: #fff1f1;
    color: #991b1b;
    font-size: 12px;
}

@media (max-width: 1000px) {
    .library-grid {
        grid-template-columns: 1fr;
    }
}
