.kb-sidebar {
    background: #2e2e2e;
    border: 1px solid #4a4a4a;
    border-radius: 10px;
    padding: 14px;
    color: #f4f4f4;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
}

.kb-sidebar,
.kb-sidebar * {
    box-sizing: border-box;
}

.kb-sidebar__heading {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: linear-gradient(180deg, #8f8f8f 0%, #6e6e6e 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.kb-sidebar__groups {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kb-sidebar__group {
    border-radius: 8px;
    overflow: hidden;
    background: #383838;
}

.kb-sidebar__group--depth-1,
.kb-sidebar__group--depth-2,
.kb-sidebar__group--depth-3 {
    margin-top: 8px;
    margin-left: 12px;
    background: #323232;
    border-left: 3px solid #c8a94a;
}

.kb-sidebar__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 0;
    background: #565656;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.kb-sidebar__group--depth-1 > .kb-sidebar__title,
.kb-sidebar__group--depth-2 > .kb-sidebar__title,
.kb-sidebar__group--depth-3 > .kb-sidebar__title {
    background: #494949;
    font-size: 14px;
}

.kb-sidebar__chevron {
    width: 10px;
    height: 10px;
    margin-left: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.kb-sidebar__group.is-expanded > .kb-sidebar__title .kb-sidebar__chevron {
    transform: rotate(225deg);
}

.kb-sidebar__panel {
    white-space: normal;
}

.kb-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.kb-sidebar__item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kb-sidebar__link {
    display: block;
    margin: 0;
    padding: 9px 12px 9px 18px;
    color: #e8e8e8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.kb-sidebar__link:hover,
.kb-sidebar__link:focus {
    background: rgba(240, 196, 76, 0.12);
    color: #ffffff;
}

.kb-sidebar__item.is-current > .kb-sidebar__link {
    background: rgba(240, 196, 76, 0.18);
    color: #ffd76c;
    font-weight: 700;
    border-left: 3px solid #f0c44c;
    padding-left: 15px;
}

.kb-sidebar-mobile-trigger,
.kb-sidebar-mobile-overlay,
.kb-sidebar--mobile {
    display: none;
}

.kb-sidebar-mobile-inline {
    display: none;
}

.kb-sidebar__mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -14px -14px 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #4a4a4a;
    background: #383838;
}

.kb-sidebar__mobile-label {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.kb-sidebar__mobile-close {
    margin: 0;
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 767px) {
    .kb-sidebar:not(.kb-sidebar--mobile) {
        display: none;
    }

    .kb-sidebar-mobile-inline {
        display: block;
        margin: 0 0 14px;
    }

    .kb-sidebar-mobile-trigger {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 10px 14px;
        border: 1px solid #7b7b7b;
        border-radius: 8px;
        background: #dfc15e;
        color: #111111;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.2;
        cursor: pointer;
    }

    .kb-sidebar-mobile-overlay.is-open {
        position: fixed;
        inset: 0;
        z-index: 9998;
        display: block;
        background: rgba(0, 0, 0, 0.55);
    }

    .kb-sidebar--mobile {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 9999;
        display: block;
        width: min(88vw, 360px);
        max-width: 360px;
        height: 100vh;
        padding-bottom: 24px;
        overflow-y: auto;
        border-radius: 0 10px 10px 0;
        transform: translateX(-100%);
        transition: transform 0.22s ease;
    }

    .kb-sidebar--mobile.is-open {
        transform: translateX(0);
    }
}
