.vplt-layout {
    display: grid;
    grid-template-columns: minmax(200px, 260px) 1fr minmax(200px, 280px);
    gap: 1rem;
    min-height: 420px;
}
@media (min-width: 992px) {
    .vplt-page--guide .vplt-layout {
        grid-template-columns: 1fr minmax(220px, 280px);
        grid-template-rows: none;
        gap: 1.25rem;
    }
    .vplt-page--guide .vplt-sidebar--guide {
        border-top: none;
        padding-top: 0;
    }
    .vplt-page--guide.vplt-page--single .vplt-layout {
        grid-template-columns: 1fr minmax(220px, 280px);
    }
}
@media (max-width: 991px) {
    .vplt-layout,
    .vplt-page--guide .vplt-layout,
    .vplt-page--guide.vplt-page--single .vplt-layout {
        grid-template-columns: 1fr;
    }
    .vplt-sidebar--list { order: 1; }
    .vplt-canvas-wrap { order: 2; }
    .vplt-sidebar--side,
    .vplt-sidebar--guide { order: 3; }
    .vplt-page--guide .vplt-canvas-wrap {
        order: 1;
    }
    .vplt-page--guide .vplt-sidebar--guide {
        order: 2;
        width: 100%;
        max-width: none;
    }
    .vplt-page--guide .page-title-bar .d-flex.gap-2 {
        width: 100%;
    }
    .vplt-page--guide .page-title-bar .btn {
        flex: 1 1 auto;
        min-width: 0;
    }
    .vplt-canvas-wrap {
        padding: 0.75rem;
        min-height: 280px;
    }
    .vplt-children {
        gap: 0.5rem;
        justify-content: center;
    }
    .vplt-child-card {
        width: calc(50% - 0.35rem);
        max-width: 160px;
    }
    .vplt-variant-unit--expanded {
        max-width: none;
        flex: 1 1 100%;
        width: 100%;
    }
    .vplt-sidebar--guide {
        max-height: none;
    }
    .vplt-root-card {
        max-width: min(100%, 260px);
    }
}
.vplt-prototype-list {
    max-height: 70vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.vplt-prototype-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    text-align: left;
    width: 100%;
}
.vplt-prototype-item:hover { border-color: #0d9488; }
.vplt-prototype-item.active {
    border-color: #0d9488;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
    background: #f0fdfa;
}
.vplt-prototype-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.vplt-prototype-item .vplt-proto-title {
    font-size: 0.85rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vplt-canvas-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 1.25rem;
    min-height: 360px;
}
.vplt-canvas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.vplt-page--guide .vplt-layout {
    overflow: visible;
}
.vplt-page--guide .vplt-canvas-wrap {
    width: 100%;
    min-width: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0.5rem 0 1.25rem;
    min-height: 0;
    overflow: visible;
}
.vplt-page--guide .vplt-canvas {
    align-items: stretch;
    width: 100%;
    overflow: visible;
}
/* 廠商「產品關聯圖」中央區：與「看可搭配」相同分區版面（主產品／配件／材料） */
.vplt-page--vendor .vplt-canvas {
    align-items: stretch;
    width: 100%;
}
.vplt-page--vendor .vplt-guide-sections,
.vplt-page--vendor .vplt-guide-section {
    overflow: visible;
}
.vplt-page--guide .vplt-guide-sections,
.vplt-page--guide .vplt-guide-section {
    overflow: visible;
}
.vplt-root-wrap {
    width: 100%;
    margin-bottom: 0.75rem;
}
.vplt-variant-unit--root {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
}
.vplt-child-card--prototype {
    border-color: #0d9488;
    border-width: 2px;
}
.vplt-root-card {
    border: 2px solid #0d9488;
    border-radius: 12px;
    background: #fff;
    padding: 0.75rem 1rem;
    text-align: center;
    max-width: 220px;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.12);
}
.vplt-root-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto 0.5rem;
}
.vplt-children {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: none;
}
.vplt-page--guide .vplt-children {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 0.75rem;
}

/* Guide：分區橫條（主產品／每配件／材料），每色一圖全顯示 */
.vplt-page--guide .vplt-layout {
    width: 100%;
    max-width: none;
}
.vplt-guide-sections {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
.vplt-guide-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 0.65rem;
    padding: 0;
    line-height: 1.3;
}
.vplt-guide-section-tag {
    font-weight: 700;
}
.vplt-guide-section-tag--prototype {
    color: #0d9488;
}
.vplt-guide-section-tag--part {
    color: #d97706;
}
.vplt-guide-section-tag--material {
    color: #16a34a;
}
.vplt-guide-section-name {
    font-weight: 600;
    color: #1d1d1f;
}
.vplt-guide-section-title {
    color: #1d1d1f;
}
/* 配件區：標題可收合，預設收合；展開狀態不因選圖而重繪關閉 */
.vplt-guide-section--collapsible .vplt-guide-section-toggle {
    display: block;
    width: 100%;
    margin: 0 0 0.65rem;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
}
.vplt-guide-section--collapsible .vplt-guide-section-toggle:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}
.vplt-guide-section--collapsible .vplt-guide-section-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin: 0;
    width: 100%;
}
.vplt-guide-section-chevron {
    font-size: 0.95rem;
    color: #86868b;
    flex-shrink: 0;
    margin-left: auto;
}
.vplt-guide-section--collapsed .vplt-guide-section-body[hidden] {
    display: none !important;
}
/* 橫向選單：同一結構；箭頭浮在內容上，不推擠左緣（與標題對齊） */
.vplt-guide-rail-nav {
    position: relative;
    width: 100%;
}
.vplt-guide-rail-nav:not(.vplt-guide-rail-nav--overflow) .vplt-guide-rail-arrow {
    display: none;
}
.vplt-guide-rail-viewport {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: visible;
}
.vplt-page--guide .vplt-guide-rail-scroll,
.vplt-page--vendor .vplt-guide-rail-scroll {
    width: 100%;
    max-width: 100%;
    margin: 0 0 -18px;
    padding: 0.35rem 0 18px;
    box-sizing: content-box;
    overflow-x: scroll;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    background: transparent;
}
.vplt-page--guide .vplt-guide-rail-scroll::-webkit-scrollbar,
.vplt-page--guide .vplt-guide-rail-scroll::-webkit-scrollbar-thumb,
.vplt-page--guide .vplt-guide-rail-scroll::-webkit-scrollbar-track,
.vplt-page--vendor .vplt-guide-rail-scroll::-webkit-scrollbar,
.vplt-page--vendor .vplt-guide-rail-scroll::-webkit-scrollbar-thumb,
.vplt-page--vendor .vplt-guide-rail-scroll::-webkit-scrollbar-track {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    -webkit-appearance: none;
    appearance: none;
}
.vplt-guide-rail-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 2rem;
    height: 3.25rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    color: #86868b;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, opacity 0.15s ease;
}
.vplt-guide-rail-arrow--prev {
    left: 0;
    background: linear-gradient(90deg, #fff 55%, rgba(255, 255, 255, 0));
}
.vplt-guide-rail-arrow--next {
    right: 0;
    background: linear-gradient(270deg, #fff 55%, rgba(255, 255, 255, 0));
}
.vplt-guide-rail-arrow:hover:not(:disabled) {
    color: #1d1d1f;
}
.vplt-guide-rail-arrow:disabled {
    opacity: 0;
    pointer-events: none;
}
.vplt-guide-rail {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem;
    width: max-content;
    min-width: min(100%, max-content);
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
.vplt-guide-tile {
    flex: 0 0 auto;
    width: 7.25rem;
    max-width: 7.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: none;
    background: transparent;
    padding: 0.15rem;
    margin: 0;
    position: relative;
    cursor: default;
    outline: none;
    border-radius: 12px;
}
.vplt-guide-tile--interactive {
    cursor: pointer;
}
.vplt-guide-tile--interactive:hover .vplt-guide-tile-name {
    color: #000;
}
.vplt-guide-tile-media {
    position: relative;
    width: 100%;
    min-height: 6.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
    padding: 0;
    box-sizing: border-box;
    border: none;
    border-radius: 0;
    background: transparent;
    transition: box-shadow 0.15s ease;
}
.vplt-guide-tile--active-view .vplt-guide-tile-media {
    border: 3px solid #0d9488;
    border-radius: 12px;
    box-shadow: none;
}
.vplt-guide-tile-badge {
    position: absolute;
    top: 0.2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    white-space: nowrap;
    pointer-events: none;
}
.vplt-guide-tile-badge--picked {
    background: #0d9488;
    color: #fff;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.35);
}
.vplt-guide-tile-badge--preview {
    background: #334155;
    color: #fff;
}
.vplt-guide-tile-media--empty {
    min-height: 5.5rem;
    background: #f5f5f7;
    border-radius: 8px;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}
.vplt-guide-tile-img {
    width: auto;
    max-width: 100%;
    height: 6.75rem;
    max-height: 6.75rem;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border: none;
    border-radius: 12px;
    cursor: default;
    pointer-events: none;
    user-select: none;
}
.vplt-page--guide .vplt-guide-tile-media .vplt-guide-tile-zoom-btn,
.vplt-page--vendor .vplt-guide-tile-media .vplt-guide-tile-zoom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    z-index: 6;
    width: 1.65rem;
    height: 1.65rem;
    padding: 0;
    pointer-events: auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0d9488;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    opacity: 0.92;
}
.vplt-page--guide .vplt-guide-tile-media .vplt-guide-tile-zoom-btn:hover,
.vplt-page--vendor .vplt-guide-tile-media .vplt-guide-tile-zoom-btn:hover {
    background: #f0fdfa;
    color: #0f766e;
    opacity: 1;
}
.vplt-guide-tile--active-view .vplt-guide-tile-name {
    font-weight: 600;
}
.vplt-guide-tile-name {
    display: block;
    width: 100%;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.25;
    color: #1d1d1f;
    margin: 0 0 0.15rem;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vplt-guide-tile-kind {
    display: block;
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1.2;
}
.vplt-guide-tile--prototype .vplt-guide-tile-kind {
    color: #0d9488;
}
.vplt-guide-tile--material .vplt-guide-tile-kind {
    color: #16a34a;
}
.vplt-guide-tile--part .vplt-guide-tile-kind {
    color: #d97706;
}
.vplt-guide-tile--picked .vplt-guide-tile-media {
    border: 3px solid #0d9488;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.22);
}
.vplt-guide-tile--picked .vplt-guide-tile-name {
    font-weight: 700;
    color: #0f766e;
}
.vplt-guide-tile--interactive:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 3px;
}
.vplt-guide-rail-note {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 768px) {
    .vplt-guide-rail {
        gap: 1.35rem;
    }
    .vplt-guide-tile {
        width: 6.25rem;
        max-width: 6.25rem;
    }
    .vplt-guide-tile-img {
        height: 5.75rem;
        max-height: 5.75rem;
    }
    .vplt-guide-tile-media {
        min-height: 5.75rem;
    }
}
.vplt-child-card {
    width: 120px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    padding: 0.5rem;
    text-align: center;
    position: relative;
}
.vplt-child-card--material { border-color: #22c55e; }
.vplt-child-card--part { border-color: #f59e0b; }
.vplt-variant-unit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 0 1 auto;
    max-width: min(100%, 200px);
    transition:
        max-width 0.38s cubic-bezier(0.4, 0, 0.2, 1),
        flex 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.vplt-variant-unit--expanded {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
}
.vplt-kind-out {
    font-size: 0.65rem;
    margin: 0 0 0.2rem 0.15rem;
    padding: 0.2rem 0.45rem;
}
/* 主產品／材料／配件：統一外框尺寸（分類在標題後、框內） */
.vplt-variant-unit > .vplt-child-card {
    width: 100%;
    max-width: min(100%, 200px);
    flex: none;
    text-align: center;
    padding: 0.55rem 0.45rem 0.5rem;
    box-sizing: border-box;
    transition: box-shadow 0.25s ease;
}
.vplt-variant-unit--root > .vplt-child-card {
    max-width: 100%;
}
.vplt-variant-unit > .vplt-child-card:not(.vplt-child-card--has-variants) .vplt-card-thumb {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin: 0 auto 0.1rem;
}
.vplt-variant-unit .vplt-child-card--has-variants {
    width: 100%;
    max-width: 100%;
}
/* 多色：右側箭頭與大框（含標題列）同高 */
.vplt-child-card.vplt-card-with-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px;
    grid-template-rows: 1fr;
    grid-template-areas: "content side";
    column-gap: 0;
    align-items: stretch;
}
.vplt-card-with-side .vplt-variant-layout {
    grid-area: content;
    width: 100%;
    margin: 0;
}
.vplt-card-with-side .vplt-variant-side-toggle {
    grid-area: side;
    position: static;
    width: 100%;
    min-width: 0;
    flex: none;
    align-self: stretch;
    height: auto;
    min-height: 0;
    padding: 0 0.1rem;
    font-size: 0.95rem;
}
.vplt-variant-unit--expanded .vplt-child-card--has-variants {
    z-index: 2;
}
.vplt-variant-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
}
.vplt-variant-collapsed {
    flex: 0 0 auto;
    width: 92px;
    overflow: hidden;
    opacity: 1;
    transition:
        width 0.38s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.26s ease;
}
.vplt-child-card--has-variants.vplt-child-card--expanded .vplt-variant-collapsed {
    width: 0;
    opacity: 0;
    pointer-events: none;
}
.vplt-variant-collapsed-inner {
    width: 92px;
    overflow: hidden;
}
.vplt-variant-expanded-wrap {
    flex: 0 0 0;
    width: 0;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        flex 0.38s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.38s cubic-bezier(0.4, 0, 0.2, 1),
        max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.28s ease 0.04s;
}
.vplt-child-card--has-variants.vplt-child-card--expanded .vplt-variant-expanded-wrap {
    flex: 1 1 auto;
    width: auto;
    max-height: 120px;
    opacity: 1;
}
.vplt-variant-side-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #0d9488;
    cursor: pointer;
    line-height: 1;
    box-sizing: border-box;
    transition: background 0.15s ease, color 0.15s ease;
}
.vplt-page--guide .vplt-card-with-side .vplt-variant-side-toggle {
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0.3rem 0.12rem;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-radius: 0 9px 9px 0;
    background: #f8fafc;
}
.vplt-page--guide .vplt-card-with-side .vplt-variant-side-toggle:hover {
    background: #f1f5f9;
    color: #0f766e;
}
.vplt-variant-side-toggle:hover {
    background: rgba(13, 148, 136, 0.08);
    color: #0f766e;
}
.vplt-variant-side-toggle i {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.vplt-child-card--expanded .vplt-variant-side-toggle i {
    transform: rotate(0deg);
}
.vplt-variant-side-count {
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    transition: opacity 0.2s ease, transform 0.25s ease;
}
.vplt-child-card--expanded .vplt-variant-side-count {
    opacity: 0;
    transform: scale(0.6);
    max-height: 0;
    overflow: hidden;
}
.vplt-variant-active-label {
    font-size: 0.65rem;
    line-height: 1.2;
    margin-bottom: 0.1rem;
}
.vplt-variant-picker {
    width: 100%;
    margin: 0;
}
.vplt-variant-mobile-bar {
    display: none;
}
.vplt-variant-hstrip {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.55rem;
    width: 100%;
    margin: 0;
    padding: 0.15rem 0.1rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.vplt-variant-hstrip::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.vplt-variant-option-cell {
    position: relative;
    flex: 0 0 auto;
}
.vplt-variant-option {
    width: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}
.vplt-variant-zoom-btn {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    z-index: 2;
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.94);
    color: #0d9488;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    font-size: 0.95rem;
}
.vplt-variant-zoom-btn:hover {
    background: #f0fdfa;
    color: #0f766e;
}
.vplt-variant-thumb-wrap {
    position: relative;
    display: inline-block;
    margin: 0 auto 0.1rem;
}
.vplt-variant-thumb-wrap .vplt-variant-zoom-btn {
    top: 0.2rem;
    right: 0.2rem;
}
.vplt-variant-option.is-active {
    border-color: #0d9488;
    background: #f0fdfa;
    box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.3);
}
.vplt-variant-option img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin: 0;
    pointer-events: none;
}
.vplt-child-card--has-variants .vplt-card-thumb {
    width: 84px;
    height: 84px;
}
.vplt-variant-option-label {
    font-size: 0.7rem;
    line-height: 1.15;
    color: #475569;
    width: 100%;
    word-break: break-word;
    pointer-events: none;
}
.vplt-variant-unit .vplt-child-title {
    text-align: center;
    margin-top: 0.35rem;
    width: 100%;
}
@media (prefers-reduced-motion: reduce) {
    .vplt-variant-unit,
    .vplt-variant-collapsed,
    .vplt-variant-expanded-wrap,
    .vplt-variant-side-toggle i,
    .vplt-variant-side-count {
        transition: none !important;
    }
}
@media (max-width: 991px) {
    .vplt-variant-unit--expanded {
        max-width: 100%;
    }
}
/* 手機：文字 + 底部 sheet（不重複封面縮圖） */
@media (max-width: 768px) {
    .vplt-variant-hstrip {
        display: none;
    }
    .vplt-page--guide .vplt-child-card--expanded .vplt-variant-mobile-bar {
        display: flex;
    }
    .vplt-variant-mobile-bar {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.4rem;
        width: 100%;
        min-width: 140px;
        padding: 0;
        background: transparent;
        border: none;
    }
    .vplt-variant-mobile-label {
        flex: 1 1 auto;
        font-size: 0.8rem;
        font-weight: 600;
        color: #0d9488;
        text-align: left;
        min-width: 0;
    }
    .vplt-variant-browse-btn {
        flex: 0 0 auto;
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
        white-space: nowrap;
    }
}
.vplt-variant-sheet {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1085;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}
.vplt-variant-sheet.open {
    pointer-events: auto;
    opacity: 1;
}
.vplt-variant-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
.vplt-variant-sheet-panel {
    position: relative;
    background: #fff;
    border-radius: 16px 16px 0 0;
    max-height: 78vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.vplt-variant-sheet.open .vplt-variant-sheet-panel {
    transform: translateY(0);
}
.vplt-variant-sheet-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    gap: 0.5rem;
}
.vplt-variant-sheet-title {
    flex: 1;
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: center;
}
.vplt-variant-sheet-close {
    border: none;
    background: none;
    font-size: 1.25rem;
    line-height: 1;
    color: #6b7280;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}
.vplt-variant-sheet-grid {
    overflow-y: auto;
    padding: 0.75rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    -webkit-overflow-scrolling: touch;
}
.vplt-variant-sheet-grid .vplt-variant-option-cell {
    width: 100%;
}
.vplt-variant-sheet-grid .vplt-variant-option {
    width: 100%;
}
.vplt-variant-sheet-grid .vplt-variant-option img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
}
.vplt-child-card img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin: 0 auto 0.35rem;
}
.vplt-child-card .vplt-child-title {
    font-size: 0.72rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.vplt-child-card .vplt-kind-badge {
    font-size: 0.65rem;
    margin-bottom: 0.25rem;
}
.vplt-child-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    padding: 0 0.25rem;
    line-height: 1;
    font-size: 0.85rem;
}
.vplt-orphan-pool {
    max-height: 40vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.vplt-orphan-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #fff;
    cursor: grab;
    font-size: 0.8rem;
}
.vplt-orphan-item:active { cursor: grabbing; }
.vplt-orphan-item img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
}
.vplt-canvas.vplt-drop-target {
    outline: 2px dashed #0d9488;
    outline-offset: 4px;
}
.vplt-empty-children {
    color: #64748b;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
}
.vplt-sidebar--guide {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 1rem;
    max-height: 75vh;
    overflow-y: auto;
}
.vplt-guide-selected {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-height: 2rem;
}
.vplt-guide-sel-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    padding: 0.35rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}
.vplt-guide-sel-thumb {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.vplt-child-card.vplt-child-card--picked {
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.45);
}
.vplt-child-card.vplt-child-card--clickable {
    cursor: pointer;
}
.vplt-child-card.vplt-child-card--clickable:not(.vplt-child-card--has-variants):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.vplt-child-card--has-variants,
.vplt-variant-unit {
    transform: none;
}
.vplt-variant-option:hover {
    border-color: #5eead4;
}
.vplt-root-card img.matchdo-enlarge-trigger,
.vplt-child-card img.matchdo-enlarge-trigger,
.vplt-prototype-item img.matchdo-enlarge-trigger,
.vplt-orphan-item img.matchdo-enlarge-trigger,
.vplt-root-card img.matchdo-enlarge-trigger {
    display: block;
    margin: 0 auto 0.5rem;
}
