/* Responsive one-step viewport for install wizards. */
body.ci-install-shell { height:100vh; height:100svh; min-height:0; overflow:hidden; }

body.ci-install-shell .ci-install-topbar {
    box-sizing:border-box; display:flex; height:58px; flex:0 0 58px; align-items:center;
    gap:clamp(1rem,4vw,2.75rem); padding:0 clamp(14px,3vw,32px);
    border-bottom:1px solid #e4e4e7; background:rgba(255,255,255,.96); color:#18181b;
}
body.ci-install-shell .ci-install-brand { display:inline-flex; align-items:center; gap:.6rem; color:inherit; font-size:1rem; letter-spacing:-.02em; text-decoration:none; }
body.ci-install-shell .ci-install-brand img { width:34px; height:34px; object-fit:contain; }
body.ci-install-shell .ci-install-brand strong span { color:#e11d48; }
body.ci-install-shell .ci-install-topbar-label { color:#71717a; font-size:.92rem; }
body.ci-install-shell .ci-install-exit { margin-left:auto; color:#71717a; font-size:.82rem; text-decoration:none; }
body.ci-install-shell .ci-install-exit:hover { color:#18181b; }

body.ci-install-shell .ci-install-main { height:calc(100vh - 58px); height:calc(100svh - 58px); min-height:0; overflow:hidden; }
body.ci-install-shell .ci-install { box-sizing:border-box; display:flex; height:100%; min-height:0; overflow:hidden; padding:8px 0; }
body.ci-install-shell .ci-wrap { display:flex; width:min(1320px,calc(100% - 28px)); height:100%; min-height:0; flex-direction:column; margin-inline:auto; }
body.ci-install-shell .ci-crumbs,
body.ci-install-shell .ci-hero { display:none !important; }

body.ci-install-shell .ci-wizard {
    box-sizing:border-box; display:flex; min-height:0; height:100%; flex:1 1 auto; flex-direction:column;
    gap:.45rem; overflow:hidden; margin:0; padding:10px; border-radius:1rem;
}
body.ci-install-shell .ci-wizard > .ci-back { min-height:2rem; flex:0 0 auto; align-self:flex-start; margin:0; padding:.32rem .6rem; font-size:.82rem; }
body.ci-install-shell .ci-wizard-head { min-height:0; flex:0 0 auto; grid-template-columns:minmax(0,1fr); gap:.25rem; }
body.ci-install-shell .ci-wizard-head h2 { margin:.1rem 0 0; font-size:clamp(1.15rem,2vw,1.5rem); line-height:1.15; }
body.ci-install-shell .ci-wizard-head p { margin:.1rem 0; line-height:1.35; }
body.ci-install-shell .ci-wizard-head .ci-wizard-car { display:none; }
body.ci-install-shell .ci-wizard-head .ci-specs { gap:.35rem; margin-top:.3rem; }
body.ci-install-shell .ci-wizard-head .ci-spec { padding:.3rem .5rem; font-size:.8rem; }
body.ci-install-shell .ci-wizard-head .ci-actions { gap:.4rem; margin:.3rem 0 0; }
body.ci-install-shell .ci-wizard-head .ci-button { min-height:2.15rem; padding:.35rem .65rem; font-size:.82rem; }

body.ci-install-shell .ci-wizard > .install-guide-context { min-height:64px; flex:0 0 auto; gap:.6rem; margin:0 0 .1rem; padding:.35rem .5rem; border-radius:.8rem; }
body.ci-install-shell .ci-wizard > .ci-progress-wrap { flex:0 0 auto; margin:.15rem 0 .25rem; }
body.ci-install-shell .ci-progress-label { margin-bottom:.25rem; font-size:.82rem; }
body.ci-install-shell .ci-progress { height:.4rem; }

body.ci-install-shell .ci-wizard > [data-ci-wizard] { display:flex; min-height:0; flex:1 1 auto; flex-direction:column; }
body.ci-install-shell .ci-wizard-step:not([hidden]) {
    box-sizing:border-box; display:flex; min-height:0; flex:1 1 auto; flex-direction:column;
    overflow-y:auto; overscroll-behavior:contain; padding:clamp(.65rem,1.2vh,1rem);
}
body.ci-install-shell .ci-wizard-step h3 { flex:0 0 auto; margin:0 0 .35rem; font-size:clamp(1.15rem,1.8vw,1.5rem); line-height:1.2; }
body.ci-install-shell .ci-stage-images { grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); align-content:center; gap:.45rem; min-height:0; flex:0 0 auto; margin-top:.25rem; }
body.ci-install-shell .ci-step-image { box-sizing:border-box; display:flex; height:auto; min-height:0; flex:0 0 auto; flex-direction:column; margin:0; }
body.ci-install-shell .ci-step-image img { width:100%; height:auto; min-height:0; max-height:none; flex:none; object-fit:contain; }
body.ci-install-shell .ci-step-image figcaption { flex:0 0 auto; padding:.2rem .5rem .35rem; font-size:.78rem; }
body.ci-install-shell .ci-guide-copy { flex:0 0 auto; margin-top:.4rem; font-size:1rem; line-height:1.45; }

body.ci-install-shell .ci-wizard > .ci-stage-actions { flex:0 0 auto; gap:.5rem; margin:.1rem 0 0; }
body.ci-install-shell .ci-stage-actions .ci-button { min-width:120px; min-height:2.65rem; padding:.45rem .8rem; }

body.ci-install-shell .car-id-generator { flex:0 0 auto; margin:.45rem 0 0; padding:.65rem .75rem; }
body.ci-install-shell .car-id-generator__heading h4 { font-size:1rem; line-height:1.2; }
body.ci-install-shell .car-id-generator__heading p { margin-top:.18rem; font-size:.88rem; line-height:1.35; }
body.ci-install-shell .car-id-generator__fields { gap:.55rem; margin-top:.45rem; }
body.ci-install-shell .car-id-generator__field { gap:.25rem; font-size:.84rem; }
body.ci-install-shell .car-id-generator__field input { min-height:2.65rem; padding:.45rem .6rem; font-size:.95rem; }
body.ci-install-shell .car-id-generator__result { min-height:2.65rem; padding:.3rem .55rem; }
body.ci-install-shell .car-id-generator__result output { font-size:1.35rem; }
body.ci-install-shell .car-id-generator__status,
body.ci-install-shell .car-id-generator__formula { margin-top:.35rem; font-size:.8rem; line-height:1.35; }
body.ci-install-shell .car-id-generator__warning { margin-top:.4rem; padding:.45rem .6rem; font-size:.85rem; line-height:1.3; }

/* Match the dedicated USB guide shell and keep image, copy, and navigation in view. */
body.ci-install-shell .install-wizard { gap:7px; padding-block:8px; }
body.ci-install-shell .install-screen { padding:clamp(10px,1.3vh,16px); }
body.ci-install-shell .install-guide-context { min-height:64px; margin-bottom:.35rem; }
body.ci-install-shell .install-screen-title { margin-bottom:.35rem; font-size:clamp(1.15rem,1.8vw,1.5rem); }
body.ci-install-shell .install-guide-images { gap:.45rem; margin:.4rem 0; }
body.ci-install-shell .install-guide-image { height:auto; min-height:0; max-height:none; }
body.ci-install-shell .install-guide-image img { width:100%; height:auto; min-height:0; max-height:none; flex:none; object-fit:contain; }
body.ci-install-shell .install-guide-text { font-size:1rem; line-height:1.45; }
body.ci-install-shell .install-screen-nav { padding-top:.5rem; }
body.ci-install-shell .install-screen-nav .install-control { min-height:42px; }

/* Common laptop viewport: save vertical space without reducing main text size. */
@media (max-height:950px) and (min-width:801px) {
    body.ci-install-shell .ci-step-image { height:auto; min-height:0; }
}
@media (max-height:800px) and (min-width:701px) {
    body.ci-install-shell .ci-install { padding-block:5px; }
    body.ci-install-shell .ci-wizard { gap:.3rem; padding:8px; }
    body.ci-install-shell .ci-step-image { height:auto; min-height:0; }
    body.ci-install-shell .ci-wizard-step h3 { font-size:1.2rem; }
    body.ci-install-shell .ci-wizard > .ci-stage-actions .ci-button { min-height:2.4rem; }
    body.ci-install-shell .car-id-generator { margin-top:.25rem; padding:.5rem .65rem; }
    body.ci-install-shell .car-id-generator__heading p { display:none; }
    body.ci-install-shell .car-id-generator__fields { margin-top:.35rem; }
    body.ci-install-shell .car-id-generator__field input,
    body.ci-install-shell .car-id-generator__result { min-height:2.5rem; }
    body.ci-install-shell .car-id-generator__status,
    body.ci-install-shell .car-id-generator__formula { margin-top:.25rem; }
    body.ci-install-shell .car-id-generator__warning { margin-top:.3rem; padding:.35rem .6rem; }
    body.ci-install-shell .install-wizard { gap:5px; padding-block:5px; }
    body.ci-install-shell .install-screen { padding:9px; }
    body.ci-install-shell .install-guide-image { height:auto; min-height:0; }
    body.ci-install-shell .install-guide-text { line-height:1.4; }
}
@media (max-height:650px) and (min-width:701px) {
    body.ci-install-shell .ci-step-image { height:auto; min-height:0; }
    body.ci-install-shell .ci-wizard-step:not([hidden]) { padding:.5rem; }
    body.ci-install-shell .install-guide-image { height:auto; min-height:0; }
    body.ci-install-shell .install-screen { padding:7px; }
    body.ci-install-shell .install-guide-context__media { width:62px; height:48px; flex-basis:62px; }
}

@media (max-width:700px) {
    body.ci-install-shell { height:auto; min-height:100svh; overflow-y:auto; }
    body.ci-install-shell .ci-install-topbar { height:54px; flex-basis:54px; }
    body.ci-install-shell .ci-install-main { height:auto; min-height:calc(100svh - 54px); overflow:visible; }
    body.ci-install-shell .ci-install { height:auto; min-height:calc(100svh - 54px); overflow:visible; padding:.65rem 0 1rem; }
    body.ci-install-shell .ci-wrap { width:calc(100% - 1rem); height:auto; min-height:0; }
    body.ci-install-shell .ci-wizard { height:auto; min-height:0; overflow:visible; gap:.55rem; padding:.65rem; }
    body.ci-install-shell .ci-wizard > .install-guide-context { min-height:62px; }
    body.ci-install-shell .ci-wizard > [data-ci-wizard] { display:block; min-height:0; }
    body.ci-install-shell .ci-wizard-step:not([hidden]) { display:block; height:auto; min-height:0; overflow:visible; padding:.8rem; }
    body.ci-install-shell .ci-step-image { height:auto; min-height:0; max-height:none; }
    body.ci-install-shell .ci-step-image img { width:100%; height:auto; max-height:48svh; object-fit:contain; }
    body.ci-install-shell .ci-wizard > .ci-stage-actions { position:sticky; bottom:0; z-index:5; background:var(--surface); padding:.35rem 0 0; }
    body.ci-install-shell .ci-wizard .ci-stage-actions .ci-button { min-width:0; }
    body.ci-install-shell .install-wizard { padding-inline:8px; }
    body.ci-install-shell .install-guide-image { height:auto; min-height:0; }
    body.ci-install-shell .install-guide-image img { max-height:none; }
}

@media (prefers-color-scheme:dark) {
    body.ci-install-shell .ci-install-topbar { border-color:#27272a; background:rgba(10,10,14,.97); color:#f4f4f5; }
    body.ci-install-shell .ci-install-topbar-label,
    body.ci-install-shell .ci-install-exit { color:#a1a1aa; }
    body.ci-install-shell .ci-install-exit:hover { color:#fff; }
}
/* Install guide image-to-copy spacing: one readable line above and below media. */
body.ci-install-shell .ci-wizard-step h3.ci-stage-title--has-image { margin-bottom:0; }
body.ci-install-shell .ci-stage-images { margin-block:1em; }
body.ci-install-shell .ci-stage-images + .ci-guide-copy { margin-top:0; }

body.ci-install-shell .install-screen-title.install-screen-title--has-image { margin-bottom:0; }
body.ci-install-shell .install-guide-images { margin-block:1em; }
body.ci-install-shell .install-guide-images + .install-guide-text { margin-top:0; }
/* Allocate the free step height to the illustrations after reserving copy and controls. */
body.ci-install-shell :is(.ci-wizard-step, .install-screen-body).install-media-fit {
    display: flex;
    flex-direction: column;
}
body.ci-install-shell .install-media-fit > :not(.install-media-fit__gallery) { flex: 0 0 auto; }
body.ci-install-shell .install-media-fit .install-media-fit__gallery {
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
    align-content: start;
    grid-template-rows: none;
    grid-auto-rows: auto;
    overflow: visible;
}
body.ci-install-shell .install-media-fit .install-media-fit__gallery :is(.ci-step-image, .install-guide-image) {
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    flex: none;
    margin: .45rem auto;
}
body.ci-install-shell .install-media-fit .install-media-fit__gallery :is(.ci-step-image, .install-guide-image) img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    flex: none;
    object-fit: contain;
}
body.ci-install-shell .install-media-fit .install-media-fit__gallery figcaption { flex: 0 0 auto; }

.install-guide-help {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin: .2rem 0;
    padding: .45rem .7rem;
    border: 1px solid var(--line, var(--install-border, #52525b));
    border-radius: .6rem;
    color: inherit;
    font-size: .875rem;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
}
.install-guide-help:hover { background: var(--surface-hover, #ffffff12); }
.install-guide-help:focus-visible { outline: 2px solid #fb7185; outline-offset: 3px; }

/* 703002573AA: laptop illustrations use the full card width; copy scrolls below. */
body.ci-install-shell .install-media-width-priority .install-media-fit__gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
    align-content: start;
}
body.ci-install-shell .install-media-width-priority .install-media-fit__gallery :is(.ci-step-image, .install-guide-image) {
    height: auto;
    min-height: 0;
    max-height: none;
    flex: none;
}
body.ci-install-shell .install-media-width-priority .install-media-fit__gallery .install-guide-image-open {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    flex: none;
}
body.ci-install-shell .install-media-width-priority .install-media-fit__gallery :is(.ci-step-image, .install-guide-image) img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    flex: none;
    object-fit: contain;
}

/* Illustrations placed between the actions they explain. */
body.ci-install-shell [data-guide-copy] .install-guide-inline-image {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 1em 0;
}
body.ci-install-shell [data-guide-copy] .install-guide-inline-image .install-guide-image-open,
body.ci-install-shell [data-guide-copy] .install-guide-inline-image img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    flex: none;
    object-fit: contain;
}

/* Primary project image style for every instruction and every step. */
body.ci-install-shell .install-media-consistent .install-media-fit__gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
}
body.ci-install-shell .install-media-consistent figure:is(.ci-step-image, .install-guide-image) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 0;
    flex: none;
    line-height: 0;
    white-space: normal;
}
body.ci-install-shell .install-media-consistent figure .install-guide-image-open,
body.ci-install-shell .install-media-consistent figure img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    flex: none;
    object-fit: contain;
}


/* Reference password layouts follow the same primary illustration style. */
body.ci-install-shell .install-media-consistent .install-media-fit__gallery {
    align-content: start;
    gap: .65rem;
    margin-block: 1em;
}
body.ci-install-shell .install-media-consistent [data-guide-copy] .install-guide-inline-image {
    margin-block: 1em;
}
body.ci-install-shell .install-media-consistent figure:is(.ci-step-image, .install-guide-image) {
    overflow: hidden;
    border-radius: .85rem;
}

body.ci-install-shell .install-password-step.install-media-consistent :is(.ci-stage-images, .install-guide-images) {
    margin-block: 1em;
}
body.ci-install-shell .install-password-step.install-media-consistent figure img {
    width: 100%;
    height: auto;
    max-height: none;
}

.install-guide-video {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    margin-top: .75rem;
}
.install-guide-video > summary {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    padding: .45rem .7rem;
    border: 1px solid var(--line, var(--install-border, #52525b));
    border-radius: .6rem;
    color: inherit;
    font-size: .875rem;
    font-weight: 650;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
    overflow-wrap: anywhere;
}
.install-guide-video > summary::-webkit-details-marker { display: none; }
.install-guide-video > summary:hover { background: var(--surface-hover, #ffffff12); }
.install-guide-video > summary:focus-visible { outline: 2px solid #fb7185; outline-offset: 3px; }
.install-guide-video__content { margin-top: .65rem; min-width: 0; }
.install-guide-video__frame {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: .65rem;
    background: #000;
}
.install-guide-video__external {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: .4rem;
    color: var(--red, #fb7185);
    font-size: .875rem;
    overflow-wrap: anywhere;
}
@media (max-width: 700px) {
    .install-guide-video > summary { width: 100%; justify-content: center; }
}

/* Mark exact interface targets inside affirmative instructions. */
body.ci-install-shell .ci-guide-copy strong.install-guide-action-target,
body.ci-install-shell .install-guide-text strong.install-guide-action-target {
    color: #15803d;
    background: rgba(34, 197, 94, .12);
    border-radius: .22em;
    padding-inline: .12em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

@media (prefers-color-scheme: dark) {
    body.ci-install-shell .ci-guide-copy strong.install-guide-action-target,
    body.ci-install-shell .install-guide-text strong.install-guide-action-target {
        color: #4ade80;
        background: rgba(34, 197, 94, .17);
    }
}
/* Keep the moved step indicator in the middle of the desktop controls. */
@media (min-width: 701px) {
    body.ci-install-shell .ci-wizard .ci-stage-actions {
        display: grid;
        grid-template-columns: minmax(110px, auto) minmax(0, 1fr) minmax(110px, auto);
        align-items: center;
    }

    body.ci-install-shell .ci-wizard .ci-stage-actions > [data-ci-back] { grid-column: 1; grid-row: 1; }
    body.ci-install-shell .ci-wizard .ci-stage-actions > .ci-progress-wrap { grid-column: 2; grid-row: 1; width: 100%; min-width: 0; margin: 0; }
    body.ci-install-shell .ci-wizard .ci-stage-actions > :is([data-ci-next], [data-ci-finish]) { grid-column: 3; grid-row: 1; justify-self: end; }
}

@media (max-width: 700px) {
    body.ci-install-shell .ci-wizard .ci-stage-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    body.ci-install-shell .ci-wizard .ci-stage-actions > .ci-progress-wrap { grid-column: 1 / -1; grid-row: 1; width: 100%; margin: 0 0 .25rem; }
    body.ci-install-shell .ci-wizard .ci-stage-actions > [data-ci-back] { grid-column: 1; grid-row: 2; }
    body.ci-install-shell .ci-wizard .ci-stage-actions > :is([data-ci-next], [data-ci-finish]) { grid-column: 2; grid-row: 2; }
    body.ci-install-shell .ci-wizard .ci-stage-actions .ci-button { width: 100%; min-width: 0; }
}

/* Keep the block-specific archive available beside every preparation step that needs it. */
body.ci-install-shell .install-guide-archive-download {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:.85rem 1.25rem;
    margin-block:.8rem;
    padding:.85rem 1rem;
    border:1px solid rgba(251,113,133,.48);
    border-inline-start:4px solid #fb7185;
    border-radius:14px;
    background:rgba(190,24,93,.09);
    color:var(--install-copy,#e4e4e7);
}
body.ci-install-shell .install-guide-archive-download__title {
    display:block;
    margin:0 0 .2rem;
    font-weight:750;
}
body.ci-install-shell .install-guide-archive-download__text {
    margin:0;
    font-size:.92rem;
    line-height:1.45;
    color:var(--install-muted,#a1a1aa);
}
body.ci-install-shell .install-guide-archive-download__links {
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:.5rem;
}
body.ci-install-shell .install-guide-archive-download__link {
    display:inline-flex;
    min-height:42px;
    align-items:center;
    justify-content:center;
    padding:.65rem .95rem;
    border:1px solid #fb7185;
    border-radius:10px;
    background:#e11d48;
    color:#fff;
    font-weight:750;
    line-height:1.25;
    text-align:center;
    text-decoration:none;
}
body.ci-install-shell .install-guide-archive-download__link:hover { background:#be123c; }
body.ci-install-shell .install-guide-archive-download__link:focus-visible {
    outline:3px solid rgba(251,113,133,.45);
    outline-offset:3px;
}
@media (max-width:700px) {
    body.ci-install-shell .install-guide-archive-download { grid-template-columns:1fr; }
    body.ci-install-shell .install-guide-archive-download__links { justify-content:stretch; }
    body.ci-install-shell .install-guide-archive-download__link { flex:1 1 100%; }
}

/* The archive download panel is an action row, not a warning message. */
body.ci-install-shell .install-guide-archive-download {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-start;
    margin-block: .65rem;
    padding: .55rem .65rem;
    border-color: rgba(255, 255, 255, .12);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
}
body.ci-install-shell .install-guide-archive-download__links {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: .5rem;
}
@media (max-width: 700px) {
    body.ci-install-shell .install-guide-archive-download { display: flex; }
    body.ci-install-shell .install-guide-archive-download__links { justify-content: stretch; }
    body.ci-install-shell .install-guide-archive-download__link { flex: 1 1 100%; }
}