/**
 * «Авто в наличии» (elements/stock-catalog.php, assets/js/stock-catalog.js).
 *
 * The Korean catalog's dark language for a list of cars in stock: a 272px filter sidebar beside the results from
 * 1024px (below it the same node is a drawer), the shared car card (cz-car-card.css, loaded first) and the result
 * states; the detail view is the car page's markup, styled by car-detail.css (loaded first) with the few stock
 * differences below (4:3 photos, the yuan price, equipment, videos, the back link).
 *
 * Rules of this file
 *   - px only (the site root is 10px), Oswald 600 and Rubik 400/600 only (the site's Rubik 500 is the italic file);
 *   - everything is scoped under .czs; outside it only the Bricks page background behind the element and
 *     html.czc-lock (the drawer's scroll lock, set by CZCatalogUI.drawer, copied from car-catalog.css); the UI v6 header
 *     rules (R8) start with [data-cz-ui="6"] body.cz-has-header .czs;
 *   - colours only as var(--cz-*, today's dark value); the few theme-neutral literals end their line with
 *     «allowlisted literal: <why>» and are pinned in tests/frontend/stock-selectors.test.js (it fails on any other);
 *   - the CZCatalogUI components keep their class contract (czc-chip, czc-switch, czc-fchip, czc-textbtn, czc-ico):
 *     car-catalog.css is not loaded here, so they are styled below, with the catalog's values;
 *   - nothing on .czs or its wrappers creates a containing block (no transform, filter, contain, will-change): the
 *     drawer is position:fixed inside them;
 *   - the price panel never sticks, skeleton included (owner's rule); only the filter sidebar does;
 *   - color-scheme: dark like .czc (the UI v6 R2 clean-up kept it on .czc); both go with UI v6 R8, the dark launch.
 *
 * State hooks the script sets (the CSS only reads them):
 *   .czs[data-view]            list | detail (the other view carries `hidden`)
 *   .czs[data-state]           loading | results | empty | error (the list); #czs-detail[data-state] loading | ready |
 *                              sold | error
 *   .czs[data-czs-boot]        the script started (without it .czs-fallback appears after 8 s)
 *   .czs-side[data-open]       the drawer is open (below 1024); #czs-backdrop follows it
 *   .czs-bar[data-stuck]       the phone toolbar is stuck (IntersectionObserver on #czs-sentinel)
 *   #czs-loading.is-slow       «Загружаем дольше обычного…» after 6 s
 *   .czs-equip.is-collapsed    equipment beyond the first 12 items is hidden
 */

/* ==========================================================================
   Outside the block: page background, drawer scroll lock
   ========================================================================== */

#brx-content:has(.czs) {
    background-color: var(--cz-page, #1a1a1a);
}

/* Drawer scroll lock (car-catalog.css, the same class: CZCatalogUI.drawer sets it). The gutter of the removed
   scrollbar stays reserved, so a desktop window 600-1023px wide does not jump sideways behind the drawer. */
html.czc-lock {
    scrollbar-gutter: stable;
}

html.czc-lock,
html.czc-lock body {
    overflow: hidden;
}

/* ==========================================================================
   Tokens (the --cz-* set comes from .cz-ui in cz-car-card.css and from cz-site.css)
   ========================================================================== */

.czs {
    --czs-gutter: 16px;
    --czs-side-w: 272px;
    --czs-col-gap: 24px;
    --czs-field-line: var(--cz-field-line, #6b6b72);
    --czs-chip-line: var(--cz-chip-line, #6b6b72);
    --czs-red-tint: rgba(229, 21, 21, 0.16); /* allowlisted literal: brand red at 16 %, the same in both themes (car-catalog.css --czc-red-tint) */
    /* WordPress sets --wp-admin--admin-bar--height on html while its admin bar shows */
    --czs-admin-bar: var(--wp-admin--admin-bar--height, 0px);
    --czs-sticky-top: calc(24px + var(--czs-admin-bar));
    --czs-bar-top: var(--czs-admin-bar);
    --czs-ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
    --czs-ease-in: cubic-bezier(0.4, 0, 1, 1);

    /* Control heights: fine pointer here, coarse pointer and the drawer below */
    --czs-chip-h: 36px;
    --czs-bchip-h: 32px;
    --czs-hit: 0px;
    --czs-inbtn: 40px;
}

/* At 600 and below the admin bar scrolls away with the page */
@media (max-width: 600px) {
    .czs {
        --czs-bar-top: 0px;
    }
}

@media (min-width: 768px) {
    .czs {
        --czs-gutter: 15px;
    }
}

@media (pointer: coarse) {
    .czs {
        --czs-chip-h: 44px;
        --czs-bchip-h: 36px;
        --czs-hit: 4px;
        --czs-inbtn: 44px;
    }
}

/* ==========================================================================
   Base
   ========================================================================== */

.czs {
    box-sizing: border-box;
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 16px 0 64px;
    background: var(--cz-page, #1a1a1a);
    color: var(--cz-text, #f2f2f0);
    color-scheme: dark; /* as .czc: kept by UI v6 R2, removed with R8 */
    font-family: var(--cz-font);
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    text-align: left;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
    .czs {
        padding: 24px 0 96px;
    }
}

.czs *,
.czs *::before,
.czs *::after {
    box-sizing: border-box;
}

/* `hidden` beats every display rule */
.czs [hidden] {
    display: none !important;
}

.czs h1,
.czs h2,
.czs h3,
.czs p,
.czs ul,
.czs ol,
.czs li,
.czs fieldset,
.czs legend,
.czs figure {
    margin: 0;
    padding: 0;
}

.czs ul,
.czs ol {
    list-style: none;
}

.czs li::before,
.czs li::marker {
    content: none;
}

.czs fieldset {
    min-width: 0;
    border: 0;
}

/* Bricks styles every label as a block with a 5px margin */
.czs label {
    display: block;
    margin: 0;
    color: inherit;
    font-weight: 400;
}

.czs button,
.czs input,
.czs select {
    margin: 0;
    font-family: var(--cz-font);
    font-size: inherit;
    line-height: inherit;
    letter-spacing: normal;
    text-transform: none;
    -webkit-tap-highlight-color: transparent;
}

.czs button {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    font-weight: 400;
    cursor: pointer;
}

.czs a {
    color: inherit;
}

.czs .czc-ico {
    display: block;
    flex: none;
    stroke: currentColor;
    pointer-events: none;
}

/* Focus: a 2px brand-red ring at offset 2; fields ring with their own border */
.czs :focus:not(:focus-visible) {
    outline: none;
}

.czs :focus-visible {
    outline: 2px solid var(--cz-red, #e51515);
    outline-offset: 2px;
}

/* Headings focused by script are not controls: no ring (the error title rings like a control, further down) */
.czs h1[tabindex="-1"]:focus,
.czs h2[tabindex="-1"]:focus,
.czs h3[tabindex="-1"]:not(.czs-error__title):focus {
    outline: none;
}

.czs .czs-sr,
.czs .czs-sort__radio {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.czs .czs-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ==========================================================================
   Frame: container, heading, page grid
   ========================================================================== */

.czs .czs__inner {
    width: 100%;
    max-width: 1200px; /* the site's Bricks container, as .cz-car of the detail view */
    margin: 0 auto;
    padding: 0 var(--czs-gutter);
}

/* under v6 one width everywhere: the container width and the v6 side padding, edges in line with the header */
[data-cz-ui="6"] .czs {
    --czs-gutter: var(--cz-gutter-v6);
}

[data-cz-ui="6"] .czs .czs__inner {
    max-width: var(--cz-container);
}

.czs .czs-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 16px;
    margin: 0 0 16px;
}

@media (min-width: 768px) {
    .czs .czs-head {
        margin-bottom: 24px;
    }
}

.czs .czs-head__title {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    color: var(--cz-text, #f2f2f0);
    font-family: var(--cz-display);
    font-size: 26px;
    font-weight: var(--cz-display-weight, 600);
    line-height: 32px;
    letter-spacing: var(--cz-display-track, 0.01em);
    text-transform: var(--cz-display-case, uppercase);
    overflow-wrap: anywhere;
}

@media (min-width: 768px) {
    .czs .czs-head__title {
        font-size: 32px;
        line-height: 40px;
    }
}

.czs .czs-head__total {
    flex: 1 1 100%;
    margin: 0;
    color: var(--cz-text-2, #a3a6ae);
    font-size: 16px;
    line-height: 24px;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 600px) {
    .czs .czs-head__total {
        flex: 1 1 auto;
    }
}

.czs .czs-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

@media (min-width: 1024px) {
    .czs .czs__inner {
        display: grid;
        grid-template-columns: var(--czs-side-w) minmax(0, 1fr);
        grid-template-areas:
            "head head"
            "side main";
        column-gap: var(--czs-col-gap);
        align-items: start;
    }

    .czs .czs-head {
        grid-area: head;
    }

    .czs .czs-side {
        grid-area: side;
    }

    .czs .czs-main {
        grid-area: main;
    }
}

/* ==========================================================================
   Shared controls: buttons, text buttons, icon buttons, badge, skeleton
   ========================================================================== */

.czs .czs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--cz-r-md);
    background: transparent;
    color: var(--cz-text, #f2f2f0);
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.1s ease;
}

.czs .czs-btn--ghost {
    border-color: var(--cz-line-strong, #4a4a51);
}

.czs .czs-btn--primary {
    border-color: var(--cz-red, #e51515);
    background: var(--cz-red, #e51515);
    color: var(--cz-on-red, #ffffff);
}

@media (hover: hover) {
    .czs .czs-btn--ghost:hover {
        border-color: var(--cz-text-3, #8b8e96);
        background: var(--cz-raised, #2a2a2e);
    }

    .czs .czs-btn--primary:hover {
        border-color: var(--cz-red-hover, #c81212);
        background: var(--cz-red-hover, #c81212);
    }
}

/* Text button («Сбросить всё», the chip bar's reset): an underlined label, red underline on hover */
.czs .czs-textbtn,
.czs .czc-textbtn {
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: center;
    min-height: 32px;
    padding: 0 2px;
    border: 0;
    background: none;
    color: var(--cz-text, #f2f2f0);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-decoration-line: underline;
    text-decoration-color: var(--cz-line-strong, #4a4a51);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    white-space: nowrap;
    transition: text-decoration-color 0.12s ease;
}

/* Coarse pointer: an invisible 44px hit area around the 20px label */
.czs .czs-textbtn::after,
.czs .czc-textbtn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -4px;
    right: -4px;
    height: 44px;
    margin-top: -22px;
}

@media (hover: hover) {
    .czs .czs-textbtn:hover,
    .czs .czc-textbtn:hover {
        text-decoration-color: var(--cz-red, #e51515);
    }
}

.czs .czs-iconbtn {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--cz-text-2, #a3a6ae);
    transition: background-color 0.12s ease, color 0.12s ease;
}

@media (hover: hover) {
    .czs .czs-iconbtn:hover {
        background: var(--cz-raised, #2a2a2e);
        color: var(--cz-text, #f2f2f0);
    }
}

.czs .czs-badge {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--cz-red, #e51515);
    color: var(--cz-on-red, #ffffff);
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
    font-variant-numeric: tabular-nums;
}

/* Skeleton bars pulse together at 1.6 s (the card's czcard-pulse has the same rhythm) */
.czs .czs-skel {
    display: block;
    border-radius: 6px;
    background: var(--cz-raised, #2a2a2e);
    animation: czs-pulse 1.6s ease-in-out infinite;
}

@keyframes czs-pulse {
    50% {
        opacity: 0.55;
    }
}

.czs .czs-skel--total {
    display: inline-block;
    width: 140px;
    height: 20px;
    vertical-align: -3px;
}

/* ==========================================================================
   Fields: text inputs, selects, captions, helpers, errors
   ========================================================================== */

.czs .czs-input {
    position: relative;
    display: block;
}

.czs .czs-input__field,
.czs .czs-select {
    display: block;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 36px 0 12px;
    border: 1px solid var(--czs-field-line);
    border-radius: var(--cz-r-md);
    background-color: var(--cz-page, #1a1a1a);
    box-shadow: none;
    color: var(--cz-text, #f2f2f0);
    font-size: 16px; /* iOS zooms into anything smaller on focus */
    font-weight: 400;
    line-height: 20px;
    font-variant-numeric: tabular-nums;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.czs .czs-input__field::placeholder {
    color: var(--cz-text-3, #8b8e96);
    opacity: 1;
}

.czs .czs-input__field::-webkit-search-cancel-button,
.czs .czs-input__field::-webkit-search-decoration {
    -webkit-appearance: none;
    display: none;
}

.czs .czs-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a3a6ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    text-overflow: ellipsis;
    cursor: pointer;
}

.czs .czs-select option {
    background: var(--cz-surface, #222225);
    color: var(--cz-text, #f2f2f0);
}

.czs .czs-input__field:focus,
.czs .czs-select:focus {
    border-color: var(--cz-red, #e51515);
    box-shadow: 0 0 0 1px var(--cz-red, #e51515);
    outline: none;
}

.czs .czs-input__field[aria-invalid="true"] {
    border-color: var(--cz-danger-text, #ff7b7f);
}

.czs .czs-select:disabled {
    opacity: 0.5;
    cursor: default;
}

/* «₽» / «км» suffix: 7-digit prices (3 000 000) fit the 115px column of the sidebar at 16px */
.czs .czs-input__field--unit {
    padding-right: 34px;
    padding-left: 10px;
}

.czs .czs-input__unit {
    position: absolute;
    top: 50%;
    right: 10px;
    color: var(--cz-text-2, #a3a6ae);
    font-size: 14px;
    line-height: 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Search: a magnifier on the left, the clear button inside on the right */
.czs .czs-input--search .czs-input__field {
    padding-right: calc(var(--czs-inbtn) + 4px);
    padding-left: 40px;
}

.czs .czs-input__icon {
    position: absolute;
    top: 13px;
    left: 12px;
    color: var(--cz-text-2, #a3a6ae);
}

.czs .czs-input__clear {
    position: absolute;
    top: calc((44px - var(--czs-inbtn)) / 2);
    right: calc((44px - var(--czs-inbtn)) / 2);
    width: var(--czs-inbtn);
    height: var(--czs-inbtn);
    border-radius: var(--cz-r-sm);
}

.czs .czs-input__clear:focus-visible {
    outline-offset: -2px;
}

.czs .czs-range__cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.czs .czs-range__col {
    min-width: 0;
}

.czs .czs-range__cap {
    display: block;
    margin: 0 0 4px;
    color: var(--cz-text-2, #a3a6ae);
    font-size: 13px;
    line-height: 18px;
}

.czs .czs-help {
    margin: 8px 0 0;
    color: var(--cz-text-3, #8b8e96);
    font-size: 13px;
    line-height: 18px;
}

.czs .czs-field-error {
    margin: 6px 0 0;
    color: var(--cz-danger-text, #ff7b7f);
    font-size: 13px;
    line-height: 18px;
}

/* ==========================================================================
   Sidebar (#czs-filters): 1024 and up it sits in the page grid; below it is the drawer (further down)
   ========================================================================== */

.czs .czs-side {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--cz-line, #37373c);
    border-radius: var(--cz-r-lg);
    background: var(--cz-surface, #222225);
}

.czs .czs-side__head {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 56px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--cz-line, #37373c);
}

.czs .czs-side__title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: var(--cz-text, #f2f2f0);
    font-family: var(--cz-display);
    font-size: 20px;
    font-weight: var(--cz-display-weight, 600);
    line-height: 24px;
    letter-spacing: var(--cz-display-track, 0.01em);
    text-transform: var(--cz-display-case, none);
}

/* Nothing to reset: the button keeps its place, so the header never shifts */
.czs .czs-side__head .czs-side__reset[hidden] {
    display: inline-flex !important;
    visibility: hidden;
}

.czs .czs-side__body {
    flex: 1 1 auto;
    min-height: 0;
}

.czs .czs-side__close,
.czs .czs-side__foot,
.czs .czs-backdrop {
    display: none;
}

/* Sticky filters (never the price): only where the window is tall enough to hold a useful part of them */
@media (min-width: 1024px) and (min-height: 640px) {
    .czs .czs-side {
        position: sticky;
        top: var(--czs-sticky-top);
        align-self: start;
        max-height: calc(100vh - 48px - var(--czs-admin-bar));
    }

    .czs .czs-side__body {
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: var(--cz-line-strong, #4a4a51) transparent;
    }
}

.czs .czs-side__body > * + * {
    border-top: 1px solid var(--cz-line, #37373c);
}

.czs .czs-group {
    padding: 14px 16px 16px;
}

.czs .czs-group__title {
    display: block;
    margin: 0 0 10px;
    color: var(--cz-text, #f2f2f0);
    font-family: var(--cz-font);
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0;
    text-transform: none;
}

.czs .czs-select + .czs-sr + .czs-select {
    margin-top: 8px;
}

/* ---- Chips (CZCatalogUI.chipGroup: button.czc-chip[aria-pressed] > label + count) ---- */

.czs .czc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.czs .czc-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: var(--czs-chip-h);
    padding: 0 12px;
    border: 1px solid var(--czs-chip-line);
    border-radius: 999px;
    background: transparent;
    color: var(--cz-text, #f2f2f0);
    font-size: 14px;
    line-height: 20px;
    text-align: left;
    transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease, transform 0.1s ease;
}

.czs .czc-chip__count {
    min-width: 2ch;
    color: var(--cz-text-2, #a3a6ae);
    font-size: 13px;
    line-height: 18px;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.czs .czc-chip__count:empty {
    display: none;
}

.czs .czc-chip[aria-pressed="true"] {
    border-color: var(--cz-red, #e51515);
    background: var(--czs-red-tint);
    box-shadow: inset 0 0 0 1px var(--cz-red, #e51515);
}

/* Count 0 and not selected: dimmed, still focusable, clicks ignored by the script */
.czs .czc-chip[aria-disabled="true"]:not([aria-pressed="true"]) {
    opacity: 0.45;
    cursor: default;
}

@media (hover: hover) {
    .czs .czc-chip:not([aria-pressed="true"]):not([aria-disabled="true"]):hover {
        background: var(--cz-raised, #2a2a2e);
    }
}

/* ---- «Только с видео» switch row (CZCatalogUI.switcher: button.czc-switch[role=switch]) ---- */

.czs .czs-switch-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 12px;
    min-height: 56px;
    padding: 8px 16px;
    cursor: pointer;
}

.czs .czs-switch-row__text {
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.czs .czs-switch-row__label {
    color: var(--cz-text, #f2f2f0);
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
}

.czs .czs-switch-row__count {
    color: var(--cz-text-2, #a3a6ae);
    font-size: 13px;
    line-height: 18px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Visual 44 × 24 track inside a 44 × 44 hit area */
.czs .czc-switch {
    position: relative;
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
}

.czs .czc-switch::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 44px;
    height: 24px;
    border: 1px solid var(--czs-field-line);
    border-radius: 999px;
    background: var(--cz-line-strong, #4a4a51);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.czs .czc-switch__thumb {
    position: absolute;
    top: 13px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cz-text-2, #a3a6ae);
    transition: transform 0.15s var(--czs-ease-out), background-color 0.15s ease;
}

.czs .czc-switch[aria-checked="true"]::before {
    border-color: var(--cz-red, #e51515);
    background: var(--cz-red, #e51515);
}

.czs .czc-switch[aria-checked="true"] .czc-switch__thumb {
    background: var(--cz-on-red, #ffffff);
    transform: translateX(20px);
}

.czs .czc-switch:focus-visible {
    outline: none;
}

.czs .czc-switch:focus-visible::before {
    outline: 2px solid var(--cz-red, #e51515);
    outline-offset: 2px;
}

/* ==========================================================================
   Active filter bar (#czs-chipbar, CZCatalogUI.chipBar)
   ========================================================================== */

.czs .czs-chipbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
}

.czs .czs-chipbar > button:not(.czc-textbtn) {
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    height: var(--czs-bchip-h);
    padding: 0 8px 0 12px;
    border: 1px solid transparent; /* shows in forced colours */
    border-radius: 999px;
    background: var(--cz-chip-fill, rgba(255, 255, 255, 0.07));
    color: var(--cz-text, #f2f2f0);
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
    transition: background-color 0.12s ease, transform 0.1s ease;
}

/* Coarse pointer: 36 visible plus 4px above and below */
.czs .czs-chipbar > button:not(.czc-textbtn)::after {
    content: "";
    position: absolute;
    top: calc(-1px - var(--czs-hit));
    right: 0;
    bottom: calc(-1px - var(--czs-hit));
    left: 0;
}

.czs .czs-chipbar > button:not(.czc-textbtn) > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.czs .czs-chipbar > button:not(.czc-textbtn) .czc-ico {
    width: 14px;
    height: 14px;
    color: var(--cz-text-2, #a3a6ae);
}

@media (hover: hover) {
    .czs .czs-chipbar > button:not(.czc-textbtn):hover {
        background: var(--cz-line, #37373c);
    }
}

/* ==========================================================================
   Toolbar (#czs-bar): sort; below 1024 the sticky bar with «Фильтры» and the sort select
   ========================================================================== */

.czs .czs-sentinel {
    height: 1px;
    margin-bottom: -1px;
    pointer-events: none;
}

.czs .czs-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.czs .czs-sort {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
    margin: 0 0 0 -10px;
    padding: 0;
    border: 0;
}

.czs .czs-sort__opt {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 12px 10px;
    color: var(--cz-text-2, #a3a6ae);
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
    cursor: pointer;
}

.czs .czs-sort__opt + .czs-sort__opt::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -0.5px;
    width: 1px;
    height: 14px;
    margin-top: -7px;
    background: var(--cz-line-strong, #4a4a51);
}

.czs .czs-sort__text {
    border-radius: 2px;
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    transition: color 0.12s ease, text-decoration-color 0.12s ease;
}

.czs .czs-sort__radio:checked + .czs-sort__text {
    color: var(--cz-text, #f2f2f0);
    text-decoration-color: var(--cz-red, #e51515);
}

.czs .czs-sort__radio:focus-visible + .czs-sort__text {
    outline: 2px solid var(--cz-red, #e51515);
    outline-offset: 4px;
}

@media (hover: hover) {
    .czs .czs-sort__opt:hover .czs-sort__text {
        color: var(--cz-text, #f2f2f0);
    }
}

.czs .czs-bar__filters {
    flex: none;
    gap: 8px;
    padding: 0 14px;
}

.czs .czs-bar__filters .czc-ico {
    color: var(--cz-text-2, #a3a6ae);
}

.czs .czs-sort-m {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 260px;
}

.czs .czs-sort-m__select {
    background-color: var(--cz-surface, #222225);
}

@media (min-width: 1024px) {
    .czs .czs-bar {
        min-height: 44px;
        margin: 0 0 16px;
        padding: 0 0 12px;
        border-bottom: 1px solid var(--cz-line, #37373c);
    }

    .czs .czs-sort-m,
    .czs .czs-bar__filters {
        display: none;
    }
}

@media (min-width: 1024px) and (max-width: 1199.98px) {
    .czs .czs-sort {
        margin-left: -8px;
    }

    .czs .czs-sort__opt {
        padding-right: 8px;
        padding-left: 8px;
    }
}

/* Below 1024: the toolbar is the sticky bar; chips go under it */
@media (max-width: 1023.98px) {
    .czs .czs-sort {
        display: none;
    }

    .czs .czs-sentinel,
    .czs .czs-bar {
        order: -1;
    }

    .czs .czs-bar {
        position: sticky;
        top: var(--czs-bar-top);
        z-index: 20;
        height: 60px;
        margin: 0 calc(-1 * var(--czs-gutter)) 12px;
        padding: 8px var(--czs-gutter);
        border-bottom: 1px solid transparent;
        background: var(--cz-page, #1a1a1a);
        transition: border-color 0.15s ease;
    }

    .czs .czs-bar[data-stuck="true"] {
        border-bottom-color: var(--cz-line, #37373c);
    }
}

/* UI v6 R8: under the v6 site header (cz-header.css: #brx-header overlay-sticky, --cz-hdr-sticky = its height on <html>) the
   sticky filters (from 1024) and the phone toolbar (below 1024) stick below it, as the catalog's do (car-catalog.css, R6b).
   Only with data-cz-ui="6" on <html> and the header element's body class: production (v6 off, the old header) never matches. */
[data-cz-ui="6"] body.cz-has-header .czs {
    --czs-sticky-top: calc(24px + var(--czs-admin-bar) + var(--cz-hdr-sticky, 0px));
    --czs-bar-top: calc(var(--czs-admin-bar) + var(--cz-hdr-sticky, 0px));
}

/* At 600 and below the admin bar scrolls away; the header still sticks at the top of the window */
@media (max-width: 600px) {
    [data-cz-ui="6"] body.cz-has-header .czs {
        --czs-bar-top: var(--cz-hdr-sticky, 0px);
    }
}

@media (min-width: 1024px) and (min-height: 640px) {
    [data-cz-ui="6"] body.cz-has-header .czs .czs-side {
        max-height: calc(100vh - 48px - var(--czs-admin-bar) - var(--cz-hdr-sticky, 0px));
    }
}

/* The toolbar is «stuck» (its line, data-stuck) once its sentinel leaves the window: lifted by the toolbar's sticky top
   (the header, and the admin bar above 600), the sentinel leaves when the toolbar reaches the header. position: relative
   moves only its box (no layout, and it is empty: no containing block for anything). */
@media (max-width: 1023.98px) {
    [data-cz-ui="6"] body.cz-has-header .czs .czs-sentinel {
        position: relative;
        top: calc(-1 * var(--czs-bar-top));
    }
}

/* Phones: «Фильтры» and the sort share the row; the active chips scroll sideways on one line */
@media (max-width: 599.98px) {
    .czs .czs-bar__filters {
        flex: 1 1 0;
        min-width: 0;
    }

    .czs .czs-sort-m {
        flex: 1.3 1 0;
        max-width: none;
    }

    .czs .czs-chipbar {
        flex-wrap: nowrap;
        margin-right: calc(-1 * var(--czs-gutter));
        margin-left: calc(-1 * var(--czs-gutter));
        padding: calc(1px + var(--czs-hit)) var(--czs-gutter);
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .czs .czs-chipbar::-webkit-scrollbar {
        display: none;
    }

    .czs .czs-chipbar > button:not(.czc-textbtn) {
        max-width: none;
    }

    .czs .czs-chipbar > button:focus-visible {
        outline-offset: -2px;
    }
}

/* ==========================================================================
   Notes above the grid: stale, slow loading
   ========================================================================== */

.czs .czs-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 12px;
    color: var(--cz-text-2, #a3a6ae);
    font-size: 13px;
    line-height: 18px;
}

.czs .czs-note--stale::before {
    content: "";
    flex: none;
    width: 14px;
    height: 14px;
    margin-top: 2px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}

/* First load: the status text is for screen readers; after 6 s it becomes the visible slow notice */
.czs .czs-loading:not(.is-slow) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.czs .czs-loading.is-slow {
    margin: 0 0 12px;
    color: var(--cz-text-2, #a3a6ae);
    font-size: 14px;
    line-height: 20px;
}

/* ==========================================================================
   Cards: the stock differences of the shared card (cz-car-card.css)
   ========================================================================== */

/* The supplier's photos are 4:3 (640 × 480): the whole car, no crop */
.czs .czcard__media {
    aspect-ratio: 4 / 3;
}

@supports not (aspect-ratio: 1 / 1) {
    .czs .czcard__media {
        padding-top: 75%;
    }
}

/* The rouble estimate after a yuan price: «120 000 ¥ ≈ 1 512 000 ₽» */
.czs .czs-price-alt {
    margin-left: 2px;
    color: var(--cz-text-2, #a3a6ae);
    font-family: var(--cz-font);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
}

/* The notes («Для расчёта под ключ нужна мощность», «Под ключ рассчитает менеджер») are the reason there is no
   turnkey total: they wrap instead of the card's one-line ellipsis (the subgrid keeps the row's dividers level) */
.czs .czcard__price-note {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.czs .czs-chip--video {
    gap: 4px;
}

.czs .czs-chip--video .czc-ico {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   Empty and error panels, «Показать ещё»
   ========================================================================== */

.czs .czs-empty,
.czs .czs-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 32px 24px;
    border: 1px solid var(--cz-line, #37373c);
    border-radius: var(--cz-r-lg);
    background: var(--cz-surface, #222225);
    text-align: center;
}

.czs .czs-empty > *,
.czs .czs-error > * {
    max-width: 480px;
}

.czs .czs-empty__title,
.czs .czs-error__title {
    margin: 0;
    color: var(--cz-text, #f2f2f0);
    font-family: var(--cz-display);
    font-size: 22px;
    font-weight: var(--cz-display-weight, 600);
    line-height: 28px;
    letter-spacing: var(--cz-display-track, 0.01em);
    text-transform: var(--cz-display-case, none);
}

.czs .czs-error__title:focus-visible {
    border-radius: 4px;
    outline: 2px solid var(--cz-red, #e51515);
    outline-offset: 4px;
}

.czs .czs-empty__text,
.czs .czs-error__text {
    margin: 8px 0 0;
    color: var(--cz-text-2, #a3a6ae);
    font-size: 15px;
    line-height: 22px;
}

.czs .czs-error__status {
    margin: 8px 0 0;
    color: var(--cz-text-2, #a3a6ae);
    font-size: 14px;
    line-height: 20px;
}

.czs .czs-empty__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.czs .czs-error__retry {
    margin-top: 24px;
    padding: 0 28px;
}

.czs .czs-pages {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.czs .czs-pages:not(:empty) {
    margin-top: 32px;
}

.czs .czs-pages__range {
    margin: 0 0 12px;
    color: var(--cz-text-2, #a3a6ae);
    font-size: 14px;
    line-height: 20px;
    font-variant-numeric: tabular-nums;
}

.czs .czs-more {
    min-width: 280px;
    min-height: 52px;
    padding: 0 24px;
    font-size: 16px;
}

@media (max-width: 599.98px) {
    .czs .czs-more {
        width: 100%;
        min-width: 0;
    }
}

/* ==========================================================================
   Drawer (below 1024): the sidebar node becomes a fixed panel with its backdrop
   ========================================================================== */

@media (max-width: 1023.98px) {
    .czs .czs-side {
        /* coarse sizes inside the drawer, whatever the pointer */
        --czs-chip-h: 44px;
        --czs-inbtn: 44px;

        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 100000;
        width: 100%;
        max-width: 420px;
        height: 100vh;
        height: 100dvh;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: 0 0 48px rgba(0, 0, 0, 0.5); /* allowlisted literal: a black shadow, theme-neutral (car-catalog.css drawer) */
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.18s var(--czs-ease-in), visibility 0s linear 0.18s;
    }

    .czs .czs-side[data-open="true"] {
        transform: none;
        visibility: visible;
        transition: transform 0.24s var(--czs-ease-out), visibility 0s;
    }

    .czs .czs-side__head {
        padding: 0 8px 0 16px;
        gap: 4px;
    }

    .czs .czs-side__title {
        font-size: 22px;
        line-height: 28px;
    }

    .czs .czs-side__head .czs-side__reset {
        margin-right: 4px;
    }

    .czs .czs-side__close {
        display: inline-flex;
    }

    .czs .czs-side__body {
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--cz-line-strong, #4a4a51) transparent;
    }

    .czs .czs-side__foot {
        display: block;
        flex: none;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--cz-line, #37373c);
        background: var(--cz-surface, #222225);
    }

    .czs .czs-backdrop {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 99999;
        display: block;
        background: var(--cz-backdrop, rgba(8, 8, 9, 0.72));
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.15s var(--czs-ease-in), visibility 0s linear 0.15s;
    }

    .czs .czs-side[data-open="true"] + .czs-backdrop,
    .czs .czs-backdrop[data-open="true"] {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.2s var(--czs-ease-out), visibility 0s;
    }
}

@media (min-width: 600px) and (max-width: 1023.98px) {
    .czs .czs-side {
        border-radius: 0 var(--cz-r-lg) var(--cz-r-lg) 0;
    }
}

/* «Показать 12 автомобилей»: full width, 52 tall; zero results: the ghost «Ничего не найдено» (it still closes) */
.czs .czs-apply {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
}

.czs .czs-apply[data-count="0"] {
    border-color: var(--cz-line-strong, #4a4a51);
    background: transparent;
    color: var(--cz-text, #f2f2f0);
}

/* ==========================================================================
   Detail view: the car page (car-detail.css) with the stock differences
   ========================================================================== */

.czs .czs-back {
    margin: 0 0 12px;
}

.czs .czs-back__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin-left: -4px;
    padding: 0 4px;
    color: var(--cz-text-2, #a3a6ae);
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    transition: color 0.12s ease;
}

.czs .czs-back__link span {
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.12s ease;
}

@media (hover: hover) {
    .czs .czs-back__link:hover {
        color: var(--cz-text, #f2f2f0);
    }

    .czs .czs-back__link:hover span {
        text-decoration-color: var(--cz-red, #e51515);
    }
}

/* The trim line under the title (the car page has none) */
.czs .czs-car__trim {
    margin: -10px 0 18px;
    color: var(--cz-text-2, #a3a6ae);
    font-size: 16px;
    line-height: 24px;
    overflow-wrap: anywhere;
}

/* 4:3 photos (the car page's are 16:9): the stage and the thumbs follow them */
.czs .cz-car .cz-gallery__stage {
    aspect-ratio: 4 / 3;
}

.czs .cz-car .cz-gallery__thumb {
    aspect-ratio: 4 / 3;
}

.czs .cz-car .cz-skel--media {
    aspect-ratio: 4 / 3;
}

.czs .cz-car .cz-gallery__slide img {
    background: var(--cz-photo-bg, #121214);
}

/* The yuan price with its rouble estimate, the China line under a turnkey total */
.czs .czs-calc__alt {
    color: var(--cz-text-2, #a3a6ae);
    font-family: var(--cz-font);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    white-space: nowrap;
}

.czs .calc-on-request-title .czs-calc__alt {
    margin-left: 8px;
    font-size: 15px;
}

.czs .czs-calc__china {
    margin: 8px 0 0;
    color: var(--cz-text-2, #a3a6ae);
    font-size: 14px;
    line-height: 20px;
    font-variant-numeric: tabular-nums;
}

/* The request button is a <button> here (the car page's is a Bricks span) */
.czs .cz-car .calc-contact-wrapper .czs-lead {
    -webkit-appearance: none;
    appearance: none;
}

/* No popup on the page: the phone and the contacts page under the button */
.czs .czs-lead__fallback {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 12px 0 0;
    color: var(--cz-text-2, #a3a6ae);
    font-size: 15px;
    line-height: 22px;
}

.czs .czs-lead__line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
}

.czs .czs-lead__tel,
.czs .czs-lead__contacts {
    color: var(--cz-text, #f2f2f0);
    text-decoration-line: underline;
    text-decoration-color: var(--cz-red, #e51515);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.czs .czs-lead__tel {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ---- «Комплектация и оснащение» ---- */

.czs .czs-equip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 0 24px;
}

.czs .czs-equip__item {
    position: relative;
    min-width: 0;
    padding: 10px 0 10px 18px;
    border-bottom: 1px solid var(--cz-line, #37373c);
    color: var(--cz-text, #f2f2f0);
    font-size: 14px;
    line-height: 20px;
    overflow-wrap: anywhere;
}

.czs .czs-equip .czs-equip__item::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 4px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cz-text-3, #8b8e96);
}

.czs .czs-equip.is-collapsed .czs-equip__item:nth-child(n + 13) {
    display: none;
}

.czs .czs-equip-text {
    color: var(--cz-text, #f2f2f0);
    font-size: 15px;
    line-height: 24px;
    overflow-wrap: anywhere;
}

/* ---- Videos ---- */

.czs .czs-video-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px 16px;
}

@media (min-width: 600px) {
    .czs .czs-video-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.czs .czs-video {
    min-width: 0;
}

.czs .czs-video__frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--cz-r-md);
    background: var(--cz-photo-bg, #121214);
}

@supports not (aspect-ratio: 1 / 1) {
    .czs .czs-video__frame {
        height: 0;
        padding-top: 56.25%;
    }
}

.czs .czs-video__player {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--cz-photo-bg, #121214);
}

.czs .czs-video__label {
    margin: 8px 0 0;
    color: var(--cz-text-2, #a3a6ae);
    font-size: 14px;
    line-height: 20px;
}

/* No player for this codec (HEVC in most desktop browsers) or the file failed: a note and a link */
.czs .czs-video__fallback {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px;
    text-align: center;
}

.czs .czs-video__note {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 280px;
    color: var(--cz-text-2, #a3a6ae);
    font-size: 14px;
    line-height: 20px;
}

.czs .czs-video__note .czc-ico {
    color: var(--cz-text-3, #8b8e96);
}

.czs .czs-video__open {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 14px;
}

/* ==========================================================================
   Static fallback: only when the scripts never start
   ========================================================================== */

.czs .czs-fallback {
    display: none;
}

.czs:not([data-czs-boot]) .czs-fallback {
    display: block;
    max-width: 640px;
    margin: 24px auto 0;
    padding: 0 var(--czs-gutter);
    color: var(--cz-text-2, #a3a6ae);
    font-size: 15px;
    line-height: 22px;
    text-align: center;
    visibility: hidden;
    animation: czs-reveal 0s linear 8s forwards;
}

@keyframes czs-reveal {
    to {
        visibility: visible;
    }
}

/* ==========================================================================
   Press feedback, user preferences
   ========================================================================== */

@media (hover: hover) and (pointer: fine) {
    .czs .czc-chip:not([aria-disabled="true"]):active,
    .czs .czs-chipbar > button:not(.czc-textbtn):active,
    .czs .czs-btn:not(:disabled):not(.czs-more):active {
        transform: scale(0.97);
    }
}

/* More contrast: cz-site.css raises --cz-field-line / --cz-chip-line (and the texts) per theme; the aliases above read
   them, so nothing is repeated here. */

@media (forced-colors: active) {
    .czs .czs-side,
    .czs .czs-side__head,
    .czs .czs-side__body > * + *,
    .czs .czs-side__foot,
    .czs .czs-bar,
    .czs .czs-empty,
    .czs .czs-error,
    .czs .czc-chip,
    .czs .czs-chipbar > button,
    .czs .czs-btn,
    .czs .czs-equip__item {
        border-color: CanvasText;
    }

    .czs .czs-input__field,
    .czs .czs-select {
        border-color: ButtonText;
    }

    .czs .czs-select {
        -webkit-appearance: auto;
        appearance: auto;
        background-image: none;
    }

    .czs .czc-chip[aria-pressed="true"],
    .czs .czs-badge,
    .czs .czs-btn--primary {
        forced-color-adjust: none;
        border-color: Highlight;
        background: Highlight;
        box-shadow: none;
        color: HighlightText;
    }

    .czs .czs-sort__text {
        text-decoration-line: none;
    }

    .czs .czs-sort__radio:checked + .czs-sort__text {
        text-decoration-line: underline;
        text-decoration-color: Highlight;
    }

    .czs .czc-switch::before {
        forced-color-adjust: none;
        border-color: CanvasText;
        background: Canvas;
    }

    .czs .czc-switch__thumb {
        forced-color-adjust: none;
        background: CanvasText;
    }

    .czs .czc-switch[aria-checked="true"]::before {
        border-color: Highlight;
        background: Highlight;
    }

    .czs .czc-switch[aria-checked="true"] .czc-switch__thumb {
        background: HighlightText;
    }

    .czs .czc-chip[aria-disabled="true"]:not([aria-pressed="true"]),
    .czs .czs-select:disabled {
        border-color: GrayText;
        color: GrayText;
        opacity: 1;
    }

    .czs :focus-visible,
    .czs .czc-switch:focus-visible::before,
    .czs .czs-sort__radio:focus-visible + .czs-sort__text {
        outline-color: Highlight;
    }

    .czs .czs-skel {
        border: 1px solid GrayText;
        background: transparent;
    }

    .czs .czs-note--stale::before {
        forced-color-adjust: none;
        background-color: CanvasText;
    }

    .czs .czs-backdrop {
        forced-color-adjust: none;
        background: rgba(0, 0, 0, 0.6); /* allowlisted literal: forced colours only (forced-color-adjust: none) */
    }
}

/* Durations to (almost) zero, no animation, skeletons static; the drawer appears in place. The fallback keeps its
   delayed reveal (a 0 s animation, nothing moves). */
@media (prefers-reduced-motion: reduce) {
    .czs *:not(.czs-fallback),
    .czs *::before,
    .czs *::after {
        animation: none !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
