/* Row 749 (0.1.12.16): "Download the desktop app" block for bundled desktop
   installers (landing page incl. air-gapped installs) and the Settings card
   facts (size / SHA-256 / MSI). Tokens come from quiet-intelligence-tokens.css
   (light + dark); logical properties keep RTL correct; 360 px is the floor. */

.landing-desktop-bundle {
    width: min(1280px, calc(100% - 32px));
    margin: 24px auto 8px;
    padding: clamp(18px, 2.5vw, 28px);
    color: var(--qi-text);
    border-radius: 20px;
}
.landing-desktop-bundle-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-block-end: 18px;
}
.landing-desktop-bundle-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--qi-action-bg) 14%, transparent);
    color: var(--qi-action-bg);
    font-size: 20px;
}
.landing-desktop-bundle-copy h2 {
    margin: 0 0 6px;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.2;
    color: var(--qi-text);
}
.landing-desktop-bundle-copy p {
    margin: 0;
    color: var(--qi-muted);
    font-size: 15px;
    line-height: 1.55;
    max-width: 76ch;
}
.landing-desktop-bundle-soon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--qi-control-line);
    background: color-mix(in srgb, var(--qi-surface) 70%, transparent);
    color: var(--qi-text);
    font-size: 14px;
    line-height: 1.5;
}
.landing-desktop-bundle-soon[hidden] { display: none; }
.landing-desktop-bundle-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 16px;
}
.landing-desktop-bundle-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--qi-control-line);
    background: color-mix(in srgb, var(--qi-surface) 82%, transparent);
    min-width: 0;
}
.landing-desktop-bundle-card.is-detected-os {
    border-color: color-mix(in srgb, var(--qi-control-focus) 55%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--qi-control-focus) 16%, transparent);
}
.landing-desktop-bundle-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.landing-desktop-bundle-card-head h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    color: var(--qi-text);
}
.landing-desktop-bundle-os {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--qi-text) 8%, transparent);
    color: var(--qi-text);
    font-size: 18px;
}
.landing-desktop-bundle-for {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--qi-action-bg);
    font-weight: 600;
}
.landing-desktop-bundle-for[hidden] { display: none; }
.landing-desktop-bundle-arch {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--qi-muted);
    background: color-mix(in srgb, var(--qi-text) 8%, transparent);
}
.landing-desktop-bundle-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: auto;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--qi-success);
    background: color-mix(in srgb, var(--qi-success) 12%, transparent);
}
.landing-desktop-bundle-badge.is-unsigned {
    color: var(--qi-warning);
    background: color-mix(in srgb, var(--qi-warning) 12%, transparent);
}
.landing-desktop-bundle-cta {
    width: 100%;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
}
.landing-desktop-bundle-facts {
    display: grid;
    gap: 8px;
    margin: 0;
    font-size: 14px;
}
.landing-desktop-bundle-facts > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    min-width: 0;
}
.landing-desktop-bundle-facts dt {
    margin: 0;
    color: var(--qi-muted);
    font-weight: 500;
}
.landing-desktop-bundle-facts dd {
    margin: 0;
    color: var(--qi-text);
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.landing-desktop-bundle-facts > div.is-hash { flex-direction: column; align-items: stretch; }
.landing-desktop-bundle-sha,
.desktop-download-sha {
    display: block;
    width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.45;
    word-break: break-all;
    overflow-wrap: anywhere;
    padding: 8px 10px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--qi-text) 6%, transparent);
    color: var(--qi-text);
    user-select: all;
}
.landing-desktop-bundle-copy,
.desktop-download-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--qi-control-line);
    background: transparent;
    color: var(--qi-text);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.landing-desktop-bundle-copy:hover,
.desktop-download-copy:hover { border-color: var(--qi-action-bg); }
.landing-desktop-bundle-copy:focus-visible,
.desktop-download-copy:focus-visible,
.landing-desktop-bundle-cta:focus-visible,
.landing-desktop-bundle-link:focus-visible {
    outline: 2px solid var(--qi-control-focus);
    outline-offset: 2px;
}
.landing-desktop-bundle-copy.is-copied,
.desktop-download-copy.is-copied {
    color: var(--qi-success);
    border-color: var(--qi-success);
}
.landing-desktop-bundle-copy-status {
    font-size: 12px;
    color: var(--qi-muted);
}
.landing-desktop-bundle-note,
.landing-desktop-bundle-foot {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--qi-muted);
}
.landing-desktop-bundle-foot { margin-block-start: 14px; }
.landing-desktop-bundle-it {
    border-top: 1px solid var(--qi-control-line);
    padding-block-start: 10px;
}
.landing-desktop-bundle-it summary {
    cursor: pointer;
    font-size: 14px;
    color: var(--qi-text);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
}
.landing-desktop-bundle-it summary::-webkit-details-marker { display: none; }
.landing-desktop-bundle-it summary::after {
    content: '';
    margin-inline-start: auto;
    width: 8px;
    height: 8px;
    border-inline-end: 2px solid currentColor;
    border-block-end: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 160ms ease;
}
.landing-desktop-bundle-it[open] summary::after { transform: rotate(-135deg); }
.landing-desktop-bundle-link,
.desktop-download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    min-height: 40px;
    color: var(--qi-action-bg);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.landing-desktop-bundle-link small,
.desktop-download-link small { color: var(--qi-muted); font-weight: 400; }
.landing-desktop-bundle-link:hover,
.desktop-download-link:hover { text-decoration: underline; }

/* Settings card facts (chat.html) */
.desktop-download-facts {
    display: grid;
    gap: 8px;
    margin: 10px 0 6px;
    font-size: 13px;
}
.desktop-download-facts > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.desktop-download-facts dt { margin: 0; color: var(--qi-muted, inherit); font-weight: 500; }
.desktop-download-facts dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }

@media (max-width: 480px) {
    .landing-desktop-bundle { width: calc(100% - 32px); padding: 16px; }
    .landing-desktop-bundle-head { flex-direction: column; }
    .landing-desktop-bundle-card { padding: 14px; }
    .landing-desktop-bundle-badge { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .landing-desktop-bundle-it summary::after { transition: none; }
}
