.filters-container {
    padding: 10px;
    width: 100%;
    font-family: sans-serif;
}
.robot-selector {
    margin: 12px 0 20px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, .08);
    background: linear-gradient(180deg, #f8fbff, #f3f5fb);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
.robot-selector__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.robot-selector__title {
    font-size: 14px;
    font-weight: 400;
    color: #1f2937;
}
.robot-selector__reset {
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 400;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: .05em;
    cursor: pointer;
}
.robot-selector__chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.robot-selector__chip {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 12px;
    min-width: 160px;
    flex: 1 1 160px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, .12);
    background: #fff;
    color: #1f2937;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
    position: relative;
}
.robot-selector__chip--active {
    border-color: rgba(37, 99, 235, .45);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .12);
}
.robot-selector__icon {
    font-size: 22px;
    line-height: 1;
}
.robot-selector__icon .mi {
    font-size: 22px;
}
.robot-selector__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.2;
}
.robot-selector__label {
    font-size: 13px;
    font-weight: 400;
    color: #111827;
}
.robot-selector__desc {
    font-size: 11px;
    color: #6b7280;
}
.robot-selector__check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, .8);
    background: #fff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .2s ease, transform .2s ease;
}
.robot-selector__chip--active .robot-selector__check {
    opacity: 1;
    transform: scale(1);
}
.robot-selector__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.filters-empty {
    text-align: center;
    color: #888;
    padding: 20px;
    border: 1px dashed #ccc;
    border-radius: 8px;
}
.filters-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.filter-item {
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    width: 100%;              /* тянет на всю ширину */
    box-sizing: border-box;   /* чтобы учитывать padding */
    color: #4c4c4c;
    border: dashed 1px #ddd;
    background: #fff;
}
.filter-item__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}
.filter-item__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-item--loading {
    border-color: #93c5fd;
    box-shadow: 0 0 0 2px rgba(147, 197, 253, 0.2) inset;
}

.filter-item__loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #2563eb;
}

.filter-item__loading-text {
    white-space: normal;
}

.filter-item__spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(37, 99, 235, 0.2);
    border-top-color: #2563eb;
    animation: filter-spinner-rotate 1s linear infinite;
}

@keyframes filter-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}
.menu {
    position: absolute;
    right: 10px;
    top: 45px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 5px 0;
    list-style: none;
    min-width: 140px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 20;
}
.menu li {
    padding: 8px 12px;
    cursor: pointer;
}
.menu li:hover {
    background: #eee;
}

.filter-item__debug
{
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 10px;
    margin-top: 4px;
}

.filter-item__debug-toggle
{
    border: none;
    background: #2563eb;
    color: #fff;
    font-weight: 400;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .2s ease;
}

.filter-item__debug-toggle:hover
{
    background: #1f4fb6;
}

.filter-item__debug-content
{
    margin-top: 8px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.04);
    border: 1px dashed rgba(37, 99, 235, 0.25);
}

.filter-item__debug-list
{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: #1f2937;
}

.filter-item__debug-list li
{
    padding: 4px 8px;
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.filter-item__debug-empty
{
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}
