.tb-merge-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.tb-merge-label {
    font-size: var(--tb-text-sm);
    font-weight: 500;
    color: var(--tb-text-muted);
}

.tb-sort-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tb-sort-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--tb-surface-2);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius);
    padding: 10px 12px;
    cursor: grab;
    transition: border-color var(--tb-transition), background var(--tb-transition);
    user-select: none;
}

.tb-sort-item:active {
    cursor: grabbing;
}

.tb-sort-item.is-dragging {
    opacity: 0.5;
}

.tb-sort-item.drag-over {
    border-color: var(--tb-primary);
    background: var(--tb-primary-dim);
}

.tb-sort-grip {
    color: var(--tb-text-faint);
    font-size: 16px;
    flex-shrink: 0;
}

.tb-sort-info {
    flex: 1;
    min-width: 0;
}

.tb-sort-name {
    font-size: var(--tb-text-sm);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tb-sort-meta {
    font-size: var(--tb-text-xs);
    color: var(--tb-text-muted);
    margin-top: 2px;
}

.tb-sort-del {
    background: none;
    border: none;
    color: var(--tb-text-faint);
    cursor: pointer;
    font-size: 16px;
    padding: 2px 4px;
    border-radius: var(--tb-radius);
    transition: color var(--tb-transition), background var(--tb-transition);
    flex-shrink: 0;
}

.tb-sort-del:hover {
    color: var(--tb-coral);
    background: var(--tb-coral-dim);
}