/* Public layout: the photographed wall and its hit areas share one space. */
#showroom-container.showroom-wall-aligned #logo-grid {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    perspective: none;
    display: block;
    pointer-events: none;
    overflow: hidden;
}

.showroom-wall-aligned .logo-cell {
    position: absolute;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    pointer-events: auto;
    touch-action: manipulation;
}

.showroom-wall-aligned .logo-cell.empty {
    pointer-events: none;
}

.showroom-wall-aligned .logo-cell:not(.empty)::before {
    border-radius: 8px;
}

.showroom-wall-aligned .logo-cell:focus-visible {
    outline: 2px solid #d5b24c;
    outline-offset: -2px;
    border-radius: 8px;
}

#showroom-container.showroom-cabinet-framed #showroom-bg {
    background-position: right center !important;
}

@media (max-width: 760px) {
    #showroom-container.showroom-wall-aligned #logo-grid {
        display: none;
    }
}

@media (max-width: 1366px) {
    #selection-panel.collapsed {
        width: auto !important;
    }

    #selection-panel.collapsed #selection-panel-toggle {
        width: auto !important;
        min-height: 48px;
        padding: 0 16px;
        gap: 10px;
        border-radius: 8px;
    }

    #selection-panel.collapsed #selection-panel-toggle::after {
        content: attr(data-label);
        font: 600 14px/1.2 system-ui, sans-serif;
        white-space: nowrap;
    }

    #selection-panel:not(.collapsed) #selection-panel-toggle {
        width: 44px !important;
        height: 44px !important;
    }
}

@media (min-width: 761px) and (max-width: 1366px) {
    #selection-panel:not(.collapsed) {
        max-height: calc(100dvh - var(--nav-height, 70px) - var(--showroom-bottom-safe, 24px) - 24px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    #selection-panel h2 {
        padding-right: 32px;
    }

    #selection-panel select,
    #selection-panel .btn-primary,
    #selection-panel .btn-secondary {
        min-height: 44px;
        font-size: 16px;
    }

    #showroom-container.showroom-wall-aligned #podium-car.podium-car {
        left: 40% !important;
        top: min(calc(var(--showroom-wall-bottom) + 110px), calc(100% - 130px)) !important;
    }
}

@media (hover: none), (prefers-reduced-motion: reduce) {
    .showroom-wall-aligned .logo-cell .logo-wrapper {
        transform: none !important;
        transition: none;
    }
}

/* A concrete variant switches the photographed wall to a quiet presentation view. */
#showroom-container.showroom-wall-aligned.showroom-vehicle-focus {
    background: #eeece7 !important;
}
#showroom-container.showroom-vehicle-focus #showroom-bg {
    background-image: none !important;
    background-color: #eeece7 !important;
}
#showroom-container.showroom-vehicle-focus #logo-grid,
#showroom-container.showroom-vehicle-focus #podium-bg,
#showroom-container.showroom-vehicle-focus #podium-logo-wrapper {
    visibility: hidden !important;
    pointer-events: none !important;
}

html:not(.showroom-debug) #showroom-container.showroom-wall-aligned.showroom-vehicle-focus #podium-car.podium-car.has-selection:not(.preview-mode) {
    position: fixed !important;
    left: 50% !important;
    top: calc(50dvh + 8px) !important;
    bottom: auto !important;
    width: min(calc(100vw - 48px), 1120px, calc(150dvh - 360px)) !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 152px) !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-sizing: border-box !important;
    transform: translate(-50%, -50%) !important;
    padding: 0 16px 12px !important;
    overflow: visible !important;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: none !important;
    color: #242b2e;
}

/* A stable 3:2 frame preserves layout when changing reviewed perspectives. */
html:not(.showroom-debug) #showroom-container.showroom-vehicle-focus #podium-car.has-vehicle #vehicle-image-frame {
    order: 2;
    display: block !important;
    width: min(100%, calc((100dvh - 300px) * 1.5)) !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 300px) !important;
    aspect-ratio: 3 / 2 !important;
    object-fit: contain !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: none !important;
}
#showroom-container.showroom-vehicle-focus #podium-car.image-unavailable #vehicle-image-frame {
    display: none !important;
}
#showroom-container.showroom-vehicle-focus #podium-brand-logo,
#showroom-container.showroom-vehicle-focus #podium-text-brand {
    display: none !important;
}
#showroom-container.showroom-vehicle-focus #vehicle-stage-title {
    order: 1;
    width: 100%;
    padding: 0 58px;
    box-sizing: border-box;
    color: #202729;
    font: 650 clamp(19px, 2.3vw, 30px)/1.2 system-ui, sans-serif;
    text-align: center;
    text-wrap: balance;
    text-shadow: none !important;
}
#showroom-container.showroom-vehicle-focus #podium-text-variant {
    order: 4;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #3e4b4c !important;
    font: 500 clamp(13px, 1.35vw, 17px)/1.35 system-ui, sans-serif !important;
    letter-spacing: .02em !important;
    white-space: normal !important;
    text-align: center;
    text-shadow: none !important;
}
#showroom-container.showroom-vehicle-focus #vehicle-image-notice {
    order: 5;
    position: relative;
    inset: auto;
    max-width: 650px;
    color: #526163;
    font: 400 13px/1.45 system-ui, sans-serif;
    text-align: center;
    text-shadow: none !important;
}
#podium-car:not(.has-vehicle) #vehicle-image-notice { display: none; }

#vehicle-image-credit-trigger[hidden] { display: none !important; }
#showroom-container.showroom-vehicle-focus #vehicle-image-credit-trigger {
    order: 6;
    flex-shrink: 0;
    min-height: 44px;
    padding: 4px 12px;
    border: 0;
    background: transparent;
    color: #324f59;
    font: 500 12px/1.3 system-ui, sans-serif;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-shadow: none;
    cursor: pointer;
}
#showroom-container.showroom-vehicle-focus #vehicle-image-credit-trigger:focus-visible {
    outline: 3px solid #856817;
    outline-offset: 2px;
}

#vehicle-view-controls[hidden] { display: none !important; }
#showroom-container.showroom-vehicle-focus .vehicle-view-controls {
    order: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(100%, 340px);
    min-height: 44px;
    color: #253236;
    font: 600 13px/1.3 system-ui, sans-serif;
    text-shadow: none;
}
#showroom-container.showroom-vehicle-focus #vehicle-view-status {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
}
#showroom-container.showroom-vehicle-focus .vehicle-view-controls button {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #aeb9b8;
    border-radius: 50%;
    background: #fffefa;
    color: #223236;
    font: 500 26px/1 system-ui, sans-serif;
    cursor: pointer;
    touch-action: manipulation;
}
#showroom-container.showroom-vehicle-focus .vehicle-view-controls button:focus-visible,
#showroom-container.showroom-vehicle-focus #podium-car-image:focus-visible {
    outline: 3px solid #856817;
    outline-offset: 3px;
}
#showroom-container.showroom-vehicle-focus .vehicle-view-controls button:disabled {
    opacity: .55;
    cursor: wait;
}
#showroom-container.showroom-vehicle-focus #podium-car-image {
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-drag: none;
}
#showroom-container.showroom-vehicle-focus #podium-car-image.has-multiple-views {
    cursor: grab;
}
#showroom-container.showroom-vehicle-focus #podium-car-image.has-multiple-views:active {
    cursor: grabbing;
}

/* The image gate produces an honest, readable state when no approved image exists. */
html:not(.showroom-debug) #showroom-container.showroom-wall-aligned.showroom-vehicle-focus #podium-car.podium-car.has-selection.image-unavailable {
    top: clamp(156px, 28dvh, 290px) !important;
    transform: translateX(-50%) !important;
    max-height: none !important;
    width: min(calc(100vw - 48px), 760px) !important;
    padding-top: 24px !important;
}
#showroom-container.showroom-vehicle-focus #podium-car.image-unavailable .podium-placeholder {
    order: 2;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 118px;
    padding: 14px 24px;
    box-sizing: border-box;
    border: 1px solid #d9d9d2;
    border-radius: 8px;
    background: #fffefa;
    color: #344345;
    text-align: center;
}
#showroom-container.showroom-vehicle-focus #podium-car.image-unavailable .podium-placeholder p {
    max-width: 58ch !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    color: inherit !important;
    font: 500 16px/1.5 system-ui, sans-serif !important;
    text-shadow: none !important;
}
#showroom-container.showroom-vehicle-focus #podium-car.has-vehicle .podium-placeholder { display: none !important; }

/* Place the stage in the space beside an opened selector or market panel. */
@media (min-width: 761px) {
    html.showroom-selector-open:not(.showroom-debug) #showroom-container.showroom-wall-aligned.showroom-vehicle-focus #podium-car.podium-car.has-selection:not(.preview-mode) {
        left: calc((100vw - clamp(248px, 18vw, 276px) - 20px) / 2) !important;
        width: min(calc(100vw - clamp(248px, 18vw, 276px) - 68px), 980px, calc(150dvh - 360px)) !important;
    }
    html.showroom-market-visible:not(.showroom-selector-open):not(.showroom-debug) #showroom-container.showroom-wall-aligned.showroom-vehicle-focus #podium-car.podium-car.has-selection:not(.preview-mode) {
        left: calc((100vw + clamp(260px, 26vw, 340px) + 24px) / 2) !important;
        width: min(calc(100vw - clamp(260px, 26vw, 340px) - 72px), 900px, calc(150dvh - 360px)) !important;
    }
}

/* Keep essential controls large and legible against the studio surface. */
#showroom-container.showroom-vehicle-focus .podium-overview-btn {
    top: 0 !important;
    right: 0 !important;
    width: 44px !important;
    height: 44px !important;
    border: 1px solid #aeb9b8 !important;
    background: #fffefa !important;
    color: #223236 !important;
}
#showroom-container.showroom-vehicle-focus .podium-icon-btn svg {
    width: 20px !important;
    height: 20px !important;
}
#showroom-container.showroom-vehicle-focus .podium-order-badge {
    top: 6px !important;
    left: 0 !important;
}
#selection-panel.collapsed #selection-panel-toggle {
    width: auto !important;
    min-width: 44px;
    min-height: 48px;
    padding: 0 16px !important;
    gap: 8px;
    border-radius: 8px;
    font-size: 0 !important;
}
#selection-panel.collapsed #selection-panel-toggle::after {
    content: attr(data-label);
    font: 600 14px/1.2 system-ui, sans-serif;
    white-space: nowrap;
}
#selection-panel:not(.collapsed) #selection-panel-toggle {
    width: 44px !important;
    height: 44px !important;
}
#showroom-container.showroom-vehicle-focus #selection-panel.collapsed #selection-panel-toggle {
    background: #fffefa !important;
    color: #223236 !important;
    border-color: #abb8b6 !important;
    box-shadow: 0 4px 18px #20323522 !important;
}

html.showroom-selector-open #dcm-panel,
html.showroom-prehero-open #dcm-panel { display: none !important; }
#dcm-panel {
    pointer-events: auto !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    max-height: calc(100dvh - 190px);
}
@media (min-width: 761px) {
    #dcm-panel { width: clamp(260px, 26vw, 340px) !important; }
}
@media (max-width: 760px) {
    #dcm-panel {
        top: 138px !important;
        bottom: auto !important;
        max-height: var(--showroom-market-height, 240px);
    }
    #dcm-panel .dcm-chart { margin-top: 10px; }
    html:not(.showroom-debug) #showroom-container.showroom-wall-aligned.showroom-vehicle-focus #podium-car.podium-car.has-selection:not(.preview-mode) {
        top: min(43dvh, 360px) !important;
        width: calc(100vw - 32px) !important;
        padding: 48px 8px 18px !important;
    }
    html:not(.showroom-debug) #showroom-container.showroom-wall-aligned.showroom-vehicle-focus #podium-car.podium-car.has-selection.image-unavailable {
        top: clamp(145px, 25dvh, 220px) !important;
        width: calc(100vw - 32px) !important;
        padding-top: 48px !important;
    }
    #showroom-container.showroom-vehicle-focus #vehicle-stage-title {
        font-size: 20px;
        padding: 0 48px;
    }
    html.showroom-selector-open:not(.showroom-debug) #showroom-container.showroom-wall-aligned.showroom-vehicle-focus #podium-car.podium-car.has-selection:not(.preview-mode) {
        top: 88px !important;
        transform: translateX(-50%) !important;
        width: calc(100vw - 32px) !important;
        padding-top: 0 !important;
    }
    html.showroom-selector-open #showroom-container.showroom-vehicle-focus #podium-car.has-vehicle #vehicle-image-frame {
        max-height: 18dvh !important;
    }
    html.showroom-market-visible:not(.showroom-selector-open):not(.showroom-debug) #showroom-container.showroom-wall-aligned.showroom-vehicle-focus #podium-car.podium-car.has-selection:not(.preview-mode) {
        top: 128px !important;
        transform: translateX(-50%) !important;
        padding: 0 8px 12px !important;
    }
    html.showroom-market-visible:not(.showroom-selector-open):not(.showroom-debug) #showroom-container.showroom-vehicle-focus #podium-car.has-vehicle #vehicle-image-frame {
        width: clamp(100px, calc((100dvh - 530px) * 1.5), 100%) !important;
        max-height: none !important;
    }
    html.showroom-market-visible #showroom-container.showroom-vehicle-focus ~ #dcm-panel,
    html.showroom-market-visible #dcm-panel { top: var(--showroom-market-top, 138px) !important; }
    html.showroom-selector-open #showroom-container.showroom-vehicle-focus #podium-car.image-unavailable .podium-placeholder {
        min-height: 68px;
        padding: 8px 12px;
    }
}

/* Navigation keeps a stable viewport anchor as the image loads. */
body > .showroom-vehicle-nav {
    position: fixed !important;
    inset: auto auto 24px 50% !important;
    transform: translateX(-50%) !important;
    width: 200px;
    height: 44px;
    z-index: 170;
    display: block;
}
:is(body, #showroom-short-content) > .showroom-vehicle-nav .vehicle-nav-btn {
    top: 0 !important;
    transform: none !important;
    width: 44px !important;
    height: 44px !important;
    transition: background-color .2s !important;
}
:is(body, #showroom-short-content) > .showroom-vehicle-nav #vehicle-nav-prev { left: 0 !important; }
:is(body, #showroom-short-content) > .showroom-vehicle-nav #vehicle-nav-next { right: 0 !important; }
:is(body, #showroom-short-content) > .showroom-vehicle-nav .vehicle-nav-label {
    position: absolute !important;
    left: 50% !important;
    top: 12px !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
}
html.showroom-selector-open body > .showroom-vehicle-nav,
html.showroom-prehero-open body > .showroom-vehicle-nav { visibility: hidden; }
@media (max-width: 760px) {
    body > .showroom-vehicle-nav { bottom: 108px !important; }
}
@media (max-height: 600px) and (min-width: 761px) {
    #showroom-container.showroom-vehicle-focus .vehicle-view-controls {
        width: min(340px, calc(100vw - 64px));
        flex-shrink: 0;
    }
    #showroom-container.showroom-vehicle-focus #vehicle-image-notice {
        width: min(440px, calc(100vw - 64px));
        max-width: none;
        flex-shrink: 0;
    }
    html:not(.showroom-debug) #showroom-container.showroom-wall-aligned.showroom-vehicle-focus #podium-car.podium-car.has-selection:not(.preview-mode) {
        top: calc(50dvh - 7px) !important;
        width: min(calc(100vw - 48px), calc(150dvh - 290px)) !important;
        padding: 0 16px 4px !important;
        max-height: none !important;
        gap: 2px;
    }
    html:not(.showroom-debug) #showroom-container.showroom-wall-aligned.showroom-vehicle-focus #podium-car.podium-car.has-selection.image-unavailable {
        top: 95px !important;
        width: min(600px, calc(100vw - 48px)) !important;
    }
    html:not(.showroom-debug) #showroom-container.showroom-vehicle-focus #podium-car.has-vehicle #vehicle-image-frame {
        width: min(100%, calc((100dvh - 255px) * 1.5)) !important;
        max-height: calc(100dvh - 255px) !important;
    }
    #showroom-container.showroom-vehicle-focus #vehicle-stage-title {
        font-size: 16px;
        padding: 0 32px;
    }
    #showroom-container.showroom-vehicle-focus #podium-text-variant {
        display: block !important;
        flex-shrink: 0;
        font-size: 12px !important;
        line-height: 1.2 !important;
    }
    #showroom-container.showroom-vehicle-focus #vehicle-image-notice {
        flex-shrink: 0;
        font-size: 12px;
        line-height: 1.25;
    }
}

/* Geometry-preserving scale normalization. Bounds are exact-frame review data;
   no vehicle recoloring, mirroring, stretching or synthesized views. */
#vehicle-image-frame { display: contents; }
html:not(.showroom-debug) #showroom-container.showroom-vehicle-focus #podium-car.has-vehicle #vehicle-image-frame {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: #f4f2ed !important;
    transform: translate3d(var(--immersive-offset-x, 0px), var(--immersive-offset-y, 0px), 0);
    transition: transform 180ms ease-out;
    will-change: transform;
}

#immersive-stage-toggle[hidden] { display: none !important; }
#showroom-container.showroom-vehicle-focus .immersive-stage-toggle {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #aeb9b8;
    border-radius: 7px;
    background: #fffefa;
    color: #223236;
    font: 600 12px/1 system-ui, sans-serif;
    letter-spacing: .01em;
    cursor: pointer;
}
#showroom-container.showroom-vehicle-focus .vehicle-view-controls:has(.immersive-stage-toggle:not([hidden])) {
    width: min(100%, 500px);
    gap: 8px;
}
#showroom-container.showroom-vehicle-focus .vehicle-view-controls .immersive-stage-toggle {
    width: 160px;
    height: auto;
    min-height: 44px;
    padding: 5px 10px;
    border: 1px solid #aeb9b8;
    border-radius: 7px;
    background: #fffefa;
    color: #223236;
    font: 600 11px/1.2 system-ui, sans-serif;
    letter-spacing: .01em;
    white-space: normal;
}
@media (min-width: 761px) and (max-height: 600px) {
    /* The view row is already dense in compact landscape. Place the optional
       effect in the persistent header control region, clear of the reviewed
       image, view status, navigation and CTA. */
    #showroom-container.showroom-vehicle-focus .vehicle-view-controls:has(.immersive-stage-toggle:not([hidden])) {
        width: min(100%, 340px);
        gap: 12px;
    }
    #immersive-stage-toggle.immersive-stage-header-control {
        position: relative;
        flex: 0 0 160px;
        margin-left: auto;
        width: 160px;
        min-height: 44px;
        padding: 5px 10px;
        border: 1px solid #aeb9b8;
        border-radius: 7px;
        background: #fffefa;
        color: #223236;
        font: 600 11px/1.2 system-ui, sans-serif;
        letter-spacing: .01em;
    }
}
#showroom-container.showroom-vehicle-focus .immersive-stage-toggle[aria-pressed="true"] {
    border-color: #856817;
    background: #f4e6b4;
    color: #473708;
}
#showroom-container.showroom-vehicle-focus .immersive-stage-toggle:focus-visible {
    outline: 3px solid #856817;
    outline-offset: 3px;
}
#showroom-container.showroom-vehicle-focus .immersive-stage-toggle:disabled {
    cursor: not-allowed;
    opacity: .62;
}
@media (prefers-reduced-motion: reduce) {
    html:not(.showroom-debug) #showroom-container.showroom-vehicle-focus #podium-car.has-vehicle #vehicle-image-frame {
        transform: none;
        transition: none;
    }
}
html:not(.showroom-debug) #showroom-container.showroom-vehicle-focus #podium-car #vehicle-image-frame #podium-car-image {
    position: absolute !important;
    left: var(--vehicle-left, 0%) !important;
    top: var(--vehicle-top, 0%) !important;
    width: calc(100% * var(--vehicle-scale, 1)) !important;
    height: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: 3 / 2 !important;
    transform: none !important;
    object-fit: contain !important;
    transition: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    filter: none !important;
}

/* Portrait uses the same brand buttons and selection handlers as the wall.
   The overview is a bounded grid; after selection it becomes a persistent band. */
@media (max-width: 760px) and (orientation: portrait) {
    html:not(.showroom-debug) #showroom-container.showroom-wall-aligned #logo-grid {
        position: fixed !important;
        inset: calc(var(--nav-height, 58px) + 64px) 12px auto !important;
        width: auto !important;
        height: 164px !important;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: none;
        grid-auto-rows: 72px;
        gap: 6px;
        padding: 7px;
        background: rgba(9, 9, 9, .94);
        border: 1px solid rgba(213, 178, 76, .5);
        border-radius: 8px;
        overflow: auto !important;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #d5b24c #171d21;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        z-index: 110;
    }
    html:not(.showroom-debug) #showroom-container #logo-grid .logo-cell {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: 72px !important;
        min-width: 44px;
        min-height: 44px;
        opacity: 1 !important;
        pointer-events: auto;
        overflow: hidden;
        border-radius: 6px;
        background: #f4f1ea;
    }
    html:not(.showroom-debug) #showroom-container #logo-grid .logo-cell.empty { display: none; }
    html:not(.showroom-debug) #showroom-container #logo-grid .logo-cell::before { display: none; }
    html:not(.showroom-debug) #showroom-container #logo-grid .logo-cell::after {
        content: attr(data-name);
        position: absolute;
        inset: auto 2px 4px;
        color: #202729;
        font: 600 10px/1.1 system-ui, sans-serif;
        text-align: center;
    }
    html:not(.showroom-debug) #showroom-container #logo-grid .logo-wrapper {
        inset: 2px 0 17px;
        transform: none !important;
    }
    html:not(.showroom-debug) #showroom-container #logo-grid .logo-cell img {
        width: 52px;
        height: 52px;
        object-fit: contain;
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
    }
    html:not(.showroom-debug) #showroom-container #logo-grid .logo-cell[aria-pressed="true"] {
        box-shadow: inset 0 0 0 3px #a77d0d;
    }
    html:not(.showroom-debug) #showroom-container:has(#podium-car.brand-selected) #logo-grid {
        top: calc(var(--nav-height, 58px) + 8px) !important;
        left: 68px !important;
        height: 72px !important;
        grid-template-columns: none;
        grid-template-rows: 56px;
        grid-auto-flow: column;
        grid-auto-columns: 76px;
    }
    html:not(.showroom-debug) #showroom-container:has(#podium-car.brand-selected) #logo-grid .logo-cell {
        height: 56px !important;
    }
    html:not(.showroom-debug) #showroom-container:has(#podium-car.brand-selected) #logo-grid .logo-cell img {
        width: 38px;
        height: 38px;
    }
    html:not(.showroom-debug) #showroom-container #podium-car.podium-car.preview-mode:has(.podium-preview-browser:is([data-mode="model"], [data-mode="variant"])) {
        top: calc(var(--nav-height, 58px) + 90px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100vw - 32px) !important;
        height: min(400px, calc(100dvh - var(--nav-height, 58px) - 180px)) !important;
    }
    html:not(.showroom-debug) #showroom-container #podium-car.preview-mode #podium-brand-logo {
        display: none !important;
    }
    /* Selected portrait stages always start below the persistent brand band,
       including the more specific legacy selector/market states. */
    html.showroom-selector-open:not(.showroom-debug) #showroom-container.showroom-wall-aligned.showroom-vehicle-focus #podium-car.podium-car.has-selection:not(.preview-mode),
    html.showroom-market-visible:not(.showroom-selector-open):not(.showroom-debug) #showroom-container.showroom-wall-aligned.showroom-vehicle-focus #podium-car.podium-car.has-selection:not(.preview-mode),
    html:not(.showroom-debug) #showroom-container.showroom-wall-aligned.showroom-vehicle-focus #podium-car.podium-car.has-selection:not(.preview-mode) {
        top: calc(var(--nav-height, 58px) + 90px) !important;
        transform: translateX(-50%) !important;
        padding-top: 0 !important;
        max-height: calc(100dvh - var(--nav-height, 58px) - 254px) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
    }
    html:not(.showroom-debug) #showroom-container.showroom-vehicle-focus #podium-car.has-vehicle #vehicle-image-frame {
        width: clamp(216px, calc((100dvh - 418px) * 1.5), 100%) !important;
        max-height: none !important;
    }
    html.showroom-selector-open {
        --portrait-selector-height: min(45dvh, max(140px, calc(100dvh - var(--nav-height, 58px) - 290px)));
    }
    html.showroom-selector-open #selection-panel:not(.collapsed) {
        max-height: var(--portrait-selector-height) !important;
    }
    html.showroom-selector-open:not(.showroom-debug) #showroom-container.showroom-wall-aligned.showroom-vehicle-focus #podium-car.podium-car.has-selection:not(.preview-mode) {
        max-height: max(80px, calc(100dvh - var(--nav-height, 58px) - 90px - var(--portrait-selector-height) - var(--showroom-bottom-safe, 24px) - 12px)) !important;
    }
    html.showroom-selector-open:not(.showroom-debug) #showroom-container.showroom-vehicle-focus #podium-car.has-vehicle #vehicle-image-frame {
        width: min(100%, max(162px, 27dvh)) !important;
    }

}

/* A short portrait has room for the car or a dashboard, not both fixed stacks.
   Keep the original nodes in one scroll flow; the brand band and picker stay out. */
#showroom-short-content[hidden], #showroom-short-scroll-hint { display: none !important; }
@media (max-width: 760px) and (orientation: portrait) and (max-height: 754px) {
    #showroom-container.showroom-short-scroll #showroom-short-content {
        position: fixed;
        inset: calc(var(--nav-height, 58px) + 90px) 12px var(--short-scroll-bottom, 105px);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #a77d0d transparent;
        z-index: 120;
        padding: 0 4px 8px;
    }
    #showroom-short-content:focus-visible { outline: 2px solid #a77d0d; outline-offset: -2px; }
    #showroom-container.showroom-short-more #showroom-short-scroll-hint {
        display: grid !important;
        place-items: center;
        position: fixed;
        right: 0;
        bottom: calc(var(--short-scroll-bottom, 105px) + 4px);
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #f4f1ea;
        color: #856817;
        box-shadow: 0 1px 5px #20272940;
        font: 700 18px/1 system-ui, sans-serif;
        pointer-events: none;
        z-index: 121;
    }
    #showroom-container.showroom-short-scroll #showroom-short-content #podium-car.podium-car {
        position: relative !important;
        inset: auto !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 8px 12px !important;
        overflow: visible !important;
    }
    #showroom-container.showroom-short-scroll #showroom-short-content #podium-car.has-vehicle #vehicle-image-frame {
        width: clamp(216px, calc((100dvh - 530px) * 1.5), 100%) !important;
        max-height: none !important;
    }
    #showroom-container.showroom-short-scroll #showroom-short-content #dcm-panel {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        max-height: none !important;
        margin: 16px 0 0;
        overflow: visible;
    }
    #showroom-short-content > .showroom-vehicle-nav {
        position: relative !important;
        inset: auto !important;
        transform: none !important;
        width: 200px;
        height: 44px;
        margin: 16px auto 8px;
        display: block;
    }
}
