
    /* Цвета и скругления взяты один в один из макета шапки msk-su-V4.html,
       который, в свою очередь, снят с design/moeller_2/css/style.css.
       Страница должна выглядеть частью сайта, а не отдельной вкладкой. */
    .moeller-configurator {
        --blue: #0084eb;
        --blue-hover: #0082e6;
        --blue-soft: #eaf6ff;
        --blue-line: #b9e1ff;
        --nav-top: #008af5;
        --nav-mid: #0090ff;
        --nav-bot: #007cdb;
        --text-dark: #2c3e50;
        --text-gray: #667085;
        --line: #eaecf0;
        --bg: #f8fafc;
        --card: #ffffff;
        --shadow: none;
    }

    .moeller-dark .moeller-configurator {
        color-scheme: dark;
        --blue-soft: #16283a;
        --blue-line: #28577b;
        --text-dark: #e8edf5;
        --text-gray: #9aa8b8;
        --line: #2a3340;
        --bg: #0d1117;
        --card: #161d27;
        --shadow: none;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    /*
     * Фон — та же фотография, что на сайте (у .stage в msk-su-V4.html):
     * cover, привязка fixed, позиция 30% сверху. Без неё страница по бокам
     * от контента белая, а на сайте там видна картинка, и конфигуратор
     * сразу читается чужим.
     */
    .moeller-configurator {
        background: var(--bg) none 30% 0 / cover no-repeat fixed;
        color: var(--text-dark);
        font: 400 14px/1.5 'Open Sans', 'Inter', sans-serif;
        -webkit-font-smoothing: antialiased;
        min-height: 100vh;
    }

    .config-loader {
        position: fixed; inset: 0; z-index: 2147483647; display: grid;
        place-items: center; background: #f7f9fc; transition: opacity .24s ease;
    }
    .moeller-dark .moeller-configurator .config-loader { background: #0d141d; }
    .config-loader.is-done { opacity: 0; pointer-events: none; }
    .config-loader__box { width: min(300px, calc(100vw - 48px)); text-align: center; }
    .config-loader__logo { display: block; width: 180px; height: 65px; margin: 0 auto; object-fit: contain; }
    .config-loader__caption { margin-top: 12px; color: var(--text-gray); font-size: 13px; line-height: 1.4; }
    .config-loader__row { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
    .config-loader__track { flex: 1; height: 3px; overflow: hidden; background: #dbe4ed; }
    .moeller-dark .moeller-configurator .config-loader__track { background: #263445; }
    .config-loader__bar { display: block; width: 0; height: 100%; background: var(--blue); }
    .config-loader__percent { min-width: 42px; color: var(--blue); font-weight: 700; font-size: 14px; }

    /*
     * Шапка, панель и рабочая область стоят одной колонкой в 1320, а фон
     * идёт по бокам сплошной полосой сверху донизу. Раньше белая плашка
     * шапки тянулась во всю ширину окна, а содержимое — колонкой, и
     * конфигуратор выглядел уже шапки.
     */
    .info { background: transparent; }
    .info__in {
        max-width: 1320px; margin: 0 auto; padding: 12px 30px;
        background: var(--card); border-bottom: 1px solid var(--line);
        display: flex; flex-wrap: wrap; gap: 6px 28px;
        font-size: 13px; color: var(--text-gray);
    }
    .info a {
        color: inherit; text-decoration: none;
        display: inline-flex; align-items: center; gap: 7px;
        transition: color .18s;
    }
    .info a:hover { color: var(--blue); }

    .head { background: transparent; }
    .head__in {
        max-width: 1320px; margin: 0 auto; padding: 20px 30px;
        background: var(--card);
        display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    }
    .head__logo { display: block; width: 134px; height: auto; }
    .head__tag {
        max-width: 260px; font-size: 12px; line-height: 1.45; color: var(--text-gray);
    }
    .head__contacts { margin-left: auto; text-align: right; }
    .head__phone {
        display: block; font-size: 15px; font-weight: 700; color: var(--text-dark);
        text-decoration: none; line-height: 1.5;
    }
    .head__phone:hover { color: var(--blue); }
    .head__mail { font-size: 12.5px; color: var(--text-gray); }

    .nav { background: transparent; }
    .nav__in {
        max-width: 1320px; margin: 0 auto; padding: 0 22px;
        background: var(--blue);
        background: linear-gradient(180deg, var(--nav-top) 0%, var(--nav-mid) 50%, var(--nav-bot) 100%);
        display: flex; flex-wrap: wrap; align-items: stretch;
    }
    .nav a {
        display: inline-flex; align-items: center; padding: 14px 8px;
        color: #fff; text-decoration: none;
        font-size: 12.1px; font-weight: 700; letter-spacing: .3px;
        text-transform: uppercase; white-space: nowrap;
        transition: background .18s;
    }
    .nav a:hover { background: rgba(255, 255, 255, .13); }
    /* страница, на которой стоим — притоплена, как вкладка */
    .nav a.is-on { background: rgba(0, 0, 0, .16); }
    .nav a.is-hot {
        background: linear-gradient(180deg, #ff7b7b 0%, #ff6363 50%, #ee5252 100%);
    }
    .nav a.is-hot:hover { background: #ee5252; }

    /* ---------- раскладка ---------- */

    .wrap {
        max-width: 1380px; margin: 0 auto; padding: 24px 30px 34px;
        display: grid; grid-template-columns: minmax(0, 1fr) 372px;
        grid-template-areas: "preview controls"; gap: 22px;
        align-items: start; background: var(--bg);
    }
    @media (max-width: 980px) {
        .wrap { padding: 16px; grid-template-columns: 1fr; grid-template-areas: "preview" "controls"; }
    }

    .panel {
        grid-area: controls; display: grid; gap: 0; overflow: hidden;
        background: var(--card); border: 1px solid var(--line); border-radius: 0;
        box-shadow: var(--shadow);
    }
    .panel__intro { padding: 16px 20px; background: var(--card); }
    .panel__eyebrow {
        display: block; margin-bottom: 4px; color: var(--blue);
        font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    }
    .panel__title { font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--text-dark); }
    .panel__text { margin-top: 6px; color: var(--text-gray); font-size: 14px; line-height: 1.5; }

    .card {
        background: var(--card); border: 0; border-top: 1px solid var(--line);
    }
    .card__h {
        padding: 17px 20px 12px; display: flex; align-items: center; gap: 10px;
        font-size: 15px; font-weight: 700; color: var(--text-dark);
    }
    .card__step {
        width: 25px; height: 25px; display: inline-flex; align-items: center; justify-content: center;
        border-radius: 2px; background: var(--blue-soft); color: var(--blue); font-size: 12px;
    }
    .card__b { padding: 0 20px 20px; }
    .material-card > summary { cursor: pointer; list-style: none; padding: 16px 20px; }
    .material-card > summary::-webkit-details-marker { display: none; }
    .material-card > summary:hover { background: var(--blue-soft); }
    .material-card > summary:focus-visible, .series-info > summary:focus-visible {
        outline: 2px solid var(--blue); outline-offset: -3px;
    }
    .material-card[open] > summary { color: var(--blue); }
    .card__label { flex: 1; min-width: 0; display: grid; gap: 3px; }
    .card__selected { font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--text-gray); }
    .card__chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 3px 4px 8px; }
    .material-card[open] .card__chevron { transform: rotate(225deg); margin-bottom: -3px; }
    .series-info { margin: -4px 0 16px; font-size: 13px; line-height: 1.5; color: var(--text-gray); }
    .series-info > summary { cursor: pointer; color: var(--blue); padding: 5px 0; }
    .series-info p { margin: 6px 0; }
    .series-info b { color: var(--text-dark); }
    .mobile-series-heading { display: none; }
    @media (max-width: 767px) {
        #catTabs { display: none; }
        .mobile-series-heading {
            display: block;
            grid-column: 1 / -1;
            margin: 8px 0 2px;
            padding: 9px 10px;
            border-left: 3px solid var(--blue);
            background: var(--blue-soft);
            color: var(--text-dark);
            font-size: 13px;
            font-weight: 700;
        }
    }
    .panel__note { margin: 0; padding: 16px 20px; border-top: 1px solid var(--line); }

    /* ---------- образцы ---------- */

    .tabs { display: flex; gap: 4px; margin-bottom: 15px; padding: 4px; border-radius: 2px; background: #f0f4f8; }
    .tab {
        flex: 1; min-height: 39px; padding: 8px 9px; border: 0; border-radius: 2px;
        background: transparent; color: var(--text-gray);
        font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
        transition: color .18s, background .18s, box-shadow .18s;
    }
    .tab:hover { color: var(--blue); }
    .tab.is-on {
        background: var(--card); color: var(--blue); box-shadow: 0 2px 8px rgba(31,54,76,.10);
    }

    .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; align-items: stretch; }
    .sw {
        position: relative; min-width: 0; width: 100%; align-self: stretch;
        display: flex; flex-direction: column; justify-content: flex-start;
        padding: 4px 4px 9px; border: 1px solid transparent; border-radius: 2px;
        background: none; font: inherit; cursor: pointer; text-align: left;
        transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
    }
    .sw:hover { border-color: var(--blue-line); background: var(--bg); }
    .sw.is-on { border-color: var(--blue); background: var(--blue-soft); box-shadow: none; }
    .sw.is-on::after {
        content: "✓"; position: absolute; top: 9px; right: 9px;
        width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
        background: var(--blue); color: #fff; font-size: 13px; font-weight: 800;
        box-shadow: none;
    }
    .sw__i {
        display: block; width: 100%; aspect-ratio: 1.2; object-fit: cover;
        border: 1px solid var(--line); border-radius: 0; background: var(--bg);
    }
    /* Reserve three lines; allow longer names without clipping. Grid rows
       stretch uniformly and the finish stays aligned below the full name. */
    .sw__n {
        display: block; flex: 1;
        margin-top: 7px; padding: 0 2px; font-size: 12.5px; font-weight: 700;
        line-height: 1.25; min-height: 3.75em; color: var(--text-dark);
        overflow-wrap: anywhere;
    }
    .sw.is-on .sw__n { color: var(--blue); }
    .sw__f {
        display: block; padding: 0 2px; margin-top: 2px; font-size: 12px;
        font-weight: 400; line-height: 1.25; color: var(--text-gray);
    }

    /* ---------- сцена ---------- */

    /* Картинка остаётся на виду, пока листаешь образцы — иначе на длинном
       списке декоров не видно, что меняется. */
    .stage {
        grid-area: preview; position: sticky; top: 0; display: flex; flex-direction: column;
        background: var(--card); border: 1px solid var(--line);
        border-radius: 0; box-shadow: var(--shadow); overflow: hidden;
    }
    @media (min-width: 981px) {
        .stage__dashboard { order: -1; border-bottom: 1px solid var(--line); }
    }
    @media (max-width: 980px) { .stage { position: static; } }

    /* Без боковых полей: фотография занимает всю ширину зоны показа.
       Отступы оставляли по бокам серо-голубые полосы, и картинка
       выглядела вставленной в рамку, а не открытой во весь экран. */
    .stage__view {
        position: relative; padding: 0; background: #e8eef3;
        display: block;
    }
    .stage__canvas {
        position: relative; width: 100%; display: flex; justify-content: center;
        overflow: hidden; background: #dfe7ed;
    }
    .stage__lightingbar {
        display: flex; justify-content: flex-end; padding: 10px 18px;
        border-top: 1px solid var(--line); background: #fff;
    }
    .light-switcher {
        display: flex; max-width: 100%; align-items: center; gap: 12px;
        color: var(--text-dark);
    }
    .light-switcher__label { font-size: 12px; font-weight: 700; color: var(--text-gray); }
    .light-switcher__modes {
        display: inline-grid; grid-template-columns: repeat(3,72px); gap: 2px;
        padding: 3px; border-radius: 4px; background: #edf3f8;
    }
    .light-mode {
        min-height: 32px; padding: 0 8px; border: 0; border-radius: 2px;
        background: transparent; color: var(--text-gray); font: inherit;
        font-size: 12px; font-weight: 700; cursor: pointer;
    }
    .light-mode:hover { color: var(--blue); background: rgba(255,255,255,.65); }
    .light-mode.is-on { color: #fff; background: var(--blue); }
    .night-controls {
        display: none; align-items: center; gap: 12px; padding-left: 12px;
        border-left: 1px solid var(--line);
    }
    .light-switcher.is-night .night-controls { display: flex; }
    .night-control { display: grid; grid-template-columns: 64px 105px; align-items: center; gap: 7px; }
    .night-control label { font-size: 11px; color: var(--text-gray); }
    .night-control input { width: 105px; accent-color: var(--blue); cursor: pointer; }
    .glass-editor {
        position: absolute; z-index: 5; inset: 0; display: none;
        overflow: visible; pointer-events: none;
    }
    .glass-editor.is-on { display: block; }
    .glass-editor polygon {
        fill: rgba(0,132,232,.13); stroke: #078be7; stroke-width: 3;
        stroke-dasharray: 10 7; vector-effect: non-scaling-stroke;
    }
    .glass-editor circle {
        fill: #078be7; stroke: #fff; stroke-width: 4;
        vector-effect: non-scaling-stroke; pointer-events: all; cursor: move;
    }
    .glass-editor text {
        fill: #fff; font: 700 18px Arial, sans-serif; text-anchor: middle;
        dominant-baseline: central; pointer-events: none;
    }
    .glass-tools { display:none; align-items:center; gap:6px; margin-left:10px; }
    .glass-tools.is-on { display:flex; }
    .glass-tool {
        min-height:32px; padding:0 10px; border:1px solid var(--line);
        background:#fff; color:var(--text-dark); font-family:inherit;
        font-size:11px; font-weight:700; cursor:pointer;
    }
    .glass-tool:hover, .glass-tool.is-on { border-color:var(--blue); color:var(--blue); }
    .glass-tool--main { color:#fff; border-color:var(--blue); background:var(--blue); }
    @media (max-width:620px) {
        .stage__lightingbar { justify-content: stretch; padding: 8px 10px; }
        .light-switcher { width: 100%; flex-wrap: wrap; gap: 7px; }
        .light-switcher__label { width: 100%; }
        .light-switcher__modes { flex: 1; grid-template-columns: repeat(3,1fr); }
        .night-controls { width: 100%; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--line); }
        .night-control { flex: 1; grid-template-columns: 62px 1fr; }
        .night-control input { width: 100%; }
        .light-mode { min-height: 31px; font-size: 11px; }
    }
    /* Final lighting selector: one stable row at every time of day. */
    .stage__lightingbar { padding: 14px 18px; justify-content: stretch; }
    .light-switcher { width: 100%; justify-content: space-between; gap: 16px; }
    .light-switcher__label { font-size: 12px; font-weight: 400; width: auto; }
    .light-switcher__modes { grid-template-columns: repeat(3, 94px); padding: 4px; gap: 3px; border-radius: 6px; }
    .light-mode { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; border-radius: 4px; transition: background-color .18s, color .18s; }
    .light-mode svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
    .light-mode:focus-visible { outline: 2px solid #183c5b; outline-offset: 3px; }
    @media (max-width: 680px) {
        .light-switcher { flex-wrap: wrap; justify-content: center; gap: 9px; }
        .light-switcher__label { width: 100%; text-align: center; }
        .light-switcher__modes { width: 100%; max-width: 360px; grid-template-columns: repeat(3, 1fr); flex: none; }
    }
    #scene {
        display: block; width: auto; max-width: 100%;
        max-height: calc(100vh - 210px); height: auto;
    }
    #sceneFade {
        display: none;
    }
    .stage__load {
        position: absolute; inset: 0; display: flex; align-items: center;
        justify-content: center; gap: 10px;
        background: var(--card); font-size: 13px; color: var(--text-gray);
    }
    .stage__load.is-off { display: none; }
    .spin {
        width: 15px; height: 15px; border: 2px solid var(--line);
        border-top-color: var(--blue); border-radius: 50%; animation: sp .7s linear infinite;
    }
    @keyframes sp { to { transform: rotate(360deg); } }

    .stage__bar {
        position: relative; display: flex; align-items: center; justify-content: space-between;
        flex-wrap: wrap; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line);
        background: #fff;
    }
    .pick-label {
        flex: 0 0 auto; color: var(--text-dark); font-size: 12.5px; font-weight: 700;
    }
    .selection-summary { flex: 1 1 260px; min-width: 0; }
    .selection-summary .pick-label { margin-bottom: 5px; }
    .selection-summary .pick { justify-content: flex-start; gap: 3px 12px; }
    .selection-summary .pick span { padding: 0; border: 0; white-space: normal; }
    .pick { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; font-size: 12.5px; }
    .pick span {
        padding: 0 12px; border: 0; border-left: 1px solid var(--line);
        border-radius: 0; background: transparent; white-space: nowrap;
    }
    .pick i { font-style: normal; color: var(--text-gray); }
    .pick b { color: var(--text-dark); font-weight: 700; }
    .photo-actions {
        position: static; flex: 0 0 auto;
        width: auto; max-width: 100%; transform: none;
        display: flex; align-items: center; gap: 6px; padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0; box-shadow: none;
        white-space: nowrap;
    }
    .photo-actions .btn { min-height: 38px; border-radius: 2px; box-shadow: none; padding: 0 12px; font-size: 13px; }
    .photo-actions #resetBtn { border-color: transparent; background: transparent; color: var(--text-gray); font-weight: 500; }
    .photo-actions #resetBtn:hover { color: var(--blue); background: var(--blue-soft); }
    .photo-actions .btn:hover { transform: none; }
    .photo-actions #saveBtn {
        background: var(--blue);
        transition: border-color .28s ease, box-shadow .28s ease,
                    transform .28s ease, filter .28s ease;
    }
    .photo-actions #saveBtn:hover {
        background: var(--blue); border-color: var(--blue);
        transform: translateY(-2px); filter: brightness(1.08);
        box-shadow: 0 8px 20px rgba(0,132,235,.34);
    }
    .photo-actions #saveBtn:active { transform: translateY(0); box-shadow: 0 3px 9px rgba(0,132,235,.24); }
    .photo-actions .btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
    .action-icon { width: 14px; height: 14px; flex: none; fill: currentColor; }

    /* Desktop dashboard: three balanced zones in one compact row. */
    .stage__dashboard {
        display: grid; grid-template-columns: minmax(240px, 1fr) auto auto;
        align-items: center; gap: 18px; padding: 16px 18px; background: #fff;
    }
    .stage__dashboard .stage__bar { display: contents; }
    .stage__dashboard .selection-summary { grid-column: 1; grid-row: 1; }
    .stage__dashboard .stage__lightingbar { padding: 0; border: 0; grid-column: 2; grid-row: 1; }
    .stage__dashboard .light-switcher { justify-content: flex-start; gap: 12px; }
    .stage__dashboard .light-switcher__modes { grid-template-columns: repeat(3, minmax(64px, 1fr)); }
    .stage__dashboard .photo-actions { grid-column: 3; grid-row: 1; }
    @media (max-width: 1100px) {
        .stage__dashboard { grid-template-columns: minmax(0, 1fr) auto; padding: 14px; }
        .stage__dashboard .selection-summary { grid-column: 1 / -1; grid-row: 1; }
        .stage__dashboard .stage__lightingbar { grid-column: 1; grid-row: 2; }
        .stage__dashboard .photo-actions { grid-column: 2; grid-row: 2; justify-content: flex-end; }
    }
    @media (max-width: 720px) {
        .stage__dashboard { grid-template-columns: 1fr; gap: 10px; }
        .stage__dashboard .selection-summary,
        .stage__dashboard .stage__lightingbar,
        .stage__dashboard .photo-actions { grid-column: 1; }
        .stage__dashboard .selection-summary { grid-row: 1; }
        .stage__dashboard .stage__lightingbar { grid-row: 2; }
        .stage__dashboard .photo-actions { grid-row: 3; }
    }

    .btn {
        display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 17px;
        border: 1px solid var(--line); border-radius: 2px; background: var(--card);
        color: var(--text-dark); font: inherit; font-size: 14px; font-weight: 700;
        cursor: pointer; transition: border-color .18s, color .18s, background .18s, transform .18s, box-shadow .18s;
    }
    .btn:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
    /* второстепенная кнопка: она про кухню макета, а не про выбор декора */
    .btn--ghost {
        border-color: transparent; color: var(--text-gray);
        font-weight: 600; padding: 0 12px;
    }
    .btn--ghost:hover { border-color: var(--line); color: var(--text-dark); }
    .btn--main {
        border-color: var(--blue); color: #fff;
        background: linear-gradient(180deg, var(--nav-top) 0%, var(--nav-mid) 50%, var(--nav-bot) 100%);
        box-shadow: 0 5px 14px rgba(0,132,235,.22);
    }
    .btn--main:hover { color: #fff; background: var(--blue-hover); border-color: var(--blue-hover); }

    .note { margin: 14px 0 0; padding: 11px 12px; border-radius: 2px; background: #f5f8fb; font-size: 12.5px; line-height: 1.5; color: var(--text-gray); }
    .note.panel__note { margin: 0; padding: 16px 20px; border-radius: 0; }

    @media (max-width: 620px) {
        .wrap { padding: 0; gap: 12px; }
        .panel, .stage { border-radius: 0; border-left: 0; border-right: 0; }
        .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .photo-actions { padding: 0; gap: 6px; width: 100%; justify-content: flex-end; }
        .photo-actions #saveBtn { flex: 1; justify-content: center; }
        .photo-actions .btn { min-height: 38px; padding: 0 11px; font-size: 12.5px; }
        .stage__bar { gap: 7px 10px; padding: 9px 10px 10px; flex-wrap: wrap; }
        .pick span { padding: 0 8px; }
    }

    /* Тёмная тема приходит от переключателя в шапке родительского сайта. */
    .moeller-dark .moeller-configurator {
        background-color: var(--bg);
        background-image: linear-gradient(rgba(5, 11, 18, .72), rgba(5, 11, 18, .72)), none;
    }
    .moeller-dark .moeller-configurator .panel__intro {
        background: var(--card);
    }
    .moeller-dark .moeller-configurator .tabs { background: #111822; }
    .moeller-dark .moeller-configurator .sw:hover { background: #1b2733; }
    .moeller-dark .moeller-configurator .stage__view { background: #111822; }
    .moeller-dark .moeller-configurator .stage__canvas { background: #0f151d; }
    .moeller-dark .moeller-configurator .stage__bar { background: var(--card); }
    .moeller-dark .moeller-configurator .stage__dashboard {
        background: var(--card);
        border-color: var(--line);
    }
    .moeller-dark .moeller-configurator .stage__dashboard .stage__lightingbar {
        background: transparent;
    }
    .moeller-dark .moeller-configurator .light-switcher__modes {
        background: #111822;
    }
    .moeller-dark .moeller-configurator .photo-actions {
        background: transparent;
        box-shadow: none;
    }
    @media (max-width: 800px) {
    }
    .btn.is-on { background: #ff2d6f; border-color: #ff2d6f; color: #fff; }


/* Local geometry proposal: photograph and independently scrolling controls. */
.wrap { grid-template-columns:minmax(0,1fr) 390px; gap:20px; }
.stage { position:static; height:100%; justify-content:center; background:var(--card); }
.panel { display:flex; flex-direction:column; min-height:0; }
.panel__intro { flex:none; padding:18px 20px 12px; }
.panel__text { font-size:12px; }
.layout-light { flex:none; padding:0 20px 16px; border-bottom:1px solid var(--line); }
.layout-light .light-switcher { display:block; }
.layout-light .light-switcher__label { display:none; }
.layout-light .light-switcher__modes { display:grid; grid-template-columns:repeat(3,1fr); }
.layout-light .light-mode { transition:background-color .4s ease,color .4s ease,box-shadow .4s ease; min-width:0; }
.layout-light .light-mode.is-on { animation:light-button-pulse .55s ease-out; }
@keyframes light-button-pulse { 0% { box-shadow:0 0 0 0 rgba(0,149,255,.45); } 100% { box-shadow:0 0 0 7px rgba(0,149,255,0); } }
@media(prefers-reduced-motion:reduce) { .layout-light .light-mode { transition:none; } .layout-light .light-mode.is-on { animation:none; } }
.layout-materials { min-height:0; overflow-y:auto; overscroll-behavior-y:auto; scrollbar-width:thin; scrollbar-color:var(--blue) transparent; }
.layout-materials .sw__n { min-height:2.5em; font-size:12px; }
.layout-materials .sw__f { font-size:11px; }
.layout-materials .panel__note { margin:0; padding:14px 20px; font-size:11px; }
.layout-bottom { flex:none; padding:14px 20px; border-top:1px solid var(--line); background:var(--card); }
.layout-bottom .selection-summary { margin-bottom:12px; }
.layout-bottom .pick { font-size:11px; gap:3px 8px; }
.layout-bottom .photo-actions { display:flex; width:100%; gap:8px; }
.layout-bottom #saveBtn { flex:1; justify-content:center; }
@media(min-width:981px) {
 .wrap { grid-template-columns:minmax(0,790px) 390px; height:745px; min-height:0; padding-top:16px; padding-bottom:16px; box-sizing:border-box; justify-content:center; }
 .panel,.stage { height:100%; }
 .stage__view { width:100%; height:100%; min-height:0; overflow:hidden; }
 .stage__canvas { width:100%; height:100%; max-height:none; }
}
@media(max-width:980px) {
 .wrap { grid-template-columns:1fr; height:auto; }
 .stage { height:auto; }
 .layout-materials { overflow:visible; }
 .layout-light .light-switcher__label { text-align:center; width:100%; }
 .layout-light .light-switcher__modes { width:100%; box-sizing:border-box; }
 .layout-light .light-mode { min-height:42px; justify-content:center; }
 .layout-bottom { position:sticky; bottom:0; z-index:5; }
}


/* OkayCMS integration: this page uses the site's real header and footer. */
body.ConfiguratorView #promo_calc,
body.ConfiguratorView .breadcrumb,
body.ConfiguratorView .sidebar { display:none !important; }
body.ConfiguratorView #fn_content { width:100%; max-width:none; padding:0; margin:0; }
body.ConfiguratorView #fn_content > .content_container { width:100%; max-width:none; flex:1 1 100%; padding:0; }
.moeller-configurator { width:100%; min-height:0; color:var(--text-dark); background:var(--bg); }
.moeller-configurator .action-icon { width:16px; height:16px; fill:currentColor; flex:0 0 auto; }
.moeller-configurator .light-mode svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
@media (min-width:1400px) {
  .moeller-configurator .wrap { grid-template-columns:minmax(0,910px) 390px; height:853px; }
}
@media (min-width:981px) {
  /* The swatches are generated from the approved data set. Reserve their
     final space before JavaScript fills the grid so lower controls do not
     jump out of the viewport during first paint. */
  .moeller-configurator #sillGrid:empty { min-height:816px; }
}
