#desktopDownloadDialog {
    position: fixed;
    z-index: 200;
    width: min(344px, calc(100vw - 24px));
    margin: 0;
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #e5eee9;
    border-radius: 16px;
    background: #fff;
    color: #24332b;
    box-shadow: 0 16px 48px rgba(24, 64, 41, 0.14), 0 2px 8px rgba(24, 64, 41, 0.04);
    font-family: inherit;
    text-align: left;
}

#desktopDownloadDialog[hidden] {
    display: none;
}

/* Mac 顶部入口直接展示版本面板，其他入口打开时也收起权益面板。 */
.desktop_download.is-mac-download .desktop_download_panel,
body.has-mac-download-popover .desktop_download .desktop_download_panel {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

#desktopDownloadDialog svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.desktop-download-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

#desktopDownloadTitle {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 26px;
}

.desktop-download-subtitle {
    margin-top: 4px;
    color: #7b8780;
    font-size: 12px;
    line-height: 20px;
}

.desktop-download-close {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #89938e;
    cursor: pointer;
}

.desktop-download-close svg {
    width: 20px;
    height: 20px;
}

.desktop-download-close:hover {
    background: #f2f6f3;
    color: #24332b;
}

.desktop-download-actions {
    display: grid;
    gap: 8px;
}

.desktop-download-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border: 1px solid #e9eeeb;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.desktop-download-option:hover:not(:disabled) {
    border-color: #a9e4c2;
    background: #f3fbf6;
}

.desktop-download-option:disabled {
    opacity: 0.5;
    cursor: wait;
}

.desktop-download-icon {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    height: 36px;
    border-radius: 9px;
    background: #edf8f1;
    color: #14a75b;
}

.desktop-download-icon svg {
    width: 22px;
    height: 22px;
}

.desktop-download-copy {
    display: grid;
    flex: 1;
    min-width: 0;
    gap: 3px;
}

.desktop-download-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.desktop-download-badge {
    padding: 0 4px;
    border-radius: 4px;
    background: #f0f5f2;
    color: #789082;
    font-size: 10px;
    font-weight: 400;
    line-height: 17px;
}

.desktop-download-detail {
    color: #89938e;
    font-size: 11px;
    line-height: 17px;
}

.desktop-download-arrow {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: #83978b;
}

.desktop-download-store {
    margin-top: 4px;
    background: #f8faf9;
    border-color: transparent;
}

.desktop-download-store .desktop-download-icon {
    background: #eaf2fe;
    color: #4887dc;
}

.desktop-download-help {
    margin-top: 14px;
    color: #939d97;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

#desktopDownloadStatus {
    margin-top: 12px;
    padding: 9px 10px;
    border-radius: 8px;
    background: #f0f8f3;
    color: #39845a;
    font-size: 12px;
    line-height: 19px;
}

#desktopDownloadStatus[data-state="error"] {
    background: #fff5ef;
    color: #ad663d;
}

.desktop-download-close:focus-visible,
.desktop-download-option:focus-visible {
    outline: 2px solid #08b860;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .desktop-download-option {
        transition: none;
    }
}
