@import url("./typography.css");

:root {
    --paper: #f6f4ee;
    --stage: #e7e3dc;
    --panel: #ffffff;
    --ink: #1d2620;
    --muted: #6b746e;
    --line: #d7ddd7;
    --green: #1f4d3d;
    --green-soft: #e8f0ec;
    --orange: #de6b43;
    --shadow: 0 18px 55px rgba(31, 38, 34, 0.12);
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--tm-font-body);
    overflow: hidden;
}

.app-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: block;
    padding: 0;
    background: #fff;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.42s ease, visibility 0.42s ease;
}

.app-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-exact-loader {
    position: absolute;
    top: 51%;
    left: 50%;
    width: 190px;
    display: grid;
    justify-items: center;
    gap: 12px;
    color: rgba(31, 38, 34, 0.56);
    font-size: 20px;
    line-height: 1;
    font-weight: 600;
    transform: translate(-50%, -50%);
}

.video-exact-loader i {
    position: relative;
    display: block;
    width: 190px;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(31, 38, 34, 0.085);
}

.video-exact-loader i::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 68px;
    border-radius: inherit;
    background: rgba(31, 38, 34, 0.42);
    animation: video-exact-loader-line 1.2s ease-in-out infinite;
}

.preloader-video-shell {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 35% 42%, rgba(255, 255, 255, 0.96), rgba(247, 244, 239, 0.9) 36%, rgba(226, 222, 214, 0.86) 100%),
        #f9f7f3;
}

.preloader-video-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0), rgba(31, 38, 34, 0.05));
    animation: preloader-video-wash 2.4s ease-in-out infinite;
}

.preloader-video-help {
    position: absolute;
    top: 54px;
    left: 18px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #375346;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 26px rgba(31, 38, 34, 0.08);
    font-size: 18px;
    font-weight: 700;
}

.preloader-video-brand {
    position: absolute;
    top: 56px;
    left: 104px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.preloader-video-back {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #285241;
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
}

.preloader-video-wordmark {
    position: relative;
    color: #1e2b24;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.preloader-video-wordmark::first-letter {
    color: rgba(255, 255, 255, 0.92);
}

.preloader-video-wordmark i {
    position: absolute;
    right: -10px;
    bottom: 1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid #2b5a48;
    border-left-color: transparent;
}

.preloader-video-save {
    position: absolute;
    top: 148px;
    left: 16px;
    display: grid;
    justify-items: center;
    gap: 5px;
    color: #365042;
    font-size: 11px;
    line-height: 1.2;
}

.preloader-video-save span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #285241;
    box-shadow: 0 10px 24px rgba(31, 38, 34, 0.08);
}

.preloader-video-save span::before {
    content: "";
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-top-width: 4px;
    border-radius: 2px;
}

.preloader-video-stage {
    position: absolute;
    left: clamp(140px, 17vw, 250px);
    top: 27vh;
    width: min(55vw, 790px);
    height: min(48vh, 390px);
    opacity: 0.92;
    filter: saturate(0.95);
    animation: preloader-video-scene-settle 1.85s ease-in-out infinite alternate;
}

.preloader-video-stage span {
    position: absolute;
    display: block;
}

.preloader-video-haze {
    inset: 7% 1% 0;
    border-radius: 45%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.36) 40%, rgba(255, 255, 255, 0) 72%);
    filter: blur(12px);
}

.preloader-video-wall {
    border: 7px solid rgba(255, 255, 255, 0.94);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 18px 56px rgba(31, 38, 34, 0.08);
}

.preloader-video-wall-back {
    left: 19%;
    top: 12%;
    width: 56%;
    height: 32%;
    border-bottom: 0;
    transform: perspective(480px) rotateX(6deg);
}

.preloader-video-wall-left {
    left: 10%;
    top: 26%;
    width: 13%;
    height: 49%;
    transform: skewY(-8deg);
}

.preloader-video-wall-right {
    right: 8%;
    top: 25%;
    width: 14%;
    height: 50%;
    transform: skewY(8deg);
}

.preloader-video-floor {
    left: 19%;
    top: 48%;
    width: 61%;
    height: 34%;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.18));
    transform: perspective(520px) rotateX(58deg);
    transform-origin: top center;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.preloader-video-sweep {
    top: 4%;
    bottom: 6%;
    left: -16%;
    width: 18%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0));
    filter: blur(8px);
    transform: skewX(-13deg);
    animation: preloader-video-sweep 1.9s ease-in-out infinite;
}

.preloader-video-card {
    position: absolute;
    right: 28px;
    top: 45vh;
    width: min(350px, 28vw);
    min-height: 190px;
    padding: 28px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 24px 70px rgba(31, 38, 34, 0.08);
    opacity: 0.72;
}

.preloader-video-card strong {
    display: block;
    width: 185px;
    height: 20px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: rgba(31, 77, 61, 0.18);
}

.preloader-video-card span {
    display: block;
    width: 78%;
    height: 10px;
    margin: 8px 0;
    border-radius: 999px;
    background: rgba(31, 77, 61, 0.1);
}

.preloader-video-card span:nth-of-type(2) {
    width: 64%;
}

.preloader-video-card div {
    width: 100%;
    height: 42px;
    margin-top: 24px;
    border-radius: 6px;
    background: rgba(40, 82, 65, 0.12);
}

.preloader-panel {
    width: min(430px, 90vw);
    display: grid;
    justify-items: center;
    gap: 15px;
    color: var(--ink);
    text-align: center;
}

.preloader-logo-wrap {
    padding: 9px 13px;
    border-radius: 6px;
    background: var(--green);
    box-shadow: 0 18px 44px rgba(31, 38, 34, 0.16);
}

.preloader-logo {
    display: block;
    width: clamp(92px, 14vw, 132px);
    height: auto;
    object-fit: contain;
}

.preloader-scene {
    position: relative;
    width: min(370px, 82vw);
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.28),
        0 24px 60px rgba(31, 38, 34, 0.12);
    animation: preloader-scene-float 3.2s ease-in-out infinite;
}

.preloader-scene span {
    position: absolute;
    display: block;
}

.preloader-glow {
    inset: 28% 18% 18%;
    background: rgba(255, 255, 255, 0.45);
    filter: blur(28px);
}

.preloader-back-wall {
    left: 18%;
    top: 18%;
    width: 64%;
    height: 40%;
    border: 2px solid rgba(31, 77, 61, 0.18);
    outline: 1px solid rgba(255, 255, 255, 0.72);
    border-bottom: 0;
    transform: perspective(320px) rotateX(9deg);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.42);
    animation: preloader-wall-draw 1.35s ease both;
}

.preloader-floor {
    left: 19%;
    top: 54%;
    width: 62%;
    height: 28%;
    border: 2px solid rgba(31, 77, 61, 0.14);
    border-top-color: rgba(31, 77, 61, 0.22);
    transform: perspective(360px) rotateX(58deg);
    transform-origin: top center;
    background: rgba(255, 255, 255, 0.24);
    animation: preloader-floor-in 1.2s 0.16s ease both;
}

.preloader-side {
    top: 24%;
    width: 12%;
    height: 44%;
    border: 2px solid rgba(31, 77, 61, 0.16);
    background: rgba(255, 255, 255, 0.28);
    animation: preloader-side-in 1.1s 0.26s ease both;
}

.preloader-side-left {
    left: 14%;
    transform: skewY(-16deg);
}

.preloader-side-right {
    right: 14%;
    transform: skewY(16deg);
}

.preloader-unit {
    bottom: 20%;
    width: 13%;
    height: 35%;
    border: 1px solid rgba(31, 77, 61, 0.36);
    border-radius: 2px 2px 0 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 246, 239, 0.66)),
        rgba(255, 255, 255, 0.68);
    box-shadow: 0 14px 30px rgba(31, 38, 34, 0.08);
    transform-origin: bottom center;
    animation: preloader-unit-rise 1.2s ease both;
}

.preloader-unit::after {
    content: "";
    position: absolute;
    top: 12%;
    bottom: 10%;
    left: 50%;
    width: 1px;
    background: rgba(31, 77, 61, 0.16);
}

.preloader-unit-1 {
    left: 27%;
    animation-delay: 0.38s;
}

.preloader-unit-2 {
    left: 40%;
    animation-delay: 0.52s;
}

.preloader-unit-3 {
    left: 53%;
    animation-delay: 0.66s;
}

.preloader-unit-4 {
    left: 66%;
    animation-delay: 0.8s;
}

.preloader-scan {
    top: 10%;
    bottom: 10%;
    left: -22%;
    width: 20%;
    background: linear-gradient(90deg, rgba(222, 107, 67, 0), rgba(222, 107, 67, 0.2), rgba(255, 255, 255, 0));
    transform: skewX(-15deg);
    animation: preloader-scan 2.1s 0.8s ease-in-out infinite;
}

.preloader-ring {
    width: 54px;
    height: 54px;
    border: 3px solid rgba(31, 77, 61, 0.16);
    border-top-color: var(--green);
    border-right-color: var(--orange);
    border-radius: 50%;
    animation: preloader-spin 0.82s linear infinite;
}

.preloader-copy {
    display: grid;
    gap: 5px;
}

.preloader-copy strong {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.preloader-copy span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.3;
}

.preloader-track {
    width: 100%;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(31, 77, 61, 0.12);
}

.preloader-track span {
    display: block;
    width: 44%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--orange));
    animation: preloader-track 1.18s ease-in-out infinite;
}

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

@keyframes video-exact-loader-line {
    0% {
        transform: translateX(-78px);
    }

    55% {
        transform: translateX(128px);
    }

    100% {
        transform: translateX(206px);
    }
}

@keyframes preloader-video-wash {
    0%,
    100% {
        opacity: 0.66;
        transform: translateX(-8%);
    }

    50% {
        opacity: 1;
        transform: translateX(8%);
    }
}

@keyframes preloader-video-scene-settle {
    from {
        opacity: 0.78;
        transform: translate3d(-8px, 8px, 0) scale(0.985);
    }

    to {
        opacity: 0.96;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes preloader-video-sweep {
    0% {
        transform: translateX(0) skewX(-13deg);
        opacity: 0;
    }

    18% {
        opacity: 0.7;
    }

    100% {
        transform: translateX(760%) skewX(-13deg);
        opacity: 0;
    }
}

@keyframes preloader-scene-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes preloader-wall-draw {
    from {
        clip-path: inset(0 18% 0 18%);
        opacity: 0.58;
    }

    to {
        clip-path: inset(0);
        opacity: 1;
    }
}

@keyframes preloader-floor-in {
    from {
        opacity: 0.45;
        transform: perspective(360px) rotateX(58deg) translateY(10px) scaleX(0.86);
    }

    to {
        opacity: 1;
        transform: perspective(360px) rotateX(58deg) translateY(0) scaleX(1);
    }
}

@keyframes preloader-side-in {
    from {
        opacity: 0.34;
        clip-path: inset(0 0 24% 0);
    }

    to {
        opacity: 1;
        clip-path: inset(0);
    }
}

@keyframes preloader-unit-rise {
    0% {
        opacity: 0.24;
        transform: translateY(16px) scaleY(0.68);
    }

    65% {
        opacity: 1;
        transform: translateY(-2px) scaleY(1.03);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

@keyframes preloader-scan {
    0% {
        transform: translateX(0) skewX(-15deg);
    }

    100% {
        transform: translateX(650%) skewX(-15deg);
    }
}

@keyframes preloader-track {
    0% {
        transform: translateX(-110%);
    }

    55% {
        transform: translateX(75%);
    }

    100% {
        transform: translateX(235%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-preloader,
    .video-exact-loader i::after,
    .preloader-video-shell::before,
    .preloader-video-stage,
    .preloader-video-sweep,
    .preloader-ring,
    .preloader-scene,
    .preloader-back-wall,
    .preloader-floor,
    .preloader-side,
    .preloader-unit,
    .preloader-scan,
    .preloader-track span {
        animation: none;
        transition: none;
    }
}

@media (max-width: 980px) {
    .preloader-video-brand {
        top: 22px;
        left: 18px;
    }

    .preloader-video-help,
    .preloader-video-save {
        display: none;
    }

    .preloader-video-stage {
        left: 5vw;
        top: 20vh;
        width: 90vw;
        height: 44vh;
    }

    .preloader-video-card {
        left: 5vw;
        right: auto;
        top: auto;
        bottom: 8vh;
        width: 90vw;
        min-height: 150px;
        padding: 22px;
    }
}

.configurator-app {
    height: 100vh;
    min-height: 640px;
    position: relative;
    display: block;
    background: var(--paper);
}

.top-chrome {
    position: absolute;
    top: 12px;
    left: 14px;
    right: 14px;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    pointer-events: none;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    pointer-events: auto;
    padding: 8px 10px 8px 8px;
    border: 1px solid rgba(215, 221, 215, 0.88);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 34px rgba(31, 38, 34, 0.08);
    backdrop-filter: blur(14px);
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--green);
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.brand-title {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.04em;
}

.top-back-button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--tm-font-body);
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(31, 38, 34, 0.08);
}

.brand-wordmark {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    color: var(--green);
    font-family: var(--tm-font-heading);
    font-size: clamp(20px, 1.45vw, 27px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.brand-wordmark span {
    color: #fff;
    margin-right: 5px;
    text-shadow: 0 1px 8px rgba(31, 38, 34, 0.12);
}

.brand-wordmark i {
    position: relative;
    display: block;
    width: 10px;
    height: 8px;
    margin-left: 2px;
    border-radius: 70% 30% 70% 30%;
    background: var(--green);
    transform: translateY(-1px) rotate(-22deg);
}

.brand-wordmark i::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    margin-left: 6px;
    margin-top: 3px;
    border-radius: 50%;
    background: var(--orange);
}

.brand-logo {
    display: block;
    width: clamp(74px, 6.2vw, 108px);
    height: auto;
    object-fit: contain;
    border-radius: 3px;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
}

.catalog-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    pointer-events: auto;
}

.catalog-pills span,
.scene-status span,
.toolbar-center span {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--muted);
    font-size: 12px;
    line-height: 1;
    padding: 9px 12px;
    white-space: nowrap;
}

.configurator-stage {
    position: relative;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
    background: linear-gradient(180deg, #dfdbd4 0%, #f9f8f5 68%, #efece5 100%);
}

#viewport {
    width: 100%;
    height: 100%;
    min-height: 520px;
}

#viewport canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.tool-rail {
    position: absolute;
    top: 74px;
    left: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 5;
}

.rail-btn,
.round-tool {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(31, 38, 34, 0.08);
}

.rail-btn.active,
.rail-btn:hover,
.round-tool.active,
.round-tool:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.round-tool:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.82);
    color: #a3aaa4;
    border-color: var(--line);
}

.scene-status {
    position: absolute;
    top: 74px;
    left: 72px;
    right: 395px;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    pointer-events: none;
}

.wall-space-overlay {
    position: absolute;
    left: 26vw;
    top: 34vh;
    width: min(28vw, 430px);
    z-index: 5;
    display: grid;
    gap: 18px;
    pointer-events: none;
}

.space-numbers,
.space-plus-row,
.space-measure-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    align-items: center;
    justify-items: center;
    gap: 14px;
}

.space-numbers span {
    color: transparent;
    font-size: clamp(32px, 4vw, 72px);
    font-weight: 800;
    line-height: 1;
}

.space-plus {
    width: 34px;
    height: 34px;
    border: 1px solid #d6dad6;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--green);
    display: grid;
    place-items: center;
    font-size: 26px;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(31, 38, 34, 0.18);
    pointer-events: auto;
}

.space-plus:hover {
    background: var(--green);
    color: #fff;
}

.space-measure-row {
    position: relative;
    margin-top: 92px;
}

.space-measure-row::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(96, 102, 96, 0.38);
}

.space-measure-row span,
.space-width-input {
    position: relative;
    z-index: 1;
    min-width: 58px;
    padding: 4px 9px;
    border: 1px solid #d6dad6;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #71746e;
    font-family: var(--tm-font-body);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.space-width-input {
    width: 66px;
    height: 24px;
    pointer-events: auto;
    outline: none;
    cursor: text;
    appearance: textfield;
}

.space-width-input::-webkit-outer-spin-button,
.space-width-input::-webkit-inner-spin-button,
.scene-width-input::-webkit-outer-spin-button,
.scene-width-input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.space-width-input:focus,
.scene-width-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(222, 107, 67, 0.15);
}

#splitPill {
    pointer-events: auto;
    cursor: text;
}

.scene-width-input {
    width: 74px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    line-height: 1;
    text-align: center;
    outline: none;
    appearance: textfield;
}

.space-boundary-markers {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 68px);
    height: 0;
    pointer-events: none;
}

.space-boundary-markers span {
    position: absolute;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #050505;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.option-drawer {
    position: absolute;
    top: 74px;
    right: 18px;
    bottom: 98px;
    width: 360px;
    z-index: 7;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(215, 221, 215, 0.95);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.drawer-head {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 15px 11px;
    border-bottom: 1px solid var(--line);
}

.drawer-head span,
.modal-kicker {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.drawer-head h1,
.door-modal h2 {
    margin: 0;
    font-family: var(--tm-font-heading);
    letter-spacing: .8px;
    text-transform: capitalize;
    font-size: 24px;
    height: 50px;
    line-height: 50px;
    font-weight: 500;
    text-align: left;
    color: #374b40;
    clear: both;
    user-select: none;
}

.drawer-collapse {
    border: 0;
    background: #f0f3f1;
    color: var(--muted);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
}

.drawer-tabs {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 11px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    min-height: 52px;
}

.drawer-tab {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    border-radius: 999px;
    padding: 7px 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
}

.drawer-tab.active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.drawer-section {
    display: none;
    overflow: auto;
    padding: 13px;
    min-height: 0;
}

.drawer-section.active {
    display: block;
    flex: 1 1 auto;
}

.mini-copy {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 14px;
}

.form-label {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 5px;
}

.form-control,
.form-select {
    border-color: var(--line);
    border-radius: 6px;
    font-size: 14px;
}

.drawer-action-row {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 8px;
    margin-bottom: 10px;
}

.metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

.metric-card {
    min-height: 72px;
    background: var(--green-soft);
    border-radius: 8px;
    padding: 10px;
}

.process-next {
    width: 100%;
    margin: 12px 0 8px;
    border: 0;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 900;
}

.metric-card span,
.basket-summary span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.metric-card strong,
.basket-summary strong {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.module-list {
    display: grid;
    gap: 8px;
}

.module-row {
    display: grid;
    grid-template-columns: 82px 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
}

.module-row strong {
    color: var(--green);
    font-size: 13px;
}

.asset-preview {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 72px;
    margin-bottom: 12px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--green-soft);
}

.asset-preview img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
}

.asset-preview strong,
.asset-preview span {
    display: block;
    overflow-wrap: anywhere;
}

.asset-preview strong {
    font-size: 13px;
}

.asset-preview span {
    color: var(--muted);
    font-size: 12px;
}

.swatch-grid,
.handle-grid {
    display: grid;
    gap: 8px;
}

.swatch-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.finish-group-list {
    display: grid;
    gap: 18px;
}

.finish-group-section {
    display: grid;
    gap: 9px;
}

.finish-group-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.finish-group-heading strong {
    font-size: 13px;
    font-weight: 800;
}

.finish-group-heading span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.finish-group-swatches {
    scroll-margin-top: 12px;
}

.handle-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.swatch-card,
.handle-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 7px;
    min-height: 92px;
    text-align: center;
}

.swatch-card.active,
.handle-card.active {
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(31, 77, 61, 0.16);
}

.swatch-card img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin: 0 auto 6px;
}

.handle-card img {
    width: 52px;
    height: 42px;
    object-fit: contain;
    border-radius: 5px;
    display: block;
    margin: 0 auto 6px;
    background: #fff;
}

.handle-card img,
.handle-card span,
.handle-card strong {
    pointer-events: none;
}

.swatch-card span,
.handle-card span {
    display: block;
    color: var(--ink);
    font-size: 10px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.basket-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: var(--green-soft);
}

.quote-table {
    font-size: 12px;
}

.quote-table th {
    color: var(--muted);
    font-weight: 800;
}

.quote-table td,
.quote-table th {
    border-bottom-color: #edf1ee;
    vertical-align: top;
}

.order-code {
    color: var(--green);
    font-weight: 800;
    white-space: nowrap;
}

.alert-compact {
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 8px;
}

.order-form-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.order-form-grid textarea {
    resize: vertical;
}

.drawer-open {
    position: absolute;
    right: 18px;
    top: 74px;
    z-index: 6;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--green);
    color: #fff;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.bottom-toolbar {
    position: absolute;
    left: 50%;
    bottom: 18px;
    width: min(1030px, calc(100% - 36px));
    transform: translateX(-50%);
    z-index: 8;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 9px;
    border: 1px solid rgba(215, 221, 215, 0.94);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.toolbar-left,
.toolbar-center,
.toolbar-price {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.toolbar-center {
    justify-content: center;
    overflow: hidden;
}

.choose-btn {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--green);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 800;
}

.toolbar-price {
    justify-content: flex-end;
}

.toolbar-price span {
    display: block;
    color: var(--muted);
    font-family: var(--tm-font-heading);
    font-weight: 500;
    font-size: 11px;
    text-align: right;
}

.toolbar-price strong {
    display: block;
    font-size: 17px;
    line-height: 1.1;
    white-space: nowrap;
}

.add-basket {
    border: 0;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 900;
}

.door-modal {
    border: 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.door-choice-list {
    display: grid;
    gap: 10px;
}

.door-choice {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    text-align: left;
}

.door-choice strong {
    display: block;
    font-size: 14px;
}

.door-choice span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.door-choice.active {
    border-color: var(--green);
    background: var(--green-soft);
}

.text-muted-small {
    color: var(--muted);
    font-size: 11px;
}

/* Video reference shell */
.top-chrome {
    top: 40px;
    left: 8.15vw;
    right: auto;
}

.brand-lockup {
    gap: clamp(18px, 1.7vw, 33px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.brand-title {
    color: var(--green);
    font-family: var(--tm-font-heading);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: lowercase;
}

.brand-title span {
    font-family: var(--tm-font-body);
}

.brand-wordmark span {
    font-family: var(--tm-font-body);
    font-weight: 700;
}

.brand-logo {
    width: clamp(78px, 6.6vw, 116px);
    max-height: 54px;
}

.configurator-app.first-screen .brand-title {
    color: #fff;
}

.scene-status {
    top: 158px;
    left: 280px;
    right: 430px;
    justify-content: center;
}

.scene-status::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(96, 102, 96, 0.34);
}

.scene-status span {
    position: relative;
    z-index: 1;
    min-width: 48px;
    padding: 4px 10px;
    border-color: rgba(215, 221, 215, 0.78);
    background: rgba(255, 255, 255, 0.94);
    color: #71746e;
    font-size: 11px;
    text-align: center;
}

#leftoverPill,
#priceGroupPill {
    display: none;
}

.option-drawer {
    top: 78px;
    right: 30px;
    bottom: 20px;
    width: clamp(320px, 25.1vw, 480px);
    border: 0;
    border-radius: 8px 8px 0 0;
    background: #fff;
    box-shadow: 0 18px 48px rgba(36, 43, 38, 0.16);
    backdrop-filter: none;
}

.drawer-video-tabs {
    flex: 0 0 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #eef0ed;
}

.video-tab-left,
.video-tab-right {
    border: 0;
    border-radius: 0;
    padding: 0 18px;
    background: #fff;
    color: var(--ink);
    font-family: var(--tm-font-heading);
    font-size: 18px;
    font-weight: 500;
    text-align: left;
}

.video-tab-left,
.video-tab-right {
    background: #fff;
    color: var(--ink);
}

.video-tab-left.active,
.video-tab-right.active {
    background: var(--green);
    color: #fff;
}

.video-tab-left.active {
    border-radius: 8px 0 0 0;
}

.video-tab-right.active {
    border-radius: 0 8px 0 0;
}

.drawer-head {
    min-height: 142px;
    padding: 26px 24px;
    border-bottom: 0;
}

.drawer-collapse {
    display: none;
}

.drawer-head span {
    display: none;
}

.drawer-head h1,
.door-modal h2 {
    max-width: 280px;
    font-family: var(--tm-font-heading);
    letter-spacing: .8px;
}

.option-drawer:not(.panel-room) .drawer-head {
    display: none;
}

.option-drawer:not(.panel-room) .drawer-video-tabs {
    display: grid !important;
}

.option-drawer.panel-room .drawer-video-tabs {
    display: none !important;
}

.drawer-section {
    padding: 20px 24px;
}

.option-drawer:not(.panel-room) .drawer-section {
    padding-top: 18px;
}

.intro-copy {
    margin-top: 0;
    padding-right: 8px;
}

.panel-section-title {
    margin: 0 0 12px;
    color: var(--ink);
    font-family: var(--tm-font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
}

.process-next {
    display: none;
}

#submitOrderButton {
    display: block;
}

.panel-section-title.compact {
    margin-top: 16px;
    margin-bottom: 10px;
}

.cabinet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.cabinet-move,
.cabinet-remove {
    border: 0;
    border-radius: 999px;
    padding: 9px 8px;
    background: var(--green);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.cabinet-remove {
    background: var(--orange);
}

.door-style-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.door-style-card,
.swatch-card,
.handle-card {
    min-height: 0;
    aspect-ratio: 1;
    padding: 5px;
    border-radius: 0;
    background: #f5f5f3;
}

.door-style-card {
    border: 1px solid var(--line);
}

.door-style-card.active,
.swatch-card.active,
.handle-card.active {
    border-color: #cf8a7b;
    box-shadow: none;
}

.door-style-card img,
.swatch-card img,
.handle-card img {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
}

.handle-card img {
    object-fit: contain;
}

.door-style-card span,
.swatch-card span,
.handle-card span {
    display: none;
}

.asset-preview {
    min-height: 58px;
    grid-template-columns: 48px minmax(0, 1fr);
    background: #f7f8f6;
}

.asset-preview img {
    width: 48px;
    height: 48px;
}

.bottom-toolbar {
    left: 15.8vw;
    bottom: 18px;
    width: auto;
    transform: none;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.toolbar-left {
    min-height: 52px;
    padding: 6px 8px;
    gap: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 25px rgba(31, 38, 34, 0.08);
}

.round-tool {
    width: 32px;
    height: 32px;
    box-shadow: none;
}

.square-tool {
    border-radius: 10px;
}

.view-chip {
    height: 34px;
    min-width: 86px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #6d716c;
    padding: 0 15px;
    font-size: 12px;
    font-weight: 700;
}

.view-chip.active,
.view-chip:hover {
    border-color: #cf8a7b;
    background: #fff;
    color: #b87067;
}

.toolbar-center {
    display: none;
}

.toolbar-price {
    position: fixed;
    right: 30px;
    bottom: 20px;
    z-index: 9;
    width: clamp(320px, 25.1vw, 480px);
    min-height: clamp(122px, 16vh, 160px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: end;
    justify-items: stretch;
    padding: 18px 18px 16px;
    border-radius: 0 0 8px 8px;
    background: var(--green);
    box-shadow: 0 18px 48px rgba(36, 43, 38, 0.16);
}

.dock-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    justify-self: stretch;
}

.dock-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--green);
    padding: 11px 10px;
    font-size: clamp(13px, 0.9vw, 16px);
    font-weight: 700;
}

.dock-primary {
    background: var(--orange);
    color: #fff;
}

.toolbar-price > div:not(.dock-actions) {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 12px;
    margin-top: 16px;
}

.toolbar-price span {
    color: #fff;
    font-family: inherit;
    font-weight: 400;
    font-size: clamp(26px, 1.55vw, 30px);
    line-height: 1.1;
    text-align: left;
}

.toolbar-price strong {
    color: #fff;
    font-size: clamp(26px, 1.55vw, 30px);
    font-weight: 400;
}

/* Reference-video fidelity refinements */
.option-drawer {
    top: 18px;
    right: 30px;
    bottom: 20px;
    width: clamp(320px, 25.1vw, 480px);
}

.option-drawer.panel-room {
    top: 47vh;
    bottom: auto;
    min-height: clamp(220px, 33vh, 330px);
}

.option-drawer.panel-room .drawer-head {
    min-height: 0;
    padding: clamp(24px, 3.2vh, 34px) clamp(20px, 1.6vw, 30px) 6px;
}

.option-drawer.panel-room .drawer-section {
    padding: 0 clamp(20px, 1.6vw, 30px) clamp(26px, 4vh, 40px);
}

.option-drawer.panel-room .intro-copy {
    margin-bottom: clamp(32px, 6vh, 58px);
    font-size: clamp(12px, 0.9vw, 17px);
    line-height: 1.42;
}

.option-drawer.panel-room .row {
    --bs-gutter-x: 7px;
}

.option-drawer.panel-room .dimension-input {
    position: relative;
    display: flex;
    align-items: center;
    height: clamp(36px, 5vh, 50px);
    border: 1px solid #2d493f;
    border-radius: 4px;
    background: #fff;
}

.option-drawer.panel-room .dimension-input:focus-within {
    box-shadow: 0 0 0 0.2rem rgba(31, 77, 61, 0.14);
}

.option-drawer.panel-room .dimension-input .form-control {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 4px 0 12px;
    text-align: left;
    font-size: clamp(13px, 1.05vw, 20px);
    color: var(--green);
    border: 0;
    box-shadow: none;
    appearance: textfield;
}

.option-drawer.panel-room .dimension-input .form-control::-webkit-inner-spin-button,
.option-drawer.panel-room .dimension-input .form-control::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.option-drawer.panel-room .dimension-input span {
    flex: 0 0 auto;
    padding-right: 10px;
    color: #989d98;
    font-size: clamp(9px, 0.65vw, 12px);
    pointer-events: none;
}

.option-drawer.panel-room .form-label {
    margin-top: 10px;
    text-align: center;
    color: var(--green);
    font-size: clamp(12px, 0.9vw, 17px);
    font-weight: 700;
}

.drawer-video-tabs {
    flex-basis: 56px;
}

.video-tab-left,
.video-tab-right {
    padding: 0 16px;
    font-size: 18px;
    line-height: 1.08;
}

.drawer-section {
    padding: 18px 20px;
}

.panel-section-title {
    font-size: 15px;
    margin-bottom: 10px;
}

.visual-option-grid {
    display: grid;
    grid-template-columns: repeat(5, 66px);
    align-items: start;
    gap: 11px;
}

.cabinet-type-grid {
    --cabinet-option-image: calc(100% - 10px);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: 460px;
    gap: 12px;
    margin-bottom: 20px;
}

.internal-layout-grid {
    --cabinet-option-image: calc(100% - 10px);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: 460px;
    gap: 12px;
    margin-bottom: 20px;
}

.cabinet-type-card,
.internal-layout-card,
.diagonal-corner-card,
.feature-card {
    border: 1px solid #eef0ed;
    border-radius: 0;
    background: #f7f7f5;
    min-height: 50px;
    padding: 5px;
    display: grid;
    place-items: center;
}

.cabinet-type-card,
.feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 66px;
    min-height: 66px;
    padding: 5px;
}

.cabinet-type-card.active,
.internal-layout-card.active,
.diagonal-corner-card.active,
.feature-card.active {
    border-color: #cf8a7b;
    box-shadow: inset 0 0 0 1px rgba(207, 138, 123, 0.32);
}

.option-card-image {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
    flex: none;
}

.cabinet-type-card {
    width: 100%;
    max-width: 86px;
    aspect-ratio: 1;
    min-height: 0;
    padding: 5px;
}

.internal-layout-card {
    width: 100%;
    max-width: 86px;
    aspect-ratio: 1;
    min-height: 0;
    padding: 5px;
}

.cabinet-type-card .option-card-image {
    width: var(--cabinet-option-image, 52px);
    height: var(--cabinet-option-image, 52px);
    max-width: 78px;
    max-height: 78px;
}

.internal-layout-card .layout-ico {
    width: var(--cabinet-option-image, 52px);
    height: var(--cabinet-option-image, 52px);
    max-width: 78px;
    max-height: 78px;
}

.internal-storage-body .internal-layout-grid {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    max-width: none;
    gap: 10px;
    margin-bottom: 18px;
}

.internal-storage-card {
    max-width: none;
    min-height: 132px;
    aspect-ratio: auto;
    padding: 7px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 7px;
    text-align: left;
    color: var(--ink);
}

.internal-storage-card:hover,
.internal-storage-card:focus-visible {
    border-color: #cf8a7b;
    box-shadow: inset 0 0 0 1px rgba(207, 138, 123, 0.28);
}

.internal-storage-image {
    width: 100%;
    height: 76px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #ecefed;
}

.storage-shelf-preview {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(245, 246, 242, 0.96), rgba(255, 255, 255, 0.98)),
        #fff;
}

.shelf-preview-carcass {
    position: relative;
    width: 42px;
    height: 62px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 8px 5px;
    border: 5px solid #171c1a;
    border-top-width: 7px;
    border-bottom-width: 7px;
    background: linear-gradient(90deg, #f0f1ec 0 48%, #e4e6df 48% 100%);
    box-shadow: 9px 0 0 rgba(28, 34, 31, 0.18);
}

.shelf-preview-carcass::before {
    content: "";
    position: absolute;
    inset: 7px auto 7px 50%;
    width: 3px;
    transform: translateX(-50%);
    background: #232b27;
}

.shelf-preview-shelf {
    position: relative;
    z-index: 1;
    display: block;
    height: 4px;
    border-radius: 1px;
    background: #555d56;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.24);
}

.shelf-preview-count {
    position: absolute;
    right: 6px;
    bottom: 5px;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.internal-storage-title {
    display: block;
    min-height: 30px;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.18;
    color: var(--ink);
}

.option-card-label {
    position: absolute;
    left: 50%;
    top: calc(100% + 3px);
    z-index: 15;
    display: none;
    width: max-content;
    max-width: 112px;
    padding: 3px 6px;
    border-radius: 3px;
    background: var(--green);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    overflow-wrap: anywhere;
    box-shadow: 0 6px 16px rgba(31, 77, 61, 0.22);
}

.cabinet-type-card:hover .option-card-label,
.cabinet-type-card:focus-visible .option-card-label,
.feature-card:hover .option-card-label,
.feature-card:focus-visible .option-card-label {
    display: block;
    opacity: 1;
}

.option-ico,
.layout-ico,
.feature-ico {
    position: relative;
    width: 34px;
    height: 42px;
    display: block;
    background: #fefefe;
    border: 1px solid #d9ddda;
    box-shadow: inset 0 0 0 4px #ecefed;
}

.option-ico::before,
.option-ico::after,
.layout-ico::before,
.layout-ico::after,
.feature-ico::before,
.feature-ico::after {
    content: "";
    position: absolute;
    background: #1f2622;
}

.option-ico-doors::before {
    top: 6px;
    bottom: 6px;
    left: 12px;
    width: 4px;
}

.option-ico-doors::after {
    top: 6px;
    bottom: 6px;
    right: 12px;
    width: 4px;
}

.option-ico-single-door::before {
    top: 6px;
    bottom: 6px;
    left: 14px;
    width: 6px;
}

.option-ico-drawers::before {
    left: 8px;
    right: 8px;
    bottom: 7px;
    height: 12px;
    background: repeating-linear-gradient(to bottom, #1f2622 0 3px, transparent 3px 6px);
}

.option-ico-drawers::after {
    top: 6px;
    bottom: 22px;
    left: 14px;
    width: 6px;
}

.option-ico-drawer-stack::before {
    left: 8px;
    right: 8px;
    top: 10px;
    height: 24px;
    background: repeating-linear-gradient(to bottom, #1f2622 0 3px, transparent 3px 6px);
}

.option-ico-drawer-stack::after,
.option-ico-shelves::after {
    left: 8px;
    right: 8px;
    top: 8px;
    height: 28px;
    background: repeating-linear-gradient(to bottom, transparent 0 5px, #1f2622 5px 7px);
}

.option-ico-rail-drawer::before {
    left: 8px;
    right: 8px;
    top: 9px;
    height: 2px;
}

.option-ico-rail-drawer::after {
    left: 9px;
    right: 9px;
    bottom: 8px;
    height: 12px;
    background: repeating-linear-gradient(to bottom, #1f2622 0 3px, transparent 3px 6px);
}

.option-ico-mirror::before {
    top: 5px;
    bottom: 5px;
    left: 8px;
    width: 7px;
    background: #aeb8b5;
}

.option-ico-mirror::after {
    top: 5px;
    bottom: 5px;
    right: 8px;
    width: 7px;
    background: #1f2622;
}

.feature-option-grid {
    display: grid;
    grid-template-columns: repeat(2, 72px);
    gap: 12px;
    margin-bottom: 14px;
}

.feature-card {
    gap: 7px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.05;
    min-height: 72px;
}

.feature-card span:last-child {
    display: block;
    max-width: 112px;
}

.diagonal-corner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 286px;
    gap: 12px;
    margin-bottom: 18px;
}

.diagonal-corner-card {
    min-height: 128px;
    padding: 8px;
    border-radius: 6px;
    color: var(--ink);
    text-align: center;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.diagonal-corner-card:hover,
.diagonal-corner-card:focus-visible {
    border-color: #cf8a7b;
    transform: translateY(-1px);
}

.diagonal-corner-thumb {
    position: relative;
    display: block;
    width: 100%;
    height: 78px;
    margin-bottom: 7px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background-image: url("../../images/planning/diagonal-splayed-planning.png");
    background-repeat: no-repeat;
    background-size: 255px auto;
    background-position: -2px -8px;
    background-color: #fff;
    overflow: hidden;
}

.diagonal-corner-thumb-right {
    transform: scaleX(-1);
}

.diagonal-corner-badge {
    position: absolute;
    right: 5px;
    bottom: 5px;
    z-index: 1;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    color: var(--green);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

.diagonal-corner-thumb-right .diagonal-corner-badge {
    right: auto;
    left: 5px;
    transform: scaleX(-1);
}

.diagonal-corner-label {
    display: block;
    color: var(--ink);
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.14;
}

.diagonal-corner-meta {
    display: block;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.1;
    margin-top: 3px;
}

.feature-ico {
    width: 34px;
    height: 34px;
}

.feature-doors::before {
    left: 8px;
    top: 5px;
    bottom: 5px;
    width: 6px;
    background: #fefefe;
    border: 1px solid #d9ddda;
}

.feature-doors::after {
    right: 8px;
    top: 5px;
    bottom: 5px;
    width: 6px;
    background: #fefefe;
    border: 1px solid #d9ddda;
}

.feature-mirror::before {
    inset: 4px 9px;
    border: 2px solid #9da4a0;
    border-radius: 10px 10px 2px 2px;
    background: transparent;
}

.feature-mirror::after {
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 5px;
    background: #9da4a0;
}

.measurement-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0 8px;
}

.split-mode-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.split-mode-btn {
    border: 1px solid #eef0ed;
    border-radius: 999px;
    background: #f7f7f5;
    color: var(--green);
    min-height: 34px;
    font-size: 12px;
    font-weight: 800;
}

.split-mode-btn.active {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.split-mode-btn:disabled,
.split-mode-btn.disabled {
    cursor: not-allowed;
    border-color: #e1d6d2;
    background: #f4efed;
    color: #9a756c;
    opacity: 1;
}

.mirror-style-panel {
    margin: 0 0 14px;
}

.mirror-style-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.mirror-style-card {
    min-width: 0;
    display: grid;
    grid-template-rows: 74px minmax(28px, auto);
    gap: 6px;
    padding: 6px;
    border: 1px solid #e1e5df;
    border-radius: 6px;
    background: #f8f9f7;
    color: var(--ink);
    text-align: left;
}

.mirror-style-card.active {
    border-color: #cf8a7b;
    box-shadow: inset 0 0 0 1px rgba(207, 138, 123, 0.34);
}

.mirror-style-card img {
    width: 100%;
    height: 74px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #ecefed;
}

.mirror-style-name {
    display: block;
    min-width: 0;
    color: var(--ink);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.mirror-unavailable-message {
    margin: 0 0 14px;
    padding: 8px 10px;
    border: 1px solid #e5c8bd;
    border-radius: 6px;
    background: #fbf2ef;
    color: #7a3f2e;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
}

.mirror-door-type-list {
    grid-column: 1 / -1;
    display: grid;
    gap: 7px;
    padding: 8px;
    border: 1px solid #e1e5df;
    border-radius: 6px;
    background: #fff;
}

.mirror-door-type-title {
    color: var(--green);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.mirror-door-type-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.mirror-door-type-chip {
    min-width: 0;
    padding: 6px 7px;
    border: 1px solid #edf0ed;
    border-radius: 5px;
    background: #f8f9f7;
    text-align: left;
    cursor: pointer;
}

.mirror-door-type-chip.active,
.mirror-door-type-chip:hover {
    border-color: #cf8a7b;
    background: #fff7f4;
    box-shadow: inset 0 0 0 1px rgba(207, 138, 123, 0.22);
}

.mirror-door-type-chip strong,
.mirror-door-type-chip small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mirror-door-type-chip strong {
    color: var(--ink);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.15;
}

.mirror-door-type-chip small {
    color: #657068;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
}

.split-count-row {
    display: grid;
    grid-template-columns: 0.58fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
}

.split-result-box {
    display: block;
    min-height: 34px;
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f7f8f6;
    color: var(--ink);
    font-size: 11px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.split-count-row .form-control[readonly],
.measurement-pair .form-control[readonly] {
    background: #f7f8f6;
}

.measurement-pair .form-control {
    height: 44px;
    padding: 8px 12px;
    font-size: 17px;
    font-weight: 700;
    text-align: right;
}

.range-hint {
    display: flex;
    justify-content: space-between;
    color: #b4b8b3;
    font-size: 10px;
    margin-top: 4px;
}

.measurement-pair {
    gap: 12px;
}

.measurement-pair .form-label {
    font-size: 13px;
    margin-bottom: 6px;
}

.cabinet-actions {
    gap: 10px;
}

.cabinet-move,
.cabinet-remove {
    min-height: 42px;
    padding: 12px 10px;
    font-size: 13px;
}

.module-list {
    display: none;
}

.layout-rail::before {
    left: 9px;
    right: 9px;
    top: 10px;
    height: 2px;
}

.layout-rail::after,
.layout-shelf::after,
.layout-split::after {
    left: 15px;
    top: 12px;
    bottom: 8px;
    width: 2px;
    background: #c7ccc8;
}

.layout-shelf::before,
.layout-split::before,
.layout-shelves::before {
    left: 8px;
    right: 8px;
    top: 12px;
    height: 22px;
    background: repeating-linear-gradient(to bottom, #1f2622 0 2px, transparent 2px 8px);
}

.layout-split::after {
    background: #1f2622;
}

.layout-shelves::after {
    left: 8px;
    right: 8px;
    top: 8px;
    height: 28px;
    background: repeating-linear-gradient(to bottom, transparent 0 5px, #1f2622 5px 7px);
}

.layout-drawers::before,
.layout-rail-drawer::before,
.layout-double-drawer::before {
    left: 8px;
    right: 8px;
    bottom: 7px;
    height: 14px;
    background: repeating-linear-gradient(to bottom, #1f2622 0 3px, transparent 3px 6px);
}

.layout-rail-drawer::after,
.layout-double-drawer::after {
    left: 8px;
    right: 8px;
    top: 10px;
    height: 2px;
}

.layout-double-drawer {
    background:
        linear-gradient(to right, transparent 48%, #d5dad6 48% 52%, transparent 52%),
        #fefefe;
}

.option-drawer.panel-finishes .drawer-action-row,
.option-drawer.panel-finishes .asset-preview {
    display: none;
}

.door-style-grid,
.swatch-grid,
.handle-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.swatch-grid,
.handle-grid {
    gap: 8px;
}

.cabinet-finish-grid {
    margin-top: 8px;
}

.no-handle-card {
    position: relative;
}

.no-handle-mark {
    position: relative;
    display: block !important;
    width: 100%;
    height: 100%;
    border: 4px solid #31483e;
    border-radius: 50%;
}

.no-handle-mark::after {
    content: "";
    position: absolute;
    left: 7px;
    right: 7px;
    top: 50%;
    height: 4px;
    background: #31483e;
    transform: rotate(-45deg);
    transform-origin: center;
}

.option-drawer.panel-handles .handle-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.option-drawer.panel-handles .handle-action-row #handleSearch {
    grid-column: 1 / -1;
}

.option-drawer.panel-handles .handle-current-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
    margin-bottom: 12px;
}

.option-drawer.panel-handles .asset-preview {
    display: grid;
    min-height: 70px;
    margin-bottom: 0;
}

.option-drawer.panel-handles .handle-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.handle-family-section {
    display: grid;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid #d8d8d4;
}

.handle-none-section {
    height: 100%;
    padding-bottom: 10px;
}

.handle-none-inline .handle-none-section {
    padding-bottom: 0;
    border-bottom: 0;
}

.option-drawer.panel-handles .handle-none-inline .no-handle-card {
    aspect-ratio: auto;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 70px;
    height: 100%;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--green-soft);
    text-align: left;
}

.option-drawer.panel-handles .handle-none-inline .no-handle-card.active {
    border-color: #cf8a7b;
    box-shadow: inset 0 0 0 1px #cf8a7b;
}

.option-drawer.panel-handles .handle-none-inline .handle-card-body {
    justify-items: start;
    align-content: center;
    text-align: left;
}

.option-drawer.panel-handles .handle-none-inline .handle-card-body strong {
    font-size: 13px;
    line-height: 1.15;
}

.option-drawer.panel-handles .handle-none-inline .handle-card-body span {
    font-size: 10px;
    line-height: 1.15;
}

.handle-family-heading {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 6px;
    color: var(--ink);
    text-transform: uppercase;
}

.handle-family-heading strong {
    font-family: var(--tm-font-heading);
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
}

.handle-family-heading span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 600;
    line-height: 1.1;
}

.handle-family-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 16px 10px;
}

.option-drawer.panel-handles .handle-card {
    aspect-ratio: auto;
    min-height: 130px;
    display: grid;
    grid-template-rows: 84px minmax(0, auto);
    gap: 5px;
    padding: 4px 2px 6px;
    border-color: transparent;
    border-radius: 0;
    background: #fff;
    text-align: center;
}

.option-drawer.panel-handles .handle-card:hover {
    border-color: #d8d8d4;
    background: #fbfbfa;
}

.option-drawer.panel-handles .handle-card.active {
    border-color: #cf8a7b;
    box-shadow: inset 0 0 0 1px #cf8a7b;
}

.option-drawer.panel-handles .handle-card-image {
    display: grid;
    align-items: end;
    justify-items: center;
    min-width: 0;
    height: 84px;
    padding: 0 2px;
    border: 0;
    background: transparent;
}

.option-drawer.panel-handles .handle-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

.option-drawer.panel-handles .handle-card span,
.option-drawer.panel-handles .handle-card strong {
    display: block;
}

.option-drawer.panel-handles .handle-card-body {
    display: grid;
    justify-items: center;
    gap: 1px;
    min-width: 0;
}

.option-drawer.panel-handles .handle-card-body strong {
    color: #30342f;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.option-drawer.panel-handles .handle-card-body span {
    color: #4f554f;
    font-size: 8px;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.option-drawer.panel-handles .no-handle-card {
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
    height: 100%;
    min-height: 70px;
}

.option-drawer.panel-handles .no-handle-mark {
    width: 44px;
    height: 44px;
    margin: 0;
}

.option-drawer.panel-extras .addon-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.selected-addon-list {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.selected-addon-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 24px;
    align-items: center;
    gap: 8px;
    padding: 8px 9px;
    border: 1px solid #e2e5e1;
    background: #f7f8f6;
    color: var(--ink);
    font-size: 11px;
    line-height: 1.2;
}

.selected-addon-row span {
    min-width: 0;
}

.selected-addon-row strong {
    font-weight: 800;
}

.selected-addon-row small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.addon-remove {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: #e7ebe7;
    color: #4f554f;
    line-height: 1;
}

.addon-grid {
    display: grid;
    gap: 14px;
}

.addon-section {
    display: grid;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d8d8d4;
}

.addon-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    color: var(--ink);
}

.addon-section-heading strong {
    font-size: 13px;
    font-weight: 800;
}

.addon-section-heading span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.addon-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.addon-card {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 162px;
    padding: 10px;
    border: 1px solid #e1e5df;
    background: #fff;
}

.addon-card.active {
    border-color: #cf8a7b;
    box-shadow: inset 0 0 0 1px #cf8a7b;
}

.addon-card-main {
    display: grid;
    align-content: start;
    gap: 3px;
    min-width: 0;
}

.addon-card-main strong {
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.addon-card-main span {
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.18;
}

.addon-card-main small,
.addon-card-main em {
    color: var(--muted);
    font-size: 10px;
    font-style: normal;
    line-height: 1.16;
}

.addon-card-main .addon-placement {
    width: fit-content;
    max-width: 100%;
    padding: 3px 6px;
    border: 1px solid #dce3dd;
    border-radius: 999px;
    background: #f4f7f4;
    color: var(--green);
    font-size: 9px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.addon-card-foot {
    display: grid;
    gap: 7px;
}

.addon-card-foot > span {
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
}

.addon-stepper {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 4px;
}

.addon-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #d6dad6;
    border-radius: 50%;
    background: #f8f9f7;
    color: var(--green);
    font-size: 17px;
    line-height: 1;
}

.addon-qty-input {
    width: 100%;
    height: 28px;
    border: 1px solid #d6dad6;
    background: #fff;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.toolbar-price {
    right: 30px;
    width: clamp(320px, 25.1vw, 480px);
    min-height: clamp(122px, 16vh, 160px);
    padding: 16px 14px 14px;
}

.toolbar-price strong {
    font-size: 25px;
}

.toolbar-price span {
    font-size: 25px;
    font-family: inherit;
    font-weight: 400;
    line-height: 1.1;
}

.dock-actions {
    gap: 10px;
}

.dock-btn {
    padding: 10px 8px;
    font-size: clamp(13px, 0.9vw, 16px);
}

.toolbar-price.room-price-mode {
    align-items: stretch;
    justify-items: stretch;
}

.toolbar-price.room-price-mode .dock-actions {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-self: stretch;
    align-self: stretch;
}

.toolbar-price.room-price-mode #roomDimensionsBtn {
    display: none;
}

.toolbar-price.room-price-mode .dock-btn {
    width: 100%;
    justify-self: stretch;
    min-height: clamp(50px, 5.2vh, 56px);
    font-size: clamp(13px, 0.9vw, 16px);
}

.option-drawer .toolbar-price {
    position: static;
    inset: auto;
    z-index: auto;
    width: 100%;
    min-height: 0;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: stretch;
    margin-top: auto;
    border-radius: 0 0 8px 8px;
    box-shadow: none;
}

.option-drawer .toolbar-price.room-price-mode .dock-actions {
    width: 100%;
    min-width: 0;
}

.toolbar-price .dock-actions,
.option-drawer .toolbar-price .dock-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    justify-content: stretch !important;
    align-items: stretch !important;
}

.toolbar-price.room-price-mode .dock-actions,
.option-drawer .toolbar-price.room-price-mode .dock-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-self: stretch !important;
    align-self: stretch !important;
}

.toolbar-price.room-price-mode #roomDimensionsBtn {
    display: none !important;
}

.toolbar-price .dock-actions > .dock-btn,
.option-drawer .toolbar-price .dock-actions > .dock-btn {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    align-items: center;
    justify-content: center;
    font-size: clamp(13px, 0.9vw, 16px) !important;
}

.configurator-app,
.configurator-app :where(button, input, select, textarea, label, output, span, strong, small, p, h1, h2, h3, h4, h5, h6, a, td, th, div) {
    font-family: var(--tm-font-body) !important;
}

.configurator-app.planner-mode .option-drawer,
.configurator-app.planner-mode .drawer-open {
    display: none !important;
}

.configurator-app.planner-mode.show-options .option-drawer:not(.d-none) {
    display: flex !important;
}

.configurator-app.planner-mode.show-options .bottom-toolbar {
    left: 0;
    right: 0;
    bottom: 26px;
    width: 100%;
    transform: none;
    pointer-events: none;
}

.configurator-app.planner-mode.show-options .toolbar-left {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    pointer-events: auto;
}

.configurator-app.planner-mode.show-options .toolbar-price {
    display: grid !important;
    pointer-events: auto;
}

.configurator-app.planner-mode .configurator-stage {
    background: radial-gradient(circle at 50% 38%, #f7f7f2 0%, #efeee9 48%, #d4d1cb 100%);
}

.configurator-app.planner-mode .bottom-toolbar {
    left: 50%;
    bottom: 26px;
    width: auto;
    transform: translateX(-50%);
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.configurator-app.planner-mode .toolbar-left {
    min-height: 54px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 40px rgba(48, 50, 45, 0.1);
}

.configurator-app.planner-mode .round-tool {
    width: 38px;
    height: 38px;
    color: #9ea39e;
    background: #fff;
    border-color: transparent;
    font-size: 18px;
}

.configurator-app.planner-mode .round-tool:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    color: #a3aaa4;
    background: #fff;
}

.configurator-app.planner-mode .square-tool {
    border-radius: 50%;
}

.configurator-app.planner-mode .view-chip {
    height: 40px;
    min-width: 122px;
    font-size: 15px;
    color: #8f938f;
}

.configurator-app.planner-mode .view-chip.active,
.configurator-app.planner-mode .view-chip:hover {
    border-color: #d98d7b;
    color: #d47561;
    background: #fff;
}

.configurator-app.planner-mode .scene-status {
    top: 0;
    left: 0;
    right: auto;
    width: 42vw;
    height: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    transform-origin: center center;
    will-change: left, top, width, transform;
}

.configurator-app.planner-mode.view-orbit .scene-status {
    display: none;
}

.configurator-app.planner-mode .wall-space-overlay {
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.configurator-app.planner-mode .space-numbers {
    display: none;
}

.configurator-app.planner-mode .space-plus-row,
.configurator-app.planner-mode .space-measure-row {
    position: absolute;
    inset: 0;
    display: block;
    margin: 0;
    gap: 0;
}

.configurator-app.planner-mode .space-plus-cell {
    position: absolute;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    will-change: left, top, opacity, transform;
}

.configurator-app.planner-mode .space-measure-row::before {
    display: none;
}

.configurator-app.planner-mode .space-measure-line {
    position: absolute;
    display: block;
    height: 1px;
    background: rgba(96, 102, 96, 0.42);
    transform-origin: center center;
    will-change: left, top, width, transform;
}

.configurator-app.planner-mode .space-measure-row span,
.configurator-app.planner-mode .space-width-input {
    position: absolute;
    will-change: left, top, opacity, transform;
}

.configurator-app.planner-mode .space-boundary-markers {
    inset: 0;
    top: 0;
    height: 100%;
}

.configurator-app.planner-mode .space-boundary-markers span {
    will-change: left, top, opacity, transform;
}

@media (max-width: 980px) {
    body {
        overflow: auto;
    }

    .configurator-app {
        height: auto;
        min-height: 100vh;
        display: block;
    }

    .top-chrome {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        align-items: flex-start;
        flex-direction: column;
        padding: 10px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        pointer-events: auto;
    }

    .brand-lockup {
        gap: 10px;
    }

    .brand-title {
        font-size: 22px;
    }

    .brand-logo {
        width: 94px;
        max-height: 58px;
    }

    .catalog-pills {
        justify-content: flex-start;
    }

    .configurator-stage {
        min-height: 820px;
        display: grid;
        grid-template-rows: 520px auto auto;
        overflow: visible;
    }

    #viewport {
        height: 520px;
    }

    .tool-rail,
    .scene-status {
        top: 12px;
    }

    .scene-status {
        left: 70px;
        right: 12px;
    }

    .scene-status::before {
        display: none;
    }

    .option-drawer {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        width: auto;
        margin: 12px 10px;
        max-height: none;
        grid-row: 2;
        border-radius: 8px;
        display: block;
        overflow: visible;
    }

    .drawer-section {
        overflow: visible;
    }

    .option-drawer:not(.panel-room) .drawer-head {
        display: none;
    }

    .intro-copy {
        margin-top: 0;
    }

    .bottom-toolbar {
        position: relative;
        left: auto;
        bottom: auto;
        width: auto;
        transform: none;
        grid-row: 3;
        margin: 0 10px 12px;
        border-radius: 8px;
        grid-template-columns: 1fr;
    }

    .toolbar-left {
        flex-wrap: wrap;
        border-radius: 8px;
    }

    .toolbar-price {
        position: relative;
        right: auto;
        bottom: auto;
        width: auto;
        min-height: 118px;
        margin-top: 10px;
        border-radius: 8px;
    }

    .toolbar-center,
    .toolbar-price,
    .toolbar-left {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .swatch-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .swatch-grid,
    .handle-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .drawer-action-row,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .catalog-pills span,
    .scene-status span,
    .toolbar-center span {
        font-size: 11px;
        padding: 8px 10px;
    }
}
