.okm-konf-page {
    margin-bottom: 40px;
    padding: 20px 0;
}

.okm-konf__top-back {
    margin: 0 0 20px;
    cursor: pointer;
    color: #666;
    font-size: 15px;
}

.okm-konf__layout {
    display: grid;
    grid-template-columns: minmax(280px, 540px) minmax(320px, 1fr) 220px;
    gap: 24px;
    align-items: start;
}

.okm-preview-card,
.okm-step,
.okm-progress,
.okm-modal__dialog {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,.04);
}

.okm-preview-card {
    position: sticky;
    top: 16px;
    padding: 16px;
}

.okm-preview-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.okm-zoom-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.okm-preview-stage {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(180deg, #fafafa, #f4f4f4);
    aspect-ratio: 4/3;
}

.okm-preview-stack {
    position: relative;
    width: 100%;
    height: 100%;
    transform-origin: center center;
    transition: transform .2s ease;
}

.okm-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.okm-layer.is-hidden {
    display: none !important;
}

.okm-layer--tone-white {
    filter: brightness(0) saturate(0) invert(1) brightness(1.65) contrast(1.1);
}

.okm-step {
    padding: 20px;
    margin-bottom: 18px;
}

.okm-step__title {
    margin: 0 0 16px;
    font-size: 28px;
    line-height: 1.2;
}

.okm-step__help {
    margin: 0 0 14px;
    color: #666;
    font-size: 14px;
}

.okm-switches,
.okm-series-list,
.okm-actions-top,
.okm-actions-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.okm-switch-pill,
.okm-series-pill {
    display: inline-flex;
    position: relative;
}

.okm-switch-pill input,
.okm-series-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.okm-switch-pill span,
.okm-series-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
    min-width: 80px;
}

.okm-switch-pill input:checked + span,
.okm-series-pill input:checked + span {
    background: #fe7200;
    border-color: #fe7200;
    color: #fff;
}

.okm-check-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.okm-dimensions {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.okm-grid-colors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

.okm-link-btn {
    display: inline-flex;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: #fe7200;
    font-weight: 600;
    cursor: pointer;
}

.okm-color-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    min-height: 132px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.okm-color-card.is-selected {
    border-color: #fe7200;
    box-shadow: 0 0 0 1px #fe7200 inset;
}

.okm-color-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.okm-color-card__swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #fff;
    margin-bottom: 10px;
}

.okm-color-card__swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.okm-color-card__title {
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
}

.okm-result-box {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    background: #fafafa;
}

.okm-result-box__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 20px;
}

.okm-result-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    align-items: start;
}

.okm-result-item:last-child {
    border-bottom: 0;
}

.okm-result-item__meta {
    font-size: 12px;
    color: #666;
}

.okm-warning-box {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff3cd;
    color: #856404;
}

.okm-progress {
    position: sticky;
    top: 16px;
    padding: 18px;
}

.okm-progress__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    color: #666;
}

.okm-progress__dot {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f2f2f2;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex: 0 0 32px;
}

.okm-progress__dot--done {
    background: #fe7200;
    color: #fff;
}

.okm-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0,0,0,.5);
    z-index: 9999;
}

.okm-modal.is-open {
    display: flex;
}

.okm-modal-open {
    overflow: hidden;
}

.okm-modal__dialog {
    width: min(920px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 0;
}

.okm-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #eee;
}

.okm-modal__body {
    padding: 18px;
}

.okm-modal__close {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font-size: 20px;
    cursor: pointer;
}

.okm-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.okm-accordion__item {
    border-top: 1px solid #ececec;
}

.okm-accordion__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    background: none;
    border: 0;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.okm-accordion__icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    color: #555;
    transition: transform .15s ease;
}

.okm-accordion__item.is-open .okm-accordion__icon {
    transform: rotate(45deg);
}

.okm-accordion__body {
    overflow: hidden;
    max-height: 0;
    transition: max-height .25s ease;
}

.okm-accordion__body.is-open {
    padding-bottom: 12px;
}

/* Responsive */
@media (max-width: 1199px) {
    .okm-konf__layout {
        grid-template-columns: 1fr;
    }
    .okm-progress {
        position: static;
    }
}

@media (max-width: 767px) {
    .okm-step__title {
        font-size: 24px;
    }
    .okm-dimensions {
        grid-template-columns: 1fr;
    }
    .okm-actions-top,
    .okm-actions-bottom {
        flex-direction: column;
    }
    .okm-grid-colors {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
    .okm-color-card {
        min-height: 122px;
    }
}

.okm-dimensions__field {
    display:flex;
    flex-direction:column;
    gap:8px;
}

.okm-dimensions__field--single {
    margin-top: 6px;
}

.okm-dimensions__label {
    display:block;
    font-size:14px;
    font-weight:600;
    color:#222;
}

.okm-dimensions__field .form-control {
    height: 52px;
    border-radius: 16px;
}

.okm-depth-note {
    display: block;
    min-height: 18px;
    font-size: 12px;
    line-height: 1.35;
    color: #666;
}

.okm-dimensions__field select.form-control {
    padding-right: 32px;
    cursor: pointer;
}


.okm-progress {
    position: sticky;
    top: 16px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,.04);
}

.okm-progress__item {
    cursor: pointer;
    transition: color .2s ease, transform .2s ease;
}

.okm-progress__item:hover {
    color: #222;
}

.okm-progress__item.active .okm-progress__dot {
    background: #fe7200;
    color: #fff;
    transform: scale(1.12);
}

.okm-progress__item.completed .okm-progress__dot {
    background: #28a745;
    color: #fff;
}

.okm-progress__item.active .okm-progress__text,
.okm-progress__item.completed .okm-progress__text {
    color: #222;
}

.okm-step {
    scroll-margin-top: 100px;
}


.okm-konf__preview-col,
.okm-konf__content-col,
.okm-konf__progress-col {
    min-width: 0;
}

@media (max-width: 767px) {
    .okm-konf__layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .okm-konf__progress-col {
        order: 0;
        position: sticky;
        top: 8px;
        z-index: 20;
    }

    .okm-konf__preview-col {
        order: 1;
    }

    .okm-konf__content-col {
        order: 2;
    }

    .okm-preview-card {
        position: sticky;
        top: 84px;
        z-index: 10;
        padding: 12px;
    }

    .okm-progress {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        padding: 10px 12px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .okm-progress__item {
        margin-bottom: 0;
        min-width: max-content;
        align-items: center;
        scroll-snap-align: start;
    }

    .okm-progress__text {
        font-size: 13px;
        line-height: 1.2;
    }

    .okm-progress::-webkit-scrollbar {
        display: none;
    }

    .okm-step {
        scroll-margin-top: 148px;
    }
}

/* ===== OKM CONFIGURATOR: fixed preview + fixed progress + scrollable center (desktop) ===== */
:root {
    --okm-konf-sticky-top: 16px;
    --okm-konf-sticky-bottom-gap: 16px;
}

@media (min-width: 1200px) {
    .okm-konf__layout {
        align-items: start;
    }

    .okm-konf__content-col {
        max-height: calc(100vh - var(--okm-konf-sticky-top) - var(--okm-konf-sticky-bottom-gap));
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 8px;
        scrollbar-gutter: stable;
        overscroll-behavior: contain;
    }

    .okm-konf__content-col::-webkit-scrollbar {
        width: 8px;
    }

    .okm-konf__content-col::-webkit-scrollbar-thumb {
        background: #d9d9d9;
        border-radius: 8px;
    }

    .okm-konf__content-col::-webkit-scrollbar-track {
        background: transparent;
    }

    .okm-konf__content-col .okm-step:last-child {
        margin-bottom: 0;
    }

    .okm-preview-card {
        position: sticky;
        top: var(--okm-konf-sticky-top);
        max-height: calc(100vh - var(--okm-konf-sticky-top) - var(--okm-konf-sticky-bottom-gap));
        overflow: hidden;
    }

    .okm-progress {
        position: sticky;
        top: var(--okm-konf-sticky-top);
        max-height: calc(100vh - var(--okm-konf-sticky-top) - var(--okm-konf-sticky-bottom-gap));
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
    }
}


.okm-live-selection {
    margin-top: 16px;
    background: #fff;
    border: 1px solid #e7ebf1;
    border-radius: 18px;
    padding: 16px 18px;
}

.okm-live-selection__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #eef2f6;
}

.okm-live-selection__row:last-child {
    border-bottom: 0;
}

.okm-live-selection__label {
    font-weight: 700;
    color: #1f2937;
    flex: 0 0 180px;
}

.okm-live-selection__value {
    flex: 1 1 auto;
    text-align: right;
    color: #374151;
    word-break: break-word;
}

@media (max-width: 767px) {
    .okm-live-selection {
        margin-top: 12px;
        padding: 14px;
        border-radius: 14px;
    }

    .okm-live-selection__row {
        flex-direction: column;
        gap: 4px;
    }

    .okm-live-selection__label,
    .okm-live-selection__value {
        flex: none;
        text-align: left;
    }
}


.okm-guide-card {
    margin: 0 0 18px;
    padding: 16px 18px;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    background: #fffdf8;
    box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.okm-guide-card__title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #222;
}

.okm-guide-card__intro {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.55;
    color: #555;
}

.okm-guide-card__list {
    margin: 0;
    padding-left: 18px;
}

.okm-guide-card__list li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.55;
    color: #333;
}

.okm-guide-card__list li:last-child {
    margin-bottom: 0;
}


/* ===== 4.1.3.13 layout refresh ===== */
.okm-konf__layout {
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr) 220px;
    gap: 20px;
}

.okm-step {
    scroll-margin-top: 90px;
}

@media (min-width: 1200px) {
    .okm-konf__content-col {
        max-height: none;
        overflow: visible;
        padding-right: 0;
        scrollbar-gutter: auto;
        overscroll-behavior: auto;
    }

    .okm-preview-card,
    .okm-progress {
        top: 16px;
        max-height: none;
    }
}

.okm-mobile-bar {
    display: none;
}

@media (max-width: 767px) {
    .okm-konf-page {
        padding-bottom: 104px;
    }

    .okm-konf__preview-col {
        order: 1;
    }

    .okm-preview-card {
        position: static;
        top: auto;
    }

    .okm-step__title {
        font-size: 22px;
    }

    .okm-actions-bottom {
        display: none;
    }

    .okm-mobile-bar {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        background: rgba(255,255,255,.96);
        border-top: 1px solid #e6e6e6;
        backdrop-filter: blur(8px);
        box-shadow: 0 -8px 24px rgba(0,0,0,.08);
    }

    .okm-mobile-bar__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .okm-mobile-bar__total {
        display: flex;
        flex-direction: column;
        min-width: 88px;
        font-size: 12px;
        color: #666;
    }

    .okm-mobile-bar__total strong {
        font-size: 18px;
        line-height: 1.2;
        color: #222;
    }

    .okm-mobile-bar__actions {
        flex: 1 1 auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 8px;
    }

    .okm-mobile-bar__actions .btn {
        width: 100%;
        min-height: 44px;
        border-radius: 12px;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 14px;
        white-space: nowrap;
    }
}


/* ===== 4.1.3.14 wizard UX ===== */
.okm-konf--wizard .okm-step {
    padding: 0;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.okm-konf--wizard .okm-step.is-active {
    border-color: rgba(254,114,0,.45);
    box-shadow: 0 10px 28px rgba(254,114,0,.10);
}

.okm-wizard-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border: 0;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.okm-wizard-head__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: #f1f3f5;
    color: #333;
    font-weight: 800;
}

.okm-step.is-active .okm-wizard-head__num {
    background: #fe7200;
    color: #fff;
}

.okm-wizard-head__main {
    flex: 1 1 auto;
    min-width: 0;
}

.okm-wizard-head__title {
    display: block;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
    color: #222;
}

.okm-wizard-head__hint {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.3;
    color: #777;
}

.okm-wizard-head__state {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f5f6f7;
    color: #666;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.okm-step.is-active .okm-wizard-head__state {
    background: #fff0e6;
    color: #c75500;
}

.okm-wizard-head__icon {
    flex: 0 0 auto;
    width: 24px;
    text-align: center;
    font-size: 24px;
    line-height: 1;
    color: #555;
    transition: transform .2s ease;
}

.okm-step.is-active .okm-wizard-head__icon {
    transform: rotate(45deg);
}

.okm-wizard-body {
    padding: 0 20px 20px;
}

.okm-step.is-collapsed .okm-wizard-body {
    display: none;
}

.okm-wizard-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #edf0f3;
}

.okm-wizard-nav .btn {
    min-height: 42px;
    border-radius: 12px;
    padding-left: 18px;
    padding-right: 18px;
}

.okm-side-summary {
    margin-top: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,.04);
}

.okm-side-summary__title {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
    color: #222;
}

.okm-side-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f2f4;
    font-size: 13px;
}

.okm-side-summary__row span {
    color: #777;
}

.okm-side-summary__row strong {
    text-align: right;
    color: #222;
    font-weight: 700;
}

.okm-side-summary__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e8e8e8;
}

.okm-side-summary__total span {
    color: #666;
    font-size: 13px;
}

.okm-side-summary__total strong {
    color: #222;
    font-size: 22px;
    line-height: 1.2;
}

.okm-side-summary__calc {
    width: 100%;
    margin-top: 12px;
    border-radius: 12px;
}

@media (max-width: 1199px) {
    .okm-side-summary {
        display: none;
    }
}

@media (max-width: 767px) {
    .okm-wizard-head {
        padding: 15px 14px;
        gap: 10px;
    }

    .okm-wizard-head__num {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .okm-wizard-head__title {
        font-size: 18px;
    }

    .okm-wizard-head__hint,
    .okm-wizard-head__state {
        font-size: 11px;
    }

    .okm-wizard-head__state {
        display: none;
    }

    .okm-wizard-body {
        padding: 0 14px 16px;
    }

    .okm-wizard-nav {
        justify-content: stretch;
    }

    .okm-wizard-nav .btn {
        flex: 1 1 100%;
        width: 100%;
    }
}


/* ===== 4.1.3.15 layout cleanup ===== */
.okm-konf__layout--two-col {
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 24px;
}

.okm-guide-hero {
    margin: 0 0 20px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,.04);
}

.okm-guide-hero__title {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    color: #222;
}

.okm-guide-hero__intro {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.55;
    color: #666;
}

.okm-guide-hero__list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
}

.okm-guide-hero__list li {
    line-height: 1.55;
    color: #333;
}

.okm-guide-hero__steps {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #edf0f3;
}

.okm-progress--top {
    position: static;
    top: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.okm-progress--top .okm-progress__item {
    margin-bottom: 0;
    min-width: 0;
    padding: 12px 14px;
    background: #f7f8fa;
    border: 1px solid #edf0f3;
    border-radius: 16px;
    align-items: center;
}

.okm-progress--top .okm-progress__text {
    font-size: 14px;
    line-height: 1.35;
}

.okm-progress--top .okm-progress__item.active,
.okm-progress--top .okm-progress__item.completed {
    background: #fff;
}

.okm-progress--top .okm-progress__item.active {
    border-color: rgba(254,114,0,.35);
    box-shadow: 0 6px 18px rgba(254,114,0,.08);
}

.okm-progress--top .okm-progress__item.completed {
    border-color: rgba(40,167,69,.25);
}

.okm-preview-sticky {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 16px);
    overflow: auto;
    padding-right: 2px;
}

.okm-preview-card {
    position: static;
    top: auto;
}

.okm-live-selection-card {
    margin-top: 16px;
    background: #fff;
    border: 1px solid #e7ebf1;
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,.04);
}

.okm-live-selection-card__title {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
    color: #222;
}

.okm-live-selection {
    margin-top: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.okm-konf__content-col {
    min-width: 0;
}

.okm-side-summary,
.okm-konf__progress-col,
.okm-guide-card {
    display: none !important;
}

@media (max-width: 1199px) {
    .okm-konf__layout--two-col {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .okm-preview-sticky {
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 767px) {
    .okm-konf-page {
        padding-bottom: 106px;
        overflow-x: hidden;
    }

    #okm-konf-slope,
    .okm-konf__layout--two-col,
    .okm-konf__preview-col,
    .okm-konf__content-col,
    .okm-guide-hero {
        min-width: 0;
    }

    .okm-guide-hero {
        padding: 16px 14px;
        margin-bottom: 14px;
        border-radius: 16px;
    }

    .okm-guide-hero__title {
        font-size: 22px;
    }

    .okm-guide-hero__list {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-left: 18px;
    }

    .okm-guide-hero__steps {
        margin-top: 14px;
        padding-top: 14px;
    }

    .okm-progress--top {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        padding-bottom: 2px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .okm-progress--top .okm-progress__item {
        flex: 0 0 220px;
        scroll-snap-align: start;
        padding: 10px 12px;
    }

    .okm-progress--top::-webkit-scrollbar {
        display: none;
    }

    .okm-preview-card,
    .okm-live-selection-card,
    .okm-step {
        border-radius: 16px;
    }

    .okm-preview-card {
        padding: 12px;
    }

    .okm-live-selection-card {
        margin-top: 12px;
        padding: 14px;
    }

    .okm-dimensions,
    .okm-grid-colors,
    .okm-switches,
    .okm-series-list,
    .okm-actions-top,
    .okm-actions-bottom {
        min-width: 0;
    }

    .okm-grid-colors {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .okm-color-card {
        min-width: 0;
        min-height: 120px;
        padding: 8px;
    }

    .okm-color-card__swatch {
        width: 62px;
        height: 62px;
    }

    .okm-color-card__title {
        font-size: 13px;
        word-break: break-word;
    }

    .okm-wizard-head {
        align-items: flex-start;
    }

    .okm-wizard-head__main {
        min-width: 0;
    }

    .okm-wizard-head__title {
        font-size: 18px;
        word-break: break-word;
    }

    .okm-wizard-head__icon {
        margin-left: auto;
    }

    .okm-wizard-nav {
        gap: 8px;
    }

    .okm-mobile-bar__inner {
        align-items: stretch;
        gap: 8px;
    }

    .okm-mobile-bar__total {
        min-width: 78px;
    }

    .okm-mobile-bar__total strong {
        font-size: 16px;
    }

    .okm-mobile-bar__actions .btn {
        min-height: 42px;
        font-size: 13px;
        padding-left: 8px;
        padding-right: 8px;
    }
}


/* ===== 4.1.3.16 marketplace compact UX ===== */
.okm-market-hero {
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #fbfcfd);
}

.okm-market-hero__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.okm-market-hero__copy {
    min-width: 0;
}

.okm-market-hero .okm-guide-hero__title {
    margin: 0 0 4px;
    font-size: 22px;
    line-height: 1.2;
}

.okm-market-hero .okm-guide-hero__intro {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #606975;
}

.okm-market-hero__badge {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff3e8;
    color: #d45f00;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

.okm-market-hero .okm-guide-hero__steps {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.okm-progress--market {
    gap: 10px;
}

.okm-progress--market .okm-progress__item {
    position: relative;
    min-height: 52px;
    padding: 10px 12px;
    border-radius: 16px;
    background: #f5f7fa;
    border-color: #edf0f3;
    box-shadow: none;
}

.okm-progress--market .okm-progress__item:after {
    content: '';
    position: absolute;
    left: 48px;
    right: -10px;
    top: 50%;
    height: 2px;
    background: #e9edf2;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

.okm-progress--market .okm-progress__item:last-child:after {
    display: none;
}

.okm-progress--market .okm-progress__dot,
.okm-progress--market .okm-progress__text {
    position: relative;
    z-index: 1;
}

.okm-progress--market .okm-progress__dot {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    font-size: 13px;
    background: #fff;
    border: 1px solid #e4e8ef;
}

.okm-progress--market .okm-progress__text {
    font-size: 13px;
    font-weight: 800;
    color: #344054;
}

.okm-progress--market .okm-progress__item.active,
.okm-progress--market .okm-progress__item.completed {
    background: #fff;
}

.okm-progress--market .okm-progress__item.active {
    border-color: rgba(254,114,0,.45);
    box-shadow: 0 8px 22px rgba(254,114,0,.10);
}

.okm-progress--market .okm-progress__item.completed {
    border-color: rgba(40,167,69,.28);
}

.okm-live-selection-card {
    padding: 0;
    overflow: hidden;
}

.okm-live-selection-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 15px 16px;
    border: 0;
    background: #fff;
    text-align: left;
    cursor: default;
}

.okm-live-selection-toggle__main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.okm-live-selection-card__title {
    margin: 0;
    display: block;
}

.okm-live-selection-card__mini {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.35;
    color: #667085;
}

.okm-live-selection-toggle__icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background: #f5f7fa;
    color: #344054;
    font-size: 20px;
    line-height: 1;
    transition: transform .18s ease, background .18s ease;
}

.okm-live-selection-card__body {
    padding: 0 16px 14px;
}

.okm-live-selection__row {
    padding: 7px 0;
}

.okm-live-selection__label {
    flex-basis: 150px;
}

@media (min-width: 1200px) {
    .okm-market-hero {
        position: sticky;
        top: 0;
        z-index: 12;
    }
}

@media (max-width: 1199px) {
    .okm-market-hero .okm-guide-hero__title {
        font-size: 21px;
    }
}

@media (max-width: 767px) {
    .okm-market-hero {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 16px;
    }

    .okm-market-hero__head {
        margin-bottom: 10px;
        gap: 10px;
    }

    .okm-market-hero .okm-guide-hero__title {
        font-size: 19px;
    }

    .okm-market-hero .okm-guide-hero__intro {
        font-size: 12.5px;
    }

    .okm-market-hero__badge {
        display: none;
    }

    .okm-progress--market {
        gap: 7px;
        padding-bottom: 1px;
    }

    .okm-progress--market .okm-progress__item {
        flex: 0 0 auto;
        min-width: 126px;
        min-height: 42px;
        padding: 8px 10px;
        border-radius: 14px;
    }

    .okm-progress--market .okm-progress__item:after {
        display: none;
    }

    .okm-progress--market .okm-progress__dot {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        font-size: 12px;
    }

    .okm-progress--market .okm-progress__text {
        font-size: 12px;
        line-height: 1.2;
    }

    .okm-preview-card {
        padding: 10px;
    }

    .okm-preview-actions {
        margin-bottom: 8px;
    }

    .okm-zoom-btn {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        font-size: 18px;
    }

    .okm-live-selection-card {
        margin-top: 10px;
        border-radius: 16px;
    }

    .okm-live-selection-toggle {
        cursor: pointer;
        padding: 13px 14px;
    }

    .okm-live-selection-toggle__icon {
        display: inline-flex;
    }

    .okm-live-selection-card.is-open .okm-live-selection-toggle__icon {
        transform: rotate(45deg);
        background: #fff3e8;
        color: #d45f00;
    }

    .okm-live-selection-card__body {
        display: none;
        padding: 0 14px 13px;
    }

    .okm-live-selection-card.is-open .okm-live-selection-card__body {
        display: block;
    }

    .okm-live-selection__row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 6px 0;
    }

    .okm-live-selection__label,
    .okm-live-selection__value {
        flex: none;
        text-align: left;
    }

    .okm-live-selection__label {
        font-size: 12px;
        color: #667085;
    }

    .okm-live-selection__value {
        font-size: 13px;
        font-weight: 700;
        color: #1f2937;
    }

    .okm-step {
        margin-bottom: 12px;
    }

    .okm-wizard-head {
        min-height: 60px;
        padding: 13px 12px;
    }

    .okm-wizard-head__title {
        font-size: 17px;
    }

    .okm-wizard-body {
        padding: 0 12px 14px;
    }

    .okm-dimensions__field .form-control {
        height: 48px;
        border-radius: 14px;
    }

    .okm-color-card {
        min-height: 108px;
        border-radius: 14px;
    }

    .okm-color-card__swatch {
        width: 56px;
        height: 56px;
        margin-bottom: 7px;
    }

    .okm-color-card__title {
        font-size: 12px;
    }

    .okm-mobile-bar {
        padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    }

    .okm-mobile-bar__actions {
        gap: 6px;
    }

    .okm-mobile-bar__actions .btn {
        min-height: 40px;
        border-radius: 11px;
    }
}


/* ===== 4.1.3.17: separate windowsill step + compact market header ===== */
.okm-konf__layout--two-col {
    grid-template-columns: minmax(380px, 520px) minmax(0, 1fr);
    gap: 26px;
}

.okm-guide-hero.okm-market-hero {
    padding: 14px 18px 16px;
}

.okm-market-hero__head {
    margin-bottom: 8px;
}

.okm-market-hero .okm-guide-hero__title {
    font-size: 24px;
    line-height: 1.15;
}

.okm-market-hero .okm-guide-hero__intro {
    margin-bottom: 0;
}

.okm-market-hero__tips {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: okm-tip;
}

.okm-market-hero__tips li {
    position: relative;
    min-height: 42px;
    padding: 8px 10px 8px 34px;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    background: #f8fafc;
    font-size: 12.5px;
    line-height: 1.35;
    color: #344054;
}

.okm-market-hero__tips li:before {
    counter-increment: okm-tip;
    content: counter(okm-tip);
    position: absolute;
    left: 10px;
    top: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff3e8;
    color: #d45f00;
    font-size: 11px;
    font-weight: 800;
}

.okm-guide-hero__steps {
    margin-top: 12px;
    padding-top: 12px;
}

.okm-progress--market {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.okm-progress--market .okm-progress__item {
    min-height: 48px;
    padding: 9px 10px;
    border-radius: 14px;
}

.okm-progress--market .okm-progress__text {
    font-size: 13px;
}

.okm-preview-stage {
    aspect-ratio: 4 / 3;
}

.okm-windowsill-step {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.okm-check-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e6eaf0;
    border-radius: 16px;
    background: #f8fafc;
    cursor: pointer;
}

.okm-check-card input {
    margin-top: 4px;
}

.okm-check-card strong,
.okm-check-card small {
    display: block;
}

.okm-check-card strong {
    font-size: 15px;
    line-height: 1.3;
    color: #222;
}

.okm-check-card small {
    margin-top: 3px;
    font-size: 12.5px;
    line-height: 1.4;
    color: #667085;
}

.okm-windowsill-config {
    display: none;
    padding: 14px;
    border: 1px solid #eef0f4;
    border-radius: 16px;
    background: #fff;
}

.okm-windowsill-step.is-enabled .okm-windowsill-config {
    display: block;
}

.okm-endcap-box {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #ffe0c2;
    border-radius: 16px;
    background: #fffaf5;
}

.okm-endcap-box__title {
    margin-bottom: 5px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;
    color: #222;
}

.okm-endcap-box__help {
    margin-bottom: 10px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #667085;
}

.okm-endcap-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.okm-endcap-pill {
    position: relative;
    display: inline-flex;
}

.okm-endcap-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.okm-endcap-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #e0e5ec;
    border-radius: 12px;
    background: #fff;
    font-weight: 700;
    color: #344054;
    cursor: pointer;
}

.okm-endcap-pill input:checked + span {
    border-color: #fe7200;
    background: #fff3e8;
    color: #c75500;
    box-shadow: 0 0 0 1px rgba(254,114,0,.15) inset;
}

@media (max-width: 1199px) {
    .okm-konf__layout--two-col {
        grid-template-columns: 1fr;
    }

    .okm-market-hero__tips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .okm-konf__layout--two-col {
        gap: 12px;
    }

    .okm-guide-hero.okm-market-hero {
        padding: 11px;
        border-radius: 15px;
    }

    .okm-market-hero__head {
        margin-bottom: 6px;
    }

    .okm-market-hero .okm-guide-hero__title {
        font-size: 18px;
    }

    .okm-market-hero .okm-guide-hero__intro {
        font-size: 12px;
        line-height: 1.35;
    }

    .okm-market-hero__tips {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-top: 8px;
    }

    .okm-market-hero__tips li {
        min-height: 0;
        padding: 7px 9px 7px 32px;
        font-size: 12px;
        border-radius: 12px;
    }

    .okm-guide-hero__steps {
        margin-top: 9px;
        padding-top: 9px;
    }

    .okm-progress--market {
        display: flex;
        overflow-x: auto;
        gap: 7px;
        -webkit-overflow-scrolling: touch;
    }

    .okm-progress--market .okm-progress__item {
        flex: 0 0 112px;
        min-width: 112px;
        min-height: 40px;
        padding: 7px 8px;
        border-radius: 13px;
    }

    .okm-progress--market .okm-progress__text {
        font-size: 11.5px;
    }

    .okm-preview-stage {
        aspect-ratio: 16 / 10;
    }

    .okm-preview-card {
        padding: 8px;
    }

    .okm-windowsill-config,
    .okm-endcap-box {
        padding: 12px;
        border-radius: 14px;
    }

    .okm-check-card {
        padding: 12px;
        border-radius: 14px;
    }

    .okm-endcap-options {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .okm-endcap-pill span {
        width: 100%;
        min-height: 36px;
        padding: 7px 8px;
        font-size: 12px;
    }
}



/* ===== 4.1.3.18 compact marketplace header ===== */
.okm-guide-hero.okm-market-hero {
    padding: 14px 16px;
}

.okm-market-hero__head--compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.okm-market-hero__headline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    font-size: 16px;
    line-height: 1.45;
    color: #4b5563;
}

.okm-market-hero__headline strong {
    color: #1f2937;
    font-size: 18px;
    font-weight: 800;
}

.okm-market-hero__headline span {
    color: #6b7280;
}

.okm-market-hero__tips {
    display: none !important;
}

.okm-progress--market {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.okm-progress--market .okm-progress__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    min-height: 84px;
}

.okm-progress--market .okm-progress__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.okm-progress--market .okm-progress__text {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
    color: #1f2937;
}

.okm-progress--market .okm-progress__desc {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    color: #6b7280;
}

@media (max-width: 1199px) {
    .okm-market-hero__head--compact {
        align-items: flex-start;
    }

    .okm-progress--market {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .okm-guide-hero.okm-market-hero {
        padding: 12px;
    }

    .okm-market-hero__head--compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 8px;
    }

    .okm-market-hero__headline {
        font-size: 13px;
        line-height: 1.4;
        gap: 4px;
    }

    .okm-market-hero__headline strong {
        font-size: 16px;
    }

    .okm-market-hero__badge {
        align-self: flex-start;
        font-size: 11px;
        padding: 6px 10px;
    }

    .okm-guide-hero__steps {
        margin-top: 10px;
        padding-top: 0;
        border-top: 0;
    }

    .okm-progress--market {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        overflow: visible;
    }

    .okm-progress--market .okm-progress__item {
        min-height: 0;
        padding: 10px 12px;
        border-radius: 14px;
    }

    .okm-progress--market .okm-progress__dot {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 13px;
    }

    .okm-progress--market .okm-progress__text {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .okm-progress--market .okm-progress__desc {
        font-size: 11px;
        line-height: 1.35;
    }
}


/* ===== 4.1.3.19 fix: header step cards text clipping ===== */
.okm-progress--market .okm-progress__item:after {
    display: none !important;
    content: none !important;
}

.okm-progress--market .okm-progress__item {
    overflow: visible !important;
    align-items: flex-start;
    min-height: 86px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.okm-progress--market .okm-progress__body,
.okm-progress--market .okm-progress__text,
.okm-progress--market .okm-progress__desc {
    position: relative;
    z-index: 2;
}

.okm-progress--market .okm-progress__text,
.okm-progress--market .okm-progress__desc {
    overflow: visible;
    text-overflow: clip;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.okm-progress--market .okm-progress__desc {
    margin-top: 2px;
    line-height: 1.45;
    max-height: none;
}

@media (min-width: 1200px) {
    .okm-progress--market {
        align-items: stretch;
    }

    .okm-progress--market .okm-progress__item {
        min-height: 88px;
    }
}

@media (max-width: 1199px) {
    .okm-progress--market .okm-progress__item {
        min-height: 76px;
    }
}

@media (max-width: 767px) {
    .okm-progress--market .okm-progress__item {
        min-height: 0;
        overflow: visible !important;
    }

    .okm-progress--market .okm-progress__desc {
        line-height: 1.4;
    }
}


/* ===== 4.1.3.21 dimension steppers ===== */
.okm-stepper {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: stretch;
    width: 100%;
    min-height: 48px;
    border: 1px solid #e2e5ea;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.okm-stepper__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 100%;
    min-height: 48px;
    padding: 0;
    border: 0;
    background: #f3f4f6;
    color: #374151;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: background .18s ease, color .18s ease;
}

.okm-stepper__btn:hover,
.okm-stepper__btn:focus {
    background: #e9edf3;
    color: #0b5cab;
    outline: none;
}

.okm-stepper__control.form-control,
.okm-stepper select.okm-stepper__control.form-control {
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 0 12px;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff;
    box-shadow: none !important;
    text-align: center;
}

.okm-stepper input.okm-stepper__control[type="number"] {
    -moz-appearance: textfield;
}

.okm-stepper input.okm-stepper__control[type="number"]::-webkit-outer-spin-button,
.okm-stepper input.okm-stepper__control[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.okm-stepper select.okm-stepper__control {
    text-align-last: center;
    cursor: pointer;
}

@media (max-width: 767px) {
    .okm-stepper {
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        min-height: 54px;
        border-radius: 15px;
    }

    .okm-stepper__btn {
        width: 48px;
        min-width: 48px;
        min-height: 54px;
        font-size: 24px;
    }

    .okm-stepper__control.form-control,
    .okm-stepper select.okm-stepper__control.form-control {
        height: 54px;
        min-height: 54px;
        font-size: 16px;
    }
}


/* ===== 4.1.3.29 sticky preview + safe step scroll ===== */
#okm-konf-slope .okm-step {
    scroll-margin-top: 170px !important;
}

@media (min-width: 1200px) {
    #okm-konf-slope .okm-konf__layout--two-col {
        align-items: stretch !important;
    }

    #okm-konf-slope .okm-konf__preview-col {
        align-self: stretch !important;
        position: relative;
        min-height: 100%;
    }

    #okm-konf-slope .okm-preview-sticky {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 148px !important;
        max-height: calc(100vh - 164px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding-right: 4px;
        z-index: 5;
    }

    #okm-konf-slope .okm-preview-card,
    #okm-konf-slope .okm-live-selection-card {
        position: static !important;
        top: auto !important;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    #okm-konf-slope .okm-step {
        scroll-margin-top: 145px !important;
    }
}

@media (max-width: 767px) {
    #okm-konf-slope .okm-step {
        scroll-margin-top: 112px !important;
    }

    #okm-konf-slope .okm-preview-sticky {
        position: static !important;
        top: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding-right: 0 !important;
    }
}


/* ===== 4.1.3.30 mobile sticky preview for slope color selection ===== */
#okm-konf-slope .okm-mobile-preview-dock {
    display: none;
}

@media (max-width: 767px) {
    #okm-konf-slope .okm-mobile-preview-dock {
        display: block;
        position: -webkit-sticky;
        position: sticky;
        top: 8px;
        z-index: 60;
        margin: 0 0 14px;
        padding: 10px;
        background: rgba(255,255,255,.96);
        border: 1px solid #e7ebf1;
        border-radius: 16px;
        box-shadow: 0 10px 28px rgba(0,0,0,.12);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    #okm-konf-slope .okm-mobile-preview-dock__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 8px;
    }

    #okm-konf-slope .okm-mobile-preview-dock__title {
        font-size: 14px;
        line-height: 1.25;
        font-weight: 800;
        color: #1f2937;
    }

    #okm-konf-slope .okm-mobile-preview-dock__hint {
        font-size: 11px;
        line-height: 1.25;
        color: #6b7280;
        text-align: right;
    }

    #okm-konf-slope .okm-mobile-preview-dock__stage {
        height: 118px;
        min-height: 118px;
        aspect-ratio: auto;
        border-radius: 12px;
        background: linear-gradient(180deg, #fafafa, #f4f4f4);
    }

    #okm-konf-slope .okm-mobile-preview-dock .okm-preview-stack {
        width: 100%;
        height: 100%;
    }

    #okm-konf-slope .okm-mobile-preview-dock .okm-layer {
        pointer-events: none;
    }

    #okm-konf-slope .okm-step[data-step-section="3"] {
        overflow: visible;
    }
}


/* ===== conf_qm_5 mobile main preview behavior ===== */
#okm-konf-slope .okm-mobile-preview-dock {
    display: none !important;
}

#okm-konf-slope .okm-mobile-main-preview-dock {
    display: none;
}

@media (max-width: 767px) {
    #okm-konf-slope .okm-mobile-main-preview-dock[aria-hidden="false"] {
        display: block;
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 90;
        margin: 0 0 14px;
        padding: 0;
        background: #f4f6f8;
        border-radius: 18px;
    }

    #okm-konf-slope .okm-mobile-main-preview-dock .okm-preview-card {
        display: block !important;
        position: static !important;
        top: auto !important;
        margin: 0 !important;
        padding: 10px !important;
        background: #fff;
        border: 1px solid #e5e9ef;
        border-radius: 18px;
        box-shadow: 0 10px 28px rgba(0,0,0,.16);
    }

    #okm-konf-slope .okm-mobile-main-preview-dock .okm-preview-stage {
        width: 100%;
        height: 232px;
        min-height: 232px;
        aspect-ratio: auto;
        border-radius: 14px;
        background: #f8f8f8;
        overflow: hidden;
    }

    #okm-konf-slope .okm-mobile-main-preview-dock .okm-preview-stack {
        width: 100%;
        height: 100%;
    }

    #okm-konf-slope .okm-mobile-main-preview-dock .okm-layer {
        pointer-events: none;
    }

    #okm-konf-slope.okm-mobile-slope-preview-active .okm-step[data-step-section="3"] {
        overflow: visible !important;
    }

    #okm-konf-slope.okm-mobile-slope-preview-active .okm-step[data-step-section="3"] .okm-wizard-body {
        position: relative;
        z-index: 1;
    }

    #okm-konf-slope.okm-mobile-slope-preview-active .okm-step[data-step-section="3"] .okm-accordion__item,
    #okm-konf-slope.okm-mobile-slope-preview-active .okm-step[data-step-section="3"] .okm-grid-colors,
    #okm-konf-slope.okm-mobile-slope-preview-active .okm-step[data-step-section="3"] .okm-color-card {
        position: relative;
        z-index: 1;
    }

}

@media (max-width: 420px) {
    #okm-konf-slope .okm-mobile-main-preview-dock .okm-preview-stage {
        height: 218px;
        min-height: 218px;
    }
}


/* ===== conf_qm_5_5: live total in left "Ваш выбор" card ===== */
#okm-konf-slope .okm-live-selection__row--total {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #e8edf3;
}

#okm-konf-slope .okm-live-selection__row--total .okm-live-selection__label {
  color: #9a5a1f;
  font-weight: 800;
}

#okm-konf-slope .okm-live-selection__row--total .okm-live-selection__value {
  display: inline-flex;
  justify-content: flex-end;
  min-width: 110px;
  padding: 7px 10px;
  border-radius: 12px;
  background: #fff3e5;
  color: #1d2733;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 767px) {
  #okm-konf-slope .okm-live-selection__row--total .okm-live-selection__value {
    font-size: 16px;
    min-width: 96px;
  }
}
