.dual-list-selector {
    --dual-list-border: #dbe2f0;
    --dual-list-border-strong: #c2cee3;
    --dual-list-surface: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    --dual-list-subtle: #f4f7fb;
    --dual-list-subtle-strong: #e8eef8;
    --dual-list-text: #17324d;
    --dual-list-text-soft: #5f728b;
    --dual-list-accent: #2563eb;
    --dual-list-accent-strong: #1d4ed8;
    --dual-list-danger: #c2410c;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    color: var(--dual-list-text);
}

.dual-list-selector.is-disabled {
    opacity: 0.78;
}

.dual-list-chip-summary {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.95rem;
    border: 1px solid var(--dual-list-border);
    border-radius: 18px;
    background: var(--dual-list-surface);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.dual-list-chip-summary__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.dual-list-chip-summary__title {
    font-size: 0.92rem;
    font-weight: 700;
}

.dual-list-chip-summary__edit {
    border: 0;
    background: transparent;
    color: var(--dual-list-accent);
    font-size: 0.84rem;
    font-weight: 700;
}

.dual-list-chip-summary__edit:disabled {
    color: var(--dual-list-text-soft);
}

.dual-list-chip-summary__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.dual-list-chip-summary__empty {
    color: var(--dual-list-text-soft);
    font-size: 0.84rem;
}

.dual-list-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.72rem;
    border: 1px solid #d7e3fb;
    border-radius: 999px;
    background: #ffffff;
    color: var(--dual-list-text);
    font-size: 0.78rem;
    line-height: 1.2;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}

.dual-list-chip__remove {
    color: var(--dual-list-text-soft);
    font-weight: 700;
}

.dual-list-selector__editor {
    display: flex;
    align-items: stretch;
    gap: 0.95rem;
}

.dual-list-panel {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--dual-list-border);
    border-radius: 20px;
    background: var(--dual-list-surface);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.dual-list-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.dual-list-panel__title {
    font-size: 0.94rem;
    font-weight: 700;
}

.dual-list-panel__count {
    color: var(--dual-list-text-soft);
    font-size: 0.78rem;
}

.dual-list-search-wrap {
    position: relative;
}

.dual-list-search {
    width: 100%;
    min-height: 2.55rem;
    padding: 0.68rem 0.9rem;
    border: 1px solid var(--dual-list-border);
    border-radius: 14px;
    background: #ffffff;
    color: var(--dual-list-text);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.dual-list-search:focus {
    border-color: var(--dual-list-accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.dual-list-list {
    min-height: 18rem;
    max-height: 24rem;
    padding: 0.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    overflow: auto;
}

.dual-list-item,
.dual-list-item-card {
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    border-radius: 16px;
    background: var(--dual-list-subtle);
    color: var(--dual-list-text);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.dual-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.82rem 0.9rem;
}

.dual-list-item-card {
    padding: 0.9rem;
}

.dual-list-item:hover,
.dual-list-item-card:hover {
    border-color: #d2dcf4;
    background: #ffffff;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.dual-list-item.is-active,
.dual-list-item-card.is-active {
    border-color: #9ebeff;
    background: linear-gradient(180deg, #eff5ff 0%, #f8fbff 100%);
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.12);
}

.dual-list-item:disabled {
    cursor: default;
}

.dual-list-item__text,
.dual-list-item-card__title {
    min-width: 0;
    font-size: 0.87rem;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.dual-list-item__check {
    flex: 0 0 auto;
    color: var(--dual-list-text-soft);
    font-weight: 700;
}

.dual-list-empty {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px dashed var(--dual-list-border);
    border-radius: 16px;
    color: var(--dual-list-text-soft);
    background: #ffffff;
    font-size: 0.84rem;
    text-align: center;
}

.dual-list-transfer {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
}

.dual-list-transfer__button {
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--dual-list-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--dual-list-accent);
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.08);
}

.dual-list-transfer__button:hover:not(:disabled) {
    background: #eef4ff;
    border-color: #aac4ff;
    color: var(--dual-list-accent-strong);
}

.dual-list-transfer__button:disabled {
    color: #9aa9bf;
    box-shadow: none;
}

.dual-list-item-card__toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
    margin-bottom: 0.45rem;
}

.dual-list-item-card__action {
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--dual-list-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--dual-list-accent);
    font-weight: 700;
}

.dual-list-item-card__action--danger {
    color: var(--dual-list-danger);
}

.dual-list-item-card__editor {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--dual-list-border);
}

.dual-list-property {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dual-list-property__label {
    color: var(--dual-list-text-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

.dual-list-property__input {
    width: 100%;
}

@media (max-width: 960px) {
    .dual-list-selector__editor {
        gap: 0.75rem;
    }

    .dual-list-panel {
        padding: 0.9rem;
        border-radius: 18px;
    }

    .dual-list-list {
        min-height: 15rem;
        max-height: 19rem;
    }
}

@media (max-width: 760px) {
    .dual-list-selector__editor {
        flex-direction: column;
    }

    .dual-list-transfer {
        flex-direction: row;
        justify-content: center;
    }

    .dual-list-transfer__button {
        width: 2.55rem;
        height: 2.55rem;
    }

    .dual-list-list {
        min-height: 12rem;
        max-height: 16rem;
    }
}

@media (max-width: 560px) {
    .dual-list-chip-summary {
        display: flex;
    }

    .dual-list-selector__editor {
        display: none;
    }

    .dual-list-selector.is-mobile-open .dual-list-selector__editor {
        display: flex;
        margin-top: 0.15rem;
    }

    .dual-list-selector.is-mobile-open .dual-list-chip-summary {
        margin-bottom: 0;
    }

    .dual-list-panel {
        padding: 0.85rem;
        border-radius: 16px;
    }

    .dual-list-list {
        min-height: 10.5rem;
        max-height: 14rem;
    }
}
