/* Конфигуратор электроустановочных изделий: слева сцена (3D / чертёж), справа панель; на мобильных — друг под другом.
   Основа — стили конфигуратора компьютера (pc.css): инструменты, карточки, чертёж, подтверждение, смета */
.elcfg {
    grid-template-columns: minmax(0, 1fr) 380px;
    color: var(--color-whte, #fff);
}

/* Липкая колонка, высота сцены и плашка итога — общие (configurator-kit/kit.css: .cfg-view, .cfg-stage, .cfg-deal) */
.elcfg__stage {
    border-radius: 32px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 85%, rgba(151, 191, 116, .2), transparent 60%),
        linear-gradient(180deg, #2b2e2b 0%, #1d1f1d 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: background .6s;
}

.elcfg__stage.is-night {
    background:
        radial-gradient(ellipse at 50% 80%, rgba(80, 120, 255, .08), transparent 55%),
        linear-gradient(180deg, #111312 0%, #070808 100%);
}

/* Чертёж: синяя «калька» с сеткой */
.elcfg__stage.is-2d {
    background:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 24px 24px,
        #17324d;
}

.elcfg__stage > canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    display: block;
    cursor: grab;
    touch-action: none;
}

.elcfg__stage > canvas:active {
    cursor: grabbing;
}

.elcfg__stage.is-2d > canvas,
html.has-site-cursor .elcfg__stage.is-2d > canvas {
    cursor: default !important;
}

.elcfg__loader {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    transition: opacity .4s;
}

.elcfg__loader span {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .15);
    border-top-color: var(--color-alt, #97bf74);
    animation: elcfg-spin 1s linear infinite;
}

@keyframes elcfg-spin {
    to { transform: rotate(360deg); }
}

.elcfg--ready .elcfg__loader {
    opacity: 0;
    pointer-events: none;
}

.elcfg__nogl {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 56px;
    padding: 0 24px;
    text-align: center;
    color: rgba(255, 255, 255, .7);
}

.elcfg--nogl .elcfg__nogl {
    display: block;
}

.elcfg--nogl .elcfg__tools,
.elcfg--nogl .elcfg__loader {
    display: none;
}

/* Панель инструментов на сцене */
.elcfg__tools {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
}

.elcfg__tool {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(0, 0, 0, .3);
    color: #fff;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s, opacity .2s;
}

.elcfg__tool:hover:not(:disabled) {
    border-color: var(--color-alt, #97bf74);
    background: rgba(0, 0, 0, .5);
}

.elcfg__tool.is-active,
.elcfg__tool.is-active:hover:not(:disabled) {
    background: var(--color-alt, #97bf74);
    border-color: var(--color-alt, #97bf74);
    color: #1d1f1d;
}

.elcfg__tool:disabled {
    opacity: .35;
    cursor: default;
}

.elcfg__mode {
    display: flex;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(0, 0, 0, .3);
}

.elcfg__mode button {
    min-width: 34px;
    padding: 7px 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.elcfg__mode button.is-active {
    background: var(--color-alt, #97bf74);
    color: #1d1f1d;
}

.elcfg__icon-sun,
.elcfg__tool--night.is-active .elcfg__icon-moon {
    display: none;
}

.elcfg__tool--night.is-active .elcfg__icon-sun {
    display: block;
}

@keyframes elcfg-pulse {
    50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--st) 10%, transparent); }
}

@keyframes elcfg-fade {
    from { opacity: 0; transform: translateY(-4px); }
}

/* Подпись детали под курсором */
.elcfg__tip {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 4;
    max-width: 260px;
    padding: 6px 10px;
    border-radius: 10px;
    background: var(--color-alt, #97bf74);
    color: #1d1f1d;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}

.elcfg__tip[hidden] {
    display: none;
}

.elcfg__hint {
    position: absolute;
    left: 20px;
    bottom: 16px;
    z-index: 2;
    max-width: calc(100% - 40px);
    font-size: 13px;
    line-height: 1.35;
    color: rgba(255, 255, 255, .45);
    pointer-events: none;
}

/* Лист чертежа: подписи видов, размеры, выноски и штамп поверх холста */
.elcfg__sheet {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.elcfg__sheet[hidden] {
    display: none;
}

.elcfg__dim,
.elcfg__mark,
.elcfg__caption {
    position: absolute;
    left: 0;
    top: 0;
}

.elcfg__caption {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(232, 241, 255, .75);
    white-space: nowrap;
}

.elcfg__dim {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--color-alt, #97bf74);
    color: #1d1f1d;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.elcfg__mark {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-alt, #97bf74);
    color: #1d1f1d;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 2px #17324d;
}

.elcfg__stamp {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    border: 1px solid rgba(232, 241, 255, .6);
    font-size: 12px;
    line-height: 1.3;
    color: rgba(232, 241, 255, .9);
}

.elcfg__stamp[hidden] {
    display: none;
}

/* Строки штампа не переносятся: на снимке каждая рисуется одной строкой */
.elcfg__stamp > *,
.elcfg__legend > * {
    white-space: nowrap;
}

.elcfg__stamp.is-compact {
    gap: 1px;
    padding: 5px 7px;
    font-size: 9px;
    line-height: 1.25;
}

.elcfg__legend {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 4px 0;
    border-block: 1px solid rgba(232, 241, 255, .25);
}

.elcfg__legend:empty,
.elcfg__legend[hidden],
.elcfg__mark[hidden] {
    display: none;
}

/* Панель */
.elcfg__panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 22px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: #1d1f1d;
}

.elcfg__group {
    min-width: 0;
    border-radius: 18px;
    transition: box-shadow .3s, background .3s;
}

/* Деталь выбрали на сцене — раздел коротко подсвечивается */
.elcfg__group.is-flash {
    animation: elcfg-flash-sec 1.4s ease-out;
}

@keyframes elcfg-flash-sec {
    0%, 30% { box-shadow: 0 0 0 10px rgba(151, 191, 116, .18); background: rgba(151, 191, 116, .18); }
    100% { box-shadow: 0 0 0 10px rgba(151, 191, 116, 0); background: rgba(151, 191, 116, 0); }
}

.elcfg__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.elcfg__label {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--color-alt, #97bf74);
}

.elcfg__sublabel {
    margin: 4px 0 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
}

.elcfg__sublabel ~ .elcfg__sublabel {
    margin-top: 12px;
}

.elcfg__note {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, .55);
}

.elcfg__meta {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .55);
}

/* Карточки каталога «снимок + название + характеристики» в один ряд, что не влезло — свайпом */
.elcfg__cards {
    display: flex;
    gap: 8px;
    margin: -2px;
    padding: 2px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.elcfg__cards::-webkit-scrollbar {
    display: none;
}

/* Стрелка прокрутки ряда — на середине снимка (kit.css: .cfg-arrow) */
.cfg-rail:has(> .elcfg__cards) {
    --cfg-arrow-top: 21px;
}

.elcfg__card {
    flex: 0 0 104px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    scroll-snap-align: start;
    cursor: pointer;
}

.elcfg__card[hidden] {
    display: none;
}

.elcfg__card-img {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    margin-bottom: 3px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(#f1f3f0, #d9ddd6);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
    transition: box-shadow .2s, opacity .2s;
}

.elcfg__card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.elcfg__card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 0 var(--color-alt, #97bf74);
    transition: box-shadow .2s;
}

.elcfg__card:hover .elcfg__card-img::after {
    box-shadow: inset 0 0 0 2px var(--color-alt, #97bf74);
}

.elcfg__card.is-active .elcfg__card-img::after {
    box-shadow: inset 0 0 0 3px var(--color-alt, #97bf74);
}

.elcfg__card-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.elcfg__card.is-active .elcfg__card-name {
    color: var(--color-alt, #97bf74);
}

.elcfg__card-sub {
    font-size: 11px;
    line-height: 1.25;
    color: rgba(255, 255, 255, .5);
}

.elcfg__card-sub.is-why {
    color: #ff8a8e;
}

/* Недоступный вариант: приглушён, причина — вместо характеристик */
.elcfg__card.is-off {
    cursor: not-allowed;
}

.elcfg__card.is-off .elcfg__card-img {
    opacity: .4;
}

.elcfg__card.is-off:hover .elcfg__card-img::after {
    box-shadow: none;
}

.elcfg__row {
    display: flex;
    gap: 14px;
    margin-top: 8px;
}

.elcfg__link {
    padding: 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, .6);
    font: inherit;
    font-size: 12px;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .25);
    text-underline-offset: 3px;
    cursor: pointer;
}

.elcfg__link:hover {
    color: var(--color-alt, #97bf74);
}

/* Подтверждение замен при смене корпуса или платы */
.elcfg__confirm {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(242, 184, 75, .12);
    border: 1px solid rgba(242, 184, 75, .4);
    font-size: 13px;
    line-height: 1.4;
    animation: elcfg-fade .25s ease-out;
}

.elcfg__confirm[hidden] {
    display: none;
}

.elcfg__confirm ul {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0 10px;
    padding: 0;
    list-style: none;
}

.elcfg__confirm li span {
    font-weight: 600;
}

.elcfg__confirm li em {
    font-style: normal;
    color: #ff8a8e;
}

.elcfg__confirm li small {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, .55);
}

.elcfg__confirm-btns {
    display: flex;
    gap: 6px;
}

.elcfg__btn {
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.elcfg__btn--ok {
    border-color: var(--color-alt, #97bf74);
    background: var(--color-alt, #97bf74);
    color: #1d1f1d;
}

/* Сегменты и кружки отделок */
.elcfg__seg {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
}

.elcfg__opt {
    flex: 1 1 auto;
    padding: 8px 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.elcfg__opt:hover {
    background: rgba(255, 255, 255, .08);
}

.elcfg__opt.is-active {
    background: var(--color-alt, #97bf74);
    color: #1d1f1d;
}

.elcfg__swatches {
    display: flex;
    gap: 8px;
}

.elcfg__swatch {
    width: 32px;
    height: 32px;
    flex: none;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--sw);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 0 12px color-mix(in srgb, var(--sw) 55%, transparent);
    outline: 2px solid transparent;
    outline-offset: 3px;
    cursor: pointer;
    transition: outline-color .2s, transform .15s;
}

.elcfg__swatch:hover {
    transform: scale(1.08);
}

.elcfg__swatch.is-active {
    outline-color: var(--color-alt, #97bf74);
}

/* Смета */
.elcfg__spec {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.elcfg__spec td {
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    vertical-align: top;
}

.elcfg__spec td small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.3;
    color: rgba(255, 255, 255, .5);
}

.elcfg__spec td + td {
    padding-left: 12px;
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Низ широкой сцены занят плашкой итога — подсказка уходит наверх, под инструменты */
@container (min-width: 900px) {
    .elcfg__hint {
        top: 66px;
        right: 20px;
        left: auto;
        bottom: auto;
        max-width: 300px;
        text-align: right;
    }

}

@media (max-width: 1024px) {
    .elcfg {
        grid-template-columns: minmax(0, 1fr);
    }

}

/* Телефон: сцена, кнопки разделов и итог — в один экран; панель — окном поверх кнопок (kit.css: .cfg-panel) */
@media (max-width: 600px) {
    .elcfg .elcfg__stage {
        aspect-ratio: 1 / .88;
        border-radius: 20px;
    }

    .elcfg__hint {
        display: none;
    }

    .elcfg__tools {
        top: 10px;
        right: 10px;
        gap: 4px;
    }

    .elcfg__tool {
        width: 34px;
        height: 34px;
    }

    .elcfg__tool svg {
        width: 18px;
        height: 18px;
    }

    .elcfg__mode button {
        padding: 6px 9px;
        font-size: 12px;
    }

    .elcfg__panel .elcfg__card {
        flex-basis: 120px;
    }

    /* Подпись справа в шапке раздела — левее крестика окна */
    .elcfg__head {
        padding-right: 44px;
    }

    .elcfg__panel .elcfg__swatches {
        gap: 12px;
        margin-block: -9px;
        padding-block: 9px;
    }

    .elcfg__panel .elcfg__swatch {
        width: 46px;
        height: 46px;
    }

    .elcfg__dim {
        padding: 1px 4px;
        font-size: 9px;
    }

    .elcfg__caption {
        font-size: 9px;
    }

    .elcfg__mark {
        width: 16px;
        height: 16px;
        font-size: 9px;
    }

    /* Вкладки: три в ряд; у «Питания» и проблемных разделов — цветная точка */
    .elcfg .cfg-tab {
        position: relative;
    }

    .elcfg .cfg-tab--main {
        padding: 7px 4px 6px;
    }

    .elcfg .cfg-tab-ico {
        height: 22px;
    }

    .elcfg .cfg-tab-ico svg {
        width: 24px;
        height: 22px;
    }

    .elcfg .cfg-tab-sw {
        width: 20px;
        height: 20px;
    }

}

/* На чертеже подписи видов говорят сами за себя — подсказку прячем, чтобы не спорила со штампом */
.elcfg__stage.is-2d .elcfg__hint {
    display: none;
}

/* ---------- Своё: плитки рамок и клавиш, посты, фильтры, отделки, коробки ---------- */

/* Плитки «схема + подпись»: рамки по группам, вид клавиш, монтаж */
.elcfg__tiles {
    display: flex;
    gap: 6px;
    margin: -2px;
    padding: 2px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.elcfg__tiles::-webkit-scrollbar {
    display: none;
}

.elcfg__tiles--4 .elcfg__tile {
    flex: 1 1 0;
}

.elcfg__tile {
    flex: 0 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 4px 7px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 14px;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}

.elcfg__tile svg {
    width: 40px;
    height: 32px;
}

.elcfg__tile .is-post {
    fill: currentColor;
    fill-opacity: .18;
    stroke-width: 1;
}

.elcfg__tile small {
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    opacity: .75;
}

.elcfg__tile:hover:not(:disabled) {
    border-color: var(--color-alt, #97bf74);
}

.elcfg__tile.is-active {
    background: var(--color-alt, #97bf74);
    border-color: var(--color-alt, #97bf74);
    color: #1d1f1d;
}

.elcfg__tile.is-active small {
    opacity: 1;
}

.elcfg__tile:disabled {
    opacity: .35;
    cursor: default;
}

.elcfg__sublabel:first-of-type {
    margin-top: 0;
}

.elcfg__label--sub {
    margin-top: 14px;
}

.elcfg__label [data-el-swname] {
    margin-left: 6px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(255, 255, 255, .55);
}

.elcfg__seg + .elcfg__label,
.elcfg__tiles + .elcfg__label {
    margin-top: 14px;
}

.elcfg__opt svg {
    margin: -3px 4px -3px 0;
    vertical-align: middle;
}

.elcfg__seg--small {
    padding: 3px;
}

.elcfg__seg--small .elcfg__opt {
    padding: 5px 10px;
    font-size: 12px;
}

.elcfg__opt:disabled {
    opacity: .35;
    cursor: default;
    background: transparent;
}

.elcfg__head {
    align-items: center;
    margin-bottom: 8px;
}

.elcfg__head .elcfg__label {
    margin-bottom: 0;
}

/* Фильтр каталога и отделок — выпадающий список в шапке раздела */
.elcfg__filter select {
    height: 28px;
    padding: 0 28px 0 12px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%2397bf74' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") right 11px center no-repeat;
    color: #fff;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.elcfg__filter {
    min-width: 0;
}

.elcfg__filter select {
    max-width: 100%;
    text-overflow: ellipsis;
}

.elcfg__filter select:focus-visible {
    outline: 2px solid var(--color-alt, #97bf74);
    outline-offset: 2px;
}

.elcfg__filter option {
    background: #1d1f1d;
    color: #fff;
}

.elcfg__swatch[hidden],
.elcfg__card[hidden] {
    display: none !important;
}

/* Кружки отделок: металл и дерево — с бликом, рисунок задаёт --sw (градиент) */
.elcfg__swatches {
    margin: -7px -7px;
    padding: 7px 7px;
    overflow-x: auto;
    scrollbar-width: none;
}

.elcfg__swatches::-webkit-scrollbar {
    display: none;
}

.elcfg__swatch {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 -3px 6px rgba(0, 0, 0, .18);
}

/* Посты рамки — мини-схема панели: выбрать пост, затем механизм */
.elcfg__posts {
    display: grid;
    grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
    gap: 5px;
    max-width: calc(var(--cols, 3) * 86px);
    margin-bottom: 10px;
    padding: 6px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}

.elcfg__post {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    aspect-ratio: 1;
    max-height: 80px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 11px;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.elcfg__post svg {
    width: 22px;
    height: 22px;
    opacity: .85;
}

.elcfg__post b {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, .5);
}

.elcfg__post span {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.elcfg__post.is-blank span {
    color: rgba(255, 255, 255, .4);
}

.elcfg__post:hover {
    border-color: var(--color-alt, #97bf74);
}

.elcfg__post.is-sel {
    border-color: var(--color-alt, #97bf74);
    background: rgba(151, 191, 116, .14);
    box-shadow: inset 0 0 0 1px var(--color-alt, #97bf74);
}

/* Расчёт монтажа: строки коробок и заметки */
.elcfg__boxes {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .05);
    font-size: 13px;
    line-height: 1.35;
}

.elcfg__box-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.elcfg__box-line b {
    flex: none;
    font-variant-numeric: tabular-nums;
    color: var(--color-alt, #97bf74);
}

.elcfg__box-notes {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
}

.elcfg__box-notes b {
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
}

.elcfg__stage.is-night {
    background: linear-gradient(180deg, #0c0d0d 0%, #050606 100%);
}

/* На сцене — стена во весь кадр; фон виден только до загрузки */
.elcfg__stage {
    background: linear-gradient(180deg, #3a2a2c 0%, #251b1c 100%);
}

.elcfg__stage.is-2d {
    background:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 24px 24px,
        #17324d;
}

.elcfg__hint {
    color: rgba(255, 255, 255, .6);
    text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}

@media (max-width: 600px) {
    .elcfg__panel .elcfg__tile {
        flex-basis: 84px;
    }

    .elcfg__tiles--4 .elcfg__tile {
        flex: 1 1 0;
    }

    .elcfg__posts {
        max-width: none;
    }

    .elcfg__label [data-el-swname] {
        float: right;
    }

    /* Шапка раздела с фильтром — левее крестика окна */
    .elcfg__panel .elcfg__head [data-cfg-title] {
        padding-right: 0;
    }

    .elcfg__filter select {
        max-width: 150px;
    }
}

/* Смена кадра: копия прежнего кадра поверх сцены размывается и растворяется (crossfade в electro-configurator.js) */
.elcfg__fade {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}
