.downloads-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.downloads-heading .btn { margin-left: auto; }
.downloads-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
    align-items: start;
    column-gap: clamp(2rem, 7vw, 5rem);
}
.downloads-layout > *, .php-guide, .step-content { min-width: 0; }
.downloads .client-platforms > h2 { font-size: 1.35rem; margin-bottom: .85rem; }
.client-platform { border-bottom: 1px solid var(--account-rule); }
.client-platform:first-of-type { border-top: 2px solid var(--account-ink); }
.client-platform > summary { display: grid; grid-template-columns: 2.25rem minmax(0,1fr) auto .8rem; gap: .8rem; align-items: center; min-height: 4.6rem; padding: .65rem .25rem; cursor: pointer; list-style: none; }
.client-platform > summary::-webkit-details-marker { display: none; }
.client-platform > summary::after { content: ''; justify-self: center; width: .52rem; height: .52rem; border: solid var(--account-ink); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.client-platform[open] > summary::after { transform: rotate(225deg); }
.client-platform > summary img { display: block; object-fit: contain; }
.platform-name { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; }
.platform-label { font-size: 1.12rem; font-weight: 650; }
.platform-recommendation { padding: .18rem .5rem; border-radius: .3rem; background: #ecdfcd; color: var(--account-muted); font-size: .76rem; font-weight: 650; line-height: 1.25; }
.platform-recommendation.recommended { background: #d7efd2; color: #23552f; }
.downloads .mac-update-note { margin: 0 0 1rem; padding: .65rem .9rem; border-left: 3px solid var(--account-border); color: var(--account-ink); }
.platform-body { padding: .12rem 0 1.15rem; min-width: 0; }
.platform-state, .php-capability { color: var(--account-muted); }
.platform-state { font-size: .88rem; text-align: right; }
.php-capability { max-width: 36rem; }
.downloads .setup-sequence { list-style: none; padding: 0; margin: 1.8rem 0 0; counter-reset: setup-step; }
.setup-sequence > li { position: relative; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .9rem; counter-increment: setup-step; }
.setup-sequence > li::before { position: relative; z-index: 1; content: counter(setup-step); display: grid; place-items: center; align-self: start; width: 2rem; height: 2rem; border: 1px solid var(--account-ink); border-radius: 50%; background: var(--account-ink); color: var(--account-surface); font-weight: 650; font-size: .95rem; }
.setup-sequence > li:not(:last-child)::after { position: absolute; content: ''; left: calc(1rem - .5px); top: 2rem; bottom: 0; border-left: 1px solid var(--account-border); }
.step-content { display: grid; justify-items: start; align-content: start; gap: .75rem; padding: .12rem 0 1.8rem; }
.downloads .step-content h3 { font-size: clamp(1.2rem, 3vw, 1.48rem); line-height: 1.24; }
.step-content p { max-width: 42rem; }
.step-content details, .manual-body { width: 100%; min-width: 0; }
.step-content summary { display: list-item; width: fit-content; max-width: 100%; color: var(--account-link); font-weight: 620; cursor: pointer; }
.step-content details > :not(summary) { margin-top: .65rem; }
.manual-package { padding-top: .7rem; margin-top: .2rem; border-top: 1px solid var(--account-rule); }
.manual-body { display: grid; justify-items: start; gap: .7rem; }
.manual-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; }
.mac-approval { padding-inline-start: 1.45em; list-style: decimal; }
.mac-approval > li + li { margin-top: .4em; }
.step-content .install-code { background: var(--account-surface); white-space: pre-wrap; overflow-wrap: anywhere; }
.step-content .command-detail p { font-size: .94rem; }
.copy-feedback { color: var(--account-link); font-size: .86rem; }
.copy-feedback:empty, .downloads [hidden], .legacy-code [hidden] { display: none; }
.device-overview { display: grid; justify-items: start; align-content: start; gap: .85rem; border-top: 2px solid var(--account-ink); padding: .85rem 0 0; }
.device-section { width: 100%; min-width: 0; border-bottom: 1px solid var(--account-rule); padding-bottom: .85rem; }
.downloads .device-section h2 { font-size: 1.24rem; }
.device-section > :not(h2) { margin-top: .65rem; }
.device-section > a { display: block; width: fit-content; }
.device-facts { margin: 0; width: 100%; }
.device-facts > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: .65rem; }
.device-facts dt { color: var(--account-muted); font-size: .88rem; }
.device-facts dd { margin: 0; font-weight: 650; }
.device-overview details, .device-overview .form-stack { width: 100%; min-width: 0; }
.guide-platforms { list-style: none; padding: 0; margin: 0; }
.guide-platforms img { display: block; object-fit: contain; flex: none; }
.legacy-code { display: grid; gap: 1rem; justify-items: start; }
.legacy-code .field { width: 100%; }
.guide-platforms { margin-top: .9rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .9rem 1.25rem; }
.dx-instructions .guide-platforms li { padding: 0; border: 0; display: inline-flex; align-items: center; gap: .4rem; font-size: .94rem; }
@media (max-width: 760px) {
    .downloads-layout { grid-template-columns: minmax(0, 1fr); row-gap: 2.3rem; }
    .setup-sequence > li { grid-template-columns: 1.75rem minmax(0, 1fr); gap: .75rem; }
    .setup-sequence > li::before { width: 1.75rem; height: 1.75rem; }
    .setup-sequence > li:not(:last-child)::after { left: calc(.875rem - .5px); top: 1.75rem; }
}

.device-section .paired-devices { margin: .5rem 0 0; }
.device-section .paired-devices li + li { border-top: 1px solid var(--account-rule); }
.linked-computer-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .6rem; overflow-wrap: anywhere; }
.computer-role { color: var(--account-muted); font-size: .84rem; }
.computer-role.current { color: #12603b; font-weight: 650; }
