.cfCategoryLayout {
    --cf-filter-border: rgba(var(--theme-text_color, 213, 213, 216), .16);
    --cf-filter-muted: rgb(var(--theme-text_light, 153, 153, 160));
    --cf-filter-accent: rgb(var(--theme-link, 109, 172, 119));
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    column-gap: 28px;
    row-gap: 16px;
    align-items: start;
}

.cfCategoryLayout>* {
    min-width: 0;
}

.cfCategorySidebar {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    margin-top: var(--cf-sidebar-offset, 0px);
}

.cfCategoryResults {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.cfCategoryResults[aria-busy="true"] {
    opacity: .65;
}

.cfCategoryResults .ipsBox.cDownloadsCategoryTable ol.ipsDataList:has(> li.codefling__downloads) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 24px;
    margin: 12px 0;
    padding: 0;
}

.cfCategoryResults .ipsBox.cDownloadsCategoryTable ol.ipsDataList>li.codefling__downloads {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
}

.cfCategoryResults .ipsBox.cDownloadsCategoryTable ol.ipsDataList:has(> li.codefling__downloads)::before,
.cfCategoryResults .ipsBox.cDownloadsCategoryTable ol.ipsDataList:has(> li.codefling__downloads)::after {
    content: none;
}

.cfCategoryResults .ipsBox.cDownloadsCategoryTable ol.ipsDataList:has(> li.codefling__downloads)> :not(.codefling__downloads) {
    grid-column: 1 / -1;
}

.cfCategorySidebar,
.cfCategorySidebar * {
    box-sizing: border-box;
}

.cfCategorySidebar {
    color: rgb(var(--theme-text_color, 213, 213, 216));
    font-size: 13px;
}

.cfCategorySection {
    border-top: 1px solid var(--cf-filter-border);
}

.cfCategoryForm>.cfCategorySection:first-of-type {
    border-top: 0;
}

.cfCategorySection>summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 0;
    list-style: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .065em;
    line-height: 1.4;
    text-transform: uppercase;
    cursor: pointer;
}

.cfCategorySection>summary::-webkit-details-marker {
    display: none;
}

.cfCategorySection>summary::after {
    content: '';
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.cfCategorySection[open]>summary::after {
    transform: rotate(225deg);
}

.cfCategorySectionBody {
    padding: 0 0 18px;
}

.cfCategoryChoices {
    display: grid;
    gap: 2px;
}

.cfCategoryChoices--scroll {
    max-height: 250px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--cf-filter-muted) transparent;
    padding: 2px 7px 2px 2px;
}

.cfCategoryChoice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-height: 27px;
    padding: 4px 0;
    line-height: 19px;
    cursor: pointer;
}

.cfCategoryChoice input {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    padding: 0;
    margin: 1px 0 0;
    border: 1px solid var(--cf-filter-border);
    border-radius: 3px;
    background: rgb(var(--theme-input_background, 25, 25, 28));
    cursor: pointer;
}

.cfCategoryChoice input:checked {
    border-color: var(--cf-filter-accent);
    background-color: var(--cf-filter-accent);
}

.cfCategoryChoice input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2' d='m3 8 3 3 7-7'/%3E%3C/svg%3E");
}

.cfCategoryChoice input:indeterminate {
    border-color: var(--cf-filter-accent);
    background: var(--cf-filter-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");
}

.cfCategorySelectAll {
    margin-bottom: 6px;
    font-weight: 600;
}

.cfCategoryChoice input[type="radio"] {
    border-radius: 50%;
}

.cfCategoryChoice input[type="radio"]:checked {
    box-shadow: inset 0 0 0 3px rgb(var(--theme-input_background, 25, 25, 28));
}

.cfCategoryChoice>span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cfCategoryLabel {
    display: block;
    margin-bottom: 6px;
    color: var(--cf-filter-muted);
    font-size: 12px;
}

.cfCategoryLayout .cfCategorySidebar select:not([multiple]) {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 38px;
    min-height: 2.75em;
    padding: 6px 32px 6px 10px;
    border: 1px solid var(--cf-filter-border);
    border-radius: 3px;
    background-color: rgb(var(--theme-input_background, 25, 25, 28));
    color: inherit;
    font: inherit;
    line-height: 1.4;
    box-shadow: none;
}

html[dir="rtl"] .cfCategoryLayout .cfCategorySidebar select:not([multiple]) {
    padding: 6px 10px 6px 32px;
}

.cfCategoryRange {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.cfCategoryRange+.cfCategoryRange,
.cfCategorySidebar select+.cfCategoryRange {
    margin-top: 14px;
}

.cfCategoryRange legend {
    float: none;
    width: auto;
    padding: 0;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 500;
}

.cfCategoryRange legend span {
    color: var(--cf-filter-muted);
    font-weight: 400;
}

.cfCategoryRangeValues {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--cf-filter-muted);
    font-size: 11px;
}

.cfCategoryRangeValues output {
    color: rgb(var(--theme-text_color, 213, 213, 216));
    font-variant-numeric: tabular-nums;
}

.cfCategorySlider {
    position: relative;
    height: 30px;
    direction: ltr;
    touch-action: none;
    cursor: pointer;
}

.cfCategorySliderTrack {
    position: absolute;
    inset: 13px 8px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--cf-filter-border) var(--cf-range-low), var(--cf-filter-accent) var(--cf-range-low), var(--cf-filter-accent) var(--cf-range-high), var(--cf-filter-border) var(--cf-range-high));
}

.cfCategorySlider input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}

.cfCategorySlider input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
}

.cfCategorySlider input[type="range"]::-moz-range-track {
    height: 4px;
    background: transparent;
}

.cfCategorySlider input[type="range"]::-moz-range-progress {
    height: 4px;
    background: transparent;
}

.cfCategorySlider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin-top: -6px;
    border: 2px solid rgb(var(--theme-input_background, 25, 25, 28));
    border-radius: 50%;
    background: var(--cf-filter-accent);
    pointer-events: auto;
    cursor: grab;
}

.cfCategorySlider input[type="range"]::-moz-range-thumb {
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    border: 2px solid rgb(var(--theme-input_background, 25, 25, 28));
    border-radius: 50%;
    background: var(--cf-filter-accent);
    pointer-events: auto;
    cursor: grab;
}

.cfCategorySlider input:focus-visible {
    z-index: 1;
}

.cfCategoryHint {
    margin: 0 0 10px;
    color: var(--cf-filter-muted);
    font-size: 12px;
    line-height: 1.5;
}

.cfCategoryActions {
    display: grid;
    gap: 12px;
    text-align: center;
}

.cfCategoryActions .ipsButton {
    display: block;
    width: 100%;
    padding: 9px 12px;
    line-height: 1.4;
}

.cfCategoryStatus {
    padding-top: 16px;
    color: var(--cf-filter-muted);
    font-size: 12px;
    line-height: 1.5;
}

.cfCategoryActions [hidden] {
    display: none;
}

.cfCategoryLayout :is(button, a, summary, input:not([type="range"])):focus-visible {
    outline: 2px solid var(--cf-filter-accent);
    outline-offset: 2px;
}

.cfCategoryLayout .cfCategorySidebar select:not([multiple]):is(:hover, :focus, :focus-visible, :active),
.cfCategoryLayout .cfCategorySlider input[type="range"]:is(:hover, :focus, :focus-visible, :active) {
    outline: none;
    box-shadow: none;
    border-color: var(--cf-filter-border);
}

.cfCategoryLayout .cfCategorySidebar select:not([multiple]):focus-visible {
    background-color: color-mix(in srgb, rgb(var(--theme-input_background, 25, 25, 28)), rgb(var(--theme-text_color, 213, 213, 216)) 8%);
}

.cfCategorySlider input[type="range"]:focus-visible::-webkit-slider-thumb {
    transform: scale(1.2);
}

.cfCategorySlider input[type="range"]:focus-visible::-moz-range-thumb {
    transform: scale(1.2);
}

@media (forced-colors: active) {
    .cfCategoryChoice input {
        appearance: auto;
        -webkit-appearance: auto;
    }

    .cfCategorySliderTrack {
        background: CanvasText;
    }

    .cfCategorySlider input[type="range"]::-webkit-slider-thumb {
        background: Highlight;
        border-color: CanvasText;
    }

    .cfCategorySlider input[type="range"]::-moz-range-thumb {
        background: Highlight;
        border-color: CanvasText;
    }
}

@media (max-width: 1100px) and (min-width: 901px) {
    .cfCategoryLayout {
        grid-template-columns: 216px minmax(0, 1fr);
        column-gap: 20px;
    }
}

@media (max-width: 900px) {
    .cfCategoryLayout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .cfCategorySidebar {
        margin-top: 0;
    }

    .cfCategoryResults {
        grid-column: 1;
        grid-row: 2;
    }

    .cfCategoryResults>.cDownloadsCategoryTable {
        margin-left: 0;
        margin-right: 0;
    }
}
