/* Download center. Shared site chrome retains its own theme styles. */
.dl-main {
    --dl-background: #f4f7fc;
    --dl-surface: #fff;
    --dl-ink: #15223a;
    --dl-muted: #4c5c74;
    --dl-line: #d6e0ee;
    --dl-soft: #eaf1fb;
    --dl-accent: #174cbd;
    --dl-active: #163e9a;
    --dl-focus: #2667e5;
    --dl-card-shadow: 0 6px 22px rgba(35, 62, 101, .05);

    background: var(--dl-background);
    color: var(--dl-ink);
    line-height: 1.55;
}

html.dark-theme .dl-main,
html[data-theme="dark"] .dl-main {
    --dl-background: #0b1425;
    --dl-surface: #131f33;
    --dl-ink: #f0f5ff;
    --dl-muted: #b8c8e0;
    --dl-line: #30415e;
    --dl-soft: #1c2e4b;
    --dl-accent: #96bdff;
    --dl-active: #2551a6;
    --dl-focus: #9ac9ff;
    --dl-card-shadow: 0 6px 22px rgba(0, 0, 0, .15);
}

.dl-main [hidden] {
    display: none !important;
}

.dl-main [id] {
    scroll-margin-block-start: 90px;
}

.dl-main :focus-visible {
    outline: 3px solid var(--dl-focus);
    outline-offset: 4px;
}

.dl-wrap {
    max-width: 1280px;
    margin-inline: auto;
    padding: 30px clamp(16px, 3.3vw, 44px) 54px;
}

.dl-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 4vw, 58px);
    padding: clamp(28px, 3.4vw, 48px);
    border: 1px solid #2b5290;
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 83% 18%, rgba(37, 128, 217, .34), transparent 71%),
        linear-gradient(133deg, #101d41 4%, #132e61 62%, #123d66);
    color: #fff;
    box-shadow: 0 12px 30px rgba(19, 43, 80, .18);
    --dl-focus: #a2eaff;
}

.dl-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.6rem, 4.55vw, 4.25rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.058em;
}

.dl-hero h1 span {
    display: block;
    color: #a2eaff;
}

.dl-hero-copy > p {
    max-width: 49ch;
    margin: 16px 0 0;
    color: #dce8fb;
    font-size: clamp(1rem, 1.37vw, 1.125rem);
    line-height: 1.6;
}

.dl-actions,
.dl-hero-jump {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.dl-hero .dl-actions {
    margin-block-start: 24px;
}

.dl-main .dl-action {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .6em;
    min-height: 44px;
    padding: 9px 15px;
    border: 1px solid var(--dl-line);
    border-radius: 9px;
    background: var(--dl-surface);
    color: var(--dl-accent);
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
}

.dl-main .dl-action:hover {
    border-color: var(--dl-accent);
    background: var(--dl-soft);
    color: var(--dl-accent);
    text-decoration: none;
}

.dl-hero .dl-action {
    border-color: #7899c7;
    background: rgba(9, 31, 68, .36);
    color: #fff;
}

.dl-hero .dl-action:hover {
    border-color: #a2eaff;
    background: #20477b;
    color: #fff;
}

.dl-hero .dl-action--primary {
    border-color: #a2eaff;
    background: #a2eaff;
    color: #102c4e;
}

.dl-hero .dl-action--primary:hover {
    border-color: #d5f6ff;
    background: #d5f6ff;
    color: #102c4e;
}

.dl-hero-jump {
    margin-block-start: 13px;
    column-gap: 19px;
    row-gap: 0;
}

.dl-hero-jump a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #e5efff;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #9bb8e1;
    text-underline-offset: .22em;
}

.dl-hero-jump a:hover {
    color: #a2eaff;
    text-decoration-color: currentColor;
}

.dl-preview {
    min-width: 0;
    margin: 0;
    padding: 8px;
    border: 1px solid #547aaa;
    border-radius: 16px;
    background: #0d2040;
    box-shadow: 0 18px 38px rgba(3, 12, 31, .34);
}

.dl-preview img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1024 / 606;
    border-radius: 9px;
    background: #0c131a;
}

.dl-preview figcaption {
    padding: 9px 5px 3px;
    color: #d3e2f7;
    font-size: .8rem;
    text-align: center;
}

.dl-section {
    margin-block-start: clamp(36px, 4vw, 52px);
}

.dl-section-head {
    margin-block-end: 20px;
}

.dl-section h2 {
    margin: 0;
    color: var(--dl-ink);
    font-size: clamp(1.64rem, 3.2vw, 2.3rem);
    line-height: 1.18;
    letter-spacing: -.037em;
}

.dl-section-head p {
    margin: 7px 0 0;
    color: var(--dl-muted);
}

.dl-catalog-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 18px;
    margin-block-end: 16px;
}

.dl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dl-filter {
    min-height: 44px;
    padding: 7px 14px;
    border: 1px solid var(--dl-line);
    border-radius: 8px;
    background: var(--dl-surface);
    color: var(--dl-muted);
    font: inherit;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
}

.dl-filter:hover {
    border-color: var(--dl-accent);
    color: var(--dl-accent);
}

.dl-filter[aria-pressed="true"] {
    border-color: var(--dl-active);
    background: var(--dl-active);
    color: #fff;
}

.dl-app-count {
    margin: 0;
    color: var(--dl-muted);
    font-size: .875rem;
    font-weight: 600;
}

.dl-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dl-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 12px;
    padding: clamp(17px, 2vw, 24px);
    border: 1px solid var(--dl-line);
    border-radius: 16px;
    background: var(--dl-surface);
    box-shadow: var(--dl-card-shadow);
}

.dl-card-head {
    display: flex;
    align-items: center;
    gap: 13px;
}

.dl-card h3,
.dl-direct h3 {
    margin: 0;
    color: var(--dl-ink);
    font-size: 1.065rem;
    font-weight: 750;
    line-height: 1.26;
    letter-spacing: -.018em;
    overflow-wrap: anywhere;
}

.dl-card-label {
    margin: 0 0 3px;
    color: var(--dl-accent);
    font-size: .765rem;
    font-weight: 700;
}

.dl-card-copy,
.dl-note {
    margin: 0;
    color: var(--dl-muted);
    font-size: .925rem;
}

.dl-note {
    font-size: .85rem;
}

.dl-card-actions {
    padding-block-start: 4px;
    margin-block-start: auto;
}

.dl-card-actions > .kbt-ms-store-badge {
    display: flex;
}

.dl-app-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 12px;
    background: var(--dl-soft) center / 300% 500% no-repeat url("../images/download-app-icons-20261202.webp");
    background-position: var(--dl-icon-x) var(--dl-icon-y);
    box-shadow: inset 0 0 0 1px var(--dl-line);
}

.dl-app-icon--default {
    object-fit: contain;
    padding: 9px;
    background: var(--dl-soft);
}

.dl-card.dl-platform {
    padding-block-start: calc(clamp(17px, 2vw, 24px) - 2px);
    border-block-start: 3px solid var(--dl-platform-accent, #5989d4);
}

.dl-platform--android {
    --dl-platform-accent: #32a886;
}

.dl-platform--web {
    --dl-platform-accent: #8072ce;
}

.dl-platform-mark {
    position: relative;
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 10px;
    background: var(--dl-soft);
    color: var(--dl-accent);
}

.dl-platform-mark::before,
.dl-platform-mark::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
}

.dl-platform-mark--windows::before {
    width: 10px;
    height: 10px;
    inset: 12px auto auto 12px;
    border-radius: 1px;
    background: currentColor;
    box-shadow: 12px 0 currentColor, 0 12px currentColor, 12px 12px currentColor;
}

.dl-platform-mark--android::before {
    width: 15px;
    height: 25px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.dl-platform-mark--android::after {
    width: 5px;
    height: 2px;
    inset-block-end: 15px;
    border-radius: 2px;
    background: currentColor;
}

.dl-platform-mark--web::before {
    width: 24px;
    height: 19px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.dl-platform-mark--web::after {
    width: 20px;
    height: 2px;
    inset-block-start: 19px;
    background: currentColor;
}

.dl-link {
    color: var(--dl-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.dl-link:hover {
    color: var(--dl-accent);
    text-decoration-thickness: 2px;
}

.dl-install-status {
    margin: 0;
    color: var(--dl-muted);
    font-size: .875rem;
}

.dl-install-status:not(:empty) {
    margin-block-start: 7px;
}

.dl-direct {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px 24px;
    margin-block-start: 16px;
    padding: clamp(17px, 2vw, 24px);
    border: 1px solid var(--dl-line);
    border-radius: 14px;
    background: var(--dl-soft);
}

.dl-direct .dl-note {
    margin-block-start: 6px;
}

.dl-faq {
    border: 1px solid var(--dl-line);
    border-radius: 14px;
    background: var(--dl-surface);
}

.dl-faq details + details {
    border-block-start: 1px solid var(--dl-line);
}

.dl-faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    min-height: 52px;
    padding: 12px 18px;
    border-radius: 8px;
    color: var(--dl-ink);
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.dl-faq summary::-webkit-details-marker {
    display: none;
}

.dl-faq summary::after {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin: -3px 3px 0 0;
    border-right: 2px solid var(--dl-accent);
    border-bottom: 2px solid var(--dl-accent);
    transform: rotate(45deg);
}

.dl-faq details[open] summary::after {
    margin-top: 4px;
    transform: rotate(225deg);
}

.dl-faq summary:hover {
    color: var(--dl-accent);
}

.dl-faq p {
    max-width: 86ch;
    margin: 0;
    padding: 0 18px 15px;
    color: var(--dl-muted);
    font-size: .925rem;
}

.dl-related {
    margin-block-start: 24px;
    color: var(--dl-muted);
}

@media (max-width: 1040px) {
    .dl-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .dl-wrap {
        padding-block-start: 18px;
    }

    .dl-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: clamp(18px, 4.8vw, 34px);
        border-radius: 18px;
    }

    .dl-hero h1 {
        font-size: clamp(1.95rem, 7.5vw, 3.8rem);
    }

    .dl-preview {
        width: 100%;
        max-width: 530px;
    }
}

@media (max-width: 585px) {
    .dl-grid,
    .dl-direct {
        grid-template-columns: minmax(0, 1fr);
    }

    .dl-hero-jump {
        column-gap: 15px;
    }

    .dl-hero .dl-action {
        padding-inline: 12px;
    }

    .dl-filters {
        gap: 5px;
    }

    .dl-filter {
        padding-inline: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dl-main .kbt-ms-store-badge {
        transition: none;
        transform: none;
    }
}
