.project-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid rgba(131, 148, 195, 0.16);
    border-radius: 11px;
    background: rgba(82, 90, 120, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    color: #edf2ff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-align: left;
    white-space: nowrap;
}

.project-filter-chip:hover,
.project-filter-chip:focus-visible,
.project-filter-chip.is-open,
.project-filter-chip.is-focused {
    border-color: rgba(176, 198, 236, 0.24);
    background: rgba(97, 106, 139, 0.34);
    color: #ffffff;
}

.project-filter-chip-caret {
    display: inline-flex;
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 5px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    opacity: 0.7;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.project-filter-chip.is-open .project-filter-chip-caret,
.project-filter-chip.is-focused .project-filter-chip-caret {
    opacity: 1;
    transform: rotate(180deg);
}

.project-filter-popover[hidden] {
    display: none !important;
}

.project-filter-popover {
    width: var(--project-filter-popover-width, 258px);
    max-width: calc(100vw - 24px);
    margin: 0;
}

.project-filter-popover-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    overflow: hidden;
    border: 1px solid rgba(122, 136, 177, 0.2);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(44, 49, 69, 0.98), rgba(35, 39, 56, 0.98));
    box-shadow: 0 14px 24px rgba(10, 14, 24, 0.34);
}

.project-filter-popover-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.project-filter-popover-option {
    width: 100%;
    min-height: 26px;
    padding: 0 4px;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 1.4;
}

.project-filter-popover-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.project-filter-popover-reset,
.project-filter-popover-apply {
    min-height: 32px;
    border: 1px solid rgba(133, 158, 224, 0.2);
    border-radius: 8px;
    background: #4f63b8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: #edf3ff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.project-filter-popover-reset {
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    padding: 0;
}

.project-filter-popover-apply {
    flex: 1 1 auto;
    padding: 0 14px;
}

.project-filter-popover-reset:hover,
.project-filter-popover-reset:focus-visible,
.project-filter-popover-apply:hover,
.project-filter-popover-apply:focus-visible {
    border-color: rgba(152, 177, 236, 0.26);
    background: #5a6fca;
    color: #f8fbff;
}

.project-filter-popover-reset:focus-visible,
.project-filter-popover-apply:focus-visible {
    outline: 2px solid rgba(167, 192, 255, 0.42);
    outline-offset: 2px;
}

.project-filter-popover-reset-icon,
.project-filter-popover-reset-icon * {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 420px) {
    .project-filter-popover {
        max-width: calc(100vw - 16px);
    }
}
