.app-platform-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 7px 14px;
    text-align: left;
}

[data-install-native][hidden] {
    display: none !important;
}

.app-download-combined {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.app-download-combined > span:last-child {
    margin-left: 3px;
}

.app-download-combined .platform-icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    transform: scale(.82);
}

.platform-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.05;
}

.platform-copy small {
    color: #7b8ba0;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .55px;
}

.platform-copy strong {
    color: #142845;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.platform-icon {
    position: relative;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: inline-block;
}

.android-icon::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 7px;
    width: 19px;
    height: 14px;
    border-radius: 9px 9px 5px 5px;
    background: #3ddc84;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,.07);
}

.android-icon::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 12px;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 7px 0 #fff, -3px -8px 0 -0.4px #3ddc84, 10px -8px 0 -0.4px #3ddc84;
}

.apple-icon::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    width: 18px;
    height: 17px;
    border-radius: 48% 48% 44% 44% / 55% 55% 46% 46%;
    background: radial-gradient(circle at 101% 34%, transparent 0 3px, #142845 3.4px);
    transform: rotate(-4deg);
}

.apple-icon::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 2px;
    width: 7px;
    height: 6px;
    border-radius: 7px 1px 7px 1px;
    background: #142845;
    transform: rotate(-24deg);
}

.client-app-download {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -3px 0 20px;
    padding: 13px 15px;
    border: 1px solid #dfe8f2;
    border-radius: 13px;
    background: linear-gradient(135deg, #f8fbff, #eef6ff);
}

.client-app-download > span {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.client-app-download > span strong { color: #142845; font-size: 12px; }
.client-app-download > span small { color: #75869b; font-size: 9px; }

.client-app-download > button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border: 1px solid #d5e1ed;
    border-radius: 9px;
    background: #fff;
    color: #142845;
    font: inherit;
    font-size: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(25,55,88,.05);
}

.client-app-download > button:hover { border-color: #9ac7f6; transform: translateY(-1px); }
.client-app-download .platform-icon { width: 24px; height: 24px; flex-basis: 24px; transform: scale(.86); }

@media (max-width: 760px) {
    .hero-actions .app-platform-button { width: 100%; }
    .hero-actions .app-download-combined { width: 100%; justify-content: center; }
    .client-app-download { align-items: stretch; flex-wrap: wrap; }
    .client-app-download > span { flex-basis: 100%; margin-bottom: 3px; }
    .client-app-download > button { flex: 1; justify-content: center; }
}

@media (max-width: 420px) {
    .client-app-download { flex-direction: column; }
    .client-app-download > button { width: 100%; }
}

.collection-share-card {
    width: min(560px, calc(100% - 28px));
}

.shared-file-list {
    max-height: 320px;
    margin: 18px 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
    border: 1px solid #dfe8f2;
    border-radius: 12px;
    background: #fff;
}

.shared-file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    border-bottom: 1px solid #edf2f7;
}

.shared-file-download {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid #cfe0ef;
    border-radius: 8px;
    color: #0878ee;
    background: #f5faff;
    font-size: 10px;
    font-weight: 850;
}

.mobile-download-note {
    display: none;
    margin: 12px 0;
    color: #667b8f;
    font-size: 11px;
    line-height: 1.5;
}

.shared-file-list li:last-child {
    border-bottom: 0;
}

.shared-file-list span {
    min-width: 0;
    overflow: hidden;
    color: #142845;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shared-file-list small {
    flex: 0 0 auto;
    color: #75869b;
    font-size: 10px;
}

.collection-share-card > .btn + .btn {
    margin-top: 9px;
}

@media (max-width: 760px) {
    .desktop-zip-download {
        display: none !important;
    }

    .mobile-download-note {
        display: block;
    }

    .shared-file-list li {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .shared-file-list li small {
        grid-column: 1;
    }

    .shared-file-download {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }
}
