/* ================================
   ROOT RESET (SAFE OVERRIDE)
================================ */
.IM_VPS_tree_wrapper,
.IM_VPS_tree_wrapper * {
    box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ================================
   LAYOUT
================================ */
.IM_VPS_tree_wrapper {
    background: #ffffff;
    
}

.IM_VPS_layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

@media (max-width: 1024px) {
    .IM_VPS_layout {
        grid-template-columns: 1fr;
    }
}

/* ================================
   LEFT SIDE (TREE)
================================ */
.IM_VPS_left {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
}

/* Section */
.IM_VPS_section {
    margin-bottom: 32px;
}

.IM_VPS_section_title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.IM_VPS_section_title span {
    font-size: 12px;
    color: #777;
}

/* Tree */
.IM_VPS_tree {
    list-style: none;
    margin: 0;
    padding-left: 16px;
    border-left: 2px solid #e6e6e6;
}

.IM_VPS_tree li {
    position: relative;
    padding-left: 14px;
    margin: 6px 0;
}

.IM_VPS_tree li::before {
    content: "";
    position: absolute;
    top: 14px;
    left: -2px;
    width: 10px;
    height: 2px;
    background: #e6e6e6;
}

/* Toggle */
.IM_VPS_toggle {
    cursor: pointer;
    font-size: 12px;
    margin-right: 6px;
    color: #666;
}

/* Links */
.IM_VPS_tree a {
    text-decoration: none;
    color: #222;
    font-size: 14px;
}

.IM_VPS_tree a:hover {
    text-decoration: underline;
}

/* ================================
   RIGHT SIDE (TAXONOMY CHIPS)
================================ */
.IM_VPS_right {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
}

/* Chip Section */
.IM_VPS_chip_section {
    margin-bottom: 28px;
}

.IM_VPS_chip_title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Chip Wrap */
.IM_VPS_chip_wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Chip */
.IM_VPS_chip {
    background: #f1f3f5;
    border: 1px solid #e1e3e6;
    color: #333;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.IM_VPS_chip:hover {
    background: #e9ecf0;
    border-color: #d0d4d9;
}

/* ================================
   SEARCH
================================ */
.IM_VPS_search {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ================================
   DIAGRAM MODE NOTICE
================================ */
.IM_VPS_notice {
    background: #fff8e1;
    border: 1px solid #ffe0b2;
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
}

/* ================================
   SHOW MORE / LESS (CHIPS)
================================ */
/* ================================
   BEAUTIFIED SHOW MORE / LESS
================================ */

/* ================================
   SHOW MORE / LESS (CHIPS)
================================ */
.IM_VPS_hidden {
    display: none;
}

.IM_VPS_toggle_chips {
    margin-top: 12px;
    background: none;
    border: none;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}



button.IM_VPS_toggle_chips {
    display: flex;
    border: 1px solid #e1e4e7;
    padding: 8px 16px;
    border-radius: 7px;
    transition: all 0.3s ease-in-out;
    gap: 10px;
    background: #fafafa;
    width: 100%;
    justify-content: space-between;
}


button.IM_VPS_toggle_chips[data-state="less"]:after {
    content: '+';
}


button.IM_VPS_toggle_chips[data-state="more"]:after {
    content: '-';
}


.IM_VPS_toggle_chips:hover {
    background: #f2f3f5;
}