.downloads-page {
    --download-accent: #d8b000;
    display: grid;
    gap: 20px;
    max-width: 1500px;
    margin: 0 auto;
    color: #eef4f8;
}

.downloads-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.downloads-header h1 {
    margin: 5px 0 8px;
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    line-height: 1.05;
}

.downloads-header p,
.downloads-muted {
    margin: 0;
    color: rgba(238, 244, 248, .62);
}

.downloads-kicker,
.downloads-badge {
    color: var(--download-accent) !important;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.downloads-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(216, 176, 0, .35);
    border-radius: 999px;
    background: rgba(216, 176, 0, .06);
}

.downloads-security-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(216, 176, 0, .22);
    border-radius: 12px;
    background: rgba(216, 176, 0, .045);
}

.downloads-security-note strong {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #07111d;
    background: var(--download-accent);
    font-size: .7rem;
    letter-spacing: .06em;
}

.downloads-security-note h2 {
    margin: 0 0 4px;
    color: #eef4f8;
    font-size: .9rem;
}

.downloads-security-note p {
    margin: 0;
    color: rgba(238, 244, 248, .62);
    font-size: .78rem;
    line-height: 1.5;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 16px;
}

.download-card {
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .018), transparent 42%), rgba(8, 21, 34, .84);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .16);
}

.download-card__topline,
.download-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.download-card__type,
.download-card__status {
    color: var(--download-accent);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.download-card__status {
    padding: 5px 8px;
    border: 1px solid rgba(125, 255, 155, .28);
    border-radius: 999px;
    color: #7dff9b;
    background: rgba(125, 255, 155, .055);
}

.download-card__status.is-unavailable {
    border-color: rgba(255, 146, 146, .28);
    color: #ff9292;
    background: rgba(255, 146, 146, .055);
}

.download-card__status.is-hidden {
    border-color: rgba(255, 173, 92, .32);
    color: #ffad5c;
    background: rgba(255, 173, 92, .06);
}

.download-card h2 {
    margin: 22px 0 8px;
    color: #eef4f8;
    font-size: 1.28rem;
}

.download-card > p {
    margin: 0 0 18px;
    color: rgba(238, 244, 248, .64);
    font-size: .82rem;
    line-height: 1.55;
}

.download-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: auto 0 18px;
}

.download-card dl div {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
}

.download-card dt {
    margin-bottom: 4px;
    color: rgba(238, 244, 248, .48);
    font-size: .6rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.download-card dd {
    overflow-wrap: anywhere;
    color: #eef4f8;
    font-size: .74rem;
    font-weight: 650;
}

.download-card__actions {
    align-items: flex-end;
}

.download-card__commands {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.download-card__actions small {
    max-width: 54%;
    overflow-wrap: anywhere;
    color: rgba(238, 244, 248, .42);
    font: .58rem/1.4 monospace;
}

.downloads-button {
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid rgba(216, 176, 0, .58);
    border-radius: 8px;
    color: #07111d;
    background: var(--download-accent);
    cursor: pointer;
    font: inherit;
    font-size: .76rem;
    font-weight: 800;
}

.downloads-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.downloads-button:disabled {
    transform: none;
    opacity: .5;
    cursor: not-allowed;
    filter: none;
}

.downloads-button.is-secondary {
    color: #f1d45c;
    background: transparent;
}

.downloads-feedback,
.downloads-error,
.downloads-empty {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    color: rgba(238, 244, 248, .62);
    background: rgba(8, 21, 34, .72);
}

.downloads-feedback {
    min-height: 24px;
    padding: 0;
    border: 0;
    color: #7dff9b;
    background: none;
    font-size: .78rem;
}

.downloads-feedback.is-error,
.downloads-error {
    color: #ff9292;
}

@media (max-width: 700px) {
    .downloads-header,
    .download-card__actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .download-card dl {
        grid-template-columns: 1fr;
    }

    .download-card__actions small {
        max-width: 100%;
    }

    .downloads-button {
        width: 100%;
    }

    .download-card__commands {
        width: 100%;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .downloads-button {
        transition: none;
    }
}
