.ip-guide-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: 28px;
    align-items: start;
}

.ip-guide-layout > form {
    min-width: 0;
}

.ip-guide-aside {
    position: sticky;
    top: 90px;
    min-width: 0;
}

.ip-guide-canvas {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #d9e0e7;
    border-radius: 12px;
}

.ip-guide-drawing {
    display: block;
    width: 100%;
    height: auto;
}

.ip-guide-countertop,
.ip-guide-basin {
    fill: #fff;
}

.ip-guide-drawing .ip-countertop {
    fill: #fff;
    stroke: #667581;
    stroke-width: 4;
}

.ip-guide-drawing .ip-basin {
    fill: #e1e8ec;
    stroke: #667581;
    stroke-width: 4;
}

.ip-guide-drawing .ip-drain {
    fill: #aab7c0;
    stroke: #697983;
    stroke-width: 3;
}

.ip-guide-drawing .ip-tap-hole {
    display: none;
}

.ip-guide-drawing.has-tap .ip-tap-hole {
    display: block;
}

.ip-guide-drawing .ip-tap-hole circle:first-child {
    fill: #fff;
    stroke: #667581;
    stroke-width: 3;
}

.ip-guide-drawing .ip-tap-hole circle:last-child {
    fill: #aab7c0;
}

.ip-guide-drawing [data-guide-line] {
    color: #657583;
    opacity: 0.8;
}

.ip-guide-drawing [data-guide-line].is-hidden {
    display: none;
}

.ip-guide-drawing [data-guide-line] line {
    stroke: currentColor;
    stroke-width: 4;
}

.ip-guide-drawing [data-guide-line] circle {
    fill: currentColor;
}

.ip-guide-drawing [data-guide-line].is-active {
    color: #D3A327;
    opacity: 1;
}

.ip-guide-drawing [data-guide-line].is-active line {
    stroke-width: 7;
}

.ip-guide-badge {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 5px;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #9aabc0;
    border-radius: 6px;
    box-shadow: 0 1px 4px #0002;
    font-size: 12px;
}

.ip-guide-badge[hidden],
.ip-guide-mobile-card[hidden],
.ip-option-help[hidden] {
    display: none !important;
}

.ip-guide-badge.is-active,
.ip-guide-badge:focus-within {
    border-color: #D3A327;
    box-shadow: 0 0 0 2px rgba(211, 163, 39, 0.25);
}

.ip-guide-badge input {
    width: 55px;
    min-width: 0;
    padding: 2px;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: center;
}

.ip-guide-active-field {
    outline: 2px solid #D3A327 !important;
    outline-offset: 2px;
}

.ip-guide-layout input[type="radio"] {
    accent-color: #D3A327;
}

.ip-guide-caption {
    margin: 7px 0 0;
    color: #5c6875;
    font-size: 12px;
}

.ip-option-help {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 0;
    padding: 10px;
    background: #fffaf0;
    border: 1px solid #e2c577;
    border-radius: 8px;
}

.ip-option-help svg {
    flex: 0 0 105px;
    width: 105px;
    height: 56px;
}

.ip-option-help svg path,
.ip-option-help svg rect {
    fill: #e3e7ea;
    stroke: #697983;
    stroke-width: 3;
}

.ip-option-help svg .ip-help-detail {
    fill: #D3A327;
    stroke: #9e7612;
    stroke-width: 4;
}

.ip-option-help p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.ip-guide-mobile-card {
    display: none;
}

@media (max-width: 1100px) {
    .ip-guide-layout {
        display: block;
    }

    .ip-guide-layout > form {
        width: 100%;
    }

    .ip-guide-aside {
        display: none;
    }

    .ip-guide-mobile-card {
        display: block;
        box-sizing: border-box;
        width: 100%;
        margin: 10px 0 16px;
        padding: 12px;
        background: #fffaf0;
        border: 1px solid #D3A327;
        border-radius: 10px;
    }

    .ip-guide-mobile-card p {
        margin: 5px 0;
        font-size: 13px;
    }

    .ip-guide-mobile-card [data-guide-line]:not(.is-active) {
        opacity: 0.2;
    }

    .ip-option-help {
        align-items: flex-start;
    }

    .ip-option-help svg {
        flex-basis: 75px;
        width: 75px;
        height: 45px;
    }
}