.agz-downloads-list {
    display: grid;
    gap: 12px;
}

.agz-download-card {
    margin: 12px 0;
}

.agz-download-card > a {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: box-shadow .18s ease, transform .18s ease;
}

.agz-download-card > a:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    transform: translateY(-1px);
}

.agz-download-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    vertical-align: middle;
}

.agz-download-inline-title {
    line-height: 1.25;
}

.agz-download-count-badge {
    display: inline-flex;
    align-items: center;
    color: #6b7280;
    font-size: 0.95em;
    white-space: nowrap;
}

.agz-download-count-badge-bold {
    font-weight: 700;
}


.agz-file-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    vertical-align: middle;
}

.agz-download-card .agz-file-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.agz-file-pdf {
    background-image: url('icons/pdf.png');
}

.agz-file-doc {
    background-image: url('icons/word.png');
}

.agz-file-xls {
    background-image: url('icons/excel.svg');
}

.agz-file-ppt {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256' viewBox='0 0 256 256'%3E%3Cpath d='M67 20h101l54 54v150c0 6.6-5.4 12-12 12H67c-6.6 0-12-5.4-12-12V32c0-6.6 5.4-12 12-12z' fill='%23F2F2F2' stroke='%23B8B8B8' stroke-width='10'/%3E%3Cpath d='M168 20v44c0 8.8 7.2 16 16 16h38' fill='%23fff' stroke='%23B8B8B8' stroke-width='10'/%3E%3Crect x='20' y='72' width='108' height='112' rx='14' fill='%23D24726'/%3E%3Cpath d='M56 104h27c23 0 37 11 37 30 0 20-15 31-38 31H74v26H56v-87zm18 15v31h10c13 0 19-5 19-15 0-11-7-16-19-16H74z' fill='%23fff'/%3E%3C/svg%3E");
}

.agz-file-img {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256' viewBox='0 0 256 256'%3E%3Crect x='24' y='28' width='208' height='200' rx='18' fill='%23EEE9FF'/%3E%3Ccircle cx='88' cy='92' r='20' fill='%238B5CF6'/%3E%3Cpath d='M46 186l50-52 34 34 22-24 58 42H46z' fill='%237C3AED'/%3E%3C/svg%3E");
}

.agz-file-zip,
.agz-file-file {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256' viewBox='0 0 256 256'%3E%3Cpath d='M67 20h101l54 54v150c0 6.6-5.4 12-12 12H67c-6.6 0-12-5.4-12-12V32c0-6.6 5.4-12 12-12z' fill='%23F2F2F2' stroke='%23B8B8B8' stroke-width='10'/%3E%3Cpath d='M168 20v44c0 8.8 7.2 16 16 16h38' fill='%23fff' stroke='%23B8B8B8' stroke-width='10'/%3E%3Crect x='52' y='76' width='152' height='36' rx='10' fill='%23F4B400'/%3E%3Cpath d='M124 52h12v18h-12zm0 22h12v18h-12zm0 22h12v18h-12zm0 22h12v18h-12z' fill='%2392400E'/%3E%3C/svg%3E");
}

.agz-download-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.agz-download-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.25;
}

.agz-download-version,
.agz-download-count {
    font-size: 13px;
    color: #6b7280;
}

.agz-download-description {
    font-size: 14px;
    color: #374151;
}

.agz-download-button {
    margin-top: 6px;
    display: inline-flex;
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.agz-download-version-inline {
    color: #6b7280;
    font-size: 0.95em;
    white-space: nowrap;
}
