.ct-system-browser {
    width: 100%;
    margin: 28px 0 34px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 24px;
    background:
        radial-gradient(
            circle at top right,
            rgba(249, 115, 22, 0.08),
            transparent 34%
        ),
        rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.07);
}

.ct-system-browser__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.ct-system-browser__eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color, #ea580c);
}

.ct-system-browser__title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 800;
    line-height: 1.45;
}

.ct-system-browser__counter {
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex-shrink: 0;
    padding: 11px 16px;
    border-radius: 16px;
    background: #fff7ed;
    color: #9a3412;
    white-space: nowrap;
}

.ct-system-browser__counter strong {
    font-size: 1.3rem;
}

.ct-system-browser__counter span {
    font-size: 0.86rem;
    font-weight: 700;
}

.ct-system-browser__tools {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.6fr);
    align-items: center;
    gap: 18px;
}

.ct-system-browser__search {
    position: relative;
    display: flex;
    align-items: center;
}

.ct-system-browser__search input {
    width: 100%;
    min-height: 50px;
    padding: 0 46px;
    border: 1px solid #dbe2ea;
    border-radius: 15px;
    outline: none;
    background: #fff;
    color: #0f172a;
    font: inherit;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.ct-system-browser__search input:focus {
    border-color: var(--primary-color, #f97316);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.ct-system-browser__search-icon {
    position: absolute;
    inset-inline-start: 16px;
    display: grid;
    place-items: center;
    color: #64748b;
    pointer-events: none;
}

.ct-system-browser__clear {
    position: absolute;
    inset-inline-end: 11px;
    width: 31px;
    height: 31px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.ct-system-browser__filters {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding: 3px 0 7px;
}

.ct-system-filter {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #fff;
    color: #475569;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.ct-system-filter:hover {
    transform: translateY(-1px);
    border-color: rgba(249, 115, 22, 0.45);
    color: #c2410c;
}

.ct-system-filter.is-active {
    border-color: var(--primary-color, #f97316);
    background: var(--primary-color, #f97316);
    color: #fff;
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.2);
}

.ct-system-browser__status {
    margin-top: 16px;
    padding: 15px 18px;
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

.ct-systems-grid-enhanced {
    transition: opacity 0.2s ease;
}

.ct-system-card-managed {
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}

.ct-system-card-managed[hidden] {
    display: none !important;
}

.ct-system-show-all-wrap {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.ct-system-show-all {
    min-width: 190px;
    min-height: 50px;
    padding: 0 24px;
    border: 1px solid var(--primary-color, #f97316);
    border-radius: 15px;
    background: #fff;
    color: var(--primary-color, #ea580c);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.ct-system-show-all:hover {
    transform: translateY(-2px);
    background: var(--primary-color, #f97316);
    color: #fff;
}

html[dir="rtl"] .ct-system-browser__filters {
    justify-content: flex-start;
}

@media (max-width: 980px) {
    .ct-system-browser__tools {
        grid-template-columns: 1fr;
    }

    .ct-system-browser__filters {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .ct-system-browser {
        margin: 20px 0 26px;
        padding: 18px 14px;
        border-radius: 19px;
    }

    .ct-system-browser__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .ct-system-browser__counter {
        padding: 8px 12px;
    }

    .ct-system-browser__search input {
        min-height: 48px;
        font-size: 0.9rem;
    }

    .ct-system-filter {
        min-height: 40px;
        padding: 0 13px;
        font-size: 0.78rem;
    }

    .ct-system-show-all {
        width: 100%;
    }
}
