/* ── 모험단 정렬 ── */
#sortBar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0;
    width: 100%;
}

#sortBar .btn {
    font-size: 0.72rem;
    padding: 0.15rem 0.55rem;
}

[data-bs-theme=dark] #btn_sort_toggle {
    color: #BB86FC;
    border-color: #BB86FC;
}

[data-bs-theme=dark] #btn_sort_toggle:hover {
    background-color: #BB86FC;
    border-color: #BB86FC;
    color: #000;
}

[data-bs-theme=dark] #btn_sort_save {
    background-color: #1a7a45;
    border-color: #1a7a45;
    color: #fff;
}

[data-bs-theme=dark] #btn_sort_save:hover {
    background-color: #21a05a;
    border-color: #21a05a;
}

[data-bs-theme=dark] #btn_sort_cancel {
    color: #9e9e9e;
    border-color: #6c757d;
}

[data-bs-theme=dark] #btn_sort_cancel:hover {
    background-color: #495057;
    border-color: #495057;
    color: #fff;
}

.sort-move-btns {
    display: none;
    justify-content: space-between;
    gap: 0.3rem;
    padding: 0.3rem 0.4rem;
    border-top: 1px solid rgba(128, 128, 128, .18);
}

#characterList.sort-mode .sort-move-btns {
    display: flex;
}

#characterList.sort-mode .characterView {
    cursor: default;
}

.btn-move-left,
.btn-move-right {
    flex: 1;
    padding: 0.2rem 0;
    background: rgba(120, 120, 120, .13);
    border: 1px solid rgba(120, 120, 120, .22);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    transition: background 0.15s;
}

.btn-move-left:hover,
.btn-move-right:hover {
    background: rgba(120, 120, 120, .28);
}

[data-bs-theme=dark] .btn-move-left,
[data-bs-theme=dark] .btn-move-right {
    background: rgba(200, 200, 200, .1);
    border-color: rgba(200, 200, 200, .2);
    color: #e0e0e0;
}

[data-bs-theme=dark] .btn-move-left:hover,
[data-bs-theme=dark] .btn-move-right:hover {
    background: rgba(200, 200, 200, .22);
}