.project-form-input,
.bst-field {
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border-strong);
    border-radius: 0.75rem;
    background: var(--input-bg);
    color: var(--text-primary);
}

select.project-form-input,
select.bst-field {
    appearance: none;
    padding-right: 2.75rem;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.project-form-input:focus-visible,
.bst-field:focus-visible {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.24);
}

.project-form-input:disabled,
.bst-field:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.bst-multiselect-native {
    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;
}

.bst-multiselect {
    position: relative;
    width: 100%;
}

.bst-multiselect-control {
    width: 100%;
    min-height: 3.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 2.6rem 0.55rem 0.7rem;
    border: 1px solid var(--border-strong);
    border-radius: 0.8rem;
    background: var(--input-bg);
    color: var(--text-primary);
    cursor: text;
}

.bst-multiselect-control::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 1.25rem;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    pointer-events: none;
}

.bst-multiselect.is-open .bst-multiselect-control,
.bst-multiselect-control:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.22);
}

.bst-multiselect-chips {
    display: contents;
}

.bst-multiselect-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 13rem;
    padding: 0.34rem 0.55rem;
    border-radius: 999px;
    background: rgba(47, 111, 237, 0.18);
    color: #dbeafe;
    font-size: 0.82rem;
    line-height: 1.2;
}

.bst-multiselect-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bst-multiselect-chip button {
    border: 0;
    background: transparent;
    color: #93c5fd;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.bst-multiselect-search {
    flex: 1 1 10rem;
    min-width: 7rem;
    padding: 0.3rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-primary);
}

.bst-multiselect-search::placeholder {
    color: var(--text-muted);
}

.bst-multiselect-menu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    display: none;
    max-height: 19rem;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: 0.8rem;
    background: var(--surface-elevated);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
}

.bst-multiselect.is-open .bst-multiselect-menu {
    display: block;
}

.bst-multiselect-list {
    max-height: 15.5rem;
    overflow-y: auto;
    padding: 0.35rem;
}

.bst-multiselect-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem;
    border: 0;
    border-radius: 0.65rem;
    background: transparent;
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
}

.bst-multiselect-option:hover,
.bst-multiselect-option.is-active {
    background: rgba(255, 255, 255, 0.065);
    color: var(--text-primary);
}

.bst-multiselect-option[aria-selected="true"] {
    background: rgba(47, 111, 237, 0.14);
    color: #dbeafe;
}

.bst-multiselect-avatar {
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    border-radius: 999px;
    object-fit: cover;
    background: var(--surface);
}

.bst-multiselect-option-text {
    min-width: 0;
    display: grid;
}

.bst-multiselect-option-text small {
    color: var(--text-muted);
}

.bst-multiselect-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.8rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.78rem;
}

.bst-multiselect-clear {
    border: 0;
    background: transparent;
    color: #93c5fd;
    cursor: pointer;
}

.bst-multiselect-empty {
    padding: 1rem;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.88rem;
}
